r52926 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52925‎ | r52926 | r52927 >
Date:17:11, 8 July 2009
Author:catrope
Status:deferred
Tags:
Comment:
UsabilityInitiative: Merge all jQuery JS files into one. Kept the old files around to make regeneration of jquery.combined.js easier, but only that file is actually served.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/Resources/jquery.async.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/Resources/jquery.browser.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/Resources/jquery.combined.js (added) (history)
  • /trunk/extensions/UsabilityInitiative/Resources/jquery.cookie.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/Resources/jquery.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/Resources/jquery.textSelection.js (modified) (history)
  • /trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/UsabilityInitiative.hooks.php
@@ -13,10 +13,7 @@
1414 private static $messages = array();
1515 private static $styles = array();
1616 private static $scripts = array(
17 - array( 'src' => 'Resources/jquery.textSelection.js', 'version' => 1 ),
18 - array( 'src' => 'Resources/jquery.cookie.js', 'version' => 1 ),
19 - array( 'src' => 'Resources/jquery.async.js', 'version' => 1 ),
20 - array( 'src' => 'Resources/jquery.browser.js', 'version' => 1 ),
 17+ array( 'src' => 'Resources/jquery.combined.js', 'version' => 1 ),
2118 );
2219
2320
@@ -35,7 +32,6 @@
3633 if ( !$wgUsabilityInitiativeCoesxistWithMvEmbed ) {
3734 self::$scripts = array_merge(
3835 array(
39 - array( 'src' => 'Resources/jquery.js', 'version' => 1 ),
4036 array( 'src' => 'Resources/messages.js', 'version' => 1 ),
4137 ),
4238 self::$scripts
Index: trunk/extensions/UsabilityInitiative/Resources/jquery.cookie.js
@@ -93,4 +93,5 @@
9494 }
9595 return cookieValue;
9696 }
97 -};
\ No newline at end of file
 97+};
 98+
Index: trunk/extensions/UsabilityInitiative/Resources/jquery.textSelection.js
@@ -80,3 +80,4 @@
8181 }
8282 });
8383 })(jQuery);
 84+
Index: trunk/extensions/UsabilityInitiative/Resources/jquery.async.js
@@ -74,4 +74,5 @@
7575 return this;
7676 }
7777
78 -})(jQuery)
\ No newline at end of file
 78+})(jQuery);
 79+
Index: trunk/extensions/UsabilityInitiative/Resources/jquery.combined.js
@@ -0,0 +1,9382 @@
 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+
 809+ var computedStyle = defaultView.getComputedStyle( elem, null );
 810+
 811+ if ( computedStyle )
 812+ ret = computedStyle.getPropertyValue( name );
 813+
 814+ // We should always get a number back from opacity
 815+ if ( name == "opacity" && ret == "" )
 816+ ret = "1";
 817+
 818+ } else if ( elem.currentStyle ) {
 819+ var camelCase = name.replace(/\-(\w)/g, function(all, letter){
 820+ return letter.toUpperCase();
 821+ });
 822+
 823+ ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
 824+
 825+ // From the awesome hack by Dean Edwards
 826+ // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
 827+
 828+ // If we're not dealing with a regular pixel number
 829+ // but a number that has a weird ending, we need to convert it to pixels
 830+ if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
 831+ // Remember the original values
 832+ var left = style.left, rsLeft = elem.runtimeStyle.left;
 833+
 834+ // Put in the new values to get a computed value out
 835+ elem.runtimeStyle.left = elem.currentStyle.left;
 836+ style.left = ret || 0;
 837+ ret = style.pixelLeft + "px";
 838+
 839+ // Revert the changed values
 840+ style.left = left;
 841+ elem.runtimeStyle.left = rsLeft;
 842+ }
 843+ }
 844+
 845+ return ret;
 846+ },
 847+
 848+ clean: function( elems, context, fragment ) {
 849+ context = context || document;
 850+
 851+ // !context.createElement fails in IE with an error but returns typeof 'object'
 852+ if ( typeof context.createElement === "undefined" )
 853+ context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
 854+
 855+ // If a single string is passed in and it's a single tag
 856+ // just do a createElement and skip the rest
 857+ if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) {
 858+ var match = /^<(\w+)\s*\/?>$/.exec(elems[0]);
 859+ if ( match )
 860+ return [ context.createElement( match[1] ) ];
 861+ }
 862+
 863+ var ret = [], scripts = [], div = context.createElement("div");
 864+
 865+ jQuery.each(elems, function(i, elem){
 866+ if ( typeof elem === "number" )
 867+ elem += '';
 868+
 869+ if ( !elem )
 870+ return;
 871+
 872+ // Convert html string into DOM nodes
 873+ if ( typeof elem === "string" ) {
 874+ // Fix "XHTML"-style tags in all browsers
 875+ elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
 876+ return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
 877+ all :
 878+ front + "></" + tag + ">";
 879+ });
 880+
 881+ // Trim whitespace, otherwise indexOf won't work as expected
 882+ var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase();
 883+
 884+ var wrap =
 885+ // option or optgroup
 886+ !tags.indexOf("<opt") &&
 887+ [ 1, "<select multiple='multiple'>", "</select>" ] ||
 888+
 889+ !tags.indexOf("<leg") &&
 890+ [ 1, "<fieldset>", "</fieldset>" ] ||
 891+
 892+ tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
 893+ [ 1, "<table>", "</table>" ] ||
 894+
 895+ !tags.indexOf("<tr") &&
 896+ [ 2, "<table><tbody>", "</tbody></table>" ] ||
 897+
 898+ // <thead> matched above
 899+ (!tags.indexOf("<td") || !tags.indexOf("<th")) &&
 900+ [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||
 901+
 902+ !tags.indexOf("<col") &&
 903+ [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||
 904+
 905+ // IE can't serialize <link> and <script> tags normally
 906+ !jQuery.support.htmlSerialize &&
 907+ [ 1, "div<div>", "</div>" ] ||
 908+
 909+ [ 0, "", "" ];
 910+
 911+ // Go to html and back, then peel off extra wrappers
 912+ div.innerHTML = wrap[1] + elem + wrap[2];
 913+
 914+ // Move to the right depth
 915+ while ( wrap[0]-- )
 916+ div = div.lastChild;
 917+
 918+ // Remove IE's autoinserted <tbody> from table fragments
 919+ if ( !jQuery.support.tbody ) {
 920+
 921+ // String was a <table>, *may* have spurious <tbody>
 922+ var hasBody = /<tbody/i.test(elem),
 923+ tbody = !tags.indexOf("<table") && !hasBody ?
 924+ div.firstChild && div.firstChild.childNodes :
 925+
 926+ // String was a bare <thead> or <tfoot>
 927+ wrap[1] == "<table>" && !hasBody ?
 928+ div.childNodes :
 929+ [];
 930+
 931+ for ( var j = tbody.length - 1; j >= 0 ; --j )
 932+ if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )
 933+ tbody[ j ].parentNode.removeChild( tbody[ j ] );
 934+
 935+ }
 936+
 937+ // IE completely kills leading whitespace when innerHTML is used
 938+ if ( !jQuery.support.leadingWhitespace && /^\s/.test( elem ) )
 939+ div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );
 940+
 941+ elem = jQuery.makeArray( div.childNodes );
 942+ }
 943+
 944+ if ( elem.nodeType )
 945+ ret.push( elem );
 946+ else
 947+ ret = jQuery.merge( ret, elem );
 948+
 949+ });
 950+
 951+ if ( fragment ) {
 952+ for ( var i = 0; ret[i]; i++ ) {
 953+ if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
 954+ scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
 955+ } else {
 956+ if ( ret[i].nodeType === 1 )
 957+ ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
 958+ fragment.appendChild( ret[i] );
 959+ }
 960+ }
 961+
 962+ return scripts;
 963+ }
 964+
 965+ return ret;
 966+ },
 967+
 968+ attr: function( elem, name, value ) {
 969+ // don't set attributes on text and comment nodes
 970+ if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
 971+ return undefined;
 972+
 973+ var notxml = !jQuery.isXMLDoc( elem ),
 974+ // Whether we are setting (or getting)
 975+ set = value !== undefined;
 976+
 977+ // Try to normalize/fix the name
 978+ name = notxml && jQuery.props[ name ] || name;
 979+
 980+ // Only do all the following if this is a node (faster for style)
 981+ // IE elem.getAttribute passes even for style
 982+ if ( elem.tagName ) {
 983+
 984+ // These attributes require special treatment
 985+ var special = /href|src|style/.test( name );
 986+
 987+ // Safari mis-reports the default selected property of a hidden option
 988+ // Accessing the parent's selectedIndex property fixes it
 989+ if ( name == "selected" && elem.parentNode )
 990+ elem.parentNode.selectedIndex;
 991+
 992+ // If applicable, access the attribute via the DOM 0 way
 993+ if ( name in elem && notxml && !special ) {
 994+ if ( set ){
 995+ // We can't allow the type property to be changed (since it causes problems in IE)
 996+ if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
 997+ throw "type property can't be changed";
 998+
 999+ elem[ name ] = value;
 1000+ }
 1001+
 1002+ // browsers index elements by id/name on forms, give priority to attributes.
 1003+ if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
 1004+ return elem.getAttributeNode( name ).nodeValue;
 1005+
 1006+ // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
 1007+ // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
 1008+ if ( name == "tabIndex" ) {
 1009+ var attributeNode = elem.getAttributeNode( "tabIndex" );
 1010+ return attributeNode && attributeNode.specified
 1011+ ? attributeNode.value
 1012+ : elem.nodeName.match(/(button|input|object|select|textarea)/i)
 1013+ ? 0
 1014+ : elem.nodeName.match(/^(a|area)$/i) && elem.href
 1015+ ? 0
 1016+ : undefined;
 1017+ }
 1018+
 1019+ return elem[ name ];
 1020+ }
 1021+
 1022+ if ( !jQuery.support.style && notxml && name == "style" )
 1023+ return jQuery.attr( elem.style, "cssText", value );
 1024+
 1025+ if ( set )
 1026+ // convert the value to a string (all browsers do this but IE) see #1070
 1027+ elem.setAttribute( name, "" + value );
 1028+
 1029+ var attr = !jQuery.support.hrefNormalized && notxml && special
 1030+ // Some attributes require a special call on IE
 1031+ ? elem.getAttribute( name, 2 )
 1032+ : elem.getAttribute( name );
 1033+
 1034+ // Non-existent attributes return null, we normalize to undefined
 1035+ return attr === null ? undefined : attr;
 1036+ }
 1037+
 1038+ // elem is actually elem.style ... set the style
 1039+
 1040+ // IE uses filters for opacity
 1041+ if ( !jQuery.support.opacity && name == "opacity" ) {
 1042+ if ( set ) {
 1043+ // IE has trouble with opacity if it does not have layout
 1044+ // Force it by setting the zoom level
 1045+ elem.zoom = 1;
 1046+
 1047+ // Set the alpha filter to set the opacity
 1048+ elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +
 1049+ (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
 1050+ }
 1051+
 1052+ return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
 1053+ (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
 1054+ "";
 1055+ }
 1056+
 1057+ name = name.replace(/-([a-z])/ig, function(all, letter){
 1058+ return letter.toUpperCase();
 1059+ });
 1060+
 1061+ if ( set )
 1062+ elem[ name ] = value;
 1063+
 1064+ return elem[ name ];
 1065+ },
 1066+
 1067+ trim: function( text ) {
 1068+ return (text || "").replace( /^\s+|\s+$/g, "" );
 1069+ },
 1070+
 1071+ makeArray: function( array ) {
 1072+ var ret = [];
 1073+
 1074+ if( array != null ){
 1075+ var i = array.length;
 1076+ // The window, strings (and functions) also have 'length'
 1077+ if( i == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval )
 1078+ ret[0] = array;
 1079+ else
 1080+ while( i )
 1081+ ret[--i] = array[i];
 1082+ }
 1083+
 1084+ return ret;
 1085+ },
 1086+
 1087+ inArray: function( elem, array ) {
 1088+ for ( var i = 0, length = array.length; i < length; i++ )
 1089+ // Use === because on IE, window == document
 1090+ if ( array[ i ] === elem )
 1091+ return i;
 1092+
 1093+ return -1;
 1094+ },
 1095+
 1096+ merge: function( first, second ) {
 1097+ // We have to loop this way because IE & Opera overwrite the length
 1098+ // expando of getElementsByTagName
 1099+ var i = 0, elem, pos = first.length;
 1100+ // Also, we need to make sure that the correct elements are being returned
 1101+ // (IE returns comment nodes in a '*' query)
 1102+ if ( !jQuery.support.getAll ) {
 1103+ while ( (elem = second[ i++ ]) != null )
 1104+ if ( elem.nodeType != 8 )
 1105+ first[ pos++ ] = elem;
 1106+
 1107+ } else
 1108+ while ( (elem = second[ i++ ]) != null )
 1109+ first[ pos++ ] = elem;
 1110+
 1111+ return first;
 1112+ },
 1113+
 1114+ unique: function( array ) {
 1115+ var ret = [], done = {};
 1116+
 1117+ try {
 1118+
 1119+ for ( var i = 0, length = array.length; i < length; i++ ) {
 1120+ var id = jQuery.data( array[ i ] );
 1121+
 1122+ if ( !done[ id ] ) {
 1123+ done[ id ] = true;
 1124+ ret.push( array[ i ] );
 1125+ }
 1126+ }
 1127+
 1128+ } catch( e ) {
 1129+ ret = array;
 1130+ }
 1131+
 1132+ return ret;
 1133+ },
 1134+
 1135+ grep: function( elems, callback, inv ) {
 1136+ var ret = [];
 1137+
 1138+ // Go through the array, only saving the items
 1139+ // that pass the validator function
 1140+ for ( var i = 0, length = elems.length; i < length; i++ )
 1141+ if ( !inv != !callback( elems[ i ], i ) )
 1142+ ret.push( elems[ i ] );
 1143+
 1144+ return ret;
 1145+ },
 1146+
 1147+ map: function( elems, callback ) {
 1148+ var ret = [];
 1149+
 1150+ // Go through the array, translating each of the items to their
 1151+ // new value (or values).
 1152+ for ( var i = 0, length = elems.length; i < length; i++ ) {
 1153+ var value = callback( elems[ i ], i );
 1154+
 1155+ if ( value != null )
 1156+ ret[ ret.length ] = value;
 1157+ }
 1158+
 1159+ return ret.concat.apply( [], ret );
 1160+ }
 1161+});
 1162+
 1163+// Use of jQuery.browser is deprecated.
 1164+// It's included for backwards compatibility and plugins,
 1165+// although they should work to migrate away.
 1166+
 1167+var userAgent = navigator.userAgent.toLowerCase();
 1168+
 1169+// Figure out what browser is being used
 1170+jQuery.browser = {
 1171+ version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
 1172+ safari: /webkit/.test( userAgent ),
 1173+ opera: /opera/.test( userAgent ),
 1174+ msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
 1175+ mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
 1176+};
 1177+
 1178+jQuery.each({
 1179+ parent: function(elem){return elem.parentNode;},
 1180+ parents: function(elem){return jQuery.dir(elem,"parentNode");},
 1181+ next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
 1182+ prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
 1183+ nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
 1184+ prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
 1185+ siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
 1186+ children: function(elem){return jQuery.sibling(elem.firstChild);},
 1187+ contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
 1188+}, function(name, fn){
 1189+ jQuery.fn[ name ] = function( selector ) {
 1190+ var ret = jQuery.map( this, fn );
 1191+
 1192+ if ( selector && typeof selector == "string" )
 1193+ ret = jQuery.multiFilter( selector, ret );
 1194+
 1195+ return this.pushStack( jQuery.unique( ret ), name, selector );
 1196+ };
 1197+});
 1198+
 1199+jQuery.each({
 1200+ appendTo: "append",
 1201+ prependTo: "prepend",
 1202+ insertBefore: "before",
 1203+ insertAfter: "after",
 1204+ replaceAll: "replaceWith"
 1205+}, function(name, original){
 1206+ jQuery.fn[ name ] = function( selector ) {
 1207+ var ret = [], insert = jQuery( selector );
 1208+
 1209+ for ( var i = 0, l = insert.length; i < l; i++ ) {
 1210+ var elems = (i > 0 ? this.clone(true) : this).get();
 1211+ jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
 1212+ ret = ret.concat( elems );
 1213+ }
 1214+
 1215+ return this.pushStack( ret, name, selector );
 1216+ };
 1217+});
 1218+
 1219+jQuery.each({
 1220+ removeAttr: function( name ) {
 1221+ jQuery.attr( this, name, "" );
 1222+ if (this.nodeType == 1)
 1223+ this.removeAttribute( name );
 1224+ },
 1225+
 1226+ addClass: function( classNames ) {
 1227+ jQuery.className.add( this, classNames );
 1228+ },
 1229+
 1230+ removeClass: function( classNames ) {
 1231+ jQuery.className.remove( this, classNames );
 1232+ },
 1233+
 1234+ toggleClass: function( classNames, state ) {
 1235+ if( typeof state !== "boolean" )
 1236+ state = !jQuery.className.has( this, classNames );
 1237+ jQuery.className[ state ? "add" : "remove" ]( this, classNames );
 1238+ },
 1239+
 1240+ remove: function( selector ) {
 1241+ if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
 1242+ // Prevent memory leaks
 1243+ jQuery( "*", this ).add([this]).each(function(){
 1244+ jQuery.event.remove(this);
 1245+ jQuery.removeData(this);
 1246+ });
 1247+ if (this.parentNode)
 1248+ this.parentNode.removeChild( this );
 1249+ }
 1250+ },
 1251+
 1252+ empty: function() {
 1253+ // Remove element nodes and prevent memory leaks
 1254+ jQuery(this).children().remove();
 1255+
 1256+ // Remove any remaining nodes
 1257+ while ( this.firstChild )
 1258+ this.removeChild( this.firstChild );
 1259+ }
 1260+}, function(name, fn){
 1261+ jQuery.fn[ name ] = function(){
 1262+ return this.each( fn, arguments );
 1263+ };
 1264+});
 1265+
 1266+// Helper function used by the dimensions and offset modules
 1267+function num(elem, prop) {
 1268+ return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
 1269+}
 1270+var expando = "jQuery" + now(), uuid = 0, windowData = {};
 1271+
 1272+
 1273+
 1274+jQuery.extend({
 1275+
 1276+ cache: {},
 1277+
 1278+
 1279+
 1280+ data: function( elem, name, data ) {
 1281+
 1282+ elem = elem == window ?
 1283+
 1284+ windowData :
 1285+
 1286+ elem;
 1287+
 1288+
 1289+
 1290+ var id = elem[ expando ];
 1291+
 1292+
 1293+
 1294+ // Compute a unique ID for the element
 1295+
 1296+ if ( !id )
 1297+
 1298+ id = elem[ expando ] = ++uuid;
 1299+
 1300+
 1301+
 1302+ // Only generate the data cache if we're
 1303+
 1304+ // trying to access or manipulate it
 1305+
 1306+ if ( name && !jQuery.cache[ id ] )
 1307+
 1308+ jQuery.cache[ id ] = {};
 1309+
 1310+
 1311+
 1312+ // Prevent overriding the named cache with undefined values
 1313+
 1314+ if ( data !== undefined )
 1315+
 1316+ jQuery.cache[ id ][ name ] = data;
 1317+
 1318+
 1319+
 1320+ // Return the named cache data, or the ID for the element
 1321+
 1322+ return name ?
 1323+
 1324+ jQuery.cache[ id ][ name ] :
 1325+
 1326+ id;
 1327+
 1328+ },
 1329+
 1330+
 1331+
 1332+ removeData: function( elem, name ) {
 1333+
 1334+ elem = elem == window ?
 1335+
 1336+ windowData :
 1337+
 1338+ elem;
 1339+
 1340+
 1341+
 1342+ var id = elem[ expando ];
 1343+
 1344+
 1345+
 1346+ // If we want to remove a specific section of the element's data
 1347+
 1348+ if ( name ) {
 1349+
 1350+ if ( jQuery.cache[ id ] ) {
 1351+
 1352+ // Remove the section of cache data
 1353+
 1354+ delete jQuery.cache[ id ][ name ];
 1355+
 1356+
 1357+
 1358+ // If we've removed all the data, remove the element's cache
 1359+
 1360+ name = "";
 1361+
 1362+
 1363+
 1364+ for ( name in jQuery.cache[ id ] )
 1365+
 1366+ break;
 1367+
 1368+
 1369+
 1370+ if ( !name )
 1371+
 1372+ jQuery.removeData( elem );
 1373+
 1374+ }
 1375+
 1376+
 1377+
 1378+ // Otherwise, we want to remove all of the element's data
 1379+
 1380+ } else {
 1381+
 1382+ // Clean up the element expando
 1383+
 1384+ try {
 1385+
 1386+ delete elem[ expando ];
 1387+
 1388+ } catch(e){
 1389+
 1390+ // IE has trouble directly removing the expando
 1391+
 1392+ // but it's ok with using removeAttribute
 1393+
 1394+ if ( elem.removeAttribute )
 1395+
 1396+ elem.removeAttribute( expando );
 1397+
 1398+ }
 1399+
 1400+
 1401+
 1402+ // Completely remove the data cache
 1403+
 1404+ delete jQuery.cache[ id ];
 1405+
 1406+ }
 1407+
 1408+ },
 1409+
 1410+ queue: function( elem, type, data ) {
 1411+
 1412+ if ( elem ){
 1413+
 1414+
 1415+
 1416+ type = (type || "fx") + "queue";
 1417+
 1418+
 1419+
 1420+ var q = jQuery.data( elem, type );
 1421+
 1422+
 1423+
 1424+ if ( !q || jQuery.isArray(data) )
 1425+
 1426+ q = jQuery.data( elem, type, jQuery.makeArray(data) );
 1427+
 1428+ else if( data )
 1429+
 1430+ q.push( data );
 1431+
 1432+
 1433+
 1434+ }
 1435+
 1436+ return q;
 1437+
 1438+ },
 1439+
 1440+
 1441+
 1442+ dequeue: function( elem, type ){
 1443+
 1444+ var queue = jQuery.queue( elem, type ),
 1445+
 1446+ fn = queue.shift();
 1447+
 1448+
 1449+
 1450+ if( !type || type === "fx" )
 1451+
 1452+ fn = queue[0];
 1453+
 1454+
 1455+
 1456+ if( fn !== undefined )
 1457+
 1458+ fn.call(elem);
 1459+
 1460+ }
 1461+
 1462+});
 1463+
 1464+
 1465+
 1466+jQuery.fn.extend({
 1467+
 1468+ data: function( key, value ){
 1469+
 1470+ var parts = key.split(".");
 1471+
 1472+ parts[1] = parts[1] ? "." + parts[1] : "";
 1473+
 1474+
 1475+
 1476+ if ( value === undefined ) {
 1477+
 1478+ var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
 1479+
 1480+
 1481+
 1482+ if ( data === undefined && this.length )
 1483+
 1484+ data = jQuery.data( this[0], key );
 1485+
 1486+
 1487+
 1488+ return data === undefined && parts[1] ?
 1489+
 1490+ this.data( parts[0] ) :
 1491+
 1492+ data;
 1493+
 1494+ } else
 1495+
 1496+ return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
 1497+
 1498+ jQuery.data( this, key, value );
 1499+
 1500+ });
 1501+
 1502+ },
 1503+
 1504+
 1505+
 1506+ removeData: function( key ){
 1507+
 1508+ return this.each(function(){
 1509+
 1510+ jQuery.removeData( this, key );
 1511+
 1512+ });
 1513+
 1514+ },
 1515+
 1516+ queue: function(type, data){
 1517+
 1518+ if ( typeof type !== "string" ) {
 1519+
 1520+ data = type;
 1521+
 1522+ type = "fx";
 1523+
 1524+ }
 1525+
 1526+
 1527+
 1528+ if ( data === undefined )
 1529+
 1530+ return jQuery.queue( this[0], type );
 1531+
 1532+
 1533+
 1534+ return this.each(function(){
 1535+
 1536+ var queue = jQuery.queue( this, type, data );
 1537+
 1538+
 1539+
 1540+ if( type == "fx" && queue.length == 1 )
 1541+
 1542+ queue[0].call(this);
 1543+
 1544+ });
 1545+
 1546+ },
 1547+
 1548+ dequeue: function(type){
 1549+
 1550+ return this.each(function(){
 1551+
 1552+ jQuery.dequeue( this, type );
 1553+
 1554+ });
 1555+
 1556+ }
 1557+
 1558+});/*!
 1559+ * Sizzle CSS Selector Engine - v0.9.3
 1560+ * Copyright 2009, The Dojo Foundation
 1561+ * Released under the MIT, BSD, and GPL Licenses.
 1562+ * More information: http://sizzlejs.com/
 1563+ */
 1564+(function(){
 1565+
 1566+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,
 1567+ done = 0,
 1568+ toString = Object.prototype.toString;
 1569+
 1570+var Sizzle = function(selector, context, results, seed) {
 1571+ results = results || [];
 1572+ context = context || document;
 1573+
 1574+ if ( context.nodeType !== 1 && context.nodeType !== 9 )
 1575+ return [];
 1576+
 1577+ if ( !selector || typeof selector !== "string" ) {
 1578+ return results;
 1579+ }
 1580+
 1581+ var parts = [], m, set, checkSet, check, mode, extra, prune = true;
 1582+
 1583+ // Reset the position of the chunker regexp (start from head)
 1584+ chunker.lastIndex = 0;
 1585+
 1586+ while ( (m = chunker.exec(selector)) !== null ) {
 1587+ parts.push( m[1] );
 1588+
 1589+ if ( m[2] ) {
 1590+ extra = RegExp.rightContext;
 1591+ break;
 1592+ }
 1593+ }
 1594+
 1595+ if ( parts.length > 1 && origPOS.exec( selector ) ) {
 1596+ if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
 1597+ set = posProcess( parts[0] + parts[1], context );
 1598+ } else {
 1599+ set = Expr.relative[ parts[0] ] ?
 1600+ [ context ] :
 1601+ Sizzle( parts.shift(), context );
 1602+
 1603+ while ( parts.length ) {
 1604+ selector = parts.shift();
 1605+
 1606+ if ( Expr.relative[ selector ] )
 1607+ selector += parts.shift();
 1608+
 1609+ set = posProcess( selector, set );
 1610+ }
 1611+ }
 1612+ } else {
 1613+ var ret = seed ?
 1614+ { expr: parts.pop(), set: makeArray(seed) } :
 1615+ Sizzle.find( parts.pop(), parts.length === 1 && context.parentNode ? context.parentNode : context, isXML(context) );
 1616+ set = Sizzle.filter( ret.expr, ret.set );
 1617+
 1618+ if ( parts.length > 0 ) {
 1619+ checkSet = makeArray(set);
 1620+ } else {
 1621+ prune = false;
 1622+ }
 1623+
 1624+ while ( parts.length ) {
 1625+ var cur = parts.pop(), pop = cur;
 1626+
 1627+ if ( !Expr.relative[ cur ] ) {
 1628+ cur = "";
 1629+ } else {
 1630+ pop = parts.pop();
 1631+ }
 1632+
 1633+ if ( pop == null ) {
 1634+ pop = context;
 1635+ }
 1636+
 1637+ Expr.relative[ cur ]( checkSet, pop, isXML(context) );
 1638+ }
 1639+ }
 1640+
 1641+ if ( !checkSet ) {
 1642+ checkSet = set;
 1643+ }
 1644+
 1645+ if ( !checkSet ) {
 1646+ throw "Syntax error, unrecognized expression: " + (cur || selector);
 1647+ }
 1648+
 1649+ if ( toString.call(checkSet) === "[object Array]" ) {
 1650+ if ( !prune ) {
 1651+ results.push.apply( results, checkSet );
 1652+ } else if ( context.nodeType === 1 ) {
 1653+ for ( var i = 0; checkSet[i] != null; i++ ) {
 1654+ if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
 1655+ results.push( set[i] );
 1656+ }
 1657+ }
 1658+ } else {
 1659+ for ( var i = 0; checkSet[i] != null; i++ ) {
 1660+ if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
 1661+ results.push( set[i] );
 1662+ }
 1663+ }
 1664+ }
 1665+ } else {
 1666+ makeArray( checkSet, results );
 1667+ }
 1668+
 1669+ if ( extra ) {
 1670+ Sizzle( extra, context, results, seed );
 1671+
 1672+ if ( sortOrder ) {
 1673+ hasDuplicate = false;
 1674+ results.sort(sortOrder);
 1675+
 1676+ if ( hasDuplicate ) {
 1677+ for ( var i = 1; i < results.length; i++ ) {
 1678+ if ( results[i] === results[i-1] ) {
 1679+ results.splice(i--, 1);
 1680+ }
 1681+ }
 1682+ }
 1683+ }
 1684+ }
 1685+
 1686+ return results;
 1687+};
 1688+
 1689+Sizzle.matches = function(expr, set){
 1690+ return Sizzle(expr, null, null, set);
 1691+};
 1692+
 1693+Sizzle.find = function(expr, context, isXML){
 1694+ var set, match;
 1695+
 1696+ if ( !expr ) {
 1697+ return [];
 1698+ }
 1699+
 1700+ for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
 1701+ var type = Expr.order[i], match;
 1702+
 1703+ if ( (match = Expr.match[ type ].exec( expr )) ) {
 1704+ var left = RegExp.leftContext;
 1705+
 1706+ if ( left.substr( left.length - 1 ) !== "\\" ) {
 1707+ match[1] = (match[1] || "").replace(/\\/g, "");
 1708+ set = Expr.find[ type ]( match, context, isXML );
 1709+ if ( set != null ) {
 1710+ expr = expr.replace( Expr.match[ type ], "" );
 1711+ break;
 1712+ }
 1713+ }
 1714+ }
 1715+ }
 1716+
 1717+ if ( !set ) {
 1718+ set = context.getElementsByTagName("*");
 1719+ }
 1720+
 1721+ return {set: set, expr: expr};
 1722+};
 1723+
 1724+Sizzle.filter = function(expr, set, inplace, not){
 1725+ var old = expr, result = [], curLoop = set, match, anyFound,
 1726+ isXMLFilter = set && set[0] && isXML(set[0]);
 1727+
 1728+ while ( expr && set.length ) {
 1729+ for ( var type in Expr.filter ) {
 1730+ if ( (match = Expr.match[ type ].exec( expr )) != null ) {
 1731+ var filter = Expr.filter[ type ], found, item;
 1732+ anyFound = false;
 1733+
 1734+ if ( curLoop == result ) {
 1735+ result = [];
 1736+ }
 1737+
 1738+ if ( Expr.preFilter[ type ] ) {
 1739+ match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
 1740+
 1741+ if ( !match ) {
 1742+ anyFound = found = true;
 1743+ } else if ( match === true ) {
 1744+ continue;
 1745+ }
 1746+ }
 1747+
 1748+ if ( match ) {
 1749+ for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
 1750+ if ( item ) {
 1751+ found = filter( item, match, i, curLoop );
 1752+ var pass = not ^ !!found;
 1753+
 1754+ if ( inplace && found != null ) {
 1755+ if ( pass ) {
 1756+ anyFound = true;
 1757+ } else {
 1758+ curLoop[i] = false;
 1759+ }
 1760+ } else if ( pass ) {
 1761+ result.push( item );
 1762+ anyFound = true;
 1763+ }
 1764+ }
 1765+ }
 1766+ }
 1767+
 1768+ if ( found !== undefined ) {
 1769+ if ( !inplace ) {
 1770+ curLoop = result;
 1771+ }
 1772+
 1773+ expr = expr.replace( Expr.match[ type ], "" );
 1774+
 1775+ if ( !anyFound ) {
 1776+ return [];
 1777+ }
 1778+
 1779+ break;
 1780+ }
 1781+ }
 1782+ }
 1783+
 1784+ // Improper expression
 1785+ if ( expr == old ) {
 1786+ if ( anyFound == null ) {
 1787+ throw "Syntax error, unrecognized expression: " + expr;
 1788+ } else {
 1789+ break;
 1790+ }
 1791+ }
 1792+
 1793+ old = expr;
 1794+ }
 1795+
 1796+ return curLoop;
 1797+};
 1798+
 1799+var Expr = Sizzle.selectors = {
 1800+ order: [ "ID", "NAME", "TAG" ],
 1801+ match: {
 1802+ ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
 1803+ CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
 1804+ NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,
 1805+ ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
 1806+ TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,
 1807+ CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
 1808+ POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
 1809+ PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/
 1810+ },
 1811+ attrMap: {
 1812+ "class": "className",
 1813+ "for": "htmlFor"
 1814+ },
 1815+ attrHandle: {
 1816+ href: function(elem){
 1817+ return elem.getAttribute("href");
 1818+ }
 1819+ },
 1820+ relative: {
 1821+ "+": function(checkSet, part, isXML){
 1822+ var isPartStr = typeof part === "string",
 1823+ isTag = isPartStr && !/\W/.test(part),
 1824+ isPartStrNotTag = isPartStr && !isTag;
 1825+
 1826+ if ( isTag && !isXML ) {
 1827+ part = part.toUpperCase();
 1828+ }
 1829+
 1830+ for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
 1831+ if ( (elem = checkSet[i]) ) {
 1832+ while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
 1833+
 1834+ checkSet[i] = isPartStrNotTag || elem && elem.nodeName === part ?
 1835+ elem || false :
 1836+ elem === part;
 1837+ }
 1838+ }
 1839+
 1840+ if ( isPartStrNotTag ) {
 1841+ Sizzle.filter( part, checkSet, true );
 1842+ }
 1843+ },
 1844+ ">": function(checkSet, part, isXML){
 1845+ var isPartStr = typeof part === "string";
 1846+
 1847+ if ( isPartStr && !/\W/.test(part) ) {
 1848+ part = isXML ? part : part.toUpperCase();
 1849+
 1850+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 1851+ var elem = checkSet[i];
 1852+ if ( elem ) {
 1853+ var parent = elem.parentNode;
 1854+ checkSet[i] = parent.nodeName === part ? parent : false;
 1855+ }
 1856+ }
 1857+ } else {
 1858+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 1859+ var elem = checkSet[i];
 1860+ if ( elem ) {
 1861+ checkSet[i] = isPartStr ?
 1862+ elem.parentNode :
 1863+ elem.parentNode === part;
 1864+ }
 1865+ }
 1866+
 1867+ if ( isPartStr ) {
 1868+ Sizzle.filter( part, checkSet, true );
 1869+ }
 1870+ }
 1871+ },
 1872+ "": function(checkSet, part, isXML){
 1873+ var doneName = done++, checkFn = dirCheck;
 1874+
 1875+ if ( !part.match(/\W/) ) {
 1876+ var nodeCheck = part = isXML ? part : part.toUpperCase();
 1877+ checkFn = dirNodeCheck;
 1878+ }
 1879+
 1880+ checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
 1881+ },
 1882+ "~": function(checkSet, part, isXML){
 1883+ var doneName = done++, checkFn = dirCheck;
 1884+
 1885+ if ( typeof part === "string" && !part.match(/\W/) ) {
 1886+ var nodeCheck = part = isXML ? part : part.toUpperCase();
 1887+ checkFn = dirNodeCheck;
 1888+ }
 1889+
 1890+ checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
 1891+ }
 1892+ },
 1893+ find: {
 1894+ ID: function(match, context, isXML){
 1895+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
 1896+ var m = context.getElementById(match[1]);
 1897+ return m ? [m] : [];
 1898+ }
 1899+ },
 1900+ NAME: function(match, context, isXML){
 1901+ if ( typeof context.getElementsByName !== "undefined" ) {
 1902+ var ret = [], results = context.getElementsByName(match[1]);
 1903+
 1904+ for ( var i = 0, l = results.length; i < l; i++ ) {
 1905+ if ( results[i].getAttribute("name") === match[1] ) {
 1906+ ret.push( results[i] );
 1907+ }
 1908+ }
 1909+
 1910+ return ret.length === 0 ? null : ret;
 1911+ }
 1912+ },
 1913+ TAG: function(match, context){
 1914+ return context.getElementsByTagName(match[1]);
 1915+ }
 1916+ },
 1917+ preFilter: {
 1918+ CLASS: function(match, curLoop, inplace, result, not, isXML){
 1919+ match = " " + match[1].replace(/\\/g, "") + " ";
 1920+
 1921+ if ( isXML ) {
 1922+ return match;
 1923+ }
 1924+
 1925+ for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
 1926+ if ( elem ) {
 1927+ if ( not ^ (elem.className && (" " + elem.className + " ").indexOf(match) >= 0) ) {
 1928+ if ( !inplace )
 1929+ result.push( elem );
 1930+ } else if ( inplace ) {
 1931+ curLoop[i] = false;
 1932+ }
 1933+ }
 1934+ }
 1935+
 1936+ return false;
 1937+ },
 1938+ ID: function(match){
 1939+ return match[1].replace(/\\/g, "");
 1940+ },
 1941+ TAG: function(match, curLoop){
 1942+ for ( var i = 0; curLoop[i] === false; i++ ){}
 1943+ return curLoop[i] && isXML(curLoop[i]) ? match[1] : match[1].toUpperCase();
 1944+ },
 1945+ CHILD: function(match){
 1946+ if ( match[1] == "nth" ) {
 1947+ // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
 1948+ var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
 1949+ match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
 1950+ !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
 1951+
 1952+ // calculate the numbers (first)n+(last) including if they are negative
 1953+ match[2] = (test[1] + (test[2] || 1)) - 0;
 1954+ match[3] = test[3] - 0;
 1955+ }
 1956+
 1957+ // TODO: Move to normal caching system
 1958+ match[0] = done++;
 1959+
 1960+ return match;
 1961+ },
 1962+ ATTR: function(match, curLoop, inplace, result, not, isXML){
 1963+ var name = match[1].replace(/\\/g, "");
 1964+
 1965+ if ( !isXML && Expr.attrMap[name] ) {
 1966+ match[1] = Expr.attrMap[name];
 1967+ }
 1968+
 1969+ if ( match[2] === "~=" ) {
 1970+ match[4] = " " + match[4] + " ";
 1971+ }
 1972+
 1973+ return match;
 1974+ },
 1975+ PSEUDO: function(match, curLoop, inplace, result, not){
 1976+ if ( match[1] === "not" ) {
 1977+ // If we're dealing with a complex expression, or a simple one
 1978+ if ( match[3].match(chunker).length > 1 || /^\w/.test(match[3]) ) {
 1979+ match[3] = Sizzle(match[3], null, null, curLoop);
 1980+ } else {
 1981+ var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
 1982+ if ( !inplace ) {
 1983+ result.push.apply( result, ret );
 1984+ }
 1985+ return false;
 1986+ }
 1987+ } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
 1988+ return true;
 1989+ }
 1990+
 1991+ return match;
 1992+ },
 1993+ POS: function(match){
 1994+ match.unshift( true );
 1995+ return match;
 1996+ }
 1997+ },
 1998+ filters: {
 1999+ enabled: function(elem){
 2000+ return elem.disabled === false && elem.type !== "hidden";
 2001+ },
 2002+ disabled: function(elem){
 2003+ return elem.disabled === true;
 2004+ },
 2005+ checked: function(elem){
 2006+ return elem.checked === true;
 2007+ },
 2008+ selected: function(elem){
 2009+ // Accessing this property makes selected-by-default
 2010+ // options in Safari work properly
 2011+ elem.parentNode.selectedIndex;
 2012+ return elem.selected === true;
 2013+ },
 2014+ parent: function(elem){
 2015+ return !!elem.firstChild;
 2016+ },
 2017+ empty: function(elem){
 2018+ return !elem.firstChild;
 2019+ },
 2020+ has: function(elem, i, match){
 2021+ return !!Sizzle( match[3], elem ).length;
 2022+ },
 2023+ header: function(elem){
 2024+ return /h\d/i.test( elem.nodeName );
 2025+ },
 2026+ text: function(elem){
 2027+ return "text" === elem.type;
 2028+ },
 2029+ radio: function(elem){
 2030+ return "radio" === elem.type;
 2031+ },
 2032+ checkbox: function(elem){
 2033+ return "checkbox" === elem.type;
 2034+ },
 2035+ file: function(elem){
 2036+ return "file" === elem.type;
 2037+ },
 2038+ password: function(elem){
 2039+ return "password" === elem.type;
 2040+ },
 2041+ submit: function(elem){
 2042+ return "submit" === elem.type;
 2043+ },
 2044+ image: function(elem){
 2045+ return "image" === elem.type;
 2046+ },
 2047+ reset: function(elem){
 2048+ return "reset" === elem.type;
 2049+ },
 2050+ button: function(elem){
 2051+ return "button" === elem.type || elem.nodeName.toUpperCase() === "BUTTON";
 2052+ },
 2053+ input: function(elem){
 2054+ return /input|select|textarea|button/i.test(elem.nodeName);
 2055+ }
 2056+ },
 2057+ setFilters: {
 2058+ first: function(elem, i){
 2059+ return i === 0;
 2060+ },
 2061+ last: function(elem, i, match, array){
 2062+ return i === array.length - 1;
 2063+ },
 2064+ even: function(elem, i){
 2065+ return i % 2 === 0;
 2066+ },
 2067+ odd: function(elem, i){
 2068+ return i % 2 === 1;
 2069+ },
 2070+ lt: function(elem, i, match){
 2071+ return i < match[3] - 0;
 2072+ },
 2073+ gt: function(elem, i, match){
 2074+ return i > match[3] - 0;
 2075+ },
 2076+ nth: function(elem, i, match){
 2077+ return match[3] - 0 == i;
 2078+ },
 2079+ eq: function(elem, i, match){
 2080+ return match[3] - 0 == i;
 2081+ }
 2082+ },
 2083+ filter: {
 2084+ PSEUDO: function(elem, match, i, array){
 2085+ var name = match[1], filter = Expr.filters[ name ];
 2086+
 2087+ if ( filter ) {
 2088+ return filter( elem, i, match, array );
 2089+ } else if ( name === "contains" ) {
 2090+ return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;
 2091+ } else if ( name === "not" ) {
 2092+ var not = match[3];
 2093+
 2094+ for ( var i = 0, l = not.length; i < l; i++ ) {
 2095+ if ( not[i] === elem ) {
 2096+ return false;
 2097+ }
 2098+ }
 2099+
 2100+ return true;
 2101+ }
 2102+ },
 2103+ CHILD: function(elem, match){
 2104+ var type = match[1], node = elem;
 2105+ switch (type) {
 2106+ case 'only':
 2107+ case 'first':
 2108+ while (node = node.previousSibling) {
 2109+ if ( node.nodeType === 1 ) return false;
 2110+ }
 2111+ if ( type == 'first') return true;
 2112+ node = elem;
 2113+ case 'last':
 2114+ while (node = node.nextSibling) {
 2115+ if ( node.nodeType === 1 ) return false;
 2116+ }
 2117+ return true;
 2118+ case 'nth':
 2119+ var first = match[2], last = match[3];
 2120+
 2121+ if ( first == 1 && last == 0 ) {
 2122+ return true;
 2123+ }
 2124+
 2125+ var doneName = match[0],
 2126+ parent = elem.parentNode;
 2127+
 2128+ if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
 2129+ var count = 0;
 2130+ for ( node = parent.firstChild; node; node = node.nextSibling ) {
 2131+ if ( node.nodeType === 1 ) {
 2132+ node.nodeIndex = ++count;
 2133+ }
 2134+ }
 2135+ parent.sizcache = doneName;
 2136+ }
 2137+
 2138+ var diff = elem.nodeIndex - last;
 2139+ if ( first == 0 ) {
 2140+ return diff == 0;
 2141+ } else {
 2142+ return ( diff % first == 0 && diff / first >= 0 );
 2143+ }
 2144+ }
 2145+ },
 2146+ ID: function(elem, match){
 2147+ return elem.nodeType === 1 && elem.getAttribute("id") === match;
 2148+ },
 2149+ TAG: function(elem, match){
 2150+ return (match === "*" && elem.nodeType === 1) || elem.nodeName === match;
 2151+ },
 2152+ CLASS: function(elem, match){
 2153+ return (" " + (elem.className || elem.getAttribute("class")) + " ")
 2154+ .indexOf( match ) > -1;
 2155+ },
 2156+ ATTR: function(elem, match){
 2157+ var name = match[1],
 2158+ result = Expr.attrHandle[ name ] ?
 2159+ Expr.attrHandle[ name ]( elem ) :
 2160+ elem[ name ] != null ?
 2161+ elem[ name ] :
 2162+ elem.getAttribute( name ),
 2163+ value = result + "",
 2164+ type = match[2],
 2165+ check = match[4];
 2166+
 2167+ return result == null ?
 2168+ type === "!=" :
 2169+ type === "=" ?
 2170+ value === check :
 2171+ type === "*=" ?
 2172+ value.indexOf(check) >= 0 :
 2173+ type === "~=" ?
 2174+ (" " + value + " ").indexOf(check) >= 0 :
 2175+ !check ?
 2176+ value && result !== false :
 2177+ type === "!=" ?
 2178+ value != check :
 2179+ type === "^=" ?
 2180+ value.indexOf(check) === 0 :
 2181+ type === "$=" ?
 2182+ value.substr(value.length - check.length) === check :
 2183+ type === "|=" ?
 2184+ value === check || value.substr(0, check.length + 1) === check + "-" :
 2185+ false;
 2186+ },
 2187+ POS: function(elem, match, i, array){
 2188+ var name = match[2], filter = Expr.setFilters[ name ];
 2189+
 2190+ if ( filter ) {
 2191+ return filter( elem, i, match, array );
 2192+ }
 2193+ }
 2194+ }
 2195+};
 2196+
 2197+var origPOS = Expr.match.POS;
 2198+
 2199+for ( var type in Expr.match ) {
 2200+ Expr.match[ type ] = RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
 2201+}
 2202+
 2203+var makeArray = function(array, results) {
 2204+ array = Array.prototype.slice.call( array );
 2205+
 2206+ if ( results ) {
 2207+ results.push.apply( results, array );
 2208+ return results;
 2209+ }
 2210+
 2211+ return array;
 2212+};
 2213+
 2214+// Perform a simple check to determine if the browser is capable of
 2215+// converting a NodeList to an array using builtin methods.
 2216+try {
 2217+ Array.prototype.slice.call( document.documentElement.childNodes );
 2218+
 2219+// Provide a fallback method if it does not work
 2220+} catch(e){
 2221+ makeArray = function(array, results) {
 2222+ var ret = results || [];
 2223+
 2224+ if ( toString.call(array) === "[object Array]" ) {
 2225+ Array.prototype.push.apply( ret, array );
 2226+ } else {
 2227+ if ( typeof array.length === "number" ) {
 2228+ for ( var i = 0, l = array.length; i < l; i++ ) {
 2229+ ret.push( array[i] );
 2230+ }
 2231+ } else {
 2232+ for ( var i = 0; array[i]; i++ ) {
 2233+ ret.push( array[i] );
 2234+ }
 2235+ }
 2236+ }
 2237+
 2238+ return ret;
 2239+ };
 2240+}
 2241+
 2242+var sortOrder;
 2243+
 2244+if ( document.documentElement.compareDocumentPosition ) {
 2245+ sortOrder = function( a, b ) {
 2246+ var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
 2247+ if ( ret === 0 ) {
 2248+ hasDuplicate = true;
 2249+ }
 2250+ return ret;
 2251+ };
 2252+} else if ( "sourceIndex" in document.documentElement ) {
 2253+ sortOrder = function( a, b ) {
 2254+ var ret = a.sourceIndex - b.sourceIndex;
 2255+ if ( ret === 0 ) {
 2256+ hasDuplicate = true;
 2257+ }
 2258+ return ret;
 2259+ };
 2260+} else if ( document.createRange ) {
 2261+ sortOrder = function( a, b ) {
 2262+ var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
 2263+ aRange.selectNode(a);
 2264+ aRange.collapse(true);
 2265+ bRange.selectNode(b);
 2266+ bRange.collapse(true);
 2267+ var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
 2268+ if ( ret === 0 ) {
 2269+ hasDuplicate = true;
 2270+ }
 2271+ return ret;
 2272+ };
 2273+}
 2274+
 2275+// Check to see if the browser returns elements by name when
 2276+// querying by getElementById (and provide a workaround)
 2277+(function(){
 2278+ // We're going to inject a fake input element with a specified name
 2279+ var form = document.createElement("form"),
 2280+ id = "script" + (new Date).getTime();
 2281+ form.innerHTML = "<input name='" + id + "'/>";
 2282+
 2283+ // Inject it into the root element, check its status, and remove it quickly
 2284+ var root = document.documentElement;
 2285+ root.insertBefore( form, root.firstChild );
 2286+
 2287+ // The workaround has to do additional checks after a getElementById
 2288+ // Which slows things down for other browsers (hence the branching)
 2289+ if ( !!document.getElementById( id ) ) {
 2290+ Expr.find.ID = function(match, context, isXML){
 2291+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
 2292+ var m = context.getElementById(match[1]);
 2293+ return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
 2294+ }
 2295+ };
 2296+
 2297+ Expr.filter.ID = function(elem, match){
 2298+ var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
 2299+ return elem.nodeType === 1 && node && node.nodeValue === match;
 2300+ };
 2301+ }
 2302+
 2303+ root.removeChild( form );
 2304+})();
 2305+
 2306+(function(){
 2307+ // Check to see if the browser returns only elements
 2308+ // when doing getElementsByTagName("*")
 2309+
 2310+ // Create a fake element
 2311+ var div = document.createElement("div");
 2312+ div.appendChild( document.createComment("") );
 2313+
 2314+ // Make sure no comments are found
 2315+ if ( div.getElementsByTagName("*").length > 0 ) {
 2316+ Expr.find.TAG = function(match, context){
 2317+ var results = context.getElementsByTagName(match[1]);
 2318+
 2319+ // Filter out possible comments
 2320+ if ( match[1] === "*" ) {
 2321+ var tmp = [];
 2322+
 2323+ for ( var i = 0; results[i]; i++ ) {
 2324+ if ( results[i].nodeType === 1 ) {
 2325+ tmp.push( results[i] );
 2326+ }
 2327+ }
 2328+
 2329+ results = tmp;
 2330+ }
 2331+
 2332+ return results;
 2333+ };
 2334+ }
 2335+
 2336+ // Check to see if an attribute returns normalized href attributes
 2337+ div.innerHTML = "<a href='#'></a>";
 2338+ if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
 2339+ div.firstChild.getAttribute("href") !== "#" ) {
 2340+ Expr.attrHandle.href = function(elem){
 2341+ return elem.getAttribute("href", 2);
 2342+ };
 2343+ }
 2344+})();
 2345+
 2346+if ( document.querySelectorAll ) (function(){
 2347+ var oldSizzle = Sizzle, div = document.createElement("div");
 2348+ div.innerHTML = "<p class='TEST'></p>";
 2349+
 2350+ // Safari can't handle uppercase or unicode characters when
 2351+ // in quirks mode.
 2352+ if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
 2353+ return;
 2354+ }
 2355+
 2356+ Sizzle = function(query, context, extra, seed){
 2357+ context = context || document;
 2358+
 2359+ // Only use querySelectorAll on non-XML documents
 2360+ // (ID selectors don't work in non-HTML documents)
 2361+ if ( !seed && context.nodeType === 9 && !isXML(context) ) {
 2362+ try {
 2363+ return makeArray( context.querySelectorAll(query), extra );
 2364+ } catch(e){}
 2365+ }
 2366+
 2367+ return oldSizzle(query, context, extra, seed);
 2368+ };
 2369+
 2370+ Sizzle.find = oldSizzle.find;
 2371+ Sizzle.filter = oldSizzle.filter;
 2372+ Sizzle.selectors = oldSizzle.selectors;
 2373+ Sizzle.matches = oldSizzle.matches;
 2374+})();
 2375+
 2376+if ( document.getElementsByClassName && document.documentElement.getElementsByClassName ) (function(){
 2377+ var div = document.createElement("div");
 2378+ div.innerHTML = "<div class='test e'></div><div class='test'></div>";
 2379+
 2380+ // Opera can't find a second classname (in 9.6)
 2381+ if ( div.getElementsByClassName("e").length === 0 )
 2382+ return;
 2383+
 2384+ // Safari caches class attributes, doesn't catch changes (in 3.2)
 2385+ div.lastChild.className = "e";
 2386+
 2387+ if ( div.getElementsByClassName("e").length === 1 )
 2388+ return;
 2389+
 2390+ Expr.order.splice(1, 0, "CLASS");
 2391+ Expr.find.CLASS = function(match, context, isXML) {
 2392+ if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
 2393+ return context.getElementsByClassName(match[1]);
 2394+ }
 2395+ };
 2396+})();
 2397+
 2398+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
 2399+ var sibDir = dir == "previousSibling" && !isXML;
 2400+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 2401+ var elem = checkSet[i];
 2402+ if ( elem ) {
 2403+ if ( sibDir && elem.nodeType === 1 ){
 2404+ elem.sizcache = doneName;
 2405+ elem.sizset = i;
 2406+ }
 2407+ elem = elem[dir];
 2408+ var match = false;
 2409+
 2410+ while ( elem ) {
 2411+ if ( elem.sizcache === doneName ) {
 2412+ match = checkSet[elem.sizset];
 2413+ break;
 2414+ }
 2415+
 2416+ if ( elem.nodeType === 1 && !isXML ){
 2417+ elem.sizcache = doneName;
 2418+ elem.sizset = i;
 2419+ }
 2420+
 2421+ if ( elem.nodeName === cur ) {
 2422+ match = elem;
 2423+ break;
 2424+ }
 2425+
 2426+ elem = elem[dir];
 2427+ }
 2428+
 2429+ checkSet[i] = match;
 2430+ }
 2431+ }
 2432+}
 2433+
 2434+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
 2435+ var sibDir = dir == "previousSibling" && !isXML;
 2436+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 2437+ var elem = checkSet[i];
 2438+ if ( elem ) {
 2439+ if ( sibDir && elem.nodeType === 1 ) {
 2440+ elem.sizcache = doneName;
 2441+ elem.sizset = i;
 2442+ }
 2443+ elem = elem[dir];
 2444+ var match = false;
 2445+
 2446+ while ( elem ) {
 2447+ if ( elem.sizcache === doneName ) {
 2448+ match = checkSet[elem.sizset];
 2449+ break;
 2450+ }
 2451+
 2452+ if ( elem.nodeType === 1 ) {
 2453+ if ( !isXML ) {
 2454+ elem.sizcache = doneName;
 2455+ elem.sizset = i;
 2456+ }
 2457+ if ( typeof cur !== "string" ) {
 2458+ if ( elem === cur ) {
 2459+ match = true;
 2460+ break;
 2461+ }
 2462+
 2463+ } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
 2464+ match = elem;
 2465+ break;
 2466+ }
 2467+ }
 2468+
 2469+ elem = elem[dir];
 2470+ }
 2471+
 2472+ checkSet[i] = match;
 2473+ }
 2474+ }
 2475+}
 2476+
 2477+var contains = document.compareDocumentPosition ? function(a, b){
 2478+ return a.compareDocumentPosition(b) & 16;
 2479+} : function(a, b){
 2480+ return a !== b && (a.contains ? a.contains(b) : true);
 2481+};
 2482+
 2483+var isXML = function(elem){
 2484+ return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
 2485+ !!elem.ownerDocument && isXML( elem.ownerDocument );
 2486+};
 2487+
 2488+var posProcess = function(selector, context){
 2489+ var tmpSet = [], later = "", match,
 2490+ root = context.nodeType ? [context] : context;
 2491+
 2492+ // Position selectors must be done after the filter
 2493+ // And so must :not(positional) so we move all PSEUDOs to the end
 2494+ while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
 2495+ later += match[0];
 2496+ selector = selector.replace( Expr.match.PSEUDO, "" );
 2497+ }
 2498+
 2499+ selector = Expr.relative[selector] ? selector + "*" : selector;
 2500+
 2501+ for ( var i = 0, l = root.length; i < l; i++ ) {
 2502+ Sizzle( selector, root[i], tmpSet );
 2503+ }
 2504+
 2505+ return Sizzle.filter( later, tmpSet );
 2506+};
 2507+
 2508+// EXPOSE
 2509+jQuery.find = Sizzle;
 2510+jQuery.filter = Sizzle.filter;
 2511+jQuery.expr = Sizzle.selectors;
 2512+jQuery.expr[":"] = jQuery.expr.filters;
 2513+
 2514+Sizzle.selectors.filters.hidden = function(elem){
 2515+ return elem.offsetWidth === 0 || elem.offsetHeight === 0;
 2516+};
 2517+
 2518+Sizzle.selectors.filters.visible = function(elem){
 2519+ return elem.offsetWidth > 0 || elem.offsetHeight > 0;
 2520+};
 2521+
 2522+Sizzle.selectors.filters.animated = function(elem){
 2523+ return jQuery.grep(jQuery.timers, function(fn){
 2524+ return elem === fn.elem;
 2525+ }).length;
 2526+};
 2527+
 2528+jQuery.multiFilter = function( expr, elems, not ) {
 2529+ if ( not ) {
 2530+ expr = ":not(" + expr + ")";
 2531+ }
 2532+
 2533+ return Sizzle.matches(expr, elems);
 2534+};
 2535+
 2536+jQuery.dir = function( elem, dir ){
 2537+ var matched = [], cur = elem[dir];
 2538+ while ( cur && cur != document ) {
 2539+ if ( cur.nodeType == 1 )
 2540+ matched.push( cur );
 2541+ cur = cur[dir];
 2542+ }
 2543+ return matched;
 2544+};
 2545+
 2546+jQuery.nth = function(cur, result, dir, elem){
 2547+ result = result || 1;
 2548+ var num = 0;
 2549+
 2550+ for ( ; cur; cur = cur[dir] )
 2551+ if ( cur.nodeType == 1 && ++num == result )
 2552+ break;
 2553+
 2554+ return cur;
 2555+};
 2556+
 2557+jQuery.sibling = function(n, elem){
 2558+ var r = [];
 2559+
 2560+ for ( ; n; n = n.nextSibling ) {
 2561+ if ( n.nodeType == 1 && n != elem )
 2562+ r.push( n );
 2563+ }
 2564+
 2565+ return r;
 2566+};
 2567+
 2568+return;
 2569+
 2570+window.Sizzle = Sizzle;
 2571+
 2572+})();
 2573+/*
 2574+ * A number of helper functions used for managing events.
 2575+ * Many of the ideas behind this code originated from
 2576+ * Dean Edwards' addEvent library.
 2577+ */
 2578+jQuery.event = {
 2579+
 2580+ // Bind an event to an element
 2581+ // Original by Dean Edwards
 2582+ add: function(elem, types, handler, data) {
 2583+ if ( elem.nodeType == 3 || elem.nodeType == 8 )
 2584+ return;
 2585+
 2586+ // For whatever reason, IE has trouble passing the window object
 2587+ // around, causing it to be cloned in the process
 2588+ if ( elem.setInterval && elem != window )
 2589+ elem = window;
 2590+
 2591+ // Make sure that the function being executed has a unique ID
 2592+ if ( !handler.guid )
 2593+ handler.guid = this.guid++;
 2594+
 2595+ // if data is passed, bind to handler
 2596+ if ( data !== undefined ) {
 2597+ // Create temporary function pointer to original handler
 2598+ var fn = handler;
 2599+
 2600+ // Create unique handler function, wrapped around original handler
 2601+ handler = this.proxy( fn );
 2602+
 2603+ // Store data in unique handler
 2604+ handler.data = data;
 2605+ }
 2606+
 2607+ // Init the element's event structure
 2608+ var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
 2609+ handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
 2610+ // Handle the second event of a trigger and when
 2611+ // an event is called after a page has unloaded
 2612+ return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
 2613+ jQuery.event.handle.apply(arguments.callee.elem, arguments) :
 2614+ undefined;
 2615+ });
 2616+ // Add elem as a property of the handle function
 2617+ // This is to prevent a memory leak with non-native
 2618+ // event in IE.
 2619+ handle.elem = elem;
 2620+
 2621+ // Handle multiple events separated by a space
 2622+ // jQuery(...).bind("mouseover mouseout", fn);
 2623+ jQuery.each(types.split(/\s+/), function(index, type) {
 2624+ // Namespaced event handlers
 2625+ var namespaces = type.split(".");
 2626+ type = namespaces.shift();
 2627+ handler.type = namespaces.slice().sort().join(".");
 2628+
 2629+ // Get the current list of functions bound to this event
 2630+ var handlers = events[type];
 2631+
 2632+ if ( jQuery.event.specialAll[type] )
 2633+ jQuery.event.specialAll[type].setup.call(elem, data, namespaces);
 2634+
 2635+ // Init the event handler queue
 2636+ if (!handlers) {
 2637+ handlers = events[type] = {};
 2638+
 2639+ // Check for a special event handler
 2640+ // Only use addEventListener/attachEvent if the special
 2641+ // events handler returns false
 2642+ if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem, data, namespaces) === false ) {
 2643+ // Bind the global event handler to the element
 2644+ if (elem.addEventListener)
 2645+ elem.addEventListener(type, handle, false);
 2646+ else if (elem.attachEvent)
 2647+ elem.attachEvent("on" + type, handle);
 2648+ }
 2649+ }
 2650+
 2651+ // Add the function to the element's handler list
 2652+ handlers[handler.guid] = handler;
 2653+
 2654+ // Keep track of which events have been used, for global triggering
 2655+ jQuery.event.global[type] = true;
 2656+ });
 2657+
 2658+ // Nullify elem to prevent memory leaks in IE
 2659+ elem = null;
 2660+ },
 2661+
 2662+ guid: 1,
 2663+ global: {},
 2664+
 2665+ // Detach an event or set of events from an element
 2666+ remove: function(elem, types, handler) {
 2667+ // don't do events on text and comment nodes
 2668+ if ( elem.nodeType == 3 || elem.nodeType == 8 )
 2669+ return;
 2670+
 2671+ var events = jQuery.data(elem, "events"), ret, index;
 2672+
 2673+ if ( events ) {
 2674+ // Unbind all events for the element
 2675+ if ( types === undefined || (typeof types === "string" && types.charAt(0) == ".") )
 2676+ for ( var type in events )
 2677+ this.remove( elem, type + (types || "") );
 2678+ else {
 2679+ // types is actually an event object here
 2680+ if ( types.type ) {
 2681+ handler = types.handler;
 2682+ types = types.type;
 2683+ }
 2684+
 2685+ // Handle multiple events seperated by a space
 2686+ // jQuery(...).unbind("mouseover mouseout", fn);
 2687+ jQuery.each(types.split(/\s+/), function(index, type){
 2688+ // Namespaced event handlers
 2689+ var namespaces = type.split(".");
 2690+ type = namespaces.shift();
 2691+ var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
 2692+
 2693+ if ( events[type] ) {
 2694+ // remove the given handler for the given type
 2695+ if ( handler )
 2696+ delete events[type][handler.guid];
 2697+
 2698+ // remove all handlers for the given type
 2699+ else
 2700+ for ( var handle in events[type] )
 2701+ // Handle the removal of namespaced events
 2702+ if ( namespace.test(events[type][handle].type) )
 2703+ delete events[type][handle];
 2704+
 2705+ if ( jQuery.event.specialAll[type] )
 2706+ jQuery.event.specialAll[type].teardown.call(elem, namespaces);
 2707+
 2708+ // remove generic event handler if no more handlers exist
 2709+ for ( ret in events[type] ) break;
 2710+ if ( !ret ) {
 2711+ if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem, namespaces) === false ) {
 2712+ if (elem.removeEventListener)
 2713+ elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
 2714+ else if (elem.detachEvent)
 2715+ elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
 2716+ }
 2717+ ret = null;
 2718+ delete events[type];
 2719+ }
 2720+ }
 2721+ });
 2722+ }
 2723+
 2724+ // Remove the expando if it's no longer used
 2725+ for ( ret in events ) break;
 2726+ if ( !ret ) {
 2727+ var handle = jQuery.data( elem, "handle" );
 2728+ if ( handle ) handle.elem = null;
 2729+ jQuery.removeData( elem, "events" );
 2730+ jQuery.removeData( elem, "handle" );
 2731+ }
 2732+ }
 2733+ },
 2734+
 2735+ // bubbling is internal
 2736+ trigger: function( event, data, elem, bubbling ) {
 2737+ // Event object or event type
 2738+ var type = event.type || event;
 2739+
 2740+ if( !bubbling ){
 2741+ event = typeof event === "object" ?
 2742+ // jQuery.Event object
 2743+ event[expando] ? event :
 2744+ // Object literal
 2745+ jQuery.extend( jQuery.Event(type), event ) :
 2746+ // Just the event type (string)
 2747+ jQuery.Event(type);
 2748+
 2749+ if ( type.indexOf("!") >= 0 ) {
 2750+ event.type = type = type.slice(0, -1);
 2751+ event.exclusive = true;
 2752+ }
 2753+
 2754+ // Handle a global trigger
 2755+ if ( !elem ) {
 2756+ // Don't bubble custom events when global (to avoid too much overhead)
 2757+ event.stopPropagation();
 2758+ // Only trigger if we've ever bound an event for it
 2759+ if ( this.global[type] )
 2760+ jQuery.each( jQuery.cache, function(){
 2761+ if ( this.events && this.events[type] )
 2762+ jQuery.event.trigger( event, data, this.handle.elem );
 2763+ });
 2764+ }
 2765+
 2766+ // Handle triggering a single element
 2767+
 2768+ // don't do events on text and comment nodes
 2769+ if ( !elem || elem.nodeType == 3 || elem.nodeType == 8 )
 2770+ return undefined;
 2771+
 2772+ // Clean up in case it is reused
 2773+ event.result = undefined;
 2774+ event.target = elem;
 2775+
 2776+ // Clone the incoming data, if any
 2777+ data = jQuery.makeArray(data);
 2778+ data.unshift( event );
 2779+ }
 2780+
 2781+ event.currentTarget = elem;
 2782+
 2783+ // Trigger the event, it is assumed that "handle" is a function
 2784+ var handle = jQuery.data(elem, "handle");
 2785+ if ( handle )
 2786+ handle.apply( elem, data );
 2787+
 2788+ // Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
 2789+ if ( (!elem[type] || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
 2790+ event.result = false;
 2791+
 2792+ // Trigger the native events (except for clicks on links)
 2793+ if ( !bubbling && elem[type] && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
 2794+ this.triggered = true;
 2795+ try {
 2796+ elem[ type ]();
 2797+ // prevent IE from throwing an error for some hidden elements
 2798+ } catch (e) {}
 2799+ }
 2800+
 2801+ this.triggered = false;
 2802+
 2803+ if ( !event.isPropagationStopped() ) {
 2804+ var parent = elem.parentNode || elem.ownerDocument;
 2805+ if ( parent )
 2806+ jQuery.event.trigger(event, data, parent, true);
 2807+ }
 2808+ },
 2809+
 2810+ handle: function(event) {
 2811+ // returned undefined or false
 2812+ var all, handlers;
 2813+
 2814+ event = arguments[0] = jQuery.event.fix( event || window.event );
 2815+ event.currentTarget = this;
 2816+
 2817+ // Namespaced event handlers
 2818+ var namespaces = event.type.split(".");
 2819+ event.type = namespaces.shift();
 2820+
 2821+ // Cache this now, all = true means, any handler
 2822+ all = !namespaces.length && !event.exclusive;
 2823+
 2824+ var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
 2825+
 2826+ handlers = ( jQuery.data(this, "events") || {} )[event.type];
 2827+
 2828+ for ( var j in handlers ) {
 2829+ var handler = handlers[j];
 2830+
 2831+ // Filter the functions by class
 2832+ if ( all || namespace.test(handler.type) ) {
 2833+ // Pass in a reference to the handler function itself
 2834+ // So that we can later remove it
 2835+ event.handler = handler;
 2836+ event.data = handler.data;
 2837+
 2838+ var ret = handler.apply(this, arguments);
 2839+
 2840+ if( ret !== undefined ){
 2841+ event.result = ret;
 2842+ if ( ret === false ) {
 2843+ event.preventDefault();
 2844+ event.stopPropagation();
 2845+ }
 2846+ }
 2847+
 2848+ if( event.isImmediatePropagationStopped() )
 2849+ break;
 2850+
 2851+ }
 2852+ }
 2853+ },
 2854+
 2855+ 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(" "),
 2856+
 2857+ fix: function(event) {
 2858+ if ( event[expando] )
 2859+ return event;
 2860+
 2861+ // store a copy of the original event object
 2862+ // and "clone" to set read-only properties
 2863+ var originalEvent = event;
 2864+ event = jQuery.Event( originalEvent );
 2865+
 2866+ for ( var i = this.props.length, prop; i; ){
 2867+ prop = this.props[ --i ];
 2868+ event[ prop ] = originalEvent[ prop ];
 2869+ }
 2870+
 2871+ // Fix target property, if necessary
 2872+ if ( !event.target )
 2873+ event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
 2874+
 2875+ // check if target is a textnode (safari)
 2876+ if ( event.target.nodeType == 3 )
 2877+ event.target = event.target.parentNode;
 2878+
 2879+ // Add relatedTarget, if necessary
 2880+ if ( !event.relatedTarget && event.fromElement )
 2881+ event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;
 2882+
 2883+ // Calculate pageX/Y if missing and clientX/Y available
 2884+ if ( event.pageX == null && event.clientX != null ) {
 2885+ var doc = document.documentElement, body = document.body;
 2886+ event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
 2887+ event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
 2888+ }
 2889+
 2890+ // Add which for key events
 2891+ if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
 2892+ event.which = event.charCode || event.keyCode;
 2893+
 2894+ // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
 2895+ if ( !event.metaKey && event.ctrlKey )
 2896+ event.metaKey = event.ctrlKey;
 2897+
 2898+ // Add which for click: 1 == left; 2 == middle; 3 == right
 2899+ // Note: button is not normalized, so don't use it
 2900+ if ( !event.which && event.button )
 2901+ event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
 2902+
 2903+ return event;
 2904+ },
 2905+
 2906+ proxy: function( fn, proxy ){
 2907+ proxy = proxy || function(){ return fn.apply(this, arguments); };
 2908+ // Set the guid of unique handler to the same of original handler, so it can be removed
 2909+ proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
 2910+ // So proxy can be declared as an argument
 2911+ return proxy;
 2912+ },
 2913+
 2914+ special: {
 2915+ ready: {
 2916+ // Make sure the ready event is setup
 2917+ setup: bindReady,
 2918+ teardown: function() {}
 2919+ }
 2920+ },
 2921+
 2922+ specialAll: {
 2923+ live: {
 2924+ setup: function( selector, namespaces ){
 2925+ jQuery.event.add( this, namespaces[0], liveHandler );
 2926+ },
 2927+ teardown: function( namespaces ){
 2928+ if ( namespaces.length ) {
 2929+ var remove = 0, name = RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)");
 2930+
 2931+ jQuery.each( (jQuery.data(this, "events").live || {}), function(){
 2932+ if ( name.test(this.type) )
 2933+ remove++;
 2934+ });
 2935+
 2936+ if ( remove < 1 )
 2937+ jQuery.event.remove( this, namespaces[0], liveHandler );
 2938+ }
 2939+ }
 2940+ }
 2941+ }
 2942+};
 2943+
 2944+jQuery.Event = function( src ){
 2945+ // Allow instantiation without the 'new' keyword
 2946+ if( !this.preventDefault )
 2947+ return new jQuery.Event(src);
 2948+
 2949+ // Event object
 2950+ if( src && src.type ){
 2951+ this.originalEvent = src;
 2952+ this.type = src.type;
 2953+ // Event type
 2954+ }else
 2955+ this.type = src;
 2956+
 2957+ // timeStamp is buggy for some events on Firefox(#3843)
 2958+ // So we won't rely on the native value
 2959+ this.timeStamp = now();
 2960+
 2961+ // Mark it as fixed
 2962+ this[expando] = true;
 2963+};
 2964+
 2965+function returnFalse(){
 2966+ return false;
 2967+}
 2968+function returnTrue(){
 2969+ return true;
 2970+}
 2971+
 2972+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
 2973+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
 2974+jQuery.Event.prototype = {
 2975+ preventDefault: function() {
 2976+ this.isDefaultPrevented = returnTrue;
 2977+
 2978+ var e = this.originalEvent;
 2979+ if( !e )
 2980+ return;
 2981+ // if preventDefault exists run it on the original event
 2982+ if (e.preventDefault)
 2983+ e.preventDefault();
 2984+ // otherwise set the returnValue property of the original event to false (IE)
 2985+ e.returnValue = false;
 2986+ },
 2987+ stopPropagation: function() {
 2988+ this.isPropagationStopped = returnTrue;
 2989+
 2990+ var e = this.originalEvent;
 2991+ if( !e )
 2992+ return;
 2993+ // if stopPropagation exists run it on the original event
 2994+ if (e.stopPropagation)
 2995+ e.stopPropagation();
 2996+ // otherwise set the cancelBubble property of the original event to true (IE)
 2997+ e.cancelBubble = true;
 2998+ },
 2999+ stopImmediatePropagation:function(){
 3000+ this.isImmediatePropagationStopped = returnTrue;
 3001+ this.stopPropagation();
 3002+ },
 3003+ isDefaultPrevented: returnFalse,
 3004+ isPropagationStopped: returnFalse,
 3005+ isImmediatePropagationStopped: returnFalse
 3006+};
 3007+// Checks if an event happened on an element within another element
 3008+// Used in jQuery.event.special.mouseenter and mouseleave handlers
 3009+var withinElement = function(event) {
 3010+ // Check if mouse(over|out) are still within the same parent element
 3011+ var parent = event.relatedTarget;
 3012+ // Traverse up the tree
 3013+ while ( parent && parent != this )
 3014+ try { parent = parent.parentNode; }
 3015+ catch(e) { parent = this; }
 3016+
 3017+ if( parent != this ){
 3018+ // set the correct event type
 3019+ event.type = event.data;
 3020+ // handle event if we actually just moused on to a non sub-element
 3021+ jQuery.event.handle.apply( this, arguments );
 3022+ }
 3023+};
 3024+
 3025+jQuery.each({
 3026+ mouseover: 'mouseenter',
 3027+ mouseout: 'mouseleave'
 3028+}, function( orig, fix ){
 3029+ jQuery.event.special[ fix ] = {
 3030+ setup: function(){
 3031+ jQuery.event.add( this, orig, withinElement, fix );
 3032+ },
 3033+ teardown: function(){
 3034+ jQuery.event.remove( this, orig, withinElement );
 3035+ }
 3036+ };
 3037+});
 3038+
 3039+jQuery.fn.extend({
 3040+ bind: function( type, data, fn ) {
 3041+ return type == "unload" ? this.one(type, data, fn) : this.each(function(){
 3042+ jQuery.event.add( this, type, fn || data, fn && data );
 3043+ });
 3044+ },
 3045+
 3046+ one: function( type, data, fn ) {
 3047+ var one = jQuery.event.proxy( fn || data, function(event) {
 3048+ jQuery(this).unbind(event, one);
 3049+ return (fn || data).apply( this, arguments );
 3050+ });
 3051+ return this.each(function(){
 3052+ jQuery.event.add( this, type, one, fn && data);
 3053+ });
 3054+ },
 3055+
 3056+ unbind: function( type, fn ) {
 3057+ return this.each(function(){
 3058+ jQuery.event.remove( this, type, fn );
 3059+ });
 3060+ },
 3061+
 3062+ trigger: function( type, data ) {
 3063+ return this.each(function(){
 3064+ jQuery.event.trigger( type, data, this );
 3065+ });
 3066+ },
 3067+
 3068+ triggerHandler: function( type, data ) {
 3069+ if( this[0] ){
 3070+ var event = jQuery.Event(type);
 3071+ event.preventDefault();
 3072+ event.stopPropagation();
 3073+ jQuery.event.trigger( event, data, this[0] );
 3074+ return event.result;
 3075+ }
 3076+ },
 3077+
 3078+ toggle: function( fn ) {
 3079+ // Save reference to arguments for access in closure
 3080+ var args = arguments, i = 1;
 3081+
 3082+ // link all the functions, so any of them can unbind this click handler
 3083+ while( i < args.length )
 3084+ jQuery.event.proxy( fn, args[i++] );
 3085+
 3086+ return this.click( jQuery.event.proxy( fn, function(event) {
 3087+ // Figure out which function to execute
 3088+ this.lastToggle = ( this.lastToggle || 0 ) % i;
 3089+
 3090+ // Make sure that clicks stop
 3091+ event.preventDefault();
 3092+
 3093+ // and execute the function
 3094+ return args[ this.lastToggle++ ].apply( this, arguments ) || false;
 3095+ }));
 3096+ },
 3097+
 3098+ hover: function(fnOver, fnOut) {
 3099+ return this.mouseenter(fnOver).mouseleave(fnOut);
 3100+ },
 3101+
 3102+ ready: function(fn) {
 3103+ // Attach the listeners
 3104+ bindReady();
 3105+
 3106+ // If the DOM is already ready
 3107+ if ( jQuery.isReady )
 3108+ // Execute the function immediately
 3109+ fn.call( document, jQuery );
 3110+
 3111+ // Otherwise, remember the function for later
 3112+ else
 3113+ // Add the function to the wait list
 3114+ jQuery.readyList.push( fn );
 3115+
 3116+ return this;
 3117+ },
 3118+
 3119+ live: function( type, fn ){
 3120+ var proxy = jQuery.event.proxy( fn );
 3121+ proxy.guid += this.selector + type;
 3122+
 3123+ jQuery(document).bind( liveConvert(type, this.selector), this.selector, proxy );
 3124+
 3125+ return this;
 3126+ },
 3127+
 3128+ die: function( type, fn ){
 3129+ jQuery(document).unbind( liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type } : null );
 3130+ return this;
 3131+ }
 3132+});
 3133+
 3134+function liveHandler( event ){
 3135+ var check = RegExp("(^|\\.)" + event.type + "(\\.|$)"),
 3136+ stop = true,
 3137+ elems = [];
 3138+
 3139+ jQuery.each(jQuery.data(this, "events").live || [], function(i, fn){
 3140+ if ( check.test(fn.type) ) {
 3141+ var elem = jQuery(event.target).closest(fn.data)[0];
 3142+ if ( elem )
 3143+ elems.push({ elem: elem, fn: fn });
 3144+ }
 3145+ });
 3146+
 3147+ elems.sort(function(a,b) {
 3148+ return jQuery.data(a.elem, "closest") - jQuery.data(b.elem, "closest");
 3149+ });
 3150+
 3151+ jQuery.each(elems, function(){
 3152+ if ( this.fn.call(this.elem, event, this.fn.data) === false )
 3153+ return (stop = false);
 3154+ });
 3155+
 3156+ return stop;
 3157+}
 3158+
 3159+function liveConvert(type, selector){
 3160+ return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "|")].join(".");
 3161+}
 3162+
 3163+jQuery.extend({
 3164+ isReady: false,
 3165+ readyList: [],
 3166+ // Handle when the DOM is ready
 3167+ ready: function() {
 3168+ // Make sure that the DOM is not already loaded
 3169+ if ( !jQuery.isReady ) {
 3170+ // Remember that the DOM is ready
 3171+ jQuery.isReady = true;
 3172+
 3173+ // If there are functions bound, to execute
 3174+ if ( jQuery.readyList ) {
 3175+ // Execute all of them
 3176+ jQuery.each( jQuery.readyList, function(){
 3177+ this.call( document, jQuery );
 3178+ });
 3179+
 3180+ // Reset the list of functions
 3181+ jQuery.readyList = null;
 3182+ }
 3183+
 3184+ // Trigger any bound ready events
 3185+ jQuery(document).triggerHandler("ready");
 3186+ }
 3187+ }
 3188+});
 3189+
 3190+var readyBound = false;
 3191+
 3192+function bindReady(){
 3193+ if ( readyBound ) return;
 3194+ readyBound = true;
 3195+
 3196+ // Mozilla, Opera and webkit nightlies currently support this event
 3197+ if ( document.addEventListener ) {
 3198+ // Use the handy event callback
 3199+ document.addEventListener( "DOMContentLoaded", function(){
 3200+ document.removeEventListener( "DOMContentLoaded", arguments.callee, false );
 3201+ jQuery.ready();
 3202+ }, false );
 3203+
 3204+ // If IE event model is used
 3205+ } else if ( document.attachEvent ) {
 3206+ // ensure firing before onload,
 3207+ // maybe late but safe also for iframes
 3208+ document.attachEvent("onreadystatechange", function(){
 3209+ if ( document.readyState === "complete" ) {
 3210+ document.detachEvent( "onreadystatechange", arguments.callee );
 3211+ jQuery.ready();
 3212+ }
 3213+ });
 3214+
 3215+ // If IE and not an iframe
 3216+ // continually check to see if the document is ready
 3217+ if ( document.documentElement.doScroll && window == window.top ) (function(){
 3218+ if ( jQuery.isReady ) return;
 3219+
 3220+ try {
 3221+ // If IE is used, use the trick by Diego Perini
 3222+ // http://javascript.nwbox.com/IEContentLoaded/
 3223+ document.documentElement.doScroll("left");
 3224+ } catch( error ) {
 3225+ setTimeout( arguments.callee, 0 );
 3226+ return;
 3227+ }
 3228+
 3229+ // and execute any waiting functions
 3230+ jQuery.ready();
 3231+ })();
 3232+ }
 3233+
 3234+ // A fallback to window.onload, that will always work
 3235+ jQuery.event.add( window, "load", jQuery.ready );
 3236+}
 3237+
 3238+jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
 3239+ "mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
 3240+ "change,select,submit,keydown,keypress,keyup,error").split(","), function(i, name){
 3241+
 3242+ // Handle event binding
 3243+ jQuery.fn[name] = function(fn){
 3244+ return fn ? this.bind(name, fn) : this.trigger(name);
 3245+ };
 3246+});
 3247+
 3248+// Prevent memory leaks in IE
 3249+// And prevent errors on refresh with events like mouseover in other browsers
 3250+// Window isn't included so as not to unbind existing unload events
 3251+jQuery( window ).bind( 'unload', function(){
 3252+ for ( var id in jQuery.cache )
 3253+ // Skip the window
 3254+ if ( id != 1 && jQuery.cache[ id ].handle )
 3255+ jQuery.event.remove( jQuery.cache[ id ].handle.elem );
 3256+});
 3257+(function(){
 3258+
 3259+ jQuery.support = {};
 3260+
 3261+ var root = document.documentElement,
 3262+ script = document.createElement("script"),
 3263+ div = document.createElement("div"),
 3264+ id = "script" + (new Date).getTime();
 3265+
 3266+ div.style.display = "none";
 3267+ 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>';
 3268+
 3269+ var all = div.getElementsByTagName("*"),
 3270+ a = div.getElementsByTagName("a")[0];
 3271+
 3272+ // Can't get basic test support
 3273+ if ( !all || !all.length || !a ) {
 3274+ return;
 3275+ }
 3276+
 3277+ jQuery.support = {
 3278+ // IE strips leading whitespace when .innerHTML is used
 3279+ leadingWhitespace: div.firstChild.nodeType == 3,
 3280+
 3281+ // Make sure that tbody elements aren't automatically inserted
 3282+ // IE will insert them into empty tables
 3283+ tbody: !div.getElementsByTagName("tbody").length,
 3284+
 3285+ // Make sure that you can get all elements in an <object> element
 3286+ // IE 7 always returns no results
 3287+ objectAll: !!div.getElementsByTagName("object")[0]
 3288+ .getElementsByTagName("*").length,
 3289+
 3290+ // Make sure that link elements get serialized correctly by innerHTML
 3291+ // This requires a wrapper element in IE
 3292+ htmlSerialize: !!div.getElementsByTagName("link").length,
 3293+
 3294+ // Get the style information from getAttribute
 3295+ // (IE uses .cssText insted)
 3296+ style: /red/.test( a.getAttribute("style") ),
 3297+
 3298+ // Make sure that URLs aren't manipulated
 3299+ // (IE normalizes it by default)
 3300+ hrefNormalized: a.getAttribute("href") === "/a",
 3301+
 3302+ // Make sure that element opacity exists
 3303+ // (IE uses filter instead)
 3304+ opacity: a.style.opacity === "0.5",
 3305+
 3306+ // Verify style float existence
 3307+ // (IE uses styleFloat instead of cssFloat)
 3308+ cssFloat: !!a.style.cssFloat,
 3309+
 3310+ // Will be defined later
 3311+ scriptEval: false,
 3312+ noCloneEvent: true,
 3313+ boxModel: null
 3314+ };
 3315+
 3316+ script.type = "text/javascript";
 3317+ try {
 3318+ script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
 3319+ } catch(e){}
 3320+
 3321+ root.insertBefore( script, root.firstChild );
 3322+
 3323+ // Make sure that the execution of code works by injecting a script
 3324+ // tag with appendChild/createTextNode
 3325+ // (IE doesn't support this, fails, and uses .text instead)
 3326+ if ( window[ id ] ) {
 3327+ jQuery.support.scriptEval = true;
 3328+ delete window[ id ];
 3329+ }
 3330+
 3331+ root.removeChild( script );
 3332+
 3333+ if ( div.attachEvent && div.fireEvent ) {
 3334+ div.attachEvent("onclick", function(){
 3335+ // Cloning a node shouldn't copy over any
 3336+ // bound event handlers (IE does this)
 3337+ jQuery.support.noCloneEvent = false;
 3338+ div.detachEvent("onclick", arguments.callee);
 3339+ });
 3340+ div.cloneNode(true).fireEvent("onclick");
 3341+ }
 3342+
 3343+ // Figure out if the W3C box model works as expected
 3344+ // document.body must exist before we can do this
 3345+ jQuery(function(){
 3346+ var div = document.createElement("div");
 3347+ div.style.width = div.style.paddingLeft = "1px";
 3348+
 3349+ document.body.appendChild( div );
 3350+ jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
 3351+ document.body.removeChild( div ).style.display = 'none';
 3352+ });
 3353+})();
 3354+
 3355+var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat";
 3356+
 3357+jQuery.props = {
 3358+ "for": "htmlFor",
 3359+ "class": "className",
 3360+ "float": styleFloat,
 3361+ cssFloat: styleFloat,
 3362+ styleFloat: styleFloat,
 3363+ readonly: "readOnly",
 3364+ maxlength: "maxLength",
 3365+ cellspacing: "cellSpacing",
 3366+ rowspan: "rowSpan",
 3367+ tabindex: "tabIndex"
 3368+};
 3369+jQuery.fn.extend({
 3370+ // Keep a copy of the old load
 3371+ _load: jQuery.fn.load,
 3372+
 3373+ load: function( url, params, callback ) {
 3374+ if ( typeof url !== "string" )
 3375+ return this._load( url );
 3376+
 3377+ var off = url.indexOf(" ");
 3378+ if ( off >= 0 ) {
 3379+ var selector = url.slice(off, url.length);
 3380+ url = url.slice(0, off);
 3381+ }
 3382+
 3383+ // Default to a GET request
 3384+ var type = "GET";
 3385+
 3386+ // If the second parameter was provided
 3387+ if ( params )
 3388+ // If it's a function
 3389+ if ( jQuery.isFunction( params ) ) {
 3390+ // We assume that it's the callback
 3391+ callback = params;
 3392+ params = null;
 3393+
 3394+ // Otherwise, build a param string
 3395+ } else if( typeof params === "object" ) {
 3396+ params = jQuery.param( params );
 3397+ type = "POST";
 3398+ }
 3399+
 3400+ var self = this;
 3401+
 3402+ // Request the remote document
 3403+ jQuery.ajax({
 3404+ url: url,
 3405+ type: type,
 3406+ dataType: "html",
 3407+ data: params,
 3408+ complete: function(res, status){
 3409+ // If successful, inject the HTML into all the matched elements
 3410+ if ( status == "success" || status == "notmodified" )
 3411+ // See if a selector was specified
 3412+ self.html( selector ?
 3413+ // Create a dummy div to hold the results
 3414+ jQuery("<div/>")
 3415+ // inject the contents of the document in, removing the scripts
 3416+ // to avoid any 'Permission Denied' errors in IE
 3417+ .append(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))
 3418+
 3419+ // Locate the specified elements
 3420+ .find(selector) :
 3421+
 3422+ // If not, just inject the full result
 3423+ res.responseText );
 3424+
 3425+ if( callback )
 3426+ self.each( callback, [res.responseText, status, res] );
 3427+ }
 3428+ });
 3429+ return this;
 3430+ },
 3431+
 3432+ serialize: function() {
 3433+ return jQuery.param(this.serializeArray());
 3434+ },
 3435+ serializeArray: function() {
 3436+ return this.map(function(){
 3437+ return this.elements ? jQuery.makeArray(this.elements) : this;
 3438+ })
 3439+ .filter(function(){
 3440+ return this.name && !this.disabled &&
 3441+ (this.checked || /select|textarea/i.test(this.nodeName) ||
 3442+ /text|hidden|password|search/i.test(this.type));
 3443+ })
 3444+ .map(function(i, elem){
 3445+ var val = jQuery(this).val();
 3446+ return val == null ? null :
 3447+ jQuery.isArray(val) ?
 3448+ jQuery.map( val, function(val, i){
 3449+ return {name: elem.name, value: val};
 3450+ }) :
 3451+ {name: elem.name, value: val};
 3452+ }).get();
 3453+ }
 3454+});
 3455+
 3456+// Attach a bunch of functions for handling common AJAX events
 3457+jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
 3458+ jQuery.fn[o] = function(f){
 3459+ return this.bind(o, f);
 3460+ };
 3461+});
 3462+
 3463+var jsc = now();
 3464+
 3465+jQuery.extend({
 3466+
 3467+ get: function( url, data, callback, type ) {
 3468+ // shift arguments if data argument was ommited
 3469+ if ( jQuery.isFunction( data ) ) {
 3470+ callback = data;
 3471+ data = null;
 3472+ }
 3473+
 3474+ return jQuery.ajax({
 3475+ type: "GET",
 3476+ url: url,
 3477+ data: data,
 3478+ success: callback,
 3479+ dataType: type
 3480+ });
 3481+ },
 3482+
 3483+ getScript: function( url, callback ) {
 3484+ return jQuery.get(url, null, callback, "script");
 3485+ },
 3486+
 3487+ getJSON: function( url, data, callback ) {
 3488+ return jQuery.get(url, data, callback, "json");
 3489+ },
 3490+
 3491+ post: function( url, data, callback, type ) {
 3492+ if ( jQuery.isFunction( data ) ) {
 3493+ callback = data;
 3494+ data = {};
 3495+ }
 3496+
 3497+ return jQuery.ajax({
 3498+ type: "POST",
 3499+ url: url,
 3500+ data: data,
 3501+ success: callback,
 3502+ dataType: type
 3503+ });
 3504+ },
 3505+
 3506+ ajaxSetup: function( settings ) {
 3507+ jQuery.extend( jQuery.ajaxSettings, settings );
 3508+ },
 3509+
 3510+ ajaxSettings: {
 3511+ url: location.href,
 3512+ global: true,
 3513+ type: "GET",
 3514+ contentType: "application/x-www-form-urlencoded",
 3515+ processData: true,
 3516+ async: true,
 3517+ /*
 3518+ timeout: 0,
 3519+ data: null,
 3520+ username: null,
 3521+ password: null,
 3522+ */
 3523+ // Create the request object; Microsoft failed to properly
 3524+ // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
 3525+ // This function can be overriden by calling jQuery.ajaxSetup
 3526+ xhr:function(){
 3527+ return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
 3528+ },
 3529+ accepts: {
 3530+ xml: "application/xml, text/xml",
 3531+ html: "text/html",
 3532+ script: "text/javascript, application/javascript",
 3533+ json: "application/json, text/javascript",
 3534+ text: "text/plain",
 3535+ _default: "*/*"
 3536+ }
 3537+ },
 3538+
 3539+ // Last-Modified header cache for next request
 3540+ lastModified: {},
 3541+
 3542+ ajax: function( s ) {
 3543+ // Extend the settings, but re-extend 's' so that it can be
 3544+ // checked again later (in the test suite, specifically)
 3545+ s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
 3546+
 3547+ var jsonp, jsre = /=\?(&|$)/g, status, data,
 3548+ type = s.type.toUpperCase();
 3549+
 3550+ // convert data if not already a string
 3551+ if ( s.data && s.processData && typeof s.data !== "string" )
 3552+ s.data = jQuery.param(s.data);
 3553+
 3554+ // Handle JSONP Parameter Callbacks
 3555+ if ( s.dataType == "jsonp" ) {
 3556+ if ( type == "GET" ) {
 3557+ if ( !s.url.match(jsre) )
 3558+ s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
 3559+ } else if ( !s.data || !s.data.match(jsre) )
 3560+ s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
 3561+ s.dataType = "json";
 3562+ }
 3563+
 3564+ // Build temporary JSONP function
 3565+ if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
 3566+ jsonp = "jsonp" + jsc++;
 3567+
 3568+ // Replace the =? sequence both in the query string and the data
 3569+ if ( s.data )
 3570+ s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
 3571+ s.url = s.url.replace(jsre, "=" + jsonp + "$1");
 3572+
 3573+ // We need to make sure
 3574+ // that a JSONP style response is executed properly
 3575+ s.dataType = "script";
 3576+
 3577+ // Handle JSONP-style loading
 3578+ window[ jsonp ] = function(tmp){
 3579+ data = tmp;
 3580+ success();
 3581+ complete();
 3582+ // Garbage collect
 3583+ window[ jsonp ] = undefined;
 3584+ try{ delete window[ jsonp ]; } catch(e){}
 3585+ if ( head )
 3586+ head.removeChild( script );
 3587+ };
 3588+ }
 3589+
 3590+ if ( s.dataType == "script" && s.cache == null )
 3591+ s.cache = false;
 3592+
 3593+ if ( s.cache === false && type == "GET" ) {
 3594+ var ts = now();
 3595+ // try replacing _= if it is there
 3596+ var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
 3597+ // if nothing was replaced, add timestamp to the end
 3598+ s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
 3599+ }
 3600+
 3601+ // If data is available, append data to url for get requests
 3602+ if ( s.data && type == "GET" ) {
 3603+ s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
 3604+
 3605+ // IE likes to send both get and post data, prevent this
 3606+ s.data = null;
 3607+ }
 3608+
 3609+ // Watch for a new set of requests
 3610+ if ( s.global && ! jQuery.active++ )
 3611+ jQuery.event.trigger( "ajaxStart" );
 3612+
 3613+ // Matches an absolute URL, and saves the domain
 3614+ var parts = /^(\w+:)?\/\/([^\/?#]+)/.exec( s.url );
 3615+
 3616+ // If we're requesting a remote document
 3617+ // and trying to load JSON or Script with a GET
 3618+ if ( s.dataType == "script" && type == "GET" && parts
 3619+ && ( parts[1] && parts[1] != location.protocol || parts[2] != location.host )){
 3620+
 3621+ var head = document.getElementsByTagName("head")[0];
 3622+ var script = document.createElement("script");
 3623+ script.src = s.url;
 3624+ if (s.scriptCharset)
 3625+ script.charset = s.scriptCharset;
 3626+
 3627+ // Handle Script loading
 3628+ if ( !jsonp ) {
 3629+ var done = false;
 3630+
 3631+ // Attach handlers for all browsers
 3632+ script.onload = script.onreadystatechange = function(){
 3633+ if ( !done && (!this.readyState ||
 3634+ this.readyState == "loaded" || this.readyState == "complete") ) {
 3635+ done = true;
 3636+ success();
 3637+ complete();
 3638+
 3639+ // Handle memory leak in IE
 3640+ script.onload = script.onreadystatechange = null;
 3641+ head.removeChild( script );
 3642+ }
 3643+ };
 3644+ }
 3645+
 3646+ head.appendChild(script);
 3647+
 3648+ // We handle everything using the script element injection
 3649+ return undefined;
 3650+ }
 3651+
 3652+ var requestDone = false;
 3653+
 3654+ // Create the request object
 3655+ var xhr = s.xhr();
 3656+
 3657+ // Open the socket
 3658+ // Passing null username, generates a login popup on Opera (#2865)
 3659+ if( s.username )
 3660+ xhr.open(type, s.url, s.async, s.username, s.password);
 3661+ else
 3662+ xhr.open(type, s.url, s.async);
 3663+
 3664+ // Need an extra try/catch for cross domain requests in Firefox 3
 3665+ try {
 3666+ // Set the correct header, if data is being sent
 3667+ if ( s.data )
 3668+ xhr.setRequestHeader("Content-Type", s.contentType);
 3669+
 3670+ // Set the If-Modified-Since header, if ifModified mode.
 3671+ if ( s.ifModified )
 3672+ xhr.setRequestHeader("If-Modified-Since",
 3673+ jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
 3674+
 3675+ // Set header so the called script knows that it's an XMLHttpRequest
 3676+ xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
 3677+
 3678+ // Set the Accepts header for the server, depending on the dataType
 3679+ xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
 3680+ s.accepts[ s.dataType ] + ", */*" :
 3681+ s.accepts._default );
 3682+ } catch(e){}
 3683+
 3684+ // Allow custom headers/mimetypes and early abort
 3685+ if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
 3686+ // Handle the global AJAX counter
 3687+ if ( s.global && ! --jQuery.active )
 3688+ jQuery.event.trigger( "ajaxStop" );
 3689+ // close opended socket
 3690+ xhr.abort();
 3691+ return false;
 3692+ }
 3693+
 3694+ if ( s.global )
 3695+ jQuery.event.trigger("ajaxSend", [xhr, s]);
 3696+
 3697+ // Wait for a response to come back
 3698+ var onreadystatechange = function(isTimeout){
 3699+ // The request was aborted, clear the interval and decrement jQuery.active
 3700+ if (xhr.readyState == 0) {
 3701+ if (ival) {
 3702+ // clear poll interval
 3703+ clearInterval(ival);
 3704+ ival = null;
 3705+ // Handle the global AJAX counter
 3706+ if ( s.global && ! --jQuery.active )
 3707+ jQuery.event.trigger( "ajaxStop" );
 3708+ }
 3709+ // The transfer is complete and the data is available, or the request timed out
 3710+ } else if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
 3711+ requestDone = true;
 3712+
 3713+ // clear poll interval
 3714+ if (ival) {
 3715+ clearInterval(ival);
 3716+ ival = null;
 3717+ }
 3718+
 3719+ status = isTimeout == "timeout" ? "timeout" :
 3720+ !jQuery.httpSuccess( xhr ) ? "error" :
 3721+ s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
 3722+ "success";
 3723+
 3724+ if ( status == "success" ) {
 3725+ // Watch for, and catch, XML document parse errors
 3726+ try {
 3727+ // process the data (runs the xml through httpData regardless of callback)
 3728+ data = jQuery.httpData( xhr, s.dataType, s );
 3729+ } catch(e) {
 3730+ status = "parsererror";
 3731+ }
 3732+ }
 3733+
 3734+ // Make sure that the request was successful or notmodified
 3735+ if ( status == "success" ) {
 3736+ // Cache Last-Modified header, if ifModified mode.
 3737+ var modRes;
 3738+ try {
 3739+ modRes = xhr.getResponseHeader("Last-Modified");
 3740+ } catch(e) {} // swallow exception thrown by FF if header is not available
 3741+
 3742+ if ( s.ifModified && modRes )
 3743+ jQuery.lastModified[s.url] = modRes;
 3744+
 3745+ // JSONP handles its own success callback
 3746+ if ( !jsonp )
 3747+ success();
 3748+ } else
 3749+ jQuery.handleError(s, xhr, status);
 3750+
 3751+ // Fire the complete handlers
 3752+ complete();
 3753+
 3754+ if ( isTimeout )
 3755+ xhr.abort();
 3756+
 3757+ // Stop memory leaks
 3758+ if ( s.async )
 3759+ xhr = null;
 3760+ }
 3761+ };
 3762+
 3763+ if ( s.async ) {
 3764+ // don't attach the handler to the request, just poll it instead
 3765+ var ival = setInterval(onreadystatechange, 13);
 3766+
 3767+ // Timeout checker
 3768+ if ( s.timeout > 0 )
 3769+ setTimeout(function(){
 3770+ // Check to see if the request is still happening
 3771+ if ( xhr && !requestDone )
 3772+ onreadystatechange( "timeout" );
 3773+ }, s.timeout);
 3774+ }
 3775+
 3776+ // Send the data
 3777+ try {
 3778+ xhr.send(s.data);
 3779+ } catch(e) {
 3780+ jQuery.handleError(s, xhr, null, e);
 3781+ }
 3782+
 3783+ // firefox 1.5 doesn't fire statechange for sync requests
 3784+ if ( !s.async )
 3785+ onreadystatechange();
 3786+
 3787+ function success(){
 3788+ // If a local callback was specified, fire it and pass it the data
 3789+ if ( s.success )
 3790+ s.success( data, status );
 3791+
 3792+ // Fire the global callback
 3793+ if ( s.global )
 3794+ jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
 3795+ }
 3796+
 3797+ function complete(){
 3798+ // Process result
 3799+ if ( s.complete )
 3800+ s.complete(xhr, status);
 3801+
 3802+ // The request was completed
 3803+ if ( s.global )
 3804+ jQuery.event.trigger( "ajaxComplete", [xhr, s] );
 3805+
 3806+ // Handle the global AJAX counter
 3807+ if ( s.global && ! --jQuery.active )
 3808+ jQuery.event.trigger( "ajaxStop" );
 3809+ }
 3810+
 3811+ // return XMLHttpRequest to allow aborting the request etc.
 3812+ return xhr;
 3813+ },
 3814+
 3815+ handleError: function( s, xhr, status, e ) {
 3816+ // If a local callback was specified, fire it
 3817+ if ( s.error ) s.error( xhr, status, e );
 3818+
 3819+ // Fire the global callback
 3820+ if ( s.global )
 3821+ jQuery.event.trigger( "ajaxError", [xhr, s, e] );
 3822+ },
 3823+
 3824+ // Counter for holding the number of active queries
 3825+ active: 0,
 3826+
 3827+ // Determines if an XMLHttpRequest was successful or not
 3828+ httpSuccess: function( xhr ) {
 3829+ try {
 3830+ // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
 3831+ return !xhr.status && location.protocol == "file:" ||
 3832+ ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223;
 3833+ } catch(e){}
 3834+ return false;
 3835+ },
 3836+
 3837+ // Determines if an XMLHttpRequest returns NotModified
 3838+ httpNotModified: function( xhr, url ) {
 3839+ try {
 3840+ var xhrRes = xhr.getResponseHeader("Last-Modified");
 3841+
 3842+ // Firefox always returns 200. check Last-Modified date
 3843+ return xhr.status == 304 || xhrRes == jQuery.lastModified[url];
 3844+ } catch(e){}
 3845+ return false;
 3846+ },
 3847+
 3848+ httpData: function( xhr, type, s ) {
 3849+ var ct = xhr.getResponseHeader("content-type"),
 3850+ xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
 3851+ data = xml ? xhr.responseXML : xhr.responseText;
 3852+
 3853+ if ( xml && data.documentElement.tagName == "parsererror" )
 3854+ throw "parsererror";
 3855+
 3856+ // Allow a pre-filtering function to sanitize the response
 3857+ // s != null is checked to keep backwards compatibility
 3858+ if( s && s.dataFilter )
 3859+ data = s.dataFilter( data, type );
 3860+
 3861+ // The filter can actually parse the response
 3862+ if( typeof data === "string" ){
 3863+
 3864+ // If the type is "script", eval it in global context
 3865+ if ( type == "script" )
 3866+ jQuery.globalEval( data );
 3867+
 3868+ // Get the JavaScript object, if JSON is used.
 3869+ if ( type == "json" )
 3870+ data = window["eval"]("(" + data + ")");
 3871+ }
 3872+
 3873+ return data;
 3874+ },
 3875+
 3876+ // Serialize an array of form elements or a set of
 3877+ // key/values into a query string
 3878+ param: function( a ) {
 3879+ var s = [ ];
 3880+
 3881+ function add( key, value ){
 3882+ s[ s.length ] = encodeURIComponent(key) + '=' + encodeURIComponent(value);
 3883+ };
 3884+
 3885+ // If an array was passed in, assume that it is an array
 3886+ // of form elements
 3887+ if ( jQuery.isArray(a) || a.jquery )
 3888+ // Serialize the form elements
 3889+ jQuery.each( a, function(){
 3890+ add( this.name, this.value );
 3891+ });
 3892+
 3893+ // Otherwise, assume that it's an object of key/value pairs
 3894+ else
 3895+ // Serialize the key/values
 3896+ for ( var j in a )
 3897+ // If the value is an array then the key names need to be repeated
 3898+ if ( jQuery.isArray(a[j]) )
 3899+ jQuery.each( a[j], function(){
 3900+ add( j, this );
 3901+ });
 3902+ else
 3903+ add( j, jQuery.isFunction(a[j]) ? a[j]() : a[j] );
 3904+
 3905+ // Return the resulting serialization
 3906+ return s.join("&").replace(/%20/g, "+");
 3907+ }
 3908+
 3909+});
 3910+var elemdisplay = {},
 3911+ timerId,
 3912+ fxAttrs = [
 3913+ // height animations
 3914+ [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
 3915+ // width animations
 3916+ [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
 3917+ // opacity animations
 3918+ [ "opacity" ]
 3919+ ];
 3920+
 3921+function genFx( type, num ){
 3922+ var obj = {};
 3923+ jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function(){
 3924+ obj[ this ] = type;
 3925+ });
 3926+ return obj;
 3927+}
 3928+
 3929+jQuery.fn.extend({
 3930+ show: function(speed,callback){
 3931+ if ( speed ) {
 3932+ return this.animate( genFx("show", 3), speed, callback);
 3933+ } else {
 3934+ for ( var i = 0, l = this.length; i < l; i++ ){
 3935+ var old = jQuery.data(this[i], "olddisplay");
 3936+
 3937+ this[i].style.display = old || "";
 3938+
 3939+ if ( jQuery.css(this[i], "display") === "none" ) {
 3940+ var tagName = this[i].tagName, display;
 3941+
 3942+ if ( elemdisplay[ tagName ] ) {
 3943+ display = elemdisplay[ tagName ];
 3944+ } else {
 3945+ var elem = jQuery("<" + tagName + " />").appendTo("body");
 3946+
 3947+ display = elem.css("display");
 3948+ if ( display === "none" )
 3949+ display = "block";
 3950+
 3951+ elem.remove();
 3952+
 3953+ elemdisplay[ tagName ] = display;
 3954+ }
 3955+
 3956+ jQuery.data(this[i], "olddisplay", display);
 3957+ }
 3958+ }
 3959+
 3960+ // Set the display of the elements in a second loop
 3961+ // to avoid the constant reflow
 3962+ for ( var i = 0, l = this.length; i < l; i++ ){
 3963+ this[i].style.display = jQuery.data(this[i], "olddisplay") || "";
 3964+ }
 3965+
 3966+ return this;
 3967+ }
 3968+ },
 3969+
 3970+ hide: function(speed,callback){
 3971+ if ( speed ) {
 3972+ return this.animate( genFx("hide", 3), speed, callback);
 3973+ } else {
 3974+ for ( var i = 0, l = this.length; i < l; i++ ){
 3975+ var old = jQuery.data(this[i], "olddisplay");
 3976+ if ( !old && old !== "none" )
 3977+ jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
 3978+ }
 3979+
 3980+ // Set the display of the elements in a second loop
 3981+ // to avoid the constant reflow
 3982+ for ( var i = 0, l = this.length; i < l; i++ ){
 3983+ this[i].style.display = "none";
 3984+ }
 3985+
 3986+ return this;
 3987+ }
 3988+ },
 3989+
 3990+ // Save the old toggle function
 3991+ _toggle: jQuery.fn.toggle,
 3992+
 3993+ toggle: function( fn, fn2 ){
 3994+ var bool = typeof fn === "boolean";
 3995+
 3996+ return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
 3997+ this._toggle.apply( this, arguments ) :
 3998+ fn == null || bool ?
 3999+ this.each(function(){
 4000+ var state = bool ? fn : jQuery(this).is(":hidden");
 4001+ jQuery(this)[ state ? "show" : "hide" ]();
 4002+ }) :
 4003+ this.animate(genFx("toggle", 3), fn, fn2);
 4004+ },
 4005+
 4006+ fadeTo: function(speed,to,callback){
 4007+ return this.animate({opacity: to}, speed, callback);
 4008+ },
 4009+
 4010+ animate: function( prop, speed, easing, callback ) {
 4011+ var optall = jQuery.speed(speed, easing, callback);
 4012+
 4013+ return this[ optall.queue === false ? "each" : "queue" ](function(){
 4014+
 4015+ var opt = jQuery.extend({}, optall), p,
 4016+ hidden = this.nodeType == 1 && jQuery(this).is(":hidden"),
 4017+ self = this;
 4018+
 4019+ for ( p in prop ) {
 4020+ if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
 4021+ return opt.complete.call(this);
 4022+
 4023+ if ( ( p == "height" || p == "width" ) && this.style ) {
 4024+ // Store display property
 4025+ opt.display = jQuery.css(this, "display");
 4026+
 4027+ // Make sure that nothing sneaks out
 4028+ opt.overflow = this.style.overflow;
 4029+ }
 4030+ }
 4031+
 4032+ if ( opt.overflow != null )
 4033+ this.style.overflow = "hidden";
 4034+
 4035+ opt.curAnim = jQuery.extend({}, prop);
 4036+
 4037+ jQuery.each( prop, function(name, val){
 4038+ var e = new jQuery.fx( self, opt, name );
 4039+
 4040+ if ( /toggle|show|hide/.test(val) )
 4041+ e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
 4042+ else {
 4043+ var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
 4044+ start = e.cur(true) || 0;
 4045+
 4046+ if ( parts ) {
 4047+ var end = parseFloat(parts[2]),
 4048+ unit = parts[3] || "px";
 4049+
 4050+ // We need to compute starting value
 4051+ if ( unit != "px" ) {
 4052+ self.style[ name ] = (end || 1) + unit;
 4053+ start = ((end || 1) / e.cur(true)) * start;
 4054+ self.style[ name ] = start + unit;
 4055+ }
 4056+
 4057+ // If a +=/-= token was provided, we're doing a relative animation
 4058+ if ( parts[1] )
 4059+ end = ((parts[1] == "-=" ? -1 : 1) * end) + start;
 4060+
 4061+ e.custom( start, end, unit );
 4062+ } else
 4063+ e.custom( start, val, "" );
 4064+ }
 4065+ });
 4066+
 4067+ // For JS strict compliance
 4068+ return true;
 4069+ });
 4070+ },
 4071+
 4072+ stop: function(clearQueue, gotoEnd){
 4073+ var timers = jQuery.timers;
 4074+
 4075+ if (clearQueue)
 4076+ this.queue([]);
 4077+
 4078+ this.each(function(){
 4079+ // go in reverse order so anything added to the queue during the loop is ignored
 4080+ for ( var i = timers.length - 1; i >= 0; i-- )
 4081+ if ( timers[i].elem == this ) {
 4082+ if (gotoEnd)
 4083+ // force the next step to be the last
 4084+ timers[i](true);
 4085+ timers.splice(i, 1);
 4086+ }
 4087+ });
 4088+
 4089+ // start the next in the queue if the last step wasn't forced
 4090+ if (!gotoEnd)
 4091+ this.dequeue();
 4092+
 4093+ return this;
 4094+ }
 4095+
 4096+});
 4097+
 4098+// Generate shortcuts for custom animations
 4099+jQuery.each({
 4100+ slideDown: genFx("show", 1),
 4101+ slideUp: genFx("hide", 1),
 4102+ slideToggle: genFx("toggle", 1),
 4103+ fadeIn: { opacity: "show" },
 4104+ fadeOut: { opacity: "hide" }
 4105+}, function( name, props ){
 4106+ jQuery.fn[ name ] = function( speed, callback ){
 4107+ return this.animate( props, speed, callback );
 4108+ };
 4109+});
 4110+
 4111+jQuery.extend({
 4112+
 4113+ speed: function(speed, easing, fn) {
 4114+ var opt = typeof speed === "object" ? speed : {
 4115+ complete: fn || !fn && easing ||
 4116+ jQuery.isFunction( speed ) && speed,
 4117+ duration: speed,
 4118+ easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
 4119+ };
 4120+
 4121+ opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
 4122+ jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
 4123+
 4124+ // Queueing
 4125+ opt.old = opt.complete;
 4126+ opt.complete = function(){
 4127+ if ( opt.queue !== false )
 4128+ jQuery(this).dequeue();
 4129+ if ( jQuery.isFunction( opt.old ) )
 4130+ opt.old.call( this );
 4131+ };
 4132+
 4133+ return opt;
 4134+ },
 4135+
 4136+ easing: {
 4137+ linear: function( p, n, firstNum, diff ) {
 4138+ return firstNum + diff * p;
 4139+ },
 4140+ swing: function( p, n, firstNum, diff ) {
 4141+ return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
 4142+ }
 4143+ },
 4144+
 4145+ timers: [],
 4146+
 4147+ fx: function( elem, options, prop ){
 4148+ this.options = options;
 4149+ this.elem = elem;
 4150+ this.prop = prop;
 4151+
 4152+ if ( !options.orig )
 4153+ options.orig = {};
 4154+ }
 4155+
 4156+});
 4157+
 4158+jQuery.fx.prototype = {
 4159+
 4160+ // Simple function for setting a style value
 4161+ update: function(){
 4162+ if ( this.options.step )
 4163+ this.options.step.call( this.elem, this.now, this );
 4164+
 4165+ (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
 4166+
 4167+ // Set display property to block for height/width animations
 4168+ if ( ( this.prop == "height" || this.prop == "width" ) && this.elem.style )
 4169+ this.elem.style.display = "block";
 4170+ },
 4171+
 4172+ // Get the current size
 4173+ cur: function(force){
 4174+ if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) )
 4175+ return this.elem[ this.prop ];
 4176+
 4177+ var r = parseFloat(jQuery.css(this.elem, this.prop, force));
 4178+ return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
 4179+ },
 4180+
 4181+ // Start an animation from one number to another
 4182+ custom: function(from, to, unit){
 4183+ this.startTime = now();
 4184+ this.start = from;
 4185+ this.end = to;
 4186+ this.unit = unit || this.unit || "px";
 4187+ this.now = this.start;
 4188+ this.pos = this.state = 0;
 4189+
 4190+ var self = this;
 4191+ function t(gotoEnd){
 4192+ return self.step(gotoEnd);
 4193+ }
 4194+
 4195+ t.elem = this.elem;
 4196+
 4197+ if ( t() && jQuery.timers.push(t) && !timerId ) {
 4198+ timerId = setInterval(function(){
 4199+ var timers = jQuery.timers;
 4200+
 4201+ for ( var i = 0; i < timers.length; i++ )
 4202+ if ( !timers[i]() )
 4203+ timers.splice(i--, 1);
 4204+
 4205+ if ( !timers.length ) {
 4206+ clearInterval( timerId );
 4207+ timerId = undefined;
 4208+ }
 4209+ }, 13);
 4210+ }
 4211+ },
 4212+
 4213+ // Simple 'show' function
 4214+ show: function(){
 4215+ // Remember where we started, so that we can go back to it later
 4216+ this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
 4217+ this.options.show = true;
 4218+
 4219+ // Begin the animation
 4220+ // Make sure that we start at a small width/height to avoid any
 4221+ // flash of content
 4222+ this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur());
 4223+
 4224+ // Start by showing the element
 4225+ jQuery(this.elem).show();
 4226+ },
 4227+
 4228+ // Simple 'hide' function
 4229+ hide: function(){
 4230+ // Remember where we started, so that we can go back to it later
 4231+ this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
 4232+ this.options.hide = true;
 4233+
 4234+ // Begin the animation
 4235+ this.custom(this.cur(), 0);
 4236+ },
 4237+
 4238+ // Each step of an animation
 4239+ step: function(gotoEnd){
 4240+ var t = now();
 4241+
 4242+ if ( gotoEnd || t >= this.options.duration + this.startTime ) {
 4243+ this.now = this.end;
 4244+ this.pos = this.state = 1;
 4245+ this.update();
 4246+
 4247+ this.options.curAnim[ this.prop ] = true;
 4248+
 4249+ var done = true;
 4250+ for ( var i in this.options.curAnim )
 4251+ if ( this.options.curAnim[i] !== true )
 4252+ done = false;
 4253+
 4254+ if ( done ) {
 4255+ if ( this.options.display != null ) {
 4256+ // Reset the overflow
 4257+ this.elem.style.overflow = this.options.overflow;
 4258+
 4259+ // Reset the display
 4260+ this.elem.style.display = this.options.display;
 4261+ if ( jQuery.css(this.elem, "display") == "none" )
 4262+ this.elem.style.display = "block";
 4263+ }
 4264+
 4265+ // Hide the element if the "hide" operation was done
 4266+ if ( this.options.hide )
 4267+ jQuery(this.elem).hide();
 4268+
 4269+ // Reset the properties, if the item has been hidden or shown
 4270+ if ( this.options.hide || this.options.show )
 4271+ for ( var p in this.options.curAnim )
 4272+ jQuery.attr(this.elem.style, p, this.options.orig[p]);
 4273+
 4274+ // Execute the complete function
 4275+ this.options.complete.call( this.elem );
 4276+ }
 4277+
 4278+ return false;
 4279+ } else {
 4280+ var n = t - this.startTime;
 4281+ this.state = n / this.options.duration;
 4282+
 4283+ // Perform the easing function, defaults to swing
 4284+ this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
 4285+ this.now = this.start + ((this.end - this.start) * this.pos);
 4286+
 4287+ // Perform the next step of the animation
 4288+ this.update();
 4289+ }
 4290+
 4291+ return true;
 4292+ }
 4293+
 4294+};
 4295+
 4296+jQuery.extend( jQuery.fx, {
 4297+ speeds:{
 4298+ slow: 600,
 4299+ fast: 200,
 4300+ // Default speed
 4301+ _default: 400
 4302+ },
 4303+ step: {
 4304+
 4305+ opacity: function(fx){
 4306+ jQuery.attr(fx.elem.style, "opacity", fx.now);
 4307+ },
 4308+
 4309+ _default: function(fx){
 4310+ if ( fx.elem.style && fx.elem.style[ fx.prop ] != null )
 4311+ fx.elem.style[ fx.prop ] = fx.now + fx.unit;
 4312+ else
 4313+ fx.elem[ fx.prop ] = fx.now;
 4314+ }
 4315+ }
 4316+});
 4317+if ( document.documentElement["getBoundingClientRect"] )
 4318+ jQuery.fn.offset = function() {
 4319+ if ( !this[0] ) return { top: 0, left: 0 };
 4320+ if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
 4321+ var box = this[0].getBoundingClientRect(), doc = this[0].ownerDocument, body = doc.body, docElem = doc.documentElement,
 4322+ clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
 4323+ top = box.top + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop || body.scrollTop ) - clientTop,
 4324+ left = box.left + (self.pageXOffset || jQuery.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
 4325+ return { top: top, left: left };
 4326+ };
 4327+else
 4328+ jQuery.fn.offset = function() {
 4329+ if ( !this[0] ) return { top: 0, left: 0 };
 4330+ if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
 4331+ jQuery.offset.initialized || jQuery.offset.initialize();
 4332+
 4333+ var elem = this[0], offsetParent = elem.offsetParent, prevOffsetParent = elem,
 4334+ doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
 4335+ body = doc.body, defaultView = doc.defaultView,
 4336+ prevComputedStyle = defaultView.getComputedStyle(elem, null),
 4337+ top = elem.offsetTop, left = elem.offsetLeft;
 4338+
 4339+ while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
 4340+ computedStyle = defaultView.getComputedStyle(elem, null);
 4341+ top -= elem.scrollTop, left -= elem.scrollLeft;
 4342+ if ( elem === offsetParent ) {
 4343+ top += elem.offsetTop, left += elem.offsetLeft;
 4344+ if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.tagName)) )
 4345+ top += parseInt( computedStyle.borderTopWidth, 10) || 0,
 4346+ left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
 4347+ prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
 4348+ }
 4349+ if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" )
 4350+ top += parseInt( computedStyle.borderTopWidth, 10) || 0,
 4351+ left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
 4352+ prevComputedStyle = computedStyle;
 4353+ }
 4354+
 4355+ if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" )
 4356+ top += body.offsetTop,
 4357+ left += body.offsetLeft;
 4358+
 4359+ if ( prevComputedStyle.position === "fixed" )
 4360+ top += Math.max(docElem.scrollTop, body.scrollTop),
 4361+ left += Math.max(docElem.scrollLeft, body.scrollLeft);
 4362+
 4363+ return { top: top, left: left };
 4364+ };
 4365+
 4366+jQuery.offset = {
 4367+ initialize: function() {
 4368+ if ( this.initialized ) return;
 4369+ var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop,
 4370+ 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>';
 4371+
 4372+ rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };
 4373+ for ( prop in rules ) container.style[prop] = rules[prop];
 4374+
 4375+ container.innerHTML = html;
 4376+ body.insertBefore(container, body.firstChild);
 4377+ innerDiv = container.firstChild, checkDiv = innerDiv.firstChild, td = innerDiv.nextSibling.firstChild.firstChild;
 4378+
 4379+ this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
 4380+ this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
 4381+
 4382+ innerDiv.style.overflow = 'hidden', innerDiv.style.position = 'relative';
 4383+ this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
 4384+
 4385+ body.style.marginTop = '1px';
 4386+ this.doesNotIncludeMarginInBodyOffset = (body.offsetTop === 0);
 4387+ body.style.marginTop = bodyMarginTop;
 4388+
 4389+ body.removeChild(container);
 4390+ this.initialized = true;
 4391+ },
 4392+
 4393+ bodyOffset: function(body) {
 4394+ jQuery.offset.initialized || jQuery.offset.initialize();
 4395+ var top = body.offsetTop, left = body.offsetLeft;
 4396+ if ( jQuery.offset.doesNotIncludeMarginInBodyOffset )
 4397+ top += parseInt( jQuery.curCSS(body, 'marginTop', true), 10 ) || 0,
 4398+ left += parseInt( jQuery.curCSS(body, 'marginLeft', true), 10 ) || 0;
 4399+ return { top: top, left: left };
 4400+ }
 4401+};
 4402+
 4403+
 4404+jQuery.fn.extend({
 4405+ position: function() {
 4406+ var left = 0, top = 0, results;
 4407+
 4408+ if ( this[0] ) {
 4409+ // Get *real* offsetParent
 4410+ var offsetParent = this.offsetParent(),
 4411+
 4412+ // Get correct offsets
 4413+ offset = this.offset(),
 4414+ parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
 4415+
 4416+ // Subtract element margins
 4417+ // note: when an element has margin: auto the offsetLeft and marginLeft
 4418+ // are the same in Safari causing offset.left to incorrectly be 0
 4419+ offset.top -= num( this, 'marginTop' );
 4420+ offset.left -= num( this, 'marginLeft' );
 4421+
 4422+ // Add offsetParent borders
 4423+ parentOffset.top += num( offsetParent, 'borderTopWidth' );
 4424+ parentOffset.left += num( offsetParent, 'borderLeftWidth' );
 4425+
 4426+ // Subtract the two offsets
 4427+ results = {
 4428+ top: offset.top - parentOffset.top,
 4429+ left: offset.left - parentOffset.left
 4430+ };
 4431+ }
 4432+
 4433+ return results;
 4434+ },
 4435+
 4436+ offsetParent: function() {
 4437+ var offsetParent = this[0].offsetParent || document.body;
 4438+ while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
 4439+ offsetParent = offsetParent.offsetParent;
 4440+ return jQuery(offsetParent);
 4441+ }
 4442+});
 4443+
 4444+
 4445+// Create scrollLeft and scrollTop methods
 4446+jQuery.each( ['Left', 'Top'], function(i, name) {
 4447+ var method = 'scroll' + name;
 4448+
 4449+ jQuery.fn[ method ] = function(val) {
 4450+ if (!this[0]) return null;
 4451+
 4452+ return val !== undefined ?
 4453+
 4454+ // Set the scroll offset
 4455+ this.each(function() {
 4456+ this == window || this == document ?
 4457+ window.scrollTo(
 4458+ !i ? val : jQuery(window).scrollLeft(),
 4459+ i ? val : jQuery(window).scrollTop()
 4460+ ) :
 4461+ this[ method ] = val;
 4462+ }) :
 4463+
 4464+ // Return the scroll offset
 4465+ this[0] == window || this[0] == document ?
 4466+ self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
 4467+ jQuery.boxModel && document.documentElement[ method ] ||
 4468+ document.body[ method ] :
 4469+ this[0][ method ];
 4470+ };
 4471+});
 4472+// Create innerHeight, innerWidth, outerHeight and outerWidth methods
 4473+jQuery.each([ "Height", "Width" ], function(i, name){
 4474+
 4475+ var tl = i ? "Left" : "Top", // top or left
 4476+ br = i ? "Right" : "Bottom", // bottom or right
 4477+ lower = name.toLowerCase();
 4478+
 4479+ // innerHeight and innerWidth
 4480+ jQuery.fn["inner" + name] = function(){
 4481+ return this[0] ?
 4482+ jQuery.css( this[0], lower, false, "padding" ) :
 4483+ null;
 4484+ };
 4485+
 4486+ // outerHeight and outerWidth
 4487+ jQuery.fn["outer" + name] = function(margin) {
 4488+ return this[0] ?
 4489+ jQuery.css( this[0], lower, false, margin ? "margin" : "border" ) :
 4490+ null;
 4491+ };
 4492+
 4493+ var type = name.toLowerCase();
 4494+
 4495+ jQuery.fn[ type ] = function( size ) {
 4496+ // Get window width or height
 4497+ return this[0] == window ?
 4498+ // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
 4499+ document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] ||
 4500+ document.body[ "client" + name ] :
 4501+
 4502+ // Get document width or height
 4503+ this[0] == document ?
 4504+ // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
 4505+ Math.max(
 4506+ document.documentElement["client" + name],
 4507+ document.body["scroll" + name], document.documentElement["scroll" + name],
 4508+ document.body["offset" + name], document.documentElement["offset" + name]
 4509+ ) :
 4510+
 4511+ // Get or set width or height on the element
 4512+ size === undefined ?
 4513+ // Get width or height on the element
 4514+ (this.length ? jQuery.css( this[0], type ) : null) :
 4515+
 4516+ // Set the width or height on the element (default to pixels if value is unitless)
 4517+ this.css( type, typeof size === "string" ? size : size + "px" );
 4518+ };
 4519+
 4520+});
 4521+})();
 4522+
 4523+/*
 4524+ * jQuery Asynchronous Plugin 1.0
 4525+ *
 4526+ * Copyright (c) 2008 Vincent Robert (genezys.net)
 4527+ * Dual licensed under the MIT (MIT-LICENSE.txt)
 4528+ * and GPL (GPL-LICENSE.txt) licenses.
 4529+ *
 4530+ */
 4531+(function($){
 4532+
 4533+// opts.delay : (default 10) delay between async call in ms
 4534+// opts.bulk : (default 500) delay during which the loop can continue synchronously without yielding the CPU
 4535+// opts.test : (default true) function to test in the while test part
 4536+// opts.loop : (default empty) function to call in the while loop part
 4537+// opts.end : (default empty) function to call at the end of the while loop
 4538+$.whileAsync = function(opts)
 4539+{
 4540+ var delay = Math.abs(opts.delay) || 10,
 4541+ bulk = isNaN(opts.bulk) ? 500 : Math.abs(opts.bulk),
 4542+ test = opts.test || function(){ return true; },
 4543+ loop = opts.loop || function(){},
 4544+ end = opts.end || function(){};
 4545+
 4546+ (function(){
 4547+
 4548+ var t = false,
 4549+ begin = new Date();
 4550+
 4551+ while( t = test() )
 4552+ {
 4553+ loop();
 4554+ if( bulk === 0 || (new Date() - begin) > bulk )
 4555+ {
 4556+ break;
 4557+ }
 4558+ }
 4559+ if( t )
 4560+ {
 4561+ setTimeout(arguments.callee, delay);
 4562+ }
 4563+ else
 4564+ {
 4565+ end();
 4566+ }
 4567+
 4568+ })();
 4569+}
 4570+
 4571+// opts.delay : (default 10) delay between async call in ms
 4572+// opts.bulk : (default 500) delay during which the loop can continue synchronously without yielding the CPU
 4573+// opts.loop : (default empty) function to call in the each loop part, signature: function(index, value) this = value
 4574+// opts.end : (default empty) function to call at the end of the each loop
 4575+$.eachAsync = function(array, opts)
 4576+{
 4577+ var i = 0,
 4578+ l = array.length,
 4579+ loop = opts.loop || function(){};
 4580+
 4581+ $.whileAsync(
 4582+ $.extend(opts, {
 4583+ test: function(){ return i < l; },
 4584+ loop: function()
 4585+ {
 4586+ var val = array[i];
 4587+ return loop.call(val, i++, val);
 4588+ }
 4589+ })
 4590+ );
 4591+}
 4592+
 4593+$.fn.eachAsync = function(opts)
 4594+{
 4595+ $.eachAsync(this, opts);
 4596+ return this;
 4597+}
 4598+
 4599+})(jQuery);
 4600+
 4601+/*
 4602+
 4603+jQuery Browser Plugin
 4604+ * Version 2.3
 4605+ * 2008-09-17 19:27:05
 4606+ * URL: http://jquery.thewikies.com/browser
 4607+ * Description: jQuery Browser Plugin extends browser detection capabilities and can assign browser selectors to CSS classes.
 4608+ * Author: Nate Cavanaugh, Minhchau Dang, & Jonathan Neal
 4609+ * Copyright: Copyright (c) 2008 Jonathan Neal under dual MIT/GPL license.
 4610+ * JSLint: This javascript file passes JSLint verification.
 4611+*//*jslint
 4612+ bitwise: true,
 4613+ browser: true,
 4614+ eqeqeq: true,
 4615+ forin: true,
 4616+ nomen: true,
 4617+ plusplus: true,
 4618+ undef: true,
 4619+ white: true
 4620+*//*global
 4621+ jQuery
 4622+*/
 4623+
 4624+(function ($) {
 4625+ $.browserTest = function (a, z) {
 4626+ var u = 'unknown', x = 'X', m = function (r, h) {
 4627+ for (var i = 0; i < h.length; i = i + 1) {
 4628+ r = r.replace(h[i][0], h[i][1]);
 4629+ }
 4630+
 4631+ return r;
 4632+ }, c = function (i, a, b, c) {
 4633+ var r = {
 4634+ name: m((a.exec(i) || [u, u])[1], b)
 4635+ };
 4636+
 4637+ r[r.name] = true;
 4638+
 4639+ r.version = (c.exec(i) || [x, x, x, x])[3];
 4640+
 4641+ if (r.name.match(/safari/) && r.version > 400) {
 4642+ r.version = '2.0';
 4643+ }
 4644+
 4645+ if (r.name === 'presto') {
 4646+ r.version = ($.browser.version > 9.27) ? 'futhark' : 'linear_b';
 4647+ }
 4648+ r.versionNumber = parseFloat(r.version, 10) || 0;
 4649+ r.versionX = (r.version !== x) ? (r.version + '').substr(0, 1) : x;
 4650+ r.className = r.name + r.versionX;
 4651+
 4652+ return r;
 4653+ };
 4654+
 4655+ a = (a.match(/Opera|Navigator|Minefield|KHTML|Chrome/) ? m(a, [
 4656+ [/(Firefox|MSIE|KHTML,\slike\sGecko|Konqueror)/, ''],
 4657+ ['Chrome Safari', 'Chrome'],
 4658+ ['KHTML', 'Konqueror'],
 4659+ ['Minefield', 'Firefox'],
 4660+ ['Navigator', 'Netscape']
 4661+ ]) : a).toLowerCase();
 4662+
 4663+ $.browser = $.extend((!z) ? $.browser : {}, c(a, /(camino|chrome|firefox|netscape|konqueror|lynx|msie|opera|safari)/, [], /(camino|chrome|firefox|netscape|netscape6|opera|version|konqueror|lynx|msie|safari)(\/|\s)([a-z0-9\.\+]*?)(\;|dev|rel|\s|$)/));
 4664+
 4665+ $.layout = c(a, /(gecko|konqueror|msie|opera|webkit)/, [
 4666+ ['konqueror', 'khtml'],
 4667+ ['msie', 'trident'],
 4668+ ['opera', 'presto']
 4669+ ], /(applewebkit|rv|konqueror|msie)(\:|\/|\s)([a-z0-9\.]*?)(\;|\)|\s)/);
 4670+
 4671+ $.os = {
 4672+ name: (/(win|mac|linux|sunos|solaris|iphone)/.exec(navigator.platform.toLowerCase()) || [u])[0].replace('sunos', 'solaris')
 4673+ };
 4674+
 4675+ if (!z) {
 4676+ $('html').addClass([$.os.name, $.browser.name, $.browser.className, $.layout.name, $.layout.className].join(' '));
 4677+ }
 4678+ };
 4679+
 4680+ $.browserTest(navigator.userAgent);
 4681+})(jQuery);
 4682+
 4683+/**
 4684+ * Cookie plugin
 4685+ *
 4686+ * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 4687+ * Dual licensed under the MIT and GPL licenses:
 4688+ * http://www.opensource.org/licenses/mit-license.php
 4689+ * http://www.gnu.org/licenses/gpl.html
 4690+ *
 4691+ */
 4692+
 4693+/**
 4694+ * Create a cookie with the given name and value and other optional parameters.
 4695+ *
 4696+ * @example $.cookie('the_cookie', 'the_value');
 4697+ * @desc Set the value of a cookie.
 4698+ * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
 4699+ * @desc Create a cookie with all available options.
 4700+ * @example $.cookie('the_cookie', 'the_value');
 4701+ * @desc Create a session cookie.
 4702+ * @example $.cookie('the_cookie', null);
 4703+ * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
 4704+ * used when the cookie was set.
 4705+ *
 4706+ * @param String name The name of the cookie.
 4707+ * @param String value The value of the cookie.
 4708+ * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
 4709+ * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
 4710+ * If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
 4711+ * If set to null or omitted, the cookie will be a session cookie and will not be retained
 4712+ * when the the browser exits.
 4713+ * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
 4714+ * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
 4715+ * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
 4716+ * require a secure protocol (like HTTPS).
 4717+ * @type undefined
 4718+ *
 4719+ * @name $.cookie
 4720+ * @cat Plugins/Cookie
 4721+ * @author Klaus Hartl/klaus.hartl@stilbuero.de
 4722+ */
 4723+
 4724+/**
 4725+ * Get the value of a cookie with the given name.
 4726+ *
 4727+ * @example $.cookie('the_cookie');
 4728+ * @desc Get the value of a cookie.
 4729+ *
 4730+ * @param String name The name of the cookie.
 4731+ * @return The value of the cookie.
 4732+ * @type String
 4733+ *
 4734+ * @name $.cookie
 4735+ * @cat Plugins/Cookie
 4736+ * @author Klaus Hartl/klaus.hartl@stilbuero.de
 4737+ */
 4738+jQuery.cookie = function(name, value, options) {
 4739+ if (typeof value != 'undefined') { // name and value given, set cookie
 4740+ options = options || {};
 4741+ if (value === null) {
 4742+ value = '';
 4743+ options.expires = -1;
 4744+ }
 4745+ var expires = '';
 4746+ if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
 4747+ var date;
 4748+ if (typeof options.expires == 'number') {
 4749+ date = new Date();
 4750+ date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
 4751+ } else {
 4752+ date = options.expires;
 4753+ }
 4754+ expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
 4755+ }
 4756+ // CAUTION: Needed to parenthesize options.path and options.domain
 4757+ // in the following expressions, otherwise they evaluate to undefined
 4758+ // in the packed version for some reason...
 4759+ var path = options.path ? '; path=' + (options.path) : '';
 4760+ var domain = options.domain ? '; domain=' + (options.domain) : '';
 4761+ var secure = options.secure ? '; secure' : '';
 4762+ document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
 4763+ } else { // only name given, get cookie
 4764+ var cookieValue = null;
 4765+ if (document.cookie && document.cookie != '') {
 4766+ var cookies = document.cookie.split(';');
 4767+ for (var i = 0; i < cookies.length; i++) {
 4768+ var cookie = jQuery.trim(cookies[i]);
 4769+ // Does this cookie string begin with the name we want?
 4770+ if (cookie.substring(0, name.length + 1) == (name + '=')) {
 4771+ cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
 4772+ break;
 4773+ }
 4774+ }
 4775+ }
 4776+ return cookieValue;
 4777+ }
 4778+};
 4779+
 4780+/*!
 4781+ * jQuery JavaScript Library v1.3.2
 4782+ * http://jquery.com/
 4783+ *
 4784+ * Copyright (c) 2009 John Resig
 4785+ * Dual licensed under the MIT and GPL licenses.
 4786+ * http://docs.jquery.com/License
 4787+ *
 4788+ * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 4789+ * Revision: 6246
 4790+ */
 4791+(function(){
 4792+
 4793+var
 4794+ // Will speed up references to window, and allows munging its name.
 4795+ window = this,
 4796+ // Will speed up references to undefined, and allows munging its name.
 4797+ undefined,
 4798+ // Map over jQuery in case of overwrite
 4799+ _jQuery = window.jQuery,
 4800+ // Map over the $ in case of overwrite
 4801+ _$ = window.$,
 4802+
 4803+ jQuery = window.jQuery = window.$ = function( selector, context ) {
 4804+ // The jQuery object is actually just the init constructor 'enhanced'
 4805+ return new jQuery.fn.init( selector, context );
 4806+ },
 4807+
 4808+ // A simple way to check for HTML strings or ID strings
 4809+ // (both of which we optimize for)
 4810+ quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
 4811+ // Is it a simple selector
 4812+ isSimple = /^.[^:#\[\.,]*$/;
 4813+
 4814+jQuery.fn = jQuery.prototype = {
 4815+ init: function( selector, context ) {
 4816+ // Make sure that a selection was provided
 4817+ selector = selector || document;
 4818+
 4819+ // Handle $(DOMElement)
 4820+ if ( selector.nodeType ) {
 4821+ this[0] = selector;
 4822+ this.length = 1;
 4823+ this.context = selector;
 4824+ return this;
 4825+ }
 4826+ // Handle HTML strings
 4827+ if ( typeof selector === "string" ) {
 4828+ // Are we dealing with HTML string or an ID?
 4829+ var match = quickExpr.exec( selector );
 4830+
 4831+ // Verify a match, and that no context was specified for #id
 4832+ if ( match && (match[1] || !context) ) {
 4833+
 4834+ // HANDLE: $(html) -> $(array)
 4835+ if ( match[1] )
 4836+ selector = jQuery.clean( [ match[1] ], context );
 4837+
 4838+ // HANDLE: $("#id")
 4839+ else {
 4840+ var elem = document.getElementById( match[3] );
 4841+
 4842+ // Handle the case where IE and Opera return items
 4843+ // by name instead of ID
 4844+ if ( elem && elem.id != match[3] )
 4845+ return jQuery().find( selector );
 4846+
 4847+ // Otherwise, we inject the element directly into the jQuery object
 4848+ var ret = jQuery( elem || [] );
 4849+ ret.context = document;
 4850+ ret.selector = selector;
 4851+ return ret;
 4852+ }
 4853+
 4854+ // HANDLE: $(expr, [context])
 4855+ // (which is just equivalent to: $(content).find(expr)
 4856+ } else
 4857+ return jQuery( context ).find( selector );
 4858+
 4859+ // HANDLE: $(function)
 4860+ // Shortcut for document ready
 4861+ } else if ( jQuery.isFunction( selector ) )
 4862+ return jQuery( document ).ready( selector );
 4863+
 4864+ // Make sure that old selector state is passed along
 4865+ if ( selector.selector && selector.context ) {
 4866+ this.selector = selector.selector;
 4867+ this.context = selector.context;
 4868+ }
 4869+
 4870+ return this.setArray(jQuery.isArray( selector ) ?
 4871+ selector :
 4872+ jQuery.makeArray(selector));
 4873+ },
 4874+
 4875+ // Start with an empty selector
 4876+ selector: "",
 4877+
 4878+ // The current version of jQuery being used
 4879+ jquery: "1.3.2",
 4880+
 4881+ // The number of elements contained in the matched element set
 4882+ size: function() {
 4883+ return this.length;
 4884+ },
 4885+
 4886+ // Get the Nth element in the matched element set OR
 4887+ // Get the whole matched element set as a clean array
 4888+ get: function( num ) {
 4889+ return num === undefined ?
 4890+
 4891+ // Return a 'clean' array
 4892+ Array.prototype.slice.call( this ) :
 4893+
 4894+ // Return just the object
 4895+ this[ num ];
 4896+ },
 4897+
 4898+ // Take an array of elements and push it onto the stack
 4899+ // (returning the new matched element set)
 4900+ pushStack: function( elems, name, selector ) {
 4901+ // Build a new jQuery matched element set
 4902+ var ret = jQuery( elems );
 4903+
 4904+ // Add the old object onto the stack (as a reference)
 4905+ ret.prevObject = this;
 4906+
 4907+ ret.context = this.context;
 4908+
 4909+ if ( name === "find" )
 4910+ ret.selector = this.selector + (this.selector ? " " : "") + selector;
 4911+ else if ( name )
 4912+ ret.selector = this.selector + "." + name + "(" + selector + ")";
 4913+
 4914+ // Return the newly-formed element set
 4915+ return ret;
 4916+ },
 4917+
 4918+ // Force the current matched set of elements to become
 4919+ // the specified array of elements (destroying the stack in the process)
 4920+ // You should use pushStack() in order to do this, but maintain the stack
 4921+ setArray: function( elems ) {
 4922+ // Resetting the length to 0, then using the native Array push
 4923+ // is a super-fast way to populate an object with array-like properties
 4924+ this.length = 0;
 4925+ Array.prototype.push.apply( this, elems );
 4926+
 4927+ return this;
 4928+ },
 4929+
 4930+ // Execute a callback for every element in the matched set.
 4931+ // (You can seed the arguments with an array of args, but this is
 4932+ // only used internally.)
 4933+ each: function( callback, args ) {
 4934+ return jQuery.each( this, callback, args );
 4935+ },
 4936+
 4937+ // Determine the position of an element within
 4938+ // the matched set of elements
 4939+ index: function( elem ) {
 4940+ // Locate the position of the desired element
 4941+ return jQuery.inArray(
 4942+ // If it receives a jQuery object, the first element is used
 4943+ elem && elem.jquery ? elem[0] : elem
 4944+ , this );
 4945+ },
 4946+
 4947+ attr: function( name, value, type ) {
 4948+ var options = name;
 4949+
 4950+ // Look for the case where we're accessing a style value
 4951+ if ( typeof name === "string" )
 4952+ if ( value === undefined )
 4953+ return this[0] && jQuery[ type || "attr" ]( this[0], name );
 4954+
 4955+ else {
 4956+ options = {};
 4957+ options[ name ] = value;
 4958+ }
 4959+
 4960+ // Check to see if we're setting style values
 4961+ return this.each(function(i){
 4962+ // Set all the styles
 4963+ for ( name in options )
 4964+ jQuery.attr(
 4965+ type ?
 4966+ this.style :
 4967+ this,
 4968+ name, jQuery.prop( this, options[ name ], type, i, name )
 4969+ );
 4970+ });
 4971+ },
 4972+
 4973+ css: function( key, value ) {
 4974+ // ignore negative width and height values
 4975+ if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
 4976+ value = undefined;
 4977+ return this.attr( key, value, "curCSS" );
 4978+ },
 4979+
 4980+ text: function( text ) {
 4981+ if ( typeof text !== "object" && text != null )
 4982+ return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
 4983+
 4984+ var ret = "";
 4985+
 4986+ jQuery.each( text || this, function(){
 4987+ jQuery.each( this.childNodes, function(){
 4988+ if ( this.nodeType != 8 )
 4989+ ret += this.nodeType != 1 ?
 4990+ this.nodeValue :
 4991+ jQuery.fn.text( [ this ] );
 4992+ });
 4993+ });
 4994+
 4995+ return ret;
 4996+ },
 4997+
 4998+ wrapAll: function( html ) {
 4999+ if ( this[0] ) {
 5000+ // The elements to wrap the target around
 5001+ var wrap = jQuery( html, this[0].ownerDocument ).clone();
 5002+
 5003+ if ( this[0].parentNode )
 5004+ wrap.insertBefore( this[0] );
 5005+
 5006+ wrap.map(function(){
 5007+ var elem = this;
 5008+
 5009+ while ( elem.firstChild )
 5010+ elem = elem.firstChild;
 5011+
 5012+ return elem;
 5013+ }).append(this);
 5014+ }
 5015+
 5016+ return this;
 5017+ },
 5018+
 5019+ wrapInner: function( html ) {
 5020+ return this.each(function(){
 5021+ jQuery( this ).contents().wrapAll( html );
 5022+ });
 5023+ },
 5024+
 5025+ wrap: function( html ) {
 5026+ return this.each(function(){
 5027+ jQuery( this ).wrapAll( html );
 5028+ });
 5029+ },
 5030+
 5031+ append: function() {
 5032+ return this.domManip(arguments, true, function(elem){
 5033+ if (this.nodeType == 1)
 5034+ this.appendChild( elem );
 5035+ });
 5036+ },
 5037+
 5038+ prepend: function() {
 5039+ return this.domManip(arguments, true, function(elem){
 5040+ if (this.nodeType == 1)
 5041+ this.insertBefore( elem, this.firstChild );
 5042+ });
 5043+ },
 5044+
 5045+ before: function() {
 5046+ return this.domManip(arguments, false, function(elem){
 5047+ this.parentNode.insertBefore( elem, this );
 5048+ });
 5049+ },
 5050+
 5051+ after: function() {
 5052+ return this.domManip(arguments, false, function(elem){
 5053+ this.parentNode.insertBefore( elem, this.nextSibling );
 5054+ });
 5055+ },
 5056+
 5057+ end: function() {
 5058+ return this.prevObject || jQuery( [] );
 5059+ },
 5060+
 5061+ // For internal use only.
 5062+ // Behaves like an Array's method, not like a jQuery method.
 5063+ push: [].push,
 5064+ sort: [].sort,
 5065+ splice: [].splice,
 5066+
 5067+ find: function( selector ) {
 5068+ if ( this.length === 1 ) {
 5069+ var ret = this.pushStack( [], "find", selector );
 5070+ ret.length = 0;
 5071+ jQuery.find( selector, this[0], ret );
 5072+ return ret;
 5073+ } else {
 5074+ return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){
 5075+ return jQuery.find( selector, elem );
 5076+ })), "find", selector );
 5077+ }
 5078+ },
 5079+
 5080+ clone: function( events ) {
 5081+ // Do the clone
 5082+ var ret = this.map(function(){
 5083+ if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {
 5084+ // IE copies events bound via attachEvent when
 5085+ // using cloneNode. Calling detachEvent on the
 5086+ // clone will also remove the events from the orignal
 5087+ // In order to get around this, we use innerHTML.
 5088+ // Unfortunately, this means some modifications to
 5089+ // attributes in IE that are actually only stored
 5090+ // as properties will not be copied (such as the
 5091+ // the name attribute on an input).
 5092+ var html = this.outerHTML;
 5093+ if ( !html ) {
 5094+ var div = this.ownerDocument.createElement("div");
 5095+ div.appendChild( this.cloneNode(true) );
 5096+ html = div.innerHTML;
 5097+ }
 5098+
 5099+ return jQuery.clean([html.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0];
 5100+ } else
 5101+ return this.cloneNode(true);
 5102+ });
 5103+
 5104+ // Copy the events from the original to the clone
 5105+ if ( events === true ) {
 5106+ var orig = this.find("*").andSelf(), i = 0;
 5107+
 5108+ ret.find("*").andSelf().each(function(){
 5109+ if ( this.nodeName !== orig[i].nodeName )
 5110+ return;
 5111+
 5112+ var events = jQuery.data( orig[i], "events" );
 5113+
 5114+ for ( var type in events ) {
 5115+ for ( var handler in events[ type ] ) {
 5116+ jQuery.event.add( this, type, events[ type ][ handler ], events[ type ][ handler ].data );
 5117+ }
 5118+ }
 5119+
 5120+ i++;
 5121+ });
 5122+ }
 5123+
 5124+ // Return the cloned set
 5125+ return ret;
 5126+ },
 5127+
 5128+ filter: function( selector ) {
 5129+ return this.pushStack(
 5130+ jQuery.isFunction( selector ) &&
 5131+ jQuery.grep(this, function(elem, i){
 5132+ return selector.call( elem, i );
 5133+ }) ||
 5134+
 5135+ jQuery.multiFilter( selector, jQuery.grep(this, function(elem){
 5136+ return elem.nodeType === 1;
 5137+ }) ), "filter", selector );
 5138+ },
 5139+
 5140+ closest: function( selector ) {
 5141+ var pos = jQuery.expr.match.POS.test( selector ) ? jQuery(selector) : null,
 5142+ closer = 0;
 5143+
 5144+ return this.map(function(){
 5145+ var cur = this;
 5146+ while ( cur && cur.ownerDocument ) {
 5147+ if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) {
 5148+ jQuery.data(cur, "closest", closer);
 5149+ return cur;
 5150+ }
 5151+ cur = cur.parentNode;
 5152+ closer++;
 5153+ }
 5154+ });
 5155+ },
 5156+
 5157+ not: function( selector ) {
 5158+ if ( typeof selector === "string" )
 5159+ // test special case where just one selector is passed in
 5160+ if ( isSimple.test( selector ) )
 5161+ return this.pushStack( jQuery.multiFilter( selector, this, true ), "not", selector );
 5162+ else
 5163+ selector = jQuery.multiFilter( selector, this );
 5164+
 5165+ var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
 5166+ return this.filter(function() {
 5167+ return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
 5168+ });
 5169+ },
 5170+
 5171+ add: function( selector ) {
 5172+ return this.pushStack( jQuery.unique( jQuery.merge(
 5173+ this.get(),
 5174+ typeof selector === "string" ?
 5175+ jQuery( selector ) :
 5176+ jQuery.makeArray( selector )
 5177+ )));
 5178+ },
 5179+
 5180+ is: function( selector ) {
 5181+ return !!selector && jQuery.multiFilter( selector, this ).length > 0;
 5182+ },
 5183+
 5184+ hasClass: function( selector ) {
 5185+ return !!selector && this.is( "." + selector );
 5186+ },
 5187+
 5188+ val: function( value ) {
 5189+ if ( value === undefined ) {
 5190+ var elem = this[0];
 5191+
 5192+ if ( elem ) {
 5193+ if( jQuery.nodeName( elem, 'option' ) )
 5194+ return (elem.attributes.value || {}).specified ? elem.value : elem.text;
 5195+
 5196+ // We need to handle select boxes special
 5197+ if ( jQuery.nodeName( elem, "select" ) ) {
 5198+ var index = elem.selectedIndex,
 5199+ values = [],
 5200+ options = elem.options,
 5201+ one = elem.type == "select-one";
 5202+
 5203+ // Nothing was selected
 5204+ if ( index < 0 )
 5205+ return null;
 5206+
 5207+ // Loop through all the selected options
 5208+ for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
 5209+ var option = options[ i ];
 5210+
 5211+ if ( option.selected ) {
 5212+ // Get the specifc value for the option
 5213+ value = jQuery(option).val();
 5214+
 5215+ // We don't need an array for one selects
 5216+ if ( one )
 5217+ return value;
 5218+
 5219+ // Multi-Selects return an array
 5220+ values.push( value );
 5221+ }
 5222+ }
 5223+
 5224+ return values;
 5225+ }
 5226+
 5227+ // Everything else, we just grab the value
 5228+ return (elem.value || "").replace(/\r/g, "");
 5229+
 5230+ }
 5231+
 5232+ return undefined;
 5233+ }
 5234+
 5235+ if ( typeof value === "number" )
 5236+ value += '';
 5237+
 5238+ return this.each(function(){
 5239+ if ( this.nodeType != 1 )
 5240+ return;
 5241+
 5242+ if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )
 5243+ this.checked = (jQuery.inArray(this.value, value) >= 0 ||
 5244+ jQuery.inArray(this.name, value) >= 0);
 5245+
 5246+ else if ( jQuery.nodeName( this, "select" ) ) {
 5247+ var values = jQuery.makeArray(value);
 5248+
 5249+ jQuery( "option", this ).each(function(){
 5250+ this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
 5251+ jQuery.inArray( this.text, values ) >= 0);
 5252+ });
 5253+
 5254+ if ( !values.length )
 5255+ this.selectedIndex = -1;
 5256+
 5257+ } else
 5258+ this.value = value;
 5259+ });
 5260+ },
 5261+
 5262+ html: function( value ) {
 5263+ return value === undefined ?
 5264+ (this[0] ?
 5265+ this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") :
 5266+ null) :
 5267+ this.empty().append( value );
 5268+ },
 5269+
 5270+ replaceWith: function( value ) {
 5271+ return this.after( value ).remove();
 5272+ },
 5273+
 5274+ eq: function( i ) {
 5275+ return this.slice( i, +i + 1 );
 5276+ },
 5277+
 5278+ slice: function() {
 5279+ return this.pushStack( Array.prototype.slice.apply( this, arguments ),
 5280+ "slice", Array.prototype.slice.call(arguments).join(",") );
 5281+ },
 5282+
 5283+ map: function( callback ) {
 5284+ return this.pushStack( jQuery.map(this, function(elem, i){
 5285+ return callback.call( elem, i, elem );
 5286+ }));
 5287+ },
 5288+
 5289+ andSelf: function() {
 5290+ return this.add( this.prevObject );
 5291+ },
 5292+
 5293+ domManip: function( args, table, callback ) {
 5294+ if ( this[0] ) {
 5295+ var fragment = (this[0].ownerDocument || this[0]).createDocumentFragment(),
 5296+ scripts = jQuery.clean( args, (this[0].ownerDocument || this[0]), fragment ),
 5297+ first = fragment.firstChild;
 5298+
 5299+ if ( first )
 5300+ for ( var i = 0, l = this.length; i < l; i++ )
 5301+ callback.call( root(this[i], first), this.length > 1 || i > 0 ?
 5302+ fragment.cloneNode(true) : fragment );
 5303+
 5304+ if ( scripts )
 5305+ jQuery.each( scripts, evalScript );
 5306+ }
 5307+
 5308+ return this;
 5309+
 5310+ function root( elem, cur ) {
 5311+ return table && jQuery.nodeName(elem, "table") && jQuery.nodeName(cur, "tr") ?
 5312+ (elem.getElementsByTagName("tbody")[0] ||
 5313+ elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
 5314+ elem;
 5315+ }
 5316+ }
 5317+};
 5318+
 5319+// Give the init function the jQuery prototype for later instantiation
 5320+jQuery.fn.init.prototype = jQuery.fn;
 5321+
 5322+function evalScript( i, elem ) {
 5323+ if ( elem.src )
 5324+ jQuery.ajax({
 5325+ url: elem.src,
 5326+ async: false,
 5327+ dataType: "script"
 5328+ });
 5329+
 5330+ else
 5331+ jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
 5332+
 5333+ if ( elem.parentNode )
 5334+ elem.parentNode.removeChild( elem );
 5335+}
 5336+
 5337+function now(){
 5338+ return +new Date;
 5339+}
 5340+
 5341+jQuery.extend = jQuery.fn.extend = function() {
 5342+ // copy reference to target object
 5343+ var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
 5344+
 5345+ // Handle a deep copy situation
 5346+ if ( typeof target === "boolean" ) {
 5347+ deep = target;
 5348+ target = arguments[1] || {};
 5349+ // skip the boolean and the target
 5350+ i = 2;
 5351+ }
 5352+
 5353+ // Handle case when target is a string or something (possible in deep copy)
 5354+ if ( typeof target !== "object" && !jQuery.isFunction(target) )
 5355+ target = {};
 5356+
 5357+ // extend jQuery itself if only one argument is passed
 5358+ if ( length == i ) {
 5359+ target = this;
 5360+ --i;
 5361+ }
 5362+
 5363+ for ( ; i < length; i++ )
 5364+ // Only deal with non-null/undefined values
 5365+ if ( (options = arguments[ i ]) != null )
 5366+ // Extend the base object
 5367+ for ( var name in options ) {
 5368+ var src = target[ name ], copy = options[ name ];
 5369+
 5370+ // Prevent never-ending loop
 5371+ if ( target === copy )
 5372+ continue;
 5373+
 5374+ // Recurse if we're merging object values
 5375+ if ( deep && copy && typeof copy === "object" && !copy.nodeType )
 5376+ target[ name ] = jQuery.extend( deep,
 5377+ // Never move original objects, clone them
 5378+ src || ( copy.length != null ? [ ] : { } )
 5379+ , copy );
 5380+
 5381+ // Don't bring in undefined values
 5382+ else if ( copy !== undefined )
 5383+ target[ name ] = copy;
 5384+
 5385+ }
 5386+
 5387+ // Return the modified object
 5388+ return target;
 5389+};
 5390+
 5391+// exclude the following css properties to add px
 5392+var exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
 5393+ // cache defaultView
 5394+ defaultView = document.defaultView || {},
 5395+ toString = Object.prototype.toString;
 5396+
 5397+jQuery.extend({
 5398+ noConflict: function( deep ) {
 5399+ window.$ = _$;
 5400+
 5401+ if ( deep )
 5402+ window.jQuery = _jQuery;
 5403+
 5404+ return jQuery;
 5405+ },
 5406+
 5407+ // See test/unit/core.js for details concerning isFunction.
 5408+ // Since version 1.3, DOM methods and functions like alert
 5409+ // aren't supported. They return false on IE (#2968).
 5410+ isFunction: function( obj ) {
 5411+ return toString.call(obj) === "[object Function]";
 5412+ },
 5413+
 5414+ isArray: function( obj ) {
 5415+ return toString.call(obj) === "[object Array]";
 5416+ },
 5417+
 5418+ // check if an element is in a (or is an) XML document
 5419+ isXMLDoc: function( elem ) {
 5420+ return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
 5421+ !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument );
 5422+ },
 5423+
 5424+ // Evalulates a script in a global context
 5425+ globalEval: function( data ) {
 5426+ if ( data && /\S/.test(data) ) {
 5427+ // Inspired by code by Andrea Giammarchi
 5428+ // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
 5429+ var head = document.getElementsByTagName("head")[0] || document.documentElement,
 5430+ script = document.createElement("script");
 5431+
 5432+ script.type = "text/javascript";
 5433+ if ( jQuery.support.scriptEval )
 5434+ script.appendChild( document.createTextNode( data ) );
 5435+ else
 5436+ script.text = data;
 5437+
 5438+ // Use insertBefore instead of appendChild to circumvent an IE6 bug.
 5439+ // This arises when a base node is used (#2709).
 5440+ head.insertBefore( script, head.firstChild );
 5441+ head.removeChild( script );
 5442+ }
 5443+ },
 5444+
 5445+ nodeName: function( elem, name ) {
 5446+ return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
 5447+ },
 5448+
 5449+ // args is for internal usage only
 5450+ each: function( object, callback, args ) {
 5451+ var name, i = 0, length = object.length;
 5452+
 5453+ if ( args ) {
 5454+ if ( length === undefined ) {
 5455+ for ( name in object )
 5456+ if ( callback.apply( object[ name ], args ) === false )
 5457+ break;
 5458+ } else
 5459+ for ( ; i < length; )
 5460+ if ( callback.apply( object[ i++ ], args ) === false )
 5461+ break;
 5462+
 5463+ // A special, fast, case for the most common use of each
 5464+ } else {
 5465+ if ( length === undefined ) {
 5466+ for ( name in object )
 5467+ if ( callback.call( object[ name ], name, object[ name ] ) === false )
 5468+ break;
 5469+ } else
 5470+ for ( var value = object[0];
 5471+ i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
 5472+ }
 5473+
 5474+ return object;
 5475+ },
 5476+
 5477+ prop: function( elem, value, type, i, name ) {
 5478+ // Handle executable functions
 5479+ if ( jQuery.isFunction( value ) )
 5480+ value = value.call( elem, i );
 5481+
 5482+ // Handle passing in a number to a CSS property
 5483+ return typeof value === "number" && type == "curCSS" && !exclude.test( name ) ?
 5484+ value + "px" :
 5485+ value;
 5486+ },
 5487+
 5488+ className: {
 5489+ // internal only, use addClass("class")
 5490+ add: function( elem, classNames ) {
 5491+ jQuery.each((classNames || "").split(/\s+/), function(i, className){
 5492+ if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
 5493+ elem.className += (elem.className ? " " : "") + className;
 5494+ });
 5495+ },
 5496+
 5497+ // internal only, use removeClass("class")
 5498+ remove: function( elem, classNames ) {
 5499+ if (elem.nodeType == 1)
 5500+ elem.className = classNames !== undefined ?
 5501+ jQuery.grep(elem.className.split(/\s+/), function(className){
 5502+ return !jQuery.className.has( classNames, className );
 5503+ }).join(" ") :
 5504+ "";
 5505+ },
 5506+
 5507+ // internal only, use hasClass("class")
 5508+ has: function( elem, className ) {
 5509+ return elem && jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
 5510+ }
 5511+ },
 5512+
 5513+ // A method for quickly swapping in/out CSS properties to get correct calculations
 5514+ swap: function( elem, options, callback ) {
 5515+ var old = {};
 5516+ // Remember the old values, and insert the new ones
 5517+ for ( var name in options ) {
 5518+ old[ name ] = elem.style[ name ];
 5519+ elem.style[ name ] = options[ name ];
 5520+ }
 5521+
 5522+ callback.call( elem );
 5523+
 5524+ // Revert the old values
 5525+ for ( var name in options )
 5526+ elem.style[ name ] = old[ name ];
 5527+ },
 5528+
 5529+ css: function( elem, name, force, extra ) {
 5530+ if ( name == "width" || name == "height" ) {
 5531+ var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ];
 5532+
 5533+ function getWH() {
 5534+ val = name == "width" ? elem.offsetWidth : elem.offsetHeight;
 5535+
 5536+ if ( extra === "border" )
 5537+ return;
 5538+
 5539+ jQuery.each( which, function() {
 5540+ if ( !extra )
 5541+ val -= parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
 5542+ if ( extra === "margin" )
 5543+ val += parseFloat(jQuery.curCSS( elem, "margin" + this, true)) || 0;
 5544+ else
 5545+ val -= parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
 5546+ });
 5547+ }
 5548+
 5549+ if ( elem.offsetWidth !== 0 )
 5550+ getWH();
 5551+ else
 5552+ jQuery.swap( elem, props, getWH );
 5553+
 5554+ return Math.max(0, Math.round(val));
 5555+ }
 5556+
 5557+ return jQuery.curCSS( elem, name, force );
 5558+ },
 5559+
 5560+ curCSS: function( elem, name, force ) {
 5561+ var ret, style = elem.style;
 5562+
 5563+ // We need to handle opacity special in IE
 5564+ if ( name == "opacity" && !jQuery.support.opacity ) {
 5565+ ret = jQuery.attr( style, "opacity" );
 5566+
 5567+ return ret == "" ?
 5568+ "1" :
 5569+ ret;
 5570+ }
 5571+
 5572+ // Make sure we're using the right name for getting the float value
 5573+ if ( name.match( /float/i ) )
 5574+ name = styleFloat;
 5575+
 5576+ if ( !force && style && style[ name ] )
 5577+ ret = style[ name ];
 5578+
 5579+ else if ( defaultView.getComputedStyle ) {
 5580+
 5581+ // Only "float" is needed here
 5582+ if ( name.match( /float/i ) )
 5583+ name = "float";
 5584+
 5585+ name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
 5586+
 5587+ var computedStyle = defaultView.getComputedStyle( elem, null );
 5588+
 5589+ if ( computedStyle )
 5590+ ret = computedStyle.getPropertyValue( name );
 5591+
 5592+ // We should always get a number back from opacity
 5593+ if ( name == "opacity" && ret == "" )
 5594+ ret = "1";
 5595+
 5596+ } else if ( elem.currentStyle ) {
 5597+ var camelCase = name.replace(/\-(\w)/g, function(all, letter){
 5598+ return letter.toUpperCase();
 5599+ });
 5600+
 5601+ ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
 5602+
 5603+ // From the awesome hack by Dean Edwards
 5604+ // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
 5605+
 5606+ // If we're not dealing with a regular pixel number
 5607+ // but a number that has a weird ending, we need to convert it to pixels
 5608+ if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
 5609+ // Remember the original values
 5610+ var left = style.left, rsLeft = elem.runtimeStyle.left;
 5611+
 5612+ // Put in the new values to get a computed value out
 5613+ elem.runtimeStyle.left = elem.currentStyle.left;
 5614+ style.left = ret || 0;
 5615+ ret = style.pixelLeft + "px";
 5616+
 5617+ // Revert the changed values
 5618+ style.left = left;
 5619+ elem.runtimeStyle.left = rsLeft;
 5620+ }
 5621+ }
 5622+
 5623+ return ret;
 5624+ },
 5625+
 5626+ clean: function( elems, context, fragment ) {
 5627+ context = context || document;
 5628+
 5629+ // !context.createElement fails in IE with an error but returns typeof 'object'
 5630+ if ( typeof context.createElement === "undefined" )
 5631+ context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
 5632+
 5633+ // If a single string is passed in and it's a single tag
 5634+ // just do a createElement and skip the rest
 5635+ if ( !fragment && elems.length === 1 && typeof elems[0] === "string" ) {
 5636+ var match = /^<(\w+)\s*\/?>$/.exec(elems[0]);
 5637+ if ( match )
 5638+ return [ context.createElement( match[1] ) ];
 5639+ }
 5640+
 5641+ var ret = [], scripts = [], div = context.createElement("div");
 5642+
 5643+ jQuery.each(elems, function(i, elem){
 5644+ if ( typeof elem === "number" )
 5645+ elem += '';
 5646+
 5647+ if ( !elem )
 5648+ return;
 5649+
 5650+ // Convert html string into DOM nodes
 5651+ if ( typeof elem === "string" ) {
 5652+ // Fix "XHTML"-style tags in all browsers
 5653+ elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
 5654+ return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
 5655+ all :
 5656+ front + "></" + tag + ">";
 5657+ });
 5658+
 5659+ // Trim whitespace, otherwise indexOf won't work as expected
 5660+ var tags = elem.replace(/^\s+/, "").substring(0, 10).toLowerCase();
 5661+
 5662+ var wrap =
 5663+ // option or optgroup
 5664+ !tags.indexOf("<opt") &&
 5665+ [ 1, "<select multiple='multiple'>", "</select>" ] ||
 5666+
 5667+ !tags.indexOf("<leg") &&
 5668+ [ 1, "<fieldset>", "</fieldset>" ] ||
 5669+
 5670+ tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
 5671+ [ 1, "<table>", "</table>" ] ||
 5672+
 5673+ !tags.indexOf("<tr") &&
 5674+ [ 2, "<table><tbody>", "</tbody></table>" ] ||
 5675+
 5676+ // <thead> matched above
 5677+ (!tags.indexOf("<td") || !tags.indexOf("<th")) &&
 5678+ [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||
 5679+
 5680+ !tags.indexOf("<col") &&
 5681+ [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||
 5682+
 5683+ // IE can't serialize <link> and <script> tags normally
 5684+ !jQuery.support.htmlSerialize &&
 5685+ [ 1, "div<div>", "</div>" ] ||
 5686+
 5687+ [ 0, "", "" ];
 5688+
 5689+ // Go to html and back, then peel off extra wrappers
 5690+ div.innerHTML = wrap[1] + elem + wrap[2];
 5691+
 5692+ // Move to the right depth
 5693+ while ( wrap[0]-- )
 5694+ div = div.lastChild;
 5695+
 5696+ // Remove IE's autoinserted <tbody> from table fragments
 5697+ if ( !jQuery.support.tbody ) {
 5698+
 5699+ // String was a <table>, *may* have spurious <tbody>
 5700+ var hasBody = /<tbody/i.test(elem),
 5701+ tbody = !tags.indexOf("<table") && !hasBody ?
 5702+ div.firstChild && div.firstChild.childNodes :
 5703+
 5704+ // String was a bare <thead> or <tfoot>
 5705+ wrap[1] == "<table>" && !hasBody ?
 5706+ div.childNodes :
 5707+ [];
 5708+
 5709+ for ( var j = tbody.length - 1; j >= 0 ; --j )
 5710+ if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )
 5711+ tbody[ j ].parentNode.removeChild( tbody[ j ] );
 5712+
 5713+ }
 5714+
 5715+ // IE completely kills leading whitespace when innerHTML is used
 5716+ if ( !jQuery.support.leadingWhitespace && /^\s/.test( elem ) )
 5717+ div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );
 5718+
 5719+ elem = jQuery.makeArray( div.childNodes );
 5720+ }
 5721+
 5722+ if ( elem.nodeType )
 5723+ ret.push( elem );
 5724+ else
 5725+ ret = jQuery.merge( ret, elem );
 5726+
 5727+ });
 5728+
 5729+ if ( fragment ) {
 5730+ for ( var i = 0; ret[i]; i++ ) {
 5731+ if ( jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
 5732+ scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
 5733+ } else {
 5734+ if ( ret[i].nodeType === 1 )
 5735+ ret.splice.apply( ret, [i + 1, 0].concat(jQuery.makeArray(ret[i].getElementsByTagName("script"))) );
 5736+ fragment.appendChild( ret[i] );
 5737+ }
 5738+ }
 5739+
 5740+ return scripts;
 5741+ }
 5742+
 5743+ return ret;
 5744+ },
 5745+
 5746+ attr: function( elem, name, value ) {
 5747+ // don't set attributes on text and comment nodes
 5748+ if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
 5749+ return undefined;
 5750+
 5751+ var notxml = !jQuery.isXMLDoc( elem ),
 5752+ // Whether we are setting (or getting)
 5753+ set = value !== undefined;
 5754+
 5755+ // Try to normalize/fix the name
 5756+ name = notxml && jQuery.props[ name ] || name;
 5757+
 5758+ // Only do all the following if this is a node (faster for style)
 5759+ // IE elem.getAttribute passes even for style
 5760+ if ( elem.tagName ) {
 5761+
 5762+ // These attributes require special treatment
 5763+ var special = /href|src|style/.test( name );
 5764+
 5765+ // Safari mis-reports the default selected property of a hidden option
 5766+ // Accessing the parent's selectedIndex property fixes it
 5767+ if ( name == "selected" && elem.parentNode )
 5768+ elem.parentNode.selectedIndex;
 5769+
 5770+ // If applicable, access the attribute via the DOM 0 way
 5771+ if ( name in elem && notxml && !special ) {
 5772+ if ( set ){
 5773+ // We can't allow the type property to be changed (since it causes problems in IE)
 5774+ if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
 5775+ throw "type property can't be changed";
 5776+
 5777+ elem[ name ] = value;
 5778+ }
 5779+
 5780+ // browsers index elements by id/name on forms, give priority to attributes.
 5781+ if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
 5782+ return elem.getAttributeNode( name ).nodeValue;
 5783+
 5784+ // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
 5785+ // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
 5786+ if ( name == "tabIndex" ) {
 5787+ var attributeNode = elem.getAttributeNode( "tabIndex" );
 5788+ return attributeNode && attributeNode.specified
 5789+ ? attributeNode.value
 5790+ : elem.nodeName.match(/(button|input|object|select|textarea)/i)
 5791+ ? 0
 5792+ : elem.nodeName.match(/^(a|area)$/i) && elem.href
 5793+ ? 0
 5794+ : undefined;
 5795+ }
 5796+
 5797+ return elem[ name ];
 5798+ }
 5799+
 5800+ if ( !jQuery.support.style && notxml && name == "style" )
 5801+ return jQuery.attr( elem.style, "cssText", value );
 5802+
 5803+ if ( set )
 5804+ // convert the value to a string (all browsers do this but IE) see #1070
 5805+ elem.setAttribute( name, "" + value );
 5806+
 5807+ var attr = !jQuery.support.hrefNormalized && notxml && special
 5808+ // Some attributes require a special call on IE
 5809+ ? elem.getAttribute( name, 2 )
 5810+ : elem.getAttribute( name );
 5811+
 5812+ // Non-existent attributes return null, we normalize to undefined
 5813+ return attr === null ? undefined : attr;
 5814+ }
 5815+
 5816+ // elem is actually elem.style ... set the style
 5817+
 5818+ // IE uses filters for opacity
 5819+ if ( !jQuery.support.opacity && name == "opacity" ) {
 5820+ if ( set ) {
 5821+ // IE has trouble with opacity if it does not have layout
 5822+ // Force it by setting the zoom level
 5823+ elem.zoom = 1;
 5824+
 5825+ // Set the alpha filter to set the opacity
 5826+ elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +
 5827+ (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
 5828+ }
 5829+
 5830+ return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
 5831+ (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
 5832+ "";
 5833+ }
 5834+
 5835+ name = name.replace(/-([a-z])/ig, function(all, letter){
 5836+ return letter.toUpperCase();
 5837+ });
 5838+
 5839+ if ( set )
 5840+ elem[ name ] = value;
 5841+
 5842+ return elem[ name ];
 5843+ },
 5844+
 5845+ trim: function( text ) {
 5846+ return (text || "").replace( /^\s+|\s+$/g, "" );
 5847+ },
 5848+
 5849+ makeArray: function( array ) {
 5850+ var ret = [];
 5851+
 5852+ if( array != null ){
 5853+ var i = array.length;
 5854+ // The window, strings (and functions) also have 'length'
 5855+ if( i == null || typeof array === "string" || jQuery.isFunction(array) || array.setInterval )
 5856+ ret[0] = array;
 5857+ else
 5858+ while( i )
 5859+ ret[--i] = array[i];
 5860+ }
 5861+
 5862+ return ret;
 5863+ },
 5864+
 5865+ inArray: function( elem, array ) {
 5866+ for ( var i = 0, length = array.length; i < length; i++ )
 5867+ // Use === because on IE, window == document
 5868+ if ( array[ i ] === elem )
 5869+ return i;
 5870+
 5871+ return -1;
 5872+ },
 5873+
 5874+ merge: function( first, second ) {
 5875+ // We have to loop this way because IE & Opera overwrite the length
 5876+ // expando of getElementsByTagName
 5877+ var i = 0, elem, pos = first.length;
 5878+ // Also, we need to make sure that the correct elements are being returned
 5879+ // (IE returns comment nodes in a '*' query)
 5880+ if ( !jQuery.support.getAll ) {
 5881+ while ( (elem = second[ i++ ]) != null )
 5882+ if ( elem.nodeType != 8 )
 5883+ first[ pos++ ] = elem;
 5884+
 5885+ } else
 5886+ while ( (elem = second[ i++ ]) != null )
 5887+ first[ pos++ ] = elem;
 5888+
 5889+ return first;
 5890+ },
 5891+
 5892+ unique: function( array ) {
 5893+ var ret = [], done = {};
 5894+
 5895+ try {
 5896+
 5897+ for ( var i = 0, length = array.length; i < length; i++ ) {
 5898+ var id = jQuery.data( array[ i ] );
 5899+
 5900+ if ( !done[ id ] ) {
 5901+ done[ id ] = true;
 5902+ ret.push( array[ i ] );
 5903+ }
 5904+ }
 5905+
 5906+ } catch( e ) {
 5907+ ret = array;
 5908+ }
 5909+
 5910+ return ret;
 5911+ },
 5912+
 5913+ grep: function( elems, callback, inv ) {
 5914+ var ret = [];
 5915+
 5916+ // Go through the array, only saving the items
 5917+ // that pass the validator function
 5918+ for ( var i = 0, length = elems.length; i < length; i++ )
 5919+ if ( !inv != !callback( elems[ i ], i ) )
 5920+ ret.push( elems[ i ] );
 5921+
 5922+ return ret;
 5923+ },
 5924+
 5925+ map: function( elems, callback ) {
 5926+ var ret = [];
 5927+
 5928+ // Go through the array, translating each of the items to their
 5929+ // new value (or values).
 5930+ for ( var i = 0, length = elems.length; i < length; i++ ) {
 5931+ var value = callback( elems[ i ], i );
 5932+
 5933+ if ( value != null )
 5934+ ret[ ret.length ] = value;
 5935+ }
 5936+
 5937+ return ret.concat.apply( [], ret );
 5938+ }
 5939+});
 5940+
 5941+// Use of jQuery.browser is deprecated.
 5942+// It's included for backwards compatibility and plugins,
 5943+// although they should work to migrate away.
 5944+
 5945+var userAgent = navigator.userAgent.toLowerCase();
 5946+
 5947+// Figure out what browser is being used
 5948+jQuery.browser = {
 5949+ version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1],
 5950+ safari: /webkit/.test( userAgent ),
 5951+ opera: /opera/.test( userAgent ),
 5952+ msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
 5953+ mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
 5954+};
 5955+
 5956+jQuery.each({
 5957+ parent: function(elem){return elem.parentNode;},
 5958+ parents: function(elem){return jQuery.dir(elem,"parentNode");},
 5959+ next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
 5960+ prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
 5961+ nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
 5962+ prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
 5963+ siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
 5964+ children: function(elem){return jQuery.sibling(elem.firstChild);},
 5965+ contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
 5966+}, function(name, fn){
 5967+ jQuery.fn[ name ] = function( selector ) {
 5968+ var ret = jQuery.map( this, fn );
 5969+
 5970+ if ( selector && typeof selector == "string" )
 5971+ ret = jQuery.multiFilter( selector, ret );
 5972+
 5973+ return this.pushStack( jQuery.unique( ret ), name, selector );
 5974+ };
 5975+});
 5976+
 5977+jQuery.each({
 5978+ appendTo: "append",
 5979+ prependTo: "prepend",
 5980+ insertBefore: "before",
 5981+ insertAfter: "after",
 5982+ replaceAll: "replaceWith"
 5983+}, function(name, original){
 5984+ jQuery.fn[ name ] = function( selector ) {
 5985+ var ret = [], insert = jQuery( selector );
 5986+
 5987+ for ( var i = 0, l = insert.length; i < l; i++ ) {
 5988+ var elems = (i > 0 ? this.clone(true) : this).get();
 5989+ jQuery.fn[ original ].apply( jQuery(insert[i]), elems );
 5990+ ret = ret.concat( elems );
 5991+ }
 5992+
 5993+ return this.pushStack( ret, name, selector );
 5994+ };
 5995+});
 5996+
 5997+jQuery.each({
 5998+ removeAttr: function( name ) {
 5999+ jQuery.attr( this, name, "" );
 6000+ if (this.nodeType == 1)
 6001+ this.removeAttribute( name );
 6002+ },
 6003+
 6004+ addClass: function( classNames ) {
 6005+ jQuery.className.add( this, classNames );
 6006+ },
 6007+
 6008+ removeClass: function( classNames ) {
 6009+ jQuery.className.remove( this, classNames );
 6010+ },
 6011+
 6012+ toggleClass: function( classNames, state ) {
 6013+ if( typeof state !== "boolean" )
 6014+ state = !jQuery.className.has( this, classNames );
 6015+ jQuery.className[ state ? "add" : "remove" ]( this, classNames );
 6016+ },
 6017+
 6018+ remove: function( selector ) {
 6019+ if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
 6020+ // Prevent memory leaks
 6021+ jQuery( "*", this ).add([this]).each(function(){
 6022+ jQuery.event.remove(this);
 6023+ jQuery.removeData(this);
 6024+ });
 6025+ if (this.parentNode)
 6026+ this.parentNode.removeChild( this );
 6027+ }
 6028+ },
 6029+
 6030+ empty: function() {
 6031+ // Remove element nodes and prevent memory leaks
 6032+ jQuery(this).children().remove();
 6033+
 6034+ // Remove any remaining nodes
 6035+ while ( this.firstChild )
 6036+ this.removeChild( this.firstChild );
 6037+ }
 6038+}, function(name, fn){
 6039+ jQuery.fn[ name ] = function(){
 6040+ return this.each( fn, arguments );
 6041+ };
 6042+});
 6043+
 6044+// Helper function used by the dimensions and offset modules
 6045+function num(elem, prop) {
 6046+ return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
 6047+}
 6048+var expando = "jQuery" + now(), uuid = 0, windowData = {};
 6049+
 6050+
 6051+
 6052+jQuery.extend({
 6053+
 6054+ cache: {},
 6055+
 6056+
 6057+
 6058+ data: function( elem, name, data ) {
 6059+
 6060+ elem = elem == window ?
 6061+
 6062+ windowData :
 6063+
 6064+ elem;
 6065+
 6066+
 6067+
 6068+ var id = elem[ expando ];
 6069+
 6070+
 6071+
 6072+ // Compute a unique ID for the element
 6073+
 6074+ if ( !id )
 6075+
 6076+ id = elem[ expando ] = ++uuid;
 6077+
 6078+
 6079+
 6080+ // Only generate the data cache if we're
 6081+
 6082+ // trying to access or manipulate it
 6083+
 6084+ if ( name && !jQuery.cache[ id ] )
 6085+
 6086+ jQuery.cache[ id ] = {};
 6087+
 6088+
 6089+
 6090+ // Prevent overriding the named cache with undefined values
 6091+
 6092+ if ( data !== undefined )
 6093+
 6094+ jQuery.cache[ id ][ name ] = data;
 6095+
 6096+
 6097+
 6098+ // Return the named cache data, or the ID for the element
 6099+
 6100+ return name ?
 6101+
 6102+ jQuery.cache[ id ][ name ] :
 6103+
 6104+ id;
 6105+
 6106+ },
 6107+
 6108+
 6109+
 6110+ removeData: function( elem, name ) {
 6111+
 6112+ elem = elem == window ?
 6113+
 6114+ windowData :
 6115+
 6116+ elem;
 6117+
 6118+
 6119+
 6120+ var id = elem[ expando ];
 6121+
 6122+
 6123+
 6124+ // If we want to remove a specific section of the element's data
 6125+
 6126+ if ( name ) {
 6127+
 6128+ if ( jQuery.cache[ id ] ) {
 6129+
 6130+ // Remove the section of cache data
 6131+
 6132+ delete jQuery.cache[ id ][ name ];
 6133+
 6134+
 6135+
 6136+ // If we've removed all the data, remove the element's cache
 6137+
 6138+ name = "";
 6139+
 6140+
 6141+
 6142+ for ( name in jQuery.cache[ id ] )
 6143+
 6144+ break;
 6145+
 6146+
 6147+
 6148+ if ( !name )
 6149+
 6150+ jQuery.removeData( elem );
 6151+
 6152+ }
 6153+
 6154+
 6155+
 6156+ // Otherwise, we want to remove all of the element's data
 6157+
 6158+ } else {
 6159+
 6160+ // Clean up the element expando
 6161+
 6162+ try {
 6163+
 6164+ delete elem[ expando ];
 6165+
 6166+ } catch(e){
 6167+
 6168+ // IE has trouble directly removing the expando
 6169+
 6170+ // but it's ok with using removeAttribute
 6171+
 6172+ if ( elem.removeAttribute )
 6173+
 6174+ elem.removeAttribute( expando );
 6175+
 6176+ }
 6177+
 6178+
 6179+
 6180+ // Completely remove the data cache
 6181+
 6182+ delete jQuery.cache[ id ];
 6183+
 6184+ }
 6185+
 6186+ },
 6187+
 6188+ queue: function( elem, type, data ) {
 6189+
 6190+ if ( elem ){
 6191+
 6192+
 6193+
 6194+ type = (type || "fx") + "queue";
 6195+
 6196+
 6197+
 6198+ var q = jQuery.data( elem, type );
 6199+
 6200+
 6201+
 6202+ if ( !q || jQuery.isArray(data) )
 6203+
 6204+ q = jQuery.data( elem, type, jQuery.makeArray(data) );
 6205+
 6206+ else if( data )
 6207+
 6208+ q.push( data );
 6209+
 6210+
 6211+
 6212+ }
 6213+
 6214+ return q;
 6215+
 6216+ },
 6217+
 6218+
 6219+
 6220+ dequeue: function( elem, type ){
 6221+
 6222+ var queue = jQuery.queue( elem, type ),
 6223+
 6224+ fn = queue.shift();
 6225+
 6226+
 6227+
 6228+ if( !type || type === "fx" )
 6229+
 6230+ fn = queue[0];
 6231+
 6232+
 6233+
 6234+ if( fn !== undefined )
 6235+
 6236+ fn.call(elem);
 6237+
 6238+ }
 6239+
 6240+});
 6241+
 6242+
 6243+
 6244+jQuery.fn.extend({
 6245+
 6246+ data: function( key, value ){
 6247+
 6248+ var parts = key.split(".");
 6249+
 6250+ parts[1] = parts[1] ? "." + parts[1] : "";
 6251+
 6252+
 6253+
 6254+ if ( value === undefined ) {
 6255+
 6256+ var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
 6257+
 6258+
 6259+
 6260+ if ( data === undefined && this.length )
 6261+
 6262+ data = jQuery.data( this[0], key );
 6263+
 6264+
 6265+
 6266+ return data === undefined && parts[1] ?
 6267+
 6268+ this.data( parts[0] ) :
 6269+
 6270+ data;
 6271+
 6272+ } else
 6273+
 6274+ return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
 6275+
 6276+ jQuery.data( this, key, value );
 6277+
 6278+ });
 6279+
 6280+ },
 6281+
 6282+
 6283+
 6284+ removeData: function( key ){
 6285+
 6286+ return this.each(function(){
 6287+
 6288+ jQuery.removeData( this, key );
 6289+
 6290+ });
 6291+
 6292+ },
 6293+
 6294+ queue: function(type, data){
 6295+
 6296+ if ( typeof type !== "string" ) {
 6297+
 6298+ data = type;
 6299+
 6300+ type = "fx";
 6301+
 6302+ }
 6303+
 6304+
 6305+
 6306+ if ( data === undefined )
 6307+
 6308+ return jQuery.queue( this[0], type );
 6309+
 6310+
 6311+
 6312+ return this.each(function(){
 6313+
 6314+ var queue = jQuery.queue( this, type, data );
 6315+
 6316+
 6317+
 6318+ if( type == "fx" && queue.length == 1 )
 6319+
 6320+ queue[0].call(this);
 6321+
 6322+ });
 6323+
 6324+ },
 6325+
 6326+ dequeue: function(type){
 6327+
 6328+ return this.each(function(){
 6329+
 6330+ jQuery.dequeue( this, type );
 6331+
 6332+ });
 6333+
 6334+ }
 6335+
 6336+});/*!
 6337+ * Sizzle CSS Selector Engine - v0.9.3
 6338+ * Copyright 2009, The Dojo Foundation
 6339+ * Released under the MIT, BSD, and GPL Licenses.
 6340+ * More information: http://sizzlejs.com/
 6341+ */
 6342+(function(){
 6343+
 6344+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,
 6345+ done = 0,
 6346+ toString = Object.prototype.toString;
 6347+
 6348+var Sizzle = function(selector, context, results, seed) {
 6349+ results = results || [];
 6350+ context = context || document;
 6351+
 6352+ if ( context.nodeType !== 1 && context.nodeType !== 9 )
 6353+ return [];
 6354+
 6355+ if ( !selector || typeof selector !== "string" ) {
 6356+ return results;
 6357+ }
 6358+
 6359+ var parts = [], m, set, checkSet, check, mode, extra, prune = true;
 6360+
 6361+ // Reset the position of the chunker regexp (start from head)
 6362+ chunker.lastIndex = 0;
 6363+
 6364+ while ( (m = chunker.exec(selector)) !== null ) {
 6365+ parts.push( m[1] );
 6366+
 6367+ if ( m[2] ) {
 6368+ extra = RegExp.rightContext;
 6369+ break;
 6370+ }
 6371+ }
 6372+
 6373+ if ( parts.length > 1 && origPOS.exec( selector ) ) {
 6374+ if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
 6375+ set = posProcess( parts[0] + parts[1], context );
 6376+ } else {
 6377+ set = Expr.relative[ parts[0] ] ?
 6378+ [ context ] :
 6379+ Sizzle( parts.shift(), context );
 6380+
 6381+ while ( parts.length ) {
 6382+ selector = parts.shift();
 6383+
 6384+ if ( Expr.relative[ selector ] )
 6385+ selector += parts.shift();
 6386+
 6387+ set = posProcess( selector, set );
 6388+ }
 6389+ }
 6390+ } else {
 6391+ var ret = seed ?
 6392+ { expr: parts.pop(), set: makeArray(seed) } :
 6393+ Sizzle.find( parts.pop(), parts.length === 1 && context.parentNode ? context.parentNode : context, isXML(context) );
 6394+ set = Sizzle.filter( ret.expr, ret.set );
 6395+
 6396+ if ( parts.length > 0 ) {
 6397+ checkSet = makeArray(set);
 6398+ } else {
 6399+ prune = false;
 6400+ }
 6401+
 6402+ while ( parts.length ) {
 6403+ var cur = parts.pop(), pop = cur;
 6404+
 6405+ if ( !Expr.relative[ cur ] ) {
 6406+ cur = "";
 6407+ } else {
 6408+ pop = parts.pop();
 6409+ }
 6410+
 6411+ if ( pop == null ) {
 6412+ pop = context;
 6413+ }
 6414+
 6415+ Expr.relative[ cur ]( checkSet, pop, isXML(context) );
 6416+ }
 6417+ }
 6418+
 6419+ if ( !checkSet ) {
 6420+ checkSet = set;
 6421+ }
 6422+
 6423+ if ( !checkSet ) {
 6424+ throw "Syntax error, unrecognized expression: " + (cur || selector);
 6425+ }
 6426+
 6427+ if ( toString.call(checkSet) === "[object Array]" ) {
 6428+ if ( !prune ) {
 6429+ results.push.apply( results, checkSet );
 6430+ } else if ( context.nodeType === 1 ) {
 6431+ for ( var i = 0; checkSet[i] != null; i++ ) {
 6432+ if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && contains(context, checkSet[i])) ) {
 6433+ results.push( set[i] );
 6434+ }
 6435+ }
 6436+ } else {
 6437+ for ( var i = 0; checkSet[i] != null; i++ ) {
 6438+ if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
 6439+ results.push( set[i] );
 6440+ }
 6441+ }
 6442+ }
 6443+ } else {
 6444+ makeArray( checkSet, results );
 6445+ }
 6446+
 6447+ if ( extra ) {
 6448+ Sizzle( extra, context, results, seed );
 6449+
 6450+ if ( sortOrder ) {
 6451+ hasDuplicate = false;
 6452+ results.sort(sortOrder);
 6453+
 6454+ if ( hasDuplicate ) {
 6455+ for ( var i = 1; i < results.length; i++ ) {
 6456+ if ( results[i] === results[i-1] ) {
 6457+ results.splice(i--, 1);
 6458+ }
 6459+ }
 6460+ }
 6461+ }
 6462+ }
 6463+
 6464+ return results;
 6465+};
 6466+
 6467+Sizzle.matches = function(expr, set){
 6468+ return Sizzle(expr, null, null, set);
 6469+};
 6470+
 6471+Sizzle.find = function(expr, context, isXML){
 6472+ var set, match;
 6473+
 6474+ if ( !expr ) {
 6475+ return [];
 6476+ }
 6477+
 6478+ for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
 6479+ var type = Expr.order[i], match;
 6480+
 6481+ if ( (match = Expr.match[ type ].exec( expr )) ) {
 6482+ var left = RegExp.leftContext;
 6483+
 6484+ if ( left.substr( left.length - 1 ) !== "\\" ) {
 6485+ match[1] = (match[1] || "").replace(/\\/g, "");
 6486+ set = Expr.find[ type ]( match, context, isXML );
 6487+ if ( set != null ) {
 6488+ expr = expr.replace( Expr.match[ type ], "" );
 6489+ break;
 6490+ }
 6491+ }
 6492+ }
 6493+ }
 6494+
 6495+ if ( !set ) {
 6496+ set = context.getElementsByTagName("*");
 6497+ }
 6498+
 6499+ return {set: set, expr: expr};
 6500+};
 6501+
 6502+Sizzle.filter = function(expr, set, inplace, not){
 6503+ var old = expr, result = [], curLoop = set, match, anyFound,
 6504+ isXMLFilter = set && set[0] && isXML(set[0]);
 6505+
 6506+ while ( expr && set.length ) {
 6507+ for ( var type in Expr.filter ) {
 6508+ if ( (match = Expr.match[ type ].exec( expr )) != null ) {
 6509+ var filter = Expr.filter[ type ], found, item;
 6510+ anyFound = false;
 6511+
 6512+ if ( curLoop == result ) {
 6513+ result = [];
 6514+ }
 6515+
 6516+ if ( Expr.preFilter[ type ] ) {
 6517+ match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
 6518+
 6519+ if ( !match ) {
 6520+ anyFound = found = true;
 6521+ } else if ( match === true ) {
 6522+ continue;
 6523+ }
 6524+ }
 6525+
 6526+ if ( match ) {
 6527+ for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
 6528+ if ( item ) {
 6529+ found = filter( item, match, i, curLoop );
 6530+ var pass = not ^ !!found;
 6531+
 6532+ if ( inplace && found != null ) {
 6533+ if ( pass ) {
 6534+ anyFound = true;
 6535+ } else {
 6536+ curLoop[i] = false;
 6537+ }
 6538+ } else if ( pass ) {
 6539+ result.push( item );
 6540+ anyFound = true;
 6541+ }
 6542+ }
 6543+ }
 6544+ }
 6545+
 6546+ if ( found !== undefined ) {
 6547+ if ( !inplace ) {
 6548+ curLoop = result;
 6549+ }
 6550+
 6551+ expr = expr.replace( Expr.match[ type ], "" );
 6552+
 6553+ if ( !anyFound ) {
 6554+ return [];
 6555+ }
 6556+
 6557+ break;
 6558+ }
 6559+ }
 6560+ }
 6561+
 6562+ // Improper expression
 6563+ if ( expr == old ) {
 6564+ if ( anyFound == null ) {
 6565+ throw "Syntax error, unrecognized expression: " + expr;
 6566+ } else {
 6567+ break;
 6568+ }
 6569+ }
 6570+
 6571+ old = expr;
 6572+ }
 6573+
 6574+ return curLoop;
 6575+};
 6576+
 6577+var Expr = Sizzle.selectors = {
 6578+ order: [ "ID", "NAME", "TAG" ],
 6579+ match: {
 6580+ ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
 6581+ CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,
 6582+ NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,
 6583+ ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,
 6584+ TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,
 6585+ CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,
 6586+ POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,
 6587+ PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/
 6588+ },
 6589+ attrMap: {
 6590+ "class": "className",
 6591+ "for": "htmlFor"
 6592+ },
 6593+ attrHandle: {
 6594+ href: function(elem){
 6595+ return elem.getAttribute("href");
 6596+ }
 6597+ },
 6598+ relative: {
 6599+ "+": function(checkSet, part, isXML){
 6600+ var isPartStr = typeof part === "string",
 6601+ isTag = isPartStr && !/\W/.test(part),
 6602+ isPartStrNotTag = isPartStr && !isTag;
 6603+
 6604+ if ( isTag && !isXML ) {
 6605+ part = part.toUpperCase();
 6606+ }
 6607+
 6608+ for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
 6609+ if ( (elem = checkSet[i]) ) {
 6610+ while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
 6611+
 6612+ checkSet[i] = isPartStrNotTag || elem && elem.nodeName === part ?
 6613+ elem || false :
 6614+ elem === part;
 6615+ }
 6616+ }
 6617+
 6618+ if ( isPartStrNotTag ) {
 6619+ Sizzle.filter( part, checkSet, true );
 6620+ }
 6621+ },
 6622+ ">": function(checkSet, part, isXML){
 6623+ var isPartStr = typeof part === "string";
 6624+
 6625+ if ( isPartStr && !/\W/.test(part) ) {
 6626+ part = isXML ? part : part.toUpperCase();
 6627+
 6628+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 6629+ var elem = checkSet[i];
 6630+ if ( elem ) {
 6631+ var parent = elem.parentNode;
 6632+ checkSet[i] = parent.nodeName === part ? parent : false;
 6633+ }
 6634+ }
 6635+ } else {
 6636+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 6637+ var elem = checkSet[i];
 6638+ if ( elem ) {
 6639+ checkSet[i] = isPartStr ?
 6640+ elem.parentNode :
 6641+ elem.parentNode === part;
 6642+ }
 6643+ }
 6644+
 6645+ if ( isPartStr ) {
 6646+ Sizzle.filter( part, checkSet, true );
 6647+ }
 6648+ }
 6649+ },
 6650+ "": function(checkSet, part, isXML){
 6651+ var doneName = done++, checkFn = dirCheck;
 6652+
 6653+ if ( !part.match(/\W/) ) {
 6654+ var nodeCheck = part = isXML ? part : part.toUpperCase();
 6655+ checkFn = dirNodeCheck;
 6656+ }
 6657+
 6658+ checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML);
 6659+ },
 6660+ "~": function(checkSet, part, isXML){
 6661+ var doneName = done++, checkFn = dirCheck;
 6662+
 6663+ if ( typeof part === "string" && !part.match(/\W/) ) {
 6664+ var nodeCheck = part = isXML ? part : part.toUpperCase();
 6665+ checkFn = dirNodeCheck;
 6666+ }
 6667+
 6668+ checkFn("previousSibling", part, doneName, checkSet, nodeCheck, isXML);
 6669+ }
 6670+ },
 6671+ find: {
 6672+ ID: function(match, context, isXML){
 6673+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
 6674+ var m = context.getElementById(match[1]);
 6675+ return m ? [m] : [];
 6676+ }
 6677+ },
 6678+ NAME: function(match, context, isXML){
 6679+ if ( typeof context.getElementsByName !== "undefined" ) {
 6680+ var ret = [], results = context.getElementsByName(match[1]);
 6681+
 6682+ for ( var i = 0, l = results.length; i < l; i++ ) {
 6683+ if ( results[i].getAttribute("name") === match[1] ) {
 6684+ ret.push( results[i] );
 6685+ }
 6686+ }
 6687+
 6688+ return ret.length === 0 ? null : ret;
 6689+ }
 6690+ },
 6691+ TAG: function(match, context){
 6692+ return context.getElementsByTagName(match[1]);
 6693+ }
 6694+ },
 6695+ preFilter: {
 6696+ CLASS: function(match, curLoop, inplace, result, not, isXML){
 6697+ match = " " + match[1].replace(/\\/g, "") + " ";
 6698+
 6699+ if ( isXML ) {
 6700+ return match;
 6701+ }
 6702+
 6703+ for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
 6704+ if ( elem ) {
 6705+ if ( not ^ (elem.className && (" " + elem.className + " ").indexOf(match) >= 0) ) {
 6706+ if ( !inplace )
 6707+ result.push( elem );
 6708+ } else if ( inplace ) {
 6709+ curLoop[i] = false;
 6710+ }
 6711+ }
 6712+ }
 6713+
 6714+ return false;
 6715+ },
 6716+ ID: function(match){
 6717+ return match[1].replace(/\\/g, "");
 6718+ },
 6719+ TAG: function(match, curLoop){
 6720+ for ( var i = 0; curLoop[i] === false; i++ ){}
 6721+ return curLoop[i] && isXML(curLoop[i]) ? match[1] : match[1].toUpperCase();
 6722+ },
 6723+ CHILD: function(match){
 6724+ if ( match[1] == "nth" ) {
 6725+ // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
 6726+ var test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
 6727+ match[2] == "even" && "2n" || match[2] == "odd" && "2n+1" ||
 6728+ !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
 6729+
 6730+ // calculate the numbers (first)n+(last) including if they are negative
 6731+ match[2] = (test[1] + (test[2] || 1)) - 0;
 6732+ match[3] = test[3] - 0;
 6733+ }
 6734+
 6735+ // TODO: Move to normal caching system
 6736+ match[0] = done++;
 6737+
 6738+ return match;
 6739+ },
 6740+ ATTR: function(match, curLoop, inplace, result, not, isXML){
 6741+ var name = match[1].replace(/\\/g, "");
 6742+
 6743+ if ( !isXML && Expr.attrMap[name] ) {
 6744+ match[1] = Expr.attrMap[name];
 6745+ }
 6746+
 6747+ if ( match[2] === "~=" ) {
 6748+ match[4] = " " + match[4] + " ";
 6749+ }
 6750+
 6751+ return match;
 6752+ },
 6753+ PSEUDO: function(match, curLoop, inplace, result, not){
 6754+ if ( match[1] === "not" ) {
 6755+ // If we're dealing with a complex expression, or a simple one
 6756+ if ( match[3].match(chunker).length > 1 || /^\w/.test(match[3]) ) {
 6757+ match[3] = Sizzle(match[3], null, null, curLoop);
 6758+ } else {
 6759+ var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
 6760+ if ( !inplace ) {
 6761+ result.push.apply( result, ret );
 6762+ }
 6763+ return false;
 6764+ }
 6765+ } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
 6766+ return true;
 6767+ }
 6768+
 6769+ return match;
 6770+ },
 6771+ POS: function(match){
 6772+ match.unshift( true );
 6773+ return match;
 6774+ }
 6775+ },
 6776+ filters: {
 6777+ enabled: function(elem){
 6778+ return elem.disabled === false && elem.type !== "hidden";
 6779+ },
 6780+ disabled: function(elem){
 6781+ return elem.disabled === true;
 6782+ },
 6783+ checked: function(elem){
 6784+ return elem.checked === true;
 6785+ },
 6786+ selected: function(elem){
 6787+ // Accessing this property makes selected-by-default
 6788+ // options in Safari work properly
 6789+ elem.parentNode.selectedIndex;
 6790+ return elem.selected === true;
 6791+ },
 6792+ parent: function(elem){
 6793+ return !!elem.firstChild;
 6794+ },
 6795+ empty: function(elem){
 6796+ return !elem.firstChild;
 6797+ },
 6798+ has: function(elem, i, match){
 6799+ return !!Sizzle( match[3], elem ).length;
 6800+ },
 6801+ header: function(elem){
 6802+ return /h\d/i.test( elem.nodeName );
 6803+ },
 6804+ text: function(elem){
 6805+ return "text" === elem.type;
 6806+ },
 6807+ radio: function(elem){
 6808+ return "radio" === elem.type;
 6809+ },
 6810+ checkbox: function(elem){
 6811+ return "checkbox" === elem.type;
 6812+ },
 6813+ file: function(elem){
 6814+ return "file" === elem.type;
 6815+ },
 6816+ password: function(elem){
 6817+ return "password" === elem.type;
 6818+ },
 6819+ submit: function(elem){
 6820+ return "submit" === elem.type;
 6821+ },
 6822+ image: function(elem){
 6823+ return "image" === elem.type;
 6824+ },
 6825+ reset: function(elem){
 6826+ return "reset" === elem.type;
 6827+ },
 6828+ button: function(elem){
 6829+ return "button" === elem.type || elem.nodeName.toUpperCase() === "BUTTON";
 6830+ },
 6831+ input: function(elem){
 6832+ return /input|select|textarea|button/i.test(elem.nodeName);
 6833+ }
 6834+ },
 6835+ setFilters: {
 6836+ first: function(elem, i){
 6837+ return i === 0;
 6838+ },
 6839+ last: function(elem, i, match, array){
 6840+ return i === array.length - 1;
 6841+ },
 6842+ even: function(elem, i){
 6843+ return i % 2 === 0;
 6844+ },
 6845+ odd: function(elem, i){
 6846+ return i % 2 === 1;
 6847+ },
 6848+ lt: function(elem, i, match){
 6849+ return i < match[3] - 0;
 6850+ },
 6851+ gt: function(elem, i, match){
 6852+ return i > match[3] - 0;
 6853+ },
 6854+ nth: function(elem, i, match){
 6855+ return match[3] - 0 == i;
 6856+ },
 6857+ eq: function(elem, i, match){
 6858+ return match[3] - 0 == i;
 6859+ }
 6860+ },
 6861+ filter: {
 6862+ PSEUDO: function(elem, match, i, array){
 6863+ var name = match[1], filter = Expr.filters[ name ];
 6864+
 6865+ if ( filter ) {
 6866+ return filter( elem, i, match, array );
 6867+ } else if ( name === "contains" ) {
 6868+ return (elem.textContent || elem.innerText || "").indexOf(match[3]) >= 0;
 6869+ } else if ( name === "not" ) {
 6870+ var not = match[3];
 6871+
 6872+ for ( var i = 0, l = not.length; i < l; i++ ) {
 6873+ if ( not[i] === elem ) {
 6874+ return false;
 6875+ }
 6876+ }
 6877+
 6878+ return true;
 6879+ }
 6880+ },
 6881+ CHILD: function(elem, match){
 6882+ var type = match[1], node = elem;
 6883+ switch (type) {
 6884+ case 'only':
 6885+ case 'first':
 6886+ while (node = node.previousSibling) {
 6887+ if ( node.nodeType === 1 ) return false;
 6888+ }
 6889+ if ( type == 'first') return true;
 6890+ node = elem;
 6891+ case 'last':
 6892+ while (node = node.nextSibling) {
 6893+ if ( node.nodeType === 1 ) return false;
 6894+ }
 6895+ return true;
 6896+ case 'nth':
 6897+ var first = match[2], last = match[3];
 6898+
 6899+ if ( first == 1 && last == 0 ) {
 6900+ return true;
 6901+ }
 6902+
 6903+ var doneName = match[0],
 6904+ parent = elem.parentNode;
 6905+
 6906+ if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
 6907+ var count = 0;
 6908+ for ( node = parent.firstChild; node; node = node.nextSibling ) {
 6909+ if ( node.nodeType === 1 ) {
 6910+ node.nodeIndex = ++count;
 6911+ }
 6912+ }
 6913+ parent.sizcache = doneName;
 6914+ }
 6915+
 6916+ var diff = elem.nodeIndex - last;
 6917+ if ( first == 0 ) {
 6918+ return diff == 0;
 6919+ } else {
 6920+ return ( diff % first == 0 && diff / first >= 0 );
 6921+ }
 6922+ }
 6923+ },
 6924+ ID: function(elem, match){
 6925+ return elem.nodeType === 1 && elem.getAttribute("id") === match;
 6926+ },
 6927+ TAG: function(elem, match){
 6928+ return (match === "*" && elem.nodeType === 1) || elem.nodeName === match;
 6929+ },
 6930+ CLASS: function(elem, match){
 6931+ return (" " + (elem.className || elem.getAttribute("class")) + " ")
 6932+ .indexOf( match ) > -1;
 6933+ },
 6934+ ATTR: function(elem, match){
 6935+ var name = match[1],
 6936+ result = Expr.attrHandle[ name ] ?
 6937+ Expr.attrHandle[ name ]( elem ) :
 6938+ elem[ name ] != null ?
 6939+ elem[ name ] :
 6940+ elem.getAttribute( name ),
 6941+ value = result + "",
 6942+ type = match[2],
 6943+ check = match[4];
 6944+
 6945+ return result == null ?
 6946+ type === "!=" :
 6947+ type === "=" ?
 6948+ value === check :
 6949+ type === "*=" ?
 6950+ value.indexOf(check) >= 0 :
 6951+ type === "~=" ?
 6952+ (" " + value + " ").indexOf(check) >= 0 :
 6953+ !check ?
 6954+ value && result !== false :
 6955+ type === "!=" ?
 6956+ value != check :
 6957+ type === "^=" ?
 6958+ value.indexOf(check) === 0 :
 6959+ type === "$=" ?
 6960+ value.substr(value.length - check.length) === check :
 6961+ type === "|=" ?
 6962+ value === check || value.substr(0, check.length + 1) === check + "-" :
 6963+ false;
 6964+ },
 6965+ POS: function(elem, match, i, array){
 6966+ var name = match[2], filter = Expr.setFilters[ name ];
 6967+
 6968+ if ( filter ) {
 6969+ return filter( elem, i, match, array );
 6970+ }
 6971+ }
 6972+ }
 6973+};
 6974+
 6975+var origPOS = Expr.match.POS;
 6976+
 6977+for ( var type in Expr.match ) {
 6978+ Expr.match[ type ] = RegExp( Expr.match[ type ].source + /(?![^\[]*\])(?![^\(]*\))/.source );
 6979+}
 6980+
 6981+var makeArray = function(array, results) {
 6982+ array = Array.prototype.slice.call( array );
 6983+
 6984+ if ( results ) {
 6985+ results.push.apply( results, array );
 6986+ return results;
 6987+ }
 6988+
 6989+ return array;
 6990+};
 6991+
 6992+// Perform a simple check to determine if the browser is capable of
 6993+// converting a NodeList to an array using builtin methods.
 6994+try {
 6995+ Array.prototype.slice.call( document.documentElement.childNodes );
 6996+
 6997+// Provide a fallback method if it does not work
 6998+} catch(e){
 6999+ makeArray = function(array, results) {
 7000+ var ret = results || [];
 7001+
 7002+ if ( toString.call(array) === "[object Array]" ) {
 7003+ Array.prototype.push.apply( ret, array );
 7004+ } else {
 7005+ if ( typeof array.length === "number" ) {
 7006+ for ( var i = 0, l = array.length; i < l; i++ ) {
 7007+ ret.push( array[i] );
 7008+ }
 7009+ } else {
 7010+ for ( var i = 0; array[i]; i++ ) {
 7011+ ret.push( array[i] );
 7012+ }
 7013+ }
 7014+ }
 7015+
 7016+ return ret;
 7017+ };
 7018+}
 7019+
 7020+var sortOrder;
 7021+
 7022+if ( document.documentElement.compareDocumentPosition ) {
 7023+ sortOrder = function( a, b ) {
 7024+ var ret = a.compareDocumentPosition(b) & 4 ? -1 : a === b ? 0 : 1;
 7025+ if ( ret === 0 ) {
 7026+ hasDuplicate = true;
 7027+ }
 7028+ return ret;
 7029+ };
 7030+} else if ( "sourceIndex" in document.documentElement ) {
 7031+ sortOrder = function( a, b ) {
 7032+ var ret = a.sourceIndex - b.sourceIndex;
 7033+ if ( ret === 0 ) {
 7034+ hasDuplicate = true;
 7035+ }
 7036+ return ret;
 7037+ };
 7038+} else if ( document.createRange ) {
 7039+ sortOrder = function( a, b ) {
 7040+ var aRange = a.ownerDocument.createRange(), bRange = b.ownerDocument.createRange();
 7041+ aRange.selectNode(a);
 7042+ aRange.collapse(true);
 7043+ bRange.selectNode(b);
 7044+ bRange.collapse(true);
 7045+ var ret = aRange.compareBoundaryPoints(Range.START_TO_END, bRange);
 7046+ if ( ret === 0 ) {
 7047+ hasDuplicate = true;
 7048+ }
 7049+ return ret;
 7050+ };
 7051+}
 7052+
 7053+// Check to see if the browser returns elements by name when
 7054+// querying by getElementById (and provide a workaround)
 7055+(function(){
 7056+ // We're going to inject a fake input element with a specified name
 7057+ var form = document.createElement("form"),
 7058+ id = "script" + (new Date).getTime();
 7059+ form.innerHTML = "<input name='" + id + "'/>";
 7060+
 7061+ // Inject it into the root element, check its status, and remove it quickly
 7062+ var root = document.documentElement;
 7063+ root.insertBefore( form, root.firstChild );
 7064+
 7065+ // The workaround has to do additional checks after a getElementById
 7066+ // Which slows things down for other browsers (hence the branching)
 7067+ if ( !!document.getElementById( id ) ) {
 7068+ Expr.find.ID = function(match, context, isXML){
 7069+ if ( typeof context.getElementById !== "undefined" && !isXML ) {
 7070+ var m = context.getElementById(match[1]);
 7071+ return m ? m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ? [m] : undefined : [];
 7072+ }
 7073+ };
 7074+
 7075+ Expr.filter.ID = function(elem, match){
 7076+ var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
 7077+ return elem.nodeType === 1 && node && node.nodeValue === match;
 7078+ };
 7079+ }
 7080+
 7081+ root.removeChild( form );
 7082+})();
 7083+
 7084+(function(){
 7085+ // Check to see if the browser returns only elements
 7086+ // when doing getElementsByTagName("*")
 7087+
 7088+ // Create a fake element
 7089+ var div = document.createElement("div");
 7090+ div.appendChild( document.createComment("") );
 7091+
 7092+ // Make sure no comments are found
 7093+ if ( div.getElementsByTagName("*").length > 0 ) {
 7094+ Expr.find.TAG = function(match, context){
 7095+ var results = context.getElementsByTagName(match[1]);
 7096+
 7097+ // Filter out possible comments
 7098+ if ( match[1] === "*" ) {
 7099+ var tmp = [];
 7100+
 7101+ for ( var i = 0; results[i]; i++ ) {
 7102+ if ( results[i].nodeType === 1 ) {
 7103+ tmp.push( results[i] );
 7104+ }
 7105+ }
 7106+
 7107+ results = tmp;
 7108+ }
 7109+
 7110+ return results;
 7111+ };
 7112+ }
 7113+
 7114+ // Check to see if an attribute returns normalized href attributes
 7115+ div.innerHTML = "<a href='#'></a>";
 7116+ if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
 7117+ div.firstChild.getAttribute("href") !== "#" ) {
 7118+ Expr.attrHandle.href = function(elem){
 7119+ return elem.getAttribute("href", 2);
 7120+ };
 7121+ }
 7122+})();
 7123+
 7124+if ( document.querySelectorAll ) (function(){
 7125+ var oldSizzle = Sizzle, div = document.createElement("div");
 7126+ div.innerHTML = "<p class='TEST'></p>";
 7127+
 7128+ // Safari can't handle uppercase or unicode characters when
 7129+ // in quirks mode.
 7130+ if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
 7131+ return;
 7132+ }
 7133+
 7134+ Sizzle = function(query, context, extra, seed){
 7135+ context = context || document;
 7136+
 7137+ // Only use querySelectorAll on non-XML documents
 7138+ // (ID selectors don't work in non-HTML documents)
 7139+ if ( !seed && context.nodeType === 9 && !isXML(context) ) {
 7140+ try {
 7141+ return makeArray( context.querySelectorAll(query), extra );
 7142+ } catch(e){}
 7143+ }
 7144+
 7145+ return oldSizzle(query, context, extra, seed);
 7146+ };
 7147+
 7148+ Sizzle.find = oldSizzle.find;
 7149+ Sizzle.filter = oldSizzle.filter;
 7150+ Sizzle.selectors = oldSizzle.selectors;
 7151+ Sizzle.matches = oldSizzle.matches;
 7152+})();
 7153+
 7154+if ( document.getElementsByClassName && document.documentElement.getElementsByClassName ) (function(){
 7155+ var div = document.createElement("div");
 7156+ div.innerHTML = "<div class='test e'></div><div class='test'></div>";
 7157+
 7158+ // Opera can't find a second classname (in 9.6)
 7159+ if ( div.getElementsByClassName("e").length === 0 )
 7160+ return;
 7161+
 7162+ // Safari caches class attributes, doesn't catch changes (in 3.2)
 7163+ div.lastChild.className = "e";
 7164+
 7165+ if ( div.getElementsByClassName("e").length === 1 )
 7166+ return;
 7167+
 7168+ Expr.order.splice(1, 0, "CLASS");
 7169+ Expr.find.CLASS = function(match, context, isXML) {
 7170+ if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
 7171+ return context.getElementsByClassName(match[1]);
 7172+ }
 7173+ };
 7174+})();
 7175+
 7176+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
 7177+ var sibDir = dir == "previousSibling" && !isXML;
 7178+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 7179+ var elem = checkSet[i];
 7180+ if ( elem ) {
 7181+ if ( sibDir && elem.nodeType === 1 ){
 7182+ elem.sizcache = doneName;
 7183+ elem.sizset = i;
 7184+ }
 7185+ elem = elem[dir];
 7186+ var match = false;
 7187+
 7188+ while ( elem ) {
 7189+ if ( elem.sizcache === doneName ) {
 7190+ match = checkSet[elem.sizset];
 7191+ break;
 7192+ }
 7193+
 7194+ if ( elem.nodeType === 1 && !isXML ){
 7195+ elem.sizcache = doneName;
 7196+ elem.sizset = i;
 7197+ }
 7198+
 7199+ if ( elem.nodeName === cur ) {
 7200+ match = elem;
 7201+ break;
 7202+ }
 7203+
 7204+ elem = elem[dir];
 7205+ }
 7206+
 7207+ checkSet[i] = match;
 7208+ }
 7209+ }
 7210+}
 7211+
 7212+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
 7213+ var sibDir = dir == "previousSibling" && !isXML;
 7214+ for ( var i = 0, l = checkSet.length; i < l; i++ ) {
 7215+ var elem = checkSet[i];
 7216+ if ( elem ) {
 7217+ if ( sibDir && elem.nodeType === 1 ) {
 7218+ elem.sizcache = doneName;
 7219+ elem.sizset = i;
 7220+ }
 7221+ elem = elem[dir];
 7222+ var match = false;
 7223+
 7224+ while ( elem ) {
 7225+ if ( elem.sizcache === doneName ) {
 7226+ match = checkSet[elem.sizset];
 7227+ break;
 7228+ }
 7229+
 7230+ if ( elem.nodeType === 1 ) {
 7231+ if ( !isXML ) {
 7232+ elem.sizcache = doneName;
 7233+ elem.sizset = i;
 7234+ }
 7235+ if ( typeof cur !== "string" ) {
 7236+ if ( elem === cur ) {
 7237+ match = true;
 7238+ break;
 7239+ }
 7240+
 7241+ } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
 7242+ match = elem;
 7243+ break;
 7244+ }
 7245+ }
 7246+
 7247+ elem = elem[dir];
 7248+ }
 7249+
 7250+ checkSet[i] = match;
 7251+ }
 7252+ }
 7253+}
 7254+
 7255+var contains = document.compareDocumentPosition ? function(a, b){
 7256+ return a.compareDocumentPosition(b) & 16;
 7257+} : function(a, b){
 7258+ return a !== b && (a.contains ? a.contains(b) : true);
 7259+};
 7260+
 7261+var isXML = function(elem){
 7262+ return elem.nodeType === 9 && elem.documentElement.nodeName !== "HTML" ||
 7263+ !!elem.ownerDocument && isXML( elem.ownerDocument );
 7264+};
 7265+
 7266+var posProcess = function(selector, context){
 7267+ var tmpSet = [], later = "", match,
 7268+ root = context.nodeType ? [context] : context;
 7269+
 7270+ // Position selectors must be done after the filter
 7271+ // And so must :not(positional) so we move all PSEUDOs to the end
 7272+ while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
 7273+ later += match[0];
 7274+ selector = selector.replace( Expr.match.PSEUDO, "" );
 7275+ }
 7276+
 7277+ selector = Expr.relative[selector] ? selector + "*" : selector;
 7278+
 7279+ for ( var i = 0, l = root.length; i < l; i++ ) {
 7280+ Sizzle( selector, root[i], tmpSet );
 7281+ }
 7282+
 7283+ return Sizzle.filter( later, tmpSet );
 7284+};
 7285+
 7286+// EXPOSE
 7287+jQuery.find = Sizzle;
 7288+jQuery.filter = Sizzle.filter;
 7289+jQuery.expr = Sizzle.selectors;
 7290+jQuery.expr[":"] = jQuery.expr.filters;
 7291+
 7292+Sizzle.selectors.filters.hidden = function(elem){
 7293+ return elem.offsetWidth === 0 || elem.offsetHeight === 0;
 7294+};
 7295+
 7296+Sizzle.selectors.filters.visible = function(elem){
 7297+ return elem.offsetWidth > 0 || elem.offsetHeight > 0;
 7298+};
 7299+
 7300+Sizzle.selectors.filters.animated = function(elem){
 7301+ return jQuery.grep(jQuery.timers, function(fn){
 7302+ return elem === fn.elem;
 7303+ }).length;
 7304+};
 7305+
 7306+jQuery.multiFilter = function( expr, elems, not ) {
 7307+ if ( not ) {
 7308+ expr = ":not(" + expr + ")";
 7309+ }
 7310+
 7311+ return Sizzle.matches(expr, elems);
 7312+};
 7313+
 7314+jQuery.dir = function( elem, dir ){
 7315+ var matched = [], cur = elem[dir];
 7316+ while ( cur && cur != document ) {
 7317+ if ( cur.nodeType == 1 )
 7318+ matched.push( cur );
 7319+ cur = cur[dir];
 7320+ }
 7321+ return matched;
 7322+};
 7323+
 7324+jQuery.nth = function(cur, result, dir, elem){
 7325+ result = result || 1;
 7326+ var num = 0;
 7327+
 7328+ for ( ; cur; cur = cur[dir] )
 7329+ if ( cur.nodeType == 1 && ++num == result )
 7330+ break;
 7331+
 7332+ return cur;
 7333+};
 7334+
 7335+jQuery.sibling = function(n, elem){
 7336+ var r = [];
 7337+
 7338+ for ( ; n; n = n.nextSibling ) {
 7339+ if ( n.nodeType == 1 && n != elem )
 7340+ r.push( n );
 7341+ }
 7342+
 7343+ return r;
 7344+};
 7345+
 7346+return;
 7347+
 7348+window.Sizzle = Sizzle;
 7349+
 7350+})();
 7351+/*
 7352+ * A number of helper functions used for managing events.
 7353+ * Many of the ideas behind this code originated from
 7354+ * Dean Edwards' addEvent library.
 7355+ */
 7356+jQuery.event = {
 7357+
 7358+ // Bind an event to an element
 7359+ // Original by Dean Edwards
 7360+ add: function(elem, types, handler, data) {
 7361+ if ( elem.nodeType == 3 || elem.nodeType == 8 )
 7362+ return;
 7363+
 7364+ // For whatever reason, IE has trouble passing the window object
 7365+ // around, causing it to be cloned in the process
 7366+ if ( elem.setInterval && elem != window )
 7367+ elem = window;
 7368+
 7369+ // Make sure that the function being executed has a unique ID
 7370+ if ( !handler.guid )
 7371+ handler.guid = this.guid++;
 7372+
 7373+ // if data is passed, bind to handler
 7374+ if ( data !== undefined ) {
 7375+ // Create temporary function pointer to original handler
 7376+ var fn = handler;
 7377+
 7378+ // Create unique handler function, wrapped around original handler
 7379+ handler = this.proxy( fn );
 7380+
 7381+ // Store data in unique handler
 7382+ handler.data = data;
 7383+ }
 7384+
 7385+ // Init the element's event structure
 7386+ var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
 7387+ handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
 7388+ // Handle the second event of a trigger and when
 7389+ // an event is called after a page has unloaded
 7390+ return typeof jQuery !== "undefined" && !jQuery.event.triggered ?
 7391+ jQuery.event.handle.apply(arguments.callee.elem, arguments) :
 7392+ undefined;
 7393+ });
 7394+ // Add elem as a property of the handle function
 7395+ // This is to prevent a memory leak with non-native
 7396+ // event in IE.
 7397+ handle.elem = elem;
 7398+
 7399+ // Handle multiple events separated by a space
 7400+ // jQuery(...).bind("mouseover mouseout", fn);
 7401+ jQuery.each(types.split(/\s+/), function(index, type) {
 7402+ // Namespaced event handlers
 7403+ var namespaces = type.split(".");
 7404+ type = namespaces.shift();
 7405+ handler.type = namespaces.slice().sort().join(".");
 7406+
 7407+ // Get the current list of functions bound to this event
 7408+ var handlers = events[type];
 7409+
 7410+ if ( jQuery.event.specialAll[type] )
 7411+ jQuery.event.specialAll[type].setup.call(elem, data, namespaces);
 7412+
 7413+ // Init the event handler queue
 7414+ if (!handlers) {
 7415+ handlers = events[type] = {};
 7416+
 7417+ // Check for a special event handler
 7418+ // Only use addEventListener/attachEvent if the special
 7419+ // events handler returns false
 7420+ if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem, data, namespaces) === false ) {
 7421+ // Bind the global event handler to the element
 7422+ if (elem.addEventListener)
 7423+ elem.addEventListener(type, handle, false);
 7424+ else if (elem.attachEvent)
 7425+ elem.attachEvent("on" + type, handle);
 7426+ }
 7427+ }
 7428+
 7429+ // Add the function to the element's handler list
 7430+ handlers[handler.guid] = handler;
 7431+
 7432+ // Keep track of which events have been used, for global triggering
 7433+ jQuery.event.global[type] = true;
 7434+ });
 7435+
 7436+ // Nullify elem to prevent memory leaks in IE
 7437+ elem = null;
 7438+ },
 7439+
 7440+ guid: 1,
 7441+ global: {},
 7442+
 7443+ // Detach an event or set of events from an element
 7444+ remove: function(elem, types, handler) {
 7445+ // don't do events on text and comment nodes
 7446+ if ( elem.nodeType == 3 || elem.nodeType == 8 )
 7447+ return;
 7448+
 7449+ var events = jQuery.data(elem, "events"), ret, index;
 7450+
 7451+ if ( events ) {
 7452+ // Unbind all events for the element
 7453+ if ( types === undefined || (typeof types === "string" && types.charAt(0) == ".") )
 7454+ for ( var type in events )
 7455+ this.remove( elem, type + (types || "") );
 7456+ else {
 7457+ // types is actually an event object here
 7458+ if ( types.type ) {
 7459+ handler = types.handler;
 7460+ types = types.type;
 7461+ }
 7462+
 7463+ // Handle multiple events seperated by a space
 7464+ // jQuery(...).unbind("mouseover mouseout", fn);
 7465+ jQuery.each(types.split(/\s+/), function(index, type){
 7466+ // Namespaced event handlers
 7467+ var namespaces = type.split(".");
 7468+ type = namespaces.shift();
 7469+ var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
 7470+
 7471+ if ( events[type] ) {
 7472+ // remove the given handler for the given type
 7473+ if ( handler )
 7474+ delete events[type][handler.guid];
 7475+
 7476+ // remove all handlers for the given type
 7477+ else
 7478+ for ( var handle in events[type] )
 7479+ // Handle the removal of namespaced events
 7480+ if ( namespace.test(events[type][handle].type) )
 7481+ delete events[type][handle];
 7482+
 7483+ if ( jQuery.event.specialAll[type] )
 7484+ jQuery.event.specialAll[type].teardown.call(elem, namespaces);
 7485+
 7486+ // remove generic event handler if no more handlers exist
 7487+ for ( ret in events[type] ) break;
 7488+ if ( !ret ) {
 7489+ if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem, namespaces) === false ) {
 7490+ if (elem.removeEventListener)
 7491+ elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
 7492+ else if (elem.detachEvent)
 7493+ elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
 7494+ }
 7495+ ret = null;
 7496+ delete events[type];
 7497+ }
 7498+ }
 7499+ });
 7500+ }
 7501+
 7502+ // Remove the expando if it's no longer used
 7503+ for ( ret in events ) break;
 7504+ if ( !ret ) {
 7505+ var handle = jQuery.data( elem, "handle" );
 7506+ if ( handle ) handle.elem = null;
 7507+ jQuery.removeData( elem, "events" );
 7508+ jQuery.removeData( elem, "handle" );
 7509+ }
 7510+ }
 7511+ },
 7512+
 7513+ // bubbling is internal
 7514+ trigger: function( event, data, elem, bubbling ) {
 7515+ // Event object or event type
 7516+ var type = event.type || event;
 7517+
 7518+ if( !bubbling ){
 7519+ event = typeof event === "object" ?
 7520+ // jQuery.Event object
 7521+ event[expando] ? event :
 7522+ // Object literal
 7523+ jQuery.extend( jQuery.Event(type), event ) :
 7524+ // Just the event type (string)
 7525+ jQuery.Event(type);
 7526+
 7527+ if ( type.indexOf("!") >= 0 ) {
 7528+ event.type = type = type.slice(0, -1);
 7529+ event.exclusive = true;
 7530+ }
 7531+
 7532+ // Handle a global trigger
 7533+ if ( !elem ) {
 7534+ // Don't bubble custom events when global (to avoid too much overhead)
 7535+ event.stopPropagation();
 7536+ // Only trigger if we've ever bound an event for it
 7537+ if ( this.global[type] )
 7538+ jQuery.each( jQuery.cache, function(){
 7539+ if ( this.events && this.events[type] )
 7540+ jQuery.event.trigger( event, data, this.handle.elem );
 7541+ });
 7542+ }
 7543+
 7544+ // Handle triggering a single element
 7545+
 7546+ // don't do events on text and comment nodes
 7547+ if ( !elem || elem.nodeType == 3 || elem.nodeType == 8 )
 7548+ return undefined;
 7549+
 7550+ // Clean up in case it is reused
 7551+ event.result = undefined;
 7552+ event.target = elem;
 7553+
 7554+ // Clone the incoming data, if any
 7555+ data = jQuery.makeArray(data);
 7556+ data.unshift( event );
 7557+ }
 7558+
 7559+ event.currentTarget = elem;
 7560+
 7561+ // Trigger the event, it is assumed that "handle" is a function
 7562+ var handle = jQuery.data(elem, "handle");
 7563+ if ( handle )
 7564+ handle.apply( elem, data );
 7565+
 7566+ // Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
 7567+ if ( (!elem[type] || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
 7568+ event.result = false;
 7569+
 7570+ // Trigger the native events (except for clicks on links)
 7571+ if ( !bubbling && elem[type] && !event.isDefaultPrevented() && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
 7572+ this.triggered = true;
 7573+ try {
 7574+ elem[ type ]();
 7575+ // prevent IE from throwing an error for some hidden elements
 7576+ } catch (e) {}
 7577+ }
 7578+
 7579+ this.triggered = false;
 7580+
 7581+ if ( !event.isPropagationStopped() ) {
 7582+ var parent = elem.parentNode || elem.ownerDocument;
 7583+ if ( parent )
 7584+ jQuery.event.trigger(event, data, parent, true);
 7585+ }
 7586+ },
 7587+
 7588+ handle: function(event) {
 7589+ // returned undefined or false
 7590+ var all, handlers;
 7591+
 7592+ event = arguments[0] = jQuery.event.fix( event || window.event );
 7593+ event.currentTarget = this;
 7594+
 7595+ // Namespaced event handlers
 7596+ var namespaces = event.type.split(".");
 7597+ event.type = namespaces.shift();
 7598+
 7599+ // Cache this now, all = true means, any handler
 7600+ all = !namespaces.length && !event.exclusive;
 7601+
 7602+ var namespace = RegExp("(^|\\.)" + namespaces.slice().sort().join(".*\\.") + "(\\.|$)");
 7603+
 7604+ handlers = ( jQuery.data(this, "events") || {} )[event.type];
 7605+
 7606+ for ( var j in handlers ) {
 7607+ var handler = handlers[j];
 7608+
 7609+ // Filter the functions by class
 7610+ if ( all || namespace.test(handler.type) ) {
 7611+ // Pass in a reference to the handler function itself
 7612+ // So that we can later remove it
 7613+ event.handler = handler;
 7614+ event.data = handler.data;
 7615+
 7616+ var ret = handler.apply(this, arguments);
 7617+
 7618+ if( ret !== undefined ){
 7619+ event.result = ret;
 7620+ if ( ret === false ) {
 7621+ event.preventDefault();
 7622+ event.stopPropagation();
 7623+ }
 7624+ }
 7625+
 7626+ if( event.isImmediatePropagationStopped() )
 7627+ break;
 7628+
 7629+ }
 7630+ }
 7631+ },
 7632+
 7633+ 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(" "),
 7634+
 7635+ fix: function(event) {
 7636+ if ( event[expando] )
 7637+ return event;
 7638+
 7639+ // store a copy of the original event object
 7640+ // and "clone" to set read-only properties
 7641+ var originalEvent = event;
 7642+ event = jQuery.Event( originalEvent );
 7643+
 7644+ for ( var i = this.props.length, prop; i; ){
 7645+ prop = this.props[ --i ];
 7646+ event[ prop ] = originalEvent[ prop ];
 7647+ }
 7648+
 7649+ // Fix target property, if necessary
 7650+ if ( !event.target )
 7651+ event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
 7652+
 7653+ // check if target is a textnode (safari)
 7654+ if ( event.target.nodeType == 3 )
 7655+ event.target = event.target.parentNode;
 7656+
 7657+ // Add relatedTarget, if necessary
 7658+ if ( !event.relatedTarget && event.fromElement )
 7659+ event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;
 7660+
 7661+ // Calculate pageX/Y if missing and clientX/Y available
 7662+ if ( event.pageX == null && event.clientX != null ) {
 7663+ var doc = document.documentElement, body = document.body;
 7664+ event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
 7665+ event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
 7666+ }
 7667+
 7668+ // Add which for key events
 7669+ if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
 7670+ event.which = event.charCode || event.keyCode;
 7671+
 7672+ // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
 7673+ if ( !event.metaKey && event.ctrlKey )
 7674+ event.metaKey = event.ctrlKey;
 7675+
 7676+ // Add which for click: 1 == left; 2 == middle; 3 == right
 7677+ // Note: button is not normalized, so don't use it
 7678+ if ( !event.which && event.button )
 7679+ event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
 7680+
 7681+ return event;
 7682+ },
 7683+
 7684+ proxy: function( fn, proxy ){
 7685+ proxy = proxy || function(){ return fn.apply(this, arguments); };
 7686+ // Set the guid of unique handler to the same of original handler, so it can be removed
 7687+ proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
 7688+ // So proxy can be declared as an argument
 7689+ return proxy;
 7690+ },
 7691+
 7692+ special: {
 7693+ ready: {
 7694+ // Make sure the ready event is setup
 7695+ setup: bindReady,
 7696+ teardown: function() {}
 7697+ }
 7698+ },
 7699+
 7700+ specialAll: {
 7701+ live: {
 7702+ setup: function( selector, namespaces ){
 7703+ jQuery.event.add( this, namespaces[0], liveHandler );
 7704+ },
 7705+ teardown: function( namespaces ){
 7706+ if ( namespaces.length ) {
 7707+ var remove = 0, name = RegExp("(^|\\.)" + namespaces[0] + "(\\.|$)");
 7708+
 7709+ jQuery.each( (jQuery.data(this, "events").live || {}), function(){
 7710+ if ( name.test(this.type) )
 7711+ remove++;
 7712+ });
 7713+
 7714+ if ( remove < 1 )
 7715+ jQuery.event.remove( this, namespaces[0], liveHandler );
 7716+ }
 7717+ }
 7718+ }
 7719+ }
 7720+};
 7721+
 7722+jQuery.Event = function( src ){
 7723+ // Allow instantiation without the 'new' keyword
 7724+ if( !this.preventDefault )
 7725+ return new jQuery.Event(src);
 7726+
 7727+ // Event object
 7728+ if( src && src.type ){
 7729+ this.originalEvent = src;
 7730+ this.type = src.type;
 7731+ // Event type
 7732+ }else
 7733+ this.type = src;
 7734+
 7735+ // timeStamp is buggy for some events on Firefox(#3843)
 7736+ // So we won't rely on the native value
 7737+ this.timeStamp = now();
 7738+
 7739+ // Mark it as fixed
 7740+ this[expando] = true;
 7741+};
 7742+
 7743+function returnFalse(){
 7744+ return false;
 7745+}
 7746+function returnTrue(){
 7747+ return true;
 7748+}
 7749+
 7750+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
 7751+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
 7752+jQuery.Event.prototype = {
 7753+ preventDefault: function() {
 7754+ this.isDefaultPrevented = returnTrue;
 7755+
 7756+ var e = this.originalEvent;
 7757+ if( !e )
 7758+ return;
 7759+ // if preventDefault exists run it on the original event
 7760+ if (e.preventDefault)
 7761+ e.preventDefault();
 7762+ // otherwise set the returnValue property of the original event to false (IE)
 7763+ e.returnValue = false;
 7764+ },
 7765+ stopPropagation: function() {
 7766+ this.isPropagationStopped = returnTrue;
 7767+
 7768+ var e = this.originalEvent;
 7769+ if( !e )
 7770+ return;
 7771+ // if stopPropagation exists run it on the original event
 7772+ if (e.stopPropagation)
 7773+ e.stopPropagation();
 7774+ // otherwise set the cancelBubble property of the original event to true (IE)
 7775+ e.cancelBubble = true;
 7776+ },
 7777+ stopImmediatePropagation:function(){
 7778+ this.isImmediatePropagationStopped = returnTrue;
 7779+ this.stopPropagation();
 7780+ },
 7781+ isDefaultPrevented: returnFalse,
 7782+ isPropagationStopped: returnFalse,
 7783+ isImmediatePropagationStopped: returnFalse
 7784+};
 7785+// Checks if an event happened on an element within another element
 7786+// Used in jQuery.event.special.mouseenter and mouseleave handlers
 7787+var withinElement = function(event) {
 7788+ // Check if mouse(over|out) are still within the same parent element
 7789+ var parent = event.relatedTarget;
 7790+ // Traverse up the tree
 7791+ while ( parent && parent != this )
 7792+ try { parent = parent.parentNode; }
 7793+ catch(e) { parent = this; }
 7794+
 7795+ if( parent != this ){
 7796+ // set the correct event type
 7797+ event.type = event.data;
 7798+ // handle event if we actually just moused on to a non sub-element
 7799+ jQuery.event.handle.apply( this, arguments );
 7800+ }
 7801+};
 7802+
 7803+jQuery.each({
 7804+ mouseover: 'mouseenter',
 7805+ mouseout: 'mouseleave'
 7806+}, function( orig, fix ){
 7807+ jQuery.event.special[ fix ] = {
 7808+ setup: function(){
 7809+ jQuery.event.add( this, orig, withinElement, fix );
 7810+ },
 7811+ teardown: function(){
 7812+ jQuery.event.remove( this, orig, withinElement );
 7813+ }
 7814+ };
 7815+});
 7816+
 7817+jQuery.fn.extend({
 7818+ bind: function( type, data, fn ) {
 7819+ return type == "unload" ? this.one(type, data, fn) : this.each(function(){
 7820+ jQuery.event.add( this, type, fn || data, fn && data );
 7821+ });
 7822+ },
 7823+
 7824+ one: function( type, data, fn ) {
 7825+ var one = jQuery.event.proxy( fn || data, function(event) {
 7826+ jQuery(this).unbind(event, one);
 7827+ return (fn || data).apply( this, arguments );
 7828+ });
 7829+ return this.each(function(){
 7830+ jQuery.event.add( this, type, one, fn && data);
 7831+ });
 7832+ },
 7833+
 7834+ unbind: function( type, fn ) {
 7835+ return this.each(function(){
 7836+ jQuery.event.remove( this, type, fn );
 7837+ });
 7838+ },
 7839+
 7840+ trigger: function( type, data ) {
 7841+ return this.each(function(){
 7842+ jQuery.event.trigger( type, data, this );
 7843+ });
 7844+ },
 7845+
 7846+ triggerHandler: function( type, data ) {
 7847+ if( this[0] ){
 7848+ var event = jQuery.Event(type);
 7849+ event.preventDefault();
 7850+ event.stopPropagation();
 7851+ jQuery.event.trigger( event, data, this[0] );
 7852+ return event.result;
 7853+ }
 7854+ },
 7855+
 7856+ toggle: function( fn ) {
 7857+ // Save reference to arguments for access in closure
 7858+ var args = arguments, i = 1;
 7859+
 7860+ // link all the functions, so any of them can unbind this click handler
 7861+ while( i < args.length )
 7862+ jQuery.event.proxy( fn, args[i++] );
 7863+
 7864+ return this.click( jQuery.event.proxy( fn, function(event) {
 7865+ // Figure out which function to execute
 7866+ this.lastToggle = ( this.lastToggle || 0 ) % i;
 7867+
 7868+ // Make sure that clicks stop
 7869+ event.preventDefault();
 7870+
 7871+ // and execute the function
 7872+ return args[ this.lastToggle++ ].apply( this, arguments ) || false;
 7873+ }));
 7874+ },
 7875+
 7876+ hover: function(fnOver, fnOut) {
 7877+ return this.mouseenter(fnOver).mouseleave(fnOut);
 7878+ },
 7879+
 7880+ ready: function(fn) {
 7881+ // Attach the listeners
 7882+ bindReady();
 7883+
 7884+ // If the DOM is already ready
 7885+ if ( jQuery.isReady )
 7886+ // Execute the function immediately
 7887+ fn.call( document, jQuery );
 7888+
 7889+ // Otherwise, remember the function for later
 7890+ else
 7891+ // Add the function to the wait list
 7892+ jQuery.readyList.push( fn );
 7893+
 7894+ return this;
 7895+ },
 7896+
 7897+ live: function( type, fn ){
 7898+ var proxy = jQuery.event.proxy( fn );
 7899+ proxy.guid += this.selector + type;
 7900+
 7901+ jQuery(document).bind( liveConvert(type, this.selector), this.selector, proxy );
 7902+
 7903+ return this;
 7904+ },
 7905+
 7906+ die: function( type, fn ){
 7907+ jQuery(document).unbind( liveConvert(type, this.selector), fn ? { guid: fn.guid + this.selector + type } : null );
 7908+ return this;
 7909+ }
 7910+});
 7911+
 7912+function liveHandler( event ){
 7913+ var check = RegExp("(^|\\.)" + event.type + "(\\.|$)"),
 7914+ stop = true,
 7915+ elems = [];
 7916+
 7917+ jQuery.each(jQuery.data(this, "events").live || [], function(i, fn){
 7918+ if ( check.test(fn.type) ) {
 7919+ var elem = jQuery(event.target).closest(fn.data)[0];
 7920+ if ( elem )
 7921+ elems.push({ elem: elem, fn: fn });
 7922+ }
 7923+ });
 7924+
 7925+ elems.sort(function(a,b) {
 7926+ return jQuery.data(a.elem, "closest") - jQuery.data(b.elem, "closest");
 7927+ });
 7928+
 7929+ jQuery.each(elems, function(){
 7930+ if ( this.fn.call(this.elem, event, this.fn.data) === false )
 7931+ return (stop = false);
 7932+ });
 7933+
 7934+ return stop;
 7935+}
 7936+
 7937+function liveConvert(type, selector){
 7938+ return ["live", type, selector.replace(/\./g, "`").replace(/ /g, "|")].join(".");
 7939+}
 7940+
 7941+jQuery.extend({
 7942+ isReady: false,
 7943+ readyList: [],
 7944+ // Handle when the DOM is ready
 7945+ ready: function() {
 7946+ // Make sure that the DOM is not already loaded
 7947+ if ( !jQuery.isReady ) {
 7948+ // Remember that the DOM is ready
 7949+ jQuery.isReady = true;
 7950+
 7951+ // If there are functions bound, to execute
 7952+ if ( jQuery.readyList ) {
 7953+ // Execute all of them
 7954+ jQuery.each( jQuery.readyList, function(){
 7955+ this.call( document, jQuery );
 7956+ });
 7957+
 7958+ // Reset the list of functions
 7959+ jQuery.readyList = null;
 7960+ }
 7961+
 7962+ // Trigger any bound ready events
 7963+ jQuery(document).triggerHandler("ready");
 7964+ }
 7965+ }
 7966+});
 7967+
 7968+var readyBound = false;
 7969+
 7970+function bindReady(){
 7971+ if ( readyBound ) return;
 7972+ readyBound = true;
 7973+
 7974+ // Mozilla, Opera and webkit nightlies currently support this event
 7975+ if ( document.addEventListener ) {
 7976+ // Use the handy event callback
 7977+ document.addEventListener( "DOMContentLoaded", function(){
 7978+ document.removeEventListener( "DOMContentLoaded", arguments.callee, false );
 7979+ jQuery.ready();
 7980+ }, false );
 7981+
 7982+ // If IE event model is used
 7983+ } else if ( document.attachEvent ) {
 7984+ // ensure firing before onload,
 7985+ // maybe late but safe also for iframes
 7986+ document.attachEvent("onreadystatechange", function(){
 7987+ if ( document.readyState === "complete" ) {
 7988+ document.detachEvent( "onreadystatechange", arguments.callee );
 7989+ jQuery.ready();
 7990+ }
 7991+ });
 7992+
 7993+ // If IE and not an iframe
 7994+ // continually check to see if the document is ready
 7995+ if ( document.documentElement.doScroll && window == window.top ) (function(){
 7996+ if ( jQuery.isReady ) return;
 7997+
 7998+ try {
 7999+ // If IE is used, use the trick by Diego Perini
 8000+ // http://javascript.nwbox.com/IEContentLoaded/
 8001+ document.documentElement.doScroll("left");
 8002+ } catch( error ) {
 8003+ setTimeout( arguments.callee, 0 );
 8004+ return;
 8005+ }
 8006+
 8007+ // and execute any waiting functions
 8008+ jQuery.ready();
 8009+ })();
 8010+ }
 8011+
 8012+ // A fallback to window.onload, that will always work
 8013+ jQuery.event.add( window, "load", jQuery.ready );
 8014+}
 8015+
 8016+jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
 8017+ "mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
 8018+ "change,select,submit,keydown,keypress,keyup,error").split(","), function(i, name){
 8019+
 8020+ // Handle event binding
 8021+ jQuery.fn[name] = function(fn){
 8022+ return fn ? this.bind(name, fn) : this.trigger(name);
 8023+ };
 8024+});
 8025+
 8026+// Prevent memory leaks in IE
 8027+// And prevent errors on refresh with events like mouseover in other browsers
 8028+// Window isn't included so as not to unbind existing unload events
 8029+jQuery( window ).bind( 'unload', function(){
 8030+ for ( var id in jQuery.cache )
 8031+ // Skip the window
 8032+ if ( id != 1 && jQuery.cache[ id ].handle )
 8033+ jQuery.event.remove( jQuery.cache[ id ].handle.elem );
 8034+});
 8035+(function(){
 8036+
 8037+ jQuery.support = {};
 8038+
 8039+ var root = document.documentElement,
 8040+ script = document.createElement("script"),
 8041+ div = document.createElement("div"),
 8042+ id = "script" + (new Date).getTime();
 8043+
 8044+ div.style.display = "none";
 8045+ 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>';
 8046+
 8047+ var all = div.getElementsByTagName("*"),
 8048+ a = div.getElementsByTagName("a")[0];
 8049+
 8050+ // Can't get basic test support
 8051+ if ( !all || !all.length || !a ) {
 8052+ return;
 8053+ }
 8054+
 8055+ jQuery.support = {
 8056+ // IE strips leading whitespace when .innerHTML is used
 8057+ leadingWhitespace: div.firstChild.nodeType == 3,
 8058+
 8059+ // Make sure that tbody elements aren't automatically inserted
 8060+ // IE will insert them into empty tables
 8061+ tbody: !div.getElementsByTagName("tbody").length,
 8062+
 8063+ // Make sure that you can get all elements in an <object> element
 8064+ // IE 7 always returns no results
 8065+ objectAll: !!div.getElementsByTagName("object")[0]
 8066+ .getElementsByTagName("*").length,
 8067+
 8068+ // Make sure that link elements get serialized correctly by innerHTML
 8069+ // This requires a wrapper element in IE
 8070+ htmlSerialize: !!div.getElementsByTagName("link").length,
 8071+
 8072+ // Get the style information from getAttribute
 8073+ // (IE uses .cssText insted)
 8074+ style: /red/.test( a.getAttribute("style") ),
 8075+
 8076+ // Make sure that URLs aren't manipulated
 8077+ // (IE normalizes it by default)
 8078+ hrefNormalized: a.getAttribute("href") === "/a",
 8079+
 8080+ // Make sure that element opacity exists
 8081+ // (IE uses filter instead)
 8082+ opacity: a.style.opacity === "0.5",
 8083+
 8084+ // Verify style float existence
 8085+ // (IE uses styleFloat instead of cssFloat)
 8086+ cssFloat: !!a.style.cssFloat,
 8087+
 8088+ // Will be defined later
 8089+ scriptEval: false,
 8090+ noCloneEvent: true,
 8091+ boxModel: null
 8092+ };
 8093+
 8094+ script.type = "text/javascript";
 8095+ try {
 8096+ script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
 8097+ } catch(e){}
 8098+
 8099+ root.insertBefore( script, root.firstChild );
 8100+
 8101+ // Make sure that the execution of code works by injecting a script
 8102+ // tag with appendChild/createTextNode
 8103+ // (IE doesn't support this, fails, and uses .text instead)
 8104+ if ( window[ id ] ) {
 8105+ jQuery.support.scriptEval = true;
 8106+ delete window[ id ];
 8107+ }
 8108+
 8109+ root.removeChild( script );
 8110+
 8111+ if ( div.attachEvent && div.fireEvent ) {
 8112+ div.attachEvent("onclick", function(){
 8113+ // Cloning a node shouldn't copy over any
 8114+ // bound event handlers (IE does this)
 8115+ jQuery.support.noCloneEvent = false;
 8116+ div.detachEvent("onclick", arguments.callee);
 8117+ });
 8118+ div.cloneNode(true).fireEvent("onclick");
 8119+ }
 8120+
 8121+ // Figure out if the W3C box model works as expected
 8122+ // document.body must exist before we can do this
 8123+ jQuery(function(){
 8124+ var div = document.createElement("div");
 8125+ div.style.width = div.style.paddingLeft = "1px";
 8126+
 8127+ document.body.appendChild( div );
 8128+ jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
 8129+ document.body.removeChild( div ).style.display = 'none';
 8130+ });
 8131+})();
 8132+
 8133+var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat";
 8134+
 8135+jQuery.props = {
 8136+ "for": "htmlFor",
 8137+ "class": "className",
 8138+ "float": styleFloat,
 8139+ cssFloat: styleFloat,
 8140+ styleFloat: styleFloat,
 8141+ readonly: "readOnly",
 8142+ maxlength: "maxLength",
 8143+ cellspacing: "cellSpacing",
 8144+ rowspan: "rowSpan",
 8145+ tabindex: "tabIndex"
 8146+};
 8147+jQuery.fn.extend({
 8148+ // Keep a copy of the old load
 8149+ _load: jQuery.fn.load,
 8150+
 8151+ load: function( url, params, callback ) {
 8152+ if ( typeof url !== "string" )
 8153+ return this._load( url );
 8154+
 8155+ var off = url.indexOf(" ");
 8156+ if ( off >= 0 ) {
 8157+ var selector = url.slice(off, url.length);
 8158+ url = url.slice(0, off);
 8159+ }
 8160+
 8161+ // Default to a GET request
 8162+ var type = "GET";
 8163+
 8164+ // If the second parameter was provided
 8165+ if ( params )
 8166+ // If it's a function
 8167+ if ( jQuery.isFunction( params ) ) {
 8168+ // We assume that it's the callback
 8169+ callback = params;
 8170+ params = null;
 8171+
 8172+ // Otherwise, build a param string
 8173+ } else if( typeof params === "object" ) {
 8174+ params = jQuery.param( params );
 8175+ type = "POST";
 8176+ }
 8177+
 8178+ var self = this;
 8179+
 8180+ // Request the remote document
 8181+ jQuery.ajax({
 8182+ url: url,
 8183+ type: type,
 8184+ dataType: "html",
 8185+ data: params,
 8186+ complete: function(res, status){
 8187+ // If successful, inject the HTML into all the matched elements
 8188+ if ( status == "success" || status == "notmodified" )
 8189+ // See if a selector was specified
 8190+ self.html( selector ?
 8191+ // Create a dummy div to hold the results
 8192+ jQuery("<div/>")
 8193+ // inject the contents of the document in, removing the scripts
 8194+ // to avoid any 'Permission Denied' errors in IE
 8195+ .append(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))
 8196+
 8197+ // Locate the specified elements
 8198+ .find(selector) :
 8199+
 8200+ // If not, just inject the full result
 8201+ res.responseText );
 8202+
 8203+ if( callback )
 8204+ self.each( callback, [res.responseText, status, res] );
 8205+ }
 8206+ });
 8207+ return this;
 8208+ },
 8209+
 8210+ serialize: function() {
 8211+ return jQuery.param(this.serializeArray());
 8212+ },
 8213+ serializeArray: function() {
 8214+ return this.map(function(){
 8215+ return this.elements ? jQuery.makeArray(this.elements) : this;
 8216+ })
 8217+ .filter(function(){
 8218+ return this.name && !this.disabled &&
 8219+ (this.checked || /select|textarea/i.test(this.nodeName) ||
 8220+ /text|hidden|password|search/i.test(this.type));
 8221+ })
 8222+ .map(function(i, elem){
 8223+ var val = jQuery(this).val();
 8224+ return val == null ? null :
 8225+ jQuery.isArray(val) ?
 8226+ jQuery.map( val, function(val, i){
 8227+ return {name: elem.name, value: val};
 8228+ }) :
 8229+ {name: elem.name, value: val};
 8230+ }).get();
 8231+ }
 8232+});
 8233+
 8234+// Attach a bunch of functions for handling common AJAX events
 8235+jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
 8236+ jQuery.fn[o] = function(f){
 8237+ return this.bind(o, f);
 8238+ };
 8239+});
 8240+
 8241+var jsc = now();
 8242+
 8243+jQuery.extend({
 8244+
 8245+ get: function( url, data, callback, type ) {
 8246+ // shift arguments if data argument was ommited
 8247+ if ( jQuery.isFunction( data ) ) {
 8248+ callback = data;
 8249+ data = null;
 8250+ }
 8251+
 8252+ return jQuery.ajax({
 8253+ type: "GET",
 8254+ url: url,
 8255+ data: data,
 8256+ success: callback,
 8257+ dataType: type
 8258+ });
 8259+ },
 8260+
 8261+ getScript: function( url, callback ) {
 8262+ return jQuery.get(url, null, callback, "script");
 8263+ },
 8264+
 8265+ getJSON: function( url, data, callback ) {
 8266+ return jQuery.get(url, data, callback, "json");
 8267+ },
 8268+
 8269+ post: function( url, data, callback, type ) {
 8270+ if ( jQuery.isFunction( data ) ) {
 8271+ callback = data;
 8272+ data = {};
 8273+ }
 8274+
 8275+ return jQuery.ajax({
 8276+ type: "POST",
 8277+ url: url,
 8278+ data: data,
 8279+ success: callback,
 8280+ dataType: type
 8281+ });
 8282+ },
 8283+
 8284+ ajaxSetup: function( settings ) {
 8285+ jQuery.extend( jQuery.ajaxSettings, settings );
 8286+ },
 8287+
 8288+ ajaxSettings: {
 8289+ url: location.href,
 8290+ global: true,
 8291+ type: "GET",
 8292+ contentType: "application/x-www-form-urlencoded",
 8293+ processData: true,
 8294+ async: true,
 8295+ /*
 8296+ timeout: 0,
 8297+ data: null,
 8298+ username: null,
 8299+ password: null,
 8300+ */
 8301+ // Create the request object; Microsoft failed to properly
 8302+ // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
 8303+ // This function can be overriden by calling jQuery.ajaxSetup
 8304+ xhr:function(){
 8305+ return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
 8306+ },
 8307+ accepts: {
 8308+ xml: "application/xml, text/xml",
 8309+ html: "text/html",
 8310+ script: "text/javascript, application/javascript",
 8311+ json: "application/json, text/javascript",
 8312+ text: "text/plain",
 8313+ _default: "*/*"
 8314+ }
 8315+ },
 8316+
 8317+ // Last-Modified header cache for next request
 8318+ lastModified: {},
 8319+
 8320+ ajax: function( s ) {
 8321+ // Extend the settings, but re-extend 's' so that it can be
 8322+ // checked again later (in the test suite, specifically)
 8323+ s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
 8324+
 8325+ var jsonp, jsre = /=\?(&|$)/g, status, data,
 8326+ type = s.type.toUpperCase();
 8327+
 8328+ // convert data if not already a string
 8329+ if ( s.data && s.processData && typeof s.data !== "string" )
 8330+ s.data = jQuery.param(s.data);
 8331+
 8332+ // Handle JSONP Parameter Callbacks
 8333+ if ( s.dataType == "jsonp" ) {
 8334+ if ( type == "GET" ) {
 8335+ if ( !s.url.match(jsre) )
 8336+ s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
 8337+ } else if ( !s.data || !s.data.match(jsre) )
 8338+ s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
 8339+ s.dataType = "json";
 8340+ }
 8341+
 8342+ // Build temporary JSONP function
 8343+ if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
 8344+ jsonp = "jsonp" + jsc++;
 8345+
 8346+ // Replace the =? sequence both in the query string and the data
 8347+ if ( s.data )
 8348+ s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
 8349+ s.url = s.url.replace(jsre, "=" + jsonp + "$1");
 8350+
 8351+ // We need to make sure
 8352+ // that a JSONP style response is executed properly
 8353+ s.dataType = "script";
 8354+
 8355+ // Handle JSONP-style loading
 8356+ window[ jsonp ] = function(tmp){
 8357+ data = tmp;
 8358+ success();
 8359+ complete();
 8360+ // Garbage collect
 8361+ window[ jsonp ] = undefined;
 8362+ try{ delete window[ jsonp ]; } catch(e){}
 8363+ if ( head )
 8364+ head.removeChild( script );
 8365+ };
 8366+ }
 8367+
 8368+ if ( s.dataType == "script" && s.cache == null )
 8369+ s.cache = false;
 8370+
 8371+ if ( s.cache === false && type == "GET" ) {
 8372+ var ts = now();
 8373+ // try replacing _= if it is there
 8374+ var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
 8375+ // if nothing was replaced, add timestamp to the end
 8376+ s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
 8377+ }
 8378+
 8379+ // If data is available, append data to url for get requests
 8380+ if ( s.data && type == "GET" ) {
 8381+ s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
 8382+
 8383+ // IE likes to send both get and post data, prevent this
 8384+ s.data = null;
 8385+ }
 8386+
 8387+ // Watch for a new set of requests
 8388+ if ( s.global && ! jQuery.active++ )
 8389+ jQuery.event.trigger( "ajaxStart" );
 8390+
 8391+ // Matches an absolute URL, and saves the domain
 8392+ var parts = /^(\w+:)?\/\/([^\/?#]+)/.exec( s.url );
 8393+
 8394+ // If we're requesting a remote document
 8395+ // and trying to load JSON or Script with a GET
 8396+ if ( s.dataType == "script" && type == "GET" && parts
 8397+ && ( parts[1] && parts[1] != location.protocol || parts[2] != location.host )){
 8398+
 8399+ var head = document.getElementsByTagName("head")[0];
 8400+ var script = document.createElement("script");
 8401+ script.src = s.url;
 8402+ if (s.scriptCharset)
 8403+ script.charset = s.scriptCharset;
 8404+
 8405+ // Handle Script loading
 8406+ if ( !jsonp ) {
 8407+ var done = false;
 8408+
 8409+ // Attach handlers for all browsers
 8410+ script.onload = script.onreadystatechange = function(){
 8411+ if ( !done && (!this.readyState ||
 8412+ this.readyState == "loaded" || this.readyState == "complete") ) {
 8413+ done = true;
 8414+ success();
 8415+ complete();
 8416+
 8417+ // Handle memory leak in IE
 8418+ script.onload = script.onreadystatechange = null;
 8419+ head.removeChild( script );
 8420+ }
 8421+ };
 8422+ }
 8423+
 8424+ head.appendChild(script);
 8425+
 8426+ // We handle everything using the script element injection
 8427+ return undefined;
 8428+ }
 8429+
 8430+ var requestDone = false;
 8431+
 8432+ // Create the request object
 8433+ var xhr = s.xhr();
 8434+
 8435+ // Open the socket
 8436+ // Passing null username, generates a login popup on Opera (#2865)
 8437+ if( s.username )
 8438+ xhr.open(type, s.url, s.async, s.username, s.password);
 8439+ else
 8440+ xhr.open(type, s.url, s.async);
 8441+
 8442+ // Need an extra try/catch for cross domain requests in Firefox 3
 8443+ try {
 8444+ // Set the correct header, if data is being sent
 8445+ if ( s.data )
 8446+ xhr.setRequestHeader("Content-Type", s.contentType);
 8447+
 8448+ // Set the If-Modified-Since header, if ifModified mode.
 8449+ if ( s.ifModified )
 8450+ xhr.setRequestHeader("If-Modified-Since",
 8451+ jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
 8452+
 8453+ // Set header so the called script knows that it's an XMLHttpRequest
 8454+ xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
 8455+
 8456+ // Set the Accepts header for the server, depending on the dataType
 8457+ xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
 8458+ s.accepts[ s.dataType ] + ", */*" :
 8459+ s.accepts._default );
 8460+ } catch(e){}
 8461+
 8462+ // Allow custom headers/mimetypes and early abort
 8463+ if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
 8464+ // Handle the global AJAX counter
 8465+ if ( s.global && ! --jQuery.active )
 8466+ jQuery.event.trigger( "ajaxStop" );
 8467+ // close opended socket
 8468+ xhr.abort();
 8469+ return false;
 8470+ }
 8471+
 8472+ if ( s.global )
 8473+ jQuery.event.trigger("ajaxSend", [xhr, s]);
 8474+
 8475+ // Wait for a response to come back
 8476+ var onreadystatechange = function(isTimeout){
 8477+ // The request was aborted, clear the interval and decrement jQuery.active
 8478+ if (xhr.readyState == 0) {
 8479+ if (ival) {
 8480+ // clear poll interval
 8481+ clearInterval(ival);
 8482+ ival = null;
 8483+ // Handle the global AJAX counter
 8484+ if ( s.global && ! --jQuery.active )
 8485+ jQuery.event.trigger( "ajaxStop" );
 8486+ }
 8487+ // The transfer is complete and the data is available, or the request timed out
 8488+ } else if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
 8489+ requestDone = true;
 8490+
 8491+ // clear poll interval
 8492+ if (ival) {
 8493+ clearInterval(ival);
 8494+ ival = null;
 8495+ }
 8496+
 8497+ status = isTimeout == "timeout" ? "timeout" :
 8498+ !jQuery.httpSuccess( xhr ) ? "error" :
 8499+ s.ifModified && jQuery.httpNotModified( xhr, s.url ) ? "notmodified" :
 8500+ "success";
 8501+
 8502+ if ( status == "success" ) {
 8503+ // Watch for, and catch, XML document parse errors
 8504+ try {
 8505+ // process the data (runs the xml through httpData regardless of callback)
 8506+ data = jQuery.httpData( xhr, s.dataType, s );
 8507+ } catch(e) {
 8508+ status = "parsererror";
 8509+ }
 8510+ }
 8511+
 8512+ // Make sure that the request was successful or notmodified
 8513+ if ( status == "success" ) {
 8514+ // Cache Last-Modified header, if ifModified mode.
 8515+ var modRes;
 8516+ try {
 8517+ modRes = xhr.getResponseHeader("Last-Modified");
 8518+ } catch(e) {} // swallow exception thrown by FF if header is not available
 8519+
 8520+ if ( s.ifModified && modRes )
 8521+ jQuery.lastModified[s.url] = modRes;
 8522+
 8523+ // JSONP handles its own success callback
 8524+ if ( !jsonp )
 8525+ success();
 8526+ } else
 8527+ jQuery.handleError(s, xhr, status);
 8528+
 8529+ // Fire the complete handlers
 8530+ complete();
 8531+
 8532+ if ( isTimeout )
 8533+ xhr.abort();
 8534+
 8535+ // Stop memory leaks
 8536+ if ( s.async )
 8537+ xhr = null;
 8538+ }
 8539+ };
 8540+
 8541+ if ( s.async ) {
 8542+ // don't attach the handler to the request, just poll it instead
 8543+ var ival = setInterval(onreadystatechange, 13);
 8544+
 8545+ // Timeout checker
 8546+ if ( s.timeout > 0 )
 8547+ setTimeout(function(){
 8548+ // Check to see if the request is still happening
 8549+ if ( xhr && !requestDone )
 8550+ onreadystatechange( "timeout" );
 8551+ }, s.timeout);
 8552+ }
 8553+
 8554+ // Send the data
 8555+ try {
 8556+ xhr.send(s.data);
 8557+ } catch(e) {
 8558+ jQuery.handleError(s, xhr, null, e);
 8559+ }
 8560+
 8561+ // firefox 1.5 doesn't fire statechange for sync requests
 8562+ if ( !s.async )
 8563+ onreadystatechange();
 8564+
 8565+ function success(){
 8566+ // If a local callback was specified, fire it and pass it the data
 8567+ if ( s.success )
 8568+ s.success( data, status );
 8569+
 8570+ // Fire the global callback
 8571+ if ( s.global )
 8572+ jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
 8573+ }
 8574+
 8575+ function complete(){
 8576+ // Process result
 8577+ if ( s.complete )
 8578+ s.complete(xhr, status);
 8579+
 8580+ // The request was completed
 8581+ if ( s.global )
 8582+ jQuery.event.trigger( "ajaxComplete", [xhr, s] );
 8583+
 8584+ // Handle the global AJAX counter
 8585+ if ( s.global && ! --jQuery.active )
 8586+ jQuery.event.trigger( "ajaxStop" );
 8587+ }
 8588+
 8589+ // return XMLHttpRequest to allow aborting the request etc.
 8590+ return xhr;
 8591+ },
 8592+
 8593+ handleError: function( s, xhr, status, e ) {
 8594+ // If a local callback was specified, fire it
 8595+ if ( s.error ) s.error( xhr, status, e );
 8596+
 8597+ // Fire the global callback
 8598+ if ( s.global )
 8599+ jQuery.event.trigger( "ajaxError", [xhr, s, e] );
 8600+ },
 8601+
 8602+ // Counter for holding the number of active queries
 8603+ active: 0,
 8604+
 8605+ // Determines if an XMLHttpRequest was successful or not
 8606+ httpSuccess: function( xhr ) {
 8607+ try {
 8608+ // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
 8609+ return !xhr.status && location.protocol == "file:" ||
 8610+ ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223;
 8611+ } catch(e){}
 8612+ return false;
 8613+ },
 8614+
 8615+ // Determines if an XMLHttpRequest returns NotModified
 8616+ httpNotModified: function( xhr, url ) {
 8617+ try {
 8618+ var xhrRes = xhr.getResponseHeader("Last-Modified");
 8619+
 8620+ // Firefox always returns 200. check Last-Modified date
 8621+ return xhr.status == 304 || xhrRes == jQuery.lastModified[url];
 8622+ } catch(e){}
 8623+ return false;
 8624+ },
 8625+
 8626+ httpData: function( xhr, type, s ) {
 8627+ var ct = xhr.getResponseHeader("content-type"),
 8628+ xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
 8629+ data = xml ? xhr.responseXML : xhr.responseText;
 8630+
 8631+ if ( xml && data.documentElement.tagName == "parsererror" )
 8632+ throw "parsererror";
 8633+
 8634+ // Allow a pre-filtering function to sanitize the response
 8635+ // s != null is checked to keep backwards compatibility
 8636+ if( s && s.dataFilter )
 8637+ data = s.dataFilter( data, type );
 8638+
 8639+ // The filter can actually parse the response
 8640+ if( typeof data === "string" ){
 8641+
 8642+ // If the type is "script", eval it in global context
 8643+ if ( type == "script" )
 8644+ jQuery.globalEval( data );
 8645+
 8646+ // Get the JavaScript object, if JSON is used.
 8647+ if ( type == "json" )
 8648+ data = window["eval"]("(" + data + ")");
 8649+ }
 8650+
 8651+ return data;
 8652+ },
 8653+
 8654+ // Serialize an array of form elements or a set of
 8655+ // key/values into a query string
 8656+ param: function( a ) {
 8657+ var s = [ ];
 8658+
 8659+ function add( key, value ){
 8660+ s[ s.length ] = encodeURIComponent(key) + '=' + encodeURIComponent(value);
 8661+ };
 8662+
 8663+ // If an array was passed in, assume that it is an array
 8664+ // of form elements
 8665+ if ( jQuery.isArray(a) || a.jquery )
 8666+ // Serialize the form elements
 8667+ jQuery.each( a, function(){
 8668+ add( this.name, this.value );
 8669+ });
 8670+
 8671+ // Otherwise, assume that it's an object of key/value pairs
 8672+ else
 8673+ // Serialize the key/values
 8674+ for ( var j in a )
 8675+ // If the value is an array then the key names need to be repeated
 8676+ if ( jQuery.isArray(a[j]) )
 8677+ jQuery.each( a[j], function(){
 8678+ add( j, this );
 8679+ });
 8680+ else
 8681+ add( j, jQuery.isFunction(a[j]) ? a[j]() : a[j] );
 8682+
 8683+ // Return the resulting serialization
 8684+ return s.join("&").replace(/%20/g, "+");
 8685+ }
 8686+
 8687+});
 8688+var elemdisplay = {},
 8689+ timerId,
 8690+ fxAttrs = [
 8691+ // height animations
 8692+ [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
 8693+ // width animations
 8694+ [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
 8695+ // opacity animations
 8696+ [ "opacity" ]
 8697+ ];
 8698+
 8699+function genFx( type, num ){
 8700+ var obj = {};
 8701+ jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function(){
 8702+ obj[ this ] = type;
 8703+ });
 8704+ return obj;
 8705+}
 8706+
 8707+jQuery.fn.extend({
 8708+ show: function(speed,callback){
 8709+ if ( speed ) {
 8710+ return this.animate( genFx("show", 3), speed, callback);
 8711+ } else {
 8712+ for ( var i = 0, l = this.length; i < l; i++ ){
 8713+ var old = jQuery.data(this[i], "olddisplay");
 8714+
 8715+ this[i].style.display = old || "";
 8716+
 8717+ if ( jQuery.css(this[i], "display") === "none" ) {
 8718+ var tagName = this[i].tagName, display;
 8719+
 8720+ if ( elemdisplay[ tagName ] ) {
 8721+ display = elemdisplay[ tagName ];
 8722+ } else {
 8723+ var elem = jQuery("<" + tagName + " />").appendTo("body");
 8724+
 8725+ display = elem.css("display");
 8726+ if ( display === "none" )
 8727+ display = "block";
 8728+
 8729+ elem.remove();
 8730+
 8731+ elemdisplay[ tagName ] = display;
 8732+ }
 8733+
 8734+ jQuery.data(this[i], "olddisplay", display);
 8735+ }
 8736+ }
 8737+
 8738+ // Set the display of the elements in a second loop
 8739+ // to avoid the constant reflow
 8740+ for ( var i = 0, l = this.length; i < l; i++ ){
 8741+ this[i].style.display = jQuery.data(this[i], "olddisplay") || "";
 8742+ }
 8743+
 8744+ return this;
 8745+ }
 8746+ },
 8747+
 8748+ hide: function(speed,callback){
 8749+ if ( speed ) {
 8750+ return this.animate( genFx("hide", 3), speed, callback);
 8751+ } else {
 8752+ for ( var i = 0, l = this.length; i < l; i++ ){
 8753+ var old = jQuery.data(this[i], "olddisplay");
 8754+ if ( !old && old !== "none" )
 8755+ jQuery.data(this[i], "olddisplay", jQuery.css(this[i], "display"));
 8756+ }
 8757+
 8758+ // Set the display of the elements in a second loop
 8759+ // to avoid the constant reflow
 8760+ for ( var i = 0, l = this.length; i < l; i++ ){
 8761+ this[i].style.display = "none";
 8762+ }
 8763+
 8764+ return this;
 8765+ }
 8766+ },
 8767+
 8768+ // Save the old toggle function
 8769+ _toggle: jQuery.fn.toggle,
 8770+
 8771+ toggle: function( fn, fn2 ){
 8772+ var bool = typeof fn === "boolean";
 8773+
 8774+ return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
 8775+ this._toggle.apply( this, arguments ) :
 8776+ fn == null || bool ?
 8777+ this.each(function(){
 8778+ var state = bool ? fn : jQuery(this).is(":hidden");
 8779+ jQuery(this)[ state ? "show" : "hide" ]();
 8780+ }) :
 8781+ this.animate(genFx("toggle", 3), fn, fn2);
 8782+ },
 8783+
 8784+ fadeTo: function(speed,to,callback){
 8785+ return this.animate({opacity: to}, speed, callback);
 8786+ },
 8787+
 8788+ animate: function( prop, speed, easing, callback ) {
 8789+ var optall = jQuery.speed(speed, easing, callback);
 8790+
 8791+ return this[ optall.queue === false ? "each" : "queue" ](function(){
 8792+
 8793+ var opt = jQuery.extend({}, optall), p,
 8794+ hidden = this.nodeType == 1 && jQuery(this).is(":hidden"),
 8795+ self = this;
 8796+
 8797+ for ( p in prop ) {
 8798+ if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
 8799+ return opt.complete.call(this);
 8800+
 8801+ if ( ( p == "height" || p == "width" ) && this.style ) {
 8802+ // Store display property
 8803+ opt.display = jQuery.css(this, "display");
 8804+
 8805+ // Make sure that nothing sneaks out
 8806+ opt.overflow = this.style.overflow;
 8807+ }
 8808+ }
 8809+
 8810+ if ( opt.overflow != null )
 8811+ this.style.overflow = "hidden";
 8812+
 8813+ opt.curAnim = jQuery.extend({}, prop);
 8814+
 8815+ jQuery.each( prop, function(name, val){
 8816+ var e = new jQuery.fx( self, opt, name );
 8817+
 8818+ if ( /toggle|show|hide/.test(val) )
 8819+ e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
 8820+ else {
 8821+ var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
 8822+ start = e.cur(true) || 0;
 8823+
 8824+ if ( parts ) {
 8825+ var end = parseFloat(parts[2]),
 8826+ unit = parts[3] || "px";
 8827+
 8828+ // We need to compute starting value
 8829+ if ( unit != "px" ) {
 8830+ self.style[ name ] = (end || 1) + unit;
 8831+ start = ((end || 1) / e.cur(true)) * start;
 8832+ self.style[ name ] = start + unit;
 8833+ }
 8834+
 8835+ // If a +=/-= token was provided, we're doing a relative animation
 8836+ if ( parts[1] )
 8837+ end = ((parts[1] == "-=" ? -1 : 1) * end) + start;
 8838+
 8839+ e.custom( start, end, unit );
 8840+ } else
 8841+ e.custom( start, val, "" );
 8842+ }
 8843+ });
 8844+
 8845+ // For JS strict compliance
 8846+ return true;
 8847+ });
 8848+ },
 8849+
 8850+ stop: function(clearQueue, gotoEnd){
 8851+ var timers = jQuery.timers;
 8852+
 8853+ if (clearQueue)
 8854+ this.queue([]);
 8855+
 8856+ this.each(function(){
 8857+ // go in reverse order so anything added to the queue during the loop is ignored
 8858+ for ( var i = timers.length - 1; i >= 0; i-- )
 8859+ if ( timers[i].elem == this ) {
 8860+ if (gotoEnd)
 8861+ // force the next step to be the last
 8862+ timers[i](true);
 8863+ timers.splice(i, 1);
 8864+ }
 8865+ });
 8866+
 8867+ // start the next in the queue if the last step wasn't forced
 8868+ if (!gotoEnd)
 8869+ this.dequeue();
 8870+
 8871+ return this;
 8872+ }
 8873+
 8874+});
 8875+
 8876+// Generate shortcuts for custom animations
 8877+jQuery.each({
 8878+ slideDown: genFx("show", 1),
 8879+ slideUp: genFx("hide", 1),
 8880+ slideToggle: genFx("toggle", 1),
 8881+ fadeIn: { opacity: "show" },
 8882+ fadeOut: { opacity: "hide" }
 8883+}, function( name, props ){
 8884+ jQuery.fn[ name ] = function( speed, callback ){
 8885+ return this.animate( props, speed, callback );
 8886+ };
 8887+});
 8888+
 8889+jQuery.extend({
 8890+
 8891+ speed: function(speed, easing, fn) {
 8892+ var opt = typeof speed === "object" ? speed : {
 8893+ complete: fn || !fn && easing ||
 8894+ jQuery.isFunction( speed ) && speed,
 8895+ duration: speed,
 8896+ easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
 8897+ };
 8898+
 8899+ opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
 8900+ jQuery.fx.speeds[opt.duration] || jQuery.fx.speeds._default;
 8901+
 8902+ // Queueing
 8903+ opt.old = opt.complete;
 8904+ opt.complete = function(){
 8905+ if ( opt.queue !== false )
 8906+ jQuery(this).dequeue();
 8907+ if ( jQuery.isFunction( opt.old ) )
 8908+ opt.old.call( this );
 8909+ };
 8910+
 8911+ return opt;
 8912+ },
 8913+
 8914+ easing: {
 8915+ linear: function( p, n, firstNum, diff ) {
 8916+ return firstNum + diff * p;
 8917+ },
 8918+ swing: function( p, n, firstNum, diff ) {
 8919+ return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
 8920+ }
 8921+ },
 8922+
 8923+ timers: [],
 8924+
 8925+ fx: function( elem, options, prop ){
 8926+ this.options = options;
 8927+ this.elem = elem;
 8928+ this.prop = prop;
 8929+
 8930+ if ( !options.orig )
 8931+ options.orig = {};
 8932+ }
 8933+
 8934+});
 8935+
 8936+jQuery.fx.prototype = {
 8937+
 8938+ // Simple function for setting a style value
 8939+ update: function(){
 8940+ if ( this.options.step )
 8941+ this.options.step.call( this.elem, this.now, this );
 8942+
 8943+ (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
 8944+
 8945+ // Set display property to block for height/width animations
 8946+ if ( ( this.prop == "height" || this.prop == "width" ) && this.elem.style )
 8947+ this.elem.style.display = "block";
 8948+ },
 8949+
 8950+ // Get the current size
 8951+ cur: function(force){
 8952+ if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) )
 8953+ return this.elem[ this.prop ];
 8954+
 8955+ var r = parseFloat(jQuery.css(this.elem, this.prop, force));
 8956+ return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
 8957+ },
 8958+
 8959+ // Start an animation from one number to another
 8960+ custom: function(from, to, unit){
 8961+ this.startTime = now();
 8962+ this.start = from;
 8963+ this.end = to;
 8964+ this.unit = unit || this.unit || "px";
 8965+ this.now = this.start;
 8966+ this.pos = this.state = 0;
 8967+
 8968+ var self = this;
 8969+ function t(gotoEnd){
 8970+ return self.step(gotoEnd);
 8971+ }
 8972+
 8973+ t.elem = this.elem;
 8974+
 8975+ if ( t() && jQuery.timers.push(t) && !timerId ) {
 8976+ timerId = setInterval(function(){
 8977+ var timers = jQuery.timers;
 8978+
 8979+ for ( var i = 0; i < timers.length; i++ )
 8980+ if ( !timers[i]() )
 8981+ timers.splice(i--, 1);
 8982+
 8983+ if ( !timers.length ) {
 8984+ clearInterval( timerId );
 8985+ timerId = undefined;
 8986+ }
 8987+ }, 13);
 8988+ }
 8989+ },
 8990+
 8991+ // Simple 'show' function
 8992+ show: function(){
 8993+ // Remember where we started, so that we can go back to it later
 8994+ this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
 8995+ this.options.show = true;
 8996+
 8997+ // Begin the animation
 8998+ // Make sure that we start at a small width/height to avoid any
 8999+ // flash of content
 9000+ this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur());
 9001+
 9002+ // Start by showing the element
 9003+ jQuery(this.elem).show();
 9004+ },
 9005+
 9006+ // Simple 'hide' function
 9007+ hide: function(){
 9008+ // Remember where we started, so that we can go back to it later
 9009+ this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
 9010+ this.options.hide = true;
 9011+
 9012+ // Begin the animation
 9013+ this.custom(this.cur(), 0);
 9014+ },
 9015+
 9016+ // Each step of an animation
 9017+ step: function(gotoEnd){
 9018+ var t = now();
 9019+
 9020+ if ( gotoEnd || t >= this.options.duration + this.startTime ) {
 9021+ this.now = this.end;
 9022+ this.pos = this.state = 1;
 9023+ this.update();
 9024+
 9025+ this.options.curAnim[ this.prop ] = true;
 9026+
 9027+ var done = true;
 9028+ for ( var i in this.options.curAnim )
 9029+ if ( this.options.curAnim[i] !== true )
 9030+ done = false;
 9031+
 9032+ if ( done ) {
 9033+ if ( this.options.display != null ) {
 9034+ // Reset the overflow
 9035+ this.elem.style.overflow = this.options.overflow;
 9036+
 9037+ // Reset the display
 9038+ this.elem.style.display = this.options.display;
 9039+ if ( jQuery.css(this.elem, "display") == "none" )
 9040+ this.elem.style.display = "block";
 9041+ }
 9042+
 9043+ // Hide the element if the "hide" operation was done
 9044+ if ( this.options.hide )
 9045+ jQuery(this.elem).hide();
 9046+
 9047+ // Reset the properties, if the item has been hidden or shown
 9048+ if ( this.options.hide || this.options.show )
 9049+ for ( var p in this.options.curAnim )
 9050+ jQuery.attr(this.elem.style, p, this.options.orig[p]);
 9051+
 9052+ // Execute the complete function
 9053+ this.options.complete.call( this.elem );
 9054+ }
 9055+
 9056+ return false;
 9057+ } else {
 9058+ var n = t - this.startTime;
 9059+ this.state = n / this.options.duration;
 9060+
 9061+ // Perform the easing function, defaults to swing
 9062+ this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
 9063+ this.now = this.start + ((this.end - this.start) * this.pos);
 9064+
 9065+ // Perform the next step of the animation
 9066+ this.update();
 9067+ }
 9068+
 9069+ return true;
 9070+ }
 9071+
 9072+};
 9073+
 9074+jQuery.extend( jQuery.fx, {
 9075+ speeds:{
 9076+ slow: 600,
 9077+ fast: 200,
 9078+ // Default speed
 9079+ _default: 400
 9080+ },
 9081+ step: {
 9082+
 9083+ opacity: function(fx){
 9084+ jQuery.attr(fx.elem.style, "opacity", fx.now);
 9085+ },
 9086+
 9087+ _default: function(fx){
 9088+ if ( fx.elem.style && fx.elem.style[ fx.prop ] != null )
 9089+ fx.elem.style[ fx.prop ] = fx.now + fx.unit;
 9090+ else
 9091+ fx.elem[ fx.prop ] = fx.now;
 9092+ }
 9093+ }
 9094+});
 9095+if ( document.documentElement["getBoundingClientRect"] )
 9096+ jQuery.fn.offset = function() {
 9097+ if ( !this[0] ) return { top: 0, left: 0 };
 9098+ if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
 9099+ var box = this[0].getBoundingClientRect(), doc = this[0].ownerDocument, body = doc.body, docElem = doc.documentElement,
 9100+ clientTop = docElem.clientTop || body.clientTop || 0, clientLeft = docElem.clientLeft || body.clientLeft || 0,
 9101+ top = box.top + (self.pageYOffset || jQuery.boxModel && docElem.scrollTop || body.scrollTop ) - clientTop,
 9102+ left = box.left + (self.pageXOffset || jQuery.boxModel && docElem.scrollLeft || body.scrollLeft) - clientLeft;
 9103+ return { top: top, left: left };
 9104+ };
 9105+else
 9106+ jQuery.fn.offset = function() {
 9107+ if ( !this[0] ) return { top: 0, left: 0 };
 9108+ if ( this[0] === this[0].ownerDocument.body ) return jQuery.offset.bodyOffset( this[0] );
 9109+ jQuery.offset.initialized || jQuery.offset.initialize();
 9110+
 9111+ var elem = this[0], offsetParent = elem.offsetParent, prevOffsetParent = elem,
 9112+ doc = elem.ownerDocument, computedStyle, docElem = doc.documentElement,
 9113+ body = doc.body, defaultView = doc.defaultView,
 9114+ prevComputedStyle = defaultView.getComputedStyle(elem, null),
 9115+ top = elem.offsetTop, left = elem.offsetLeft;
 9116+
 9117+ while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
 9118+ computedStyle = defaultView.getComputedStyle(elem, null);
 9119+ top -= elem.scrollTop, left -= elem.scrollLeft;
 9120+ if ( elem === offsetParent ) {
 9121+ top += elem.offsetTop, left += elem.offsetLeft;
 9122+ if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(elem.tagName)) )
 9123+ top += parseInt( computedStyle.borderTopWidth, 10) || 0,
 9124+ left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
 9125+ prevOffsetParent = offsetParent, offsetParent = elem.offsetParent;
 9126+ }
 9127+ if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" )
 9128+ top += parseInt( computedStyle.borderTopWidth, 10) || 0,
 9129+ left += parseInt( computedStyle.borderLeftWidth, 10) || 0;
 9130+ prevComputedStyle = computedStyle;
 9131+ }
 9132+
 9133+ if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" )
 9134+ top += body.offsetTop,
 9135+ left += body.offsetLeft;
 9136+
 9137+ if ( prevComputedStyle.position === "fixed" )
 9138+ top += Math.max(docElem.scrollTop, body.scrollTop),
 9139+ left += Math.max(docElem.scrollLeft, body.scrollLeft);
 9140+
 9141+ return { top: top, left: left };
 9142+ };
 9143+
 9144+jQuery.offset = {
 9145+ initialize: function() {
 9146+ if ( this.initialized ) return;
 9147+ var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop,
 9148+ 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>';
 9149+
 9150+ rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' };
 9151+ for ( prop in rules ) container.style[prop] = rules[prop];
 9152+
 9153+ container.innerHTML = html;
 9154+ body.insertBefore(container, body.firstChild);
 9155+ innerDiv = container.firstChild, checkDiv = innerDiv.firstChild, td = innerDiv.nextSibling.firstChild.firstChild;
 9156+
 9157+ this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
 9158+ this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
 9159+
 9160+ innerDiv.style.overflow = 'hidden', innerDiv.style.position = 'relative';
 9161+ this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
 9162+
 9163+ body.style.marginTop = '1px';
 9164+ this.doesNotIncludeMarginInBodyOffset = (body.offsetTop === 0);
 9165+ body.style.marginTop = bodyMarginTop;
 9166+
 9167+ body.removeChild(container);
 9168+ this.initialized = true;
 9169+ },
 9170+
 9171+ bodyOffset: function(body) {
 9172+ jQuery.offset.initialized || jQuery.offset.initialize();
 9173+ var top = body.offsetTop, left = body.offsetLeft;
 9174+ if ( jQuery.offset.doesNotIncludeMarginInBodyOffset )
 9175+ top += parseInt( jQuery.curCSS(body, 'marginTop', true), 10 ) || 0,
 9176+ left += parseInt( jQuery.curCSS(body, 'marginLeft', true), 10 ) || 0;
 9177+ return { top: top, left: left };
 9178+ }
 9179+};
 9180+
 9181+
 9182+jQuery.fn.extend({
 9183+ position: function() {
 9184+ var left = 0, top = 0, results;
 9185+
 9186+ if ( this[0] ) {
 9187+ // Get *real* offsetParent
 9188+ var offsetParent = this.offsetParent(),
 9189+
 9190+ // Get correct offsets
 9191+ offset = this.offset(),
 9192+ parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
 9193+
 9194+ // Subtract element margins
 9195+ // note: when an element has margin: auto the offsetLeft and marginLeft
 9196+ // are the same in Safari causing offset.left to incorrectly be 0
 9197+ offset.top -= num( this, 'marginTop' );
 9198+ offset.left -= num( this, 'marginLeft' );
 9199+
 9200+ // Add offsetParent borders
 9201+ parentOffset.top += num( offsetParent, 'borderTopWidth' );
 9202+ parentOffset.left += num( offsetParent, 'borderLeftWidth' );
 9203+
 9204+ // Subtract the two offsets
 9205+ results = {
 9206+ top: offset.top - parentOffset.top,
 9207+ left: offset.left - parentOffset.left
 9208+ };
 9209+ }
 9210+
 9211+ return results;
 9212+ },
 9213+
 9214+ offsetParent: function() {
 9215+ var offsetParent = this[0].offsetParent || document.body;
 9216+ while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
 9217+ offsetParent = offsetParent.offsetParent;
 9218+ return jQuery(offsetParent);
 9219+ }
 9220+});
 9221+
 9222+
 9223+// Create scrollLeft and scrollTop methods
 9224+jQuery.each( ['Left', 'Top'], function(i, name) {
 9225+ var method = 'scroll' + name;
 9226+
 9227+ jQuery.fn[ method ] = function(val) {
 9228+ if (!this[0]) return null;
 9229+
 9230+ return val !== undefined ?
 9231+
 9232+ // Set the scroll offset
 9233+ this.each(function() {
 9234+ this == window || this == document ?
 9235+ window.scrollTo(
 9236+ !i ? val : jQuery(window).scrollLeft(),
 9237+ i ? val : jQuery(window).scrollTop()
 9238+ ) :
 9239+ this[ method ] = val;
 9240+ }) :
 9241+
 9242+ // Return the scroll offset
 9243+ this[0] == window || this[0] == document ?
 9244+ self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
 9245+ jQuery.boxModel && document.documentElement[ method ] ||
 9246+ document.body[ method ] :
 9247+ this[0][ method ];
 9248+ };
 9249+});
 9250+// Create innerHeight, innerWidth, outerHeight and outerWidth methods
 9251+jQuery.each([ "Height", "Width" ], function(i, name){
 9252+
 9253+ var tl = i ? "Left" : "Top", // top or left
 9254+ br = i ? "Right" : "Bottom", // bottom or right
 9255+ lower = name.toLowerCase();
 9256+
 9257+ // innerHeight and innerWidth
 9258+ jQuery.fn["inner" + name] = function(){
 9259+ return this[0] ?
 9260+ jQuery.css( this[0], lower, false, "padding" ) :
 9261+ null;
 9262+ };
 9263+
 9264+ // outerHeight and outerWidth
 9265+ jQuery.fn["outer" + name] = function(margin) {
 9266+ return this[0] ?
 9267+ jQuery.css( this[0], lower, false, margin ? "margin" : "border" ) :
 9268+ null;
 9269+ };
 9270+
 9271+ var type = name.toLowerCase();
 9272+
 9273+ jQuery.fn[ type ] = function( size ) {
 9274+ // Get window width or height
 9275+ return this[0] == window ?
 9276+ // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
 9277+ document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] ||
 9278+ document.body[ "client" + name ] :
 9279+
 9280+ // Get document width or height
 9281+ this[0] == document ?
 9282+ // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
 9283+ Math.max(
 9284+ document.documentElement["client" + name],
 9285+ document.body["scroll" + name], document.documentElement["scroll" + name],
 9286+ document.body["offset" + name], document.documentElement["offset" + name]
 9287+ ) :
 9288+
 9289+ // Get or set width or height on the element
 9290+ size === undefined ?
 9291+ // Get width or height on the element
 9292+ (this.length ? jQuery.css( this[0], type ) : null) :
 9293+
 9294+ // Set the width or height on the element (default to pixels if value is unitless)
 9295+ this.css( type, typeof size === "string" ? size : size + "px" );
 9296+ };
 9297+
 9298+});
 9299+})();
 9300+
 9301+/*
 9302+ * Ported from skins/common/edit.js by Trevor Parscal
 9303+ * (c) 2009 Wikimedia Foundation (GPLv2) - http://www.wikimedia.org
 9304+ */
 9305+(function($) {
 9306+ $.fn.extend({
 9307+ encapsulateSelection: function( pre, peri, post ) {
 9308+ var e = this.jquery ? this[0] : this;
 9309+ /**
 9310+ * CLEAN THIS UP PLEASE!
 9311+ */
 9312+ var selText;
 9313+ var isSample = false;
 9314+ if (document.selection && document.selection.createRange) { // IE/Opera
 9315+
 9316+ //save window scroll position
 9317+ if (document.documentElement && document.documentElement.scrollTop)
 9318+ var winScroll = document.documentElement.scrollTop
 9319+ else if (document.body)
 9320+ var winScroll = document.body.scrollTop;
 9321+ //get current selection
 9322+ e.focus();
 9323+ var range = document.selection.createRange();
 9324+ selText = range.text;
 9325+ //insert tags
 9326+ checkSelectedText();
 9327+ range.text = pre + selText + post;
 9328+ //mark sample text as selected
 9329+ if (isSample && range.moveStart) {
 9330+ if (window.opera)
 9331+ post = post.replace(/\n/g,'');
 9332+ range.moveStart('character', - post.length - selText.length);
 9333+ range.moveEnd('character', - post.length);
 9334+ }
 9335+ range.select();
 9336+ //restore window scroll position
 9337+ if (document.documentElement && document.documentElement.scrollTop)
 9338+ document.documentElement.scrollTop = winScroll
 9339+ else if (document.body)
 9340+ document.body.scrollTop = winScroll;
 9341+
 9342+ } else if (e.selectionStart || e.selectionStart == '0') { // Mozilla
 9343+
 9344+ //save textarea scroll position
 9345+ var textScroll = e.scrollTop;
 9346+ //get current selection
 9347+ e.focus();
 9348+ var startPos = e.selectionStart;
 9349+ var endPos = e.selectionEnd;
 9350+ selText = e.value.substring(startPos, endPos);
 9351+ //insert tags
 9352+ checkSelectedText();
 9353+ e.value = e.value.substring(0, startPos)
 9354+ + pre + selText + post
 9355+ + e.value.substring(endPos, e.value.length);
 9356+ //set new selection
 9357+ if (isSample) {
 9358+ e.selectionStart = startPos + pre.length;
 9359+ e.selectionEnd = startPos + pre.length + selText.length;
 9360+ } else {
 9361+ e.selectionStart = startPos + pre.length + selText.length + post.length;
 9362+ e.selectionEnd = e.selectionStart;
 9363+ }
 9364+ //restore textarea scroll position
 9365+ e.scrollTop = textScroll;
 9366+ }
 9367+ // Checks if the selected text is the same as the insert text
 9368+ function checkSelectedText(){
 9369+ if (!selText) {
 9370+ selText = peri;
 9371+ isSample = true;
 9372+ } else if (selText.charAt(selText.length - 1) == ' ') { //exclude ending space char
 9373+ selText = selText.substring(0, selText.length - 1);
 9374+ post += ' '
 9375+ }
 9376+ }
 9377+ /**
 9378+ * /CLEAN THIS UP PLEASE!
 9379+ */
 9380+ }
 9381+ });
 9382+})(jQuery);
 9383+
Property changes on: trunk/extensions/UsabilityInitiative/Resources/jquery.combined.js
___________________________________________________________________
Name: svn:eol-style
19384 + native
Index: trunk/extensions/UsabilityInitiative/Resources/jquery.js
@@ -4518,3 +4518,4 @@
45194519
45204520 });
45214521 })();
 4522+
Index: trunk/extensions/UsabilityInitiative/Resources/jquery.browser.js
@@ -79,3 +79,4 @@
8080
8181 $.browserTest(navigator.userAgent);
8282 })(jQuery);
 83+

Status & tagging log