Deleting old versions of JS files. Adding jQuery 1.7.2
authorandy matthews <andy@commadelimited.com>
Tue, 29 May 2012 20:54:51 +0000 (15:54 -0500)
committerandy matthews <andy@commadelimited.com>
Tue, 29 May 2012 20:54:51 +0000 (15:54 -0500)
js/jquery-1.6.4.js [deleted file]
js/jquery-1.6.4.min.js [deleted file]
js/jquery-1.7.2.js [new file with mode: 0644]
js/jquery-1.7.2.min.js [new file with mode: 0644]
js/jquery.mobile-1.0.1.js [deleted file]
js/jquery.mobile-1.0.1.min.js [deleted file]

diff --git a/js/jquery-1.6.4.js b/js/jquery-1.6.4.js
deleted file mode 100644 (file)
index 719e1d4..0000000
+++ /dev/null
@@ -1,9046 +0,0 @@
-/*!
- * jQuery JavaScript Library v1.6.4
- * http://jquery.com/
- *
- * Copyright 2011, John Resig
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * Includes Sizzle.js
- * http://sizzlejs.com/
- * Copyright 2011, The Dojo Foundation
- * Released under the MIT, BSD, and GPL Licenses.
- *
- * Date: Mon Sep 12 18:54:48 2011 -0400
- */
-(function( window, undefined ) {
-
-// Use the correct document accordingly with window argument (sandbox)
-var document = window.document,
-       navigator = window.navigator,
-       location = window.location;
-var jQuery = (function() {
-
-// Define a local copy of jQuery
-var jQuery = function( selector, context ) {
-               // The jQuery object is actually just the init constructor 'enhanced'
-               return new jQuery.fn.init( selector, context, rootjQuery );
-       },
-
-       // Map over jQuery in case of overwrite
-       _jQuery = window.jQuery,
-
-       // Map over the $ in case of overwrite
-       _$ = window.$,
-
-       // A central reference to the root jQuery(document)
-       rootjQuery,
-
-       // A simple way to check for HTML strings or ID strings
-       // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
-       quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
-
-       // Check if a string has a non-whitespace character in it
-       rnotwhite = /\S/,
-
-       // Used for trimming whitespace
-       trimLeft = /^\s+/,
-       trimRight = /\s+$/,
-
-       // Check for digits
-       rdigit = /\d/,
-
-       // Match a standalone tag
-       rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
-
-       // JSON RegExp
-       rvalidchars = /^[\],:{}\s]*$/,
-       rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
-       rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
-       rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
-
-       // Useragent RegExp
-       rwebkit = /(webkit)[ \/]([\w.]+)/,
-       ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
-       rmsie = /(msie) ([\w.]+)/,
-       rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
-
-       // Matches dashed string for camelizing
-       rdashAlpha = /-([a-z]|[0-9])/ig,
-       rmsPrefix = /^-ms-/,
-
-       // Used by jQuery.camelCase as callback to replace()
-       fcamelCase = function( all, letter ) {
-               return ( letter + "" ).toUpperCase();
-       },
-
-       // Keep a UserAgent string for use with jQuery.browser
-       userAgent = navigator.userAgent,
-
-       // For matching the engine and version of the browser
-       browserMatch,
-
-       // The deferred used on DOM ready
-       readyList,
-
-       // The ready event handler
-       DOMContentLoaded,
-
-       // Save a reference to some core methods
-       toString = Object.prototype.toString,
-       hasOwn = Object.prototype.hasOwnProperty,
-       push = Array.prototype.push,
-       slice = Array.prototype.slice,
-       trim = String.prototype.trim,
-       indexOf = Array.prototype.indexOf,
-
-       // [[Class]] -> type pairs
-       class2type = {};
-
-jQuery.fn = jQuery.prototype = {
-       constructor: jQuery,
-       init: function( selector, context, rootjQuery ) {
-               var match, elem, ret, doc;
-
-               // Handle $(""), $(null), or $(undefined)
-               if ( !selector ) {
-                       return this;
-               }
-
-               // Handle $(DOMElement)
-               if ( selector.nodeType ) {
-                       this.context = this[0] = selector;
-                       this.length = 1;
-                       return this;
-               }
-
-               // The body element only exists once, optimize finding it
-               if ( selector === "body" && !context && document.body ) {
-                       this.context = document;
-                       this[0] = document.body;
-                       this.selector = selector;
-                       this.length = 1;
-                       return this;
-               }
-
-               // Handle HTML strings
-               if ( typeof selector === "string" ) {
-                       // Are we dealing with HTML string or an ID?
-                       if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
-                               // Assume that strings that start and end with <> are HTML and skip the regex check
-                               match = [ null, selector, null ];
-
-                       } else {
-                               match = quickExpr.exec( selector );
-                       }
-
-                       // Verify a match, and that no context was specified for #id
-                       if ( match && (match[1] || !context) ) {
-
-                               // HANDLE: $(html) -> $(array)
-                               if ( match[1] ) {
-                                       context = context instanceof jQuery ? context[0] : context;
-                                       doc = (context ? context.ownerDocument || context : document);
-
-                                       // If a single string is passed in and it's a single tag
-                                       // just do a createElement and skip the rest
-                                       ret = rsingleTag.exec( selector );
-
-                                       if ( ret ) {
-                                               if ( jQuery.isPlainObject( context ) ) {
-                                                       selector = [ document.createElement( ret[1] ) ];
-                                                       jQuery.fn.attr.call( selector, context, true );
-
-                                               } else {
-                                                       selector = [ doc.createElement( ret[1] ) ];
-                                               }
-
-                                       } else {
-                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
-                                               selector = (ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment).childNodes;
-                                       }
-
-                                       return jQuery.merge( this, selector );
-
-                               // HANDLE: $("#id")
-                               } else {
-                                       elem = document.getElementById( match[2] );
-
-                                       // Check parentNode to catch when Blackberry 4.6 returns
-                                       // nodes that are no longer in the document #6963
-                                       if ( elem && elem.parentNode ) {
-                                               // Handle the case where IE and Opera return items
-                                               // by name instead of ID
-                                               if ( elem.id !== match[2] ) {
-                                                       return rootjQuery.find( selector );
-                                               }
-
-                                               // Otherwise, we inject the element directly into the jQuery object
-                                               this.length = 1;
-                                               this[0] = elem;
-                                       }
-
-                                       this.context = document;
-                                       this.selector = selector;
-                                       return this;
-                               }
-
-                       // HANDLE: $(expr, $(...))
-                       } else if ( !context || context.jquery ) {
-                               return (context || rootjQuery).find( selector );
-
-                       // HANDLE: $(expr, context)
-                       // (which is just equivalent to: $(context).find(expr)
-                       } else {
-                               return this.constructor( context ).find( selector );
-                       }
-
-               // HANDLE: $(function)
-               // Shortcut for document ready
-               } else if ( jQuery.isFunction( selector ) ) {
-                       return rootjQuery.ready( selector );
-               }
-
-               if (selector.selector !== undefined) {
-                       this.selector = selector.selector;
-                       this.context = selector.context;
-               }
-
-               return jQuery.makeArray( selector, this );
-       },
-
-       // Start with an empty selector
-       selector: "",
-
-       // The current version of jQuery being used
-       jquery: "1.6.4",
-
-       // The default length of a jQuery object is 0
-       length: 0,
-
-       // The number of elements contained in the matched element set
-       size: function() {
-               return this.length;
-       },
-
-       toArray: function() {
-               return slice.call( this, 0 );
-       },
-
-       // Get the Nth element in the matched element set OR
-       // Get the whole matched element set as a clean array
-       get: function( num ) {
-               return num == null ?
-
-                       // Return a 'clean' array
-                       this.toArray() :
-
-                       // Return just the object
-                       ( num < 0 ? this[ this.length + num ] : this[ num ] );
-       },
-
-       // Take an array of elements and push it onto the stack
-       // (returning the new matched element set)
-       pushStack: function( elems, name, selector ) {
-               // Build a new jQuery matched element set
-               var ret = this.constructor();
-
-               if ( jQuery.isArray( elems ) ) {
-                       push.apply( ret, elems );
-
-               } else {
-                       jQuery.merge( ret, elems );
-               }
-
-               // Add the old object onto the stack (as a reference)
-               ret.prevObject = this;
-
-               ret.context = this.context;
-
-               if ( name === "find" ) {
-                       ret.selector = this.selector + (this.selector ? " " : "") + selector;
-               } else if ( name ) {
-                       ret.selector = this.selector + "." + name + "(" + selector + ")";
-               }
-
-               // Return the newly-formed element set
-               return ret;
-       },
-
-       // Execute a callback for every element in the matched set.
-       // (You can seed the arguments with an array of args, but this is
-       // only used internally.)
-       each: function( callback, args ) {
-               return jQuery.each( this, callback, args );
-       },
-
-       ready: function( fn ) {
-               // Attach the listeners
-               jQuery.bindReady();
-
-               // Add the callback
-               readyList.done( fn );
-
-               return this;
-       },
-
-       eq: function( i ) {
-               return i === -1 ?
-                       this.slice( i ) :
-                       this.slice( i, +i + 1 );
-       },
-
-       first: function() {
-               return this.eq( 0 );
-       },
-
-       last: function() {
-               return this.eq( -1 );
-       },
-
-       slice: function() {
-               return this.pushStack( slice.apply( this, arguments ),
-                       "slice", slice.call(arguments).join(",") );
-       },
-
-       map: function( callback ) {
-               return this.pushStack( jQuery.map(this, function( elem, i ) {
-                       return callback.call( elem, i, elem );
-               }));
-       },
-
-       end: function() {
-               return this.prevObject || this.constructor(null);
-       },
-
-       // For internal use only.
-       // Behaves like an Array's method, not like a jQuery method.
-       push: push,
-       sort: [].sort,
-       splice: [].splice
-};
-
-// Give the init function the jQuery prototype for later instantiation
-jQuery.fn.init.prototype = jQuery.fn;
-
-jQuery.extend = jQuery.fn.extend = function() {
-       var options, name, src, copy, copyIsArray, clone,
-               target = arguments[0] || {},
-               i = 1,
-               length = arguments.length,
-               deep = false;
-
-       // Handle a deep copy situation
-       if ( typeof target === "boolean" ) {
-               deep = target;
-               target = arguments[1] || {};
-               // skip the boolean and the target
-               i = 2;
-       }
-
-       // Handle case when target is a string or something (possible in deep copy)
-       if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
-               target = {};
-       }
-
-       // extend jQuery itself if only one argument is passed
-       if ( length === i ) {
-               target = this;
-               --i;
-       }
-
-       for ( ; i < length; i++ ) {
-               // Only deal with non-null/undefined values
-               if ( (options = arguments[ i ]) != null ) {
-                       // Extend the base object
-                       for ( name in options ) {
-                               src = target[ name ];
-                               copy = options[ name ];
-
-                               // Prevent never-ending loop
-                               if ( target === copy ) {
-                                       continue;
-                               }
-
-                               // Recurse if we're merging plain objects or arrays
-                               if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
-                                       if ( copyIsArray ) {
-                                               copyIsArray = false;
-                                               clone = src && jQuery.isArray(src) ? src : [];
-
-                                       } else {
-                                               clone = src && jQuery.isPlainObject(src) ? src : {};
-                                       }
-
-                                       // Never move original objects, clone them
-                                       target[ name ] = jQuery.extend( deep, clone, copy );
-
-                               // Don't bring in undefined values
-                               } else if ( copy !== undefined ) {
-                                       target[ name ] = copy;
-                               }
-                       }
-               }
-       }
-
-       // Return the modified object
-       return target;
-};
-
-jQuery.extend({
-       noConflict: function( deep ) {
-               if ( window.$ === jQuery ) {
-                       window.$ = _$;
-               }
-
-               if ( deep && window.jQuery === jQuery ) {
-                       window.jQuery = _jQuery;
-               }
-
-               return jQuery;
-       },
-
-       // Is the DOM ready to be used? Set to true once it occurs.
-       isReady: false,
-
-       // A counter to track how many items to wait for before
-       // the ready event fires. See #6781
-       readyWait: 1,
-
-       // Hold (or release) the ready event
-       holdReady: function( hold ) {
-               if ( hold ) {
-                       jQuery.readyWait++;
-               } else {
-                       jQuery.ready( true );
-               }
-       },
-
-       // Handle when the DOM is ready
-       ready: function( wait ) {
-               // Either a released hold or an DOMready/load event and not yet ready
-               if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
-                       // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
-                       if ( !document.body ) {
-                               return setTimeout( jQuery.ready, 1 );
-                       }
-
-                       // Remember that the DOM is ready
-                       jQuery.isReady = true;
-
-                       // If a normal DOM Ready event fired, decrement, and wait if need be
-                       if ( wait !== true && --jQuery.readyWait > 0 ) {
-                               return;
-                       }
-
-                       // If there are functions bound, to execute
-                       readyList.resolveWith( document, [ jQuery ] );
-
-                       // Trigger any bound ready events
-                       if ( jQuery.fn.trigger ) {
-                               jQuery( document ).trigger( "ready" ).unbind( "ready" );
-                       }
-               }
-       },
-
-       bindReady: function() {
-               if ( readyList ) {
-                       return;
-               }
-
-               readyList = jQuery._Deferred();
-
-               // Catch cases where $(document).ready() is called after the
-               // browser event has already occurred.
-               if ( document.readyState === "complete" ) {
-                       // Handle it asynchronously to allow scripts the opportunity to delay ready
-                       return setTimeout( jQuery.ready, 1 );
-               }
-
-               // Mozilla, Opera and webkit nightlies currently support this event
-               if ( document.addEventListener ) {
-                       // Use the handy event callback
-                       document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-
-                       // A fallback to window.onload, that will always work
-                       window.addEventListener( "load", jQuery.ready, false );
-
-               // If IE event model is used
-               } else if ( document.attachEvent ) {
-                       // ensure firing before onload,
-                       // maybe late but safe also for iframes
-                       document.attachEvent( "onreadystatechange", DOMContentLoaded );
-
-                       // A fallback to window.onload, that will always work
-                       window.attachEvent( "onload", jQuery.ready );
-
-                       // If IE and not a frame
-                       // continually check to see if the document is ready
-                       var toplevel = false;
-
-                       try {
-                               toplevel = window.frameElement == null;
-                       } catch(e) {}
-
-                       if ( document.documentElement.doScroll && toplevel ) {
-                               doScrollCheck();
-                       }
-               }
-       },
-
-       // See test/unit/core.js for details concerning isFunction.
-       // Since version 1.3, DOM methods and functions like alert
-       // aren't supported. They return false on IE (#2968).
-       isFunction: function( obj ) {
-               return jQuery.type(obj) === "function";
-       },
-
-       isArray: Array.isArray || function( obj ) {
-               return jQuery.type(obj) === "array";
-       },
-
-       // A crude way of determining if an object is a window
-       isWindow: function( obj ) {
-               return obj && typeof obj === "object" && "setInterval" in obj;
-       },
-
-       isNaN: function( obj ) {
-               return obj == null || !rdigit.test( obj ) || isNaN( obj );
-       },
-
-       type: function( obj ) {
-               return obj == null ?
-                       String( obj ) :
-                       class2type[ toString.call(obj) ] || "object";
-       },
-
-       isPlainObject: function( obj ) {
-               // Must be an Object.
-               // Because of IE, we also have to check the presence of the constructor property.
-               // Make sure that DOM nodes and window objects don't pass through, as well
-               if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
-                       return false;
-               }
-
-               try {
-                       // Not own constructor property must be Object
-                       if ( obj.constructor &&
-                               !hasOwn.call(obj, "constructor") &&
-                               !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
-                               return false;
-                       }
-               } catch ( e ) {
-                       // IE8,9 Will throw exceptions on certain host objects #9897
-                       return false;
-               }
-
-               // Own properties are enumerated firstly, so to speed up,
-               // if last one is own, then all properties are own.
-
-               var key;
-               for ( key in obj ) {}
-
-               return key === undefined || hasOwn.call( obj, key );
-       },
-
-       isEmptyObject: function( obj ) {
-               for ( var name in obj ) {
-                       return false;
-               }
-               return true;
-       },
-
-       error: function( msg ) {
-               throw msg;
-       },
-
-       parseJSON: function( data ) {
-               if ( typeof data !== "string" || !data ) {
-                       return null;
-               }
-
-               // Make sure leading/trailing whitespace is removed (IE can't handle it)
-               data = jQuery.trim( data );
-
-               // Attempt to parse using the native JSON parser first
-               if ( window.JSON && window.JSON.parse ) {
-                       return window.JSON.parse( data );
-               }
-
-               // Make sure the incoming data is actual JSON
-               // Logic borrowed from http://json.org/json2.js
-               if ( rvalidchars.test( data.replace( rvalidescape, "@" )
-                       .replace( rvalidtokens, "]" )
-                       .replace( rvalidbraces, "")) ) {
-
-                       return (new Function( "return " + data ))();
-
-               }
-               jQuery.error( "Invalid JSON: " + data );
-       },
-
-       // Cross-browser xml parsing
-       parseXML: function( data ) {
-               var xml, tmp;
-               try {
-                       if ( window.DOMParser ) { // Standard
-                               tmp = new DOMParser();
-                               xml = tmp.parseFromString( data , "text/xml" );
-                       } else { // IE
-                               xml = new ActiveXObject( "Microsoft.XMLDOM" );
-                               xml.async = "false";
-                               xml.loadXML( data );
-                       }
-               } catch( e ) {
-                       xml = undefined;
-               }
-               if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
-                       jQuery.error( "Invalid XML: " + data );
-               }
-               return xml;
-       },
-
-       noop: function() {},
-
-       // Evaluates a script in a global context
-       // Workarounds based on findings by Jim Driscoll
-       // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
-       globalEval: function( data ) {
-               if ( data && rnotwhite.test( data ) ) {
-                       // We use execScript on Internet Explorer
-                       // We use an anonymous function so that context is window
-                       // rather than jQuery in Firefox
-                       ( window.execScript || function( data ) {
-                               window[ "eval" ].call( window, data );
-                       } )( data );
-               }
-       },
-
-       // Convert dashed to camelCase; used by the css and data modules
-       // Microsoft forgot to hump their vendor prefix (#9572)
-       camelCase: function( string ) {
-               return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
-       },
-
-       nodeName: function( elem, name ) {
-               return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
-       },
-
-       // args is for internal usage only
-       each: function( object, callback, args ) {
-               var name, i = 0,
-                       length = object.length,
-                       isObj = length === undefined || jQuery.isFunction( object );
-
-               if ( args ) {
-                       if ( isObj ) {
-                               for ( name in object ) {
-                                       if ( callback.apply( object[ name ], args ) === false ) {
-                                               break;
-                                       }
-                               }
-                       } else {
-                               for ( ; i < length; ) {
-                                       if ( callback.apply( object[ i++ ], args ) === false ) {
-                                               break;
-                                       }
-                               }
-                       }
-
-               // A special, fast, case for the most common use of each
-               } else {
-                       if ( isObj ) {
-                               for ( name in object ) {
-                                       if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
-                                               break;
-                                       }
-                               }
-                       } else {
-                               for ( ; i < length; ) {
-                                       if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
-                                               break;
-                                       }
-                               }
-                       }
-               }
-
-               return object;
-       },
-
-       // Use native String.trim function wherever possible
-       trim: trim ?
-               function( text ) {
-                       return text == null ?
-                               "" :
-                               trim.call( text );
-               } :
-
-               // Otherwise use our own trimming functionality
-               function( text ) {
-                       return text == null ?
-                               "" :
-                               text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
-               },
-
-       // results is for internal usage only
-       makeArray: function( array, results ) {
-               var ret = results || [];
-
-               if ( array != null ) {
-                       // The window, strings (and functions) also have 'length'
-                       // The extra typeof function check is to prevent crashes
-                       // in Safari 2 (See: #3039)
-                       // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
-                       var type = jQuery.type( array );
-
-                       if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
-                               push.call( ret, array );
-                       } else {
-                               jQuery.merge( ret, array );
-                       }
-               }
-
-               return ret;
-       },
-
-       inArray: function( elem, array ) {
-               if ( !array ) {
-                       return -1;
-               }
-
-               if ( indexOf ) {
-                       return indexOf.call( array, elem );
-               }
-
-               for ( var i = 0, length = array.length; i < length; i++ ) {
-                       if ( array[ i ] === elem ) {
-                               return i;
-                       }
-               }
-
-               return -1;
-       },
-
-       merge: function( first, second ) {
-               var i = first.length,
-                       j = 0;
-
-               if ( typeof second.length === "number" ) {
-                       for ( var l = second.length; j < l; j++ ) {
-                               first[ i++ ] = second[ j ];
-                       }
-
-               } else {
-                       while ( second[j] !== undefined ) {
-                               first[ i++ ] = second[ j++ ];
-                       }
-               }
-
-               first.length = i;
-
-               return first;
-       },
-
-       grep: function( elems, callback, inv ) {
-               var ret = [], retVal;
-               inv = !!inv;
-
-               // Go through the array, only saving the items
-               // that pass the validator function
-               for ( var i = 0, length = elems.length; i < length; i++ ) {
-                       retVal = !!callback( elems[ i ], i );
-                       if ( inv !== retVal ) {
-                               ret.push( elems[ i ] );
-                       }
-               }
-
-               return ret;
-       },
-
-       // arg is for internal usage only
-       map: function( elems, callback, arg ) {
-               var value, key, ret = [],
-                       i = 0,
-                       length = elems.length,
-                       // jquery objects are treated as arrays
-                       isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
-
-               // Go through the array, translating each of the items to their
-               if ( isArray ) {
-                       for ( ; i < length; i++ ) {
-                               value = callback( elems[ i ], i, arg );
-
-                               if ( value != null ) {
-                                       ret[ ret.length ] = value;
-                               }
-                       }
-
-               // Go through every key on the object,
-               } else {
-                       for ( key in elems ) {
-                               value = callback( elems[ key ], key, arg );
-
-                               if ( value != null ) {
-                                       ret[ ret.length ] = value;
-                               }
-                       }
-               }
-
-               // Flatten any nested arrays
-               return ret.concat.apply( [], ret );
-       },
-
-       // A global GUID counter for objects
-       guid: 1,
-
-       // Bind a function to a context, optionally partially applying any
-       // arguments.
-       proxy: function( fn, context ) {
-               if ( typeof context === "string" ) {
-                       var tmp = fn[ context ];
-                       context = fn;
-                       fn = tmp;
-               }
-
-               // Quick check to determine if target is callable, in the spec
-               // this throws a TypeError, but we will just return undefined.
-               if ( !jQuery.isFunction( fn ) ) {
-                       return undefined;
-               }
-
-               // Simulated bind
-               var args = slice.call( arguments, 2 ),
-                       proxy = function() {
-                               return fn.apply( context, args.concat( slice.call( arguments ) ) );
-                       };
-
-               // Set the guid of unique handler to the same of original handler, so it can be removed
-               proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
-
-               return proxy;
-       },
-
-       // Mutifunctional method to get and set values to a collection
-       // The value/s can optionally be executed if it's a function
-       access: function( elems, key, value, exec, fn, pass ) {
-               var length = elems.length;
-
-               // Setting many attributes
-               if ( typeof key === "object" ) {
-                       for ( var k in key ) {
-                               jQuery.access( elems, k, key[k], exec, fn, value );
-                       }
-                       return elems;
-               }
-
-               // Setting one attribute
-               if ( value !== undefined ) {
-                       // Optionally, function values get executed if exec is true
-                       exec = !pass && exec && jQuery.isFunction(value);
-
-                       for ( var i = 0; i < length; i++ ) {
-                               fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
-                       }
-
-                       return elems;
-               }
-
-               // Getting an attribute
-               return length ? fn( elems[0], key ) : undefined;
-       },
-
-       now: function() {
-               return (new Date()).getTime();
-       },
-
-       // Use of jQuery.browser is frowned upon.
-       // More details: http://docs.jquery.com/Utilities/jQuery.browser
-       uaMatch: function( ua ) {
-               ua = ua.toLowerCase();
-
-               var match = rwebkit.exec( ua ) ||
-                       ropera.exec( ua ) ||
-                       rmsie.exec( ua ) ||
-                       ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
-                       [];
-
-               return { browser: match[1] || "", version: match[2] || "0" };
-       },
-
-       sub: function() {
-               function jQuerySub( selector, context ) {
-                       return new jQuerySub.fn.init( selector, context );
-               }
-               jQuery.extend( true, jQuerySub, this );
-               jQuerySub.superclass = this;
-               jQuerySub.fn = jQuerySub.prototype = this();
-               jQuerySub.fn.constructor = jQuerySub;
-               jQuerySub.sub = this.sub;
-               jQuerySub.fn.init = function init( selector, context ) {
-                       if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
-                               context = jQuerySub( context );
-                       }
-
-                       return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
-               };
-               jQuerySub.fn.init.prototype = jQuerySub.fn;
-               var rootjQuerySub = jQuerySub(document);
-               return jQuerySub;
-       },
-
-       browser: {}
-});
-
-// Populate the class2type map
-jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
-       class2type[ "[object " + name + "]" ] = name.toLowerCase();
-});
-
-browserMatch = jQuery.uaMatch( userAgent );
-if ( browserMatch.browser ) {
-       jQuery.browser[ browserMatch.browser ] = true;
-       jQuery.browser.version = browserMatch.version;
-}
-
-// Deprecated, use jQuery.browser.webkit instead
-if ( jQuery.browser.webkit ) {
-       jQuery.browser.safari = true;
-}
-
-// IE doesn't match non-breaking spaces with \s
-if ( rnotwhite.test( "\xA0" ) ) {
-       trimLeft = /^[\s\xA0]+/;
-       trimRight = /[\s\xA0]+$/;
-}
-
-// All jQuery objects should point back to these
-rootjQuery = jQuery(document);
-
-// Cleanup functions for the document ready method
-if ( document.addEventListener ) {
-       DOMContentLoaded = function() {
-               document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
-               jQuery.ready();
-       };
-
-} else if ( document.attachEvent ) {
-       DOMContentLoaded = function() {
-               // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
-               if ( document.readyState === "complete" ) {
-                       document.detachEvent( "onreadystatechange", DOMContentLoaded );
-                       jQuery.ready();
-               }
-       };
-}
-
-// The DOM ready check for Internet Explorer
-function doScrollCheck() {
-       if ( jQuery.isReady ) {
-               return;
-       }
-
-       try {
-               // If IE is used, use the trick by Diego Perini
-               // http://javascript.nwbox.com/IEContentLoaded/
-               document.documentElement.doScroll("left");
-       } catch(e) {
-               setTimeout( doScrollCheck, 1 );
-               return;
-       }
-
-       // and execute any waiting functions
-       jQuery.ready();
-}
-
-return jQuery;
-
-})();
-
-
-var // Promise methods
-       promiseMethods = "done fail isResolved isRejected promise then always pipe".split( " " ),
-       // Static reference to slice
-       sliceDeferred = [].slice;
-
-jQuery.extend({
-       // Create a simple deferred (one callbacks list)
-       _Deferred: function() {
-               var // callbacks list
-                       callbacks = [],
-                       // stored [ context , args ]
-                       fired,
-                       // to avoid firing when already doing so
-                       firing,
-                       // flag to know if the deferred has been cancelled
-                       cancelled,
-                       // the deferred itself
-                       deferred  = {
-
-                               // done( f1, f2, ...)
-                               done: function() {
-                                       if ( !cancelled ) {
-                                               var args = arguments,
-                                                       i,
-                                                       length,
-                                                       elem,
-                                                       type,
-                                                       _fired;
-                                               if ( fired ) {
-                                                       _fired = fired;
-                                                       fired = 0;
-                                               }
-                                               for ( i = 0, length = args.length; i < length; i++ ) {
-                                                       elem = args[ i ];
-                                                       type = jQuery.type( elem );
-                                                       if ( type === "array" ) {
-                                                               deferred.done.apply( deferred, elem );
-                                                       } else if ( type === "function" ) {
-                                                               callbacks.push( elem );
-                                                       }
-                                               }
-                                               if ( _fired ) {
-                                                       deferred.resolveWith( _fired[ 0 ], _fired[ 1 ] );
-                                               }
-                                       }
-                                       return this;
-                               },
-
-                               // resolve with given context and args
-                               resolveWith: function( context, args ) {
-                                       if ( !cancelled && !fired && !firing ) {
-                                               // make sure args are available (#8421)
-                                               args = args || [];
-                                               firing = 1;
-                                               try {
-                                                       while( callbacks[ 0 ] ) {
-                                                               callbacks.shift().apply( context, args );
-                                                       }
-                                               }
-                                               finally {
-                                                       fired = [ context, args ];
-                                                       firing = 0;
-                                               }
-                                       }
-                                       return this;
-                               },
-
-                               // resolve with this as context and given arguments
-                               resolve: function() {
-                                       deferred.resolveWith( this, arguments );
-                                       return this;
-                               },
-
-                               // Has this deferred been resolved?
-                               isResolved: function() {
-                                       return !!( firing || fired );
-                               },
-
-                               // Cancel
-                               cancel: function() {
-                                       cancelled = 1;
-                                       callbacks = [];
-                                       return this;
-                               }
-                       };
-
-               return deferred;
-       },
-
-       // Full fledged deferred (two callbacks list)
-       Deferred: function( func ) {
-               var deferred = jQuery._Deferred(),
-                       failDeferred = jQuery._Deferred(),
-                       promise;
-               // Add errorDeferred methods, then and promise
-               jQuery.extend( deferred, {
-                       then: function( doneCallbacks, failCallbacks ) {
-                               deferred.done( doneCallbacks ).fail( failCallbacks );
-                               return this;
-                       },
-                       always: function() {
-                               return deferred.done.apply( deferred, arguments ).fail.apply( this, arguments );
-                       },
-                       fail: failDeferred.done,
-                       rejectWith: failDeferred.resolveWith,
-                       reject: failDeferred.resolve,
-                       isRejected: failDeferred.isResolved,
-                       pipe: function( fnDone, fnFail ) {
-                               return jQuery.Deferred(function( newDefer ) {
-                                       jQuery.each( {
-                                               done: [ fnDone, "resolve" ],
-                                               fail: [ fnFail, "reject" ]
-                                       }, function( handler, data ) {
-                                               var fn = data[ 0 ],
-                                                       action = data[ 1 ],
-                                                       returned;
-                                               if ( jQuery.isFunction( fn ) ) {
-                                                       deferred[ handler ](function() {
-                                                               returned = fn.apply( this, arguments );
-                                                               if ( returned && jQuery.isFunction( returned.promise ) ) {
-                                                                       returned.promise().then( newDefer.resolve, newDefer.reject );
-                                                               } else {
-                                                                       newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
-                                                               }
-                                                       });
-                                               } else {
-                                                       deferred[ handler ]( newDefer[ action ] );
-                                               }
-                                       });
-                               }).promise();
-                       },
-                       // Get a promise for this deferred
-                       // If obj is provided, the promise aspect is added to the object
-                       promise: function( obj ) {
-                               if ( obj == null ) {
-                                       if ( promise ) {
-                                               return promise;
-                                       }
-                                       promise = obj = {};
-                               }
-                               var i = promiseMethods.length;
-                               while( i-- ) {
-                                       obj[ promiseMethods[i] ] = deferred[ promiseMethods[i] ];
-                               }
-                               return obj;
-                       }
-               });
-               // Make sure only one callback list will be used
-               deferred.done( failDeferred.cancel ).fail( deferred.cancel );
-               // Unexpose cancel
-               delete deferred.cancel;
-               // Call given func if any
-               if ( func ) {
-                       func.call( deferred, deferred );
-               }
-               return deferred;
-       },
-
-       // Deferred helper
-       when: function( firstParam ) {
-               var args = arguments,
-                       i = 0,
-                       length = args.length,
-                       count = length,
-                       deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
-                               firstParam :
-                               jQuery.Deferred();
-               function resolveFunc( i ) {
-                       return function( value ) {
-                               args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
-                               if ( !( --count ) ) {
-                                       // Strange bug in FF4:
-                                       // Values changed onto the arguments object sometimes end up as undefined values
-                                       // outside the $.when method. Cloning the object into a fresh array solves the issue
-                                       deferred.resolveWith( deferred, sliceDeferred.call( args, 0 ) );
-                               }
-                       };
-               }
-               if ( length > 1 ) {
-                       for( ; i < length; i++ ) {
-                               if ( args[ i ] && jQuery.isFunction( args[ i ].promise ) ) {
-                                       args[ i ].promise().then( resolveFunc(i), deferred.reject );
-                               } else {
-                                       --count;
-                               }
-                       }
-                       if ( !count ) {
-                               deferred.resolveWith( deferred, args );
-                       }
-               } else if ( deferred !== firstParam ) {
-                       deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
-               }
-               return deferred.promise();
-       }
-});
-
-
-
-jQuery.support = (function() {
-
-       var div = document.createElement( "div" ),
-               documentElement = document.documentElement,
-               all,
-               a,
-               select,
-               opt,
-               input,
-               marginDiv,
-               support,
-               fragment,
-               body,
-               testElementParent,
-               testElement,
-               testElementStyle,
-               tds,
-               events,
-               eventName,
-               i,
-               isSupported;
-
-       // Preliminary tests
-       div.setAttribute("className", "t");
-       div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
-
-
-       all = div.getElementsByTagName( "*" );
-       a = div.getElementsByTagName( "a" )[ 0 ];
-
-       // Can't get basic test support
-       if ( !all || !all.length || !a ) {
-               return {};
-       }
-
-       // First batch of supports tests
-       select = document.createElement( "select" );
-       opt = select.appendChild( document.createElement("option") );
-       input = div.getElementsByTagName( "input" )[ 0 ];
-
-       support = {
-               // IE strips leading whitespace when .innerHTML is used
-               leadingWhitespace: ( div.firstChild.nodeType === 3 ),
-
-               // Make sure that tbody elements aren't automatically inserted
-               // IE will insert them into empty tables
-               tbody: !div.getElementsByTagName( "tbody" ).length,
-
-               // Make sure that link elements get serialized correctly by innerHTML
-               // This requires a wrapper element in IE
-               htmlSerialize: !!div.getElementsByTagName( "link" ).length,
-
-               // Get the style information from getAttribute
-               // (IE uses .cssText instead)
-               style: /top/.test( a.getAttribute("style") ),
-
-               // Make sure that URLs aren't manipulated
-               // (IE normalizes it by default)
-               hrefNormalized: ( a.getAttribute( "href" ) === "/a" ),
-
-               // Make sure that element opacity exists
-               // (IE uses filter instead)
-               // Use a regex to work around a WebKit issue. See #5145
-               opacity: /^0.55$/.test( a.style.opacity ),
-
-               // Verify style float existence
-               // (IE uses styleFloat instead of cssFloat)
-               cssFloat: !!a.style.cssFloat,
-
-               // Make sure that if no value is specified for a checkbox
-               // that it defaults to "on".
-               // (WebKit defaults to "" instead)
-               checkOn: ( input.value === "on" ),
-
-               // Make sure that a selected-by-default option has a working selected property.
-               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
-               optSelected: opt.selected,
-
-               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
-               getSetAttribute: div.className !== "t",
-
-               // Will be defined later
-               submitBubbles: true,
-               changeBubbles: true,
-               focusinBubbles: false,
-               deleteExpando: true,
-               noCloneEvent: true,
-               inlineBlockNeedsLayout: false,
-               shrinkWrapBlocks: false,
-               reliableMarginRight: true
-       };
-
-       // Make sure checked status is properly cloned
-       input.checked = true;
-       support.noCloneChecked = input.cloneNode( true ).checked;
-
-       // Make sure that the options inside disabled selects aren't marked as disabled
-       // (WebKit marks them as disabled)
-       select.disabled = true;
-       support.optDisabled = !opt.disabled;
-
-       // Test to see if it's possible to delete an expando from an element
-       // Fails in Internet Explorer
-       try {
-               delete div.test;
-       } catch( e ) {
-               support.deleteExpando = false;
-       }
-
-       if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
-               div.attachEvent( "onclick", function() {
-                       // Cloning a node shouldn't copy over any
-                       // bound event handlers (IE does this)
-                       support.noCloneEvent = false;
-               });
-               div.cloneNode( true ).fireEvent( "onclick" );
-       }
-
-       // Check if a radio maintains it's value
-       // after being appended to the DOM
-       input = document.createElement("input");
-       input.value = "t";
-       input.setAttribute("type", "radio");
-       support.radioValue = input.value === "t";
-
-       input.setAttribute("checked", "checked");
-       div.appendChild( input );
-       fragment = document.createDocumentFragment();
-       fragment.appendChild( div.firstChild );
-
-       // WebKit doesn't clone checked state correctly in fragments
-       support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
-
-       div.innerHTML = "";
-
-       // Figure out if the W3C box model works as expected
-       div.style.width = div.style.paddingLeft = "1px";
-
-       body = document.getElementsByTagName( "body" )[ 0 ];
-       // We use our own, invisible, body unless the body is already present
-       // in which case we use a div (#9239)
-       testElement = document.createElement( body ? "div" : "body" );
-       testElementStyle = {
-               visibility: "hidden",
-               width: 0,
-               height: 0,
-               border: 0,
-               margin: 0,
-               background: "none"
-       };
-       if ( body ) {
-               jQuery.extend( testElementStyle, {
-                       position: "absolute",
-                       left: "-1000px",
-                       top: "-1000px"
-               });
-       }
-       for ( i in testElementStyle ) {
-               testElement.style[ i ] = testElementStyle[ i ];
-       }
-       testElement.appendChild( div );
-       testElementParent = body || documentElement;
-       testElementParent.insertBefore( testElement, testElementParent.firstChild );
-
-       // Check if a disconnected checkbox will retain its checked
-       // value of true after appended to the DOM (IE6/7)
-       support.appendChecked = input.checked;
-
-       support.boxModel = div.offsetWidth === 2;
-
-       if ( "zoom" in div.style ) {
-               // Check if natively block-level elements act like inline-block
-               // elements when setting their display to 'inline' and giving
-               // them layout
-               // (IE < 8 does this)
-               div.style.display = "inline";
-               div.style.zoom = 1;
-               support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );
-
-               // Check if elements with layout shrink-wrap their children
-               // (IE 6 does this)
-               div.style.display = "";
-               div.innerHTML = "<div style='width:4px;'></div>";
-               support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
-       }
-
-       div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
-       tds = div.getElementsByTagName( "td" );
-
-       // Check if table cells still have offsetWidth/Height when they are set
-       // to display:none and there are still other visible table cells in a
-       // table row; if so, offsetWidth/Height are not reliable for use when
-       // determining if an element has been hidden directly using
-       // display:none (it is still safe to use offsets if a parent element is
-       // hidden; don safety goggles and see bug #4512 for more information).
-       // (only IE 8 fails this test)
-       isSupported = ( tds[ 0 ].offsetHeight === 0 );
-
-       tds[ 0 ].style.display = "";
-       tds[ 1 ].style.display = "none";
-
-       // Check if empty table cells still have offsetWidth/Height
-       // (IE < 8 fail this test)
-       support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
-       div.innerHTML = "";
-
-       // Check if div with explicit width and no margin-right incorrectly
-       // gets computed margin-right based on width of container. For more
-       // info see bug #3333
-       // Fails in WebKit before Feb 2011 nightlies
-       // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
-       if ( document.defaultView && document.defaultView.getComputedStyle ) {
-               marginDiv = document.createElement( "div" );
-               marginDiv.style.width = "0";
-               marginDiv.style.marginRight = "0";
-               div.appendChild( marginDiv );
-               support.reliableMarginRight =
-                       ( parseInt( ( document.defaultView.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
-       }
-
-       // Remove the body element we added
-       testElement.innerHTML = "";
-       testElementParent.removeChild( testElement );
-
-       // Technique from Juriy Zaytsev
-       // http://thinkweb2.com/projects/prototype/detecting-event-support-without-browser-sniffing/
-       // We only care about the case where non-standard event systems
-       // are used, namely in IE. Short-circuiting here helps us to
-       // avoid an eval call (in setAttribute) which can cause CSP
-       // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
-       if ( div.attachEvent ) {
-               for( i in {
-                       submit: 1,
-                       change: 1,
-                       focusin: 1
-               } ) {
-                       eventName = "on" + i;
-                       isSupported = ( eventName in div );
-                       if ( !isSupported ) {
-                               div.setAttribute( eventName, "return;" );
-                               isSupported = ( typeof div[ eventName ] === "function" );
-                       }
-                       support[ i + "Bubbles" ] = isSupported;
-               }
-       }
-
-       // Null connected elements to avoid leaks in IE
-       testElement = fragment = select = opt = body = marginDiv = div = input = null;
-
-       return support;
-})();
-
-// Keep track of boxModel
-jQuery.boxModel = jQuery.support.boxModel;
-
-
-
-
-var rbrace = /^(?:\{.*\}|\[.*\])$/,
-       rmultiDash = /([A-Z])/g;
-
-jQuery.extend({
-       cache: {},
-
-       // Please use with caution
-       uuid: 0,
-
-       // Unique for each copy of jQuery on the page
-       // Non-digits removed to match rinlinejQuery
-       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
-
-       // The following elements throw uncatchable exceptions if you
-       // attempt to add expando properties to them.
-       noData: {
-               "embed": true,
-               // Ban all objects except for Flash (which handle expandos)
-               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
-               "applet": true
-       },
-
-       hasData: function( elem ) {
-               elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
-
-               return !!elem && !isEmptyDataObject( elem );
-       },
-
-       data: function( elem, name, data, pvt /* Internal Use Only */ ) {
-               if ( !jQuery.acceptData( elem ) ) {
-                       return;
-               }
-
-               var thisCache, ret,
-                       internalKey = jQuery.expando,
-                       getByName = typeof name === "string",
-
-                       // We have to handle DOM nodes and JS objects differently because IE6-7
-                       // can't GC object references properly across the DOM-JS boundary
-                       isNode = elem.nodeType,
-
-                       // Only DOM nodes need the global jQuery cache; JS object data is
-                       // attached directly to the object so GC can occur automatically
-                       cache = isNode ? jQuery.cache : elem,
-
-                       // Only defining an ID for JS objects if its cache already exists allows
-                       // the code to shortcut on the same path as a DOM node with no cache
-                       id = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando;
-
-               // Avoid doing any more work than we need to when trying to get data on an
-               // object that has no data at all
-               if ( (!id || (pvt && id && (cache[ id ] && !cache[ id ][ internalKey ]))) && getByName && data === undefined ) {
-                       return;
-               }
-
-               if ( !id ) {
-                       // Only DOM nodes need a new unique ID for each element since their data
-                       // ends up in the global cache
-                       if ( isNode ) {
-                               elem[ jQuery.expando ] = id = ++jQuery.uuid;
-                       } else {
-                               id = jQuery.expando;
-                       }
-               }
-
-               if ( !cache[ id ] ) {
-                       cache[ id ] = {};
-
-                       // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery
-                       // metadata on plain JS objects when the object is serialized using
-                       // JSON.stringify
-                       if ( !isNode ) {
-                               cache[ id ].toJSON = jQuery.noop;
-                       }
-               }
-
-               // An object can be passed to jQuery.data instead of a key/value pair; this gets
-               // shallow copied over onto the existing cache
-               if ( typeof name === "object" || typeof name === "function" ) {
-                       if ( pvt ) {
-                               cache[ id ][ internalKey ] = jQuery.extend(cache[ id ][ internalKey ], name);
-                       } else {
-                               cache[ id ] = jQuery.extend(cache[ id ], name);
-                       }
-               }
-
-               thisCache = cache[ id ];
-
-               // Internal jQuery data is stored in a separate object inside the object's data
-               // cache in order to avoid key collisions between internal data and user-defined
-               // data
-               if ( pvt ) {
-                       if ( !thisCache[ internalKey ] ) {
-                               thisCache[ internalKey ] = {};
-                       }
-
-                       thisCache = thisCache[ internalKey ];
-               }
-
-               if ( data !== undefined ) {
-                       thisCache[ jQuery.camelCase( name ) ] = data;
-               }
-
-               // TODO: This is a hack for 1.5 ONLY. It will be removed in 1.6. Users should
-               // not attempt to inspect the internal events object using jQuery.data, as this
-               // internal data object is undocumented and subject to change.
-               if ( name === "events" && !thisCache[name] ) {
-                       return thisCache[ internalKey ] && thisCache[ internalKey ].events;
-               }
-
-               // Check for both converted-to-camel and non-converted data property names
-               // If a data property was specified
-               if ( getByName ) {
-
-                       // First Try to find as-is property data
-                       ret = thisCache[ name ];
-
-                       // Test for null|undefined property data
-                       if ( ret == null ) {
-
-                               // Try to find the camelCased property
-                               ret = thisCache[ jQuery.camelCase( name ) ];
-                       }
-               } else {
-                       ret = thisCache;
-               }
-
-               return ret;
-       },
-
-       removeData: function( elem, name, pvt /* Internal Use Only */ ) {
-               if ( !jQuery.acceptData( elem ) ) {
-                       return;
-               }
-
-               var thisCache,
-
-                       // Reference to internal data cache key
-                       internalKey = jQuery.expando,
-
-                       isNode = elem.nodeType,
-
-                       // See jQuery.data for more information
-                       cache = isNode ? jQuery.cache : elem,
-
-                       // See jQuery.data for more information
-                       id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
-
-               // If there is already no cache entry for this object, there is no
-               // purpose in continuing
-               if ( !cache[ id ] ) {
-                       return;
-               }
-
-               if ( name ) {
-
-                       thisCache = pvt ? cache[ id ][ internalKey ] : cache[ id ];
-
-                       if ( thisCache ) {
-
-                               // Support interoperable removal of hyphenated or camelcased keys
-                               if ( !thisCache[ name ] ) {
-                                       name = jQuery.camelCase( name );
-                               }
-
-                               delete thisCache[ name ];
-
-                               // If there is no data left in the cache, we want to continue
-                               // and let the cache object itself get destroyed
-                               if ( !isEmptyDataObject(thisCache) ) {
-                                       return;
-                               }
-                       }
-               }
-
-               // See jQuery.data for more information
-               if ( pvt ) {
-                       delete cache[ id ][ internalKey ];
-
-                       // Don't destroy the parent cache unless the internal data object
-                       // had been the only thing left in it
-                       if ( !isEmptyDataObject(cache[ id ]) ) {
-                               return;
-                       }
-               }
-
-               var internalCache = cache[ id ][ internalKey ];
-
-               // Browsers that fail expando deletion also refuse to delete expandos on
-               // the window, but it will allow it on all other JS objects; other browsers
-               // don't care
-               // Ensure that `cache` is not a window object #10080
-               if ( jQuery.support.deleteExpando || !cache.setInterval ) {
-                       delete cache[ id ];
-               } else {
-                       cache[ id ] = null;
-               }
-
-               // We destroyed the entire user cache at once because it's faster than
-               // iterating through each key, but we need to continue to persist internal
-               // data if it existed
-               if ( internalCache ) {
-                       cache[ id ] = {};
-                       // TODO: This is a hack for 1.5 ONLY. Avoids exposing jQuery
-                       // metadata on plain JS objects when the object is serialized using
-                       // JSON.stringify
-                       if ( !isNode ) {
-                               cache[ id ].toJSON = jQuery.noop;
-                       }
-
-                       cache[ id ][ internalKey ] = internalCache;
-
-               // Otherwise, we need to eliminate the expando on the node to avoid
-               // false lookups in the cache for entries that no longer exist
-               } else if ( isNode ) {
-                       // IE does not allow us to delete expando properties from nodes,
-                       // nor does it have a removeAttribute function on Document nodes;
-                       // we must handle all of these cases
-                       if ( jQuery.support.deleteExpando ) {
-                               delete elem[ jQuery.expando ];
-                       } else if ( elem.removeAttribute ) {
-                               elem.removeAttribute( jQuery.expando );
-                       } else {
-                               elem[ jQuery.expando ] = null;
-                       }
-               }
-       },
-
-       // For internal use only.
-       _data: function( elem, name, data ) {
-               return jQuery.data( elem, name, data, true );
-       },
-
-       // A method for determining if a DOM node can handle the data expando
-       acceptData: function( elem ) {
-               if ( elem.nodeName ) {
-                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
-
-                       if ( match ) {
-                               return !(match === true || elem.getAttribute("classid") !== match);
-                       }
-               }
-
-               return true;
-       }
-});
-
-jQuery.fn.extend({
-       data: function( key, value ) {
-               var data = null;
-
-               if ( typeof key === "undefined" ) {
-                       if ( this.length ) {
-                               data = jQuery.data( this[0] );
-
-                               if ( this[0].nodeType === 1 ) {
-                           var attr = this[0].attributes, name;
-                                       for ( var i = 0, l = attr.length; i < l; i++ ) {
-                                               name = attr[i].name;
-
-                                               if ( name.indexOf( "data-" ) === 0 ) {
-                                                       name = jQuery.camelCase( name.substring(5) );
-
-                                                       dataAttr( this[0], name, data[ name ] );
-                                               }
-                                       }
-                               }
-                       }
-
-                       return data;
-
-               } else if ( typeof key === "object" ) {
-                       return this.each(function() {
-                               jQuery.data( this, key );
-                       });
-               }
-
-               var parts = key.split(".");
-               parts[1] = parts[1] ? "." + parts[1] : "";
-
-               if ( value === undefined ) {
-                       data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
-
-                       // Try to fetch any internally stored data first
-                       if ( data === undefined && this.length ) {
-                               data = jQuery.data( this[0], key );
-                               data = dataAttr( this[0], key, data );
-                       }
-
-                       return data === undefined && parts[1] ?
-                               this.data( parts[0] ) :
-                               data;
-
-               } else {
-                       return this.each(function() {
-                               var $this = jQuery( this ),
-                                       args = [ parts[0], value ];
-
-                               $this.triggerHandler( "setData" + parts[1] + "!", args );
-                               jQuery.data( this, key, value );
-                               $this.triggerHandler( "changeData" + parts[1] + "!", args );
-                       });
-               }
-       },
-
-       removeData: function( key ) {
-               return this.each(function() {
-                       jQuery.removeData( this, key );
-               });
-       }
-});
-
-function dataAttr( elem, key, data ) {
-       // If nothing was found internally, try to fetch any
-       // data from the HTML5 data-* attribute
-       if ( data === undefined && elem.nodeType === 1 ) {
-
-               var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
-
-               data = elem.getAttribute( name );
-
-               if ( typeof data === "string" ) {
-                       try {
-                               data = data === "true" ? true :
-                               data === "false" ? false :
-                               data === "null" ? null :
-                               !jQuery.isNaN( data ) ? parseFloat( data ) :
-                                       rbrace.test( data ) ? jQuery.parseJSON( data ) :
-                                       data;
-                       } catch( e ) {}
-
-                       // Make sure we set the data so it isn't changed later
-                       jQuery.data( elem, key, data );
-
-               } else {
-                       data = undefined;
-               }
-       }
-
-       return data;
-}
-
-// TODO: This is a hack for 1.5 ONLY to allow objects with a single toJSON
-// property to be considered empty objects; this property always exists in
-// order to make sure JSON.stringify does not expose internal metadata
-function isEmptyDataObject( obj ) {
-       for ( var name in obj ) {
-               if ( name !== "toJSON" ) {
-                       return false;
-               }
-       }
-
-       return true;
-}
-
-
-
-
-function handleQueueMarkDefer( elem, type, src ) {
-       var deferDataKey = type + "defer",
-               queueDataKey = type + "queue",
-               markDataKey = type + "mark",
-               defer = jQuery.data( elem, deferDataKey, undefined, true );
-       if ( defer &&
-               ( src === "queue" || !jQuery.data( elem, queueDataKey, undefined, true ) ) &&
-               ( src === "mark" || !jQuery.data( elem, markDataKey, undefined, true ) ) ) {
-               // Give room for hard-coded callbacks to fire first
-               // and eventually mark/queue something else on the element
-               setTimeout( function() {
-                       if ( !jQuery.data( elem, queueDataKey, undefined, true ) &&
-                               !jQuery.data( elem, markDataKey, undefined, true ) ) {
-                               jQuery.removeData( elem, deferDataKey, true );
-                               defer.resolve();
-                       }
-               }, 0 );
-       }
-}
-
-jQuery.extend({
-
-       _mark: function( elem, type ) {
-               if ( elem ) {
-                       type = (type || "fx") + "mark";
-                       jQuery.data( elem, type, (jQuery.data(elem,type,undefined,true) || 0) + 1, true );
-               }
-       },
-
-       _unmark: function( force, elem, type ) {
-               if ( force !== true ) {
-                       type = elem;
-                       elem = force;
-                       force = false;
-               }
-               if ( elem ) {
-                       type = type || "fx";
-                       var key = type + "mark",
-                               count = force ? 0 : ( (jQuery.data( elem, key, undefined, true) || 1 ) - 1 );
-                       if ( count ) {
-                               jQuery.data( elem, key, count, true );
-                       } else {
-                               jQuery.removeData( elem, key, true );
-                               handleQueueMarkDefer( elem, type, "mark" );
-                       }
-               }
-       },
-
-       queue: function( elem, type, data ) {
-               if ( elem ) {
-                       type = (type || "fx") + "queue";
-                       var q = jQuery.data( elem, type, undefined, true );
-                       // Speed up dequeue by getting out quickly if this is just a lookup
-                       if ( data ) {
-                               if ( !q || jQuery.isArray(data) ) {
-                                       q = jQuery.data( elem, type, jQuery.makeArray(data), true );
-                               } else {
-                                       q.push( data );
-                               }
-                       }
-                       return q || [];
-               }
-       },
-
-       dequeue: function( elem, type ) {
-               type = type || "fx";
-
-               var queue = jQuery.queue( elem, type ),
-                       fn = queue.shift(),
-                       defer;
-
-               // If the fx queue is dequeued, always remove the progress sentinel
-               if ( fn === "inprogress" ) {
-                       fn = queue.shift();
-               }
-
-               if ( fn ) {
-                       // Add a progress sentinel to prevent the fx queue from being
-                       // automatically dequeued
-                       if ( type === "fx" ) {
-                               queue.unshift("inprogress");
-                       }
-
-                       fn.call(elem, function() {
-                               jQuery.dequeue(elem, type);
-                       });
-               }
-
-               if ( !queue.length ) {
-                       jQuery.removeData( elem, type + "queue", true );
-                       handleQueueMarkDefer( elem, type, "queue" );
-               }
-       }
-});
-
-jQuery.fn.extend({
-       queue: function( type, data ) {
-               if ( typeof type !== "string" ) {
-                       data = type;
-                       type = "fx";
-               }
-
-               if ( data === undefined ) {
-                       return jQuery.queue( this[0], type );
-               }
-               return this.each(function() {
-                       var queue = jQuery.queue( this, type, data );
-
-                       if ( type === "fx" && queue[0] !== "inprogress" ) {
-                               jQuery.dequeue( this, type );
-                       }
-               });
-       },
-       dequeue: function( type ) {
-               return this.each(function() {
-                       jQuery.dequeue( this, type );
-               });
-       },
-       // Based off of the plugin by Clint Helfers, with permission.
-       // http://blindsignals.com/index.php/2009/07/jquery-delay/
-       delay: function( time, type ) {
-               time = jQuery.fx ? jQuery.fx.speeds[time] || time : time;
-               type = type || "fx";
-
-               return this.queue( type, function() {
-                       var elem = this;
-                       setTimeout(function() {
-                               jQuery.dequeue( elem, type );
-                       }, time );
-               });
-       },
-       clearQueue: function( type ) {
-               return this.queue( type || "fx", [] );
-       },
-       // Get a promise resolved when queues of a certain type
-       // are emptied (fx is the type by default)
-       promise: function( type, object ) {
-               if ( typeof type !== "string" ) {
-                       object = type;
-                       type = undefined;
-               }
-               type = type || "fx";
-               var defer = jQuery.Deferred(),
-                       elements = this,
-                       i = elements.length,
-                       count = 1,
-                       deferDataKey = type + "defer",
-                       queueDataKey = type + "queue",
-                       markDataKey = type + "mark",
-                       tmp;
-               function resolve() {
-                       if ( !( --count ) ) {
-                               defer.resolveWith( elements, [ elements ] );
-                       }
-               }
-               while( i-- ) {
-                       if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
-                                       ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
-                                               jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
-                                       jQuery.data( elements[ i ], deferDataKey, jQuery._Deferred(), true ) )) {
-                               count++;
-                               tmp.done( resolve );
-                       }
-               }
-               resolve();
-               return defer.promise();
-       }
-});
-
-
-
-
-var rclass = /[\n\t\r]/g,
-       rspace = /\s+/,
-       rreturn = /\r/g,
-       rtype = /^(?:button|input)$/i,
-       rfocusable = /^(?:button|input|object|select|textarea)$/i,
-       rclickable = /^a(?:rea)?$/i,
-       rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
-       nodeHook, boolHook;
-
-jQuery.fn.extend({
-       attr: function( name, value ) {
-               return jQuery.access( this, name, value, true, jQuery.attr );
-       },
-
-       removeAttr: function( name ) {
-               return this.each(function() {
-                       jQuery.removeAttr( this, name );
-               });
-       },
-       
-       prop: function( name, value ) {
-               return jQuery.access( this, name, value, true, jQuery.prop );
-       },
-       
-       removeProp: function( name ) {
-               name = jQuery.propFix[ name ] || name;
-               return this.each(function() {
-                       // try/catch handles cases where IE balks (such as removing a property on window)
-                       try {
-                               this[ name ] = undefined;
-                               delete this[ name ];
-                       } catch( e ) {}
-               });
-       },
-
-       addClass: function( value ) {
-               var classNames, i, l, elem,
-                       setClass, c, cl;
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( j ) {
-                               jQuery( this ).addClass( value.call(this, j, this.className) );
-                       });
-               }
-
-               if ( value && typeof value === "string" ) {
-                       classNames = value.split( rspace );
-
-                       for ( i = 0, l = this.length; i < l; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.nodeType === 1 ) {
-                                       if ( !elem.className && classNames.length === 1 ) {
-                                               elem.className = value;
-
-                                       } else {
-                                               setClass = " " + elem.className + " ";
-
-                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
-                                                       if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
-                                                               setClass += classNames[ c ] + " ";
-                                                       }
-                                               }
-                                               elem.className = jQuery.trim( setClass );
-                                       }
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       removeClass: function( value ) {
-               var classNames, i, l, elem, className, c, cl;
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( j ) {
-                               jQuery( this ).removeClass( value.call(this, j, this.className) );
-                       });
-               }
-
-               if ( (value && typeof value === "string") || value === undefined ) {
-                       classNames = (value || "").split( rspace );
-
-                       for ( i = 0, l = this.length; i < l; i++ ) {
-                               elem = this[ i ];
-
-                               if ( elem.nodeType === 1 && elem.className ) {
-                                       if ( value ) {
-                                               className = (" " + elem.className + " ").replace( rclass, " " );
-                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {
-                                                       className = className.replace(" " + classNames[ c ] + " ", " ");
-                                               }
-                                               elem.className = jQuery.trim( className );
-
-                                       } else {
-                                               elem.className = "";
-                                       }
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       toggleClass: function( value, stateVal ) {
-               var type = typeof value,
-                       isBool = typeof stateVal === "boolean";
-
-               if ( jQuery.isFunction( value ) ) {
-                       return this.each(function( i ) {
-                               jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
-                       });
-               }
-
-               return this.each(function() {
-                       if ( type === "string" ) {
-                               // toggle individual class names
-                               var className,
-                                       i = 0,
-                                       self = jQuery( this ),
-                                       state = stateVal,
-                                       classNames = value.split( rspace );
-
-                               while ( (className = classNames[ i++ ]) ) {
-                                       // check each className given, space seperated list
-                                       state = isBool ? state : !self.hasClass( className );
-                                       self[ state ? "addClass" : "removeClass" ]( className );
-                               }
-
-                       } else if ( type === "undefined" || type === "boolean" ) {
-                               if ( this.className ) {
-                                       // store className if set
-                                       jQuery._data( this, "__className__", this.className );
-                               }
-
-                               // toggle whole className
-                               this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
-                       }
-               });
-       },
-
-       hasClass: function( selector ) {
-               var className = " " + selector + " ";
-               for ( var i = 0, l = this.length; i < l; i++ ) {
-                       if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
-                               return true;
-                       }
-               }
-
-               return false;
-       },
-
-       val: function( value ) {
-               var hooks, ret,
-                       elem = this[0];
-               
-               if ( !arguments.length ) {
-                       if ( elem ) {
-                               hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];
-
-                               if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
-                                       return ret;
-                               }
-
-                               ret = elem.value;
-
-                               return typeof ret === "string" ? 
-                                       // handle most common string cases
-                                       ret.replace(rreturn, "") : 
-                                       // handle cases where value is null/undef or number
-                                       ret == null ? "" : ret;
-                       }
-
-                       return undefined;
-               }
-
-               var isFunction = jQuery.isFunction( value );
-
-               return this.each(function( i ) {
-                       var self = jQuery(this), val;
-
-                       if ( this.nodeType !== 1 ) {
-                               return;
-                       }
-
-                       if ( isFunction ) {
-                               val = value.call( this, i, self.val() );
-                       } else {
-                               val = value;
-                       }
-
-                       // Treat null/undefined as ""; convert numbers to string
-                       if ( val == null ) {
-                               val = "";
-                       } else if ( typeof val === "number" ) {
-                               val += "";
-                       } else if ( jQuery.isArray( val ) ) {
-                               val = jQuery.map(val, function ( value ) {
-                                       return value == null ? "" : value + "";
-                               });
-                       }
-
-                       hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
-
-                       // If set returns undefined, fall back to normal setting
-                       if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
-                               this.value = val;
-                       }
-               });
-       }
-});
-
-jQuery.extend({
-       valHooks: {
-               option: {
-                       get: function( elem ) {
-                               // attributes.value is undefined in Blackberry 4.7 but
-                               // uses .value. See #6932
-                               var val = elem.attributes.value;
-                               return !val || val.specified ? elem.value : elem.text;
-                       }
-               },
-               select: {
-                       get: function( elem ) {
-                               var value,
-                                       index = elem.selectedIndex,
-                                       values = [],
-                                       options = elem.options,
-                                       one = elem.type === "select-one";
-
-                               // Nothing was selected
-                               if ( index < 0 ) {
-                                       return null;
-                               }
-
-                               // Loop through all the selected options
-                               for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
-                                       var option = options[ i ];
-
-                                       // Don't return options that are disabled or in a disabled optgroup
-                                       if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
-                                                       (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
-
-                                               // Get the specific value for the option
-                                               value = jQuery( option ).val();
-
-                                               // We don't need an array for one selects
-                                               if ( one ) {
-                                                       return value;
-                                               }
-
-                                               // Multi-Selects return an array
-                                               values.push( value );
-                                       }
-                               }
-
-                               // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
-                               if ( one && !values.length && options.length ) {
-                                       return jQuery( options[ index ] ).val();
-                               }
-
-                               return values;
-                       },
-
-                       set: function( elem, value ) {
-                               var values = jQuery.makeArray( value );
-
-                               jQuery(elem).find("option").each(function() {
-                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
-                               });
-
-                               if ( !values.length ) {
-                                       elem.selectedIndex = -1;
-                               }
-                               return values;
-                       }
-               }
-       },
-
-       attrFn: {
-               val: true,
-               css: true,
-               html: true,
-               text: true,
-               data: true,
-               width: true,
-               height: true,
-               offset: true
-       },
-       
-       attrFix: {
-               // Always normalize to ensure hook usage
-               tabindex: "tabIndex"
-       },
-       
-       attr: function( elem, name, value, pass ) {
-               var nType = elem.nodeType;
-               
-               // don't get/set attributes on text, comment and attribute nodes
-               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
-                       return undefined;
-               }
-
-               if ( pass && name in jQuery.attrFn ) {
-                       return jQuery( elem )[ name ]( value );
-               }
-
-               // Fallback to prop when attributes are not supported
-               if ( !("getAttribute" in elem) ) {
-                       return jQuery.prop( elem, name, value );
-               }
-
-               var ret, hooks,
-                       notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
-               // Normalize the name if needed
-               if ( notxml ) {
-                       name = jQuery.attrFix[ name ] || name;
-
-                       hooks = jQuery.attrHooks[ name ];
-
-                       if ( !hooks ) {
-                               // Use boolHook for boolean attributes
-                               if ( rboolean.test( name ) ) {
-                                       hooks = boolHook;
-
-                               // Use nodeHook if available( IE6/7 )
-                               } else if ( nodeHook ) {
-                                       hooks = nodeHook;
-                               }
-                       }
-               }
-
-               if ( value !== undefined ) {
-
-                       if ( value === null ) {
-                               jQuery.removeAttr( elem, name );
-                               return undefined;
-
-                       } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
-                               return ret;
-
-                       } else {
-                               elem.setAttribute( name, "" + value );
-                               return value;
-                       }
-
-               } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
-                       return ret;
-
-               } else {
-
-                       ret = elem.getAttribute( name );
-
-                       // Non-existent attributes return null, we normalize to undefined
-                       return ret === null ?
-                               undefined :
-                               ret;
-               }
-       },
-
-       removeAttr: function( elem, name ) {
-               var propName;
-               if ( elem.nodeType === 1 ) {
-                       name = jQuery.attrFix[ name ] || name;
-
-                       jQuery.attr( elem, name, "" );
-                       elem.removeAttribute( name );
-
-                       // Set corresponding property to false for boolean attributes
-                       if ( rboolean.test( name ) && (propName = jQuery.propFix[ name ] || name) in elem ) {
-                               elem[ propName ] = false;
-                       }
-               }
-       },
-
-       attrHooks: {
-               type: {
-                       set: function( elem, value ) {
-                               // We can't allow the type property to be changed (since it causes problems in IE)
-                               if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
-                                       jQuery.error( "type property can't be changed" );
-                               } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
-                                       // Setting the type on a radio button after the value resets the value in IE6-9
-                                       // Reset value to it's default in case type is set after value
-                                       // This is for element creation
-                                       var val = elem.value;
-                                       elem.setAttribute( "type", value );
-                                       if ( val ) {
-                                               elem.value = val;
-                                       }
-                                       return value;
-                               }
-                       }
-               },
-               // Use the value property for back compat
-               // Use the nodeHook for button elements in IE6/7 (#1954)
-               value: {
-                       get: function( elem, name ) {
-                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
-                                       return nodeHook.get( elem, name );
-                               }
-                               return name in elem ?
-                                       elem.value :
-                                       null;
-                       },
-                       set: function( elem, value, name ) {
-                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
-                                       return nodeHook.set( elem, value, name );
-                               }
-                               // Does not return so that setAttribute is also used
-                               elem.value = value;
-                       }
-               }
-       },
-
-       propFix: {
-               tabindex: "tabIndex",
-               readonly: "readOnly",
-               "for": "htmlFor",
-               "class": "className",
-               maxlength: "maxLength",
-               cellspacing: "cellSpacing",
-               cellpadding: "cellPadding",
-               rowspan: "rowSpan",
-               colspan: "colSpan",
-               usemap: "useMap",
-               frameborder: "frameBorder",
-               contenteditable: "contentEditable"
-       },
-       
-       prop: function( elem, name, value ) {
-               var nType = elem.nodeType;
-
-               // don't get/set properties on text, comment and attribute nodes
-               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
-                       return undefined;
-               }
-
-               var ret, hooks,
-                       notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
-               if ( notxml ) {
-                       // Fix name and attach hooks
-                       name = jQuery.propFix[ name ] || name;
-                       hooks = jQuery.propHooks[ name ];
-               }
-
-               if ( value !== undefined ) {
-                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
-                               return ret;
-
-                       } else {
-                               return (elem[ name ] = value);
-                       }
-
-               } else {
-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
-                               return ret;
-
-                       } else {
-                               return elem[ name ];
-                       }
-               }
-       },
-       
-       propHooks: {
-               tabIndex: {
-                       get: function( elem ) {
-                               // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
-                               // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
-                               var attributeNode = elem.getAttributeNode("tabindex");
-
-                               return attributeNode && attributeNode.specified ?
-                                       parseInt( attributeNode.value, 10 ) :
-                                       rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
-                                               0 :
-                                               undefined;
-                       }
-               }
-       }
-});
-
-// Add the tabindex propHook to attrHooks for back-compat
-jQuery.attrHooks.tabIndex = jQuery.propHooks.tabIndex;
-
-// Hook for boolean attributes
-boolHook = {
-       get: function( elem, name ) {
-               // Align boolean attributes with corresponding properties
-               // Fall back to attribute presence where some booleans are not supported
-               var attrNode;
-               return jQuery.prop( elem, name ) === true || ( attrNode = elem.getAttributeNode( name ) ) && attrNode.nodeValue !== false ?
-                       name.toLowerCase() :
-                       undefined;
-       },
-       set: function( elem, value, name ) {
-               var propName;
-               if ( value === false ) {
-                       // Remove boolean attributes when set to false
-                       jQuery.removeAttr( elem, name );
-               } else {
-                       // value is true since we know at this point it's type boolean and not false
-                       // Set boolean attributes to the same name and set the DOM property
-                       propName = jQuery.propFix[ name ] || name;
-                       if ( propName in elem ) {
-                               // Only set the IDL specifically if it already exists on the element
-                               elem[ propName ] = true;
-                       }
-
-                       elem.setAttribute( name, name.toLowerCase() );
-               }
-               return name;
-       }
-};
-
-// IE6/7 do not support getting/setting some attributes with get/setAttribute
-if ( !jQuery.support.getSetAttribute ) {
-       
-       // Use this for any attribute in IE6/7
-       // This fixes almost every IE6/7 issue
-       nodeHook = jQuery.valHooks.button = {
-               get: function( elem, name ) {
-                       var ret;
-                       ret = elem.getAttributeNode( name );
-                       // Return undefined if nodeValue is empty string
-                       return ret && ret.nodeValue !== "" ?
-                               ret.nodeValue :
-                               undefined;
-               },
-               set: function( elem, value, name ) {
-                       // Set the existing or create a new attribute node
-                       var ret = elem.getAttributeNode( name );
-                       if ( !ret ) {
-                               ret = document.createAttribute( name );
-                               elem.setAttributeNode( ret );
-                       }
-                       return (ret.nodeValue = value + "");
-               }
-       };
-
-       // Set width and height to auto instead of 0 on empty string( Bug #8150 )
-       // This is for removals
-       jQuery.each([ "width", "height" ], function( i, name ) {
-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
-                       set: function( elem, value ) {
-                               if ( value === "" ) {
-                                       elem.setAttribute( name, "auto" );
-                                       return value;
-                               }
-                       }
-               });
-       });
-}
-
-
-// Some attributes require a special call on IE
-if ( !jQuery.support.hrefNormalized ) {
-       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
-                       get: function( elem ) {
-                               var ret = elem.getAttribute( name, 2 );
-                               return ret === null ? undefined : ret;
-                       }
-               });
-       });
-}
-
-if ( !jQuery.support.style ) {
-       jQuery.attrHooks.style = {
-               get: function( elem ) {
-                       // Return undefined in the case of empty string
-                       // Normalize to lowercase since IE uppercases css property names
-                       return elem.style.cssText.toLowerCase() || undefined;
-               },
-               set: function( elem, value ) {
-                       return (elem.style.cssText = "" + value);
-               }
-       };
-}
-
-// Safari mis-reports the default selected property of an option
-// Accessing the parent's selectedIndex property fixes it
-if ( !jQuery.support.optSelected ) {
-       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
-               get: function( elem ) {
-                       var parent = elem.parentNode;
-
-                       if ( parent ) {
-                               parent.selectedIndex;
-
-                               // Make sure that it also works with optgroups, see #5701
-                               if ( parent.parentNode ) {
-                                       parent.parentNode.selectedIndex;
-                               }
-                       }
-                       return null;
-               }
-       });
-}
-
-// Radios and checkboxes getter/setter
-if ( !jQuery.support.checkOn ) {
-       jQuery.each([ "radio", "checkbox" ], function() {
-               jQuery.valHooks[ this ] = {
-                       get: function( elem ) {
-                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
-                               return elem.getAttribute("value") === null ? "on" : elem.value;
-                       }
-               };
-       });
-}
-jQuery.each([ "radio", "checkbox" ], function() {
-       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
-               set: function( elem, value ) {
-                       if ( jQuery.isArray( value ) ) {
-                               return (elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0);
-                       }
-               }
-       });
-});
-
-
-
-
-var rnamespaces = /\.(.*)$/,
-       rformElems = /^(?:textarea|input|select)$/i,
-       rperiod = /\./g,
-       rspaces = / /g,
-       rescape = /[^\w\s.|`]/g,
-       fcleanup = function( nm ) {
-               return nm.replace(rescape, "\\$&");
-       };
-
-/*
- * A number of helper functions used for managing events.
- * Many of the ideas behind this code originated from
- * Dean Edwards' addEvent library.
- */
-jQuery.event = {
-
-       // Bind an event to an element
-       // Original by Dean Edwards
-       add: function( elem, types, handler, data ) {
-               if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
-                       return;
-               }
-
-               if ( handler === false ) {
-                       handler = returnFalse;
-               } else if ( !handler ) {
-                       // Fixes bug #7229. Fix recommended by jdalton
-                       return;
-               }
-
-               var handleObjIn, handleObj;
-
-               if ( handler.handler ) {
-                       handleObjIn = handler;
-                       handler = handleObjIn.handler;
-               }
-
-               // Make sure that the function being executed has a unique ID
-               if ( !handler.guid ) {
-                       handler.guid = jQuery.guid++;
-               }
-
-               // Init the element's event structure
-               var elemData = jQuery._data( elem );
-
-               // If no elemData is found then we must be trying to bind to one of the
-               // banned noData elements
-               if ( !elemData ) {
-                       return;
-               }
-
-               var events = elemData.events,
-                       eventHandle = elemData.handle;
-
-               if ( !events ) {
-                       elemData.events = events = {};
-               }
-
-               if ( !eventHandle ) {
-                       elemData.handle = eventHandle = function( e ) {
-                               // Discard the second event of a jQuery.event.trigger() and
-                               // when an event is called after a page has unloaded
-                               return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
-                                       jQuery.event.handle.apply( eventHandle.elem, arguments ) :
-                                       undefined;
-                       };
-               }
-
-               // Add elem as a property of the handle function
-               // This is to prevent a memory leak with non-native events in IE.
-               eventHandle.elem = elem;
-
-               // Handle multiple events separated by a space
-               // jQuery(...).bind("mouseover mouseout", fn);
-               types = types.split(" ");
-
-               var type, i = 0, namespaces;
-
-               while ( (type = types[ i++ ]) ) {
-                       handleObj = handleObjIn ?
-                               jQuery.extend({}, handleObjIn) :
-                               { handler: handler, data: data };
-
-                       // Namespaced event handlers
-                       if ( type.indexOf(".") > -1 ) {
-                               namespaces = type.split(".");
-                               type = namespaces.shift();
-                               handleObj.namespace = namespaces.slice(0).sort().join(".");
-
-                       } else {
-                               namespaces = [];
-                               handleObj.namespace = "";
-                       }
-
-                       handleObj.type = type;
-                       if ( !handleObj.guid ) {
-                               handleObj.guid = handler.guid;
-                       }
-
-                       // Get the current list of functions bound to this event
-                       var handlers = events[ type ],
-                               special = jQuery.event.special[ type ] || {};
-
-                       // Init the event handler queue
-                       if ( !handlers ) {
-                               handlers = events[ type ] = [];
-
-                               // Check for a special event handler
-                               // Only use addEventListener/attachEvent if the special
-                               // events handler returns false
-                               if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
-                                       // Bind the global event handler to the element
-                                       if ( elem.addEventListener ) {
-                                               elem.addEventListener( type, eventHandle, false );
-
-                                       } else if ( elem.attachEvent ) {
-                                               elem.attachEvent( "on" + type, eventHandle );
-                                       }
-                               }
-                       }
-
-                       if ( special.add ) {
-                               special.add.call( elem, handleObj );
-
-                               if ( !handleObj.handler.guid ) {
-                                       handleObj.handler.guid = handler.guid;
-                               }
-                       }
-
-                       // Add the function to the element's handler list
-                       handlers.push( handleObj );
-
-                       // Keep track of which events have been used, for event optimization
-                       jQuery.event.global[ type ] = true;
-               }
-
-               // Nullify elem to prevent memory leaks in IE
-               elem = null;
-       },
-
-       global: {},
-
-       // Detach an event or set of events from an element
-       remove: function( elem, types, handler, pos ) {
-               // don't do events on text and comment nodes
-               if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
-                       return;
-               }
-
-               if ( handler === false ) {
-                       handler = returnFalse;
-               }
-
-               var ret, type, fn, j, i = 0, all, namespaces, namespace, special, eventType, handleObj, origType,
-                       elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
-                       events = elemData && elemData.events;
-
-               if ( !elemData || !events ) {
-                       return;
-               }
-
-               // types is actually an event object here
-               if ( types && types.type ) {
-                       handler = types.handler;
-                       types = types.type;
-               }
-
-               // Unbind all events for the element
-               if ( !types || typeof types === "string" && types.charAt(0) === "." ) {
-                       types = types || "";
-
-                       for ( type in events ) {
-                               jQuery.event.remove( elem, type + types );
-                       }
-
-                       return;
-               }
-
-               // Handle multiple events separated by a space
-               // jQuery(...).unbind("mouseover mouseout", fn);
-               types = types.split(" ");
-
-               while ( (type = types[ i++ ]) ) {
-                       origType = type;
-                       handleObj = null;
-                       all = type.indexOf(".") < 0;
-                       namespaces = [];
-
-                       if ( !all ) {
-                               // Namespaced event handlers
-                               namespaces = type.split(".");
-                               type = namespaces.shift();
-
-                               namespace = new RegExp("(^|\\.)" +
-                                       jQuery.map( namespaces.slice(0).sort(), fcleanup ).join("\\.(?:.*\\.)?") + "(\\.|$)");
-                       }
-
-                       eventType = events[ type ];
-
-                       if ( !eventType ) {
-                               continue;
-                       }
-
-                       if ( !handler ) {
-                               for ( j = 0; j < eventType.length; j++ ) {
-                                       handleObj = eventType[ j ];
-
-                                       if ( all || namespace.test( handleObj.namespace ) ) {
-                                               jQuery.event.remove( elem, origType, handleObj.handler, j );
-                                               eventType.splice( j--, 1 );
-                                       }
-                               }
-
-                               continue;
-                       }
-
-                       special = jQuery.event.special[ type ] || {};
-
-                       for ( j = pos || 0; j < eventType.length; j++ ) {
-                               handleObj = eventType[ j ];
-
-                               if ( handler.guid === handleObj.guid ) {
-                                       // remove the given handler for the given type
-                                       if ( all || namespace.test( handleObj.namespace ) ) {
-                                               if ( pos == null ) {
-                                                       eventType.splice( j--, 1 );
-                                               }
-
-                                               if ( special.remove ) {
-                                                       special.remove.call( elem, handleObj );
-                                               }
-                                       }
-
-                                       if ( pos != null ) {
-                                               break;
-                                       }
-                               }
-                       }
-
-                       // remove generic event handler if no more handlers exist
-                       if ( eventType.length === 0 || pos != null && eventType.length === 1 ) {
-                               if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
-                                       jQuery.removeEvent( elem, type, elemData.handle );
-                               }
-
-                               ret = null;
-                               delete events[ type ];
-                       }
-               }
-
-               // Remove the expando if it's no longer used
-               if ( jQuery.isEmptyObject( events ) ) {
-                       var handle = elemData.handle;
-                       if ( handle ) {
-                               handle.elem = null;
-                       }
-
-                       delete elemData.events;
-                       delete elemData.handle;
-
-                       if ( jQuery.isEmptyObject( elemData ) ) {
-                               jQuery.removeData( elem, undefined, true );
-                       }
-               }
-       },
-       
-       // Events that are safe to short-circuit if no handlers are attached.
-       // Native DOM events should not be added, they may have inline handlers.
-       customEvent: {
-               "getData": true,
-               "setData": true,
-               "changeData": true
-       },
-
-       trigger: function( event, data, elem, onlyHandlers ) {
-               // Event object or event type
-               var type = event.type || event,
-                       namespaces = [],
-                       exclusive;
-
-               if ( type.indexOf("!") >= 0 ) {
-                       // Exclusive events trigger only for the exact event (no namespaces)
-                       type = type.slice(0, -1);
-                       exclusive = true;
-               }
-
-               if ( type.indexOf(".") >= 0 ) {
-                       // Namespaced trigger; create a regexp to match event type in handle()
-                       namespaces = type.split(".");
-                       type = namespaces.shift();
-                       namespaces.sort();
-               }
-
-               if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
-                       // No jQuery handlers for this event type, and it can't have inline handlers
-                       return;
-               }
-
-               // Caller can pass in an Event, Object, or just an event type string
-               event = typeof event === "object" ?
-                       // jQuery.Event object
-                       event[ jQuery.expando ] ? event :
-                       // Object literal
-                       new jQuery.Event( type, event ) :
-                       // Just the event type (string)
-                       new jQuery.Event( type );
-
-               event.type = type;
-               event.exclusive = exclusive;
-               event.namespace = namespaces.join(".");
-               event.namespace_re = new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)");
-               
-               // triggerHandler() and global events don't bubble or run the default action
-               if ( onlyHandlers || !elem ) {
-                       event.preventDefault();
-                       event.stopPropagation();
-               }
-
-               // Handle a global trigger
-               if ( !elem ) {
-                       // TODO: Stop taunting the data cache; remove global events and always attach to document
-                       jQuery.each( jQuery.cache, function() {
-                               // internalKey variable is just used to make it easier to find
-                               // and potentially change this stuff later; currently it just
-                               // points to jQuery.expando
-                               var internalKey = jQuery.expando,
-                                       internalCache = this[ internalKey ];
-                               if ( internalCache && internalCache.events && internalCache.events[ type ] ) {
-                                       jQuery.event.trigger( event, data, internalCache.handle.elem );
-                               }
-                       });
-                       return;
-               }
-
-               // Don't do events on text and comment nodes
-               if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
-                       return;
-               }
-
-               // Clean up the event in case it is being reused
-               event.result = undefined;
-               event.target = elem;
-
-               // Clone any incoming data and prepend the event, creating the handler arg list
-               data = data != null ? jQuery.makeArray( data ) : [];
-               data.unshift( event );
-
-               var cur = elem,
-                       // IE doesn't like method names with a colon (#3533, #8272)
-                       ontype = type.indexOf(":") < 0 ? "on" + type : "";
-
-               // Fire event on the current element, then bubble up the DOM tree
-               do {
-                       var handle = jQuery._data( cur, "handle" );
-
-                       event.currentTarget = cur;
-                       if ( handle ) {
-                               handle.apply( cur, data );
-                       }
-
-                       // Trigger an inline bound script
-                       if ( ontype && jQuery.acceptData( cur ) && cur[ ontype ] && cur[ ontype ].apply( cur, data ) === false ) {
-                               event.result = false;
-                               event.preventDefault();
-                       }
-
-                       // Bubble up to document, then to window
-                       cur = cur.parentNode || cur.ownerDocument || cur === event.target.ownerDocument && window;
-               } while ( cur && !event.isPropagationStopped() );
-
-               // If nobody prevented the default action, do it now
-               if ( !event.isDefaultPrevented() ) {
-                       var old,
-                               special = jQuery.event.special[ type ] || {};
-
-                       if ( (!special._default || special._default.call( elem.ownerDocument, event ) === false) &&
-                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
-
-                               // Call a native DOM method on the target with the same name name as the event.
-                               // Can't use an .isFunction)() check here because IE6/7 fails that test.
-                               // IE<9 dies on focus to hidden element (#1486), may want to revisit a try/catch.
-                               try {
-                                       if ( ontype && elem[ type ] ) {
-                                               // Don't re-trigger an onFOO event when we call its FOO() method
-                                               old = elem[ ontype ];
-
-                                               if ( old ) {
-                                                       elem[ ontype ] = null;
-                                               }
-
-                                               jQuery.event.triggered = type;
-                                               elem[ type ]();
-                                       }
-                               } catch ( ieError ) {}
-
-                               if ( old ) {
-                                       elem[ ontype ] = old;
-                               }
-
-                               jQuery.event.triggered = undefined;
-                       }
-               }
-               
-               return event.result;
-       },
-
-       handle: function( event ) {
-               event = jQuery.event.fix( event || window.event );
-               // Snapshot the handlers list since a called handler may add/remove events.
-               var handlers = ((jQuery._data( this, "events" ) || {})[ event.type ] || []).slice(0),
-                       run_all = !event.exclusive && !event.namespace,
-                       args = Array.prototype.slice.call( arguments, 0 );
-
-               // Use the fix-ed Event rather than the (read-only) native event
-               args[0] = event;
-               event.currentTarget = this;
-
-               for ( var j = 0, l = handlers.length; j < l; j++ ) {
-                       var handleObj = handlers[ j ];
-
-                       // Triggered event must 1) be non-exclusive and have no namespace, or
-                       // 2) have namespace(s) a subset or equal to those in the bound event.
-                       if ( run_all || event.namespace_re.test( handleObj.namespace ) ) {
-                               // Pass in a reference to the handler function itself
-                               // So that we can later remove it
-                               event.handler = handleObj.handler;
-                               event.data = handleObj.data;
-                               event.handleObj = handleObj;
-
-                               var ret = handleObj.handler.apply( this, args );
-
-                               if ( ret !== undefined ) {
-                                       event.result = ret;
-                                       if ( ret === false ) {
-                                               event.preventDefault();
-                                               event.stopPropagation();
-                                       }
-                               }
-
-                               if ( event.isImmediatePropagationStopped() ) {
-                                       break;
-                               }
-                       }
-               }
-               return event.result;
-       },
-
-       props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
-
-       fix: function( event ) {
-               if ( event[ jQuery.expando ] ) {
-                       return event;
-               }
-
-               // store a copy of the original event object
-               // and "clone" to set read-only properties
-               var originalEvent = event;
-               event = jQuery.Event( originalEvent );
-
-               for ( var i = this.props.length, prop; i; ) {
-                       prop = this.props[ --i ];
-                       event[ prop ] = originalEvent[ prop ];
-               }
-
-               // Fix target property, if necessary
-               if ( !event.target ) {
-                       // Fixes #1925 where srcElement might not be defined either
-                       event.target = event.srcElement || document;
-               }
-
-               // check if target is a textnode (safari)
-               if ( event.target.nodeType === 3 ) {
-                       event.target = event.target.parentNode;
-               }
-
-               // Add relatedTarget, if necessary
-               if ( !event.relatedTarget && event.fromElement ) {
-                       event.relatedTarget = event.fromElement === event.target ? event.toElement : event.fromElement;
-               }
-
-               // Calculate pageX/Y if missing and clientX/Y available
-               if ( event.pageX == null && event.clientX != null ) {
-                       var eventDocument = event.target.ownerDocument || document,
-                               doc = eventDocument.documentElement,
-                               body = eventDocument.body;
-
-                       event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc && doc.clientLeft || body && body.clientLeft || 0);
-                       event.pageY = event.clientY + (doc && doc.scrollTop  || body && body.scrollTop  || 0) - (doc && doc.clientTop  || body && body.clientTop  || 0);
-               }
-
-               // Add which for key events
-               if ( event.which == null && (event.charCode != null || event.keyCode != null) ) {
-                       event.which = event.charCode != null ? event.charCode : event.keyCode;
-               }
-
-               // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
-               if ( !event.metaKey && event.ctrlKey ) {
-                       event.metaKey = event.ctrlKey;
-               }
-
-               // Add which for click: 1 === left; 2 === middle; 3 === right
-               // Note: button is not normalized, so don't use it
-               if ( !event.which && event.button !== undefined ) {
-                       event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
-               }
-
-               return event;
-       },
-
-       // Deprecated, use jQuery.guid instead
-       guid: 1E8,
-
-       // Deprecated, use jQuery.proxy instead
-       proxy: jQuery.proxy,
-
-       special: {
-               ready: {
-                       // Make sure the ready event is setup
-                       setup: jQuery.bindReady,
-                       teardown: jQuery.noop
-               },
-
-               live: {
-                       add: function( handleObj ) {
-                               jQuery.event.add( this,
-                                       liveConvert( handleObj.origType, handleObj.selector ),
-                                       jQuery.extend({}, handleObj, {handler: liveHandler, guid: handleObj.handler.guid}) );
-                       },
-
-                       remove: function( handleObj ) {
-                               jQuery.event.remove( this, liveConvert( handleObj.origType, handleObj.selector ), handleObj );
-                       }
-               },
-
-               beforeunload: {
-                       setup: function( data, namespaces, eventHandle ) {
-                               // We only want to do this special case on windows
-                               if ( jQuery.isWindow( this ) ) {
-                                       this.onbeforeunload = eventHandle;
-                               }
-                       },
-
-                       teardown: function( namespaces, eventHandle ) {
-                               if ( this.onbeforeunload === eventHandle ) {
-                                       this.onbeforeunload = null;
-                               }
-                       }
-               }
-       }
-};
-
-jQuery.removeEvent = document.removeEventListener ?
-       function( elem, type, handle ) {
-               if ( elem.removeEventListener ) {
-                       elem.removeEventListener( type, handle, false );
-               }
-       } :
-       function( elem, type, handle ) {
-               if ( elem.detachEvent ) {
-                       elem.detachEvent( "on" + type, handle );
-               }
-       };
-
-jQuery.Event = function( src, props ) {
-       // Allow instantiation without the 'new' keyword
-       if ( !this.preventDefault ) {
-               return new jQuery.Event( src, props );
-       }
-
-       // Event object
-       if ( src && src.type ) {
-               this.originalEvent = src;
-               this.type = src.type;
-
-               // Events bubbling up the document may have been marked as prevented
-               // by a handler lower down the tree; reflect the correct value.
-               this.isDefaultPrevented = (src.defaultPrevented || src.returnValue === false ||
-                       src.getPreventDefault && src.getPreventDefault()) ? returnTrue : returnFalse;
-
-       // Event type
-       } else {
-               this.type = src;
-       }
-
-       // Put explicitly provided properties onto the event object
-       if ( props ) {
-               jQuery.extend( this, props );
-       }
-
-       // timeStamp is buggy for some events on Firefox(#3843)
-       // So we won't rely on the native value
-       this.timeStamp = jQuery.now();
-
-       // Mark it as fixed
-       this[ jQuery.expando ] = true;
-};
-
-function returnFalse() {
-       return false;
-}
-function returnTrue() {
-       return true;
-}
-
-// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
-// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
-jQuery.Event.prototype = {
-       preventDefault: function() {
-               this.isDefaultPrevented = returnTrue;
-
-               var e = this.originalEvent;
-               if ( !e ) {
-                       return;
-               }
-
-               // if preventDefault exists run it on the original event
-               if ( e.preventDefault ) {
-                       e.preventDefault();
-
-               // otherwise set the returnValue property of the original event to false (IE)
-               } else {
-                       e.returnValue = false;
-               }
-       },
-       stopPropagation: function() {
-               this.isPropagationStopped = returnTrue;
-
-               var e = this.originalEvent;
-               if ( !e ) {
-                       return;
-               }
-               // if stopPropagation exists run it on the original event
-               if ( e.stopPropagation ) {
-                       e.stopPropagation();
-               }
-               // otherwise set the cancelBubble property of the original event to true (IE)
-               e.cancelBubble = true;
-       },
-       stopImmediatePropagation: function() {
-               this.isImmediatePropagationStopped = returnTrue;
-               this.stopPropagation();
-       },
-       isDefaultPrevented: returnFalse,
-       isPropagationStopped: returnFalse,
-       isImmediatePropagationStopped: returnFalse
-};
-
-// Checks if an event happened on an element within another element
-// Used in jQuery.event.special.mouseenter and mouseleave handlers
-var withinElement = function( event ) {
-
-       // Check if mouse(over|out) are still within the same parent element
-       var related = event.relatedTarget,
-               inside = false,
-               eventType = event.type;
-
-       event.type = event.data;
-
-       if ( related !== this ) {
-
-               if ( related ) {
-                       inside = jQuery.contains( this, related );
-               }
-
-               if ( !inside ) {
-
-                       jQuery.event.handle.apply( this, arguments );
-
-                       event.type = eventType;
-               }
-       }
-},
-
-// In case of event delegation, we only need to rename the event.type,
-// liveHandler will take care of the rest.
-delegate = function( event ) {
-       event.type = event.data;
-       jQuery.event.handle.apply( this, arguments );
-};
-
-// Create mouseenter and mouseleave events
-jQuery.each({
-       mouseenter: "mouseover",
-       mouseleave: "mouseout"
-}, function( orig, fix ) {
-       jQuery.event.special[ orig ] = {
-               setup: function( data ) {
-                       jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );
-               },
-               teardown: function( data ) {
-                       jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );
-               }
-       };
-});
-
-// submit delegation
-if ( !jQuery.support.submitBubbles ) {
-
-       jQuery.event.special.submit = {
-               setup: function( data, namespaces ) {
-                       if ( !jQuery.nodeName( this, "form" ) ) {
-                               jQuery.event.add(this, "click.specialSubmit", function( e ) {
-                                       // Avoid triggering error on non-existent type attribute in IE VML (#7071)
-                                       var elem = e.target,
-                                               type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
-
-                                       if ( (type === "submit" || type === "image") && jQuery( elem ).closest("form").length ) {
-                                               trigger( "submit", this, arguments );
-                                       }
-                               });
-
-                               jQuery.event.add(this, "keypress.specialSubmit", function( e ) {
-                                       var elem = e.target,
-                                               type = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.type : "";
-
-                                       if ( (type === "text" || type === "password") && jQuery( elem ).closest("form").length && e.keyCode === 13 ) {
-                                               trigger( "submit", this, arguments );
-                                       }
-                               });
-
-                       } else {
-                               return false;
-                       }
-               },
-
-               teardown: function( namespaces ) {
-                       jQuery.event.remove( this, ".specialSubmit" );
-               }
-       };
-
-}
-
-// change delegation, happens here so we have bind.
-if ( !jQuery.support.changeBubbles ) {
-
-       var changeFilters,
-
-       getVal = function( elem ) {
-               var type = jQuery.nodeName( elem, "input" ) ? elem.type : "",
-                       val = elem.value;
-
-               if ( type === "radio" || type === "checkbox" ) {
-                       val = elem.checked;
-
-               } else if ( type === "select-multiple" ) {
-                       val = elem.selectedIndex > -1 ?
-                               jQuery.map( elem.options, function( elem ) {
-                                       return elem.selected;
-                               }).join("-") :
-                               "";
-
-               } else if ( jQuery.nodeName( elem, "select" ) ) {
-                       val = elem.selectedIndex;
-               }
-
-               return val;
-       },
-
-       testChange = function testChange( e ) {
-               var elem = e.target, data, val;
-
-               if ( !rformElems.test( elem.nodeName ) || elem.readOnly ) {
-                       return;
-               }
-
-               data = jQuery._data( elem, "_change_data" );
-               val = getVal(elem);
-
-               // the current data will be also retrieved by beforeactivate
-               if ( e.type !== "focusout" || elem.type !== "radio" ) {
-                       jQuery._data( elem, "_change_data", val );
-               }
-
-               if ( data === undefined || val === data ) {
-                       return;
-               }
-
-               if ( data != null || val ) {
-                       e.type = "change";
-                       e.liveFired = undefined;
-                       jQuery.event.trigger( e, arguments[1], elem );
-               }
-       };
-
-       jQuery.event.special.change = {
-               filters: {
-                       focusout: testChange,
-
-                       beforedeactivate: testChange,
-
-                       click: function( e ) {
-                               var elem = e.target, type = jQuery.nodeName( elem, "input" ) ? elem.type : "";
-
-                               if ( type === "radio" || type === "checkbox" || jQuery.nodeName( elem, "select" ) ) {
-                                       testChange.call( this, e );
-                               }
-                       },
-
-                       // Change has to be called before submit
-                       // Keydown will be called before keypress, which is used in submit-event delegation
-                       keydown: function( e ) {
-                               var elem = e.target, type = jQuery.nodeName( elem, "input" ) ? elem.type : "";
-
-                               if ( (e.keyCode === 13 && !jQuery.nodeName( elem, "textarea" ) ) ||
-                                       (e.keyCode === 32 && (type === "checkbox" || type === "radio")) ||
-                                       type === "select-multiple" ) {
-                                       testChange.call( this, e );
-                               }
-                       },
-
-                       // Beforeactivate happens also before the previous element is blurred
-                       // with this event you can't trigger a change event, but you can store
-                       // information
-                       beforeactivate: function( e ) {
-                               var elem = e.target;
-                               jQuery._data( elem, "_change_data", getVal(elem) );
-                       }
-               },
-
-               setup: function( data, namespaces ) {
-                       if ( this.type === "file" ) {
-                               return false;
-                       }
-
-                       for ( var type in changeFilters ) {
-                               jQuery.event.add( this, type + ".specialChange", changeFilters[type] );
-                       }
-
-                       return rformElems.test( this.nodeName );
-               },
-
-               teardown: function( namespaces ) {
-                       jQuery.event.remove( this, ".specialChange" );
-
-                       return rformElems.test( this.nodeName );
-               }
-       };
-
-       changeFilters = jQuery.event.special.change.filters;
-
-       // Handle when the input is .focus()'d
-       changeFilters.focus = changeFilters.beforeactivate;
-}
-
-function trigger( type, elem, args ) {
-       // Piggyback on a donor event to simulate a different one.
-       // Fake originalEvent to avoid donor's stopPropagation, but if the
-       // simulated event prevents default then we do the same on the donor.
-       // Don't pass args or remember liveFired; they apply to the donor event.
-       var event = jQuery.extend( {}, args[ 0 ] );
-       event.type = type;
-       event.originalEvent = {};
-       event.liveFired = undefined;
-       jQuery.event.handle.call( elem, event );
-       if ( event.isDefaultPrevented() ) {
-               args[ 0 ].preventDefault();
-       }
-}
-
-// Create "bubbling" focus and blur events
-if ( !jQuery.support.focusinBubbles ) {
-       jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
-
-               // Attach a single capturing handler while someone wants focusin/focusout
-               var attaches = 0;
-
-               jQuery.event.special[ fix ] = {
-                       setup: function() {
-                               if ( attaches++ === 0 ) {
-                                       document.addEventListener( orig, handler, true );
-                               }
-                       },
-                       teardown: function() {
-                               if ( --attaches === 0 ) {
-                                       document.removeEventListener( orig, handler, true );
-                               }
-                       }
-               };
-
-               function handler( donor ) {
-                       // Donor event is always a native one; fix it and switch its type.
-                       // Let focusin/out handler cancel the donor focus/blur event.
-                       var e = jQuery.event.fix( donor );
-                       e.type = fix;
-                       e.originalEvent = {};
-                       jQuery.event.trigger( e, null, e.target );
-                       if ( e.isDefaultPrevented() ) {
-                               donor.preventDefault();
-                       }
-               }
-       });
-}
-
-jQuery.each(["bind", "one"], function( i, name ) {
-       jQuery.fn[ name ] = function( type, data, fn ) {
-               var handler;
-
-               // Handle object literals
-               if ( typeof type === "object" ) {
-                       for ( var key in type ) {
-                               this[ name ](key, data, type[key], fn);
-                       }
-                       return this;
-               }
-
-               if ( arguments.length === 2 || data === false ) {
-                       fn = data;
-                       data = undefined;
-               }
-
-               if ( name === "one" ) {
-                       handler = function( event ) {
-                               jQuery( this ).unbind( event, handler );
-                               return fn.apply( this, arguments );
-                       };
-                       handler.guid = fn.guid || jQuery.guid++;
-               } else {
-                       handler = fn;
-               }
-
-               if ( type === "unload" && name !== "one" ) {
-                       this.one( type, data, fn );
-
-               } else {
-                       for ( var i = 0, l = this.length; i < l; i++ ) {
-                               jQuery.event.add( this[i], type, handler, data );
-                       }
-               }
-
-               return this;
-       };
-});
-
-jQuery.fn.extend({
-       unbind: function( type, fn ) {
-               // Handle object literals
-               if ( typeof type === "object" && !type.preventDefault ) {
-                       for ( var key in type ) {
-                               this.unbind(key, type[key]);
-                       }
-
-               } else {
-                       for ( var i = 0, l = this.length; i < l; i++ ) {
-                               jQuery.event.remove( this[i], type, fn );
-                       }
-               }
-
-               return this;
-       },
-
-       delegate: function( selector, types, data, fn ) {
-               return this.live( types, data, fn, selector );
-       },
-
-       undelegate: function( selector, types, fn ) {
-               if ( arguments.length === 0 ) {
-                       return this.unbind( "live" );
-
-               } else {
-                       return this.die( types, null, fn, selector );
-               }
-       },
-
-       trigger: function( type, data ) {
-               return this.each(function() {
-                       jQuery.event.trigger( type, data, this );
-               });
-       },
-
-       triggerHandler: function( type, data ) {
-               if ( this[0] ) {
-                       return jQuery.event.trigger( type, data, this[0], true );
-               }
-       },
-
-       toggle: function( fn ) {
-               // Save reference to arguments for access in closure
-               var args = arguments,
-                       guid = fn.guid || jQuery.guid++,
-                       i = 0,
-                       toggler = function( event ) {
-                               // Figure out which function to execute
-                               var lastToggle = ( jQuery.data( this, "lastToggle" + fn.guid ) || 0 ) % i;
-                               jQuery.data( this, "lastToggle" + fn.guid, lastToggle + 1 );
-
-                               // Make sure that clicks stop
-                               event.preventDefault();
-
-                               // and execute the function
-                               return args[ lastToggle ].apply( this, arguments ) || false;
-                       };
-
-               // link all the functions, so any of them can unbind this click handler
-               toggler.guid = guid;
-               while ( i < args.length ) {
-                       args[ i++ ].guid = guid;
-               }
-
-               return this.click( toggler );
-       },
-
-       hover: function( fnOver, fnOut ) {
-               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
-       }
-});
-
-var liveMap = {
-       focus: "focusin",
-       blur: "focusout",
-       mouseenter: "mouseover",
-       mouseleave: "mouseout"
-};
-
-jQuery.each(["live", "die"], function( i, name ) {
-       jQuery.fn[ name ] = function( types, data, fn, origSelector /* Internal Use Only */ ) {
-               var type, i = 0, match, namespaces, preType,
-                       selector = origSelector || this.selector,
-                       context = origSelector ? this : jQuery( this.context );
-
-               if ( typeof types === "object" && !types.preventDefault ) {
-                       for ( var key in types ) {
-                               context[ name ]( key, data, types[key], selector );
-                       }
-
-                       return this;
-               }
-
-               if ( name === "die" && !types &&
-                                       origSelector && origSelector.charAt(0) === "." ) {
-
-                       context.unbind( origSelector );
-
-                       return this;
-               }
-
-               if ( data === false || jQuery.isFunction( data ) ) {
-                       fn = data || returnFalse;
-                       data = undefined;
-               }
-
-               types = (types || "").split(" ");
-
-               while ( (type = types[ i++ ]) != null ) {
-                       match = rnamespaces.exec( type );
-                       namespaces = "";
-
-                       if ( match )  {
-                               namespaces = match[0];
-                               type = type.replace( rnamespaces, "" );
-                       }
-
-                       if ( type === "hover" ) {
-                               types.push( "mouseenter" + namespaces, "mouseleave" + namespaces );
-                               continue;
-                       }
-
-                       preType = type;
-
-                       if ( liveMap[ type ] ) {
-                               types.push( liveMap[ type ] + namespaces );
-                               type = type + namespaces;
-
-                       } else {
-                               type = (liveMap[ type ] || type) + namespaces;
-                       }
-
-                       if ( name === "live" ) {
-                               // bind live handler
-                               for ( var j = 0, l = context.length; j < l; j++ ) {
-                                       jQuery.event.add( context[j], "live." + liveConvert( type, selector ),
-                                               { data: data, selector: selector, handler: fn, origType: type, origHandler: fn, preType: preType } );
-                               }
-
-                       } else {
-                               // unbind live handler
-                               context.unbind( "live." + liveConvert( type, selector ), fn );
-                       }
-               }
-
-               return this;
-       };
-});
-
-function liveHandler( event ) {
-       var stop, maxLevel, related, match, handleObj, elem, j, i, l, data, close, namespace, ret,
-               elems = [],
-               selectors = [],
-               events = jQuery._data( this, "events" );
-
-       // Make sure we avoid non-left-click bubbling in Firefox (#3861) and disabled elements in IE (#6911)
-       if ( event.liveFired === this || !events || !events.live || event.target.disabled || event.button && event.type === "click" ) {
-               return;
-       }
-
-       if ( event.namespace ) {
-               namespace = new RegExp("(^|\\.)" + event.namespace.split(".").join("\\.(?:.*\\.)?") + "(\\.|$)");
-       }
-
-       event.liveFired = this;
-
-       var live = events.live.slice(0);
-
-       for ( j = 0; j < live.length; j++ ) {
-               handleObj = live[j];
-
-               if ( handleObj.origType.replace( rnamespaces, "" ) === event.type ) {
-                       selectors.push( handleObj.selector );
-
-               } else {
-                       live.splice( j--, 1 );
-               }
-       }
-
-       match = jQuery( event.target ).closest( selectors, event.currentTarget );
-
-       for ( i = 0, l = match.length; i < l; i++ ) {
-               close = match[i];
-
-               for ( j = 0; j < live.length; j++ ) {
-                       handleObj = live[j];
-
-                       if ( close.selector === handleObj.selector && (!namespace || namespace.test( handleObj.namespace )) && !close.elem.disabled ) {
-                               elem = close.elem;
-                               related = null;
-
-                               // Those two events require additional checking
-                               if ( handleObj.preType === "mouseenter" || handleObj.preType === "mouseleave" ) {
-                                       event.type = handleObj.preType;
-                                       related = jQuery( event.relatedTarget ).closest( handleObj.selector )[0];
-
-                                       // Make sure not to accidentally match a child element with the same selector
-                                       if ( related && jQuery.contains( elem, related ) ) {
-                                               related = elem;
-                                       }
-                               }
-
-                               if ( !related || related !== elem ) {
-                                       elems.push({ elem: elem, handleObj: handleObj, level: close.level });
-                               }
-                       }
-               }
-       }
-
-       for ( i = 0, l = elems.length; i < l; i++ ) {
-               match = elems[i];
-
-               if ( maxLevel && match.level > maxLevel ) {
-                       break;
-               }
-
-               event.currentTarget = match.elem;
-               event.data = match.handleObj.data;
-               event.handleObj = match.handleObj;
-
-               ret = match.handleObj.origHandler.apply( match.elem, arguments );
-
-               if ( ret === false || event.isPropagationStopped() ) {
-                       maxLevel = match.level;
-
-                       if ( ret === false ) {
-                               stop = false;
-                       }
-                       if ( event.isImmediatePropagationStopped() ) {
-                               break;
-                       }
-               }
-       }
-
-       return stop;
-}
-
-function liveConvert( type, selector ) {
-       return (type && type !== "*" ? type + "." : "") + selector.replace(rperiod, "`").replace(rspaces, "&");
-}
-
-jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
-       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
-       "change select submit keydown keypress keyup error").split(" "), function( i, name ) {
-
-       // Handle event binding
-       jQuery.fn[ name ] = function( data, fn ) {
-               if ( fn == null ) {
-                       fn = data;
-                       data = null;
-               }
-
-               return arguments.length > 0 ?
-                       this.bind( name, data, fn ) :
-                       this.trigger( name );
-       };
-
-       if ( jQuery.attrFn ) {
-               jQuery.attrFn[ name ] = true;
-       }
-});
-
-
-
-/*!
- * Sizzle CSS Selector Engine
- *  Copyright 2011, The Dojo Foundation
- *  Released under the MIT, BSD, and GPL Licenses.
- *  More information: http://sizzlejs.com/
- */
-(function(){
-
-var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
-       done = 0,
-       toString = Object.prototype.toString,
-       hasDuplicate = false,
-       baseHasDuplicate = true,
-       rBackslash = /\\/g,
-       rNonWord = /\W/;
-
-// Here we check if the JavaScript engine is using some sort of
-// optimization where it does not always call our comparision
-// function. If that is the case, discard the hasDuplicate value.
-//   Thus far that includes Google Chrome.
-[0, 0].sort(function() {
-       baseHasDuplicate = false;
-       return 0;
-});
-
-var Sizzle = function( selector, context, results, seed ) {
-       results = results || [];
-       context = context || document;
-
-       var origContext = context;
-
-       if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
-               return [];
-       }
-       
-       if ( !selector || typeof selector !== "string" ) {
-               return results;
-       }
-
-       var m, set, checkSet, extra, ret, cur, pop, i,
-               prune = true,
-               contextXML = Sizzle.isXML( context ),
-               parts = [],
-               soFar = selector;
-       
-       // Reset the position of the chunker regexp (start from head)
-       do {
-               chunker.exec( "" );
-               m = chunker.exec( soFar );
-
-               if ( m ) {
-                       soFar = m[3];
-               
-                       parts.push( m[1] );
-               
-                       if ( m[2] ) {
-                               extra = m[3];
-                               break;
-                       }
-               }
-       } while ( m );
-
-       if ( parts.length > 1 && origPOS.exec( selector ) ) {
-
-               if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
-                       set = posProcess( parts[0] + parts[1], context );
-
-               } else {
-                       set = Expr.relative[ parts[0] ] ?
-                               [ context ] :
-                               Sizzle( parts.shift(), context );
-
-                       while ( parts.length ) {
-                               selector = parts.shift();
-
-                               if ( Expr.relative[ selector ] ) {
-                                       selector += parts.shift();
-                               }
-                               
-                               set = posProcess( selector, set );
-                       }
-               }
-
-       } else {
-               // Take a shortcut and set the context if the root selector is an ID
-               // (but not if it'll be faster if the inner selector is an ID)
-               if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
-                               Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
-
-                       ret = Sizzle.find( parts.shift(), context, contextXML );
-                       context = ret.expr ?
-                               Sizzle.filter( ret.expr, ret.set )[0] :
-                               ret.set[0];
-               }
-
-               if ( context ) {
-                       ret = seed ?
-                               { expr: parts.pop(), set: makeArray(seed) } :
-                               Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
-
-                       set = ret.expr ?
-                               Sizzle.filter( ret.expr, ret.set ) :
-                               ret.set;
-
-                       if ( parts.length > 0 ) {
-                               checkSet = makeArray( set );
-
-                       } else {
-                               prune = false;
-                       }
-
-                       while ( parts.length ) {
-                               cur = parts.pop();
-                               pop = cur;
-
-                               if ( !Expr.relative[ cur ] ) {
-                                       cur = "";
-                               } else {
-                                       pop = parts.pop();
-                               }
-
-                               if ( pop == null ) {
-                                       pop = context;
-                               }
-
-                               Expr.relative[ cur ]( checkSet, pop, contextXML );
-                       }
-
-               } else {
-                       checkSet = parts = [];
-               }
-       }
-
-       if ( !checkSet ) {
-               checkSet = set;
-       }
-
-       if ( !checkSet ) {
-               Sizzle.error( cur || selector );
-       }
-
-       if ( toString.call(checkSet) === "[object Array]" ) {
-               if ( !prune ) {
-                       results.push.apply( results, checkSet );
-
-               } else if ( context && context.nodeType === 1 ) {
-                       for ( i = 0; checkSet[i] != null; i++ ) {
-                               if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
-                                       results.push( set[i] );
-                               }
-                       }
-
-               } else {
-                       for ( i = 0; checkSet[i] != null; i++ ) {
-                               if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
-                                       results.push( set[i] );
-                               }
-                       }
-               }
-
-       } else {
-               makeArray( checkSet, results );
-       }
-
-       if ( extra ) {
-               Sizzle( extra, origContext, results, seed );
-               Sizzle.uniqueSort( results );
-       }
-
-       return results;
-};
-
-Sizzle.uniqueSort = function( results ) {
-       if ( sortOrder ) {
-               hasDuplicate = baseHasDuplicate;
-               results.sort( sortOrder );
-
-               if ( hasDuplicate ) {
-                       for ( var i = 1; i < results.length; i++ ) {
-                               if ( results[i] === results[ i - 1 ] ) {
-                                       results.splice( i--, 1 );
-                               }
-                       }
-               }
-       }
-
-       return results;
-};
-
-Sizzle.matches = function( expr, set ) {
-       return Sizzle( expr, null, null, set );
-};
-
-Sizzle.matchesSelector = function( node, expr ) {
-       return Sizzle( expr, null, null, [node] ).length > 0;
-};
-
-Sizzle.find = function( expr, context, isXML ) {
-       var set;
-
-       if ( !expr ) {
-               return [];
-       }
-
-       for ( var i = 0, l = Expr.order.length; i < l; i++ ) {
-               var match,
-                       type = Expr.order[i];
-               
-               if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
-                       var left = match[1];
-                       match.splice( 1, 1 );
-
-                       if ( left.substr( left.length - 1 ) !== "\\" ) {
-                               match[1] = (match[1] || "").replace( rBackslash, "" );
-                               set = Expr.find[ type ]( match, context, isXML );
-
-                               if ( set != null ) {
-                                       expr = expr.replace( Expr.match[ type ], "" );
-                                       break;
-                               }
-                       }
-               }
-       }
-
-       if ( !set ) {
-               set = typeof context.getElementsByTagName !== "undefined" ?
-                       context.getElementsByTagName( "*" ) :
-                       [];
-       }
-
-       return { set: set, expr: expr };
-};
-
-Sizzle.filter = function( expr, set, inplace, not ) {
-       var match, anyFound,
-               old = expr,
-               result = [],
-               curLoop = set,
-               isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
-
-       while ( expr && set.length ) {
-               for ( var type in Expr.filter ) {
-                       if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
-                               var found, item,
-                                       filter = Expr.filter[ type ],
-                                       left = match[1];
-
-                               anyFound = false;
-
-                               match.splice(1,1);
-
-                               if ( left.substr( left.length - 1 ) === "\\" ) {
-                                       continue;
-                               }
-
-                               if ( curLoop === result ) {
-                                       result = [];
-                               }
-
-                               if ( Expr.preFilter[ type ] ) {
-                                       match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
-
-                                       if ( !match ) {
-                                               anyFound = found = true;
-
-                                       } else if ( match === true ) {
-                                               continue;
-                                       }
-                               }
-
-                               if ( match ) {
-                                       for ( var i = 0; (item = curLoop[i]) != null; i++ ) {
-                                               if ( item ) {
-                                                       found = filter( item, match, i, curLoop );
-                                                       var pass = not ^ !!found;
-
-                                                       if ( inplace && found != null ) {
-                                                               if ( pass ) {
-                                                                       anyFound = true;
-
-                                                               } else {
-                                                                       curLoop[i] = false;
-                                                               }
-
-                                                       } else if ( pass ) {
-                                                               result.push( item );
-                                                               anyFound = true;
-                                                       }
-                                               }
-                                       }
-                               }
-
-                               if ( found !== undefined ) {
-                                       if ( !inplace ) {
-                                               curLoop = result;
-                                       }
-
-                                       expr = expr.replace( Expr.match[ type ], "" );
-
-                                       if ( !anyFound ) {
-                                               return [];
-                                       }
-
-                                       break;
-                               }
-                       }
-               }
-
-               // Improper expression
-               if ( expr === old ) {
-                       if ( anyFound == null ) {
-                               Sizzle.error( expr );
-
-                       } else {
-                               break;
-                       }
-               }
-
-               old = expr;
-       }
-
-       return curLoop;
-};
-
-Sizzle.error = function( msg ) {
-       throw "Syntax error, unrecognized expression: " + msg;
-};
-
-var Expr = Sizzle.selectors = {
-       order: [ "ID", "NAME", "TAG" ],
-
-       match: {
-               ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
-               CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
-               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
-               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
-               TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
-               CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
-               POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
-               PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
-       },
-
-       leftMatch: {},
-
-       attrMap: {
-               "class": "className",
-               "for": "htmlFor"
-       },
-
-       attrHandle: {
-               href: function( elem ) {
-                       return elem.getAttribute( "href" );
-               },
-               type: function( elem ) {
-                       return elem.getAttribute( "type" );
-               }
-       },
-
-       relative: {
-               "+": function(checkSet, part){
-                       var isPartStr = typeof part === "string",
-                               isTag = isPartStr && !rNonWord.test( part ),
-                               isPartStrNotTag = isPartStr && !isTag;
-
-                       if ( isTag ) {
-                               part = part.toLowerCase();
-                       }
-
-                       for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
-                               if ( (elem = checkSet[i]) ) {
-                                       while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
-
-                                       checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
-                                               elem || false :
-                                               elem === part;
-                               }
-                       }
-
-                       if ( isPartStrNotTag ) {
-                               Sizzle.filter( part, checkSet, true );
-                       }
-               },
-
-               ">": function( checkSet, part ) {
-                       var elem,
-                               isPartStr = typeof part === "string",
-                               i = 0,
-                               l = checkSet.length;
-
-                       if ( isPartStr && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-
-                               for ( ; i < l; i++ ) {
-                                       elem = checkSet[i];
-
-                                       if ( elem ) {
-                                               var parent = elem.parentNode;
-                                               checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
-                                       }
-                               }
-
-                       } else {
-                               for ( ; i < l; i++ ) {
-                                       elem = checkSet[i];
-
-                                       if ( elem ) {
-                                               checkSet[i] = isPartStr ?
-                                                       elem.parentNode :
-                                                       elem.parentNode === part;
-                                       }
-                               }
-
-                               if ( isPartStr ) {
-                                       Sizzle.filter( part, checkSet, true );
-                               }
-                       }
-               },
-
-               "": function(checkSet, part, isXML){
-                       var nodeCheck,
-                               doneName = done++,
-                               checkFn = dirCheck;
-
-                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-                               nodeCheck = part;
-                               checkFn = dirNodeCheck;
-                       }
-
-                       checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
-               },
-
-               "~": function( checkSet, part, isXML ) {
-                       var nodeCheck,
-                               doneName = done++,
-                               checkFn = dirCheck;
-
-                       if ( typeof part === "string" && !rNonWord.test( part ) ) {
-                               part = part.toLowerCase();
-                               nodeCheck = part;
-                               checkFn = dirNodeCheck;
-                       }
-
-                       checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
-               }
-       },
-
-       find: {
-               ID: function( match, context, isXML ) {
-                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
-                               var m = context.getElementById(match[1]);
-                               // Check parentNode to catch when Blackberry 4.6 returns
-                               // nodes that are no longer in the document #6963
-                               return m && m.parentNode ? [m] : [];
-                       }
-               },
-
-               NAME: function( match, context ) {
-                       if ( typeof context.getElementsByName !== "undefined" ) {
-                               var ret = [],
-                                       results = context.getElementsByName( match[1] );
-
-                               for ( var i = 0, l = results.length; i < l; i++ ) {
-                                       if ( results[i].getAttribute("name") === match[1] ) {
-                                               ret.push( results[i] );
-                                       }
-                               }
-
-                               return ret.length === 0 ? null : ret;
-                       }
-               },
-
-               TAG: function( match, context ) {
-                       if ( typeof context.getElementsByTagName !== "undefined" ) {
-                               return context.getElementsByTagName( match[1] );
-                       }
-               }
-       },
-       preFilter: {
-               CLASS: function( match, curLoop, inplace, result, not, isXML ) {
-                       match = " " + match[1].replace( rBackslash, "" ) + " ";
-
-                       if ( isXML ) {
-                               return match;
-                       }
-
-                       for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
-                               if ( elem ) {
-                                       if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
-                                               if ( !inplace ) {
-                                                       result.push( elem );
-                                               }
-
-                                       } else if ( inplace ) {
-                                               curLoop[i] = false;
-                                       }
-                               }
-                       }
-
-                       return false;
-               },
-
-               ID: function( match ) {
-                       return match[1].replace( rBackslash, "" );
-               },
-
-               TAG: function( match, curLoop ) {
-                       return match[1].replace( rBackslash, "" ).toLowerCase();
-               },
-
-               CHILD: function( match ) {
-                       if ( match[1] === "nth" ) {
-                               if ( !match[2] ) {
-                                       Sizzle.error( match[0] );
-                               }
-
-                               match[2] = match[2].replace(/^\+|\s*/g, '');
-
-                               // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
-                               var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
-                                       match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
-                                       !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
-
-                               // calculate the numbers (first)n+(last) including if they are negative
-                               match[2] = (test[1] + (test[2] || 1)) - 0;
-                               match[3] = test[3] - 0;
-                       }
-                       else if ( match[2] ) {
-                               Sizzle.error( match[0] );
-                       }
-
-                       // TODO: Move to normal caching system
-                       match[0] = done++;
-
-                       return match;
-               },
-
-               ATTR: function( match, curLoop, inplace, result, not, isXML ) {
-                       var name = match[1] = match[1].replace( rBackslash, "" );
-                       
-                       if ( !isXML && Expr.attrMap[name] ) {
-                               match[1] = Expr.attrMap[name];
-                       }
-
-                       // Handle if an un-quoted value was used
-                       match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
-
-                       if ( match[2] === "~=" ) {
-                               match[4] = " " + match[4] + " ";
-                       }
-
-                       return match;
-               },
-
-               PSEUDO: function( match, curLoop, inplace, result, not ) {
-                       if ( match[1] === "not" ) {
-                               // If we're dealing with a complex expression, or a simple one
-                               if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
-                                       match[3] = Sizzle(match[3], null, null, curLoop);
-
-                               } else {
-                                       var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
-
-                                       if ( !inplace ) {
-                                               result.push.apply( result, ret );
-                                       }
-
-                                       return false;
-                               }
-
-                       } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
-                               return true;
-                       }
-                       
-                       return match;
-               },
-
-               POS: function( match ) {
-                       match.unshift( true );
-
-                       return match;
-               }
-       },
-       
-       filters: {
-               enabled: function( elem ) {
-                       return elem.disabled === false && elem.type !== "hidden";
-               },
-
-               disabled: function( elem ) {
-                       return elem.disabled === true;
-               },
-
-               checked: function( elem ) {
-                       return elem.checked === true;
-               },
-               
-               selected: function( elem ) {
-                       // Accessing this property makes selected-by-default
-                       // options in Safari work properly
-                       if ( elem.parentNode ) {
-                               elem.parentNode.selectedIndex;
-                       }
-                       
-                       return elem.selected === true;
-               },
-
-               parent: function( elem ) {
-                       return !!elem.firstChild;
-               },
-
-               empty: function( elem ) {
-                       return !elem.firstChild;
-               },
-
-               has: function( elem, i, match ) {
-                       return !!Sizzle( match[3], elem ).length;
-               },
-
-               header: function( elem ) {
-                       return (/h\d/i).test( elem.nodeName );
-               },
-
-               text: function( elem ) {
-                       var attr = elem.getAttribute( "type" ), type = elem.type;
-                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) 
-                       // use getAttribute instead to test this case
-                       return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
-               },
-
-               radio: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
-               },
-
-               checkbox: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
-               },
-
-               file: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
-               },
-
-               password: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
-               },
-
-               submit: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return (name === "input" || name === "button") && "submit" === elem.type;
-               },
-
-               image: function( elem ) {
-                       return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
-               },
-
-               reset: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return (name === "input" || name === "button") && "reset" === elem.type;
-               },
-
-               button: function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return name === "input" && "button" === elem.type || name === "button";
-               },
-
-               input: function( elem ) {
-                       return (/input|select|textarea|button/i).test( elem.nodeName );
-               },
-
-               focus: function( elem ) {
-                       return elem === elem.ownerDocument.activeElement;
-               }
-       },
-       setFilters: {
-               first: function( elem, i ) {
-                       return i === 0;
-               },
-
-               last: function( elem, i, match, array ) {
-                       return i === array.length - 1;
-               },
-
-               even: function( elem, i ) {
-                       return i % 2 === 0;
-               },
-
-               odd: function( elem, i ) {
-                       return i % 2 === 1;
-               },
-
-               lt: function( elem, i, match ) {
-                       return i < match[3] - 0;
-               },
-
-               gt: function( elem, i, match ) {
-                       return i > match[3] - 0;
-               },
-
-               nth: function( elem, i, match ) {
-                       return match[3] - 0 === i;
-               },
-
-               eq: function( elem, i, match ) {
-                       return match[3] - 0 === i;
-               }
-       },
-       filter: {
-               PSEUDO: function( elem, match, i, array ) {
-                       var name = match[1],
-                               filter = Expr.filters[ name ];
-
-                       if ( filter ) {
-                               return filter( elem, i, match, array );
-
-                       } else if ( name === "contains" ) {
-                               return (elem.textContent || elem.innerText || Sizzle.getText([ elem ]) || "").indexOf(match[3]) >= 0;
-
-                       } else if ( name === "not" ) {
-                               var not = match[3];
-
-                               for ( var j = 0, l = not.length; j < l; j++ ) {
-                                       if ( not[j] === elem ) {
-                                               return false;
-                                       }
-                               }
-
-                               return true;
-
-                       } else {
-                               Sizzle.error( name );
-                       }
-               },
-
-               CHILD: function( elem, match ) {
-                       var type = match[1],
-                               node = elem;
-
-                       switch ( type ) {
-                               case "only":
-                               case "first":
-                                       while ( (node = node.previousSibling) )  {
-                                               if ( node.nodeType === 1 ) { 
-                                                       return false; 
-                                               }
-                                       }
-
-                                       if ( type === "first" ) { 
-                                               return true; 
-                                       }
-
-                                       node = elem;
-
-                               case "last":
-                                       while ( (node = node.nextSibling) )      {
-                                               if ( node.nodeType === 1 ) { 
-                                                       return false; 
-                                               }
-                                       }
-
-                                       return true;
-
-                               case "nth":
-                                       var first = match[2],
-                                               last = match[3];
-
-                                       if ( first === 1 && last === 0 ) {
-                                               return true;
-                                       }
-                                       
-                                       var doneName = match[0],
-                                               parent = elem.parentNode;
-       
-                                       if ( parent && (parent.sizcache !== doneName || !elem.nodeIndex) ) {
-                                               var count = 0;
-                                               
-                                               for ( node = parent.firstChild; node; node = node.nextSibling ) {
-                                                       if ( node.nodeType === 1 ) {
-                                                               node.nodeIndex = ++count;
-                                                       }
-                                               } 
-
-                                               parent.sizcache = doneName;
-                                       }
-                                       
-                                       var diff = elem.nodeIndex - last;
-
-                                       if ( first === 0 ) {
-                                               return diff === 0;
-
-                                       } else {
-                                               return ( diff % first === 0 && diff / first >= 0 );
-                                       }
-                       }
-               },
-
-               ID: function( elem, match ) {
-                       return elem.nodeType === 1 && elem.getAttribute("id") === match;
-               },
-
-               TAG: function( elem, match ) {
-                       return (match === "*" && elem.nodeType === 1) || elem.nodeName.toLowerCase() === match;
-               },
-               
-               CLASS: function( elem, match ) {
-                       return (" " + (elem.className || elem.getAttribute("class")) + " ")
-                               .indexOf( match ) > -1;
-               },
-
-               ATTR: function( elem, match ) {
-                       var name = match[1],
-                               result = Expr.attrHandle[ name ] ?
-                                       Expr.attrHandle[ name ]( elem ) :
-                                       elem[ name ] != null ?
-                                               elem[ name ] :
-                                               elem.getAttribute( name ),
-                               value = result + "",
-                               type = match[2],
-                               check = match[4];
-
-                       return result == null ?
-                               type === "!=" :
-                               type === "=" ?
-                               value === check :
-                               type === "*=" ?
-                               value.indexOf(check) >= 0 :
-                               type === "~=" ?
-                               (" " + value + " ").indexOf(check) >= 0 :
-                               !check ?
-                               value && result !== false :
-                               type === "!=" ?
-                               value !== check :
-                               type === "^=" ?
-                               value.indexOf(check) === 0 :
-                               type === "$=" ?
-                               value.substr(value.length - check.length) === check :
-                               type === "|=" ?
-                               value === check || value.substr(0, check.length + 1) === check + "-" :
-                               false;
-               },
-
-               POS: function( elem, match, i, array ) {
-                       var name = match[2],
-                               filter = Expr.setFilters[ name ];
-
-                       if ( filter ) {
-                               return filter( elem, i, match, array );
-                       }
-               }
-       }
-};
-
-var origPOS = Expr.match.POS,
-       fescape = function(all, num){
-               return "\\" + (num - 0 + 1);
-       };
-
-for ( var type in Expr.match ) {
-       Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
-       Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
-}
-
-var makeArray = function( array, results ) {
-       array = Array.prototype.slice.call( array, 0 );
-
-       if ( results ) {
-               results.push.apply( results, array );
-               return results;
-       }
-       
-       return array;
-};
-
-// Perform a simple check to determine if the browser is capable of
-// converting a NodeList to an array using builtin methods.
-// Also verifies that the returned array holds DOM nodes
-// (which is not the case in the Blackberry browser)
-try {
-       Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
-
-// Provide a fallback method if it does not work
-} catch( e ) {
-       makeArray = function( array, results ) {
-               var i = 0,
-                       ret = results || [];
-
-               if ( toString.call(array) === "[object Array]" ) {
-                       Array.prototype.push.apply( ret, array );
-
-               } else {
-                       if ( typeof array.length === "number" ) {
-                               for ( var l = array.length; i < l; i++ ) {
-                                       ret.push( array[i] );
-                               }
-
-                       } else {
-                               for ( ; array[i]; i++ ) {
-                                       ret.push( array[i] );
-                               }
-                       }
-               }
-
-               return ret;
-       };
-}
-
-var sortOrder, siblingCheck;
-
-if ( document.documentElement.compareDocumentPosition ) {
-       sortOrder = function( a, b ) {
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-               }
-
-               if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
-                       return a.compareDocumentPosition ? -1 : 1;
-               }
-
-               return a.compareDocumentPosition(b) & 4 ? -1 : 1;
-       };
-
-} else {
-       sortOrder = function( a, b ) {
-               // The nodes are identical, we can exit early
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-
-               // Fallback to using sourceIndex (in IE) if it's available on both nodes
-               } else if ( a.sourceIndex && b.sourceIndex ) {
-                       return a.sourceIndex - b.sourceIndex;
-               }
-
-               var al, bl,
-                       ap = [],
-                       bp = [],
-                       aup = a.parentNode,
-                       bup = b.parentNode,
-                       cur = aup;
-
-               // If the nodes are siblings (or identical) we can do a quick check
-               if ( aup === bup ) {
-                       return siblingCheck( a, b );
-
-               // If no parents were found then the nodes are disconnected
-               } else if ( !aup ) {
-                       return -1;
-
-               } else if ( !bup ) {
-                       return 1;
-               }
-
-               // Otherwise they're somewhere else in the tree so we need
-               // to build up a full list of the parentNodes for comparison
-               while ( cur ) {
-                       ap.unshift( cur );
-                       cur = cur.parentNode;
-               }
-
-               cur = bup;
-
-               while ( cur ) {
-                       bp.unshift( cur );
-                       cur = cur.parentNode;
-               }
-
-               al = ap.length;
-               bl = bp.length;
-
-               // Start walking down the tree looking for a discrepancy
-               for ( var i = 0; i < al && i < bl; i++ ) {
-                       if ( ap[i] !== bp[i] ) {
-                               return siblingCheck( ap[i], bp[i] );
-                       }
-               }
-
-               // We ended someplace up the tree so do a sibling check
-               return i === al ?
-                       siblingCheck( a, bp[i], -1 ) :
-                       siblingCheck( ap[i], b, 1 );
-       };
-
-       siblingCheck = function( a, b, ret ) {
-               if ( a === b ) {
-                       return ret;
-               }
-
-               var cur = a.nextSibling;
-
-               while ( cur ) {
-                       if ( cur === b ) {
-                               return -1;
-                       }
-
-                       cur = cur.nextSibling;
-               }
-
-               return 1;
-       };
-}
-
-// Utility function for retreiving the text value of an array of DOM nodes
-Sizzle.getText = function( elems ) {
-       var ret = "", elem;
-
-       for ( var i = 0; elems[i]; i++ ) {
-               elem = elems[i];
-
-               // Get the text from text nodes and CDATA nodes
-               if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
-                       ret += elem.nodeValue;
-
-               // Traverse everything else, except comment nodes
-               } else if ( elem.nodeType !== 8 ) {
-                       ret += Sizzle.getText( elem.childNodes );
-               }
-       }
-
-       return ret;
-};
-
-// Check to see if the browser returns elements by name when
-// querying by getElementById (and provide a workaround)
-(function(){
-       // We're going to inject a fake input element with a specified name
-       var form = document.createElement("div"),
-               id = "script" + (new Date()).getTime(),
-               root = document.documentElement;
-
-       form.innerHTML = "<a name='" + id + "'/>";
-
-       // Inject it into the root element, check its status, and remove it quickly
-       root.insertBefore( form, root.firstChild );
-
-       // The workaround has to do additional checks after a getElementById
-       // Which slows things down for other browsers (hence the branching)
-       if ( document.getElementById( id ) ) {
-               Expr.find.ID = function( match, context, isXML ) {
-                       if ( typeof context.getElementById !== "undefined" && !isXML ) {
-                               var m = context.getElementById(match[1]);
-
-                               return m ?
-                                       m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
-                                               [m] :
-                                               undefined :
-                                       [];
-                       }
-               };
-
-               Expr.filter.ID = function( elem, match ) {
-                       var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
-
-                       return elem.nodeType === 1 && node && node.nodeValue === match;
-               };
-       }
-
-       root.removeChild( form );
-
-       // release memory in IE
-       root = form = null;
-})();
-
-(function(){
-       // Check to see if the browser returns only elements
-       // when doing getElementsByTagName("*")
-
-       // Create a fake element
-       var div = document.createElement("div");
-       div.appendChild( document.createComment("") );
-
-       // Make sure no comments are found
-       if ( div.getElementsByTagName("*").length > 0 ) {
-               Expr.find.TAG = function( match, context ) {
-                       var results = context.getElementsByTagName( match[1] );
-
-                       // Filter out possible comments
-                       if ( match[1] === "*" ) {
-                               var tmp = [];
-
-                               for ( var i = 0; results[i]; i++ ) {
-                                       if ( results[i].nodeType === 1 ) {
-                                               tmp.push( results[i] );
-                                       }
-                               }
-
-                               results = tmp;
-                       }
-
-                       return results;
-               };
-       }
-
-       // Check to see if an attribute returns normalized href attributes
-       div.innerHTML = "<a href='#'></a>";
-
-       if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
-                       div.firstChild.getAttribute("href") !== "#" ) {
-
-               Expr.attrHandle.href = function( elem ) {
-                       return elem.getAttribute( "href", 2 );
-               };
-       }
-
-       // release memory in IE
-       div = null;
-})();
-
-if ( document.querySelectorAll ) {
-       (function(){
-               var oldSizzle = Sizzle,
-                       div = document.createElement("div"),
-                       id = "__sizzle__";
-
-               div.innerHTML = "<p class='TEST'></p>";
-
-               // Safari can't handle uppercase or unicode characters when
-               // in quirks mode.
-               if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
-                       return;
-               }
-       
-               Sizzle = function( query, context, extra, seed ) {
-                       context = context || document;
-
-                       // Only use querySelectorAll on non-XML documents
-                       // (ID selectors don't work in non-HTML documents)
-                       if ( !seed && !Sizzle.isXML(context) ) {
-                               // See if we find a selector to speed up
-                               var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
-                               
-                               if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
-                                       // Speed-up: Sizzle("TAG")
-                                       if ( match[1] ) {
-                                               return makeArray( context.getElementsByTagName( query ), extra );
-                                       
-                                       // Speed-up: Sizzle(".CLASS")
-                                       } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
-                                               return makeArray( context.getElementsByClassName( match[2] ), extra );
-                                       }
-                               }
-                               
-                               if ( context.nodeType === 9 ) {
-                                       // Speed-up: Sizzle("body")
-                                       // The body element only exists once, optimize finding it
-                                       if ( query === "body" && context.body ) {
-                                               return makeArray( [ context.body ], extra );
-                                               
-                                       // Speed-up: Sizzle("#ID")
-                                       } else if ( match && match[3] ) {
-                                               var elem = context.getElementById( match[3] );
-
-                                               // Check parentNode to catch when Blackberry 4.6 returns
-                                               // nodes that are no longer in the document #6963
-                                               if ( elem && elem.parentNode ) {
-                                                       // Handle the case where IE and Opera return items
-                                                       // by name instead of ID
-                                                       if ( elem.id === match[3] ) {
-                                                               return makeArray( [ elem ], extra );
-                                                       }
-                                                       
-                                               } else {
-                                                       return makeArray( [], extra );
-                                               }
-                                       }
-                                       
-                                       try {
-                                               return makeArray( context.querySelectorAll(query), extra );
-                                       } catch(qsaError) {}
-
-                               // qSA works strangely on Element-rooted queries
-                               // We can work around this by specifying an extra ID on the root
-                               // and working up from there (Thanks to Andrew Dupont for the technique)
-                               // IE 8 doesn't work on object elements
-                               } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
-                                       var oldContext = context,
-                                               old = context.getAttribute( "id" ),
-                                               nid = old || id,
-                                               hasParent = context.parentNode,
-                                               relativeHierarchySelector = /^\s*[+~]/.test( query );
-
-                                       if ( !old ) {
-                                               context.setAttribute( "id", nid );
-                                       } else {
-                                               nid = nid.replace( /'/g, "\\$&" );
-                                       }
-                                       if ( relativeHierarchySelector && hasParent ) {
-                                               context = context.parentNode;
-                                       }
-
-                                       try {
-                                               if ( !relativeHierarchySelector || hasParent ) {
-                                                       return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
-                                               }
-
-                                       } catch(pseudoError) {
-                                       } finally {
-                                               if ( !old ) {
-                                                       oldContext.removeAttribute( "id" );
-                                               }
-                                       }
-                               }
-                       }
-               
-                       return oldSizzle(query, context, extra, seed);
-               };
-
-               for ( var prop in oldSizzle ) {
-                       Sizzle[ prop ] = oldSizzle[ prop ];
-               }
-
-               // release memory in IE
-               div = null;
-       })();
-}
-
-(function(){
-       var html = document.documentElement,
-               matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
-
-       if ( matches ) {
-               // Check to see if it's possible to do matchesSelector
-               // on a disconnected node (IE 9 fails this)
-               var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
-                       pseudoWorks = false;
-
-               try {
-                       // This should fail with an exception
-                       // Gecko does not error, returns false instead
-                       matches.call( document.documentElement, "[test!='']:sizzle" );
-       
-               } catch( pseudoError ) {
-                       pseudoWorks = true;
-               }
-
-               Sizzle.matchesSelector = function( node, expr ) {
-                       // Make sure that attribute selectors are quoted
-                       expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
-
-                       if ( !Sizzle.isXML( node ) ) {
-                               try { 
-                                       if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
-                                               var ret = matches.call( node, expr );
-
-                                               // IE 9's matchesSelector returns false on disconnected nodes
-                                               if ( ret || !disconnectedMatch ||
-                                                               // As well, disconnected nodes are said to be in a document
-                                                               // fragment in IE 9, so check for that
-                                                               node.document && node.document.nodeType !== 11 ) {
-                                                       return ret;
-                                               }
-                                       }
-                               } catch(e) {}
-                       }
-
-                       return Sizzle(expr, null, null, [node]).length > 0;
-               };
-       }
-})();
-
-(function(){
-       var div = document.createElement("div");
-
-       div.innerHTML = "<div class='test e'></div><div class='test'></div>";
-
-       // Opera can't find a second classname (in 9.6)
-       // Also, make sure that getElementsByClassName actually exists
-       if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
-               return;
-       }
-
-       // Safari caches class attributes, doesn't catch changes (in 3.2)
-       div.lastChild.className = "e";
-
-       if ( div.getElementsByClassName("e").length === 1 ) {
-               return;
-       }
-       
-       Expr.order.splice(1, 0, "CLASS");
-       Expr.find.CLASS = function( match, context, isXML ) {
-               if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
-                       return context.getElementsByClassName(match[1]);
-               }
-       };
-
-       // release memory in IE
-       div = null;
-})();
-
-function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
-       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
-               var elem = checkSet[i];
-
-               if ( elem ) {
-                       var match = false;
-
-                       elem = elem[dir];
-
-                       while ( elem ) {
-                               if ( elem.sizcache === doneName ) {
-                                       match = checkSet[elem.sizset];
-                                       break;
-                               }
-
-                               if ( elem.nodeType === 1 && !isXML ){
-                                       elem.sizcache = doneName;
-                                       elem.sizset = i;
-                               }
-
-                               if ( elem.nodeName.toLowerCase() === cur ) {
-                                       match = elem;
-                                       break;
-                               }
-
-                               elem = elem[dir];
-                       }
-
-                       checkSet[i] = match;
-               }
-       }
-}
-
-function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
-       for ( var i = 0, l = checkSet.length; i < l; i++ ) {
-               var elem = checkSet[i];
-
-               if ( elem ) {
-                       var match = false;
-                       
-                       elem = elem[dir];
-
-                       while ( elem ) {
-                               if ( elem.sizcache === doneName ) {
-                                       match = checkSet[elem.sizset];
-                                       break;
-                               }
-
-                               if ( elem.nodeType === 1 ) {
-                                       if ( !isXML ) {
-                                               elem.sizcache = doneName;
-                                               elem.sizset = i;
-                                       }
-
-                                       if ( typeof cur !== "string" ) {
-                                               if ( elem === cur ) {
-                                                       match = true;
-                                                       break;
-                                               }
-
-                                       } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
-                                               match = elem;
-                                               break;
-                                       }
-                               }
-
-                               elem = elem[dir];
-                       }
-
-                       checkSet[i] = match;
-               }
-       }
-}
-
-if ( document.documentElement.contains ) {
-       Sizzle.contains = function( a, b ) {
-               return a !== b && (a.contains ? a.contains(b) : true);
-       };
-
-} else if ( document.documentElement.compareDocumentPosition ) {
-       Sizzle.contains = function( a, b ) {
-               return !!(a.compareDocumentPosition(b) & 16);
-       };
-
-} else {
-       Sizzle.contains = function() {
-               return false;
-       };
-}
-
-Sizzle.isXML = function( elem ) {
-       // documentElement is verified for cases where it doesn't yet exist
-       // (such as loading iframes in IE - #4833) 
-       var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
-
-       return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-var posProcess = function( selector, context ) {
-       var match,
-               tmpSet = [],
-               later = "",
-               root = context.nodeType ? [context] : context;
-
-       // Position selectors must be done after the filter
-       // And so must :not(positional) so we move all PSEUDOs to the end
-       while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
-               later += match[0];
-               selector = selector.replace( Expr.match.PSEUDO, "" );
-       }
-
-       selector = Expr.relative[selector] ? selector + "*" : selector;
-
-       for ( var i = 0, l = root.length; i < l; i++ ) {
-               Sizzle( selector, root[i], tmpSet );
-       }
-
-       return Sizzle.filter( later, tmpSet );
-};
-
-// EXPOSE
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.filters;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-})();
-
-
-var runtil = /Until$/,
-       rparentsprev = /^(?:parents|prevUntil|prevAll)/,
-       // Note: This RegExp should be improved, or likely pulled from Sizzle
-       rmultiselector = /,/,
-       isSimple = /^.[^:#\[\.,]*$/,
-       slice = Array.prototype.slice,
-       POS = jQuery.expr.match.POS,
-       // methods guaranteed to produce a unique set when starting from a unique set
-       guaranteedUnique = {
-               children: true,
-               contents: true,
-               next: true,
-               prev: true
-       };
-
-jQuery.fn.extend({
-       find: function( selector ) {
-               var self = this,
-                       i, l;
-
-               if ( typeof selector !== "string" ) {
-                       return jQuery( selector ).filter(function() {
-                               for ( i = 0, l = self.length; i < l; i++ ) {
-                                       if ( jQuery.contains( self[ i ], this ) ) {
-                                               return true;
-                                       }
-                               }
-                       });
-               }
-
-               var ret = this.pushStack( "", "find", selector ),
-                       length, n, r;
-
-               for ( i = 0, l = this.length; i < l; i++ ) {
-                       length = ret.length;
-                       jQuery.find( selector, this[i], ret );
-
-                       if ( i > 0 ) {
-                               // Make sure that the results are unique
-                               for ( n = length; n < ret.length; n++ ) {
-                                       for ( r = 0; r < length; r++ ) {
-                                               if ( ret[r] === ret[n] ) {
-                                                       ret.splice(n--, 1);
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-               }
-
-               return ret;
-       },
-
-       has: function( target ) {
-               var targets = jQuery( target );
-               return this.filter(function() {
-                       for ( var i = 0, l = targets.length; i < l; i++ ) {
-                               if ( jQuery.contains( this, targets[i] ) ) {
-                                       return true;
-                               }
-                       }
-               });
-       },
-
-       not: function( selector ) {
-               return this.pushStack( winnow(this, selector, false), "not", selector);
-       },
-
-       filter: function( selector ) {
-               return this.pushStack( winnow(this, selector, true), "filter", selector );
-       },
-
-       is: function( selector ) {
-               return !!selector && ( typeof selector === "string" ?
-                       jQuery.filter( selector, this ).length > 0 :
-                       this.filter( selector ).length > 0 );
-       },
-
-       closest: function( selectors, context ) {
-               var ret = [], i, l, cur = this[0];
-               
-               // Array
-               if ( jQuery.isArray( selectors ) ) {
-                       var match, selector,
-                               matches = {},
-                               level = 1;
-
-                       if ( cur && selectors.length ) {
-                               for ( i = 0, l = selectors.length; i < l; i++ ) {
-                                       selector = selectors[i];
-
-                                       if ( !matches[ selector ] ) {
-                                               matches[ selector ] = POS.test( selector ) ?
-                                                       jQuery( selector, context || this.context ) :
-                                                       selector;
-                                       }
-                               }
-
-                               while ( cur && cur.ownerDocument && cur !== context ) {
-                                       for ( selector in matches ) {
-                                               match = matches[ selector ];
-
-                                               if ( match.jquery ? match.index( cur ) > -1 : jQuery( cur ).is( match ) ) {
-                                                       ret.push({ selector: selector, elem: cur, level: level });
-                                               }
-                                       }
-
-                                       cur = cur.parentNode;
-                                       level++;
-                               }
-                       }
-
-                       return ret;
-               }
-
-               // String
-               var pos = POS.test( selectors ) || typeof selectors !== "string" ?
-                               jQuery( selectors, context || this.context ) :
-                               0;
-
-               for ( i = 0, l = this.length; i < l; i++ ) {
-                       cur = this[i];
-
-                       while ( cur ) {
-                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
-                                       ret.push( cur );
-                                       break;
-
-                               } else {
-                                       cur = cur.parentNode;
-                                       if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
-                                               break;
-                                       }
-                               }
-                       }
-               }
-
-               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
-
-               return this.pushStack( ret, "closest", selectors );
-       },
-
-       // Determine the position of an element within
-       // the matched set of elements
-       index: function( elem ) {
-
-               // No argument, return index in parent
-               if ( !elem ) {
-                       return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
-               }
-
-               // index in selector
-               if ( typeof elem === "string" ) {
-                       return jQuery.inArray( this[0], jQuery( elem ) );
-               }
-
-               // Locate the position of the desired element
-               return jQuery.inArray(
-                       // If it receives a jQuery object, the first element is used
-                       elem.jquery ? elem[0] : elem, this );
-       },
-
-       add: function( selector, context ) {
-               var set = typeof selector === "string" ?
-                               jQuery( selector, context ) :
-                               jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
-                       all = jQuery.merge( this.get(), set );
-
-               return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
-                       all :
-                       jQuery.unique( all ) );
-       },
-
-       andSelf: function() {
-               return this.add( this.prevObject );
-       }
-});
-
-// A painfully simple check to see if an element is disconnected
-// from a document (should be improved, where feasible).
-function isDisconnected( node ) {
-       return !node || !node.parentNode || node.parentNode.nodeType === 11;
-}
-
-jQuery.each({
-       parent: function( elem ) {
-               var parent = elem.parentNode;
-               return parent && parent.nodeType !== 11 ? parent : null;
-       },
-       parents: function( elem ) {
-               return jQuery.dir( elem, "parentNode" );
-       },
-       parentsUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "parentNode", until );
-       },
-       next: function( elem ) {
-               return jQuery.nth( elem, 2, "nextSibling" );
-       },
-       prev: function( elem ) {
-               return jQuery.nth( elem, 2, "previousSibling" );
-       },
-       nextAll: function( elem ) {
-               return jQuery.dir( elem, "nextSibling" );
-       },
-       prevAll: function( elem ) {
-               return jQuery.dir( elem, "previousSibling" );
-       },
-       nextUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "nextSibling", until );
-       },
-       prevUntil: function( elem, i, until ) {
-               return jQuery.dir( elem, "previousSibling", until );
-       },
-       siblings: function( elem ) {
-               return jQuery.sibling( elem.parentNode.firstChild, elem );
-       },
-       children: function( elem ) {
-               return jQuery.sibling( elem.firstChild );
-       },
-       contents: function( elem ) {
-               return jQuery.nodeName( elem, "iframe" ) ?
-                       elem.contentDocument || elem.contentWindow.document :
-                       jQuery.makeArray( elem.childNodes );
-       }
-}, function( name, fn ) {
-       jQuery.fn[ name ] = function( until, selector ) {
-               var ret = jQuery.map( this, fn, until ),
-                       // The variable 'args' was introduced in
-                       // https://github.com/jquery/jquery/commit/52a0238
-                       // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.
-                       // http://code.google.com/p/v8/issues/detail?id=1050
-                       args = slice.call(arguments);
-
-               if ( !runtil.test( name ) ) {
-                       selector = until;
-               }
-
-               if ( selector && typeof selector === "string" ) {
-                       ret = jQuery.filter( selector, ret );
-               }
-
-               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
-
-               if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
-                       ret = ret.reverse();
-               }
-
-               return this.pushStack( ret, name, args.join(",") );
-       };
-});
-
-jQuery.extend({
-       filter: function( expr, elems, not ) {
-               if ( not ) {
-                       expr = ":not(" + expr + ")";
-               }
-
-               return elems.length === 1 ?
-                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
-                       jQuery.find.matches(expr, elems);
-       },
-
-       dir: function( elem, dir, until ) {
-               var matched = [],
-                       cur = elem[ dir ];
-
-               while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
-                       if ( cur.nodeType === 1 ) {
-                               matched.push( cur );
-                       }
-                       cur = cur[dir];
-               }
-               return matched;
-       },
-
-       nth: function( cur, result, dir, elem ) {
-               result = result || 1;
-               var num = 0;
-
-               for ( ; cur; cur = cur[dir] ) {
-                       if ( cur.nodeType === 1 && ++num === result ) {
-                               break;
-                       }
-               }
-
-               return cur;
-       },
-
-       sibling: function( n, elem ) {
-               var r = [];
-
-               for ( ; n; n = n.nextSibling ) {
-                       if ( n.nodeType === 1 && n !== elem ) {
-                               r.push( n );
-                       }
-               }
-
-               return r;
-       }
-});
-
-// Implement the identical functionality for filter and not
-function winnow( elements, qualifier, keep ) {
-
-       // Can't pass null or undefined to indexOf in Firefox 4
-       // Set to 0 to skip string check
-       qualifier = qualifier || 0;
-
-       if ( jQuery.isFunction( qualifier ) ) {
-               return jQuery.grep(elements, function( elem, i ) {
-                       var retVal = !!qualifier.call( elem, i, elem );
-                       return retVal === keep;
-               });
-
-       } else if ( qualifier.nodeType ) {
-               return jQuery.grep(elements, function( elem, i ) {
-                       return (elem === qualifier) === keep;
-               });
-
-       } else if ( typeof qualifier === "string" ) {
-               var filtered = jQuery.grep(elements, function( elem ) {
-                       return elem.nodeType === 1;
-               });
-
-               if ( isSimple.test( qualifier ) ) {
-                       return jQuery.filter(qualifier, filtered, !keep);
-               } else {
-                       qualifier = jQuery.filter( qualifier, filtered );
-               }
-       }
-
-       return jQuery.grep(elements, function( elem, i ) {
-               return (jQuery.inArray( elem, qualifier ) >= 0) === keep;
-       });
-}
-
-
-
-
-var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
-       rleadingWhitespace = /^\s+/,
-       rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
-       rtagName = /<([\w:]+)/,
-       rtbody = /<tbody/i,
-       rhtml = /<|&#?\w+;/,
-       rnocache = /<(?:script|object|embed|option|style)/i,
-       // checked="checked" or checked
-       rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
-       rscriptType = /\/(java|ecma)script/i,
-       rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
-       wrapMap = {
-               option: [ 1, "<select multiple='multiple'>", "</select>" ],
-               legend: [ 1, "<fieldset>", "</fieldset>" ],
-               thead: [ 1, "<table>", "</table>" ],
-               tr: [ 2, "<table><tbody>", "</tbody></table>" ],
-               td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
-               col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
-               area: [ 1, "<map>", "</map>" ],
-               _default: [ 0, "", "" ]
-       };
-
-wrapMap.optgroup = wrapMap.option;
-wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
-wrapMap.th = wrapMap.td;
-
-// IE can't serialize <link> and <script> tags normally
-if ( !jQuery.support.htmlSerialize ) {
-       wrapMap._default = [ 1, "div<div>", "</div>" ];
-}
-
-jQuery.fn.extend({
-       text: function( text ) {
-               if ( jQuery.isFunction(text) ) {
-                       return this.each(function(i) {
-                               var self = jQuery( this );
-
-                               self.text( text.call(this, i, self.text()) );
-                       });
-               }
-
-               if ( typeof text !== "object" && text !== undefined ) {
-                       return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
-               }
-
-               return jQuery.text( this );
-       },
-
-       wrapAll: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapAll( html.call(this, i) );
-                       });
-               }
-
-               if ( this[0] ) {
-                       // The elements to wrap the target around
-                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
-                       if ( this[0].parentNode ) {
-                               wrap.insertBefore( this[0] );
-                       }
-
-                       wrap.map(function() {
-                               var elem = this;
-
-                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
-                                       elem = elem.firstChild;
-                               }
-
-                               return elem;
-                       }).append( this );
-               }
-
-               return this;
-       },
-
-       wrapInner: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapInner( html.call(this, i) );
-                       });
-               }
-
-               return this.each(function() {
-                       var self = jQuery( this ),
-                               contents = self.contents();
-
-                       if ( contents.length ) {
-                               contents.wrapAll( html );
-
-                       } else {
-                               self.append( html );
-                       }
-               });
-       },
-
-       wrap: function( html ) {
-               return this.each(function() {
-                       jQuery( this ).wrapAll( html );
-               });
-       },
-
-       unwrap: function() {
-               return this.parent().each(function() {
-                       if ( !jQuery.nodeName( this, "body" ) ) {
-                               jQuery( this ).replaceWith( this.childNodes );
-                       }
-               }).end();
-       },
-
-       append: function() {
-               return this.domManip(arguments, true, function( elem ) {
-                       if ( this.nodeType === 1 ) {
-                               this.appendChild( elem );
-                       }
-               });
-       },
-
-       prepend: function() {
-               return this.domManip(arguments, true, function( elem ) {
-                       if ( this.nodeType === 1 ) {
-                               this.insertBefore( elem, this.firstChild );
-                       }
-               });
-       },
-
-       before: function() {
-               if ( this[0] && this[0].parentNode ) {
-                       return this.domManip(arguments, false, function( elem ) {
-                               this.parentNode.insertBefore( elem, this );
-                       });
-               } else if ( arguments.length ) {
-                       var set = jQuery(arguments[0]);
-                       set.push.apply( set, this.toArray() );
-                       return this.pushStack( set, "before", arguments );
-               }
-       },
-
-       after: function() {
-               if ( this[0] && this[0].parentNode ) {
-                       return this.domManip(arguments, false, function( elem ) {
-                               this.parentNode.insertBefore( elem, this.nextSibling );
-                       });
-               } else if ( arguments.length ) {
-                       var set = this.pushStack( this, "after", arguments );
-                       set.push.apply( set, jQuery(arguments[0]).toArray() );
-                       return set;
-               }
-       },
-
-       // keepData is for internal use only--do not document
-       remove: function( selector, keepData ) {
-               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
-                       if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
-                               if ( !keepData && elem.nodeType === 1 ) {
-                                       jQuery.cleanData( elem.getElementsByTagName("*") );
-                                       jQuery.cleanData( [ elem ] );
-                               }
-
-                               if ( elem.parentNode ) {
-                                       elem.parentNode.removeChild( elem );
-                               }
-                       }
-               }
-
-               return this;
-       },
-
-       empty: function() {
-               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
-                       // Remove element nodes and prevent memory leaks
-                       if ( elem.nodeType === 1 ) {
-                               jQuery.cleanData( elem.getElementsByTagName("*") );
-                       }
-
-                       // Remove any remaining nodes
-                       while ( elem.firstChild ) {
-                               elem.removeChild( elem.firstChild );
-                       }
-               }
-
-               return this;
-       },
-
-       clone: function( dataAndEvents, deepDataAndEvents ) {
-               dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
-               deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
-
-               return this.map( function () {
-                       return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
-               });
-       },
-
-       html: function( value ) {
-               if ( value === undefined ) {
-                       return this[0] && this[0].nodeType === 1 ?
-                               this[0].innerHTML.replace(rinlinejQuery, "") :
-                               null;
-
-               // See if we can take a shortcut and just use innerHTML
-               } else if ( typeof value === "string" && !rnocache.test( value ) &&
-                       (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
-                       !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
-
-                       value = value.replace(rxhtmlTag, "<$1></$2>");
-
-                       try {
-                               for ( var i = 0, l = this.length; i < l; i++ ) {
-                                       // Remove element nodes and prevent memory leaks
-                                       if ( this[i].nodeType === 1 ) {
-                                               jQuery.cleanData( this[i].getElementsByTagName("*") );
-                                               this[i].innerHTML = value;
-                                       }
-                               }
-
-                       // If using innerHTML throws an exception, use the fallback method
-                       } catch(e) {
-                               this.empty().append( value );
-                       }
-
-               } else if ( jQuery.isFunction( value ) ) {
-                       this.each(function(i){
-                               var self = jQuery( this );
-
-                               self.html( value.call(this, i, self.html()) );
-                       });
-
-               } else {
-                       this.empty().append( value );
-               }
-
-               return this;
-       },
-
-       replaceWith: function( value ) {
-               if ( this[0] && this[0].parentNode ) {
-                       // Make sure that the elements are removed from the DOM before they are inserted
-                       // this can help fix replacing a parent with child elements
-                       if ( jQuery.isFunction( value ) ) {
-                               return this.each(function(i) {
-                                       var self = jQuery(this), old = self.html();
-                                       self.replaceWith( value.call( this, i, old ) );
-                               });
-                       }
-
-                       if ( typeof value !== "string" ) {
-                               value = jQuery( value ).detach();
-                       }
-
-                       return this.each(function() {
-                               var next = this.nextSibling,
-                                       parent = this.parentNode;
-
-                               jQuery( this ).remove();
-
-                               if ( next ) {
-                                       jQuery(next).before( value );
-                               } else {
-                                       jQuery(parent).append( value );
-                               }
-                       });
-               } else {
-                       return this.length ?
-                               this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
-                               this;
-               }
-       },
-
-       detach: function( selector ) {
-               return this.remove( selector, true );
-       },
-
-       domManip: function( args, table, callback ) {
-               var results, first, fragment, parent,
-                       value = args[0],
-                       scripts = [];
-
-               // We can't cloneNode fragments that contain checked, in WebKit
-               if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
-                       return this.each(function() {
-                               jQuery(this).domManip( args, table, callback, true );
-                       });
-               }
-
-               if ( jQuery.isFunction(value) ) {
-                       return this.each(function(i) {
-                               var self = jQuery(this);
-                               args[0] = value.call(this, i, table ? self.html() : undefined);
-                               self.domManip( args, table, callback );
-                       });
-               }
-
-               if ( this[0] ) {
-                       parent = value && value.parentNode;
-
-                       // If we're in a fragment, just use that instead of building a new one
-                       if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
-                               results = { fragment: parent };
-
-                       } else {
-                               results = jQuery.buildFragment( args, this, scripts );
-                       }
-
-                       fragment = results.fragment;
-
-                       if ( fragment.childNodes.length === 1 ) {
-                               first = fragment = fragment.firstChild;
-                       } else {
-                               first = fragment.firstChild;
-                       }
-
-                       if ( first ) {
-                               table = table && jQuery.nodeName( first, "tr" );
-
-                               for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
-                                       callback.call(
-                                               table ?
-                                                       root(this[i], first) :
-                                                       this[i],
-                                               // Make sure that we do not leak memory by inadvertently discarding
-                                               // the original fragment (which might have attached data) instead of
-                                               // using it; in addition, use the original fragment object for the last
-                                               // item instead of first because it can end up being emptied incorrectly
-                                               // in certain situations (Bug #8070).
-                                               // Fragments from the fragment cache must always be cloned and never used
-                                               // in place.
-                                               results.cacheable || (l > 1 && i < lastIndex) ?
-                                                       jQuery.clone( fragment, true, true ) :
-                                                       fragment
-                                       );
-                               }
-                       }
-
-                       if ( scripts.length ) {
-                               jQuery.each( scripts, evalScript );
-                       }
-               }
-
-               return this;
-       }
-});
-
-function root( elem, cur ) {
-       return jQuery.nodeName(elem, "table") ?
-               (elem.getElementsByTagName("tbody")[0] ||
-               elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
-               elem;
-}
-
-function cloneCopyEvent( src, dest ) {
-
-       if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
-               return;
-       }
-
-       var internalKey = jQuery.expando,
-               oldData = jQuery.data( src ),
-               curData = jQuery.data( dest, oldData );
-
-       // Switch to use the internal data object, if it exists, for the next
-       // stage of data copying
-       if ( (oldData = oldData[ internalKey ]) ) {
-               var events = oldData.events;
-                               curData = curData[ internalKey ] = jQuery.extend({}, oldData);
-
-               if ( events ) {
-                       delete curData.handle;
-                       curData.events = {};
-
-                       for ( var type in events ) {
-                               for ( var i = 0, l = events[ type ].length; i < l; i++ ) {
-                                       jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
-                               }
-                       }
-               }
-       }
-}
-
-function cloneFixAttributes( src, dest ) {
-       var nodeName;
-
-       // We do not need to do anything for non-Elements
-       if ( dest.nodeType !== 1 ) {
-               return;
-       }
-
-       // clearAttributes removes the attributes, which we don't want,
-       // but also removes the attachEvent events, which we *do* want
-       if ( dest.clearAttributes ) {
-               dest.clearAttributes();
-       }
-
-       // mergeAttributes, in contrast, only merges back on the
-       // original attributes, not the events
-       if ( dest.mergeAttributes ) {
-               dest.mergeAttributes( src );
-       }
-
-       nodeName = dest.nodeName.toLowerCase();
-
-       // IE6-8 fail to clone children inside object elements that use
-       // the proprietary classid attribute value (rather than the type
-       // attribute) to identify the type of content to display
-       if ( nodeName === "object" ) {
-               dest.outerHTML = src.outerHTML;
-
-       } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
-               // IE6-8 fails to persist the checked state of a cloned checkbox
-               // or radio button. Worse, IE6-7 fail to give the cloned element
-               // a checked appearance if the defaultChecked value isn't also set
-               if ( src.checked ) {
-                       dest.defaultChecked = dest.checked = src.checked;
-               }
-
-               // IE6-7 get confused and end up setting the value of a cloned
-               // checkbox/radio button to an empty string instead of "on"
-               if ( dest.value !== src.value ) {
-                       dest.value = src.value;
-               }
-
-       // IE6-8 fails to return the selected option to the default selected
-       // state when cloning options
-       } else if ( nodeName === "option" ) {
-               dest.selected = src.defaultSelected;
-
-       // IE6-8 fails to set the defaultValue to the correct value when
-       // cloning other types of input fields
-       } else if ( nodeName === "input" || nodeName === "textarea" ) {
-               dest.defaultValue = src.defaultValue;
-       }
-
-       // Event data gets referenced instead of copied if the expando
-       // gets copied too
-       dest.removeAttribute( jQuery.expando );
-}
-
-jQuery.buildFragment = function( args, nodes, scripts ) {
-       var fragment, cacheable, cacheresults, doc;
-
-  // nodes may contain either an explicit document object,
-  // a jQuery collection or context object.
-  // If nodes[0] contains a valid object to assign to doc
-  if ( nodes && nodes[0] ) {
-    doc = nodes[0].ownerDocument || nodes[0];
-  }
-
-  // Ensure that an attr object doesn't incorrectly stand in as a document object
-       // Chrome and Firefox seem to allow this to occur and will throw exception
-       // Fixes #8950
-       if ( !doc.createDocumentFragment ) {
-               doc = document;
-       }
-
-       // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
-       // Cloning options loses the selected state, so don't cache them
-       // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
-       // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
-       if ( args.length === 1 && typeof args[0] === "string" && args[0].length < 512 && doc === document &&
-               args[0].charAt(0) === "<" && !rnocache.test( args[0] ) && (jQuery.support.checkClone || !rchecked.test( args[0] )) ) {
-
-               cacheable = true;
-
-               cacheresults = jQuery.fragments[ args[0] ];
-               if ( cacheresults && cacheresults !== 1 ) {
-                       fragment = cacheresults;
-               }
-       }
-
-       if ( !fragment ) {
-               fragment = doc.createDocumentFragment();
-               jQuery.clean( args, doc, fragment, scripts );
-       }
-
-       if ( cacheable ) {
-               jQuery.fragments[ args[0] ] = cacheresults ? fragment : 1;
-       }
-
-       return { fragment: fragment, cacheable: cacheable };
-};
-
-jQuery.fragments = {};
-
-jQuery.each({
-       appendTo: "append",
-       prependTo: "prepend",
-       insertBefore: "before",
-       insertAfter: "after",
-       replaceAll: "replaceWith"
-}, function( name, original ) {
-       jQuery.fn[ name ] = function( selector ) {
-               var ret = [],
-                       insert = jQuery( selector ),
-                       parent = this.length === 1 && this[0].parentNode;
-
-               if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
-                       insert[ original ]( this[0] );
-                       return this;
-
-               } else {
-                       for ( var i = 0, l = insert.length; i < l; i++ ) {
-                               var elems = (i > 0 ? this.clone(true) : this).get();
-                               jQuery( insert[i] )[ original ]( elems );
-                               ret = ret.concat( elems );
-                       }
-
-                       return this.pushStack( ret, name, insert.selector );
-               }
-       };
-});
-
-function getAll( elem ) {
-       if ( "getElementsByTagName" in elem ) {
-               return elem.getElementsByTagName( "*" );
-
-       } else if ( "querySelectorAll" in elem ) {
-               return elem.querySelectorAll( "*" );
-
-       } else {
-               return [];
-       }
-}
-
-// Used in clean, fixes the defaultChecked property
-function fixDefaultChecked( elem ) {
-       if ( elem.type === "checkbox" || elem.type === "radio" ) {
-               elem.defaultChecked = elem.checked;
-       }
-}
-// Finds all inputs and passes them to fixDefaultChecked
-function findInputs( elem ) {
-       if ( jQuery.nodeName( elem, "input" ) ) {
-               fixDefaultChecked( elem );
-       } else if ( "getElementsByTagName" in elem ) {
-               jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
-       }
-}
-
-jQuery.extend({
-       clone: function( elem, dataAndEvents, deepDataAndEvents ) {
-               var clone = elem.cloneNode(true),
-                               srcElements,
-                               destElements,
-                               i;
-
-               if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
-                               (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
-                       // IE copies events bound via attachEvent when using cloneNode.
-                       // Calling detachEvent on the clone will also remove the events
-                       // from the original. In order to get around this, we use some
-                       // proprietary methods to clear the events. Thanks to MooTools
-                       // guys for this hotness.
-
-                       cloneFixAttributes( elem, clone );
-
-                       // Using Sizzle here is crazy slow, so we use getElementsByTagName
-                       // instead
-                       srcElements = getAll( elem );
-                       destElements = getAll( clone );
-
-                       // Weird iteration because IE will replace the length property
-                       // with an element if you are cloning the body and one of the
-                       // elements on the page has a name or id of "length"
-                       for ( i = 0; srcElements[i]; ++i ) {
-                               // Ensure that the destination node is not null; Fixes #9587
-                               if ( destElements[i] ) {
-                                       cloneFixAttributes( srcElements[i], destElements[i] );
-                               }
-                       }
-               }
-
-               // Copy the events from the original to the clone
-               if ( dataAndEvents ) {
-                       cloneCopyEvent( elem, clone );
-
-                       if ( deepDataAndEvents ) {
-                               srcElements = getAll( elem );
-                               destElements = getAll( clone );
-
-                               for ( i = 0; srcElements[i]; ++i ) {
-                                       cloneCopyEvent( srcElements[i], destElements[i] );
-                               }
-                       }
-               }
-
-               srcElements = destElements = null;
-
-               // Return the cloned set
-               return clone;
-       },
-
-       clean: function( elems, context, fragment, scripts ) {
-               var checkScriptType;
-
-               context = context || document;
-
-               // !context.createElement fails in IE with an error but returns typeof 'object'
-               if ( typeof context.createElement === "undefined" ) {
-                       context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
-               }
-
-               var ret = [], j;
-
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       if ( typeof elem === "number" ) {
-                               elem += "";
-                       }
-
-                       if ( !elem ) {
-                               continue;
-                       }
-
-                       // Convert html string into DOM nodes
-                       if ( typeof elem === "string" ) {
-                               if ( !rhtml.test( elem ) ) {
-                                       elem = context.createTextNode( elem );
-                               } else {
-                                       // Fix "XHTML"-style tags in all browsers
-                                       elem = elem.replace(rxhtmlTag, "<$1></$2>");
-
-                                       // Trim whitespace, otherwise indexOf won't work as expected
-                                       var tag = (rtagName.exec( elem ) || ["", ""])[1].toLowerCase(),
-                                               wrap = wrapMap[ tag ] || wrapMap._default,
-                                               depth = wrap[0],
-                                               div = context.createElement("div");
-
-                                       // Go to html and back, then peel off extra wrappers
-                                       div.innerHTML = wrap[1] + elem + wrap[2];
-
-                                       // Move to the right depth
-                                       while ( depth-- ) {
-                                               div = div.lastChild;
-                                       }
-
-                                       // Remove IE's autoinserted <tbody> from table fragments
-                                       if ( !jQuery.support.tbody ) {
-
-                                               // String was a <table>, *may* have spurious <tbody>
-                                               var hasBody = rtbody.test(elem),
-                                                       tbody = tag === "table" && !hasBody ?
-                                                               div.firstChild && div.firstChild.childNodes :
-
-                                                               // String was a bare <thead> or <tfoot>
-                                                               wrap[1] === "<table>" && !hasBody ?
-                                                                       div.childNodes :
-                                                                       [];
-
-                                               for ( j = tbody.length - 1; j >= 0 ; --j ) {
-                                                       if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
-                                                               tbody[ j ].parentNode.removeChild( tbody[ j ] );
-                                                       }
-                                               }
-                                       }
-
-                                       // IE completely kills leading whitespace when innerHTML is used
-                                       if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
-                                               div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
-                                       }
-
-                                       elem = div.childNodes;
-                               }
-                       }
-
-                       // Resets defaultChecked for any radios and checkboxes
-                       // about to be appended to the DOM in IE 6/7 (#8060)
-                       var len;
-                       if ( !jQuery.support.appendChecked ) {
-                               if ( elem[0] && typeof (len = elem.length) === "number" ) {
-                                       for ( j = 0; j < len; j++ ) {
-                                               findInputs( elem[j] );
-                                       }
-                               } else {
-                                       findInputs( elem );
-                               }
-                       }
-
-                       if ( elem.nodeType ) {
-                               ret.push( elem );
-                       } else {
-                               ret = jQuery.merge( ret, elem );
-                       }
-               }
-
-               if ( fragment ) {
-                       checkScriptType = function( elem ) {
-                               return !elem.type || rscriptType.test( elem.type );
-                       };
-                       for ( i = 0; ret[i]; i++ ) {
-                               if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
-                                       scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
-
-                               } else {
-                                       if ( ret[i].nodeType === 1 ) {
-                                               var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );
-
-                                               ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
-                                       }
-                                       fragment.appendChild( ret[i] );
-                               }
-                       }
-               }
-
-               return ret;
-       },
-
-       cleanData: function( elems ) {
-               var data, id, cache = jQuery.cache, internalKey = jQuery.expando, special = jQuery.event.special,
-                       deleteExpando = jQuery.support.deleteExpando;
-
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
-                               continue;
-                       }
-
-                       id = elem[ jQuery.expando ];
-
-                       if ( id ) {
-                               data = cache[ id ] && cache[ id ][ internalKey ];
-
-                               if ( data && data.events ) {
-                                       for ( var type in data.events ) {
-                                               if ( special[ type ] ) {
-                                                       jQuery.event.remove( elem, type );
-
-                                               // This is a shortcut to avoid jQuery.event.remove's overhead
-                                               } else {
-                                                       jQuery.removeEvent( elem, type, data.handle );
-                                               }
-                                       }
-
-                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)
-                                       if ( data.handle ) {
-                                               data.handle.elem = null;
-                                       }
-                               }
-
-                               if ( deleteExpando ) {
-                                       delete elem[ jQuery.expando ];
-
-                               } else if ( elem.removeAttribute ) {
-                                       elem.removeAttribute( jQuery.expando );
-                               }
-
-                               delete cache[ id ];
-                       }
-               }
-       }
-});
-
-function evalScript( i, elem ) {
-       if ( elem.src ) {
-               jQuery.ajax({
-                       url: elem.src,
-                       async: false,
-                       dataType: "script"
-               });
-       } else {
-               jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
-       }
-
-       if ( elem.parentNode ) {
-               elem.parentNode.removeChild( elem );
-       }
-}
-
-
-
-
-var ralpha = /alpha\([^)]*\)/i,
-       ropacity = /opacity=([^)]*)/,
-       // fixed for IE9, see #8346
-       rupper = /([A-Z]|^ms)/g,
-       rnumpx = /^-?\d+(?:px)?$/i,
-       rnum = /^-?\d/,
-       rrelNum = /^([\-+])=([\-+.\de]+)/,
-
-       cssShow = { position: "absolute", visibility: "hidden", display: "block" },
-       cssWidth = [ "Left", "Right" ],
-       cssHeight = [ "Top", "Bottom" ],
-       curCSS,
-
-       getComputedStyle,
-       currentStyle;
-
-jQuery.fn.css = function( name, value ) {
-       // Setting 'undefined' is a no-op
-       if ( arguments.length === 2 && value === undefined ) {
-               return this;
-       }
-
-       return jQuery.access( this, name, value, true, function( elem, name, value ) {
-               return value !== undefined ?
-                       jQuery.style( elem, name, value ) :
-                       jQuery.css( elem, name );
-       });
-};
-
-jQuery.extend({
-       // Add in style property hooks for overriding the default
-       // behavior of getting and setting a style property
-       cssHooks: {
-               opacity: {
-                       get: function( elem, computed ) {
-                               if ( computed ) {
-                                       // We should always get a number back from opacity
-                                       var ret = curCSS( elem, "opacity", "opacity" );
-                                       return ret === "" ? "1" : ret;
-
-                               } else {
-                                       return elem.style.opacity;
-                               }
-                       }
-               }
-       },
-
-       // Exclude the following css properties to add px
-       cssNumber: {
-               "fillOpacity": true,
-               "fontWeight": true,
-               "lineHeight": true,
-               "opacity": true,
-               "orphans": true,
-               "widows": true,
-               "zIndex": true,
-               "zoom": true
-       },
-
-       // Add in properties whose names you wish to fix before
-       // setting or getting the value
-       cssProps: {
-               // normalize float css property
-               "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
-       },
-
-       // Get and set the style property on a DOM Node
-       style: function( elem, name, value, extra ) {
-               // Don't set styles on text and comment nodes
-               if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
-                       return;
-               }
-
-               // Make sure that we're working with the right name
-               var ret, type, origName = jQuery.camelCase( name ),
-                       style = elem.style, hooks = jQuery.cssHooks[ origName ];
-
-               name = jQuery.cssProps[ origName ] || origName;
-
-               // Check if we're setting a value
-               if ( value !== undefined ) {
-                       type = typeof value;
-
-                       // convert relative number strings (+= or -=) to relative numbers. #7345
-                       if ( type === "string" && (ret = rrelNum.exec( value )) ) {
-                               value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
-                               // Fixes bug #9237
-                               type = "number";
-                       }
-
-                       // Make sure that NaN and null values aren't set. See: #7116
-                       if ( value == null || type === "number" && isNaN( value ) ) {
-                               return;
-                       }
-
-                       // If a number was passed in, add 'px' to the (except for certain CSS properties)
-                       if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
-                               value += "px";
-                       }
-
-                       // If a hook was provided, use that value, otherwise just set the specified value
-                       if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
-                               // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
-                               // Fixes bug #5509
-                               try {
-                                       style[ name ] = value;
-                               } catch(e) {}
-                       }
-
-               } else {
-                       // If a hook was provided get the non-computed value from there
-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
-                               return ret;
-                       }
-
-                       // Otherwise just get the value from the style object
-                       return style[ name ];
-               }
-       },
-
-       css: function( elem, name, extra ) {
-               var ret, hooks;
-
-               // Make sure that we're working with the right name
-               name = jQuery.camelCase( name );
-               hooks = jQuery.cssHooks[ name ];
-               name = jQuery.cssProps[ name ] || name;
-
-               // cssFloat needs a special treatment
-               if ( name === "cssFloat" ) {
-                       name = "float";
-               }
-
-               // If a hook was provided get the computed value from there
-               if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
-                       return ret;
-
-               // Otherwise, if a way to get the computed value exists, use that
-               } else if ( curCSS ) {
-                       return curCSS( elem, name );
-               }
-       },
-
-       // A method for quickly swapping in/out CSS properties to get correct calculations
-       swap: function( elem, options, callback ) {
-               var old = {};
-
-               // Remember the old values, and insert the new ones
-               for ( var name in options ) {
-                       old[ name ] = elem.style[ name ];
-                       elem.style[ name ] = options[ name ];
-               }
-
-               callback.call( elem );
-
-               // Revert the old values
-               for ( name in options ) {
-                       elem.style[ name ] = old[ name ];
-               }
-       }
-});
-
-// DEPRECATED, Use jQuery.css() instead
-jQuery.curCSS = jQuery.css;
-
-jQuery.each(["height", "width"], function( i, name ) {
-       jQuery.cssHooks[ name ] = {
-               get: function( elem, computed, extra ) {
-                       var val;
-
-                       if ( computed ) {
-                               if ( elem.offsetWidth !== 0 ) {
-                                       return getWH( elem, name, extra );
-                               } else {
-                                       jQuery.swap( elem, cssShow, function() {
-                                               val = getWH( elem, name, extra );
-                                       });
-                               }
-
-                               return val;
-                       }
-               },
-
-               set: function( elem, value ) {
-                       if ( rnumpx.test( value ) ) {
-                               // ignore negative width and height values #1599
-                               value = parseFloat( value );
-
-                               if ( value >= 0 ) {
-                                       return value + "px";
-                               }
-
-                       } else {
-                               return value;
-                       }
-               }
-       };
-});
-
-if ( !jQuery.support.opacity ) {
-       jQuery.cssHooks.opacity = {
-               get: function( elem, computed ) {
-                       // IE uses filters for opacity
-                       return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
-                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :
-                               computed ? "1" : "";
-               },
-
-               set: function( elem, value ) {
-                       var style = elem.style,
-                               currentStyle = elem.currentStyle,
-                               opacity = jQuery.isNaN( value ) ? "" : "alpha(opacity=" + value * 100 + ")",
-                               filter = currentStyle && currentStyle.filter || style.filter || "";
-
-                       // IE has trouble with opacity if it does not have layout
-                       // Force it by setting the zoom level
-                       style.zoom = 1;
-
-                       // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
-                       if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
-
-                               // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
-                               // if "filter:" is present at all, clearType is disabled, we want to avoid this
-                               // style.removeAttribute is IE Only, but so apparently is this code path...
-                               style.removeAttribute( "filter" );
-
-                               // if there there is no filter style applied in a css rule, we are done
-                               if ( currentStyle && !currentStyle.filter ) {
-                                       return;
-                               }
-                       }
-
-                       // otherwise, set new filter values
-                       style.filter = ralpha.test( filter ) ?
-                               filter.replace( ralpha, opacity ) :
-                               filter + " " + opacity;
-               }
-       };
-}
-
-jQuery(function() {
-       // This hook cannot be added until DOM ready because the support test
-       // for it is not run until after DOM ready
-       if ( !jQuery.support.reliableMarginRight ) {
-               jQuery.cssHooks.marginRight = {
-                       get: function( elem, computed ) {
-                               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
-                               // Work around by temporarily setting element display to inline-block
-                               var ret;
-                               jQuery.swap( elem, { "display": "inline-block" }, function() {
-                                       if ( computed ) {
-                                               ret = curCSS( elem, "margin-right", "marginRight" );
-                                       } else {
-                                               ret = elem.style.marginRight;
-                                       }
-                               });
-                               return ret;
-                       }
-               };
-       }
-});
-
-if ( document.defaultView && document.defaultView.getComputedStyle ) {
-       getComputedStyle = function( elem, name ) {
-               var ret, defaultView, computedStyle;
-
-               name = name.replace( rupper, "-$1" ).toLowerCase();
-
-               if ( !(defaultView = elem.ownerDocument.defaultView) ) {
-                       return undefined;
-               }
-
-               if ( (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
-                       ret = computedStyle.getPropertyValue( name );
-                       if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
-                               ret = jQuery.style( elem, name );
-                       }
-               }
-
-               return ret;
-       };
-}
-
-if ( document.documentElement.currentStyle ) {
-       currentStyle = function( elem, name ) {
-               var left,
-                       ret = elem.currentStyle && elem.currentStyle[ name ],
-                       rsLeft = elem.runtimeStyle && elem.runtimeStyle[ name ],
-                       style = elem.style;
-
-               // From the awesome hack by Dean Edwards
-               // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
-
-               // If we're not dealing with a regular pixel number
-               // but a number that has a weird ending, we need to convert it to pixels
-               if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
-                       // Remember the original values
-                       left = style.left;
-
-                       // Put in the new values to get a computed value out
-                       if ( rsLeft ) {
-                               elem.runtimeStyle.left = elem.currentStyle.left;
-                       }
-                       style.left = name === "fontSize" ? "1em" : (ret || 0);
-                       ret = style.pixelLeft + "px";
-
-                       // Revert the changed values
-                       style.left = left;
-                       if ( rsLeft ) {
-                               elem.runtimeStyle.left = rsLeft;
-                       }
-               }
-
-               return ret === "" ? "auto" : ret;
-       };
-}
-
-curCSS = getComputedStyle || currentStyle;
-
-function getWH( elem, name, extra ) {
-
-       // Start with offset property
-       var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
-               which = name === "width" ? cssWidth : cssHeight;
-
-       if ( val > 0 ) {
-               if ( extra !== "border" ) {
-                       jQuery.each( which, function() {
-                               if ( !extra ) {
-                                       val -= parseFloat( jQuery.css( elem, "padding" + this ) ) || 0;
-                               }
-                               if ( extra === "margin" ) {
-                                       val += parseFloat( jQuery.css( elem, extra + this ) ) || 0;
-                               } else {
-                                       val -= parseFloat( jQuery.css( elem, "border" + this + "Width" ) ) || 0;
-                               }
-                       });
-               }
-
-               return val + "px";
-       }
-
-       // Fall back to computed then uncomputed css if necessary
-       val = curCSS( elem, name, name );
-       if ( val < 0 || val == null ) {
-               val = elem.style[ name ] || 0;
-       }
-       // Normalize "", auto, and prepare for extra
-       val = parseFloat( val ) || 0;
-
-       // Add padding, border, margin
-       if ( extra ) {
-               jQuery.each( which, function() {
-                       val += parseFloat( jQuery.css( elem, "padding" + this ) ) || 0;
-                       if ( extra !== "padding" ) {
-                               val += parseFloat( jQuery.css( elem, "border" + this + "Width" ) ) || 0;
-                       }
-                       if ( extra === "margin" ) {
-                               val += parseFloat( jQuery.css( elem, extra + this ) ) || 0;
-                       }
-               });
-       }
-
-       return val + "px";
-}
-
-if ( jQuery.expr && jQuery.expr.filters ) {
-       jQuery.expr.filters.hidden = function( elem ) {
-               var width = elem.offsetWidth,
-                       height = elem.offsetHeight;
-
-               return (width === 0 && height === 0) || (!jQuery.support.reliableHiddenOffsets && (elem.style.display || jQuery.css( elem, "display" )) === "none");
-       };
-
-       jQuery.expr.filters.visible = function( elem ) {
-               return !jQuery.expr.filters.hidden( elem );
-       };
-}
-
-
-
-
-var r20 = /%20/g,
-       rbracket = /\[\]$/,
-       rCRLF = /\r?\n/g,
-       rhash = /#.*$/,
-       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
-       rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
-       // #7653, #8125, #8152: local protocol detection
-       rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
-       rnoContent = /^(?:GET|HEAD)$/,
-       rprotocol = /^\/\//,
-       rquery = /\?/,
-       rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
-       rselectTextarea = /^(?:select|textarea)/i,
-       rspacesAjax = /\s+/,
-       rts = /([?&])_=[^&]*/,
-       rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
-
-       // Keep a copy of the old load method
-       _load = jQuery.fn.load,
-
-       /* Prefilters
-        * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
-        * 2) These are called:
-        *    - BEFORE asking for a transport
-        *    - AFTER param serialization (s.data is a string if s.processData is true)
-        * 3) key is the dataType
-        * 4) the catchall symbol "*" can be used
-        * 5) execution will start with transport dataType and THEN continue down to "*" if needed
-        */
-       prefilters = {},
-
-       /* Transports bindings
-        * 1) key is the dataType
-        * 2) the catchall symbol "*" can be used
-        * 3) selection will start with transport dataType and THEN go to "*" if needed
-        */
-       transports = {},
-
-       // Document location
-       ajaxLocation,
-
-       // Document location segments
-       ajaxLocParts,
-       
-       // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
-       allTypes = ["*/"] + ["*"];
-
-// #8138, IE may throw an exception when accessing
-// a field from window.location if document.domain has been set
-try {
-       ajaxLocation = location.href;
-} catch( e ) {
-       // Use the href attribute of an A element
-       // since IE will modify it given document.location
-       ajaxLocation = document.createElement( "a" );
-       ajaxLocation.href = "";
-       ajaxLocation = ajaxLocation.href;
-}
-
-// Segment location into parts
-ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
-
-// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
-function addToPrefiltersOrTransports( structure ) {
-
-       // dataTypeExpression is optional and defaults to "*"
-       return function( dataTypeExpression, func ) {
-
-               if ( typeof dataTypeExpression !== "string" ) {
-                       func = dataTypeExpression;
-                       dataTypeExpression = "*";
-               }
-
-               if ( jQuery.isFunction( func ) ) {
-                       var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
-                               i = 0,
-                               length = dataTypes.length,
-                               dataType,
-                               list,
-                               placeBefore;
-
-                       // For each dataType in the dataTypeExpression
-                       for(; i < length; i++ ) {
-                               dataType = dataTypes[ i ];
-                               // We control if we're asked to add before
-                               // any existing element
-                               placeBefore = /^\+/.test( dataType );
-                               if ( placeBefore ) {
-                                       dataType = dataType.substr( 1 ) || "*";
-                               }
-                               list = structure[ dataType ] = structure[ dataType ] || [];
-                               // then we add to the structure accordingly
-                               list[ placeBefore ? "unshift" : "push" ]( func );
-                       }
-               }
-       };
-}
-
-// Base inspection function for prefilters and transports
-function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
-               dataType /* internal */, inspected /* internal */ ) {
-
-       dataType = dataType || options.dataTypes[ 0 ];
-       inspected = inspected || {};
-
-       inspected[ dataType ] = true;
-
-       var list = structure[ dataType ],
-               i = 0,
-               length = list ? list.length : 0,
-               executeOnly = ( structure === prefilters ),
-               selection;
-
-       for(; i < length && ( executeOnly || !selection ); i++ ) {
-               selection = list[ i ]( options, originalOptions, jqXHR );
-               // If we got redirected to another dataType
-               // we try there if executing only and not done already
-               if ( typeof selection === "string" ) {
-                       if ( !executeOnly || inspected[ selection ] ) {
-                               selection = undefined;
-                       } else {
-                               options.dataTypes.unshift( selection );
-                               selection = inspectPrefiltersOrTransports(
-                                               structure, options, originalOptions, jqXHR, selection, inspected );
-                       }
-               }
-       }
-       // If we're only executing or nothing was selected
-       // we try the catchall dataType if not done already
-       if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
-               selection = inspectPrefiltersOrTransports(
-                               structure, options, originalOptions, jqXHR, "*", inspected );
-       }
-       // unnecessary when only executing (prefilters)
-       // but it'll be ignored by the caller in that case
-       return selection;
-}
-
-// A special extend for ajax options
-// that takes "flat" options (not to be deep extended)
-// Fixes #9887
-function ajaxExtend( target, src ) {
-       var key, deep,
-               flatOptions = jQuery.ajaxSettings.flatOptions || {};
-       for( key in src ) {
-               if ( src[ key ] !== undefined ) {
-                       ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
-               }
-       }
-       if ( deep ) {
-               jQuery.extend( true, target, deep );
-       }
-}
-
-jQuery.fn.extend({
-       load: function( url, params, callback ) {
-               if ( typeof url !== "string" && _load ) {
-                       return _load.apply( this, arguments );
-
-               // Don't do a request if no elements are being requested
-               } else if ( !this.length ) {
-                       return this;
-               }
-
-               var off = url.indexOf( " " );
-               if ( off >= 0 ) {
-                       var selector = url.slice( off, url.length );
-                       url = url.slice( 0, off );
-               }
-
-               // Default to a GET request
-               var type = "GET";
-
-               // If the second parameter was provided
-               if ( params ) {
-                       // If it's a function
-                       if ( jQuery.isFunction( params ) ) {
-                               // We assume that it's the callback
-                               callback = params;
-                               params = undefined;
-
-                       // Otherwise, build a param string
-                       } else if ( typeof params === "object" ) {
-                               params = jQuery.param( params, jQuery.ajaxSettings.traditional );
-                               type = "POST";
-                       }
-               }
-
-               var self = this;
-
-               // Request the remote document
-               jQuery.ajax({
-                       url: url,
-                       type: type,
-                       dataType: "html",
-                       data: params,
-                       // Complete callback (responseText is used internally)
-                       complete: function( jqXHR, status, responseText ) {
-                               // Store the response as specified by the jqXHR object
-                               responseText = jqXHR.responseText;
-                               // If successful, inject the HTML into all the matched elements
-                               if ( jqXHR.isResolved() ) {
-                                       // #4825: Get the actual response in case
-                                       // a dataFilter is present in ajaxSettings
-                                       jqXHR.done(function( r ) {
-                                               responseText = r;
-                                       });
-                                       // See if a selector was specified
-                                       self.html( selector ?
-                                               // Create a dummy div to hold the results
-                                               jQuery("<div>")
-                                                       // inject the contents of the document in, removing the scripts
-                                                       // to avoid any 'Permission Denied' errors in IE
-                                                       .append(responseText.replace(rscript, ""))
-
-                                                       // Locate the specified elements
-                                                       .find(selector) :
-
-                                               // If not, just inject the full result
-                                               responseText );
-                               }
-
-                               if ( callback ) {
-                                       self.each( callback, [ responseText, status, jqXHR ] );
-                               }
-                       }
-               });
-
-               return this;
-       },
-
-       serialize: function() {
-               return jQuery.param( this.serializeArray() );
-       },
-
-       serializeArray: function() {
-               return this.map(function(){
-                       return this.elements ? jQuery.makeArray( this.elements ) : this;
-               })
-               .filter(function(){
-                       return this.name && !this.disabled &&
-                               ( this.checked || rselectTextarea.test( this.nodeName ) ||
-                                       rinput.test( this.type ) );
-               })
-               .map(function( i, elem ){
-                       var val = jQuery( this ).val();
-
-                       return val == null ?
-                               null :
-                               jQuery.isArray( val ) ?
-                                       jQuery.map( val, function( val, i ){
-                                               return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-                                       }) :
-                                       { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
-               }).get();
-       }
-});
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
-       jQuery.fn[ o ] = function( f ){
-               return this.bind( o, f );
-       };
-});
-
-jQuery.each( [ "get", "post" ], function( i, method ) {
-       jQuery[ method ] = function( url, data, callback, type ) {
-               // shift arguments if data argument was omitted
-               if ( jQuery.isFunction( data ) ) {
-                       type = type || callback;
-                       callback = data;
-                       data = undefined;
-               }
-
-               return jQuery.ajax({
-                       type: method,
-                       url: url,
-                       data: data,
-                       success: callback,
-                       dataType: type
-               });
-       };
-});
-
-jQuery.extend({
-
-       getScript: function( url, callback ) {
-               return jQuery.get( url, undefined, callback, "script" );
-       },
-
-       getJSON: function( url, data, callback ) {
-               return jQuery.get( url, data, callback, "json" );
-       },
-
-       // Creates a full fledged settings object into target
-       // with both ajaxSettings and settings fields.
-       // If target is omitted, writes into ajaxSettings.
-       ajaxSetup: function( target, settings ) {
-               if ( settings ) {
-                       // Building a settings object
-                       ajaxExtend( target, jQuery.ajaxSettings );
-               } else {
-                       // Extending ajaxSettings
-                       settings = target;
-                       target = jQuery.ajaxSettings;
-               }
-               ajaxExtend( target, settings );
-               return target;
-       },
-
-       ajaxSettings: {
-               url: ajaxLocation,
-               isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
-               global: true,
-               type: "GET",
-               contentType: "application/x-www-form-urlencoded",
-               processData: true,
-               async: true,
-               /*
-               timeout: 0,
-               data: null,
-               dataType: null,
-               username: null,
-               password: null,
-               cache: null,
-               traditional: false,
-               headers: {},
-               */
-
-               accepts: {
-                       xml: "application/xml, text/xml",
-                       html: "text/html",
-                       text: "text/plain",
-                       json: "application/json, text/javascript",
-                       "*": allTypes
-               },
-
-               contents: {
-                       xml: /xml/,
-                       html: /html/,
-                       json: /json/
-               },
-
-               responseFields: {
-                       xml: "responseXML",
-                       text: "responseText"
-               },
-
-               // List of data converters
-               // 1) key format is "source_type destination_type" (a single space in-between)
-               // 2) the catchall symbol "*" can be used for source_type
-               converters: {
-
-                       // Convert anything to text
-                       "* text": window.String,
-
-                       // Text to html (true = no transformation)
-                       "text html": true,
-
-                       // Evaluate text as a json expression
-                       "text json": jQuery.parseJSON,
-
-                       // Parse text as xml
-                       "text xml": jQuery.parseXML
-               },
-
-               // For options that shouldn't be deep extended:
-               // you can add your own custom options here if
-               // and when you create one that shouldn't be
-               // deep extended (see ajaxExtend)
-               flatOptions: {
-                       context: true,
-                       url: true
-               }
-       },
-
-       ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
-       ajaxTransport: addToPrefiltersOrTransports( transports ),
-
-       // Main method
-       ajax: function( url, options ) {
-
-               // If url is an object, simulate pre-1.5 signature
-               if ( typeof url === "object" ) {
-                       options = url;
-                       url = undefined;
-               }
-
-               // Force options to be an object
-               options = options || {};
-
-               var // Create the final options object
-                       s = jQuery.ajaxSetup( {}, options ),
-                       // Callbacks context
-                       callbackContext = s.context || s,
-                       // Context for global events
-                       // It's the callbackContext if one was provided in the options
-                       // and if it's a DOM node or a jQuery collection
-                       globalEventContext = callbackContext !== s &&
-                               ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
-                                               jQuery( callbackContext ) : jQuery.event,
-                       // Deferreds
-                       deferred = jQuery.Deferred(),
-                       completeDeferred = jQuery._Deferred(),
-                       // Status-dependent callbacks
-                       statusCode = s.statusCode || {},
-                       // ifModified key
-                       ifModifiedKey,
-                       // Headers (they are sent all at once)
-                       requestHeaders = {},
-                       requestHeadersNames = {},
-                       // Response headers
-                       responseHeadersString,
-                       responseHeaders,
-                       // transport
-                       transport,
-                       // timeout handle
-                       timeoutTimer,
-                       // Cross-domain detection vars
-                       parts,
-                       // The jqXHR state
-                       state = 0,
-                       // To know if global events are to be dispatched
-                       fireGlobals,
-                       // Loop variable
-                       i,
-                       // Fake xhr
-                       jqXHR = {
-
-                               readyState: 0,
-
-                               // Caches the header
-                               setRequestHeader: function( name, value ) {
-                                       if ( !state ) {
-                                               var lname = name.toLowerCase();
-                                               name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
-                                               requestHeaders[ name ] = value;
-                                       }
-                                       return this;
-                               },
-
-                               // Raw string
-                               getAllResponseHeaders: function() {
-                                       return state === 2 ? responseHeadersString : null;
-                               },
-
-                               // Builds headers hashtable if needed
-                               getResponseHeader: function( key ) {
-                                       var match;
-                                       if ( state === 2 ) {
-                                               if ( !responseHeaders ) {
-                                                       responseHeaders = {};
-                                                       while( ( match = rheaders.exec( responseHeadersString ) ) ) {
-                                                               responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
-                                                       }
-                                               }
-                                               match = responseHeaders[ key.toLowerCase() ];
-                                       }
-                                       return match === undefined ? null : match;
-                               },
-
-                               // Overrides response content-type header
-                               overrideMimeType: function( type ) {
-                                       if ( !state ) {
-                                               s.mimeType = type;
-                                       }
-                                       return this;
-                               },
-
-                               // Cancel the request
-                               abort: function( statusText ) {
-                                       statusText = statusText || "abort";
-                                       if ( transport ) {
-                                               transport.abort( statusText );
-                                       }
-                                       done( 0, statusText );
-                                       return this;
-                               }
-                       };
-
-               // Callback for when everything is done
-               // It is defined here because jslint complains if it is declared
-               // at the end of the function (which would be more logical and readable)
-               function done( status, nativeStatusText, responses, headers ) {
-
-                       // Called once
-                       if ( state === 2 ) {
-                               return;
-                       }
-
-                       // State is "done" now
-                       state = 2;
-
-                       // Clear timeout if it exists
-                       if ( timeoutTimer ) {
-                               clearTimeout( timeoutTimer );
-                       }
-
-                       // Dereference transport for early garbage collection
-                       // (no matter how long the jqXHR object will be used)
-                       transport = undefined;
-
-                       // Cache response headers
-                       responseHeadersString = headers || "";
-
-                       // Set readyState
-                       jqXHR.readyState = status > 0 ? 4 : 0;
-
-                       var isSuccess,
-                               success,
-                               error,
-                               statusText = nativeStatusText,
-                               response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
-                               lastModified,
-                               etag;
-
-                       // If successful, handle type chaining
-                       if ( status >= 200 && status < 300 || status === 304 ) {
-
-                               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-                               if ( s.ifModified ) {
-
-                                       if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
-                                               jQuery.lastModified[ ifModifiedKey ] = lastModified;
-                                       }
-                                       if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
-                                               jQuery.etag[ ifModifiedKey ] = etag;
-                                       }
-                               }
-
-                               // If not modified
-                               if ( status === 304 ) {
-
-                                       statusText = "notmodified";
-                                       isSuccess = true;
-
-                               // If we have data
-                               } else {
-
-                                       try {
-                                               success = ajaxConvert( s, response );
-                                               statusText = "success";
-                                               isSuccess = true;
-                                       } catch(e) {
-                                               // We have a parsererror
-                                               statusText = "parsererror";
-                                               error = e;
-                                       }
-                               }
-                       } else {
-                               // We extract error from statusText
-                               // then normalize statusText and status for non-aborts
-                               error = statusText;
-                               if( !statusText || status ) {
-                                       statusText = "error";
-                                       if ( status < 0 ) {
-                                               status = 0;
-                                       }
-                               }
-                       }
-
-                       // Set data for the fake xhr object
-                       jqXHR.status = status;
-                       jqXHR.statusText = "" + ( nativeStatusText || statusText );
-
-                       // Success/Error
-                       if ( isSuccess ) {
-                               deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
-                       } else {
-                               deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
-                       }
-
-                       // Status-dependent callbacks
-                       jqXHR.statusCode( statusCode );
-                       statusCode = undefined;
-
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
-                                               [ jqXHR, s, isSuccess ? success : error ] );
-                       }
-
-                       // Complete
-                       completeDeferred.resolveWith( callbackContext, [ jqXHR, statusText ] );
-
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
-                               // Handle the global AJAX counter
-                               if ( !( --jQuery.active ) ) {
-                                       jQuery.event.trigger( "ajaxStop" );
-                               }
-                       }
-               }
-
-               // Attach deferreds
-               deferred.promise( jqXHR );
-               jqXHR.success = jqXHR.done;
-               jqXHR.error = jqXHR.fail;
-               jqXHR.complete = completeDeferred.done;
-
-               // Status-dependent callbacks
-               jqXHR.statusCode = function( map ) {
-                       if ( map ) {
-                               var tmp;
-                               if ( state < 2 ) {
-                                       for( tmp in map ) {
-                                               statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
-                                       }
-                               } else {
-                                       tmp = map[ jqXHR.status ];
-                                       jqXHR.then( tmp, tmp );
-                               }
-                       }
-                       return this;
-               };
-
-               // Remove hash character (#7531: and string promotion)
-               // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
-               // We also use the url parameter if available
-               s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
-
-               // Extract dataTypes list
-               s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
-
-               // Determine if a cross-domain request is in order
-               if ( s.crossDomain == null ) {
-                       parts = rurl.exec( s.url.toLowerCase() );
-                       s.crossDomain = !!( parts &&
-                               ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
-                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
-                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
-                       );
-               }
-
-               // Convert data if not already a string
-               if ( s.data && s.processData && typeof s.data !== "string" ) {
-                       s.data = jQuery.param( s.data, s.traditional );
-               }
-
-               // Apply prefilters
-               inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
-               // If request was aborted inside a prefiler, stop there
-               if ( state === 2 ) {
-                       return false;
-               }
-
-               // We can fire global events as of now if asked to
-               fireGlobals = s.global;
-
-               // Uppercase the type
-               s.type = s.type.toUpperCase();
-
-               // Determine if request has content
-               s.hasContent = !rnoContent.test( s.type );
-
-               // Watch for a new set of requests
-               if ( fireGlobals && jQuery.active++ === 0 ) {
-                       jQuery.event.trigger( "ajaxStart" );
-               }
-
-               // More options handling for requests with no content
-               if ( !s.hasContent ) {
-
-                       // If data is available, append data to url
-                       if ( s.data ) {
-                               s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
-                               // #9682: remove data so that it's not used in an eventual retry
-                               delete s.data;
-                       }
-
-                       // Get ifModifiedKey before adding the anti-cache parameter
-                       ifModifiedKey = s.url;
-
-                       // Add anti-cache in url if needed
-                       if ( s.cache === false ) {
-
-                               var ts = jQuery.now(),
-                                       // try replacing _= if it is there
-                                       ret = s.url.replace( rts, "$1_=" + ts );
-
-                               // if nothing was replaced, add timestamp to the end
-                               s.url = ret + ( (ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
-                       }
-               }
-
-               // Set the correct header, if data is being sent
-               if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
-                       jqXHR.setRequestHeader( "Content-Type", s.contentType );
-               }
-
-               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
-               if ( s.ifModified ) {
-                       ifModifiedKey = ifModifiedKey || s.url;
-                       if ( jQuery.lastModified[ ifModifiedKey ] ) {
-                               jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
-                       }
-                       if ( jQuery.etag[ ifModifiedKey ] ) {
-                               jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
-                       }
-               }
-
-               // Set the Accepts header for the server, depending on the dataType
-               jqXHR.setRequestHeader(
-                       "Accept",
-                       s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
-                               s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
-                               s.accepts[ "*" ]
-               );
-
-               // Check for headers option
-               for ( i in s.headers ) {
-                       jqXHR.setRequestHeader( i, s.headers[ i ] );
-               }
-
-               // Allow custom headers/mimetypes and early abort
-               if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
-                               // Abort if not done already
-                               jqXHR.abort();
-                               return false;
-
-               }
-
-               // Install callbacks on deferreds
-               for ( i in { success: 1, error: 1, complete: 1 } ) {
-                       jqXHR[ i ]( s[ i ] );
-               }
-
-               // Get transport
-               transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
-               // If no transport, we auto-abort
-               if ( !transport ) {
-                       done( -1, "No Transport" );
-               } else {
-                       jqXHR.readyState = 1;
-                       // Send global event
-                       if ( fireGlobals ) {
-                               globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
-                       }
-                       // Timeout
-                       if ( s.async && s.timeout > 0 ) {
-                               timeoutTimer = setTimeout( function(){
-                                       jqXHR.abort( "timeout" );
-                               }, s.timeout );
-                       }
-
-                       try {
-                               state = 1;
-                               transport.send( requestHeaders, done );
-                       } catch (e) {
-                               // Propagate exception as error if not done
-                               if ( state < 2 ) {
-                                       done( -1, e );
-                               // Simply rethrow otherwise
-                               } else {
-                                       jQuery.error( e );
-                               }
-                       }
-               }
-
-               return jqXHR;
-       },
-
-       // Serialize an array of form elements or a set of
-       // key/values into a query string
-       param: function( a, traditional ) {
-               var s = [],
-                       add = function( key, value ) {
-                               // If value is a function, invoke it and return its value
-                               value = jQuery.isFunction( value ) ? value() : value;
-                               s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
-                       };
-
-               // Set traditional to true for jQuery <= 1.3.2 behavior.
-               if ( traditional === undefined ) {
-                       traditional = jQuery.ajaxSettings.traditional;
-               }
-
-               // If an array was passed in, assume that it is an array of form elements.
-               if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
-                       // Serialize the form elements
-                       jQuery.each( a, function() {
-                               add( this.name, this.value );
-                       });
-
-               } else {
-                       // If traditional, encode the "old" way (the way 1.3.2 or older
-                       // did it), otherwise encode params recursively.
-                       for ( var prefix in a ) {
-                               buildParams( prefix, a[ prefix ], traditional, add );
-                       }
-               }
-
-               // Return the resulting serialization
-               return s.join( "&" ).replace( r20, "+" );
-       }
-});
-
-function buildParams( prefix, obj, traditional, add ) {
-       if ( jQuery.isArray( obj ) ) {
-               // Serialize array item.
-               jQuery.each( obj, function( i, v ) {
-                       if ( traditional || rbracket.test( prefix ) ) {
-                               // Treat each array item as a scalar.
-                               add( prefix, v );
-
-                       } else {
-                               // If array item is non-scalar (array or object), encode its
-                               // numeric index to resolve deserialization ambiguity issues.
-                               // Note that rack (as of 1.0.0) can't currently deserialize
-                               // nested arrays properly, and attempting to do so may cause
-                               // a server error. Possible fixes are to modify rack's
-                               // deserialization algorithm or to provide an option or flag
-                               // to force array serialization to be shallow.
-                               buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
-                       }
-               });
-
-       } else if ( !traditional && obj != null && typeof obj === "object" ) {
-               // Serialize object item.
-               for ( var name in obj ) {
-                       buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
-               }
-
-       } else {
-               // Serialize scalar item.
-               add( prefix, obj );
-       }
-}
-
-// This is still on the jQuery object... for now
-// Want to move this to jQuery.ajax some day
-jQuery.extend({
-
-       // Counter for holding the number of active queries
-       active: 0,
-
-       // Last-Modified header cache for next request
-       lastModified: {},
-       etag: {}
-
-});
-
-/* Handles responses to an ajax request:
- * - sets all responseXXX fields accordingly
- * - finds the right dataType (mediates between content-type and expected dataType)
- * - returns the corresponding response
- */
-function ajaxHandleResponses( s, jqXHR, responses ) {
-
-       var contents = s.contents,
-               dataTypes = s.dataTypes,
-               responseFields = s.responseFields,
-               ct,
-               type,
-               finalDataType,
-               firstDataType;
-
-       // Fill responseXXX fields
-       for( type in responseFields ) {
-               if ( type in responses ) {
-                       jqXHR[ responseFields[type] ] = responses[ type ];
-               }
-       }
-
-       // Remove auto dataType and get content-type in the process
-       while( dataTypes[ 0 ] === "*" ) {
-               dataTypes.shift();
-               if ( ct === undefined ) {
-                       ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
-               }
-       }
-
-       // Check if we're dealing with a known content-type
-       if ( ct ) {
-               for ( type in contents ) {
-                       if ( contents[ type ] && contents[ type ].test( ct ) ) {
-                               dataTypes.unshift( type );
-                               break;
-                       }
-               }
-       }
-
-       // Check to see if we have a response for the expected dataType
-       if ( dataTypes[ 0 ] in responses ) {
-               finalDataType = dataTypes[ 0 ];
-       } else {
-               // Try convertible dataTypes
-               for ( type in responses ) {
-                       if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
-                               finalDataType = type;
-                               break;
-                       }
-                       if ( !firstDataType ) {
-                               firstDataType = type;
-                       }
-               }
-               // Or just use first one
-               finalDataType = finalDataType || firstDataType;
-       }
-
-       // If we found a dataType
-       // We add the dataType to the list if needed
-       // and return the corresponding response
-       if ( finalDataType ) {
-               if ( finalDataType !== dataTypes[ 0 ] ) {
-                       dataTypes.unshift( finalDataType );
-               }
-               return responses[ finalDataType ];
-       }
-}
-
-// Chain conversions given the request and the original response
-function ajaxConvert( s, response ) {
-
-       // Apply the dataFilter if provided
-       if ( s.dataFilter ) {
-               response = s.dataFilter( response, s.dataType );
-       }
-
-       var dataTypes = s.dataTypes,
-               converters = {},
-               i,
-               key,
-               length = dataTypes.length,
-               tmp,
-               // Current and previous dataTypes
-               current = dataTypes[ 0 ],
-               prev,
-               // Conversion expression
-               conversion,
-               // Conversion function
-               conv,
-               // Conversion functions (transitive conversion)
-               conv1,
-               conv2;
-
-       // For each dataType in the chain
-       for( i = 1; i < length; i++ ) {
-
-               // Create converters map
-               // with lowercased keys
-               if ( i === 1 ) {
-                       for( key in s.converters ) {
-                               if( typeof key === "string" ) {
-                                       converters[ key.toLowerCase() ] = s.converters[ key ];
-                               }
-                       }
-               }
-
-               // Get the dataTypes
-               prev = current;
-               current = dataTypes[ i ];
-
-               // If current is auto dataType, update it to prev
-               if( current === "*" ) {
-                       current = prev;
-               // If no auto and dataTypes are actually different
-               } else if ( prev !== "*" && prev !== current ) {
-
-                       // Get the converter
-                       conversion = prev + " " + current;
-                       conv = converters[ conversion ] || converters[ "* " + current ];
-
-                       // If there is no direct converter, search transitively
-                       if ( !conv ) {
-                               conv2 = undefined;
-                               for( conv1 in converters ) {
-                                       tmp = conv1.split( " " );
-                                       if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
-                                               conv2 = converters[ tmp[1] + " " + current ];
-                                               if ( conv2 ) {
-                                                       conv1 = converters[ conv1 ];
-                                                       if ( conv1 === true ) {
-                                                               conv = conv2;
-                                                       } else if ( conv2 === true ) {
-                                                               conv = conv1;
-                                                       }
-                                                       break;
-                                               }
-                                       }
-                               }
-                       }
-                       // If we found no converter, dispatch an error
-                       if ( !( conv || conv2 ) ) {
-                               jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
-                       }
-                       // If found converter is not an equivalence
-                       if ( conv !== true ) {
-                               // Convert with 1 or 2 converters accordingly
-                               response = conv ? conv( response ) : conv2( conv1(response) );
-                       }
-               }
-       }
-       return response;
-}
-
-
-
-
-var jsc = jQuery.now(),
-       jsre = /(\=)\?(&|$)|\?\?/i;
-
-// Default jsonp settings
-jQuery.ajaxSetup({
-       jsonp: "callback",
-       jsonpCallback: function() {
-               return jQuery.expando + "_" + ( jsc++ );
-       }
-});
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
-       var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
-               ( typeof s.data === "string" );
-
-       if ( s.dataTypes[ 0 ] === "jsonp" ||
-               s.jsonp !== false && ( jsre.test( s.url ) ||
-                               inspectData && jsre.test( s.data ) ) ) {
-
-               var responseContainer,
-                       jsonpCallback = s.jsonpCallback =
-                               jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
-                       previous = window[ jsonpCallback ],
-                       url = s.url,
-                       data = s.data,
-                       replace = "$1" + jsonpCallback + "$2";
-
-               if ( s.jsonp !== false ) {
-                       url = url.replace( jsre, replace );
-                       if ( s.url === url ) {
-                               if ( inspectData ) {
-                                       data = data.replace( jsre, replace );
-                               }
-                               if ( s.data === data ) {
-                                       // Add callback manually
-                                       url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
-                               }
-                       }
-               }
-
-               s.url = url;
-               s.data = data;
-
-               // Install callback
-               window[ jsonpCallback ] = function( response ) {
-                       responseContainer = [ response ];
-               };
-
-               // Clean-up function
-               jqXHR.always(function() {
-                       // Set callback back to previous value
-                       window[ jsonpCallback ] = previous;
-                       // Call if it was a function and we have a response
-                       if ( responseContainer && jQuery.isFunction( previous ) ) {
-                               window[ jsonpCallback ]( responseContainer[ 0 ] );
-                       }
-               });
-
-               // Use data converter to retrieve json after script execution
-               s.converters["script json"] = function() {
-                       if ( !responseContainer ) {
-                               jQuery.error( jsonpCallback + " was not called" );
-                       }
-                       return responseContainer[ 0 ];
-               };
-
-               // force json dataType
-               s.dataTypes[ 0 ] = "json";
-
-               // Delegate to script
-               return "script";
-       }
-});
-
-
-
-
-// Install script dataType
-jQuery.ajaxSetup({
-       accepts: {
-               script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
-       },
-       contents: {
-               script: /javascript|ecmascript/
-       },
-       converters: {
-               "text script": function( text ) {
-                       jQuery.globalEval( text );
-                       return text;
-               }
-       }
-});
-
-// Handle cache's special case and global
-jQuery.ajaxPrefilter( "script", function( s ) {
-       if ( s.cache === undefined ) {
-               s.cache = false;
-       }
-       if ( s.crossDomain ) {
-               s.type = "GET";
-               s.global = false;
-       }
-});
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function(s) {
-
-       // This transport only deals with cross domain requests
-       if ( s.crossDomain ) {
-
-               var script,
-                       head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
-
-               return {
-
-                       send: function( _, callback ) {
-
-                               script = document.createElement( "script" );
-
-                               script.async = "async";
-
-                               if ( s.scriptCharset ) {
-                                       script.charset = s.scriptCharset;
-                               }
-
-                               script.src = s.url;
-
-                               // Attach handlers for all browsers
-                               script.onload = script.onreadystatechange = function( _, isAbort ) {
-
-                                       if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
-
-                                               // Handle memory leak in IE
-                                               script.onload = script.onreadystatechange = null;
-
-                                               // Remove the script
-                                               if ( head && script.parentNode ) {
-                                                       head.removeChild( script );
-                                               }
-
-                                               // Dereference the script
-                                               script = undefined;
-
-                                               // Callback if not abort
-                                               if ( !isAbort ) {
-                                                       callback( 200, "success" );
-                                               }
-                                       }
-                               };
-                               // Use insertBefore instead of appendChild  to circumvent an IE6 bug.
-                               // This arises when a base node is used (#2709 and #4378).
-                               head.insertBefore( script, head.firstChild );
-                       },
-
-                       abort: function() {
-                               if ( script ) {
-                                       script.onload( 0, 1 );
-                               }
-                       }
-               };
-       }
-});
-
-
-
-
-var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
-       xhrOnUnloadAbort = window.ActiveXObject ? function() {
-               // Abort all pending requests
-               for ( var key in xhrCallbacks ) {
-                       xhrCallbacks[ key ]( 0, 1 );
-               }
-       } : false,
-       xhrId = 0,
-       xhrCallbacks;
-
-// Functions to create xhrs
-function createStandardXHR() {
-       try {
-               return new window.XMLHttpRequest();
-       } catch( e ) {}
-}
-
-function createActiveXHR() {
-       try {
-               return new window.ActiveXObject( "Microsoft.XMLHTTP" );
-       } catch( e ) {}
-}
-
-// Create the request object
-// (This is still attached to ajaxSettings for backward compatibility)
-jQuery.ajaxSettings.xhr = window.ActiveXObject ?
-       /* Microsoft failed to properly
-        * implement the XMLHttpRequest in IE7 (can't request local files),
-        * so we use the ActiveXObject when it is available
-        * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
-        * we need a fallback.
-        */
-       function() {
-               return !this.isLocal && createStandardXHR() || createActiveXHR();
-       } :
-       // For all other browsers, use the standard XMLHttpRequest object
-       createStandardXHR;
-
-// Determine support properties
-(function( xhr ) {
-       jQuery.extend( jQuery.support, {
-               ajax: !!xhr,
-               cors: !!xhr && ( "withCredentials" in xhr )
-       });
-})( jQuery.ajaxSettings.xhr() );
-
-// Create transport if the browser can provide an xhr
-if ( jQuery.support.ajax ) {
-
-       jQuery.ajaxTransport(function( s ) {
-               // Cross domain only allowed if supported through XMLHttpRequest
-               if ( !s.crossDomain || jQuery.support.cors ) {
-
-                       var callback;
-
-                       return {
-                               send: function( headers, complete ) {
-
-                                       // Get a new xhr
-                                       var xhr = s.xhr(),
-                                               handle,
-                                               i;
-
-                                       // Open the socket
-                                       // Passing null username, generates a login popup on Opera (#2865)
-                                       if ( s.username ) {
-                                               xhr.open( s.type, s.url, s.async, s.username, s.password );
-                                       } else {
-                                               xhr.open( s.type, s.url, s.async );
-                                       }
-
-                                       // Apply custom fields if provided
-                                       if ( s.xhrFields ) {
-                                               for ( i in s.xhrFields ) {
-                                                       xhr[ i ] = s.xhrFields[ i ];
-                                               }
-                                       }
-
-                                       // Override mime type if needed
-                                       if ( s.mimeType && xhr.overrideMimeType ) {
-                                               xhr.overrideMimeType( s.mimeType );
-                                       }
-
-                                       // X-Requested-With header
-                                       // For cross-domain requests, seeing as conditions for a preflight are
-                                       // akin to a jigsaw puzzle, we simply never set it to be sure.
-                                       // (it can always be set on a per-request basis or even using ajaxSetup)
-                                       // For same-domain requests, won't change header if already provided.
-                                       if ( !s.crossDomain && !headers["X-Requested-With"] ) {
-                                               headers[ "X-Requested-With" ] = "XMLHttpRequest";
-                                       }
-
-                                       // Need an extra try/catch for cross domain requests in Firefox 3
-                                       try {
-                                               for ( i in headers ) {
-                                                       xhr.setRequestHeader( i, headers[ i ] );
-                                               }
-                                       } catch( _ ) {}
-
-                                       // Do send the request
-                                       // This may raise an exception which is actually
-                                       // handled in jQuery.ajax (so no try/catch here)
-                                       xhr.send( ( s.hasContent && s.data ) || null );
-
-                                       // Listener
-                                       callback = function( _, isAbort ) {
-
-                                               var status,
-                                                       statusText,
-                                                       responseHeaders,
-                                                       responses,
-                                                       xml;
-
-                                               // Firefox throws exceptions when accessing properties
-                                               // of an xhr when a network error occured
-                                               // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
-                                               try {
-
-                                                       // Was never called and is aborted or complete
-                                                       if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
-
-                                                               // Only called once
-                                                               callback = undefined;
-
-                                                               // Do not keep as active anymore
-                                                               if ( handle ) {
-                                                                       xhr.onreadystatechange = jQuery.noop;
-                                                                       if ( xhrOnUnloadAbort ) {
-                                                                               delete xhrCallbacks[ handle ];
-                                                                       }
-                                                               }
-
-                                                               // If it's an abort
-                                                               if ( isAbort ) {
-                                                                       // Abort it manually if needed
-                                                                       if ( xhr.readyState !== 4 ) {
-                                                                               xhr.abort();
-                                                                       }
-                                                               } else {
-                                                                       status = xhr.status;
-                                                                       responseHeaders = xhr.getAllResponseHeaders();
-                                                                       responses = {};
-                                                                       xml = xhr.responseXML;
-
-                                                                       // Construct response list
-                                                                       if ( xml && xml.documentElement /* #4958 */ ) {
-                                                                               responses.xml = xml;
-                                                                       }
-                                                                       responses.text = xhr.responseText;
-
-                                                                       // Firefox throws an exception when accessing
-                                                                       // statusText for faulty cross-domain requests
-                                                                       try {
-                                                                               statusText = xhr.statusText;
-                                                                       } catch( e ) {
-                                                                               // We normalize with Webkit giving an empty statusText
-                                                                               statusText = "";
-                                                                       }
-
-                                                                       // Filter status for non standard behaviors
-
-                                                                       // If the request is local and we have data: assume a success
-                                                                       // (success with no data won't get notified, that's the best we
-                                                                       // can do given current implementations)
-                                                                       if ( !status && s.isLocal && !s.crossDomain ) {
-                                                                               status = responses.text ? 200 : 404;
-                                                                       // IE - #1450: sometimes returns 1223 when it should be 204
-                                                                       } else if ( status === 1223 ) {
-                                                                               status = 204;
-                                                                       }
-                                                               }
-                                                       }
-                                               } catch( firefoxAccessException ) {
-                                                       if ( !isAbort ) {
-                                                               complete( -1, firefoxAccessException );
-                                                       }
-                                               }
-
-                                               // Call complete if needed
-                                               if ( responses ) {
-                                                       complete( status, statusText, responses, responseHeaders );
-                                               }
-                                       };
-
-                                       // if we're in sync mode or it's in cache
-                                       // and has been retrieved directly (IE6 & IE7)
-                                       // we need to manually fire the callback
-                                       if ( !s.async || xhr.readyState === 4 ) {
-                                               callback();
-                                       } else {
-                                               handle = ++xhrId;
-                                               if ( xhrOnUnloadAbort ) {
-                                                       // Create the active xhrs callbacks list if needed
-                                                       // and attach the unload handler
-                                                       if ( !xhrCallbacks ) {
-                                                               xhrCallbacks = {};
-                                                               jQuery( window ).unload( xhrOnUnloadAbort );
-                                                       }
-                                                       // Add to list of active xhrs callbacks
-                                                       xhrCallbacks[ handle ] = callback;
-                                               }
-                                               xhr.onreadystatechange = callback;
-                                       }
-                               },
-
-                               abort: function() {
-                                       if ( callback ) {
-                                               callback(0,1);
-                                       }
-                               }
-                       };
-               }
-       });
-}
-
-
-
-
-var elemdisplay = {},
-       iframe, iframeDoc,
-       rfxtypes = /^(?:toggle|show|hide)$/,
-       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
-       timerId,
-       fxAttrs = [
-               // height animations
-               [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
-               // width animations
-               [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
-               // opacity animations
-               [ "opacity" ]
-       ],
-       fxNow;
-
-jQuery.fn.extend({
-       show: function( speed, easing, callback ) {
-               var elem, display;
-
-               if ( speed || speed === 0 ) {
-                       return this.animate( genFx("show", 3), speed, easing, callback);
-
-               } else {
-                       for ( var i = 0, j = this.length; i < j; i++ ) {
-                               elem = this[i];
-
-                               if ( elem.style ) {
-                                       display = elem.style.display;
-
-                                       // Reset the inline display of this element to learn if it is
-                                       // being hidden by cascaded rules or not
-                                       if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
-                                               display = elem.style.display = "";
-                                       }
-
-                                       // Set elements which have been overridden with display: none
-                                       // in a stylesheet to whatever the default browser style is
-                                       // for such an element
-                                       if ( display === "" && jQuery.css( elem, "display" ) === "none" ) {
-                                               jQuery._data(elem, "olddisplay", defaultDisplay(elem.nodeName));
-                                       }
-                               }
-                       }
-
-                       // Set the display of most of the elements in a second loop
-                       // to avoid the constant reflow
-                       for ( i = 0; i < j; i++ ) {
-                               elem = this[i];
-
-                               if ( elem.style ) {
-                                       display = elem.style.display;
-
-                                       if ( display === "" || display === "none" ) {
-                                               elem.style.display = jQuery._data(elem, "olddisplay") || "";
-                                       }
-                               }
-                       }
-
-                       return this;
-               }
-       },
-
-       hide: function( speed, easing, callback ) {
-               if ( speed || speed === 0 ) {
-                       return this.animate( genFx("hide", 3), speed, easing, callback);
-
-               } else {
-                       for ( var i = 0, j = this.length; i < j; i++ ) {
-                               if ( this[i].style ) {
-                                       var display = jQuery.css( this[i], "display" );
-
-                                       if ( display !== "none" && !jQuery._data( this[i], "olddisplay" ) ) {
-                                               jQuery._data( this[i], "olddisplay", display );
-                                       }
-                               }
-                       }
-
-                       // Set the display of the elements in a second loop
-                       // to avoid the constant reflow
-                       for ( i = 0; i < j; i++ ) {
-                               if ( this[i].style ) {
-                                       this[i].style.display = "none";
-                               }
-                       }
-
-                       return this;
-               }
-       },
-
-       // Save the old toggle function
-       _toggle: jQuery.fn.toggle,
-
-       toggle: function( fn, fn2, callback ) {
-               var bool = typeof fn === "boolean";
-
-               if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
-                       this._toggle.apply( this, arguments );
-
-               } else if ( fn == null || bool ) {
-                       this.each(function() {
-                               var state = bool ? fn : jQuery(this).is(":hidden");
-                               jQuery(this)[ state ? "show" : "hide" ]();
-                       });
-
-               } else {
-                       this.animate(genFx("toggle", 3), fn, fn2, callback);
-               }
-
-               return this;
-       },
-
-       fadeTo: function( speed, to, easing, callback ) {
-               return this.filter(":hidden").css("opacity", 0).show().end()
-                                       .animate({opacity: to}, speed, easing, callback);
-       },
-
-       animate: function( prop, speed, easing, callback ) {
-               var optall = jQuery.speed(speed, easing, callback);
-
-               if ( jQuery.isEmptyObject( prop ) ) {
-                       return this.each( optall.complete, [ false ] );
-               }
-
-               // Do not change referenced properties as per-property easing will be lost
-               prop = jQuery.extend( {}, prop );
-
-               return this[ optall.queue === false ? "each" : "queue" ](function() {
-                       // XXX 'this' does not always have a nodeName when running the
-                       // test suite
-
-                       if ( optall.queue === false ) {
-                               jQuery._mark( this );
-                       }
-
-                       var opt = jQuery.extend( {}, optall ),
-                               isElement = this.nodeType === 1,
-                               hidden = isElement && jQuery(this).is(":hidden"),
-                               name, val, p,
-                               display, e,
-                               parts, start, end, unit;
-
-                       // will store per property easing and be used to determine when an animation is complete
-                       opt.animatedProperties = {};
-
-                       for ( p in prop ) {
-
-                               // property name normalization
-                               name = jQuery.camelCase( p );
-                               if ( p !== name ) {
-                                       prop[ name ] = prop[ p ];
-                                       delete prop[ p ];
-                               }
-
-                               val = prop[ name ];
-
-                               // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
-                               if ( jQuery.isArray( val ) ) {
-                                       opt.animatedProperties[ name ] = val[ 1 ];
-                                       val = prop[ name ] = val[ 0 ];
-                               } else {
-                                       opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
-                               }
-
-                               if ( val === "hide" && hidden || val === "show" && !hidden ) {
-                                       return opt.complete.call( this );
-                               }
-
-                               if ( isElement && ( name === "height" || name === "width" ) ) {
-                                       // Make sure that nothing sneaks out
-                                       // Record all 3 overflow attributes because IE does not
-                                       // change the overflow attribute when overflowX and
-                                       // overflowY are set to the same value
-                                       opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
-
-                                       // Set display property to inline-block for height/width
-                                       // animations on inline elements that are having width/height
-                                       // animated
-                                       if ( jQuery.css( this, "display" ) === "inline" &&
-                                                       jQuery.css( this, "float" ) === "none" ) {
-                                               if ( !jQuery.support.inlineBlockNeedsLayout ) {
-                                                       this.style.display = "inline-block";
-
-                                               } else {
-                                                       display = defaultDisplay( this.nodeName );
-
-                                                       // inline-level elements accept inline-block;
-                                                       // block-level elements need to be inline with layout
-                                                       if ( display === "inline" ) {
-                                                               this.style.display = "inline-block";
-
-                                                       } else {
-                                                               this.style.display = "inline";
-                                                               this.style.zoom = 1;
-                                                       }
-                                               }
-                                       }
-                               }
-                       }
-
-                       if ( opt.overflow != null ) {
-                               this.style.overflow = "hidden";
-                       }
-
-                       for ( p in prop ) {
-                               e = new jQuery.fx( this, opt, p );
-                               val = prop[ p ];
-
-                               if ( rfxtypes.test(val) ) {
-                                       e[ val === "toggle" ? hidden ? "show" : "hide" : val ]();
-
-                               } else {
-                                       parts = rfxnum.exec( val );
-                                       start = e.cur();
-
-                                       if ( parts ) {
-                                               end = parseFloat( parts[2] );
-                                               unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
-
-                                               // We need to compute starting value
-                                               if ( unit !== "px" ) {
-                                                       jQuery.style( this, p, (end || 1) + unit);
-                                                       start = ((end || 1) / e.cur()) * start;
-                                                       jQuery.style( this, p, start + unit);
-                                               }
-
-                                               // If a +=/-= token was provided, we're doing a relative animation
-                                               if ( parts[1] ) {
-                                                       end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
-                                               }
-
-                                               e.custom( start, end, unit );
-
-                                       } else {
-                                               e.custom( start, val, "" );
-                                       }
-                               }
-                       }
-
-                       // For JS strict compliance
-                       return true;
-               });
-       },
-
-       stop: function( clearQueue, gotoEnd ) {
-               if ( clearQueue ) {
-                       this.queue([]);
-               }
-
-               this.each(function() {
-                       var timers = jQuery.timers,
-                               i = timers.length;
-                       // clear marker counters if we know they won't be
-                       if ( !gotoEnd ) {
-                               jQuery._unmark( true, this );
-                       }
-                       while ( i-- ) {
-                               if ( timers[i].elem === this ) {
-                                       if (gotoEnd) {
-                                               // force the next step to be the last
-                                               timers[i](true);
-                                       }
-
-                                       timers.splice(i, 1);
-                               }
-                       }
-               });
-
-               // start the next in the queue if the last step wasn't forced
-               if ( !gotoEnd ) {
-                       this.dequeue();
-               }
-
-               return this;
-       }
-
-});
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
-       setTimeout( clearFxNow, 0 );
-       return ( fxNow = jQuery.now() );
-}
-
-function clearFxNow() {
-       fxNow = undefined;
-}
-
-// Generate parameters to create a standard animation
-function genFx( type, num ) {
-       var obj = {};
-
-       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice(0,num)), function() {
-               obj[ this ] = type;
-       });
-
-       return obj;
-}
-
-// Generate shortcuts for custom animations
-jQuery.each({
-       slideDown: genFx("show", 1),
-       slideUp: genFx("hide", 1),
-       slideToggle: genFx("toggle", 1),
-       fadeIn: { opacity: "show" },
-       fadeOut: { opacity: "hide" },
-       fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
-       jQuery.fn[ name ] = function( speed, easing, callback ) {
-               return this.animate( props, speed, easing, callback );
-       };
-});
-
-jQuery.extend({
-       speed: function( speed, easing, fn ) {
-               var opt = speed && typeof speed === "object" ? jQuery.extend({}, speed) : {
-                       complete: fn || !fn && easing ||
-                               jQuery.isFunction( speed ) && speed,
-                       duration: speed,
-                       easing: fn && easing || easing && !jQuery.isFunction(easing) && easing
-               };
-
-               opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
-                       opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[opt.duration] : jQuery.fx.speeds._default;
-
-               // Queueing
-               opt.old = opt.complete;
-               opt.complete = function( noUnmark ) {
-                       if ( jQuery.isFunction( opt.old ) ) {
-                               opt.old.call( this );
-                       }
-
-                       if ( opt.queue !== false ) {
-                               jQuery.dequeue( this );
-                       } else if ( noUnmark !== false ) {
-                               jQuery._unmark( this );
-                       }
-               };
-
-               return opt;
-       },
-
-       easing: {
-               linear: function( p, n, firstNum, diff ) {
-                       return firstNum + diff * p;
-               },
-               swing: function( p, n, firstNum, diff ) {
-                       return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
-               }
-       },
-
-       timers: [],
-
-       fx: function( elem, options, prop ) {
-               this.options = options;
-               this.elem = elem;
-               this.prop = prop;
-
-               options.orig = options.orig || {};
-       }
-
-});
-
-jQuery.fx.prototype = {
-       // Simple function for setting a style value
-       update: function() {
-               if ( this.options.step ) {
-                       this.options.step.call( this.elem, this.now, this );
-               }
-
-               (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
-       },
-
-       // Get the current size
-       cur: function() {
-               if ( this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null) ) {
-                       return this.elem[ this.prop ];
-               }
-
-               var parsed,
-                       r = jQuery.css( this.elem, this.prop );
-               // Empty strings, null, undefined and "auto" are converted to 0,
-               // complex values such as "rotate(1rad)" are returned as is,
-               // simple values such as "10px" are parsed to Float.
-               return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
-       },
-
-       // Start an animation from one number to another
-       custom: function( from, to, unit ) {
-               var self = this,
-                       fx = jQuery.fx;
-
-               this.startTime = fxNow || createFxNow();
-               this.start = from;
-               this.end = to;
-               this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
-               this.now = this.start;
-               this.pos = this.state = 0;
-
-               function t( gotoEnd ) {
-                       return self.step(gotoEnd);
-               }
-
-               t.elem = this.elem;
-
-               if ( t() && jQuery.timers.push(t) && !timerId ) {
-                       timerId = setInterval( fx.tick, fx.interval );
-               }
-       },
-
-       // Simple 'show' function
-       show: function() {
-               // Remember where we started, so that we can go back to it later
-               this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
-               this.options.show = true;
-
-               // Begin the animation
-               // Make sure that we start at a small width/height to avoid any
-               // flash of content
-               this.custom(this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur());
-
-               // Start by showing the element
-               jQuery( this.elem ).show();
-       },
-
-       // Simple 'hide' function
-       hide: function() {
-               // Remember where we started, so that we can go back to it later
-               this.options.orig[this.prop] = jQuery.style( this.elem, this.prop );
-               this.options.hide = true;
-
-               // Begin the animation
-               this.custom(this.cur(), 0);
-       },
-
-       // Each step of an animation
-       step: function( gotoEnd ) {
-               var t = fxNow || createFxNow(),
-                       done = true,
-                       elem = this.elem,
-                       options = this.options,
-                       i, n;
-
-               if ( gotoEnd || t >= options.duration + this.startTime ) {
-                       this.now = this.end;
-                       this.pos = this.state = 1;
-                       this.update();
-
-                       options.animatedProperties[ this.prop ] = true;
-
-                       for ( i in options.animatedProperties ) {
-                               if ( options.animatedProperties[i] !== true ) {
-                                       done = false;
-                               }
-                       }
-
-                       if ( done ) {
-                               // Reset the overflow
-                               if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
-
-                                       jQuery.each( [ "", "X", "Y" ], function (index, value) {
-                                               elem.style[ "overflow" + value ] = options.overflow[index];
-                                       });
-                               }
-
-                               // Hide the element if the "hide" operation was done
-                               if ( options.hide ) {
-                                       jQuery(elem).hide();
-                               }
-
-                               // Reset the properties, if the item has been hidden or shown
-                               if ( options.hide || options.show ) {
-                                       for ( var p in options.animatedProperties ) {
-                                               jQuery.style( elem, p, options.orig[p] );
-                                       }
-                               }
-
-                               // Execute the complete function
-                               options.complete.call( elem );
-                       }
-
-                       return false;
-
-               } else {
-                       // classical easing cannot be used with an Infinity duration
-                       if ( options.duration == Infinity ) {
-                               this.now = t;
-                       } else {
-                               n = t - this.startTime;
-                               this.state = n / options.duration;
-
-                               // Perform the easing function, defaults to swing
-                               this.pos = jQuery.easing[ options.animatedProperties[ this.prop ] ]( this.state, n, 0, 1, options.duration );
-                               this.now = this.start + ((this.end - this.start) * this.pos);
-                       }
-                       // Perform the next step of the animation
-                       this.update();
-               }
-
-               return true;
-       }
-};
-
-jQuery.extend( jQuery.fx, {
-       tick: function() {
-               for ( var timers = jQuery.timers, i = 0 ; i < timers.length ; ++i ) {
-                       if ( !timers[i]() ) {
-                               timers.splice(i--, 1);
-                       }
-               }
-
-               if ( !timers.length ) {
-                       jQuery.fx.stop();
-               }
-       },
-
-       interval: 13,
-
-       stop: function() {
-               clearInterval( timerId );
-               timerId = null;
-       },
-
-       speeds: {
-               slow: 600,
-               fast: 200,
-               // Default speed
-               _default: 400
-       },
-
-       step: {
-               opacity: function( fx ) {
-                       jQuery.style( fx.elem, "opacity", fx.now );
-               },
-
-               _default: function( fx ) {
-                       if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
-                               fx.elem.style[ fx.prop ] = (fx.prop === "width" || fx.prop === "height" ? Math.max(0, fx.now) : fx.now) + fx.unit;
-                       } else {
-                               fx.elem[ fx.prop ] = fx.now;
-                       }
-               }
-       }
-});
-
-if ( jQuery.expr && jQuery.expr.filters ) {
-       jQuery.expr.filters.animated = function( elem ) {
-               return jQuery.grep(jQuery.timers, function( fn ) {
-                       return elem === fn.elem;
-               }).length;
-       };
-}
-
-// Try to restore the default display value of an element
-function defaultDisplay( nodeName ) {
-
-       if ( !elemdisplay[ nodeName ] ) {
-
-               var body = document.body,
-                       elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
-                       display = elem.css( "display" );
-
-               elem.remove();
-
-               // If the simple way fails,
-               // get element's real default display by attaching it to a temp iframe
-               if ( display === "none" || display === "" ) {
-                       // No iframe to use yet, so create it
-                       if ( !iframe ) {
-                               iframe = document.createElement( "iframe" );
-                               iframe.frameBorder = iframe.width = iframe.height = 0;
-                       }
-
-                       body.appendChild( iframe );
-
-                       // Create a cacheable copy of the iframe document on first call.
-                       // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
-                       // document to it; WebKit & Firefox won't allow reusing the iframe document.
-                       if ( !iframeDoc || !iframe.createElement ) {
-                               iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
-                               iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
-                               iframeDoc.close();
-                       }
-
-                       elem = iframeDoc.createElement( nodeName );
-
-                       iframeDoc.body.appendChild( elem );
-
-                       display = jQuery.css( elem, "display" );
-
-                       body.removeChild( iframe );
-               }
-
-               // Store the correct default display
-               elemdisplay[ nodeName ] = display;
-       }
-
-       return elemdisplay[ nodeName ];
-}
-
-
-
-
-var rtable = /^t(?:able|d|h)$/i,
-       rroot = /^(?:body|html)$/i;
-
-if ( "getBoundingClientRect" in document.documentElement ) {
-       jQuery.fn.offset = function( options ) {
-               var elem = this[0], box;
-
-               if ( options ) {
-                       return this.each(function( i ) {
-                               jQuery.offset.setOffset( this, options, i );
-                       });
-               }
-
-               if ( !elem || !elem.ownerDocument ) {
-                       return null;
-               }
-
-               if ( elem === elem.ownerDocument.body ) {
-                       return jQuery.offset.bodyOffset( elem );
-               }
-
-               try {
-                       box = elem.getBoundingClientRect();
-               } catch(e) {}
-
-               var doc = elem.ownerDocument,
-                       docElem = doc.documentElement;
-
-               // Make sure we're not dealing with a disconnected DOM node
-               if ( !box || !jQuery.contains( docElem, elem ) ) {
-                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
-               }
-
-               var body = doc.body,
-                       win = getWindow(doc),
-                       clientTop  = docElem.clientTop  || body.clientTop  || 0,
-                       clientLeft = docElem.clientLeft || body.clientLeft || 0,
-                       scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,
-                       scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
-                       top  = box.top  + scrollTop  - clientTop,
-                       left = box.left + scrollLeft - clientLeft;
-
-               return { top: top, left: left };
-       };
-
-} else {
-       jQuery.fn.offset = function( options ) {
-               var elem = this[0];
-
-               if ( options ) {
-                       return this.each(function( i ) {
-                               jQuery.offset.setOffset( this, options, i );
-                       });
-               }
-
-               if ( !elem || !elem.ownerDocument ) {
-                       return null;
-               }
-
-               if ( elem === elem.ownerDocument.body ) {
-                       return jQuery.offset.bodyOffset( elem );
-               }
-
-               jQuery.offset.initialize();
-
-               var computedStyle,
-                       offsetParent = elem.offsetParent,
-                       prevOffsetParent = elem,
-                       doc = elem.ownerDocument,
-                       docElem = doc.documentElement,
-                       body = doc.body,
-                       defaultView = doc.defaultView,
-                       prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
-                       top = elem.offsetTop,
-                       left = elem.offsetLeft;
-
-               while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
-                       if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
-                               break;
-                       }
-
-                       computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
-                       top  -= elem.scrollTop;
-                       left -= elem.scrollLeft;
-
-                       if ( elem === offsetParent ) {
-                               top  += elem.offsetTop;
-                               left += elem.offsetLeft;
-
-                               if ( jQuery.offset.doesNotAddBorder && !(jQuery.offset.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
-                                       top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
-                                       left += parseFloat( computedStyle.borderLeftWidth ) || 0;
-                               }
-
-                               prevOffsetParent = offsetParent;
-                               offsetParent = elem.offsetParent;
-                       }
-
-                       if ( jQuery.offset.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
-                               top  += parseFloat( computedStyle.borderTopWidth  ) || 0;
-                               left += parseFloat( computedStyle.borderLeftWidth ) || 0;
-                       }
-
-                       prevComputedStyle = computedStyle;
-               }
-
-               if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
-                       top  += body.offsetTop;
-                       left += body.offsetLeft;
-               }
-
-               if ( jQuery.offset.supportsFixedPosition && prevComputedStyle.position === "fixed" ) {
-                       top  += Math.max( docElem.scrollTop, body.scrollTop );
-                       left += Math.max( docElem.scrollLeft, body.scrollLeft );
-               }
-
-               return { top: top, left: left };
-       };
-}
-
-jQuery.offset = {
-       initialize: function() {
-               var body = document.body, container = document.createElement("div"), innerDiv, checkDiv, table, td, bodyMarginTop = parseFloat( jQuery.css(body, "marginTop") ) || 0,
-                       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>";
-
-               jQuery.extend( container.style, { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" } );
-
-               container.innerHTML = html;
-               body.insertBefore( container, body.firstChild );
-               innerDiv = container.firstChild;
-               checkDiv = innerDiv.firstChild;
-               td = innerDiv.nextSibling.firstChild.firstChild;
-
-               this.doesNotAddBorder = (checkDiv.offsetTop !== 5);
-               this.doesAddBorderForTableAndCells = (td.offsetTop === 5);
-
-               checkDiv.style.position = "fixed";
-               checkDiv.style.top = "20px";
-
-               // safari subtracts parent border width here which is 5px
-               this.supportsFixedPosition = (checkDiv.offsetTop === 20 || checkDiv.offsetTop === 15);
-               checkDiv.style.position = checkDiv.style.top = "";
-
-               innerDiv.style.overflow = "hidden";
-               innerDiv.style.position = "relative";
-
-               this.subtractsBorderForOverflowNotVisible = (checkDiv.offsetTop === -5);
-
-               this.doesNotIncludeMarginInBodyOffset = (body.offsetTop !== bodyMarginTop);
-
-               body.removeChild( container );
-               jQuery.offset.initialize = jQuery.noop;
-       },
-
-       bodyOffset: function( body ) {
-               var top = body.offsetTop,
-                       left = body.offsetLeft;
-
-               jQuery.offset.initialize();
-
-               if ( jQuery.offset.doesNotIncludeMarginInBodyOffset ) {
-                       top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;
-                       left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
-               }
-
-               return { top: top, left: left };
-       },
-
-       setOffset: function( elem, options, i ) {
-               var position = jQuery.css( elem, "position" );
-
-               // set position first, in-case top/left are set even on static elem
-               if ( position === "static" ) {
-                       elem.style.position = "relative";
-               }
-
-               var curElem = jQuery( elem ),
-                       curOffset = curElem.offset(),
-                       curCSSTop = jQuery.css( elem, "top" ),
-                       curCSSLeft = jQuery.css( elem, "left" ),
-                       calculatePosition = (position === "absolute" || position === "fixed") && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
-                       props = {}, curPosition = {}, curTop, curLeft;
-
-               // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
-               if ( calculatePosition ) {
-                       curPosition = curElem.position();
-                       curTop = curPosition.top;
-                       curLeft = curPosition.left;
-               } else {
-                       curTop = parseFloat( curCSSTop ) || 0;
-                       curLeft = parseFloat( curCSSLeft ) || 0;
-               }
-
-               if ( jQuery.isFunction( options ) ) {
-                       options = options.call( elem, i, curOffset );
-               }
-
-               if (options.top != null) {
-                       props.top = (options.top - curOffset.top) + curTop;
-               }
-               if (options.left != null) {
-                       props.left = (options.left - curOffset.left) + curLeft;
-               }
-
-               if ( "using" in options ) {
-                       options.using.call( elem, props );
-               } else {
-                       curElem.css( props );
-               }
-       }
-};
-
-
-jQuery.fn.extend({
-       position: function() {
-               if ( !this[0] ) {
-                       return null;
-               }
-
-               var elem = this[0],
-
-               // Get *real* offsetParent
-               offsetParent = this.offsetParent(),
-
-               // Get correct offsets
-               offset       = this.offset(),
-               parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
-
-               // Subtract element margins
-               // note: when an element has margin: auto the offsetLeft and marginLeft
-               // are the same in Safari causing offset.left to incorrectly be 0
-               offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
-               offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
-
-               // Add offsetParent borders
-               parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
-               parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
-
-               // Subtract the two offsets
-               return {
-                       top:  offset.top  - parentOffset.top,
-                       left: offset.left - parentOffset.left
-               };
-       },
-
-       offsetParent: function() {
-               return this.map(function() {
-                       var offsetParent = this.offsetParent || document.body;
-                       while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
-                               offsetParent = offsetParent.offsetParent;
-                       }
-                       return offsetParent;
-               });
-       }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( ["Left", "Top"], function( i, name ) {
-       var method = "scroll" + name;
-
-       jQuery.fn[ method ] = function( val ) {
-               var elem, win;
-
-               if ( val === undefined ) {
-                       elem = this[ 0 ];
-
-                       if ( !elem ) {
-                               return null;
-                       }
-
-                       win = getWindow( elem );
-
-                       // Return the scroll offset
-                       return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
-                               jQuery.support.boxModel && win.document.documentElement[ method ] ||
-                                       win.document.body[ method ] :
-                               elem[ method ];
-               }
-
-               // Set the scroll offset
-               return this.each(function() {
-                       win = getWindow( this );
-
-                       if ( win ) {
-                               win.scrollTo(
-                                       !i ? val : jQuery( win ).scrollLeft(),
-                                        i ? val : jQuery( win ).scrollTop()
-                               );
-
-                       } else {
-                               this[ method ] = val;
-                       }
-               });
-       };
-});
-
-function getWindow( elem ) {
-       return jQuery.isWindow( elem ) ?
-               elem :
-               elem.nodeType === 9 ?
-                       elem.defaultView || elem.parentWindow :
-                       false;
-}
-
-
-
-
-// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
-jQuery.each([ "Height", "Width" ], function( i, name ) {
-
-       var type = name.toLowerCase();
-
-       // innerHeight and innerWidth
-       jQuery.fn[ "inner" + name ] = function() {
-               var elem = this[0];
-               return elem && elem.style ?
-                       parseFloat( jQuery.css( elem, type, "padding" ) ) :
-                       null;
-       };
-
-       // outerHeight and outerWidth
-       jQuery.fn[ "outer" + name ] = function( margin ) {
-               var elem = this[0];
-               return elem && elem.style ?
-                       parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
-                       null;
-       };
-
-       jQuery.fn[ type ] = function( size ) {
-               // Get window width or height
-               var elem = this[0];
-               if ( !elem ) {
-                       return size == null ? null : this;
-               }
-
-               if ( jQuery.isFunction( size ) ) {
-                       return this.each(function( i ) {
-                               var self = jQuery( this );
-                               self[ type ]( size.call( this, i, self[ type ]() ) );
-                       });
-               }
-
-               if ( jQuery.isWindow( elem ) ) {
-                       // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
-                       // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
-                       var docElemProp = elem.document.documentElement[ "client" + name ],
-                               body = elem.document.body;
-                       return elem.document.compatMode === "CSS1Compat" && docElemProp ||
-                               body && body[ "client" + name ] || docElemProp;
-
-               // Get document width or height
-               } else if ( elem.nodeType === 9 ) {
-                       // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
-                       return Math.max(
-                               elem.documentElement["client" + name],
-                               elem.body["scroll" + name], elem.documentElement["scroll" + name],
-                               elem.body["offset" + name], elem.documentElement["offset" + name]
-                       );
-
-               // Get or set width or height on the element
-               } else if ( size === undefined ) {
-                       var orig = jQuery.css( elem, type ),
-                               ret = parseFloat( orig );
-
-                       return jQuery.isNaN( ret ) ? orig : ret;
-
-               // Set the width or height on the element (default to pixels if value is unitless)
-               } else {
-                       return this.css( type, typeof size === "string" ? size : size + "px" );
-               }
-       };
-
-});
-
-
-// Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
-})(window);
\ No newline at end of file
diff --git a/js/jquery-1.6.4.min.js b/js/jquery-1.6.4.min.js
deleted file mode 100644 (file)
index 3684c36..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-/*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
-(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cq(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cp(){cn=b}function co(){setTimeout(cp,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bZ(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bY(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bA.test(a)?d(a,e):bY(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)bY(a+"["+e+"]",b[e],c,d);else d(a,b)}function bX(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function bW(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bP,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bW(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bW(a,c,d,e,"*",g));return l}function bV(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bL),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function by(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bt:bu;if(d>0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bv(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bl(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bd,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bk(a){f.nodeName(a,"input")?bj(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bj)}function bj(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bi(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bh(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bg(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function bf(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function V(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(Q.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function U(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function M(a,b){return(a&&a!=="*"?a+".":"")+b.replace(y,"`").replace(z,"&")}function L(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;i<s.length;i++)g=s[i],g.origType.replace(w,"")===a.type?q.push(g.selector):s.splice(i--,1);e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e[j];for(i=0;i<s.length;i++){g=s[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,d=f(a.relatedTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.level>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function J(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function D(){return!0}function C(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function K(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(K,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,x=/^-ms-/,y=function(a,b){return(b+"").toUpperCase()},z=d.userAgent,A,B,C,D=Object.prototype.toString,E=Object.prototype.hasOwnProperty,F=Array.prototype.push,G=Array.prototype.slice,H=String.prototype.trim,I=Array.prototype.indexOf,J={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return G.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?F.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),B.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(G.apply(this,arguments),"slice",G.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:F,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;B.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!B){B=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",C,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",C),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&K()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):J[D.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!E.call(a,"constructor")&&!E.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||E.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(x,"ms-").replace(w,y)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:H?function(a){return a==null?"":H.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?F.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(!b)return-1;if(I)return I.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=G.call(arguments,2),g=function(){return a.apply(c,f.concat(G.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible")<0&&v.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){J["[object "+b+"]"]=b.toLowerCase()}),A=e.uaMatch(z),A.browser&&(e.browser[A.browser]=!0,e.browser.version=A.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?C=function(){c.removeEventListener("DOMContentLoaded",C,!1),e.ready()}:c.attachEvent&&(C=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",C),e.ready())});return e}(),g="done fail isResolved isRejected promise then always pipe".split(" "),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i);k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return!!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1],h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[g+"With"](this===b?d:this,[h])}):b[a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].promise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith(g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("className","t"),a.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},m&&f.extend(p,{position:"absolute",left:"-1000px",top:"-1000px"});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i=f.expando,j=typeof c=="string",k=a.nodeType,l=k?f.cache:a,m=k?a[f.expando]:a[f.expando]&&f.expando;if((!m||e&&m&&l[m]&&!l[m][i])&&j&&d===b)return;m||(k?a[f.expando]=m=++f.uuid:m=f.expando),l[m]||(l[m]={},k||(l[m].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?l[m][i]=f.extend(l[m][i],c):l[m]=f.extend(l[m],c);g=l[m],e&&(g[i]||(g[i]={}),g=g[i]),d!==b&&(g[f.camelCase(c)]=d);if(c==="events"&&!g[c])return g[i]&&g[i].events;j?(h=g[c],h==null&&(h=g[f.camelCase(c)])):h=g;return h}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e=f.expando,g=a.nodeType,h=g?f.cache:a,i=g?a[f.expando]:f.expando;if(!h[i])return;if(b){d=c?h[i][e]:h[i];if(d){d[b]||(b=f.camelCase(b)),delete d[b];if(!l(d))return}}if(c){delete h[i][e];if(!l(h[i]))return}var j=h[i][e];f.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null,j?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=j):g&&(f.support.deleteExpando?delete a[f.expando]:a.removeAttribute?a.removeAttribute(f.expando):a[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(function(){f.data(this,a)});var j=a.split(".");j[1]=j[1]?"."+j[1]:"";if(c===b){d=this.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this[0],a),d=k(this[0],a,d));return d===b&&j[1]?this.data(j[0]):d}return this.each(function(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data(this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){d=d||"fx";var e=d+"mark",g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,"mark"))}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d));return e||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e;d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f._Deferred(),!0))h++,l.done(m);m();return d.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u,v;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(o);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(n," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(o);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e[h];if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}if(g&&!d.length&&e.length)return f(e[c]).val();return d},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=v:u&&(i=u)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.attr(a,b,""),a.removeAttribute(b),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(u&&f.nodeName(a,"button"))return u.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(u&&f.nodeName(a,"button"))return u.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==null?g:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabIndex=f.propHooks.tabIndex,v={get:function(a,c){var d;return f.prop(a,c)===!0||(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(u=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var w=/\.(.*)$/,x=/^(?:textarea|input|select)$/i,y=/\./g,z=/ /g,A=/[^\w\s.|`]/g,B=function(a){return a.replace(A,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=C;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=C);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),B).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){q=p[j];if(d.guid===q.guid){if(l||n.test(q.namespace))e==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(e!=null)break}}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete 
-t[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Event(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,M(a.origType,a.selector),f.extend({},a,{handler:L,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,M(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?D:C):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=D;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=D;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=D,this.stopPropagation()},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};var E=function(a){var b=a.relatedTarget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.event.handle.apply(this,arguments),a.type=d))},F=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.selector?F:E,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?F:E)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="submit"||c==="image")&&f(b).closest("form").length&&J("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="text"||c==="password")&&f(b).closest("form").length&&a.keyCode===13&&J("submit",this,arguments)});else return!1},teardown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeBubbles){var G,H=function(a){var b=f.nodeName(a,"input")?a.type:"",c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},I=function(c){var d=c.target,e,g;if(!!x.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=H(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:I,beforedeactivate:I,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&I.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&I.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",H(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in G)f.event.add(this,c+".specialChange",G[c]);return x.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return x.test(this.nodeName)}},G=f.event.special.change.filters,G.focus=G.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i<j;i++)f.event.add(this[i],a,g,d);return this}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.event.remove(this[d],a,b);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;f.data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var K={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a[o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return this}if(d===!1||f.isFunction(d))e=d||C,d=b;a=(a||"").split(" ");while((h=a[i++])!=null){j=w.exec(h),k="",j&&(k=j[0],h=h.replace(w,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,K[h]?(a.push(K[h]+k),h=h+k):h=(K[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+M(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind("live."+M(h,m),e)}return this}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("previousSibling",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b){g=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var N=/Until$/,O=/^(?:parents|prevUntil|prevAll)/,P=/,/,Q=/^.[^:#\[\.,]*$/,R=Array.prototype.slice,S=f.expr.match.POS,T={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(V(this,a,!1),"not",a)},filter:function(a){return this.pushStack(V(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=S.test(i)?f(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=S.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(U(c[0])||U(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=R.call(arguments);N.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!T[a]?f.unique(e):e,(this.length>1||P.test(d))&&O.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|object|embed|option|style)/i,bb=/checked\s*(?:[^=]|=\s*.checked.)/i,bc=/\/(java|ecma)script/i,bd=/^\s*<!(?:\[CDATA\[|\-\-)/,be={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,f.support.htmlSerialize||(be._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!be[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bb.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bf(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bl)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!ba.test(a[0])&&(f.support.checkClone||!bb.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean
-(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bh(a,d),e=bi(a),g=bi(d);for(h=0;e[h];++h)g[h]&&bh(e[h],g[h])}if(b){bg(a,d);if(c){e=bi(a),g=bi(d);for(h=0;e[h];++h)bg(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=be[l]||be._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bk(k[i]);else bk(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bc.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowerCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.expando),delete d[c]}}}});var bm=/alpha\([^)]*\)/i,bn=/opacity=([^)]*)/,bo=/([A-Z]|^ms)/g,bp=/^-?\d+(?:px)?$/i,bq=/^-?\d/,br=/^([\-+])=([\-+.\de]+)/,bs={position:"absolute",visibility:"hidden",display:"block"},bt=["Left","Right"],bu=["Top","Bottom"],bv,bw,bx;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bv(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=br.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bv)return bv(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return by(a,b,d);f.swap(a,bs,function(){e=by(a,b,d)});return e}},set:function(a,b){if(!bp.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bn.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bm,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bm.test(g)?g.replace(bm,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bv(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bw=function(a,c){var d,e,g;c=c.replace(bo,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bx=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bp.test(d)&&bq.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bv=bw||bx,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bz=/%20/g,bA=/\[\]$/,bB=/\r?\n/g,bC=/#.*$/,bD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bE=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bF=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bG=/^(?:GET|HEAD)$/,bH=/^\/\//,bI=/\?/,bJ=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bK=/^(?:select|textarea)/i,bL=/\s+/,bM=/([?&])_=[^&]*/,bN=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bO=f.fn.load,bP={},bQ={},bR,bS,bT=["*/"]+["*"];try{bR=e.href}catch(bU){bR=c.createElement("a"),bR.href="",bR=bR.href}bS=bN.exec(bR.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bO)return bO.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bJ,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bK.test(this.nodeName)||bE.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bB,"\r\n")}}):{name:b.name,value:c.replace(bB,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?bX(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),bX(a,b);return a},ajaxSettings:{url:bR,isLocal:bF.test(bS[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bT},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bV(bP),ajaxTransport:bV(bQ),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?bZ(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=b$(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bD.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bC,"").replace(bH,bS[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bL),d.crossDomain==null&&(r=bN.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bS[1]&&r[2]==bS[2]&&(r[3]||(r[1]==="http:"?80:443))==(bS[3]||(bS[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bW(bP,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bG.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bI.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bM,"$1_="+x);d.url=y+(y===d.url?(bI.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bT+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bW(bQ,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){s<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bz,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cq("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cr(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cq("hide",3),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d],"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisplay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cq("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return this[e.queue===!1?"each":"queue"](function(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cr(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle"?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.cssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,""));return!0})},stop:function(a,b){a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c--)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))}),b||this.dequeue();return this}}),f.each({slideDown:cq("show",1),slideUp:cq("hide",1),slideToggle:cq("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default,d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return d.step(a)}var d=this,e=f.fx;this.startTime=cn||co(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&f.timers.push(g)&&!cl&&(cl=setInterval(e.tick,e.interval))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn||co(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cs=/^t(?:able|d|h)$/i,ct=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cu(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!cs.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<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>";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=ct.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!ct.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cu(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cu(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNaN(j)?i:j}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window);
\ No newline at end of file
diff --git a/js/jquery-1.7.2.js b/js/jquery-1.7.2.js
new file mode 100644 (file)
index 0000000..8d55cd3
--- /dev/null
@@ -0,0 +1,9404 @@
+/*!\r
+ * jQuery JavaScript Library v1.7.2\r
+ * http://jquery.com/\r
+ *\r
+ * Copyright 2011, John Resig\r
+ * Dual licensed under the MIT or GPL Version 2 licenses.\r
+ * http://jquery.org/license\r
+ *\r
+ * Includes Sizzle.js\r
+ * http://sizzlejs.com/\r
+ * Copyright 2011, The Dojo Foundation\r
+ * Released under the MIT, BSD, and GPL Licenses.\r
+ *\r
+ * Date: Wed Mar 21 12:46:34 2012 -0700\r
+ */\r
+(function( window, undefined ) {\r
+\r
+// Use the correct document accordingly with window argument (sandbox)\r
+var document = window.document,\r
+       navigator = window.navigator,\r
+       location = window.location;\r
+var jQuery = (function() {\r
+\r
+// Define a local copy of jQuery\r
+var jQuery = function( selector, context ) {\r
+               // The jQuery object is actually just the init constructor 'enhanced'\r
+               return new jQuery.fn.init( selector, context, rootjQuery );\r
+       },\r
+\r
+       // Map over jQuery in case of overwrite\r
+       _jQuery = window.jQuery,\r
+\r
+       // Map over the $ in case of overwrite\r
+       _$ = window.$,\r
+\r
+       // A central reference to the root jQuery(document)\r
+       rootjQuery,\r
+\r
+       // A simple way to check for HTML strings or ID strings\r
+       // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)\r
+       quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,\r
+\r
+       // Check if a string has a non-whitespace character in it\r
+       rnotwhite = /\S/,\r
+\r
+       // Used for trimming whitespace\r
+       trimLeft = /^\s+/,\r
+       trimRight = /\s+$/,\r
+\r
+       // Match a standalone tag\r
+       rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,\r
+\r
+       // JSON RegExp\r
+       rvalidchars = /^[\],:{}\s]*$/,\r
+       rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,\r
+       rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,\r
+       rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,\r
+\r
+       // Useragent RegExp\r
+       rwebkit = /(webkit)[ \/]([\w.]+)/,\r
+       ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,\r
+       rmsie = /(msie) ([\w.]+)/,\r
+       rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,\r
+\r
+       // Matches dashed string for camelizing\r
+       rdashAlpha = /-([a-z]|[0-9])/ig,\r
+       rmsPrefix = /^-ms-/,\r
+\r
+       // Used by jQuery.camelCase as callback to replace()\r
+       fcamelCase = function( all, letter ) {\r
+               return ( letter + "" ).toUpperCase();\r
+       },\r
+\r
+       // Keep a UserAgent string for use with jQuery.browser\r
+       userAgent = navigator.userAgent,\r
+\r
+       // For matching the engine and version of the browser\r
+       browserMatch,\r
+\r
+       // The deferred used on DOM ready\r
+       readyList,\r
+\r
+       // The ready event handler\r
+       DOMContentLoaded,\r
+\r
+       // Save a reference to some core methods\r
+       toString = Object.prototype.toString,\r
+       hasOwn = Object.prototype.hasOwnProperty,\r
+       push = Array.prototype.push,\r
+       slice = Array.prototype.slice,\r
+       trim = String.prototype.trim,\r
+       indexOf = Array.prototype.indexOf,\r
+\r
+       // [[Class]] -> type pairs\r
+       class2type = {};\r
+\r
+jQuery.fn = jQuery.prototype = {\r
+       constructor: jQuery,\r
+       init: function( selector, context, rootjQuery ) {\r
+               var match, elem, ret, doc;\r
+\r
+               // Handle $(""), $(null), or $(undefined)\r
+               if ( !selector ) {\r
+                       return this;\r
+               }\r
+\r
+               // Handle $(DOMElement)\r
+               if ( selector.nodeType ) {\r
+                       this.context = this[0] = selector;\r
+                       this.length = 1;\r
+                       return this;\r
+               }\r
+\r
+               // The body element only exists once, optimize finding it\r
+               if ( selector === "body" && !context && document.body ) {\r
+                       this.context = document;\r
+                       this[0] = document.body;\r
+                       this.selector = selector;\r
+                       this.length = 1;\r
+                       return this;\r
+               }\r
+\r
+               // Handle HTML strings\r
+               if ( typeof selector === "string" ) {\r
+                       // Are we dealing with HTML string or an ID?\r
+                       if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {\r
+                               // Assume that strings that start and end with <> are HTML and skip the regex check\r
+                               match = [ null, selector, null ];\r
+\r
+                       } else {\r
+                               match = quickExpr.exec( selector );\r
+                       }\r
+\r
+                       // Verify a match, and that no context was specified for #id\r
+                       if ( match && (match[1] || !context) ) {\r
+\r
+                               // HANDLE: $(html) -> $(array)\r
+                               if ( match[1] ) {\r
+                                       context = context instanceof jQuery ? context[0] : context;\r
+                                       doc = ( context ? context.ownerDocument || context : document );\r
+\r
+                                       // If a single string is passed in and it's a single tag\r
+                                       // just do a createElement and skip the rest\r
+                                       ret = rsingleTag.exec( selector );\r
+\r
+                                       if ( ret ) {\r
+                                               if ( jQuery.isPlainObject( context ) ) {\r
+                                                       selector = [ document.createElement( ret[1] ) ];\r
+                                                       jQuery.fn.attr.call( selector, context, true );\r
+\r
+                                               } else {\r
+                                                       selector = [ doc.createElement( ret[1] ) ];\r
+                                               }\r
+\r
+                                       } else {\r
+                                               ret = jQuery.buildFragment( [ match[1] ], [ doc ] );\r
+                                               selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;\r
+                                       }\r
+\r
+                                       return jQuery.merge( this, selector );\r
+\r
+                               // HANDLE: $("#id")\r
+                               } else {\r
+                                       elem = document.getElementById( match[2] );\r
+\r
+                                       // Check parentNode to catch when Blackberry 4.6 returns\r
+                                       // nodes that are no longer in the document #6963\r
+                                       if ( elem && elem.parentNode ) {\r
+                                               // Handle the case where IE and Opera return items\r
+                                               // by name instead of ID\r
+                                               if ( elem.id !== match[2] ) {\r
+                                                       return rootjQuery.find( selector );\r
+                                               }\r
+\r
+                                               // Otherwise, we inject the element directly into the jQuery object\r
+                                               this.length = 1;\r
+                                               this[0] = elem;\r
+                                       }\r
+\r
+                                       this.context = document;\r
+                                       this.selector = selector;\r
+                                       return this;\r
+                               }\r
+\r
+                       // HANDLE: $(expr, $(...))\r
+                       } else if ( !context || context.jquery ) {\r
+                               return ( context || rootjQuery ).find( selector );\r
+\r
+                       // HANDLE: $(expr, context)\r
+                       // (which is just equivalent to: $(context).find(expr)\r
+                       } else {\r
+                               return this.constructor( context ).find( selector );\r
+                       }\r
+\r
+               // HANDLE: $(function)\r
+               // Shortcut for document ready\r
+               } else if ( jQuery.isFunction( selector ) ) {\r
+                       return rootjQuery.ready( selector );\r
+               }\r
+\r
+               if ( selector.selector !== undefined ) {\r
+                       this.selector = selector.selector;\r
+                       this.context = selector.context;\r
+               }\r
+\r
+               return jQuery.makeArray( selector, this );\r
+       },\r
+\r
+       // Start with an empty selector\r
+       selector: "",\r
+\r
+       // The current version of jQuery being used\r
+       jquery: "1.7.2",\r
+\r
+       // The default length of a jQuery object is 0\r
+       length: 0,\r
+\r
+       // The number of elements contained in the matched element set\r
+       size: function() {\r
+               return this.length;\r
+       },\r
+\r
+       toArray: function() {\r
+               return slice.call( this, 0 );\r
+       },\r
+\r
+       // Get the Nth element in the matched element set OR\r
+       // Get the whole matched element set as a clean array\r
+       get: function( num ) {\r
+               return num == null ?\r
+\r
+                       // Return a 'clean' array\r
+                       this.toArray() :\r
+\r
+                       // Return just the object\r
+                       ( num < 0 ? this[ this.length + num ] : this[ num ] );\r
+       },\r
+\r
+       // Take an array of elements and push it onto the stack\r
+       // (returning the new matched element set)\r
+       pushStack: function( elems, name, selector ) {\r
+               // Build a new jQuery matched element set\r
+               var ret = this.constructor();\r
+\r
+               if ( jQuery.isArray( elems ) ) {\r
+                       push.apply( ret, elems );\r
+\r
+               } else {\r
+                       jQuery.merge( ret, elems );\r
+               }\r
+\r
+               // Add the old object onto the stack (as a reference)\r
+               ret.prevObject = this;\r
+\r
+               ret.context = this.context;\r
+\r
+               if ( name === "find" ) {\r
+                       ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;\r
+               } else if ( name ) {\r
+                       ret.selector = this.selector + "." + name + "(" + selector + ")";\r
+               }\r
+\r
+               // Return the newly-formed element set\r
+               return ret;\r
+       },\r
+\r
+       // Execute a callback for every element in the matched set.\r
+       // (You can seed the arguments with an array of args, but this is\r
+       // only used internally.)\r
+       each: function( callback, args ) {\r
+               return jQuery.each( this, callback, args );\r
+       },\r
+\r
+       ready: function( fn ) {\r
+               // Attach the listeners\r
+               jQuery.bindReady();\r
+\r
+               // Add the callback\r
+               readyList.add( fn );\r
+\r
+               return this;\r
+       },\r
+\r
+       eq: function( i ) {\r
+               i = +i;\r
+               return i === -1 ?\r
+                       this.slice( i ) :\r
+                       this.slice( i, i + 1 );\r
+       },\r
+\r
+       first: function() {\r
+               return this.eq( 0 );\r
+       },\r
+\r
+       last: function() {\r
+               return this.eq( -1 );\r
+       },\r
+\r
+       slice: function() {\r
+               return this.pushStack( slice.apply( this, arguments ),\r
+                       "slice", slice.call(arguments).join(",") );\r
+       },\r
+\r
+       map: function( callback ) {\r
+               return this.pushStack( jQuery.map(this, function( elem, i ) {\r
+                       return callback.call( elem, i, elem );\r
+               }));\r
+       },\r
+\r
+       end: function() {\r
+               return this.prevObject || this.constructor(null);\r
+       },\r
+\r
+       // For internal use only.\r
+       // Behaves like an Array's method, not like a jQuery method.\r
+       push: push,\r
+       sort: [].sort,\r
+       splice: [].splice\r
+};\r
+\r
+// Give the init function the jQuery prototype for later instantiation\r
+jQuery.fn.init.prototype = jQuery.fn;\r
+\r
+jQuery.extend = jQuery.fn.extend = function() {\r
+       var options, name, src, copy, copyIsArray, clone,\r
+               target = arguments[0] || {},\r
+               i = 1,\r
+               length = arguments.length,\r
+               deep = false;\r
+\r
+       // Handle a deep copy situation\r
+       if ( typeof target === "boolean" ) {\r
+               deep = target;\r
+               target = arguments[1] || {};\r
+               // skip the boolean and the target\r
+               i = 2;\r
+       }\r
+\r
+       // Handle case when target is a string or something (possible in deep copy)\r
+       if ( typeof target !== "object" && !jQuery.isFunction(target) ) {\r
+               target = {};\r
+       }\r
+\r
+       // extend jQuery itself if only one argument is passed\r
+       if ( length === i ) {\r
+               target = this;\r
+               --i;\r
+       }\r
+\r
+       for ( ; i < length; i++ ) {\r
+               // Only deal with non-null/undefined values\r
+               if ( (options = arguments[ i ]) != null ) {\r
+                       // Extend the base object\r
+                       for ( name in options ) {\r
+                               src = target[ name ];\r
+                               copy = options[ name ];\r
+\r
+                               // Prevent never-ending loop\r
+                               if ( target === copy ) {\r
+                                       continue;\r
+                               }\r
+\r
+                               // Recurse if we're merging plain objects or arrays\r
+                               if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {\r
+                                       if ( copyIsArray ) {\r
+                                               copyIsArray = false;\r
+                                               clone = src && jQuery.isArray(src) ? src : [];\r
+\r
+                                       } else {\r
+                                               clone = src && jQuery.isPlainObject(src) ? src : {};\r
+                                       }\r
+\r
+                                       // Never move original objects, clone them\r
+                                       target[ name ] = jQuery.extend( deep, clone, copy );\r
+\r
+                               // Don't bring in undefined values\r
+                               } else if ( copy !== undefined ) {\r
+                                       target[ name ] = copy;\r
+                               }\r
+                       }\r
+               }\r
+       }\r
+\r
+       // Return the modified object\r
+       return target;\r
+};\r
+\r
+jQuery.extend({\r
+       noConflict: function( deep ) {\r
+               if ( window.$ === jQuery ) {\r
+                       window.$ = _$;\r
+               }\r
+\r
+               if ( deep && window.jQuery === jQuery ) {\r
+                       window.jQuery = _jQuery;\r
+               }\r
+\r
+               return jQuery;\r
+       },\r
+\r
+       // Is the DOM ready to be used? Set to true once it occurs.\r
+       isReady: false,\r
+\r
+       // A counter to track how many items to wait for before\r
+       // the ready event fires. See #6781\r
+       readyWait: 1,\r
+\r
+       // Hold (or release) the ready event\r
+       holdReady: function( hold ) {\r
+               if ( hold ) {\r
+                       jQuery.readyWait++;\r
+               } else {\r
+                       jQuery.ready( true );\r
+               }\r
+       },\r
+\r
+       // Handle when the DOM is ready\r
+       ready: function( wait ) {\r
+               // Either a released hold or an DOMready/load event and not yet ready\r
+               if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {\r
+                       // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\r
+                       if ( !document.body ) {\r
+                               return setTimeout( jQuery.ready, 1 );\r
+                       }\r
+\r
+                       // Remember that the DOM is ready\r
+                       jQuery.isReady = true;\r
+\r
+                       // If a normal DOM Ready event fired, decrement, and wait if need be\r
+                       if ( wait !== true && --jQuery.readyWait > 0 ) {\r
+                               return;\r
+                       }\r
+\r
+                       // If there are functions bound, to execute\r
+                       readyList.fireWith( document, [ jQuery ] );\r
+\r
+                       // Trigger any bound ready events\r
+                       if ( jQuery.fn.trigger ) {\r
+                               jQuery( document ).trigger( "ready" ).off( "ready" );\r
+                       }\r
+               }\r
+       },\r
+\r
+       bindReady: function() {\r
+               if ( readyList ) {\r
+                       return;\r
+               }\r
+\r
+               readyList = jQuery.Callbacks( "once memory" );\r
+\r
+               // Catch cases where $(document).ready() is called after the\r
+               // browser event has already occurred.\r
+               if ( document.readyState === "complete" ) {\r
+                       // Handle it asynchronously to allow scripts the opportunity to delay ready\r
+                       return setTimeout( jQuery.ready, 1 );\r
+               }\r
+\r
+               // Mozilla, Opera and webkit nightlies currently support this event\r
+               if ( document.addEventListener ) {\r
+                       // Use the handy event callback\r
+                       document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );\r
+\r
+                       // A fallback to window.onload, that will always work\r
+                       window.addEventListener( "load", jQuery.ready, false );\r
+\r
+               // If IE event model is used\r
+               } else if ( document.attachEvent ) {\r
+                       // ensure firing before onload,\r
+                       // maybe late but safe also for iframes\r
+                       document.attachEvent( "onreadystatechange", DOMContentLoaded );\r
+\r
+                       // A fallback to window.onload, that will always work\r
+                       window.attachEvent( "onload", jQuery.ready );\r
+\r
+                       // If IE and not a frame\r
+                       // continually check to see if the document is ready\r
+                       var toplevel = false;\r
+\r
+                       try {\r
+                               toplevel = window.frameElement == null;\r
+                       } catch(e) {}\r
+\r
+                       if ( document.documentElement.doScroll && toplevel ) {\r
+                               doScrollCheck();\r
+                       }\r
+               }\r
+       },\r
+\r
+       // See test/unit/core.js for details concerning isFunction.\r
+       // Since version 1.3, DOM methods and functions like alert\r
+       // aren't supported. They return false on IE (#2968).\r
+       isFunction: function( obj ) {\r
+               return jQuery.type(obj) === "function";\r
+       },\r
+\r
+       isArray: Array.isArray || function( obj ) {\r
+               return jQuery.type(obj) === "array";\r
+       },\r
+\r
+       isWindow: function( obj ) {\r
+               return obj != null && obj == obj.window;\r
+       },\r
+\r
+       isNumeric: function( obj ) {\r
+               return !isNaN( parseFloat(obj) ) && isFinite( obj );\r
+       },\r
+\r
+       type: function( obj ) {\r
+               return obj == null ?\r
+                       String( obj ) :\r
+                       class2type[ toString.call(obj) ] || "object";\r
+       },\r
+\r
+       isPlainObject: function( obj ) {\r
+               // Must be an Object.\r
+               // Because of IE, we also have to check the presence of the constructor property.\r
+               // Make sure that DOM nodes and window objects don't pass through, as well\r
+               if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {\r
+                       return false;\r
+               }\r
+\r
+               try {\r
+                       // Not own constructor property must be Object\r
+                       if ( obj.constructor &&\r
+                               !hasOwn.call(obj, "constructor") &&\r
+                               !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {\r
+                               return false;\r
+                       }\r
+               } catch ( e ) {\r
+                       // IE8,9 Will throw exceptions on certain host objects #9897\r
+                       return false;\r
+               }\r
+\r
+               // Own properties are enumerated firstly, so to speed up,\r
+               // if last one is own, then all properties are own.\r
+\r
+               var key;\r
+               for ( key in obj ) {}\r
+\r
+               return key === undefined || hasOwn.call( obj, key );\r
+       },\r
+\r
+       isEmptyObject: function( obj ) {\r
+               for ( var name in obj ) {\r
+                       return false;\r
+               }\r
+               return true;\r
+       },\r
+\r
+       error: function( msg ) {\r
+               throw new Error( msg );\r
+       },\r
+\r
+       parseJSON: function( data ) {\r
+               if ( typeof data !== "string" || !data ) {\r
+                       return null;\r
+               }\r
+\r
+               // Make sure leading/trailing whitespace is removed (IE can't handle it)\r
+               data = jQuery.trim( data );\r
+\r
+               // Attempt to parse using the native JSON parser first\r
+               if ( window.JSON && window.JSON.parse ) {\r
+                       return window.JSON.parse( data );\r
+               }\r
+\r
+               // Make sure the incoming data is actual JSON\r
+               // Logic borrowed from http://json.org/json2.js\r
+               if ( rvalidchars.test( data.replace( rvalidescape, "@" )\r
+                       .replace( rvalidtokens, "]" )\r
+                       .replace( rvalidbraces, "")) ) {\r
+\r
+                       return ( new Function( "return " + data ) )();\r
+\r
+               }\r
+               jQuery.error( "Invalid JSON: " + data );\r
+       },\r
+\r
+       // Cross-browser xml parsing\r
+       parseXML: function( data ) {\r
+               if ( typeof data !== "string" || !data ) {\r
+                       return null;\r
+               }\r
+               var xml, tmp;\r
+               try {\r
+                       if ( window.DOMParser ) { // Standard\r
+                               tmp = new DOMParser();\r
+                               xml = tmp.parseFromString( data , "text/xml" );\r
+                       } else { // IE\r
+                               xml = new ActiveXObject( "Microsoft.XMLDOM" );\r
+                               xml.async = "false";\r
+                               xml.loadXML( data );\r
+                       }\r
+               } catch( e ) {\r
+                       xml = undefined;\r
+               }\r
+               if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {\r
+                       jQuery.error( "Invalid XML: " + data );\r
+               }\r
+               return xml;\r
+       },\r
+\r
+       noop: function() {},\r
+\r
+       // Evaluates a script in a global context\r
+       // Workarounds based on findings by Jim Driscoll\r
+       // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context\r
+       globalEval: function( data ) {\r
+               if ( data && rnotwhite.test( data ) ) {\r
+                       // We use execScript on Internet Explorer\r
+                       // We use an anonymous function so that context is window\r
+                       // rather than jQuery in Firefox\r
+                       ( window.execScript || function( data ) {\r
+                               window[ "eval" ].call( window, data );\r
+                       } )( data );\r
+               }\r
+       },\r
+\r
+       // Convert dashed to camelCase; used by the css and data modules\r
+       // Microsoft forgot to hump their vendor prefix (#9572)\r
+       camelCase: function( string ) {\r
+               return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );\r
+       },\r
+\r
+       nodeName: function( elem, name ) {\r
+               return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();\r
+       },\r
+\r
+       // args is for internal usage only\r
+       each: function( object, callback, args ) {\r
+               var name, i = 0,\r
+                       length = object.length,\r
+                       isObj = length === undefined || jQuery.isFunction( object );\r
+\r
+               if ( args ) {\r
+                       if ( isObj ) {\r
+                               for ( name in object ) {\r
+                                       if ( callback.apply( object[ name ], args ) === false ) {\r
+                                               break;\r
+                                       }\r
+                               }\r
+                       } else {\r
+                               for ( ; i < length; ) {\r
+                                       if ( callback.apply( object[ i++ ], args ) === false ) {\r
+                                               break;\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+               // A special, fast, case for the most common use of each\r
+               } else {\r
+                       if ( isObj ) {\r
+                               for ( name in object ) {\r
+                                       if ( callback.call( object[ name ], name, object[ name ] ) === false ) {\r
+                                               break;\r
+                                       }\r
+                               }\r
+                       } else {\r
+                               for ( ; i < length; ) {\r
+                                       if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {\r
+                                               break;\r
+                                       }\r
+                               }\r
+                       }\r
+               }\r
+\r
+               return object;\r
+       },\r
+\r
+       // Use native String.trim function wherever possible\r
+       trim: trim ?\r
+               function( text ) {\r
+                       return text == null ?\r
+                               "" :\r
+                               trim.call( text );\r
+               } :\r
+\r
+               // Otherwise use our own trimming functionality\r
+               function( text ) {\r
+                       return text == null ?\r
+                               "" :\r
+                               text.toString().replace( trimLeft, "" ).replace( trimRight, "" );\r
+               },\r
+\r
+       // results is for internal usage only\r
+       makeArray: function( array, results ) {\r
+               var ret = results || [];\r
+\r
+               if ( array != null ) {\r
+                       // The window, strings (and functions) also have 'length'\r
+                       // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930\r
+                       var type = jQuery.type( array );\r
+\r
+                       if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {\r
+                               push.call( ret, array );\r
+                       } else {\r
+                               jQuery.merge( ret, array );\r
+                       }\r
+               }\r
+\r
+               return ret;\r
+       },\r
+\r
+       inArray: function( elem, array, i ) {\r
+               var len;\r
+\r
+               if ( array ) {\r
+                       if ( indexOf ) {\r
+                               return indexOf.call( array, elem, i );\r
+                       }\r
+\r
+                       len = array.length;\r
+                       i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;\r
+\r
+                       for ( ; i < len; i++ ) {\r
+                               // Skip accessing in sparse arrays\r
+                               if ( i in array && array[ i ] === elem ) {\r
+                                       return i;\r
+                               }\r
+                       }\r
+               }\r
+\r
+               return -1;\r
+       },\r
+\r
+       merge: function( first, second ) {\r
+               var i = first.length,\r
+                       j = 0;\r
+\r
+               if ( typeof second.length === "number" ) {\r
+                       for ( var l = second.length; j < l; j++ ) {\r
+                               first[ i++ ] = second[ j ];\r
+                       }\r
+\r
+               } else {\r
+                       while ( second[j] !== undefined ) {\r
+                               first[ i++ ] = second[ j++ ];\r
+                       }\r
+               }\r
+\r
+               first.length = i;\r
+\r
+               return first;\r
+       },\r
+\r
+       grep: function( elems, callback, inv ) {\r
+               var ret = [], retVal;\r
+               inv = !!inv;\r
+\r
+               // Go through the array, only saving the items\r
+               // that pass the validator function\r
+               for ( var i = 0, length = elems.length; i < length; i++ ) {\r
+                       retVal = !!callback( elems[ i ], i );\r
+                       if ( inv !== retVal ) {\r
+                               ret.push( elems[ i ] );\r
+                       }\r
+               }\r
+\r
+               return ret;\r
+       },\r
+\r
+       // arg is for internal usage only\r
+       map: function( elems, callback, arg ) {\r
+               var value, key, ret = [],\r
+                       i = 0,\r
+                       length = elems.length,\r
+                       // jquery objects are treated as arrays\r
+                       isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;\r
+\r
+               // Go through the array, translating each of the items to their\r
+               if ( isArray ) {\r
+                       for ( ; i < length; i++ ) {\r
+                               value = callback( elems[ i ], i, arg );\r
+\r
+                               if ( value != null ) {\r
+                                       ret[ ret.length ] = value;\r
+                               }\r
+                       }\r
+\r
+               // Go through every key on the object,\r
+               } else {\r
+                       for ( key in elems ) {\r
+                               value = callback( elems[ key ], key, arg );\r
+\r
+                               if ( value != null ) {\r
+                                       ret[ ret.length ] = value;\r
+                               }\r
+                       }\r
+               }\r
+\r
+               // Flatten any nested arrays\r
+               return ret.concat.apply( [], ret );\r
+       },\r
+\r
+       // A global GUID counter for objects\r
+       guid: 1,\r
+\r
+       // Bind a function to a context, optionally partially applying any\r
+       // arguments.\r
+       proxy: function( fn, context ) {\r
+               if ( typeof context === "string" ) {\r
+                       var tmp = fn[ context ];\r
+                       context = fn;\r
+                       fn = tmp;\r
+               }\r
+\r
+               // Quick check to determine if target is callable, in the spec\r
+               // this throws a TypeError, but we will just return undefined.\r
+               if ( !jQuery.isFunction( fn ) ) {\r
+                       return undefined;\r
+               }\r
+\r
+               // Simulated bind\r
+               var args = slice.call( arguments, 2 ),\r
+                       proxy = function() {\r
+                               return fn.apply( context, args.concat( slice.call( arguments ) ) );\r
+                       };\r
+\r
+               // Set the guid of unique handler to the same of original handler, so it can be removed\r
+               proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;\r
+\r
+               return proxy;\r
+       },\r
+\r
+       // Mutifunctional method to get and set values to a collection\r
+       // The value/s can optionally be executed if it's a function\r
+       access: function( elems, fn, key, value, chainable, emptyGet, pass ) {\r
+               var exec,\r
+                       bulk = key == null,\r
+                       i = 0,\r
+                       length = elems.length;\r
+\r
+               // Sets many values\r
+               if ( key && typeof key === "object" ) {\r
+                       for ( i in key ) {\r
+                               jQuery.access( elems, fn, i, key[i], 1, emptyGet, value );\r
+                       }\r
+                       chainable = 1;\r
+\r
+               // Sets one value\r
+               } else if ( value !== undefined ) {\r
+                       // Optionally, function values get executed if exec is true\r
+                       exec = pass === undefined && jQuery.isFunction( value );\r
+\r
+                       if ( bulk ) {\r
+                               // Bulk operations only iterate when executing function values\r
+                               if ( exec ) {\r
+                                       exec = fn;\r
+                                       fn = function( elem, key, value ) {\r
+                                               return exec.call( jQuery( elem ), value );\r
+                                       };\r
+\r
+                               // Otherwise they run against the entire set\r
+                               } else {\r
+                                       fn.call( elems, value );\r
+                                       fn = null;\r
+                               }\r
+                       }\r
+\r
+                       if ( fn ) {\r
+                               for (; i < length; i++ ) {\r
+                                       fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );\r
+                               }\r
+                       }\r
+\r
+                       chainable = 1;\r
+               }\r
+\r
+               return chainable ?\r
+                       elems :\r
+\r
+                       // Gets\r
+                       bulk ?\r
+                               fn.call( elems ) :\r
+                               length ? fn( elems[0], key ) : emptyGet;\r
+       },\r
+\r
+       now: function() {\r
+               return ( new Date() ).getTime();\r
+       },\r
+\r
+       // Use of jQuery.browser is frowned upon.\r
+       // More details: http://docs.jquery.com/Utilities/jQuery.browser\r
+       uaMatch: function( ua ) {\r
+               ua = ua.toLowerCase();\r
+\r
+               var match = rwebkit.exec( ua ) ||\r
+                       ropera.exec( ua ) ||\r
+                       rmsie.exec( ua ) ||\r
+                       ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||\r
+                       [];\r
+\r
+               return { browser: match[1] || "", version: match[2] || "0" };\r
+       },\r
+\r
+       sub: function() {\r
+               function jQuerySub( selector, context ) {\r
+                       return new jQuerySub.fn.init( selector, context );\r
+               }\r
+               jQuery.extend( true, jQuerySub, this );\r
+               jQuerySub.superclass = this;\r
+               jQuerySub.fn = jQuerySub.prototype = this();\r
+               jQuerySub.fn.constructor = jQuerySub;\r
+               jQuerySub.sub = this.sub;\r
+               jQuerySub.fn.init = function init( selector, context ) {\r
+                       if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {\r
+                               context = jQuerySub( context );\r
+                       }\r
+\r
+                       return jQuery.fn.init.call( this, selector, context, rootjQuerySub );\r
+               };\r
+               jQuerySub.fn.init.prototype = jQuerySub.fn;\r
+               var rootjQuerySub = jQuerySub(document);\r
+               return jQuerySub;\r
+       },\r
+\r
+       browser: {}\r
+});\r
+\r
+// Populate the class2type map\r
+jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {\r
+       class2type[ "[object " + name + "]" ] = name.toLowerCase();\r
+});\r
+\r
+browserMatch = jQuery.uaMatch( userAgent );\r
+if ( browserMatch.browser ) {\r
+       jQuery.browser[ browserMatch.browser ] = true;\r
+       jQuery.browser.version = browserMatch.version;\r
+}\r
+\r
+// Deprecated, use jQuery.browser.webkit instead\r
+if ( jQuery.browser.webkit ) {\r
+       jQuery.browser.safari = true;\r
+}\r
+\r
+// IE doesn't match non-breaking spaces with \s\r
+if ( rnotwhite.test( "\xA0" ) ) {\r
+       trimLeft = /^[\s\xA0]+/;\r
+       trimRight = /[\s\xA0]+$/;\r
+}\r
+\r
+// All jQuery objects should point back to these\r
+rootjQuery = jQuery(document);\r
+\r
+// Cleanup functions for the document ready method\r
+if ( document.addEventListener ) {\r
+       DOMContentLoaded = function() {\r
+               document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );\r
+               jQuery.ready();\r
+       };\r
+\r
+} else if ( document.attachEvent ) {\r
+       DOMContentLoaded = function() {\r
+               // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).\r
+               if ( document.readyState === "complete" ) {\r
+                       document.detachEvent( "onreadystatechange", DOMContentLoaded );\r
+                       jQuery.ready();\r
+               }\r
+       };\r
+}\r
+\r
+// The DOM ready check for Internet Explorer\r
+function doScrollCheck() {\r
+       if ( jQuery.isReady ) {\r
+               return;\r
+       }\r
+\r
+       try {\r
+               // If IE is used, use the trick by Diego Perini\r
+               // http://javascript.nwbox.com/IEContentLoaded/\r
+               document.documentElement.doScroll("left");\r
+       } catch(e) {\r
+               setTimeout( doScrollCheck, 1 );\r
+               return;\r
+       }\r
+\r
+       // and execute any waiting functions\r
+       jQuery.ready();\r
+}\r
+\r
+return jQuery;\r
+\r
+})();\r
+\r
+\r
+// String to Object flags format cache\r
+var flagsCache = {};\r
+\r
+// Convert String-formatted flags into Object-formatted ones and store in cache\r
+function createFlags( flags ) {\r
+       var object = flagsCache[ flags ] = {},\r
+               i, length;\r
+       flags = flags.split( /\s+/ );\r
+       for ( i = 0, length = flags.length; i < length; i++ ) {\r
+               object[ flags[i] ] = true;\r
+       }\r
+       return object;\r
+}\r
+\r
+/*\r
+ * Create a callback list using the following parameters:\r
+ *\r
+ *     flags:  an optional list of space-separated flags that will change how\r
+ *                     the callback list behaves\r
+ *\r
+ * By default a callback list will act like an event callback list and can be\r
+ * "fired" multiple times.\r
+ *\r
+ * Possible flags:\r
+ *\r
+ *     once:                   will ensure the callback list can only be fired once (like a Deferred)\r
+ *\r
+ *     memory:                 will keep track of previous values and will call any callback added\r
+ *                                     after the list has been fired right away with the latest "memorized"\r
+ *                                     values (like a Deferred)\r
+ *\r
+ *     unique:                 will ensure a callback can only be added once (no duplicate in the list)\r
+ *\r
+ *     stopOnFalse:    interrupt callings when a callback returns false\r
+ *\r
+ */\r
+jQuery.Callbacks = function( flags ) {\r
+\r
+       // Convert flags from String-formatted to Object-formatted\r
+       // (we check in cache first)\r
+       flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};\r
+\r
+       var // Actual callback list\r
+               list = [],\r
+               // Stack of fire calls for repeatable lists\r
+               stack = [],\r
+               // Last fire value (for non-forgettable lists)\r
+               memory,\r
+               // Flag to know if list was already fired\r
+               fired,\r
+               // Flag to know if list is currently firing\r
+               firing,\r
+               // First callback to fire (used internally by add and fireWith)\r
+               firingStart,\r
+               // End of the loop when firing\r
+               firingLength,\r
+               // Index of currently firing callback (modified by remove if needed)\r
+               firingIndex,\r
+               // Add one or several callbacks to the list\r
+               add = function( args ) {\r
+                       var i,\r
+                               length,\r
+                               elem,\r
+                               type,\r
+                               actual;\r
+                       for ( i = 0, length = args.length; i < length; i++ ) {\r
+                               elem = args[ i ];\r
+                               type = jQuery.type( elem );\r
+                               if ( type === "array" ) {\r
+                                       // Inspect recursively\r
+                                       add( elem );\r
+                               } else if ( type === "function" ) {\r
+                                       // Add if not in unique mode and callback is not in\r
+                                       if ( !flags.unique || !self.has( elem ) ) {\r
+                                               list.push( elem );\r
+                                       }\r
+                               }\r
+                       }\r
+               },\r
+               // Fire callbacks\r
+               fire = function( context, args ) {\r
+                       args = args || [];\r
+                       memory = !flags.memory || [ context, args ];\r
+                       fired = true;\r
+                       firing = true;\r
+                       firingIndex = firingStart || 0;\r
+                       firingStart = 0;\r
+                       firingLength = list.length;\r
+                       for ( ; list && firingIndex < firingLength; firingIndex++ ) {\r
+                               if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {\r
+                                       memory = true; // Mark as halted\r
+                                       break;\r
+                               }\r
+                       }\r
+                       firing = false;\r
+                       if ( list ) {\r
+                               if ( !flags.once ) {\r
+                                       if ( stack && stack.length ) {\r
+                                               memory = stack.shift();\r
+                                               self.fireWith( memory[ 0 ], memory[ 1 ] );\r
+                                       }\r
+                               } else if ( memory === true ) {\r
+                                       self.disable();\r
+                               } else {\r
+                                       list = [];\r
+                               }\r
+                       }\r
+               },\r
+               // Actual Callbacks object\r
+               self = {\r
+                       // Add a callback or a collection of callbacks to the list\r
+                       add: function() {\r
+                               if ( list ) {\r
+                                       var length = list.length;\r
+                                       add( arguments );\r
+                                       // Do we need to add the callbacks to the\r
+                                       // current firing batch?\r
+                                       if ( firing ) {\r
+                                               firingLength = list.length;\r
+                                       // With memory, if we're not firing then\r
+                                       // we should call right away, unless previous\r
+                                       // firing was halted (stopOnFalse)\r
+                                       } else if ( memory && memory !== true ) {\r
+                                               firingStart = length;\r
+                                               fire( memory[ 0 ], memory[ 1 ] );\r
+                                       }\r
+                               }\r
+                               return this;\r
+                       },\r
+                       // Remove a callback from the list\r
+                       remove: function() {\r
+                               if ( list ) {\r
+                                       var args = arguments,\r
+                                               argIndex = 0,\r
+                                               argLength = args.length;\r
+                                       for ( ; argIndex < argLength ; argIndex++ ) {\r
+                                               for ( var i = 0; i < list.length; i++ ) {\r
+                                                       if ( args[ argIndex ] === list[ i ] ) {\r
+                                                               // Handle firingIndex and firingLength\r
+                                                               if ( firing ) {\r
+                                                                       if ( i <= firingLength ) {\r
+                                                                               firingLength--;\r
+                                                                               if ( i <= firingIndex ) {\r
+                                                                                       firingIndex--;\r
+                                                                               }\r
+                                                                       }\r
+                                                               }\r
+                                                               // Remove the element\r
+                                                               list.splice( i--, 1 );\r
+                                                               // If we have some unicity property then\r
+                                                               // we only need to do this once\r
+                                                               if ( flags.unique ) {\r
+                                                                       break;\r
+                                                               }\r
+                                                       }\r
+                                               }\r
+                                       }\r
+                               }\r
+                               return this;\r
+                       },\r
+                       // Control if a given callback is in the list\r
+                       has: function( fn ) {\r
+                               if ( list ) {\r
+                                       var i = 0,\r
+                                               length = list.length;\r
+                                       for ( ; i < length; i++ ) {\r
+                                               if ( fn === list[ i ] ) {\r
+                                                       return true;\r
+                                               }\r
+                                       }\r
+                               }\r
+                               return false;\r
+                       },\r
+                       // Remove all callbacks from the list\r
+                       empty: function() {\r
+                               list = [];\r
+                               return this;\r
+                       },\r
+                       // Have the list do nothing anymore\r
+                       disable: function() {\r
+                               list = stack = memory = undefined;\r
+                               return this;\r
+                       },\r
+                       // Is it disabled?\r
+                       disabled: function() {\r
+                               return !list;\r
+                       },\r
+                       // Lock the list in its current state\r
+                       lock: function() {\r
+                               stack = undefined;\r
+                               if ( !memory || memory === true ) {\r
+                                       self.disable();\r
+                               }\r
+                               return this;\r
+                       },\r
+                       // Is it locked?\r
+                       locked: function() {\r
+                               return !stack;\r
+                       },\r
+                       // Call all callbacks with the given context and arguments\r
+                       fireWith: function( context, args ) {\r
+                               if ( stack ) {\r
+                                       if ( firing ) {\r
+                                               if ( !flags.once ) {\r
+                                                       stack.push( [ context, args ] );\r
+                                               }\r
+                                       } else if ( !( flags.once && memory ) ) {\r
+                                               fire( context, args );\r
+                                       }\r
+                               }\r
+                               return this;\r
+                       },\r
+                       // Call all the callbacks with the given arguments\r
+                       fire: function() {\r
+                               self.fireWith( this, arguments );\r
+                               return this;\r
+                       },\r
+                       // To know if the callbacks have already been called at least once\r
+                       fired: function() {\r
+                               return !!fired;\r
+                       }\r
+               };\r
+\r
+       return self;\r
+};\r
+\r
+\r
+\r
+\r
+var // Static reference to slice\r
+       sliceDeferred = [].slice;\r
+\r
+jQuery.extend({\r
+\r
+       Deferred: function( func ) {\r
+               var doneList = jQuery.Callbacks( "once memory" ),\r
+                       failList = jQuery.Callbacks( "once memory" ),\r
+                       progressList = jQuery.Callbacks( "memory" ),\r
+                       state = "pending",\r
+                       lists = {\r
+                               resolve: doneList,\r
+                               reject: failList,\r
+                               notify: progressList\r
+                       },\r
+                       promise = {\r
+                               done: doneList.add,\r
+                               fail: failList.add,\r
+                               progress: progressList.add,\r
+\r
+                               state: function() {\r
+                                       return state;\r
+                               },\r
+\r
+                               // Deprecated\r
+                               isResolved: doneList.fired,\r
+                               isRejected: failList.fired,\r
+\r
+                               then: function( doneCallbacks, failCallbacks, progressCallbacks ) {\r
+                                       deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );\r
+                                       return this;\r
+                               },\r
+                               always: function() {\r
+                                       deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );\r
+                                       return this;\r
+                               },\r
+                               pipe: function( fnDone, fnFail, fnProgress ) {\r
+                                       return jQuery.Deferred(function( newDefer ) {\r
+                                               jQuery.each( {\r
+                                                       done: [ fnDone, "resolve" ],\r
+                                                       fail: [ fnFail, "reject" ],\r
+                                                       progress: [ fnProgress, "notify" ]\r
+                                               }, function( handler, data ) {\r
+                                                       var fn = data[ 0 ],\r
+                                                               action = data[ 1 ],\r
+                                                               returned;\r
+                                                       if ( jQuery.isFunction( fn ) ) {\r
+                                                               deferred[ handler ](function() {\r
+                                                                       returned = fn.apply( this, arguments );\r
+                                                                       if ( returned && jQuery.isFunction( returned.promise ) ) {\r
+                                                                               returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );\r
+                                                                       } else {\r
+                                                                               newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );\r
+                                                                       }\r
+                                                               });\r
+                                                       } else {\r
+                                                               deferred[ handler ]( newDefer[ action ] );\r
+                                                       }\r
+                                               });\r
+                                       }).promise();\r
+                               },\r
+                               // Get a promise for this deferred\r
+                               // If obj is provided, the promise aspect is added to the object\r
+                               promise: function( obj ) {\r
+                                       if ( obj == null ) {\r
+                                               obj = promise;\r
+                                       } else {\r
+                                               for ( var key in promise ) {\r
+                                                       obj[ key ] = promise[ key ];\r
+                                               }\r
+                                       }\r
+                                       return obj;\r
+                               }\r
+                       },\r
+                       deferred = promise.promise({}),\r
+                       key;\r
+\r
+               for ( key in lists ) {\r
+                       deferred[ key ] = lists[ key ].fire;\r
+                       deferred[ key + "With" ] = lists[ key ].fireWith;\r
+               }\r
+\r
+               // Handle state\r
+               deferred.done( function() {\r
+                       state = "resolved";\r
+               }, failList.disable, progressList.lock ).fail( function() {\r
+                       state = "rejected";\r
+               }, doneList.disable, progressList.lock );\r
+\r
+               // Call given func if any\r
+               if ( func ) {\r
+                       func.call( deferred, deferred );\r
+               }\r
+\r
+               // All done!\r
+               return deferred;\r
+       },\r
+\r
+       // Deferred helper\r
+       when: function( firstParam ) {\r
+               var args = sliceDeferred.call( arguments, 0 ),\r
+                       i = 0,\r
+                       length = args.length,\r
+                       pValues = new Array( length ),\r
+                       count = length,\r
+                       pCount = length,\r
+                       deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?\r
+                               firstParam :\r
+                               jQuery.Deferred(),\r
+                       promise = deferred.promise();\r
+               function resolveFunc( i ) {\r
+                       return function( value ) {\r
+                               args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;\r
+                               if ( !( --count ) ) {\r
+                                       deferred.resolveWith( deferred, args );\r
+                               }\r
+                       };\r
+               }\r
+               function progressFunc( i ) {\r
+                       return function( value ) {\r
+                               pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;\r
+                               deferred.notifyWith( promise, pValues );\r
+                       };\r
+               }\r
+               if ( length > 1 ) {\r
+                       for ( ; i < length; i++ ) {\r
+                               if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {\r
+                                       args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );\r
+                               } else {\r
+                                       --count;\r
+                               }\r
+                       }\r
+                       if ( !count ) {\r
+                               deferred.resolveWith( deferred, args );\r
+                       }\r
+               } else if ( deferred !== firstParam ) {\r
+                       deferred.resolveWith( deferred, length ? [ firstParam ] : [] );\r
+               }\r
+               return promise;\r
+       }\r
+});\r
+\r
+\r
+\r
+\r
+jQuery.support = (function() {\r
+\r
+       var support,\r
+               all,\r
+               a,\r
+               select,\r
+               opt,\r
+               input,\r
+               fragment,\r
+               tds,\r
+               events,\r
+               eventName,\r
+               i,\r
+               isSupported,\r
+               div = document.createElement( "div" ),\r
+               documentElement = document.documentElement;\r
+\r
+       // Preliminary tests\r
+       div.setAttribute("className", "t");\r
+       div.innerHTML = "   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";\r
+\r
+       all = div.getElementsByTagName( "*" );\r
+       a = div.getElementsByTagName( "a" )[ 0 ];\r
+\r
+       // Can't get basic test support\r
+       if ( !all || !all.length || !a ) {\r
+               return {};\r
+       }\r
+\r
+       // First batch of supports tests\r
+       select = document.createElement( "select" );\r
+       opt = select.appendChild( document.createElement("option") );\r
+       input = div.getElementsByTagName( "input" )[ 0 ];\r
+\r
+       support = {\r
+               // IE strips leading whitespace when .innerHTML is used\r
+               leadingWhitespace: ( div.firstChild.nodeType === 3 ),\r
+\r
+               // Make sure that tbody elements aren't automatically inserted\r
+               // IE will insert them into empty tables\r
+               tbody: !div.getElementsByTagName("tbody").length,\r
+\r
+               // Make sure that link elements get serialized correctly by innerHTML\r
+               // This requires a wrapper element in IE\r
+               htmlSerialize: !!div.getElementsByTagName("link").length,\r
+\r
+               // Get the style information from getAttribute\r
+               // (IE uses .cssText instead)\r
+               style: /top/.test( a.getAttribute("style") ),\r
+\r
+               // Make sure that URLs aren't manipulated\r
+               // (IE normalizes it by default)\r
+               hrefNormalized: ( a.getAttribute("href") === "/a" ),\r
+\r
+               // Make sure that element opacity exists\r
+               // (IE uses filter instead)\r
+               // Use a regex to work around a WebKit issue. See #5145\r
+               opacity: /^0.55/.test( a.style.opacity ),\r
+\r
+               // Verify style float existence\r
+               // (IE uses styleFloat instead of cssFloat)\r
+               cssFloat: !!a.style.cssFloat,\r
+\r
+               // Make sure that if no value is specified for a checkbox\r
+               // that it defaults to "on".\r
+               // (WebKit defaults to "" instead)\r
+               checkOn: ( input.value === "on" ),\r
+\r
+               // Make sure that a selected-by-default option has a working selected property.\r
+               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)\r
+               optSelected: opt.selected,\r
+\r
+               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)\r
+               getSetAttribute: div.className !== "t",\r
+\r
+               // Tests for enctype support on a form(#6743)\r
+               enctype: !!document.createElement("form").enctype,\r
+\r
+               // Makes sure cloning an html5 element does not cause problems\r
+               // Where outerHTML is undefined, this still works\r
+               html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",\r
+\r
+               // Will be defined later\r
+               submitBubbles: true,\r
+               changeBubbles: true,\r
+               focusinBubbles: false,\r
+               deleteExpando: true,\r
+               noCloneEvent: true,\r
+               inlineBlockNeedsLayout: false,\r
+               shrinkWrapBlocks: false,\r
+               reliableMarginRight: true,\r
+               pixelMargin: true\r
+       };\r
+\r
+       // jQuery.boxModel DEPRECATED in 1.3, use jQuery.support.boxModel instead\r
+       jQuery.boxModel = support.boxModel = (document.compatMode === "CSS1Compat");\r
+\r
+       // Make sure checked status is properly cloned\r
+       input.checked = true;\r
+       support.noCloneChecked = input.cloneNode( true ).checked;\r
+\r
+       // Make sure that the options inside disabled selects aren't marked as disabled\r
+       // (WebKit marks them as disabled)\r
+       select.disabled = true;\r
+       support.optDisabled = !opt.disabled;\r
+\r
+       // Test to see if it's possible to delete an expando from an element\r
+       // Fails in Internet Explorer\r
+       try {\r
+               delete div.test;\r
+       } catch( e ) {\r
+               support.deleteExpando = false;\r
+       }\r
+\r
+       if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {\r
+               div.attachEvent( "onclick", function() {\r
+                       // Cloning a node shouldn't copy over any\r
+                       // bound event handlers (IE does this)\r
+                       support.noCloneEvent = false;\r
+               });\r
+               div.cloneNode( true ).fireEvent( "onclick" );\r
+       }\r
+\r
+       // Check if a radio maintains its value\r
+       // after being appended to the DOM\r
+       input = document.createElement("input");\r
+       input.value = "t";\r
+       input.setAttribute("type", "radio");\r
+       support.radioValue = input.value === "t";\r
+\r
+       input.setAttribute("checked", "checked");\r
+\r
+       // #11217 - WebKit loses check when the name is after the checked attribute\r
+       input.setAttribute( "name", "t" );\r
+\r
+       div.appendChild( input );\r
+       fragment = document.createDocumentFragment();\r
+       fragment.appendChild( div.lastChild );\r
+\r
+       // WebKit doesn't clone checked state correctly in fragments\r
+       support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;\r
+\r
+       // Check if a disconnected checkbox will retain its checked\r
+       // value of true after appended to the DOM (IE6/7)\r
+       support.appendChecked = input.checked;\r
+\r
+       fragment.removeChild( input );\r
+       fragment.appendChild( div );\r
+\r
+       // Technique from Juriy Zaytsev\r
+       // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/\r
+       // We only care about the case where non-standard event systems\r
+       // are used, namely in IE. Short-circuiting here helps us to\r
+       // avoid an eval call (in setAttribute) which can cause CSP\r
+       // to go haywire. See: https://developer.mozilla.org/en/Security/CSP\r
+       if ( div.attachEvent ) {\r
+               for ( i in {\r
+                       submit: 1,\r
+                       change: 1,\r
+                       focusin: 1\r
+               }) {\r
+                       eventName = "on" + i;\r
+                       isSupported = ( eventName in div );\r
+                       if ( !isSupported ) {\r
+                               div.setAttribute( eventName, "return;" );\r
+                               isSupported = ( typeof div[ eventName ] === "function" );\r
+                       }\r
+                       support[ i + "Bubbles" ] = isSupported;\r
+               }\r
+       }\r
+\r
+       fragment.removeChild( div );\r
+\r
+       // Null elements to avoid leaks in IE\r
+       fragment = select = opt = div = input = null;\r
+\r
+       // Run tests that need a body at doc ready\r
+       jQuery(function() {\r
+               var container, outer, inner, table, td, offsetSupport,\r
+                       marginDiv, conMarginTop, style, html, positionTopLeftWidthHeight,\r
+                       paddingMarginBorderVisibility, paddingMarginBorder,\r
+                       body = document.getElementsByTagName("body")[0];\r
+\r
+               if ( !body ) {\r
+                       // Return for frameset docs that don't have a body\r
+                       return;\r
+               }\r
+\r
+               conMarginTop = 1;\r
+               paddingMarginBorder = "padding:0;margin:0;border:";\r
+               positionTopLeftWidthHeight = "position:absolute;top:0;left:0;width:1px;height:1px;";\r
+               paddingMarginBorderVisibility = paddingMarginBorder + "0;visibility:hidden;";\r
+               style = "style='" + positionTopLeftWidthHeight + paddingMarginBorder + "5px solid #000;";\r
+               html = "<div " + style + "display:block;'><div style='" + paddingMarginBorder + "0;display:block;overflow:hidden;'></div></div>" +\r
+                       "<table " + style + "' cellpadding='0' cellspacing='0'>" +\r
+                       "<tr><td></td></tr></table>";\r
+\r
+               container = document.createElement("div");\r
+               container.style.cssText = paddingMarginBorderVisibility + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";\r
+               body.insertBefore( container, body.firstChild );\r
+\r
+               // Construct the test element\r
+               div = document.createElement("div");\r
+               container.appendChild( div );\r
+\r
+               // Check if table cells still have offsetWidth/Height when they are set\r
+               // to display:none and there are still other visible table cells in a\r
+               // table row; if so, offsetWidth/Height are not reliable for use when\r
+               // determining if an element has been hidden directly using\r
+               // display:none (it is still safe to use offsets if a parent element is\r
+               // hidden; don safety goggles and see bug #4512 for more information).\r
+               // (only IE 8 fails this test)\r
+               div.innerHTML = "<table><tr><td style='" + paddingMarginBorder + "0;display:none'></td><td>t</td></tr></table>";\r
+               tds = div.getElementsByTagName( "td" );\r
+               isSupported = ( tds[ 0 ].offsetHeight === 0 );\r
+\r
+               tds[ 0 ].style.display = "";\r
+               tds[ 1 ].style.display = "none";\r
+\r
+               // Check if empty table cells still have offsetWidth/Height\r
+               // (IE <= 8 fail this test)\r
+               support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );\r
+\r
+               // Check if div with explicit width and no margin-right incorrectly\r
+               // gets computed margin-right based on width of container. For more\r
+               // info see bug #3333\r
+               // Fails in WebKit before Feb 2011 nightlies\r
+               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right\r
+               if ( window.getComputedStyle ) {\r
+                       div.innerHTML = "";\r
+                       marginDiv = document.createElement( "div" );\r
+                       marginDiv.style.width = "0";\r
+                       marginDiv.style.marginRight = "0";\r
+                       div.style.width = "2px";\r
+                       div.appendChild( marginDiv );\r
+                       support.reliableMarginRight =\r
+                               ( parseInt( ( window.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;\r
+               }\r
+\r
+               if ( typeof div.style.zoom !== "undefined" ) {\r
+                       // Check if natively block-level elements act like inline-block\r
+                       // elements when setting their display to 'inline' and giving\r
+                       // them layout\r
+                       // (IE < 8 does this)\r
+                       div.innerHTML = "";\r
+                       div.style.width = div.style.padding = "1px";\r
+                       div.style.border = 0;\r
+                       div.style.overflow = "hidden";\r
+                       div.style.display = "inline";\r
+                       div.style.zoom = 1;\r
+                       support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 );\r
+\r
+                       // Check if elements with layout shrink-wrap their children\r
+                       // (IE 6 does this)\r
+                       div.style.display = "block";\r
+                       div.style.overflow = "visible";\r
+                       div.innerHTML = "<div style='width:5px;'></div>";\r
+                       support.shrinkWrapBlocks = ( div.offsetWidth !== 3 );\r
+               }\r
+\r
+               div.style.cssText = positionTopLeftWidthHeight + paddingMarginBorderVisibility;\r
+               div.innerHTML = html;\r
+\r
+               outer = div.firstChild;\r
+               inner = outer.firstChild;\r
+               td = outer.nextSibling.firstChild.firstChild;\r
+\r
+               offsetSupport = {\r
+                       doesNotAddBorder: ( inner.offsetTop !== 5 ),\r
+                       doesAddBorderForTableAndCells: ( td.offsetTop === 5 )\r
+               };\r
+\r
+               inner.style.position = "fixed";\r
+               inner.style.top = "20px";\r
+\r
+               // safari subtracts parent border width here which is 5px\r
+               offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );\r
+               inner.style.position = inner.style.top = "";\r
+\r
+               outer.style.overflow = "hidden";\r
+               outer.style.position = "relative";\r
+\r
+               offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );\r
+               offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );\r
+\r
+               if ( window.getComputedStyle ) {\r
+                       div.style.marginTop = "1%";\r
+                       support.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%";\r
+               }\r
+\r
+               if ( typeof container.style.zoom !== "undefined" ) {\r
+                       container.style.zoom = 1;\r
+               }\r
+\r
+               body.removeChild( container );\r
+               marginDiv = div = container = null;\r
+\r
+               jQuery.extend( support, offsetSupport );\r
+       });\r
+\r
+       return support;\r
+})();\r
+\r
+\r
+\r
+\r
+var rbrace = /^(?:\{.*\}|\[.*\])$/,\r
+       rmultiDash = /([A-Z])/g;\r
+\r
+jQuery.extend({\r
+       cache: {},\r
+\r
+       // Please use with caution\r
+       uuid: 0,\r
+\r
+       // Unique for each copy of jQuery on the page\r
+       // Non-digits removed to match rinlinejQuery\r
+       expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),\r
+\r
+       // The following elements throw uncatchable exceptions if you\r
+       // attempt to add expando properties to them.\r
+       noData: {\r
+               "embed": true,\r
+               // Ban all objects except for Flash (which handle expandos)\r
+               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",\r
+               "applet": true\r
+       },\r
+\r
+       hasData: function( elem ) {\r
+               elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];\r
+               return !!elem && !isEmptyDataObject( elem );\r
+       },\r
+\r
+       data: function( elem, name, data, pvt /* Internal Use Only */ ) {\r
+               if ( !jQuery.acceptData( elem ) ) {\r
+                       return;\r
+               }\r
+\r
+               var privateCache, thisCache, ret,\r
+                       internalKey = jQuery.expando,\r
+                       getByName = typeof name === "string",\r
+\r
+                       // We have to handle DOM nodes and JS objects differently because IE6-7\r
+                       // can't GC object references properly across the DOM-JS boundary\r
+                       isNode = elem.nodeType,\r
+\r
+                       // Only DOM nodes need the global jQuery cache; JS object data is\r
+                       // attached directly to the object so GC can occur automatically\r
+                       cache = isNode ? jQuery.cache : elem,\r
+\r
+                       // Only defining an ID for JS objects if its cache already exists allows\r
+                       // the code to shortcut on the same path as a DOM node with no cache\r
+                       id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey,\r
+                       isEvents = name === "events";\r
+\r
+               // Avoid doing any more work than we need to when trying to get data on an\r
+               // object that has no data at all\r
+               if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {\r
+                       return;\r
+               }\r
+\r
+               if ( !id ) {\r
+                       // Only DOM nodes need a new unique ID for each element since their data\r
+                       // ends up in the global cache\r
+                       if ( isNode ) {\r
+                               elem[ internalKey ] = id = ++jQuery.uuid;\r
+                       } else {\r
+                               id = internalKey;\r
+                       }\r
+               }\r
+\r
+               if ( !cache[ id ] ) {\r
+                       cache[ id ] = {};\r
+\r
+                       // Avoids exposing jQuery metadata on plain JS objects when the object\r
+                       // is serialized using JSON.stringify\r
+                       if ( !isNode ) {\r
+                               cache[ id ].toJSON = jQuery.noop;\r
+                       }\r
+               }\r
+\r
+               // An object can be passed to jQuery.data instead of a key/value pair; this gets\r
+               // shallow copied over onto the existing cache\r
+               if ( typeof name === "object" || typeof name === "function" ) {\r
+                       if ( pvt ) {\r
+                               cache[ id ] = jQuery.extend( cache[ id ], name );\r
+                       } else {\r
+                               cache[ id ].data = jQuery.extend( cache[ id ].data, name );\r
+                       }\r
+               }\r
+\r
+               privateCache = thisCache = cache[ id ];\r
+\r
+               // jQuery data() is stored in a separate object inside the object's internal data\r
+               // cache in order to avoid key collisions between internal data and user-defined\r
+               // data.\r
+               if ( !pvt ) {\r
+                       if ( !thisCache.data ) {\r
+                               thisCache.data = {};\r
+                       }\r
+\r
+                       thisCache = thisCache.data;\r
+               }\r
+\r
+               if ( data !== undefined ) {\r
+                       thisCache[ jQuery.camelCase( name ) ] = data;\r
+               }\r
+\r
+               // Users should not attempt to inspect the internal events object using jQuery.data,\r
+               // it is undocumented and subject to change. But does anyone listen? No.\r
+               if ( isEvents && !thisCache[ name ] ) {\r
+                       return privateCache.events;\r
+               }\r
+\r
+               // Check for both converted-to-camel and non-converted data property names\r
+               // If a data property was specified\r
+               if ( getByName ) {\r
+\r
+                       // First Try to find as-is property data\r
+                       ret = thisCache[ name ];\r
+\r
+                       // Test for null|undefined property data\r
+                       if ( ret == null ) {\r
+\r
+                               // Try to find the camelCased property\r
+                               ret = thisCache[ jQuery.camelCase( name ) ];\r
+                       }\r
+               } else {\r
+                       ret = thisCache;\r
+               }\r
+\r
+               return ret;\r
+       },\r
+\r
+       removeData: function( elem, name, pvt /* Internal Use Only */ ) {\r
+               if ( !jQuery.acceptData( elem ) ) {\r
+                       return;\r
+               }\r
+\r
+               var thisCache, i, l,\r
+\r
+                       // Reference to internal data cache key\r
+                       internalKey = jQuery.expando,\r
+\r
+                       isNode = elem.nodeType,\r
+\r
+                       // See jQuery.data for more information\r
+                       cache = isNode ? jQuery.cache : elem,\r
+\r
+                       // See jQuery.data for more information\r
+                       id = isNode ? elem[ internalKey ] : internalKey;\r
+\r
+               // If there is already no cache entry for this object, there is no\r
+               // purpose in continuing\r
+               if ( !cache[ id ] ) {\r
+                       return;\r
+               }\r
+\r
+               if ( name ) {\r
+\r
+                       thisCache = pvt ? cache[ id ] : cache[ id ].data;\r
+\r
+                       if ( thisCache ) {\r
+\r
+                               // Support array or space separated string names for data keys\r
+                               if ( !jQuery.isArray( name ) ) {\r
+\r
+                                       // try the string as a key before any manipulation\r
+                                       if ( name in thisCache ) {\r
+                                               name = [ name ];\r
+                                       } else {\r
+\r
+                                               // split the camel cased version by spaces unless a key with the spaces exists\r
+                                               name = jQuery.camelCase( name );\r
+                                               if ( name in thisCache ) {\r
+                                                       name = [ name ];\r
+                                               } else {\r
+                                                       name = name.split( " " );\r
+                                               }\r
+                                       }\r
+                               }\r
+\r
+                               for ( i = 0, l = name.length; i < l; i++ ) {\r
+                                       delete thisCache[ name[i] ];\r
+                               }\r
+\r
+                               // If there is no data left in the cache, we want to continue\r
+                               // and let the cache object itself get destroyed\r
+                               if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {\r
+                                       return;\r
+                               }\r
+                       }\r
+               }\r
+\r
+               // See jQuery.data for more information\r
+               if ( !pvt ) {\r
+                       delete cache[ id ].data;\r
+\r
+                       // Don't destroy the parent cache unless the internal data object\r
+                       // had been the only thing left in it\r
+                       if ( !isEmptyDataObject(cache[ id ]) ) {\r
+                               return;\r
+                       }\r
+               }\r
+\r
+               // Browsers that fail expando deletion also refuse to delete expandos on\r
+               // the window, but it will allow it on all other JS objects; other browsers\r
+               // don't care\r
+               // Ensure that `cache` is not a window object #10080\r
+               if ( jQuery.support.deleteExpando || !cache.setInterval ) {\r
+                       delete cache[ id ];\r
+               } else {\r
+                       cache[ id ] = null;\r
+               }\r
+\r
+               // We destroyed the cache and need to eliminate the expando on the node to avoid\r
+               // false lookups in the cache for entries that no longer exist\r
+               if ( isNode ) {\r
+                       // IE does not allow us to delete expando properties from nodes,\r
+                       // nor does it have a removeAttribute function on Document nodes;\r
+                       // we must handle all of these cases\r
+                       if ( jQuery.support.deleteExpando ) {\r
+                               delete elem[ internalKey ];\r
+                       } else if ( elem.removeAttribute ) {\r
+                               elem.removeAttribute( internalKey );\r
+                       } else {\r
+                               elem[ internalKey ] = null;\r
+                       }\r
+               }\r
+       },\r
+\r
+       // For internal use only.\r
+       _data: function( elem, name, data ) {\r
+               return jQuery.data( elem, name, data, true );\r
+       },\r
+\r
+       // A method for determining if a DOM node can handle the data expando\r
+       acceptData: function( elem ) {\r
+               if ( elem.nodeName ) {\r
+                       var match = jQuery.noData[ elem.nodeName.toLowerCase() ];\r
+\r
+                       if ( match ) {\r
+                               return !(match === true || elem.getAttribute("classid") !== match);\r
+                       }\r
+               }\r
+\r
+               return true;\r
+       }\r
+});\r
+\r
+jQuery.fn.extend({\r
+       data: function( key, value ) {\r
+               var parts, part, attr, name, l,\r
+                       elem = this[0],\r
+                       i = 0,\r
+                       data = null;\r
+\r
+               // Gets all values\r
+               if ( key === undefined ) {\r
+                       if ( this.length ) {\r
+                               data = jQuery.data( elem );\r
+\r
+                               if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {\r
+                                       attr = elem.attributes;\r
+                                       for ( l = attr.length; i < l; i++ ) {\r
+                                               name = attr[i].name;\r
+\r
+                                               if ( name.indexOf( "data-" ) === 0 ) {\r
+                                                       name = jQuery.camelCase( name.substring(5) );\r
+\r
+                                                       dataAttr( elem, name, data[ name ] );\r
+                                               }\r
+                                       }\r
+                                       jQuery._data( elem, "parsedAttrs", true );\r
+                               }\r
+                       }\r
+\r
+                       return data;\r
+               }\r
+\r
+               // Sets multiple values\r
+               if ( typeof key === "object" ) {\r
+                       return this.each(function() {\r
+                               jQuery.data( this, key );\r
+                       });\r
+               }\r
+\r
+               parts = key.split( ".", 2 );\r
+               parts[1] = parts[1] ? "." + parts[1] : "";\r
+               part = parts[1] + "!";\r
+\r
+               return jQuery.access( this, function( value ) {\r
+\r
+                       if ( value === undefined ) {\r
+                               data = this.triggerHandler( "getData" + part, [ parts[0] ] );\r
+\r
+                               // Try to fetch any internally stored data first\r
+                               if ( data === undefined && elem ) {\r
+                                       data = jQuery.data( elem, key );\r
+                                       data = dataAttr( elem, key, data );\r
+                               }\r
+\r
+                               return data === undefined && parts[1] ?\r
+                                       this.data( parts[0] ) :\r
+                                       data;\r
+                       }\r
+\r
+                       parts[1] = value;\r
+                       this.each(function() {\r
+                               var self = jQuery( this );\r
+\r
+                               self.triggerHandler( "setData" + part, parts );\r
+                               jQuery.data( this, key, value );\r
+                               self.triggerHandler( "changeData" + part, parts );\r
+                       });\r
+               }, null, value, arguments.length > 1, null, false );\r
+       },\r
+\r
+       removeData: function( key ) {\r
+               return this.each(function() {\r
+                       jQuery.removeData( this, key );\r
+               });\r
+       }\r
+});\r
+\r
+function dataAttr( elem, key, data ) {\r
+       // If nothing was found internally, try to fetch any\r
+       // data from the HTML5 data-* attribute\r
+       if ( data === undefined && elem.nodeType === 1 ) {\r
+\r
+               var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();\r
+\r
+               data = elem.getAttribute( name );\r
+\r
+               if ( typeof data === "string" ) {\r
+                       try {\r
+                               data = data === "true" ? true :\r
+                               data === "false" ? false :\r
+                               data === "null" ? null :\r
+                               jQuery.isNumeric( data ) ? +data :\r
+                                       rbrace.test( data ) ? jQuery.parseJSON( data ) :\r
+                                       data;\r
+                       } catch( e ) {}\r
+\r
+                       // Make sure we set the data so it isn't changed later\r
+                       jQuery.data( elem, key, data );\r
+\r
+               } else {\r
+                       data = undefined;\r
+               }\r
+       }\r
+\r
+       return data;\r
+}\r
+\r
+// checks a cache object for emptiness\r
+function isEmptyDataObject( obj ) {\r
+       for ( var name in obj ) {\r
+\r
+               // if the public data object is empty, the private is still empty\r
+               if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {\r
+                       continue;\r
+               }\r
+               if ( name !== "toJSON" ) {\r
+                       return false;\r
+               }\r
+       }\r
+\r
+       return true;\r
+}\r
+\r
+\r
+\r
+\r
+function handleQueueMarkDefer( elem, type, src ) {\r
+       var deferDataKey = type + "defer",\r
+               queueDataKey = type + "queue",\r
+               markDataKey = type + "mark",\r
+               defer = jQuery._data( elem, deferDataKey );\r
+       if ( defer &&\r
+               ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&\r
+               ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {\r
+               // Give room for hard-coded callbacks to fire first\r
+               // and eventually mark/queue something else on the element\r
+               setTimeout( function() {\r
+                       if ( !jQuery._data( elem, queueDataKey ) &&\r
+                               !jQuery._data( elem, markDataKey ) ) {\r
+                               jQuery.removeData( elem, deferDataKey, true );\r
+                               defer.fire();\r
+                       }\r
+               }, 0 );\r
+       }\r
+}\r
+\r
+jQuery.extend({\r
+\r
+       _mark: function( elem, type ) {\r
+               if ( elem ) {\r
+                       type = ( type || "fx" ) + "mark";\r
+                       jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );\r
+               }\r
+       },\r
+\r
+       _unmark: function( force, elem, type ) {\r
+               if ( force !== true ) {\r
+                       type = elem;\r
+                       elem = force;\r
+                       force = false;\r
+               }\r
+               if ( elem ) {\r
+                       type = type || "fx";\r
+                       var key = type + "mark",\r
+                               count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );\r
+                       if ( count ) {\r
+                               jQuery._data( elem, key, count );\r
+                       } else {\r
+                               jQuery.removeData( elem, key, true );\r
+                               handleQueueMarkDefer( elem, type, "mark" );\r
+                       }\r
+               }\r
+       },\r
+\r
+       queue: function( elem, type, data ) {\r
+               var q;\r
+               if ( elem ) {\r
+                       type = ( type || "fx" ) + "queue";\r
+                       q = jQuery._data( elem, type );\r
+\r
+                       // Speed up dequeue by getting out quickly if this is just a lookup\r
+                       if ( data ) {\r
+                               if ( !q || jQuery.isArray(data) ) {\r
+                                       q = jQuery._data( elem, type, jQuery.makeArray(data) );\r
+                               } else {\r
+                                       q.push( data );\r
+                               }\r
+                       }\r
+                       return q || [];\r
+               }\r
+       },\r
+\r
+       dequeue: function( elem, type ) {\r
+               type = type || "fx";\r
+\r
+               var queue = jQuery.queue( elem, type ),\r
+                       fn = queue.shift(),\r
+                       hooks = {};\r
+\r
+               // If the fx queue is dequeued, always remove the progress sentinel\r
+               if ( fn === "inprogress" ) {\r
+                       fn = queue.shift();\r
+               }\r
+\r
+               if ( fn ) {\r
+                       // Add a progress sentinel to prevent the fx queue from being\r
+                       // automatically dequeued\r
+                       if ( type === "fx" ) {\r
+                               queue.unshift( "inprogress" );\r
+                       }\r
+\r
+                       jQuery._data( elem, type + ".run", hooks );\r
+                       fn.call( elem, function() {\r
+                               jQuery.dequeue( elem, type );\r
+                       }, hooks );\r
+               }\r
+\r
+               if ( !queue.length ) {\r
+                       jQuery.removeData( elem, type + "queue " + type + ".run", true );\r
+                       handleQueueMarkDefer( elem, type, "queue" );\r
+               }\r
+       }\r
+});\r
+\r
+jQuery.fn.extend({\r
+       queue: function( type, data ) {\r
+               var setter = 2;\r
+\r
+               if ( typeof type !== "string" ) {\r
+                       data = type;\r
+                       type = "fx";\r
+                       setter--;\r
+               }\r
+\r
+               if ( arguments.length < setter ) {\r
+                       return jQuery.queue( this[0], type );\r
+               }\r
+\r
+               return data === undefined ?\r
+                       this :\r
+                       this.each(function() {\r
+                               var queue = jQuery.queue( this, type, data );\r
+\r
+                               if ( type === "fx" && queue[0] !== "inprogress" ) {\r
+                                       jQuery.dequeue( this, type );\r
+                               }\r
+                       });\r
+       },\r
+       dequeue: function( type ) {\r
+               return this.each(function() {\r
+                       jQuery.dequeue( this, type );\r
+               });\r
+       },\r
+       // Based off of the plugin by Clint Helfers, with permission.\r
+       // http://blindsignals.com/index.php/2009/07/jquery-delay/\r
+       delay: function( time, type ) {\r
+               time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;\r
+               type = type || "fx";\r
+\r
+               return this.queue( type, function( next, hooks ) {\r
+                       var timeout = setTimeout( next, time );\r
+                       hooks.stop = function() {\r
+                               clearTimeout( timeout );\r
+                       };\r
+               });\r
+       },\r
+       clearQueue: function( type ) {\r
+               return this.queue( type || "fx", [] );\r
+       },\r
+       // Get a promise resolved when queues of a certain type\r
+       // are emptied (fx is the type by default)\r
+       promise: function( type, object ) {\r
+               if ( typeof type !== "string" ) {\r
+                       object = type;\r
+                       type = undefined;\r
+               }\r
+               type = type || "fx";\r
+               var defer = jQuery.Deferred(),\r
+                       elements = this,\r
+                       i = elements.length,\r
+                       count = 1,\r
+                       deferDataKey = type + "defer",\r
+                       queueDataKey = type + "queue",\r
+                       markDataKey = type + "mark",\r
+                       tmp;\r
+               function resolve() {\r
+                       if ( !( --count ) ) {\r
+                               defer.resolveWith( elements, [ elements ] );\r
+                       }\r
+               }\r
+               while( i-- ) {\r
+                       if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||\r
+                                       ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||\r
+                                               jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&\r
+                                       jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {\r
+                               count++;\r
+                               tmp.add( resolve );\r
+                       }\r
+               }\r
+               resolve();\r
+               return defer.promise( object );\r
+       }\r
+});\r
+\r
+\r
+\r
+\r
+var rclass = /[\n\t\r]/g,\r
+       rspace = /\s+/,\r
+       rreturn = /\r/g,\r
+       rtype = /^(?:button|input)$/i,\r
+       rfocusable = /^(?:button|input|object|select|textarea)$/i,\r
+       rclickable = /^a(?:rea)?$/i,\r
+       rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,\r
+       getSetAttribute = jQuery.support.getSetAttribute,\r
+       nodeHook, boolHook, fixSpecified;\r
+\r
+jQuery.fn.extend({\r
+       attr: function( name, value ) {\r
+               return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );\r
+       },\r
+\r
+       removeAttr: function( name ) {\r
+               return this.each(function() {\r
+                       jQuery.removeAttr( this, name );\r
+               });\r
+       },\r
+\r
+       prop: function( name, value ) {\r
+               return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );\r
+       },\r
+\r
+       removeProp: function( name ) {\r
+               name = jQuery.propFix[ name ] || name;\r
+               return this.each(function() {\r
+                       // try/catch handles cases where IE balks (such as removing a property on window)\r
+                       try {\r
+                               this[ name ] = undefined;\r
+                               delete this[ name ];\r
+                       } catch( e ) {}\r
+               });\r
+       },\r
+\r
+       addClass: function( value ) {\r
+               var classNames, i, l, elem,\r
+                       setClass, c, cl;\r
+\r
+               if ( jQuery.isFunction( value ) ) {\r
+                       return this.each(function( j ) {\r
+                               jQuery( this ).addClass( value.call(this, j, this.className) );\r
+                       });\r
+               }\r
+\r
+               if ( value && typeof value === "string" ) {\r
+                       classNames = value.split( rspace );\r
+\r
+                       for ( i = 0, l = this.length; i < l; i++ ) {\r
+                               elem = this[ i ];\r
+\r
+                               if ( elem.nodeType === 1 ) {\r
+                                       if ( !elem.className && classNames.length === 1 ) {\r
+                                               elem.className = value;\r
+\r
+                                       } else {\r
+                                               setClass = " " + elem.className + " ";\r
+\r
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {\r
+                                                       if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {\r
+                                                               setClass += classNames[ c ] + " ";\r
+                                                       }\r
+                                               }\r
+                                               elem.className = jQuery.trim( setClass );\r
+                                       }\r
+                               }\r
+                       }\r
+               }\r
+\r
+               return this;\r
+       },\r
+\r
+       removeClass: function( value ) {\r
+               var classNames, i, l, elem, className, c, cl;\r
+\r
+               if ( jQuery.isFunction( value ) ) {\r
+                       return this.each(function( j ) {\r
+                               jQuery( this ).removeClass( value.call(this, j, this.className) );\r
+                       });\r
+               }\r
+\r
+               if ( (value && typeof value === "string") || value === undefined ) {\r
+                       classNames = ( value || "" ).split( rspace );\r
+\r
+                       for ( i = 0, l = this.length; i < l; i++ ) {\r
+                               elem = this[ i ];\r
+\r
+                               if ( elem.nodeType === 1 && elem.className ) {\r
+                                       if ( value ) {\r
+                                               className = (" " + elem.className + " ").replace( rclass, " " );\r
+                                               for ( c = 0, cl = classNames.length; c < cl; c++ ) {\r
+                                                       className = className.replace(" " + classNames[ c ] + " ", " ");\r
+                                               }\r
+                                               elem.className = jQuery.trim( className );\r
+\r
+                                       } else {\r
+                                               elem.className = "";\r
+                                       }\r
+                               }\r
+                       }\r
+               }\r
+\r
+               return this;\r
+       },\r
+\r
+       toggleClass: function( value, stateVal ) {\r
+               var type = typeof value,\r
+                       isBool = typeof stateVal === "boolean";\r
+\r
+               if ( jQuery.isFunction( value ) ) {\r
+                       return this.each(function( i ) {\r
+                               jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );\r
+                       });\r
+               }\r
+\r
+               return this.each(function() {\r
+                       if ( type === "string" ) {\r
+                               // toggle individual class names\r
+                               var className,\r
+                                       i = 0,\r
+                                       self = jQuery( this ),\r
+                                       state = stateVal,\r
+                                       classNames = value.split( rspace );\r
+\r
+                               while ( (className = classNames[ i++ ]) ) {\r
+                                       // check each className given, space seperated list\r
+                                       state = isBool ? state : !self.hasClass( className );\r
+                                       self[ state ? "addClass" : "removeClass" ]( className );\r
+                               }\r
+\r
+                       } else if ( type === "undefined" || type === "boolean" ) {\r
+                               if ( this.className ) {\r
+                                       // store className if set\r
+                                       jQuery._data( this, "__className__", this.className );\r
+                               }\r
+\r
+                               // toggle whole className\r
+                               this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";\r
+                       }\r
+               });\r
+       },\r
+\r
+       hasClass: function( selector ) {\r
+               var className = " " + selector + " ",\r
+                       i = 0,\r
+                       l = this.length;\r
+               for ( ; i < l; i++ ) {\r
+                       if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {\r
+                               return true;\r
+                       }\r
+               }\r
+\r
+               return false;\r
+       },\r
+\r
+       val: function( value ) {\r
+               var hooks, ret, isFunction,\r
+                       elem = this[0];\r
+\r
+               if ( !arguments.length ) {\r
+                       if ( elem ) {\r
+                               hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];\r
+\r
+                               if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {\r
+                                       return ret;\r
+                               }\r
+\r
+                               ret = elem.value;\r
+\r
+                               return typeof ret === "string" ?\r
+                                       // handle most common string cases\r
+                                       ret.replace(rreturn, "") :\r
+                                       // handle cases where value is null/undef or number\r
+                                       ret == null ? "" : ret;\r
+                       }\r
+\r
+                       return;\r
+               }\r
+\r
+               isFunction = jQuery.isFunction( value );\r
+\r
+               return this.each(function( i ) {\r
+                       var self = jQuery(this), val;\r
+\r
+                       if ( this.nodeType !== 1 ) {\r
+                               return;\r
+                       }\r
+\r
+                       if ( isFunction ) {\r
+                               val = value.call( this, i, self.val() );\r
+                       } else {\r
+                               val = value;\r
+                       }\r
+\r
+                       // Treat null/undefined as ""; convert numbers to string\r
+                       if ( val == null ) {\r
+                               val = "";\r
+                       } else if ( typeof val === "number" ) {\r
+                               val += "";\r
+                       } else if ( jQuery.isArray( val ) ) {\r
+                               val = jQuery.map(val, function ( value ) {\r
+                                       return value == null ? "" : value + "";\r
+                               });\r
+                       }\r
+\r
+                       hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];\r
+\r
+                       // If set returns undefined, fall back to normal setting\r
+                       if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {\r
+                               this.value = val;\r
+                       }\r
+               });\r
+       }\r
+});\r
+\r
+jQuery.extend({\r
+       valHooks: {\r
+               option: {\r
+                       get: function( elem ) {\r
+                               // attributes.value is undefined in Blackberry 4.7 but\r
+                               // uses .value. See #6932\r
+                               var val = elem.attributes.value;\r
+                               return !val || val.specified ? elem.value : elem.text;\r
+                       }\r
+               },\r
+               select: {\r
+                       get: function( elem ) {\r
+                               var value, i, max, option,\r
+                                       index = elem.selectedIndex,\r
+                                       values = [],\r
+                                       options = elem.options,\r
+                                       one = elem.type === "select-one";\r
+\r
+                               // Nothing was selected\r
+                               if ( index < 0 ) {\r
+                                       return null;\r
+                               }\r
+\r
+                               // Loop through all the selected options\r
+                               i = one ? index : 0;\r
+                               max = one ? index + 1 : options.length;\r
+                               for ( ; i < max; i++ ) {\r
+                                       option = options[ i ];\r
+\r
+                                       // Don't return options that are disabled or in a disabled optgroup\r
+                                       if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&\r
+                                                       (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {\r
+\r
+                                               // Get the specific value for the option\r
+                                               value = jQuery( option ).val();\r
+\r
+                                               // We don't need an array for one selects\r
+                                               if ( one ) {\r
+                                                       return value;\r
+                                               }\r
+\r
+                                               // Multi-Selects return an array\r
+                                               values.push( value );\r
+                                       }\r
+                               }\r
+\r
+                               // Fixes Bug #2551 -- select.val() broken in IE after form.reset()\r
+                               if ( one && !values.length && options.length ) {\r
+                                       return jQuery( options[ index ] ).val();\r
+                               }\r
+\r
+                               return values;\r
+                       },\r
+\r
+                       set: function( elem, value ) {\r
+                               var values = jQuery.makeArray( value );\r
+\r
+                               jQuery(elem).find("option").each(function() {\r
+                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;\r
+                               });\r
+\r
+                               if ( !values.length ) {\r
+                                       elem.selectedIndex = -1;\r
+                               }\r
+                               return values;\r
+                       }\r
+               }\r
+       },\r
+\r
+       attrFn: {\r
+               val: true,\r
+               css: true,\r
+               html: true,\r
+               text: true,\r
+               data: true,\r
+               width: true,\r
+               height: true,\r
+               offset: true\r
+       },\r
+\r
+       attr: function( elem, name, value, pass ) {\r
+               var ret, hooks, notxml,\r
+                       nType = elem.nodeType;\r
+\r
+               // don't get/set attributes on text, comment and attribute nodes\r
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {\r
+                       return;\r
+               }\r
+\r
+               if ( pass && name in jQuery.attrFn ) {\r
+                       return jQuery( elem )[ name ]( value );\r
+               }\r
+\r
+               // Fallback to prop when attributes are not supported\r
+               if ( typeof elem.getAttribute === "undefined" ) {\r
+                       return jQuery.prop( elem, name, value );\r
+               }\r
+\r
+               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );\r
+\r
+               // All attributes are lowercase\r
+               // Grab necessary hook if one is defined\r
+               if ( notxml ) {\r
+                       name = name.toLowerCase();\r
+                       hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );\r
+               }\r
+\r
+               if ( value !== undefined ) {\r
+\r
+                       if ( value === null ) {\r
+                               jQuery.removeAttr( elem, name );\r
+                               return;\r
+\r
+                       } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {\r
+                               return ret;\r
+\r
+                       } else {\r
+                               elem.setAttribute( name, "" + value );\r
+                               return value;\r
+                       }\r
+\r
+               } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {\r
+                       return ret;\r
+\r
+               } else {\r
+\r
+                       ret = elem.getAttribute( name );\r
+\r
+                       // Non-existent attributes return null, we normalize to undefined\r
+                       return ret === null ?\r
+                               undefined :\r
+                               ret;\r
+               }\r
+       },\r
+\r
+       removeAttr: function( elem, value ) {\r
+               var propName, attrNames, name, l, isBool,\r
+                       i = 0;\r
+\r
+               if ( value && elem.nodeType === 1 ) {\r
+                       attrNames = value.toLowerCase().split( rspace );\r
+                       l = attrNames.length;\r
+\r
+                       for ( ; i < l; i++ ) {\r
+                               name = attrNames[ i ];\r
+\r
+                               if ( name ) {\r
+                                       propName = jQuery.propFix[ name ] || name;\r
+                                       isBool = rboolean.test( name );\r
+\r
+                                       // See #9699 for explanation of this approach (setting first, then removal)\r
+                                       // Do not do this for boolean attributes (see #10870)\r
+                                       if ( !isBool ) {\r
+                                               jQuery.attr( elem, name, "" );\r
+                                       }\r
+                                       elem.removeAttribute( getSetAttribute ? name : propName );\r
+\r
+                                       // Set corresponding property to false for boolean attributes\r
+                                       if ( isBool && propName in elem ) {\r
+                                               elem[ propName ] = false;\r
+                                       }\r
+                               }\r
+                       }\r
+               }\r
+       },\r
+\r
+       attrHooks: {\r
+               type: {\r
+                       set: function( elem, value ) {\r
+                               // We can't allow the type property to be changed (since it causes problems in IE)\r
+                               if ( rtype.test( elem.nodeName ) && elem.parentNode ) {\r
+                                       jQuery.error( "type property can't be changed" );\r
+                               } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {\r
+                                       // Setting the type on a radio button after the value resets the value in IE6-9\r
+                                       // Reset value to it's default in case type is set after value\r
+                                       // This is for element creation\r
+                                       var val = elem.value;\r
+                                       elem.setAttribute( "type", value );\r
+                                       if ( val ) {\r
+                                               elem.value = val;\r
+                                       }\r
+                                       return value;\r
+                               }\r
+                       }\r
+               },\r
+               // Use the value property for back compat\r
+               // Use the nodeHook for button elements in IE6/7 (#1954)\r
+               value: {\r
+                       get: function( elem, name ) {\r
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {\r
+                                       return nodeHook.get( elem, name );\r
+                               }\r
+                               return name in elem ?\r
+                                       elem.value :\r
+                                       null;\r
+                       },\r
+                       set: function( elem, value, name ) {\r
+                               if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {\r
+                                       return nodeHook.set( elem, value, name );\r
+                               }\r
+                               // Does not return so that setAttribute is also used\r
+                               elem.value = value;\r
+                       }\r
+               }\r
+       },\r
+\r
+       propFix: {\r
+               tabindex: "tabIndex",\r
+               readonly: "readOnly",\r
+               "for": "htmlFor",\r
+               "class": "className",\r
+               maxlength: "maxLength",\r
+               cellspacing: "cellSpacing",\r
+               cellpadding: "cellPadding",\r
+               rowspan: "rowSpan",\r
+               colspan: "colSpan",\r
+               usemap: "useMap",\r
+               frameborder: "frameBorder",\r
+               contenteditable: "contentEditable"\r
+       },\r
+\r
+       prop: function( elem, name, value ) {\r
+               var ret, hooks, notxml,\r
+                       nType = elem.nodeType;\r
+\r
+               // don't get/set properties on text, comment and attribute nodes\r
+               if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {\r
+                       return;\r
+               }\r
+\r
+               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );\r
+\r
+               if ( notxml ) {\r
+                       // Fix name and attach hooks\r
+                       name = jQuery.propFix[ name ] || name;\r
+                       hooks = jQuery.propHooks[ name ];\r
+               }\r
+\r
+               if ( value !== undefined ) {\r
+                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {\r
+                               return ret;\r
+\r
+                       } else {\r
+                               return ( elem[ name ] = value );\r
+                       }\r
+\r
+               } else {\r
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {\r
+                               return ret;\r
+\r
+                       } else {\r
+                               return elem[ name ];\r
+                       }\r
+               }\r
+       },\r
+\r
+       propHooks: {\r
+               tabIndex: {\r
+                       get: function( elem ) {\r
+                               // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set\r
+                               // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/\r
+                               var attributeNode = elem.getAttributeNode("tabindex");\r
+\r
+                               return attributeNode && attributeNode.specified ?\r
+                                       parseInt( attributeNode.value, 10 ) :\r
+                                       rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?\r
+                                               0 :\r
+                                               undefined;\r
+                       }\r
+               }\r
+       }\r
+});\r
+\r
+// Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)\r
+jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;\r
+\r
+// Hook for boolean attributes\r
+boolHook = {\r
+       get: function( elem, name ) {\r
+               // Align boolean attributes with corresponding properties\r
+               // Fall back to attribute presence where some booleans are not supported\r
+               var attrNode,\r
+                       property = jQuery.prop( elem, name );\r
+               return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?\r
+                       name.toLowerCase() :\r
+                       undefined;\r
+       },\r
+       set: function( elem, value, name ) {\r
+               var propName;\r
+               if ( value === false ) {\r
+                       // Remove boolean attributes when set to false\r
+                       jQuery.removeAttr( elem, name );\r
+               } else {\r
+                       // value is true since we know at this point it's type boolean and not false\r
+                       // Set boolean attributes to the same name and set the DOM property\r
+                       propName = jQuery.propFix[ name ] || name;\r
+                       if ( propName in elem ) {\r
+                               // Only set the IDL specifically if it already exists on the element\r
+                               elem[ propName ] = true;\r
+                       }\r
+\r
+                       elem.setAttribute( name, name.toLowerCase() );\r
+               }\r
+               return name;\r
+       }\r
+};\r
+\r
+// IE6/7 do not support getting/setting some attributes with get/setAttribute\r
+if ( !getSetAttribute ) {\r
+\r
+       fixSpecified = {\r
+               name: true,\r
+               id: true,\r
+               coords: true\r
+       };\r
+\r
+       // Use this for any attribute in IE6/7\r
+       // This fixes almost every IE6/7 issue\r
+       nodeHook = jQuery.valHooks.button = {\r
+               get: function( elem, name ) {\r
+                       var ret;\r
+                       ret = elem.getAttributeNode( name );\r
+                       return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?\r
+                               ret.nodeValue :\r
+                               undefined;\r
+               },\r
+               set: function( elem, value, name ) {\r
+                       // Set the existing or create a new attribute node\r
+                       var ret = elem.getAttributeNode( name );\r
+                       if ( !ret ) {\r
+                               ret = document.createAttribute( name );\r
+                               elem.setAttributeNode( ret );\r
+                       }\r
+                       return ( ret.nodeValue = value + "" );\r
+               }\r
+       };\r
+\r
+       // Apply the nodeHook to tabindex\r
+       jQuery.attrHooks.tabindex.set = nodeHook.set;\r
+\r
+       // Set width and height to auto instead of 0 on empty string( Bug #8150 )\r
+       // This is for removals\r
+       jQuery.each([ "width", "height" ], function( i, name ) {\r
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {\r
+                       set: function( elem, value ) {\r
+                               if ( value === "" ) {\r
+                                       elem.setAttribute( name, "auto" );\r
+                                       return value;\r
+                               }\r
+                       }\r
+               });\r
+       });\r
+\r
+       // Set contenteditable to false on removals(#10429)\r
+       // Setting to empty string throws an error as an invalid value\r
+       jQuery.attrHooks.contenteditable = {\r
+               get: nodeHook.get,\r
+               set: function( elem, value, name ) {\r
+                       if ( value === "" ) {\r
+                               value = "false";\r
+                       }\r
+                       nodeHook.set( elem, value, name );\r
+               }\r
+       };\r
+}\r
+\r
+\r
+// Some attributes require a special call on IE\r
+if ( !jQuery.support.hrefNormalized ) {\r
+       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {\r
+               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {\r
+                       get: function( elem ) {\r
+                               var ret = elem.getAttribute( name, 2 );\r
+                               return ret === null ? undefined : ret;\r
+                       }\r
+               });\r
+       });\r
+}\r
+\r
+if ( !jQuery.support.style ) {\r
+       jQuery.attrHooks.style = {\r
+               get: function( elem ) {\r
+                       // Return undefined in the case of empty string\r
+                       // Normalize to lowercase since IE uppercases css property names\r
+                       return elem.style.cssText.toLowerCase() || undefined;\r
+               },\r
+               set: function( elem, value ) {\r
+                       return ( elem.style.cssText = "" + value );\r
+               }\r
+       };\r
+}\r
+\r
+// Safari mis-reports the default selected property of an option\r
+// Accessing the parent's selectedIndex property fixes it\r
+if ( !jQuery.support.optSelected ) {\r
+       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {\r
+               get: function( elem ) {\r
+                       var parent = elem.parentNode;\r
+\r
+                       if ( parent ) {\r
+                               parent.selectedIndex;\r
+\r
+                               // Make sure that it also works with optgroups, see #5701\r
+                               if ( parent.parentNode ) {\r
+                                       parent.parentNode.selectedIndex;\r
+                               }\r
+                       }\r
+                       return null;\r
+               }\r
+       });\r
+}\r
+\r
+// IE6/7 call enctype encoding\r
+if ( !jQuery.support.enctype ) {\r
+       jQuery.propFix.enctype = "encoding";\r
+}\r
+\r
+// Radios and checkboxes getter/setter\r
+if ( !jQuery.support.checkOn ) {\r
+       jQuery.each([ "radio", "checkbox" ], function() {\r
+               jQuery.valHooks[ this ] = {\r
+                       get: function( elem ) {\r
+                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified\r
+                               return elem.getAttribute("value") === null ? "on" : elem.value;\r
+                       }\r
+               };\r
+       });\r
+}\r
+jQuery.each([ "radio", "checkbox" ], function() {\r
+       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {\r
+               set: function( elem, value ) {\r
+                       if ( jQuery.isArray( value ) ) {\r
+                               return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );\r
+                       }\r
+               }\r
+       });\r
+});\r
+\r
+\r
+\r
+\r
+var rformElems = /^(?:textarea|input|select)$/i,\r
+       rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,\r
+       rhoverHack = /(?:^|\s)hover(\.\S+)?\b/,\r
+       rkeyEvent = /^key/,\r
+       rmouseEvent = /^(?:mouse|contextmenu)|click/,\r
+       rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,\r
+       rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,\r
+       quickParse = function( selector ) {\r
+               var quick = rquickIs.exec( selector );\r
+               if ( quick ) {\r
+                       //   0  1    2   3\r
+                       // [ _, tag, id, class ]\r
+                       quick[1] = ( quick[1] || "" ).toLowerCase();\r
+                       quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );\r
+               }\r
+               return quick;\r
+       },\r
+       quickIs = function( elem, m ) {\r
+               var attrs = elem.attributes || {};\r
+               return (\r
+                       (!m[1] || elem.nodeName.toLowerCase() === m[1]) &&\r
+                       (!m[2] || (attrs.id || {}).value === m[2]) &&\r
+                       (!m[3] || m[3].test( (attrs[ "class" ] || {}).value ))\r
+               );\r
+       },\r
+       hoverHack = function( events ) {\r
+               return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );\r
+       };\r
+\r
+/*\r
+ * Helper functions for managing events -- not part of the public interface.\r
+ * Props to Dean Edwards' addEvent library for many of the ideas.\r
+ */\r
+jQuery.event = {\r
+\r
+       add: function( elem, types, handler, data, selector ) {\r
+\r
+               var elemData, eventHandle, events,\r
+                       t, tns, type, namespaces, handleObj,\r
+                       handleObjIn, quick, handlers, special;\r
+\r
+               // Don't attach events to noData or text/comment nodes (allow plain objects tho)\r
+               if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {\r
+                       return;\r
+               }\r
+\r
+               // Caller can pass in an object of custom data in lieu of the handler\r
+               if ( handler.handler ) {\r
+                       handleObjIn = handler;\r
+                       handler = handleObjIn.handler;\r
+                       selector = handleObjIn.selector;\r
+               }\r
+\r
+               // Make sure that the handler has a unique ID, used to find/remove it later\r
+               if ( !handler.guid ) {\r
+                       handler.guid = jQuery.guid++;\r
+               }\r
+\r
+               // Init the element's event structure and main handler, if this is the first\r
+               events = elemData.events;\r
+               if ( !events ) {\r
+                       elemData.events = events = {};\r
+               }\r
+               eventHandle = elemData.handle;\r
+               if ( !eventHandle ) {\r
+                       elemData.handle = eventHandle = function( e ) {\r
+                               // Discard the second event of a jQuery.event.trigger() and\r
+                               // when an event is called after a page has unloaded\r
+                               return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?\r
+                                       jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :\r
+                                       undefined;\r
+                       };\r
+                       // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events\r
+                       eventHandle.elem = elem;\r
+               }\r
+\r
+               // Handle multiple events separated by a space\r
+               // jQuery(...).bind("mouseover mouseout", fn);\r
+               types = jQuery.trim( hoverHack(types) ).split( " " );\r
+               for ( t = 0; t < types.length; t++ ) {\r
+\r
+                       tns = rtypenamespace.exec( types[t] ) || [];\r
+                       type = tns[1];\r
+                       namespaces = ( tns[2] || "" ).split( "." ).sort();\r
+\r
+                       // If event changes its type, use the special event handlers for the changed type\r
+                       special = jQuery.event.special[ type ] || {};\r
+\r
+                       // If selector defined, determine special event api type, otherwise given type\r
+                       type = ( selector ? special.delegateType : special.bindType ) || type;\r
+\r
+                       // Update special based on newly reset type\r
+                       special = jQuery.event.special[ type ] || {};\r
+\r
+                       // handleObj is passed to all event handlers\r
+                       handleObj = jQuery.extend({\r
+                               type: type,\r
+                               origType: tns[1],\r
+                               data: data,\r
+                               handler: handler,\r
+                               guid: handler.guid,\r
+                               selector: selector,\r
+                               quick: selector && quickParse( selector ),\r
+                               namespace: namespaces.join(".")\r
+                       }, handleObjIn );\r
+\r
+                       // Init the event handler queue if we're the first\r
+                       handlers = events[ type ];\r
+                       if ( !handlers ) {\r
+                               handlers = events[ type ] = [];\r
+                               handlers.delegateCount = 0;\r
+\r
+                               // Only use addEventListener/attachEvent if the special events handler returns false\r
+                               if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {\r
+                                       // Bind the global event handler to the element\r
+                                       if ( elem.addEventListener ) {\r
+                                               elem.addEventListener( type, eventHandle, false );\r
+\r
+                                       } else if ( elem.attachEvent ) {\r
+                                               elem.attachEvent( "on" + type, eventHandle );\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       if ( special.add ) {\r
+                               special.add.call( elem, handleObj );\r
+\r
+                               if ( !handleObj.handler.guid ) {\r
+                                       handleObj.handler.guid = handler.guid;\r
+                               }\r
+                       }\r
+\r
+                       // Add to the element's handler list, delegates in front\r
+                       if ( selector ) {\r
+                               handlers.splice( handlers.delegateCount++, 0, handleObj );\r
+                       } else {\r
+                               handlers.push( handleObj );\r
+                       }\r
+\r
+                       // Keep track of which events have ever been used, for event optimization\r
+                       jQuery.event.global[ type ] = true;\r
+               }\r
+\r
+               // Nullify elem to prevent memory leaks in IE\r
+               elem = null;\r
+       },\r
+\r
+       global: {},\r
+\r
+       // Detach an event or set of events from an element\r
+       remove: function( elem, types, handler, selector, mappedTypes ) {\r
+\r
+               var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),\r
+                       t, tns, type, origType, namespaces, origCount,\r
+                       j, events, special, handle, eventType, handleObj;\r
+\r
+               if ( !elemData || !(events = elemData.events) ) {\r
+                       return;\r
+               }\r
+\r
+               // Once for each type.namespace in types; type may be omitted\r
+               types = jQuery.trim( hoverHack( types || "" ) ).split(" ");\r
+               for ( t = 0; t < types.length; t++ ) {\r
+                       tns = rtypenamespace.exec( types[t] ) || [];\r
+                       type = origType = tns[1];\r
+                       namespaces = tns[2];\r
+\r
+                       // Unbind all events (on this namespace, if provided) for the element\r
+                       if ( !type ) {\r
+                               for ( type in events ) {\r
+                                       jQuery.event.remove( elem, type + types[ t ], handler, selector, true );\r
+                               }\r
+                               continue;\r
+                       }\r
+\r
+                       special = jQuery.event.special[ type ] || {};\r
+                       type = ( selector? special.delegateType : special.bindType ) || type;\r
+                       eventType = events[ type ] || [];\r
+                       origCount = eventType.length;\r
+                       namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;\r
+\r
+                       // Remove matching events\r
+                       for ( j = 0; j < eventType.length; j++ ) {\r
+                               handleObj = eventType[ j ];\r
+\r
+                               if ( ( mappedTypes || origType === handleObj.origType ) &&\r
+                                        ( !handler || handler.guid === handleObj.guid ) &&\r
+                                        ( !namespaces || namespaces.test( handleObj.namespace ) ) &&\r
+                                        ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {\r
+                                       eventType.splice( j--, 1 );\r
+\r
+                                       if ( handleObj.selector ) {\r
+                                               eventType.delegateCount--;\r
+                                       }\r
+                                       if ( special.remove ) {\r
+                                               special.remove.call( elem, handleObj );\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       // Remove generic event handler if we removed something and no more handlers exist\r
+                       // (avoids potential for endless recursion during removal of special event handlers)\r
+                       if ( eventType.length === 0 && origCount !== eventType.length ) {\r
+                               if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {\r
+                                       jQuery.removeEvent( elem, type, elemData.handle );\r
+                               }\r
+\r
+                               delete events[ type ];\r
+                       }\r
+               }\r
+\r
+               // Remove the expando if it's no longer used\r
+               if ( jQuery.isEmptyObject( events ) ) {\r
+                       handle = elemData.handle;\r
+                       if ( handle ) {\r
+                               handle.elem = null;\r
+                       }\r
+\r
+                       // removeData also checks for emptiness and clears the expando if empty\r
+                       // so use it instead of delete\r
+                       jQuery.removeData( elem, [ "events", "handle" ], true );\r
+               }\r
+       },\r
+\r
+       // Events that are safe to short-circuit if no handlers are attached.\r
+       // Native DOM events should not be added, they may have inline handlers.\r
+       customEvent: {\r
+               "getData": true,\r
+               "setData": true,\r
+               "changeData": true\r
+       },\r
+\r
+       trigger: function( event, data, elem, onlyHandlers ) {\r
+               // Don't do events on text and comment nodes\r
+               if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {\r
+                       return;\r
+               }\r
+\r
+               // Event object or event type\r
+               var type = event.type || event,\r
+                       namespaces = [],\r
+                       cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;\r
+\r
+               // focus/blur morphs to focusin/out; ensure we're not firing them right now\r
+               if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\r
+                       return;\r
+               }\r
+\r
+               if ( type.indexOf( "!" ) >= 0 ) {\r
+                       // Exclusive events trigger only for the exact event (no namespaces)\r
+                       type = type.slice(0, -1);\r
+                       exclusive = true;\r
+               }\r
+\r
+               if ( type.indexOf( "." ) >= 0 ) {\r
+                       // Namespaced trigger; create a regexp to match event type in handle()\r
+                       namespaces = type.split(".");\r
+                       type = namespaces.shift();\r
+                       namespaces.sort();\r
+               }\r
+\r
+               if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {\r
+                       // No jQuery handlers for this event type, and it can't have inline handlers\r
+                       return;\r
+               }\r
+\r
+               // Caller can pass in an Event, Object, or just an event type string\r
+               event = typeof event === "object" ?\r
+                       // jQuery.Event object\r
+                       event[ jQuery.expando ] ? event :\r
+                       // Object literal\r
+                       new jQuery.Event( type, event ) :\r
+                       // Just the event type (string)\r
+                       new jQuery.Event( type );\r
+\r
+               event.type = type;\r
+               event.isTrigger = true;\r
+               event.exclusive = exclusive;\r
+               event.namespace = namespaces.join( "." );\r
+               event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;\r
+               ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";\r
+\r
+               // Handle a global trigger\r
+               if ( !elem ) {\r
+\r
+                       // TODO: Stop taunting the data cache; remove global events and always attach to document\r
+                       cache = jQuery.cache;\r
+                       for ( i in cache ) {\r
+                               if ( cache[ i ].events && cache[ i ].events[ type ] ) {\r
+                                       jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );\r
+                               }\r
+                       }\r
+                       return;\r
+               }\r
+\r
+               // Clean up the event in case it is being reused\r
+               event.result = undefined;\r
+               if ( !event.target ) {\r
+                       event.target = elem;\r
+               }\r
+\r
+               // Clone any incoming data and prepend the event, creating the handler arg list\r
+               data = data != null ? jQuery.makeArray( data ) : [];\r
+               data.unshift( event );\r
+\r
+               // Allow special events to draw outside the lines\r
+               special = jQuery.event.special[ type ] || {};\r
+               if ( special.trigger && special.trigger.apply( elem, data ) === false ) {\r
+                       return;\r
+               }\r
+\r
+               // Determine event propagation path in advance, per W3C events spec (#9951)\r
+               // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)\r
+               eventPath = [[ elem, special.bindType || type ]];\r
+               if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {\r
+\r
+                       bubbleType = special.delegateType || type;\r
+                       cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;\r
+                       old = null;\r
+                       for ( ; cur; cur = cur.parentNode ) {\r
+                               eventPath.push([ cur, bubbleType ]);\r
+                               old = cur;\r
+                       }\r
+\r
+                       // Only add window if we got to document (e.g., not plain obj or detached DOM)\r
+                       if ( old && old === elem.ownerDocument ) {\r
+                               eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);\r
+                       }\r
+               }\r
+\r
+               // Fire handlers on the event path\r
+               for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {\r
+\r
+                       cur = eventPath[i][0];\r
+                       event.type = eventPath[i][1];\r
+\r
+                       handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );\r
+                       if ( handle ) {\r
+                               handle.apply( cur, data );\r
+                       }\r
+                       // Note that this is a bare JS function and not a jQuery handler\r
+                       handle = ontype && cur[ ontype ];\r
+                       if ( handle && jQuery.acceptData( cur ) && handle.apply( cur, data ) === false ) {\r
+                               event.preventDefault();\r
+                       }\r
+               }\r
+               event.type = type;\r
+\r
+               // If nobody prevented the default action, do it now\r
+               if ( !onlyHandlers && !event.isDefaultPrevented() ) {\r
+\r
+                       if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&\r
+                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {\r
+\r
+                               // Call a native DOM method on the target with the same name name as the event.\r
+                               // Can't use an .isFunction() check here because IE6/7 fails that test.\r
+                               // Don't do default actions on window, that's where global variables be (#6170)\r
+                               // IE<9 dies on focus/blur to hidden element (#1486)\r
+                               if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {\r
+\r
+                                       // Don't re-trigger an onFOO event when we call its FOO() method\r
+                                       old = elem[ ontype ];\r
+\r
+                                       if ( old ) {\r
+                                               elem[ ontype ] = null;\r
+                                       }\r
+\r
+                                       // Prevent re-triggering of the same event, since we already bubbled it above\r
+                                       jQuery.event.triggered = type;\r
+                                       elem[ type ]();\r
+                                       jQuery.event.triggered = undefined;\r
+\r
+                                       if ( old ) {\r
+                                               elem[ ontype ] = old;\r
+                                       }\r
+                               }\r
+                       }\r
+               }\r
+\r
+               return event.result;\r
+       },\r
+\r
+       dispatch: function( event ) {\r
+\r
+               // Make a writable jQuery.Event from the native event object\r
+               event = jQuery.event.fix( event || window.event );\r
+\r
+               var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),\r
+                       delegateCount = handlers.delegateCount,\r
+                       args = [].slice.call( arguments, 0 ),\r
+                       run_all = !event.exclusive && !event.namespace,\r
+                       special = jQuery.event.special[ event.type ] || {},\r
+                       handlerQueue = [],\r
+                       i, j, cur, jqcur, ret, selMatch, matched, matches, handleObj, sel, related;\r
+\r
+               // Use the fix-ed jQuery.Event rather than the (read-only) native event\r
+               args[0] = event;\r
+               event.delegateTarget = this;\r
+\r
+               // Call the preDispatch hook for the mapped type, and let it bail if desired\r
+               if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\r
+                       return;\r
+               }\r
+\r
+               // Determine handlers that should run if there are delegated events\r
+               // Avoid non-left-click bubbling in Firefox (#3861)\r
+               if ( delegateCount && !(event.button && event.type === "click") ) {\r
+\r
+                       // Pregenerate a single jQuery object for reuse with .is()\r
+                       jqcur = jQuery(this);\r
+                       jqcur.context = this.ownerDocument || this;\r
+\r
+                       for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {\r
+\r
+                               // Don't process events on disabled elements (#6911, #8165)\r
+                               if ( cur.disabled !== true ) {\r
+                                       selMatch = {};\r
+                                       matches = [];\r
+                                       jqcur[0] = cur;\r
+                                       for ( i = 0; i < delegateCount; i++ ) {\r
+                                               handleObj = handlers[ i ];\r
+                                               sel = handleObj.selector;\r
+\r
+                                               if ( selMatch[ sel ] === undefined ) {\r
+                                                       selMatch[ sel ] = (\r
+                                                               handleObj.quick ? quickIs( cur, handleObj.quick ) : jqcur.is( sel )\r
+                                                       );\r
+                                               }\r
+                                               if ( selMatch[ sel ] ) {\r
+                                                       matches.push( handleObj );\r
+                                               }\r
+                                       }\r
+                                       if ( matches.length ) {\r
+                                               handlerQueue.push({ elem: cur, matches: matches });\r
+                                       }\r
+                               }\r
+                       }\r
+               }\r
+\r
+               // Add the remaining (directly-bound) handlers\r
+               if ( handlers.length > delegateCount ) {\r
+                       handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });\r
+               }\r
+\r
+               // Run delegates first; they may want to stop propagation beneath us\r
+               for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {\r
+                       matched = handlerQueue[ i ];\r
+                       event.currentTarget = matched.elem;\r
+\r
+                       for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {\r
+                               handleObj = matched.matches[ j ];\r
+\r
+                               // Triggered event must either 1) be non-exclusive and have no namespace, or\r
+                               // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).\r
+                               if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {\r
+\r
+                                       event.data = handleObj.data;\r
+                                       event.handleObj = handleObj;\r
+\r
+                                       ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )\r
+                                                       .apply( matched.elem, args );\r
+\r
+                                       if ( ret !== undefined ) {\r
+                                               event.result = ret;\r
+                                               if ( ret === false ) {\r
+                                                       event.preventDefault();\r
+                                                       event.stopPropagation();\r
+                                               }\r
+                                       }\r
+                               }\r
+                       }\r
+               }\r
+\r
+               // Call the postDispatch hook for the mapped type\r
+               if ( special.postDispatch ) {\r
+                       special.postDispatch.call( this, event );\r
+               }\r
+\r
+               return event.result;\r
+       },\r
+\r
+       // Includes some event props shared by KeyEvent and MouseEvent\r
+       // *** attrChange attrName relatedNode srcElement  are not normalized, non-W3C, deprecated, will be removed in 1.8 ***\r
+       props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),\r
+\r
+       fixHooks: {},\r
+\r
+       keyHooks: {\r
+               props: "char charCode key keyCode".split(" "),\r
+               filter: function( event, original ) {\r
+\r
+                       // Add which for key events\r
+                       if ( event.which == null ) {\r
+                               event.which = original.charCode != null ? original.charCode : original.keyCode;\r
+                       }\r
+\r
+                       return event;\r
+               }\r
+       },\r
+\r
+       mouseHooks: {\r
+               props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),\r
+               filter: function( event, original ) {\r
+                       var eventDoc, doc, body,\r
+                               button = original.button,\r
+                               fromElement = original.fromElement;\r
+\r
+                       // Calculate pageX/Y if missing and clientX/Y available\r
+                       if ( event.pageX == null && original.clientX != null ) {\r
+                               eventDoc = event.target.ownerDocument || document;\r
+                               doc = eventDoc.documentElement;\r
+                               body = eventDoc.body;\r
+\r
+                               event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );\r
+                               event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );\r
+                       }\r
+\r
+                       // Add relatedTarget, if necessary\r
+                       if ( !event.relatedTarget && fromElement ) {\r
+                               event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;\r
+                       }\r
+\r
+                       // Add which for click: 1 === left; 2 === middle; 3 === right\r
+                       // Note: button is not normalized, so don't use it\r
+                       if ( !event.which && button !== undefined ) {\r
+                               event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );\r
+                       }\r
+\r
+                       return event;\r
+               }\r
+       },\r
+\r
+       fix: function( event ) {\r
+               if ( event[ jQuery.expando ] ) {\r
+                       return event;\r
+               }\r
+\r
+               // Create a writable copy of the event object and normalize some properties\r
+               var i, prop,\r
+                       originalEvent = event,\r
+                       fixHook = jQuery.event.fixHooks[ event.type ] || {},\r
+                       copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;\r
+\r
+               event = jQuery.Event( originalEvent );\r
+\r
+               for ( i = copy.length; i; ) {\r
+                       prop = copy[ --i ];\r
+                       event[ prop ] = originalEvent[ prop ];\r
+               }\r
+\r
+               // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)\r
+               if ( !event.target ) {\r
+                       event.target = originalEvent.srcElement || document;\r
+               }\r
+\r
+               // Target should not be a text node (#504, Safari)\r
+               if ( event.target.nodeType === 3 ) {\r
+                       event.target = event.target.parentNode;\r
+               }\r
+\r
+               // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)\r
+               if ( event.metaKey === undefined ) {\r
+                       event.metaKey = event.ctrlKey;\r
+               }\r
+\r
+               return fixHook.filter? fixHook.filter( event, originalEvent ) : event;\r
+       },\r
+\r
+       special: {\r
+               ready: {\r
+                       // Make sure the ready event is setup\r
+                       setup: jQuery.bindReady\r
+               },\r
+\r
+               load: {\r
+                       // Prevent triggered image.load events from bubbling to window.load\r
+                       noBubble: true\r
+               },\r
+\r
+               focus: {\r
+                       delegateType: "focusin"\r
+               },\r
+               blur: {\r
+                       delegateType: "focusout"\r
+               },\r
+\r
+               beforeunload: {\r
+                       setup: function( data, namespaces, eventHandle ) {\r
+                               // We only want to do this special case on windows\r
+                               if ( jQuery.isWindow( this ) ) {\r
+                                       this.onbeforeunload = eventHandle;\r
+                               }\r
+                       },\r
+\r
+                       teardown: function( namespaces, eventHandle ) {\r
+                               if ( this.onbeforeunload === eventHandle ) {\r
+                                       this.onbeforeunload = null;\r
+                               }\r
+                       }\r
+               }\r
+       },\r
+\r
+       simulate: function( type, elem, event, bubble ) {\r
+               // Piggyback on a donor event to simulate a different one.\r
+               // Fake originalEvent to avoid donor's stopPropagation, but if the\r
+               // simulated event prevents default then we do the same on the donor.\r
+               var e = jQuery.extend(\r
+                       new jQuery.Event(),\r
+                       event,\r
+                       { type: type,\r
+                               isSimulated: true,\r
+                               originalEvent: {}\r
+                       }\r
+               );\r
+               if ( bubble ) {\r
+                       jQuery.event.trigger( e, null, elem );\r
+               } else {\r
+                       jQuery.event.dispatch.call( elem, e );\r
+               }\r
+               if ( e.isDefaultPrevented() ) {\r
+                       event.preventDefault();\r
+               }\r
+       }\r
+};\r
+\r
+// Some plugins are using, but it's undocumented/deprecated and will be removed.\r
+// The 1.7 special event interface should provide all the hooks needed now.\r
+jQuery.event.handle = jQuery.event.dispatch;\r
+\r
+jQuery.removeEvent = document.removeEventListener ?\r
+       function( elem, type, handle ) {\r
+               if ( elem.removeEventListener ) {\r
+                       elem.removeEventListener( type, handle, false );\r
+               }\r
+       } :\r
+       function( elem, type, handle ) {\r
+               if ( elem.detachEvent ) {\r
+                       elem.detachEvent( "on" + type, handle );\r
+               }\r
+       };\r
+\r
+jQuery.Event = function( src, props ) {\r
+       // Allow instantiation without the 'new' keyword\r
+       if ( !(this instanceof jQuery.Event) ) {\r
+               return new jQuery.Event( src, props );\r
+       }\r
+\r
+       // Event object\r
+       if ( src && src.type ) {\r
+               this.originalEvent = src;\r
+               this.type = src.type;\r
+\r
+               // Events bubbling up the document may have been marked as prevented\r
+               // by a handler lower down the tree; reflect the correct value.\r
+               this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||\r
+                       src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;\r
+\r
+       // Event type\r
+       } else {\r
+               this.type = src;\r
+       }\r
+\r
+       // Put explicitly provided properties onto the event object\r
+       if ( props ) {\r
+               jQuery.extend( this, props );\r
+       }\r
+\r
+       // Create a timestamp if incoming event doesn't have one\r
+       this.timeStamp = src && src.timeStamp || jQuery.now();\r
+\r
+       // Mark it as fixed\r
+       this[ jQuery.expando ] = true;\r
+};\r
+\r
+function returnFalse() {\r
+       return false;\r
+}\r
+function returnTrue() {\r
+       return true;\r
+}\r
+\r
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\r
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\r
+jQuery.Event.prototype = {\r
+       preventDefault: function() {\r
+               this.isDefaultPrevented = returnTrue;\r
+\r
+               var e = this.originalEvent;\r
+               if ( !e ) {\r
+                       return;\r
+               }\r
+\r
+               // if preventDefault exists run it on the original event\r
+               if ( e.preventDefault ) {\r
+                       e.preventDefault();\r
+\r
+               // otherwise set the returnValue property of the original event to false (IE)\r
+               } else {\r
+                       e.returnValue = false;\r
+               }\r
+       },\r
+       stopPropagation: function() {\r
+               this.isPropagationStopped = returnTrue;\r
+\r
+               var e = this.originalEvent;\r
+               if ( !e ) {\r
+                       return;\r
+               }\r
+               // if stopPropagation exists run it on the original event\r
+               if ( e.stopPropagation ) {\r
+                       e.stopPropagation();\r
+               }\r
+               // otherwise set the cancelBubble property of the original event to true (IE)\r
+               e.cancelBubble = true;\r
+       },\r
+       stopImmediatePropagation: function() {\r
+               this.isImmediatePropagationStopped = returnTrue;\r
+               this.stopPropagation();\r
+       },\r
+       isDefaultPrevented: returnFalse,\r
+       isPropagationStopped: returnFalse,\r
+       isImmediatePropagationStopped: returnFalse\r
+};\r
+\r
+// Create mouseenter/leave events using mouseover/out and event-time checks\r
+jQuery.each({\r
+       mouseenter: "mouseover",\r
+       mouseleave: "mouseout"\r
+}, function( orig, fix ) {\r
+       jQuery.event.special[ orig ] = {\r
+               delegateType: fix,\r
+               bindType: fix,\r
+\r
+               handle: function( event ) {\r
+                       var target = this,\r
+                               related = event.relatedTarget,\r
+                               handleObj = event.handleObj,\r
+                               selector = handleObj.selector,\r
+                               ret;\r
+\r
+                       // For mousenter/leave call the handler if related is outside the target.\r
+                       // NB: No relatedTarget if the mouse left/entered the browser window\r
+                       if ( !related || (related !== target && !jQuery.contains( target, related )) ) {\r
+                               event.type = handleObj.origType;\r
+                               ret = handleObj.handler.apply( this, arguments );\r
+                               event.type = fix;\r
+                       }\r
+                       return ret;\r
+               }\r
+       };\r
+});\r
+\r
+// IE submit delegation\r
+if ( !jQuery.support.submitBubbles ) {\r
+\r
+       jQuery.event.special.submit = {\r
+               setup: function() {\r
+                       // Only need this for delegated form submit events\r
+                       if ( jQuery.nodeName( this, "form" ) ) {\r
+                               return false;\r
+                       }\r
+\r
+                       // Lazy-add a submit handler when a descendant form may potentially be submitted\r
+                       jQuery.event.add( this, "click._submit keypress._submit", function( e ) {\r
+                               // Node name check avoids a VML-related crash in IE (#9807)\r
+                               var elem = e.target,\r
+                                       form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;\r
+                               if ( form && !form._submit_attached ) {\r
+                                       jQuery.event.add( form, "submit._submit", function( event ) {\r
+                                               event._submit_bubble = true;\r
+                                       });\r
+                                       form._submit_attached = true;\r
+                               }\r
+                       });\r
+                       // return undefined since we don't need an event listener\r
+               },\r
+               \r
+               postDispatch: function( event ) {\r
+                       // If form was submitted by the user, bubble the event up the tree\r
+                       if ( event._submit_bubble ) {\r
+                               delete event._submit_bubble;\r
+                               if ( this.parentNode && !event.isTrigger ) {\r
+                                       jQuery.event.simulate( "submit", this.parentNode, event, true );\r
+                               }\r
+                       }\r
+               },\r
+\r
+               teardown: function() {\r
+                       // Only need this for delegated form submit events\r
+                       if ( jQuery.nodeName( this, "form" ) ) {\r
+                               return false;\r
+                       }\r
+\r
+                       // Remove delegated handlers; cleanData eventually reaps submit handlers attached above\r
+                       jQuery.event.remove( this, "._submit" );\r
+               }\r
+       };\r
+}\r
+\r
+// IE change delegation and checkbox/radio fix\r
+if ( !jQuery.support.changeBubbles ) {\r
+\r
+       jQuery.event.special.change = {\r
+\r
+               setup: function() {\r
+\r
+                       if ( rformElems.test( this.nodeName ) ) {\r
+                               // IE doesn't fire change on a check/radio until blur; trigger it on click\r
+                               // after a propertychange. Eat the blur-change in special.change.handle.\r
+                               // This still fires onchange a second time for check/radio after blur.\r
+                               if ( this.type === "checkbox" || this.type === "radio" ) {\r
+                                       jQuery.event.add( this, "propertychange._change", function( event ) {\r
+                                               if ( event.originalEvent.propertyName === "checked" ) {\r
+                                                       this._just_changed = true;\r
+                                               }\r
+                                       });\r
+                                       jQuery.event.add( this, "click._change", function( event ) {\r
+                                               if ( this._just_changed && !event.isTrigger ) {\r
+                                                       this._just_changed = false;\r
+                                                       jQuery.event.simulate( "change", this, event, true );\r
+                                               }\r
+                                       });\r
+                               }\r
+                               return false;\r
+                       }\r
+                       // Delegated event; lazy-add a change handler on descendant inputs\r
+                       jQuery.event.add( this, "beforeactivate._change", function( e ) {\r
+                               var elem = e.target;\r
+\r
+                               if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {\r
+                                       jQuery.event.add( elem, "change._change", function( event ) {\r
+                                               if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {\r
+                                                       jQuery.event.simulate( "change", this.parentNode, event, true );\r
+                                               }\r
+                                       });\r
+                                       elem._change_attached = true;\r
+                               }\r
+                       });\r
+               },\r
+\r
+               handle: function( event ) {\r
+                       var elem = event.target;\r
+\r
+                       // Swallow native change events from checkbox/radio, we already triggered them above\r
+                       if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {\r
+                               return event.handleObj.handler.apply( this, arguments );\r
+                       }\r
+               },\r
+\r
+               teardown: function() {\r
+                       jQuery.event.remove( this, "._change" );\r
+\r
+                       return rformElems.test( this.nodeName );\r
+               }\r
+       };\r
+}\r
+\r
+// Create "bubbling" focus and blur events\r
+if ( !jQuery.support.focusinBubbles ) {\r
+       jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {\r
+\r
+               // Attach a single capturing handler while someone wants focusin/focusout\r
+               var attaches = 0,\r
+                       handler = function( event ) {\r
+                               jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );\r
+                       };\r
+\r
+               jQuery.event.special[ fix ] = {\r
+                       setup: function() {\r
+                               if ( attaches++ === 0 ) {\r
+                                       document.addEventListener( orig, handler, true );\r
+                               }\r
+                       },\r
+                       teardown: function() {\r
+                               if ( --attaches === 0 ) {\r
+                                       document.removeEventListener( orig, handler, true );\r
+                               }\r
+                       }\r
+               };\r
+       });\r
+}\r
+\r
+jQuery.fn.extend({\r
+\r
+       on: function( types, selector, data, fn, /*INTERNAL*/ one ) {\r
+               var origFn, type;\r
+\r
+               // Types can be a map of types/handlers\r
+               if ( typeof types === "object" ) {\r
+                       // ( types-Object, selector, data )\r
+                       if ( typeof selector !== "string" ) { // && selector != null\r
+                               // ( types-Object, data )\r
+                               data = data || selector;\r
+                               selector = undefined;\r
+                       }\r
+                       for ( type in types ) {\r
+                               this.on( type, selector, data, types[ type ], one );\r
+                       }\r
+                       return this;\r
+               }\r
+\r
+               if ( data == null && fn == null ) {\r
+                       // ( types, fn )\r
+                       fn = selector;\r
+                       data = selector = undefined;\r
+               } else if ( fn == null ) {\r
+                       if ( typeof selector === "string" ) {\r
+                               // ( types, selector, fn )\r
+                               fn = data;\r
+                               data = undefined;\r
+                       } else {\r
+                               // ( types, data, fn )\r
+                               fn = data;\r
+                               data = selector;\r
+                               selector = undefined;\r
+                       }\r
+               }\r
+               if ( fn === false ) {\r
+                       fn = returnFalse;\r
+               } else if ( !fn ) {\r
+                       return this;\r
+               }\r
+\r
+               if ( one === 1 ) {\r
+                       origFn = fn;\r
+                       fn = function( event ) {\r
+                               // Can use an empty set, since event contains the info\r
+                               jQuery().off( event );\r
+                               return origFn.apply( this, arguments );\r
+                       };\r
+                       // Use same guid so caller can remove using origFn\r
+                       fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\r
+               }\r
+               return this.each( function() {\r
+                       jQuery.event.add( this, types, fn, data, selector );\r
+               });\r
+       },\r
+       one: function( types, selector, data, fn ) {\r
+               return this.on( types, selector, data, fn, 1 );\r
+       },\r
+       off: function( types, selector, fn ) {\r
+               if ( types && types.preventDefault && types.handleObj ) {\r
+                       // ( event )  dispatched jQuery.Event\r
+                       var handleObj = types.handleObj;\r
+                       jQuery( types.delegateTarget ).off(\r
+                               handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,\r
+                               handleObj.selector,\r
+                               handleObj.handler\r
+                       );\r
+                       return this;\r
+               }\r
+               if ( typeof types === "object" ) {\r
+                       // ( types-object [, selector] )\r
+                       for ( var type in types ) {\r
+                               this.off( type, selector, types[ type ] );\r
+                       }\r
+                       return this;\r
+               }\r
+               if ( selector === false || typeof selector === "function" ) {\r
+                       // ( types [, fn] )\r
+                       fn = selector;\r
+                       selector = undefined;\r
+               }\r
+               if ( fn === false ) {\r
+                       fn = returnFalse;\r
+               }\r
+               return this.each(function() {\r
+                       jQuery.event.remove( this, types, fn, selector );\r
+               });\r
+       },\r
+\r
+       bind: function( types, data, fn ) {\r
+               return this.on( types, null, data, fn );\r
+       },\r
+       unbind: function( types, fn ) {\r
+               return this.off( types, null, fn );\r
+       },\r
+\r
+       live: function( types, data, fn ) {\r
+               jQuery( this.context ).on( types, this.selector, data, fn );\r
+               return this;\r
+       },\r
+       die: function( types, fn ) {\r
+               jQuery( this.context ).off( types, this.selector || "**", fn );\r
+               return this;\r
+       },\r
+\r
+       delegate: function( selector, types, data, fn ) {\r
+               return this.on( types, selector, data, fn );\r
+       },\r
+       undelegate: function( selector, types, fn ) {\r
+               // ( namespace ) or ( selector, types [, fn] )\r
+               return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );\r
+       },\r
+\r
+       trigger: function( type, data ) {\r
+               return this.each(function() {\r
+                       jQuery.event.trigger( type, data, this );\r
+               });\r
+       },\r
+       triggerHandler: function( type, data ) {\r
+               if ( this[0] ) {\r
+                       return jQuery.event.trigger( type, data, this[0], true );\r
+               }\r
+       },\r
+\r
+       toggle: function( fn ) {\r
+               // Save reference to arguments for access in closure\r
+               var args = arguments,\r
+                       guid = fn.guid || jQuery.guid++,\r
+                       i = 0,\r
+                       toggler = function( event ) {\r
+                               // Figure out which function to execute\r
+                               var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;\r
+                               jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );\r
+\r
+                               // Make sure that clicks stop\r
+                               event.preventDefault();\r
+\r
+                               // and execute the function\r
+                               return args[ lastToggle ].apply( this, arguments ) || false;\r
+                       };\r
+\r
+               // link all the functions, so any of them can unbind this click handler\r
+               toggler.guid = guid;\r
+               while ( i < args.length ) {\r
+                       args[ i++ ].guid = guid;\r
+               }\r
+\r
+               return this.click( toggler );\r
+       },\r
+\r
+       hover: function( fnOver, fnOut ) {\r
+               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );\r
+       }\r
+});\r
+\r
+jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +\r
+       "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +\r
+       "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {\r
+\r
+       // Handle event binding\r
+       jQuery.fn[ name ] = function( data, fn ) {\r
+               if ( fn == null ) {\r
+                       fn = data;\r
+                       data = null;\r
+               }\r
+\r
+               return arguments.length > 0 ?\r
+                       this.on( name, null, data, fn ) :\r
+                       this.trigger( name );\r
+       };\r
+\r
+       if ( jQuery.attrFn ) {\r
+               jQuery.attrFn[ name ] = true;\r
+       }\r
+\r
+       if ( rkeyEvent.test( name ) ) {\r
+               jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;\r
+       }\r
+\r
+       if ( rmouseEvent.test( name ) ) {\r
+               jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;\r
+       }\r
+});\r
+\r
+\r
+\r
+/*!\r
+ * Sizzle CSS Selector Engine\r
+ *  Copyright 2011, The Dojo Foundation\r
+ *  Released under the MIT, BSD, and GPL Licenses.\r
+ *  More information: http://sizzlejs.com/\r
+ */\r
+(function(){\r
+\r
+var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,\r
+       expando = "sizcache" + (Math.random() + '').replace('.', ''),\r
+       done = 0,\r
+       toString = Object.prototype.toString,\r
+       hasDuplicate = false,\r
+       baseHasDuplicate = true,\r
+       rBackslash = /\\/g,\r
+       rReturn = /\r\n/g,\r
+       rNonWord = /\W/;\r
+\r
+// Here we check if the JavaScript engine is using some sort of\r
+// optimization where it does not always call our comparision\r
+// function. If that is the case, discard the hasDuplicate value.\r
+//   Thus far that includes Google Chrome.\r
+[0, 0].sort(function() {\r
+       baseHasDuplicate = false;\r
+       return 0;\r
+});\r
+\r
+var Sizzle = function( selector, context, results, seed ) {\r
+       results = results || [];\r
+       context = context || document;\r
+\r
+       var origContext = context;\r
+\r
+       if ( context.nodeType !== 1 && context.nodeType !== 9 ) {\r
+               return [];\r
+       }\r
+\r
+       if ( !selector || typeof selector !== "string" ) {\r
+               return results;\r
+       }\r
+\r
+       var m, set, checkSet, extra, ret, cur, pop, i,\r
+               prune = true,\r
+               contextXML = Sizzle.isXML( context ),\r
+               parts = [],\r
+               soFar = selector;\r
+\r
+       // Reset the position of the chunker regexp (start from head)\r
+       do {\r
+               chunker.exec( "" );\r
+               m = chunker.exec( soFar );\r
+\r
+               if ( m ) {\r
+                       soFar = m[3];\r
+\r
+                       parts.push( m[1] );\r
+\r
+                       if ( m[2] ) {\r
+                               extra = m[3];\r
+                               break;\r
+                       }\r
+               }\r
+       } while ( m );\r
+\r
+       if ( parts.length > 1 && origPOS.exec( selector ) ) {\r
+\r
+               if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {\r
+                       set = posProcess( parts[0] + parts[1], context, seed );\r
+\r
+               } else {\r
+                       set = Expr.relative[ parts[0] ] ?\r
+                               [ context ] :\r
+                               Sizzle( parts.shift(), context );\r
+\r
+                       while ( parts.length ) {\r
+                               selector = parts.shift();\r
+\r
+                               if ( Expr.relative[ selector ] ) {\r
+                                       selector += parts.shift();\r
+                               }\r
+\r
+                               set = posProcess( selector, set, seed );\r
+                       }\r
+               }\r
+\r
+       } else {\r
+               // Take a shortcut and set the context if the root selector is an ID\r
+               // (but not if it'll be faster if the inner selector is an ID)\r
+               if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&\r
+                               Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {\r
+\r
+                       ret = Sizzle.find( parts.shift(), context, contextXML );\r
+                       context = ret.expr ?\r
+                               Sizzle.filter( ret.expr, ret.set )[0] :\r
+                               ret.set[0];\r
+               }\r
+\r
+               if ( context ) {\r
+                       ret = seed ?\r
+                               { expr: parts.pop(), set: makeArray(seed) } :\r
+                               Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );\r
+\r
+                       set = ret.expr ?\r
+                               Sizzle.filter( ret.expr, ret.set ) :\r
+                               ret.set;\r
+\r
+                       if ( parts.length > 0 ) {\r
+                               checkSet = makeArray( set );\r
+\r
+                       } else {\r
+                               prune = false;\r
+                       }\r
+\r
+                       while ( parts.length ) {\r
+                               cur = parts.pop();\r
+                               pop = cur;\r
+\r
+                               if ( !Expr.relative[ cur ] ) {\r
+                                       cur = "";\r
+                               } else {\r
+                                       pop = parts.pop();\r
+                               }\r
+\r
+                               if ( pop == null ) {\r
+                                       pop = context;\r
+                               }\r
+\r
+                               Expr.relative[ cur ]( checkSet, pop, contextXML );\r
+                       }\r
+\r
+               } else {\r
+                       checkSet = parts = [];\r
+               }\r
+       }\r
+\r
+       if ( !checkSet ) {\r
+               checkSet = set;\r
+       }\r
+\r
+       if ( !checkSet ) {\r
+               Sizzle.error( cur || selector );\r
+       }\r
+\r
+       if ( toString.call(checkSet) === "[object Array]" ) {\r
+               if ( !prune ) {\r
+                       results.push.apply( results, checkSet );\r
+\r
+               } else if ( context && context.nodeType === 1 ) {\r
+                       for ( i = 0; checkSet[i] != null; i++ ) {\r
+                               if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {\r
+                                       results.push( set[i] );\r
+                               }\r
+                       }\r
+\r
+               } else {\r
+                       for ( i = 0; checkSet[i] != null; i++ ) {\r
+                               if ( checkSet[i] && checkSet[i].nodeType === 1 ) {\r
+                                       results.push( set[i] );\r
+                               }\r
+                       }\r
+               }\r
+\r
+       } else {\r
+               makeArray( checkSet, results );\r
+       }\r
+\r
+       if ( extra ) {\r
+               Sizzle( extra, origContext, results, seed );\r
+               Sizzle.uniqueSort( results );\r
+       }\r
+\r
+       return results;\r
+};\r
+\r
+Sizzle.uniqueSort = function( results ) {\r
+       if ( sortOrder ) {\r
+               hasDuplicate = baseHasDuplicate;\r
+               results.sort( sortOrder );\r
+\r
+               if ( hasDuplicate ) {\r
+                       for ( var i = 1; i < results.length; i++ ) {\r
+                               if ( results[i] === results[ i - 1 ] ) {\r
+                                       results.splice( i--, 1 );\r
+                               }\r
+                       }\r
+               }\r
+       }\r
+\r
+       return results;\r
+};\r
+\r
+Sizzle.matches = function( expr, set ) {\r
+       return Sizzle( expr, null, null, set );\r
+};\r
+\r
+Sizzle.matchesSelector = function( node, expr ) {\r
+       return Sizzle( expr, null, null, [node] ).length > 0;\r
+};\r
+\r
+Sizzle.find = function( expr, context, isXML ) {\r
+       var set, i, len, match, type, left;\r
+\r
+       if ( !expr ) {\r
+               return [];\r
+       }\r
+\r
+       for ( i = 0, len = Expr.order.length; i < len; i++ ) {\r
+               type = Expr.order[i];\r
+\r
+               if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {\r
+                       left = match[1];\r
+                       match.splice( 1, 1 );\r
+\r
+                       if ( left.substr( left.length - 1 ) !== "\\" ) {\r
+                               match[1] = (match[1] || "").replace( rBackslash, "" );\r
+                               set = Expr.find[ type ]( match, context, isXML );\r
+\r
+                               if ( set != null ) {\r
+                                       expr = expr.replace( Expr.match[ type ], "" );\r
+                                       break;\r
+                               }\r
+                       }\r
+               }\r
+       }\r
+\r
+       if ( !set ) {\r
+               set = typeof context.getElementsByTagName !== "undefined" ?\r
+                       context.getElementsByTagName( "*" ) :\r
+                       [];\r
+       }\r
+\r
+       return { set: set, expr: expr };\r
+};\r
+\r
+Sizzle.filter = function( expr, set, inplace, not ) {\r
+       var match, anyFound,\r
+               type, found, item, filter, left,\r
+               i, pass,\r
+               old = expr,\r
+               result = [],\r
+               curLoop = set,\r
+               isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );\r
+\r
+       while ( expr && set.length ) {\r
+               for ( type in Expr.filter ) {\r
+                       if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {\r
+                               filter = Expr.filter[ type ];\r
+                               left = match[1];\r
+\r
+                               anyFound = false;\r
+\r
+                               match.splice(1,1);\r
+\r
+                               if ( left.substr( left.length - 1 ) === "\\" ) {\r
+                                       continue;\r
+                               }\r
+\r
+                               if ( curLoop === result ) {\r
+                                       result = [];\r
+                               }\r
+\r
+                               if ( Expr.preFilter[ type ] ) {\r
+                                       match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );\r
+\r
+                                       if ( !match ) {\r
+                                               anyFound = found = true;\r
+\r
+                                       } else if ( match === true ) {\r
+                                               continue;\r
+                                       }\r
+                               }\r
+\r
+                               if ( match ) {\r
+                                       for ( i = 0; (item = curLoop[i]) != null; i++ ) {\r
+                                               if ( item ) {\r
+                                                       found = filter( item, match, i, curLoop );\r
+                                                       pass = not ^ found;\r
+\r
+                                                       if ( inplace && found != null ) {\r
+                                                               if ( pass ) {\r
+                                                                       anyFound = true;\r
+\r
+                                                               } else {\r
+                                                                       curLoop[i] = false;\r
+                                                               }\r
+\r
+                                                       } else if ( pass ) {\r
+                                                               result.push( item );\r
+                                                               anyFound = true;\r
+                                                       }\r
+                                               }\r
+                                       }\r
+                               }\r
+\r
+                               if ( found !== undefined ) {\r
+                                       if ( !inplace ) {\r
+                                               curLoop = result;\r
+                                       }\r
+\r
+                                       expr = expr.replace( Expr.match[ type ], "" );\r
+\r
+                                       if ( !anyFound ) {\r
+                                               return [];\r
+                                       }\r
+\r
+                                       break;\r
+                               }\r
+                       }\r
+               }\r
+\r
+               // Improper expression\r
+               if ( expr === old ) {\r
+                       if ( anyFound == null ) {\r
+                               Sizzle.error( expr );\r
+\r
+                       } else {\r
+                               break;\r
+                       }\r
+               }\r
+\r
+               old = expr;\r
+       }\r
+\r
+       return curLoop;\r
+};\r
+\r
+Sizzle.error = function( msg ) {\r
+       throw new Error( "Syntax error, unrecognized expression: " + msg );\r
+};\r
+\r
+/**\r
+ * Utility function for retreiving the text value of an array of DOM nodes\r
+ * @param {Array|Element} elem\r
+ */\r
+var getText = Sizzle.getText = function( elem ) {\r
+    var i, node,\r
+               nodeType = elem.nodeType,\r
+               ret = "";\r
+\r
+       if ( nodeType ) {\r
+               if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {\r
+                       // Use textContent || innerText for elements\r
+                       if ( typeof elem.textContent === 'string' ) {\r
+                               return elem.textContent;\r
+                       } else if ( typeof elem.innerText === 'string' ) {\r
+                               // Replace IE's carriage returns\r
+                               return elem.innerText.replace( rReturn, '' );\r
+                       } else {\r
+                               // Traverse it's children\r
+                               for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {\r
+                                       ret += getText( elem );\r
+                               }\r
+                       }\r
+               } else if ( nodeType === 3 || nodeType === 4 ) {\r
+                       return elem.nodeValue;\r
+               }\r
+       } else {\r
+\r
+               // If no nodeType, this is expected to be an array\r
+               for ( i = 0; (node = elem[i]); i++ ) {\r
+                       // Do not traverse comment nodes\r
+                       if ( node.nodeType !== 8 ) {\r
+                               ret += getText( node );\r
+                       }\r
+               }\r
+       }\r
+       return ret;\r
+};\r
+\r
+var Expr = Sizzle.selectors = {\r
+       order: [ "ID", "NAME", "TAG" ],\r
+\r
+       match: {\r
+               ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,\r
+               CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,\r
+               NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,\r
+               ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,\r
+               TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,\r
+               CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,\r
+               POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,\r
+               PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/\r
+       },\r
+\r
+       leftMatch: {},\r
+\r
+       attrMap: {\r
+               "class": "className",\r
+               "for": "htmlFor"\r
+       },\r
+\r
+       attrHandle: {\r
+               href: function( elem ) {\r
+                       return elem.getAttribute( "href" );\r
+               },\r
+               type: function( elem ) {\r
+                       return elem.getAttribute( "type" );\r
+               }\r
+       },\r
+\r
+       relative: {\r
+               "+": function(checkSet, part){\r
+                       var isPartStr = typeof part === "string",\r
+                               isTag = isPartStr && !rNonWord.test( part ),\r
+                               isPartStrNotTag = isPartStr && !isTag;\r
+\r
+                       if ( isTag ) {\r
+                               part = part.toLowerCase();\r
+                       }\r
+\r
+                       for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {\r
+                               if ( (elem = checkSet[i]) ) {\r
+                                       while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}\r
+\r
+                                       checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?\r
+                                               elem || false :\r
+                                               elem === part;\r
+                               }\r
+                       }\r
+\r
+                       if ( isPartStrNotTag ) {\r
+                               Sizzle.filter( part, checkSet, true );\r
+                       }\r
+               },\r
+\r
+               ">": function( checkSet, part ) {\r
+                       var elem,\r
+                               isPartStr = typeof part === "string",\r
+                               i = 0,\r
+                               l = checkSet.length;\r
+\r
+                       if ( isPartStr && !rNonWord.test( part ) ) {\r
+                               part = part.toLowerCase();\r
+\r
+                               for ( ; i < l; i++ ) {\r
+                                       elem = checkSet[i];\r
+\r
+                                       if ( elem ) {\r
+                                               var parent = elem.parentNode;\r
+                                               checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;\r
+                                       }\r
+                               }\r
+\r
+                       } else {\r
+                               for ( ; i < l; i++ ) {\r
+                                       elem = checkSet[i];\r
+\r
+                                       if ( elem ) {\r
+                                               checkSet[i] = isPartStr ?\r
+                                                       elem.parentNode :\r
+                                                       elem.parentNode === part;\r
+                                       }\r
+                               }\r
+\r
+                               if ( isPartStr ) {\r
+                                       Sizzle.filter( part, checkSet, true );\r
+                               }\r
+                       }\r
+               },\r
+\r
+               "": function(checkSet, part, isXML){\r
+                       var nodeCheck,\r
+                               doneName = done++,\r
+                               checkFn = dirCheck;\r
+\r
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {\r
+                               part = part.toLowerCase();\r
+                               nodeCheck = part;\r
+                               checkFn = dirNodeCheck;\r
+                       }\r
+\r
+                       checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );\r
+               },\r
+\r
+               "~": function( checkSet, part, isXML ) {\r
+                       var nodeCheck,\r
+                               doneName = done++,\r
+                               checkFn = dirCheck;\r
+\r
+                       if ( typeof part === "string" && !rNonWord.test( part ) ) {\r
+                               part = part.toLowerCase();\r
+                               nodeCheck = part;\r
+                               checkFn = dirNodeCheck;\r
+                       }\r
+\r
+                       checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );\r
+               }\r
+       },\r
+\r
+       find: {\r
+               ID: function( match, context, isXML ) {\r
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {\r
+                               var m = context.getElementById(match[1]);\r
+                               // Check parentNode to catch when Blackberry 4.6 returns\r
+                               // nodes that are no longer in the document #6963\r
+                               return m && m.parentNode ? [m] : [];\r
+                       }\r
+               },\r
+\r
+               NAME: function( match, context ) {\r
+                       if ( typeof context.getElementsByName !== "undefined" ) {\r
+                               var ret = [],\r
+                                       results = context.getElementsByName( match[1] );\r
+\r
+                               for ( var i = 0, l = results.length; i < l; i++ ) {\r
+                                       if ( results[i].getAttribute("name") === match[1] ) {\r
+                                               ret.push( results[i] );\r
+                                       }\r
+                               }\r
+\r
+                               return ret.length === 0 ? null : ret;\r
+                       }\r
+               },\r
+\r
+               TAG: function( match, context ) {\r
+                       if ( typeof context.getElementsByTagName !== "undefined" ) {\r
+                               return context.getElementsByTagName( match[1] );\r
+                       }\r
+               }\r
+       },\r
+       preFilter: {\r
+               CLASS: function( match, curLoop, inplace, result, not, isXML ) {\r
+                       match = " " + match[1].replace( rBackslash, "" ) + " ";\r
+\r
+                       if ( isXML ) {\r
+                               return match;\r
+                       }\r
+\r
+                       for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {\r
+                               if ( elem ) {\r
+                                       if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {\r
+                                               if ( !inplace ) {\r
+                                                       result.push( elem );\r
+                                               }\r
+\r
+                                       } else if ( inplace ) {\r
+                                               curLoop[i] = false;\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       return false;\r
+               },\r
+\r
+               ID: function( match ) {\r
+                       return match[1].replace( rBackslash, "" );\r
+               },\r
+\r
+               TAG: function( match, curLoop ) {\r
+                       return match[1].replace( rBackslash, "" ).toLowerCase();\r
+               },\r
+\r
+               CHILD: function( match ) {\r
+                       if ( match[1] === "nth" ) {\r
+                               if ( !match[2] ) {\r
+                                       Sizzle.error( match[0] );\r
+                               }\r
+\r
+                               match[2] = match[2].replace(/^\+|\s*/g, '');\r
+\r
+                               // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'\r
+                               var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(\r
+                                       match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||\r
+                                       !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);\r
+\r
+                               // calculate the numbers (first)n+(last) including if they are negative\r
+                               match[2] = (test[1] + (test[2] || 1)) - 0;\r
+                               match[3] = test[3] - 0;\r
+                       }\r
+                       else if ( match[2] ) {\r
+                               Sizzle.error( match[0] );\r
+                       }\r
+\r
+                       // TODO: Move to normal caching system\r
+                       match[0] = done++;\r
+\r
+                       return match;\r
+               },\r
+\r
+               ATTR: function( match, curLoop, inplace, result, not, isXML ) {\r
+                       var name = match[1] = match[1].replace( rBackslash, "" );\r
+\r
+                       if ( !isXML && Expr.attrMap[name] ) {\r
+                               match[1] = Expr.attrMap[name];\r
+                       }\r
+\r
+                       // Handle if an un-quoted value was used\r
+                       match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );\r
+\r
+                       if ( match[2] === "~=" ) {\r
+                               match[4] = " " + match[4] + " ";\r
+                       }\r
+\r
+                       return match;\r
+               },\r
+\r
+               PSEUDO: function( match, curLoop, inplace, result, not ) {\r
+                       if ( match[1] === "not" ) {\r
+                               // If we're dealing with a complex expression, or a simple one\r
+                               if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {\r
+                                       match[3] = Sizzle(match[3], null, null, curLoop);\r
+\r
+                               } else {\r
+                                       var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);\r
+\r
+                                       if ( !inplace ) {\r
+                                               result.push.apply( result, ret );\r
+                                       }\r
+\r
+                                       return false;\r
+                               }\r
+\r
+                       } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {\r
+                               return true;\r
+                       }\r
+\r
+                       return match;\r
+               },\r
+\r
+               POS: function( match ) {\r
+                       match.unshift( true );\r
+\r
+                       return match;\r
+               }\r
+       },\r
+\r
+       filters: {\r
+               enabled: function( elem ) {\r
+                       return elem.disabled === false && elem.type !== "hidden";\r
+               },\r
+\r
+               disabled: function( elem ) {\r
+                       return elem.disabled === true;\r
+               },\r
+\r
+               checked: function( elem ) {\r
+                       return elem.checked === true;\r
+               },\r
+\r
+               selected: function( elem ) {\r
+                       // Accessing this property makes selected-by-default\r
+                       // options in Safari work properly\r
+                       if ( elem.parentNode ) {\r
+                               elem.parentNode.selectedIndex;\r
+                       }\r
+\r
+                       return elem.selected === true;\r
+               },\r
+\r
+               parent: function( elem ) {\r
+                       return !!elem.firstChild;\r
+               },\r
+\r
+               empty: function( elem ) {\r
+                       return !elem.firstChild;\r
+               },\r
+\r
+               has: function( elem, i, match ) {\r
+                       return !!Sizzle( match[3], elem ).length;\r
+               },\r
+\r
+               header: function( elem ) {\r
+                       return (/h\d/i).test( elem.nodeName );\r
+               },\r
+\r
+               text: function( elem ) {\r
+                       var attr = elem.getAttribute( "type" ), type = elem.type;\r
+                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)\r
+                       // use getAttribute instead to test this case\r
+                       return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );\r
+               },\r
+\r
+               radio: function( elem ) {\r
+                       return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;\r
+               },\r
+\r
+               checkbox: function( elem ) {\r
+                       return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;\r
+               },\r
+\r
+               file: function( elem ) {\r
+                       return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;\r
+               },\r
+\r
+               password: function( elem ) {\r
+                       return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;\r
+               },\r
+\r
+               submit: function( elem ) {\r
+                       var name = elem.nodeName.toLowerCase();\r
+                       return (name === "input" || name === "button") && "submit" === elem.type;\r
+               },\r
+\r
+               image: function( elem ) {\r
+                       return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;\r
+               },\r
+\r
+               reset: function( elem ) {\r
+                       var name = elem.nodeName.toLowerCase();\r
+                       return (name === "input" || name === "button") && "reset" === elem.type;\r
+               },\r
+\r
+               button: function( elem ) {\r
+                       var name = elem.nodeName.toLowerCase();\r
+                       return name === "input" && "button" === elem.type || name === "button";\r
+               },\r
+\r
+               input: function( elem ) {\r
+                       return (/input|select|textarea|button/i).test( elem.nodeName );\r
+               },\r
+\r
+               focus: function( elem ) {\r
+                       return elem === elem.ownerDocument.activeElement;\r
+               }\r
+       },\r
+       setFilters: {\r
+               first: function( elem, i ) {\r
+                       return i === 0;\r
+               },\r
+\r
+               last: function( elem, i, match, array ) {\r
+                       return i === array.length - 1;\r
+               },\r
+\r
+               even: function( elem, i ) {\r
+                       return i % 2 === 0;\r
+               },\r
+\r
+               odd: function( elem, i ) {\r
+                       return i % 2 === 1;\r
+               },\r
+\r
+               lt: function( elem, i, match ) {\r
+                       return i < match[3] - 0;\r
+               },\r
+\r
+               gt: function( elem, i, match ) {\r
+                       return i > match[3] - 0;\r
+               },\r
+\r
+               nth: function( elem, i, match ) {\r
+                       return match[3] - 0 === i;\r
+               },\r
+\r
+               eq: function( elem, i, match ) {\r
+                       return match[3] - 0 === i;\r
+               }\r
+       },\r
+       filter: {\r
+               PSEUDO: function( elem, match, i, array ) {\r
+                       var name = match[1],\r
+                               filter = Expr.filters[ name ];\r
+\r
+                       if ( filter ) {\r
+                               return filter( elem, i, match, array );\r
+\r
+                       } else if ( name === "contains" ) {\r
+                               return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;\r
+\r
+                       } else if ( name === "not" ) {\r
+                               var not = match[3];\r
+\r
+                               for ( var j = 0, l = not.length; j < l; j++ ) {\r
+                                       if ( not[j] === elem ) {\r
+                                               return false;\r
+                                       }\r
+                               }\r
+\r
+                               return true;\r
+\r
+                       } else {\r
+                               Sizzle.error( name );\r
+                       }\r
+               },\r
+\r
+               CHILD: function( elem, match ) {\r
+                       var first, last,\r
+                               doneName, parent, cache,\r
+                               count, diff,\r
+                               type = match[1],\r
+                               node = elem;\r
+\r
+                       switch ( type ) {\r
+                               case "only":\r
+                               case "first":\r
+                                       while ( (node = node.previousSibling) ) {\r
+                                               if ( node.nodeType === 1 ) {\r
+                                                       return false;\r
+                                               }\r
+                                       }\r
+\r
+                                       if ( type === "first" ) {\r
+                                               return true;\r
+                                       }\r
+\r
+                                       node = elem;\r
+\r
+                                       /* falls through */\r
+                               case "last":\r
+                                       while ( (node = node.nextSibling) ) {\r
+                                               if ( node.nodeType === 1 ) {\r
+                                                       return false;\r
+                                               }\r
+                                       }\r
+\r
+                                       return true;\r
+\r
+                               case "nth":\r
+                                       first = match[2];\r
+                                       last = match[3];\r
+\r
+                                       if ( first === 1 && last === 0 ) {\r
+                                               return true;\r
+                                       }\r
+\r
+                                       doneName = match[0];\r
+                                       parent = elem.parentNode;\r
+\r
+                                       if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {\r
+                                               count = 0;\r
+\r
+                                               for ( node = parent.firstChild; node; node = node.nextSibling ) {\r
+                                                       if ( node.nodeType === 1 ) {\r
+                                                               node.nodeIndex = ++count;\r
+                                                       }\r
+                                               }\r
+\r
+                                               parent[ expando ] = doneName;\r
+                                       }\r
+\r
+                                       diff = elem.nodeIndex - last;\r
+\r
+                                       if ( first === 0 ) {\r
+                                               return diff === 0;\r
+\r
+                                       } else {\r
+                                               return ( diff % first === 0 && diff / first >= 0 );\r
+                                       }\r
+                       }\r
+               },\r
+\r
+               ID: function( elem, match ) {\r
+                       return elem.nodeType === 1 && elem.getAttribute("id") === match;\r
+               },\r
+\r
+               TAG: function( elem, match ) {\r
+                       return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;\r
+               },\r
+\r
+               CLASS: function( elem, match ) {\r
+                       return (" " + (elem.className || elem.getAttribute("class")) + " ")\r
+                               .indexOf( match ) > -1;\r
+               },\r
+\r
+               ATTR: function( elem, match ) {\r
+                       var name = match[1],\r
+                               result = Sizzle.attr ?\r
+                                       Sizzle.attr( elem, name ) :\r
+                                       Expr.attrHandle[ name ] ?\r
+                                       Expr.attrHandle[ name ]( elem ) :\r
+                                       elem[ name ] != null ?\r
+                                               elem[ name ] :\r
+                                               elem.getAttribute( name ),\r
+                               value = result + "",\r
+                               type = match[2],\r
+                               check = match[4];\r
+\r
+                       return result == null ?\r
+                               type === "!=" :\r
+                               !type && Sizzle.attr ?\r
+                               result != null :\r
+                               type === "=" ?\r
+                               value === check :\r
+                               type === "*=" ?\r
+                               value.indexOf(check) >= 0 :\r
+                               type === "~=" ?\r
+                               (" " + value + " ").indexOf(check) >= 0 :\r
+                               !check ?\r
+                               value && result !== false :\r
+                               type === "!=" ?\r
+                               value !== check :\r
+                               type === "^=" ?\r
+                               value.indexOf(check) === 0 :\r
+                               type === "$=" ?\r
+                               value.substr(value.length - check.length) === check :\r
+                               type === "|=" ?\r
+                               value === check || value.substr(0, check.length + 1) === check + "-" :\r
+                               false;\r
+               },\r
+\r
+               POS: function( elem, match, i, array ) {\r
+                       var name = match[2],\r
+                               filter = Expr.setFilters[ name ];\r
+\r
+                       if ( filter ) {\r
+                               return filter( elem, i, match, array );\r
+                       }\r
+               }\r
+       }\r
+};\r
+\r
+var origPOS = Expr.match.POS,\r
+       fescape = function(all, num){\r
+               return "\\" + (num - 0 + 1);\r
+       };\r
+\r
+for ( var type in Expr.match ) {\r
+       Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );\r
+       Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );\r
+}\r
+// Expose origPOS\r
+// "global" as in regardless of relation to brackets/parens\r
+Expr.match.globalPOS = origPOS;\r
+\r
+var makeArray = function( array, results ) {\r
+       array = Array.prototype.slice.call( array, 0 );\r
+\r
+       if ( results ) {\r
+               results.push.apply( results, array );\r
+               return results;\r
+       }\r
+\r
+       return array;\r
+};\r
+\r
+// Perform a simple check to determine if the browser is capable of\r
+// converting a NodeList to an array using builtin methods.\r
+// Also verifies that the returned array holds DOM nodes\r
+// (which is not the case in the Blackberry browser)\r
+try {\r
+       Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;\r
+\r
+// Provide a fallback method if it does not work\r
+} catch( e ) {\r
+       makeArray = function( array, results ) {\r
+               var i = 0,\r
+                       ret = results || [];\r
+\r
+               if ( toString.call(array) === "[object Array]" ) {\r
+                       Array.prototype.push.apply( ret, array );\r
+\r
+               } else {\r
+                       if ( typeof array.length === "number" ) {\r
+                               for ( var l = array.length; i < l; i++ ) {\r
+                                       ret.push( array[i] );\r
+                               }\r
+\r
+                       } else {\r
+                               for ( ; array[i]; i++ ) {\r
+                                       ret.push( array[i] );\r
+                               }\r
+                       }\r
+               }\r
+\r
+               return ret;\r
+       };\r
+}\r
+\r
+var sortOrder, siblingCheck;\r
+\r
+if ( document.documentElement.compareDocumentPosition ) {\r
+       sortOrder = function( a, b ) {\r
+               if ( a === b ) {\r
+                       hasDuplicate = true;\r
+                       return 0;\r
+               }\r
+\r
+               if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {\r
+                       return a.compareDocumentPosition ? -1 : 1;\r
+               }\r
+\r
+               return a.compareDocumentPosition(b) & 4 ? -1 : 1;\r
+       };\r
+\r
+} else {\r
+       sortOrder = function( a, b ) {\r
+               // The nodes are identical, we can exit early\r
+               if ( a === b ) {\r
+                       hasDuplicate = true;\r
+                       return 0;\r
+\r
+               // Fallback to using sourceIndex (in IE) if it's available on both nodes\r
+               } else if ( a.sourceIndex && b.sourceIndex ) {\r
+                       return a.sourceIndex - b.sourceIndex;\r
+               }\r
+\r
+               var al, bl,\r
+                       ap = [],\r
+                       bp = [],\r
+                       aup = a.parentNode,\r
+                       bup = b.parentNode,\r
+                       cur = aup;\r
+\r
+               // If the nodes are siblings (or identical) we can do a quick check\r
+               if ( aup === bup ) {\r
+                       return siblingCheck( a, b );\r
+\r
+               // If no parents were found then the nodes are disconnected\r
+               } else if ( !aup ) {\r
+                       return -1;\r
+\r
+               } else if ( !bup ) {\r
+                       return 1;\r
+               }\r
+\r
+               // Otherwise they're somewhere else in the tree so we need\r
+               // to build up a full list of the parentNodes for comparison\r
+               while ( cur ) {\r
+                       ap.unshift( cur );\r
+                       cur = cur.parentNode;\r
+               }\r
+\r
+               cur = bup;\r
+\r
+               while ( cur ) {\r
+                       bp.unshift( cur );\r
+                       cur = cur.parentNode;\r
+               }\r
+\r
+               al = ap.length;\r
+               bl = bp.length;\r
+\r
+               // Start walking down the tree looking for a discrepancy\r
+               for ( var i = 0; i < al && i < bl; i++ ) {\r
+                       if ( ap[i] !== bp[i] ) {\r
+                               return siblingCheck( ap[i], bp[i] );\r
+                       }\r
+               }\r
+\r
+               // We ended someplace up the tree so do a sibling check\r
+               return i === al ?\r
+                       siblingCheck( a, bp[i], -1 ) :\r
+                       siblingCheck( ap[i], b, 1 );\r
+       };\r
+\r
+       siblingCheck = function( a, b, ret ) {\r
+               if ( a === b ) {\r
+                       return ret;\r
+               }\r
+\r
+               var cur = a.nextSibling;\r
+\r
+               while ( cur ) {\r
+                       if ( cur === b ) {\r
+                               return -1;\r
+                       }\r
+\r
+                       cur = cur.nextSibling;\r
+               }\r
+\r
+               return 1;\r
+       };\r
+}\r
+\r
+// Check to see if the browser returns elements by name when\r
+// querying by getElementById (and provide a workaround)\r
+(function(){\r
+       // We're going to inject a fake input element with a specified name\r
+       var form = document.createElement("div"),\r
+               id = "script" + (new Date()).getTime(),\r
+               root = document.documentElement;\r
+\r
+       form.innerHTML = "<a name='" + id + "'/>";\r
+\r
+       // Inject it into the root element, check its status, and remove it quickly\r
+       root.insertBefore( form, root.firstChild );\r
+\r
+       // The workaround has to do additional checks after a getElementById\r
+       // Which slows things down for other browsers (hence the branching)\r
+       if ( document.getElementById( id ) ) {\r
+               Expr.find.ID = function( match, context, isXML ) {\r
+                       if ( typeof context.getElementById !== "undefined" && !isXML ) {\r
+                               var m = context.getElementById(match[1]);\r
+\r
+                               return m ?\r
+                                       m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?\r
+                                               [m] :\r
+                                               undefined :\r
+                                       [];\r
+                       }\r
+               };\r
+\r
+               Expr.filter.ID = function( elem, match ) {\r
+                       var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");\r
+\r
+                       return elem.nodeType === 1 && node && node.nodeValue === match;\r
+               };\r
+       }\r
+\r
+       root.removeChild( form );\r
+\r
+       // release memory in IE\r
+       root = form = null;\r
+})();\r
+\r
+(function(){\r
+       // Check to see if the browser returns only elements\r
+       // when doing getElementsByTagName("*")\r
+\r
+       // Create a fake element\r
+       var div = document.createElement("div");\r
+       div.appendChild( document.createComment("") );\r
+\r
+       // Make sure no comments are found\r
+       if ( div.getElementsByTagName("*").length > 0 ) {\r
+               Expr.find.TAG = function( match, context ) {\r
+                       var results = context.getElementsByTagName( match[1] );\r
+\r
+                       // Filter out possible comments\r
+                       if ( match[1] === "*" ) {\r
+                               var tmp = [];\r
+\r
+                               for ( var i = 0; results[i]; i++ ) {\r
+                                       if ( results[i].nodeType === 1 ) {\r
+                                               tmp.push( results[i] );\r
+                                       }\r
+                               }\r
+\r
+                               results = tmp;\r
+                       }\r
+\r
+                       return results;\r
+               };\r
+       }\r
+\r
+       // Check to see if an attribute returns normalized href attributes\r
+       div.innerHTML = "<a href='#'></a>";\r
+\r
+       if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&\r
+                       div.firstChild.getAttribute("href") !== "#" ) {\r
+\r
+               Expr.attrHandle.href = function( elem ) {\r
+                       return elem.getAttribute( "href", 2 );\r
+               };\r
+       }\r
+\r
+       // release memory in IE\r
+       div = null;\r
+})();\r
+\r
+if ( document.querySelectorAll ) {\r
+       (function(){\r
+               var oldSizzle = Sizzle,\r
+                       div = document.createElement("div"),\r
+                       id = "__sizzle__";\r
+\r
+               div.innerHTML = "<p class='TEST'></p>";\r
+\r
+               // Safari can't handle uppercase or unicode characters when\r
+               // in quirks mode.\r
+               if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {\r
+                       return;\r
+               }\r
+\r
+               Sizzle = function( query, context, extra, seed ) {\r
+                       context = context || document;\r
+\r
+                       // Only use querySelectorAll on non-XML documents\r
+                       // (ID selectors don't work in non-HTML documents)\r
+                       if ( !seed && !Sizzle.isXML(context) ) {\r
+                               // See if we find a selector to speed up\r
+                               var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );\r
+\r
+                               if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {\r
+                                       // Speed-up: Sizzle("TAG")\r
+                                       if ( match[1] ) {\r
+                                               return makeArray( context.getElementsByTagName( query ), extra );\r
+\r
+                                       // Speed-up: Sizzle(".CLASS")\r
+                                       } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {\r
+                                               return makeArray( context.getElementsByClassName( match[2] ), extra );\r
+                                       }\r
+                               }\r
+\r
+                               if ( context.nodeType === 9 ) {\r
+                                       // Speed-up: Sizzle("body")\r
+                                       // The body element only exists once, optimize finding it\r
+                                       if ( query === "body" && context.body ) {\r
+                                               return makeArray( [ context.body ], extra );\r
+\r
+                                       // Speed-up: Sizzle("#ID")\r
+                                       } else if ( match && match[3] ) {\r
+                                               var elem = context.getElementById( match[3] );\r
+\r
+                                               // Check parentNode to catch when Blackberry 4.6 returns\r
+                                               // nodes that are no longer in the document #6963\r
+                                               if ( elem && elem.parentNode ) {\r
+                                                       // Handle the case where IE and Opera return items\r
+                                                       // by name instead of ID\r
+                                                       if ( elem.id === match[3] ) {\r
+                                                               return makeArray( [ elem ], extra );\r
+                                                       }\r
+\r
+                                               } else {\r
+                                                       return makeArray( [], extra );\r
+                                               }\r
+                                       }\r
+\r
+                                       try {\r
+                                               return makeArray( context.querySelectorAll(query), extra );\r
+                                       } catch(qsaError) {}\r
+\r
+                               // qSA works strangely on Element-rooted queries\r
+                               // We can work around this by specifying an extra ID on the root\r
+                               // and working up from there (Thanks to Andrew Dupont for the technique)\r
+                               // IE 8 doesn't work on object elements\r
+                               } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {\r
+                                       var oldContext = context,\r
+                                               old = context.getAttribute( "id" ),\r
+                                               nid = old || id,\r
+                                               hasParent = context.parentNode,\r
+                                               relativeHierarchySelector = /^\s*[+~]/.test( query );\r
+\r
+                                       if ( !old ) {\r
+                                               context.setAttribute( "id", nid );\r
+                                       } else {\r
+                                               nid = nid.replace( /'/g, "\\$&" );\r
+                                       }\r
+                                       if ( relativeHierarchySelector && hasParent ) {\r
+                                               context = context.parentNode;\r
+                                       }\r
+\r
+                                       try {\r
+                                               if ( !relativeHierarchySelector || hasParent ) {\r
+                                                       return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );\r
+                                               }\r
+\r
+                                       } catch(pseudoError) {\r
+                                       } finally {\r
+                                               if ( !old ) {\r
+                                                       oldContext.removeAttribute( "id" );\r
+                                               }\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       return oldSizzle(query, context, extra, seed);\r
+               };\r
+\r
+               for ( var prop in oldSizzle ) {\r
+                       Sizzle[ prop ] = oldSizzle[ prop ];\r
+               }\r
+\r
+               // release memory in IE\r
+               div = null;\r
+       })();\r
+}\r
+\r
+(function(){\r
+       var html = document.documentElement,\r
+               matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;\r
+\r
+       if ( matches ) {\r
+               // Check to see if it's possible to do matchesSelector\r
+               // on a disconnected node (IE 9 fails this)\r
+               var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),\r
+                       pseudoWorks = false;\r
+\r
+               try {\r
+                       // This should fail with an exception\r
+                       // Gecko does not error, returns false instead\r
+                       matches.call( document.documentElement, "[test!='']:sizzle" );\r
+\r
+               } catch( pseudoError ) {\r
+                       pseudoWorks = true;\r
+               }\r
+\r
+               Sizzle.matchesSelector = function( node, expr ) {\r
+                       // Make sure that attribute selectors are quoted\r
+                       expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");\r
+\r
+                       if ( !Sizzle.isXML( node ) ) {\r
+                               try {\r
+                                       if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {\r
+                                               var ret = matches.call( node, expr );\r
+\r
+                                               // IE 9's matchesSelector returns false on disconnected nodes\r
+                                               if ( ret || !disconnectedMatch ||\r
+                                                               // As well, disconnected nodes are said to be in a document\r
+                                                               // fragment in IE 9, so check for that\r
+                                                               node.document && node.document.nodeType !== 11 ) {\r
+                                                       return ret;\r
+                                               }\r
+                                       }\r
+                               } catch(e) {}\r
+                       }\r
+\r
+                       return Sizzle(expr, null, null, [node]).length > 0;\r
+               };\r
+       }\r
+})();\r
+\r
+(function(){\r
+       var div = document.createElement("div");\r
+\r
+       div.innerHTML = "<div class='test e'></div><div class='test'></div>";\r
+\r
+       // Opera can't find a second classname (in 9.6)\r
+       // Also, make sure that getElementsByClassName actually exists\r
+       if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {\r
+               return;\r
+       }\r
+\r
+       // Safari caches class attributes, doesn't catch changes (in 3.2)\r
+       div.lastChild.className = "e";\r
+\r
+       if ( div.getElementsByClassName("e").length === 1 ) {\r
+               return;\r
+       }\r
+\r
+       Expr.order.splice(1, 0, "CLASS");\r
+       Expr.find.CLASS = function( match, context, isXML ) {\r
+               if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {\r
+                       return context.getElementsByClassName(match[1]);\r
+               }\r
+       };\r
+\r
+       // release memory in IE\r
+       div = null;\r
+})();\r
+\r
+function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {\r
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {\r
+               var elem = checkSet[i];\r
+\r
+               if ( elem ) {\r
+                       var match = false;\r
+\r
+                       elem = elem[dir];\r
+\r
+                       while ( elem ) {\r
+                               if ( elem[ expando ] === doneName ) {\r
+                                       match = checkSet[elem.sizset];\r
+                                       break;\r
+                               }\r
+\r
+                               if ( elem.nodeType === 1 && !isXML ){\r
+                                       elem[ expando ] = doneName;\r
+                                       elem.sizset = i;\r
+                               }\r
+\r
+                               if ( elem.nodeName.toLowerCase() === cur ) {\r
+                                       match = elem;\r
+                                       break;\r
+                               }\r
+\r
+                               elem = elem[dir];\r
+                       }\r
+\r
+                       checkSet[i] = match;\r
+               }\r
+       }\r
+}\r
+\r
+function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {\r
+       for ( var i = 0, l = checkSet.length; i < l; i++ ) {\r
+               var elem = checkSet[i];\r
+\r
+               if ( elem ) {\r
+                       var match = false;\r
+\r
+                       elem = elem[dir];\r
+\r
+                       while ( elem ) {\r
+                               if ( elem[ expando ] === doneName ) {\r
+                                       match = checkSet[elem.sizset];\r
+                                       break;\r
+                               }\r
+\r
+                               if ( elem.nodeType === 1 ) {\r
+                                       if ( !isXML ) {\r
+                                               elem[ expando ] = doneName;\r
+                                               elem.sizset = i;\r
+                                       }\r
+\r
+                                       if ( typeof cur !== "string" ) {\r
+                                               if ( elem === cur ) {\r
+                                                       match = true;\r
+                                                       break;\r
+                                               }\r
+\r
+                                       } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {\r
+                                               match = elem;\r
+                                               break;\r
+                                       }\r
+                               }\r
+\r
+                               elem = elem[dir];\r
+                       }\r
+\r
+                       checkSet[i] = match;\r
+               }\r
+       }\r
+}\r
+\r
+if ( document.documentElement.contains ) {\r
+       Sizzle.contains = function( a, b ) {\r
+               return a !== b && (a.contains ? a.contains(b) : true);\r
+       };\r
+\r
+} else if ( document.documentElement.compareDocumentPosition ) {\r
+       Sizzle.contains = function( a, b ) {\r
+               return !!(a.compareDocumentPosition(b) & 16);\r
+       };\r
+\r
+} else {\r
+       Sizzle.contains = function() {\r
+               return false;\r
+       };\r
+}\r
+\r
+Sizzle.isXML = function( elem ) {\r
+       // documentElement is verified for cases where it doesn't yet exist\r
+       // (such as loading iframes in IE - #4833)\r
+       var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;\r
+\r
+       return documentElement ? documentElement.nodeName !== "HTML" : false;\r
+};\r
+\r
+var posProcess = function( selector, context, seed ) {\r
+       var match,\r
+               tmpSet = [],\r
+               later = "",\r
+               root = context.nodeType ? [context] : context;\r
+\r
+       // Position selectors must be done after the filter\r
+       // And so must :not(positional) so we move all PSEUDOs to the end\r
+       while ( (match = Expr.match.PSEUDO.exec( selector )) ) {\r
+               later += match[0];\r
+               selector = selector.replace( Expr.match.PSEUDO, "" );\r
+       }\r
+\r
+       selector = Expr.relative[selector] ? selector + "*" : selector;\r
+\r
+       for ( var i = 0, l = root.length; i < l; i++ ) {\r
+               Sizzle( selector, root[i], tmpSet, seed );\r
+       }\r
+\r
+       return Sizzle.filter( later, tmpSet );\r
+};\r
+\r
+// EXPOSE\r
+// Override sizzle attribute retrieval\r
+Sizzle.attr = jQuery.attr;\r
+Sizzle.selectors.attrMap = {};\r
+jQuery.find = Sizzle;\r
+jQuery.expr = Sizzle.selectors;\r
+jQuery.expr[":"] = jQuery.expr.filters;\r
+jQuery.unique = Sizzle.uniqueSort;\r
+jQuery.text = Sizzle.getText;\r
+jQuery.isXMLDoc = Sizzle.isXML;\r
+jQuery.contains = Sizzle.contains;\r
+\r
+\r
+})();\r
+\r
+\r
+var runtil = /Until$/,\r
+       rparentsprev = /^(?:parents|prevUntil|prevAll)/,\r
+       // Note: This RegExp should be improved, or likely pulled from Sizzle\r
+       rmultiselector = /,/,\r
+       isSimple = /^.[^:#\[\.,]*$/,\r
+       slice = Array.prototype.slice,\r
+       POS = jQuery.expr.match.globalPOS,\r
+       // methods guaranteed to produce a unique set when starting from a unique set\r
+       guaranteedUnique = {\r
+               children: true,\r
+               contents: true,\r
+               next: true,\r
+               prev: true\r
+       };\r
+\r
+jQuery.fn.extend({\r
+       find: function( selector ) {\r
+               var self = this,\r
+                       i, l;\r
+\r
+               if ( typeof selector !== "string" ) {\r
+                       return jQuery( selector ).filter(function() {\r
+                               for ( i = 0, l = self.length; i < l; i++ ) {\r
+                                       if ( jQuery.contains( self[ i ], this ) ) {\r
+                                               return true;\r
+                                       }\r
+                               }\r
+                       });\r
+               }\r
+\r
+               var ret = this.pushStack( "", "find", selector ),\r
+                       length, n, r;\r
+\r
+               for ( i = 0, l = this.length; i < l; i++ ) {\r
+                       length = ret.length;\r
+                       jQuery.find( selector, this[i], ret );\r
+\r
+                       if ( i > 0 ) {\r
+                               // Make sure that the results are unique\r
+                               for ( n = length; n < ret.length; n++ ) {\r
+                                       for ( r = 0; r < length; r++ ) {\r
+                                               if ( ret[r] === ret[n] ) {\r
+                                                       ret.splice(n--, 1);\r
+                                                       break;\r
+                                               }\r
+                                       }\r
+                               }\r
+                       }\r
+               }\r
+\r
+               return ret;\r
+       },\r
+\r
+       has: function( target ) {\r
+               var targets = jQuery( target );\r
+               return this.filter(function() {\r
+                       for ( var i = 0, l = targets.length; i < l; i++ ) {\r
+                               if ( jQuery.contains( this, targets[i] ) ) {\r
+                                       return true;\r
+                               }\r
+                       }\r
+               });\r
+       },\r
+\r
+       not: function( selector ) {\r
+               return this.pushStack( winnow(this, selector, false), "not", selector);\r
+       },\r
+\r
+       filter: function( selector ) {\r
+               return this.pushStack( winnow(this, selector, true), "filter", selector );\r
+       },\r
+\r
+       is: function( selector ) {\r
+               return !!selector && (\r
+                       typeof selector === "string" ?\r
+                               // If this is a positional selector, check membership in the returned set\r
+                               // so $("p:first").is("p:last") won't return true for a doc with two "p".\r
+                               POS.test( selector ) ?\r
+                                       jQuery( selector, this.context ).index( this[0] ) >= 0 :\r
+                                       jQuery.filter( selector, this ).length > 0 :\r
+                               this.filter( selector ).length > 0 );\r
+       },\r
+\r
+       closest: function( selectors, context ) {\r
+               var ret = [], i, l, cur = this[0];\r
+\r
+               // Array (deprecated as of jQuery 1.7)\r
+               if ( jQuery.isArray( selectors ) ) {\r
+                       var level = 1;\r
+\r
+                       while ( cur && cur.ownerDocument && cur !== context ) {\r
+                               for ( i = 0; i < selectors.length; i++ ) {\r
+\r
+                                       if ( jQuery( cur ).is( selectors[ i ] ) ) {\r
+                                               ret.push({ selector: selectors[ i ], elem: cur, level: level });\r
+                                       }\r
+                               }\r
+\r
+                               cur = cur.parentNode;\r
+                               level++;\r
+                       }\r
+\r
+                       return ret;\r
+               }\r
+\r
+               // String\r
+               var pos = POS.test( selectors ) || typeof selectors !== "string" ?\r
+                               jQuery( selectors, context || this.context ) :\r
+                               0;\r
+\r
+               for ( i = 0, l = this.length; i < l; i++ ) {\r
+                       cur = this[i];\r
+\r
+                       while ( cur ) {\r
+                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {\r
+                                       ret.push( cur );\r
+                                       break;\r
+\r
+                               } else {\r
+                                       cur = cur.parentNode;\r
+                                       if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {\r
+                                               break;\r
+                                       }\r
+                               }\r
+                       }\r
+               }\r
+\r
+               ret = ret.length > 1 ? jQuery.unique( ret ) : ret;\r
+\r
+               return this.pushStack( ret, "closest", selectors );\r
+       },\r
+\r
+       // Determine the position of an element within\r
+       // the matched set of elements\r
+       index: function( elem ) {\r
+\r
+               // No argument, return index in parent\r
+               if ( !elem ) {\r
+                       return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;\r
+               }\r
+\r
+               // index in selector\r
+               if ( typeof elem === "string" ) {\r
+                       return jQuery.inArray( this[0], jQuery( elem ) );\r
+               }\r
+\r
+               // Locate the position of the desired element\r
+               return jQuery.inArray(\r
+                       // If it receives a jQuery object, the first element is used\r
+                       elem.jquery ? elem[0] : elem, this );\r
+       },\r
+\r
+       add: function( selector, context ) {\r
+               var set = typeof selector === "string" ?\r
+                               jQuery( selector, context ) :\r
+                               jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),\r
+                       all = jQuery.merge( this.get(), set );\r
+\r
+               return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?\r
+                       all :\r
+                       jQuery.unique( all ) );\r
+       },\r
+\r
+       andSelf: function() {\r
+               return this.add( this.prevObject );\r
+       }\r
+});\r
+\r
+// A painfully simple check to see if an element is disconnected\r
+// from a document (should be improved, where feasible).\r
+function isDisconnected( node ) {\r
+       return !node || !node.parentNode || node.parentNode.nodeType === 11;\r
+}\r
+\r
+jQuery.each({\r
+       parent: function( elem ) {\r
+               var parent = elem.parentNode;\r
+               return parent && parent.nodeType !== 11 ? parent : null;\r
+       },\r
+       parents: function( elem ) {\r
+               return jQuery.dir( elem, "parentNode" );\r
+       },\r
+       parentsUntil: function( elem, i, until ) {\r
+               return jQuery.dir( elem, "parentNode", until );\r
+       },\r
+       next: function( elem ) {\r
+               return jQuery.nth( elem, 2, "nextSibling" );\r
+       },\r
+       prev: function( elem ) {\r
+               return jQuery.nth( elem, 2, "previousSibling" );\r
+       },\r
+       nextAll: function( elem ) {\r
+               return jQuery.dir( elem, "nextSibling" );\r
+       },\r
+       prevAll: function( elem ) {\r
+               return jQuery.dir( elem, "previousSibling" );\r
+       },\r
+       nextUntil: function( elem, i, until ) {\r
+               return jQuery.dir( elem, "nextSibling", until );\r
+       },\r
+       prevUntil: function( elem, i, until ) {\r
+               return jQuery.dir( elem, "previousSibling", until );\r
+       },\r
+       siblings: function( elem ) {\r
+               return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );\r
+       },\r
+       children: function( elem ) {\r
+               return jQuery.sibling( elem.firstChild );\r
+       },\r
+       contents: function( elem ) {\r
+               return jQuery.nodeName( elem, "iframe" ) ?\r
+                       elem.contentDocument || elem.contentWindow.document :\r
+                       jQuery.makeArray( elem.childNodes );\r
+       }\r
+}, function( name, fn ) {\r
+       jQuery.fn[ name ] = function( until, selector ) {\r
+               var ret = jQuery.map( this, fn, until );\r
+\r
+               if ( !runtil.test( name ) ) {\r
+                       selector = until;\r
+               }\r
+\r
+               if ( selector && typeof selector === "string" ) {\r
+                       ret = jQuery.filter( selector, ret );\r
+               }\r
+\r
+               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;\r
+\r
+               if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {\r
+                       ret = ret.reverse();\r
+               }\r
+\r
+               return this.pushStack( ret, name, slice.call( arguments ).join(",") );\r
+       };\r
+});\r
+\r
+jQuery.extend({\r
+       filter: function( expr, elems, not ) {\r
+               if ( not ) {\r
+                       expr = ":not(" + expr + ")";\r
+               }\r
+\r
+               return elems.length === 1 ?\r
+                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :\r
+                       jQuery.find.matches(expr, elems);\r
+       },\r
+\r
+       dir: function( elem, dir, until ) {\r
+               var matched = [],\r
+                       cur = elem[ dir ];\r
+\r
+               while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {\r
+                       if ( cur.nodeType === 1 ) {\r
+                               matched.push( cur );\r
+                       }\r
+                       cur = cur[dir];\r
+               }\r
+               return matched;\r
+       },\r
+\r
+       nth: function( cur, result, dir, elem ) {\r
+               result = result || 1;\r
+               var num = 0;\r
+\r
+               for ( ; cur; cur = cur[dir] ) {\r
+                       if ( cur.nodeType === 1 && ++num === result ) {\r
+                               break;\r
+                       }\r
+               }\r
+\r
+               return cur;\r
+       },\r
+\r
+       sibling: function( n, elem ) {\r
+               var r = [];\r
+\r
+               for ( ; n; n = n.nextSibling ) {\r
+                       if ( n.nodeType === 1 && n !== elem ) {\r
+                               r.push( n );\r
+                       }\r
+               }\r
+\r
+               return r;\r
+       }\r
+});\r
+\r
+// Implement the identical functionality for filter and not\r
+function winnow( elements, qualifier, keep ) {\r
+\r
+       // Can't pass null or undefined to indexOf in Firefox 4\r
+       // Set to 0 to skip string check\r
+       qualifier = qualifier || 0;\r
+\r
+       if ( jQuery.isFunction( qualifier ) ) {\r
+               return jQuery.grep(elements, function( elem, i ) {\r
+                       var retVal = !!qualifier.call( elem, i, elem );\r
+                       return retVal === keep;\r
+               });\r
+\r
+       } else if ( qualifier.nodeType ) {\r
+               return jQuery.grep(elements, function( elem, i ) {\r
+                       return ( elem === qualifier ) === keep;\r
+               });\r
+\r
+       } else if ( typeof qualifier === "string" ) {\r
+               var filtered = jQuery.grep(elements, function( elem ) {\r
+                       return elem.nodeType === 1;\r
+               });\r
+\r
+               if ( isSimple.test( qualifier ) ) {\r
+                       return jQuery.filter(qualifier, filtered, !keep);\r
+               } else {\r
+                       qualifier = jQuery.filter( qualifier, filtered );\r
+               }\r
+       }\r
+\r
+       return jQuery.grep(elements, function( elem, i ) {\r
+               return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;\r
+       });\r
+}\r
+\r
+\r
+\r
+\r
+function createSafeFragment( document ) {\r
+       var list = nodeNames.split( "|" ),\r
+       safeFrag = document.createDocumentFragment();\r
+\r
+       if ( safeFrag.createElement ) {\r
+               while ( list.length ) {\r
+                       safeFrag.createElement(\r
+                               list.pop()\r
+                       );\r
+               }\r
+       }\r
+       return safeFrag;\r
+}\r
+\r
+var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +\r
+               "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",\r
+       rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,\r
+       rleadingWhitespace = /^\s+/,\r
+       rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,\r
+       rtagName = /<([\w:]+)/,\r
+       rtbody = /<tbody/i,\r
+       rhtml = /<|&#?\w+;/,\r
+       rnoInnerhtml = /<(?:script|style)/i,\r
+       rnocache = /<(?:script|object|embed|option|style)/i,\r
+       rnoshimcache = new RegExp("<(?:" + nodeNames + ")[\\s/>]", "i"),\r
+       // checked="checked" or checked\r
+       rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,\r
+       rscriptType = /\/(java|ecma)script/i,\r
+       rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,\r
+       wrapMap = {\r
+               option: [ 1, "<select multiple='multiple'>", "</select>" ],\r
+               legend: [ 1, "<fieldset>", "</fieldset>" ],\r
+               thead: [ 1, "<table>", "</table>" ],\r
+               tr: [ 2, "<table><tbody>", "</tbody></table>" ],\r
+               td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],\r
+               col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],\r
+               area: [ 1, "<map>", "</map>" ],\r
+               _default: [ 0, "", "" ]\r
+       },\r
+       safeFragment = createSafeFragment( document );\r
+\r
+wrapMap.optgroup = wrapMap.option;\r
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\r
+wrapMap.th = wrapMap.td;\r
+\r
+// IE can't serialize <link> and <script> tags normally\r
+if ( !jQuery.support.htmlSerialize ) {\r
+       wrapMap._default = [ 1, "div<div>", "</div>" ];\r
+}\r
+\r
+jQuery.fn.extend({\r
+       text: function( value ) {\r
+               return jQuery.access( this, function( value ) {\r
+                       return value === undefined ?\r
+                               jQuery.text( this ) :\r
+                               this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );\r
+               }, null, value, arguments.length );\r
+       },\r
+\r
+       wrapAll: function( html ) {\r
+               if ( jQuery.isFunction( html ) ) {\r
+                       return this.each(function(i) {\r
+                               jQuery(this).wrapAll( html.call(this, i) );\r
+                       });\r
+               }\r
+\r
+               if ( this[0] ) {\r
+                       // The elements to wrap the target around\r
+                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);\r
+\r
+                       if ( this[0].parentNode ) {\r
+                               wrap.insertBefore( this[0] );\r
+                       }\r
+\r
+                       wrap.map(function() {\r
+                               var elem = this;\r
+\r
+                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {\r
+                                       elem = elem.firstChild;\r
+                               }\r
+\r
+                               return elem;\r
+                       }).append( this );\r
+               }\r
+\r
+               return this;\r
+       },\r
+\r
+       wrapInner: function( html ) {\r
+               if ( jQuery.isFunction( html ) ) {\r
+                       return this.each(function(i) {\r
+                               jQuery(this).wrapInner( html.call(this, i) );\r
+                       });\r
+               }\r
+\r
+               return this.each(function() {\r
+                       var self = jQuery( this ),\r
+                               contents = self.contents();\r
+\r
+                       if ( contents.length ) {\r
+                               contents.wrapAll( html );\r
+\r
+                       } else {\r
+                               self.append( html );\r
+                       }\r
+               });\r
+       },\r
+\r
+       wrap: function( html ) {\r
+               var isFunction = jQuery.isFunction( html );\r
+\r
+               return this.each(function(i) {\r
+                       jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );\r
+               });\r
+       },\r
+\r
+       unwrap: function() {\r
+               return this.parent().each(function() {\r
+                       if ( !jQuery.nodeName( this, "body" ) ) {\r
+                               jQuery( this ).replaceWith( this.childNodes );\r
+                       }\r
+               }).end();\r
+       },\r
+\r
+       append: function() {\r
+               return this.domManip(arguments, true, function( elem ) {\r
+                       if ( this.nodeType === 1 ) {\r
+                               this.appendChild( elem );\r
+                       }\r
+               });\r
+       },\r
+\r
+       prepend: function() {\r
+               return this.domManip(arguments, true, function( elem ) {\r
+                       if ( this.nodeType === 1 ) {\r
+                               this.insertBefore( elem, this.firstChild );\r
+                       }\r
+               });\r
+       },\r
+\r
+       before: function() {\r
+               if ( this[0] && this[0].parentNode ) {\r
+                       return this.domManip(arguments, false, function( elem ) {\r
+                               this.parentNode.insertBefore( elem, this );\r
+                       });\r
+               } else if ( arguments.length ) {\r
+                       var set = jQuery.clean( arguments );\r
+                       set.push.apply( set, this.toArray() );\r
+                       return this.pushStack( set, "before", arguments );\r
+               }\r
+       },\r
+\r
+       after: function() {\r
+               if ( this[0] && this[0].parentNode ) {\r
+                       return this.domManip(arguments, false, function( elem ) {\r
+                               this.parentNode.insertBefore( elem, this.nextSibling );\r
+                       });\r
+               } else if ( arguments.length ) {\r
+                       var set = this.pushStack( this, "after", arguments );\r
+                       set.push.apply( set, jQuery.clean(arguments) );\r
+                       return set;\r
+               }\r
+       },\r
+\r
+       // keepData is for internal use only--do not document\r
+       remove: function( selector, keepData ) {\r
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {\r
+                       if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {\r
+                               if ( !keepData && elem.nodeType === 1 ) {\r
+                                       jQuery.cleanData( elem.getElementsByTagName("*") );\r
+                                       jQuery.cleanData( [ elem ] );\r
+                               }\r
+\r
+                               if ( elem.parentNode ) {\r
+                                       elem.parentNode.removeChild( elem );\r
+                               }\r
+                       }\r
+               }\r
+\r
+               return this;\r
+       },\r
+\r
+       empty: function() {\r
+               for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {\r
+                       // Remove element nodes and prevent memory leaks\r
+                       if ( elem.nodeType === 1 ) {\r
+                               jQuery.cleanData( elem.getElementsByTagName("*") );\r
+                       }\r
+\r
+                       // Remove any remaining nodes\r
+                       while ( elem.firstChild ) {\r
+                               elem.removeChild( elem.firstChild );\r
+                       }\r
+               }\r
+\r
+               return this;\r
+       },\r
+\r
+       clone: function( dataAndEvents, deepDataAndEvents ) {\r
+               dataAndEvents = dataAndEvents == null ? false : dataAndEvents;\r
+               deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;\r
+\r
+               return this.map( function () {\r
+                       return jQuery.clone( this, dataAndEvents, deepDataAndEvents );\r
+               });\r
+       },\r
+\r
+       html: function( value ) {\r
+               return jQuery.access( this, function( value ) {\r
+                       var elem = this[0] || {},\r
+                               i = 0,\r
+                               l = this.length;\r
+\r
+                       if ( value === undefined ) {\r
+                               return elem.nodeType === 1 ?\r
+                                       elem.innerHTML.replace( rinlinejQuery, "" ) :\r
+                                       null;\r
+                       }\r
+\r
+\r
+                       if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&\r
+                               ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&\r
+                               !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {\r
+\r
+                               value = value.replace( rxhtmlTag, "<$1></$2>" );\r
+\r
+                               try {\r
+                                       for (; i < l; i++ ) {\r
+                                               // Remove element nodes and prevent memory leaks\r
+                                               elem = this[i] || {};\r
+                                               if ( elem.nodeType === 1 ) {\r
+                                                       jQuery.cleanData( elem.getElementsByTagName( "*" ) );\r
+                                                       elem.innerHTML = value;\r
+                                               }\r
+                                       }\r
+\r
+                                       elem = 0;\r
+\r
+                               // If using innerHTML throws an exception, use the fallback method\r
+                               } catch(e) {}\r
+                       }\r
+\r
+                       if ( elem ) {\r
+                               this.empty().append( value );\r
+                       }\r
+               }, null, value, arguments.length );\r
+       },\r
+\r
+       replaceWith: function( value ) {\r
+               if ( this[0] && this[0].parentNode ) {\r
+                       // Make sure that the elements are removed from the DOM before they are inserted\r
+                       // this can help fix replacing a parent with child elements\r
+                       if ( jQuery.isFunction( value ) ) {\r
+                               return this.each(function(i) {\r
+                                       var self = jQuery(this), old = self.html();\r
+                                       self.replaceWith( value.call( this, i, old ) );\r
+                               });\r
+                       }\r
+\r
+                       if ( typeof value !== "string" ) {\r
+                               value = jQuery( value ).detach();\r
+                       }\r
+\r
+                       return this.each(function() {\r
+                               var next = this.nextSibling,\r
+                                       parent = this.parentNode;\r
+\r
+                               jQuery( this ).remove();\r
+\r
+                               if ( next ) {\r
+                                       jQuery(next).before( value );\r
+                               } else {\r
+                                       jQuery(parent).append( value );\r
+                               }\r
+                       });\r
+               } else {\r
+                       return this.length ?\r
+                               this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :\r
+                               this;\r
+               }\r
+       },\r
+\r
+       detach: function( selector ) {\r
+               return this.remove( selector, true );\r
+       },\r
+\r
+       domManip: function( args, table, callback ) {\r
+               var results, first, fragment, parent,\r
+                       value = args[0],\r
+                       scripts = [];\r
+\r
+               // We can't cloneNode fragments that contain checked, in WebKit\r
+               if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {\r
+                       return this.each(function() {\r
+                               jQuery(this).domManip( args, table, callback, true );\r
+                       });\r
+               }\r
+\r
+               if ( jQuery.isFunction(value) ) {\r
+                       return this.each(function(i) {\r
+                               var self = jQuery(this);\r
+                               args[0] = value.call(this, i, table ? self.html() : undefined);\r
+                               self.domManip( args, table, callback );\r
+                       });\r
+               }\r
+\r
+               if ( this[0] ) {\r
+                       parent = value && value.parentNode;\r
+\r
+                       // If we're in a fragment, just use that instead of building a new one\r
+                       if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {\r
+                               results = { fragment: parent };\r
+\r
+                       } else {\r
+                               results = jQuery.buildFragment( args, this, scripts );\r
+                       }\r
+\r
+                       fragment = results.fragment;\r
+\r
+                       if ( fragment.childNodes.length === 1 ) {\r
+                               first = fragment = fragment.firstChild;\r
+                       } else {\r
+                               first = fragment.firstChild;\r
+                       }\r
+\r
+                       if ( first ) {\r
+                               table = table && jQuery.nodeName( first, "tr" );\r
+\r
+                               for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {\r
+                                       callback.call(\r
+                                               table ?\r
+                                                       root(this[i], first) :\r
+                                                       this[i],\r
+                                               // Make sure that we do not leak memory by inadvertently discarding\r
+                                               // the original fragment (which might have attached data) instead of\r
+                                               // using it; in addition, use the original fragment object for the last\r
+                                               // item instead of first because it can end up being emptied incorrectly\r
+                                               // in certain situations (Bug #8070).\r
+                                               // Fragments from the fragment cache must always be cloned and never used\r
+                                               // in place.\r
+                                               results.cacheable || ( l > 1 && i < lastIndex ) ?\r
+                                                       jQuery.clone( fragment, true, true ) :\r
+                                                       fragment\r
+                                       );\r
+                               }\r
+                       }\r
+\r
+                       if ( scripts.length ) {\r
+                               jQuery.each( scripts, function( i, elem ) {\r
+                                       if ( elem.src ) {\r
+                                               jQuery.ajax({\r
+                                                       type: "GET",\r
+                                                       global: false,\r
+                                                       url: elem.src,\r
+                                                       async: false,\r
+                                                       dataType: "script"\r
+                                               });\r
+                                       } else {\r
+                                               jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );\r
+                                       }\r
+\r
+                                       if ( elem.parentNode ) {\r
+                                               elem.parentNode.removeChild( elem );\r
+                                       }\r
+                               });\r
+                       }\r
+               }\r
+\r
+               return this;\r
+       }\r
+});\r
+\r
+function root( elem, cur ) {\r
+       return jQuery.nodeName(elem, "table") ?\r
+               (elem.getElementsByTagName("tbody")[0] ||\r
+               elem.appendChild(elem.ownerDocument.createElement("tbody"))) :\r
+               elem;\r
+}\r
+\r
+function cloneCopyEvent( src, dest ) {\r
+\r
+       if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {\r
+               return;\r
+       }\r
+\r
+       var type, i, l,\r
+               oldData = jQuery._data( src ),\r
+               curData = jQuery._data( dest, oldData ),\r
+               events = oldData.events;\r
+\r
+       if ( events ) {\r
+               delete curData.handle;\r
+               curData.events = {};\r
+\r
+               for ( type in events ) {\r
+                       for ( i = 0, l = events[ type ].length; i < l; i++ ) {\r
+                               jQuery.event.add( dest, type, events[ type ][ i ] );\r
+                       }\r
+               }\r
+       }\r
+\r
+       // make the cloned public data object a copy from the original\r
+       if ( curData.data ) {\r
+               curData.data = jQuery.extend( {}, curData.data );\r
+       }\r
+}\r
+\r
+function cloneFixAttributes( src, dest ) {\r
+       var nodeName;\r
+\r
+       // We do not need to do anything for non-Elements\r
+       if ( dest.nodeType !== 1 ) {\r
+               return;\r
+       }\r
+\r
+       // clearAttributes removes the attributes, which we don't want,\r
+       // but also removes the attachEvent events, which we *do* want\r
+       if ( dest.clearAttributes ) {\r
+               dest.clearAttributes();\r
+       }\r
+\r
+       // mergeAttributes, in contrast, only merges back on the\r
+       // original attributes, not the events\r
+       if ( dest.mergeAttributes ) {\r
+               dest.mergeAttributes( src );\r
+       }\r
+\r
+       nodeName = dest.nodeName.toLowerCase();\r
+\r
+       // IE6-8 fail to clone children inside object elements that use\r
+       // the proprietary classid attribute value (rather than the type\r
+       // attribute) to identify the type of content to display\r
+       if ( nodeName === "object" ) {\r
+               dest.outerHTML = src.outerHTML;\r
+\r
+       } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {\r
+               // IE6-8 fails to persist the checked state of a cloned checkbox\r
+               // or radio button. Worse, IE6-7 fail to give the cloned element\r
+               // a checked appearance if the defaultChecked value isn't also set\r
+               if ( src.checked ) {\r
+                       dest.defaultChecked = dest.checked = src.checked;\r
+               }\r
+\r
+               // IE6-7 get confused and end up setting the value of a cloned\r
+               // checkbox/radio button to an empty string instead of "on"\r
+               if ( dest.value !== src.value ) {\r
+                       dest.value = src.value;\r
+               }\r
+\r
+       // IE6-8 fails to return the selected option to the default selected\r
+       // state when cloning options\r
+       } else if ( nodeName === "option" ) {\r
+               dest.selected = src.defaultSelected;\r
+\r
+       // IE6-8 fails to set the defaultValue to the correct value when\r
+       // cloning other types of input fields\r
+       } else if ( nodeName === "input" || nodeName === "textarea" ) {\r
+               dest.defaultValue = src.defaultValue;\r
+\r
+       // IE blanks contents when cloning scripts\r
+       } else if ( nodeName === "script" && dest.text !== src.text ) {\r
+               dest.text = src.text;\r
+       }\r
+\r
+       // Event data gets referenced instead of copied if the expando\r
+       // gets copied too\r
+       dest.removeAttribute( jQuery.expando );\r
+\r
+       // Clear flags for bubbling special change/submit events, they must\r
+       // be reattached when the newly cloned events are first activated\r
+       dest.removeAttribute( "_submit_attached" );\r
+       dest.removeAttribute( "_change_attached" );\r
+}\r
+\r
+jQuery.buildFragment = function( args, nodes, scripts ) {\r
+       var fragment, cacheable, cacheresults, doc,\r
+       first = args[ 0 ];\r
+\r
+       // nodes may contain either an explicit document object,\r
+       // a jQuery collection or context object.\r
+       // If nodes[0] contains a valid object to assign to doc\r
+       if ( nodes && nodes[0] ) {\r
+               doc = nodes[0].ownerDocument || nodes[0];\r
+       }\r
+\r
+       // Ensure that an attr object doesn't incorrectly stand in as a document object\r
+       // Chrome and Firefox seem to allow this to occur and will throw exception\r
+       // Fixes #8950\r
+       if ( !doc.createDocumentFragment ) {\r
+               doc = document;\r
+       }\r
+\r
+       // Only cache "small" (1/2 KB) HTML strings that are associated with the main document\r
+       // Cloning options loses the selected state, so don't cache them\r
+       // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment\r
+       // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache\r
+       // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501\r
+       if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&\r
+               first.charAt(0) === "<" && !rnocache.test( first ) &&\r
+               (jQuery.support.checkClone || !rchecked.test( first )) &&\r
+               (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {\r
+\r
+               cacheable = true;\r
+\r
+               cacheresults = jQuery.fragments[ first ];\r
+               if ( cacheresults && cacheresults !== 1 ) {\r
+                       fragment = cacheresults;\r
+               }\r
+       }\r
+\r
+       if ( !fragment ) {\r
+               fragment = doc.createDocumentFragment();\r
+               jQuery.clean( args, doc, fragment, scripts );\r
+       }\r
+\r
+       if ( cacheable ) {\r
+               jQuery.fragments[ first ] = cacheresults ? fragment : 1;\r
+       }\r
+\r
+       return { fragment: fragment, cacheable: cacheable };\r
+};\r
+\r
+jQuery.fragments = {};\r
+\r
+jQuery.each({\r
+       appendTo: "append",\r
+       prependTo: "prepend",\r
+       insertBefore: "before",\r
+       insertAfter: "after",\r
+       replaceAll: "replaceWith"\r
+}, function( name, original ) {\r
+       jQuery.fn[ name ] = function( selector ) {\r
+               var ret = [],\r
+                       insert = jQuery( selector ),\r
+                       parent = this.length === 1 && this[0].parentNode;\r
+\r
+               if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {\r
+                       insert[ original ]( this[0] );\r
+                       return this;\r
+\r
+               } else {\r
+                       for ( var i = 0, l = insert.length; i < l; i++ ) {\r
+                               var elems = ( i > 0 ? this.clone(true) : this ).get();\r
+                               jQuery( insert[i] )[ original ]( elems );\r
+                               ret = ret.concat( elems );\r
+                       }\r
+\r
+                       return this.pushStack( ret, name, insert.selector );\r
+               }\r
+       };\r
+});\r
+\r
+function getAll( elem ) {\r
+       if ( typeof elem.getElementsByTagName !== "undefined" ) {\r
+               return elem.getElementsByTagName( "*" );\r
+\r
+       } else if ( typeof elem.querySelectorAll !== "undefined" ) {\r
+               return elem.querySelectorAll( "*" );\r
+\r
+       } else {\r
+               return [];\r
+       }\r
+}\r
+\r
+// Used in clean, fixes the defaultChecked property\r
+function fixDefaultChecked( elem ) {\r
+       if ( elem.type === "checkbox" || elem.type === "radio" ) {\r
+               elem.defaultChecked = elem.checked;\r
+       }\r
+}\r
+// Finds all inputs and passes them to fixDefaultChecked\r
+function findInputs( elem ) {\r
+       var nodeName = ( elem.nodeName || "" ).toLowerCase();\r
+       if ( nodeName === "input" ) {\r
+               fixDefaultChecked( elem );\r
+       // Skip scripts, get other children\r
+       } else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {\r
+               jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );\r
+       }\r
+}\r
+\r
+// Derived From: http://www.iecss.com/shimprove/javascript/shimprove.1-0-1.js\r
+function shimCloneNode( elem ) {\r
+       var div = document.createElement( "div" );\r
+       safeFragment.appendChild( div );\r
+\r
+       div.innerHTML = elem.outerHTML;\r
+       return div.firstChild;\r
+}\r
+\r
+jQuery.extend({\r
+       clone: function( elem, dataAndEvents, deepDataAndEvents ) {\r
+               var srcElements,\r
+                       destElements,\r
+                       i,\r
+                       // IE<=8 does not properly clone detached, unknown element nodes\r
+                       clone = jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ?\r
+                               elem.cloneNode( true ) :\r
+                               shimCloneNode( elem );\r
+\r
+               if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&\r
+                               (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {\r
+                       // IE copies events bound via attachEvent when using cloneNode.\r
+                       // Calling detachEvent on the clone will also remove the events\r
+                       // from the original. In order to get around this, we use some\r
+                       // proprietary methods to clear the events. Thanks to MooTools\r
+                       // guys for this hotness.\r
+\r
+                       cloneFixAttributes( elem, clone );\r
+\r
+                       // Using Sizzle here is crazy slow, so we use getElementsByTagName instead\r
+                       srcElements = getAll( elem );\r
+                       destElements = getAll( clone );\r
+\r
+                       // Weird iteration because IE will replace the length property\r
+                       // with an element if you are cloning the body and one of the\r
+                       // elements on the page has a name or id of "length"\r
+                       for ( i = 0; srcElements[i]; ++i ) {\r
+                               // Ensure that the destination node is not null; Fixes #9587\r
+                               if ( destElements[i] ) {\r
+                                       cloneFixAttributes( srcElements[i], destElements[i] );\r
+                               }\r
+                       }\r
+               }\r
+\r
+               // Copy the events from the original to the clone\r
+               if ( dataAndEvents ) {\r
+                       cloneCopyEvent( elem, clone );\r
+\r
+                       if ( deepDataAndEvents ) {\r
+                               srcElements = getAll( elem );\r
+                               destElements = getAll( clone );\r
+\r
+                               for ( i = 0; srcElements[i]; ++i ) {\r
+                                       cloneCopyEvent( srcElements[i], destElements[i] );\r
+                               }\r
+                       }\r
+               }\r
+\r
+               srcElements = destElements = null;\r
+\r
+               // Return the cloned set\r
+               return clone;\r
+       },\r
+\r
+       clean: function( elems, context, fragment, scripts ) {\r
+               var checkScriptType, script, j,\r
+                               ret = [];\r
+\r
+               context = context || document;\r
+\r
+               // !context.createElement fails in IE with an error but returns typeof 'object'\r
+               if ( typeof context.createElement === "undefined" ) {\r
+                       context = context.ownerDocument || context[0] && context[0].ownerDocument || document;\r
+               }\r
+\r
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {\r
+                       if ( typeof elem === "number" ) {\r
+                               elem += "";\r
+                       }\r
+\r
+                       if ( !elem ) {\r
+                               continue;\r
+                       }\r
+\r
+                       // Convert html string into DOM nodes\r
+                       if ( typeof elem === "string" ) {\r
+                               if ( !rhtml.test( elem ) ) {\r
+                                       elem = context.createTextNode( elem );\r
+                               } else {\r
+                                       // Fix "XHTML"-style tags in all browsers\r
+                                       elem = elem.replace(rxhtmlTag, "<$1></$2>");\r
+\r
+                                       // Trim whitespace, otherwise indexOf won't work as expected\r
+                                       var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),\r
+                                               wrap = wrapMap[ tag ] || wrapMap._default,\r
+                                               depth = wrap[0],\r
+                                               div = context.createElement("div"),\r
+                                               safeChildNodes = safeFragment.childNodes,\r
+                                               remove;\r
+\r
+                                       // Append wrapper element to unknown element safe doc fragment\r
+                                       if ( context === document ) {\r
+                                               // Use the fragment we've already created for this document\r
+                                               safeFragment.appendChild( div );\r
+                                       } else {\r
+                                               // Use a fragment created with the owner document\r
+                                               createSafeFragment( context ).appendChild( div );\r
+                                       }\r
+\r
+                                       // Go to html and back, then peel off extra wrappers\r
+                                       div.innerHTML = wrap[1] + elem + wrap[2];\r
+\r
+                                       // Move to the right depth\r
+                                       while ( depth-- ) {\r
+                                               div = div.lastChild;\r
+                                       }\r
+\r
+                                       // Remove IE's autoinserted <tbody> from table fragments\r
+                                       if ( !jQuery.support.tbody ) {\r
+\r
+                                               // String was a <table>, *may* have spurious <tbody>\r
+                                               var hasBody = rtbody.test(elem),\r
+                                                       tbody = tag === "table" && !hasBody ?\r
+                                                               div.firstChild && div.firstChild.childNodes :\r
+\r
+                                                               // String was a bare <thead> or <tfoot>\r
+                                                               wrap[1] === "<table>" && !hasBody ?\r
+                                                                       div.childNodes :\r
+                                                                       [];\r
+\r
+                                               for ( j = tbody.length - 1; j >= 0 ; --j ) {\r
+                                                       if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {\r
+                                                               tbody[ j ].parentNode.removeChild( tbody[ j ] );\r
+                                                       }\r
+                                               }\r
+                                       }\r
+\r
+                                       // IE completely kills leading whitespace when innerHTML is used\r
+                                       if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {\r
+                                               div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );\r
+                                       }\r
+\r
+                                       elem = div.childNodes;\r
+\r
+                                       // Clear elements from DocumentFragment (safeFragment or otherwise)\r
+                                       // to avoid hoarding elements. Fixes #11356\r
+                                       if ( div ) {\r
+                                               div.parentNode.removeChild( div );\r
+\r
+                                               // Guard against -1 index exceptions in FF3.6\r
+                                               if ( safeChildNodes.length > 0 ) {\r
+                                                       remove = safeChildNodes[ safeChildNodes.length - 1 ];\r
+\r
+                                                       if ( remove && remove.parentNode ) {\r
+                                                               remove.parentNode.removeChild( remove );\r
+                                                       }\r
+                                               }\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       // Resets defaultChecked for any radios and checkboxes\r
+                       // about to be appended to the DOM in IE 6/7 (#8060)\r
+                       var len;\r
+                       if ( !jQuery.support.appendChecked ) {\r
+                               if ( elem[0] && typeof (len = elem.length) === "number" ) {\r
+                                       for ( j = 0; j < len; j++ ) {\r
+                                               findInputs( elem[j] );\r
+                                       }\r
+                               } else {\r
+                                       findInputs( elem );\r
+                               }\r
+                       }\r
+\r
+                       if ( elem.nodeType ) {\r
+                               ret.push( elem );\r
+                       } else {\r
+                               ret = jQuery.merge( ret, elem );\r
+                       }\r
+               }\r
+\r
+               if ( fragment ) {\r
+                       checkScriptType = function( elem ) {\r
+                               return !elem.type || rscriptType.test( elem.type );\r
+                       };\r
+                       for ( i = 0; ret[i]; i++ ) {\r
+                               script = ret[i];\r
+                               if ( scripts && jQuery.nodeName( script, "script" ) && (!script.type || rscriptType.test( script.type )) ) {\r
+                                       scripts.push( script.parentNode ? script.parentNode.removeChild( script ) : script );\r
+\r
+                               } else {\r
+                                       if ( script.nodeType === 1 ) {\r
+                                               var jsTags = jQuery.grep( script.getElementsByTagName( "script" ), checkScriptType );\r
+\r
+                                               ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );\r
+                                       }\r
+                                       fragment.appendChild( script );\r
+                               }\r
+                       }\r
+               }\r
+\r
+               return ret;\r
+       },\r
+\r
+       cleanData: function( elems ) {\r
+               var data, id,\r
+                       cache = jQuery.cache,\r
+                       special = jQuery.event.special,\r
+                       deleteExpando = jQuery.support.deleteExpando;\r
+\r
+               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {\r
+                       if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {\r
+                               continue;\r
+                       }\r
+\r
+                       id = elem[ jQuery.expando ];\r
+\r
+                       if ( id ) {\r
+                               data = cache[ id ];\r
+\r
+                               if ( data && data.events ) {\r
+                                       for ( var type in data.events ) {\r
+                                               if ( special[ type ] ) {\r
+                                                       jQuery.event.remove( elem, type );\r
+\r
+                                               // This is a shortcut to avoid jQuery.event.remove's overhead\r
+                                               } else {\r
+                                                       jQuery.removeEvent( elem, type, data.handle );\r
+                                               }\r
+                                       }\r
+\r
+                                       // Null the DOM reference to avoid IE6/7/8 leak (#7054)\r
+                                       if ( data.handle ) {\r
+                                               data.handle.elem = null;\r
+                                       }\r
+                               }\r
+\r
+                               if ( deleteExpando ) {\r
+                                       delete elem[ jQuery.expando ];\r
+\r
+                               } else if ( elem.removeAttribute ) {\r
+                                       elem.removeAttribute( jQuery.expando );\r
+                               }\r
+\r
+                               delete cache[ id ];\r
+                       }\r
+               }\r
+       }\r
+});\r
+\r
+\r
+\r
+\r
+var ralpha = /alpha\([^)]*\)/i,\r
+       ropacity = /opacity=([^)]*)/,\r
+       // fixed for IE9, see #8346\r
+       rupper = /([A-Z]|^ms)/g,\r
+       rnum = /^[\-+]?(?:\d*\.)?\d+$/i,\r
+       rnumnonpx = /^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,\r
+       rrelNum = /^([\-+])=([\-+.\de]+)/,\r
+       rmargin = /^margin/,\r
+\r
+       cssShow = { position: "absolute", visibility: "hidden", display: "block" },\r
+\r
+       // order is important!\r
+       cssExpand = [ "Top", "Right", "Bottom", "Left" ],\r
+\r
+       curCSS,\r
+\r
+       getComputedStyle,\r
+       currentStyle;\r
+\r
+jQuery.fn.css = function( name, value ) {\r
+       return jQuery.access( this, function( elem, name, value ) {\r
+               return value !== undefined ?\r
+                       jQuery.style( elem, name, value ) :\r
+                       jQuery.css( elem, name );\r
+       }, name, value, arguments.length > 1 );\r
+};\r
+\r
+jQuery.extend({\r
+       // Add in style property hooks for overriding the default\r
+       // behavior of getting and setting a style property\r
+       cssHooks: {\r
+               opacity: {\r
+                       get: function( elem, computed ) {\r
+                               if ( computed ) {\r
+                                       // We should always get a number back from opacity\r
+                                       var ret = curCSS( elem, "opacity" );\r
+                                       return ret === "" ? "1" : ret;\r
+\r
+                               } else {\r
+                                       return elem.style.opacity;\r
+                               }\r
+                       }\r
+               }\r
+       },\r
+\r
+       // Exclude the following css properties to add px\r
+       cssNumber: {\r
+               "fillOpacity": true,\r
+               "fontWeight": true,\r
+               "lineHeight": true,\r
+               "opacity": true,\r
+               "orphans": true,\r
+               "widows": true,\r
+               "zIndex": true,\r
+               "zoom": true\r
+       },\r
+\r
+       // Add in properties whose names you wish to fix before\r
+       // setting or getting the value\r
+       cssProps: {\r
+               // normalize float css property\r
+               "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"\r
+       },\r
+\r
+       // Get and set the style property on a DOM Node\r
+       style: function( elem, name, value, extra ) {\r
+               // Don't set styles on text and comment nodes\r
+               if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {\r
+                       return;\r
+               }\r
+\r
+               // Make sure that we're working with the right name\r
+               var ret, type, origName = jQuery.camelCase( name ),\r
+                       style = elem.style, hooks = jQuery.cssHooks[ origName ];\r
+\r
+               name = jQuery.cssProps[ origName ] || origName;\r
+\r
+               // Check if we're setting a value\r
+               if ( value !== undefined ) {\r
+                       type = typeof value;\r
+\r
+                       // convert relative number strings (+= or -=) to relative numbers. #7345\r
+                       if ( type === "string" && (ret = rrelNum.exec( value )) ) {\r
+                               value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );\r
+                               // Fixes bug #9237\r
+                               type = "number";\r
+                       }\r
+\r
+                       // Make sure that NaN and null values aren't set. See: #7116\r
+                       if ( value == null || type === "number" && isNaN( value ) ) {\r
+                               return;\r
+                       }\r
+\r
+                       // If a number was passed in, add 'px' to the (except for certain CSS properties)\r
+                       if ( type === "number" && !jQuery.cssNumber[ origName ] ) {\r
+                               value += "px";\r
+                       }\r
+\r
+                       // If a hook was provided, use that value, otherwise just set the specified value\r
+                       if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {\r
+                               // Wrapped to prevent IE from throwing errors when 'invalid' values are provided\r
+                               // Fixes bug #5509\r
+                               try {\r
+                                       style[ name ] = value;\r
+                               } catch(e) {}\r
+                       }\r
+\r
+               } else {\r
+                       // If a hook was provided get the non-computed value from there\r
+                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {\r
+                               return ret;\r
+                       }\r
+\r
+                       // Otherwise just get the value from the style object\r
+                       return style[ name ];\r
+               }\r
+       },\r
+\r
+       css: function( elem, name, extra ) {\r
+               var ret, hooks;\r
+\r
+               // Make sure that we're working with the right name\r
+               name = jQuery.camelCase( name );\r
+               hooks = jQuery.cssHooks[ name ];\r
+               name = jQuery.cssProps[ name ] || name;\r
+\r
+               // cssFloat needs a special treatment\r
+               if ( name === "cssFloat" ) {\r
+                       name = "float";\r
+               }\r
+\r
+               // If a hook was provided get the computed value from there\r
+               if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {\r
+                       return ret;\r
+\r
+               // Otherwise, if a way to get the computed value exists, use that\r
+               } else if ( curCSS ) {\r
+                       return curCSS( elem, name );\r
+               }\r
+       },\r
+\r
+       // A method for quickly swapping in/out CSS properties to get correct calculations\r
+       swap: function( elem, options, callback ) {\r
+               var old = {},\r
+                       ret, name;\r
+\r
+               // Remember the old values, and insert the new ones\r
+               for ( name in options ) {\r
+                       old[ name ] = elem.style[ name ];\r
+                       elem.style[ name ] = options[ name ];\r
+               }\r
+\r
+               ret = callback.call( elem );\r
+\r
+               // Revert the old values\r
+               for ( name in options ) {\r
+                       elem.style[ name ] = old[ name ];\r
+               }\r
+\r
+               return ret;\r
+       }\r
+});\r
+\r
+// DEPRECATED in 1.3, Use jQuery.css() instead\r
+jQuery.curCSS = jQuery.css;\r
+\r
+if ( document.defaultView && document.defaultView.getComputedStyle ) {\r
+       getComputedStyle = function( elem, name ) {\r
+               var ret, defaultView, computedStyle, width,\r
+                       style = elem.style;\r
+\r
+               name = name.replace( rupper, "-$1" ).toLowerCase();\r
+\r
+               if ( (defaultView = elem.ownerDocument.defaultView) &&\r
+                               (computedStyle = defaultView.getComputedStyle( elem, null )) ) {\r
+\r
+                       ret = computedStyle.getPropertyValue( name );\r
+                       if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {\r
+                               ret = jQuery.style( elem, name );\r
+                       }\r
+               }\r
+\r
+               // A tribute to the "awesome hack by Dean Edwards"\r
+               // WebKit uses "computed value (percentage if specified)" instead of "used value" for margins\r
+               // which is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values\r
+               if ( !jQuery.support.pixelMargin && computedStyle && rmargin.test( name ) && rnumnonpx.test( ret ) ) {\r
+                       width = style.width;\r
+                       style.width = ret;\r
+                       ret = computedStyle.width;\r
+                       style.width = width;\r
+               }\r
+\r
+               return ret;\r
+       };\r
+}\r
+\r
+if ( document.documentElement.currentStyle ) {\r
+       currentStyle = function( elem, name ) {\r
+               var left, rsLeft, uncomputed,\r
+                       ret = elem.currentStyle && elem.currentStyle[ name ],\r
+                       style = elem.style;\r
+\r
+               // Avoid setting ret to empty string here\r
+               // so we don't default to auto\r
+               if ( ret == null && style && (uncomputed = style[ name ]) ) {\r
+                       ret = uncomputed;\r
+               }\r
+\r
+               // From the awesome hack by Dean Edwards\r
+               // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291\r
+\r
+               // If we're not dealing with a regular pixel number\r
+               // but a number that has a weird ending, we need to convert it to pixels\r
+               if ( rnumnonpx.test( ret ) ) {\r
+\r
+                       // Remember the original values\r
+                       left = style.left;\r
+                       rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;\r
+\r
+                       // Put in the new values to get a computed value out\r
+                       if ( rsLeft ) {\r
+                               elem.runtimeStyle.left = elem.currentStyle.left;\r
+                       }\r
+                       style.left = name === "fontSize" ? "1em" : ret;\r
+                       ret = style.pixelLeft + "px";\r
+\r
+                       // Revert the changed values\r
+                       style.left = left;\r
+                       if ( rsLeft ) {\r
+                               elem.runtimeStyle.left = rsLeft;\r
+                       }\r
+               }\r
+\r
+               return ret === "" ? "auto" : ret;\r
+       };\r
+}\r
+\r
+curCSS = getComputedStyle || currentStyle;\r
+\r
+function getWidthOrHeight( elem, name, extra ) {\r
+\r
+       // Start with offset property\r
+       var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,\r
+               i = name === "width" ? 1 : 0,\r
+               len = 4;\r
+\r
+       if ( val > 0 ) {\r
+               if ( extra !== "border" ) {\r
+                       for ( ; i < len; i += 2 ) {\r
+                               if ( !extra ) {\r
+                                       val -= parseFloat( jQuery.css( elem, "padding" + cssExpand[ i ] ) ) || 0;\r
+                               }\r
+                               if ( extra === "margin" ) {\r
+                                       val += parseFloat( jQuery.css( elem, extra + cssExpand[ i ] ) ) || 0;\r
+                               } else {\r
+                                       val -= parseFloat( jQuery.css( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;\r
+                               }\r
+                       }\r
+               }\r
+\r
+               return val + "px";\r
+       }\r
+\r
+       // Fall back to computed then uncomputed css if necessary\r
+       val = curCSS( elem, name );\r
+       if ( val < 0 || val == null ) {\r
+               val = elem.style[ name ];\r
+       }\r
+\r
+       // Computed unit is not pixels. Stop here and return.\r
+       if ( rnumnonpx.test(val) ) {\r
+               return val;\r
+       }\r
+\r
+       // Normalize "", auto, and prepare for extra\r
+       val = parseFloat( val ) || 0;\r
+\r
+       // Add padding, border, margin\r
+       if ( extra ) {\r
+               for ( ; i < len; i += 2 ) {\r
+                       val += parseFloat( jQuery.css( elem, "padding" + cssExpand[ i ] ) ) || 0;\r
+                       if ( extra !== "padding" ) {\r
+                               val += parseFloat( jQuery.css( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;\r
+                       }\r
+                       if ( extra === "margin" ) {\r
+                               val += parseFloat( jQuery.css( elem, extra + cssExpand[ i ]) ) || 0;\r
+                       }\r
+               }\r
+       }\r
+\r
+       return val + "px";\r
+}\r
+\r
+jQuery.each([ "height", "width" ], function( i, name ) {\r
+       jQuery.cssHooks[ name ] = {\r
+               get: function( elem, computed, extra ) {\r
+                       if ( computed ) {\r
+                               if ( elem.offsetWidth !== 0 ) {\r
+                                       return getWidthOrHeight( elem, name, extra );\r
+                               } else {\r
+                                       return jQuery.swap( elem, cssShow, function() {\r
+                                               return getWidthOrHeight( elem, name, extra );\r
+                                       });\r
+                               }\r
+                       }\r
+               },\r
+\r
+               set: function( elem, value ) {\r
+                       return rnum.test( value ) ?\r
+                               value + "px" :\r
+                               value;\r
+               }\r
+       };\r
+});\r
+\r
+if ( !jQuery.support.opacity ) {\r
+       jQuery.cssHooks.opacity = {\r
+               get: function( elem, computed ) {\r
+                       // IE uses filters for opacity\r
+                       return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?\r
+                               ( parseFloat( RegExp.$1 ) / 100 ) + "" :\r
+                               computed ? "1" : "";\r
+               },\r
+\r
+               set: function( elem, value ) {\r
+                       var style = elem.style,\r
+                               currentStyle = elem.currentStyle,\r
+                               opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",\r
+                               filter = currentStyle && currentStyle.filter || style.filter || "";\r
+\r
+                       // IE has trouble with opacity if it does not have layout\r
+                       // Force it by setting the zoom level\r
+                       style.zoom = 1;\r
+\r
+                       // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652\r
+                       if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {\r
+\r
+                               // Setting style.filter to null, "" & " " still leave "filter:" in the cssText\r
+                               // if "filter:" is present at all, clearType is disabled, we want to avoid this\r
+                               // style.removeAttribute is IE Only, but so apparently is this code path...\r
+                               style.removeAttribute( "filter" );\r
+\r
+                               // if there there is no filter style applied in a css rule, we are done\r
+                               if ( currentStyle && !currentStyle.filter ) {\r
+                                       return;\r
+                               }\r
+                       }\r
+\r
+                       // otherwise, set new filter values\r
+                       style.filter = ralpha.test( filter ) ?\r
+                               filter.replace( ralpha, opacity ) :\r
+                               filter + " " + opacity;\r
+               }\r
+       };\r
+}\r
+\r
+jQuery(function() {\r
+       // This hook cannot be added until DOM ready because the support test\r
+       // for it is not run until after DOM ready\r
+       if ( !jQuery.support.reliableMarginRight ) {\r
+               jQuery.cssHooks.marginRight = {\r
+                       get: function( elem, computed ) {\r
+                               // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right\r
+                               // Work around by temporarily setting element display to inline-block\r
+                               return jQuery.swap( elem, { "display": "inline-block" }, function() {\r
+                                       if ( computed ) {\r
+                                               return curCSS( elem, "margin-right" );\r
+                                       } else {\r
+                                               return elem.style.marginRight;\r
+                                       }\r
+                               });\r
+                       }\r
+               };\r
+       }\r
+});\r
+\r
+if ( jQuery.expr && jQuery.expr.filters ) {\r
+       jQuery.expr.filters.hidden = function( elem ) {\r
+               var width = elem.offsetWidth,\r
+                       height = elem.offsetHeight;\r
+\r
+               return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");\r
+       };\r
+\r
+       jQuery.expr.filters.visible = function( elem ) {\r
+               return !jQuery.expr.filters.hidden( elem );\r
+       };\r
+}\r
+\r
+// These hooks are used by animate to expand properties\r
+jQuery.each({\r
+       margin: "",\r
+       padding: "",\r
+       border: "Width"\r
+}, function( prefix, suffix ) {\r
+\r
+       jQuery.cssHooks[ prefix + suffix ] = {\r
+               expand: function( value ) {\r
+                       var i,\r
+\r
+                               // assumes a single number if not a string\r
+                               parts = typeof value === "string" ? value.split(" ") : [ value ],\r
+                               expanded = {};\r
+\r
+                       for ( i = 0; i < 4; i++ ) {\r
+                               expanded[ prefix + cssExpand[ i ] + suffix ] =\r
+                                       parts[ i ] || parts[ i - 2 ] || parts[ 0 ];\r
+                       }\r
+\r
+                       return expanded;\r
+               }\r
+       };\r
+});\r
+\r
+\r
+\r
+\r
+var r20 = /%20/g,\r
+       rbracket = /\[\]$/,\r
+       rCRLF = /\r?\n/g,\r
+       rhash = /#.*$/,\r
+       rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL\r
+       rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,\r
+       // #7653, #8125, #8152: local protocol detection\r
+       rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,\r
+       rnoContent = /^(?:GET|HEAD)$/,\r
+       rprotocol = /^\/\//,\r
+       rquery = /\?/,\r
+       rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,\r
+       rselectTextarea = /^(?:select|textarea)/i,\r
+       rspacesAjax = /\s+/,\r
+       rts = /([?&])_=[^&]*/,\r
+       rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,\r
+\r
+       // Keep a copy of the old load method\r
+       _load = jQuery.fn.load,\r
+\r
+       /* Prefilters\r
+        * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\r
+        * 2) These are called:\r
+        *    - BEFORE asking for a transport\r
+        *    - AFTER param serialization (s.data is a string if s.processData is true)\r
+        * 3) key is the dataType\r
+        * 4) the catchall symbol "*" can be used\r
+        * 5) execution will start with transport dataType and THEN continue down to "*" if needed\r
+        */\r
+       prefilters = {},\r
+\r
+       /* Transports bindings\r
+        * 1) key is the dataType\r
+        * 2) the catchall symbol "*" can be used\r
+        * 3) selection will start with transport dataType and THEN go to "*" if needed\r
+        */\r
+       transports = {},\r
+\r
+       // Document location\r
+       ajaxLocation,\r
+\r
+       // Document location segments\r
+       ajaxLocParts,\r
+\r
+       // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression\r
+       allTypes = ["*/"] + ["*"];\r
+\r
+// #8138, IE may throw an exception when accessing\r
+// a field from window.location if document.domain has been set\r
+try {\r
+       ajaxLocation = location.href;\r
+} catch( e ) {\r
+       // Use the href attribute of an A element\r
+       // since IE will modify it given document.location\r
+       ajaxLocation = document.createElement( "a" );\r
+       ajaxLocation.href = "";\r
+       ajaxLocation = ajaxLocation.href;\r
+}\r
+\r
+// Segment location into parts\r
+ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];\r
+\r
+// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\r
+function addToPrefiltersOrTransports( structure ) {\r
+\r
+       // dataTypeExpression is optional and defaults to "*"\r
+       return function( dataTypeExpression, func ) {\r
+\r
+               if ( typeof dataTypeExpression !== "string" ) {\r
+                       func = dataTypeExpression;\r
+                       dataTypeExpression = "*";\r
+               }\r
+\r
+               if ( jQuery.isFunction( func ) ) {\r
+                       var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),\r
+                               i = 0,\r
+                               length = dataTypes.length,\r
+                               dataType,\r
+                               list,\r
+                               placeBefore;\r
+\r
+                       // For each dataType in the dataTypeExpression\r
+                       for ( ; i < length; i++ ) {\r
+                               dataType = dataTypes[ i ];\r
+                               // We control if we're asked to add before\r
+                               // any existing element\r
+                               placeBefore = /^\+/.test( dataType );\r
+                               if ( placeBefore ) {\r
+                                       dataType = dataType.substr( 1 ) || "*";\r
+                               }\r
+                               list = structure[ dataType ] = structure[ dataType ] || [];\r
+                               // then we add to the structure accordingly\r
+                               list[ placeBefore ? "unshift" : "push" ]( func );\r
+                       }\r
+               }\r
+       };\r
+}\r
+\r
+// Base inspection function for prefilters and transports\r
+function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,\r
+               dataType /* internal */, inspected /* internal */ ) {\r
+\r
+       dataType = dataType || options.dataTypes[ 0 ];\r
+       inspected = inspected || {};\r
+\r
+       inspected[ dataType ] = true;\r
+\r
+       var list = structure[ dataType ],\r
+               i = 0,\r
+               length = list ? list.length : 0,\r
+               executeOnly = ( structure === prefilters ),\r
+               selection;\r
+\r
+       for ( ; i < length && ( executeOnly || !selection ); i++ ) {\r
+               selection = list[ i ]( options, originalOptions, jqXHR );\r
+               // If we got redirected to another dataType\r
+               // we try there if executing only and not done already\r
+               if ( typeof selection === "string" ) {\r
+                       if ( !executeOnly || inspected[ selection ] ) {\r
+                               selection = undefined;\r
+                       } else {\r
+                               options.dataTypes.unshift( selection );\r
+                               selection = inspectPrefiltersOrTransports(\r
+                                               structure, options, originalOptions, jqXHR, selection, inspected );\r
+                       }\r
+               }\r
+       }\r
+       // If we're only executing or nothing was selected\r
+       // we try the catchall dataType if not done already\r
+       if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {\r
+               selection = inspectPrefiltersOrTransports(\r
+                               structure, options, originalOptions, jqXHR, "*", inspected );\r
+       }\r
+       // unnecessary when only executing (prefilters)\r
+       // but it'll be ignored by the caller in that case\r
+       return selection;\r
+}\r
+\r
+// A special extend for ajax options\r
+// that takes "flat" options (not to be deep extended)\r
+// Fixes #9887\r
+function ajaxExtend( target, src ) {\r
+       var key, deep,\r
+               flatOptions = jQuery.ajaxSettings.flatOptions || {};\r
+       for ( key in src ) {\r
+               if ( src[ key ] !== undefined ) {\r
+                       ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];\r
+               }\r
+       }\r
+       if ( deep ) {\r
+               jQuery.extend( true, target, deep );\r
+       }\r
+}\r
+\r
+jQuery.fn.extend({\r
+       load: function( url, params, callback ) {\r
+               if ( typeof url !== "string" && _load ) {\r
+                       return _load.apply( this, arguments );\r
+\r
+               // Don't do a request if no elements are being requested\r
+               } else if ( !this.length ) {\r
+                       return this;\r
+               }\r
+\r
+               var off = url.indexOf( " " );\r
+               if ( off >= 0 ) {\r
+                       var selector = url.slice( off, url.length );\r
+                       url = url.slice( 0, off );\r
+               }\r
+\r
+               // Default to a GET request\r
+               var type = "GET";\r
+\r
+               // If the second parameter was provided\r
+               if ( params ) {\r
+                       // If it's a function\r
+                       if ( jQuery.isFunction( params ) ) {\r
+                               // We assume that it's the callback\r
+                               callback = params;\r
+                               params = undefined;\r
+\r
+                       // Otherwise, build a param string\r
+                       } else if ( typeof params === "object" ) {\r
+                               params = jQuery.param( params, jQuery.ajaxSettings.traditional );\r
+                               type = "POST";\r
+                       }\r
+               }\r
+\r
+               var self = this;\r
+\r
+               // Request the remote document\r
+               jQuery.ajax({\r
+                       url: url,\r
+                       type: type,\r
+                       dataType: "html",\r
+                       data: params,\r
+                       // Complete callback (responseText is used internally)\r
+                       complete: function( jqXHR, status, responseText ) {\r
+                               // Store the response as specified by the jqXHR object\r
+                               responseText = jqXHR.responseText;\r
+                               // If successful, inject the HTML into all the matched elements\r
+                               if ( jqXHR.isResolved() ) {\r
+                                       // #4825: Get the actual response in case\r
+                                       // a dataFilter is present in ajaxSettings\r
+                                       jqXHR.done(function( r ) {\r
+                                               responseText = r;\r
+                                       });\r
+                                       // See if a selector was specified\r
+                                       self.html( selector ?\r
+                                               // Create a dummy div to hold the results\r
+                                               jQuery("<div>")\r
+                                                       // inject the contents of the document in, removing the scripts\r
+                                                       // to avoid any 'Permission Denied' errors in IE\r
+                                                       .append(responseText.replace(rscript, ""))\r
+\r
+                                                       // Locate the specified elements\r
+                                                       .find(selector) :\r
+\r
+                                               // If not, just inject the full result\r
+                                               responseText );\r
+                               }\r
+\r
+                               if ( callback ) {\r
+                                       self.each( callback, [ responseText, status, jqXHR ] );\r
+                               }\r
+                       }\r
+               });\r
+\r
+               return this;\r
+       },\r
+\r
+       serialize: function() {\r
+               return jQuery.param( this.serializeArray() );\r
+       },\r
+\r
+       serializeArray: function() {\r
+               return this.map(function(){\r
+                       return this.elements ? jQuery.makeArray( this.elements ) : this;\r
+               })\r
+               .filter(function(){\r
+                       return this.name && !this.disabled &&\r
+                               ( this.checked || rselectTextarea.test( this.nodeName ) ||\r
+                                       rinput.test( this.type ) );\r
+               })\r
+               .map(function( i, elem ){\r
+                       var val = jQuery( this ).val();\r
+\r
+                       return val == null ?\r
+                               null :\r
+                               jQuery.isArray( val ) ?\r
+                                       jQuery.map( val, function( val, i ){\r
+                                               return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };\r
+                                       }) :\r
+                                       { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };\r
+               }).get();\r
+       }\r
+});\r
+\r
+// Attach a bunch of functions for handling common AJAX events\r
+jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){\r
+       jQuery.fn[ o ] = function( f ){\r
+               return this.on( o, f );\r
+       };\r
+});\r
+\r
+jQuery.each( [ "get", "post" ], function( i, method ) {\r
+       jQuery[ method ] = function( url, data, callback, type ) {\r
+               // shift arguments if data argument was omitted\r
+               if ( jQuery.isFunction( data ) ) {\r
+                       type = type || callback;\r
+                       callback = data;\r
+                       data = undefined;\r
+               }\r
+\r
+               return jQuery.ajax({\r
+                       type: method,\r
+                       url: url,\r
+                       data: data,\r
+                       success: callback,\r
+                       dataType: type\r
+               });\r
+       };\r
+});\r
+\r
+jQuery.extend({\r
+\r
+       getScript: function( url, callback ) {\r
+               return jQuery.get( url, undefined, callback, "script" );\r
+       },\r
+\r
+       getJSON: function( url, data, callback ) {\r
+               return jQuery.get( url, data, callback, "json" );\r
+       },\r
+\r
+       // Creates a full fledged settings object into target\r
+       // with both ajaxSettings and settings fields.\r
+       // If target is omitted, writes into ajaxSettings.\r
+       ajaxSetup: function( target, settings ) {\r
+               if ( settings ) {\r
+                       // Building a settings object\r
+                       ajaxExtend( target, jQuery.ajaxSettings );\r
+               } else {\r
+                       // Extending ajaxSettings\r
+                       settings = target;\r
+                       target = jQuery.ajaxSettings;\r
+               }\r
+               ajaxExtend( target, settings );\r
+               return target;\r
+       },\r
+\r
+       ajaxSettings: {\r
+               url: ajaxLocation,\r
+               isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),\r
+               global: true,\r
+               type: "GET",\r
+               contentType: "application/x-www-form-urlencoded; charset=UTF-8",\r
+               processData: true,\r
+               async: true,\r
+               /*\r
+               timeout: 0,\r
+               data: null,\r
+               dataType: null,\r
+               username: null,\r
+               password: null,\r
+               cache: null,\r
+               traditional: false,\r
+               headers: {},\r
+               */\r
+\r
+               accepts: {\r
+                       xml: "application/xml, text/xml",\r
+                       html: "text/html",\r
+                       text: "text/plain",\r
+                       json: "application/json, text/javascript",\r
+                       "*": allTypes\r
+               },\r
+\r
+               contents: {\r
+                       xml: /xml/,\r
+                       html: /html/,\r
+                       json: /json/\r
+               },\r
+\r
+               responseFields: {\r
+                       xml: "responseXML",\r
+                       text: "responseText"\r
+               },\r
+\r
+               // List of data converters\r
+               // 1) key format is "source_type destination_type" (a single space in-between)\r
+               // 2) the catchall symbol "*" can be used for source_type\r
+               converters: {\r
+\r
+                       // Convert anything to text\r
+                       "* text": window.String,\r
+\r
+                       // Text to html (true = no transformation)\r
+                       "text html": true,\r
+\r
+                       // Evaluate text as a json expression\r
+                       "text json": jQuery.parseJSON,\r
+\r
+                       // Parse text as xml\r
+                       "text xml": jQuery.parseXML\r
+               },\r
+\r
+               // For options that shouldn't be deep extended:\r
+               // you can add your own custom options here if\r
+               // and when you create one that shouldn't be\r
+               // deep extended (see ajaxExtend)\r
+               flatOptions: {\r
+                       context: true,\r
+                       url: true\r
+               }\r
+       },\r
+\r
+       ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),\r
+       ajaxTransport: addToPrefiltersOrTransports( transports ),\r
+\r
+       // Main method\r
+       ajax: function( url, options ) {\r
+\r
+               // If url is an object, simulate pre-1.5 signature\r
+               if ( typeof url === "object" ) {\r
+                       options = url;\r
+                       url = undefined;\r
+               }\r
+\r
+               // Force options to be an object\r
+               options = options || {};\r
+\r
+               var // Create the final options object\r
+                       s = jQuery.ajaxSetup( {}, options ),\r
+                       // Callbacks context\r
+                       callbackContext = s.context || s,\r
+                       // Context for global events\r
+                       // It's the callbackContext if one was provided in the options\r
+                       // and if it's a DOM node or a jQuery collection\r
+                       globalEventContext = callbackContext !== s &&\r
+                               ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?\r
+                                               jQuery( callbackContext ) : jQuery.event,\r
+                       // Deferreds\r
+                       deferred = jQuery.Deferred(),\r
+                       completeDeferred = jQuery.Callbacks( "once memory" ),\r
+                       // Status-dependent callbacks\r
+                       statusCode = s.statusCode || {},\r
+                       // ifModified key\r
+                       ifModifiedKey,\r
+                       // Headers (they are sent all at once)\r
+                       requestHeaders = {},\r
+                       requestHeadersNames = {},\r
+                       // Response headers\r
+                       responseHeadersString,\r
+                       responseHeaders,\r
+                       // transport\r
+                       transport,\r
+                       // timeout handle\r
+                       timeoutTimer,\r
+                       // Cross-domain detection vars\r
+                       parts,\r
+                       // The jqXHR state\r
+                       state = 0,\r
+                       // To know if global events are to be dispatched\r
+                       fireGlobals,\r
+                       // Loop variable\r
+                       i,\r
+                       // Fake xhr\r
+                       jqXHR = {\r
+\r
+                               readyState: 0,\r
+\r
+                               // Caches the header\r
+                               setRequestHeader: function( name, value ) {\r
+                                       if ( !state ) {\r
+                                               var lname = name.toLowerCase();\r
+                                               name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;\r
+                                               requestHeaders[ name ] = value;\r
+                                       }\r
+                                       return this;\r
+                               },\r
+\r
+                               // Raw string\r
+                               getAllResponseHeaders: function() {\r
+                                       return state === 2 ? responseHeadersString : null;\r
+                               },\r
+\r
+                               // Builds headers hashtable if needed\r
+                               getResponseHeader: function( key ) {\r
+                                       var match;\r
+                                       if ( state === 2 ) {\r
+                                               if ( !responseHeaders ) {\r
+                                                       responseHeaders = {};\r
+                                                       while( ( match = rheaders.exec( responseHeadersString ) ) ) {\r
+                                                               responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];\r
+                                                       }\r
+                                               }\r
+                                               match = responseHeaders[ key.toLowerCase() ];\r
+                                       }\r
+                                       return match === undefined ? null : match;\r
+                               },\r
+\r
+                               // Overrides response content-type header\r
+                               overrideMimeType: function( type ) {\r
+                                       if ( !state ) {\r
+                                               s.mimeType = type;\r
+                                       }\r
+                                       return this;\r
+                               },\r
+\r
+                               // Cancel the request\r
+                               abort: function( statusText ) {\r
+                                       statusText = statusText || "abort";\r
+                                       if ( transport ) {\r
+                                               transport.abort( statusText );\r
+                                       }\r
+                                       done( 0, statusText );\r
+                                       return this;\r
+                               }\r
+                       };\r
+\r
+               // Callback for when everything is done\r
+               // It is defined here because jslint complains if it is declared\r
+               // at the end of the function (which would be more logical and readable)\r
+               function done( status, nativeStatusText, responses, headers ) {\r
+\r
+                       // Called once\r
+                       if ( state === 2 ) {\r
+                               return;\r
+                       }\r
+\r
+                       // State is "done" now\r
+                       state = 2;\r
+\r
+                       // Clear timeout if it exists\r
+                       if ( timeoutTimer ) {\r
+                               clearTimeout( timeoutTimer );\r
+                       }\r
+\r
+                       // Dereference transport for early garbage collection\r
+                       // (no matter how long the jqXHR object will be used)\r
+                       transport = undefined;\r
+\r
+                       // Cache response headers\r
+                       responseHeadersString = headers || "";\r
+\r
+                       // Set readyState\r
+                       jqXHR.readyState = status > 0 ? 4 : 0;\r
+\r
+                       var isSuccess,\r
+                               success,\r
+                               error,\r
+                               statusText = nativeStatusText,\r
+                               response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,\r
+                               lastModified,\r
+                               etag;\r
+\r
+                       // If successful, handle type chaining\r
+                       if ( status >= 200 && status < 300 || status === 304 ) {\r
+\r
+                               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\r
+                               if ( s.ifModified ) {\r
+\r
+                                       if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {\r
+                                               jQuery.lastModified[ ifModifiedKey ] = lastModified;\r
+                                       }\r
+                                       if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {\r
+                                               jQuery.etag[ ifModifiedKey ] = etag;\r
+                                       }\r
+                               }\r
+\r
+                               // If not modified\r
+                               if ( status === 304 ) {\r
+\r
+                                       statusText = "notmodified";\r
+                                       isSuccess = true;\r
+\r
+                               // If we have data\r
+                               } else {\r
+\r
+                                       try {\r
+                                               success = ajaxConvert( s, response );\r
+                                               statusText = "success";\r
+                                               isSuccess = true;\r
+                                       } catch(e) {\r
+                                               // We have a parsererror\r
+                                               statusText = "parsererror";\r
+                                               error = e;\r
+                                       }\r
+                               }\r
+                       } else {\r
+                               // We extract error from statusText\r
+                               // then normalize statusText and status for non-aborts\r
+                               error = statusText;\r
+                               if ( !statusText || status ) {\r
+                                       statusText = "error";\r
+                                       if ( status < 0 ) {\r
+                                               status = 0;\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       // Set data for the fake xhr object\r
+                       jqXHR.status = status;\r
+                       jqXHR.statusText = "" + ( nativeStatusText || statusText );\r
+\r
+                       // Success/Error\r
+                       if ( isSuccess ) {\r
+                               deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );\r
+                       } else {\r
+                               deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );\r
+                       }\r
+\r
+                       // Status-dependent callbacks\r
+                       jqXHR.statusCode( statusCode );\r
+                       statusCode = undefined;\r
+\r
+                       if ( fireGlobals ) {\r
+                               globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),\r
+                                               [ jqXHR, s, isSuccess ? success : error ] );\r
+                       }\r
+\r
+                       // Complete\r
+                       completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );\r
+\r
+                       if ( fireGlobals ) {\r
+                               globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );\r
+                               // Handle the global AJAX counter\r
+                               if ( !( --jQuery.active ) ) {\r
+                                       jQuery.event.trigger( "ajaxStop" );\r
+                               }\r
+                       }\r
+               }\r
+\r
+               // Attach deferreds\r
+               deferred.promise( jqXHR );\r
+               jqXHR.success = jqXHR.done;\r
+               jqXHR.error = jqXHR.fail;\r
+               jqXHR.complete = completeDeferred.add;\r
+\r
+               // Status-dependent callbacks\r
+               jqXHR.statusCode = function( map ) {\r
+                       if ( map ) {\r
+                               var tmp;\r
+                               if ( state < 2 ) {\r
+                                       for ( tmp in map ) {\r
+                                               statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];\r
+                                       }\r
+                               } else {\r
+                                       tmp = map[ jqXHR.status ];\r
+                                       jqXHR.then( tmp, tmp );\r
+                               }\r
+                       }\r
+                       return this;\r
+               };\r
+\r
+               // Remove hash character (#7531: and string promotion)\r
+               // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)\r
+               // We also use the url parameter if available\r
+               s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );\r
+\r
+               // Extract dataTypes list\r
+               s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );\r
+\r
+               // Determine if a cross-domain request is in order\r
+               if ( s.crossDomain == null ) {\r
+                       parts = rurl.exec( s.url.toLowerCase() );\r
+                       s.crossDomain = !!( parts &&\r
+                               ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||\r
+                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=\r
+                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )\r
+                       );\r
+               }\r
+\r
+               // Convert data if not already a string\r
+               if ( s.data && s.processData && typeof s.data !== "string" ) {\r
+                       s.data = jQuery.param( s.data, s.traditional );\r
+               }\r
+\r
+               // Apply prefilters\r
+               inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );\r
+\r
+               // If request was aborted inside a prefilter, stop there\r
+               if ( state === 2 ) {\r
+                       return false;\r
+               }\r
+\r
+               // We can fire global events as of now if asked to\r
+               fireGlobals = s.global;\r
+\r
+               // Uppercase the type\r
+               s.type = s.type.toUpperCase();\r
+\r
+               // Determine if request has content\r
+               s.hasContent = !rnoContent.test( s.type );\r
+\r
+               // Watch for a new set of requests\r
+               if ( fireGlobals && jQuery.active++ === 0 ) {\r
+                       jQuery.event.trigger( "ajaxStart" );\r
+               }\r
+\r
+               // More options handling for requests with no content\r
+               if ( !s.hasContent ) {\r
+\r
+                       // If data is available, append data to url\r
+                       if ( s.data ) {\r
+                               s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;\r
+                               // #9682: remove data so that it's not used in an eventual retry\r
+                               delete s.data;\r
+                       }\r
+\r
+                       // Get ifModifiedKey before adding the anti-cache parameter\r
+                       ifModifiedKey = s.url;\r
+\r
+                       // Add anti-cache in url if needed\r
+                       if ( s.cache === false ) {\r
+\r
+                               var ts = jQuery.now(),\r
+                                       // try replacing _= if it is there\r
+                                       ret = s.url.replace( rts, "$1_=" + ts );\r
+\r
+                               // if nothing was replaced, add timestamp to the end\r
+                               s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );\r
+                       }\r
+               }\r
+\r
+               // Set the correct header, if data is being sent\r
+               if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {\r
+                       jqXHR.setRequestHeader( "Content-Type", s.contentType );\r
+               }\r
+\r
+               // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\r
+               if ( s.ifModified ) {\r
+                       ifModifiedKey = ifModifiedKey || s.url;\r
+                       if ( jQuery.lastModified[ ifModifiedKey ] ) {\r
+                               jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );\r
+                       }\r
+                       if ( jQuery.etag[ ifModifiedKey ] ) {\r
+                               jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );\r
+                       }\r
+               }\r
+\r
+               // Set the Accepts header for the server, depending on the dataType\r
+               jqXHR.setRequestHeader(\r
+                       "Accept",\r
+                       s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?\r
+                               s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :\r
+                               s.accepts[ "*" ]\r
+               );\r
+\r
+               // Check for headers option\r
+               for ( i in s.headers ) {\r
+                       jqXHR.setRequestHeader( i, s.headers[ i ] );\r
+               }\r
+\r
+               // Allow custom headers/mimetypes and early abort\r
+               if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {\r
+                               // Abort if not done already\r
+                               jqXHR.abort();\r
+                               return false;\r
+\r
+               }\r
+\r
+               // Install callbacks on deferreds\r
+               for ( i in { success: 1, error: 1, complete: 1 } ) {\r
+                       jqXHR[ i ]( s[ i ] );\r
+               }\r
+\r
+               // Get transport\r
+               transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );\r
+\r
+               // If no transport, we auto-abort\r
+               if ( !transport ) {\r
+                       done( -1, "No Transport" );\r
+               } else {\r
+                       jqXHR.readyState = 1;\r
+                       // Send global event\r
+                       if ( fireGlobals ) {\r
+                               globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );\r
+                       }\r
+                       // Timeout\r
+                       if ( s.async && s.timeout > 0 ) {\r
+                               timeoutTimer = setTimeout( function(){\r
+                                       jqXHR.abort( "timeout" );\r
+                               }, s.timeout );\r
+                       }\r
+\r
+                       try {\r
+                               state = 1;\r
+                               transport.send( requestHeaders, done );\r
+                       } catch (e) {\r
+                               // Propagate exception as error if not done\r
+                               if ( state < 2 ) {\r
+                                       done( -1, e );\r
+                               // Simply rethrow otherwise\r
+                               } else {\r
+                                       throw e;\r
+                               }\r
+                       }\r
+               }\r
+\r
+               return jqXHR;\r
+       },\r
+\r
+       // Serialize an array of form elements or a set of\r
+       // key/values into a query string\r
+       param: function( a, traditional ) {\r
+               var s = [],\r
+                       add = function( key, value ) {\r
+                               // If value is a function, invoke it and return its value\r
+                               value = jQuery.isFunction( value ) ? value() : value;\r
+                               s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );\r
+                       };\r
+\r
+               // Set traditional to true for jQuery <= 1.3.2 behavior.\r
+               if ( traditional === undefined ) {\r
+                       traditional = jQuery.ajaxSettings.traditional;\r
+               }\r
+\r
+               // If an array was passed in, assume that it is an array of form elements.\r
+               if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {\r
+                       // Serialize the form elements\r
+                       jQuery.each( a, function() {\r
+                               add( this.name, this.value );\r
+                       });\r
+\r
+               } else {\r
+                       // If traditional, encode the "old" way (the way 1.3.2 or older\r
+                       // did it), otherwise encode params recursively.\r
+                       for ( var prefix in a ) {\r
+                               buildParams( prefix, a[ prefix ], traditional, add );\r
+                       }\r
+               }\r
+\r
+               // Return the resulting serialization\r
+               return s.join( "&" ).replace( r20, "+" );\r
+       }\r
+});\r
+\r
+function buildParams( prefix, obj, traditional, add ) {\r
+       if ( jQuery.isArray( obj ) ) {\r
+               // Serialize array item.\r
+               jQuery.each( obj, function( i, v ) {\r
+                       if ( traditional || rbracket.test( prefix ) ) {\r
+                               // Treat each array item as a scalar.\r
+                               add( prefix, v );\r
+\r
+                       } else {\r
+                               // If array item is non-scalar (array or object), encode its\r
+                               // numeric index to resolve deserialization ambiguity issues.\r
+                               // Note that rack (as of 1.0.0) can't currently deserialize\r
+                               // nested arrays properly, and attempting to do so may cause\r
+                               // a server error. Possible fixes are to modify rack's\r
+                               // deserialization algorithm or to provide an option or flag\r
+                               // to force array serialization to be shallow.\r
+                               buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );\r
+                       }\r
+               });\r
+\r
+       } else if ( !traditional && jQuery.type( obj ) === "object" ) {\r
+               // Serialize object item.\r
+               for ( var name in obj ) {\r
+                       buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );\r
+               }\r
+\r
+       } else {\r
+               // Serialize scalar item.\r
+               add( prefix, obj );\r
+       }\r
+}\r
+\r
+// This is still on the jQuery object... for now\r
+// Want to move this to jQuery.ajax some day\r
+jQuery.extend({\r
+\r
+       // Counter for holding the number of active queries\r
+       active: 0,\r
+\r
+       // Last-Modified header cache for next request\r
+       lastModified: {},\r
+       etag: {}\r
+\r
+});\r
+\r
+/* Handles responses to an ajax request:\r
+ * - sets all responseXXX fields accordingly\r
+ * - finds the right dataType (mediates between content-type and expected dataType)\r
+ * - returns the corresponding response\r
+ */\r
+function ajaxHandleResponses( s, jqXHR, responses ) {\r
+\r
+       var contents = s.contents,\r
+               dataTypes = s.dataTypes,\r
+               responseFields = s.responseFields,\r
+               ct,\r
+               type,\r
+               finalDataType,\r
+               firstDataType;\r
+\r
+       // Fill responseXXX fields\r
+       for ( type in responseFields ) {\r
+               if ( type in responses ) {\r
+                       jqXHR[ responseFields[type] ] = responses[ type ];\r
+               }\r
+       }\r
+\r
+       // Remove auto dataType and get content-type in the process\r
+       while( dataTypes[ 0 ] === "*" ) {\r
+               dataTypes.shift();\r
+               if ( ct === undefined ) {\r
+                       ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );\r
+               }\r
+       }\r
+\r
+       // Check if we're dealing with a known content-type\r
+       if ( ct ) {\r
+               for ( type in contents ) {\r
+                       if ( contents[ type ] && contents[ type ].test( ct ) ) {\r
+                               dataTypes.unshift( type );\r
+                               break;\r
+                       }\r
+               }\r
+       }\r
+\r
+       // Check to see if we have a response for the expected dataType\r
+       if ( dataTypes[ 0 ] in responses ) {\r
+               finalDataType = dataTypes[ 0 ];\r
+       } else {\r
+               // Try convertible dataTypes\r
+               for ( type in responses ) {\r
+                       if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {\r
+                               finalDataType = type;\r
+                               break;\r
+                       }\r
+                       if ( !firstDataType ) {\r
+                               firstDataType = type;\r
+                       }\r
+               }\r
+               // Or just use first one\r
+               finalDataType = finalDataType || firstDataType;\r
+       }\r
+\r
+       // If we found a dataType\r
+       // We add the dataType to the list if needed\r
+       // and return the corresponding response\r
+       if ( finalDataType ) {\r
+               if ( finalDataType !== dataTypes[ 0 ] ) {\r
+                       dataTypes.unshift( finalDataType );\r
+               }\r
+               return responses[ finalDataType ];\r
+       }\r
+}\r
+\r
+// Chain conversions given the request and the original response\r
+function ajaxConvert( s, response ) {\r
+\r
+       // Apply the dataFilter if provided\r
+       if ( s.dataFilter ) {\r
+               response = s.dataFilter( response, s.dataType );\r
+       }\r
+\r
+       var dataTypes = s.dataTypes,\r
+               converters = {},\r
+               i,\r
+               key,\r
+               length = dataTypes.length,\r
+               tmp,\r
+               // Current and previous dataTypes\r
+               current = dataTypes[ 0 ],\r
+               prev,\r
+               // Conversion expression\r
+               conversion,\r
+               // Conversion function\r
+               conv,\r
+               // Conversion functions (transitive conversion)\r
+               conv1,\r
+               conv2;\r
+\r
+       // For each dataType in the chain\r
+       for ( i = 1; i < length; i++ ) {\r
+\r
+               // Create converters map\r
+               // with lowercased keys\r
+               if ( i === 1 ) {\r
+                       for ( key in s.converters ) {\r
+                               if ( typeof key === "string" ) {\r
+                                       converters[ key.toLowerCase() ] = s.converters[ key ];\r
+                               }\r
+                       }\r
+               }\r
+\r
+               // Get the dataTypes\r
+               prev = current;\r
+               current = dataTypes[ i ];\r
+\r
+               // If current is auto dataType, update it to prev\r
+               if ( current === "*" ) {\r
+                       current = prev;\r
+               // If no auto and dataTypes are actually different\r
+               } else if ( prev !== "*" && prev !== current ) {\r
+\r
+                       // Get the converter\r
+                       conversion = prev + " " + current;\r
+                       conv = converters[ conversion ] || converters[ "* " + current ];\r
+\r
+                       // If there is no direct converter, search transitively\r
+                       if ( !conv ) {\r
+                               conv2 = undefined;\r
+                               for ( conv1 in converters ) {\r
+                                       tmp = conv1.split( " " );\r
+                                       if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {\r
+                                               conv2 = converters[ tmp[1] + " " + current ];\r
+                                               if ( conv2 ) {\r
+                                                       conv1 = converters[ conv1 ];\r
+                                                       if ( conv1 === true ) {\r
+                                                               conv = conv2;\r
+                                                       } else if ( conv2 === true ) {\r
+                                                               conv = conv1;\r
+                                                       }\r
+                                                       break;\r
+                                               }\r
+                                       }\r
+                               }\r
+                       }\r
+                       // If we found no converter, dispatch an error\r
+                       if ( !( conv || conv2 ) ) {\r
+                               jQuery.error( "No conversion from " + conversion.replace(" "," to ") );\r
+                       }\r
+                       // If found converter is not an equivalence\r
+                       if ( conv !== true ) {\r
+                               // Convert with 1 or 2 converters accordingly\r
+                               response = conv ? conv( response ) : conv2( conv1(response) );\r
+                       }\r
+               }\r
+       }\r
+       return response;\r
+}\r
+\r
+\r
+\r
+\r
+var jsc = jQuery.now(),\r
+       jsre = /(\=)\?(&|$)|\?\?/i;\r
+\r
+// Default jsonp settings\r
+jQuery.ajaxSetup({\r
+       jsonp: "callback",\r
+       jsonpCallback: function() {\r
+               return jQuery.expando + "_" + ( jsc++ );\r
+       }\r
+});\r
+\r
+// Detect, normalize options and install callbacks for jsonp requests\r
+jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {\r
+\r
+       var inspectData = ( typeof s.data === "string" ) && /^application\/x\-www\-form\-urlencoded/.test( s.contentType );\r
+\r
+       if ( s.dataTypes[ 0 ] === "jsonp" ||\r
+               s.jsonp !== false && ( jsre.test( s.url ) ||\r
+                               inspectData && jsre.test( s.data ) ) ) {\r
+\r
+               var responseContainer,\r
+                       jsonpCallback = s.jsonpCallback =\r
+                               jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,\r
+                       previous = window[ jsonpCallback ],\r
+                       url = s.url,\r
+                       data = s.data,\r
+                       replace = "$1" + jsonpCallback + "$2";\r
+\r
+               if ( s.jsonp !== false ) {\r
+                       url = url.replace( jsre, replace );\r
+                       if ( s.url === url ) {\r
+                               if ( inspectData ) {\r
+                                       data = data.replace( jsre, replace );\r
+                               }\r
+                               if ( s.data === data ) {\r
+                                       // Add callback manually\r
+                                       url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;\r
+                               }\r
+                       }\r
+               }\r
+\r
+               s.url = url;\r
+               s.data = data;\r
+\r
+               // Install callback\r
+               window[ jsonpCallback ] = function( response ) {\r
+                       responseContainer = [ response ];\r
+               };\r
+\r
+               // Clean-up function\r
+               jqXHR.always(function() {\r
+                       // Set callback back to previous value\r
+                       window[ jsonpCallback ] = previous;\r
+                       // Call if it was a function and we have a response\r
+                       if ( responseContainer && jQuery.isFunction( previous ) ) {\r
+                               window[ jsonpCallback ]( responseContainer[ 0 ] );\r
+                       }\r
+               });\r
+\r
+               // Use data converter to retrieve json after script execution\r
+               s.converters["script json"] = function() {\r
+                       if ( !responseContainer ) {\r
+                               jQuery.error( jsonpCallback + " was not called" );\r
+                       }\r
+                       return responseContainer[ 0 ];\r
+               };\r
+\r
+               // force json dataType\r
+               s.dataTypes[ 0 ] = "json";\r
+\r
+               // Delegate to script\r
+               return "script";\r
+       }\r
+});\r
+\r
+\r
+\r
+\r
+// Install script dataType\r
+jQuery.ajaxSetup({\r
+       accepts: {\r
+               script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"\r
+       },\r
+       contents: {\r
+               script: /javascript|ecmascript/\r
+       },\r
+       converters: {\r
+               "text script": function( text ) {\r
+                       jQuery.globalEval( text );\r
+                       return text;\r
+               }\r
+       }\r
+});\r
+\r
+// Handle cache's special case and global\r
+jQuery.ajaxPrefilter( "script", function( s ) {\r
+       if ( s.cache === undefined ) {\r
+               s.cache = false;\r
+       }\r
+       if ( s.crossDomain ) {\r
+               s.type = "GET";\r
+               s.global = false;\r
+       }\r
+});\r
+\r
+// Bind script tag hack transport\r
+jQuery.ajaxTransport( "script", function(s) {\r
+\r
+       // This transport only deals with cross domain requests\r
+       if ( s.crossDomain ) {\r
+\r
+               var script,\r
+                       head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;\r
+\r
+               return {\r
+\r
+                       send: function( _, callback ) {\r
+\r
+                               script = document.createElement( "script" );\r
+\r
+                               script.async = "async";\r
+\r
+                               if ( s.scriptCharset ) {\r
+                                       script.charset = s.scriptCharset;\r
+                               }\r
+\r
+                               script.src = s.url;\r
+\r
+                               // Attach handlers for all browsers\r
+                               script.onload = script.onreadystatechange = function( _, isAbort ) {\r
+\r
+                                       if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {\r
+\r
+                                               // Handle memory leak in IE\r
+                                               script.onload = script.onreadystatechange = null;\r
+\r
+                                               // Remove the script\r
+                                               if ( head && script.parentNode ) {\r
+                                                       head.removeChild( script );\r
+                                               }\r
+\r
+                                               // Dereference the script\r
+                                               script = undefined;\r
+\r
+                                               // Callback if not abort\r
+                                               if ( !isAbort ) {\r
+                                                       callback( 200, "success" );\r
+                                               }\r
+                                       }\r
+                               };\r
+                               // Use insertBefore instead of appendChild  to circumvent an IE6 bug.\r
+                               // This arises when a base node is used (#2709 and #4378).\r
+                               head.insertBefore( script, head.firstChild );\r
+                       },\r
+\r
+                       abort: function() {\r
+                               if ( script ) {\r
+                                       script.onload( 0, 1 );\r
+                               }\r
+                       }\r
+               };\r
+       }\r
+});\r
+\r
+\r
+\r
+\r
+var // #5280: Internet Explorer will keep connections alive if we don't abort on unload\r
+       xhrOnUnloadAbort = window.ActiveXObject ? function() {\r
+               // Abort all pending requests\r
+               for ( var key in xhrCallbacks ) {\r
+                       xhrCallbacks[ key ]( 0, 1 );\r
+               }\r
+       } : false,\r
+       xhrId = 0,\r
+       xhrCallbacks;\r
+\r
+// Functions to create xhrs\r
+function createStandardXHR() {\r
+       try {\r
+               return new window.XMLHttpRequest();\r
+       } catch( e ) {}\r
+}\r
+\r
+function createActiveXHR() {\r
+       try {\r
+               return new window.ActiveXObject( "Microsoft.XMLHTTP" );\r
+       } catch( e ) {}\r
+}\r
+\r
+// Create the request object\r
+// (This is still attached to ajaxSettings for backward compatibility)\r
+jQuery.ajaxSettings.xhr = window.ActiveXObject ?\r
+       /* Microsoft failed to properly\r
+        * implement the XMLHttpRequest in IE7 (can't request local files),\r
+        * so we use the ActiveXObject when it is available\r
+        * Additionally XMLHttpRequest can be disabled in IE7/IE8 so\r
+        * we need a fallback.\r
+        */\r
+       function() {\r
+               return !this.isLocal && createStandardXHR() || createActiveXHR();\r
+       } :\r
+       // For all other browsers, use the standard XMLHttpRequest object\r
+       createStandardXHR;\r
+\r
+// Determine support properties\r
+(function( xhr ) {\r
+       jQuery.extend( jQuery.support, {\r
+               ajax: !!xhr,\r
+               cors: !!xhr && ( "withCredentials" in xhr )\r
+       });\r
+})( jQuery.ajaxSettings.xhr() );\r
+\r
+// Create transport if the browser can provide an xhr\r
+if ( jQuery.support.ajax ) {\r
+\r
+       jQuery.ajaxTransport(function( s ) {\r
+               // Cross domain only allowed if supported through XMLHttpRequest\r
+               if ( !s.crossDomain || jQuery.support.cors ) {\r
+\r
+                       var callback;\r
+\r
+                       return {\r
+                               send: function( headers, complete ) {\r
+\r
+                                       // Get a new xhr\r
+                                       var xhr = s.xhr(),\r
+                                               handle,\r
+                                               i;\r
+\r
+                                       // Open the socket\r
+                                       // Passing null username, generates a login popup on Opera (#2865)\r
+                                       if ( s.username ) {\r
+                                               xhr.open( s.type, s.url, s.async, s.username, s.password );\r
+                                       } else {\r
+                                               xhr.open( s.type, s.url, s.async );\r
+                                       }\r
+\r
+                                       // Apply custom fields if provided\r
+                                       if ( s.xhrFields ) {\r
+                                               for ( i in s.xhrFields ) {\r
+                                                       xhr[ i ] = s.xhrFields[ i ];\r
+                                               }\r
+                                       }\r
+\r
+                                       // Override mime type if needed\r
+                                       if ( s.mimeType && xhr.overrideMimeType ) {\r
+                                               xhr.overrideMimeType( s.mimeType );\r
+                                       }\r
+\r
+                                       // X-Requested-With header\r
+                                       // For cross-domain requests, seeing as conditions for a preflight are\r
+                                       // akin to a jigsaw puzzle, we simply never set it to be sure.\r
+                                       // (it can always be set on a per-request basis or even using ajaxSetup)\r
+                                       // For same-domain requests, won't change header if already provided.\r
+                                       if ( !s.crossDomain && !headers["X-Requested-With"] ) {\r
+                                               headers[ "X-Requested-With" ] = "XMLHttpRequest";\r
+                                       }\r
+\r
+                                       // Need an extra try/catch for cross domain requests in Firefox 3\r
+                                       try {\r
+                                               for ( i in headers ) {\r
+                                                       xhr.setRequestHeader( i, headers[ i ] );\r
+                                               }\r
+                                       } catch( _ ) {}\r
+\r
+                                       // Do send the request\r
+                                       // This may raise an exception which is actually\r
+                                       // handled in jQuery.ajax (so no try/catch here)\r
+                                       xhr.send( ( s.hasContent && s.data ) || null );\r
+\r
+                                       // Listener\r
+                                       callback = function( _, isAbort ) {\r
+\r
+                                               var status,\r
+                                                       statusText,\r
+                                                       responseHeaders,\r
+                                                       responses,\r
+                                                       xml;\r
+\r
+                                               // Firefox throws exceptions when accessing properties\r
+                                               // of an xhr when a network error occured\r
+                                               // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)\r
+                                               try {\r
+\r
+                                                       // Was never called and is aborted or complete\r
+                                                       if ( callback && ( isAbort || xhr.readyState === 4 ) ) {\r
+\r
+                                                               // Only called once\r
+                                                               callback = undefined;\r
+\r
+                                                               // Do not keep as active anymore\r
+                                                               if ( handle ) {\r
+                                                                       xhr.onreadystatechange = jQuery.noop;\r
+                                                                       if ( xhrOnUnloadAbort ) {\r
+                                                                               delete xhrCallbacks[ handle ];\r
+                                                                       }\r
+                                                               }\r
+\r
+                                                               // If it's an abort\r
+                                                               if ( isAbort ) {\r
+                                                                       // Abort it manually if needed\r
+                                                                       if ( xhr.readyState !== 4 ) {\r
+                                                                               xhr.abort();\r
+                                                                       }\r
+                                                               } else {\r
+                                                                       status = xhr.status;\r
+                                                                       responseHeaders = xhr.getAllResponseHeaders();\r
+                                                                       responses = {};\r
+                                                                       xml = xhr.responseXML;\r
+\r
+                                                                       // Construct response list\r
+                                                                       if ( xml && xml.documentElement /* #4958 */ ) {\r
+                                                                               responses.xml = xml;\r
+                                                                       }\r
+\r
+                                                                       // When requesting binary data, IE6-9 will throw an exception\r
+                                                                       // on any attempt to access responseText (#11426)\r
+                                                                       try {\r
+                                                                               responses.text = xhr.responseText;\r
+                                                                       } catch( _ ) {\r
+                                                                       }\r
+\r
+                                                                       // Firefox throws an exception when accessing\r
+                                                                       // statusText for faulty cross-domain requests\r
+                                                                       try {\r
+                                                                               statusText = xhr.statusText;\r
+                                                                       } catch( e ) {\r
+                                                                               // We normalize with Webkit giving an empty statusText\r
+                                                                               statusText = "";\r
+                                                                       }\r
+\r
+                                                                       // Filter status for non standard behaviors\r
+\r
+                                                                       // If the request is local and we have data: assume a success\r
+                                                                       // (success with no data won't get notified, that's the best we\r
+                                                                       // can do given current implementations)\r
+                                                                       if ( !status && s.isLocal && !s.crossDomain ) {\r
+                                                                               status = responses.text ? 200 : 404;\r
+                                                                       // IE - #1450: sometimes returns 1223 when it should be 204\r
+                                                                       } else if ( status === 1223 ) {\r
+                                                                               status = 204;\r
+                                                                       }\r
+                                                               }\r
+                                                       }\r
+                                               } catch( firefoxAccessException ) {\r
+                                                       if ( !isAbort ) {\r
+                                                               complete( -1, firefoxAccessException );\r
+                                                       }\r
+                                               }\r
+\r
+                                               // Call complete if needed\r
+                                               if ( responses ) {\r
+                                                       complete( status, statusText, responses, responseHeaders );\r
+                                               }\r
+                                       };\r
+\r
+                                       // if we're in sync mode or it's in cache\r
+                                       // and has been retrieved directly (IE6 & IE7)\r
+                                       // we need to manually fire the callback\r
+                                       if ( !s.async || xhr.readyState === 4 ) {\r
+                                               callback();\r
+                                       } else {\r
+                                               handle = ++xhrId;\r
+                                               if ( xhrOnUnloadAbort ) {\r
+                                                       // Create the active xhrs callbacks list if needed\r
+                                                       // and attach the unload handler\r
+                                                       if ( !xhrCallbacks ) {\r
+                                                               xhrCallbacks = {};\r
+                                                               jQuery( window ).unload( xhrOnUnloadAbort );\r
+                                                       }\r
+                                                       // Add to list of active xhrs callbacks\r
+                                                       xhrCallbacks[ handle ] = callback;\r
+                                               }\r
+                                               xhr.onreadystatechange = callback;\r
+                                       }\r
+                               },\r
+\r
+                               abort: function() {\r
+                                       if ( callback ) {\r
+                                               callback(0,1);\r
+                                       }\r
+                               }\r
+                       };\r
+               }\r
+       });\r
+}\r
+\r
+\r
+\r
+\r
+var elemdisplay = {},\r
+       iframe, iframeDoc,\r
+       rfxtypes = /^(?:toggle|show|hide)$/,\r
+       rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,\r
+       timerId,\r
+       fxAttrs = [\r
+               // height animations\r
+               [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],\r
+               // width animations\r
+               [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],\r
+               // opacity animations\r
+               [ "opacity" ]\r
+       ],\r
+       fxNow;\r
+\r
+jQuery.fn.extend({\r
+       show: function( speed, easing, callback ) {\r
+               var elem, display;\r
+\r
+               if ( speed || speed === 0 ) {\r
+                       return this.animate( genFx("show", 3), speed, easing, callback );\r
+\r
+               } else {\r
+                       for ( var i = 0, j = this.length; i < j; i++ ) {\r
+                               elem = this[ i ];\r
+\r
+                               if ( elem.style ) {\r
+                                       display = elem.style.display;\r
+\r
+                                       // Reset the inline display of this element to learn if it is\r
+                                       // being hidden by cascaded rules or not\r
+                                       if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {\r
+                                               display = elem.style.display = "";\r
+                                       }\r
+\r
+                                       // Set elements which have been overridden with display: none\r
+                                       // in a stylesheet to whatever the default browser style is\r
+                                       // for such an element\r
+                                       if ( (display === "" && jQuery.css(elem, "display") === "none") ||\r
+                                               !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {\r
+                                               jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       // Set the display of most of the elements in a second loop\r
+                       // to avoid the constant reflow\r
+                       for ( i = 0; i < j; i++ ) {\r
+                               elem = this[ i ];\r
+\r
+                               if ( elem.style ) {\r
+                                       display = elem.style.display;\r
+\r
+                                       if ( display === "" || display === "none" ) {\r
+                                               elem.style.display = jQuery._data( elem, "olddisplay" ) || "";\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       return this;\r
+               }\r
+       },\r
+\r
+       hide: function( speed, easing, callback ) {\r
+               if ( speed || speed === 0 ) {\r
+                       return this.animate( genFx("hide", 3), speed, easing, callback);\r
+\r
+               } else {\r
+                       var elem, display,\r
+                               i = 0,\r
+                               j = this.length;\r
+\r
+                       for ( ; i < j; i++ ) {\r
+                               elem = this[i];\r
+                               if ( elem.style ) {\r
+                                       display = jQuery.css( elem, "display" );\r
+\r
+                                       if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {\r
+                                               jQuery._data( elem, "olddisplay", display );\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       // Set the display of the elements in a second loop\r
+                       // to avoid the constant reflow\r
+                       for ( i = 0; i < j; i++ ) {\r
+                               if ( this[i].style ) {\r
+                                       this[i].style.display = "none";\r
+                               }\r
+                       }\r
+\r
+                       return this;\r
+               }\r
+       },\r
+\r
+       // Save the old toggle function\r
+       _toggle: jQuery.fn.toggle,\r
+\r
+       toggle: function( fn, fn2, callback ) {\r
+               var bool = typeof fn === "boolean";\r
+\r
+               if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {\r
+                       this._toggle.apply( this, arguments );\r
+\r
+               } else if ( fn == null || bool ) {\r
+                       this.each(function() {\r
+                               var state = bool ? fn : jQuery(this).is(":hidden");\r
+                               jQuery(this)[ state ? "show" : "hide" ]();\r
+                       });\r
+\r
+               } else {\r
+                       this.animate(genFx("toggle", 3), fn, fn2, callback);\r
+               }\r
+\r
+               return this;\r
+       },\r
+\r
+       fadeTo: function( speed, to, easing, callback ) {\r
+               return this.filter(":hidden").css("opacity", 0).show().end()\r
+                                       .animate({opacity: to}, speed, easing, callback);\r
+       },\r
+\r
+       animate: function( prop, speed, easing, callback ) {\r
+               var optall = jQuery.speed( speed, easing, callback );\r
+\r
+               if ( jQuery.isEmptyObject( prop ) ) {\r
+                       return this.each( optall.complete, [ false ] );\r
+               }\r
+\r
+               // Do not change referenced properties as per-property easing will be lost\r
+               prop = jQuery.extend( {}, prop );\r
+\r
+               function doAnimation() {\r
+                       // XXX 'this' does not always have a nodeName when running the\r
+                       // test suite\r
+\r
+                       if ( optall.queue === false ) {\r
+                               jQuery._mark( this );\r
+                       }\r
+\r
+                       var opt = jQuery.extend( {}, optall ),\r
+                               isElement = this.nodeType === 1,\r
+                               hidden = isElement && jQuery(this).is(":hidden"),\r
+                               name, val, p, e, hooks, replace,\r
+                               parts, start, end, unit,\r
+                               method;\r
+\r
+                       // will store per property easing and be used to determine when an animation is complete\r
+                       opt.animatedProperties = {};\r
+\r
+                       // first pass over propertys to expand / normalize\r
+                       for ( p in prop ) {\r
+                               name = jQuery.camelCase( p );\r
+                               if ( p !== name ) {\r
+                                       prop[ name ] = prop[ p ];\r
+                                       delete prop[ p ];\r
+                               }\r
+\r
+                               if ( ( hooks = jQuery.cssHooks[ name ] ) && "expand" in hooks ) {\r
+                                       replace = hooks.expand( prop[ name ] );\r
+                                       delete prop[ name ];\r
+\r
+                                       // not quite $.extend, this wont overwrite keys already present.\r
+                                       // also - reusing 'p' from above because we have the correct "name"\r
+                                       for ( p in replace ) {\r
+                                               if ( ! ( p in prop ) ) {\r
+                                                       prop[ p ] = replace[ p ];\r
+                                               }\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       for ( name in prop ) {\r
+                               val = prop[ name ];\r
+                               // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)\r
+                               if ( jQuery.isArray( val ) ) {\r
+                                       opt.animatedProperties[ name ] = val[ 1 ];\r
+                                       val = prop[ name ] = val[ 0 ];\r
+                               } else {\r
+                                       opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';\r
+                               }\r
+\r
+                               if ( val === "hide" && hidden || val === "show" && !hidden ) {\r
+                                       return opt.complete.call( this );\r
+                               }\r
+\r
+                               if ( isElement && ( name === "height" || name === "width" ) ) {\r
+                                       // Make sure that nothing sneaks out\r
+                                       // Record all 3 overflow attributes because IE does not\r
+                                       // change the overflow attribute when overflowX and\r
+                                       // overflowY are set to the same value\r
+                                       opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];\r
+\r
+                                       // Set display property to inline-block for height/width\r
+                                       // animations on inline elements that are having width/height animated\r
+                                       if ( jQuery.css( this, "display" ) === "inline" &&\r
+                                                       jQuery.css( this, "float" ) === "none" ) {\r
+\r
+                                               // inline-level elements accept inline-block;\r
+                                               // block-level elements need to be inline with layout\r
+                                               if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {\r
+                                                       this.style.display = "inline-block";\r
+\r
+                                               } else {\r
+                                                       this.style.zoom = 1;\r
+                                               }\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       if ( opt.overflow != null ) {\r
+                               this.style.overflow = "hidden";\r
+                       }\r
+\r
+                       for ( p in prop ) {\r
+                               e = new jQuery.fx( this, opt, p );\r
+                               val = prop[ p ];\r
+\r
+                               if ( rfxtypes.test( val ) ) {\r
+\r
+                                       // Tracks whether to show or hide based on private\r
+                                       // data attached to the element\r
+                                       method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );\r
+                                       if ( method ) {\r
+                                               jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );\r
+                                               e[ method ]();\r
+                                       } else {\r
+                                               e[ val ]();\r
+                                       }\r
+\r
+                               } else {\r
+                                       parts = rfxnum.exec( val );\r
+                                       start = e.cur();\r
+\r
+                                       if ( parts ) {\r
+                                               end = parseFloat( parts[2] );\r
+                                               unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );\r
+\r
+                                               // We need to compute starting value\r
+                                               if ( unit !== "px" ) {\r
+                                                       jQuery.style( this, p, (end || 1) + unit);\r
+                                                       start = ( (end || 1) / e.cur() ) * start;\r
+                                                       jQuery.style( this, p, start + unit);\r
+                                               }\r
+\r
+                                               // If a +=/-= token was provided, we're doing a relative animation\r
+                                               if ( parts[1] ) {\r
+                                                       end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;\r
+                                               }\r
+\r
+                                               e.custom( start, end, unit );\r
+\r
+                                       } else {\r
+                                               e.custom( start, val, "" );\r
+                                       }\r
+                               }\r
+                       }\r
+\r
+                       // For JS strict compliance\r
+                       return true;\r
+               }\r
+\r
+               return optall.queue === false ?\r
+                       this.each( doAnimation ) :\r
+                       this.queue( optall.queue, doAnimation );\r
+       },\r
+\r
+       stop: function( type, clearQueue, gotoEnd ) {\r
+               if ( typeof type !== "string" ) {\r
+                       gotoEnd = clearQueue;\r
+                       clearQueue = type;\r
+                       type = undefined;\r
+               }\r
+               if ( clearQueue && type !== false ) {\r
+                       this.queue( type || "fx", [] );\r
+               }\r
+\r
+               return this.each(function() {\r
+                       var index,\r
+                               hadTimers = false,\r
+                               timers = jQuery.timers,\r
+                               data = jQuery._data( this );\r
+\r
+                       // clear marker counters if we know they won't be\r
+                       if ( !gotoEnd ) {\r
+                               jQuery._unmark( true, this );\r
+                       }\r
+\r
+                       function stopQueue( elem, data, index ) {\r
+                               var hooks = data[ index ];\r
+                               jQuery.removeData( elem, index, true );\r
+                               hooks.stop( gotoEnd );\r
+                       }\r
+\r
+                       if ( type == null ) {\r
+                               for ( index in data ) {\r
+                                       if ( data[ index ] && data[ index ].stop && index.indexOf(".run") === index.length - 4 ) {\r
+                                               stopQueue( this, data, index );\r
+                                       }\r
+                               }\r
+                       } else if ( data[ index = type + ".run" ] && data[ index ].stop ){\r
+                               stopQueue( this, data, index );\r
+                       }\r
+\r
+                       for ( index = timers.length; index--; ) {\r
+                               if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {\r
+                                       if ( gotoEnd ) {\r
+\r
+                                               // force the next step to be the last\r
+                                               timers[ index ]( true );\r
+                                       } else {\r
+                                               timers[ index ].saveState();\r
+                                       }\r
+                                       hadTimers = true;\r
+                                       timers.splice( index, 1 );\r
+                               }\r
+                       }\r
+\r
+                       // start the next in the queue if the last step wasn't forced\r
+                       // timers currently will call their complete callbacks, which will dequeue\r
+                       // but only if they were gotoEnd\r
+                       if ( !( gotoEnd && hadTimers ) ) {\r
+                               jQuery.dequeue( this, type );\r
+                       }\r
+               });\r
+       }\r
+\r
+});\r
+\r
+// Animations created synchronously will run synchronously\r
+function createFxNow() {\r
+       setTimeout( clearFxNow, 0 );\r
+       return ( fxNow = jQuery.now() );\r
+}\r
+\r
+function clearFxNow() {\r
+       fxNow = undefined;\r
+}\r
+\r
+// Generate parameters to create a standard animation\r
+function genFx( type, num ) {\r
+       var obj = {};\r
+\r
+       jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {\r
+               obj[ this ] = type;\r
+       });\r
+\r
+       return obj;\r
+}\r
+\r
+// Generate shortcuts for custom animations\r
+jQuery.each({\r
+       slideDown: genFx( "show", 1 ),\r
+       slideUp: genFx( "hide", 1 ),\r
+       slideToggle: genFx( "toggle", 1 ),\r
+       fadeIn: { opacity: "show" },\r
+       fadeOut: { opacity: "hide" },\r
+       fadeToggle: { opacity: "toggle" }\r
+}, function( name, props ) {\r
+       jQuery.fn[ name ] = function( speed, easing, callback ) {\r
+               return this.animate( props, speed, easing, callback );\r
+       };\r
+});\r
+\r
+jQuery.extend({\r
+       speed: function( speed, easing, fn ) {\r
+               var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {\r
+                       complete: fn || !fn && easing ||\r
+                               jQuery.isFunction( speed ) && speed,\r
+                       duration: speed,\r
+                       easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing\r
+               };\r
+\r
+               opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :\r
+                       opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;\r
+\r
+               // normalize opt.queue - true/undefined/null -> "fx"\r
+               if ( opt.queue == null || opt.queue === true ) {\r
+                       opt.queue = "fx";\r
+               }\r
+\r
+               // Queueing\r
+               opt.old = opt.complete;\r
+\r
+               opt.complete = function( noUnmark ) {\r
+                       if ( jQuery.isFunction( opt.old ) ) {\r
+                               opt.old.call( this );\r
+                       }\r
+\r
+                       if ( opt.queue ) {\r
+                               jQuery.dequeue( this, opt.queue );\r
+                       } else if ( noUnmark !== false ) {\r
+                               jQuery._unmark( this );\r
+                       }\r
+               };\r
+\r
+               return opt;\r
+       },\r
+\r
+       easing: {\r
+               linear: function( p ) {\r
+                       return p;\r
+               },\r
+               swing: function( p ) {\r
+                       return ( -Math.cos( p*Math.PI ) / 2 ) + 0.5;\r
+               }\r
+       },\r
+\r
+       timers: [],\r
+\r
+       fx: function( elem, options, prop ) {\r
+               this.options = options;\r
+               this.elem = elem;\r
+               this.prop = prop;\r
+\r
+               options.orig = options.orig || {};\r
+       }\r
+\r
+});\r
+\r
+jQuery.fx.prototype = {\r
+       // Simple function for setting a style value\r
+       update: function() {\r
+               if ( this.options.step ) {\r
+                       this.options.step.call( this.elem, this.now, this );\r
+               }\r
+\r
+               ( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );\r
+       },\r
+\r
+       // Get the current size\r
+       cur: function() {\r
+               if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {\r
+                       return this.elem[ this.prop ];\r
+               }\r
+\r
+               var parsed,\r
+                       r = jQuery.css( this.elem, this.prop );\r
+               // Empty strings, null, undefined and "auto" are converted to 0,\r
+               // complex values such as "rotate(1rad)" are returned as is,\r
+               // simple values such as "10px" are parsed to Float.\r
+               return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;\r
+       },\r
+\r
+       // Start an animation from one number to another\r
+       custom: function( from, to, unit ) {\r
+               var self = this,\r
+                       fx = jQuery.fx;\r
+\r
+               this.startTime = fxNow || createFxNow();\r
+               this.end = to;\r
+               this.now = this.start = from;\r
+               this.pos = this.state = 0;\r
+               this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );\r
+\r
+               function t( gotoEnd ) {\r
+                       return self.step( gotoEnd );\r
+               }\r
+\r
+               t.queue = this.options.queue;\r
+               t.elem = this.elem;\r
+               t.saveState = function() {\r
+                       if ( jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {\r
+                               if ( self.options.hide ) {\r
+                                       jQuery._data( self.elem, "fxshow" + self.prop, self.start );\r
+                               } else if ( self.options.show ) {\r
+                                       jQuery._data( self.elem, "fxshow" + self.prop, self.end );\r
+                               }\r
+                       }\r
+               };\r
+\r
+               if ( t() && jQuery.timers.push(t) && !timerId ) {\r
+                       timerId = setInterval( fx.tick, fx.interval );\r
+               }\r
+       },\r
+\r
+       // Simple 'show' function\r
+       show: function() {\r
+               var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );\r
+\r
+               // Remember where we started, so that we can go back to it later\r
+               this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );\r
+               this.options.show = true;\r
+\r
+               // Begin the animation\r
+               // Make sure that we start at a small width/height to avoid any flash of content\r
+               if ( dataShow !== undefined ) {\r
+                       // This show is picking up where a previous hide or show left off\r
+                       this.custom( this.cur(), dataShow );\r
+               } else {\r
+                       this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );\r
+               }\r
+\r
+               // Start by showing the element\r
+               jQuery( this.elem ).show();\r
+       },\r
+\r
+       // Simple 'hide' function\r
+       hide: function() {\r
+               // Remember where we started, so that we can go back to it later\r
+               this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );\r
+               this.options.hide = true;\r
+\r
+               // Begin the animation\r
+               this.custom( this.cur(), 0 );\r
+       },\r
+\r
+       // Each step of an animation\r
+       step: function( gotoEnd ) {\r
+               var p, n, complete,\r
+                       t = fxNow || createFxNow(),\r
+                       done = true,\r
+                       elem = this.elem,\r
+                       options = this.options;\r
+\r
+               if ( gotoEnd || t >= options.duration + this.startTime ) {\r
+                       this.now = this.end;\r
+                       this.pos = this.state = 1;\r
+                       this.update();\r
+\r
+                       options.animatedProperties[ this.prop ] = true;\r
+\r
+                       for ( p in options.animatedProperties ) {\r
+                               if ( options.animatedProperties[ p ] !== true ) {\r
+                                       done = false;\r
+                               }\r
+                       }\r
+\r
+                       if ( done ) {\r
+                               // Reset the overflow\r
+                               if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {\r
+\r
+                                       jQuery.each( [ "", "X", "Y" ], function( index, value ) {\r
+                                               elem.style[ "overflow" + value ] = options.overflow[ index ];\r
+                                       });\r
+                               }\r
+\r
+                               // Hide the element if the "hide" operation was done\r
+                               if ( options.hide ) {\r
+                                       jQuery( elem ).hide();\r
+                               }\r
+\r
+                               // Reset the properties, if the item has been hidden or shown\r
+                               if ( options.hide || options.show ) {\r
+                                       for ( p in options.animatedProperties ) {\r
+                                               jQuery.style( elem, p, options.orig[ p ] );\r
+                                               jQuery.removeData( elem, "fxshow" + p, true );\r
+                                               // Toggle data is no longer needed\r
+                                               jQuery.removeData( elem, "toggle" + p, true );\r
+                                       }\r
+                               }\r
+\r
+                               // Execute the complete function\r
+                               // in the event that the complete function throws an exception\r
+                               // we must ensure it won't be called twice. #5684\r
+\r
+                               complete = options.complete;\r
+                               if ( complete ) {\r
+\r
+                                       options.complete = false;\r
+                                       complete.call( elem );\r
+                               }\r
+                       }\r
+\r
+                       return false;\r
+\r
+               } else {\r
+                       // classical easing cannot be used with an Infinity duration\r
+                       if ( options.duration == Infinity ) {\r
+                               this.now = t;\r
+                       } else {\r
+                               n = t - this.startTime;\r
+                               this.state = n / options.duration;\r
+\r
+                               // Perform the easing function, defaults to swing\r
+                               this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );\r
+                               this.now = this.start + ( (this.end - this.start) * this.pos );\r
+                       }\r
+                       // Perform the next step of the animation\r
+                       this.update();\r
+               }\r
+\r
+               return true;\r
+       }\r
+};\r
+\r
+jQuery.extend( jQuery.fx, {\r
+       tick: function() {\r
+               var timer,\r
+                       timers = jQuery.timers,\r
+                       i = 0;\r
+\r
+               for ( ; i < timers.length; i++ ) {\r
+                       timer = timers[ i ];\r
+                       // Checks the timer has not already been removed\r
+                       if ( !timer() && timers[ i ] === timer ) {\r
+                               timers.splice( i--, 1 );\r
+                       }\r
+               }\r
+\r
+               if ( !timers.length ) {\r
+                       jQuery.fx.stop();\r
+               }\r
+       },\r
+\r
+       interval: 13,\r
+\r
+       stop: function() {\r
+               clearInterval( timerId );\r
+               timerId = null;\r
+       },\r
+\r
+       speeds: {\r
+               slow: 600,\r
+               fast: 200,\r
+               // Default speed\r
+               _default: 400\r
+       },\r
+\r
+       step: {\r
+               opacity: function( fx ) {\r
+                       jQuery.style( fx.elem, "opacity", fx.now );\r
+               },\r
+\r
+               _default: function( fx ) {\r
+                       if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {\r
+                               fx.elem.style[ fx.prop ] = fx.now + fx.unit;\r
+                       } else {\r
+                               fx.elem[ fx.prop ] = fx.now;\r
+                       }\r
+               }\r
+       }\r
+});\r
+\r
+// Ensure props that can't be negative don't go there on undershoot easing\r
+jQuery.each( fxAttrs.concat.apply( [], fxAttrs ), function( i, prop ) {\r
+       // exclude marginTop, marginLeft, marginBottom and marginRight from this list\r
+       if ( prop.indexOf( "margin" ) ) {\r
+               jQuery.fx.step[ prop ] = function( fx ) {\r
+                       jQuery.style( fx.elem, prop, Math.max(0, fx.now) + fx.unit );\r
+               };\r
+       }\r
+});\r
+\r
+if ( jQuery.expr && jQuery.expr.filters ) {\r
+       jQuery.expr.filters.animated = function( elem ) {\r
+               return jQuery.grep(jQuery.timers, function( fn ) {\r
+                       return elem === fn.elem;\r
+               }).length;\r
+       };\r
+}\r
+\r
+// Try to restore the default display value of an element\r
+function defaultDisplay( nodeName ) {\r
+\r
+       if ( !elemdisplay[ nodeName ] ) {\r
+\r
+               var body = document.body,\r
+                       elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),\r
+                       display = elem.css( "display" );\r
+               elem.remove();\r
+\r
+               // If the simple way fails,\r
+               // get element's real default display by attaching it to a temp iframe\r
+               if ( display === "none" || display === "" ) {\r
+                       // No iframe to use yet, so create it\r
+                       if ( !iframe ) {\r
+                               iframe = document.createElement( "iframe" );\r
+                               iframe.frameBorder = iframe.width = iframe.height = 0;\r
+                       }\r
+\r
+                       body.appendChild( iframe );\r
+\r
+                       // Create a cacheable copy of the iframe document on first call.\r
+                       // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML\r
+                       // document to it; WebKit & Firefox won't allow reusing the iframe document.\r
+                       if ( !iframeDoc || !iframe.createElement ) {\r
+                               iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;\r
+                               iframeDoc.write( ( jQuery.support.boxModel ? "<!doctype html>" : "" ) + "<html><body>" );\r
+                               iframeDoc.close();\r
+                       }\r
+\r
+                       elem = iframeDoc.createElement( nodeName );\r
+\r
+                       iframeDoc.body.appendChild( elem );\r
+\r
+                       display = jQuery.css( elem, "display" );\r
+                       body.removeChild( iframe );\r
+               }\r
+\r
+               // Store the correct default display\r
+               elemdisplay[ nodeName ] = display;\r
+       }\r
+\r
+       return elemdisplay[ nodeName ];\r
+}\r
+\r
+\r
+\r
+\r
+var getOffset,\r
+       rtable = /^t(?:able|d|h)$/i,\r
+       rroot = /^(?:body|html)$/i;\r
+\r
+if ( "getBoundingClientRect" in document.documentElement ) {\r
+       getOffset = function( elem, doc, docElem, box ) {\r
+               try {\r
+                       box = elem.getBoundingClientRect();\r
+               } catch(e) {}\r
+\r
+               // Make sure we're not dealing with a disconnected DOM node\r
+               if ( !box || !jQuery.contains( docElem, elem ) ) {\r
+                       return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };\r
+               }\r
+\r
+               var body = doc.body,\r
+                       win = getWindow( doc ),\r
+                       clientTop  = docElem.clientTop  || body.clientTop  || 0,\r
+                       clientLeft = docElem.clientLeft || body.clientLeft || 0,\r
+                       scrollTop  = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop  || body.scrollTop,\r
+                       scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,\r
+                       top  = box.top  + scrollTop  - clientTop,\r
+                       left = box.left + scrollLeft - clientLeft;\r
+\r
+               return { top: top, left: left };\r
+       };\r
+\r
+} else {\r
+       getOffset = function( elem, doc, docElem ) {\r
+               var computedStyle,\r
+                       offsetParent = elem.offsetParent,\r
+                       prevOffsetParent = elem,\r
+                       body = doc.body,\r
+                       defaultView = doc.defaultView,\r
+                       prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,\r
+                       top = elem.offsetTop,\r
+                       left = elem.offsetLeft;\r
+\r
+               while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {\r
+                       if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {\r
+                               break;\r
+                       }\r
+\r
+                       computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;\r
+                       top  -= elem.scrollTop;\r
+                       left -= elem.scrollLeft;\r
+\r
+                       if ( elem === offsetParent ) {\r
+                               top  += elem.offsetTop;\r
+                               left += elem.offsetLeft;\r
+\r
+                               if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {\r
+                                       top  += parseFloat( computedStyle.borderTopWidth  ) || 0;\r
+                                       left += parseFloat( computedStyle.borderLeftWidth ) || 0;\r
+                               }\r
+\r
+                               prevOffsetParent = offsetParent;\r
+                               offsetParent = elem.offsetParent;\r
+                       }\r
+\r
+                       if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {\r
+                               top  += parseFloat( computedStyle.borderTopWidth  ) || 0;\r
+                               left += parseFloat( computedStyle.borderLeftWidth ) || 0;\r
+                       }\r
+\r
+                       prevComputedStyle = computedStyle;\r
+               }\r
+\r
+               if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {\r
+                       top  += body.offsetTop;\r
+                       left += body.offsetLeft;\r
+               }\r
+\r
+               if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {\r
+                       top  += Math.max( docElem.scrollTop, body.scrollTop );\r
+                       left += Math.max( docElem.scrollLeft, body.scrollLeft );\r
+               }\r
+\r
+               return { top: top, left: left };\r
+       };\r
+}\r
+\r
+jQuery.fn.offset = function( options ) {\r
+       if ( arguments.length ) {\r
+               return options === undefined ?\r
+                       this :\r
+                       this.each(function( i ) {\r
+                               jQuery.offset.setOffset( this, options, i );\r
+                       });\r
+       }\r
+\r
+       var elem = this[0],\r
+               doc = elem && elem.ownerDocument;\r
+\r
+       if ( !doc ) {\r
+               return null;\r
+       }\r
+\r
+       if ( elem === doc.body ) {\r
+               return jQuery.offset.bodyOffset( elem );\r
+       }\r
+\r
+       return getOffset( elem, doc, doc.documentElement );\r
+};\r
+\r
+jQuery.offset = {\r
+\r
+       bodyOffset: function( body ) {\r
+               var top = body.offsetTop,\r
+                       left = body.offsetLeft;\r
+\r
+               if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {\r
+                       top  += parseFloat( jQuery.css(body, "marginTop") ) || 0;\r
+                       left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;\r
+               }\r
+\r
+               return { top: top, left: left };\r
+       },\r
+\r
+       setOffset: function( elem, options, i ) {\r
+               var position = jQuery.css( elem, "position" );\r
+\r
+               // set position first, in-case top/left are set even on static elem\r
+               if ( position === "static" ) {\r
+                       elem.style.position = "relative";\r
+               }\r
+\r
+               var curElem = jQuery( elem ),\r
+                       curOffset = curElem.offset(),\r
+                       curCSSTop = jQuery.css( elem, "top" ),\r
+                       curCSSLeft = jQuery.css( elem, "left" ),\r
+                       calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,\r
+                       props = {}, curPosition = {}, curTop, curLeft;\r
+\r
+               // need to be able to calculate position if either top or left is auto and position is either absolute or fixed\r
+               if ( calculatePosition ) {\r
+                       curPosition = curElem.position();\r
+                       curTop = curPosition.top;\r
+                       curLeft = curPosition.left;\r
+               } else {\r
+                       curTop = parseFloat( curCSSTop ) || 0;\r
+                       curLeft = parseFloat( curCSSLeft ) || 0;\r
+               }\r
+\r
+               if ( jQuery.isFunction( options ) ) {\r
+                       options = options.call( elem, i, curOffset );\r
+               }\r
+\r
+               if ( options.top != null ) {\r
+                       props.top = ( options.top - curOffset.top ) + curTop;\r
+               }\r
+               if ( options.left != null ) {\r
+                       props.left = ( options.left - curOffset.left ) + curLeft;\r
+               }\r
+\r
+               if ( "using" in options ) {\r
+                       options.using.call( elem, props );\r
+               } else {\r
+                       curElem.css( props );\r
+               }\r
+       }\r
+};\r
+\r
+\r
+jQuery.fn.extend({\r
+\r
+       position: function() {\r
+               if ( !this[0] ) {\r
+                       return null;\r
+               }\r
+\r
+               var elem = this[0],\r
+\r
+               // Get *real* offsetParent\r
+               offsetParent = this.offsetParent(),\r
+\r
+               // Get correct offsets\r
+               offset       = this.offset(),\r
+               parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();\r
+\r
+               // Subtract element margins\r
+               // note: when an element has margin: auto the offsetLeft and marginLeft\r
+               // are the same in Safari causing offset.left to incorrectly be 0\r
+               offset.top  -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;\r
+               offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;\r
+\r
+               // Add offsetParent borders\r
+               parentOffset.top  += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;\r
+               parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;\r
+\r
+               // Subtract the two offsets\r
+               return {\r
+                       top:  offset.top  - parentOffset.top,\r
+                       left: offset.left - parentOffset.left\r
+               };\r
+       },\r
+\r
+       offsetParent: function() {\r
+               return this.map(function() {\r
+                       var offsetParent = this.offsetParent || document.body;\r
+                       while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {\r
+                               offsetParent = offsetParent.offsetParent;\r
+                       }\r
+                       return offsetParent;\r
+               });\r
+       }\r
+});\r
+\r
+\r
+// Create scrollLeft and scrollTop methods\r
+jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) {\r
+       var top = /Y/.test( prop );\r
+\r
+       jQuery.fn[ method ] = function( val ) {\r
+               return jQuery.access( this, function( elem, method, val ) {\r
+                       var win = getWindow( elem );\r
+\r
+                       if ( val === undefined ) {\r
+                               return win ? (prop in win) ? win[ prop ] :\r
+                                       jQuery.support.boxModel && win.document.documentElement[ method ] ||\r
+                                               win.document.body[ method ] :\r
+                                       elem[ method ];\r
+                       }\r
+\r
+                       if ( win ) {\r
+                               win.scrollTo(\r
+                                       !top ? val : jQuery( win ).scrollLeft(),\r
+                                        top ? val : jQuery( win ).scrollTop()\r
+                               );\r
+\r
+                       } else {\r
+                               elem[ method ] = val;\r
+                       }\r
+               }, method, val, arguments.length, null );\r
+       };\r
+});\r
+\r
+function getWindow( elem ) {\r
+       return jQuery.isWindow( elem ) ?\r
+               elem :\r
+               elem.nodeType === 9 ?\r
+                       elem.defaultView || elem.parentWindow :\r
+                       false;\r
+}\r
+\r
+\r
+\r
+\r
+// Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods\r
+jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {\r
+       var clientProp = "client" + name,\r
+               scrollProp = "scroll" + name,\r
+               offsetProp = "offset" + name;\r
+\r
+       // innerHeight and innerWidth\r
+       jQuery.fn[ "inner" + name ] = function() {\r
+               var elem = this[0];\r
+               return elem ?\r
+                       elem.style ?\r
+                       parseFloat( jQuery.css( elem, type, "padding" ) ) :\r
+                       this[ type ]() :\r
+                       null;\r
+       };\r
+\r
+       // outerHeight and outerWidth\r
+       jQuery.fn[ "outer" + name ] = function( margin ) {\r
+               var elem = this[0];\r
+               return elem ?\r
+                       elem.style ?\r
+                       parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :\r
+                       this[ type ]() :\r
+                       null;\r
+       };\r
+\r
+       jQuery.fn[ type ] = function( value ) {\r
+               return jQuery.access( this, function( elem, type, value ) {\r
+                       var doc, docElemProp, orig, ret;\r
+\r
+                       if ( jQuery.isWindow( elem ) ) {\r
+                               // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat\r
+                               doc = elem.document;\r
+                               docElemProp = doc.documentElement[ clientProp ];\r
+                               return jQuery.support.boxModel && docElemProp ||\r
+                                       doc.body && doc.body[ clientProp ] || docElemProp;\r
+                       }\r
+\r
+                       // Get document width or height\r
+                       if ( elem.nodeType === 9 ) {\r
+                               // Either scroll[Width/Height] or offset[Width/Height], whichever is greater\r
+                               doc = elem.documentElement;\r
+\r
+                               // when a window > document, IE6 reports a offset[Width/Height] > client[Width/Height]\r
+                               // so we can't use max, as it'll choose the incorrect offset[Width/Height]\r
+                               // instead we use the correct client[Width/Height]\r
+                               // support:IE6\r
+                               if ( doc[ clientProp ] >= doc[ scrollProp ] ) {\r
+                                       return doc[ clientProp ];\r
+                               }\r
+\r
+                               return Math.max(\r
+                                       elem.body[ scrollProp ], doc[ scrollProp ],\r
+                                       elem.body[ offsetProp ], doc[ offsetProp ]\r
+                               );\r
+                       }\r
+\r
+                       // Get width or height on the element\r
+                       if ( value === undefined ) {\r
+                               orig = jQuery.css( elem, type );\r
+                               ret = parseFloat( orig );\r
+                               return jQuery.isNumeric( ret ) ? ret : orig;\r
+                       }\r
+\r
+                       // Set the width or height on the element\r
+                       jQuery( elem ).css( type, value );\r
+               }, type, value, arguments.length, null );\r
+       };\r
+});\r
+\r
+\r
+\r
+\r
+// Expose jQuery to the global object\r
+window.jQuery = window.$ = jQuery;\r
+\r
+// Expose jQuery as an AMD module, but only for AMD loaders that\r
+// understand the issues with loading multiple versions of jQuery\r
+// in a page that all might call define(). The loader will indicate\r
+// they have special allowances for multiple jQuery versions by\r
+// specifying define.amd.jQuery = true. Register as a named module,\r
+// since jQuery can be concatenated with other files that may use define,\r
+// but not use a proper concatenation script that understands anonymous\r
+// AMD modules. A named AMD is safest and most robust way to register.\r
+// Lowercase jquery is used because AMD module names are derived from\r
+// file names, and jQuery is normally delivered in a lowercase file name.\r
+// Do this after creating the global so that if an AMD module wants to call\r
+// noConflict to hide this version of jQuery, it will work.\r
+if ( typeof define === "function" && define.amd && define.amd.jQuery ) {\r
+       define( "jquery", [], function () { return jQuery; } );\r
+}\r
+\r
+\r
+\r
+})( window );
\ No newline at end of file
diff --git a/js/jquery-1.7.2.min.js b/js/jquery-1.7.2.min.js
new file mode 100644 (file)
index 0000000..45bb4fc
--- /dev/null
@@ -0,0 +1,4 @@
+/*! jQuery v1.7.2 jquery.com | jquery.org/license */\r
+(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function ca(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function b_(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bD.test(a)?d(a,e):b_(a+"["+(typeof e=="object"?b:"")+"]",e,c,d)});else if(!c&&f.type(b)==="object")for(var e in b)b_(a+"["+e+"]",b[e],c,d);else d(a,b)}function b$(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function bZ(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bS,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bZ(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bZ(a,c,d,e,"*",g));return l}function bY(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bO),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bB(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?1:0,g=4;if(d>0){if(c!=="border")for(;e<g;e+=2)c||(d-=parseFloat(f.css(a,"padding"+bx[e]))||0),c==="margin"?d+=parseFloat(f.css(a,c+bx[e]))||0:d-=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0;return d+"px"}d=by(a,b);if(d<0||d==null)d=a.style[b];if(bt.test(d))return d;d=parseFloat(d)||0;if(c)for(;e<g;e+=2)d+=parseFloat(f.css(a,"padding"+bx[e]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+bx[e]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+bx[e]))||0);return d+"px"}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;b.nodeType===1&&(b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase(),c==="object"?b.outerHTML=a.outerHTML:c!=="input"||a.type!=="checkbox"&&a.type!=="radio"?c==="option"?b.selected=a.defaultSelected:c==="input"||c==="textarea"?b.defaultValue=a.defaultValue:c==="script"&&b.text!==a.text&&(b.text=a.text):(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)),b.removeAttribute(f.expando),b.removeAttribute("_submit_attached"),b.removeAttribute("_change_attached"))}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i)for(d=0,e=i[c].length;d<e;d++)f.event.add(b,c,i[c][d])}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}function T(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++)b[a[c]]=!0;return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c)return null;var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H)return H.call(b,a,c);d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h,i){var j,k=d==null,l=0,m=a.length;if(d&&typeof d=="object"){for(l in d)e.access(a,c,l,d[l],1,h,f);g=1}else if(f!==b){j=i===b&&e.isFunction(f),k&&(j?(j=c,c=function(a,b,c){return j.call(e(a),c)}):(c.call(a,f),c=null));if(c)for(;l<m;l++)c(a[l],d,j?f.call(a[l],l,c(a[l],d)):f,i);g=1}return g?a:k?c.call(a):m?c(a[0],d):h},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m,n=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++)g=b[d],h=f.type(g),h==="array"?n(g):h==="function"&&(!a.unique||!p.has(g))&&c.push(g)},o=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,j=!0,m=k||0,k=0,l=c.length;for(;c&&m<l;m++)if(c[m].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}j=!1,c&&(a.once?e===!0?p.disable():c=[]:d&&d.length&&(e=d.shift(),p.fireWith(e[0],e[1])))},p={add:function(){if(c){var a=c.length;n(arguments),j?l=c.length:e&&e!==!0&&(k=a,o(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++)for(var f=0;f<c.length;f++)if(b[d]===c[f]){j&&f<=l&&(l--,f<=m&&m--),c.splice(f--,1);if(a.unique)break}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++)if(a===c[b])return!0}return!1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return!c},lock:function(){d=b,(!e||e===!0)&&p.disable();return this},locked:function(){return!d},fireWith:function(b,c){d&&(j?a.once||d.push([b,c]):(!a.once||!e)&&o(b,c));return this},fire:function(){p.fireWith(this,arguments);return this},fired:function(){return!!i}};return p};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null)a=h;else for(var b in h)a[b]=h[b];return a}},i=h.promise({}),j;for(j in g)i[j]=g[j].fire,i[j+"With"]=g[j].fireWith;i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g;g||j.resolveWith(j,b)}else j!==a&&j.resolveWith(j,d?[a]:[]);return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p=c.createElement("div"),q=c.documentElement;p.setAttribute("className","t"),p.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent)for(n in{submit:1,change:1,focusin:1})m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o;j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="<div "+n+"display:block;'><div style='"+t+"0;display:block;overflow:hidden;'></div></div>"+"<table "+n+"' cellpadding='0' cellspacing='0'>"+"<tr><td></td></tr></table>",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="<table><tr><td style='"+t+"0;display:none'></td><td>t</td></tr></table>",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="<div style='width:5px;'></div>",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++)delete d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d,e,g,h,i,j=this[0],k=0,m=null;if(a===b){if(this.length){m=f.data(j);if(j.nodeType===1&&!f._data(j,"parsedAttrs")){g=j.attributes;for(i=g.length;k<i;k++)h=g[k].name,h.indexOf("data-")===0&&(h=f.camelCase(h.substring(5)),l(j,h,m[h]));f._data(j,"parsedAttrs",!0)}}return m}if(typeof a=="object")return this.each(function(){f.data(this,a)});d=a.split(".",2),d[1]=d[1]?"."+d[1]:"",e=d[1]+"!";return f.access(this,function(c){if(c===b){m=this.triggerHandler("getData"+e,[d[0]]),m===b&&j&&(m=f.data(j,a),m=l(j,a,m));return m===b&&d[1]?this.data(d[0]):m}d[1]=c,this.each(function(){var b=f(this);b.triggerHandler("setData"+e,d),f.data(this,a,c),b.triggerHandler("changeData"+e,d)})},null,c,arguments.length>1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length<d)return f.queue(this[0],a);return c===b?this:this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0))h++,l.add(m);m();return d.promise(c)}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,f.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return f(i[g]).val();return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i<g;i++)e=d[i],e&&(c=f.propFix[e]||e,h=u.test(e),h||f.attr(a,e,""),a.removeAttribute(v?e:c),h&&c in a&&(a[c]=!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return w.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return w.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set"in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get"in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0,coords:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(\r
+a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:g&&G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1)a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o)f.event.remove(a,j+b[h],c,d,!0);continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++)s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s));r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))return;h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++)m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault();c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=f.event.special[c.type]||{},j=[],k,l,m,n,o,p,q,r,s,t,u;g[0]=c,c.delegateTarget=this;if(!i.preDispatch||i.preDispatch.call(this,c)!==!1){if(e&&(!c.button||c.type!=="click")){n=f(this),n.context=this.ownerDocument||this;for(m=c.target;m!=this;m=m.parentNode||this)if(m.disabled!==!0){p={},r=[],n[0]=m;for(k=0;k<e;k++)s=d[k],t=s.selector,p[t]===b&&(p[t]=s.quick?H(m,s.quick):n.is(t)),p[t]&&r.push(s);r.length&&j.push({elem:m,matches:r})}}d.length>e&&j.push({elem:this,matches:d.slice(e)});for(k=0;k<j.length&&!c.isPropagationStopped();k++){q=j[k],c.currentTarget=q.elem;for(l=0;l<q.matches.length&&!c.isImmediatePropagationStopped();l++){s=q.matches[l];if(h||!c.namespace&&!s.namespace||c.namespace_re&&c.namespace_re.test(s.namespace))c.data=s.data,c.handleObj=s,o=((f.event.special[s.origType]||{}).handle||s.handler).apply(q.elem,g),o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()))}}i.postDispatch&&i.postDispatch.call(this,c);return c.result}},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;)e=i[--d],a[e]=g[e];a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event))return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d))a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b;return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){a._submit_bubble=!0}),d._submit_attached=!0)})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){if(f.nodeName(this,"form"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=d||c,c=b);for(i in a)this.on(i,c,d,a[i],g);return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1)e=J;else if(!e)return this;g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.origType+"."+e.namespace:e.origType,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a)this.off(g,c,a[g]);return this}if(c===!1||typeof c=="function")d=c,c=b;d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else if(m.filter(b,[j]).length>0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter)if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\")continue;s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f)g=i=!0;else if(f===!0)continue}if(f)for(n=0;(j=s[n])!=null;n++)j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0));if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g)return[];break}}if(a===q)if(g==null)m.error(a);else break;q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9||d===11){if(typeof a.textContent=="string")return a.textContent;if(typeof a.innerText=="string")return a.innerText.replace(k,"");for(a=a.firstChild;a;a=a.nextSibling)e+=n(a)}else if(d===3||d===4)return a.nodeValue}else for(b=0;c=a[b];b++)c.nodeType!==8&&(e+=n(c));return e},o=m.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling)if(l.nodeType===1)return!1;if(k==="first")return!0;l=a;case"last":while(l=l.nextSibling)if(l.nodeType===1)return!1;return!0;case"nth":c=b[2],e=b[3];if(c===1&&e===0)return!0;f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling)l.nodeType===1&&(l.nodeIndex=++i);g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c<e;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i)return v(a,b);if(!g)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return v(e[k],f[k]);return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++)m(a,g[h],e,c);return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.globalPOS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++)f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")[\\s/>]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f\r
+.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b)return c.nodeType===1?c.innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(;d<e;d++)c=this[d]||{},c.nodeType===1&&(f.cleanData(c.getElementsByTagName("*")),c.innerHTML=a);c=0}catch(g){}}c&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,function(a,b){b.src?f.ajax({type:"GET",global:!1,url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)})}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l)continue;if(typeof l=="string")if(!_.test(l))l=b.createTextNode(l);else{l=l.replace(Y,"<$1></$2>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--)p=p.lastChild;if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]==="<table>"&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i)f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}var u;if(!f.support.appendChecked)if(l[0]&&typeof (u=l.length)=="number")for(i=0;i<u;i++)bn(l[i]);else bn(l);l.nodeType?j.push(l):j=f.merge(j,l)}if(d){g=function(a){return!a.type||be.test(a.type)};for(k=0;j[k];k++){h=j[k];if(e&&f.nodeName(h,"script")&&(!h.type||be.test(h.type)))e.push(h.parentNode?h.parentNode.removeChild(h):h);else{if(h.nodeType===1){var v=f.grep(h.getElementsByTagName("script"),g);j.splice.apply(j,[k+1,0].concat(v))}d.appendChild(h)}}}return j},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()])continue;c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bp=/alpha\([^)]*\)/i,bq=/opacity=([^)]*)/,br=/([A-Z]|^ms)/g,bs=/^[\-+]?(?:\d*\.)?\d+$/i,bt=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,bu=/^([\-+])=([\-+.\de]+)/,bv=/^margin/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Top","Right","Bottom","Left"],by,bz,bA;f.fn.css=function(a,c){return f.access(this,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)},a,c,arguments.length>1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR)return bR.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bZ(bT,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)b_(g,a[g],c,e);return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg)cg[a](0,1)}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(ct("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),(e===""&&f.css(d,"display")==="none"||!f.contains(d.ownerDocument.documentElement,d))&&f._data(d,"olddisplay",cu(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(ct("hide",3),a,b,c);var d,e,g=0,h=this.length;for(;g<h;g++)d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e));for(g=0;g<h;g++)this[g].style&&(this[g].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(ct("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o,p,q;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]);if((k=f.cssHooks[g])&&"expand"in k){l=k.expand(a[g]),delete a[g];for(i in l)i in a||(a[i]=l[i])}}for(g in a){h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cu(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)j=new f.fx(this,b,i),h=a[i],cm.test(h)?(q=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),q?(f._data(this,"toggle"+i,q==="show"?"hide":"show"),j[q]()):j[h]()):(m=cn.exec(h),n=j.cur(),m?(o=parseFloat(m[2]),p=m[3]||(f.cssNumber[i]?"":"px"),p!=="px"&&(f.style(this,i,(o||1)+p),n=(o||1)/j.cur()*n,f.style(this,i,n+p)),m[1]&&(o=(m[1]==="-="?-1:1)*o+n),j.custom(n,o,p)):j.custom(n,h,""));return!0}var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null)for(b in g)g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b);else g[b=a+".run"]&&g[b].stop&&h(this,g,b);for(b=e.length;b--;)e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:ct("show",1),slideUp:ct("hide",1),slideToggle:ct("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0)d.queue="fx";d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a){return a},swing:function(a){return-Math.cos(a*Math.PI)/2+.5}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cq||cr(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){f._data(e.elem,"fxshow"+e.prop)===b&&(e.options.hide?f._data(e.elem,"fxshow"+e.prop,e.start):e.options.show&&f._data(e.elem,"fxshow"+e.prop,e.end))},h()&&f.timers.push(h)&&!co&&(co=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cq||cr(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++)a=b[c],!a()&&b[c]===a&&b.splice(c--,1);b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(co),co=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(cp.concat.apply([],cp),function(a,b){b.indexOf("margin")&&(f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)})}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cv,cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?cv=function(a,b,c,d){try{d=a.getBoundingClientRect()}catch(e){}if(!d||!f.contains(c,a))return d?{top:d.top,left:d.left}:{top:0,left:0};var g=b.body,h=cy(b),i=c.clientTop||g.clientTop||0,j=c.clientLeft||g.clientLeft||0,k=h.pageYOffset||f.support.boxModel&&c.scrollTop||g.scrollTop,l=h.pageXOffset||f.support.boxModel&&c.scrollLeft||g.scrollLeft,m=d.top+k-i,n=d.left+l-j;return{top:m,left:n}}:cv=function(a,b,c){var d,e=a.offsetParent,g=a,h=b.body,i=b.defaultView,j=i?i.getComputedStyle(a,null):a.currentStyle,k=a.offsetTop,l=a.offsetLeft;while((a=a.parentNode)&&a!==h&&a!==c){if(f.support.fixedPosition&&j.position==="fixed")break;d=i?i.getComputedStyle(a,null):a.currentStyle,k-=a.scrollTop,l-=a.scrollLeft,a===e&&(k+=a.offsetTop,l+=a.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(a.nodeName))&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),g=e,e=a.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"&&(k+=parseFloat(d.borderTopWidth)||0,l+=parseFloat(d.borderLeftWidth)||0),j=d}if(j.position==="relative"||j.position==="static")k+=h.offsetTop,l+=h.offsetLeft;f.support.fixedPosition&&j.position==="fixed"&&(k+=Math.max(c.scrollTop,h.scrollTop),l+=Math.max(c.scrollLeft,h.scrollLeft));return{top:k,left:l}},f.fn.offset=function(a){if(arguments.length)return a===b?this:this.each(function(b){f.offset.setOffset(this,a,b)});var c=this[0],d=c&&c.ownerDocument;if(!d)return null;if(c===d.body)return f.offset.bodyOffset(c);return cv(c,d,d.documentElement)},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b)return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e];h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e])return i[d];return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);
\ No newline at end of file
diff --git a/js/jquery.mobile-1.0.1.js b/js/jquery.mobile-1.0.1.js
deleted file mode 100644 (file)
index c2aea62..0000000
+++ /dev/null
@@ -1,7075 +0,0 @@
-/*
-* jQuery Mobile Framework 1.0.1
-* http://jquerymobile.com
-*
-* Copyright 2011-2012 (c) jQuery Project
-* Dual licensed under the MIT or GPL Version 2 licenses.
-* http://jquery.org/license
-*
-*/
-/*!
- * jQuery UI Widget @VERSION
- *
- * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- * http://jquery.org/license
- *
- * http://docs.jquery.com/UI/Widget
- */
-
-(function( $, undefined ) {
-
-// jQuery 1.4+
-if ( $.cleanData ) {
-       var _cleanData = $.cleanData;
-       $.cleanData = function( elems ) {
-               for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
-                       $( elem ).triggerHandler( "remove" );
-               }
-               _cleanData( elems );
-       };
-} else {
-       var _remove = $.fn.remove;
-       $.fn.remove = function( selector, keepData ) {
-               return this.each(function() {
-                       if ( !keepData ) {
-                               if ( !selector || $.filter( selector, [ this ] ).length ) {
-                                       $( "*", this ).add( [ this ] ).each(function() {
-                                               $( this ).triggerHandler( "remove" );
-                                       });
-                               }
-                       }
-                       return _remove.call( $(this), selector, keepData );
-               });
-       };
-}
-
-$.widget = function( name, base, prototype ) {
-       var namespace = name.split( "." )[ 0 ],
-               fullName;
-       name = name.split( "." )[ 1 ];
-       fullName = namespace + "-" + name;
-
-       if ( !prototype ) {
-               prototype = base;
-               base = $.Widget;
-       }
-
-       // create selector for plugin
-       $.expr[ ":" ][ fullName ] = function( elem ) {
-               return !!$.data( elem, name );
-       };
-
-       $[ namespace ] = $[ namespace ] || {};
-       $[ namespace ][ name ] = function( options, element ) {
-               // allow instantiation without initializing for simple inheritance
-               if ( arguments.length ) {
-                       this._createWidget( options, element );
-               }
-       };
-
-       var basePrototype = new base();
-       // we need to make the options hash a property directly on the new instance
-       // otherwise we'll modify the options hash on the prototype that we're
-       // inheriting from
-//     $.each( basePrototype, function( key, val ) {
-//             if ( $.isPlainObject(val) ) {
-//                     basePrototype[ key ] = $.extend( {}, val );
-//             }
-//     });
-       basePrototype.options = $.extend( true, {}, basePrototype.options );
-       $[ namespace ][ name ].prototype = $.extend( true, basePrototype, {
-               namespace: namespace,
-               widgetName: name,
-               widgetEventPrefix: $[ namespace ][ name ].prototype.widgetEventPrefix || name,
-               widgetBaseClass: fullName
-       }, prototype );
-
-       $.widget.bridge( name, $[ namespace ][ name ] );
-};
-
-$.widget.bridge = function( name, object ) {
-       $.fn[ name ] = function( options ) {
-               var isMethodCall = typeof options === "string",
-                       args = Array.prototype.slice.call( arguments, 1 ),
-                       returnValue = this;
-
-               // allow multiple hashes to be passed on init
-               options = !isMethodCall && args.length ?
-                       $.extend.apply( null, [ true, options ].concat(args) ) :
-                       options;
-
-               // prevent calls to internal methods
-               if ( isMethodCall && options.charAt( 0 ) === "_" ) {
-                       return returnValue;
-               }
-
-               if ( isMethodCall ) {
-                       this.each(function() {
-                               var instance = $.data( this, name );
-                               if ( !instance ) {
-                                       throw "cannot call methods on " + name + " prior to initialization; " +
-                                               "attempted to call method '" + options + "'";
-                               }
-                               if ( !$.isFunction( instance[options] ) ) {
-                                       throw "no such method '" + options + "' for " + name + " widget instance";
-                               }
-                               var methodValue = instance[ options ].apply( instance, args );
-                               if ( methodValue !== instance && methodValue !== undefined ) {
-                                       returnValue = methodValue;
-                                       return false;
-                               }
-                       });
-               } else {
-                       this.each(function() {
-                               var instance = $.data( this, name );
-                               if ( instance ) {
-                                       instance.option( options || {} )._init();
-                               } else {
-                                       $.data( this, name, new object( options, this ) );
-                               }
-                       });
-               }
-
-               return returnValue;
-       };
-};
-
-$.Widget = function( options, element ) {
-       // allow instantiation without initializing for simple inheritance
-       if ( arguments.length ) {
-               this._createWidget( options, element );
-       }
-};
-
-$.Widget.prototype = {
-       widgetName: "widget",
-       widgetEventPrefix: "",
-       options: {
-               disabled: false
-       },
-       _createWidget: function( options, element ) {
-               // $.widget.bridge stores the plugin instance, but we do it anyway
-               // so that it's stored even before the _create function runs
-               $.data( element, this.widgetName, this );
-               this.element = $( element );
-               this.options = $.extend( true, {},
-                       this.options,
-                       this._getCreateOptions(),
-                       options );
-
-               var self = this;
-               this.element.bind( "remove." + this.widgetName, function() {
-                       self.destroy();
-               });
-
-               this._create();
-               this._trigger( "create" );
-               this._init();
-       },
-       _getCreateOptions: function() {
-               var options = {};
-               if ( $.metadata ) {
-                       options = $.metadata.get( element )[ this.widgetName ];
-               }
-               return options;
-       },
-       _create: function() {},
-       _init: function() {},
-
-       destroy: function() {
-               this.element
-                       .unbind( "." + this.widgetName )
-                       .removeData( this.widgetName );
-               this.widget()
-                       .unbind( "." + this.widgetName )
-                       .removeAttr( "aria-disabled" )
-                       .removeClass(
-                               this.widgetBaseClass + "-disabled " +
-                               "ui-state-disabled" );
-       },
-
-       widget: function() {
-               return this.element;
-       },
-
-       option: function( key, value ) {
-               var options = key;
-
-               if ( arguments.length === 0 ) {
-                       // don't return a reference to the internal hash
-                       return $.extend( {}, this.options );
-               }
-
-               if  (typeof key === "string" ) {
-                       if ( value === undefined ) {
-                               return this.options[ key ];
-                       }
-                       options = {};
-                       options[ key ] = value;
-               }
-
-               this._setOptions( options );
-
-               return this;
-       },
-       _setOptions: function( options ) {
-               var self = this;
-               $.each( options, function( key, value ) {
-                       self._setOption( key, value );
-               });
-
-               return this;
-       },
-       _setOption: function( key, value ) {
-               this.options[ key ] = value;
-
-               if ( key === "disabled" ) {
-                       this.widget()
-                               [ value ? "addClass" : "removeClass"](
-                                       this.widgetBaseClass + "-disabled" + " " +
-                                       "ui-state-disabled" )
-                               .attr( "aria-disabled", value );
-               }
-
-               return this;
-       },
-
-       enable: function() {
-               return this._setOption( "disabled", false );
-       },
-       disable: function() {
-               return this._setOption( "disabled", true );
-       },
-
-       _trigger: function( type, event, data ) {
-               var callback = this.options[ type ];
-
-               event = $.Event( event );
-               event.type = ( type === this.widgetEventPrefix ?
-                       type :
-                       this.widgetEventPrefix + type ).toLowerCase();
-               data = data || {};
-
-               // copy original event properties over to the new event
-               // this would happen if we could call $.event.fix instead of $.Event
-               // but we don't have a way to force an event to be fixed multiple times
-               if ( event.originalEvent ) {
-                       for ( var i = $.event.props.length, prop; i; ) {
-                               prop = $.event.props[ --i ];
-                               event[ prop ] = event.originalEvent[ prop ];
-                       }
-               }
-
-               this.element.trigger( event, data );
-
-               return !( $.isFunction(callback) &&
-                       callback.call( this.element[0], event, data ) === false ||
-                       event.isDefaultPrevented() );
-       }
-};
-
-})( jQuery );
-/*
-* widget factory extentions for mobile
-*/
-
-(function( $, undefined ) {
-
-$.widget( "mobile.widget", {
-       // decorate the parent _createWidget to trigger `widgetinit` for users
-       // who wish to do post post `widgetcreate` alterations/additions
-       //
-       // TODO create a pull request for jquery ui to trigger this event
-       // in the original _createWidget
-       _createWidget: function() {
-               $.Widget.prototype._createWidget.apply( this, arguments );
-               this._trigger( 'init' );
-       },
-
-       _getCreateOptions: function() {
-
-               var elem = this.element,
-                       options = {};
-
-               $.each( this.options, function( option ) {
-
-                       var value = elem.jqmData( option.replace( /[A-Z]/g, function( c ) {
-                                                       return "-" + c.toLowerCase();
-                                               })
-                                       );
-
-                       if ( value !== undefined ) {
-                               options[ option ] = value;
-                       }
-               });
-
-               return options;
-       },
-
-       enhanceWithin: function( target ) {
-               // TODO remove dependency on the page widget for the keepNative.
-               // Currently the keepNative value is defined on the page prototype so
-               // the method is as well
-               var page = $.mobile.closestPageData( $(target) ),
-                       keepNative = (page && page.keepNativeSelector()) || "";
-
-               $( this.options.initSelector, target ).not( keepNative )[ this.widgetName ]();
-       }
-});
-
-})( jQuery );
-/*
-* a workaround for window.matchMedia
-*/
-
-(function( $, undefined ) {
-
-var $window = $( window ),
-       $html = $( "html" );
-
-/* $.mobile.media method: pass a CSS media type or query and get a bool return
-       note: this feature relies on actual media query support for media queries, though types will work most anywhere
-       examples:
-               $.mobile.media('screen') //>> tests for screen media type
-               $.mobile.media('screen and (min-width: 480px)') //>> tests for screen media type with window width > 480px
-               $.mobile.media('@media screen and (-webkit-min-device-pixel-ratio: 2)') //>> tests for webkit 2x pixel ratio (iPhone 4)
-*/
-$.mobile.media = (function() {
-       // TODO: use window.matchMedia once at least one UA implements it
-       var cache = {},
-               testDiv = $( "<div id='jquery-mediatest'>" ),
-               fakeBody = $( "<body>" ).append( testDiv );
-
-       return function( query ) {
-               if ( !( query in cache ) ) {
-                       var styleBlock = document.createElement( "style" ),
-                               cssrule = "@media " + query + " { #jquery-mediatest { position:absolute; } }";
-
-                       //must set type for IE!
-                       styleBlock.type = "text/css";
-
-                       if ( styleBlock.styleSheet  ){
-                               styleBlock.styleSheet.cssText = cssrule;
-                       } else {
-                               styleBlock.appendChild( document.createTextNode(cssrule) );
-                       }
-
-                       $html.prepend( fakeBody ).prepend( styleBlock );
-                       cache[ query ] = testDiv.css( "position" ) === "absolute";
-                       fakeBody.add( styleBlock ).remove();
-               }
-               return cache[ query ];
-       };
-})();
-
-})(jQuery);
-/*
-* support tests
-*/
-
-(function( $, undefined ) {
-
-var fakeBody = $( "<body>" ).prependTo( "html" ),
-       fbCSS = fakeBody[ 0 ].style,
-       vendors = [ "Webkit", "Moz", "O" ],
-       webos = "palmGetResource" in window, //only used to rule out scrollTop
-       operamini = window.operamini && ({}).toString.call( window.operamini ) === "[object OperaMini]",
-       bb = window.blackberry; //only used to rule out box shadow, as it's filled opaque on BB
-
-// thx Modernizr
-function propExists( prop ) {
-       var uc_prop = prop.charAt( 0 ).toUpperCase() + prop.substr( 1 ),
-               props = ( prop + " " + vendors.join( uc_prop + " " ) + uc_prop ).split( " " );
-
-       for ( var v in props ){
-               if ( fbCSS[ props[ v ] ] !== undefined ) {
-                       return true;
-               }
-       }
-}
-
-// Test for dynamic-updating base tag support ( allows us to avoid href,src attr rewriting )
-function baseTagTest() {
-       var fauxBase = location.protocol + "//" + location.host + location.pathname + "ui-dir/",
-               base = $( "head base" ),
-               fauxEle = null,
-               href = "",
-               link, rebase;
-
-       if ( !base.length ) {
-               base = fauxEle = $( "<base>", { "href": fauxBase }).appendTo( "head" );
-       } else {
-               href = base.attr( "href" );
-       }
-
-       link = $( "<a href='testurl' />" ).prependTo( fakeBody );
-       rebase = link[ 0 ].href;
-       base[ 0 ].href = href || location.pathname;
-
-       if ( fauxEle ) {
-               fauxEle.remove();
-       }
-       return rebase.indexOf( fauxBase ) === 0;
-}
-
-
-// non-UA-based IE version check by James Padolsey, modified by jdalton - from http://gist.github.com/527683
-// allows for inclusion of IE 6+, including Windows Mobile 7
-$.mobile.browser = {};
-$.mobile.browser.ie = (function() {
-       var v = 3,
-       div = document.createElement( "div" ),
-       a = div.all || [];
-
-       // added {} to silence closure compiler warnings. registering my dislike of all things
-       // overly clever here for future reference
-       while ( div.innerHTML = "<!--[if gt IE " + ( ++v ) + "]><br><![endif]-->", a[ 0 ] ){};
-
-       return v > 4 ? v : !v;
-})();
-
-
-$.extend( $.support, {
-       orientation: "orientation" in window && "onorientationchange" in window,
-       touch: "ontouchend" in document,
-       cssTransitions: "WebKitTransitionEvent" in window,
-       pushState: "pushState" in history && "replaceState" in history,
-       mediaquery: $.mobile.media( "only all" ),
-       cssPseudoElement: !!propExists( "content" ),
-       touchOverflow: !!propExists( "overflowScrolling" ),
-       boxShadow: !!propExists( "boxShadow" ) && !bb,
-       scrollTop: ( "pageXOffset" in window || "scrollTop" in document.documentElement || "scrollTop" in fakeBody[ 0 ] ) && !webos && !operamini,
-       dynamicBaseTag: baseTagTest()
-});
-
-fakeBody.remove();
-
-
-// $.mobile.ajaxBlacklist is used to override ajaxEnabled on platforms that have known conflicts with hash history updates (BB5, Symbian)
-// or that generally work better browsing in regular http for full page refreshes (Opera Mini)
-// Note: This detection below is used as a last resort.
-// We recommend only using these detection methods when all other more reliable/forward-looking approaches are not possible
-var nokiaLTE7_3 = (function(){
-
-       var ua = window.navigator.userAgent;
-
-       //The following is an attempt to match Nokia browsers that are running Symbian/s60, with webkit, version 7.3 or older
-       return ua.indexOf( "Nokia" ) > -1 &&
-                       ( ua.indexOf( "Symbian/3" ) > -1 || ua.indexOf( "Series60/5" ) > -1 ) &&
-                       ua.indexOf( "AppleWebKit" ) > -1 &&
-                       ua.match( /(BrowserNG|NokiaBrowser)\/7\.[0-3]/ );
-})();
-
-$.mobile.ajaxBlacklist =
-                       // BlackBerry browsers, pre-webkit
-                       window.blackberry && !window.WebKitPoint ||
-                       // Opera Mini
-                       operamini ||
-                       // Symbian webkits pre 7.3
-                       nokiaLTE7_3;
-
-// Lastly, this workaround is the only way we've found so far to get pre 7.3 Symbian webkit devices
-// to render the stylesheets when they're referenced before this script, as we'd recommend doing.
-// This simply reappends the CSS in place, which for some reason makes it apply
-if ( nokiaLTE7_3 ) {
-       $(function() {
-               $( "head link[rel='stylesheet']" ).attr( "rel", "alternate stylesheet" ).attr( "rel", "stylesheet" );
-       });
-}
-
-// For ruling out shadows via css
-if ( !$.support.boxShadow ) {
-       $( "html" ).addClass( "ui-mobile-nosupport-boxshadow" );
-}
-
-})( jQuery );
-/*
-* "mouse" plugin
-*/
-
-// This plugin is an experiment for abstracting away the touch and mouse
-// events so that developers don't have to worry about which method of input
-// the device their document is loaded on supports.
-//
-// The idea here is to allow the developer to register listeners for the
-// basic mouse events, such as mousedown, mousemove, mouseup, and click,
-// and the plugin will take care of registering the correct listeners
-// behind the scenes to invoke the listener at the fastest possible time
-// for that device, while still retaining the order of event firing in
-// the traditional mouse environment, should multiple handlers be registered
-// on the same element for different events.
-//
-// The current version exposes the following virtual events to jQuery bind methods:
-// "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel"
-
-(function( $, window, document, undefined ) {
-
-var dataPropertyName = "virtualMouseBindings",
-       touchTargetPropertyName = "virtualTouchID",
-       virtualEventNames = "vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split( " " ),
-       touchEventProps = "clientX clientY pageX pageY screenX screenY".split( " " ),
-       activeDocHandlers = {},
-       resetTimerID = 0,
-       startX = 0,
-       startY = 0,
-       didScroll = false,
-       clickBlockList = [],
-       blockMouseTriggers = false,
-       blockTouchTriggers = false,
-       eventCaptureSupported = "addEventListener" in document,
-       $document = $( document ),
-       nextTouchID = 1,
-       lastTouchID = 0;
-
-$.vmouse = {
-       moveDistanceThreshold: 10,
-       clickDistanceThreshold: 10,
-       resetTimerDuration: 1500
-};
-
-function getNativeEvent( event ) {
-
-       while ( event && typeof event.originalEvent !== "undefined" ) {
-               event = event.originalEvent;
-       }
-       return event;
-}
-
-function createVirtualEvent( event, eventType ) {
-
-       var t = event.type,
-               oe, props, ne, prop, ct, touch, i, j;
-
-       event = $.Event(event);
-       event.type = eventType;
-
-       oe = event.originalEvent;
-       props = $.event.props;
-
-       // copy original event properties over to the new event
-       // this would happen if we could call $.event.fix instead of $.Event
-       // but we don't have a way to force an event to be fixed multiple times
-       if ( oe ) {
-               for ( i = props.length, prop; i; ) {
-                       prop = props[ --i ];
-                       event[ prop ] = oe[ prop ];
-               }
-       }
-
-       // make sure that if the mouse and click virtual events are generated
-       // without a .which one is defined
-       if ( t.search(/mouse(down|up)|click/) > -1 && !event.which ){
-               event.which = 1;
-       }
-
-       if ( t.search(/^touch/) !== -1 ) {
-               ne = getNativeEvent( oe );
-               t = ne.touches;
-               ct = ne.changedTouches;
-               touch = ( t && t.length ) ? t[0] : ( (ct && ct.length) ? ct[ 0 ] : undefined );
-
-               if ( touch ) {
-                       for ( j = 0, len = touchEventProps.length; j < len; j++){
-                               prop = touchEventProps[ j ];
-                               event[ prop ] = touch[ prop ];
-                       }
-               }
-       }
-
-       return event;
-}
-
-function getVirtualBindingFlags( element ) {
-
-       var flags = {},
-               b, k;
-
-       while ( element ) {
-
-               b = $.data( element, dataPropertyName );
-
-               for (  k in b ) {
-                       if ( b[ k ] ) {
-                               flags[ k ] = flags.hasVirtualBinding = true;
-                       }
-               }
-               element = element.parentNode;
-       }
-       return flags;
-}
-
-function getClosestElementWithVirtualBinding( element, eventType ) {
-       var b;
-       while ( element ) {
-
-               b = $.data( element, dataPropertyName );
-
-               if ( b && ( !eventType || b[ eventType ] ) ) {
-                       return element;
-               }
-               element = element.parentNode;
-       }
-       return null;
-}
-
-function enableTouchBindings() {
-       blockTouchTriggers = false;
-}
-
-function disableTouchBindings() {
-       blockTouchTriggers = true;
-}
-
-function enableMouseBindings() {
-       lastTouchID = 0;
-       clickBlockList.length = 0;
-       blockMouseTriggers = false;
-
-       // When mouse bindings are enabled, our
-       // touch bindings are disabled.
-       disableTouchBindings();
-}
-
-function disableMouseBindings() {
-       // When mouse bindings are disabled, our
-       // touch bindings are enabled.
-       enableTouchBindings();
-}
-
-function startResetTimer() {
-       clearResetTimer();
-       resetTimerID = setTimeout(function(){
-               resetTimerID = 0;
-               enableMouseBindings();
-       }, $.vmouse.resetTimerDuration );
-}
-
-function clearResetTimer() {
-       if ( resetTimerID ){
-               clearTimeout( resetTimerID );
-               resetTimerID = 0;
-       }
-}
-
-function triggerVirtualEvent( eventType, event, flags ) {
-       var ve;
-
-       if ( ( flags && flags[ eventType ] ) ||
-                               ( !flags && getClosestElementWithVirtualBinding( event.target, eventType ) ) ) {
-
-               ve = createVirtualEvent( event, eventType );
-
-               $( event.target).trigger( ve );
-       }
-
-       return ve;
-}
-
-function mouseEventCallback( event ) {
-       var touchID = $.data(event.target, touchTargetPropertyName);
-
-       if ( !blockMouseTriggers && ( !lastTouchID || lastTouchID !== touchID ) ){
-               var ve = triggerVirtualEvent( "v" + event.type, event );
-               if ( ve ) {
-                       if ( ve.isDefaultPrevented() ) {
-                               event.preventDefault();
-                       }
-                       if ( ve.isPropagationStopped() ) {
-                               event.stopPropagation();
-                       }
-                       if ( ve.isImmediatePropagationStopped() ) {
-                               event.stopImmediatePropagation();
-                       }
-               }
-       }
-}
-
-function handleTouchStart( event ) {
-
-       var touches = getNativeEvent( event ).touches,
-               target, flags;
-
-       if ( touches && touches.length === 1 ) {
-
-               target = event.target;
-               flags = getVirtualBindingFlags( target );
-
-               if ( flags.hasVirtualBinding ) {
-
-                       lastTouchID = nextTouchID++;
-                       $.data( target, touchTargetPropertyName, lastTouchID );
-
-                       clearResetTimer();
-
-                       disableMouseBindings();
-                       didScroll = false;
-
-                       var t = getNativeEvent( event ).touches[ 0 ];
-                       startX = t.pageX;
-                       startY = t.pageY;
-
-                       triggerVirtualEvent( "vmouseover", event, flags );
-                       triggerVirtualEvent( "vmousedown", event, flags );
-               }
-       }
-}
-
-function handleScroll( event ) {
-       if ( blockTouchTriggers ) {
-               return;
-       }
-
-       if ( !didScroll ) {
-               triggerVirtualEvent( "vmousecancel", event, getVirtualBindingFlags( event.target ) );
-       }
-
-       didScroll = true;
-       startResetTimer();
-}
-
-function handleTouchMove( event ) {
-       if ( blockTouchTriggers ) {
-               return;
-       }
-
-       var t = getNativeEvent( event ).touches[ 0 ],
-               didCancel = didScroll,
-               moveThreshold = $.vmouse.moveDistanceThreshold;
-               didScroll = didScroll ||
-                       ( Math.abs(t.pageX - startX) > moveThreshold ||
-                               Math.abs(t.pageY - startY) > moveThreshold ),
-               flags = getVirtualBindingFlags( event.target );
-
-       if ( didScroll && !didCancel ) {
-               triggerVirtualEvent( "vmousecancel", event, flags );
-       }
-
-       triggerVirtualEvent( "vmousemove", event, flags );
-       startResetTimer();
-}
-
-function handleTouchEnd( event ) {
-       if ( blockTouchTriggers ) {
-               return;
-       }
-
-       disableTouchBindings();
-
-       var flags = getVirtualBindingFlags( event.target ),
-               t;
-       triggerVirtualEvent( "vmouseup", event, flags );
-
-       if ( !didScroll ) {
-               var ve = triggerVirtualEvent( "vclick", event, flags );
-               if ( ve && ve.isDefaultPrevented() ) {
-                       // The target of the mouse events that follow the touchend
-                       // event don't necessarily match the target used during the
-                       // touch. This means we need to rely on coordinates for blocking
-                       // any click that is generated.
-                       t = getNativeEvent( event ).changedTouches[ 0 ];
-                       clickBlockList.push({
-                               touchID: lastTouchID,
-                               x: t.clientX,
-                               y: t.clientY
-                       });
-
-                       // Prevent any mouse events that follow from triggering
-                       // virtual event notifications.
-                       blockMouseTriggers = true;
-               }
-       }
-       triggerVirtualEvent( "vmouseout", event, flags);
-       didScroll = false;
-
-       startResetTimer();
-}
-
-function hasVirtualBindings( ele ) {
-       var bindings = $.data( ele, dataPropertyName ),
-               k;
-
-       if ( bindings ) {
-               for ( k in bindings ) {
-                       if ( bindings[ k ] ) {
-                               return true;
-                       }
-               }
-       }
-       return false;
-}
-
-function dummyMouseHandler(){}
-
-function getSpecialEventObject( eventType ) {
-       var realType = eventType.substr( 1 );
-
-       return {
-               setup: function( data, namespace ) {
-                       // If this is the first virtual mouse binding for this element,
-                       // add a bindings object to its data.
-
-                       if ( !hasVirtualBindings( this ) ) {
-                               $.data( this, dataPropertyName, {});
-                       }
-
-                       // If setup is called, we know it is the first binding for this
-                       // eventType, so initialize the count for the eventType to zero.
-                       var bindings = $.data( this, dataPropertyName );
-                       bindings[ eventType ] = true;
-
-                       // If this is the first virtual mouse event for this type,
-                       // register a global handler on the document.
-
-                       activeDocHandlers[ eventType ] = ( activeDocHandlers[ eventType ] || 0 ) + 1;
-
-                       if ( activeDocHandlers[ eventType ] === 1 ) {
-                               $document.bind( realType, mouseEventCallback );
-                       }
-
-                       // Some browsers, like Opera Mini, won't dispatch mouse/click events
-                       // for elements unless they actually have handlers registered on them.
-                       // To get around this, we register dummy handlers on the elements.
-
-                       $( this ).bind( realType, dummyMouseHandler );
-
-                       // For now, if event capture is not supported, we rely on mouse handlers.
-                       if ( eventCaptureSupported ) {
-                               // If this is the first virtual mouse binding for the document,
-                               // register our touchstart handler on the document.
-
-                               activeDocHandlers[ "touchstart" ] = ( activeDocHandlers[ "touchstart" ] || 0) + 1;
-
-                               if (activeDocHandlers[ "touchstart" ] === 1) {
-                                       $document.bind( "touchstart", handleTouchStart )
-                                               .bind( "touchend", handleTouchEnd )
-
-                                               // On touch platforms, touching the screen and then dragging your finger
-                                               // causes the window content to scroll after some distance threshold is
-                                               // exceeded. On these platforms, a scroll prevents a click event from being
-                                               // dispatched, and on some platforms, even the touchend is suppressed. To
-                                               // mimic the suppression of the click event, we need to watch for a scroll
-                                               // event. Unfortunately, some platforms like iOS don't dispatch scroll
-                                               // events until *AFTER* the user lifts their finger (touchend). This means
-                                               // we need to watch both scroll and touchmove events to figure out whether
-                                               // or not a scroll happenens before the touchend event is fired.
-
-                                               .bind( "touchmove", handleTouchMove )
-                                               .bind( "scroll", handleScroll );
-                               }
-                       }
-               },
-
-               teardown: function( data, namespace ) {
-                       // If this is the last virtual binding for this eventType,
-                       // remove its global handler from the document.
-
-                       --activeDocHandlers[ eventType ];
-
-                       if ( !activeDocHandlers[ eventType ] ) {
-                               $document.unbind( realType, mouseEventCallback );
-                       }
-
-                       if ( eventCaptureSupported ) {
-                               // If this is the last virtual mouse binding in existence,
-                               // remove our document touchstart listener.
-
-                               --activeDocHandlers[ "touchstart" ];
-
-                               if ( !activeDocHandlers[ "touchstart" ] ) {
-                                       $document.unbind( "touchstart", handleTouchStart )
-                                               .unbind( "touchmove", handleTouchMove )
-                                               .unbind( "touchend", handleTouchEnd )
-                                               .unbind( "scroll", handleScroll );
-                               }
-                       }
-
-                       var $this = $( this ),
-                               bindings = $.data( this, dataPropertyName );
-
-                       // teardown may be called when an element was
-                       // removed from the DOM. If this is the case,
-                       // jQuery core may have already stripped the element
-                       // of any data bindings so we need to check it before
-                       // using it.
-                       if ( bindings ) {
-                               bindings[ eventType ] = false;
-                       }
-
-                       // Unregister the dummy event handler.
-
-                       $this.unbind( realType, dummyMouseHandler );
-
-                       // If this is the last virtual mouse binding on the
-                       // element, remove the binding data from the element.
-
-                       if ( !hasVirtualBindings( this ) ) {
-                               $this.removeData( dataPropertyName );
-                       }
-               }
-       };
-}
-
-// Expose our custom events to the jQuery bind/unbind mechanism.
-
-for ( var i = 0; i < virtualEventNames.length; i++ ){
-       $.event.special[ virtualEventNames[ i ] ] = getSpecialEventObject( virtualEventNames[ i ] );
-}
-
-// Add a capture click handler to block clicks.
-// Note that we require event capture support for this so if the device
-// doesn't support it, we punt for now and rely solely on mouse events.
-if ( eventCaptureSupported ) {
-       document.addEventListener( "click", function( e ){
-               var cnt = clickBlockList.length,
-                       target = e.target,
-                       x, y, ele, i, o, touchID;
-
-               if ( cnt ) {
-                       x = e.clientX;
-                       y = e.clientY;
-                       threshold = $.vmouse.clickDistanceThreshold;
-
-                       // The idea here is to run through the clickBlockList to see if
-                       // the current click event is in the proximity of one of our
-                       // vclick events that had preventDefault() called on it. If we find
-                       // one, then we block the click.
-                       //
-                       // Why do we have to rely on proximity?
-                       //
-                       // Because the target of the touch event that triggered the vclick
-                       // can be different from the target of the click event synthesized
-                       // by the browser. The target of a mouse/click event that is syntehsized
-                       // from a touch event seems to be implementation specific. For example,
-                       // some browsers will fire mouse/click events for a link that is near
-                       // a touch event, even though the target of the touchstart/touchend event
-                       // says the user touched outside the link. Also, it seems that with most
-                       // browsers, the target of the mouse/click event is not calculated until the
-                       // time it is dispatched, so if you replace an element that you touched
-                       // with another element, the target of the mouse/click will be the new
-                       // element underneath that point.
-                       //
-                       // Aside from proximity, we also check to see if the target and any
-                       // of its ancestors were the ones that blocked a click. This is necessary
-                       // because of the strange mouse/click target calculation done in the
-                       // Android 2.1 browser, where if you click on an element, and there is a
-                       // mouse/click handler on one of its ancestors, the target will be the
-                       // innermost child of the touched element, even if that child is no where
-                       // near the point of touch.
-
-                       ele = target;
-
-                       while ( ele ) {
-                               for ( i = 0; i < cnt; i++ ) {
-                                       o = clickBlockList[ i ];
-                                       touchID = 0;
-
-                                       if ( ( ele === target && Math.abs( o.x - x ) < threshold && Math.abs( o.y - y ) < threshold ) ||
-                                                               $.data( ele, touchTargetPropertyName ) === o.touchID ) {
-                                               // XXX: We may want to consider removing matches from the block list
-                                               //      instead of waiting for the reset timer to fire.
-                                               e.preventDefault();
-                                               e.stopPropagation();
-                                               return;
-                                       }
-                               }
-                               ele = ele.parentNode;
-                       }
-               }
-       }, true);
-}
-})( jQuery, window, document );
-/* 
-* "events" plugin - Handles events
-*/
-
-(function( $, window, undefined ) {
-
-// add new event shortcuts
-$.each( ( "touchstart touchmove touchend orientationchange throttledresize " +
-                                       "tap taphold swipe swipeleft swiperight scrollstart scrollstop" ).split( " " ), function( i, name ) {
-
-       $.fn[ name ] = function( fn ) {
-               return fn ? this.bind( name, fn ) : this.trigger( name );
-       };
-
-       $.attrFn[ name ] = true;
-});
-
-var supportTouch = $.support.touch,
-       scrollEvent = "touchmove scroll",
-       touchStartEvent = supportTouch ? "touchstart" : "mousedown",
-       touchStopEvent = supportTouch ? "touchend" : "mouseup",
-       touchMoveEvent = supportTouch ? "touchmove" : "mousemove";
-
-function triggerCustomEvent( obj, eventType, event ) {
-       var originalType = event.type;
-       event.type = eventType;
-       $.event.handle.call( obj, event );
-       event.type = originalType;
-}
-
-// also handles scrollstop
-$.event.special.scrollstart = {
-
-       enabled: true,
-
-       setup: function() {
-
-               var thisObject = this,
-                       $this = $( thisObject ),
-                       scrolling,
-                       timer;
-
-               function trigger( event, state ) {
-                       scrolling = state;
-                       triggerCustomEvent( thisObject, scrolling ? "scrollstart" : "scrollstop", event );
-               }
-
-               // iPhone triggers scroll after a small delay; use touchmove instead
-               $this.bind( scrollEvent, function( event ) {
-
-                       if ( !$.event.special.scrollstart.enabled ) {
-                               return;
-                       }
-
-                       if ( !scrolling ) {
-                               trigger( event, true );
-                       }
-
-                       clearTimeout( timer );
-                       timer = setTimeout(function() {
-                               trigger( event, false );
-                       }, 50 );
-               });
-       }
-};
-
-// also handles taphold
-$.event.special.tap = {
-       setup: function() {
-               var thisObject = this,
-                       $this = $( thisObject );
-
-               $this.bind( "vmousedown", function( event ) {
-
-                       if ( event.which && event.which !== 1 ) {
-                               return false;
-                       }
-
-                       var origTarget = event.target,
-                               origEvent = event.originalEvent,
-                               timer;
-
-                       function clearTapTimer() {
-                               clearTimeout( timer );
-                       }
-
-                       function clearTapHandlers() {
-                               clearTapTimer();
-
-                               $this.unbind( "vclick", clickHandler )
-                                       .unbind( "vmouseup", clearTapTimer )
-                                       .unbind( "vmousecancel", clearTapHandlers );
-                       }
-
-                       function clickHandler(event) {
-                               clearTapHandlers();
-
-                               // ONLY trigger a 'tap' event if the start target is
-                               // the same as the stop target.
-                               if ( origTarget == event.target ) {
-                                       triggerCustomEvent( thisObject, "tap", event );
-                               }
-                       }
-
-                       $this.bind( "vmousecancel", clearTapHandlers )
-                               .bind( "vmouseup", clearTapTimer )
-                               .bind( "vclick", clickHandler );
-
-                       timer = setTimeout(function() {
-                                       triggerCustomEvent( thisObject, "taphold", $.Event( "taphold" ) );
-                       }, 750 );
-               });
-       }
-};
-
-// also handles swipeleft, swiperight
-$.event.special.swipe = {
-       scrollSupressionThreshold: 10, // More than this horizontal displacement, and we will suppress scrolling.
-
-       durationThreshold: 1000, // More time than this, and it isn't a swipe.
-
-       horizontalDistanceThreshold: 30,  // Swipe horizontal displacement must be more than this.
-
-       verticalDistanceThreshold: 75,  // Swipe vertical displacement must be less than this.
-
-       setup: function() {
-               var thisObject = this,
-                       $this = $( thisObject );
-
-               $this.bind( touchStartEvent, function( event ) {
-                       var data = event.originalEvent.touches ?
-                                                               event.originalEvent.touches[ 0 ] : event,
-                               start = {
-                                       time: ( new Date() ).getTime(),
-                                       coords: [ data.pageX, data.pageY ],
-                                       origin: $( event.target )
-                               },
-                               stop;
-
-                       function moveHandler( event ) {
-
-                               if ( !start ) {
-                                       return;
-                               }
-
-                               var data = event.originalEvent.touches ?
-                                               event.originalEvent.touches[ 0 ] : event;
-
-                               stop = {
-                                       time: ( new Date() ).getTime(),
-                                       coords: [ data.pageX, data.pageY ]
-                               };
-
-                               // prevent scrolling
-                               if ( Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.scrollSupressionThreshold ) {
-                                       event.preventDefault();
-                               }
-                       }
-
-                       $this.bind( touchMoveEvent, moveHandler )
-                               .one( touchStopEvent, function( event ) {
-                                       $this.unbind( touchMoveEvent, moveHandler );
-
-                                       if ( start && stop ) {
-                                               if ( stop.time - start.time < $.event.special.swipe.durationThreshold &&
-                                                               Math.abs( start.coords[ 0 ] - stop.coords[ 0 ] ) > $.event.special.swipe.horizontalDistanceThreshold &&
-                                                               Math.abs( start.coords[ 1 ] - stop.coords[ 1 ] ) < $.event.special.swipe.verticalDistanceThreshold ) {
-
-                                                       start.origin.trigger( "swipe" )
-                                                               .trigger( start.coords[0] > stop.coords[ 0 ] ? "swipeleft" : "swiperight" );
-                                               }
-                                       }
-                                       start = stop = undefined;
-                               });
-               });
-       }
-};
-
-(function( $, window ) {
-       // "Cowboy" Ben Alman
-
-       var win = $( window ),
-               special_event,
-               get_orientation,
-               last_orientation,
-               initial_orientation_is_landscape,
-               initial_orientation_is_default,
-               portrait_map = { "0": true, "180": true };
-
-       // It seems that some device/browser vendors use window.orientation values 0 and 180 to
-       // denote the "default" orientation. For iOS devices, and most other smart-phones tested,
-       // the default orientation is always "portrait", but in some Android and RIM based tablets,
-       // the default orientation is "landscape". The following code injects a landscape orientation
-       // media query into the document to figure out what the current orientation is, and then
-       // makes adjustments to the portrait_map if necessary, so that we can properly
-       // decode the window.orientation value whenever get_orientation() is called.
-       if ( $.support.orientation ) {
-
-               // Use a media query to figure out the true orientation of the device at this moment.
-               // Note that we've initialized the portrait map values to 0 and 180, *AND* we purposely
-               // use a landscape media query so that if the device/browser does not support this particular
-               // media query, we default to the assumption that portrait is the default orientation.
-               initial_orientation_is_landscape = $.mobile.media("all and (orientation: landscape)");
-
-               // Now check to see if the current window.orientation is 0 or 180.
-               initial_orientation_is_default = portrait_map[ window.orientation ];
-
-               // If the initial orientation is landscape, but window.orientation reports 0 or 180, *OR*
-               // if the initial orientation is portrait, but window.orientation reports 90 or -90, we
-               // need to flip our portrait_map values because landscape is the default orientation for
-               // this device/browser.
-               if ( ( initial_orientation_is_landscape && initial_orientation_is_default ) || ( !initial_orientation_is_landscape && !initial_orientation_is_default ) ) {
-                       portrait_map = { "-90": true, "90": true };
-               }
-       }
-
-       $.event.special.orientationchange = special_event = {
-               setup: function() {
-                       // If the event is supported natively, return false so that jQuery
-                       // will bind to the event using DOM methods.
-                       if ( $.support.orientation && $.mobile.orientationChangeEnabled ) {
-                               return false;
-                       }
-
-                       // Get the current orientation to avoid initial double-triggering.
-                       last_orientation = get_orientation();
-
-                       // Because the orientationchange event doesn't exist, simulate the
-                       // event by testing window dimensions on resize.
-                       win.bind( "throttledresize", handler );
-               },
-               teardown: function(){
-                       // If the event is not supported natively, return false so that
-                       // jQuery will unbind the event using DOM methods.
-                       if ( $.support.orientation && $.mobile.orientationChangeEnabled ) {
-                               return false;
-                       }
-
-                       // Because the orientationchange event doesn't exist, unbind the
-                       // resize event handler.
-                       win.unbind( "throttledresize", handler );
-               },
-               add: function( handleObj ) {
-                       // Save a reference to the bound event handler.
-                       var old_handler = handleObj.handler;
-
-
-                       handleObj.handler = function( event ) {
-                               // Modify event object, adding the .orientation property.
-                               event.orientation = get_orientation();
-
-                               // Call the originally-bound event handler and return its result.
-                               return old_handler.apply( this, arguments );
-                       };
-               }
-       };
-
-       // If the event is not supported natively, this handler will be bound to
-       // the window resize event to simulate the orientationchange event.
-       function handler() {
-               // Get the current orientation.
-               var orientation = get_orientation();
-
-               if ( orientation !== last_orientation ) {
-                       // The orientation has changed, so trigger the orientationchange event.
-                       last_orientation = orientation;
-                       win.trigger( "orientationchange" );
-               }
-       }
-
-       // Get the current page orientation. This method is exposed publicly, should it
-       // be needed, as jQuery.event.special.orientationchange.orientation()
-       $.event.special.orientationchange.orientation = get_orientation = function() {
-               var isPortrait = true, elem = document.documentElement;
-
-               // prefer window orientation to the calculation based on screensize as
-               // the actual screen resize takes place before or after the orientation change event
-               // has been fired depending on implementation (eg android 2.3 is before, iphone after).
-               // More testing is required to determine if a more reliable method of determining the new screensize
-               // is possible when orientationchange is fired. (eg, use media queries + element + opacity)
-               if ( $.support.orientation ) {
-                       // if the window orientation registers as 0 or 180 degrees report
-                       // portrait, otherwise landscape
-                       isPortrait = portrait_map[ window.orientation ];
-               } else {
-                       isPortrait = elem && elem.clientWidth / elem.clientHeight < 1.1;
-               }
-
-               return isPortrait ? "portrait" : "landscape";
-       };
-
-})( jQuery, window );
-
-
-// throttled resize event
-(function() {
-
-       $.event.special.throttledresize = {
-               setup: function() {
-                       $( this ).bind( "resize", handler );
-               },
-               teardown: function(){
-                       $( this ).unbind( "resize", handler );
-               }
-       };
-
-       var throttle = 250,
-               handler = function() {
-                       curr = ( new Date() ).getTime();
-                       diff = curr - lastCall;
-
-                       if ( diff >= throttle ) {
-
-                               lastCall = curr;
-                               $( this ).trigger( "throttledresize" );
-
-                       } else {
-
-                               if ( heldCall ) {
-                                       clearTimeout( heldCall );
-                               }
-
-                               // Promise a held call will still execute
-                               heldCall = setTimeout( handler, throttle - diff );
-                       }
-               },
-               lastCall = 0,
-               heldCall,
-               curr,
-               diff;
-})();
-
-
-$.each({
-       scrollstop: "scrollstart",
-       taphold: "tap",
-       swipeleft: "swipe",
-       swiperight: "swipe"
-}, function( event, sourceEvent ) {
-
-       $.event.special[ event ] = {
-               setup: function() {
-                       $( this ).bind( sourceEvent, $.noop );
-               }
-       };
-});
-
-})( jQuery, this );
-// Script: jQuery hashchange event
-// 
-// *Version: 1.3, Last updated: 7/21/2010*
-// 
-// Project Home - http://benalman.com/projects/jquery-hashchange-plugin/
-// GitHub       - http://github.com/cowboy/jquery-hashchange/
-// Source       - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.js
-// (Minified)   - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.min.js (0.8kb gzipped)
-// 
-// About: License
-// 
-// Copyright (c) 2010 "Cowboy" Ben Alman,
-// Dual licensed under the MIT and GPL licenses.
-// http://benalman.com/about/license/
-// 
-// About: Examples
-// 
-// These working examples, complete with fully commented code, illustrate a few
-// ways in which this plugin can be used.
-// 
-// hashchange event - http://benalman.com/code/projects/jquery-hashchange/examples/hashchange/
-// document.domain - http://benalman.com/code/projects/jquery-hashchange/examples/document_domain/
-// 
-// About: Support and Testing
-// 
-// Information about what version or versions of jQuery this plugin has been
-// tested with, what browsers it has been tested in, and where the unit tests
-// reside (so you can test it yourself).
-// 
-// jQuery Versions - 1.2.6, 1.3.2, 1.4.1, 1.4.2
-// Browsers Tested - Internet Explorer 6-8, Firefox 2-4, Chrome 5-6, Safari 3.2-5,
-//                   Opera 9.6-10.60, iPhone 3.1, Android 1.6-2.2, BlackBerry 4.6-5.
-// Unit Tests      - http://benalman.com/code/projects/jquery-hashchange/unit/
-// 
-// About: Known issues
-// 
-// While this jQuery hashchange event implementation is quite stable and
-// robust, there are a few unfortunate browser bugs surrounding expected
-// hashchange event-based behaviors, independent of any JavaScript
-// window.onhashchange abstraction. See the following examples for more
-// information:
-// 
-// Chrome: Back Button - http://benalman.com/code/projects/jquery-hashchange/examples/bug-chrome-back-button/
-// Firefox: Remote XMLHttpRequest - http://benalman.com/code/projects/jquery-hashchange/examples/bug-firefox-remote-xhr/
-// WebKit: Back Button in an Iframe - http://benalman.com/code/projects/jquery-hashchange/examples/bug-webkit-hash-iframe/
-// Safari: Back Button from a different domain - http://benalman.com/code/projects/jquery-hashchange/examples/bug-safari-back-from-diff-domain/
-// 
-// Also note that should a browser natively support the window.onhashchange 
-// event, but not report that it does, the fallback polling loop will be used.
-// 
-// About: Release History
-// 
-// 1.3   - (7/21/2010) Reorganized IE6/7 Iframe code to make it more
-//         "removable" for mobile-only development. Added IE6/7 document.title
-//         support. Attempted to make Iframe as hidden as possible by using
-//         techniques from http://www.paciellogroup.com/blog/?p=604. Added 
-//         support for the "shortcut" format $(window).hashchange( fn ) and
-//         $(window).hashchange() like jQuery provides for built-in events.
-//         Renamed jQuery.hashchangeDelay to <jQuery.fn.hashchange.delay> and
-//         lowered its default value to 50. Added <jQuery.fn.hashchange.domain>
-//         and <jQuery.fn.hashchange.src> properties plus document-domain.html
-//         file to address access denied issues when setting document.domain in
-//         IE6/7.
-// 1.2   - (2/11/2010) Fixed a bug where coming back to a page using this plugin
-//         from a page on another domain would cause an error in Safari 4. Also,
-//         IE6/7 Iframe is now inserted after the body (this actually works),
-//         which prevents the page from scrolling when the event is first bound.
-//         Event can also now be bound before DOM ready, but it won't be usable
-//         before then in IE6/7.
-// 1.1   - (1/21/2010) Incorporated document.documentMode test to fix IE8 bug
-//         where browser version is incorrectly reported as 8.0, despite
-//         inclusion of the X-UA-Compatible IE=EmulateIE7 meta tag.
-// 1.0   - (1/9/2010) Initial Release. Broke out the jQuery BBQ event.special
-//         window.onhashchange functionality into a separate plugin for users
-//         who want just the basic event & back button support, without all the
-//         extra awesomeness that BBQ provides. This plugin will be included as
-//         part of jQuery BBQ, but also be available separately.
-
-(function($,window,undefined){
-  // Reused string.
-  var str_hashchange = 'hashchange',
-    
-    // Method / object references.
-    doc = document,
-    fake_onhashchange,
-    special = $.event.special,
-    
-    // Does the browser support window.onhashchange? Note that IE8 running in
-    // IE7 compatibility mode reports true for 'onhashchange' in window, even
-    // though the event isn't supported, so also test document.documentMode.
-    doc_mode = doc.documentMode,
-    supports_onhashchange = 'on' + str_hashchange in window && ( doc_mode === undefined || doc_mode > 7 );
-  
-  // Get location.hash (or what you'd expect location.hash to be) sans any
-  // leading #. Thanks for making this necessary, Firefox!
-  function get_fragment( url ) {
-    url = url || location.href;
-    return '#' + url.replace( /^[^#]*#?(.*)$/, '$1' );
-  };
-  
-  // Method: jQuery.fn.hashchange
-  // 
-  // Bind a handler to the window.onhashchange event or trigger all bound
-  // window.onhashchange event handlers. This behavior is consistent with
-  // jQuery's built-in event handlers.
-  // 
-  // Usage:
-  // 
-  // > jQuery(window).hashchange( [ handler ] );
-  // 
-  // Arguments:
-  // 
-  //  handler - (Function) Optional handler to be bound to the hashchange
-  //    event. This is a "shortcut" for the more verbose form:
-  //    jQuery(window).bind( 'hashchange', handler ). If handler is omitted,
-  //    all bound window.onhashchange event handlers will be triggered. This
-  //    is a shortcut for the more verbose
-  //    jQuery(window).trigger( 'hashchange' ). These forms are described in
-  //    the <hashchange event> section.
-  // 
-  // Returns:
-  // 
-  //  (jQuery) The initial jQuery collection of elements.
-  
-  // Allow the "shortcut" format $(elem).hashchange( fn ) for binding and
-  // $(elem).hashchange() for triggering, like jQuery does for built-in events.
-  $.fn[ str_hashchange ] = function( fn ) {
-    return fn ? this.bind( str_hashchange, fn ) : this.trigger( str_hashchange );
-  };
-  
-  // Property: jQuery.fn.hashchange.delay
-  // 
-  // The numeric interval (in milliseconds) at which the <hashchange event>
-  // polling loop executes. Defaults to 50.
-  
-  // Property: jQuery.fn.hashchange.domain
-  // 
-  // If you're setting document.domain in your JavaScript, and you want hash
-  // history to work in IE6/7, not only must this property be set, but you must
-  // also set document.domain BEFORE jQuery is loaded into the page. This
-  // property is only applicable if you are supporting IE6/7 (or IE8 operating
-  // in "IE7 compatibility" mode).
-  // 
-  // In addition, the <jQuery.fn.hashchange.src> property must be set to the
-  // path of the included "document-domain.html" file, which can be renamed or
-  // modified if necessary (note that the document.domain specified must be the
-  // same in both your main JavaScript as well as in this file).
-  // 
-  // Usage:
-  // 
-  // jQuery.fn.hashchange.domain = document.domain;
-  
-  // Property: jQuery.fn.hashchange.src
-  // 
-  // If, for some reason, you need to specify an Iframe src file (for example,
-  // when setting document.domain as in <jQuery.fn.hashchange.domain>), you can
-  // do so using this property. Note that when using this property, history
-  // won't be recorded in IE6/7 until the Iframe src file loads. This property
-  // is only applicable if you are supporting IE6/7 (or IE8 operating in "IE7
-  // compatibility" mode).
-  // 
-  // Usage:
-  // 
-  // jQuery.fn.hashchange.src = 'path/to/file.html';
-  
-  $.fn[ str_hashchange ].delay = 50;
-  /*
-  $.fn[ str_hashchange ].domain = null;
-  $.fn[ str_hashchange ].src = null;
-  */
-  
-  // Event: hashchange event
-  // 
-  // Fired when location.hash changes. In browsers that support it, the native
-  // HTML5 window.onhashchange event is used, otherwise a polling loop is
-  // initialized, running every <jQuery.fn.hashchange.delay> milliseconds to
-  // see if the hash has changed. In IE6/7 (and IE8 operating in "IE7
-  // compatibility" mode), a hidden Iframe is created to allow the back button
-  // and hash-based history to work.
-  // 
-  // Usage as described in <jQuery.fn.hashchange>:
-  // 
-  // > // Bind an event handler.
-  // > jQuery(window).hashchange( function(e) {
-  // >   var hash = location.hash;
-  // >   ...
-  // > });
-  // > 
-  // > // Manually trigger the event handler.
-  // > jQuery(window).hashchange();
-  // 
-  // A more verbose usage that allows for event namespacing:
-  // 
-  // > // Bind an event handler.
-  // > jQuery(window).bind( 'hashchange', function(e) {
-  // >   var hash = location.hash;
-  // >   ...
-  // > });
-  // > 
-  // > // Manually trigger the event handler.
-  // > jQuery(window).trigger( 'hashchange' );
-  // 
-  // Additional Notes:
-  // 
-  // * The polling loop and Iframe are not created until at least one handler
-  //   is actually bound to the 'hashchange' event.
-  // * If you need the bound handler(s) to execute immediately, in cases where
-  //   a location.hash exists on page load, via bookmark or page refresh for
-  //   example, use jQuery(window).hashchange() or the more verbose 
-  //   jQuery(window).trigger( 'hashchange' ).
-  // * The event can be bound before DOM ready, but since it won't be usable
-  //   before then in IE6/7 (due to the necessary Iframe), recommended usage is
-  //   to bind it inside a DOM ready handler.
-  
-  // Override existing $.event.special.hashchange methods (allowing this plugin
-  // to be defined after jQuery BBQ in BBQ's source code).
-  special[ str_hashchange ] = $.extend( special[ str_hashchange ], {
-    
-    // Called only when the first 'hashchange' event is bound to window.
-    setup: function() {
-      // If window.onhashchange is supported natively, there's nothing to do..
-      if ( supports_onhashchange ) { return false; }
-      
-      // Otherwise, we need to create our own. And we don't want to call this
-      // until the user binds to the event, just in case they never do, since it
-      // will create a polling loop and possibly even a hidden Iframe.
-      $( fake_onhashchange.start );
-    },
-    
-    // Called only when the last 'hashchange' event is unbound from window.
-    teardown: function() {
-      // If window.onhashchange is supported natively, there's nothing to do..
-      if ( supports_onhashchange ) { return false; }
-      
-      // Otherwise, we need to stop ours (if possible).
-      $( fake_onhashchange.stop );
-    }
-    
-  });
-  
-  // fake_onhashchange does all the work of triggering the window.onhashchange
-  // event for browsers that don't natively support it, including creating a
-  // polling loop to watch for hash changes and in IE 6/7 creating a hidden
-  // Iframe to enable back and forward.
-  fake_onhashchange = (function(){
-    var self = {},
-      timeout_id,
-      
-      // Remember the initial hash so it doesn't get triggered immediately.
-      last_hash = get_fragment(),
-      
-      fn_retval = function(val){ return val; },
-      history_set = fn_retval,
-      history_get = fn_retval;
-    
-    // Start the polling loop.
-    self.start = function() {
-      timeout_id || poll();
-    };
-    
-    // Stop the polling loop.
-    self.stop = function() {
-      timeout_id && clearTimeout( timeout_id );
-      timeout_id = undefined;
-    };
-    
-    // This polling loop checks every $.fn.hashchange.delay milliseconds to see
-    // if location.hash has changed, and triggers the 'hashchange' event on
-    // window when necessary.
-    function poll() {
-      var hash = get_fragment(),
-        history_hash = history_get( last_hash );
-      
-      if ( hash !== last_hash ) {
-        history_set( last_hash = hash, history_hash );
-        
-        $(window).trigger( str_hashchange );
-        
-      } else if ( history_hash !== last_hash ) {
-        location.href = location.href.replace( /#.*/, '' ) + history_hash;
-      }
-      
-      timeout_id = setTimeout( poll, $.fn[ str_hashchange ].delay );
-    };
-    
-    // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-    // vvvvvvvvvvvvvvvvvvv REMOVE IF NOT SUPPORTING IE6/7/8 vvvvvvvvvvvvvvvvvvv
-    // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
-    $.browser.msie && !supports_onhashchange && (function(){
-      // Not only do IE6/7 need the "magical" Iframe treatment, but so does IE8
-      // when running in "IE7 compatibility" mode.
-      
-      var iframe,
-        iframe_src;
-      
-      // When the event is bound and polling starts in IE 6/7, create a hidden
-      // Iframe for history handling.
-      self.start = function(){
-        if ( !iframe ) {
-          iframe_src = $.fn[ str_hashchange ].src;
-          iframe_src = iframe_src && iframe_src + get_fragment();
-          
-          // Create hidden Iframe. Attempt to make Iframe as hidden as possible
-          // by using techniques from http://www.paciellogroup.com/blog/?p=604.
-          iframe = $('<iframe tabindex="-1" title="empty"/>').hide()
-            
-            // When Iframe has completely loaded, initialize the history and
-            // start polling.
-            .one( 'load', function(){
-              iframe_src || history_set( get_fragment() );
-              poll();
-            })
-            
-            // Load Iframe src if specified, otherwise nothing.
-            .attr( 'src', iframe_src || 'javascript:0' )
-            
-            // Append Iframe after the end of the body to prevent unnecessary
-            // initial page scrolling (yes, this works).
-            .insertAfter( 'body' )[0].contentWindow;
-          
-          // Whenever `document.title` changes, update the Iframe's title to
-          // prettify the back/next history menu entries. Since IE sometimes
-          // errors with "Unspecified error" the very first time this is set
-          // (yes, very useful) wrap this with a try/catch block.
-          doc.onpropertychange = function(){
-            try {
-              if ( event.propertyName === 'title' ) {
-                iframe.document.title = doc.title;
-              }
-            } catch(e) {}
-          };
-          
-        }
-      };
-      
-      // Override the "stop" method since an IE6/7 Iframe was created. Even
-      // if there are no longer any bound event handlers, the polling loop
-      // is still necessary for back/next to work at all!
-      self.stop = fn_retval;
-      
-      // Get history by looking at the hidden Iframe's location.hash.
-      history_get = function() {
-        return get_fragment( iframe.location.href );
-      };
-      
-      // Set a new history item by opening and then closing the Iframe
-      // document, *then* setting its location.hash. If document.domain has
-      // been set, update that as well.
-      history_set = function( hash, history_hash ) {
-        var iframe_doc = iframe.document,
-          domain = $.fn[ str_hashchange ].domain;
-        
-        if ( hash !== history_hash ) {
-          // Update Iframe with any initial `document.title` that might be set.
-          iframe_doc.title = doc.title;
-          
-          // Opening the Iframe's document after it has been closed is what
-          // actually adds a history entry.
-          iframe_doc.open();
-          
-          // Set document.domain for the Iframe document as well, if necessary.
-          domain && iframe_doc.write( '<script>document.domain="' + domain + '"</script>' );
-          
-          iframe_doc.close();
-          
-          // Update the Iframe's hash, for great justice.
-          iframe.location.hash = hash;
-        }
-      };
-      
-    })();
-    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-    // ^^^^^^^^^^^^^^^^^^^ REMOVE IF NOT SUPPORTING IE6/7/8 ^^^^^^^^^^^^^^^^^^^
-    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-    
-    return self;
-  })();
-  
-})(jQuery,this);
-/*
-* "page" plugin
-*/
-
-(function( $, undefined ) {
-
-$.widget( "mobile.page", $.mobile.widget, {
-       options: {
-               theme: "c",
-               domCache: false,
-               keepNativeDefault: ":jqmData(role='none'), :jqmData(role='nojs')"
-       },
-
-       _create: function() {
-
-               this._trigger( "beforecreate" );
-
-               this.element
-                       .attr( "tabindex", "0" )
-                       .addClass( "ui-page ui-body-" + this.options.theme );
-       },
-
-       keepNativeSelector: function() {
-               var options = this.options,
-                       keepNativeDefined = options.keepNative && $.trim(options.keepNative);
-
-               if( keepNativeDefined && options.keepNative !== options.keepNativeDefault ){
-                       return [options.keepNative, options.keepNativeDefault].join(", ");
-               }
-
-               return options.keepNativeDefault;
-       }
-});
-})( jQuery );
-/*
-* "core" - The base file for jQm
-*/
-
-(function( $, window, undefined ) {
-
-       var nsNormalizeDict = {};
-
-       // jQuery.mobile configurable options
-       $.extend( $.mobile, {
-
-               // Namespace used framework-wide for data-attrs. Default is no namespace
-               ns: "",
-
-               // Define the url parameter used for referencing widget-generated sub-pages.
-               // Translates to to example.html&ui-page=subpageIdentifier
-               // hash segment before &ui-page= is used to make Ajax request
-               subPageUrlKey: "ui-page",
-
-               // Class assigned to page currently in view, and during transitions
-               activePageClass: "ui-page-active",
-
-               // Class used for "active" button state, from CSS framework
-               activeBtnClass: "ui-btn-active",
-
-               // Automatically handle clicks and form submissions through Ajax, when same-domain
-               ajaxEnabled: true,
-
-               // Automatically load and show pages based on location.hash
-               hashListeningEnabled: true,
-
-               // disable to prevent jquery from bothering with links
-               linkBindingEnabled: true,
-
-               // Set default page transition - 'none' for no transitions
-               defaultPageTransition: "slide",
-
-               // Minimum scroll distance that will be remembered when returning to a page
-               minScrollBack: 250,
-
-               // Set default dialog transition - 'none' for no transitions
-               defaultDialogTransition: "pop",
-
-               // Show loading message during Ajax requests
-               // if false, message will not appear, but loading classes will still be toggled on html el
-               loadingMessage: "loading",
-
-               // Error response message - appears when an Ajax page request fails
-               pageLoadErrorMessage: "Error Loading Page",
-
-               //automatically initialize the DOM when it's ready
-               autoInitializePage: true,
-
-               pushStateEnabled: true,
-
-               // turn of binding to the native orientationchange due to android orientation behavior
-               orientationChangeEnabled: true,
-
-               // Support conditions that must be met in order to proceed
-               // default enhanced qualifications are media query support OR IE 7+
-               gradeA: function(){
-                       return $.support.mediaquery || $.mobile.browser.ie && $.mobile.browser.ie >= 7;
-               },
-
-               // TODO might be useful upstream in jquery itself ?
-               keyCode: {
-                       ALT: 18,
-                       BACKSPACE: 8,
-                       CAPS_LOCK: 20,
-                       COMMA: 188,
-                       COMMAND: 91,
-                       COMMAND_LEFT: 91, // COMMAND
-                       COMMAND_RIGHT: 93,
-                       CONTROL: 17,
-                       DELETE: 46,
-                       DOWN: 40,
-                       END: 35,
-                       ENTER: 13,
-                       ESCAPE: 27,
-                       HOME: 36,
-                       INSERT: 45,
-                       LEFT: 37,
-                       MENU: 93, // COMMAND_RIGHT
-                       NUMPAD_ADD: 107,
-                       NUMPAD_DECIMAL: 110,
-                       NUMPAD_DIVIDE: 111,
-                       NUMPAD_ENTER: 108,
-                       NUMPAD_MULTIPLY: 106,
-                       NUMPAD_SUBTRACT: 109,
-                       PAGE_DOWN: 34,
-                       PAGE_UP: 33,
-                       PERIOD: 190,
-                       RIGHT: 39,
-                       SHIFT: 16,
-                       SPACE: 32,
-                       TAB: 9,
-                       UP: 38,
-                       WINDOWS: 91 // COMMAND
-               },
-
-               // Scroll page vertically: scroll to 0 to hide iOS address bar, or pass a Y value
-               silentScroll: function( ypos ) {
-                       if ( $.type( ypos ) !== "number" ) {
-                               ypos = $.mobile.defaultHomeScroll;
-                       }
-
-                       // prevent scrollstart and scrollstop events
-                       $.event.special.scrollstart.enabled = false;
-
-                       setTimeout(function() {
-                               window.scrollTo( 0, ypos );
-                               $( document ).trigger( "silentscroll", { x: 0, y: ypos });
-                       }, 20 );
-
-                       setTimeout(function() {
-                               $.event.special.scrollstart.enabled = true;
-                       }, 150 );
-               },
-
-               // Expose our cache for testing purposes.
-               nsNormalizeDict: nsNormalizeDict,
-
-               // Take a data attribute property, prepend the namespace
-               // and then camel case the attribute string. Add the result
-               // to our nsNormalizeDict so we don't have to do this again.
-               nsNormalize: function( prop ) {
-                       if ( !prop ) {
-                               return;
-                       }
-
-                       return nsNormalizeDict[ prop ] || ( nsNormalizeDict[ prop ] = $.camelCase( $.mobile.ns + prop ) );
-               },
-
-               getInheritedTheme: function( el, defaultTheme ) {
-
-                       // Find the closest parent with a theme class on it. Note that
-                       // we are not using $.fn.closest() on purpose here because this
-                       // method gets called quite a bit and we need it to be as fast
-                       // as possible.
-
-                       var e = el[ 0 ],
-                               ltr = "",
-                               re = /ui-(bar|body)-([a-z])\b/,
-                               c, m;
-
-                       while ( e ) {
-                               var c = e.className || "";
-                               if ( ( m = re.exec( c ) ) && ( ltr = m[ 2 ] ) ) {
-                                       // We found a parent with a theme class
-                                       // on it so bail from this loop.
-                                       break;
-                               }
-                               e = e.parentNode;
-                       }
-
-                       // Return the theme letter we found, if none, return the
-                       // specified default.
-
-                       return ltr || defaultTheme || "a";
-               },
-
-               // TODO the following $ and $.fn extensions can/probably should be moved into jquery.mobile.core.helpers
-               //
-               // Find the closest javascript page element to gather settings data jsperf test
-               // http://jsperf.com/single-complex-selector-vs-many-complex-selectors/edit
-               // possibly naive, but it shows that the parsing overhead for *just* the page selector vs
-               // the page and dialog selector is negligable. This could probably be speed up by
-               // doing a similar parent node traversal to the one found in the inherited theme code above
-               closestPageData: function( $target ) {
-                       return $target
-                               .closest(':jqmData(role="page"), :jqmData(role="dialog")')
-                               .data("page");
-               }
-       });
-
-       // Mobile version of data and removeData and hasData methods
-       // ensures all data is set and retrieved using jQuery Mobile's data namespace
-       $.fn.jqmData = function( prop, value ) {
-               var result;
-               if ( typeof prop != "undefined" ) {
-                       result = this.data( prop ? $.mobile.nsNormalize( prop ) : prop, value );
-               }
-               return result;
-       };
-
-       $.jqmData = function( elem, prop, value ) {
-               var result;
-               if ( typeof prop != "undefined" ) {
-                       result = $.data( elem, prop ? $.mobile.nsNormalize( prop ) : prop, value );
-               }
-               return result;
-       };
-
-       $.fn.jqmRemoveData = function( prop ) {
-               return this.removeData( $.mobile.nsNormalize( prop ) );
-       };
-
-       $.jqmRemoveData = function( elem, prop ) {
-               return $.removeData( elem, $.mobile.nsNormalize( prop ) );
-       };
-
-       $.fn.removeWithDependents = function() {
-               $.removeWithDependents( this );
-       };
-
-       $.removeWithDependents = function( elem ) {
-               var $elem = $( elem );
-
-               ( $elem.jqmData('dependents') || $() ).remove();
-               $elem.remove();
-       };
-
-       $.fn.addDependents = function( newDependents ) {
-               $.addDependents( $(this), newDependents );
-       };
-
-       $.addDependents = function( elem, newDependents ) {
-               var dependents = $(elem).jqmData( 'dependents' ) || $();
-
-               $(elem).jqmData( 'dependents', $.merge(dependents, newDependents) );
-       };
-
-       // note that this helper doesn't attempt to handle the callback
-       // or setting of an html elements text, its only purpose is
-       // to return the html encoded version of the text in all cases. (thus the name)
-       $.fn.getEncodedText = function() {
-               return $( "<div/>" ).text( $(this).text() ).html();
-       };
-
-       // Monkey-patching Sizzle to filter the :jqmData selector
-       var oldFind = $.find,
-               jqmDataRE = /:jqmData\(([^)]*)\)/g;
-
-       $.find = function( selector, context, ret, extra ) {
-               selector = selector.replace( jqmDataRE, "[data-" + ( $.mobile.ns || "" ) + "$1]" );
-
-               return oldFind.call( this, selector, context, ret, extra );
-       };
-
-       $.extend( $.find, oldFind );
-
-       $.find.matches = function( expr, set ) {
-               return $.find( expr, null, null, set );
-       };
-
-       $.find.matchesSelector = function( node, expr ) {
-               return $.find( expr, null, null, [ node ] ).length > 0;
-       };
-})( jQuery, this );
-
-/*
-* core utilities for auto ajax navigation, base tag mgmt,
-*/
-
-( function( $, undefined ) {
-
-       //define vars for interal use
-       var $window = $( window ),
-               $html = $( 'html' ),
-               $head = $( 'head' ),
-
-               //url path helpers for use in relative url management
-               path = {
-
-                       // This scary looking regular expression parses an absolute URL or its relative
-                       // variants (protocol, site, document, query, and hash), into the various
-                       // components (protocol, host, path, query, fragment, etc that make up the
-                       // URL as well as some other commonly used sub-parts. When used with RegExp.exec()
-                       // or String.match, it parses the URL into a results array that looks like this:
-                       //
-                       //     [0]: http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234&type=unread#msg-content
-                       //     [1]: http://jblas:password@mycompany.com:8080/mail/inbox?msg=1234&type=unread
-                       //     [2]: http://jblas:password@mycompany.com:8080/mail/inbox
-                       //     [3]: http://jblas:password@mycompany.com:8080
-                       //     [4]: http:
-                       //     [5]: //
-                       //     [6]: jblas:password@mycompany.com:8080
-                       //     [7]: jblas:password
-                       //     [8]: jblas
-                       //     [9]: password
-                       //    [10]: mycompany.com:8080
-                       //    [11]: mycompany.com
-                       //    [12]: 8080
-                       //    [13]: /mail/inbox
-                       //    [14]: /mail/
-                       //    [15]: inbox
-                       //    [16]: ?msg=1234&type=unread
-                       //    [17]: #msg-content
-                       //
-                       urlParseRE: /^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,
-
-                       //Parse a URL into a structure that allows easy access to
-                       //all of the URL components by name.
-                       parseUrl: function( url ) {
-                               // If we're passed an object, we'll assume that it is
-                               // a parsed url object and just return it back to the caller.
-                               if ( $.type( url ) === "object" ) {
-                                       return url;
-                               }
-
-                               var matches = path.urlParseRE.exec( url || "" ) || [];
-
-                                       // Create an object that allows the caller to access the sub-matches
-                                       // by name. Note that IE returns an empty string instead of undefined,
-                                       // like all other browsers do, so we normalize everything so its consistent
-                                       // no matter what browser we're running on.
-                                       return {
-                                               href:         matches[  0 ] || "",
-                                               hrefNoHash:   matches[  1 ] || "",
-                                               hrefNoSearch: matches[  2 ] || "",
-                                               domain:       matches[  3 ] || "",
-                                               protocol:     matches[  4 ] || "",
-                                               doubleSlash:  matches[  5 ] || "",
-                                               authority:    matches[  6 ] || "",
-                                               username:     matches[  8 ] || "",
-                                               password:     matches[  9 ] || "",
-                                               host:         matches[ 10 ] || "",
-                                               hostname:     matches[ 11 ] || "",
-                                               port:         matches[ 12 ] || "",
-                                               pathname:     matches[ 13 ] || "",
-                                               directory:    matches[ 14 ] || "",
-                                               filename:     matches[ 15 ] || "",
-                                               search:       matches[ 16 ] || "",
-                                               hash:         matches[ 17 ] || ""
-                                       };
-                       },
-
-                       //Turn relPath into an asbolute path. absPath is
-                       //an optional absolute path which describes what
-                       //relPath is relative to.
-                       makePathAbsolute: function( relPath, absPath ) {
-                               if ( relPath && relPath.charAt( 0 ) === "/" ) {
-                                       return relPath;
-                               }
-
-                               relPath = relPath || "";
-                               absPath = absPath ? absPath.replace( /^\/|(\/[^\/]*|[^\/]+)$/g, "" ) : "";
-
-                               var absStack = absPath ? absPath.split( "/" ) : [],
-                                       relStack = relPath.split( "/" );
-                               for ( var i = 0; i < relStack.length; i++ ) {
-                                       var d = relStack[ i ];
-                                       switch ( d ) {
-                                               case ".":
-                                                       break;
-                                               case "..":
-                                                       if ( absStack.length ) {
-                                                               absStack.pop();
-                                                       }
-                                                       break;
-                                               default:
-                                                       absStack.push( d );
-                                                       break;
-                                       }
-                               }
-                               return "/" + absStack.join( "/" );
-                       },
-
-                       //Returns true if both urls have the same domain.
-                       isSameDomain: function( absUrl1, absUrl2 ) {
-                               return path.parseUrl( absUrl1 ).domain === path.parseUrl( absUrl2 ).domain;
-                       },
-
-                       //Returns true for any relative variant.
-                       isRelativeUrl: function( url ) {
-                               // All relative Url variants have one thing in common, no protocol.
-                               return path.parseUrl( url ).protocol === "";
-                       },
-
-                       //Returns true for an absolute url.
-                       isAbsoluteUrl: function( url ) {
-                               return path.parseUrl( url ).protocol !== "";
-                       },
-
-                       //Turn the specified realtive URL into an absolute one. This function
-                       //can handle all relative variants (protocol, site, document, query, fragment).
-                       makeUrlAbsolute: function( relUrl, absUrl ) {
-                               if ( !path.isRelativeUrl( relUrl ) ) {
-                                       return relUrl;
-                               }
-
-                               var relObj = path.parseUrl( relUrl ),
-                                       absObj = path.parseUrl( absUrl ),
-                                       protocol = relObj.protocol || absObj.protocol,
-                                       doubleSlash = relObj.protocol ? relObj.doubleSlash : ( relObj.doubleSlash || absObj.doubleSlash ),
-                                       authority = relObj.authority || absObj.authority,
-                                       hasPath = relObj.pathname !== "",
-                                       pathname = path.makePathAbsolute( relObj.pathname || absObj.filename, absObj.pathname ),
-                                       search = relObj.search || ( !hasPath && absObj.search ) || "",
-                                       hash = relObj.hash;
-
-                               return protocol + doubleSlash + authority + pathname + search + hash;
-                       },
-
-                       //Add search (aka query) params to the specified url.
-                       addSearchParams: function( url, params ) {
-                               var u = path.parseUrl( url ),
-                                       p = ( typeof params === "object" ) ? $.param( params ) : params,
-                                       s = u.search || "?";
-                               return u.hrefNoSearch + s + ( s.charAt( s.length - 1 ) !== "?" ? "&" : "" ) + p + ( u.hash || "" );
-                       },
-
-                       convertUrlToDataUrl: function( absUrl ) {
-                               var u = path.parseUrl( absUrl );
-                               if ( path.isEmbeddedPage( u ) ) {
-                                   // For embedded pages, remove the dialog hash key as in getFilePath(),
-                                   // otherwise the Data Url won't match the id of the embedded Page.
-                                       return u.hash.split( dialogHashKey )[0].replace( /^#/, "" );
-                               } else if ( path.isSameDomain( u, documentBase ) ) {
-                                       return u.hrefNoHash.replace( documentBase.domain, "" );
-                               }
-                               return absUrl;
-                       },
-
-                       //get path from current hash, or from a file path
-                       get: function( newPath ) {
-                               if( newPath === undefined ) {
-                                       newPath = location.hash;
-                               }
-                               return path.stripHash( newPath ).replace( /[^\/]*\.[^\/*]+$/, '' );
-                       },
-
-                       //return the substring of a filepath before the sub-page key, for making a server request
-                       getFilePath: function( path ) {
-                               var splitkey = '&' + $.mobile.subPageUrlKey;
-                               return path && path.split( splitkey )[0].split( dialogHashKey )[0];
-                       },
-
-                       //set location hash to path
-                       set: function( path ) {
-                               location.hash = path;
-                       },
-
-                       //test if a given url (string) is a path
-                       //NOTE might be exceptionally naive
-                       isPath: function( url ) {
-                               return ( /\// ).test( url );
-                       },
-
-                       //return a url path with the window's location protocol/hostname/pathname removed
-                       clean: function( url ) {
-                               return url.replace( documentBase.domain, "" );
-                       },
-
-                       //just return the url without an initial #
-                       stripHash: function( url ) {
-                               return url.replace( /^#/, "" );
-                       },
-
-                       //remove the preceding hash, any query params, and dialog notations
-                       cleanHash: function( hash ) {
-                               return path.stripHash( hash.replace( /\?.*$/, "" ).replace( dialogHashKey, "" ) );
-                       },
-
-                       //check whether a url is referencing the same domain, or an external domain or different protocol
-                       //could be mailto, etc
-                       isExternal: function( url ) {
-                               var u = path.parseUrl( url );
-                               return u.protocol && u.domain !== documentUrl.domain ? true : false;
-                       },
-
-                       hasProtocol: function( url ) {
-                               return ( /^(:?\w+:)/ ).test( url );
-                       },
-
-                       //check if the specified url refers to the first page in the main application document.
-                       isFirstPageUrl: function( url ) {
-                               // We only deal with absolute paths.
-                               var u = path.parseUrl( path.makeUrlAbsolute( url, documentBase ) ),
-
-                                       // Does the url have the same path as the document?
-                                       samePath = u.hrefNoHash === documentUrl.hrefNoHash || ( documentBaseDiffers && u.hrefNoHash === documentBase.hrefNoHash ),
-
-                                       // Get the first page element.
-                                       fp = $.mobile.firstPage,
-
-                                       // Get the id of the first page element if it has one.
-                                       fpId = fp && fp[0] ? fp[0].id : undefined;
-
-                                       // The url refers to the first page if the path matches the document and
-                                       // it either has no hash value, or the hash is exactly equal to the id of the
-                                       // first page element.
-                                       return samePath && ( !u.hash || u.hash === "#" || ( fpId && u.hash.replace( /^#/, "" ) === fpId ) );
-                       },
-
-                       isEmbeddedPage: function( url ) {
-                               var u = path.parseUrl( url );
-
-                               //if the path is absolute, then we need to compare the url against
-                               //both the documentUrl and the documentBase. The main reason for this
-                               //is that links embedded within external documents will refer to the
-                               //application document, whereas links embedded within the application
-                               //document will be resolved against the document base.
-                               if ( u.protocol !== "" ) {
-                                       return ( u.hash && ( u.hrefNoHash === documentUrl.hrefNoHash || ( documentBaseDiffers && u.hrefNoHash === documentBase.hrefNoHash ) ) );
-                               }
-                               return (/^#/).test( u.href );
-                       },
-
-
-                       // Some embedded browsers, like the web view in Phone Gap, allow cross-domain XHR
-                       // requests if the document doing the request was loaded via the file:// protocol.
-                       // This is usually to allow the application to "phone home" and fetch app specific
-                       // data. We normally let the browser handle external/cross-domain urls, but if the
-                       // allowCrossDomainPages option is true, we will allow cross-domain http/https
-                       // requests to go through our page loading logic.
-                       isPermittedCrossDomainRequest: function( docUrl, reqUrl ) {
-                               return $.mobile.allowCrossDomainPages
-                                       && docUrl.protocol === "file:"
-                                       && reqUrl.search( /^https?:/ ) != -1;
-                       }
-               },
-
-               //will be defined when a link is clicked and given an active class
-               $activeClickedLink = null,
-
-               //urlHistory is purely here to make guesses at whether the back or forward button was clicked
-               //and provide an appropriate transition
-               urlHistory = {
-                       // Array of pages that are visited during a single page load.
-                       // Each has a url and optional transition, title, and pageUrl (which represents the file path, in cases where URL is obscured, such as dialogs)
-                       stack: [],
-
-                       //maintain an index number for the active page in the stack
-                       activeIndex: 0,
-
-                       //get active
-                       getActive: function() {
-                               return urlHistory.stack[ urlHistory.activeIndex ];
-                       },
-
-                       getPrev: function() {
-                               return urlHistory.stack[ urlHistory.activeIndex - 1 ];
-                       },
-
-                       getNext: function() {
-                               return urlHistory.stack[ urlHistory.activeIndex + 1 ];
-                       },
-
-                       // addNew is used whenever a new page is added
-                       addNew: function( url, transition, title, pageUrl, role ) {
-                               //if there's forward history, wipe it
-                               if( urlHistory.getNext() ) {
-                                       urlHistory.clearForward();
-                               }
-
-                               urlHistory.stack.push( {url : url, transition: transition, title: title, pageUrl: pageUrl, role: role } );
-
-                               urlHistory.activeIndex = urlHistory.stack.length - 1;
-                       },
-
-                       //wipe urls ahead of active index
-                       clearForward: function() {
-                               urlHistory.stack = urlHistory.stack.slice( 0, urlHistory.activeIndex + 1 );
-                       },
-
-                       directHashChange: function( opts ) {
-                               var back , forward, newActiveIndex, prev = this.getActive();
-
-                               // check if url isp in history and if it's ahead or behind current page
-                               $.each( urlHistory.stack, function( i, historyEntry ) {
-
-                                       //if the url is in the stack, it's a forward or a back
-                                       if( opts.currentUrl === historyEntry.url ) {
-                                               //define back and forward by whether url is older or newer than current page
-                                               back = i < urlHistory.activeIndex;
-                                               forward = !back;
-                                               newActiveIndex = i;
-                                       }
-                               });
-
-                               // save new page index, null check to prevent falsey 0 result
-                               this.activeIndex = newActiveIndex !== undefined ? newActiveIndex : this.activeIndex;
-
-                               if( back ) {
-                                       ( opts.either || opts.isBack )( true );
-                               } else if( forward ) {
-                                       ( opts.either || opts.isForward )( false );
-                               }
-                       },
-
-                       //disable hashchange event listener internally to ignore one change
-                       //toggled internally when location.hash is updated to match the url of a successful page load
-                       ignoreNextHashChange: false
-               },
-
-               //define first selector to receive focus when a page is shown
-               focusable = "[tabindex],a,button:visible,select:visible,input",
-
-               //queue to hold simultanious page transitions
-               pageTransitionQueue = [],
-
-               //indicates whether or not page is in process of transitioning
-               isPageTransitioning = false,
-
-               //nonsense hash change key for dialogs, so they create a history entry
-               dialogHashKey = "&ui-state=dialog",
-
-               //existing base tag?
-               $base = $head.children( "base" ),
-
-               //tuck away the original document URL minus any fragment.
-               documentUrl = path.parseUrl( location.href ),
-
-               //if the document has an embedded base tag, documentBase is set to its
-               //initial value. If a base tag does not exist, then we default to the documentUrl.
-               documentBase = $base.length ? path.parseUrl( path.makeUrlAbsolute( $base.attr( "href" ), documentUrl.href ) ) : documentUrl,
-
-               //cache the comparison once.
-               documentBaseDiffers = ( documentUrl.hrefNoHash !== documentBase.hrefNoHash );
-
-               //base element management, defined depending on dynamic base tag support
-               var base = $.support.dynamicBaseTag ? {
-
-                       //define base element, for use in routing asset urls that are referenced in Ajax-requested markup
-                       element: ( $base.length ? $base : $( "<base>", { href: documentBase.hrefNoHash } ).prependTo( $head ) ),
-
-                       //set the generated BASE element's href attribute to a new page's base path
-                       set: function( href ) {
-                               base.element.attr( "href", path.makeUrlAbsolute( href, documentBase ) );
-                       },
-
-                       //set the generated BASE element's href attribute to a new page's base path
-                       reset: function() {
-                               base.element.attr( "href", documentBase.hrefNoHash );
-                       }
-
-               } : undefined;
-
-/*
-       internal utility functions
---------------------------------------*/
-
-
-       //direct focus to the page title, or otherwise first focusable element
-       function reFocus( page ) {
-               var pageTitle = page.find( ".ui-title:eq(0)" );
-
-               if( pageTitle.length ) {
-                       pageTitle.focus();
-               }
-               else{
-                       page.focus();
-               }
-       }
-
-       //remove active classes after page transition or error
-       function removeActiveLinkClass( forceRemoval ) {
-               if( !!$activeClickedLink && ( !$activeClickedLink.closest( '.ui-page-active' ).length || forceRemoval ) ) {
-                       $activeClickedLink.removeClass( $.mobile.activeBtnClass );
-               }
-               $activeClickedLink = null;
-       }
-
-       function releasePageTransitionLock() {
-               isPageTransitioning = false;
-               if( pageTransitionQueue.length > 0 ) {
-                       $.mobile.changePage.apply( null, pageTransitionQueue.pop() );
-               }
-       }
-
-       // Save the last scroll distance per page, before it is hidden
-       var setLastScrollEnabled = true,
-               firstScrollElem, getScrollElem, setLastScroll, delayedSetLastScroll;
-
-       getScrollElem = function() {
-               var scrollElem = $window, activePage,
-                       touchOverflow = $.support.touchOverflow && $.mobile.touchOverflowEnabled;
-
-               if( touchOverflow ){
-                       activePage = $( ".ui-page-active" );
-                       scrollElem = activePage.is( ".ui-native-fixed" ) ? activePage.find( ".ui-content" ) : activePage;
-               }
-
-               return scrollElem;
-       };
-
-       setLastScroll = function( scrollElem ) {
-               // this barrier prevents setting the scroll value based on the browser
-               // scrolling the window based on a hashchange
-               if( !setLastScrollEnabled ) {
-                       return;
-               }
-
-               var active = $.mobile.urlHistory.getActive();
-
-               if( active ) {
-                       var lastScroll = scrollElem && scrollElem.scrollTop();
-
-                       // Set active page's lastScroll prop.
-                       // If the location we're scrolling to is less than minScrollBack, let it go.
-                       active.lastScroll = lastScroll < $.mobile.minScrollBack ? $.mobile.defaultHomeScroll : lastScroll;
-               }
-       };
-
-       // bind to scrollstop to gather scroll position. The delay allows for the hashchange
-       // event to fire and disable scroll recording in the case where the browser scrolls
-       // to the hash targets location (sometimes the top of the page). once pagechange fires
-       // getLastScroll is again permitted to operate
-       delayedSetLastScroll = function() {
-               setTimeout( setLastScroll, 100, $(this) );
-       };
-
-       // disable an scroll setting when a hashchange has been fired, this only works
-       // because the recording of the scroll position is delayed for 100ms after
-       // the browser might have changed the position because of the hashchange
-       $window.bind( $.support.pushState ? "popstate" : "hashchange", function() {
-               setLastScrollEnabled = false;
-       });
-
-       // handle initial hashchange from chrome :(
-       $window.one( $.support.pushState ? "popstate" : "hashchange", function() {
-               setLastScrollEnabled = true;
-       });
-
-       // wait until the mobile page container has been determined to bind to pagechange
-       $window.one( "pagecontainercreate", function(){
-               // once the page has changed, re-enable the scroll recording
-               $.mobile.pageContainer.bind( "pagechange", function() {
-                       var scrollElem = getScrollElem();
-
-                       setLastScrollEnabled = true;
-
-                       // remove any binding that previously existed on the get scroll
-                       // which may or may not be different than the scroll element determined for
-                       // this page previously
-                       scrollElem.unbind( "scrollstop", delayedSetLastScroll );
-
-                       // determine and bind to the current scoll element which may be the window
-                       // or in the case of touch overflow the element with touch overflow
-                       scrollElem.bind( "scrollstop", delayedSetLastScroll );
-               });
-       });
-
-       // bind to scrollstop for the first page as "pagechange" won't be fired in that case
-       getScrollElem().bind( "scrollstop", delayedSetLastScroll );
-
-       // Make the iOS clock quick-scroll work again if we're using native overflow scrolling
-       /*
-       if( $.support.touchOverflow ){
-               if( $.mobile.touchOverflowEnabled ){
-                       $( window ).bind( "scrollstop", function(){
-                               if( $( this ).scrollTop() === 0 ){
-                                       $.mobile.activePage.scrollTop( 0 );
-                               }
-                       });
-               }
-       }
-       */
-
-       //function for transitioning between two existing pages
-       function transitionPages( toPage, fromPage, transition, reverse ) {
-
-               //get current scroll distance
-               var active      = $.mobile.urlHistory.getActive(),
-                       touchOverflow = $.support.touchOverflow && $.mobile.touchOverflowEnabled,
-                       toScroll = active.lastScroll || ( touchOverflow ? 0 : $.mobile.defaultHomeScroll ),
-                       screenHeight = getScreenHeight();
-
-               // Scroll to top, hide addr bar
-               window.scrollTo( 0, $.mobile.defaultHomeScroll );
-
-               if( fromPage ) {
-                       //trigger before show/hide events
-                       fromPage.data( "page" )._trigger( "beforehide", null, { nextPage: toPage } );
-               }
-
-               if( !touchOverflow){
-                       toPage.height( screenHeight + toScroll );
-               }
-
-               toPage.data( "page" )._trigger( "beforeshow", null, { prevPage: fromPage || $( "" ) } );
-
-               //clear page loader
-               $.mobile.hidePageLoadingMsg();
-
-               if( touchOverflow && toScroll ){
-
-                       toPage.addClass( "ui-mobile-pre-transition" );
-                       // Send focus to page as it is now display: block
-                       reFocus( toPage );
-
-                       //set page's scrollTop to remembered distance
-                       if( toPage.is( ".ui-native-fixed" ) ){
-                               toPage.find( ".ui-content" ).scrollTop( toScroll );
-                       }
-                       else{
-                               toPage.scrollTop( toScroll );
-                       }
-               }
-
-               //find the transition handler for the specified transition. If there
-               //isn't one in our transitionHandlers dictionary, use the default one.
-               //call the handler immediately to kick-off the transition.
-               var th = $.mobile.transitionHandlers[transition || "none"] || $.mobile.defaultTransitionHandler,
-                       promise = th( transition, reverse, toPage, fromPage );
-
-               promise.done(function() {
-                       //reset toPage height back
-                       if( !touchOverflow ){
-                               toPage.height( "" );
-                               // Send focus to the newly shown page
-                               reFocus( toPage );
-                       }
-
-                       // Jump to top or prev scroll, sometimes on iOS the page has not rendered yet.
-                       if( !touchOverflow ){
-                               $.mobile.silentScroll( toScroll );
-                       }
-
-                       //trigger show/hide events
-                       if( fromPage ) {
-                               if( !touchOverflow ){
-                                       fromPage.height( "" );
-                               }
-
-                               fromPage.data( "page" )._trigger( "hide", null, { nextPage: toPage } );
-                       }
-
-                       //trigger pageshow, define prevPage as either fromPage or empty jQuery obj
-                       toPage.data( "page" )._trigger( "show", null, { prevPage: fromPage || $( "" ) } );
-               });
-
-               return promise;
-       }
-
-       //simply set the active page's minimum height to screen height, depending on orientation
-       function getScreenHeight(){
-               var orientation         = $.event.special.orientationchange.orientation(),
-                       port                    = orientation === "portrait",
-                       winMin                  = port ? 480 : 320,
-                       screenHeight    = port ? screen.availHeight : screen.availWidth,
-                       winHeight               = Math.max( winMin, $( window ).height() ),
-                       pageMin                 = Math.min( screenHeight, winHeight );
-
-               return pageMin;
-       }
-
-       $.mobile.getScreenHeight = getScreenHeight;
-
-       //simply set the active page's minimum height to screen height, depending on orientation
-       function resetActivePageHeight(){
-               // Don't apply this height in touch overflow enabled mode
-               if( $.support.touchOverflow && $.mobile.touchOverflowEnabled ){
-                       return;
-               }
-               $( "." + $.mobile.activePageClass ).css( "min-height", getScreenHeight() );
-       }
-
-       //shared page enhancements
-       function enhancePage( $page, role ) {
-               // If a role was specified, make sure the data-role attribute
-               // on the page element is in sync.
-               if( role ) {
-                       $page.attr( "data-" + $.mobile.ns + "role", role );
-               }
-
-               //run page plugin
-               $page.page();
-       }
-
-/* exposed $.mobile methods     */
-
-       //animation complete callback
-       $.fn.animationComplete = function( callback ) {
-               if( $.support.cssTransitions ) {
-                       return $( this ).one( 'webkitAnimationEnd', callback );
-               }
-               else{
-                       // defer execution for consistency between webkit/non webkit
-                       setTimeout( callback, 0 );
-                       return $( this );
-               }
-       };
-
-       //expose path object on $.mobile
-       $.mobile.path = path;
-
-       //expose base object on $.mobile
-       $.mobile.base = base;
-
-       //history stack
-       $.mobile.urlHistory = urlHistory;
-
-       $.mobile.dialogHashKey = dialogHashKey;
-
-       //default non-animation transition handler
-       $.mobile.noneTransitionHandler = function( name, reverse, $toPage, $fromPage ) {
-               if ( $fromPage ) {
-                       $fromPage.removeClass( $.mobile.activePageClass );
-               }
-               $toPage.addClass( $.mobile.activePageClass );
-
-               return $.Deferred().resolve( name, reverse, $toPage, $fromPage ).promise();
-       };
-
-       //default handler for unknown transitions
-       $.mobile.defaultTransitionHandler = $.mobile.noneTransitionHandler;
-
-       //transition handler dictionary for 3rd party transitions
-       $.mobile.transitionHandlers = {
-               none: $.mobile.defaultTransitionHandler
-       };
-
-       //enable cross-domain page support
-       $.mobile.allowCrossDomainPages = false;
-
-       //return the original document url
-       $.mobile.getDocumentUrl = function(asParsedObject) {
-               return asParsedObject ? $.extend( {}, documentUrl ) : documentUrl.href;
-       };
-
-       //return the original document base url
-       $.mobile.getDocumentBase = function(asParsedObject) {
-               return asParsedObject ? $.extend( {}, documentBase ) : documentBase.href;
-       };
-
-       $.mobile._bindPageRemove = function() {
-               var page = $(this);
-
-               // when dom caching is not enabled or the page is embedded bind to remove the page on hide
-               if( !page.data("page").options.domCache
-                               && page.is(":jqmData(external-page='true')") ) {
-
-                       page.bind( 'pagehide.remove', function() {
-                               var $this = $( this ),
-                                       prEvent = new $.Event( "pageremove" );
-
-                               $this.trigger( prEvent );
-
-                               if( !prEvent.isDefaultPrevented() ){
-                                       $this.removeWithDependents();
-                               }
-                       });
-               }
-       };
-
-       // Load a page into the DOM.
-       $.mobile.loadPage = function( url, options ) {
-               // This function uses deferred notifications to let callers
-               // know when the page is done loading, or if an error has occurred.
-               var deferred = $.Deferred(),
-
-                       // The default loadPage options with overrides specified by
-                       // the caller.
-                       settings = $.extend( {}, $.mobile.loadPage.defaults, options ),
-
-                       // The DOM element for the page after it has been loaded.
-                       page = null,
-
-                       // If the reloadPage option is true, and the page is already
-                       // in the DOM, dupCachedPage will be set to the page element
-                       // so that it can be removed after the new version of the
-                       // page is loaded off the network.
-                       dupCachedPage = null,
-
-                       // determine the current base url
-                       findBaseWithDefault = function(){
-                               var closestBase = ( $.mobile.activePage && getClosestBaseUrl( $.mobile.activePage ) );
-                               return closestBase || documentBase.hrefNoHash;
-                       },
-
-                       // The absolute version of the URL passed into the function. This
-                       // version of the URL may contain dialog/subpage params in it.
-                       absUrl = path.makeUrlAbsolute( url, findBaseWithDefault() );
-
-
-               // If the caller provided data, and we're using "get" request,
-               // append the data to the URL.
-               if ( settings.data && settings.type === "get" ) {
-                       absUrl = path.addSearchParams( absUrl, settings.data );
-                       settings.data = undefined;
-               }
-
-               // If the caller is using a "post" request, reloadPage must be true
-               if(  settings.data && settings.type === "post" ){
-                       settings.reloadPage = true;
-               }
-
-                       // The absolute version of the URL minus any dialog/subpage params.
-                       // In otherwords the real URL of the page to be loaded.
-               var fileUrl = path.getFilePath( absUrl ),
-
-                       // The version of the Url actually stored in the data-url attribute of
-                       // the page. For embedded pages, it is just the id of the page. For pages
-                       // within the same domain as the document base, it is the site relative
-                       // path. For cross-domain pages (Phone Gap only) the entire absolute Url
-                       // used to load the page.
-                       dataUrl = path.convertUrlToDataUrl( absUrl );
-
-               // Make sure we have a pageContainer to work with.
-               settings.pageContainer = settings.pageContainer || $.mobile.pageContainer;
-
-               // Check to see if the page already exists in the DOM.
-               page = settings.pageContainer.children( ":jqmData(url='" + dataUrl + "')" );
-
-               // If we failed to find the page, check to see if the url is a
-               // reference to an embedded page. If so, it may have been dynamically
-               // injected by a developer, in which case it would be lacking a data-url
-               // attribute and in need of enhancement.
-               if ( page.length === 0 && dataUrl && !path.isPath( dataUrl ) ) {
-                       page = settings.pageContainer.children( "#" + dataUrl )
-                               .attr( "data-" + $.mobile.ns + "url", dataUrl );
-               }
-
-               // If we failed to find a page in the DOM, check the URL to see if it
-               // refers to the first page in the application. If it isn't a reference
-               // to the first page and refers to non-existent embedded page, error out.
-               if ( page.length === 0 ) {
-                       if ( $.mobile.firstPage && path.isFirstPageUrl( fileUrl ) ) {
-                               // Check to make sure our cached-first-page is actually
-                               // in the DOM. Some user deployed apps are pruning the first
-                               // page from the DOM for various reasons, we check for this
-                               // case here because we don't want a first-page with an id
-                               // falling through to the non-existent embedded page error
-                               // case. If the first-page is not in the DOM, then we let
-                               // things fall through to the ajax loading code below so
-                               // that it gets reloaded.
-                               if ( $.mobile.firstPage.parent().length ) {
-                                       page = $( $.mobile.firstPage );
-                               }
-                       } else if ( path.isEmbeddedPage( fileUrl )  ) {
-                               deferred.reject( absUrl, options );
-                               return deferred.promise();
-                       }
-               }
-
-               // Reset base to the default document base.
-               if ( base ) {
-                       base.reset();
-               }
-
-               // If the page we are interested in is already in the DOM,
-               // and the caller did not indicate that we should force a
-               // reload of the file, we are done. Otherwise, track the
-               // existing page as a duplicated.
-               if ( page.length ) {
-                       if ( !settings.reloadPage ) {
-                               enhancePage( page, settings.role );
-                               deferred.resolve( absUrl, options, page );
-                               return deferred.promise();
-                       }
-                       dupCachedPage = page;
-               }
-
-               var mpc = settings.pageContainer,
-                       pblEvent = new $.Event( "pagebeforeload" ),
-                       triggerData = { url: url, absUrl: absUrl, dataUrl: dataUrl, deferred: deferred, options: settings };
-
-               // Let listeners know we're about to load a page.
-               mpc.trigger( pblEvent, triggerData );
-
-               // If the default behavior is prevented, stop here!
-               if( pblEvent.isDefaultPrevented() ){
-                       return deferred.promise();
-               }
-
-               if ( settings.showLoadMsg ) {
-
-                       // This configurable timeout allows cached pages a brief delay to load without showing a message
-                       var loadMsgDelay = setTimeout(function(){
-                                       $.mobile.showPageLoadingMsg();
-                               }, settings.loadMsgDelay ),
-
-                               // Shared logic for clearing timeout and removing message.
-                               hideMsg = function(){
-
-                                       // Stop message show timer
-                                       clearTimeout( loadMsgDelay );
-
-                                       // Hide loading message
-                                       $.mobile.hidePageLoadingMsg();
-                               };
-               }
-
-               if ( !( $.mobile.allowCrossDomainPages || path.isSameDomain( documentUrl, absUrl ) ) ) {
-                       deferred.reject( absUrl, options );
-               } else {
-                       // Load the new page.
-                       $.ajax({
-                               url: fileUrl,
-                               type: settings.type,
-                               data: settings.data,
-                               dataType: "html",
-                               success: function( html, textStatus, xhr ) {
-                                       //pre-parse html to check for a data-url,
-                                       //use it as the new fileUrl, base path, etc
-                                       var all = $( "<div></div>" ),
-
-                                               //page title regexp
-                                               newPageTitle = html.match( /<title[^>]*>([^<]*)/ ) && RegExp.$1,
-
-                                               // TODO handle dialogs again
-                                               pageElemRegex = new RegExp( "(<[^>]+\\bdata-" + $.mobile.ns + "role=[\"']?page[\"']?[^>]*>)" ),
-                                               dataUrlRegex = new RegExp( "\\bdata-" + $.mobile.ns + "url=[\"']?([^\"'>]*)[\"']?" );
-
-
-                                       // data-url must be provided for the base tag so resource requests can be directed to the
-                                       // correct url. loading into a temprorary element makes these requests immediately
-                                       if( pageElemRegex.test( html )
-                                                       && RegExp.$1
-                                                       && dataUrlRegex.test( RegExp.$1 )
-                                                       && RegExp.$1 ) {
-                                               url = fileUrl = path.getFilePath( RegExp.$1 );
-                                       }
-
-                                       if ( base ) {
-                                               base.set( fileUrl );
-                                       }
-
-                                       //workaround to allow scripts to execute when included in page divs
-                                       all.get( 0 ).innerHTML = html;
-                                       page = all.find( ":jqmData(role='page'), :jqmData(role='dialog')" ).first();
-
-                                       //if page elem couldn't be found, create one and insert the body element's contents
-                                       if( !page.length ){
-                                               page = $( "<div data-" + $.mobile.ns + "role='page'>" + html.split( /<\/?body[^>]*>/gmi )[1] + "</div>" );
-                                       }
-
-                                       if ( newPageTitle && !page.jqmData( "title" ) ) {
-                                               if ( ~newPageTitle.indexOf( "&" ) ) {
-                                                       newPageTitle = $( "<div>" + newPageTitle + "</div>" ).text();
-                                               }
-                                               page.jqmData( "title", newPageTitle );
-                                       }
-
-                                       //rewrite src and href attrs to use a base url
-                                       if( !$.support.dynamicBaseTag ) {
-                                               var newPath = path.get( fileUrl );
-                                               page.find( "[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]" ).each(function() {
-                                                       var thisAttr = $( this ).is( '[href]' ) ? 'href' :
-                                                                       $(this).is('[src]') ? 'src' : 'action',
-                                                               thisUrl = $( this ).attr( thisAttr );
-
-                                                       // XXX_jblas: We need to fix this so that it removes the document
-                                                       //            base URL, and then prepends with the new page URL.
-                                                       //if full path exists and is same, chop it - helps IE out
-                                                       thisUrl = thisUrl.replace( location.protocol + '//' + location.host + location.pathname, '' );
-
-                                                       if( !/^(\w+:|#|\/)/.test( thisUrl ) ) {
-                                                               $( this ).attr( thisAttr, newPath + thisUrl );
-                                                       }
-                                               });
-                                       }
-
-                                       //append to page and enhance
-                                       // TODO taging a page with external to make sure that embedded pages aren't removed
-                                       //      by the various page handling code is bad. Having page handling code in many
-                                       //      places is bad. Solutions post 1.0
-                                       page
-                                               .attr( "data-" + $.mobile.ns + "url", path.convertUrlToDataUrl( fileUrl ) )
-                                               .attr( "data-" + $.mobile.ns + "external-page", true )
-                                               .appendTo( settings.pageContainer );
-
-                                       // wait for page creation to leverage options defined on widget
-                                       page.one( 'pagecreate', $.mobile._bindPageRemove );
-
-                                       enhancePage( page, settings.role );
-
-                                       // Enhancing the page may result in new dialogs/sub pages being inserted
-                                       // into the DOM. If the original absUrl refers to a sub-page, that is the
-                                       // real page we are interested in.
-                                       if ( absUrl.indexOf( "&" + $.mobile.subPageUrlKey ) > -1 ) {
-                                               page = settings.pageContainer.children( ":jqmData(url='" + dataUrl + "')" );
-                                       }
-
-                                       //bind pageHide to removePage after it's hidden, if the page options specify to do so
-
-                                       // Remove loading message.
-                                       if ( settings.showLoadMsg ) {
-                                               hideMsg();
-                                       }
-
-                                       // Add the page reference and xhr to our triggerData.
-                                       triggerData.xhr = xhr;
-                                       triggerData.textStatus = textStatus;
-                                       triggerData.page = page;
-
-                                       // Let listeners know the page loaded successfully.
-                                       settings.pageContainer.trigger( "pageload", triggerData );
-
-                                       deferred.resolve( absUrl, options, page, dupCachedPage );
-                               },
-                               error: function( xhr, textStatus, errorThrown ) {
-                                       //set base back to current path
-                                       if( base ) {
-                                               base.set( path.get() );
-                                       }
-
-                                       // Add error info to our triggerData.
-                                       triggerData.xhr = xhr;
-                                       triggerData.textStatus = textStatus;
-                                       triggerData.errorThrown = errorThrown;
-
-                                       var plfEvent = new $.Event( "pageloadfailed" );
-
-                                       // Let listeners know the page load failed.
-                                       settings.pageContainer.trigger( plfEvent, triggerData );
-
-                                       // If the default behavior is prevented, stop here!
-                                       // Note that it is the responsibility of the listener/handler
-                                       // that called preventDefault(), to resolve/reject the
-                                       // deferred object within the triggerData.
-                                       if( plfEvent.isDefaultPrevented() ){
-                                               return;
-                                       }
-
-                                       // Remove loading message.
-                                       if ( settings.showLoadMsg ) {
-
-                                               // Remove loading message.
-                                               hideMsg();
-
-                                               //show error message
-                                               $( "<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>"+ $.mobile.pageLoadErrorMessage +"</h1></div>" )
-                                                       .css({ "display": "block", "opacity": 0.96, "top": $window.scrollTop() + 100 })
-                                                       .appendTo( settings.pageContainer )
-                                                       .delay( 800 )
-                                                       .fadeOut( 400, function() {
-                                                               $( this ).remove();
-                                                       });
-                                       }
-
-                                       deferred.reject( absUrl, options );
-                               }
-                       });
-               }
-
-               return deferred.promise();
-       };
-
-       $.mobile.loadPage.defaults = {
-               type: "get",
-               data: undefined,
-               reloadPage: false,
-               role: undefined, // By default we rely on the role defined by the @data-role attribute.
-               showLoadMsg: false,
-               pageContainer: undefined,
-               loadMsgDelay: 50 // This delay allows loads that pull from browser cache to occur without showing the loading message.
-       };
-
-       // Show a specific page in the page container.
-       $.mobile.changePage = function( toPage, options ) {
-               // If we are in the midst of a transition, queue the current request.
-               // We'll call changePage() once we're done with the current transition to
-               // service the request.
-               if( isPageTransitioning ) {
-                       pageTransitionQueue.unshift( arguments );
-                       return;
-               }
-
-               var settings = $.extend( {}, $.mobile.changePage.defaults, options );
-
-               // Make sure we have a pageContainer to work with.
-               settings.pageContainer = settings.pageContainer || $.mobile.pageContainer;
-
-               // Make sure we have a fromPage.
-               settings.fromPage = settings.fromPage || $.mobile.activePage;
-
-               var mpc = settings.pageContainer,
-                       pbcEvent = new $.Event( "pagebeforechange" ),
-                       triggerData = { toPage: toPage, options: settings };
-
-               // Let listeners know we're about to change the current page.
-               mpc.trigger( pbcEvent, triggerData );
-
-               // If the default behavior is prevented, stop here!
-               if( pbcEvent.isDefaultPrevented() ){
-                       return;
-               }
-
-               // We allow "pagebeforechange" observers to modify the toPage in the trigger
-               // data to allow for redirects. Make sure our toPage is updated.
-
-               toPage = triggerData.toPage;
-
-               // Set the isPageTransitioning flag to prevent any requests from
-               // entering this method while we are in the midst of loading a page
-               // or transitioning.
-
-               isPageTransitioning = true;
-
-               // If the caller passed us a url, call loadPage()
-               // to make sure it is loaded into the DOM. We'll listen
-               // to the promise object it returns so we know when
-               // it is done loading or if an error ocurred.
-               if ( typeof toPage == "string" ) {
-                       $.mobile.loadPage( toPage, settings )
-                               .done(function( url, options, newPage, dupCachedPage ) {
-                                       isPageTransitioning = false;
-                                       options.duplicateCachedPage = dupCachedPage;
-                                       $.mobile.changePage( newPage, options );
-                               })
-                               .fail(function( url, options ) {
-                                       isPageTransitioning = false;
-
-                                       //clear out the active button state
-                                       removeActiveLinkClass( true );
-
-                                       //release transition lock so navigation is free again
-                                       releasePageTransitionLock();
-                                       settings.pageContainer.trigger( "pagechangefailed", triggerData );
-                               });
-                       return;
-               }
-
-               // If we are going to the first-page of the application, we need to make
-               // sure settings.dataUrl is set to the application document url. This allows
-               // us to avoid generating a document url with an id hash in the case where the
-               // first-page of the document has an id attribute specified.
-               if ( toPage[ 0 ] === $.mobile.firstPage[ 0 ] && !settings.dataUrl ) {
-                       settings.dataUrl = documentUrl.hrefNoHash;
-               }
-
-               // The caller passed us a real page DOM element. Update our
-               // internal state and then trigger a transition to the page.
-               var fromPage = settings.fromPage,
-                       url = ( settings.dataUrl && path.convertUrlToDataUrl( settings.dataUrl ) ) || toPage.jqmData( "url" ),
-                       // The pageUrl var is usually the same as url, except when url is obscured as a dialog url. pageUrl always contains the file path
-                       pageUrl = url,
-                       fileUrl = path.getFilePath( url ),
-                       active = urlHistory.getActive(),
-                       activeIsInitialPage = urlHistory.activeIndex === 0,
-                       historyDir = 0,
-                       pageTitle = document.title,
-                       isDialog = settings.role === "dialog" || toPage.jqmData( "role" ) === "dialog";
-
-               // By default, we prevent changePage requests when the fromPage and toPage
-               // are the same element, but folks that generate content manually/dynamically
-               // and reuse pages want to be able to transition to the same page. To allow
-               // this, they will need to change the default value of allowSamePageTransition
-               // to true, *OR*, pass it in as an option when they manually call changePage().
-               // It should be noted that our default transition animations assume that the
-               // formPage and toPage are different elements, so they may behave unexpectedly.
-               // It is up to the developer that turns on the allowSamePageTransitiona option
-               // to either turn off transition animations, or make sure that an appropriate
-               // animation transition is used.
-               if( fromPage && fromPage[0] === toPage[0] && !settings.allowSamePageTransition ) {
-                       isPageTransitioning = false;
-                       mpc.trigger( "pagechange", triggerData );
-                       return;
-               }
-
-               // We need to make sure the page we are given has already been enhanced.
-               enhancePage( toPage, settings.role );
-
-               // If the changePage request was sent from a hashChange event, check to see if the
-               // page is already within the urlHistory stack. If so, we'll assume the user hit
-               // the forward/back button and will try to match the transition accordingly.
-               if( settings.fromHashChange ) {
-                       urlHistory.directHashChange({
-                               currentUrl:     url,
-                               isBack:         function() { historyDir = -1; },
-                               isForward:      function() { historyDir = 1; }
-                       });
-               }
-
-               // Kill the keyboard.
-               // XXX_jblas: We need to stop crawling the entire document to kill focus. Instead,
-               //            we should be tracking focus with a delegate() handler so we already have
-               //            the element in hand at this point.
-               // Wrap this in a try/catch block since IE9 throw "Unspecified error" if document.activeElement
-               // is undefined when we are in an IFrame.
-               try {
-                       if(document.activeElement && document.activeElement.nodeName.toLowerCase() != 'body') {
-                               $(document.activeElement).blur();
-                       } else {
-                               $( "input:focus, textarea:focus, select:focus" ).blur();
-                       }
-               } catch(e) {}
-
-               // If we're displaying the page as a dialog, we don't want the url
-               // for the dialog content to be used in the hash. Instead, we want
-               // to append the dialogHashKey to the url of the current page.
-               if ( isDialog && active ) {
-                       // on the initial page load active.url is undefined and in that case should
-                       // be an empty string. Moving the undefined -> empty string back into
-                       // urlHistory.addNew seemed imprudent given undefined better represents
-                       // the url state
-                       url = ( active.url || "" ) + dialogHashKey;
-               }
-
-               // Set the location hash.
-               if( settings.changeHash !== false && url ) {
-                       //disable hash listening temporarily
-                       urlHistory.ignoreNextHashChange = true;
-                       //update hash and history
-                       path.set( url );
-               }
-
-               // if title element wasn't found, try the page div data attr too
-               // If this is a deep-link or a reload ( active === undefined ) then just use pageTitle
-               var newPageTitle = ( !active )? pageTitle : toPage.jqmData( "title" ) || toPage.children(":jqmData(role='header')").find(".ui-title" ).getEncodedText();
-               if( !!newPageTitle && pageTitle == document.title ) {
-                       pageTitle = newPageTitle;
-               }
-               if ( !toPage.jqmData( "title" ) ) {
-                       toPage.jqmData( "title", pageTitle );
-               }
-
-               // Make sure we have a transition defined.
-               settings.transition = settings.transition
-                       || ( ( historyDir && !activeIsInitialPage ) ? active.transition : undefined )
-                       || ( isDialog ? $.mobile.defaultDialogTransition : $.mobile.defaultPageTransition );
-
-               //add page to history stack if it's not back or forward
-               if( !historyDir ) {
-                       urlHistory.addNew( url, settings.transition, pageTitle, pageUrl, settings.role );
-               }
-
-               //set page title
-               document.title = urlHistory.getActive().title;
-
-               //set "toPage" as activePage
-               $.mobile.activePage = toPage;
-
-               // If we're navigating back in the URL history, set reverse accordingly.
-               settings.reverse = settings.reverse || historyDir < 0;
-
-               transitionPages( toPage, fromPage, settings.transition, settings.reverse )
-                       .done(function() {
-                               removeActiveLinkClass();
-
-                               //if there's a duplicateCachedPage, remove it from the DOM now that it's hidden
-                               if ( settings.duplicateCachedPage ) {
-                                       settings.duplicateCachedPage.remove();
-                               }
-
-                               //remove initial build class (only present on first pageshow)
-                               $html.removeClass( "ui-mobile-rendering" );
-
-                               releasePageTransitionLock();
-
-                               // Let listeners know we're all done changing the current page.
-                               mpc.trigger( "pagechange", triggerData );
-                       });
-       };
-
-       $.mobile.changePage.defaults = {
-               transition: undefined,
-               reverse: false,
-               changeHash: true,
-               fromHashChange: false,
-               role: undefined, // By default we rely on the role defined by the @data-role attribute.
-               duplicateCachedPage: undefined,
-               pageContainer: undefined,
-               showLoadMsg: true, //loading message shows by default when pages are being fetched during changePage
-               dataUrl: undefined,
-               fromPage: undefined,
-               allowSamePageTransition: false
-       };
-
-/* Event Bindings - hashchange, submit, and click */
-       function findClosestLink( ele )
-       {
-               while ( ele ) {
-                       // Look for the closest element with a nodeName of "a".
-                       // Note that we are checking if we have a valid nodeName
-                       // before attempting to access it. This is because the
-                       // node we get called with could have originated from within
-                       // an embedded SVG document where some symbol instance elements
-                       // don't have nodeName defined on them, or strings are of type
-                       // SVGAnimatedString.
-                       if ( ( typeof ele.nodeName === "string" ) && ele.nodeName.toLowerCase() == "a" ) {
-                               break;
-                       }
-                       ele = ele.parentNode;
-               }
-               return ele;
-       }
-
-       // The base URL for any given element depends on the page it resides in.
-       function getClosestBaseUrl( ele )
-       {
-               // Find the closest page and extract out its url.
-               var url = $( ele ).closest( ".ui-page" ).jqmData( "url" ),
-                       base = documentBase.hrefNoHash;
-
-               if ( !url || !path.isPath( url ) ) {
-                       url = base;
-               }
-
-               return path.makeUrlAbsolute( url, base);
-       }
-
-       //The following event bindings should be bound after mobileinit has been triggered
-       //the following function is called in the init file
-       $.mobile._registerInternalEvents = function(){
-
-               //bind to form submit events, handle with Ajax
-               $( document ).delegate( "form", "submit", function( event ) {
-                       var $this = $( this );
-                       if( !$.mobile.ajaxEnabled ||
-                               $this.is( ":jqmData(ajax='false')" ) ) {
-                                       return;
-                               }
-
-                       var type = $this.attr( "method" ),
-                               target = $this.attr( "target" ),
-                               url = $this.attr( "action" );
-
-                       // If no action is specified, browsers default to using the
-                       // URL of the document containing the form. Since we dynamically
-                       // pull in pages from external documents, the form should submit
-                       // to the URL for the source document of the page containing
-                       // the form.
-                       if ( !url ) {
-                               // Get the @data-url for the page containing the form.
-                               url = getClosestBaseUrl( $this );
-                               if ( url === documentBase.hrefNoHash ) {
-                                       // The url we got back matches the document base,
-                                       // which means the page must be an internal/embedded page,
-                                       // so default to using the actual document url as a browser
-                                       // would.
-                                       url = documentUrl.hrefNoSearch;
-                               }
-                       }
-
-                       url = path.makeUrlAbsolute(  url, getClosestBaseUrl($this) );
-
-                       if(( path.isExternal( url ) && !path.isPermittedCrossDomainRequest(documentUrl, url)) || target ) {
-                               return;
-                       }
-
-                       $.mobile.changePage(
-                               url,
-                               {
-                                       type:           type && type.length && type.toLowerCase() || "get",
-                                       data:           $this.serialize(),
-                                       transition:     $this.jqmData( "transition" ),
-                                       direction:      $this.jqmData( "direction" ),
-                                       reloadPage:     true
-                               }
-                       );
-                       event.preventDefault();
-               });
-
-               //add active state on vclick
-               $( document ).bind( "vclick", function( event ) {
-                       // if this isn't a left click we don't care. Its important to note
-                       // that when the virtual event is generated it will create
-                       if ( event.which > 1 || !$.mobile.linkBindingEnabled ){
-                               return;
-                       }
-
-                       var link = findClosestLink( event.target );
-                       if ( link ) {
-                               if ( path.parseUrl( link.getAttribute( "href" ) || "#" ).hash !== "#" ) {
-                                       removeActiveLinkClass( true );
-                                       $activeClickedLink = $( link ).closest( ".ui-btn" ).not( ".ui-disabled" );
-                                       $activeClickedLink.addClass( $.mobile.activeBtnClass );
-                                       $( "." + $.mobile.activePageClass + " .ui-btn" ).not( link ).blur();
-                               }
-                       }
-               });
-
-               // click routing - direct to HTTP or Ajax, accordingly
-               $( document ).bind( "click", function( event ) {
-                       if( !$.mobile.linkBindingEnabled ){
-                               return;
-                       }
-
-                       var link = findClosestLink( event.target );
-
-                       // If there is no link associated with the click or its not a left
-                       // click we want to ignore the click
-                       if ( !link || event.which > 1) {
-                               return;
-                       }
-
-                       var $link = $( link ),
-                               //remove active link class if external (then it won't be there if you come back)
-                               httpCleanup = function(){
-                                       window.setTimeout( function() { removeActiveLinkClass( true ); }, 200 );
-                               };
-
-                       //if there's a data-rel=back attr, go back in history
-                       if( $link.is( ":jqmData(rel='back')" ) ) {
-                               window.history.back();
-                               return false;
-                       }
-
-                       var baseUrl = getClosestBaseUrl( $link ),
-
-                               //get href, if defined, otherwise default to empty hash
-                               href = path.makeUrlAbsolute( $link.attr( "href" ) || "#", baseUrl );
-
-                       //if ajax is disabled, exit early
-                       if( !$.mobile.ajaxEnabled && !path.isEmbeddedPage( href ) ){
-                               httpCleanup();
-                               //use default click handling
-                               return;
-                       }
-
-                       // XXX_jblas: Ideally links to application pages should be specified as
-                       //            an url to the application document with a hash that is either
-                       //            the site relative path or id to the page. But some of the
-                       //            internal code that dynamically generates sub-pages for nested
-                       //            lists and select dialogs, just write a hash in the link they
-                       //            create. This means the actual URL path is based on whatever
-                       //            the current value of the base tag is at the time this code
-                       //            is called. For now we are just assuming that any url with a
-                       //            hash in it is an application page reference.
-                       if ( href.search( "#" ) != -1 ) {
-                               href = href.replace( /[^#]*#/, "" );
-                               if ( !href ) {
-                                       //link was an empty hash meant purely
-                                       //for interaction, so we ignore it.
-                                       event.preventDefault();
-                                       return;
-                               } else if ( path.isPath( href ) ) {
-                                       //we have apath so make it the href we want to load.
-                                       href = path.makeUrlAbsolute( href, baseUrl );
-                               } else {
-                                       //we have a simple id so use the documentUrl as its base.
-                                       href = path.makeUrlAbsolute( "#" + href, documentUrl.hrefNoHash );
-                               }
-                       }
-
-                               // Should we handle this link, or let the browser deal with it?
-                       var useDefaultUrlHandling = $link.is( "[rel='external']" ) || $link.is( ":jqmData(ajax='false')" ) || $link.is( "[target]" ),
-
-                               // Some embedded browsers, like the web view in Phone Gap, allow cross-domain XHR
-                               // requests if the document doing the request was loaded via the file:// protocol.
-                               // This is usually to allow the application to "phone home" and fetch app specific
-                               // data. We normally let the browser handle external/cross-domain urls, but if the
-                               // allowCrossDomainPages option is true, we will allow cross-domain http/https
-                               // requests to go through our page loading logic.
-
-                               //check for protocol or rel and its not an embedded page
-                               //TODO overlap in logic from isExternal, rel=external check should be
-                               //     moved into more comprehensive isExternalLink
-                               isExternal = useDefaultUrlHandling || ( path.isExternal( href ) && !path.isPermittedCrossDomainRequest(documentUrl, href) );
-
-                       if( isExternal ) {
-                               httpCleanup();
-                               //use default click handling
-                               return;
-                       }
-
-                       //use ajax
-                       var transition = $link.jqmData( "transition" ),
-                               direction = $link.jqmData( "direction" ),
-                               reverse = ( direction && direction === "reverse" ) ||
-                                                       // deprecated - remove by 1.0
-                                                       $link.jqmData( "back" ),
-
-                               //this may need to be more specific as we use data-rel more
-                               role = $link.attr( "data-" + $.mobile.ns + "rel" ) || undefined;
-
-                       $.mobile.changePage( href, { transition: transition, reverse: reverse, role: role } );
-                       event.preventDefault();
-               });
-
-               //prefetch pages when anchors with data-prefetch are encountered
-               $( document ).delegate( ".ui-page", "pageshow.prefetch", function() {
-                       var urls = [];
-                       $( this ).find( "a:jqmData(prefetch)" ).each(function(){
-                               var $link = $(this),
-                                       url = $link.attr( "href" );
-
-                               if ( url && $.inArray( url, urls ) === -1 ) {
-                                       urls.push( url );
-
-                                       $.mobile.loadPage( url, {role: $link.attr("data-" + $.mobile.ns + "rel")} );
-                               }
-                       });
-               });
-
-               $.mobile._handleHashChange = function( hash ) {
-                       //find first page via hash
-                       var to = path.stripHash( hash ),
-                               //transition is false if it's the first page, undefined otherwise (and may be overridden by default)
-                               transition = $.mobile.urlHistory.stack.length === 0 ? "none" : undefined,
-
-                               // default options for the changPage calls made after examining the current state
-                               // of the page and the hash
-                               changePageOptions = {
-                                       transition: transition,
-                                       changeHash: false,
-                                       fromHashChange: true
-                               };
-
-                       //if listening is disabled (either globally or temporarily), or it's a dialog hash
-                       if( !$.mobile.hashListeningEnabled || urlHistory.ignoreNextHashChange ) {
-                               urlHistory.ignoreNextHashChange = false;
-                               return;
-                       }
-
-                       // special case for dialogs
-                       if( urlHistory.stack.length > 1 && to.indexOf( dialogHashKey ) > -1 ) {
-
-                               // If current active page is not a dialog skip the dialog and continue
-                               // in the same direction
-                               if(!$.mobile.activePage.is( ".ui-dialog" )) {
-                                       //determine if we're heading forward or backward and continue accordingly past
-                                       //the current dialog
-                                       urlHistory.directHashChange({
-                                               currentUrl: to,
-                                               isBack: function() { window.history.back(); },
-                                               isForward: function() { window.history.forward(); }
-                                       });
-
-                                       // prevent changePage()
-                                       return;
-                               } else {
-                                       // if the current active page is a dialog and we're navigating
-                                       // to a dialog use the dialog objected saved in the stack
-                                       urlHistory.directHashChange({
-                                               currentUrl: to,
-
-                                               // regardless of the direction of the history change
-                                               // do the following
-                                               either: function( isBack ) {
-                                                       var active = $.mobile.urlHistory.getActive();
-
-                                                       to = active.pageUrl;
-
-                                                       // make sure to set the role, transition and reversal
-                                                       // as most of this is lost by the domCache cleaning
-                                                       $.extend( changePageOptions, {
-                                                               role: active.role,
-                                                               transition:      active.transition,
-                                                               reverse: isBack
-                                                       });
-                                               }
-                                       });
-                               }
-                       }
-
-                       //if to is defined, load it
-                       if ( to ) {
-                               // At this point, 'to' can be one of 3 things, a cached page element from
-                               // a history stack entry, an id, or site-relative/absolute URL. If 'to' is
-                               // an id, we need to resolve it against the documentBase, not the location.href,
-                               // since the hashchange could've been the result of a forward/backward navigation
-                               // that crosses from an external page/dialog to an internal page/dialog.
-                               to = ( typeof to === "string" && !path.isPath( to ) ) ? ( path.makeUrlAbsolute( '#' + to, documentBase ) ) : to;
-                               $.mobile.changePage( to, changePageOptions );
-                       }       else {
-                               //there's no hash, go to the first page in the dom
-                               $.mobile.changePage( $.mobile.firstPage, changePageOptions );
-                       }
-               };
-
-               //hashchange event handler
-               $window.bind( "hashchange", function( e, triggered ) {
-                       $.mobile._handleHashChange( location.hash );
-               });
-
-               //set page min-heights to be device specific
-               $( document ).bind( "pageshow", resetActivePageHeight );
-               $( window ).bind( "throttledresize", resetActivePageHeight );
-
-       };//_registerInternalEvents callback
-
-})( jQuery );
-/*
-* history.pushState support, layered on top of hashchange
-*/
-
-( function( $, window ) {
-       // For now, let's Monkeypatch this onto the end of $.mobile._registerInternalEvents
-       // Scope self to pushStateHandler so we can reference it sanely within the
-       // methods handed off as event handlers
-       var     pushStateHandler = {},
-               self = pushStateHandler,
-               $win = $( window ),
-               url = $.mobile.path.parseUrl( location.href );
-
-       $.extend( pushStateHandler, {
-               // TODO move to a path helper, this is rather common functionality
-               initialFilePath: (function() {
-                       return url.pathname + url.search;
-               })(),
-
-               initialHref: url.hrefNoHash,
-
-               // Flag for tracking if a Hashchange naturally occurs after each popstate + replace
-               hashchangeFired: false,
-
-               state: function() {
-                       return {
-                               hash: location.hash || "#" + self.initialFilePath,
-                               title: document.title,
-
-                               // persist across refresh
-                               initialHref: self.initialHref
-                       };
-               },
-
-               resetUIKeys: function( url ) {
-                       var dialog = $.mobile.dialogHashKey,
-                               subkey = "&" + $.mobile.subPageUrlKey,
-                               dialogIndex = url.indexOf( dialog );
-
-                       if( dialogIndex > -1 ) {
-                               url = url.slice( 0, dialogIndex ) + "#" + url.slice( dialogIndex );
-                       } else if( url.indexOf( subkey ) > -1 ) {
-                               url = url.split( subkey ).join( "#" + subkey );
-                       }
-
-                       return url;
-               },
-
-               // TODO sort out a single barrier to hashchange functionality
-               nextHashChangePrevented: function( value ) {
-                       $.mobile.urlHistory.ignoreNextHashChange = value;
-                       self.onHashChangeDisabled = value;
-               },
-
-               // on hash change we want to clean up the url
-               // NOTE this takes place *after* the vanilla navigation hash change
-               // handling has taken place and set the state of the DOM
-               onHashChange: function( e ) {
-                       // disable this hash change
-                       if( self.onHashChangeDisabled ){
-                               return;
-                       }
-                       
-                       var href, state,
-                               hash = location.hash,
-                               isPath = $.mobile.path.isPath( hash ),
-                               resolutionUrl = isPath ? location.href : $.mobile.getDocumentUrl();
-                       hash = isPath ? hash.replace( "#", "" ) : hash;
-
-                       // propulate the hash when its not available
-                       state = self.state();
-
-                       // make the hash abolute with the current href
-                       href = $.mobile.path.makeUrlAbsolute( hash, resolutionUrl );
-
-                       if ( isPath ) {
-                               href = self.resetUIKeys( href );
-                       }
-
-                       // replace the current url with the new href and store the state
-                       // Note that in some cases we might be replacing an url with the
-                       // same url. We do this anyways because we need to make sure that
-                       // all of our history entries have a state object associated with
-                       // them. This allows us to work around the case where window.history.back()
-                       // is called to transition from an external page to an embedded page.
-                       // In that particular case, a hashchange event is *NOT* generated by the browser.
-                       // Ensuring each history entry has a state object means that onPopState()
-                       // will always trigger our hashchange callback even when a hashchange event
-                       // is not fired.
-                       history.replaceState( state, document.title, href );
-               },
-
-               // on popstate (ie back or forward) we need to replace the hash that was there previously
-               // cleaned up by the additional hash handling
-               onPopState: function( e ) {
-                       var poppedState = e.originalEvent.state, holdnexthashchange = false;
-
-                       // if there's no state its not a popstate we care about, ie chrome's initial popstate
-                       // or forward popstate
-                       if( poppedState ) {
-                               // disable any hashchange triggered by the browser
-                               self.nextHashChangePrevented( true );
-
-                               // defer our manual hashchange until after the browser fired
-                               // version has come and gone
-                               setTimeout(function() {
-                                       // make sure that the manual hash handling takes place
-                                       self.nextHashChangePrevented( false );
-
-                                       // change the page based on the hash
-                                       $.mobile._handleHashChange( poppedState.hash );
-                               }, 100);
-                       }
-               },
-
-               init: function() {
-                       $win.bind( "hashchange", self.onHashChange );
-
-                       // Handle popstate events the occur through history changes
-                       $win.bind( "popstate", self.onPopState );
-
-                       // if there's no hash, we need to replacestate for returning to home
-                       if ( location.hash === "" ) {
-                               history.replaceState( self.state(), document.title, location.href );
-                       }
-               }
-       });
-
-       $( function() {
-               if( $.mobile.pushStateEnabled && $.support.pushState ){
-                       pushStateHandler.init();
-               }
-       });
-})( jQuery, this );
-/*
-* "transitions" plugin - Page change tranistions
-*/
-
-(function( $, window, undefined ) {
-
-function css3TransitionHandler( name, reverse, $to, $from ) {
-
-       var deferred = new $.Deferred(),
-               reverseClass = reverse ? " reverse" : "",
-               viewportClass = "ui-mobile-viewport-transitioning viewport-" + name,
-               doneFunc = function() {
-
-                       $to.add( $from ).removeClass( "out in reverse " + name );
-
-                       if ( $from && $from[ 0 ] !== $to[ 0 ] ) {
-                               $from.removeClass( $.mobile.activePageClass );
-                       }
-
-                       $to.parent().removeClass( viewportClass );
-
-                       deferred.resolve( name, reverse, $to, $from );
-               };
-
-       $to.animationComplete( doneFunc );
-
-       $to.parent().addClass( viewportClass );
-
-       if ( $from ) {
-               $from.addClass( name + " out" + reverseClass );
-       }
-       $to.addClass( $.mobile.activePageClass + " " + name + " in" + reverseClass );
-
-       return deferred.promise();
-}
-
-// Make our transition handler public.
-$.mobile.css3TransitionHandler = css3TransitionHandler;
-
-// If the default transition handler is the 'none' handler, replace it with our handler.
-if ( $.mobile.defaultTransitionHandler === $.mobile.noneTransitionHandler ) {
-       $.mobile.defaultTransitionHandler = css3TransitionHandler;
-}
-
-})( jQuery, this );
-/*
-* "degradeInputs" plugin - degrades inputs to another type after custom enhancements are made.
-*/
-
-(function( $, undefined ) {
-
-$.mobile.page.prototype.options.degradeInputs = {
-       color: false,
-       date: false,
-       datetime: false,
-       "datetime-local": false,
-       email: false,
-       month: false,
-       number: false,
-       range: "number",
-       search: "text",
-       tel: false,
-       time: false,
-       url: false,
-       week: false
-};
-
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-
-       var page = $.mobile.closestPageData( $(e.target) );
-
-       if( !page ) {
-               return;
-       }
-
-       options = page.options;
-
-       // degrade inputs to avoid poorly implemented native functionality
-       $( e.target ).find( "input" ).not( page.keepNativeSelector() ).each(function() {
-               var $this = $( this ),
-                       type = this.getAttribute( "type" ),
-                       optType = options.degradeInputs[ type ] || "text";
-
-               if ( options.degradeInputs[ type ] ) {
-                       var html = $( "<div>" ).html( $this.clone() ).html(),
-                               // In IE browsers, the type sometimes doesn't exist in the cloned markup, so we replace the closing tag instead
-                               hasType = html.indexOf( " type=" ) > -1,
-                               findstr = hasType ? /\s+type=["']?\w+['"]?/ : /\/?>/,
-                               repstr = " type=\"" + optType + "\" data-" + $.mobile.ns + "type=\"" + type + "\"" + ( hasType ? "" : ">" );
-
-                       $this.replaceWith( html.replace( findstr, repstr ) );
-               }
-       });
-
-});
-
-})( jQuery );/*
-* "dialog" plugin.
-*/
-
-(function( $, window, undefined ) {
-
-$.widget( "mobile.dialog", $.mobile.widget, {
-       options: {
-               closeBtnText    : "Close",
-               overlayTheme    : "a",
-               initSelector    : ":jqmData(role='dialog')"
-       },
-       _create: function() {
-               var self = this,
-                       $el = this.element,
-                       headerCloseButton = $( "<a href='#' data-" + $.mobile.ns + "icon='delete' data-" + $.mobile.ns + "iconpos='notext'>"+ this.options.closeBtnText + "</a>" );
-
-               $el.addClass( "ui-overlay-" + this.options.overlayTheme );
-
-               // Class the markup for dialog styling
-               // Set aria role
-               $el.attr( "role", "dialog" )
-                       .addClass( "ui-dialog" )
-                       .find( ":jqmData(role='header')" )
-                       .addClass( "ui-corner-top ui-overlay-shadow" )
-                               .prepend( headerCloseButton )
-                       .end()
-                       .find( ":jqmData(role='content'),:jqmData(role='footer')" )
-                               .addClass( "ui-overlay-shadow" )
-                               .last()
-                               .addClass( "ui-corner-bottom" );
-
-               // this must be an anonymous function so that select menu dialogs can replace
-               // the close method. This is a change from previously just defining data-rel=back
-               // on the button and letting nav handle it
-               //
-               // Use click rather than vclick in order to prevent the possibility of unintentionally
-               // reopening the dialog if the dialog opening item was directly under the close button.
-               headerCloseButton.bind( "click", function() {
-                       self.close();
-               });
-
-               /* bind events
-                       - clicks and submits should use the closing transition that the dialog opened with
-                         unless a data-transition is specified on the link/form
-                       - if the click was on the close button, or the link has a data-rel="back" it'll go back in history naturally
-               */
-               $el.bind( "vclick submit", function( event ) {
-                       var $target = $( event.target ).closest( event.type === "vclick" ? "a" : "form" ),
-                               active;
-
-                       if ( $target.length && !$target.jqmData( "transition" ) ) {
-
-                               active = $.mobile.urlHistory.getActive() || {};
-
-                               $target.attr( "data-" + $.mobile.ns + "transition", ( active.transition || $.mobile.defaultDialogTransition ) )
-                                       .attr( "data-" + $.mobile.ns + "direction", "reverse" );
-                       }
-               })
-               .bind( "pagehide", function() {
-                       $( this ).find( "." + $.mobile.activeBtnClass ).removeClass( $.mobile.activeBtnClass );
-               });
-       },
-
-       // Close method goes back in history
-       close: function() {
-               window.history.back();
-       }
-});
-
-//auto self-init widgets
-$( document ).delegate( $.mobile.dialog.prototype.options.initSelector, "pagecreate", function(){
-       $( this ).dialog();
-});
-
-})( jQuery, this );
-/*
-* This plugin handles theming and layout of headers, footers, and content areas
-*/
-
-(function( $, undefined ) {
-
-$.mobile.page.prototype.options.backBtnText  = "Back";
-$.mobile.page.prototype.options.addBackBtn   = false;
-$.mobile.page.prototype.options.backBtnTheme = null;
-$.mobile.page.prototype.options.headerTheme  = "a";
-$.mobile.page.prototype.options.footerTheme  = "a";
-$.mobile.page.prototype.options.contentTheme = null;
-
-$( document ).delegate( ":jqmData(role='page'), :jqmData(role='dialog')", "pagecreate", function( e ) {
-       
-       var $page = $( this ),
-               o = $page.data( "page" ).options,
-               pageRole = $page.jqmData( "role" ),
-               pageTheme = o.theme;
-       
-       $( ":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')", this ).each(function() {
-               var $this = $( this ),
-                       role = $this.jqmData( "role" ),
-                       theme = $this.jqmData( "theme" ),
-                       contentTheme = theme || o.contentTheme || ( pageRole === "dialog" && pageTheme ),
-                       $headeranchors,
-                       leftbtn,
-                       rightbtn,
-                       backBtn;
-                       
-               $this.addClass( "ui-" + role ); 
-
-               //apply theming and markup modifications to page,header,content,footer
-               if ( role === "header" || role === "footer" ) {
-                       
-                       var thisTheme = theme || ( role === "header" ? o.headerTheme : o.footerTheme ) || pageTheme;
-
-                       $this
-                               //add theme class
-                               .addClass( "ui-bar-" + thisTheme )
-                               // Add ARIA role
-                               .attr( "role", role === "header" ? "banner" : "contentinfo" );
-
-                       // Right,left buttons
-                       $headeranchors  = $this.children( "a" );
-                       leftbtn = $headeranchors.hasClass( "ui-btn-left" );
-                       rightbtn = $headeranchors.hasClass( "ui-btn-right" );
-
-                       leftbtn = leftbtn || $headeranchors.eq( 0 ).not( ".ui-btn-right" ).addClass( "ui-btn-left" ).length;
-                       
-                       rightbtn = rightbtn || $headeranchors.eq( 1 ).addClass( "ui-btn-right" ).length;
-                       
-                       // Auto-add back btn on pages beyond first view
-                       if ( o.addBackBtn && 
-                               role === "header" &&
-                               $( ".ui-page" ).length > 1 &&
-                               $this.jqmData( "url" ) !== $.mobile.path.stripHash( location.hash ) &&
-                               !leftbtn ) {
-
-                               backBtn = $( "<a href='#' class='ui-btn-left' data-"+ $.mobile.ns +"rel='back' data-"+ $.mobile.ns +"icon='arrow-l'>"+ o.backBtnText +"</a>" )
-                                       // If theme is provided, override default inheritance
-                                       .attr( "data-"+ $.mobile.ns +"theme", o.backBtnTheme || thisTheme )
-                                       .prependTo( $this );                            
-                       }
-
-                       // Page title
-                       $this.children( "h1, h2, h3, h4, h5, h6" )
-                               .addClass( "ui-title" )
-                               // Regardless of h element number in src, it becomes h1 for the enhanced page
-                               .attr({
-                                       "tabindex": "0",
-                                       "role": "heading",
-                                       "aria-level": "1"
-                               });
-
-               } else if ( role === "content" ) {
-                       if ( contentTheme ) {
-                           $this.addClass( "ui-body-" + ( contentTheme ) );
-                       }
-
-                       // Add ARIA role
-                       $this.attr( "role", "main" );
-               }
-       });
-});
-
-})( jQuery );/*
-* "collapsible" plugin
-*/
-
-(function( $, undefined ) {
-
-$.widget( "mobile.collapsible", $.mobile.widget, {
-       options: {
-               expandCueText: " click to expand contents",
-               collapseCueText: " click to collapse contents",
-               collapsed: true,
-               heading: "h1,h2,h3,h4,h5,h6,legend",
-               theme: null,
-               contentTheme: null,
-               iconTheme: "d",
-               initSelector: ":jqmData(role='collapsible')"
-       },
-       _create: function() {
-
-               var $el = this.element,
-                       o = this.options,
-                       collapsible = $el.addClass( "ui-collapsible" ),
-                       collapsibleHeading = $el.children( o.heading ).first(),
-                       collapsibleContent = collapsible.wrapInner( "<div class='ui-collapsible-content'></div>" ).find( ".ui-collapsible-content" ),
-                       collapsibleSet = $el.closest( ":jqmData(role='collapsible-set')" ).addClass( "ui-collapsible-set" );
-
-               // Replace collapsibleHeading if it's a legend
-               if ( collapsibleHeading.is( "legend" ) ) {
-                       collapsibleHeading = $( "<div role='heading'>"+ collapsibleHeading.html() +"</div>" ).insertBefore( collapsibleHeading );
-                       collapsibleHeading.next().remove();
-               }
-
-               // If we are in a collapsible set
-               if ( collapsibleSet.length ) {
-                       // Inherit the theme from collapsible-set
-                       if ( !o.theme ) {
-                               o.theme = collapsibleSet.jqmData( "theme" );
-                       }
-                       // Inherit the content-theme from collapsible-set
-                       if ( !o.contentTheme ) {
-                               o.contentTheme = collapsibleSet.jqmData( "content-theme" );
-                       }
-               }
-
-               collapsibleContent.addClass( ( o.contentTheme ) ? ( "ui-body-" + o.contentTheme ) : "");
-
-               collapsibleHeading
-                       //drop heading in before content
-                       .insertBefore( collapsibleContent )
-                       //modify markup & attributes
-                       .addClass( "ui-collapsible-heading" )
-                       .append( "<span class='ui-collapsible-heading-status'></span>" )
-                       .wrapInner( "<a href='#' class='ui-collapsible-heading-toggle'></a>" )
-                       .find( "a" )
-                               .first()
-                               .buttonMarkup({
-                                       shadow: false,
-                                       corners: false,
-                                       iconPos: "left",
-                                       icon: "plus",
-                                       theme: o.theme
-                               })
-                       .add( ".ui-btn-inner" )
-                               .addClass( "ui-corner-top ui-corner-bottom" );
-
-               //events
-               collapsible
-                       .bind( "expand collapse", function( event ) {
-                               if ( !event.isDefaultPrevented() ) {
-
-                                       event.preventDefault();
-
-                                       var $this = $( this ),
-                                               isCollapse = ( event.type === "collapse" ),
-                                           contentTheme = o.contentTheme;
-
-                                       collapsibleHeading
-                                               .toggleClass( "ui-collapsible-heading-collapsed", isCollapse)
-                                               .find( ".ui-collapsible-heading-status" )
-                                                       .text( isCollapse ? o.expandCueText : o.collapseCueText )
-                                               .end()
-                                               .find( ".ui-icon" )
-                                                       .toggleClass( "ui-icon-minus", !isCollapse )
-                                                       .toggleClass( "ui-icon-plus", isCollapse );
-
-                                       $this.toggleClass( "ui-collapsible-collapsed", isCollapse );
-                                       collapsibleContent.toggleClass( "ui-collapsible-content-collapsed", isCollapse ).attr( "aria-hidden", isCollapse );
-
-                                       if ( contentTheme && ( !collapsibleSet.length || collapsible.jqmData( "collapsible-last" ) ) ) {
-                                               collapsibleHeading
-                                                       .find( "a" ).first().add( collapsibleHeading.find( ".ui-btn-inner" ) )
-                                                       .toggleClass( "ui-corner-bottom", isCollapse );
-                                               collapsibleContent.toggleClass( "ui-corner-bottom", !isCollapse );
-                                       }
-                                       collapsibleContent.trigger( "updatelayout" );
-                               }
-                       })
-                       .trigger( o.collapsed ? "collapse" : "expand" );
-
-               collapsibleHeading
-                       .bind( "click", function( event ) {
-
-                               var type = collapsibleHeading.is( ".ui-collapsible-heading-collapsed" ) ?
-                                                                               "expand" : "collapse";
-
-                               collapsible.trigger( type );
-
-                               event.preventDefault();
-                       });
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $( $.mobile.collapsible.prototype.options.initSelector, e.target ).collapsible();
-});
-
-})( jQuery );
-/*
-* "collapsibleset" plugin
-*/
-
-(function( $, undefined ) {
-
-$.widget( "mobile.collapsibleset", $.mobile.widget, {
-       options: {
-               initSelector: ":jqmData(role='collapsible-set')"
-       },
-       _create: function() {
-               var $el = this.element.addClass( "ui-collapsible-set" ),
-                       o = this.options,
-                       collapsiblesInSet = $el.children( ":jqmData(role='collapsible')" );
-
-               // Inherit the theme from collapsible-set
-               if ( !o.theme ) {
-                       o.theme = $el.jqmData( "theme" );
-               }
-               // Inherit the content-theme from collapsible-set
-               if ( !o.contentTheme ) {
-                       o.contentTheme = $el.jqmData( "content-theme" );
-               }
-
-               // Initialize the collapsible set if it's not already initialized
-               if ( !$el.jqmData( "collapsiblebound" ) ) {
-
-                       $el
-                               .jqmData( "collapsiblebound", true )
-                               .bind( "expand collapse", function( event ) {
-                                       var isCollapse = ( event.type === "collapse" ),
-                                               collapsible = $( event.target ).closest( ".ui-collapsible" ),
-                                               widget = collapsible.data( "collapsible" ),
-                                           contentTheme = widget.options.contentTheme;
-                                       if ( contentTheme && collapsible.jqmData( "collapsible-last" ) ) {
-                                               collapsible.find( widget.options.heading ).first()
-                                                       .find( "a" ).first()
-                                                       .add( ".ui-btn-inner" )
-                                                       .toggleClass( "ui-corner-bottom", isCollapse );
-                                               collapsible.find( ".ui-collapsible-content" ).toggleClass( "ui-corner-bottom", !isCollapse );
-                                       }
-                               })
-                               .bind( "expand", function( event ) {
-                                       $( event.target )
-                                               .closest( ".ui-collapsible" )
-                                               .siblings( ".ui-collapsible" )
-                                               .trigger( "collapse" );
-
-                               });
-
-                       // clean up borders
-                       collapsiblesInSet.each( function() {
-                               $( this ).find( $.mobile.collapsible.prototype.options.heading )
-                                       .find( "a" ).first()
-                                       .add( ".ui-btn-inner" )
-                                       .removeClass( "ui-corner-top ui-corner-bottom" );
-                       });
-
-                       collapsiblesInSet.first()
-                               .find( "a" )
-                                       .first()
-                                       .addClass( "ui-corner-top" )
-                                               .find( ".ui-btn-inner" )
-                                                       .addClass( "ui-corner-top" );
-
-                       collapsiblesInSet.last()
-                               .jqmData( "collapsible-last", true )
-                               .find( "a" )
-                                       .first()
-                                       .addClass( "ui-corner-bottom" )
-                                               .find( ".ui-btn-inner" )
-                                                       .addClass( "ui-corner-bottom" );
-               }
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $( $.mobile.collapsibleset.prototype.options.initSelector, e.target ).collapsibleset();
-});
-
-})( jQuery );
-/*
-* "fieldcontain" plugin - simple class additions to make form row separators
-*/
-
-(function( $, undefined ) {
-
-$.fn.fieldcontain = function( options ) {
-       return this.addClass( "ui-field-contain ui-body ui-br" );
-};
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $( ":jqmData(role='fieldcontain')", e.target ).fieldcontain();
-});
-
-})( jQuery );/*
-* plugin for creating CSS grids
-*/
-
-(function( $, undefined ) {
-
-$.fn.grid = function( options ) {
-       return this.each(function() {
-
-               var $this = $( this ),
-                       o = $.extend({
-                               grid: null
-                       },options),
-                       $kids = $this.children(),
-                       gridCols = {solo:1, a:2, b:3, c:4, d:5},
-                       grid = o.grid,
-                       iterator;
-
-                       if ( !grid ) {
-                               if ( $kids.length <= 5 ) {
-                                       for ( var letter in gridCols ) {
-                                               if ( gridCols[ letter ] === $kids.length ) {
-                                                       grid = letter;
-                                               }
-                                       }
-                               } else {
-                                       grid = "a";
-                               }
-                       }
-                       iterator = gridCols[grid];
-
-               $this.addClass( "ui-grid-" + grid );
-
-               $kids.filter( ":nth-child(" + iterator + "n+1)" ).addClass( "ui-block-a" );
-
-               if ( iterator > 1 ) {
-                       $kids.filter( ":nth-child(" + iterator + "n+2)" ).addClass( "ui-block-b" );
-               }
-               if ( iterator > 2 ) {
-                       $kids.filter( ":nth-child(3n+3)" ).addClass( "ui-block-c" );
-               }
-               if ( iterator > 3 ) {
-                       $kids.filter( ":nth-child(4n+4)" ).addClass( "ui-block-d" );
-               }
-               if ( iterator > 4 ) {
-                       $kids.filter( ":nth-child(5n+5)" ).addClass( "ui-block-e" );
-               }
-       });
-};
-})( jQuery );/*
-* "navbar" plugin
-*/
-
-(function( $, undefined ) {
-
-$.widget( "mobile.navbar", $.mobile.widget, {
-       options: {
-               iconpos: "top",
-               grid: null,
-               initSelector: ":jqmData(role='navbar')"
-       },
-
-       _create: function(){
-
-               var $navbar = this.element,
-                       $navbtns = $navbar.find( "a" ),
-                       iconpos = $navbtns.filter( ":jqmData(icon)" ).length ?
-                                                                       this.options.iconpos : undefined;
-
-               $navbar.addClass( "ui-navbar" )
-                       .attr( "role","navigation" )
-                       .find( "ul" )
-                               .grid({ grid: this.options.grid });
-
-               if ( !iconpos ) {
-                       $navbar.addClass( "ui-navbar-noicons" );
-               }
-
-               $navbtns.buttonMarkup({
-                       corners:        false,
-                       shadow:         false,
-                       iconpos:        iconpos
-               });
-
-               $navbar.delegate( "a", "vclick", function( event ) {
-                       if( !$(event.target).hasClass("ui-disabled") ) {
-                               $navbtns.not( ".ui-state-persist" ).removeClass( $.mobile.activeBtnClass );
-                               $( this ).addClass( $.mobile.activeBtnClass );
-                       }
-               });
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $( $.mobile.navbar.prototype.options.initSelector, e.target ).navbar();
-});
-
-})( jQuery );
-/*
-* "listview" plugin
-*/
-
-(function( $, undefined ) {
-
-//Keeps track of the number of lists per page UID
-//This allows support for multiple nested list in the same page
-//https://github.com/jquery/jquery-mobile/issues/1617
-var listCountPerPage = {};
-
-$.widget( "mobile.listview", $.mobile.widget, {
-       options: {
-               theme: null,
-               countTheme: "c",
-               headerTheme: "b",
-               dividerTheme: "b",
-               splitIcon: "arrow-r",
-               splitTheme: "b",
-               inset: false,
-               initSelector: ":jqmData(role='listview')"
-       },
-
-       _create: function() {
-               var t = this;
-
-               // create listview markup
-               t.element.addClass(function( i, orig ) {
-                       return orig + " ui-listview " + ( t.options.inset ? " ui-listview-inset ui-corner-all ui-shadow " : "" );
-               });
-
-               t.refresh( true );
-       },
-
-       _removeCorners: function( li, which ) {
-               var top = "ui-corner-top ui-corner-tr ui-corner-tl",
-                       bot = "ui-corner-bottom ui-corner-br ui-corner-bl";
-
-               li = li.add( li.find( ".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb" ) );
-
-               if ( which === "top" ) {
-                       li.removeClass( top );
-               } else if ( which === "bottom" ) {
-                       li.removeClass( bot );
-               } else {
-                       li.removeClass( top + " " + bot );
-               }
-       },
-
-       _refreshCorners: function( create ) {
-               var $li,
-                       $visibleli,
-                       $topli,
-                       $bottomli;
-
-               if ( this.options.inset ) {
-                       $li = this.element.children( "li" );
-                       // at create time the li are not visible yet so we need to rely on .ui-screen-hidden
-                       $visibleli = create?$li.not( ".ui-screen-hidden" ):$li.filter( ":visible" );
-
-                       this._removeCorners( $li );
-
-                       // Select the first visible li element
-                       $topli = $visibleli.first()
-                               .addClass( "ui-corner-top" );
-
-                       $topli.add( $topli.find( ".ui-btn-inner" )
-                                       .not( ".ui-li-link-alt span:first-child" ) )
-                                .addClass( "ui-corner-top" )
-                                .end()
-                               .find( ".ui-li-link-alt, .ui-li-link-alt span:first-child" )
-                                       .addClass( "ui-corner-tr" )
-                               .end()
-                               .find( ".ui-li-thumb" )
-                                       .not(".ui-li-icon")
-                                       .addClass( "ui-corner-tl" );
-
-                       // Select the last visible li element
-                       $bottomli = $visibleli.last()
-                               .addClass( "ui-corner-bottom" );
-
-                       $bottomli.add( $bottomli.find( ".ui-btn-inner" ) )
-                               .find( ".ui-li-link-alt" )
-                                       .addClass( "ui-corner-br" )
-                               .end()
-                               .find( ".ui-li-thumb" )
-                                       .not(".ui-li-icon")
-                                       .addClass( "ui-corner-bl" );
-               }
-               if ( !create ) {
-                       this.element.trigger( "updatelayout" );
-               }
-       },
-
-       // This is a generic utility method for finding the first
-       // node with a given nodeName. It uses basic DOM traversal
-       // to be fast and is meant to be a substitute for simple
-       // $.fn.closest() and $.fn.children() calls on a single
-       // element. Note that callers must pass both the lowerCase
-       // and upperCase version of the nodeName they are looking for.
-       // The main reason for this is that this function will be
-       // called many times and we want to avoid having to lowercase
-       // the nodeName from the element every time to ensure we have
-       // a match. Note that this function lives here for now, but may
-       // be moved into $.mobile if other components need a similar method.
-       _findFirstElementByTagName: function( ele, nextProp, lcName, ucName )
-       {
-               var dict = {};
-               dict[ lcName ] = dict[ ucName ] = true;
-               while ( ele ) {
-                       if ( dict[ ele.nodeName ] ) {
-                               return ele;
-                       }
-                       ele = ele[ nextProp ];
-               }
-               return null;
-       },
-       _getChildrenByTagName: function( ele, lcName, ucName )
-       {
-               var results = [],
-                       dict = {};
-               dict[ lcName ] = dict[ ucName ] = true;
-               ele = ele.firstChild;
-               while ( ele ) {
-                       if ( dict[ ele.nodeName ] ) {
-                               results.push( ele );
-                       }
-                       ele = ele.nextSibling;
-               }
-               return $( results );
-       },
-
-       _addThumbClasses: function( containers )
-       {
-               var i, img, len = containers.length;
-               for ( i = 0; i < len; i++ ) {
-                       img = $( this._findFirstElementByTagName( containers[ i ].firstChild, "nextSibling", "img", "IMG" ) );
-                       if ( img.length ) {
-                               img.addClass( "ui-li-thumb" );
-                               $( this._findFirstElementByTagName( img[ 0 ].parentNode, "parentNode", "li", "LI" ) ).addClass( img.is( ".ui-li-icon" ) ? "ui-li-has-icon" : "ui-li-has-thumb" );
-                       }
-               }
-       },
-
-       refresh: function( create ) {
-               this.parentPage = this.element.closest( ".ui-page" );
-               this._createSubPages();
-
-               var o = this.options,
-                       $list = this.element,
-                       self = this,
-                       dividertheme = $list.jqmData( "dividertheme" ) || o.dividerTheme,
-                       listsplittheme = $list.jqmData( "splittheme" ),
-                       listspliticon = $list.jqmData( "spliticon" ),
-                       li = this._getChildrenByTagName( $list[ 0 ], "li", "LI" ),
-                       counter = $.support.cssPseudoElement || !$.nodeName( $list[ 0 ], "ol" ) ? 0 : 1,
-                       itemClassDict = {},
-                       item, itemClass, itemTheme,
-                       a, last, splittheme, countParent, icon, imgParents, img;
-
-               if ( counter ) {
-                       $list.find( ".ui-li-dec" ).remove();
-               }
-               
-               if ( !o.theme ) {
-                       o.theme = $.mobile.getInheritedTheme( this.element, "c" );
-               }
-
-               for ( var pos = 0, numli = li.length; pos < numli; pos++ ) {
-                       item = li.eq( pos );
-                       itemClass = "ui-li";
-
-                       // If we're creating the element, we update it regardless
-                       if ( create || !item.hasClass( "ui-li" ) ) {
-                               itemTheme = item.jqmData("theme") || o.theme;
-                               a = this._getChildrenByTagName( item[ 0 ], "a", "A" );
-
-                               if ( a.length ) {
-                                       icon = item.jqmData("icon");
-
-                                       item.buttonMarkup({
-                                               wrapperEls: "div",
-                                               shadow: false,
-                                               corners: false,
-                                               iconpos: "right",
-                                               icon: a.length > 1 || icon === false ? false : icon || "arrow-r",
-                                               theme: itemTheme
-                                       });
-
-                                       if ( ( icon != false ) && ( a.length == 1 ) ) {
-                                               item.addClass( "ui-li-has-arrow" );
-                                       }
-
-                                       a.first().addClass( "ui-link-inherit" );
-
-                                       if ( a.length > 1 ) {
-                                               itemClass += " ui-li-has-alt";
-
-                                               last = a.last();
-                                               splittheme = listsplittheme || last.jqmData( "theme" ) || o.splitTheme;
-
-                                               last.appendTo(item)
-                                                       .attr( "title", last.getEncodedText() )
-                                                       .addClass( "ui-li-link-alt" )
-                                                       .empty()
-                                                       .buttonMarkup({
-                                                               shadow: false,
-                                                               corners: false,
-                                                               theme: itemTheme,
-                                                               icon: false,
-                                                               iconpos: false
-                                                       })
-                                                       .find( ".ui-btn-inner" )
-                                                               .append(
-                                                                       $( document.createElement( "span" ) ).buttonMarkup({
-                                                                               shadow: true,
-                                                                               corners: true,
-                                                                               theme: splittheme,
-                                                                               iconpos: "notext",
-                                                                               icon: listspliticon || last.jqmData( "icon" ) || o.splitIcon
-                                                                       })
-                                                               );
-                                       }
-                               } else if ( item.jqmData( "role" ) === "list-divider" ) {
-
-                                       itemClass += " ui-li-divider ui-btn ui-bar-" + dividertheme;
-                                       item.attr( "role", "heading" );
-
-                                       //reset counter when a divider heading is encountered
-                                       if ( counter ) {
-                                               counter = 1;
-                                       }
-
-                               } else {
-                                       itemClass += " ui-li-static ui-body-" + itemTheme;
-                               }
-                       }
-
-                       if ( counter && itemClass.indexOf( "ui-li-divider" ) < 0 ) {
-                               countParent = item.is( ".ui-li-static:first" ) ? item : item.find( ".ui-link-inherit" );
-
-                               countParent.addClass( "ui-li-jsnumbering" )
-                                       .prepend( "<span class='ui-li-dec'>" + (counter++) + ". </span>" );
-                       }
-
-                       // Instead of setting item class directly on the list item and its
-                       // btn-inner at this point in time, push the item into a dictionary
-                       // that tells us what class to set on it so we can do this after this
-                       // processing loop is finished.
-
-                       if ( !itemClassDict[ itemClass ] ) {
-                               itemClassDict[ itemClass ] = [];
-                       }
-
-                       itemClassDict[ itemClass ].push( item[ 0 ] );
-               }
-
-               // Set the appropriate listview item classes on each list item
-               // and their btn-inner elements. The main reason we didn't do this
-               // in the for-loop above is because we can eliminate per-item function overhead
-               // by calling addClass() and children() once or twice afterwards. This
-               // can give us a significant boost on platforms like WP7.5.
-
-               for ( itemClass in itemClassDict ) {
-                       $( itemClassDict[ itemClass ] ).addClass( itemClass ).children( ".ui-btn-inner" ).addClass( itemClass );
-               }
-
-               $list.find( "h1, h2, h3, h4, h5, h6" ).addClass( "ui-li-heading" )
-                       .end()
-
-                       .find( "p, dl" ).addClass( "ui-li-desc" )
-                       .end()
-
-                       .find( ".ui-li-aside" ).each(function() {
-                                       var $this = $(this);
-                                       $this.prependTo( $this.parent() ); //shift aside to front for css float
-                               })
-                       .end()
-
-                       .find( ".ui-li-count" ).each( function() {
-                                       $( this ).closest( "li" ).addClass( "ui-li-has-count" );
-                               }).addClass( "ui-btn-up-" + ( $list.jqmData( "counttheme" ) || this.options.countTheme) + " ui-btn-corner-all" );
-
-               // The idea here is to look at the first image in the list item
-               // itself, and any .ui-link-inherit element it may contain, so we
-               // can place the appropriate classes on the image and list item.
-               // Note that we used to use something like:
-               //
-               //    li.find(">img:eq(0), .ui-link-inherit>img:eq(0)").each( ... );
-               //
-               // But executing a find() like that on Windows Phone 7.5 took a
-               // really long time. Walking things manually with the code below
-               // allows the 400 listview item page to load in about 3 seconds as
-               // opposed to 30 seconds.
-
-               this._addThumbClasses( li );
-               this._addThumbClasses( $list.find( ".ui-link-inherit" ) );
-
-               this._refreshCorners( create );
-       },
-
-       //create a string for ID/subpage url creation
-       _idStringEscape: function( str ) {
-               return str.replace(/[^a-zA-Z0-9]/g, '-');
-       },
-
-       _createSubPages: function() {
-               var parentList = this.element,
-                       parentPage = parentList.closest( ".ui-page" ),
-                       parentUrl = parentPage.jqmData( "url" ),
-                       parentId = parentUrl || parentPage[ 0 ][ $.expando ],
-                       parentListId = parentList.attr( "id" ),
-                       o = this.options,
-                       dns = "data-" + $.mobile.ns,
-                       self = this,
-                       persistentFooterID = parentPage.find( ":jqmData(role='footer')" ).jqmData( "id" ),
-                       hasSubPages;
-
-               if ( typeof listCountPerPage[ parentId ] === "undefined" ) {
-                       listCountPerPage[ parentId ] = -1;
-               }
-
-               parentListId = parentListId || ++listCountPerPage[ parentId ];
-
-               $( parentList.find( "li>ul, li>ol" ).toArray().reverse() ).each(function( i ) {
-                       var self = this,
-                               list = $( this ),
-                               listId = list.attr( "id" ) || parentListId + "-" + i,
-                               parent = list.parent(),
-                               nodeEls = $( list.prevAll().toArray().reverse() ),
-                               nodeEls = nodeEls.length ? nodeEls : $( "<span>" + $.trim(parent.contents()[ 0 ].nodeValue) + "</span>" ),
-                               title = nodeEls.first().getEncodedText(),//url limits to first 30 chars of text
-                               id = ( parentUrl || "" ) + "&" + $.mobile.subPageUrlKey + "=" + listId,
-                               theme = list.jqmData( "theme" ) || o.theme,
-                               countTheme = list.jqmData( "counttheme" ) || parentList.jqmData( "counttheme" ) || o.countTheme,
-                               newPage, anchor;
-
-                       //define hasSubPages for use in later removal
-                       hasSubPages = true;
-
-                       newPage = list.detach()
-                                               .wrap( "<div " + dns + "role='page' " + dns + "url='" + id + "' " + dns + "theme='" + theme + "' " + dns + "count-theme='" + countTheme + "'><div " + dns + "role='content'></div></div>" )
-                                               .parent()
-                                                       .before( "<div " + dns + "role='header' " + dns + "theme='" + o.headerTheme + "'><div class='ui-title'>" + title + "</div></div>" )
-                                                       .after( persistentFooterID ? $( "<div " + dns + "role='footer' " + dns + "id='"+ persistentFooterID +"'>") : "" )
-                                                       .parent()
-                                                               .appendTo( $.mobile.pageContainer );
-
-                       newPage.page();
-
-                       anchor = parent.find('a:first');
-
-                       if ( !anchor.length ) {
-                               anchor = $( "<a/>" ).html( nodeEls || title ).prependTo( parent.empty() );
-                       }
-
-                       anchor.attr( "href", "#" + id );
-
-               }).listview();
-
-               // on pagehide, remove any nested pages along with the parent page, as long as they aren't active
-               // and aren't embedded
-               if( hasSubPages &&
-                       parentPage.is( ":jqmData(external-page='true')" ) &&
-                       parentPage.data("page").options.domCache === false ) {
-
-                       var newRemove = function( e, ui ){
-                               var nextPage = ui.nextPage, npURL;
-
-                               if( ui.nextPage ){
-                                       npURL = nextPage.jqmData( "url" );
-                                       if( npURL.indexOf( parentUrl + "&" + $.mobile.subPageUrlKey ) !== 0 ){
-                                               self.childPages().remove();
-                                               parentPage.remove();
-                                       }
-                               }
-                       };
-
-                       // unbind the original page remove and replace with our specialized version
-                       parentPage
-                               .unbind( "pagehide.remove" )
-                               .bind( "pagehide.remove", newRemove);
-               }
-       },
-
-       // TODO sort out a better way to track sub pages of the listview this is brittle
-       childPages: function(){
-               var parentUrl = this.parentPage.jqmData( "url" );
-
-               return $( ":jqmData(url^='"+  parentUrl + "&" + $.mobile.subPageUrlKey +"')");
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $( $.mobile.listview.prototype.options.initSelector, e.target ).listview();
-});
-
-})( jQuery );
-/*
-* "listview" filter extension
-*/
-
-(function( $, undefined ) {
-
-$.mobile.listview.prototype.options.filter = false;
-$.mobile.listview.prototype.options.filterPlaceholder = "Filter items...";
-$.mobile.listview.prototype.options.filterTheme = "c";
-$.mobile.listview.prototype.options.filterCallback = function( text, searchValue ){
-       return text.toLowerCase().indexOf( searchValue ) === -1;
-};
-
-$( document ).delegate( ":jqmData(role='listview')", "listviewcreate", function() {
-
-       var list = $( this ),
-               listview = list.data( "listview" );
-
-       if ( !listview.options.filter ) {
-               return;
-       }
-
-       var wrapper = $( "<form>", {
-                       "class": "ui-listview-filter ui-bar-" + listview.options.filterTheme,
-                       "role": "search"
-               }),
-               search = $( "<input>", {
-                       placeholder: listview.options.filterPlaceholder
-               })
-               .attr( "data-" + $.mobile.ns + "type", "search" )
-               .jqmData( "lastval", "" )
-               .bind( "keyup change", function() {
-
-                       var $this = $(this),
-                               val = this.value.toLowerCase(),
-                               listItems = null,
-                               lastval = $this.jqmData( "lastval" ) + "",
-                               childItems = false,
-                               itemtext = "",
-                               item;
-
-                       // Change val as lastval for next execution
-                       $this.jqmData( "lastval" , val );
-                       if ( val.length < lastval.length || val.indexOf(lastval) !== 0 ) {
-
-                               // Removed chars or pasted something totally different, check all items
-                               listItems = list.children();
-                       } else {
-
-                               // Only chars added, not removed, only use visible subset
-                               listItems = list.children( ":not(.ui-screen-hidden)" );
-                       }
-
-                       if ( val ) {
-
-                               // This handles hiding regular rows without the text we search for
-                               // and any list dividers without regular rows shown under it
-
-                               for ( var i = listItems.length - 1; i >= 0; i-- ) {
-                                       item = $( listItems[ i ] );
-                                       itemtext = item.jqmData( "filtertext" ) || item.text();
-
-                                       if ( item.is( "li:jqmData(role=list-divider)" ) ) {
-
-                                               item.toggleClass( "ui-filter-hidequeue" , !childItems );
-
-                                               // New bucket!
-                                               childItems = false;
-
-                                       } else if ( listview.options.filterCallback( itemtext, val ) ) {
-
-                                               //mark to be hidden
-                                               item.toggleClass( "ui-filter-hidequeue" , true );
-                                       } else {
-
-                                               // There's a shown item in the bucket
-                                               childItems = true;
-                                       }
-                               }
-
-                               // Show items, not marked to be hidden
-                               listItems
-                                       .filter( ":not(.ui-filter-hidequeue)" )
-                                       .toggleClass( "ui-screen-hidden", false );
-
-                               // Hide items, marked to be hidden
-                               listItems
-                                       .filter( ".ui-filter-hidequeue" )
-                                       .toggleClass( "ui-screen-hidden", true )
-                                       .toggleClass( "ui-filter-hidequeue", false );
-
-                       } else {
-
-                               //filtervalue is empty => show all
-                               listItems.toggleClass( "ui-screen-hidden", false );
-                       }
-                       listview._refreshCorners();
-               })
-               .appendTo( wrapper )
-               .textinput();
-
-       if ( $( this ).jqmData( "inset" ) ) {
-               wrapper.addClass( "ui-listview-filter-inset" );
-       }
-
-       wrapper.bind( "submit", function() {
-               return false;
-       })
-       .insertBefore( list );
-});
-
-})( jQuery );/*
-* "nojs" plugin - class to make elements hidden to A grade browsers
-*/
-
-(function( $, undefined ) {
-
-$( document ).bind( "pagecreate create", function( e ){
-       $( ":jqmData(role='nojs')", e.target ).addClass( "ui-nojs" );
-       
-});
-
-})( jQuery );/*
-* "checkboxradio" plugin
-*/
-
-(function( $, undefined ) {
-
-$.widget( "mobile.checkboxradio", $.mobile.widget, {
-       options: {
-               theme: null,
-               initSelector: "input[type='checkbox'],input[type='radio']"
-       },
-       _create: function() {
-               var self = this,
-                       input = this.element,
-                       // NOTE: Windows Phone could not find the label through a selector
-                       // filter works though.
-                       label = input.closest( "form,fieldset,:jqmData(role='page')" ).find( "label" ).filter( "[for='" + input[ 0 ].id + "']" ),
-                       inputtype = input.attr( "type" ),
-                       checkedState = inputtype + "-on",
-                       uncheckedState = inputtype + "-off",
-                       icon = input.parents( ":jqmData(type='horizontal')" ).length ? undefined : uncheckedState,
-                       activeBtn = icon ? "" : " " + $.mobile.activeBtnClass,
-                       checkedClass = "ui-" + checkedState + activeBtn,
-                       uncheckedClass = "ui-" + uncheckedState,
-                       checkedicon = "ui-icon-" + checkedState,
-                       uncheckedicon = "ui-icon-" + uncheckedState;
-
-               if ( inputtype !== "checkbox" && inputtype !== "radio" ) {
-                       return;
-               }
-
-               // Expose for other methods
-               $.extend( this, {
-                       label: label,
-                       inputtype: inputtype,
-                       checkedClass: checkedClass,
-                       uncheckedClass: uncheckedClass,
-                       checkedicon: checkedicon,
-                       uncheckedicon: uncheckedicon
-               });
-
-               // If there's no selected theme...
-               if( !this.options.theme ) {
-                       this.options.theme = this.element.jqmData( "theme" );
-               }
-
-               label.buttonMarkup({
-                       theme: this.options.theme,
-                       icon: icon,
-                       shadow: false
-               });
-
-               // Wrap the input + label in a div
-               input.add( label )
-                       .wrapAll( "<div class='ui-" + inputtype + "'></div>" );
-
-               label.bind({
-                       vmouseover: function( event ) {
-                               if ( $( this ).parent().is( ".ui-disabled" ) ) {
-                                       event.stopPropagation();
-                               }
-                       },
-
-                       vclick: function( event ) {
-                               if ( input.is( ":disabled" ) ) {
-                                       event.preventDefault();
-                                       return;
-                               }
-
-                               self._cacheVals();
-
-                               input.prop( "checked", inputtype === "radio" && true || !input.prop( "checked" ) );
-
-                               // trigger click handler's bound directly to the input as a substitute for
-                               // how label clicks behave normally in the browsers
-                               // TODO: it would be nice to let the browser's handle the clicks and pass them
-                               //       through to the associate input. we can swallow that click at the parent
-                               //       wrapper element level
-                               input.triggerHandler( 'click' );
-
-                               // Input set for common radio buttons will contain all the radio
-                               // buttons, but will not for checkboxes. clearing the checked status
-                               // of other radios ensures the active button state is applied properly
-                               self._getInputSet().not( input ).prop( "checked", false );
-
-                               self._updateAll();
-                               return false;
-                       }
-
-               });
-
-               input
-                       .bind({
-                               vmousedown: function() {
-                                       self._cacheVals();
-                               },
-
-                               vclick: function() {
-                                       var $this = $(this);
-
-                                       // Adds checked attribute to checked input when keyboard is used
-                                       if ( $this.is( ":checked" ) ) {
-
-                                               $this.prop( "checked", true);
-                                               self._getInputSet().not($this).prop( "checked", false );
-                                       } else {
-
-                                               $this.prop( "checked", false );
-                                       }
-
-                                       self._updateAll();
-                               },
-
-                               focus: function() {
-                                       label.addClass( "ui-focus" );
-                               },
-
-                               blur: function() {
-                                       label.removeClass( "ui-focus" );
-                               }
-                       });
-
-               this.refresh();
-       },
-
-       _cacheVals: function() {
-               this._getInputSet().each(function() {
-                       var $this = $(this);
-
-                       $this.jqmData( "cacheVal", $this.is( ":checked" ) );
-               });
-       },
-
-       //returns either a set of radios with the same name attribute, or a single checkbox
-       _getInputSet: function(){
-               if(this.inputtype == "checkbox") {
-                       return this.element;
-               }
-
-               return this.element.closest( "form,fieldset,:jqmData(role='page')" )
-                       .find( "input[name='"+ this.element.attr( "name" ) +"'][type='"+ this.inputtype +"']" );
-       },
-
-       _updateAll: function() {
-               var self = this;
-
-               this._getInputSet().each(function() {
-                       var $this = $(this);
-
-                       if ( $this.is( ":checked" ) || self.inputtype === "checkbox" ) {
-                               $this.trigger( "change" );
-                       }
-               })
-               .checkboxradio( "refresh" );
-       },
-
-       refresh: function() {
-               var input = this.element,
-                       label = this.label,
-                       icon = label.find( ".ui-icon" );
-
-               // input[0].checked expando doesn't always report the proper value
-               // for checked='checked'
-               if ( $( input[ 0 ] ).prop( "checked" ) ) {
-
-                       label.addClass( this.checkedClass ).removeClass( this.uncheckedClass );
-                       icon.addClass( this.checkedicon ).removeClass( this.uncheckedicon );
-
-               } else {
-
-                       label.removeClass( this.checkedClass ).addClass( this.uncheckedClass );
-                       icon.removeClass( this.checkedicon ).addClass( this.uncheckedicon );
-               }
-
-               if ( input.is( ":disabled" ) ) {
-                       this.disable();
-               } else {
-                       this.enable();
-               }
-       },
-
-       disable: function() {
-               this.element.prop( "disabled", true ).parent().addClass( "ui-disabled" );
-       },
-
-       enable: function() {
-               this.element.prop( "disabled", false ).parent().removeClass( "ui-disabled" );
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.checkboxradio.prototype.enhanceWithin( e.target );
-});
-
-})( jQuery );
-/*
-* "button" plugin - links that proxy to native input/buttons
-*/
-
-(function( $, undefined ) {
-
-$.widget( "mobile.button", $.mobile.widget, {
-       options: {
-               theme: null,
-               icon: null,
-               iconpos: null,
-               inline: null,
-               corners: true,
-               shadow: true,
-               iconshadow: true,
-               initSelector: "button, [type='button'], [type='submit'], [type='reset'], [type='image']"
-       },
-       _create: function() {
-               var $el = this.element,
-                       o = this.options,
-                       type,
-                       name,
-                       $buttonPlaceholder;
-
-               // if this is a link, check if it's been enhanced and, if not, use the right function
-               if( $el[ 0 ].tagName === "A" ) {
-                       if ( !$el.hasClass( "ui-btn" ) ) $el.buttonMarkup();
-                       return;
-               }
-
-               // Add ARIA role
-               this.button = $( "<div></div>" )
-                       .text( $el.text() || $el.val() )
-                       .insertBefore( $el )
-                       .buttonMarkup({
-                               theme: o.theme,
-                               icon: o.icon,
-                               iconpos: o.iconpos,
-                               inline: o.inline,
-                               corners: o.corners,
-                               shadow: o.shadow,
-                               iconshadow: o.iconshadow
-                       })
-                       .append( $el.addClass( "ui-btn-hidden" ) );
-
-               type = $el.attr( "type" );
-               name = $el.attr( "name" );
-
-               // Add hidden input during submit if input type="submit" has a name.
-               if ( type !== "button" && type !== "reset" && name ) {
-                               $el.bind( "vclick", function() {
-                                       // Add hidden input if it doesn’t already exist.
-                                       if( $buttonPlaceholder === undefined ) {
-                                               $buttonPlaceholder = $( "<input>", {
-                                                       type: "hidden",
-                                                       name: $el.attr( "name" ),
-                                                       value: $el.attr( "value" )
-                                               }).insertBefore( $el );
-
-                                               // Bind to doc to remove after submit handling
-                                               $( document ).one("submit", function(){
-                                                       $buttonPlaceholder.remove();
-
-                                                       // reset the local var so that the hidden input
-                                                       // will be re-added on subsequent clicks
-                                                       $buttonPlaceholder = undefined;
-                                               });
-                                       }
-                               });
-               }
-
-               this.refresh();
-       },
-
-       enable: function() {
-               this.element.attr( "disabled", false );
-               this.button.removeClass( "ui-disabled" ).attr( "aria-disabled", false );
-               return this._setOption( "disabled", false );
-       },
-
-       disable: function() {
-               this.element.attr( "disabled", true );
-               this.button.addClass( "ui-disabled" ).attr( "aria-disabled", true );
-               return this._setOption( "disabled", true );
-       },
-
-       refresh: function() {
-               var $el = this.element;
-
-               if ( $el.prop("disabled") ) {
-                       this.disable();
-               } else {
-                       this.enable();
-               }
-
-               // the textWrapper is stored as a data element on the button object
-               // to prevent referencing by it's implementation details (eg 'class')
-               this.button.data( 'textWrapper' ).text( $el.text() || $el.val() );
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.button.prototype.enhanceWithin( e.target );
-});
-
-})( jQuery );/*
-* "slider" plugin
-*/
-
-( function( $, undefined ) {
-
-$.widget( "mobile.slider", $.mobile.widget, {
-       options: {
-               theme: null,
-               trackTheme: null,
-               disabled: false,
-               initSelector: "input[type='range'], :jqmData(type='range'), :jqmData(role='slider')"
-       },
-
-       _create: function() {
-
-               // TODO: Each of these should have comments explain what they're for
-               var self = this,
-
-                       control = this.element,
-
-                       parentTheme = $.mobile.getInheritedTheme( control, "c" ),
-
-                       theme = this.options.theme || parentTheme,
-
-                       trackTheme = this.options.trackTheme || parentTheme,
-
-                       cType = control[ 0 ].nodeName.toLowerCase(),
-
-                       selectClass = ( cType == "select" ) ? "ui-slider-switch" : "",
-
-                       controlID = control.attr( "id" ),
-
-                       labelID = controlID + "-label",
-
-                       label = $( "[for='"+ controlID +"']" ).attr( "id", labelID ),
-
-                       val = function() {
-                               return  cType == "input"  ? parseFloat( control.val() ) : control[0].selectedIndex;
-                       },
-
-                       min =  cType == "input" ? parseFloat( control.attr( "min" ) ) : 0,
-
-                       max =  cType == "input" ? parseFloat( control.attr( "max" ) ) : control.find( "option" ).length-1,
-
-                       step = window.parseFloat( control.attr( "step" ) || 1 ),
-
-                       slider = $( "<div class='ui-slider " + selectClass + " ui-btn-down-" + trackTheme +
-                                                                       " ui-btn-corner-all' role='application'></div>" ),
-
-                       handle = $( "<a href='#' class='ui-slider-handle'></a>" )
-                               .appendTo( slider )
-                               .buttonMarkup({ corners: true, theme: theme, shadow: true })
-                               .attr({
-                                       "role": "slider",
-                                       "aria-valuemin": min,
-                                       "aria-valuemax": max,
-                                       "aria-valuenow": val(),
-                                       "aria-valuetext": val(),
-                                       "title": val(),
-                                       "aria-labelledby": labelID
-                               }),
-                       options;
-
-               $.extend( this, {
-                       slider: slider,
-                       handle: handle,
-                       dragging: false,
-                       beforeStart: null,
-                       userModified: false,
-                       mouseMoved: false
-               });
-
-               if ( cType == "select" ) {
-
-                       slider.wrapInner( "<div class='ui-slider-inneroffset'></div>" );
-
-                       // make the handle move with a smooth transition
-                       handle.addClass( "ui-slider-handle-snapping" );
-
-                       options = control.find( "option" );
-
-                       control.find( "option" ).each(function( i ) {
-
-                               var side = !i ? "b":"a",
-                                       corners = !i ? "right" :"left",
-                                       theme = !i ? " ui-btn-down-" + trackTheme :( " " + $.mobile.activeBtnClass );
-
-                               $( "<div class='ui-slider-labelbg ui-slider-labelbg-" + side + theme + " ui-btn-corner-" + corners + "'></div>" )
-                                       .prependTo( slider );
-
-                               $( "<span class='ui-slider-label ui-slider-label-" + side + theme + " ui-btn-corner-" + corners + "' role='img'>" + $( this ).getEncodedText() + "</span>" )
-                                       .prependTo( handle );
-                       });
-
-               }
-
-               label.addClass( "ui-slider" );
-
-               // monitor the input for updated values
-               control.addClass( cType === "input" ? "ui-slider-input" : "ui-slider-switch" )
-                       .change( function() {
-                               // if the user dragged the handle, the "change" event was triggered from inside refresh(); don't call refresh() again
-                               if (!self.mouseMoved) {
-                                       self.refresh( val(), true );
-                               }
-                       })
-                       .keyup( function() { // necessary?
-                               self.refresh( val(), true, true );
-                       })
-                       .blur( function() {
-                               self.refresh( val(), true );
-                       });
-
-               // prevent screen drag when slider activated
-               $( document ).bind( "vmousemove", function( event ) {
-                       if ( self.dragging ) {
-                               // self.mouseMoved must be updated before refresh() because it will be used in the control "change" event
-                               self.mouseMoved = true;
-
-                               if ( cType === "select" ) {
-                                       // make the handle move in sync with the mouse
-                                       handle.removeClass( "ui-slider-handle-snapping" );
-                               }
-
-                               self.refresh( event );
-
-                               // only after refresh() you can calculate self.userModified
-                               self.userModified = self.beforeStart !== control[0].selectedIndex;
-                               return false;
-                       }
-               });
-
-               slider.bind( "vmousedown", function( event ) {
-                       self.dragging = true;
-                       self.userModified = false;
-                       self.mouseMoved = false;
-
-                       if ( cType === "select" ) {
-                               self.beforeStart = control[0].selectedIndex;
-                       }
-
-                       self.refresh( event );
-                       return false;
-               });
-
-               slider.add( document )
-                       .bind( "vmouseup", function() {
-                               if ( self.dragging ) {
-
-                                       self.dragging = false;
-
-                                       if ( cType === "select") {
-
-                                               // make the handle move with a smooth transition
-                                               handle.addClass( "ui-slider-handle-snapping" );
-
-                                               if ( self.mouseMoved ) {
-
-                                                       // this is a drag, change the value only if user dragged enough
-                                                       if ( self.userModified ) {
-                                                               self.refresh( self.beforeStart == 0 ? 1 : 0 );
-                                                       }
-                                                       else {
-                                                               self.refresh( self.beforeStart );
-                                                       }
-
-                                               }
-                                               else {
-                                                       // this is just a click, change the value
-                                                       self.refresh( self.beforeStart == 0 ? 1 : 0 );
-                                               }
-
-                                       }
-
-                                       self.mouseMoved = false;
-
-                                       return false;
-                               }
-                       });
-
-               slider.insertAfter( control );
-
-               // NOTE force focus on handle
-               this.handle
-                       .bind( "vmousedown", function() {
-                               $( this ).focus();
-                       })
-                       .bind( "vclick", false );
-
-               this.handle
-                       .bind( "keydown", function( event ) {
-                               var index = val();
-
-                               if ( self.options.disabled ) {
-                                       return;
-                               }
-
-                               // In all cases prevent the default and mark the handle as active
-                               switch ( event.keyCode ) {
-                                case $.mobile.keyCode.HOME:
-                                case $.mobile.keyCode.END:
-                                case $.mobile.keyCode.PAGE_UP:
-                                case $.mobile.keyCode.PAGE_DOWN:
-                                case $.mobile.keyCode.UP:
-                                case $.mobile.keyCode.RIGHT:
-                                case $.mobile.keyCode.DOWN:
-                                case $.mobile.keyCode.LEFT:
-                                       event.preventDefault();
-
-                                       if ( !self._keySliding ) {
-                                               self._keySliding = true;
-                                               $( this ).addClass( "ui-state-active" );
-                                       }
-                                       break;
-                               }
-
-                               // move the slider according to the keypress
-                               switch ( event.keyCode ) {
-                                case $.mobile.keyCode.HOME:
-                                       self.refresh( min );
-                                       break;
-                                case $.mobile.keyCode.END:
-                                       self.refresh( max );
-                                       break;
-                                case $.mobile.keyCode.PAGE_UP:
-                                case $.mobile.keyCode.UP:
-                                case $.mobile.keyCode.RIGHT:
-                                       self.refresh( index + step );
-                                       break;
-                                case $.mobile.keyCode.PAGE_DOWN:
-                                case $.mobile.keyCode.DOWN:
-                                case $.mobile.keyCode.LEFT:
-                                       self.refresh( index - step );
-                                       break;
-                               }
-                       }) // remove active mark
-                       .keyup( function( event ) {
-                               if ( self._keySliding ) {
-                                       self._keySliding = false;
-                                       $( this ).removeClass( "ui-state-active" );
-                               }
-                       });
-
-               this.refresh(undefined, undefined, true);
-       },
-
-       refresh: function( val, isfromControl, preventInputUpdate ) {
-
-               if ( this.options.disabled || this.element.attr('disabled')) {
-                       this.disable();
-               }
-
-               var control = this.element, percent,
-                       cType = control[0].nodeName.toLowerCase(),
-                       min = cType === "input" ? parseFloat( control.attr( "min" ) ) : 0,
-                       max = cType === "input" ? parseFloat( control.attr( "max" ) ) : control.find( "option" ).length - 1,
-                       step = (cType === "input" && parseFloat( control.attr( "step" ) ) > 0) ? parseFloat(control.attr("step")) : 1;
-
-               if ( typeof val === "object" ) {
-                       var data = val,
-                               // a slight tolerance helped get to the ends of the slider
-                               tol = 8;
-                       if ( !this.dragging ||
-                                       data.pageX < this.slider.offset().left - tol ||
-                                       data.pageX > this.slider.offset().left + this.slider.width() + tol ) {
-                               return;
-                       }
-                       percent = Math.round( ( ( data.pageX - this.slider.offset().left ) / this.slider.width() ) * 100 );
-               } else {
-                       if ( val == null ) {
-                               val = cType === "input" ? parseFloat( control.val() || 0 ) : control[0].selectedIndex;
-                       }
-                       percent = ( parseFloat( val ) - min ) / ( max - min ) * 100;
-               }
-
-               if ( isNaN( percent ) ) {
-                       return;
-               }
-
-               if ( percent < 0 ) {
-                       percent = 0;
-               }
-
-               if ( percent > 100 ) {
-                       percent = 100;
-               }
-
-               var newval = ( percent / 100 ) * ( max - min ) + min;
-
-               //from jQuery UI slider, the following source will round to the nearest step
-               var valModStep = ( newval - min ) % step;
-               var alignValue = newval - valModStep;
-
-               if ( Math.abs( valModStep ) * 2 >= step ) {
-                       alignValue += ( valModStep > 0 ) ? step : ( -step );
-               }
-               // Since JavaScript has problems with large floats, round
-               // the final value to 5 digits after the decimal point (see jQueryUI: #4124)
-               newval = parseFloat( alignValue.toFixed(5) );
-
-               if ( newval < min ) {
-                       newval = min;
-               }
-
-               if ( newval > max ) {
-                       newval = max;
-               }
-
-               this.handle.css( "left", percent + "%" );
-               this.handle.attr( {
-                               "aria-valuenow": cType === "input" ? newval : control.find( "option" ).eq( newval ).attr( "value" ),
-                               "aria-valuetext": cType === "input" ? newval : control.find( "option" ).eq( newval ).getEncodedText(),
-                               title: cType === "input" ? newval : control.find( "option" ).eq( newval ).getEncodedText()
-                       });
-
-               // add/remove classes for flip toggle switch
-               if ( cType === "select" ) {
-                       if ( newval === 0 ) {
-                               this.slider.addClass( "ui-slider-switch-a" )
-                                       .removeClass( "ui-slider-switch-b" );
-                       } else {
-                               this.slider.addClass( "ui-slider-switch-b" )
-                                       .removeClass( "ui-slider-switch-a" );
-                       }
-               }
-
-               if ( !preventInputUpdate ) {
-                       var valueChanged = false;
-
-                       // update control"s value
-                       if ( cType === "input" ) {
-                               valueChanged = control.val() !== newval;
-                               control.val( newval );
-                       } else {
-                               valueChanged = control[ 0 ].selectedIndex !== newval;
-                               control[ 0 ].selectedIndex = newval;
-                       }
-                       if ( !isfromControl && valueChanged ) {
-                               control.trigger( "change" );
-                       }
-               }
-       },
-
-       enable: function() {
-               this.element.attr( "disabled", false );
-               this.slider.removeClass( "ui-disabled" ).attr( "aria-disabled", false );
-               return this._setOption( "disabled", false );
-       },
-
-       disable: function() {
-               this.element.attr( "disabled", true );
-               this.slider.addClass( "ui-disabled" ).attr( "aria-disabled", true );
-               return this._setOption( "disabled", true );
-       }
-
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.slider.prototype.enhanceWithin( e.target );
-});
-
-})( jQuery );
-/*
-* "textinput" plugin for text inputs, textareas
-*/
-
-(function( $, undefined ) {
-
-$.widget( "mobile.textinput", $.mobile.widget, {
-       options: {
-               theme: null,
-               initSelector: "input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])"
-       },
-
-       _create: function() {
-
-               var input = this.element,
-                       o = this.options,
-                       theme = o.theme || $.mobile.getInheritedTheme( this.element, "c" ),
-                       themeclass  = " ui-body-" + theme,
-                       focusedEl, clearbtn;
-
-               $( "label[for='" + input.attr( "id" ) + "']" ).addClass( "ui-input-text" );
-
-               focusedEl = input.addClass("ui-input-text ui-body-"+ theme );
-
-               // XXX: Temporary workaround for issue 785 (Apple bug 8910589).
-               //      Turn off autocorrect and autocomplete on non-iOS 5 devices
-               //      since the popup they use can't be dismissed by the user. Note
-               //      that we test for the presence of the feature by looking for
-               //      the autocorrect property on the input element. We currently
-               //      have no test for iOS 5 or newer so we're temporarily using
-               //      the touchOverflow support flag for jQM 1.0. Yes, I feel dirty. - jblas
-               if ( typeof input[0].autocorrect !== "undefined" && !$.support.touchOverflow ) {
-                       // Set the attribute instead of the property just in case there
-                       // is code that attempts to make modifications via HTML.
-                       input[0].setAttribute( "autocorrect", "off" );
-                       input[0].setAttribute( "autocomplete", "off" );
-               }
-
-
-               //"search" input widget
-               if ( input.is( "[type='search'],:jqmData(type='search')" ) ) {
-
-                       focusedEl = input.wrap( "<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield" + themeclass + "'></div>" ).parent();
-                       clearbtn = $( "<a href='#' class='ui-input-clear' title='clear text'>clear text</a>" )
-                               .tap(function( event ) {
-                                       input.val( "" ).focus();
-                                       input.trigger( "change" );
-                                       clearbtn.addClass( "ui-input-clear-hidden" );
-                                       event.preventDefault();
-                               })
-                               .appendTo( focusedEl )
-                               .buttonMarkup({
-                                       icon: "delete",
-                                       iconpos: "notext",
-                                       corners: true,
-                                       shadow: true
-                               });
-
-                       function toggleClear() {
-                               setTimeout(function() {
-                                       clearbtn.toggleClass( "ui-input-clear-hidden", !input.val() );
-                               }, 0);
-                       }
-
-                       toggleClear();
-
-                       input.bind('paste cut keyup focus change blur', toggleClear);
-
-               } else {
-                       input.addClass( "ui-corner-all ui-shadow-inset" + themeclass );
-               }
-
-               input.focus(function() {
-                               focusedEl.addClass( "ui-focus" );
-                       })
-                       .blur(function(){
-                               focusedEl.removeClass( "ui-focus" );
-                       });
-
-               // Autogrow
-               if ( input.is( "textarea" ) ) {
-                       var extraLineHeight = 15,
-                               keyupTimeoutBuffer = 100,
-                               keyup = function() {
-                                       var scrollHeight = input[ 0 ].scrollHeight,
-                                               clientHeight = input[ 0 ].clientHeight;
-
-                                       if ( clientHeight < scrollHeight ) {
-                                               input.height(scrollHeight + extraLineHeight);
-                                       }
-                               },
-                               keyupTimeout;
-
-                       input.keyup(function() {
-                               clearTimeout( keyupTimeout );
-                               keyupTimeout = setTimeout( keyup, keyupTimeoutBuffer );
-                       });
-
-                       // binding to pagechange here ensures that for pages loaded via
-                       // ajax the height is recalculated without user input
-                       $( document ).one( "pagechange", keyup );
-
-                       // Issue 509: the browser is not providing scrollHeight properly until the styles load
-                       if ( $.trim( input.val() ) ) {
-                               // bind to the window load to make sure the height is calculated based on BOTH
-                               // the DOM and CSS
-                               $( window ).load( keyup );
-                       }
-               }
-       },
-
-       disable: function(){
-               ( this.element.attr( "disabled", true ).is( "[type='search'],:jqmData(type='search')" ) ?
-                       this.element.parent() : this.element ).addClass( "ui-disabled" );
-       },
-
-       enable: function(){
-               ( this.element.attr( "disabled", false).is( "[type='search'],:jqmData(type='search')" ) ?
-                       this.element.parent() : this.element ).removeClass( "ui-disabled" );
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.textinput.prototype.enhanceWithin( e.target );
-});
-
-})( jQuery );
-/*
-* custom "selectmenu" plugin
-*/
-
-(function( $, undefined ) {
-       var extendSelect = function( widget ){
-
-               var select = widget.select,
-                       selectID  = widget.selectID,
-                       label = widget.label,
-                       thisPage = widget.select.closest( ".ui-page" ),
-                       screen = $( "<div>", {"class": "ui-selectmenu-screen ui-screen-hidden"} ).appendTo( thisPage ),
-                       selectOptions = widget._selectOptions(),
-                       isMultiple = widget.isMultiple = widget.select[ 0 ].multiple,
-                       buttonId = selectID + "-button",
-                       menuId = selectID + "-menu",
-                       menuPage = $( "<div data-" + $.mobile.ns + "role='dialog' data-" +$.mobile.ns + "theme='"+ widget.options.theme +"' data-" +$.mobile.ns + "overlay-theme='"+ widget.options.overlayTheme +"'>" +
-                               "<div data-" + $.mobile.ns + "role='header'>" +
-                               "<div class='ui-title'>" + label.getEncodedText() + "</div>"+
-                               "</div>"+
-                               "<div data-" + $.mobile.ns + "role='content'></div>"+
-                               "</div>" ).appendTo( $.mobile.pageContainer ).page(),
-
-                       listbox =  $("<div>", { "class": "ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all ui-body-" + widget.options.overlayTheme + " " + $.mobile.defaultDialogTransition } ).insertAfter(screen),
-
-                       list = $( "<ul>", {
-                               "class": "ui-selectmenu-list",
-                               "id": menuId,
-                               "role": "listbox",
-                               "aria-labelledby": buttonId
-                       }).attr( "data-" + $.mobile.ns + "theme", widget.options.theme ).appendTo( listbox ),
-
-                       header = $( "<div>", {
-                               "class": "ui-header ui-bar-" + widget.options.theme
-                       }).prependTo( listbox ),
-
-                       headerTitle = $( "<h1>", {
-                               "class": "ui-title"
-                       }).appendTo( header ),
-
-                       headerClose = $( "<a>", {
-                               "text": widget.options.closeText,
-                               "href": "#",
-                               "class": "ui-btn-left"
-                       }).attr( "data-" + $.mobile.ns + "iconpos", "notext" ).attr( "data-" + $.mobile.ns + "icon", "delete" ).appendTo( header ).buttonMarkup(),
-
-                       menuPageContent = menuPage.find( ".ui-content" ),
-
-                       menuPageClose = menuPage.find( ".ui-header a" );
-
-
-               $.extend( widget, {
-                       select: widget.select,
-                       selectID: selectID,
-                       buttonId: buttonId,
-                       menuId: menuId,
-                       thisPage: thisPage,
-                       menuPage: menuPage,
-                       label: label,
-                       screen: screen,
-                       selectOptions: selectOptions,
-                       isMultiple: isMultiple,
-                       theme: widget.options.theme,
-                       listbox: listbox,
-                       list: list,
-                       header: header,
-                       headerTitle: headerTitle,
-                       headerClose: headerClose,
-                       menuPageContent: menuPageContent,
-                       menuPageClose: menuPageClose,
-                       placeholder: "",
-
-                       build: function() {
-                               var self = this;
-
-                               // Create list from select, update state
-                               self.refresh();
-
-                               self.select.attr( "tabindex", "-1" ).focus(function() {
-                                       $( this ).blur();
-                                       self.button.focus();
-                               });
-
-                               // Button events
-                               self.button.bind( "vclick keydown" , function( event ) {
-                                       if ( event.type == "vclick" ||
-                                                        event.keyCode && ( event.keyCode === $.mobile.keyCode.ENTER ||
-                                                                                                                                       event.keyCode === $.mobile.keyCode.SPACE ) ) {
-
-                                               self.open();
-                                               event.preventDefault();
-                                       }
-                               });
-
-                               // Events for list items
-                               self.list.attr( "role", "listbox" )
-                                       .delegate( ".ui-li>a", "focusin", function() {
-                                               $( this ).attr( "tabindex", "0" );
-                                       })
-                                       .delegate( ".ui-li>a", "focusout", function() {
-                                               $( this ).attr( "tabindex", "-1" );
-                                       })
-                                       .delegate( "li:not(.ui-disabled, .ui-li-divider)", "click", function( event ) {
-
-                                               // index of option tag to be selected
-                                               var oldIndex = self.select[ 0 ].selectedIndex,
-                                                       newIndex = self.list.find( "li:not(.ui-li-divider)" ).index( this ),
-                                                       option = self._selectOptions().eq( newIndex )[ 0 ];
-
-                                               // toggle selected status on the tag for multi selects
-                                               option.selected = self.isMultiple ? !option.selected : true;
-
-                                               // toggle checkbox class for multiple selects
-                                               if ( self.isMultiple ) {
-                                                       $( this ).find( ".ui-icon" )
-                                                               .toggleClass( "ui-icon-checkbox-on", option.selected )
-                                                               .toggleClass( "ui-icon-checkbox-off", !option.selected );
-                                               }
-
-                                               // trigger change if value changed
-                                               if ( self.isMultiple || oldIndex !== newIndex ) {
-                                                       self.select.trigger( "change" );
-                                               }
-
-                                               //hide custom select for single selects only
-                                               if ( !self.isMultiple ) {
-                                                       self.close();
-                                               }
-
-                                               event.preventDefault();
-                                       })
-                                       .keydown(function( event ) {  //keyboard events for menu items
-                                               var target = $( event.target ),
-                                                       li = target.closest( "li" ),
-                                                       prev, next;
-
-                                               // switch logic based on which key was pressed
-                                               switch ( event.keyCode ) {
-                                                       // up or left arrow keys
-                                                case 38:
-                                                       prev = li.prev();
-
-                                                       // if there's a previous option, focus it
-                                                       if ( prev.length ) {
-                                                               target
-                                                                       .blur()
-                                                                       .attr( "tabindex", "-1" );
-
-                                                               prev.find( "a" ).first().focus();
-                                                       }
-
-                                                       return false;
-                                                       break;
-
-                                                       // down or right arrow keys
-                                                case 40:
-                                                       next = li.next();
-
-                                                       // if there's a next option, focus it
-                                                       if ( next.length ) {
-                                                               target
-                                                                       .blur()
-                                                                       .attr( "tabindex", "-1" );
-
-                                                               next.find( "a" ).first().focus();
-                                                       }
-
-                                                       return false;
-                                                       break;
-
-                                                       // If enter or space is pressed, trigger click
-                                                case 13:
-                                                case 32:
-                                                       target.trigger( "click" );
-
-                                                       return false;
-                                                       break;
-                                               }
-                                       });
-
-                               // button refocus ensures proper height calculation
-                               // by removing the inline style and ensuring page inclusion
-                               self.menuPage.bind( "pagehide", function() {
-                                       self.list.appendTo( self.listbox );
-                                       self._focusButton();
-
-                                       // TODO centralize page removal binding / handling in the page plugin.
-                                       // Suggestion from @jblas to do refcounting
-                                       //
-                                       // TODO extremely confusing dependency on the open method where the pagehide.remove
-                                       // bindings are stripped to prevent the parent page from disappearing. The way
-                                       // we're keeping pages in the DOM right now sucks
-                                       //
-                                       // rebind the page remove that was unbound in the open function
-                                       // to allow for the parent page removal from actions other than the use
-                                       // of a dialog sized custom select
-                                       //
-                                       // doing this here provides for the back button on the custom select dialog
-                                       $.mobile._bindPageRemove.call( self.thisPage );
-                               });
-
-                               // Events on "screen" overlay
-                               self.screen.bind( "vclick", function( event ) {
-                                       self.close();
-                               });
-
-                               // Close button on small overlays
-                               self.headerClose.click( function() {
-                                       if ( self.menuType == "overlay" ) {
-                                               self.close();
-                                               return false;
-                                       }
-                               });
-
-                               // track this dependency so that when the parent page
-                               // is removed on pagehide it will also remove the menupage
-                               self.thisPage.addDependents( this.menuPage );
-                       },
-
-                       _isRebuildRequired: function() {
-                               var list = this.list.find( "li" ),
-                                       options = this._selectOptions();
-
-                               // TODO exceedingly naive method to determine difference
-                               // ignores value changes etc in favor of a forcedRebuild
-                               // from the user in the refresh method
-                               return options.text() !== list.text();
-                       },
-
-                       refresh: function( forceRebuild , foo ){
-                               var self = this,
-                               select = this.element,
-                               isMultiple = this.isMultiple,
-                               options = this._selectOptions(),
-                               selected = this.selected(),
-                               // return an array of all selected index's
-                               indicies = this.selectedIndices();
-
-                               if (  forceRebuild || this._isRebuildRequired() ) {
-                                       self._buildList();
-                               }
-
-                               self.setButtonText();
-                               self.setButtonCount();
-
-                               self.list.find( "li:not(.ui-li-divider)" )
-                                       .removeClass( $.mobile.activeBtnClass )
-                                       .attr( "aria-selected", false )
-                                       .each(function( i ) {
-
-                                               if ( $.inArray( i, indicies ) > -1 ) {
-                                                       var item = $( this );
-
-                                                       // Aria selected attr
-                                                       item.attr( "aria-selected", true );
-
-                                                       // Multiple selects: add the "on" checkbox state to the icon
-                                                       if ( self.isMultiple ) {
-                                                               item.find( ".ui-icon" ).removeClass( "ui-icon-checkbox-off" ).addClass( "ui-icon-checkbox-on" );
-                                                       } else {
-                                                               item.addClass( $.mobile.activeBtnClass );
-                                                       }
-                                               }
-                                       });
-                       },
-
-                       close: function() {
-                               if ( this.options.disabled || !this.isOpen ) {
-                                       return;
-                               }
-
-                               var self = this;
-
-                               if ( self.menuType == "page" ) {
-                                       // doesn't solve the possible issue with calling change page
-                                       // where the objects don't define data urls which prevents dialog key
-                                       // stripping - changePage has incoming refactor
-                                       window.history.back();
-                               } else {
-                                       self.screen.addClass( "ui-screen-hidden" );
-                                       self.listbox.addClass( "ui-selectmenu-hidden" ).removeAttr( "style" ).removeClass( "in" );
-                                       self.list.appendTo( self.listbox );
-                                       self._focusButton();
-                               }
-
-                               // allow the dialog to be closed again
-                               self.isOpen = false;
-                       },
-
-                       open: function() {
-                               if ( this.options.disabled ) {
-                                       return;
-                               }
-
-                               var self = this,
-                                       menuHeight = self.list.parent().outerHeight(),
-                                       menuWidth = self.list.parent().outerWidth(),
-                                       activePage = $( ".ui-page-active" ),
-                                       tOverflow = $.support.touchOverflow && $.mobile.touchOverflowEnabled,
-                                       tScrollElem = activePage.is( ".ui-native-fixed" ) ? activePage.find( ".ui-content" ) : activePage,
-                                       scrollTop = tOverflow ? tScrollElem.scrollTop() : $( window ).scrollTop(),
-                                       btnOffset = self.button.offset().top,
-                                       screenHeight = $(window).height(),
-                                       screenWidth = $(window).width();
-
-                               //add active class to button
-                               self.button.addClass( $.mobile.activeBtnClass );
-
-                               //remove after delay
-                               setTimeout( function() {
-                                       self.button.removeClass( $.mobile.activeBtnClass );
-                               }, 300);
-
-                               function focusMenuItem() {
-                                       self.list.find( $.mobile.activeBtnClass ).focus();
-                               }
-
-                               if ( menuHeight > screenHeight - 80 || !$.support.scrollTop ) {
-                                       // prevent the parent page from being removed from the DOM,
-                                       // otherwise the results of selecting a list item in the dialog
-                                       // fall into a black hole
-                                       self.thisPage.unbind( "pagehide.remove" );
-
-                                       //for WebOS/Opera Mini (set lastscroll using button offset)
-                                       if ( scrollTop == 0 && btnOffset > screenHeight ) {
-                                               self.thisPage.one( "pagehide", function() {
-                                                       $( this ).jqmData( "lastScroll", btnOffset );
-                                               });
-                                       }
-
-                                       self.menuPage.one( "pageshow", function() {
-                                               // silentScroll() is called whenever a page is shown to restore
-                                               // any previous scroll position the page may have had. We need to
-                                               // wait for the "silentscroll" event before setting focus to avoid
-                                               // the browser"s "feature" which offsets rendering to make sure
-                                               // whatever has focus is in view.
-                                               $( window ).one( "silentscroll", function() {
-                                                       focusMenuItem();
-                                               });
-
-                                               self.isOpen = true;
-                                       });
-
-                                       self.menuType = "page";
-                                       self.menuPageContent.append( self.list );
-                                       self.menuPage.find("div .ui-title").text(self.label.text());
-                                       $.mobile.changePage( self.menuPage, {
-                                               transition: $.mobile.defaultDialogTransition
-                                       });
-                               } else {
-                                       self.menuType = "overlay";
-
-                                       self.screen.height( $(document).height() )
-                                               .removeClass( "ui-screen-hidden" );
-
-                                       // Try and center the overlay over the button
-                                       var roomtop = btnOffset - scrollTop,
-                                               roombot = scrollTop + screenHeight - btnOffset,
-                                               halfheight = menuHeight / 2,
-                                               maxwidth = parseFloat( self.list.parent().css( "max-width" ) ),
-                                               newtop, newleft;
-
-                                       if ( roomtop > menuHeight / 2 && roombot > menuHeight / 2 ) {
-                                               newtop = btnOffset + ( self.button.outerHeight() / 2 ) - halfheight;
-                                       } else {
-                                               // 30px tolerance off the edges
-                                               newtop = roomtop > roombot ? scrollTop + screenHeight - menuHeight - 30 : scrollTop + 30;
-                                       }
-
-                                       // If the menuwidth is smaller than the screen center is
-                                       if ( menuWidth < maxwidth ) {
-                                               newleft = ( screenWidth - menuWidth ) / 2;
-                                       } else {
-
-                                               //otherwise insure a >= 30px offset from the left
-                                               newleft = self.button.offset().left + self.button.outerWidth() / 2 - menuWidth / 2;
-
-                                               // 30px tolerance off the edges
-                                               if ( newleft < 30 ) {
-                                                       newleft = 30;
-                                               } else if ( (newleft + menuWidth) > screenWidth ) {
-                                                       newleft = screenWidth - menuWidth - 30;
-                                               }
-                                       }
-
-                                       self.listbox.append( self.list )
-                                               .removeClass( "ui-selectmenu-hidden" )
-                                               .css({
-                                                       top: newtop,
-                                                       left: newleft
-                                               })
-                                               .addClass( "in" );
-
-                                       focusMenuItem();
-
-                                       // duplicate with value set in page show for dialog sized selects
-                                       self.isOpen = true;
-                               }
-                       },
-
-                       _buildList: function() {
-                               var self = this,
-                                       o = this.options,
-                                       placeholder = this.placeholder,
-                                       optgroups = [],
-                                       lis = [],
-                                       dataIcon = self.isMultiple ? "checkbox-off" : "false";
-
-                               self.list.empty().filter( ".ui-listview" ).listview( "destroy" );
-
-                               // Populate menu with options from select element
-                               self.select.find( "option" ).each( function( i ) {
-                                       var $this = $( this ),
-                                               $parent = $this.parent(),
-                                               text = $this.getEncodedText(),
-                                               anchor = "<a href='#'>"+ text +"</a>",
-                                               classes = [],
-                                               extraAttrs = [];
-
-                                       // Are we inside an optgroup?
-                                       if ( $parent.is( "optgroup" ) ) {
-                                               var optLabel = $parent.attr( "label" );
-
-                                               // has this optgroup already been built yet?
-                                               if ( $.inArray( optLabel, optgroups ) === -1 ) {
-                                                       lis.push( "<li data-" + $.mobile.ns + "role='list-divider'>"+ optLabel +"</li>" );
-                                                       optgroups.push( optLabel );
-                                               }
-                                       }
-
-                                       // Find placeholder text
-                                       // TODO: Are you sure you want to use getAttribute? ^RW
-                                       if ( !this.getAttribute( "value" ) || text.length == 0 || $this.jqmData( "placeholder" ) ) {
-                                               if ( o.hidePlaceholderMenuItems ) {
-                                                       classes.push( "ui-selectmenu-placeholder" );
-                                               }
-                                               placeholder = self.placeholder = text;
-                                       }
-
-                                       // support disabled option tags
-                                       if ( this.disabled ) {
-                                               classes.push( "ui-disabled" );
-                                               extraAttrs.push( "aria-disabled='true'" );
-                                       }
-
-                                       lis.push( "<li data-" + $.mobile.ns + "option-index='" + i + "' data-" + $.mobile.ns + "icon='"+ dataIcon +"' class='"+ classes.join(" ") + "' " + extraAttrs.join(" ") +">"+ anchor +"</li>" );
-                               });
-
-                               self.list.html( lis.join(" ") );
-
-                               self.list.find( "li" )
-                                       .attr({ "role": "option", "tabindex": "-1" })
-                                       .first().attr( "tabindex", "0" );
-
-                               // Hide header close link for single selects
-                               if ( !this.isMultiple ) {
-                                       this.headerClose.hide();
-                               }
-
-                               // Hide header if it's not a multiselect and there's no placeholder
-                               if ( !this.isMultiple && !placeholder.length ) {
-                                       this.header.hide();
-                               } else {
-                                       this.headerTitle.text( this.placeholder );
-                               }
-
-                               // Now populated, create listview
-                               self.list.listview();
-                       },
-
-                       _button: function(){
-                               return $( "<a>", {
-                                       "href": "#",
-                                       "role": "button",
-                                       // TODO value is undefined at creation
-                                       "id": this.buttonId,
-                                       "aria-haspopup": "true",
-
-                                       // TODO value is undefined at creation
-                                       "aria-owns": this.menuId
-                               });
-                       }
-               });
-       };
-
-       $( document ).delegate( "select", "selectmenubeforecreate", function(){
-               var selectmenuWidget = $( this ).data( "selectmenu" );
-
-               if( !selectmenuWidget.options.nativeMenu ){
-                       extendSelect( selectmenuWidget );
-               }
-       });
-})( jQuery );
-/*
-* "selectmenu" plugin
-*/
-
-(function( $, undefined ) {
-
-$.widget( "mobile.selectmenu", $.mobile.widget, {
-       options: {
-               theme: null,
-               disabled: false,
-               icon: "arrow-d",
-               iconpos: "right",
-               inline: null,
-               corners: true,
-               shadow: true,
-               iconshadow: true,
-               menuPageTheme: "b",
-               overlayTheme: "a",
-               hidePlaceholderMenuItems: true,
-               closeText: "Close",
-               nativeMenu: true,
-               initSelector: "select:not(:jqmData(role='slider'))"
-       },
-
-       _button: function(){
-               return $( "<div/>" );
-       },
-
-       _setDisabled: function( value ) {
-               this.element.attr( "disabled", value );
-               this.button.attr( "aria-disabled", value );
-               return this._setOption( "disabled", value );
-       },
-
-       _focusButton : function() {
-               var self = this;
-
-               setTimeout( function() {
-                       self.button.focus();
-               }, 40);
-       },
-
-  _selectOptions: function() {
-    return this.select.find( "option" );
-  },
-
-       // setup items that are generally necessary for select menu extension
-       _preExtension: function(){
-               this.select = this.element.wrap( "<div class='ui-select'>" );
-               this.selectID  = this.select.attr( "id" );
-               this.label = $( "label[for='"+ this.selectID +"']" ).addClass( "ui-select" );
-               this.isMultiple = this.select[ 0 ].multiple;
-               if ( !this.options.theme ) {
-                       this.options.theme = $.mobile.getInheritedTheme( this.select, "c" );
-               }
-       },
-
-       _create: function() {
-               this._preExtension();
-
-               // Allows for extension of the native select for custom selects and other plugins
-               // see select.custom for example extension
-               // TODO explore plugin registration
-               this._trigger( "beforeCreate" );
-
-               this.button = this._button();
-
-               var self = this,
-
-                       options = this.options,
-
-                       // IE throws an exception at options.item() function when
-                       // there is no selected item
-                       // select first in this case
-                       selectedIndex = this.select[ 0 ].selectedIndex == -1 ? 0 : this.select[ 0 ].selectedIndex,
-
-                       // TODO values buttonId and menuId are undefined here
-                       button = this.button
-                               .text( $( this.select[ 0 ].options.item( selectedIndex ) ).text() )
-                               .insertBefore( this.select )
-                               .buttonMarkup( {
-                                       theme: options.theme,
-                                       icon: options.icon,
-                                       iconpos: options.iconpos,
-                                       inline: options.inline,
-                                       corners: options.corners,
-                                       shadow: options.shadow,
-                                       iconshadow: options.iconshadow
-                               });
-
-               // Opera does not properly support opacity on select elements
-               // In Mini, it hides the element, but not its text
-               // On the desktop,it seems to do the opposite
-               // for these reasons, using the nativeMenu option results in a full native select in Opera
-               if ( options.nativeMenu && window.opera && window.opera.version ) {
-                       this.select.addClass( "ui-select-nativeonly" );
-               }
-
-               // Add counter for multi selects
-               if ( this.isMultiple ) {
-                       this.buttonCount = $( "<span>" )
-                               .addClass( "ui-li-count ui-btn-up-c ui-btn-corner-all" )
-                               .hide()
-                               .appendTo( button.addClass('ui-li-has-count') );
-               }
-
-               // Disable if specified
-               if ( options.disabled || this.element.attr('disabled')) {
-                       this.disable();
-               }
-
-               // Events on native select
-               this.select.change( function() {
-                       self.refresh();
-               });
-
-               this.build();
-       },
-
-       build: function() {
-               var self = this;
-
-               this.select
-                       .appendTo( self.button )
-                       .bind( "vmousedown", function() {
-                               // Add active class to button
-                               self.button.addClass( $.mobile.activeBtnClass );
-                       })
-                       .bind( "focus vmouseover", function() {
-                               self.button.trigger( "vmouseover" );
-                       })
-                       .bind( "vmousemove", function() {
-                               // Remove active class on scroll/touchmove
-                               self.button.removeClass( $.mobile.activeBtnClass );
-                       })
-                       .bind( "change blur vmouseout", function() {
-                               self.button.trigger( "vmouseout" )
-                                       .removeClass( $.mobile.activeBtnClass );
-                       })
-                       .bind( "change blur", function() {
-                               self.button.removeClass( "ui-btn-down-" + self.options.theme );
-                       });
-       },
-
-       selected: function() {
-               return this._selectOptions().filter( ":selected" );
-       },
-
-       selectedIndices: function() {
-               var self = this;
-
-               return this.selected().map( function() {
-                       return self._selectOptions().index( this );
-               }).get();
-       },
-
-       setButtonText: function() {
-               var self = this, selected = this.selected();
-
-               this.button.find( ".ui-btn-text" ).text( function() {
-                       if ( !self.isMultiple ) {
-                               return selected.text();
-                       }
-
-                       return selected.length ? selected.map( function() {
-                               return $( this ).text();
-                       }).get().join( ", " ) : self.placeholder;
-               });
-       },
-
-       setButtonCount: function() {
-               var selected = this.selected();
-
-               // multiple count inside button
-               if ( this.isMultiple ) {
-                       this.buttonCount[ selected.length > 1 ? "show" : "hide" ]().text( selected.length );
-               }
-       },
-
-       refresh: function() {
-               this.setButtonText();
-               this.setButtonCount();
-       },
-
-       // open and close preserved in native selects
-       // to simplify users code when looping over selects
-       open: $.noop,
-       close: $.noop,
-
-       disable: function() {
-               this._setDisabled( true );
-               this.button.addClass( "ui-disabled" );
-       },
-
-       enable: function() {
-               this._setDisabled( false );
-               this.button.removeClass( "ui-disabled" );
-       }
-});
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $.mobile.selectmenu.prototype.enhanceWithin( e.target );
-});
-})( jQuery );
-/*
-* "buttons" plugin - for making button-like links
-*/
-
-( function( $, undefined ) {
-
-$.fn.buttonMarkup = function( options ) {
-       options = options || {};
-       for ( var i = 0; i < this.length; i++ ) {
-               var el = this.eq( i ),
-                       e = el[ 0 ],
-                       o = $.extend( {}, $.fn.buttonMarkup.defaults, {
-                               icon:       options.icon       !== undefined ? options.icon       : el.jqmData( "icon" ),
-                               iconpos:    options.iconpos    !== undefined ? options.iconpos    : el.jqmData( "iconpos" ),
-                               theme:      options.theme      !== undefined ? options.theme      : el.jqmData( "theme" ),
-                               inline:     options.inline     !== undefined ? options.inline     : el.jqmData( "inline" ),
-                               shadow:     options.shadow     !== undefined ? options.shadow     : el.jqmData( "shadow" ),
-                               corners:    options.corners    !== undefined ? options.corners    : el.jqmData( "corners" ),
-                               iconshadow: options.iconshadow !== undefined ? options.iconshadow : el.jqmData( "iconshadow" )
-                       }, options ),
-
-                       // Classes Defined
-                       innerClass = "ui-btn-inner",
-                       textClass = "ui-btn-text",
-                       buttonClass, iconClass,
-
-                       // Button inner markup
-                       buttonInner = document.createElement( o.wrapperEls ),
-                       buttonText = document.createElement( o.wrapperEls ),
-                       buttonIcon = o.icon ? document.createElement( "span" ) : null;
-
-               // if so, prevent double enhancement, and continue with rest of the elements.
-               if( e.tagName === "INPUT" && el.jqmData('role') === "button" ) continue;
-               
-               // if this is a button, check if it's been enhanced and, if not, use the right function
-               if( e.tagName === "BUTTON" ) {
-                       if ( !$( e.parentNode ).hasClass( "ui-btn" ) ) $( e ).button();
-                       continue;
-               }
-
-               if ( attachEvents ) {
-                       attachEvents();
-               }
-
-               // if not, try to find closest theme container
-               if ( !o.theme ) {
-                       o.theme = $.mobile.getInheritedTheme( el, "c" );
-               }
-
-               buttonClass = "ui-btn ui-btn-up-" + o.theme;
-
-               if ( o.inline ) {
-                       buttonClass += " ui-btn-inline";
-               }
-
-               if ( o.icon ) {
-                       o.icon = "ui-icon-" + o.icon;
-                       o.iconpos = o.iconpos || "left";
-
-                       iconClass = "ui-icon " + o.icon;
-
-                       if ( o.iconshadow ) {
-                               iconClass += " ui-icon-shadow";
-                       }
-               }
-
-               if ( o.iconpos ) {
-                       buttonClass += " ui-btn-icon-" + o.iconpos;
-
-                       if ( o.iconpos == "notext" && !el.attr( "title" ) ) {
-                               el.attr( "title", el.getEncodedText() );
-                       }
-               }
-
-               if ( o.corners ) {
-                       buttonClass += " ui-btn-corner-all";
-                       innerClass += " ui-btn-corner-all";
-               }
-
-               if ( o.shadow ) {
-                       buttonClass += " ui-shadow";
-               }
-
-               e.setAttribute( "data-" + $.mobile.ns + "theme", o.theme );
-               el.addClass( buttonClass );
-
-               buttonInner.className = innerClass;
-
-               buttonText.className = textClass;
-               buttonInner.appendChild( buttonText );
-
-               if ( buttonIcon ) {
-                       buttonIcon.className = iconClass;
-                       buttonInner.appendChild( buttonIcon );
-               }
-
-               while ( e.firstChild ) {
-                       buttonText.appendChild( e.firstChild );
-               }
-
-               e.appendChild( buttonInner );
-
-               // TODO obviously it would be nice to pull this element out instead of
-               // retrieving it from the DOM again, but this change is much less obtrusive
-               // and 1.0 draws nigh
-               $.data( e, 'textWrapper', $( buttonText ) );
-       }
-
-       return this;
-};
-
-$.fn.buttonMarkup.defaults = {
-       corners: true,
-       shadow: true,
-       iconshadow: true,
-       inline: false,
-       wrapperEls: "span"
-};
-
-function closestEnabledButton( element ) {
-    var cname;
-
-    while ( element ) {
-               // Note that we check for typeof className below because the element we
-               // handed could be in an SVG DOM where className on SVG elements is defined to
-               // be of a different type (SVGAnimatedString). We only operate on HTML DOM
-               // elements, so we look for plain "string".
-        cname = ( typeof element.className === 'string' ) && (element.className + ' ');
-        if ( cname && cname.indexOf("ui-btn ") > -1 && cname.indexOf("ui-disabled ") < 0 ) {
-            break;
-        }
-
-        element = element.parentNode;
-    }
-
-    return element;
-}
-
-var attachEvents = function() {
-       $( document ).bind( {
-               "vmousedown": function( event ) {
-                       var btn = closestEnabledButton( event.target ),
-                               $btn, theme;
-
-                       if ( btn ) {
-                               $btn = $( btn );
-                               theme = $btn.attr( "data-" + $.mobile.ns + "theme" );
-                               $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme );
-                       }
-               },
-               "vmousecancel vmouseup": function( event ) {
-                       var btn = closestEnabledButton( event.target ),
-                               $btn, theme;
-
-                       if ( btn ) {
-                               $btn = $( btn );
-                               theme = $btn.attr( "data-" + $.mobile.ns + "theme" );
-                               $btn.removeClass( "ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
-                       }
-               },
-               "vmouseover focus": function( event ) {
-                       var btn = closestEnabledButton( event.target ),
-                               $btn, theme;
-
-                       if ( btn ) {
-                               $btn = $( btn );
-                               theme = $btn.attr( "data-" + $.mobile.ns + "theme" );
-                               $btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-hover-" + theme );
-                       }
-               },
-               "vmouseout blur": function( event ) {
-                       var btn = closestEnabledButton( event.target ),
-                               $btn, theme;
-
-                       if ( btn ) {
-                               $btn = $( btn );
-                               theme = $btn.attr( "data-" + $.mobile.ns + "theme" );
-                               $btn.removeClass( "ui-btn-hover-" + theme  + " ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
-                       }
-               }
-       });
-
-       attachEvents = null;
-};
-
-//links in bars, or those with  data-role become buttons
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-
-       $( ":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a", e.target )
-               .not( ".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')" )
-               .buttonMarkup();
-});
-
-})( jQuery );
-/* 
-* "controlgroup" plugin - corner-rounding for groups of buttons, checks, radios, etc
-*/
-
-(function( $, undefined ) {
-
-$.fn.controlgroup = function( options ) {
-
-       return this.each(function() {
-
-               var $el = $( this ),
-                       o = $.extend({
-                                               direction: $el.jqmData( "type" ) || "vertical",
-                                               shadow: false,
-                                               excludeInvisible: true
-                                       }, options ),
-                       groupheading = $el.children( "legend" ),
-                       flCorners = o.direction == "horizontal" ? [ "ui-corner-left", "ui-corner-right" ] : [ "ui-corner-top", "ui-corner-bottom" ],
-                       type = $el.find( "input" ).first().attr( "type" );
-
-               // Replace legend with more stylable replacement div
-               if ( groupheading.length ) {
-                       $el.wrapInner( "<div class='ui-controlgroup-controls'></div>" );
-                       $( "<div role='heading' class='ui-controlgroup-label'>" + groupheading.html() + "</div>" ).insertBefore( $el.children(0) );
-                       groupheading.remove();
-               }
-
-               $el.addClass( "ui-corner-all ui-controlgroup ui-controlgroup-" + o.direction );
-
-               // TODO: This should be moved out to the closure
-               // otherwise it is redefined each time controlgroup() is called
-               function flipClasses( els ) {
-                       els.removeClass( "ui-btn-corner-all ui-shadow" )
-                               .eq( 0 ).addClass( flCorners[ 0 ] )
-                               .end()
-                               .last().addClass( flCorners[ 1 ] ).addClass( "ui-controlgroup-last" );
-               }
-
-               flipClasses( $el.find( ".ui-btn" + ( o.excludeInvisible ? ":visible" : "" ) ) );
-               flipClasses( $el.find( ".ui-btn-inner" ) );
-
-               if ( o.shadow ) {
-                       $el.addClass( "ui-shadow" );
-               }
-       });
-};
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( e ){
-       $( ":jqmData(role='controlgroup')", e.target ).controlgroup({ excludeInvisible: false });
-});
-
-})(jQuery);/*
-* "links" plugin - simple class additions for links
-*/
-
-(function( $, undefined ) {
-
-$( document ).bind( "pagecreate create", function( e ){
-       
-       //links within content areas
-       $( e.target )
-               .find( "a" )
-               .not( ".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')" )
-               .addClass( "ui-link" );
-
-});
-
-})( jQuery );/*
-* "fixHeaderFooter" plugin - on-demand positioning for headers,footers
-*/
-
-(function( $, undefined ) {
-
-var slideDownClass = "ui-header-fixed ui-fixed-inline fade",
-       slideUpClass = "ui-footer-fixed ui-fixed-inline fade",
-
-       slideDownSelector = ".ui-header:jqmData(position='fixed')",
-       slideUpSelector = ".ui-footer:jqmData(position='fixed')";
-
-$.fn.fixHeaderFooter = function( options ) {
-
-       if ( !$.support.scrollTop || ( $.support.touchOverflow && $.mobile.touchOverflowEnabled ) ) {
-               return this;
-       }
-
-       return this.each(function() {
-               var $this = $( this );
-
-               if ( $this.jqmData( "fullscreen" ) ) {
-                       $this.addClass( "ui-page-fullscreen" );
-               }
-
-               // Should be slidedown
-               $this.find( slideDownSelector ).addClass( slideDownClass );
-
-               // Should be slideup
-               $this.find( slideUpSelector ).addClass( slideUpClass );
-       });
-};
-
-// single controller for all showing,hiding,toggling
-$.mobile.fixedToolbars = (function() {
-
-       if ( !$.support.scrollTop || ( $.support.touchOverflow && $.mobile.touchOverflowEnabled ) ) {
-               return;
-       }
-
-       var stickyFooter, delayTimer,
-               currentstate = "inline",
-               autoHideMode = false,
-               showDelay = 100,
-               ignoreTargets = "a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed",
-               toolbarSelector = ".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last",
-               // for storing quick references to duplicate footers
-               supportTouch = $.support.touch,
-               touchStartEvent = supportTouch ? "touchstart" : "mousedown",
-               touchStopEvent = supportTouch ? "touchend" : "mouseup",
-               stateBefore = null,
-               scrollTriggered = false,
-               touchToggleEnabled = true;
-
-       function showEventCallback( event ) {
-               // An event that affects the dimensions of the visual viewport has
-               // been triggered. If the header and/or footer for the current page are in overlay
-               // mode, we want to hide them, and then fire off a timer to show them at a later
-               // point. Events like a resize can be triggered continuously during a scroll, on
-               // some platforms, so the timer is used to delay the actual positioning until the
-               // flood of events have subsided.
-               //
-               // If we are in autoHideMode, we don't do anything because we know the scroll
-               // callbacks for the plugin will fire off a show when the scrolling has stopped.
-               if ( !autoHideMode && currentstate === "overlay" ) {
-                       if ( !delayTimer ) {
-                               $.mobile.fixedToolbars.hide( true );
-                       }
-
-                       $.mobile.fixedToolbars.startShowTimer();
-               }
-       }
-
-       $(function() {
-               var $document = $( document ),
-                       $window = $( window );
-
-               $document
-                       .bind( "vmousedown", function( event ) {
-                               if ( touchToggleEnabled ) {
-                                       stateBefore = currentstate;
-                               }
-                       })
-                       .bind( "vclick", function( event ) {
-                               if ( touchToggleEnabled ) {
-
-                                       if ( $(event.target).closest( ignoreTargets ).length ) {
-                                               return;
-                                       }
-
-                                       if ( !scrollTriggered ) {
-                                               $.mobile.fixedToolbars.toggle( stateBefore );
-                                               stateBefore = null;
-                                       }
-                               }
-                       })
-                       .bind( "silentscroll", showEventCallback );
-
-
-               // The below checks first for a $(document).scrollTop() value, and if zero, binds scroll events to $(window) instead.
-               // If the scrollTop value is actually zero, both will return zero anyway.
-               //
-               // Works with $(document), not $(window) : Opera Mobile (WinMO phone; kinda broken anyway)
-               // Works with $(window), not $(document) : IE 7/8
-               // Works with either $(window) or $(document) : Chrome, FF 3.6/4, Android 1.6/2.1, iOS
-               // Needs work either way : BB5, Opera Mobile (iOS)
-
-               ( ( $document.scrollTop() === 0 ) ? $window : $document )
-                       .bind( "scrollstart", function( event ) {
-
-                               scrollTriggered = true;
-
-                               if ( stateBefore === null ) {
-                                       stateBefore = currentstate;
-                               }
-
-                               // We only enter autoHideMode if the headers/footers are in
-                               // an overlay state or the show timer was started. If the
-                               // show timer is set, clear it so the headers/footers don't
-                               // show up until after we're done scrolling.
-                               var isOverlayState = stateBefore == "overlay";
-
-                               autoHideMode = isOverlayState || !!delayTimer;
-
-                               if ( autoHideMode ) {
-                                       $.mobile.fixedToolbars.clearShowTimer();
-
-                                       if ( isOverlayState ) {
-                                               $.mobile.fixedToolbars.hide( true );
-                                       }
-                               }
-                       })
-                       .bind( "scrollstop", function( event ) {
-
-                               if ( $( event.target ).closest( ignoreTargets ).length ) {
-                                       return;
-                               }
-
-                               scrollTriggered = false;
-
-                               if ( autoHideMode ) {
-                                       $.mobile.fixedToolbars.startShowTimer();
-                                       autoHideMode = false;
-                               }
-                               stateBefore = null;
-                       });
-
-                       $window.bind( "resize updatelayout", showEventCallback );
-       });
-
-       // 1. Before page is shown, check for duplicate footer
-       // 2. After page is shown, append footer to new page
-       $( document ).delegate( ".ui-page", "pagebeforeshow", function( event, ui ) {
-                       var page = $( event.target ),
-                               footer = page.find( ":jqmData(role='footer')" ),
-                               id = footer.data( "id" ),
-                               prevPage = ui.prevPage,
-                               prevFooter = prevPage && prevPage.find( ":jqmData(role='footer')" ),
-                               prevFooterMatches = prevFooter.length && prevFooter.jqmData( "id" ) === id;
-
-                       if ( id && prevFooterMatches ) {
-                               stickyFooter = footer;
-                               setTop( stickyFooter.removeClass( "fade in out" ).appendTo( $.mobile.pageContainer ) );
-                       }
-               })
-               .delegate( ".ui-page", "pageshow", function( event, ui ) {
-                       var $this = $( this );
-
-                       if ( stickyFooter && stickyFooter.length ) {
-                               setTimeout(function() {
-                                       setTop( stickyFooter.appendTo( $this ).addClass( "fade" ) );
-                                       stickyFooter = null;
-                               }, 500);
-                       }
-
-                       $.mobile.fixedToolbars.show( true, this );
-               });
-
-       // When a collapsible is hidden or shown we need to trigger the fixed toolbar to reposition itself (#1635)
-       $( document ).delegate( ".ui-collapsible-contain", "collapse expand", showEventCallback );
-
-       // element.getBoundingClientRect() is broken in iOS 3.2.1 on the iPad. The
-       // coordinates inside of the rect it returns don't have the page scroll position
-       // factored out of it like the other platforms do. To get around this,
-       // we'll just calculate the top offset the old fashioned way until core has
-       // a chance to figure out how to handle this situation.
-       //
-       // TODO: We'll need to get rid of getOffsetTop() once a fix gets folded into core.
-
-       function getOffsetTop( ele ) {
-               var top = 0,
-                       op, body;
-
-               if ( ele ) {
-                       body = document.body;
-                       op = ele.offsetParent;
-                       top = ele.offsetTop;
-
-                       while ( ele && ele != body ) {
-                               top += ele.scrollTop || 0;
-
-                               if ( ele == op ) {
-                                       top += op.offsetTop;
-                                       op = ele.offsetParent;
-                               }
-
-                               ele = ele.parentNode;
-                       }
-               }
-               return top;
-       }
-
-       function setTop( el ) {
-               var fromTop = $(window).scrollTop(),
-                       thisTop = getOffsetTop( el[ 0 ] ), // el.offset().top returns the wrong value on iPad iOS 3.2.1, call our workaround instead.
-                       thisCSStop = el.css( "top" ) == "auto" ? 0 : parseFloat(el.css( "top" )),
-                       screenHeight = window.innerHeight,
-                       thisHeight = el.outerHeight(),
-                       useRelative = el.parents( ".ui-page:not(.ui-page-fullscreen)" ).length,
-                       relval;
-
-               if ( el.is( ".ui-header-fixed" ) ) {
-
-                       relval = fromTop - thisTop + thisCSStop;
-
-                       if ( relval < thisTop ) {
-                               relval = 0;
-                       }
-
-                       return el.css( "top", useRelative ? relval : fromTop );
-               } else {
-                       // relval = -1 * (thisTop - (fromTop + screenHeight) + thisCSStop + thisHeight);
-                       // if ( relval > thisTop ) { relval = 0; }
-                       relval = fromTop + screenHeight - thisHeight - (thisTop - thisCSStop );
-
-                       return el.css( "top", useRelative ? relval : fromTop + screenHeight - thisHeight );
-               }
-       }
-
-       // Exposed methods
-       return {
-
-               show: function( immediately, page ) {
-
-                       $.mobile.fixedToolbars.clearShowTimer();
-
-                       currentstate = "overlay";
-
-                       var $ap = page ? $( page ) :
-                                       ( $.mobile.activePage ? $.mobile.activePage :
-                                               $( ".ui-page-active" ) );
-
-                       return $ap.children( toolbarSelector ).each(function() {
-
-                               var el = $( this ),
-                                       fromTop = $( window ).scrollTop(),
-                                       // el.offset().top returns the wrong value on iPad iOS 3.2.1, call our workaround instead.
-                                       thisTop = getOffsetTop( el[ 0 ] ),
-                                       screenHeight = window.innerHeight,
-                                       thisHeight = el.outerHeight(),
-                                       alreadyVisible = ( el.is( ".ui-header-fixed" ) && fromTop <= thisTop + thisHeight ) ||
-                                                                                                               ( el.is( ".ui-footer-fixed" ) && thisTop <= fromTop + screenHeight );
-
-                               // Add state class
-                               el.addClass( "ui-fixed-overlay" ).removeClass( "ui-fixed-inline" );
-
-                               if ( !alreadyVisible && !immediately ) {
-                                       el.animationComplete(function() {
-                                               el.removeClass( "in" );
-                                       }).addClass( "in" );
-                               }
-                               setTop(el);
-                       });
-               },
-
-               hide: function( immediately ) {
-
-                       currentstate = "inline";
-
-                       var $ap = $.mobile.activePage ? $.mobile.activePage :
-                                                                       $( ".ui-page-active" );
-
-                       return $ap.children( toolbarSelector ).each(function() {
-
-                               var el = $(this),
-                                       thisCSStop = el.css( "top" ),
-                                       classes;
-
-                               thisCSStop = thisCSStop == "auto" ? 0 :
-                                                                                       parseFloat(thisCSStop);
-
-                               // Add state class
-                               el.addClass( "ui-fixed-inline" ).removeClass( "ui-fixed-overlay" );
-
-                               if ( thisCSStop < 0 || ( el.is( ".ui-header-fixed" ) && thisCSStop !== 0 ) ) {
-
-                                       if ( immediately ) {
-                                               el.css( "top", 0);
-                                       } else {
-
-                                               if ( el.css( "top" ) !== "auto" && parseFloat( el.css( "top" ) ) !== 0 ) {
-
-                                                       classes = "out reverse";
-
-                                                       el.animationComplete(function() {
-                                                               el.removeClass( classes ).css( "top", 0 );
-                                                       }).addClass( classes );
-                                               }
-                                       }
-                               }
-                       });
-               },
-
-               startShowTimer: function() {
-
-                       $.mobile.fixedToolbars.clearShowTimer();
-
-                       var args = [].slice.call( arguments );
-
-                       delayTimer = setTimeout(function() {
-                               delayTimer = undefined;
-                               $.mobile.fixedToolbars.show.apply( null, args );
-                       }, showDelay);
-               },
-
-               clearShowTimer: function() {
-                       if ( delayTimer ) {
-                               clearTimeout( delayTimer );
-                       }
-                       delayTimer = undefined;
-               },
-
-               toggle: function( from ) {
-                       if ( from ) {
-                               currentstate = from;
-                       }
-                       return ( currentstate === "overlay" ) ? $.mobile.fixedToolbars.hide() :
-                                                               $.mobile.fixedToolbars.show();
-               },
-
-               setTouchToggleEnabled: function( enabled ) {
-                       touchToggleEnabled = enabled;
-               }
-       };
-})();
-
-//auto self-init widgets
-$( document ).bind( "pagecreate create", function( event ) {
-
-       if ( $( ":jqmData(position='fixed')", event.target ).length ) {
-
-               $( event.target ).each(function() {
-
-                       if ( !$.support.scrollTop || ( $.support.touchOverflow && $.mobile.touchOverflowEnabled ) ) {
-                               return this;
-                       }
-
-                       var $this = $( this );
-
-                       if ( $this.jqmData( "fullscreen" ) ) {
-                               $this.addClass( "ui-page-fullscreen" );
-                       }
-
-                       // Should be slidedown
-                       $this.find( slideDownSelector ).addClass( slideDownClass );
-
-                       // Should be slideup
-                       $this.find( slideUpSelector ).addClass( slideUpClass );
-
-               })
-
-       }
-});
-
-})( jQuery );
-/*
-* "fixHeaderFooter" native plugin - Behavior for "fixed" headers,footers, and scrolling inner content
-*/
-
-(function( $, undefined ) {
-
-// Enable touch overflow scrolling when it's natively supported
-$.mobile.touchOverflowEnabled = false;
-
-// Enabled zoom when touch overflow is enabled. Can cause usability issues, unfortunately
-$.mobile.touchOverflowZoomEnabled = false;
-
-$( document ).bind( "pagecreate", function( event ) {
-       if( $.support.touchOverflow && $.mobile.touchOverflowEnabled ){
-               
-               var $target = $( event.target ),
-                       scrollStartY = 0;
-                       
-               if( $target.is( ":jqmData(role='page')" ) ){
-                       
-                       $target.each(function() {
-                               var $page = $( this ),
-                                       $fixies = $page.find( ":jqmData(role='header'), :jqmData(role='footer')" ).filter( ":jqmData(position='fixed')" ),
-                                       fullScreen = $page.jqmData( "fullscreen" ),
-                                       $scrollElem = $fixies.length ? $page.find( ".ui-content" ) : $page;
-                               
-                               $page.addClass( "ui-mobile-touch-overflow" );
-                               
-                               $scrollElem.bind( "scrollstop", function(){
-                                       if( $scrollElem.scrollTop() > 0 ){
-                                               window.scrollTo( 0, $.mobile.defaultHomeScroll );
-                                       }
-                               });     
-                               
-                               if( $fixies.length ){
-                                       
-                                       $page.addClass( "ui-native-fixed" );
-                                       
-                                       if( fullScreen ){
-
-                                               $page.addClass( "ui-native-fullscreen" );
-
-                                               $fixies.addClass( "fade in" );
-
-                                               $( document ).bind( "vclick", function(){
-                                                       $fixies
-                                                               .removeClass( "ui-native-bars-hidden" )
-                                                               .toggleClass( "in out" )
-                                                               .animationComplete(function(){
-                                                                       $(this).not( ".in" ).addClass( "ui-native-bars-hidden" );
-                                                               });
-                                               });
-                                       }
-                               }
-                       });
-               }
-       }
-});
-
-})( jQuery );
-/*
-* "init" - Initialize the framework
-*/
-
-(function( $, window, undefined ) {
-       var     $html = $( "html" ),
-                       $head = $( "head" ),
-                       $window = $( window );
-
-       // trigger mobileinit event - useful hook for configuring $.mobile settings before they're used
-       $( window.document ).trigger( "mobileinit" );
-
-       // support conditions
-       // if device support condition(s) aren't met, leave things as they are -> a basic, usable experience,
-       // otherwise, proceed with the enhancements
-       if ( !$.mobile.gradeA() ) {
-               return;
-       }
-
-       // override ajaxEnabled on platforms that have known conflicts with hash history updates
-       // or generally work better browsing in regular http for full page refreshes (BB5, Opera Mini)
-       if ( $.mobile.ajaxBlacklist ) {
-               $.mobile.ajaxEnabled = false;
-       }
-
-       // add mobile, initial load "rendering" classes to docEl
-       $html.addClass( "ui-mobile ui-mobile-rendering" );
-
-       // loading div which appears during Ajax requests
-       // will not appear if $.mobile.loadingMessage is false
-       var $loader = $( "<div class='ui-loader ui-body-a ui-corner-all'><span class='ui-icon ui-icon-loading spin'></span><h1></h1></div>" );
-
-       $.extend($.mobile, {
-               // turn on/off page loading message.
-               showPageLoadingMsg: function() {
-                       if ( $.mobile.loadingMessage ) {
-                               var activeBtn = $( "." + $.mobile.activeBtnClass ).first();
-
-                               $loader
-                                       .find( "h1" )
-                                               .text( $.mobile.loadingMessage )
-                                               .end()
-                                       .appendTo( $.mobile.pageContainer )
-                                       // position at y center (if scrollTop supported), above the activeBtn (if defined), or just 100px from top
-                                       .css({
-                                               top: $.support.scrollTop && $window.scrollTop() + $window.height() / 2 ||
-                                               activeBtn.length && activeBtn.offset().top || 100
-                                       });
-                       }
-
-                       $html.addClass( "ui-loading" );
-               },
-
-               hidePageLoadingMsg: function() {
-                       $html.removeClass( "ui-loading" );
-               },
-
-               // find and enhance the pages in the dom and transition to the first page.
-               initializePage: function() {
-                       // find present pages
-                       var $dialogs, $pages = $( ":jqmData(role='page')" );
-
-                       // if no pages are found, check for dialogs or create one with body's inner html
-                       if ( !$pages.length ) {
-                               $dialogs = $( ":jqmData(role='dialog')" );
-
-                               // if there are no pages but a dialog is present, load it as a page
-                               if( $dialogs.length ) {
-                                       // alter the attribute so it will be treated as a page unpon enhancement
-                                       // TODO allow for the loading of a dialog as the first page (many considerations)
-                                       $dialogs.first().attr( "data-" + $.mobile.ns + "role", "page" );
-
-                                       // remove the first dialog from the set of dialogs since it's now a page
-                                       // add it to the empty set of pages to be loaded by the initial changepage
-                                       $pages = $pages.add( $dialogs.get().shift() );
-                               } else {
-                                       $pages = $( "body" ).wrapInner( "<div data-" + $.mobile.ns + "role='page'></div>" ).children( 0 );
-                               }
-                       }
-
-
-                       // add dialogs, set data-url attrs
-                       $pages.add( ":jqmData(role='dialog')" ).each(function() {
-                               var $this = $(this);
-
-                               // unless the data url is already set set it to the pathname
-                               if ( !$this.jqmData("url") ) {
-                                       $this.attr( "data-" + $.mobile.ns + "url", $this.attr( "id" ) || location.pathname + location.search );
-                               }
-                       });
-
-                       // define first page in dom case one backs out to the directory root (not always the first page visited, but defined as fallback)
-                       $.mobile.firstPage = $pages.first();
-
-                       // define page container
-                       $.mobile.pageContainer = $pages.first().parent().addClass( "ui-mobile-viewport" );
-
-                       // alert listeners that the pagecontainer has been determined for binding
-                       // to events triggered on it
-                       $window.trigger( "pagecontainercreate" );
-
-                       // cue page loading message
-                       $.mobile.showPageLoadingMsg();
-
-                       // if hashchange listening is disabled or there's no hash deeplink, change to the first page in the DOM
-                       if ( !$.mobile.hashListeningEnabled || !$.mobile.path.stripHash( location.hash ) ) {
-                               $.mobile.changePage( $.mobile.firstPage, { transition: "none", reverse: true, changeHash: false, fromHashChange: true } );
-                       }
-                       // otherwise, trigger a hashchange to load a deeplink
-                       else {
-                               $window.trigger( "hashchange", [ true ] );
-                       }
-               }
-       });
-       
-       // This function injects a meta viewport tag to prevent scaling. Off by default, on by default when touchOverflow scrolling is enabled
-       function disableZoom() {
-               var cont = "user-scalable=no",
-                       meta = $( "meta[name='viewport']" );
-                       
-               if( meta.length ){
-                       meta.attr( "content", meta.attr( "content" ) + ", " + cont );
-               }
-               else{
-                       $( "head" ).prepend( "<meta>", { "name": "viewport", "content": cont } );
-               }
-       }
-       
-       // if touch-overflow is enabled, disable user scaling, as it creates usability issues
-       if( $.support.touchOverflow && $.mobile.touchOverflowEnabled && !$.mobile.touchOverflowZoomEnabled ){
-               disableZoom();
-       }
-
-       // initialize events now, after mobileinit has occurred
-       $.mobile._registerInternalEvents();
-
-       // check which scrollTop value should be used by scrolling to 1 immediately at domready
-       // then check what the scroll top is. Android will report 0... others 1
-       // note that this initial scroll won't hide the address bar. It's just for the check.
-       $(function() {
-               window.scrollTo( 0, 1 );
-
-               // if defaultHomeScroll hasn't been set yet, see if scrollTop is 1
-               // it should be 1 in most browsers, but android treats 1 as 0 (for hiding addr bar)
-               // so if it's 1, use 0 from now on
-               $.mobile.defaultHomeScroll = ( !$.support.scrollTop || $(window).scrollTop() === 1 ) ? 0 : 1;
-
-               //dom-ready inits
-               if( $.mobile.autoInitializePage ){
-                       $.mobile.initializePage();
-               }
-
-               // window load event
-               // hide iOS browser chrome on load
-               $window.load( $.mobile.silentScroll );
-       });
-})( jQuery, this );
diff --git a/js/jquery.mobile-1.0.1.min.js b/js/jquery.mobile-1.0.1.min.js
deleted file mode 100644 (file)
index 983df95..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-/*! jQuery Mobile v1.0.1 jquerymobile.com | jquery.org/license */
-(function(a,e){if(a.cleanData){var b=a.cleanData;a.cleanData=function(f){for(var c=0,d;(d=f[c])!=null;c++)a(d).triggerHandler("remove");b(f)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")});return d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],i,b=b.split(".")[1];i=e+"-"+b;if(!d)d=c,c=a.Widget;a.expr[":"][i]=function(c){return!!a.data(c,
-b)};a[e]=a[e]||{};a[e][b]=function(a,b){arguments.length&&this._createWidget(a,b)};c=new c;c.options=a.extend(true,{},c.options);a[e][b].prototype=a.extend(true,c,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:i},d);a.widget.bridge(b,a[e][b])};a.widget.bridge=function(b,c){a.fn[b]=function(d){var g=typeof d==="string",i=Array.prototype.slice.call(arguments,1),l=this,d=!g&&i.length?a.extend.apply(null,[true,d].concat(i)):d;if(g&&d.charAt(0)==="_")return l;
-g?this.each(function(){var c=a.data(this,b);if(!c)throw"cannot call methods on "+b+" prior to initialization; attempted to call method '"+d+"'";if(!a.isFunction(c[d]))throw"no such method '"+d+"' for "+b+" widget instance";var g=c[d].apply(c,i);if(g!==c&&g!==e)return l=g,false}):this.each(function(){var e=a.data(this,b);e?e.option(d||{})._init():a.data(this,b,new c(d,this))});return l}};a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",
-options:{disabled:false},_createWidget:function(b,c){a.data(c,this.widgetName,this);this.element=a(c);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){var b={};a.metadata&&(b=a.metadata.get(element)[this.widgetName]);return b},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);
-this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(b,c){var d=b;if(arguments.length===0)return a.extend({},this.options);if(typeof b==="string"){if(c===e)return this.options[b];d={};d[b]=c}this._setOptions(d);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b;a==="disabled"&&
-this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,c,d){var e=this.options[b],c=a.Event(c);c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();d=d||{};if(c.originalEvent)for(var b=a.event.props.length,i;b;)i=a.event.props[--b],c[i]=c.originalEvent[i];this.element.trigger(c,
-d);return!(a.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
-(function(a,e){a.widget("mobile.widget",{_createWidget:function(){a.Widget.prototype._createWidget.apply(this,arguments);this._trigger("init")},_getCreateOptions:function(){var b=this.element,d={};a.each(this.options,function(a){var c=b.jqmData(a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}));c!==e&&(d[a]=c)});return d},enhanceWithin:function(b){var d=a.mobile.closestPageData(a(b)),d=d&&d.keepNativeSelector()||"";a(this.options.initSelector,b).not(d)[this.widgetName]()}})})(jQuery);
-(function(a){a(window);var e=a("html");a.mobile.media=function(){var b={},d=a("<div id='jquery-mediatest'>"),f=a("<body>").append(d);return function(a){if(!(a in b)){var h=document.createElement("style"),g="@media "+a+" { #jquery-mediatest { position:absolute; } }";h.type="text/css";h.styleSheet?h.styleSheet.cssText=g:h.appendChild(document.createTextNode(g));e.prepend(f).prepend(h);b[a]=d.css("position")==="absolute";f.add(h).remove()}return b[a]}}()})(jQuery);
-(function(a,e){function b(a){var b=a.charAt(0).toUpperCase()+a.substr(1),a=(a+" "+c.join(b+" ")+b).split(" "),d;for(d in a)if(f[a[d]]!==e)return true}var d=a("<body>").prependTo("html"),f=d[0].style,c=["Webkit","Moz","O"],h="palmGetResource"in window,g=window.operamini&&{}.toString.call(window.operamini)==="[object OperaMini]",i=window.blackberry;a.mobile.browser={};a.mobile.browser.ie=function(){for(var a=3,b=document.createElement("div"),c=b.all||[];b.innerHTML="<\!--[if gt IE "+ ++a+"]><br><![endif]--\>",
-c[0];);return a>4?a:!a}();a.extend(a.support,{orientation:"orientation"in window&&"onorientationchange"in window,touch:"ontouchend"in document,cssTransitions:"WebKitTransitionEvent"in window,pushState:"pushState"in history&&"replaceState"in history,mediaquery:a.mobile.media("only all"),cssPseudoElement:!!b("content"),touchOverflow:!!b("overflowScrolling"),boxShadow:!!b("boxShadow")&&!i,scrollTop:("pageXOffset"in window||"scrollTop"in document.documentElement||"scrollTop"in d[0])&&!h&&!g,dynamicBaseTag:function(){var b=
-location.protocol+"//"+location.host+location.pathname+"ui-dir/",c=a("head base"),f=null,e="",h;c.length?e=c.attr("href"):c=f=a("<base>",{href:b}).appendTo("head");h=a("<a href='testurl' />").prependTo(d)[0].href;c[0].href=e||location.pathname;f&&f.remove();return h.indexOf(b)===0}()});d.remove();h=function(){var a=window.navigator.userAgent;return a.indexOf("Nokia")>-1&&(a.indexOf("Symbian/3")>-1||a.indexOf("Series60/5")>-1)&&a.indexOf("AppleWebKit")>-1&&a.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();
-a.mobile.ajaxBlacklist=window.blackberry&&!window.WebKitPoint||g||h;h&&a(function(){a("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")});a.support.boxShadow||a("html").addClass("ui-mobile-nosupport-boxshadow")})(jQuery);
-(function(a,e,b,d){function f(a){for(;a&&typeof a.originalEvent!=="undefined";)a=a.originalEvent;return a}function c(b){for(var c={},f,d;b;){f=a.data(b,m);for(d in f)if(f[d])c[d]=c.hasVirtualBinding=true;b=b.parentNode}return c}function h(){w&&(clearTimeout(w),w=0);w=setTimeout(function(){D=w=0;u.length=0;C=false;y=true},a.vmouse.resetTimerDuration)}function g(b,c,r){var e,h;if(!(h=r&&r[b])){if(r=!r)a:{for(r=c.target;r;){if((h=a.data(r,m))&&(!b||h[b]))break a;r=r.parentNode}r=null}h=r}if(h){e=c;var r=
-e.type,g,i;e=a.Event(e);e.type=b;h=e.originalEvent;g=a.event.props;if(h)for(i=g.length;i;)b=g[--i],e[b]=h[b];if(r.search(/mouse(down|up)|click/)>-1&&!e.which)e.which=1;if(r.search(/^touch/)!==-1&&(b=f(h),r=b.touches,b=b.changedTouches,r=r&&r.length?r[0]:b&&b.length?b[0]:d))for(h=0,len=z.length;h<len;h++)b=z[h],e[b]=r[b];a(c.target).trigger(e)}return e}function i(b){var c=a.data(b.target,A);if(!C&&(!D||D!==c))if(c=g("v"+b.type,b))c.isDefaultPrevented()&&b.preventDefault(),c.isPropagationStopped()&&
-b.stopPropagation(),c.isImmediatePropagationStopped()&&b.stopImmediatePropagation()}function l(b){var d=f(b).touches,e;if(d&&d.length===1&&(e=b.target,d=c(e),d.hasVirtualBinding))D=r++,a.data(e,A,D),w&&(clearTimeout(w),w=0),x=y=false,e=f(b).touches[0],v=e.pageX,s=e.pageY,g("vmouseover",b,d),g("vmousedown",b,d)}function k(a){y||(x||g("vmousecancel",a,c(a.target)),x=true,h())}function o(b){if(!y){var d=f(b).touches[0],r=x,e=a.vmouse.moveDistanceThreshold;x=x||Math.abs(d.pageX-v)>e||Math.abs(d.pageY-
-s)>e;flags=c(b.target);x&&!r&&g("vmousecancel",b,flags);g("vmousemove",b,flags);h()}}function n(a){if(!y){y=true;var b=c(a.target),d;g("vmouseup",a,b);if(!x&&(d=g("vclick",a,b))&&d.isDefaultPrevented())d=f(a).changedTouches[0],u.push({touchID:D,x:d.clientX,y:d.clientY}),C=true;g("vmouseout",a,b);x=false;h()}}function q(b){var b=a.data(b,m),c;if(b)for(c in b)if(b[c])return true;return false}function j(){}function p(b){var c=b.substr(1);return{setup:function(){q(this)||a.data(this,m,{});a.data(this,
-m)[b]=true;t[b]=(t[b]||0)+1;t[b]===1&&B.bind(c,i);a(this).bind(c,j);if(E)t.touchstart=(t.touchstart||0)+1,t.touchstart===1&&B.bind("touchstart",l).bind("touchend",n).bind("touchmove",o).bind("scroll",k)},teardown:function(){--t[b];t[b]||B.unbind(c,i);E&&(--t.touchstart,t.touchstart||B.unbind("touchstart",l).unbind("touchmove",o).unbind("touchend",n).unbind("scroll",k));var d=a(this),f=a.data(this,m);f&&(f[b]=false);d.unbind(c,j);q(this)||d.removeData(m)}}}var m="virtualMouseBindings",A="virtualTouchID",
-e="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),z="clientX clientY pageX pageY screenX screenY".split(" "),t={},w=0,v=0,s=0,x=false,u=[],C=false,y=false,E="addEventListener"in b,B=a(b),r=1,D=0;a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(var F=0;F<e.length;F++)a.event.special[e[F]]=p(e[F]);E&&b.addEventListener("click",function(b){var c=u.length,d=b.target,f,r,e,h,g;if(c){f=b.clientX;r=b.clientY;threshold=a.vmouse.clickDistanceThreshold;
-for(e=d;e;){for(h=0;h<c;h++)if(g=u[h],e===d&&Math.abs(g.x-f)<threshold&&Math.abs(g.y-r)<threshold||a.data(e,A)===g.touchID){b.preventDefault();b.stopPropagation();return}e=e.parentNode}}},true)})(jQuery,window,document);
-(function(a,e,b){function d(b,c,d){var f=d.type;d.type=c;a.event.handle.call(b,d);d.type=f}a.each("touchstart touchmove touchend orientationchange throttledresize tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(b,c){a.fn[c]=function(a){return a?this.bind(c,a):this.trigger(c)};a.attrFn[c]=true});var f=a.support.touch,c=f?"touchstart":"mousedown",h=f?"touchend":"mouseup",g=f?"touchmove":"mousemove";a.event.special.scrollstart={enabled:true,setup:function(){function b(a,
-e){f=e;d(c,f?"scrollstart":"scrollstop",a)}var c=this,f,e;a(c).bind("touchmove scroll",function(c){a.event.special.scrollstart.enabled&&(f||b(c,true),clearTimeout(e),e=setTimeout(function(){b(c,false)},50))})}};a.event.special.tap={setup:function(){var b=this,c=a(b);c.bind("vmousedown",function(f){function e(){clearTimeout(p)}function h(){e();c.unbind("vclick",g).unbind("vmouseup",e).unbind("vmousecancel",h)}function g(a){h();j==a.target&&d(b,"tap",a)}if(f.which&&f.which!==1)return false;var j=f.target,
-p;c.bind("vmousecancel",h).bind("vmouseup",e).bind("vclick",g);p=setTimeout(function(){d(b,"taphold",a.Event("taphold"))},750)})}};a.event.special.swipe={scrollSupressionThreshold:10,durationThreshold:1E3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var d=a(this);d.bind(c,function(c){function f(b){if(n){var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;q={time:(new Date).getTime(),coords:[c.pageX,c.pageY]};Math.abs(n.coords[0]-q.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&
-b.preventDefault()}}var e=c.originalEvent.touches?c.originalEvent.touches[0]:c,n={time:(new Date).getTime(),coords:[e.pageX,e.pageY],origin:a(c.target)},q;d.bind(g,f).one(h,function(){d.unbind(g,f);n&&q&&q.time-n.time<a.event.special.swipe.durationThreshold&&Math.abs(n.coords[0]-q.coords[0])>a.event.special.swipe.horizontalDistanceThreshold&&Math.abs(n.coords[1]-q.coords[1])<a.event.special.swipe.verticalDistanceThreshold&&n.origin.trigger("swipe").trigger(n.coords[0]>q.coords[0]?"swipeleft":"swiperight");
-n=q=b})})}};(function(a,b){function c(){var a=f();a!==e&&(e=a,d.trigger("orientationchange"))}var d=a(b),f,e,h,g,m={0:true,180:true};if(a.support.orientation&&(h=a.mobile.media("all and (orientation: landscape)"),g=m[b.orientation],h&&g||!h&&!g))m={"-90":true,90:true};a.event.special.orientationchange={setup:function(){if(a.support.orientation&&a.mobile.orientationChangeEnabled)return false;e=f();d.bind("throttledresize",c)},teardown:function(){if(a.support.orientation&&a.mobile.orientationChangeEnabled)return false;
-d.unbind("throttledresize",c)},add:function(a){var b=a.handler;a.handler=function(a){a.orientation=f();return b.apply(this,arguments)}}};a.event.special.orientationchange.orientation=f=function(){var c=true,c=document.documentElement;return(c=a.support.orientation?m[b.orientation]:c&&c.clientWidth/c.clientHeight<1.1)?"portrait":"landscape"}})(jQuery,e);(function(){a.event.special.throttledresize={setup:function(){a(this).bind("resize",b)},teardown:function(){a(this).unbind("resize",b)}};var b=function(){f=
-(new Date).getTime();e=f-c;e>=250?(c=f,a(this).trigger("throttledresize")):(d&&clearTimeout(d),d=setTimeout(b,250-e))},c=0,d,f,e})();a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(b,c){a.event.special[b]={setup:function(){a(this).bind(c,a.noop)}}})})(jQuery,this);
-(function(a,e,b){function d(a){a=a||location.href;return"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}var f="hashchange",c=document,h,g=a.event.special,i=c.documentMode,l="on"+f in e&&(i===b||i>7);a.fn[f]=function(a){return a?this.bind(f,a):this.trigger(f)};a.fn[f].delay=50;g[f]=a.extend(g[f],{setup:function(){if(l)return false;a(h.start)},teardown:function(){if(l)return false;a(h.stop)}});h=function(){function h(){var b=d(),c=m(q);if(b!==q)p(q=b,c),a(e).trigger(f);else if(c!==q)location.href=location.href.replace(/#.*/,
-"")+c;i=setTimeout(h,a.fn[f].delay)}var g={},i,q=d(),j=function(a){return a},p=j,m=j;g.start=function(){i||h()};g.stop=function(){i&&clearTimeout(i);i=b};a.browser.msie&&!l&&function(){var b,e;g.start=function(){if(!b)e=(e=a.fn[f].src)&&e+d(),b=a('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){e||p(d());h()}).attr("src",e||"javascript:0").insertAfter("body")[0].contentWindow,c.onpropertychange=function(){try{if(event.propertyName==="title")b.document.title=c.title}catch(a){}}};
-g.stop=j;m=function(){return d(b.location.href)};p=function(d,e){var h=b.document,g=a.fn[f].domain;if(d!==e)h.title=c.title,h.open(),g&&h.write('<script>document.domain="'+g+'"<\/script>'),h.close(),b.location.hash=d}}();return g}()})(jQuery,this);
-(function(a){a.widget("mobile.page",a.mobile.widget,{options:{theme:"c",domCache:false,keepNativeDefault:":jqmData(role='none'), :jqmData(role='nojs')"},_create:function(){this._trigger("beforecreate");this.element.attr("tabindex","0").addClass("ui-page ui-body-"+this.options.theme)},keepNativeSelector:function(){var e=this.options;return e.keepNative&&a.trim(e.keepNative)&&e.keepNative!==e.keepNativeDefault?[e.keepNative,e.keepNativeDefault].join(", "):e.keepNativeDefault}})})(jQuery);
-(function(a,e){var b={};a.extend(a.mobile,{ns:"",subPageUrlKey:"ui-page",activePageClass:"ui-page-active",activeBtnClass:"ui-btn-active",ajaxEnabled:true,hashListeningEnabled:true,linkBindingEnabled:true,defaultPageTransition:"slide",minScrollBack:250,defaultDialogTransition:"pop",loadingMessage:"loading",pageLoadErrorMessage:"Error Loading Page",autoInitializePage:true,pushStateEnabled:true,orientationChangeEnabled:true,gradeA:function(){return a.support.mediaquery||a.mobile.browser.ie&&a.mobile.browser.ie>=
-7},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},silentScroll:function(b){if(a.type(b)!=="number")b=a.mobile.defaultHomeScroll;a.event.special.scrollstart.enabled=false;
-setTimeout(function(){e.scrollTo(0,b);a(document).trigger("silentscroll",{x:0,y:b})},20);setTimeout(function(){a.event.special.scrollstart.enabled=true},150)},nsNormalizeDict:b,nsNormalize:function(c){return!c?void 0:b[c]||(b[c]=a.camelCase(a.mobile.ns+c))},getInheritedTheme:function(a,b){for(var d=a[0],f="",e=/ui-(bar|body)-([a-z])\b/,k,o;d;){k=d.className||"";if((o=e.exec(k))&&(f=o[2]))break;d=d.parentNode}return f||b||"a"},closestPageData:function(a){return a.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("page")}});
-a.fn.jqmData=function(b,d){var f;typeof b!="undefined"&&(f=this.data(b?a.mobile.nsNormalize(b):b,d));return f};a.jqmData=function(b,d,f){var e;typeof d!="undefined"&&(e=a.data(b,d?a.mobile.nsNormalize(d):d,f));return e};a.fn.jqmRemoveData=function(b){return this.removeData(a.mobile.nsNormalize(b))};a.jqmRemoveData=function(b,d){return a.removeData(b,a.mobile.nsNormalize(d))};a.fn.removeWithDependents=function(){a.removeWithDependents(this)};a.removeWithDependents=function(b){b=a(b);(b.jqmData("dependents")||
-a()).remove();b.remove()};a.fn.addDependents=function(b){a.addDependents(a(this),b)};a.addDependents=function(b,d){var f=a(b).jqmData("dependents")||a();a(b).jqmData("dependents",a.merge(f,d))};a.fn.getEncodedText=function(){return a("<div/>").text(a(this).text()).html()};var d=a.find,f=/:jqmData\(([^)]*)\)/g;a.find=function(b,e,g,i){b=b.replace(f,"[data-"+(a.mobile.ns||"")+"$1]");return d.call(this,b,e,g,i)};a.extend(a.find,d);a.find.matches=function(b,d){return a.find(b,null,null,d)};a.find.matchesSelector=
-function(b,d){return a.find(d,null,null,[b]).length>0}})(jQuery,this);
-(function(a,e){function b(a){var b=a.find(".ui-title:eq(0)");b.length?b.focus():a.focus()}function d(b){p&&(!p.closest(".ui-page-active").length||b)&&p.removeClass(a.mobile.activeBtnClass);p=null}function f(){z=false;A.length>0&&a.mobile.changePage.apply(null,A.pop())}function c(c,d,f,e){var g=a.mobile.urlHistory.getActive(),j=a.support.touchOverflow&&a.mobile.touchOverflowEnabled,i=g.lastScroll||(j?0:a.mobile.defaultHomeScroll),g=h();window.scrollTo(0,a.mobile.defaultHomeScroll);d&&d.data("page")._trigger("beforehide",
-null,{nextPage:c});j||c.height(g+i);c.data("page")._trigger("beforeshow",null,{prevPage:d||a("")});a.mobile.hidePageLoadingMsg();j&&i&&(c.addClass("ui-mobile-pre-transition"),b(c),c.is(".ui-native-fixed")?c.find(".ui-content").scrollTop(i):c.scrollTop(i));f=(a.mobile.transitionHandlers[f||"none"]||a.mobile.defaultTransitionHandler)(f,e,c,d);f.done(function(){j||(c.height(""),b(c));j||a.mobile.silentScroll(i);d&&(j||d.height(""),d.data("page")._trigger("hide",null,{nextPage:c}));c.data("page")._trigger("show",
-null,{prevPage:d||a("")})});return f}function h(){var b=a.event.special.orientationchange.orientation()==="portrait",c=b?screen.availHeight:screen.availWidth,b=Math.max(b?480:320,a(window).height());return Math.min(c,b)}function g(){(!a.support.touchOverflow||!a.mobile.touchOverflowEnabled)&&a("."+a.mobile.activePageClass).css("min-height",h())}function i(b,c){c&&b.attr("data-"+a.mobile.ns+"role",c);b.page()}function l(a){for(;a;){if(typeof a.nodeName==="string"&&a.nodeName.toLowerCase()=="a")break;
-a=a.parentNode}return a}function k(b){var b=a(b).closest(".ui-page").jqmData("url"),c=s.hrefNoHash;if(!b||!j.isPath(b))b=c;return j.makeUrlAbsolute(b,c)}var o=a(window),n=a("html"),q=a("head"),j={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,parseUrl:function(b){if(a.type(b)==="object")return b;b=j.urlParseRE.exec(b||"")||[];return{href:b[0]||"",hrefNoHash:b[1]||
-"",hrefNoSearch:b[2]||"",domain:b[3]||"",protocol:b[4]||"",doubleSlash:b[5]||"",authority:b[6]||"",username:b[8]||"",password:b[9]||"",host:b[10]||"",hostname:b[11]||"",port:b[12]||"",pathname:b[13]||"",directory:b[14]||"",filename:b[15]||"",search:b[16]||"",hash:b[17]||""}},makePathAbsolute:function(a,b){if(a&&a.charAt(0)==="/")return a;for(var a=a||"",c=(b=b?b.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"")?b.split("/"):[],d=a.split("/"),f=0;f<d.length;f++){var e=d[f];switch(e){case ".":break;case "..":c.length&&
-c.pop();break;default:c.push(e)}}return"/"+c.join("/")},isSameDomain:function(a,b){return j.parseUrl(a).domain===j.parseUrl(b).domain},isRelativeUrl:function(a){return j.parseUrl(a).protocol===""},isAbsoluteUrl:function(a){return j.parseUrl(a).protocol!==""},makeUrlAbsolute:function(a,b){if(!j.isRelativeUrl(a))return a;var c=j.parseUrl(a),d=j.parseUrl(b),f=c.protocol||d.protocol,e=c.protocol?c.doubleSlash:c.doubleSlash||d.doubleSlash,h=c.authority||d.authority,g=c.pathname!=="",i=j.makePathAbsolute(c.pathname||
-d.filename,d.pathname);return f+e+h+i+(c.search||!g&&d.search||"")+c.hash},addSearchParams:function(b,c){var d=j.parseUrl(b),f=typeof c==="object"?a.param(c):c,e=d.search||"?";return d.hrefNoSearch+e+(e.charAt(e.length-1)!=="?"?"&":"")+f+(d.hash||"")},convertUrlToDataUrl:function(a){var b=j.parseUrl(a);if(j.isEmbeddedPage(b))return b.hash.split(t)[0].replace(/^#/,"");else if(j.isSameDomain(b,s))return b.hrefNoHash.replace(s.domain,"");return a},get:function(a){if(a===e)a=location.hash;return j.stripHash(a).replace(/[^\/]*\.[^\/*]+$/,
-"")},getFilePath:function(b){var c="&"+a.mobile.subPageUrlKey;return b&&b.split(c)[0].split(t)[0]},set:function(a){location.hash=a},isPath:function(a){return/\//.test(a)},clean:function(a){return a.replace(s.domain,"")},stripHash:function(a){return a.replace(/^#/,"")},cleanHash:function(a){return j.stripHash(a.replace(/\?.*$/,"").replace(t,""))},isExternal:function(a){a=j.parseUrl(a);return a.protocol&&a.domain!==v.domain?true:false},hasProtocol:function(a){return/^(:?\w+:)/.test(a)},isFirstPageUrl:function(b){var b=
-j.parseUrl(j.makeUrlAbsolute(b,s)),c=a.mobile.firstPage,c=c&&c[0]?c[0].id:e;return(b.hrefNoHash===v.hrefNoHash||x&&b.hrefNoHash===s.hrefNoHash)&&(!b.hash||b.hash==="#"||c&&b.hash.replace(/^#/,"")===c)},isEmbeddedPage:function(a){a=j.parseUrl(a);return a.protocol!==""?a.hash&&(a.hrefNoHash===v.hrefNoHash||x&&a.hrefNoHash===s.hrefNoHash):/^#/.test(a.href)},isPermittedCrossDomainRequest:function(b,c){return a.mobile.allowCrossDomainPages&&b.protocol==="file:"&&c.search(/^https?:/)!=-1}},p=null,m={stack:[],
-activeIndex:0,getActive:function(){return m.stack[m.activeIndex]},getPrev:function(){return m.stack[m.activeIndex-1]},getNext:function(){return m.stack[m.activeIndex+1]},addNew:function(a,b,c,d,f){m.getNext()&&m.clearForward();m.stack.push({url:a,transition:b,title:c,pageUrl:d,role:f});m.activeIndex=m.stack.length-1},clearForward:function(){m.stack=m.stack.slice(0,m.activeIndex+1)},directHashChange:function(b){var c,d,f;this.getActive();a.each(m.stack,function(a,e){b.currentUrl===e.url&&(c=a<m.activeIndex,
-d=!c,f=a)});this.activeIndex=f!==e?f:this.activeIndex;c?(b.either||b.isBack)(true):d&&(b.either||b.isForward)(false)},ignoreNextHashChange:false},A=[],z=false,t="&ui-state=dialog",w=q.children("base"),v=j.parseUrl(location.href),s=w.length?j.parseUrl(j.makeUrlAbsolute(w.attr("href"),v.href)):v,x=v.hrefNoHash!==s.hrefNoHash,u=a.support.dynamicBaseTag?{element:w.length?w:a("<base>",{href:s.hrefNoHash}).prependTo(q),set:function(a){u.element.attr("href",j.makeUrlAbsolute(a,s))},reset:function(){u.element.attr("href",
-s.hrefNoHash)}}:e,C=true,y,E,B;y=function(){var b=o;a.support.touchOverflow&&a.mobile.touchOverflowEnabled&&(b=a(".ui-page-active"),b=b.is(".ui-native-fixed")?b.find(".ui-content"):b);return b};E=function(b){if(C){var c=a.mobile.urlHistory.getActive();if(c)b=b&&b.scrollTop(),c.lastScroll=b<a.mobile.minScrollBack?a.mobile.defaultHomeScroll:b}};B=function(){setTimeout(E,100,a(this))};o.bind(a.support.pushState?"popstate":"hashchange",function(){C=false});o.one(a.support.pushState?"popstate":"hashchange",
-function(){C=true});o.one("pagecontainercreate",function(){a.mobile.pageContainer.bind("pagechange",function(){var a=y();C=true;a.unbind("scrollstop",B);a.bind("scrollstop",B)})});y().bind("scrollstop",B);a.mobile.getScreenHeight=h;a.fn.animationComplete=function(b){return a.support.cssTransitions?a(this).one("webkitAnimationEnd",b):(setTimeout(b,0),a(this))};a.mobile.path=j;a.mobile.base=u;a.mobile.urlHistory=m;a.mobile.dialogHashKey=t;a.mobile.noneTransitionHandler=function(b,c,d,f){f&&f.removeClass(a.mobile.activePageClass);
-d.addClass(a.mobile.activePageClass);return a.Deferred().resolve(b,c,d,f).promise()};a.mobile.defaultTransitionHandler=a.mobile.noneTransitionHandler;a.mobile.transitionHandlers={none:a.mobile.defaultTransitionHandler};a.mobile.allowCrossDomainPages=false;a.mobile.getDocumentUrl=function(b){return b?a.extend({},v):v.href};a.mobile.getDocumentBase=function(b){return b?a.extend({},s):s.href};a.mobile._bindPageRemove=function(){var b=a(this);!b.data("page").options.domCache&&b.is(":jqmData(external-page='true')")&&
-b.bind("pagehide.remove",function(){var b=a(this),c=new a.Event("pageremove");b.trigger(c);c.isDefaultPrevented()||b.removeWithDependents()})};a.mobile.loadPage=function(b,c){var d=a.Deferred(),f=a.extend({},a.mobile.loadPage.defaults,c),h=null,g=null,n=j.makeUrlAbsolute(b,a.mobile.activePage&&k(a.mobile.activePage)||s.hrefNoHash);if(f.data&&f.type==="get")n=j.addSearchParams(n,f.data),f.data=e;if(f.data&&f.type==="post")f.reloadPage=true;var t=j.getFilePath(n),m=j.convertUrlToDataUrl(n);f.pageContainer=
-f.pageContainer||a.mobile.pageContainer;h=f.pageContainer.children(":jqmData(url='"+m+"')");h.length===0&&m&&!j.isPath(m)&&(h=f.pageContainer.children("#"+m).attr("data-"+a.mobile.ns+"url",m));if(h.length===0)if(a.mobile.firstPage&&j.isFirstPageUrl(t))a.mobile.firstPage.parent().length&&(h=a(a.mobile.firstPage));else if(j.isEmbeddedPage(t))return d.reject(n,c),d.promise();u&&u.reset();if(h.length){if(!f.reloadPage)return i(h,f.role),d.resolve(n,c,h),d.promise();g=h}var q=f.pageContainer,l=new a.Event("pagebeforeload"),
-p={url:b,absUrl:n,dataUrl:m,deferred:d,options:f};q.trigger(l,p);if(l.isDefaultPrevented())return d.promise();if(f.showLoadMsg)var w=setTimeout(function(){a.mobile.showPageLoadingMsg()},f.loadMsgDelay);!a.mobile.allowCrossDomainPages&&!j.isSameDomain(v,n)?d.reject(n,c):a.ajax({url:t,type:f.type,data:f.data,dataType:"html",success:function(e,q,k){var l=a("<div></div>"),o=e.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,s=RegExp("\\bdata-"+a.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");RegExp("(<[^>]+\\bdata-"+
-a.mobile.ns+"role=[\"']?page[\"']?[^>]*>)").test(e)&&RegExp.$1&&s.test(RegExp.$1)&&RegExp.$1&&(b=t=j.getFilePath(RegExp.$1));u&&u.set(t);l.get(0).innerHTML=e;h=l.find(":jqmData(role='page'), :jqmData(role='dialog')").first();h.length||(h=a("<div data-"+a.mobile.ns+"role='page'>"+e.split(/<\/?body[^>]*>/gmi)[1]+"</div>"));o&&!h.jqmData("title")&&(~o.indexOf("&")&&(o=a("<div>"+o+"</div>").text()),h.jqmData("title",o));if(!a.support.dynamicBaseTag){var v=j.get(t);h.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var b=
-a(this).is("[href]")?"href":a(this).is("[src]")?"src":"action",c=a(this).attr(b),c=c.replace(location.protocol+"//"+location.host+location.pathname,"");/^(\w+:|#|\/)/.test(c)||a(this).attr(b,v+c)})}h.attr("data-"+a.mobile.ns+"url",j.convertUrlToDataUrl(t)).attr("data-"+a.mobile.ns+"external-page",true).appendTo(f.pageContainer);h.one("pagecreate",a.mobile._bindPageRemove);i(h,f.role);n.indexOf("&"+a.mobile.subPageUrlKey)>-1&&(h=f.pageContainer.children(":jqmData(url='"+m+"')"));f.showLoadMsg&&(clearTimeout(w),
-a.mobile.hidePageLoadingMsg());p.xhr=k;p.textStatus=q;p.page=h;f.pageContainer.trigger("pageload",p);d.resolve(n,c,h,g)},error:function(b,e,h){u&&u.set(j.get());p.xhr=b;p.textStatus=e;p.errorThrown=h;b=new a.Event("pageloadfailed");f.pageContainer.trigger(b,p);b.isDefaultPrevented()||(f.showLoadMsg&&(clearTimeout(w),a.mobile.hidePageLoadingMsg(),a("<div class='ui-loader ui-overlay-shadow ui-body-e ui-corner-all'><h1>"+a.mobile.pageLoadErrorMessage+"</h1></div>").css({display:"block",opacity:0.96,
-top:o.scrollTop()+100}).appendTo(f.pageContainer).delay(800).fadeOut(400,function(){a(this).remove()})),d.reject(n,c))}});return d.promise()};a.mobile.loadPage.defaults={type:"get",data:e,reloadPage:false,role:e,showLoadMsg:false,pageContainer:e,loadMsgDelay:50};a.mobile.changePage=function(b,h){if(z)A.unshift(arguments);else{var g=a.extend({},a.mobile.changePage.defaults,h);g.pageContainer=g.pageContainer||a.mobile.pageContainer;g.fromPage=g.fromPage||a.mobile.activePage;var q=g.pageContainer,l=
-new a.Event("pagebeforechange"),k={toPage:b,options:g};q.trigger(l,k);if(!l.isDefaultPrevented())if(b=k.toPage,z=true,typeof b=="string")a.mobile.loadPage(b,g).done(function(b,c,d,f){z=false;c.duplicateCachedPage=f;a.mobile.changePage(d,c)}).fail(function(){z=false;d(true);f();g.pageContainer.trigger("pagechangefailed",k)});else{if(b[0]===a.mobile.firstPage[0]&&!g.dataUrl)g.dataUrl=v.hrefNoHash;var l=g.fromPage,p=g.dataUrl&&j.convertUrlToDataUrl(g.dataUrl)||b.jqmData("url"),o=p;j.getFilePath(p);var s=
-m.getActive(),w=m.activeIndex===0,x=0,u=document.title,y=g.role==="dialog"||b.jqmData("role")==="dialog";if(l&&l[0]===b[0]&&!g.allowSamePageTransition)z=false,q.trigger("pagechange",k);else{i(b,g.role);g.fromHashChange&&m.directHashChange({currentUrl:p,isBack:function(){x=-1},isForward:function(){x=1}});try{document.activeElement&&document.activeElement.nodeName.toLowerCase()!="body"?a(document.activeElement).blur():a("input:focus, textarea:focus, select:focus").blur()}catch(C){}y&&s&&(p=(s.url||
-"")+t);if(g.changeHash!==false&&p)m.ignoreNextHashChange=true,j.set(p);var B=!s?u:b.jqmData("title")||b.children(":jqmData(role='header')").find(".ui-title").getEncodedText();B&&u==document.title&&(u=B);b.jqmData("title")||b.jqmData("title",u);g.transition=g.transition||(x&&!w?s.transition:e)||(y?a.mobile.defaultDialogTransition:a.mobile.defaultPageTransition);x||m.addNew(p,g.transition,u,o,g.role);document.title=m.getActive().title;a.mobile.activePage=b;g.reverse=g.reverse||x<0;c(b,l,g.transition,
-g.reverse).done(function(){d();g.duplicateCachedPage&&g.duplicateCachedPage.remove();n.removeClass("ui-mobile-rendering");f();q.trigger("pagechange",k)})}}}};a.mobile.changePage.defaults={transition:e,reverse:false,changeHash:true,fromHashChange:false,role:e,duplicateCachedPage:e,pageContainer:e,showLoadMsg:true,dataUrl:e,fromPage:e,allowSamePageTransition:false};a.mobile._registerInternalEvents=function(){a(document).delegate("form","submit",function(b){var c=a(this);if(a.mobile.ajaxEnabled&&!c.is(":jqmData(ajax='false')")){var d=
-c.attr("method"),f=c.attr("target"),e=c.attr("action");if(!e&&(e=k(c),e===s.hrefNoHash))e=v.hrefNoSearch;e=j.makeUrlAbsolute(e,k(c));j.isExternal(e)&&!j.isPermittedCrossDomainRequest(v,e)||f||(a.mobile.changePage(e,{type:d&&d.length&&d.toLowerCase()||"get",data:c.serialize(),transition:c.jqmData("transition"),direction:c.jqmData("direction"),reloadPage:true}),b.preventDefault())}});a(document).bind("vclick",function(b){if(!(b.which>1)&&a.mobile.linkBindingEnabled&&(b=l(b.target))&&j.parseUrl(b.getAttribute("href")||
-"#").hash!=="#")d(true),p=a(b).closest(".ui-btn").not(".ui-disabled"),p.addClass(a.mobile.activeBtnClass),a("."+a.mobile.activePageClass+" .ui-btn").not(b).blur()});a(document).bind("click",function(b){if(a.mobile.linkBindingEnabled){var c=l(b.target);if(c&&!(b.which>1)){var f=a(c),h=function(){window.setTimeout(function(){d(true)},200)};if(f.is(":jqmData(rel='back')"))return window.history.back(),false;var g=k(f),c=j.makeUrlAbsolute(f.attr("href")||"#",g);if(!a.mobile.ajaxEnabled&&!j.isEmbeddedPage(c))h();
-else{if(c.search("#")!=-1)if(c=c.replace(/[^#]*#/,""))c=j.isPath(c)?j.makeUrlAbsolute(c,g):j.makeUrlAbsolute("#"+c,v.hrefNoHash);else{b.preventDefault();return}f.is("[rel='external']")||f.is(":jqmData(ajax='false')")||f.is("[target]")||j.isExternal(c)&&!j.isPermittedCrossDomainRequest(v,c)?h():(h=f.jqmData("transition"),g=(g=f.jqmData("direction"))&&g==="reverse"||f.jqmData("back"),f=f.attr("data-"+a.mobile.ns+"rel")||e,a.mobile.changePage(c,{transition:h,reverse:g,role:f}),b.preventDefault())}}}});
-a(document).delegate(".ui-page","pageshow.prefetch",function(){var b=[];a(this).find("a:jqmData(prefetch)").each(function(){var c=a(this),f=c.attr("href");f&&a.inArray(f,b)===-1&&(b.push(f),a.mobile.loadPage(f,{role:c.attr("data-"+a.mobile.ns+"rel")}))})});a.mobile._handleHashChange=function(b){var c=j.stripHash(b),f={transition:a.mobile.urlHistory.stack.length===0?"none":e,changeHash:false,fromHashChange:true};if(!a.mobile.hashListeningEnabled||m.ignoreNextHashChange)m.ignoreNextHashChange=false;
-else{if(m.stack.length>1&&c.indexOf(t)>-1)if(a.mobile.activePage.is(".ui-dialog"))m.directHashChange({currentUrl:c,either:function(b){var d=a.mobile.urlHistory.getActive();c=d.pageUrl;a.extend(f,{role:d.role,transition:d.transition,reverse:b})}});else{m.directHashChange({currentUrl:c,isBack:function(){window.history.back()},isForward:function(){window.history.forward()}});return}c?(c=typeof c==="string"&&!j.isPath(c)?j.makeUrlAbsolute("#"+c,s):c,a.mobile.changePage(c,f)):a.mobile.changePage(a.mobile.firstPage,
-f)}};o.bind("hashchange",function(){a.mobile._handleHashChange(location.hash)});a(document).bind("pageshow",g);a(window).bind("throttledresize",g)}})(jQuery);
-(function(a,e){var b={},d=a(e),f=a.mobile.path.parseUrl(location.href);a.extend(b,{initialFilePath:f.pathname+f.search,initialHref:f.hrefNoHash,hashchangeFired:false,state:function(){return{hash:location.hash||"#"+b.initialFilePath,title:document.title,initialHref:b.initialHref}},resetUIKeys:function(b){var f="&"+a.mobile.subPageUrlKey,d=b.indexOf(a.mobile.dialogHashKey);d>-1?b=b.slice(0,d)+"#"+b.slice(d):b.indexOf(f)>-1&&(b=b.split(f).join("#"+f));return b},nextHashChangePrevented:function(c){a.mobile.urlHistory.ignoreNextHashChange=
-c;b.onHashChangeDisabled=c},onHashChange:function(){if(!b.onHashChangeDisabled){var c,f;c=location.hash;var d=a.mobile.path.isPath(c),e=d?location.href:a.mobile.getDocumentUrl();c=d?c.replace("#",""):c;f=b.state();c=a.mobile.path.makeUrlAbsolute(c,e);d&&(c=b.resetUIKeys(c));history.replaceState(f,document.title,c)}},onPopState:function(c){var f=c.originalEvent.state;f&&(b.nextHashChangePrevented(true),setTimeout(function(){b.nextHashChangePrevented(false);a.mobile._handleHashChange(f.hash)},100))},
-init:function(){d.bind("hashchange",b.onHashChange);d.bind("popstate",b.onPopState);location.hash===""&&history.replaceState(b.state(),document.title,location.href)}});a(function(){a.mobile.pushStateEnabled&&a.support.pushState&&b.init()})})(jQuery,this);
-(function(a){function e(b,d,f,c){var e=new a.Deferred,g=d?" reverse":"",i="ui-mobile-viewport-transitioning viewport-"+b;f.animationComplete(function(){f.add(c).removeClass("out in reverse "+b);c&&c[0]!==f[0]&&c.removeClass(a.mobile.activePageClass);f.parent().removeClass(i);e.resolve(b,d,f,c)});f.parent().addClass(i);c&&c.addClass(b+" out"+g);f.addClass(a.mobile.activePageClass+" "+b+" in"+g);return e.promise()}a.mobile.css3TransitionHandler=e;if(a.mobile.defaultTransitionHandler===a.mobile.noneTransitionHandler)a.mobile.defaultTransitionHandler=
-e})(jQuery,this);
-(function(a){a.mobile.page.prototype.options.degradeInputs={color:false,date:false,datetime:false,"datetime-local":false,email:false,month:false,number:false,range:"number",search:"text",tel:false,time:false,url:false,week:false};a(document).bind("pagecreate create",function(e){var b=a.mobile.closestPageData(a(e.target));if(b)options=b.options,a(e.target).find("input").not(b.keepNativeSelector()).each(function(){var b=a(this),f=this.getAttribute("type"),c=options.degradeInputs[f]||"text";if(options.degradeInputs[f]){var e=
-a("<div>").html(b.clone()).html(),g=e.indexOf(" type=")>-1;b.replaceWith(e.replace(g?/\s+type=["']?\w+['"]?/:/\/?>/,' type="'+c+'" data-'+a.mobile.ns+'type="'+f+'"'+(g?"":">")))}})})})(jQuery);
-(function(a,e){a.widget("mobile.dialog",a.mobile.widget,{options:{closeBtnText:"Close",overlayTheme:"a",initSelector:":jqmData(role='dialog')"},_create:function(){var b=this,d=this.element,f=a("<a href='#' data-"+a.mobile.ns+"icon='delete' data-"+a.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>");d.addClass("ui-overlay-"+this.options.overlayTheme);d.attr("role","dialog").addClass("ui-dialog").find(":jqmData(role='header')").addClass("ui-corner-top ui-overlay-shadow").prepend(f).end().find(":jqmData(role='content'),:jqmData(role='footer')").addClass("ui-overlay-shadow").last().addClass("ui-corner-bottom");
-f.bind("click",function(){b.close()});d.bind("vclick submit",function(b){var b=a(b.target).closest(b.type==="vclick"?"a":"form"),f;b.length&&!b.jqmData("transition")&&(f=a.mobile.urlHistory.getActive()||{},b.attr("data-"+a.mobile.ns+"transition",f.transition||a.mobile.defaultDialogTransition).attr("data-"+a.mobile.ns+"direction","reverse"))}).bind("pagehide",function(){a(this).find("."+a.mobile.activeBtnClass).removeClass(a.mobile.activeBtnClass)})},close:function(){e.history.back()}});a(document).delegate(a.mobile.dialog.prototype.options.initSelector,
-"pagecreate",function(){a(this).dialog()})})(jQuery,this);
-(function(a){a.mobile.page.prototype.options.backBtnText="Back";a.mobile.page.prototype.options.addBackBtn=false;a.mobile.page.prototype.options.backBtnTheme=null;a.mobile.page.prototype.options.headerTheme="a";a.mobile.page.prototype.options.footerTheme="a";a.mobile.page.prototype.options.contentTheme=null;a(document).delegate(":jqmData(role='page'), :jqmData(role='dialog')","pagecreate",function(){var e=a(this),b=e.data("page").options,d=e.jqmData("role"),f=b.theme;a(":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')",
-this).each(function(){var c=a(this),e=c.jqmData("role"),g=c.jqmData("theme"),i=g||b.contentTheme||d==="dialog"&&f,l;c.addClass("ui-"+e);if(e==="header"||e==="footer"){var k=g||(e==="header"?b.headerTheme:b.footerTheme)||f;c.addClass("ui-bar-"+k).attr("role",e==="header"?"banner":"contentinfo");g=c.children("a");i=g.hasClass("ui-btn-left");l=g.hasClass("ui-btn-right");i=i||g.eq(0).not(".ui-btn-right").addClass("ui-btn-left").length;l||g.eq(1).addClass("ui-btn-right");b.addBackBtn&&e==="header"&&a(".ui-page").length>
-1&&c.jqmData("url")!==a.mobile.path.stripHash(location.hash)&&!i&&a("<a href='#' class='ui-btn-left' data-"+a.mobile.ns+"rel='back' data-"+a.mobile.ns+"icon='arrow-l'>"+b.backBtnText+"</a>").attr("data-"+a.mobile.ns+"theme",b.backBtnTheme||k).prependTo(c);c.children("h1, h2, h3, h4, h5, h6").addClass("ui-title").attr({tabindex:"0",role:"heading","aria-level":"1"})}else e==="content"&&(i&&c.addClass("ui-body-"+i),c.attr("role","main"))})})})(jQuery);
-(function(a){a.widget("mobile.collapsible",a.mobile.widget,{options:{expandCueText:" click to expand contents",collapseCueText:" click to collapse contents",collapsed:true,heading:"h1,h2,h3,h4,h5,h6,legend",theme:null,contentTheme:null,iconTheme:"d",initSelector:":jqmData(role='collapsible')"},_create:function(){var e=this.element,b=this.options,d=e.addClass("ui-collapsible"),f=e.children(b.heading).first(),c=d.wrapInner("<div class='ui-collapsible-content'></div>").find(".ui-collapsible-content"),
-h=e.closest(":jqmData(role='collapsible-set')").addClass("ui-collapsible-set");f.is("legend")&&(f=a("<div role='heading'>"+f.html()+"</div>").insertBefore(f),f.next().remove());if(h.length){if(!b.theme)b.theme=h.jqmData("theme");if(!b.contentTheme)b.contentTheme=h.jqmData("content-theme")}c.addClass(b.contentTheme?"ui-body-"+b.contentTheme:"");f.insertBefore(c).addClass("ui-collapsible-heading").append("<span class='ui-collapsible-heading-status'></span>").wrapInner("<a href='#' class='ui-collapsible-heading-toggle'></a>").find("a").first().buttonMarkup({shadow:false,
-corners:false,iconPos:"left",icon:"plus",theme:b.theme}).add(".ui-btn-inner").addClass("ui-corner-top ui-corner-bottom");d.bind("expand collapse",function(e){if(!e.isDefaultPrevented()){e.preventDefault();var i=a(this),e=e.type==="collapse",l=b.contentTheme;f.toggleClass("ui-collapsible-heading-collapsed",e).find(".ui-collapsible-heading-status").text(e?b.expandCueText:b.collapseCueText).end().find(".ui-icon").toggleClass("ui-icon-minus",!e).toggleClass("ui-icon-plus",e);i.toggleClass("ui-collapsible-collapsed",
-e);c.toggleClass("ui-collapsible-content-collapsed",e).attr("aria-hidden",e);if(l&&(!h.length||d.jqmData("collapsible-last")))f.find("a").first().add(f.find(".ui-btn-inner")).toggleClass("ui-corner-bottom",e),c.toggleClass("ui-corner-bottom",!e);c.trigger("updatelayout")}}).trigger(b.collapsed?"collapse":"expand");f.bind("click",function(a){var b=f.is(".ui-collapsible-heading-collapsed")?"expand":"collapse";d.trigger(b);a.preventDefault()})}});a(document).bind("pagecreate create",function(e){a(a.mobile.collapsible.prototype.options.initSelector,
-e.target).collapsible()})})(jQuery);
-(function(a){a.widget("mobile.collapsibleset",a.mobile.widget,{options:{initSelector:":jqmData(role='collapsible-set')"},_create:function(){var e=this.element.addClass("ui-collapsible-set"),b=this.options,d=e.children(":jqmData(role='collapsible')");if(!b.theme)b.theme=e.jqmData("theme");if(!b.contentTheme)b.contentTheme=e.jqmData("content-theme");e.jqmData("collapsiblebound")||(e.jqmData("collapsiblebound",true).bind("expand collapse",function(b){var c=b.type==="collapse",b=a(b.target).closest(".ui-collapsible"),
-d=b.data("collapsible");d.options.contentTheme&&b.jqmData("collapsible-last")&&(b.find(d.options.heading).first().find("a").first().add(".ui-btn-inner").toggleClass("ui-corner-bottom",c),b.find(".ui-collapsible-content").toggleClass("ui-corner-bottom",!c))}).bind("expand",function(b){a(b.target).closest(".ui-collapsible").siblings(".ui-collapsible").trigger("collapse")}),d.each(function(){a(this).find(a.mobile.collapsible.prototype.options.heading).find("a").first().add(".ui-btn-inner").removeClass("ui-corner-top ui-corner-bottom")}),
-d.first().find("a").first().addClass("ui-corner-top").find(".ui-btn-inner").addClass("ui-corner-top"),d.last().jqmData("collapsible-last",true).find("a").first().addClass("ui-corner-bottom").find(".ui-btn-inner").addClass("ui-corner-bottom"))}});a(document).bind("pagecreate create",function(e){a(a.mobile.collapsibleset.prototype.options.initSelector,e.target).collapsibleset()})})(jQuery);
-(function(a){a.fn.fieldcontain=function(){return this.addClass("ui-field-contain ui-body ui-br")};a(document).bind("pagecreate create",function(e){a(":jqmData(role='fieldcontain')",e.target).fieldcontain()})})(jQuery);
-(function(a){a.fn.grid=function(e){return this.each(function(){var b=a(this),d=a.extend({grid:null},e),f=b.children(),c={solo:1,a:2,b:3,c:4,d:5},d=d.grid;if(!d)if(f.length<=5)for(var h in c)c[h]===f.length&&(d=h);else d="a";c=c[d];b.addClass("ui-grid-"+d);f.filter(":nth-child("+c+"n+1)").addClass("ui-block-a");c>1&&f.filter(":nth-child("+c+"n+2)").addClass("ui-block-b");c>2&&f.filter(":nth-child(3n+3)").addClass("ui-block-c");c>3&&f.filter(":nth-child(4n+4)").addClass("ui-block-d");c>4&&f.filter(":nth-child(5n+5)").addClass("ui-block-e")})}})(jQuery);
-(function(a,e){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null,initSelector:":jqmData(role='navbar')"},_create:function(){var b=this.element,d=b.find("a"),f=d.filter(":jqmData(icon)").length?this.options.iconpos:e;b.addClass("ui-navbar").attr("role","navigation").find("ul").grid({grid:this.options.grid});f||b.addClass("ui-navbar-noicons");d.buttonMarkup({corners:false,shadow:false,iconpos:f});b.delegate("a","vclick",function(b){a(b.target).hasClass("ui-disabled")||(d.not(".ui-state-persist").removeClass(a.mobile.activeBtnClass),
-a(this).addClass(a.mobile.activeBtnClass))})}});a(document).bind("pagecreate create",function(b){a(a.mobile.navbar.prototype.options.initSelector,b.target).navbar()})})(jQuery);
-(function(a){var e={};a.widget("mobile.listview",a.mobile.widget,{options:{theme:null,countTheme:"c",headerTheme:"b",dividerTheme:"b",splitIcon:"arrow-r",splitTheme:"b",inset:false,initSelector:":jqmData(role='listview')"},_create:function(){var a=this;a.element.addClass(function(d,f){return f+" ui-listview "+(a.options.inset?" ui-listview-inset ui-corner-all ui-shadow ":"")});a.refresh(true)},_removeCorners:function(a,d){a=a.add(a.find(".ui-btn-inner, .ui-li-link-alt, .ui-li-thumb"));d==="top"?a.removeClass("ui-corner-top ui-corner-tr ui-corner-tl"):
-d==="bottom"?a.removeClass("ui-corner-bottom ui-corner-br ui-corner-bl"):a.removeClass("ui-corner-top ui-corner-tr ui-corner-tl ui-corner-bottom ui-corner-br ui-corner-bl")},_refreshCorners:function(a){var d,f;this.options.inset&&(d=this.element.children("li"),f=a?d.not(".ui-screen-hidden"):d.filter(":visible"),this._removeCorners(d),d=f.first().addClass("ui-corner-top"),d.add(d.find(".ui-btn-inner").not(".ui-li-link-alt span:first-child")).addClass("ui-corner-top").end().find(".ui-li-link-alt, .ui-li-link-alt span:first-child").addClass("ui-corner-tr").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-tl"),
-f=f.last().addClass("ui-corner-bottom"),f.add(f.find(".ui-btn-inner")).find(".ui-li-link-alt").addClass("ui-corner-br").end().find(".ui-li-thumb").not(".ui-li-icon").addClass("ui-corner-bl"));a||this.element.trigger("updatelayout")},_findFirstElementByTagName:function(a,d,f,c){var e={};for(e[f]=e[c]=true;a;){if(e[a.nodeName])return a;a=a[d]}return null},_getChildrenByTagName:function(b,d,f){var c=[],e={};e[d]=e[f]=true;for(b=b.firstChild;b;)e[b.nodeName]&&c.push(b),b=b.nextSibling;return a(c)},_addThumbClasses:function(b){var d,
-f,c=b.length;for(d=0;d<c;d++)f=a(this._findFirstElementByTagName(b[d].firstChild,"nextSibling","img","IMG")),f.length&&(f.addClass("ui-li-thumb"),a(this._findFirstElementByTagName(f[0].parentNode,"parentNode","li","LI")).addClass(f.is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb"))},refresh:function(b){this.parentPage=this.element.closest(".ui-page");this._createSubPages();var d=this.options,f=this.element,c=f.jqmData("dividertheme")||d.dividerTheme,e=f.jqmData("splittheme"),g=f.jqmData("spliticon"),
-i=this._getChildrenByTagName(f[0],"li","LI"),l=a.support.cssPseudoElement||!a.nodeName(f[0],"ol")?0:1,k={},o,n,q,j,p;l&&f.find(".ui-li-dec").remove();if(!d.theme)d.theme=a.mobile.getInheritedTheme(this.element,"c");for(var m=0,A=i.length;m<A;m++){o=i.eq(m);n="ui-li";if(b||!o.hasClass("ui-li"))q=o.jqmData("theme")||d.theme,j=this._getChildrenByTagName(o[0],"a","A"),j.length?(p=o.jqmData("icon"),o.buttonMarkup({wrapperEls:"div",shadow:false,corners:false,iconpos:"right",icon:j.length>1||p===false?false:
-p||"arrow-r",theme:q}),p!=false&&j.length==1&&o.addClass("ui-li-has-arrow"),j.first().addClass("ui-link-inherit"),j.length>1&&(n+=" ui-li-has-alt",j=j.last(),p=e||j.jqmData("theme")||d.splitTheme,j.appendTo(o).attr("title",j.getEncodedText()).addClass("ui-li-link-alt").empty().buttonMarkup({shadow:false,corners:false,theme:q,icon:false,iconpos:false}).find(".ui-btn-inner").append(a(document.createElement("span")).buttonMarkup({shadow:true,corners:true,theme:p,iconpos:"notext",icon:g||j.jqmData("icon")||
-d.splitIcon})))):o.jqmData("role")==="list-divider"?(n+=" ui-li-divider ui-btn ui-bar-"+c,o.attr("role","heading"),l&&(l=1)):n+=" ui-li-static ui-body-"+q;l&&n.indexOf("ui-li-divider")<0&&(q=o.is(".ui-li-static:first")?o:o.find(".ui-link-inherit"),q.addClass("ui-li-jsnumbering").prepend("<span class='ui-li-dec'>"+l++ +". </span>"));k[n]||(k[n]=[]);k[n].push(o[0])}for(n in k)a(k[n]).addClass(n).children(".ui-btn-inner").addClass(n);f.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading").end().find("p, dl").addClass("ui-li-desc").end().find(".ui-li-aside").each(function(){var b=
-a(this);b.prependTo(b.parent())}).end().find(".ui-li-count").each(function(){a(this).closest("li").addClass("ui-li-has-count")}).addClass("ui-btn-up-"+(f.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all");this._addThumbClasses(i);this._addThumbClasses(f.find(".ui-link-inherit"));this._refreshCorners(b)},_idStringEscape:function(a){return a.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var b=this.element,d=b.closest(".ui-page"),f=d.jqmData("url"),c=f||d[0][a.expando],
-h=b.attr("id"),g=this.options,i="data-"+a.mobile.ns,l=this,k=d.find(":jqmData(role='footer')").jqmData("id"),o;typeof e[c]==="undefined"&&(e[c]=-1);h=h||++e[c];a(b.find("li>ul, li>ol").toArray().reverse()).each(function(c){var d=a(this),e=d.attr("id")||h+"-"+c,c=d.parent(),l=a(d.prevAll().toArray().reverse()),l=l.length?l:a("<span>"+a.trim(c.contents()[0].nodeValue)+"</span>"),m=l.first().getEncodedText(),e=(f||"")+"&"+a.mobile.subPageUrlKey+"="+e,A=d.jqmData("theme")||g.theme,z=d.jqmData("counttheme")||
-b.jqmData("counttheme")||g.countTheme;o=true;d.detach().wrap("<div "+i+"role='page' "+i+"url='"+e+"' "+i+"theme='"+A+"' "+i+"count-theme='"+z+"'><div "+i+"role='content'></div></div>").parent().before("<div "+i+"role='header' "+i+"theme='"+g.headerTheme+"'><div class='ui-title'>"+m+"</div></div>").after(k?a("<div "+i+"role='footer' "+i+"id='"+k+"'>"):"").parent().appendTo(a.mobile.pageContainer).page();d=c.find("a:first");d.length||(d=a("<a/>").html(l||m).prependTo(c.empty()));d.attr("href","#"+e)}).listview();
-o&&d.is(":jqmData(external-page='true')")&&d.data("page").options.domCache===false&&d.unbind("pagehide.remove").bind("pagehide.remove",function(b,c){var e=c.nextPage;c.nextPage&&(e=e.jqmData("url"),e.indexOf(f+"&"+a.mobile.subPageUrlKey)!==0&&(l.childPages().remove(),d.remove()))})},childPages:function(){var b=this.parentPage.jqmData("url");return a(":jqmData(url^='"+b+"&"+a.mobile.subPageUrlKey+"')")}});a(document).bind("pagecreate create",function(b){a(a.mobile.listview.prototype.options.initSelector,
-b.target).listview()})})(jQuery);
-(function(a){a.mobile.listview.prototype.options.filter=false;a.mobile.listview.prototype.options.filterPlaceholder="Filter items...";a.mobile.listview.prototype.options.filterTheme="c";a.mobile.listview.prototype.options.filterCallback=function(a,b){return a.toLowerCase().indexOf(b)===-1};a(document).delegate(":jqmData(role='listview')","listviewcreate",function(){var e=a(this),b=e.data("listview");if(b.options.filter){var d=a("<form>",{"class":"ui-listview-filter ui-bar-"+b.options.filterTheme,
-role:"search"});a("<input>",{placeholder:b.options.filterPlaceholder}).attr("data-"+a.mobile.ns+"type","search").jqmData("lastval","").bind("keyup change",function(){var d=a(this),c=this.value.toLowerCase(),h=null,h=d.jqmData("lastval")+"",g=false,i="";d.jqmData("lastval",c);h=c.length<h.length||c.indexOf(h)!==0?e.children():e.children(":not(.ui-screen-hidden)");if(c){for(var l=h.length-1;l>=0;l--)d=a(h[l]),i=d.jqmData("filtertext")||d.text(),d.is("li:jqmData(role=list-divider)")?(d.toggleClass("ui-filter-hidequeue",
-!g),g=false):b.options.filterCallback(i,c)?d.toggleClass("ui-filter-hidequeue",true):g=true;h.filter(":not(.ui-filter-hidequeue)").toggleClass("ui-screen-hidden",false);h.filter(".ui-filter-hidequeue").toggleClass("ui-screen-hidden",true).toggleClass("ui-filter-hidequeue",false)}else h.toggleClass("ui-screen-hidden",false);b._refreshCorners()}).appendTo(d).textinput();a(this).jqmData("inset")&&d.addClass("ui-listview-filter-inset");d.bind("submit",function(){return false}).insertBefore(e)}})})(jQuery);
-(function(a){a(document).bind("pagecreate create",function(e){a(":jqmData(role='nojs')",e.target).addClass("ui-nojs")})})(jQuery);
-(function(a,e){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null,initSelector:"input[type='checkbox'],input[type='radio']"},_create:function(){var b=this,d=this.element,f=d.closest("form,fieldset,:jqmData(role='page')").find("label").filter("[for='"+d[0].id+"']"),c=d.attr("type"),h=c+"-on",g=c+"-off",i=d.parents(":jqmData(type='horizontal')").length?e:g;if(!(c!=="checkbox"&&c!=="radio")){a.extend(this,{label:f,inputtype:c,checkedClass:"ui-"+h+(i?"":" "+a.mobile.activeBtnClass),
-uncheckedClass:"ui-"+g,checkedicon:"ui-icon-"+h,uncheckedicon:"ui-icon-"+g});if(!this.options.theme)this.options.theme=this.element.jqmData("theme");f.buttonMarkup({theme:this.options.theme,icon:i,shadow:false});d.add(f).wrapAll("<div class='ui-"+c+"'></div>");f.bind({vmouseover:function(b){a(this).parent().is(".ui-disabled")&&b.stopPropagation()},vclick:function(a){if(d.is(":disabled"))a.preventDefault();else return b._cacheVals(),d.prop("checked",c==="radio"&&true||!d.prop("checked")),d.triggerHandler("click"),
-b._getInputSet().not(d).prop("checked",false),b._updateAll(),false}});d.bind({vmousedown:function(){b._cacheVals()},vclick:function(){var c=a(this);c.is(":checked")?(c.prop("checked",true),b._getInputSet().not(c).prop("checked",false)):c.prop("checked",false);b._updateAll()},focus:function(){f.addClass("ui-focus")},blur:function(){f.removeClass("ui-focus")}});this.refresh()}},_cacheVals:function(){this._getInputSet().each(function(){var b=a(this);b.jqmData("cacheVal",b.is(":checked"))})},_getInputSet:function(){return this.inputtype==
-"checkbox"?this.element:this.element.closest("form,fieldset,:jqmData(role='page')").find("input[name='"+this.element.attr("name")+"'][type='"+this.inputtype+"']")},_updateAll:function(){var b=this;this._getInputSet().each(function(){var d=a(this);(d.is(":checked")||b.inputtype==="checkbox")&&d.trigger("change")}).checkboxradio("refresh")},refresh:function(){var b=this.element,d=this.label,f=d.find(".ui-icon");a(b[0]).prop("checked")?(d.addClass(this.checkedClass).removeClass(this.uncheckedClass),
-f.addClass(this.checkedicon).removeClass(this.uncheckedicon)):(d.removeClass(this.checkedClass).addClass(this.uncheckedClass),f.removeClass(this.checkedicon).addClass(this.uncheckedicon));b.is(":disabled")?this.disable():this.enable()},disable:function(){this.element.prop("disabled",true).parent().addClass("ui-disabled")},enable:function(){this.element.prop("disabled",false).parent().removeClass("ui-disabled")}});a(document).bind("pagecreate create",function(b){a.mobile.checkboxradio.prototype.enhanceWithin(b.target)})})(jQuery);
-(function(a,e){a.widget("mobile.button",a.mobile.widget,{options:{theme:null,icon:null,iconpos:null,inline:null,corners:true,shadow:true,iconshadow:true,initSelector:"button, [type='button'], [type='submit'], [type='reset'], [type='image']"},_create:function(){var b=this.element,d=this.options,f,c;b[0].tagName==="A"?b.hasClass("ui-btn")||b.buttonMarkup():(this.button=a("<div></div>").text(b.text()||b.val()).insertBefore(b).buttonMarkup({theme:d.theme,icon:d.icon,iconpos:d.iconpos,inline:d.inline,
-corners:d.corners,shadow:d.shadow,iconshadow:d.iconshadow}).append(b.addClass("ui-btn-hidden")),d=b.attr("type"),f=b.attr("name"),d!=="button"&&d!=="reset"&&f&&b.bind("vclick",function(){c===e&&(c=a("<input>",{type:"hidden",name:b.attr("name"),value:b.attr("value")}).insertBefore(b),a(document).one("submit",function(){c.remove();c=e}))}),this.refresh())},enable:function(){this.element.attr("disabled",false);this.button.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",
-false)},disable:function(){this.element.attr("disabled",true);this.button.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)},refresh:function(){var a=this.element;a.prop("disabled")?this.disable():this.enable();this.button.data("textWrapper").text(a.text()||a.val())}});a(document).bind("pagecreate create",function(b){a.mobile.button.prototype.enhanceWithin(b.target)})})(jQuery);
-(function(a,e){a.widget("mobile.slider",a.mobile.widget,{options:{theme:null,trackTheme:null,disabled:false,initSelector:"input[type='range'], :jqmData(type='range'), :jqmData(role='slider')"},_create:function(){var b=this,d=this.element,f=a.mobile.getInheritedTheme(d,"c"),c=this.options.theme||f,h=this.options.trackTheme||f,g=d[0].nodeName.toLowerCase(),f=g=="select"?"ui-slider-switch":"",i=d.attr("id"),l=i+"-label",i=a("[for='"+i+"']").attr("id",l),k=function(){return g=="input"?parseFloat(d.val()):
-d[0].selectedIndex},o=g=="input"?parseFloat(d.attr("min")):0,n=g=="input"?parseFloat(d.attr("max")):d.find("option").length-1,q=window.parseFloat(d.attr("step")||1),j=a("<div class='ui-slider "+f+" ui-btn-down-"+h+" ui-btn-corner-all' role='application'></div>"),p=a("<a href='#' class='ui-slider-handle'></a>").appendTo(j).buttonMarkup({corners:true,theme:c,shadow:true}).attr({role:"slider","aria-valuemin":o,"aria-valuemax":n,"aria-valuenow":k(),"aria-valuetext":k(),title:k(),"aria-labelledby":l});
-a.extend(this,{slider:j,handle:p,dragging:false,beforeStart:null,userModified:false,mouseMoved:false});g=="select"&&(j.wrapInner("<div class='ui-slider-inneroffset'></div>"),p.addClass("ui-slider-handle-snapping"),d.find("option"),d.find("option").each(function(b){var c=!b?"b":"a",d=!b?"right":"left",b=!b?" ui-btn-down-"+h:" "+a.mobile.activeBtnClass;a("<div class='ui-slider-labelbg ui-slider-labelbg-"+c+b+" ui-btn-corner-"+d+"'></div>").prependTo(j);a("<span class='ui-slider-label ui-slider-label-"+
-c+b+" ui-btn-corner-"+d+"' role='img'>"+a(this).getEncodedText()+"</span>").prependTo(p)}));i.addClass("ui-slider");d.addClass(g==="input"?"ui-slider-input":"ui-slider-switch").change(function(){b.mouseMoved||b.refresh(k(),true)}).keyup(function(){b.refresh(k(),true,true)}).blur(function(){b.refresh(k(),true)});a(document).bind("vmousemove",function(a){if(b.dragging)return b.mouseMoved=true,g==="select"&&p.removeClass("ui-slider-handle-snapping"),b.refresh(a),b.userModified=b.beforeStart!==d[0].selectedIndex,
-false});j.bind("vmousedown",function(a){b.dragging=true;b.userModified=false;b.mouseMoved=false;if(g==="select")b.beforeStart=d[0].selectedIndex;b.refresh(a);return false});j.add(document).bind("vmouseup",function(){if(b.dragging)return b.dragging=false,g==="select"&&(p.addClass("ui-slider-handle-snapping"),b.mouseMoved?b.userModified?b.refresh(b.beforeStart==0?1:0):b.refresh(b.beforeStart):b.refresh(b.beforeStart==0?1:0)),b.mouseMoved=false});j.insertAfter(d);this.handle.bind("vmousedown",function(){a(this).focus()}).bind("vclick",
-false);this.handle.bind("keydown",function(c){var d=k();if(!b.options.disabled){switch(c.keyCode){case a.mobile.keyCode.HOME:case a.mobile.keyCode.END:case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:if(c.preventDefault(),!b._keySliding)b._keySliding=true,a(this).addClass("ui-state-active")}switch(c.keyCode){case a.mobile.keyCode.HOME:b.refresh(o);break;case a.mobile.keyCode.END:b.refresh(n);
-break;case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:b.refresh(d+q);break;case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:b.refresh(d-q)}}}).keyup(function(){if(b._keySliding)b._keySliding=false,a(this).removeClass("ui-state-active")});this.refresh(e,e,true)},refresh:function(a,d,f){(this.options.disabled||this.element.attr("disabled"))&&this.disable();var c=this.element,e=c[0].nodeName.toLowerCase(),g=e==="input"?parseFloat(c.attr("min")):
-0,i=e==="input"?parseFloat(c.attr("max")):c.find("option").length-1,l=e==="input"&&parseFloat(c.attr("step"))>0?parseFloat(c.attr("step")):1;if(typeof a==="object"){if(!this.dragging||a.pageX<this.slider.offset().left-8||a.pageX>this.slider.offset().left+this.slider.width()+8)return;a=Math.round((a.pageX-this.slider.offset().left)/this.slider.width()*100)}else a==null&&(a=e==="input"?parseFloat(c.val()||0):c[0].selectedIndex),a=(parseFloat(a)-g)/(i-g)*100;if(!isNaN(a)){a<0&&(a=0);a>100&&(a=100);var k=
-a/100*(i-g)+g,o=(k-g)%l;k-=o;Math.abs(o)*2>=l&&(k+=o>0?l:-l);k=parseFloat(k.toFixed(5));k<g&&(k=g);k>i&&(k=i);this.handle.css("left",a+"%");this.handle.attr({"aria-valuenow":e==="input"?k:c.find("option").eq(k).attr("value"),"aria-valuetext":e==="input"?k:c.find("option").eq(k).getEncodedText(),title:e==="input"?k:c.find("option").eq(k).getEncodedText()});e==="select"&&(k===0?this.slider.addClass("ui-slider-switch-a").removeClass("ui-slider-switch-b"):this.slider.addClass("ui-slider-switch-b").removeClass("ui-slider-switch-a"));
-if(!f)f=false,e==="input"?(f=c.val()!==k,c.val(k)):(f=c[0].selectedIndex!==k,c[0].selectedIndex=k),!d&&f&&c.trigger("change")}},enable:function(){this.element.attr("disabled",false);this.slider.removeClass("ui-disabled").attr("aria-disabled",false);return this._setOption("disabled",false)},disable:function(){this.element.attr("disabled",true);this.slider.addClass("ui-disabled").attr("aria-disabled",true);return this._setOption("disabled",true)}});a(document).bind("pagecreate create",function(b){a.mobile.slider.prototype.enhanceWithin(b.target)})})(jQuery);
-(function(a){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null,initSelector:"input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])"},_create:function(){var e=this.element,
-b=this.options.theme||a.mobile.getInheritedTheme(this.element,"c"),d=" ui-body-"+b,f,c;a("label[for='"+e.attr("id")+"']").addClass("ui-input-text");f=e.addClass("ui-input-text ui-body-"+b);typeof e[0].autocorrect!=="undefined"&&!a.support.touchOverflow&&(e[0].setAttribute("autocorrect","off"),e[0].setAttribute("autocomplete","off"));e.is("[type='search'],:jqmData(type='search')")?(f=e.wrap("<div class='ui-input-search ui-shadow-inset ui-btn-corner-all ui-btn-shadow ui-icon-searchfield"+d+"'></div>").parent(),
-c=a("<a href='#' class='ui-input-clear' title='clear text'>clear text</a>").tap(function(a){e.val("").focus();e.trigger("change");c.addClass("ui-input-clear-hidden");a.preventDefault()}).appendTo(f).buttonMarkup({icon:"delete",iconpos:"notext",corners:true,shadow:true}),b=function(){setTimeout(function(){c.toggleClass("ui-input-clear-hidden",!e.val())},0)},b(),e.bind("paste cut keyup focus change blur",b)):e.addClass("ui-corner-all ui-shadow-inset"+d);e.focus(function(){f.addClass("ui-focus")}).blur(function(){f.removeClass("ui-focus")});
-if(e.is("textarea")){var h=function(){var a=e[0].scrollHeight;e[0].clientHeight<a&&e.height(a+15)},g;e.keyup(function(){clearTimeout(g);g=setTimeout(h,100)});a(document).one("pagechange",h);a.trim(e.val())&&a(window).load(h)}},disable:function(){(this.element.attr("disabled",true).is("[type='search'],:jqmData(type='search')")?this.element.parent():this.element).addClass("ui-disabled")},enable:function(){(this.element.attr("disabled",false).is("[type='search'],:jqmData(type='search')")?this.element.parent():
-this.element).removeClass("ui-disabled")}});a(document).bind("pagecreate create",function(e){a.mobile.textinput.prototype.enhanceWithin(e.target)})})(jQuery);
-(function(a){var e=function(b){var d=b.selectID,f=b.label,c=b.select.closest(".ui-page"),e=a("<div>",{"class":"ui-selectmenu-screen ui-screen-hidden"}).appendTo(c),g=b._selectOptions(),i=b.isMultiple=b.select[0].multiple,l=d+"-button",k=d+"-menu",o=a("<div data-"+a.mobile.ns+"role='dialog' data-"+a.mobile.ns+"theme='"+b.options.theme+"' data-"+a.mobile.ns+"overlay-theme='"+b.options.overlayTheme+"'><div data-"+a.mobile.ns+"role='header'><div class='ui-title'>"+f.getEncodedText()+"</div></div><div data-"+
-a.mobile.ns+"role='content'></div></div>").appendTo(a.mobile.pageContainer).page(),n=a("<div>",{"class":"ui-selectmenu ui-selectmenu-hidden ui-overlay-shadow ui-corner-all ui-body-"+b.options.overlayTheme+" "+a.mobile.defaultDialogTransition}).insertAfter(e),q=a("<ul>",{"class":"ui-selectmenu-list",id:k,role:"listbox","aria-labelledby":l}).attr("data-"+a.mobile.ns+"theme",b.options.theme).appendTo(n),j=a("<div>",{"class":"ui-header ui-bar-"+b.options.theme}).prependTo(n),p=a("<h1>",{"class":"ui-title"}).appendTo(j),
-m=a("<a>",{text:b.options.closeText,href:"#","class":"ui-btn-left"}).attr("data-"+a.mobile.ns+"iconpos","notext").attr("data-"+a.mobile.ns+"icon","delete").appendTo(j).buttonMarkup(),A=o.find(".ui-content"),z=o.find(".ui-header a");a.extend(b,{select:b.select,selectID:d,buttonId:l,menuId:k,thisPage:c,menuPage:o,label:f,screen:e,selectOptions:g,isMultiple:i,theme:b.options.theme,listbox:n,list:q,header:j,headerTitle:p,headerClose:m,menuPageContent:A,menuPageClose:z,placeholder:"",build:function(){var b=
-this;b.refresh();b.select.attr("tabindex","-1").focus(function(){a(this).blur();b.button.focus()});b.button.bind("vclick keydown",function(c){if(c.type=="vclick"||c.keyCode&&(c.keyCode===a.mobile.keyCode.ENTER||c.keyCode===a.mobile.keyCode.SPACE))b.open(),c.preventDefault()});b.list.attr("role","listbox").delegate(".ui-li>a","focusin",function(){a(this).attr("tabindex","0")}).delegate(".ui-li>a","focusout",function(){a(this).attr("tabindex","-1")}).delegate("li:not(.ui-disabled, .ui-li-divider)",
-"click",function(c){var d=b.select[0].selectedIndex,f=b.list.find("li:not(.ui-li-divider)").index(this),e=b._selectOptions().eq(f)[0];e.selected=b.isMultiple?!e.selected:true;b.isMultiple&&a(this).find(".ui-icon").toggleClass("ui-icon-checkbox-on",e.selected).toggleClass("ui-icon-checkbox-off",!e.selected);(b.isMultiple||d!==f)&&b.select.trigger("change");b.isMultiple||b.close();c.preventDefault()}).keydown(function(b){var c=a(b.target),d=c.closest("li");switch(b.keyCode){case 38:return b=d.prev(),
-b.length&&(c.blur().attr("tabindex","-1"),b.find("a").first().focus()),false;case 40:return b=d.next(),b.length&&(c.blur().attr("tabindex","-1"),b.find("a").first().focus()),false;case 13:case 32:return c.trigger("click"),false}});b.menuPage.bind("pagehide",function(){b.list.appendTo(b.listbox);b._focusButton();a.mobile._bindPageRemove.call(b.thisPage)});b.screen.bind("vclick",function(){b.close()});b.headerClose.click(function(){if(b.menuType=="overlay")return b.close(),false});b.thisPage.addDependents(this.menuPage)},
-_isRebuildRequired:function(){var a=this.list.find("li");return this._selectOptions().text()!==a.text()},refresh:function(b){var c=this;this._selectOptions();this.selected();var d=this.selectedIndices();(b||this._isRebuildRequired())&&c._buildList();c.setButtonText();c.setButtonCount();c.list.find("li:not(.ui-li-divider)").removeClass(a.mobile.activeBtnClass).attr("aria-selected",false).each(function(b){a.inArray(b,d)>-1&&(b=a(this),b.attr("aria-selected",true),c.isMultiple?b.find(".ui-icon").removeClass("ui-icon-checkbox-off").addClass("ui-icon-checkbox-on"):
-b.addClass(a.mobile.activeBtnClass))})},close:function(){if(!this.options.disabled&&this.isOpen)this.menuType=="page"?window.history.back():(this.screen.addClass("ui-screen-hidden"),this.listbox.addClass("ui-selectmenu-hidden").removeAttr("style").removeClass("in"),this.list.appendTo(this.listbox),this._focusButton()),this.isOpen=false},open:function(){if(!this.options.disabled){var b=this,c=b.list.parent().outerHeight(),d=b.list.parent().outerWidth(),f=a(".ui-page-active"),e=a.support.touchOverflow&&
-a.mobile.touchOverflowEnabled,f=f.is(".ui-native-fixed")?f.find(".ui-content"):f,g=e?f.scrollTop():a(window).scrollTop(),h=b.button.offset().top,j=a(window).height(),e=a(window).width();b.button.addClass(a.mobile.activeBtnClass);setTimeout(function(){b.button.removeClass(a.mobile.activeBtnClass)},300);if(c>j-80||!a.support.scrollTop){b.thisPage.unbind("pagehide.remove");if(g==0&&h>j)b.thisPage.one("pagehide",function(){a(this).jqmData("lastScroll",h)});b.menuPage.one("pageshow",function(){a(window).one("silentscroll",
-function(){b.list.find(a.mobile.activeBtnClass).focus()});b.isOpen=true});b.menuType="page";b.menuPageContent.append(b.list);b.menuPage.find("div .ui-title").text(b.label.text());a.mobile.changePage(b.menuPage,{transition:a.mobile.defaultDialogTransition})}else{b.menuType="overlay";b.screen.height(a(document).height()).removeClass("ui-screen-hidden");var i=h-g,n=g+j-h,m=c/2,f=parseFloat(b.list.parent().css("max-width")),c=i>c/2&&n>c/2?h+b.button.outerHeight()/2-m:i>n?g+j-c-30:g+30;d<f?f=(e-d)/2:(f=
-b.button.offset().left+b.button.outerWidth()/2-d/2,f<30?f=30:f+d>e&&(f=e-d-30));b.listbox.append(b.list).removeClass("ui-selectmenu-hidden").css({top:c,left:f}).addClass("in");b.list.find(a.mobile.activeBtnClass).focus();b.isOpen=true}}},_buildList:function(){var b=this,c=this.options,d=this.placeholder,f=[],e=[],g=b.isMultiple?"checkbox-off":"false";b.list.empty().filter(".ui-listview").listview("destroy");b.select.find("option").each(function(h){var j=a(this),i=j.parent(),n=j.getEncodedText(),m=
-"<a href='#'>"+n+"</a>",k=[],l=[];i.is("optgroup")&&(i=i.attr("label"),a.inArray(i,f)===-1&&(e.push("<li data-"+a.mobile.ns+"role='list-divider'>"+i+"</li>"),f.push(i)));if(!this.getAttribute("value")||n.length==0||j.jqmData("placeholder"))c.hidePlaceholderMenuItems&&k.push("ui-selectmenu-placeholder"),d=b.placeholder=n;this.disabled&&(k.push("ui-disabled"),l.push("aria-disabled='true'"));e.push("<li data-"+a.mobile.ns+"option-index='"+h+"' data-"+a.mobile.ns+"icon='"+g+"' class='"+k.join(" ")+"' "+
-l.join(" ")+">"+m+"</li>")});b.list.html(e.join(" "));b.list.find("li").attr({role:"option",tabindex:"-1"}).first().attr("tabindex","0");this.isMultiple||this.headerClose.hide();!this.isMultiple&&!d.length?this.header.hide():this.headerTitle.text(this.placeholder);b.list.listview()},_button:function(){return a("<a>",{href:"#",role:"button",id:this.buttonId,"aria-haspopup":"true","aria-owns":this.menuId})}})};a(document).delegate("select","selectmenubeforecreate",function(){var b=a(this).data("selectmenu");
-b.options.nativeMenu||e(b)})})(jQuery);
-(function(a){a.widget("mobile.selectmenu",a.mobile.widget,{options:{theme:null,disabled:false,icon:"arrow-d",iconpos:"right",inline:null,corners:true,shadow:true,iconshadow:true,menuPageTheme:"b",overlayTheme:"a",hidePlaceholderMenuItems:true,closeText:"Close",nativeMenu:true,initSelector:"select:not(:jqmData(role='slider'))"},_button:function(){return a("<div/>")},_setDisabled:function(a){this.element.attr("disabled",a);this.button.attr("aria-disabled",a);return this._setOption("disabled",a)},_focusButton:function(){var a=
-this;setTimeout(function(){a.button.focus()},40)},_selectOptions:function(){return this.select.find("option")},_preExtension:function(){this.select=this.element.wrap("<div class='ui-select'>");this.selectID=this.select.attr("id");this.label=a("label[for='"+this.selectID+"']").addClass("ui-select");this.isMultiple=this.select[0].multiple;if(!this.options.theme)this.options.theme=a.mobile.getInheritedTheme(this.select,"c")},_create:function(){this._preExtension();this._trigger("beforeCreate");this.button=
-this._button();var e=this,b=this.options,d=this.button.text(a(this.select[0].options.item(this.select[0].selectedIndex==-1?0:this.select[0].selectedIndex)).text()).insertBefore(this.select).buttonMarkup({theme:b.theme,icon:b.icon,iconpos:b.iconpos,inline:b.inline,corners:b.corners,shadow:b.shadow,iconshadow:b.iconshadow});b.nativeMenu&&window.opera&&window.opera.version&&this.select.addClass("ui-select-nativeonly");if(this.isMultiple)this.buttonCount=a("<span>").addClass("ui-li-count ui-btn-up-c ui-btn-corner-all").hide().appendTo(d.addClass("ui-li-has-count"));
-(b.disabled||this.element.attr("disabled"))&&this.disable();this.select.change(function(){e.refresh()});this.build()},build:function(){var e=this;this.select.appendTo(e.button).bind("vmousedown",function(){e.button.addClass(a.mobile.activeBtnClass)}).bind("focus vmouseover",function(){e.button.trigger("vmouseover")}).bind("vmousemove",function(){e.button.removeClass(a.mobile.activeBtnClass)}).bind("change blur vmouseout",function(){e.button.trigger("vmouseout").removeClass(a.mobile.activeBtnClass)}).bind("change blur",
-function(){e.button.removeClass("ui-btn-down-"+e.options.theme)})},selected:function(){return this._selectOptions().filter(":selected")},selectedIndices:function(){var a=this;return this.selected().map(function(){return a._selectOptions().index(this)}).get()},setButtonText:function(){var e=this,b=this.selected();this.button.find(".ui-btn-text").text(function(){return!e.isMultiple?b.text():b.length?b.map(function(){return a(this).text()}).get().join(", "):e.placeholder})},setButtonCount:function(){var a=
-this.selected();this.isMultiple&&this.buttonCount[a.length>1?"show":"hide"]().text(a.length)},refresh:function(){this.setButtonText();this.setButtonCount()},open:a.noop,close:a.noop,disable:function(){this._setDisabled(true);this.button.addClass("ui-disabled")},enable:function(){this._setDisabled(false);this.button.removeClass("ui-disabled")}});a(document).bind("pagecreate create",function(e){a.mobile.selectmenu.prototype.enhanceWithin(e.target)})})(jQuery);
-(function(a,e){function b(a){for(var b;a;){if((b=typeof a.className==="string"&&a.className+" ")&&b.indexOf("ui-btn ")>-1&&b.indexOf("ui-disabled ")<0)break;a=a.parentNode}return a}a.fn.buttonMarkup=function(b){for(var b=b||{},c=0;c<this.length;c++){var h=this.eq(c),g=h[0],i=a.extend({},a.fn.buttonMarkup.defaults,{icon:b.icon!==e?b.icon:h.jqmData("icon"),iconpos:b.iconpos!==e?b.iconpos:h.jqmData("iconpos"),theme:b.theme!==e?b.theme:h.jqmData("theme"),inline:b.inline!==e?b.inline:h.jqmData("inline"),
-shadow:b.shadow!==e?b.shadow:h.jqmData("shadow"),corners:b.corners!==e?b.corners:h.jqmData("corners"),iconshadow:b.iconshadow!==e?b.iconshadow:h.jqmData("iconshadow")},b),l="ui-btn-inner",k,o,n=document.createElement(i.wrapperEls),q=document.createElement(i.wrapperEls),j=i.icon?document.createElement("span"):null;if(!(g.tagName==="INPUT"&&h.jqmData("role")==="button"))if(g.tagName==="BUTTON")a(g.parentNode).hasClass("ui-btn")||a(g).button();else{d&&d();if(!i.theme)i.theme=a.mobile.getInheritedTheme(h,
-"c");k="ui-btn ui-btn-up-"+i.theme;i.inline&&(k+=" ui-btn-inline");if(i.icon)i.icon="ui-icon-"+i.icon,i.iconpos=i.iconpos||"left",o="ui-icon "+i.icon,i.iconshadow&&(o+=" ui-icon-shadow");i.iconpos&&(k+=" ui-btn-icon-"+i.iconpos,i.iconpos=="notext"&&!h.attr("title")&&h.attr("title",h.getEncodedText()));i.corners&&(k+=" ui-btn-corner-all",l+=" ui-btn-corner-all");i.shadow&&(k+=" ui-shadow");g.setAttribute("data-"+a.mobile.ns+"theme",i.theme);h.addClass(k);n.className=l;q.className="ui-btn-text";n.appendChild(q);
-if(j)j.className=o,n.appendChild(j);for(;g.firstChild;)q.appendChild(g.firstChild);g.appendChild(n);a.data(g,"textWrapper",a(q))}}return this};a.fn.buttonMarkup.defaults={corners:true,shadow:true,iconshadow:true,inline:false,wrapperEls:"span"};var d=function(){a(document).bind({vmousedown:function(d){var d=b(d.target),c;d&&(d=a(d),c=d.attr("data-"+a.mobile.ns+"theme"),d.removeClass("ui-btn-up-"+c).addClass("ui-btn-down-"+c))},"vmousecancel vmouseup":function(d){var d=b(d.target),c;d&&(d=a(d),c=d.attr("data-"+
-a.mobile.ns+"theme"),d.removeClass("ui-btn-down-"+c).addClass("ui-btn-up-"+c))},"vmouseover focus":function(d){var d=b(d.target),c;d&&(d=a(d),c=d.attr("data-"+a.mobile.ns+"theme"),d.removeClass("ui-btn-up-"+c).addClass("ui-btn-hover-"+c))},"vmouseout blur":function(d){var d=b(d.target),c;d&&(d=a(d),c=d.attr("data-"+a.mobile.ns+"theme"),d.removeClass("ui-btn-hover-"+c+" ui-btn-down-"+c).addClass("ui-btn-up-"+c))}});d=null};a(document).bind("pagecreate create",function(b){a(":jqmData(role='button'), .ui-bar > a, .ui-header > a, .ui-footer > a, .ui-bar > :jqmData(role='controlgroup') > a",
-b.target).not(".ui-btn, :jqmData(role='none'), :jqmData(role='nojs')").buttonMarkup()})})(jQuery);
-(function(a){a.fn.controlgroup=function(e){return this.each(function(){function b(a){a.removeClass("ui-btn-corner-all ui-shadow").eq(0).addClass(h[0]).end().last().addClass(h[1]).addClass("ui-controlgroup-last")}var d=a(this),f=a.extend({direction:d.jqmData("type")||"vertical",shadow:false,excludeInvisible:true},e),c=d.children("legend"),h=f.direction=="horizontal"?["ui-corner-left","ui-corner-right"]:["ui-corner-top","ui-corner-bottom"];d.find("input").first().attr("type");c.length&&(d.wrapInner("<div class='ui-controlgroup-controls'></div>"),
-a("<div role='heading' class='ui-controlgroup-label'>"+c.html()+"</div>").insertBefore(d.children(0)),c.remove());d.addClass("ui-corner-all ui-controlgroup ui-controlgroup-"+f.direction);b(d.find(".ui-btn"+(f.excludeInvisible?":visible":"")));b(d.find(".ui-btn-inner"));f.shadow&&d.addClass("ui-shadow")})};a(document).bind("pagecreate create",function(e){a(":jqmData(role='controlgroup')",e.target).controlgroup({excludeInvisible:false})})})(jQuery);
-(function(a){a(document).bind("pagecreate create",function(e){a(e.target).find("a").not(".ui-btn, .ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')").addClass("ui-link")})})(jQuery);
-(function(a,e){a.fn.fixHeaderFooter=function(){return!a.support.scrollTop||a.support.touchOverflow&&a.mobile.touchOverflowEnabled?this:this.each(function(){var b=a(this);b.jqmData("fullscreen")&&b.addClass("ui-page-fullscreen");b.find(".ui-header:jqmData(position='fixed')").addClass("ui-header-fixed ui-fixed-inline fade");b.find(".ui-footer:jqmData(position='fixed')").addClass("ui-footer-fixed ui-fixed-inline fade")})};a.mobile.fixedToolbars=function(){function b(){!i&&g==="overlay"&&(h||a.mobile.fixedToolbars.hide(true),
-a.mobile.fixedToolbars.startShowTimer())}function d(a){var b=0,c,d;if(a){d=document.body;c=a.offsetParent;for(b=a.offsetTop;a&&a!=d;){b+=a.scrollTop||0;if(a==c)b+=c.offsetTop,c=a.offsetParent;a=a.parentNode}}return b}function f(b){var c=a(window).scrollTop(),e=d(b[0]),f=b.css("top")=="auto"?0:parseFloat(b.css("top")),g=window.innerHeight,h=b.outerHeight(),i=b.parents(".ui-page:not(.ui-page-fullscreen)").length;return b.is(".ui-header-fixed")?(f=c-e+f,f<e&&(f=0),b.css("top",i?f:c)):b.css("top",i?c+
-g-h-(e-f):c+g-h)}if(a.support.scrollTop&&(!a.support.touchOverflow||!a.mobile.touchOverflowEnabled)){var c,h,g="inline",i=false,l=null,k=false,o=true;a(function(){var c=a(document),d=a(window);c.bind("vmousedown",function(){o&&(l=g)}).bind("vclick",function(b){o&&!a(b.target).closest("a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed").length&&!k&&(a.mobile.fixedToolbars.toggle(l),l=null)}).bind("silentscroll",b);(c.scrollTop()===0?d:c).bind("scrollstart",function(){k=true;l===
-null&&(l=g);var b=l=="overlay";if(i=b||!!h)a.mobile.fixedToolbars.clearShowTimer(),b&&a.mobile.fixedToolbars.hide(true)}).bind("scrollstop",function(b){a(b.target).closest("a,input,textarea,select,button,label,.ui-header-fixed,.ui-footer-fixed").length||(k=false,i&&(a.mobile.fixedToolbars.startShowTimer(),i=false),l=null)});d.bind("resize updatelayout",b)});a(document).delegate(".ui-page","pagebeforeshow",function(b,d){var e=a(b.target).find(":jqmData(role='footer')"),g=e.data("id"),h=d.prevPage,
-h=h&&h.find(":jqmData(role='footer')"),h=h.length&&h.jqmData("id")===g;g&&h&&(c=e,f(c.removeClass("fade in out").appendTo(a.mobile.pageContainer)))}).delegate(".ui-page","pageshow",function(){var b=a(this);c&&c.length&&setTimeout(function(){f(c.appendTo(b).addClass("fade"));c=null},500);a.mobile.fixedToolbars.show(true,this)});a(document).delegate(".ui-collapsible-contain","collapse expand",b);return{show:function(b,c){a.mobile.fixedToolbars.clearShowTimer();g="overlay";return(c?a(c):a.mobile.activePage?
-a.mobile.activePage:a(".ui-page-active")).children(".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last").each(function(){var c=a(this),e=a(window).scrollTop(),g=d(c[0]),h=window.innerHeight,i=c.outerHeight(),e=c.is(".ui-header-fixed")&&e<=g+i||c.is(".ui-footer-fixed")&&g<=e+h;c.addClass("ui-fixed-overlay").removeClass("ui-fixed-inline");!e&&!b&&c.animationComplete(function(){c.removeClass("in")}).addClass("in");f(c)})},hide:function(b){g="inline";return(a.mobile.activePage?a.mobile.activePage:
-a(".ui-page-active")).children(".ui-header-fixed:first, .ui-footer-fixed:not(.ui-footer-duplicate):last").each(function(){var c=a(this),d=c.css("top"),d=d=="auto"?0:parseFloat(d);c.addClass("ui-fixed-inline").removeClass("ui-fixed-overlay");if(d<0||c.is(".ui-header-fixed")&&d!==0)b?c.css("top",0):c.css("top")!=="auto"&&parseFloat(c.css("top"))!==0&&c.animationComplete(function(){c.removeClass("out reverse").css("top",0)}).addClass("out reverse")})},startShowTimer:function(){a.mobile.fixedToolbars.clearShowTimer();
-var b=[].slice.call(arguments);h=setTimeout(function(){h=e;a.mobile.fixedToolbars.show.apply(null,b)},100)},clearShowTimer:function(){h&&clearTimeout(h);h=e},toggle:function(b){b&&(g=b);return g==="overlay"?a.mobile.fixedToolbars.hide():a.mobile.fixedToolbars.show()},setTouchToggleEnabled:function(a){o=a}}}}();a(document).bind("pagecreate create",function(b){a(":jqmData(position='fixed')",b.target).length&&a(b.target).each(function(){if(!a.support.scrollTop||a.support.touchOverflow&&a.mobile.touchOverflowEnabled)return this;
-var b=a(this);b.jqmData("fullscreen")&&b.addClass("ui-page-fullscreen");b.find(".ui-header:jqmData(position='fixed')").addClass("ui-header-fixed ui-fixed-inline fade");b.find(".ui-footer:jqmData(position='fixed')").addClass("ui-footer-fixed ui-fixed-inline fade")})})})(jQuery);
-(function(a){a.mobile.touchOverflowEnabled=false;a.mobile.touchOverflowZoomEnabled=false;a(document).bind("pagecreate",function(e){a.support.touchOverflow&&a.mobile.touchOverflowEnabled&&(e=a(e.target),e.is(":jqmData(role='page')")&&e.each(function(){var b=a(this),d=b.find(":jqmData(role='header'), :jqmData(role='footer')").filter(":jqmData(position='fixed')"),e=b.jqmData("fullscreen"),c=d.length?b.find(".ui-content"):b;b.addClass("ui-mobile-touch-overflow");c.bind("scrollstop",function(){c.scrollTop()>
-0&&window.scrollTo(0,a.mobile.defaultHomeScroll)});d.length&&(b.addClass("ui-native-fixed"),e&&(b.addClass("ui-native-fullscreen"),d.addClass("fade in"),a(document).bind("vclick",function(){d.removeClass("ui-native-bars-hidden").toggleClass("in out").animationComplete(function(){a(this).not(".in").addClass("ui-native-bars-hidden")})})))}))})})(jQuery);
-(function(a,e){function b(){var b=a("meta[name='viewport']");b.length?b.attr("content",b.attr("content")+", user-scalable=no"):a("head").prepend("<meta>",{name:"viewport",content:"user-scalable=no"})}var d=a("html");a("head");var f=a(e);a(e.document).trigger("mobileinit");if(a.mobile.gradeA()){if(a.mobile.ajaxBlacklist)a.mobile.ajaxEnabled=false;d.addClass("ui-mobile ui-mobile-rendering");var c=a("<div class='ui-loader ui-body-a ui-corner-all'><span class='ui-icon ui-icon-loading spin'></span><h1></h1></div>");
-a.extend(a.mobile,{showPageLoadingMsg:function(){if(a.mobile.loadingMessage){var b=a("."+a.mobile.activeBtnClass).first();c.find("h1").text(a.mobile.loadingMessage).end().appendTo(a.mobile.pageContainer).css({top:a.support.scrollTop&&f.scrollTop()+f.height()/2||b.length&&b.offset().top||100})}d.addClass("ui-loading")},hidePageLoadingMsg:function(){d.removeClass("ui-loading")},initializePage:function(){var b,c=a(":jqmData(role='page')");c.length||(b=a(":jqmData(role='dialog')"),b.length?(b.first().attr("data-"+
-a.mobile.ns+"role","page"),c=c.add(b.get().shift())):c=a("body").wrapInner("<div data-"+a.mobile.ns+"role='page'></div>").children(0));c.add(":jqmData(role='dialog')").each(function(){var b=a(this);b.jqmData("url")||b.attr("data-"+a.mobile.ns+"url",b.attr("id")||location.pathname+location.search)});a.mobile.firstPage=c.first();a.mobile.pageContainer=c.first().parent().addClass("ui-mobile-viewport");f.trigger("pagecontainercreate");a.mobile.showPageLoadingMsg();!a.mobile.hashListeningEnabled||!a.mobile.path.stripHash(location.hash)?
-a.mobile.changePage(a.mobile.firstPage,{transition:"none",reverse:true,changeHash:false,fromHashChange:true}):f.trigger("hashchange",[true])}});a.support.touchOverflow&&a.mobile.touchOverflowEnabled&&!a.mobile.touchOverflowZoomEnabled&&b();a.mobile._registerInternalEvents();a(function(){e.scrollTo(0,1);a.mobile.defaultHomeScroll=!a.support.scrollTop||a(e).scrollTop()===1?0:1;a.mobile.autoInitializePage&&a.mobile.initializePage();f.load(a.mobile.silentScroll)})}})(jQuery,this);