

/*------------jquery/jquery.js----------*/

(function(){
/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
 * $Rev: 5685 $
 */

// Map over jQuery in case of overwrite
var _jQuery = window.jQuery,
// Map over the $ in case of overwrite
	_$ = window.$;

var jQuery = window.jQuery = window.$ = function( selector, context ) {
	// The jQuery object is actually just the init constructor 'enhanced'
	return new jQuery.fn.init( selector, context );
};

// A simple way to check for HTML strings or ID strings
// (both of which we optimize for)
var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,

// Is it a simple selector
	isSimple = /^.[^:#\[\.]*$/,

// Will speed up references to undefined, and allows munging its name.
	undefined;

jQuery.fn = jQuery.prototype = {
	init: function( selector, context ) {
		// Make sure that a selection was provided
		selector = selector || document;

		// Handle $(DOMElement)
		if ( selector.nodeType ) {
			this[0] = selector;
			this.length = 1;
			return this;
		}
		// Handle HTML strings
		if ( typeof selector == "string" ) {
			// Are we dealing with HTML string or an ID?
			var 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] )
					selector = jQuery.clean( [ match[1] ], context );

				// HANDLE: $("#id")
				else {
					var elem = document.getElementById( match[3] );

					// Make sure an element was located
					if ( elem ){
						// Handle the case where IE and Opera return items
						// by name instead of ID
						if ( elem.id != match[3] )
							return jQuery().find( selector );

						// Otherwise, we inject the element directly into the jQuery object
						return jQuery( elem );
					}
					selector = [];
				}

			// HANDLE: $(expr, [context])
			// (which is just equivalent to: $(content).find(expr)
			} else
				return jQuery( context ).find( selector );

		// HANDLE: $(function)
		// Shortcut for document ready
		} else if ( jQuery.isFunction( selector ) )
			return jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector );

		return this.setArray(jQuery.makeArray(selector));
	},

	// The current version of jQuery being used
	jquery: "1.2.6",

	// The number of elements contained in the matched element set
	size: function() {
		return this.length;
	},

	// The number of elements contained in the matched element set
	length: 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 == undefined ?

			// Return a 'clean' array
			jQuery.makeArray( this ) :

			// Return just the object
			this[ num ];
	},

	// Take an array of elements and push it onto the stack
	// (returning the new matched element set)
	pushStack: function( elems ) {
		// Build a new jQuery matched element set
		var ret = jQuery( elems );

		// Add the old object onto the stack (as a reference)
		ret.prevObject = this;

		// Return the newly-formed element set
		return ret;
	},

	// Force the current matched set of elements to become
	// the specified array of elements (destroying the stack in the process)
	// You should use pushStack() in order to do this, but maintain the stack
	setArray: function( elems ) {
		// Resetting the length to 0, then using the native Array push
		// is a super-fast way to populate an object with array-like properties
		this.length = 0;
		Array.prototype.push.apply( this, elems );

		return this;
	},

	// 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 );
	},

	// Determine the position of an element within
	// the matched set of elements
	index: function( elem ) {
		var ret = -1;

		// Locate the position of the desired element
		return jQuery.inArray(
			// If it receives a jQuery object, the first element is used
			elem && elem.jquery ? elem[0] : elem
		, this );
	},

	attr: function( name, value, type ) {
		var options = name;

		// Look for the case where we're accessing a style value
		if ( name.constructor == String )
			if ( value === undefined )
				return this[0] && jQuery[ type || "attr" ]( this[0], name );

			else {
				options = {};
				options[ name ] = value;
			}

		// Check to see if we're setting style values
		return this.each(function(i){
			// Set all the styles
			for ( name in options )
				jQuery.attr(
					type ?
						this.style :
						this,
					name, jQuery.prop( this, options[ name ], type, i, name )
				);
		});
	},

	css: function( key, value ) {
		// ignore negative width and height values
		if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
			value = undefined;
		return this.attr( key, value, "curCSS" );
	},

	text: function( text ) {
		if ( typeof text != "object" && text != null )
			return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );

		var ret = "";

		jQuery.each( text || this, function(){
			jQuery.each( this.childNodes, function(){
				if ( this.nodeType != 8 )
					ret += this.nodeType != 1 ?
						this.nodeValue :
						jQuery.fn.text( [ this ] );
			});
		});

		return ret;
	},

	wrapAll: function( html ) {
		if ( this[0] )
			// The elements to wrap the target around
			jQuery( html, this[0].ownerDocument )
				.clone()
				.insertBefore( this[0] )
				.map(function(){
					var elem = this;

					while ( elem.firstChild )
						elem = elem.firstChild;

					return elem;
				})
				.append(this);

		return this;
	},

	wrapInner: function( html ) {
		return this.each(function(){
			jQuery( this ).contents().wrapAll( html );
		});
	},

	wrap: function( html ) {
		return this.each(function(){
			jQuery( this ).wrapAll( html );
		});
	},

	append: function() {
		return this.domManip(arguments, true, false, function(elem){
			if (this.nodeType == 1)
				this.appendChild( elem );
		});
	},

	prepend: function() {
		return this.domManip(arguments, true, true, function(elem){
			if (this.nodeType == 1)
				this.insertBefore( elem, this.firstChild );
		});
	},

	before: function() {
		return this.domManip(arguments, false, false, function(elem){
			this.parentNode.insertBefore( elem, this );
		});
	},

	after: function() {
		return this.domManip(arguments, false, true, function(elem){
			this.parentNode.insertBefore( elem, this.nextSibling );
		});
	},

	end: function() {
		return this.prevObject || jQuery( [] );
	},

	find: function( selector ) {
		var elems = jQuery.map(this, function(elem){
			return jQuery.find( selector, elem );
		});

		return this.pushStack( /[^+>] [^+>]/.test( selector ) || selector.indexOf("..") > -1 ?
			jQuery.unique( elems ) :
			elems );
	},

	clone: function( events ) {
		// Do the clone
		var ret = this.map(function(){
			if ( jQuery.browser.msie && !jQuery.isXMLDoc(this) ) {
				// IE copies events bound via attachEvent when
				// using cloneNode. Calling detachEvent on the
				// clone will also remove the events from the orignal
				// In order to get around this, we use innerHTML.
				// Unfortunately, this means some modifications to
				// attributes in IE that are actually only stored
				// as properties will not be copied (such as the
				// the name attribute on an input).
				var clone = this.cloneNode(true),
					container = document.createElement("div");
				container.appendChild(clone);
				return jQuery.clean([container.innerHTML])[0];
			} else
				return this.cloneNode(true);
		});

		// Need to set the expando to null on the cloned set if it exists
		// removeData doesn't work here, IE removes it from the original as well
		// this is primarily for IE but the data expando shouldn't be copied over in any browser
		var clone = ret.find("*").andSelf().each(function(){
			if ( this[ expando ] != undefined )
				this[ expando ] = null;
		});

		// Copy the events from the original to the clone
		if ( events === true )
			this.find("*").andSelf().each(function(i){
				if (this.nodeType == 3)
					return;
				var events = jQuery.data( this, "events" );

				for ( var type in events )
					for ( var handler in events[ type ] )
						jQuery.event.add( clone[ i ], type, events[ type ][ handler ], events[ type ][ handler ].data );
			});

		// Return the cloned set
		return ret;
	},

	filter: function( selector ) {
		return this.pushStack(
			jQuery.isFunction( selector ) &&
			jQuery.grep(this, function(elem, i){
				return selector.call( elem, i );
			}) ||

			jQuery.multiFilter( selector, this ) );
	},

	not: function( selector ) {
		if ( selector.constructor == String )
			// test special case where just one selector is passed in
			if ( isSimple.test( selector ) )
				return this.pushStack( jQuery.multiFilter( selector, this, true ) );
			else
				selector = jQuery.multiFilter( selector, this );

		var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
		return this.filter(function() {
			return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
		});
	},

	add: function( selector ) {
		return this.pushStack( jQuery.unique( jQuery.merge(
			this.get(),
			typeof selector == 'string' ?
				jQuery( selector ) :
				jQuery.makeArray( selector )
		)));
	},

	is: function( selector ) {
		return !!selector && jQuery.multiFilter( selector, this ).length > 0;
	},

	hasClass: function( selector ) {
		return this.is( "." + selector );
	},

	val: function( value ) {
		if ( value == undefined ) {

			if ( this.length ) {
				var elem = this[0];

				// We need to handle select boxes special
				if ( jQuery.nodeName( elem, "select" ) ) {
					var 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 ];

						if ( option.selected ) {
							// Get the specifc value for the option
							value = jQuery.browser.msie && !option.attributes.value.specified ? option.text : option.value;

							// We don't need an array for one selects
							if ( one )
								return value;

							// Multi-Selects return an array
							values.push( value );
						}
					}

					return values;

				// Everything else, we just grab the value
				} else
					return (this[0].value || "").replace(/\r/g, "");

			}

			return undefined;
		}

		if( value.constructor == Number )
			value += '';

		return this.each(function(){
			if ( this.nodeType != 1 )
				return;

			if ( value.constructor == Array && /radio|checkbox/.test( this.type ) )
				this.checked = (jQuery.inArray(this.value, value) >= 0 ||
					jQuery.inArray(this.name, value) >= 0);

			else if ( jQuery.nodeName( this, "select" ) ) {
				var values = jQuery.makeArray(value);

				jQuery( "option", this ).each(function(){
					this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
						jQuery.inArray( this.text, values ) >= 0);
				});

				if ( !values.length )
					this.selectedIndex = -1;

			} else
				this.value = value;
		});
	},

	html: function( value ) {
		return value == undefined ?
			(this[0] ?
				this[0].innerHTML :
				null) :
			this.empty().append( value );
	},

	replaceWith: function( value ) {
		return this.after( value ).remove();
	},

	eq: function( i ) {
		return this.slice( i, i + 1 );
	},

	slice: function() {
		return this.pushStack( Array.prototype.slice.apply( this, arguments ) );
	},

	map: function( callback ) {
		return this.pushStack( jQuery.map(this, function(elem, i){
			return callback.call( elem, i, elem );
		}));
	},

	andSelf: function() {
		return this.add( this.prevObject );
	},

	data: function( key, value ){
		var parts = key.split(".");
		parts[1] = parts[1] ? "." + parts[1] : "";

		if ( value === undefined ) {
			var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);

			if ( data === undefined && this.length )
				data = jQuery.data( this[0], key );

			return data === undefined && parts[1] ?
				this.data( parts[0] ) :
				data;
		} else
			return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
				jQuery.data( this, key, value );
			});
	},

	removeData: function( key ){
		return this.each(function(){
			jQuery.removeData( this, key );
		});
	},

	domManip: function( args, table, reverse, callback ) {
		var clone = this.length > 1, elems;

		return this.each(function(){
			if ( !elems ) {
				elems = jQuery.clean( args, this.ownerDocument );

				if ( reverse )
					elems.reverse();
			}

			var obj = this;

			if ( table && jQuery.nodeName( this, "table" ) && jQuery.nodeName( elems[0], "tr" ) )
				obj = this.getElementsByTagName("tbody")[0] || this.appendChild( this.ownerDocument.createElement("tbody") );

			var scripts = jQuery( [] );

			jQuery.each(elems, function(){
				var elem = clone ?
					jQuery( this ).clone( true )[0] :
					this;

				// execute all scripts after the elements have been injected
				if ( jQuery.nodeName( elem, "script" ) )
					scripts = scripts.add( elem );
				else {
					// Remove any inner scripts for later evaluation
					if ( elem.nodeType == 1 )
						scripts = scripts.add( jQuery( "script", elem ).remove() );

					// Inject the elements into the document
					callback.call( obj, elem );
				}
			});

			scripts.each( evalScript );
		});
	}
};

// Give the init function the jQuery prototype for later instantiation
jQuery.fn.init.prototype = jQuery.fn;

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 || "" );

	if ( elem.parentNode )
		elem.parentNode.removeChild( elem );
}

function now(){
	return +new Date;
}

jQuery.extend = jQuery.fn.extend = function() {
	// copy reference to target object
	var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;

	// Handle a deep copy situation
	if ( target.constructor == 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" && typeof target != "function" )
		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 ( var name in options ) {
				var src = target[ name ], copy = options[ name ];

				// Prevent never-ending loop
				if ( target === copy )
					continue;

				// Recurse if we're merging object values
				if ( deep && copy && typeof copy == "object" && !copy.nodeType )
					target[ name ] = jQuery.extend( deep, 
						// Never move original objects, clone them
						src || ( copy.length != null ? [ ] : { } )
					, copy );

				// Don't bring in undefined values
				else if ( copy !== undefined )
					target[ name ] = copy;

			}

	// Return the modified object
	return target;
};

var expando = "jQuery" + now(), uuid = 0, windowData = {},
	// exclude the following css properties to add px
	exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
	// cache defaultView
	defaultView = document.defaultView || {};

jQuery.extend({
	noConflict: function( deep ) {
		window.$ = _$;

		if ( deep )
			window.jQuery = _jQuery;

		return jQuery;
	},

	// See test/unit/core.js for details concerning this function.
	isFunction: function( fn ) {
		return !!fn && typeof fn != "string" && !fn.nodeName &&
			fn.constructor != Array && /^[\s[]?function/.test( fn + "" );
	},

	// check if an element is in a (or is an) XML document
	isXMLDoc: function( elem ) {
		return elem.documentElement && !elem.body ||
			elem.tagName && elem.ownerDocument && !elem.ownerDocument.body;
	},

	// Evalulates a script in a global context
	globalEval: function( data ) {
		data = jQuery.trim( data );

		if ( data ) {
			// Inspired by code by Andrea Giammarchi
			// http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
			var head = document.getElementsByTagName("head")[0] || document.documentElement,
				script = document.createElement("script");

			script.type = "text/javascript";
			if ( jQuery.browser.msie )
				script.text = data;
			else
				script.appendChild( document.createTextNode( data ) );

			// Use insertBefore instead of appendChild  to circumvent an IE6 bug.
			// This arises when a base node is used (#2709).
			head.insertBefore( script, head.firstChild );
			head.removeChild( script );
		}
	},

	nodeName: function( elem, name ) {
		return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
	},

	cache: {},

	data: function( elem, name, data ) {
		elem = elem == window ?
			windowData :
			elem;

		var id = elem[ expando ];

		// Compute a unique ID for the element
		if ( !id )
			id = elem[ expando ] = ++uuid;

		// Only generate the data cache if we're
		// trying to access or manipulate it
		if ( name && !jQuery.cache[ id ] )
			jQuery.cache[ id ] = {};

		// Prevent overriding the named cache with undefined values
		if ( data !== undefined )
			jQuery.cache[ id ][ name ] = data;

		// Return the named cache data, or the ID for the element
		return name ?
			jQuery.cache[ id ][ name ] :
			id;
	},

	removeData: function( elem, name ) {
		elem = elem == window ?
			windowData :
			elem;

		var id = elem[ expando ];

		// If we want to remove a specific section of the element's data
		if ( name ) {
			if ( jQuery.cache[ id ] ) {
				// Remove the section of cache data
				delete jQuery.cache[ id ][ name ];

				// If we've removed all the data, remove the element's cache
				name = "";

				for ( name in jQuery.cache[ id ] )
					break;

				if ( !name )
					jQuery.removeData( elem );
			}

		// Otherwise, we want to remove all of the element's data
		} else {
			// Clean up the element expando
			try {
				delete elem[ expando ];
			} catch(e){
				// IE has trouble directly removing the expando
				// but it's ok with using removeAttribute
				if ( elem.removeAttribute )
					elem.removeAttribute( expando );
			}

			// Completely remove the data cache
			delete jQuery.cache[ id ];
		}
	},

	// args is for internal usage only
	each: function( object, callback, args ) {
		var name, i = 0, length = object.length;

		if ( args ) {
			if ( length == undefined ) {
				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 ( length == undefined ) {
				for ( name in object )
					if ( callback.call( object[ name ], name, object[ name ] ) === false )
						break;
			} else
				for ( var value = object[0];
					i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
		}

		return object;
	},

	prop: function( elem, value, type, i, name ) {
		// Handle executable functions
		if ( jQuery.isFunction( value ) )
			value = value.call( elem, i );

		// Handle passing in a number to a CSS property
		return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ?
			value + "px" :
			value;
	},

	className: {
		// internal only, use addClass("class")
		add: function( elem, classNames ) {
			jQuery.each((classNames || "").split(/\s+/), function(i, className){
				if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
					elem.className += (elem.className ? " " : "") + className;
			});
		},

		// internal only, use removeClass("class")
		remove: function( elem, classNames ) {
			if (elem.nodeType == 1)
				elem.className = classNames != undefined ?
					jQuery.grep(elem.className.split(/\s+/), function(className){
						return !jQuery.className.has( classNames, className );
					}).join(" ") :
					"";
		},

		// internal only, use hasClass("class")
		has: function( elem, className ) {
			return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
		}
	},

	// 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 ( var name in options )
			elem.style[ name ] = old[ name ];
	},

	css: function( elem, name, force ) {
		if ( name == "width" || name == "height" ) {
			var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ];

			function getWH() {
				val = name == "width" ? elem.offsetWidth : elem.offsetHeight;
				var padding = 0, border = 0;
				jQuery.each( which, function() {
					padding += parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
					border += parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
				});
				val -= Math.round(padding + border);
			}

			if ( jQuery(elem).is(":visible") )
				getWH();
			else
				jQuery.swap( elem, props, getWH );

			return Math.max(0, val);
		}

		return jQuery.curCSS( elem, name, force );
	},

	curCSS: function( elem, name, force ) {
		var ret, style = elem.style;

		// A helper method for determining if an element's values are broken
		function color( elem ) {
			if ( !jQuery.browser.safari )
				return false;

			// defaultView is cached
			var ret = defaultView.getComputedStyle( elem, null );
			return !ret || ret.getPropertyValue("color") == "";
		}

		// We need to handle opacity special in IE
		if ( name == "opacity" && jQuery.browser.msie ) {
			ret = jQuery.attr( style, "opacity" );

			return ret == "" ?
				"1" :
				ret;
		}
		// Opera sometimes will give the wrong display answer, this fixes it, see #2037
		if ( jQuery.browser.opera && name == "display" ) {
			var save = style.outline;
			style.outline = "0 solid black";
			style.outline = save;
		}

		// Make sure we're using the right name for getting the float value
		if ( name.match( /float/i ) )
			name = styleFloat;

		if ( !force && style && style[ name ] )
			ret = style[ name ];

		else if ( defaultView.getComputedStyle ) {

			// Only "float" is needed here
			if ( name.match( /float/i ) )
				name = "float";

			name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();

			var computedStyle = defaultView.getComputedStyle( elem, null );

			if ( computedStyle && !color( elem ) )
				ret = computedStyle.getPropertyValue( name );

			// If the element isn't reporting its values properly in Safari
			// then some display: none elements are involved
			else {
				var swap = [], stack = [], a = elem, i = 0;

				// Locate all of the parent display: none elements
				for ( ; a && color(a); a = a.parentNode )
					stack.unshift(a);

				// Go through and make them visible, but in reverse
				// (It would be better if we knew the exact display type that they had)
				for ( ; i < stack.length; i++ )
					if ( color( stack[ i ] ) ) {
						swap[ i ] = stack[ i ].style.display;
						stack[ i ].style.display = "block";
					}

				// Since we flip the display style, we have to handle that
				// one special, otherwise get the value
				ret = name == "display" && swap[ stack.length - 1 ] != null ?
					"none" :
					( computedStyle && computedStyle.getPropertyValue( name ) ) || "";

				// Finally, revert the display styles back
				for ( i = 0; i < swap.length; i++ )
					if ( swap[ i ] != null )
						stack[ i ].style.display = swap[ i ];
			}

			// We should always get a number back from opacity
			if ( name == "opacity" && ret == "" )
				ret = "1";

		} else if ( elem.currentStyle ) {
			var camelCase = name.replace(/\-(\w)/g, function(all, letter){
				return letter.toUpperCase();
			});

			ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];

			// 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 ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
				// Remember the original values
				var left = style.left, rsLeft = elem.runtimeStyle.left;

				// Put in the new values to get a computed value out
				elem.runtimeStyle.left = elem.currentStyle.left;
				style.left = ret || 0;
				ret = style.pixelLeft + "px";

				// Revert the changed values
				style.left = left;
				elem.runtimeStyle.left = rsLeft;
			}
		}

		return ret;
	},

	clean: function( elems, context ) {
		var ret = [];
		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;

		jQuery.each(elems, function(i, elem){
			if ( !elem )
				return;

			if ( elem.constructor == Number )
				elem += '';

			// Convert html string into DOM nodes
			if ( typeof elem == "string" ) {
				// Fix "XHTML"-style tags in all browsers
				elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
					return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
						all :
						front + "></" + tag + ">";
				});

				// Trim whitespace, otherwise indexOf won't work as expected
				var tags = jQuery.trim( elem ).toLowerCase(), div = context.createElement("div");

				var wrap =
					// option or optgroup
					!tags.indexOf("<opt") &&
					[ 1, "<select multiple='multiple'>", "</select>" ] ||

					!tags.indexOf("<leg") &&
					[ 1, "<fieldset>", "</fieldset>" ] ||

					tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
					[ 1, "<table>", "</table>" ] ||

					!tags.indexOf("<tr") &&
					[ 2, "<table><tbody>", "</tbody></table>" ] ||

				 	// <thead> matched above
					(!tags.indexOf("<td") || !tags.indexOf("<th")) &&
					[ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||

					!tags.indexOf("<col") &&
					[ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||

					// IE can't serialize <link> and <script> tags normally
					jQuery.browser.msie &&
					[ 1, "div<div>", "</div>" ] ||

					[ 0, "", "" ];

				// Go to html and back, then peel off extra wrappers
				div.innerHTML = wrap[1] + elem + wrap[2];

				// Move to the right depth
				while ( wrap[0]-- )
					div = div.lastChild;

				// Remove IE's autoinserted <tbody> from table fragments
				if ( jQuery.browser.msie ) {

					// String was a <table>, *may* have spurious <tbody>
					var tbody = !tags.indexOf("<table") && tags.indexOf("<tbody") < 0 ?
						div.firstChild && div.firstChild.childNodes :

						// String was a bare <thead> or <tfoot>
						wrap[1] == "<table>" && tags.indexOf("<tbody") < 0 ?
							div.childNodes :
							[];

					for ( var 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 ( /^\s/.test( elem ) )
						div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );

				}

				elem = jQuery.makeArray( div.childNodes );
			}

			if ( elem.length === 0 && (!jQuery.nodeName( elem, "form" ) && !jQuery.nodeName( elem, "select" )) )
				return;

			if ( elem[0] == undefined || jQuery.nodeName( elem, "form" ) || elem.options )
				ret.push( elem );

			else
				ret = jQuery.merge( ret, elem );

		});

		return ret;
	},

	attr: function( elem, name, value ) {
		// don't set attributes on text and comment nodes
		if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
			return undefined;

		var notxml = !jQuery.isXMLDoc( elem ),
			// Whether we are setting (or getting)
			set = value !== undefined,
			msie = jQuery.browser.msie;

		// Try to normalize/fix the name
		name = notxml && jQuery.props[ name ] || name;

		// Only do all the following if this is a node (faster for style)
		// IE elem.getAttribute passes even for style
		if ( elem.tagName ) {

			// These attributes require special treatment
			var special = /href|src|style/.test( name );

			// Safari mis-reports the default selected property of a hidden option
			// Accessing the parent's selectedIndex property fixes it
			if ( name == "selected" && jQuery.browser.safari )
				elem.parentNode.selectedIndex;

			// If applicable, access the attribute via the DOM 0 way
			if ( name in elem && notxml && !special ) {
				if ( set ){
					// We can't allow the type property to be changed (since it causes problems in IE)
					if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
						throw "type property can't be changed";

					elem[ name ] = value;
				}

				// browsers index elements by id/name on forms, give priority to attributes.
				if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
					return elem.getAttributeNode( name ).nodeValue;

				return elem[ name ];
			}

			if ( msie && notxml &&  name == "style" )
				return jQuery.attr( elem.style, "cssText", value );

			if ( set )
				// convert the value to a string (all browsers do this but IE) see #1070
				elem.setAttribute( name, "" + value );

			var attr = msie && notxml && special
					// Some attributes require a special call on IE
					? elem.getAttribute( name, 2 )
					: elem.getAttribute( name );

			// Non-existent attributes return null, we normalize to undefined
			return attr === null ? undefined : attr;
		}

		// elem is actually elem.style ... set the style

		// IE uses filters for opacity
		if ( msie && name == "opacity" ) {
			if ( set ) {
				// IE has trouble with opacity if it does not have layout
				// Force it by setting the zoom level
				elem.zoom = 1;

				// Set the alpha filter to set the opacity
				elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +
					(parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
			}

			return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
				(parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
				"";
		}

		name = name.replace(/-([a-z])/ig, function(all, letter){
			return letter.toUpperCase();
		});

		if ( set )
			elem[ name ] = value;

		return elem[ name ];
	},

	trim: function( text ) {
		return (text || "").replace( /^\s+|\s+$/g, "" );
	},

	makeArray: function( array ) {
		var ret = [];

		if( array != null ){
			var i = array.length;
			//the window, strings and functions also have 'length'
			if( i == null || array.split || array.setInterval || array.call )
				ret[0] = array;
			else
				while( i )
					ret[--i] = array[i];
		}

		return ret;
	},

	inArray: function( elem, array ) {
		for ( var i = 0, length = array.length; i < length; i++ )
		// Use === because on IE, window == document
			if ( array[ i ] === elem )
				return i;

		return -1;
	},

	merge: function( first, second ) {
		// We have to loop this way because IE & Opera overwrite the length
		// expando of getElementsByTagName
		var i = 0, elem, pos = first.length;
		// Also, we need to make sure that the correct elements are being returned
		// (IE returns comment nodes in a '*' query)
		if ( jQuery.browser.msie ) {
			while ( elem = second[ i++ ] )
				if ( elem.nodeType != 8 )
					first[ pos++ ] = elem;

		} else
			while ( elem = second[ i++ ] )
				first[ pos++ ] = elem;

		return first;
	},

	unique: function( array ) {
		var ret = [], done = {};

		try {

			for ( var i = 0, length = array.length; i < length; i++ ) {
				var id = jQuery.data( array[ i ] );

				if ( !done[ id ] ) {
					done[ id ] = true;
					ret.push( array[ i ] );
				}
			}

		} catch( e ) {
			ret = array;
		}

		return ret;
	},

	grep: function( elems, callback, inv ) {
		var ret = [];

		// Go through the array, only saving the items
		// that pass the validator function
		for ( var i = 0, length = elems.length; i < length; i++ )
			if ( !inv != !callback( elems[ i ], i ) )
				ret.push( elems[ i ] );

		return ret;
	},

	map: function( elems, callback ) {
		var ret = [];

		// Go through the array, translating each of the items to their
		// new value (or values).
		for ( var i = 0, length = elems.length; i < length; i++ ) {
			var value = callback( elems[ i ], i );

			if ( value != null )
				ret[ ret.length ] = value;
		}

		return ret.concat.apply( [], ret );
	}
});

var userAgent = navigator.userAgent.toLowerCase();

// Figure out what browser is being used
jQuery.browser = {
	version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1],
	safari: /webkit/.test( userAgent ),
	opera: /opera/.test( userAgent ),
	msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
	mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
};

var styleFloat = jQuery.browser.msie ?
	"styleFloat" :
	"cssFloat";

jQuery.extend({
	// Check to see if the W3C box model is being used
	boxModel: !jQuery.browser.msie || document.compatMode == "CSS1Compat",

	props: {
		"for": "htmlFor",
		"class": "className",
		"float": styleFloat,
		cssFloat: styleFloat,
		styleFloat: styleFloat,
		readonly: "readOnly",
		maxlength: "maxLength",
		cellspacing: "cellSpacing"
	}
});

jQuery.each({
	parent: function(elem){return elem.parentNode;},
	parents: function(elem){return jQuery.dir(elem,"parentNode");},
	next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
	prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
	nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
	prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
	siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
	children: function(elem){return jQuery.sibling(elem.firstChild);},
	contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
}, function(name, fn){
	jQuery.fn[ name ] = function( selector ) {
		var ret = jQuery.map( this, fn );

		if ( selector && typeof selector == "string" )
			ret = jQuery.multiFilter( selector, ret );

		return this.pushStack( jQuery.unique( ret ) );
	};
});

jQuery.each({
	appendTo: "append",
	prependTo: "prepend",
	insertBefore: "before",
	insertAfter: "after",
	replaceAll: "replaceWith"
}, function(name, original){
	jQuery.fn[ name ] = function() {
		var args = arguments;

		return this.each(function(){
			for ( var i = 0, length = args.length; i < length; i++ )
				jQuery( args[ i ] )[ original ]( this );
		});
	};
});

jQuery.each({
	removeAttr: function( name ) {
		jQuery.attr( this, name, "" );
		if (this.nodeType == 1)
			this.removeAttribute( name );
	},

	addClass: function( classNames ) {
		jQuery.className.add( this, classNames );
	},

	removeClass: function( classNames ) {
		jQuery.className.remove( this, classNames );
	},

	toggleClass: function( classNames ) {
		jQuery.className[ jQuery.className.has( this, classNames ) ? "remove" : "add" ]( this, classNames );
	},

	remove: function( selector ) {
		if ( !selector || jQuery.filter( selector, [ this ] ).r.length ) {
			// Prevent memory leaks
			jQuery( "*", this ).add(this).each(function(){
				jQuery.event.remove(this);
				jQuery.removeData(this);
			});
			if (this.parentNode)
				this.parentNode.removeChild( this );
		}
	},

	empty: function() {
		// Remove element nodes and prevent memory leaks
		jQuery( ">*", this ).remove();

		// Remove any remaining nodes
		while ( this.firstChild )
			this.removeChild( this.firstChild );
	}
}, function(name, fn){
	jQuery.fn[ name ] = function(){
		return this.each( fn, arguments );
	};
});

jQuery.each([ "Height", "Width" ], function(i, name){
	var type = name.toLowerCase();

	jQuery.fn[ type ] = function( size ) {
		// Get window width or height
		return this[0] == window ?
			// Opera reports document.body.client[Width/Height] properly in both quirks and standards
			jQuery.browser.opera && document.body[ "client" + name ] ||

			// Safari reports inner[Width/Height] just fine (Mozilla and Opera include scroll bar widths)
			jQuery.browser.safari && window[ "inner" + name ] ||

			// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
			document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] || document.body[ "client" + name ] :

			// Get document width or height
			this[0] == document ?
				// Either scroll[Width/Height] or offset[Width/Height], whichever is greater
				Math.max(
					Math.max(document.body["scroll" + name], document.documentElement["scroll" + name]),
					Math.max(document.body["offset" + name], document.documentElement["offset" + name])
				) :

				// Get or set width or height on the element
				size == undefined ?
					// Get width or height on the element
					(this.length ? jQuery.css( this[0], type ) : null) :

					// Set the width or height on the element (default to pixels if value is unitless)
					this.css( type, size.constructor == String ? size : size + "px" );
	};
});

// Helper function used by the dimensions and offset modules
function num(elem, prop) {
	return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
}var chars = jQuery.browser.safari && parseInt(jQuery.browser.version) < 417 ?
		"(?:[\\w*_-]|\\\\.)" :
		"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",
	quickChild = new RegExp("^>\\s*(" + chars + "+)"),
	quickID = new RegExp("^(" + chars + "+)(#)(" + chars + "+)"),
	quickClass = new RegExp("^([#.]?)(" + chars + "*)");

jQuery.extend({
	expr: {
		"": function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},
		"#": function(a,i,m){return a.getAttribute("id")==m[2];},
		":": {
			// Position Checks
			lt: function(a,i,m){return i<m[3]-0;},
			gt: function(a,i,m){return i>m[3]-0;},
			nth: function(a,i,m){return m[3]-0==i;},
			eq: function(a,i,m){return m[3]-0==i;},
			first: function(a,i){return i==0;},
			last: function(a,i,m,r){return i==r.length-1;},
			even: function(a,i){return i%2==0;},
			odd: function(a,i){return i%2;},

			// Child Checks
			"first-child": function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},
			"last-child": function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},
			"only-child": function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},

			// Parent Checks
			parent: function(a){return a.firstChild;},
			empty: function(a){return !a.firstChild;},

			// Text Check
			contains: function(a,i,m){return (a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},

			// Visibility
			visible: function(a){return "hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},
			hidden: function(a){return "hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},

			// Form attributes
			enabled: function(a){return !a.disabled;},
			disabled: function(a){return a.disabled;},
			checked: function(a){return a.checked;},
			selected: function(a){return a.selected||jQuery.attr(a,"selected");},

			// Form elements
			text: function(a){return "text"==a.type;},
			radio: function(a){return "radio"==a.type;},
			checkbox: function(a){return "checkbox"==a.type;},
			file: function(a){return "file"==a.type;},
			password: function(a){return "password"==a.type;},
			submit: function(a){return "submit"==a.type;},
			image: function(a){return "image"==a.type;},
			reset: function(a){return "reset"==a.type;},
			button: function(a){return "button"==a.type||jQuery.nodeName(a,"button");},
			input: function(a){return /input|select|textarea|button/i.test(a.nodeName);},

			// :has()
			has: function(a,i,m){return jQuery.find(m[3],a).length;},

			// :header
			header: function(a){return /h\d/i.test(a.nodeName);},

			// :animated
			animated: function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}
		}
	},

	// The regular expressions that power the parsing engine
	parse: [
		// Match: [@value='test'], [@foo]
		/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,

		// Match: :contains('foo')
		/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,

		// Match: :even, :last-child, #id, .class
		new RegExp("^([:.#]*)(" + chars + "+)")
	],

	multiFilter: function( expr, elems, not ) {
		var old, cur = [];

		while ( expr && expr != old ) {
			old = expr;
			var f = jQuery.filter( expr, elems, not );
			expr = f.t.replace(/^\s*,\s*/, "" );
			cur = not ? elems = f.r : jQuery.merge( cur, f.r );
		}

		return cur;
	},

	find: function( t, context ) {
		// Quickly handle non-string expressions
		if ( typeof t != "string" )
			return [ t ];

		// check to make sure context is a DOM element or a document
		if ( context && context.nodeType != 1 && context.nodeType != 9)
			return [ ];

		// Set the correct context (if none is provided)
		context = context || document;

		// Initialize the search
		var ret = [context], done = [], last, nodeName;

		// Continue while a selector expression exists, and while
		// we're no longer looping upon ourselves
		while ( t && last != t ) {
			var r = [];
			last = t;

			t = jQuery.trim(t);

			var foundToken = false,

			// An attempt at speeding up child selectors that
			// point to a specific element tag
				re = quickChild,

				m = re.exec(t);

			if ( m ) {
				nodeName = m[1].toUpperCase();

				// Perform our own iteration and filter
				for ( var i = 0; ret[i]; i++ )
					for ( var c = ret[i].firstChild; c; c = c.nextSibling )
						if ( c.nodeType == 1 && (nodeName == "*" || c.nodeName.toUpperCase() == nodeName) )
							r.push( c );

				ret = r;
				t = t.replace( re, "" );
				if ( t.indexOf(" ") == 0 ) continue;
				foundToken = true;
			} else {
				re = /^([>+~])\s*(\w*)/i;

				if ( (m = re.exec(t)) != null ) {
					r = [];

					var merge = {};
					nodeName = m[2].toUpperCase();
					m = m[1];

					for ( var j = 0, rl = ret.length; j < rl; j++ ) {
						var n = m == "~" || m == "+" ? ret[j].nextSibling : ret[j].firstChild;
						for ( ; n; n = n.nextSibling )
							if ( n.nodeType == 1 ) {
								var id = jQuery.data(n);

								if ( m == "~" && merge[id] ) break;

								if (!nodeName || n.nodeName.toUpperCase() == nodeName ) {
									if ( m == "~" ) merge[id] = true;
									r.push( n );
								}

								if ( m == "+" ) break;
							}
					}

					ret = r;

					// And remove the token
					t = jQuery.trim( t.replace( re, "" ) );
					foundToken = true;
				}
			}

			// See if there's still an expression, and that we haven't already
			// matched a token
			if ( t && !foundToken ) {
				// Handle multiple expressions
				if ( !t.indexOf(",") ) {
					// Clean the result set
					if ( context == ret[0] ) ret.shift();

					// Merge the result sets
					done = jQuery.merge( done, ret );

					// Reset the context
					r = ret = [context];

					// Touch up the selector string
					t = " " + t.substr(1,t.length);

				} else {
					// Optimize for the case nodeName#idName
					var re2 = quickID;
					var m = re2.exec(t);

					// Re-organize the results, so that they're consistent
					if ( m ) {
						m = [ 0, m[2], m[3], m[1] ];

					} else {
						// Otherwise, do a traditional filter check for
						// ID, class, and element selectors
						re2 = quickClass;
						m = re2.exec(t);
					}

					m[2] = m[2].replace(/\\/g, "");

					var elem = ret[ret.length-1];

					// Try to do a global search by ID, where we can
					if ( m[1] == "#" && elem && elem.getElementById && !jQuery.isXMLDoc(elem) ) {
						// Optimization for HTML document case
						var oid = elem.getElementById(m[2]);

						// Do a quick check for the existence of the actual ID attribute
						// to avoid selecting by the name attribute in IE
						// also check to insure id is a string to avoid selecting an element with the name of 'id' inside a form
						if ( (jQuery.browser.msie||jQuery.browser.opera) && oid && typeof oid.id == "string" && oid.id != m[2] )
							oid = jQuery('[@id="'+m[2]+'"]', elem)[0];

						// Do a quick check for node name (where applicable) so
						// that div#foo searches will be really fast
						ret = r = oid && (!m[3] || jQuery.nodeName(oid, m[3])) ? [oid] : [];
					} else {
						// We need to find all descendant elements
						for ( var i = 0; ret[i]; i++ ) {
							// Grab the tag name being searched for
							var tag = m[1] == "#" && m[3] ? m[3] : m[1] != "" || m[0] == "" ? "*" : m[2];

							// Handle IE7 being really dumb about <object>s
							if ( tag == "*" && ret[i].nodeName.toLowerCase() == "object" )
								tag = "param";

							r = jQuery.merge( r, ret[i].getElementsByTagName( tag ));
						}

						// It's faster to filter by class and be done with it
						if ( m[1] == "." )
							r = jQuery.classFilter( r, m[2] );

						// Same with ID filtering
						if ( m[1] == "#" ) {
							var tmp = [];

							// Try to find the element with the ID
							for ( var i = 0; r[i]; i++ )
								if ( r[i].getAttribute("id") == m[2] ) {
									tmp = [ r[i] ];
									break;
								}

							r = tmp;
						}

						ret = r;
					}

					t = t.replace( re2, "" );
				}

			}

			// If a selector string still exists
			if ( t ) {
				// Attempt to filter it
				var val = jQuery.filter(t,r);
				ret = r = val.r;
				t = jQuery.trim(val.t);
			}
		}

		// An error occurred with the selector;
		// just return an empty set instead
		if ( t )
			ret = [];

		// Remove the root context
		if ( ret && context == ret[0] )
			ret.shift();

		// And combine the results
		done = jQuery.merge( done, ret );

		return done;
	},

	classFilter: function(r,m,not){
		m = " " + m + " ";
		var tmp = [];
		for ( var i = 0; r[i]; i++ ) {
			var pass = (" " + r[i].className + " ").indexOf( m ) >= 0;
			if ( !not && pass || not && !pass )
				tmp.push( r[i] );
		}
		return tmp;
	},

	filter: function(t,r,not) {
		var last;

		// Look for common filter expressions
		while ( t && t != last ) {
			last = t;

			var p = jQuery.parse, m;

			for ( var i = 0; p[i]; i++ ) {
				m = p[i].exec( t );

				if ( m ) {
					// Remove what we just matched
					t = t.substring( m[0].length );

					m[2] = m[2].replace(/\\/g, "");
					break;
				}
			}

			if ( !m )
				break;

			// :not() is a special case that can be optimized by
			// keeping it out of the expression list
			if ( m[1] == ":" && m[2] == "not" )
				// optimize if only one selector found (most common case)
				r = isSimple.test( m[3] ) ?
					jQuery.filter(m[3], r, true).r :
					jQuery( r ).not( m[3] );

			// We can get a big speed boost by filtering by class here
			else if ( m[1] == "." )
				r = jQuery.classFilter(r, m[2], not);

			else if ( m[1] == "[" ) {
				var tmp = [], type = m[3];

				for ( var i = 0, rl = r.length; i < rl; i++ ) {
					var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ];

					if ( z == null || /href|src|selected/.test(m[2]) )
						z = jQuery.attr(a,m[2]) || '';

					if ( (type == "" && !!z ||
						 type == "=" && z == m[5] ||
						 type == "!=" && z != m[5] ||
						 type == "^=" && z && !z.indexOf(m[5]) ||
						 type == "$=" && z.substr(z.length - m[5].length) == m[5] ||
						 (type == "*=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ not )
							tmp.push( a );
				}

				r = tmp;

			// We can get a speed boost by handling nth-child here
			} else if ( m[1] == ":" && m[2] == "nth-child" ) {
				var merge = {}, tmp = [],
					// parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
					test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
						m[3] == "even" && "2n" || m[3] == "odd" && "2n+1" ||
						!/\D/.test(m[3]) && "0n+" + m[3] || m[3]),
					// calculate the numbers (first)n+(last) including if they are negative
					first = (test[1] + (test[2] || 1)) - 0, last = test[3] - 0;

				// loop through all the elements left in the jQuery object
				for ( var i = 0, rl = r.length; i < rl; i++ ) {
					var node = r[i], parentNode = node.parentNode, id = jQuery.data(parentNode);

					if ( !merge[id] ) {
						var c = 1;

						for ( var n = parentNode.firstChild; n; n = n.nextSibling )
							if ( n.nodeType == 1 )
								n.nodeIndex = c++;

						merge[id] = true;
					}

					var add = false;

					if ( first == 0 ) {
						if ( node.nodeIndex == last )
							add = true;
					} else if ( (node.nodeIndex - last) % first == 0 && (node.nodeIndex - last) / first >= 0 )
						add = true;

					if ( add ^ not )
						tmp.push( node );
				}

				r = tmp;

			// Otherwise, find the expression to execute
			} else {
				var fn = jQuery.expr[ m[1] ];
				if ( typeof fn == "object" )
					fn = fn[ m[2] ];

				if ( typeof fn == "string" )
					fn = eval("false||function(a,i){return " + fn + ";}");

				// Execute it against the current filter
				r = jQuery.grep( r, function(elem, i){
					return fn(elem, i, m, r);
				}, not );
			}
		}

		// Return an array of filtered elements (r)
		// and the modified expression string (t)
		return { r: r, t: t };
	},

	dir: function( elem, dir ){
		var matched = [],
			cur = elem[dir];
		while ( cur && cur != document ) {
			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;
	}
});
/*
 * A number of helper functions used for managing events.
 * Many of the ideas behind this code orignated 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;

		// For whatever reason, IE has trouble passing the window object
		// around, causing it to be cloned in the process
		if ( jQuery.browser.msie && elem.setInterval )
			elem = window;

		// Make sure that the function being executed has a unique ID
		if ( !handler.guid )
			handler.guid = this.guid++;

		// if data is passed, bind to handler
		if( data != undefined ) {
			// Create temporary function pointer to original handler
			var fn = handler;

			// Create unique handler function, wrapped around original handler
			handler = this.proxy( fn, function() {
				// Pass arguments and context to original handler
				return fn.apply(this, arguments);
			});

			// Store data in unique handler
			handler.data = data;
		}

		// Init the element's event structure
		var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
			handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
				// Handle the second event of a trigger and when
				// an event is called after a page has unloaded
				if ( typeof jQuery != "undefined" && !jQuery.event.triggered )
					return jQuery.event.handle.apply(arguments.callee.elem, arguments);
			});
		// Add elem as a property of the handle function
		// This is to prevent a memory leak with non-native
		// event in IE.
		handle.elem = elem;

		// Handle multiple events separated by a space
		// jQuery(...).bind("mouseover mouseout", fn);
		jQuery.each(types.split(/\s+/), function(index, type) {
			// Namespaced event handlers
			var parts = type.split(".");
			type = parts[0];
			handler.type = parts[1];

			// Get the current list of functions bound to this event
			var handlers = events[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 ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem) === false ) {
					// Bind the global event handler to the element
					if (elem.addEventListener)
						elem.addEventListener(type, handle, false);
					else if (elem.attachEvent)
						elem.attachEvent("on" + type, handle);
				}
			}

			// Add the function to the element's handler list
			handlers[handler.guid] = handler;

			// Keep track of which events have been used, for global triggering
			jQuery.event.global[type] = true;
		});

		// Nullify elem to prevent memory leaks in IE
		elem = null;
	},

	guid: 1,
	global: {},

	// Detach an event or set of events from an element
	remove: function(elem, types, handler) {
		// don't do events on text and comment nodes
		if ( elem.nodeType == 3 || elem.nodeType == 8 )
			return;

		var events = jQuery.data(elem, "events"), ret, index;

		if ( events ) {
			// Unbind all events for the element
			if ( types == undefined || (typeof types == "string" && types.charAt(0) == ".") )
				for ( var type in events )
					this.remove( elem, type + (types || "") );
			else {
				// types is actually an event object here
				if ( types.type ) {
					handler = types.handler;
					types = types.type;
				}

				// Handle multiple events seperated by a space
				// jQuery(...).unbind("mouseover mouseout", fn);
				jQuery.each(types.split(/\s+/), function(index, type){
					// Namespaced event handlers
					var parts = type.split(".");
					type = parts[0];

					if ( events[type] ) {
						// remove the given handler for the given type
						if ( handler )
							delete events[type][handler.guid];

						// remove all handlers for the given type
						else
							for ( handler in events[type] )
								// Handle the removal of namespaced events
								if ( !parts[1] || events[type][handler].type == parts[1] )
									delete events[type][handler];

						// remove generic event handler if no more handlers exist
						for ( ret in events[type] ) break;
						if ( !ret ) {
							if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem) === false ) {
								if (elem.removeEventListener)
									elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
								else if (elem.detachEvent)
									elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
							}
							ret = null;
							delete events[type];
						}
					}
				});
			}

			// Remove the expando if it's no longer used
			for ( ret in events ) break;
			if ( !ret ) {
				var handle = jQuery.data( elem, "handle" );
				if ( handle ) handle.elem = null;
				jQuery.removeData( elem, "events" );
				jQuery.removeData( elem, "handle" );
			}
		}
	},

	trigger: function(type, data, elem, donative, extra) {
		// Clone the incoming data, if any
		data = jQuery.makeArray(data);

		if ( type.indexOf("!") >= 0 ) {
			type = type.slice(0, -1);
			var exclusive = true;
		}

		// Handle a global trigger
		if ( !elem ) {
			// Only trigger if we've ever bound an event for it
			if ( this.global[type] )
				jQuery("*").add([window, document]).trigger(type, data);

		// Handle triggering a single element
		} else {
			// don't do events on text and comment nodes
			if ( elem.nodeType == 3 || elem.nodeType == 8 )
				return undefined;

			var val, ret, fn = jQuery.isFunction( elem[ type ] || null ),
				// Check to see if we need to provide a fake event, or not
				event = !data[0] || !data[0].preventDefault;

			// Pass along a fake event
			if ( event ) {
				data.unshift({
					type: type,
					target: elem,
					preventDefault: function(){},
					stopPropagation: function(){},
					timeStamp: now()
				});
				data[0][expando] = true; // no need to fix fake event
			}

			// Enforce the right trigger type
			data[0].type = type;
			if ( exclusive )
				data[0].exclusive = true;

			// Trigger the event, it is assumed that "handle" is a function
			var handle = jQuery.data(elem, "handle");
			if ( handle )
				val = handle.apply( elem, data );

			// Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
			if ( (!fn || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
				val = false;

			// Extra functions don't get the custom event object
			if ( event )
				data.shift();

			// Handle triggering of extra function
			if ( extra && jQuery.isFunction( extra ) ) {
				// call the extra function and tack the current return value on the end for possible inspection
				ret = extra.apply( elem, val == null ? data : data.concat( val ) );
				// if anything is returned, give it precedence and have it overwrite the previous value
				if (ret !== undefined)
					val = ret;
			}

			// Trigger the native events (except for clicks on links)
			if ( fn && donative !== false && val !== false && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
				this.triggered = true;
				try {
					elem[ type ]();
				// prevent IE from throwing an error for some hidden elements
				} catch (e) {}
			}

			this.triggered = false;
		}

		return val;
	},

	handle: function(event) {
		// returned undefined or false
		var val, ret, namespace, all, handlers;

		event = arguments[0] = jQuery.event.fix( event || window.event );

		// Namespaced event handlers
		namespace = event.type.split(".");
		event.type = namespace[0];
		namespace = namespace[1];
		// Cache this now, all = true means, any handler
		all = !namespace && !event.exclusive;

		handlers = ( jQuery.data(this, "events") || {} )[event.type];

		for ( var j in handlers ) {
			var handler = handlers[j];

			// Filter the functions by class
			if ( all || handler.type == namespace ) {
				// Pass in a reference to the handler function itself
				// So that we can later remove it
				event.handler = handler;
				event.data = handler.data;

				ret = handler.apply( this, arguments );

				if ( val !== false )
					val = ret;

				if ( ret === false ) {
					event.preventDefault();
					event.stopPropagation();
				}
			}
		}

		return val;
	},

	fix: function(event) {
		if ( event[expando] == true )
			return event;

		// store a copy of the original event object
		// and "clone" to set read-only properties
		var originalEvent = event;
		event = { originalEvent: originalEvent };
		var props = "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");
		for ( var i=props.length; i; i-- )
			event[ props[i] ] = originalEvent[ props[i] ];

		// Mark it as fixed
		event[expando] = true;

		// add preventDefault and stopPropagation since
		// they will not work on the clone
		event.preventDefault = function() {
			// if preventDefault exists run it on the original event
			if (originalEvent.preventDefault)
				originalEvent.preventDefault();
			// otherwise set the returnValue property of the original event to false (IE)
			originalEvent.returnValue = false;
		};
		event.stopPropagation = function() {
			// if stopPropagation exists run it on the original event
			if (originalEvent.stopPropagation)
				originalEvent.stopPropagation();
			// otherwise set the cancelBubble property of the original event to true (IE)
			originalEvent.cancelBubble = true;
		};

		// Fix timeStamp
		event.timeStamp = event.timeStamp || now();

		// Fix target property, if necessary
		if ( !event.target )
			event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either

		// 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 doc = document.documentElement, body = document.body;
			event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
			event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
		}

		// Add which for key events
		if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
			event.which = 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 )
			event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));

		return event;
	},

	proxy: function( fn, proxy ){
		// 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 || this.guid++;
		// So proxy can be declared as an argument
		return proxy;
	},

	special: {
		ready: {
			setup: function() {
				// Make sure the ready event is setup
				bindReady();
				return;
			},

			teardown: function() { return; }
		},

		mouseenter: {
			setup: function() {
				if ( jQuery.browser.msie ) return false;
				jQuery(this).bind("mouseover", jQuery.event.special.mouseenter.handler);
				return true;
			},

			teardown: function() {
				if ( jQuery.browser.msie ) return false;
				jQuery(this).unbind("mouseover", jQuery.event.special.mouseenter.handler);
				return true;
			},

			handler: function(event) {
				// If we actually just moused on to a sub-element, ignore it
				if ( withinElement(event, this) ) return true;
				// Execute the right handlers by setting the event type to mouseenter
				event.type = "mouseenter";
				return jQuery.event.handle.apply(this, arguments);
			}
		},

		mouseleave: {
			setup: function() {
				if ( jQuery.browser.msie ) return false;
				jQuery(this).bind("mouseout", jQuery.event.special.mouseleave.handler);
				return true;
			},

			teardown: function() {
				if ( jQuery.browser.msie ) return false;
				jQuery(this).unbind("mouseout", jQuery.event.special.mouseleave.handler);
				return true;
			},

			handler: function(event) {
				// If we actually just moused on to a sub-element, ignore it
				if ( withinElement(event, this) ) return true;
				// Execute the right handlers by setting the event type to mouseleave
				event.type = "mouseleave";
				return jQuery.event.handle.apply(this, arguments);
			}
		}
	}
};

jQuery.fn.extend({
	bind: function( type, data, fn ) {
		return type == "unload" ? this.one(type, data, fn) : this.each(function(){
			jQuery.event.add( this, type, fn || data, fn && data );
		});
	},

	one: function( type, data, fn ) {
		var one = jQuery.event.proxy( fn || data, function(event) {
			jQuery(this).unbind(event, one);
			return (fn || data).apply( this, arguments );
		});
		return this.each(function(){
			jQuery.event.add( this, type, one, fn && data);
		});
	},

	unbind: function( type, fn ) {
		return this.each(function(){
			jQuery.event.remove( this, type, fn );
		});
	},

	trigger: function( type, data, fn ) {
		return this.each(function(){
			jQuery.event.trigger( type, data, this, true, fn );
		});
	},

	triggerHandler: function( type, data, fn ) {
		return this[0] && jQuery.event.trigger( type, data, this[0], false, fn );
	},

	toggle: function( fn ) {
		// Save reference to arguments for access in closure
		var args = arguments, i = 1;

		// link all the functions, so any of them can unbind this click handler
		while( i < args.length )
			jQuery.event.proxy( fn, args[i++] );

		return this.click( jQuery.event.proxy( fn, function(event) {
			// Figure out which function to execute
			this.lastToggle = ( this.lastToggle || 0 ) % i;

			// Make sure that clicks stop
			event.preventDefault();

			// and execute the function
			return args[ this.lastToggle++ ].apply( this, arguments ) || false;
		}));
	},

	hover: function(fnOver, fnOut) {
		return this.bind('mouseenter', fnOver).bind('mouseleave', fnOut);
	},

	ready: function(fn) {
		// Attach the listeners
		bindReady();

		// If the DOM is already ready
		if ( jQuery.isReady )
			// Execute the function immediately
			fn.call( document, jQuery );

		// Otherwise, remember the function for later
		else
			// Add the function to the wait list
			jQuery.readyList.push( function() { return fn.call(this, jQuery); } );

		return this;
	}
});

jQuery.extend({
	isReady: false,
	readyList: [],
	// Handle when the DOM is ready
	ready: function() {
		// Make sure that the DOM is not already loaded
		if ( !jQuery.isReady ) {
			// Remember that the DOM is ready
			jQuery.isReady = true;

			// If there are functions bound, to execute
			if ( jQuery.readyList ) {
				// Execute all of them
				jQuery.each( jQuery.readyList, function(){
					this.call( document );
				});

				// Reset the list of functions
				jQuery.readyList = null;
			}

			// Trigger any bound ready events
			jQuery(document).triggerHandler("ready");
		}
	}
});

var readyBound = false;

function bindReady(){
	if ( readyBound ) return;
	readyBound = true;

	// Mozilla, Opera (see further below for it) and webkit nightlies currently support this event
	if ( document.addEventListener && !jQuery.browser.opera)
		// Use the handy event callback
		document.addEventListener( "DOMContentLoaded", jQuery.ready, false );

	// If IE is used and is not in a frame
	// Continually check to see if the document is ready
	if ( jQuery.browser.msie && window == top ) (function(){
		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( error ) {
			setTimeout( arguments.callee, 0 );
			return;
		}
		// and execute any waiting functions
		jQuery.ready();
	})();

	if ( jQuery.browser.opera )
		document.addEventListener( "DOMContentLoaded", function () {
			if (jQuery.isReady) return;
			for (var i = 0; i < document.styleSheets.length; i++)
				if (document.styleSheets[i].disabled) {
					setTimeout( arguments.callee, 0 );
					return;
				}
			// and execute any waiting functions
			jQuery.ready();
		}, false);

	if ( jQuery.browser.safari ) {
		var numStyles;
		(function(){
			if (jQuery.isReady) return;
			if ( document.readyState != "loaded" && document.readyState != "complete" ) {
				setTimeout( arguments.callee, 0 );
				return;
			}
			if ( numStyles === undefined )
				numStyles = jQuery("style, link[rel=stylesheet]").length;
			if ( document.styleSheets.length != numStyles ) {
				setTimeout( arguments.callee, 0 );
				return;
			}
			// and execute any waiting functions
			jQuery.ready();
		})();
	}

	// A fallback to window.onload, that will always work
	jQuery.event.add( window, "load", jQuery.ready );
}

jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
	"mousedown,mouseup,mousemove,mouseover,mouseout,change,select," +
	"submit,keydown,keypress,keyup,error").split(","), function(i, name){

	// Handle event binding
	jQuery.fn[name] = function(fn){
		return fn ? this.bind(name, fn) : this.trigger(name);
	};
});

// Checks if an event happened on an element within another element
// Used in jQuery.event.special.mouseenter and mouseleave handlers
var withinElement = function(event, elem) {
	// Check if mouse(over|out) are still within the same parent element
	var parent = event.relatedTarget;
	// Traverse up the tree
	while ( parent && parent != elem ) try { parent = parent.parentNode; } catch(error) { parent = elem; }
	// Return true if we actually just moused on to a sub-element
	return parent == elem;
};

// Prevent memory leaks in IE
// And prevent errors on refresh with events like mouseover in other browsers
// Window isn't included so as not to unbind existing unload events
jQuery(window).bind("unload", function() {
	jQuery("*").add(document).unbind();
});
jQuery.fn.extend({
	// Keep a copy of the old load
	_load: jQuery.fn.load,

	load: function( url, params, callback ) {
		if ( typeof url != 'string' )
			return this._load( url );

		var off = url.indexOf(" ");
		if ( off >= 0 ) {
			var selector = url.slice(off, url.length);
			url = url.slice(0, off);
		}

		callback = callback || function(){};

		// 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 = null;

			// Otherwise, build a param string
			} else {
				params = jQuery.param( params );
				type = "POST";
			}

		var self = this;

		// Request the remote document
		jQuery.ajax({
			url: url,
			type: type,
			dataType: "html",
			data: params,
			complete: function(res, status){
				// If successful, inject the HTML into all the matched elements
				if ( status == "success" || status == "notmodified" )
					// 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(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))

							// Locate the specified elements
							.find(selector) :

						// If not, just inject the full result
						res.responseText );

				self.each( callback, [res.responseText, status, res] );
			}
		});
		return this;
	},

	serialize: function() {
		return jQuery.param(this.serializeArray());
	},
	serializeArray: function() {
		return this.map(function(){
			return jQuery.nodeName(this, "form") ?
				jQuery.makeArray(this.elements) : this;
		})
		.filter(function(){
			return this.name && !this.disabled &&
				(this.checked || /select|textarea/i.test(this.nodeName) ||
					/text|hidden|password/i.test(this.type));
		})
		.map(function(i, elem){
			var val = jQuery(this).val();
			return val == null ? null :
				val.constructor == Array ?
					jQuery.map( val, function(val, i){
						return {name: elem.name, value: val};
					}) :
					{name: elem.name, value: val};
		}).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);
	};
});

var jsc = now();

jQuery.extend({
	get: function( url, data, callback, type ) {
		// shift arguments if data argument was ommited
		if ( jQuery.isFunction( data ) ) {
			callback = data;
			data = null;
		}

		return jQuery.ajax({
			type: "GET",
			url: url,
			data: data,
			success: callback,
			dataType: type
		});
	},

	getScript: function( url, callback ) {
		return jQuery.get(url, null, callback, "script");
	},

	getJSON: function( url, data, callback ) {
		return jQuery.get(url, data, callback, "json");
	},

	post: function( url, data, callback, type ) {
		if ( jQuery.isFunction( data ) ) {
			callback = data;
			data = {};
		}

		return jQuery.ajax({
			type: "POST",
			url: url,
			data: data,
			success: callback,
			dataType: type
		});
	},

	ajaxSetup: function( settings ) {
		jQuery.extend( jQuery.ajaxSettings, settings );
	},

	ajaxSettings: {
		url: location.href,
		global: true,
		type: "GET",
		timeout: 0,
		contentType: "application/x-www-form-urlencoded",
		processData: true,
		async: true,
		data: null,
		username: null,
		password: null,
		accepts: {
			xml: "application/xml, text/xml",
			html: "text/html",
			script: "text/javascript, application/javascript",
			json: "application/json, text/javascript",
			text: "text/plain",
			_default: "*/*"
		}
	},

	// Last-Modified header cache for next request
	lastModified: {},

	ajax: function( s ) {
		// Extend the settings, but re-extend 's' so that it can be
		// checked again later (in the test suite, specifically)
		s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));

		var jsonp, jsre = /=\?(&|$)/g, status, data,
			type = s.type.toUpperCase();

		// convert data if not already a string
		if ( s.data && s.processData && typeof s.data != "string" )
			s.data = jQuery.param(s.data);

		// Handle JSONP Parameter Callbacks
		if ( s.dataType == "jsonp" ) {
			if ( type == "GET" ) {
				if ( !s.url.match(jsre) )
					s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
			} else if ( !s.data || !s.data.match(jsre) )
				s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
			s.dataType = "json";
		}

		// Build temporary JSONP function
		if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
			jsonp = "jsonp" + jsc++;

			// Replace the =? sequence both in the query string and the data
			if ( s.data )
				s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
			s.url = s.url.replace(jsre, "=" + jsonp + "$1");

			// We need to make sure
			// that a JSONP style response is executed properly
			s.dataType = "script";

			// Handle JSONP-style loading
			window[ jsonp ] = function(tmp){
				data = tmp;
				success();
				complete();
				// Garbage collect
				window[ jsonp ] = undefined;
				try{ delete window[ jsonp ]; } catch(e){}
				if ( head )
					head.removeChild( script );
			};
		}

		if ( s.dataType == "script" && s.cache == null )
			s.cache = false;

		if ( s.cache === false && type == "GET" ) {
			var ts = now();
			// try replacing _= if it is there
			var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
			// if nothing was replaced, add timestamp to the end
			s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
		}

		// If data is available, append data to url for get requests
		if ( s.data && type == "GET" ) {
			s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;

			// IE likes to send both get and post data, prevent this
			s.data = null;
		}

		// Watch for a new set of requests
		if ( s.global && ! jQuery.active++ )
			jQuery.event.trigger( "ajaxStart" );

		// Matches an absolute URL, and saves the domain
		var remote = /^(?:\w+:)?\/\/([^\/?#]+)/;

		// If we're requesting a remote document
		// and trying to load JSON or Script with a GET
		if ( s.dataType == "script" && type == "GET"
				&& remote.test(s.url) && remote.exec(s.url)[1] != location.host ){
			var head = document.getElementsByTagName("head")[0];
			var script = document.createElement("script");
			script.src = s.url;
			if (s.scriptCharset)
				script.charset = s.scriptCharset;

			// Handle Script loading
			if ( !jsonp ) {
				var done = false;

				// Attach handlers for all browsers
				script.onload = script.onreadystatechange = function(){
					if ( !done && (!this.readyState ||
							this.readyState == "loaded" || this.readyState == "complete") ) {
						done = true;
						success();
						complete();
						head.removeChild( script );
					}
				};
			}

			head.appendChild(script);

			// We handle everything using the script element injection
			return undefined;
		}

		var requestDone = false;

		// Create the request object; Microsoft failed to properly
		// implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
		var xhr = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();

		// Open the socket
		// Passing null username, generates a login popup on Opera (#2865)
		if( s.username )
			xhr.open(type, s.url, s.async, s.username, s.password);
		else
			xhr.open(type, s.url, s.async);

		// Need an extra try/catch for cross domain requests in Firefox 3
		try {
			// Set the correct header, if data is being sent
			if ( s.data )
				xhr.setRequestHeader("Content-Type", s.contentType);

			// Set the If-Modified-Since header, if ifModified mode.
			if ( s.ifModified )
				xhr.setRequestHeader("If-Modified-Since",
					jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );

			// Set header so the called script knows that it's an XMLHttpRequest
			xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");

			// Set the Accepts header for the server, depending on the dataType
			xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
				s.accepts[ s.dataType ] + ", */*" :
				s.accepts._default );
		} catch(e){}

		// Allow custom headers/mimetypes
		if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
			// cleanup active request counter
			s.global && jQuery.active--;
			// close opended socket
			xhr.abort();
			return false;
		}

		if ( s.global )
			jQuery.event.trigger("ajaxSend", [xhr, s]);

		// Wait for a response to come back
		var onreadystatechange = function(isTimeout){
			// The transfer is complete and the data is available, or the request timed out
			if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
				requestDone = true;

				// clear poll interval
				if (ival) {
					clearInterval(ival);
					ival = null;
				}

				status = isTimeout == "timeout" && "timeout" ||
					!jQuery.httpSuccess( xhr ) && "error" ||
					s.ifModified && jQuery.httpNotModified( xhr, s.url ) && "notmodified" ||
					"success";

				if ( status == "success" ) {
					// Watch for, and catch, XML document parse errors
					try {
						// process the data (runs the xml through httpData regardless of callback)
						data = jQuery.httpData( xhr, s.dataType, s.dataFilter );
					} catch(e) {
						status = "parsererror";
					}
				}

				// Make sure that the request was successful or notmodified
				if ( status == "success" ) {
					// Cache Last-Modified header, if ifModified mode.
					var modRes;
					try {
						modRes = xhr.getResponseHeader("Last-Modified");
					} catch(e) {} // swallow exception thrown by FF if header is not available

					if ( s.ifModified && modRes )
						jQuery.lastModified[s.url] = modRes;

					// JSONP handles its own success callback
					if ( !jsonp )
						success();
				} else
					jQuery.handleError(s, xhr, status);

				// Fire the complete handlers
				complete();

				// Stop memory leaks
				if ( s.async )
					xhr = null;
			}
		};

		if ( s.async ) {
			// don't attach the handler to the request, just poll it instead
			var ival = setInterval(onreadystatechange, 13);

			// Timeout checker
			if ( s.timeout > 0 )
				setTimeout(function(){
					// Check to see if the request is still happening
					if ( xhr ) {
						// Cancel the request
						xhr.abort();

						if( !requestDone )
							onreadystatechange( "timeout" );
					}
				}, s.timeout);
		}

		// Send the data
		try {
			xhr.send(s.data);
		} catch(e) {
			jQuery.handleError(s, xhr, null, e);
		}

		// firefox 1.5 doesn't fire statechange for sync requests
		if ( !s.async )
			onreadystatechange();

		function success(){
			// If a local callback was specified, fire it and pass it the data
			if ( s.success )
				s.success( data, status );

			// Fire the global callback
			if ( s.global )
				jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
		}

		function complete(){
			// Process result
			if ( s.complete )
				s.complete(xhr, status);

			// The request was completed
			if ( s.global )
				jQuery.event.trigger( "ajaxComplete", [xhr, s] );

			// Handle the global AJAX counter
			if ( s.global && ! --jQuery.active )
				jQuery.event.trigger( "ajaxStop" );
		}

		// return XMLHttpRequest to allow aborting the request etc.
		return xhr;
	},

	handleError: function( s, xhr, status, e ) {
		// If a local callback was specified, fire it
		if ( s.error ) s.error( xhr, status, e );

		// Fire the global callback
		if ( s.global )
			jQuery.event.trigger( "ajaxError", [xhr, s, e] );
	},

	// Counter for holding the number of active queries
	active: 0,

	// Determines if an XMLHttpRequest was successful or not
	httpSuccess: function( xhr ) {
		try {
			// IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
			return !xhr.status && location.protocol == "file:" ||
				( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223 ||
				jQuery.browser.safari && xhr.status == undefined;
		} catch(e){}
		return false;
	},

	// Determines if an XMLHttpRequest returns NotModified
	httpNotModified: function( xhr, url ) {
		try {
			var xhrRes = xhr.getResponseHeader("Last-Modified");

			// Firefox always returns 200. check Last-Modified date
			return xhr.status == 304 || xhrRes == jQuery.lastModified[url] ||
				jQuery.browser.safari && xhr.status == undefined;
		} catch(e){}
		return false;
	},

	httpData: function( xhr, type, filter ) {
		var ct = xhr.getResponseHeader("content-type"),
			xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
			data = xml ? xhr.responseXML : xhr.responseText;

		if ( xml && data.documentElement.tagName == "parsererror" )
			throw "parsererror";
			
		// Allow a pre-filtering function to sanitize the response
		if( filter )
			data = filter( data, type );

		// If the type is "script", eval it in global context
		if ( type == "script" )
			jQuery.globalEval( data );

		// Get the JavaScript object, if JSON is used.
		if ( type == "json" )
			data = eval("(" + data + ")");

		return data;
	},

	// Serialize an array of form elements or a set of
	// key/values into a query string
	param: function( a ) {
		var s = [];

		// If an array was passed in, assume that it is an array
		// of form elements
		if ( a.constructor == Array || a.jquery )
			// Serialize the form elements
			jQuery.each( a, function(){
				s.push( encodeURIComponent(this.name) + "=" + encodeURIComponent( this.value ) );
			});

		// Otherwise, assume that it's an object of key/value pairs
		else
			// Serialize the key/values
			for ( var j in a )
				// If the value is an array then the key names need to be repeated
				if ( a[j] && a[j].constructor == Array )
					jQuery.each( a[j], function(){
						s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) );
					});
				else
					s.push( encodeURIComponent(j) + "=" + encodeURIComponent( jQuery.isFunction(a[j]) ? a[j]() : a[j] ) );

		// Return the resulting serialization
		return s.join("&").replace(/%20/g, "+");
	}

});
jQuery.fn.extend({
	show: function(speed,callback){
		return speed ?
			this.animate({
				height: "show", width: "show", opacity: "show"
			}, speed, callback) :

			this.filter(":hidden").each(function(){
				this.style.display = this.oldblock || "";
				if ( jQuery.css(this,"display") == "none" ) {
					var elem = jQuery("<" + this.tagName + " />").appendTo("body");
					this.style.display = elem.css("display");
					// handle an edge condition where css is - div { display:none; } or similar
					if (this.style.display == "none")
						this.style.display = "block";
					elem.remove();
				}
			}).end();
	},

	hide: function(speed,callback){
		return speed ?
			this.animate({
				height: "hide", width: "hide", opacity: "hide"
			}, speed, callback) :

			this.filter(":visible").each(function(){
				this.oldblock = this.oldblock || jQuery.css(this,"display");
				this.style.display = "none";
			}).end();
	},

	// Save the old toggle function
	_toggle: jQuery.fn.toggle,

	toggle: function( fn, fn2 ){
		return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
			this._toggle.apply( this, arguments ) :
			fn ?
				this.animate({
					height: "toggle", width: "toggle", opacity: "toggle"
				}, fn, fn2) :
				this.each(function(){
					jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ]();
				});
	},

	slideDown: function(speed,callback){
		return this.animate({height: "show"}, speed, callback);
	},

	slideUp: function(speed,callback){
		return this.animate({height: "hide"}, speed, callback);
	},

	slideToggle: function(speed, callback){
		return this.animate({height: "toggle"}, speed, callback);
	},

	fadeIn: function(speed, callback){
		return this.animate({opacity: "show"}, speed, callback);
	},

	fadeOut: function(speed, callback){
		return this.animate({opacity: "hide"}, speed, callback);
	},

	fadeTo: function(speed,to,callback){
		return this.animate({opacity: to}, speed, callback);
	},

	animate: function( prop, speed, easing, callback ) {
		var optall = jQuery.speed(speed, easing, callback);

		return this[ optall.queue === false ? "each" : "queue" ](function(){
			if ( this.nodeType != 1)
				return false;

			var opt = jQuery.extend({}, optall), p,
				hidden = jQuery(this).is(":hidden"), self = this;

			for ( p in prop ) {
				if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
					return opt.complete.call(this);

				if ( p == "height" || p == "width" ) {
					// Store display property
					opt.display = jQuery.css(this, "display");

					// Make sure that nothing sneaks out
					opt.overflow = this.style.overflow;
				}
			}

			if ( opt.overflow != null )
				this.style.overflow = "hidden";

			opt.curAnim = jQuery.extend({}, prop);

			jQuery.each( prop, function(name, val){
				var e = new jQuery.fx( self, opt, name );

				if ( /toggle|show|hide/.test(val) )
					e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
				else {
					var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
						start = e.cur(true) || 0;

					if ( parts ) {
						var end = parseFloat(parts[2]),
							unit = parts[3] || "px";

						// We need to compute starting value
						if ( unit != "px" ) {
							self.style[ name ] = (end || 1) + unit;
							start = ((end || 1) / e.cur(true)) * start;
							self.style[ name ] = 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;
		});
	},

	queue: function(type, fn){
		if ( jQuery.isFunction(type) || ( type && type.constructor == Array )) {
			fn = type;
			type = "fx";
		}

		if ( !type || (typeof type == "string" && !fn) )
			return queue( this[0], type );

		return this.each(function(){
			if ( fn.constructor == Array )
				queue(this, type, fn);
			else {
				queue(this, type).push( fn );

				if ( queue(this, type).length == 1 )
					fn.call(this);
			}
		});
	},

	stop: function(clearQueue, gotoEnd){
		var timers = jQuery.timers;

		if (clearQueue)
			this.queue([]);

		this.each(function(){
			// go in reverse order so anything added to the queue during the loop is ignored
			for ( var i = timers.length - 1; i >= 0; 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;
	}

});

var queue = function( elem, type, array ) {
	if ( elem ){

		type = type || "fx";

		var q = jQuery.data( elem, type + "queue" );

		if ( !q || array )
			q = jQuery.data( elem, type + "queue", jQuery.makeArray(array) );

	}
	return q;
};

jQuery.fn.dequeue = function(type){
	type = type || "fx";

	return this.each(function(){
		var q = queue(this, type);

		q.shift();

		if ( q.length )
			q[0].call( this );
	});
};

jQuery.extend({

	speed: function(speed, easing, fn) {
		var opt = speed && speed.constructor == Object ? speed : {
			complete: fn || !fn && easing ||
				jQuery.isFunction( speed ) && speed,
			duration: speed,
			easing: fn && easing || easing && easing.constructor != Function && easing
		};

		opt.duration = (opt.duration && opt.duration.constructor == Number ?
			opt.duration :
			jQuery.fx.speeds[opt.duration]) || jQuery.fx.speeds.def;

		// Queueing
		opt.old = opt.complete;
		opt.complete = function(){
			if ( opt.queue !== false )
				jQuery(this).dequeue();
			if ( jQuery.isFunction( opt.old ) )
				opt.old.call( this );
		};

		return opt;
	},

	easing: {
		linear: function( p, n, firstNum, diff ) {
			return firstNum + diff * p;
		},
		swing: function( p, n, firstNum, diff ) {
			return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
		}
	},

	timers: [],
	timerId: null,

	fx: function( elem, options, prop ){
		this.options = options;
		this.elem = elem;
		this.prop = prop;

		if ( !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 );

		// Set display property to block for height/width animations
		if ( this.prop == "height" || this.prop == "width" )
			this.elem.style.display = "block";
	},

	// Get the current size
	cur: function(force){
		if ( this.elem[this.prop] != null && this.elem.style[this.prop] == null )
			return this.elem[ this.prop ];

		var r = parseFloat(jQuery.css(this.elem, this.prop, force));
		return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
	},

	// Start an animation from one number to another
	custom: function(from, to, unit){
		this.startTime = now();
		this.start = from;
		this.end = to;
		this.unit = unit || this.unit || "px";
		this.now = this.start;
		this.pos = this.state = 0;
		this.update();

		var self = this;
		function t(gotoEnd){
			return self.step(gotoEnd);
		}

		t.elem = this.elem;

		jQuery.timers.push(t);

		if ( jQuery.timerId == null ) {
			jQuery.timerId = setInterval(function(){
				var timers = jQuery.timers;

				for ( var i = 0; i < timers.length; i++ )
					if ( !timers[i]() )
						timers.splice(i--, 1);

				if ( !timers.length ) {
					clearInterval( jQuery.timerId );
					jQuery.timerId = null;
				}
			}, 13);
		}
	},

	// Simple 'show' function
	show: function(){
		// Remember where we started, so that we can go back to it later
		this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
		this.options.show = true;

		// Begin the animation
		this.custom(0, this.cur());

		// Make sure that we start at a small width/height to avoid any
		// flash of content
		if ( this.prop == "width" || this.prop == "height" )
			this.elem.style[this.prop] = "1px";

		// 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.attr( this.elem.style, this.prop );
		this.options.hide = true;

		// Begin the animation
		this.custom(this.cur(), 0);
	},

	// Each step of an animation
	step: function(gotoEnd){
		var t = now();

		if ( gotoEnd || t > this.options.duration + this.startTime ) {
			this.now = this.end;
			this.pos = this.state = 1;
			this.update();

			this.options.curAnim[ this.prop ] = true;

			var done = true;
			for ( var i in this.options.curAnim )
				if ( this.options.curAnim[i] !== true )
					done = false;

			if ( done ) {
				if ( this.options.display != null ) {
					// Reset the overflow
					this.elem.style.overflow = this.options.overflow;

					// Reset the display
					this.elem.style.display = this.options.display;
					if ( jQuery.css(this.elem, "display") == "none" )
						this.elem.style.display = "block";
				}

				// Hide the element if the "hide" operation was done
				if ( this.options.hide )
					this.elem.style.display = "none";

				// Reset the properties, if the item has been hidden or shown
				if ( this.options.hide || this.options.show )
					for ( var p in this.options.curAnim )
						jQuery.attr(this.elem.style, p, this.options.orig[p]);
			}

			if ( done )
				// Execute the complete function
				this.options.complete.call( this.elem );

			return false;
		} else {
			var n = t - this.startTime;
			this.state = n / this.options.duration;

			// Perform the easing function, defaults to swing
			this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
			this.now = this.start + ((this.end - this.start) * this.pos);

			// Perform the next step of the animation
			this.update();
		}

		return true;
	}

};

jQuery.extend( jQuery.fx, {
	speeds:{
		slow: 600,
 		fast: 200,
 		// Default speed
 		def: 400
	},
	step: {
		scrollLeft: function(fx){
			fx.elem.scrollLeft = fx.now;
		},

		scrollTop: function(fx){
			fx.elem.scrollTop = fx.now;
		},

		opacity: function(fx){
			jQuery.attr(fx.elem.style, "opacity", fx.now);
		},

		_default: function(fx){
			fx.elem.style[ fx.prop ] = fx.now + fx.unit;
		}
	}
});
// The Offset Method
// Originally By Brandon Aaron, part of the Dimension Plugin
// http://jquery.com/plugins/project/dimensions
jQuery.fn.offset = function() {
	var left = 0, top = 0, elem = this[0], results;

	if ( elem ) with ( jQuery.browser ) {
		var parent       = elem.parentNode,
		    offsetChild  = elem,
		    offsetParent = elem.offsetParent,
		    doc          = elem.ownerDocument,
		    safari2      = safari && parseInt(version) < 522 && !/adobeair/i.test(userAgent),
		    css          = jQuery.curCSS,
		    fixed        = css(elem, "position") == "fixed";

		// Use getBoundingClientRect if available
		if ( elem.getBoundingClientRect ) {
			var box = elem.getBoundingClientRect();

			// Add the document scroll offsets
			add(box.left + Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft),
				box.top  + Math.max(doc.documentElement.scrollTop,  doc.body.scrollTop));

			// IE adds the HTML element's border, by default it is medium which is 2px
			// IE 6 and 7 quirks mode the border width is overwritable by the following css html { border: 0; }
			// IE 7 standards mode, the border is always 2px
			// This border/offset is typically represented by the clientLeft and clientTop properties
			// However, in IE6 and 7 quirks mode the clientLeft and clientTop properties are not updated when overwriting it via CSS
			// Therefore this method will be off by 2px in IE while in quirksmode
			add( -doc.documentElement.clientLeft, -doc.documentElement.clientTop );

		// Otherwise loop through the offsetParents and parentNodes
		} else {

			// Initial element offsets
			add( elem.offsetLeft, elem.offsetTop );

			// Get parent offsets
			while ( offsetParent ) {
				// Add offsetParent offsets
				add( offsetParent.offsetLeft, offsetParent.offsetTop );

				// Mozilla and Safari > 2 does not include the border on offset parents
				// However Mozilla adds the border for table or table cells
				if ( mozilla && !/^t(able|d|h)$/i.test(offsetParent.tagName) || safari && !safari2 )
					border( offsetParent );

				// Add the document scroll offsets if position is fixed on any offsetParent
				if ( !fixed && css(offsetParent, "position") == "fixed" )
					fixed = true;

				// Set offsetChild to previous offsetParent unless it is the body element
				offsetChild  = /^body$/i.test(offsetParent.tagName) ? offsetChild : offsetParent;
				// Get next offsetParent
				offsetParent = offsetParent.offsetParent;
			}

			// Get parent scroll offsets
			while ( parent && parent.tagName && !/^body|html$/i.test(parent.tagName) ) {
				// Remove parent scroll UNLESS that parent is inline or a table to work around Opera inline/table scrollLeft/Top bug
				if ( !/^inline|table.*$/i.test(css(parent, "display")) )
					// Subtract parent scroll offsets
					add( -parent.scrollLeft, -parent.scrollTop );

				// Mozilla does not add the border for a parent that has overflow != visible
				if ( mozilla && css(parent, "overflow") != "visible" )
					border( parent );

				// Get next parent
				parent = parent.parentNode;
			}

			// Safari <= 2 doubles body offsets with a fixed position element/offsetParent or absolutely positioned offsetChild
			// Mozilla doubles body offsets with a non-absolutely positioned offsetChild
			if ( (safari2 && (fixed || css(offsetChild, "position") == "absolute")) ||
				(mozilla && css(offsetChild, "position") != "absolute") )
					add( -doc.body.offsetLeft, -doc.body.offsetTop );

			// Add the document scroll offsets if position is fixed
			if ( fixed )
				add(Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft),
					Math.max(doc.documentElement.scrollTop,  doc.body.scrollTop));
		}

		// Return an object with top and left properties
		results = { top: top, left: left };
	}

	function border(elem) {
		add( jQuery.curCSS(elem, "borderLeftWidth", true), jQuery.curCSS(elem, "borderTopWidth", true) );
	}

	function add(l, t) {
		left += parseInt(l, 10) || 0;
		top += parseInt(t, 10) || 0;
	}

	return results;
};


jQuery.fn.extend({
	position: function() {
		var left = 0, top = 0, results;

		if ( this[0] ) {
			// Get *real* offsetParent
			var offsetParent = this.offsetParent(),

			// Get correct offsets
			offset       = this.offset(),
			parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { 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  -= num( this, 'marginTop' );
			offset.left -= num( this, 'marginLeft' );

			// Add offsetParent borders
			parentOffset.top  += num( offsetParent, 'borderTopWidth' );
			parentOffset.left += num( offsetParent, 'borderLeftWidth' );

			// Subtract the two offsets
			results = {
				top:  offset.top  - parentOffset.top,
				left: offset.left - parentOffset.left
			};
		}

		return results;
	},

	offsetParent: function() {
		var offsetParent = this[0].offsetParent;
		while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
			offsetParent = offsetParent.offsetParent;
		return jQuery(offsetParent);
	}
});


// Create scrollLeft and scrollTop methods
jQuery.each( ['Left', 'Top'], function(i, name) {
	var method = 'scroll' + name;
	
	jQuery.fn[ method ] = function(val) {
		if (!this[0]) return;

		return val != undefined ?

			// Set the scroll offset
			this.each(function() {
				this == window || this == document ?
					window.scrollTo(
						!i ? val : jQuery(window).scrollLeft(),
						 i ? val : jQuery(window).scrollTop()
					) :
					this[ method ] = val;
			}) :

			// Return the scroll offset
			this[0] == window || this[0] == document ?
				self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
					jQuery.boxModel && document.documentElement[ method ] ||
					document.body[ method ] :
				this[0][ method ];
	};
});
// Create innerHeight, innerWidth, outerHeight and outerWidth methods
jQuery.each([ "Height", "Width" ], function(i, name){

	var tl = i ? "Left"  : "Top",  // top or left
		br = i ? "Right" : "Bottom"; // bottom or right

	// innerHeight and innerWidth
	jQuery.fn["inner" + name] = function(){
		return this[ name.toLowerCase() ]() +
			num(this, "padding" + tl) +
			num(this, "padding" + br);
	};

	// outerHeight and outerWidth
	jQuery.fn["outer" + name] = function(margin) {
		return this["inner" + name]() +
			num(this, "border" + tl + "Width") +
			num(this, "border" + br + "Width") +
			(margin ?
				num(this, "margin" + tl) + num(this, "margin" + br) : 0);
	};

});})();


/*------------jquery/jquery-ui.pack.js----------*/

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(h(B){c H=B.fn.2i,D=B.1W.cF&&(9V(B.1W.3A)<1.9);B.k={3A:"1.52",2V:{22:h(K,J,N){c M=B.k[K].4J;1M(c L in N){M.7u[L]=M.7u[L]||[];M.7u[L].4n([J,N[L]])}},21:h(J,L,K){c N=J.7u[L];if(!N){q}1M(c M=0;M<N.1m;M++){if(J.l[N[M][0]]){N[M][1].1D(J.Z,K)}}}},6u:h(L,K){c J=B.1W.91&&B.1W.3A<jL;if(L.6u&&!J){q L.6u(K)}if(L.g6){q!!(L.g6(K)&16)}6t(K=K.4e){if(K==L){q 1j}}q 1a},ad:{},v:h(J){if(B.k.ad[J]){q B.k.ad[J]}c K=B(\'<1R 2D="k-jM">\').1l(J).v({1f:"2k",u:"-g7",t:"-g7",66:"7G"}).2O("1U");B.k.ad[J]=!!((!(/3K|2u/).1P(K.v("2q"))||(/^[1-9]/).1P(K.v("18"))||(/^[1-9]/).1P(K.v("19"))||!(/7m/).1P(K.v("dN"))||!(/7a|gC\\(0, 0, 0, 0\\)/).1P(K.v("8k"))));9H{B("1U").5M(0).9w(K.5M(0))}9O(L){}q B.k.ad[J]},av:h(L,J){if(B(L).v("3f")=="3h"){q 1a}c M=(J&&J=="t")?"23":"26",K=1a;if(L[M]>0){q 1j}L[M]=1;K=(L[M]>0);L[M]=0;q K},7Q:h(J,L,K){q(J>L)&&(J<(L+K))},6C:h(O,J,N,M,L,K){q B.k.7Q(O,N,L)&&B.k.7Q(J,M,K)},2W:{jN:8,jO:20,jK:jJ,jF:17,jG:46,bw:40,cP:35,gG:13,cA:27,cR:36,jH:45,bx:37,jI:dX,jP:jQ,jX:jY,jZ:jW,jV:jR,jS:jT,jU:34,jE:33,jD:jn,by:39,jo:16,gF:32,eQ:9,bz:38}};if(D){c E=B.1T,C=B.fn.5s,I="jp://jq.jm.jl/jh/ji/cj",F=/^4C-/,G=/^g8:/;B.1T=h(K,J,L){c M=L!==3G;q(J=="6e"?(M?E.21(b,K,J,"g8:"+L):(E.1D(b,1A)||"").4Z(G,"")):(F.1P(J)?(M?K.jj(I,J.4Z(F,"cj:"),L):E.21(b,K,J.4Z(F,"cj:"))):E.1D(b,1A)))};B.fn.5s=h(J){q(F.1P(J)?b.1J(h(){b.jk(I,J.4Z(F,""))}):C.21(b,J))}}B.fn.1Q({2i:h(){B("*",b).22(b).1J(h(){B(b).3Y("2i")});q H.1D(b,1A)},jr:h(){q b.1T("6n","js").v("g9","").3l("g5.k")},7C:h(){q b.1T("6n","g2").v("g9","7m").3b("g5.k",h(){q 1a})},1O:h(){c J;if((B.1W.43&&(/(5Z|1N)/).1P(b.v("1f")))||(/2k/).1P(b.v("1f"))){J=b.4U().3m(h(){q(/(1N|2k|5g)/).1P(B.6Y(b,"1f",1))&&(/(3K|6w)/).1P(B.6Y(b,"3f",1)+B.6Y(b,"3f-y",1)+B.6Y(b,"3f-x",1))}).eq(0)}1i{J=b.4U().3m(h(){q(/(3K|6w)/).1P(B.6Y(b,"3f",1)+B.6Y(b,"3f-y",1)+B.6Y(b,"3f-x",1))}).eq(0)}q(/5g/).1P(b.v("1f"))||!J.1m?B(1k):J}});B.1Q(B.jz[":"],{1p:h(K,L,J){q!!B.1p(K,J[3])},df:h(K,L,J){c N=K.3g.5R();h M(O){q!(B(O).is(":3h")||B(O).4U(":3h").1m)}q(K.6g>=0&&(("a"==N&&K.48)||(/1t|4R|aL|3S/.1P(N)&&"3h"!=K.5u&&!K.1I))&&M(K))}});h A(N,J,O,M){h L(Q){c P=B[N][J][Q]||[];q(2L P=="5b"?P.8Q(/,?\\s+/):P)}c K=L("9E");if(M.1m==1&&2L M[0]=="5b"){K=K.5r(L("g0"))}q(B.8i(O,K)!=-1)}B.1V=h(J,K){c L=J.8Q(".")[0];J=J.8Q(".")[1];B.fn[J]=h(P){c N=(2L P=="5b"),O=9k.4J.fw.21(1A,1);if(N&&P.jA(0,1)=="9l"){q b}if(N&&A(L,J,P,O)){c M=B.1p(b[0],J);q(M?M[P].1D(M,O):3G)}q b.1J(h(){c Q=B.1p(b,J);(!Q&&!N&&B.1p(b,J,2c B[L][J](b,P)));(Q&&N&&B.5z(Q[P])&&Q[P].1D(Q,O))})};B[L]=B[L]||{};B[L][J]=h(N,O){c M=b;b.d7=L;b.6P=J;b.dx=B[L][J].f7||J;b.dg=L+"-"+J;b.l=B.1Q({},B.1V.56,B[L][J].56,B.g4&&B.g4.5M(N)[J],O);b.Z=B(N).3b("d4."+J,h(Q,P,R){if(Q.1h==N){q M.4s(P,R)}}).3b("d5."+J,h(Q,P){if(Q.1h==N){q M.cr(P)}}).3b("2i",h(){q M.3x()});b.5H()};B[L][J].4J=B.1Q({},B.1V.4J,K);B[L][J].g0="7P"};B.1V.4J={5H:h(){},3x:h(){b.Z.4p(b.6P).1v(b.dg+"-1I "+b.d7+"-1K-1I").5s("4C-1I")},7P:h(L,M){c K=L,J=b;if(2L L=="5b"){if(M===3G){q b.cr(L)}K={};K[L]=M}B.1J(K,h(N,O){J.4s(N,O)})},cr:h(J){q b.l[J]},4s:h(J,K){b.l[J]=K;if(J=="1I"){b.Z[K?"1l":"1v"](b.dg+"-1I "+b.d7+"-1K-1I").1T("4C-1I",K)}},cD:h(){b.4s("1I",1a)},d2:h(){b.4s("1I",1j)},3u:h(K,L,M){c J=(K==b.dx?K:b.dx+K);L=L||B.1w.jy({5u:J,1h:b.Z[0]});q b.Z.3Y(J,[L,M],b.l[K])}};B.1V.56={1I:1a};B.k.7K={9x:h(){c J=b;b.Z.3b("af."+b.6P,h(K){q J.ga(K)}).3b("2l."+b.6P,h(K){if(J.cT){J.cT=1a;q 1a}});if(B.1W.43){b.g3=b.Z.1T("6n");b.Z.1T("6n","g2")}b.jt=1a},8s:h(){b.Z.3l("."+b.6P);(B.1W.43&&b.Z.1T("6n",b.g3))},ga:h(L){(b.6H&&b.95(L));b.bp=L;c J=b,M=(L.jw==1),K=(2L b.l.5X=="5b"?B(L.1h).4U().22(L.1h).3m(b.l.5X).1m:1a);if(!M||K||!b.8a(L)){q 1j}b.b0=!b.l.74;if(!b.b0){b.k0=7Z(h(){J.b0=1j},b.l.74)}if(b.cV(L)&&b.cE(L)){b.6H=(b.6L(L)!==1a);if(!b.6H){L.8h();q 1j}}b.cC=h(N){q J.gb(N)};b.cO=h(N){q J.95(N)};B(1k).3b("gi."+b.6P,b.cC).3b("d1."+b.6P,b.cO);if(!B.1W.91){L.8h()}q 1j},gb:h(J){if(B.1W.43&&!J.3S){q b.95(J)}if(b.6H){b.64(J);q J.8h()}if(b.cV(J)&&b.cE(J)){b.6H=(b.6L(b.bp,J)!==1a);(b.6H?b.64(J):b.95(J))}q!b.6H},95:h(J){B(1k).3l("gi."+b.6P,b.cC).3l("d1."+b.6P,b.cO);if(b.6H){b.6H=1a;b.cT=1j;b.6U(J)}q 1a},cV:h(J){q(1n.2z(1n.4j(b.bp.3R-J.3R),1n.4j(b.bp.3Q-J.3Q))>=b.l.5G)},cE:h(J){q b.b0},6L:h(J){},64:h(J){},6U:h(J){},8a:h(J){q 1j}};B.k.7K.56={5X:1e,5G:1,74:0}})(2o);(h(A){A.1V("k.2d",A.1Q({},A.k.7K,{5H:h(){if(b.l.1d=="8c"&&!(/^(?:r|a|f)/).1P(b.Z.v("1f"))){b.Z[0].31.1f="1N"}(b.l.92&&b.Z.1l(b.l.92+"-2d"));(b.l.1I&&b.Z.1l("k-2d-1I"));b.9x()},3x:h(){if(!b.Z.1p("2d")){q}b.Z.4p("2d").3l(".2d").1v("k-2d k-2d-7n k-2d-1I");b.8s()},8a:h(B){c C=b.l;if(b.1d||C.1I||A(B.1h).is(".k-1r-2y")){q 1a}b.2y=b.gk(B);if(!b.2y){q 1a}q 1j},6L:h(B){c C=b.l;b.1d=b.c6(B);b.99();if(A.k.2s){A.k.2s.5Q=b}b.bN();b.3W=b.1d.v("1f");b.1O=b.1d.1O();b.1b=b.Z.1b();b.1b={u:b.1b.u-b.2F.u,t:b.1b.t-b.2F.t};A.1Q(b.1b,{2l:{t:B.3R-b.1b.t,u:B.3Q-b.1b.u},1x:b.8b(),1N:b.9a()});if(C.ap){b.bQ(C.ap)}b.3k=b.97(B);if(C.1C){b.bS()}b.2v("2E",B);b.99();if(A.k.2s&&!C.9m){A.k.2s.90(b,B)}b.1d.1l("k-2d-7n");b.64(B,1j);q 1j},64:h(B,C){b.1f=b.97(B);b.3w=b.59("2k");if(!C){b.1f=b.2v("4z",B)||b.1f}if(!b.l.4u||b.l.4u!="y"){b.1d[0].31.t=b.1f.t+"3e"}if(!b.l.4u||b.l.4u!="x"){b.1d[0].31.u=b.1f.u+"3e"}if(A.k.2s){A.k.2s.4z(b,B)}q 1a},6U:h(C){c D=1a;if(A.k.2s&&!b.l.9m){c D=A.k.2s.6K(b,C)}if((b.l.67=="kw"&&!D)||(b.l.67=="kx"&&D)||b.l.67===1j||(A.5z(b.l.67)&&b.l.67.21(b.Z,D))){c B=b;A(b.1d).1Z(b.3k,1o(b.l.gh,10),h(){B.2v("3z",C);B.9r()})}1i{b.2v("3z",C);b.9r()}q 1a},gk:h(C){c B=!b.l.2y||!A(b.l.2y,b.Z).1m?1j:1a;A(b.l.2y,b.Z).3q("*").bu().1J(h(){if(b==C.1h){B=1j}});q B},c6:h(C){c D=b.l;c B=A.5z(D.1d)?A(D.1d.1D(b.Z[0],[C])):(D.1d=="7d"?b.Z.7d():b.Z);if(!B.4U("1U").1m){B.2O((D.2O=="1x"?b.Z[0].4e:D.2O))}if(B[0]!=b.Z[0]&&!(/(5g|2k)/).1P(B.v("1f"))){B.v("1f","2k")}q B},bQ:h(B){if(B.t!=3G){b.1b.2l.t=B.t+b.2F.t}if(B.2S!=3G){b.1b.2l.t=b.2w.19-B.2S+b.2F.t}if(B.u!=3G){b.1b.2l.u=B.u+b.2F.u}if(B.3d!=3G){b.1b.2l.u=b.2w.18-B.3d+b.2F.u}},8b:h(){b.3n=b.1d.3n();c B=b.3n.1b();if((b.3n[0]==1k.1U&&A.1W.cF)||(b.3n[0].5t&&b.3n[0].5t.5R()=="2Z"&&A.1W.43)){B={u:0,t:0}}q{u:B.u+(1o(b.3n.v("6h"),10)||0),t:B.t+(1o(b.3n.v("6i"),10)||0)}},9a:h(){if(b.3W=="1N"){c B=b.Z.1f();q{u:B.u-(1o(b.1d.v("u"),10)||0)+b.1O.26(),t:B.t-(1o(b.1d.v("t"),10)||0)+b.1O.23()}}1i{q{u:0,t:0}}},bN:h(){b.2F={t:(1o(b.Z.v("7z"),10)||0),u:(1o(b.Z.v("83"),10)||0)}},99:h(){b.2w={19:b.1d.3E(),18:b.1d.3r()}},bS:h(){c E=b.l;if(E.1C=="1x"){E.1C=b.1d[0].4e}if(E.1C=="1k"||E.1C=="30"){b.1C=[0-b.1b.1N.t-b.1b.1x.t,0-b.1b.1N.u-b.1b.1x.u,A(E.1C=="1k"?1k:30).19()-b.1b.1N.t-b.1b.1x.t-b.2w.19-b.2F.t-(1o(b.Z.v("9j"),10)||0),(A(E.1C=="1k"?1k:30).18()||1k.1U.4e.72)-b.1b.1N.u-b.1b.1x.u-b.2w.18-b.2F.u-(1o(b.Z.v("8U"),10)||0)]}if(!(/^(1k|30|1x)$/).1P(E.1C)){c C=A(E.1C)[0];c D=A(E.1C).1b();c B=(A(C).v("3f")!="3h");b.1C=[D.t+(1o(A(C).v("6i"),10)||0)-b.1b.1N.t-b.1b.1x.t-b.2F.t,D.u+(1o(A(C).v("6h"),10)||0)-b.1b.1N.u-b.1b.1x.u-b.2F.u,D.t+(B?1n.2z(C.aD,C.5J):C.5J)-(1o(A(C).v("6i"),10)||0)-b.1b.1N.t-b.1b.1x.t-b.2w.19-b.2F.t,D.u+(B?1n.2z(C.72,C.5f):C.5f)-(1o(A(C).v("6h"),10)||0)-b.1b.1N.u-b.1b.1x.u-b.2w.18-b.2F.u]}},59:h(D,F){if(!F){F=b.1f}c B=D=="2k"?1:-1;c C=b[(b.3W=="2k"?"1b":"6w")+"bT"],E=(/(2Z|1U)/i).1P(C[0].5t);q{u:(F.u+b.1b.1N.u*B+b.1b.1x.u*B+(b.3W=="5g"?-b.1O.26():(E?0:C.26()))*B+b.2F.u*B),t:(F.t+b.1b.1N.t*B+b.1b.1x.t*B+(b.3W=="5g"?-b.1O.23():(E?0:C.23()))*B+b.2F.t*B)}},97:h(C){c G=b.l,D=b[(b.3W=="2k"?"1b":"6w")+"bT"],H=(/(2Z|1U)/i).1P(D[0].5t);c B={u:(C.3Q-b.1b.2l.u-b.1b.1N.u-b.1b.1x.u+(b.3W=="5g"?-b.1O.26():(H?0:D.26()))),t:(C.3R-b.1b.2l.t-b.1b.1N.t-b.1b.1x.t+(b.3W=="5g"?-b.1O.23():H?0:D.23()))};if(!b.3k){q B}if(b.1C){if(B.t<b.1C[0]){B.t=b.1C[0]}if(B.u<b.1C[1]){B.u=b.1C[1]}if(B.t>b.1C[2]){B.t=b.1C[2]}if(B.u>b.1C[3]){B.u=b.1C[3]}}if(G.2N){c F=b.3k.u+1n.79((B.u-b.3k.u)/G.2N[1])*G.2N[1];B.u=b.1C?(!(F<b.1C[1]||F>b.1C[3])?F:(!(F<b.1C[1])?F-G.2N[1]:F+G.2N[1])):F;c E=b.3k.t+1n.79((B.t-b.3k.t)/G.2N[0])*G.2N[0];B.t=b.1C?(!(E<b.1C[0]||E>b.1C[2])?E:(!(E<b.1C[0])?E-G.2N[0]:E+G.2N[0])):E}q B},9r:h(){b.1d.1v("k-2d-7n");if(b.1d[0]!=b.Z[0]&&!b.8m){b.1d.2i()}b.1d=1e;b.8m=1a},2v:h(C,B){A.k.2V.21(b,C,[B,b.aK()]);if(C=="4z"){b.3w=b.59("2k")}q b.Z.3Y(C=="4z"?C:"4z"+C,[B,b.aK()],b.l[C])},7u:{},aK:h(B){q{1d:b.1d,1f:b.1f,ah:b.3w,l:b.l}}}));A.1Q(A.k.2d,{3A:"1.52",56:{2O:"1x",4u:1a,5X:":1t",d8:1a,1C:1a,92:"k",2q:"2u",ap:1e,74:0,5G:1,2N:1a,2y:1a,1d:"8c",9o:1a,24:1,9t:1a,67:1a,gh:aV,6x:"2u",6w:1j,4i:20,4f:20,5U:1a,cm:"7v",gc:20,6D:1a,2K:1e}});A.k.2V.22("2d","d8",{2E:h(B,D){c C=A(b).1p("2d");C.aM=[];A(D.l.d8).1J(h(){A(b+"").1J(h(){if(A.1p(b,"2m")){c E=A.1p(b,"2m");C.aM.4n({1Y:E,gg:E.l.67});E.bq();E.2v("9d",B,C)}})})},3z:h(B,D){c C=A(b).1p("2d");A.1J(C.aM,h(){if(b.1Y.6C){b.1Y.6C=0;C.8m=1j;b.1Y.8m=1a;if(b.gg){b.1Y.l.67=1j}b.1Y.6U(B);b.1Y.Z.3Y("ku",[B,A.1Q(b.1Y.9v(),{gv:C.Z})],b.1Y.l.gI);b.1Y.l.1d=b.1Y.l.dh;if(C.l.1d=="8c"){b.1Y.1B.v({u:"3K",t:"3K"})}}1i{b.1Y.8m=1a;b.1Y.2v("9e",B,C)}})},4z:h(C,F){c E=A(b).1p("2d"),B=b;c D=h(I){c O=b.1b.2l.u,M=b.1b.2l.t;c G=b.3w.u,K=b.3w.t;c J=I.18,L=I.19;c N=I.u,H=I.t;q A.k.6C(G+O,K+M,N,H,J,L)};A.1J(E.aM,h(G){if(D.21(E,b.1Y.4N)){if(!b.1Y.6C){b.1Y.6C=1;b.1Y.1B=A(B).7d().2O(b.1Y.Z).1p("2m-2B",1j);b.1Y.l.dh=b.1Y.l.1d;b.1Y.l.1d=h(){q F.1d[0]};C.1h=b.1Y.1B[0];b.1Y.8a(C,1j);b.1Y.6L(C,1j,1j);b.1Y.1b.2l.u=E.1b.2l.u;b.1Y.1b.2l.t=E.1b.2l.t;b.1Y.1b.1x.t-=E.1b.1x.t-b.1Y.1b.1x.t;b.1Y.1b.1x.u-=E.1b.1x.u-b.1Y.1b.1x.u;E.2v("kt",C)}if(b.1Y.1B){b.1Y.64(C)}}1i{if(b.1Y.6C){b.1Y.6C=0;b.1Y.8m=1j;b.1Y.l.67=1a;b.1Y.6U(C,1j);b.1Y.l.1d=b.1Y.l.dh;b.1Y.1B.2i();if(b.1Y.3c){b.1Y.3c.2i()}E.2v("kp",C)}}})}});A.k.2V.22("2d","2q",{2E:h(C,D){c B=A("1U");if(B.v("2q")){D.l.9b=B.v("2q")}B.v("2q",D.l.2q)},3z:h(B,C){if(C.l.9b){A("1U").v("2q",C.l.9b)}}});A.k.2V.22("2d","9o",{2E:h(B,C){A(C.l.9o===1j?"aJ":C.l.9o).1J(h(){A(\'<1R 2D="k-2d-9o" 31="bX: #kq;"></1R>\').v({19:b.5J+"3e",18:b.5f+"3e",1f:"2k",24:"0.kr",2K:a3}).v(A(b).1b()).2O("1U")})},3z:h(B,C){A("1R.k-2d-9o").1J(h(){b.4e.9w(b)})}});A.k.2V.22("2d","24",{2E:h(C,D){c B=A(D.1d);if(B.v("24")){D.l.93=B.v("24")}B.v("24",D.l.24)},3z:h(B,C){if(C.l.93){A(C.1d).v("24",C.l.93)}}});A.k.2V.22("2d","6w",{2E:h(C,D){c E=D.l;c B=A(b).1p("2d");if(B.1O[0]!=1k&&B.1O[0].5t!="bD"){B.6k=B.1O.1b()}},4z:h(D,E){c F=E.l,C=1a;c B=A(b).1p("2d");if(B.1O[0]!=1k&&B.1O[0].5t!="bD"){if((B.6k.u+B.1O[0].5f)-D.3Q<F.4i){B.1O[0].26=C=B.1O[0].26+F.4f}1i{if(D.3Q-B.6k.u<F.4i){B.1O[0].26=C=B.1O[0].26-F.4f}}if((B.6k.t+B.1O[0].5J)-D.3R<F.4i){B.1O[0].23=C=B.1O[0].23+F.4f}1i{if(D.3R-B.6k.t<F.4i){B.1O[0].23=C=B.1O[0].23-F.4f}}}1i{if(D.3Q-A(1k).26()<F.4i){C=A(1k).26(A(1k).26()-F.4f)}1i{if(A(30).18()-(D.3Q-A(1k).26())<F.4i){C=A(1k).26(A(1k).26()+F.4f)}}if(D.3R-A(1k).23()<F.4i){C=A(1k).23(A(1k).23()-F.4f)}1i{if(A(30).19()-(D.3R-A(1k).23())<F.4i){C=A(1k).23(A(1k).23()+F.4f)}}}if(C!==1a&&A.k.2s&&!F.9m){A.k.2s.90(B,D)}if(C!==1a&&B.3W=="2k"&&B.1O[0]!=1k&&A.k.6u(B.1O[0],B.3n[0])){B.1b.1x=B.8b()}if(C!==1a&&B.3W=="1N"&&!(B.1O[0]!=1k&&B.1O[0]!=B.3n[0])){B.1b.1N=B.9a()}}});A.k.2V.22("2d","5U",{2E:h(B,D){c C=A(b).1p("2d");C.5j=[];A(D.l.5U.4V!=a9?(D.l.5U.2J||":1p(2d)"):D.l.5U).1J(h(){c F=A(b);c E=F.1b();if(b!=C.Z[0]){C.5j.4n({2B:b,19:F.3E(),18:F.3r(),u:E.u,t:E.t})}})},4z:h(M,K){c E=A(b).1p("2d");c Q=K.l.gc;c P=K.ah.t,O=P+E.2w.19,D=K.ah.u,C=D+E.2w.18;1M(c N=E.5j.1m-1;N>=0;N--){c L=E.5j[N].t,J=L+E.5j[N].19,I=E.5j[N].u,R=I+E.5j[N].18;if(!((L-Q<P&&P<J+Q&&I-Q<D&&D<R+Q)||(L-Q<P&&P<J+Q&&I-Q<C&&C<R+Q)||(L-Q<O&&O<J+Q&&I-Q<D&&D<R+Q)||(L-Q<O&&O<J+Q&&I-Q<C&&C<R+Q))){if(E.5j[N].bJ){(E.l.5U.gd&&E.l.5U.gd.21(E.Z,M,A.1Q(E.aK(),{ge:E.5j[N].2B})))}E.5j[N].bJ=1a;6B}if(K.l.cm!="kz"){c B=1n.4j(I-C)<=Q;c S=1n.4j(R-D)<=Q;c G=1n.4j(L-O)<=Q;c H=1n.4j(J-P)<=Q;if(B){K.1f.u=E.59("1N",{u:I-E.2w.18,t:0}).u}if(S){K.1f.u=E.59("1N",{u:R,t:0}).u}if(G){K.1f.t=E.59("1N",{u:0,t:L-E.2w.19}).t}if(H){K.1f.t=E.59("1N",{u:0,t:J}).t}}c F=(B||S||G||H);if(K.l.cm!="kA"){c B=1n.4j(I-D)<=Q;c S=1n.4j(R-C)<=Q;c G=1n.4j(L-P)<=Q;c H=1n.4j(J-O)<=Q;if(B){K.1f.u=E.59("1N",{u:I,t:0}).u}if(S){K.1f.u=E.59("1N",{u:R-E.2w.18,t:0}).u}if(G){K.1f.t=E.59("1N",{u:0,t:L}).t}if(H){K.1f.t=E.59("1N",{u:0,t:J-E.2w.19}).t}}if(!E.5j[N].bJ&&(B||S||G||H||F)){(E.l.5U.5U&&E.l.5U.5U.21(E.Z,M,A.1Q(E.aK(),{ge:E.5j[N].2B})))}E.5j[N].bJ=(B||S||G||H||F)}}});A.k.2V.22("2d","6D",{2E:h(B,C){c D=A.fu(A(C.l.6D.76)).7c(h(F,E){q(1o(A(F).v("2K"),10)||C.l.6D.3L)-(1o(A(E).v("2K"),10)||C.l.6D.3L)});A(D).1J(h(E){b.31.2K=C.l.6D.3L+E});b[0].31.2K=C.l.6D.3L+D.1m}});A.k.2V.22("2d","2K",{2E:h(C,D){c B=A(D.1d);if(B.v("2K")){D.l.7W=B.v("2K")}B.v("2K",D.l.2K)},3z:h(B,C){if(C.l.7W){A(C.1d).v("2K",C.l.7W)}}})})(2o);(h(A){A.1V("k.5h",{5H:h(){c C=b.l,B=C.4W;b.68=0;b.78=1;b.l.4W=b.l.4W&&A.5z(b.l.4W)?b.l.4W:h(D){q D.is(B)};b.81={19:b.Z[0].5J,18:b.Z[0].5f};A.k.2s.7r[b.l.6x]=A.k.2s.7r[b.l.6x]||[];A.k.2s.7r[b.l.6x].4n(b);(b.l.92&&b.Z.1l(b.l.92+"-5h"))},3x:h(){c B=A.k.2s.7r[b.l.6x];1M(c C=0;C<B.1m;C++){if(B[C]==b){B.c3(C,1)}}b.Z.1v("k-5h-1I").4p("5h").3l(".5h")},4s:h(B,C){if(B=="4W"){b.l.4W=C&&A.5z(C)?C:h(D){q D.is(4W)}}1i{A.1V.4J.4s.1D(b,1A)}},fY:h(B){c C=A.k.2s.5Q;A.k.2V.21(b,"9d",[B,b.k(C)]);if(C){b.Z.3Y("kI",[B,b.k(C)],b.l.9d)}},fK:h(B){c C=A.k.2s.5Q;A.k.2V.21(b,"9e",[B,b.k(C)]);if(C){b.Z.3Y("kJ",[B,b.k(C)],b.l.9e)}},cd:h(B){c C=A.k.2s.5Q;if(!C||(C.1B||C.Z)[0]==b.Z[0]){q}if(b.l.4W.21(b.Z,(C.1B||C.Z))){A.k.2V.21(b,"5n",[B,b.k(C)]);b.Z.3Y("kG",[B,b.k(C)],b.l.5n)}},ce:h(B){c C=A.k.2s.5Q;if(!C||(C.1B||C.Z)[0]==b.Z[0]){q}if(b.l.4W.21(b.Z,(C.1B||C.Z))){A.k.2V.21(b,"9c",[B,b.k(C)]);b.Z.3Y("kF",[B,b.k(C)],b.l.9c)}},fJ:h(C,B){c D=B||A.k.2s.5Q;if(!D||(D.1B||D.Z)[0]==b.Z[0]){q 1a}c E=1a;b.Z.3q(":1p(5h)").7g(".k-2d-7n").1J(h(){c F=A.1p(b,"5h");if(F.l.cf&&A.k.9s(D,A.1Q(F,{1b:F.Z.1b()}),F.l.5Y)){E=1j;q 1a}});if(E){q 1a}if(b.l.4W.21(b.Z,(D.1B||D.Z))){A.k.2V.21(b,"6K",[C,b.k(D)]);b.Z.3Y("6K",[C,b.k(D)],b.l.6K);q b.Z}q 1a},7u:{},k:h(B){q{2d:(B.1B||B.Z),1d:B.1d,1f:B.1f,ah:B.3w,l:b.l,Z:b.Z}}});A.1Q(A.k.5h,{3A:"1.52",56:{4W:"*",an:1e,92:"k",cf:1a,ae:1e,6x:"2u",5Y:"9s"}});A.k.9s=h(L,E,M){if(!E.1b){q 1a}c D=(L.3w||L.1f.2k).t,C=D+L.2w.19,N=(L.3w||L.1f.2k).u,K=N+L.2w.18;c F=E.1b.t,B=F+E.81.19,O=E.1b.u,J=O+E.81.18;4x(M){1s"gm":q(F<D&&C<B&&O<N&&K<J);1y;1s"9s":q(F<D+(L.2w.19/2)&&C-(L.2w.19/2)<B&&O<N+(L.2w.18/2)&&K-(L.2w.18/2)<J);1y;1s"bj":c G=((L.3w||L.1f.2k).t+(L.gf||L.1b.2l).t),H=((L.3w||L.1f.2k).u+(L.gf||L.1b.2l).u),I=A.k.6C(H,G,O,F,E.81.18,E.81.19);q I;1y;1s"cS":q((N>=O&&N<=J)||(K>=O&&K<=J)||(N<O&&K>J))&&((D>=F&&D<=B)||(C>=F&&C<=B)||(D<F&&C>B));1y;2u:q 1a;1y}};A.k.2s={5Q:1e,7r:{"2u":[]},90:h(E,G){c B=A.k.2s.7r[E.l.6x];c F=G?G.5u:1e;c H=(E.1B||E.Z).3q(":1p(5h)").bu();fZ:1M(c D=0;D<B.1m;D++){if(B[D].l.1I||(E&&!B[D].l.4W.21(B[D].Z,(E.1B||E.Z)))){6B}1M(c C=0;C<H.1m;C++){if(H[C]==B[D].Z[0]){B[D].81.18=0;6B fZ}}B[D].5L=B[D].Z.v("66")!="7m";if(!B[D].5L){6B}B[D].1b=B[D].Z.1b();B[D].81={19:B[D].Z[0].5J,18:B[D].Z[0].5f};if(F=="kD"||F=="kE"){B[D].fY.21(B[D],G)}}},6K:h(C,B){c D=1a;A.1J(A.k.2s.7r[C.l.6x],h(){if(!b.l){q}if(!b.l.1I&&b.5L&&A.k.9s(C,b,b.l.5Y)){D=b.fJ.21(b,B)}if(!b.l.1I&&b.5L&&b.l.4W.21(b.Z,(C.1B||C.Z))){b.78=1;b.68=0;b.fK.21(b,B)}});q D},4z:h(C,B){if(C.l.9t){A.k.2s.90(C,B)}A.1J(A.k.2s.7r[C.l.6x],h(){if(b.l.1I||b.fL||!b.5L){q}c D=A.k.9s(C,b,b.l.5Y);c G=!D&&b.68==1?"78":(D&&b.68==0?"68":1e);if(!G){q}c F;if(b.l.cf){c E=b.Z.4U(":1p(5h):eq(0)");if(E.1m){F=A.1p(E[0],"5h");F.fL=(G=="68"?1:0)}}if(F&&G=="68"){F.68=0;F.78=1;F.ce.21(F,B)}b[G]=1;b[G=="78"?"68":"78"]=0;b[G=="68"?"cd":"ce"].21(b,B);if(F&&G=="78"){F.78=0;F.68=1;F.cd.21(F,B)}})}};A.k.2V.22("5h","an",{9d:h(B,C){A(b).1l(C.l.an)},9e:h(B,C){A(b).1v(C.l.an)},6K:h(B,C){A(b).1v(C.l.an)}});A.k.2V.22("5h","ae",{5n:h(B,C){A(b).1l(C.l.ae)},9c:h(B,C){A(b).1v(C.l.ae)},6K:h(B,C){A(b).1v(C.l.ae)}})})(2o);(h(A){A.1V("k.1r",A.1Q({},A.k.7K,{5H:h(){c L=b,M=b.l;c P=b.Z.v("1f");b.cw=b.Z;b.Z.1l("k-1r").v({1f:/5Z/.1P(P)?"1N":P});A.1Q(M,{al:!!(M.62),1d:M.1d||M.58||M.1Z?M.1d||"k-1r-1d":1e,6M:M.6M===1j?"k-1r-ax-2y":M.6M});c H="bI fE #k8";M.fG={"k-1r":{66:"7G"},"k-1r-2y":{1f:"2k",bX:"#fD",fI:"0.bI"},"k-1r-n":{2q:"n-2j",18:"5N",t:"3t",2S:"3t",cl:H},"k-1r-s":{2q:"s-2j",18:"5N",t:"3t",2S:"3t",cq:H},"k-1r-e":{2q:"e-2j",19:"5N",u:"3t",3d:"3t",ci:H},"k-1r-w":{2q:"w-2j",19:"5N",u:"3t",3d:"3t",c9:H},"k-1r-4c":{2q:"4c-2j",19:"5N",18:"5N",ci:H,cq:H},"k-1r-4t":{2q:"4t-2j",19:"5N",18:"5N",cq:H,c9:H},"k-1r-ne":{2q:"ne-2j",19:"5N",18:"5N",ci:H,cl:H},"k-1r-4q":{2q:"4q-2j",19:"5N",18:"5N",c9:H,cl:H}};M.de={"k-1r-2y":{bX:"#fD",ed:"bI fE #ka",18:"fF",19:"fF"},"k-1r-n":{2q:"n-2j",u:"3t",t:"45%"},"k-1r-s":{2q:"s-2j",3d:"3t",t:"45%"},"k-1r-e":{2q:"e-2j",2S:"3t",u:"45%"},"k-1r-w":{2q:"w-2j",t:"3t",u:"45%"},"k-1r-4c":{2q:"4c-2j",2S:"3t",3d:"3t"},"k-1r-4t":{2q:"4t-2j",t:"3t",3d:"3t"},"k-1r-4q":{2q:"4q-2j",t:"3t",u:"3t"},"k-1r-ne":{2q:"ne-2j",2S:"3t",u:"3t"}};M.dl=b.Z[0].3g;if(M.dl.3D(/kb|aL|1t|4R|3S|8J/i)){c C=b.Z;if(/1N/.1P(C.v("1f"))&&A.1W.6s){C.v({1f:"1N",u:"3K",t:"3K"})}C.a8(A(\'<1R 2D="k-dA"	31="3f: 3h;"></1R>\').v({1f:C.v("1f"),19:C.3E(),18:C.3r(),u:C.v("u"),t:C.v("t")}));c J=b.Z;b.Z=b.Z.1x();b.Z.1p("1r",b);b.Z.v({7z:J.v("7z"),83:J.v("83"),9j:J.v("9j"),8U:J.v("8U")});J.v({7z:0,83:0,9j:0,8U:0});if(A.1W.91&&M.8h){J.v("2j","7m")}M.69=J.v({1f:"5Z",fC:1,66:"7G"});b.Z.v({5m:J.v("5m")});b.9K()}if(!M.2Q){M.2Q=!A(".k-1r-2y",b.Z).1m?"e,s,4c":{n:".k-1r-n",e:".k-1r-e",s:".k-1r-s",w:".k-1r-w",4c:".k-1r-4c",4t:".k-1r-4t",ne:".k-1r-ne",4q:".k-1r-4q"}}if(M.2Q.4V==a9){M.2K=M.2K||a3;if(M.2Q=="2Y"){M.2Q="n,e,s,w,4c,4t,ne,4q"}c O=M.2Q.8Q(",");M.2Q={};c I={2y:"1f: 2k; 66: 7m; 3f:3h;",n:"u: 7i; 19:3a%;",e:"2S: 7i; 18:3a%;",s:"3d: 7i; 19:3a%;",w:"t: 7i; 18:3a%;",4c:"3d: 7i; 2S: 3t;",4t:"3d: 7i; t: 3t;",ne:"u: 7i; 2S: 3t;",4q:"u: 7i; t: 3t;"};1M(c Q=0;Q<O.1m;Q++){c N=A.gB(O[Q]),K=M.fG,G="k-1r-"+N,E=!A.k.v(G)&&!M.6M,R=A.k.v("k-1r-ax-2y"),S=A.1Q(K[G],K["k-1r-2y"]),D=A.1Q(M.de[G],!R?M.de["k-1r-2y"]:{});c T=/4t|4c|ne|4q/.1P(N)?{2K:++M.2K}:{};c B=(E?I[N]:""),F=A([\'<1R 2D="k-1r-2y \',G,\'" 31="\',B,I.2y,\'"></1R>\'].5F("")).v(T);M.2Q[N]=".k-1r-"+N;b.Z.6N(F.v(E?S:{}).v(M.6M?D:{}).1l(M.6M?"k-1r-ax-2y":"").1l(M.6M))}if(M.6M){b.Z.1l("k-1r-ax").v(!A.k.v("k-1r-ax")?{}:{})}}b.fO=h(Y){Y=Y||b.Z;1M(c U in M.2Q){if(M.2Q[U].4V==a9){M.2Q[U]=A(M.2Q[U],b.Z).1G()}if(M.7a){M.2Q[U].v({24:0})}if(b.Z.is(".k-dA")&&M.dl.3D(/aL|1t|4R|3S/i)){c W=A(M.2Q[U],b.Z),X=0;X=/4t|ne|4q|4c|n|s/.1P(U)?W.3r():W.3E();c V=["eb",/ne|4q|n/.1P(U)?"k4":/4c|4t|s/.1P(U)?"k5":/^e$/.1P(U)?"kc":"kd"].5F("");if(!M.7a){Y.v(V,X)}b.9K()}if(!A(M.2Q[U]).1m){6B}}};b.fO(b.Z);M.8D=A(".k-1r-2y",L.Z);if(M.7C){M.8D.7C()}M.8D.ch(h(){if(!M.b6){if(b.8w){c U=b.8w.3D(/k-1r-(4c|4t|ne|4q|n|e|s|w)/i)}L.4u=M.4u=U&&U[1]?U[1]:"4c"}});if(M.fP){M.8D.1L();A(L.Z).1l("k-1r-dy").4l(h(){A(b).1v("k-1r-dy");M.8D.1G()},h(){if(!M.b6){A(b).1l("k-1r-dy");M.8D.1L()}})}b.9x()},3x:h(){c C=b.Z,B=C.6W(".k-1r").5M(0);b.8s();c D=h(E){A(E).1v("k-1r k-1r-1I").4p("1r").3l(".1r").3q(".k-1r-2y").2i()};D(C);if(C.is(".k-dA")&&B){C.1x().6N(A(B).v({1f:C.v("1f"),19:C.3E(),18:C.3r(),u:C.v("u"),t:C.v("t")})).4H().2i();D(B)}},8a:h(D){if(b.l.1I){q 1a}c B=1a;1M(c C in b.l.2Q){if(A(b.l.2Q[C])[0]==D.1h){B=1j}}if(!B){q 1a}q 1j},6L:h(B){c D=b.l,I=b.Z.1f(),C=b.Z,G=h(N){q 1o(N,10)||0},F=A.1W.43&&A.1W.3A<7;D.b6=1j;D.dC={u:A(1k).26(),t:A(1k).23()};if(C.is(".k-2d")||(/2k/).1P(C.v("1f"))){c L=A.1W.43&&!D.1C&&(/2k/).1P(C.v("1f"))&&!(/1N/).1P(C.1x().v("1f"));c K=L?D.dC.u:0,E=L?D.dC.t:0;C.v({1f:"2k",u:(I.u+K),t:(I.t+E)})}if(A.1W.6s&&(/1N/).1P(C.v("1f"))){C.v({1f:"1N",u:"3K",t:"3K"})}b.fT();c M=G(b.1d.v("t")),H=G(b.1d.v("u"));if(D.1C){M+=A(D.1C).23()||0;H+=A(D.1C).26()||0}b.1b=b.1d.1b();b.1f={t:M,u:H};b.1E=D.1d||F?{19:C.3E(),18:C.3r()}:{19:C.19(),18:C.18()};b.5K=D.1d||F?{19:C.3E(),18:C.3r()}:{19:C.19(),18:C.18()};b.3k={t:M,u:H};b.6f={19:C.3E()-C.19(),18:C.3r()-C.18()};b.fW={t:B.3R,u:B.3Q};D.62=(2L D.62=="8v")?D.62:((b.5K.19/b.5K.18)||1);if(D.cx){c J=A(".k-1r-"+b.4u).v("2q");A("1U").v("2q",J=="3K"?b.4u+"-2j":J)}b.2v("2E",B);q 1j},64:h(B){c D=b.1d,E=b.l,J={},M=b,F=b.fW,K=b.4u;c N=(B.3R-F.t)||0,L=(B.3Q-F.u)||0;c I=b.4M[K];if(!I){q 1a}c H=I.1D(b,[B,N,L]),G=A.1W.43&&A.1W.3A<7,C=b.6f;if(E.al||B.9q){H=b.fX(H,B)}H=b.fU(H,B);b.2v("2j",B);D.v({u:b.1f.u+"3e",t:b.1f.t+"3e",19:b.1E.19+"3e",18:b.1E.18+"3e"});if(!E.1d&&E.69){b.9K()}b.cW(H);b.Z.3Y("2j",[B,b.k()],b.l.2j);q 1a},6U:h(D){b.l.b6=1a;c F=b.l,I=h(M){q 1o(M,10)||0},K=b;if(F.1d){c E=F.69,C=E&&(/aL/i).1P(E.5M(0).3g),B=C&&A.k.av(E.5M(0),"t")?0:K.6f.18,H=C?0:K.6f.19;c L={19:(K.1E.19-H),18:(K.1E.18-B)},G=(1o(K.Z.v("t"),10)+(K.1f.t-K.3k.t))||1e,J=(1o(K.Z.v("u"),10)+(K.1f.u-K.3k.u))||1e;if(!F.1Z){b.Z.v(A.1Q(L,{u:J,t:G}))}if(F.1d&&!F.1Z){b.9K()}}if(F.cx){A("1U").v("2q","3K")}b.2v("3z",D);if(F.1d){b.1d.2i()}q 1a},cW:h(B){c C=b.l;b.1b=b.1d.1b();if(B.t){b.1f.t=B.t}if(B.u){b.1f.u=B.u}if(B.18){b.1E.18=B.18}if(B.19){b.1E.19=B.19}},fX:h(E,D){c F=b.l,G=b.1f,C=b.1E,B=b.4u;if(E.18){E.19=(C.18*F.62)}1i{if(E.19){E.18=(C.19/F.62)}}if(B=="4t"){E.t=G.t+(C.19-E.19);E.u=1e}if(B=="4q"){E.u=G.u+(C.18-E.18);E.t=G.t+(C.19-E.19)}q E},fU:h(I,D){c F=b.1d,G=b.l,P=G.al||D.9q,M=b.4u,N=I.19&&G.6y&&G.6y<I.19,E=I.18&&G.6A&&G.6A<I.18,J=I.19&&G.6q&&G.6q>I.19,O=I.18&&G.5v&&G.5v>I.18;if(J){I.19=G.6q}if(O){I.18=G.5v}if(N){I.19=G.6y}if(E){I.18=G.6A}c C=b.3k.t+b.5K.19,L=b.1f.u+b.1E.18;c H=/4t|4q|w/.1P(M),B=/4q|ne|n/.1P(M);if(J&&H){I.t=C-G.6q}if(N&&H){I.t=C-G.6y}if(O&&B){I.u=L-G.5v}if(E&&B){I.u=L-G.6A}c K=!I.19&&!I.18;if(K&&!I.t&&I.u){I.u=1e}1i{if(K&&!I.u&&I.t){I.t=1e}}q I},9K:h(){c F=b.l;if(!F.69){q}c D=F.69,C=b.1d||b.Z;if(!F.8P){c B=[D.v("6h"),D.v("b1"),D.v("bO"),D.v("6i")],E=[D.v("dR"),D.v("dQ"),D.v("dO"),D.v("dP")];F.8P=A.7k(B,h(G,I){c H=1o(G,10)||0,J=1o(E[I],10)||0;q H+J})}D.v({18:(C.18()-F.8P[0]-F.8P[2])+"3e",19:(C.19()-F.8P[1]-F.8P[3])+"3e"})},fT:h(){c C=b.Z,E=b.l;b.8Y=C.1b();if(E.1d){b.1d=b.1d||A(\'<1R 31="3f:3h;"></1R>\');c B=A.1W.43&&A.1W.3A<7,F=(B?1:0),D=(B?2:-1);b.1d.1l(E.1d).v({19:C.3E()+D,18:C.3r()+D,1f:"2k",t:b.8Y.t-F+"3e",u:b.8Y.u-F+"3e",2K:++E.2K});b.1d.2O("1U");if(E.7C){b.1d.7C()}}1i{b.1d=C}},4M:{e:h(D,C,B){q{19:b.5K.19+C}},w:h(E,C,B){c G=b.l,D=b.5K,F=b.3k;q{t:F.t+C,19:D.19-C}},n:h(E,C,B){c G=b.l,D=b.5K,F=b.3k;q{u:F.u+B,18:D.18-B}},s:h(D,C,B){q{18:b.5K.18+B}},4c:h(D,C,B){q A.1Q(b.4M.s.1D(b,1A),b.4M.e.1D(b,[D,C,B]))},4t:h(D,C,B){q A.1Q(b.4M.s.1D(b,1A),b.4M.w.1D(b,[D,C,B]))},ne:h(D,C,B){q A.1Q(b.4M.n.1D(b,1A),b.4M.e.1D(b,[D,C,B]))},4q:h(D,C,B){q A.1Q(b.4M.n.1D(b,1A),b.4M.w.1D(b,[D,C,B]))}},2v:h(C,B){A.k.2V.21(b,C,[B,b.k()]);if(C!="2j"){b.Z.3Y(["2j",C].5F(""),[B,b.k()],b.l[C])}},7u:{},k:h(){q{cw:b.cw,Z:b.Z,1d:b.1d,1f:b.1f,1E:b.1E,l:b.l,5K:b.5K,3k:b.3k}}}));A.1Q(A.k.1r,{3A:"1.52",56:{4I:1a,1Z:1a,fR:"aZ",fS:"9L",62:1a,fP:1a,5X:":1t",1C:1a,74:0,7C:1j,5G:1,58:1a,2N:1a,6M:1a,6A:1e,6y:1e,5v:10,6q:10,cx:1j,8h:1j,69:1a,7a:1a}});A.k.2V.22("1r","4I",{2E:h(C,D){c E=D.l,B=A(b).1p("1r"),F=h(G){A(G).1J(h(){A(b).1p("1r-cz",{19:1o(A(b).19(),10),18:1o(A(b).18(),10),t:1o(A(b).v("t"),10),u:1o(A(b).v("u"),10)})})};if(2L(E.4I)=="6J"&&!E.4I.4e){if(E.4I.1m){E.4I=E.4I[0];F(E.4I)}1i{A.1J(E.4I,h(G,H){F(G)})}}1i{F(E.4I)}},2j:h(C,F){c G=F.l,B=A(b).1p("1r"),E=B.5K,I=B.3k;c H={18:(B.1E.18-E.18)||0,19:(B.1E.19-E.19)||0,u:(B.1f.u-I.u)||0,t:(B.1f.t-I.t)||0},D=h(J,K){A(J).1J(h(){c N=A(b).1p("1r-cz"),M={},L=K&&K.1m?K:["19","18","u","t"];A.1J(L||["19","18","u","t"],h(O,Q){c P=(N[Q]||0)+(H[Q]||0);if(P&&P>=0){M[Q]=P||1e}});A(b).v(M)})};if(2L(G.4I)=="6J"&&!G.4I.hm){A.1J(G.4I,h(J,K){D(J,K)})}1i{D(G.4I)}},3z:h(B,C){A(b).4p("1r-cz-2E")}});A.k.2V.22("1r","1Z",{3z:h(E,K){c G=K.l,L=A(b).1p("1r");c F=G.69,C=F&&(/aL/i).1P(F.5M(0).3g),B=C&&A.k.av(F.5M(0),"t")?0:L.6f.18,I=C?0:L.6f.19;c D={19:(L.1E.19-I),18:(L.1E.18-B)},H=(1o(L.Z.v("t"),10)+(L.1f.t-L.3k.t))||1e,J=(1o(L.Z.v("u"),10)+(L.1f.u-L.3k.u))||1e;L.Z.1Z(A.1Q(D,J&&H?{u:J,t:H}:{}),{1H:G.fR,1X:G.fS,7y:h(){c M={19:1o(L.Z.v("19"),10),18:1o(L.Z.v("18"),10),u:1o(L.Z.v("u"),10),t:1o(L.Z.v("t"),10)};if(F){F.v({19:M.19,18:M.18})}L.cW(M);L.2v("1Z",E)}})}});A.k.2V.22("1r","1C",{2E:h(D,J){c H=J.l,M=A(b).1p("1r"),F=M.Z;c C=H.1C,G=(C ir A)?C.5M(0):(/1x/.1P(C))?F.1x().5M(0):C;if(!G){q}M.cQ=A(G);if(/1k/.1P(C)||C==1k){M.ao={t:0,u:0};M.bE={t:0,u:0};M.8X={Z:A(1k),t:0,u:0,19:A(1k).19(),18:A(1k).18()||1k.1U.4e.72}}1i{M.ao=A(G).1b();M.bE=A(G).1f();M.bh={18:A(G).7p(),19:A(G).aB()};c K=M.ao,B=M.bh.18,I=M.bh.19,E=(A.k.av(G,"t")?G.aD:I),L=(A.k.av(G)?G.72:B);M.8X={Z:G,t:K.t,u:K.u,19:E,18:L}}},2j:h(D,J){c F=J.l,N=A(b).1p("1r"),C=N.bh,K=N.ao,H=N.1E,I=N.1f,M=F.al||D.9q,B={u:0,t:0},E=N.cQ;if(E[0]!=1k&&(/5Z/).1P(E.v("1f"))){B=N.bE}if(I.t<(F.1d?K.t:0)){N.1E.19=N.1E.19+(F.1d?(N.1f.t-K.t):(N.1f.t-B.t));if(M){N.1E.18=N.1E.19/F.62}N.1f.t=F.1d?K.t:0}if(I.u<(F.1d?K.u:0)){N.1E.18=N.1E.18+(F.1d?(N.1f.u-K.u):N.1f.u);if(M){N.1E.19=N.1E.18*F.62}N.1f.u=F.1d?K.u:0}c G=1n.4j((F.1d?N.1b.t-B.t:(N.1b.t-B.t))+N.6f.19),L=1n.4j((F.1d?N.1b.u-B.u:(N.1b.u-K.u))+N.6f.18);if(G+N.1E.19>=N.8X.19){N.1E.19=N.8X.19-G;if(M){N.1E.18=N.1E.19/F.62}}if(L+N.1E.18>=N.8X.18){N.1E.18=N.8X.18-L;if(M){N.1E.19=N.1E.18*F.62}}},3z:h(C,I){c E=I.l,L=A(b).1p("1r"),H=L.1f,J=L.ao,B=L.bE,D=L.cQ;c G=A(L.1d),M=G.1b(),K=G.3E()-L.6f.19,F=G.3r()-L.6f.18;if(E.1d&&!E.1Z&&(/1N/).1P(D.v("1f"))){A(b).v({t:M.t-B.t-J.t,19:K,18:F})}if(E.1d&&!E.1Z&&(/5Z/).1P(D.v("1f"))){A(b).v({t:M.t-B.t-J.t,19:K,18:F})}}});A.k.2V.22("1r","58",{2E:h(D,E){c F=E.l,B=A(b).1p("1r"),G=F.69,C=B.1E;if(!G){B.58=B.Z.7d()}1i{B.58=G.7d()}B.58.v({24:0.25,66:"7G",1f:"1N",18:C.18,19:C.19,5m:0,t:0,u:0}).1l("k-1r-58").1l(2L F.58=="5b"?F.58:"");B.58.2O(B.1d)},2j:h(C,D){c E=D.l,B=A(b).1p("1r"),F=E.69;if(B.58){B.58.v({1f:"1N",18:B.1E.18,19:B.1E.19})}},3z:h(C,D){c E=D.l,B=A(b).1p("1r"),F=E.69;if(B.58&&B.1d){B.1d.5M(0).9w(B.58.5M(0))}}});A.k.2V.22("1r","2N",{2j:h(B,J){c E=J.l,L=A(b).1p("1r"),H=L.1E,F=L.5K,G=L.3k,K=L.4u,I=E.al||B.9q;E.2N=2L E.2N=="8v"?[E.2N,E.2N]:E.2N;c D=1n.79((H.19-F.19)/(E.2N[0]||1))*(E.2N[0]||1),C=1n.79((H.18-F.18)/(E.2N[1]||1))*(E.2N[1]||1);if(/^(4c|s|e)$/.1P(K)){L.1E.19=F.19+D;L.1E.18=F.18+C}1i{if(/^(ne)$/.1P(K)){L.1E.19=F.19+D;L.1E.18=F.18+C;L.1f.u=G.u-C}1i{if(/^(4t)$/.1P(K)){L.1E.19=F.19+D;L.1E.18=F.18+C;L.1f.t=G.t-D}1i{L.1E.19=F.19+D;L.1E.18=F.18+C;L.1f.u=G.u-C;L.1f.t=G.t-D}}}}})})(2o);(h(A){A.1V("k.3J",A.1Q({},A.k.7K,{5H:h(){c C=b;b.Z.1l("k-3J");b.cN=1a;c B;b.ab=h(){B=A(C.l.3m,C.Z[0]);B.1J(h(){c D=A(b);c E=D.1b();A.1p(b,"3J-2B",{Z:b,$Z:D,t:E.t,u:E.u,2S:E.t+D.19(),3d:E.u+D.18(),7S:1a,1S:D.4g("k-1S"),4P:D.4g("k-4P"),3V:D.4g("k-3V")})})};b.ab();b.bG=B.1l("k-i0");b.9x();b.1d=A(1k.h3("1R")).v({ed:"bI it gq"}).1l("k-3J-1d")},3x:h(){b.Z.1v("k-3J k-3J-1I").4p("3J").3l(".3J");b.8s()},6L:h(E){c C=b;b.cL=[E.3R,E.3Q];if(b.l.1I){q}c D=b.l;b.bG=A(D.3m,b.Z[0]);b.Z.3Y("iv",[E,{3J:b.Z[0],l:D}],D.2E);A("1U").6N(b.1d);b.1d.v({"z-3F":3a,1f:"2k",t:E.hx,u:E.ih,19:0,18:0});if(D.gR){b.ab()}b.bG.3m(".k-1S").1J(h(){c F=A.1p(b,"3J-2B");F.7S=1j;if(!E.4L){F.$Z.1v("k-1S");F.1S=1a;F.$Z.1l("k-3V");F.3V=1j;C.Z.3Y("cM",[E,{3J:C.Z[0],3V:F.Z,l:D}],D.3V)}});c B=1a;A(E.1h).4U().bu().1J(h(){if(A.1p(b,"3J-2B")){B=1j}});q b.l.ii?!B:1j},64:h(I){c C=b;b.cN=1j;if(b.l.1I){q}c G=b.l;c D=b.cL[0],H=b.cL[1],B=I.3R,F=I.3Q;if(D>B){c E=B;B=D;D=E}if(H>F){c E=F;F=H;H=E}b.1d.v({t:D,u:H,19:B-D,18:F-H});b.bG.1J(h(){c J=A.1p(b,"3J-2B");if(!J||J.Z==C.Z[0]){q}c K=1a;if(G.5Y=="cS"){K=(!(J.t>B||J.2S<D||J.u>F||J.3d<H))}1i{if(G.5Y=="gm"){K=(J.t>D&&J.2S<B&&J.u>H&&J.3d<F)}}if(K){if(J.1S){J.$Z.1v("k-1S");J.1S=1a}if(J.3V){J.$Z.1v("k-3V");J.3V=1a}if(!J.4P){J.$Z.1l("k-4P");J.4P=1j;C.Z.3Y("im",[I,{3J:C.Z[0],4P:J.Z,l:G}],G.4P)}}1i{if(J.4P){if(I.4L&&J.7S){J.$Z.1v("k-4P");J.4P=1a;J.$Z.1l("k-1S");J.1S=1j}1i{J.$Z.1v("k-4P");J.4P=1a;if(J.7S){J.$Z.1l("k-3V");J.3V=1j}C.Z.3Y("cM",[I,{3J:C.Z[0],3V:J.Z,l:G}],G.3V)}}if(J.1S){if(!I.4L&&!J.7S){J.$Z.1v("k-1S");J.1S=1a;J.$Z.1l("k-3V");J.3V=1j;C.Z.3Y("cM",[I,{3J:C.Z[0],3V:J.Z,l:G}],G.3V)}}}});q 1a},6U:h(D){c B=b;b.cN=1a;c C=b.l;A(".k-3V",b.Z[0]).1J(h(){c E=A.1p(b,"3J-2B");E.$Z.1v("k-3V");E.3V=1a;E.7S=1a;B.Z.3Y("hT",[D,{3J:B.Z[0],gQ:E.Z,l:C}],C.gQ)});A(".k-4P",b.Z[0]).1J(h(){c E=A.1p(b,"3J-2B");E.$Z.1v("k-4P").1l("k-1S");E.4P=1a;E.1S=1j;E.7S=1j;B.Z.3Y("i6",[D,{3J:B.Z[0],1S:E.Z,l:C}],C.1S)});b.Z.3Y("i4",[D,{3J:B.Z[0],l:b.l}],b.l.3z);b.1d.2i();q 1a}}));A.1Q(A.k.3J,{3A:"1.52",56:{2O:"1U",gR:1j,5X:":1t",74:0,5G:1,3m:"*",5Y:"cS"}})})(2o);(h(A){A.1V("k.2m",A.1Q({},A.k.7K,{5H:h(){c B=b.l;b.4N={};b.Z.1l("k-2m");b.ab();b.8e=b.2J.1m?(/t|2S/).1P(b.2J[0].2B.v("e9")):1a;b.1b=b.Z.1b();b.9x()},3x:h(){b.Z.1v("k-2m k-2m-1I").4p("2m").3l(".2m");b.8s();1M(c B=b.2J.1m-1;B>=0;B--){b.2J[B].2B.4p("2m-2B")}},8a:h(F,B){if(b.bV){q 1a}if(b.l.1I||b.l.5u=="5Z"){q 1a}b.bq(F);c E=1e,D=b,C=A(F.1h).4U().1J(h(){if(A.1p(b,"2m-2B")==D){E=A(b);q 1a}});if(A.1p(F.1h,"2m-2B")==D){E=A(F.1h)}if(!E){q 1a}if(b.l.2y&&!B){c G=1a;A(b.l.2y,E).3q("*").bu().1J(h(){if(b==F.1h){G=1j}});if(!G){q 1a}}b.1B=E;b.gN();q 1j},6L:h(E,B,D){c F=b.l;b.9i=b;b.9t();b.1d=b.c6(E);b.99();b.bN();b.1O=b.1d.1O();b.1b=b.1B.1b();b.1b={u:b.1b.u-b.2F.u,t:b.1b.t-b.2F.t};b.1d.v("1f","2k");b.3W=b.1d.v("1f");A.1Q(b.1b,{2l:{t:E.3R-b.1b.t,u:E.3Q-b.1b.u},1x:b.8b(),1N:b.9a()});if(F.ap){b.bQ(F.ap)}b.3k=b.97(E);b.9g={4y:b.1B.4y()[0],1x:b.1B.1x()[0]};if(b.1d[0]!=b.1B[0]){b.1B.1L()}b.h2();if(F.1C){b.bS()}b.2v("2E",E);if(!b.j1){b.99()}if(!D){1M(c C=b.2f.1m-1;C>=0;C--){b.2f[C].2v("9d",E,b)}}if(A.k.2s){A.k.2s.5Q=b}if(A.k.2s&&!F.9m){A.k.2s.90(b,E)}b.7n=1j;b.1d.1l("k-2m-1d");b.64(E);q 1j},64:h(E){b.1f=b.97(E);b.3w=b.59("2k");if(!b.az){b.az=b.3w}A.k.2V.21(b,"7c",[E,b.9v()]);b.3w=b.59("2k");if(!b.l.4u||b.l.4u!="y"){b.1d[0].31.t=b.1f.t+"3e"}if(!b.l.4u||b.l.4u!="x"){b.1d[0].31.u=b.1f.u+"3e"}1M(c C=b.2J.1m-1;C>=0;C--){c D=b.2J[C],B=D.2B[0],F=b.gL(D);if(!F){6B}if(B!=b.1B[0]&&b.3c[F==1?"4w":"4y"]()[0]!=B&&!A.k.6u(b.3c[0],B)&&(b.l.5u=="j3-iZ"?!A.k.6u(b.Z[0],B):1j)){b.6Q=F==1?"54":"5I";if(b.l.5Y=="bj"||b.gM(D)){b.l.bR.21(b,E,D)}1i{1y}b.2v("7Y",E);1y}}b.gZ(E);if(A.k.2s){A.k.2s.4z(b,E)}b.3u("7c",E,b.9v());b.az=b.3w;q 1a},6U:h(C,E){if(!C){q}if(A.k.2s&&!b.l.9m){A.k.2s.6K(b,C)}if(b.l.67){c B=b;c D=B.3c.1b();B.bV=1j;A(b.1d).1Z({t:D.t-b.1b.1x.t-B.2F.t+(b.3n[0]==1k.1U?0:b.3n[0].23),u:D.u-b.1b.1x.u-B.2F.u+(b.3n[0]==1k.1U?0:b.3n[0].26)},1o(b.l.67,10)||aV,h(){B.9r(C)})}1i{b.9r(C,E)}q 1a},5X:h(){if(b.7n){b.95();if(b.l.1d=="8c"){b.1B.v(b.80).1v("k-2m-1d")}1i{b.1B.1G()}1M(c B=b.2f.1m-1;B>=0;B--){b.2f[B].2v("9e",1e,b);if(b.2f[B].4N.5n){b.2f[B].2v("9c",1e,b);b.2f[B].4N.5n=0}}}if(b.3c[0].4e){b.3c[0].4e.9w(b.3c[0])}if(b.l.1d!="8c"&&b.1d&&b.1d[0].4e){b.1d.2i()}A.1Q(b,{1d:1e,7n:1a,bV:1a,dr:1e});if(b.9g.4y){A(b.9g.4y).ba(b.1B)}1i{A(b.9g.1x).iV(b.1B)}q 1j},gw:h(D){c B=b.ct(D&&D.gO);c C=[];D=D||{};A(B).1J(h(){c E=(A(D.2B||b).1T(D.gK||"id")||"").3D(D.gP||(/(.+)[-=9l](.+)/));if(E){C.4n((D.6b||E[1]+"[]")+"="+(D.6b&&D.gP?E[1]:E[2]))}});q C.5F("&")},gs:h(D){c B=b.ct(D&&D.gO);c C=[];D=D||{};B.1J(h(){C.4n(A(D.2B||b).1T(D.gK||"id")||"")});q C},gV:h(L){c D=b.3w.t,C=D+b.2w.19,J=b.3w.u,I=J+b.2w.18;c E=L.t,B=E+L.19,K=L.u,H=K+L.18;c M=b.1b.2l.u,G=b.1b.2l.t;c F=(J+M)>K&&(J+M)<H&&(D+G)>E&&(D+G)<B;if(b.l.5Y=="bj"||b.l.iX||(b.l.5Y!="bj"&&b.2w[b.8e?"19":"18"]>L[b.8e?"19":"18"])){q F}1i{q(E<D+(b.2w.19/2)&&C-(b.2w.19/2)<B&&K<J+(b.2w.18/2)&&I-(b.2w.18/2)<H)}},gL:h(D){c G=A.k.7Q(b.3w.u+b.1b.2l.u,D.u,D.18),C=A.k.7Q(b.3w.t+b.1b.2l.t,D.t,D.19),F=G&&C,B=b.cY(),E=b.cJ();if(!F){q 1a}q b.8e?(((E&&E=="2S")||B=="54")?2:1):(B&&(B=="54"?2:1))},gM:h(E){c D=A.k.7Q(b.3w.u+b.1b.2l.u,E.u+(E.18/2),E.18),C=A.k.7Q(b.3w.t+b.1b.2l.t,E.t+(E.19/2),E.19),B=b.cY(),F=b.cJ();if(b.8e&&F){q((F=="2S"&&C)||(F=="t"&&!C))}1i{q B&&((B=="54"&&D)||(B=="5I"&&!D))}},cY:h(){c B=b.3w.u-b.az.u;q B!=0&&(B>0?"54":"5I")},cJ:h(){c B=b.3w.t-b.az.t;q B!=0&&(B>0?"2S":"t")},ab:h(B){b.bq(B);b.9t()},ct:h(B){c D=b;c C=[];c F=[];if(b.l.9f&&B){1M(c G=b.l.9f.1m-1;G>=0;G--){c I=A(b.l.9f[G]);1M(c E=I.1m-1;E>=0;E--){c H=A.1p(I[E],"2m");if(H&&H!=b&&!H.l.1I){F.4n([A.5z(H.l.2J)?H.l.2J.21(H.Z):A(H.l.2J,H.Z).7g(".k-2m-1d"),H])}}}}F.4n([A.5z(b.l.2J)?b.l.2J.21(b.Z,1e,{l:b.l,2B:b.1B}):A(b.l.2J,b.Z).7g(".k-2m-1d"),b]);1M(c G=F.1m-1;G>=0;G--){F[G][0].1J(h(){C.4n(b)})}q A(C)},gN:h(){c D=b.1B.3q(":1p(2m-2B)");1M(c C=0;C<b.2J.1m;C++){1M(c B=0;B<D.1m;B++){if(D[B]==b.2J[C].2B[0]){b.2J.c3(C,1)}}}},bq:h(B){b.2J=[];b.2f=[b];c H=b.2J;c M=b;c E=[[A.5z(b.l.2J)?b.l.2J.21(b.Z[0],B,{2B:b.1B}):A(b.l.2J,b.Z),b]];if(b.l.9f){1M(c F=b.l.9f.1m-1;F>=0;F--){c J=A(b.l.9f[F]);1M(c D=J.1m-1;D>=0;D--){c G=A.1p(J[D],"2m");if(G&&G!=b&&!G.l.1I){E.4n([A.5z(G.l.2J)?G.l.2J.21(G.Z[0],B,{2B:b.1B}):A(G.l.2J,G.Z),G]);b.2f.4n(G)}}}}1M(c F=E.1m-1;F>=0;F--){c I=E[F][1];c C=E[F][0];1M(c D=0,K=C.1m;D<K;D++){c L=A(C[D]);L.1p("2m-2B",I);H.4n({2B:L,1Y:I,19:0,18:0,t:0,u:0})}}},9t:h(B){if(b.3n&&b.1d){b.1b.1x=b.8b()}1M(c D=b.2J.1m-1;D>=0;D--){c E=b.2J[D];if(E.1Y!=b.9i&&b.9i&&E.2B[0]!=b.1B[0]){6B}c C=b.l.gU?A(b.l.gU,E.2B):E.2B;if(!B){if(b.l.gr){E.19=C.3E();E.18=C.3r()}1i{E.19=C[0].5J;E.18=C[0].5f}}c F=C.1b();E.t=F.t;E.u=F.u}if(b.l.cu&&b.l.cu.h1){b.l.cu.h1.21(b)}1i{1M(c D=b.2f.1m-1;D>=0;D--){c F=b.2f[D].Z.1b();b.2f[D].4N.t=F.t;b.2f[D].4N.u=F.u;b.2f[D].4N.19=b.2f[D].Z.3E();b.2f[D].4N.18=b.2f[D].Z.3r()}}},h2:h(D){c C=D||b,E=C.l;if(!E.3c||E.3c.4V==a9){c B=E.3c;E.3c={Z:h(){c F=A(1k.h3(C.1B[0].3g)).1l(B||C.1B[0].8w+" k-2m-3c").1v("k-2m-1d")[0];if(!B){F.31.9D="3h";1k.1U.dt(F);F.h0=C.1B[0].h0.4Z(/3X\\=\\"[^\\"\\\']+\\"/g,"").4Z(/2o[0-9]+\\=\\"[^\\"\\\']+\\"/g,"");1k.1U.9w(F)}q F},ak:h(F,G){if(B&&!E.go){q}if(!G.18()){G.18(C.1B.7p()-1o(C.1B.v("dR")||0,10)-1o(C.1B.v("dO")||0,10))}if(!G.19()){G.19(C.1B.aB()-1o(C.1B.v("dP")||0,10)-1o(C.1B.v("dQ")||0,10))}}}}C.3c=A(E.3c.Z.21(C.Z,C.1B));C.1B.ba(C.3c);E.3c.ak(C,C.3c)},gZ:h(D){1M(c C=b.2f.1m-1;C>=0;C--){if(b.gV(b.2f[C].4N)){if(!b.2f[C].4N.5n){if(b.9i!=b.2f[C]){c H=iE;c G=1e;c E=b.3w[b.2f[C].8e?"t":"u"];1M(c B=b.2J.1m-1;B>=0;B--){if(!A.k.6u(b.2f[C].Z[0],b.2J[B].2B[0])){6B}c F=b.2J[B][b.2f[C].8e?"t":"u"];if(1n.4j(F-E)<H){H=1n.4j(F-E);G=b.2J[B]}}if(!G&&!b.l.gn){6B}b.9i=b.2f[C];G?b.l.bR.21(b,D,G,1e,1j):b.l.bR.21(b,D,1e,b.2f[C].Z,1j);b.2v("7Y",D);b.2f[C].2v("7Y",D,b);b.l.3c.ak(b.9i,b.3c)}b.2f[C].2v("5n",D,b);b.2f[C].4N.5n=1}}1i{if(b.2f[C].4N.5n){b.2f[C].2v("9c",D,b);b.2f[C].4N.5n=0}}}},c6:h(C){c D=b.l;c B=A.5z(D.1d)?A(D.1d.1D(b.Z[0],[C,b.1B])):(D.1d=="7d"?b.1B.7d():b.1B);if(!B.4U("1U").1m){A(D.2O!="1x"?D.2O:b.1B[0].4e)[0].dt(B[0])}if(B[0]==b.1B[0]){b.80={19:b.1B[0].31.19,18:b.1B[0].31.18,1f:b.1B.v("1f"),u:b.1B.v("u"),t:b.1B.v("t")}}if(B[0].31.19==""||D.cn){B.19(b.1B.19())}if(B[0].31.18==""||D.cn){B.18(b.1B.18())}q B},bQ:h(B){if(B.t!=3G){b.1b.2l.t=B.t+b.2F.t}if(B.2S!=3G){b.1b.2l.t=b.2w.19-B.2S+b.2F.t}if(B.u!=3G){b.1b.2l.u=B.u+b.2F.u}if(B.3d!=3G){b.1b.2l.u=b.2w.18-B.3d+b.2F.u}},8b:h(){b.3n=b.1d.3n();c B=b.3n.1b();if((b.3n[0]==1k.1U&&A.1W.cF)||(b.3n[0].5t&&b.3n[0].5t.5R()=="2Z"&&A.1W.43)){B={u:0,t:0}}q{u:B.u+(1o(b.3n.v("6h"),10)||0),t:B.t+(1o(b.3n.v("6i"),10)||0)}},9a:h(){if(b.3W=="1N"){c B=b.1B.1f();q{u:B.u-(1o(b.1d.v("u"),10)||0)+b.1O.26(),t:B.t-(1o(b.1d.v("t"),10)||0)+b.1O.23()}}1i{q{u:0,t:0}}},bN:h(){b.2F={t:(1o(b.1B.v("7z"),10)||0),u:(1o(b.1B.v("83"),10)||0)}},99:h(){b.2w={19:b.1d.3E(),18:b.1d.3r()}},bS:h(){c E=b.l;if(E.1C=="1x"){E.1C=b.1d[0].4e}if(E.1C=="1k"||E.1C=="30"){b.1C=[0-b.1b.1N.t-b.1b.1x.t,0-b.1b.1N.u-b.1b.1x.u,A(E.1C=="1k"?1k:30).19()-b.1b.1N.t-b.1b.1x.t-b.2F.t-(1o(b.1B.v("9j"),10)||0),(A(E.1C=="1k"?1k:30).18()||1k.1U.4e.72)-b.1b.1N.u-b.1b.1x.u-b.2F.u-(1o(b.1B.v("8U"),10)||0)]}if(!(/^(1k|30|1x)$/).1P(E.1C)){c C=A(E.1C)[0];c D=A(E.1C).1b();c B=(A(C).v("3f")!="3h");b.1C=[D.t+(1o(A(C).v("6i"),10)||0)-b.1b.1N.t-b.1b.1x.t-b.2F.t,D.u+(1o(A(C).v("6h"),10)||0)-b.1b.1N.u-b.1b.1x.u-b.2F.u,D.t+(B?1n.2z(C.aD,C.5J):C.5J)-(1o(A(C).v("6i"),10)||0)-b.1b.1N.t-b.1b.1x.t-b.2F.t,D.u+(B?1n.2z(C.72,C.5f):C.5f)-(1o(A(C).v("6h"),10)||0)-b.1b.1N.u-b.1b.1x.u-b.2F.u]}},59:h(D,F){if(!F){F=b.1f}c B=D=="2k"?1:-1;c C=b[(b.3W=="2k"?"1b":"6w")+"bT"],E=(/(2Z|1U)/i).1P(C[0].5t);q{u:(F.u+b.1b.1N.u*B+b.1b.1x.u*B+(b.3W=="5g"?-b.1O.26():(E?0:C.26()))*B+b.2F.u*B),t:(F.t+b.1b.1N.t*B+b.1b.1x.t*B+(b.3W=="5g"?-b.1O.23():(E?0:C.23()))*B+b.2F.t*B)}},97:h(C){c G=b.l,D=b[(b.3W=="2k"?"1b":"6w")+"bT"],H=(/(2Z|1U)/i).1P(D[0].5t);c B={u:(C.3Q-b.1b.2l.u-b.1b.1N.u-b.1b.1x.u+(b.3W=="5g"?-b.1O.26():(H?0:D.26()))),t:(C.3R-b.1b.2l.t-b.1b.1N.t-b.1b.1x.t+(b.3W=="5g"?-b.1O.23():(H?0:D.23())))};if(!b.3k){q B}if(b.1C){if(B.t<b.1C[0]){B.t=b.1C[0]}if(B.u<b.1C[1]){B.u=b.1C[1]}if(B.t+b.2w.19>b.1C[2]){B.t=b.1C[2]-b.2w.19}if(B.u+b.2w.18>b.1C[3]){B.u=b.1C[3]-b.2w.18}}if(G.2N){c F=b.3k.u+1n.79((B.u-b.3k.u)/G.2N[1])*G.2N[1];B.u=b.1C?(!(F<b.1C[1]||F>b.1C[3])?F:(!(F<b.1C[1])?F-G.2N[1]:F+G.2N[1])):F;c E=b.3k.t+1n.79((B.t-b.3k.t)/G.2N[0])*G.2N[0];B.t=b.1C?(!(E<b.1C[0]||E>b.1C[2])?E:(!(E<b.1C[0])?E-G.2N[0]:E+G.2N[0])):E}q B},gp:h(G,F,C,E){C?C[0].dt(b.3c[0]):F.2B[0].4e.cG(b.3c[0],(b.6Q=="54"?F.2B[0]:F.2B[0].hw));b.9Z=b.9Z?++b.9Z:1;c D=b,B=b.9Z;30.7Z(h(){if(B==D.9Z){D.9t(!E)}},0)},9r:h(C,D){b.bV=1a;if(!b.dr){b.3c.d9(b.1B)}b.dr=1e;if(b.1d[0]==b.1B[0]){1M(c B in b.80){if(b.80[B]=="3K"||b.80[B]=="5Z"){b.80[B]=""}}b.1B.v(b.80).1v("k-2m-1d")}1i{b.1B.1G()}if(b.9g.4y!=b.1B.4y().7g(".k-2m-1d")[0]||b.9g.1x!=b.1B.1x()[0]){b.2v("ak",C,1e,D)}if(!A.k.6u(b.Z[0],b.1B[0])){b.2v("2i",C,1e,D);1M(c B=b.2f.1m-1;B>=0;B--){if(A.k.6u(b.2f[B].Z[0],b.1B[0])){b.2f[B].2v("ak",C,b,D);b.2f[B].2v("gI",C,b,D)}}}1M(c B=b.2f.1m-1;B>=0;B--){b.2f[B].2v("9e",C,b,D);if(b.2f[B].4N.5n){b.2f[B].2v("9c",C,b);b.2f[B].4N.5n=0}}b.7n=1a;if(b.8m){b.2v("9R",C,1e,D);b.2v("3z",C,1e,D);q 1a}b.2v("9R",C,1e,D);b.3c[0].4e.9w(b.3c[0]);if(b.l.1d!="8c"){b.1d.2i()}b.1d=1e;b.2v("3z",C,1e,D);q 1j},2v:h(F,B,C,E){A.k.2V.21(b,F,[B,b.9v(C)]);c D=!E?b.Z.3Y(F=="7c"?F:"7c"+F,[B,b.9v(C)],b.l[F]):1j;if(D===1a){b.5X()}},7u:{},9v:h(C){c B=C||b;q{1d:B.1d,3c:B.3c||A([]),1f:B.1f,ah:B.3w,2B:B.1B,gv:C?C.Z:1e}}}));A.1Q(A.k.2m,{9E:"gw gs",3A:"1.52",56:{gr:1j,2O:"1x",5X:":1t",74:0,5G:1,gn:1j,go:1a,cn:1a,1d:"8c",2J:"> *",6x:"2u",6w:1j,4i:20,4f:20,bR:A.k.2m.4J.gp,5Y:"2u",2K:a3}});A.k.2V.22("2m","2q",{2E:h(D,E){c C=A("1U"),B=A(b).1p("2m");if(C.v("2q")){B.l.9b=C.v("2q")}C.v("2q",B.l.2q)},9R:h(C,D){c B=A(b).1p("2m");if(B.l.9b){A("1U").v("2q",B.l.9b)}}});A.k.2V.22("2m","24",{2E:h(D,E){c C=E.1d,B=A(b).1p("2m");if(C.v("24")){B.l.93=C.v("24")}C.v("24",B.l.24)},9R:h(C,D){c B=A(b).1p("2m");if(B.l.93){A(D.1d).v("24",B.l.93)}}});A.k.2V.22("2m","6w",{2E:h(C,D){c B=A(b).1p("2m"),E=B.l;if(B.1O[0]!=1k&&B.1O[0].5t!="bD"){B.6k=B.1O.1b()}},7c:h(D,E){c C=A(b).1p("2m"),F=C.l,B=1a;if(C.1O[0]!=1k&&C.1O[0].5t!="bD"){if((C.6k.u+C.1O[0].5f)-D.3Q<F.4i){C.1O[0].26=B=C.1O[0].26+F.4f}1i{if(D.3Q-C.6k.u<F.4i){C.1O[0].26=B=C.1O[0].26-F.4f}}if((C.6k.t+C.1O[0].5J)-D.3R<F.4i){C.1O[0].23=B=C.1O[0].23+F.4f}1i{if(D.3R-C.6k.t<F.4i){C.1O[0].23=B=C.1O[0].23-F.4f}}}1i{if(D.3Q-A(1k).26()<F.4i){B=A(1k).26(A(1k).26()-F.4f)}1i{if(A(30).18()-(D.3Q-A(1k).26())<F.4i){B=A(1k).26(A(1k).26()+F.4f)}}if(D.3R-A(1k).23()<F.4i){B=A(1k).23(A(1k).23()-F.4f)}1i{if(A(30).19()-(D.3R-A(1k).23())<F.4i){B=A(1k).23(A(1k).23()+F.4f)}}}if(B!==1a&&A.k.2s&&!F.9m){A.k.2s.90(C,D)}if(B!==1a&&C.3W=="2k"&&C.1O[0]!=1k&&A.k.6u(C.1O[0],C.3n[0])){C.1b.1x=C.8b()}if(B!==1a&&C.3W=="1N"&&!(C.1O[0]!=1k&&C.1O[0]!=C.3n[0])){C.1b.1N=C.9a()}}});A.k.2V.22("2m","2K",{2E:h(D,E){c C=E.1d,B=A(b).1p("2m");if(C.v("2K")){B.l.7W=C.v("2K")}C.v("2K",B.l.2K)},9R:h(C,D){c B=A(b).1p("2m");if(B.l.7W){A(D.1d).v("2K",B.l.7W=="3K"?"":B.l.7W)}}})})(2o);(h(E){E.1V("k.3C",{5H:h(){c H=b.l;if(H.nk){c J=b.Z.3q("a").3m(H.h4);if(J.1m){if(J.3m(H.4r).1m){H.2P=J}1i{H.2P=J.1x().1x().4y();J.1l("5Q")}}}b.Z.1l("k-3C k-1V k-1d-8A");c I=b.Z.6W().1l("k-3C-76");c K=H.4F=I.3q("> :8o-3o").1l("k-3C-4r k-1d-8A k-1K-2u k-2p-2Y").3b("nn.3C",h(){E(b).1l("k-1K-4l")}).3b("nl.3C",h(){E(b).1v("k-1K-4l")});K.4w().a8("<1R></1R>").1l("k-3C-3B").1x().1l("k-3C-3B-a8 k-1d-8A k-1V-3B k-2p-3d");c L=H.2P=A(K,H.2P).6a("k-1K-2u").6a("k-1K-2P").6a("k-2p-2Y").6a("k-2p-u");L.1x().1l("1S");E("<3p/>").1l("k-4a "+b.l.7x.4r).cp(K);L.3q(".k-4a").6a(b.l.7x.4r).6a(b.l.7x.b2);if(E.1W.43){b.Z.3q("a").v("fC","1")}b.2j();b.Z.1T("6e","no");c G=b;H.4F.1T("6e","hS").3b("7w",h(M){q G.gy(M)}).4w().1T("6e","nh");H.4F.7g(H.2P||"").1T("4C-9T","1a").1T("6g","-1").4w().1L();if(!H.2P.1m){H.4F.eq(0).1T("6g","0")}1i{H.2P.1T("4C-9T","1j").1T("6g","0")}if(!E.1W.91){H.4F.3q("a").1T("6g","-1")}if(H.1w){b.Z.3b((H.1w)+".3C",F)}},3x:h(){b.Z.1v("k-3C k-1V k-1d-8A").5s("6e").3l(".3C");E.4p(b.Z[0],"3C");c G=b.Z.6W().1v("k-3C-76 1S");c H=b.l.4F.3l(".3C").1v("k-3C-4r k-1d-8A k-1K-2u k-2p-2Y k-1K-2P k-2p-u").5s("6e").5s("4C-9T").5s("gx");H.3q("a").5s("gx");H.6W(".k-4a").2i();H.4w().6W().1v("k-3C-3B").1J(h(){E(b).1x().eH(b)})},gy:h(J){if(b.l.1I||J.c8||J.4b){q}c K=E.k.2W;c I=b.l.4F.1m;c H=b.l.4F.3F(J.1h);c G=1a;4x(J.2W){1s K.by:1s K.bw:G=b.l.4F[(H+1)%I];1y;1s K.bx:1s K.bz:G=b.l.4F[(H-1+I)%I];1y;1s K.gF:1s K.gG:q F.21(b.Z[0],{1h:J.1h})}if(G){E(J.1h).1T("6g","-1");E(G).1T("6g","0");G.2M();q 1a}q 1j},2j:h(){c H=b.l,G;if(H.cc){G=b.Z.1x().18();H.4F.1J(h(){G-=E(b).3r()});c I=0;H.4F.4w().1J(h(){I=1n.2z(I,E(b).7p()-E(b).18())}).18(G-I).v("3f","3K")}1i{if(H.7N){G=0;H.4F.4w().1J(h(){G=1n.2z(G,E(b).3r())}).18(G)}}},9d:h(G){F.21(b.Z[0],{1h:A(b.l.4F,G)[0]})}});h C(H,G){q h(){q H.1D(G,1A)}}h B(H){if(!E.1p(b,"3C")){q}c G=E.1p(b,"3C");c I=G.l;I.9h=H?0:--I.9h;if(I.9h){q}if(I.mZ){I.5V.22(I.8j).v({18:"",3f:""})}G.3u("7Y",1e,I.1p)}h D(M,Q,J,K,O){c N=E.1p(b,"3C").l;N.5V=M;N.8j=Q;N.1p=J;c L=C(B,b);E.1p(b,"3C").3u("mV",1e,N.1p);N.9h=Q.1E()===0?M.1E():Q.1E();if(N.9G){c H={};if(!N.8d&&K){H={5V:E([]),8j:Q,6p:L,54:O,7N:N.7N||N.cc}}1i{H={5V:M,8j:Q,6p:L,54:O,7N:N.7N||N.cc}}if(!N.9M){N.9M=N.9G}if(!N.aa){N.aa=N.1H}N.9G=E.5z(N.9M)?N.9M(H):N.9M;N.1H=E.5z(N.aa)?N.aa(H):N.aa;c P=E.k.3C.f8,I=N.1H,G=N.9G;if(!P[G]){P[G]=h(R){b.6R(R,{1X:G,1H:I||eG})}}P[G](H)}1i{if(!N.8d&&K){M.61()}1i{Q.1L();M.1G()}L(1j)}Q.4y().1T("4C-9T","1a").1T("6g","-1");M.4y().1T("4C-9T","1j").1T("6g","0").2M()}h F(K){c J=E.1p(b,"3C").l;if(J.1I){q 1a}if(!K.1h&&!J.8d){J.2P.1x().6a(J.4k);c I=J.2P.4w(),M={l:J,gE:E([]),gD:J.2P,gz:E([]),gA:I},L=(J.2P=E([]));D.21(b,L,I,M);q 1a}c H=E(K.1h);H=E(H.4U(J.4r)[0]||H);c G=H[0]==J.2P[0];if(J.9h||(J.8d&&G)){q 1a}if(!H.is(J.4r)){q}J.2P.1x().6a(J.4k);J.2P.1v("k-1K-2P k-2p-u").1l("k-1K-2u k-2p-2Y").3q(".k-4a").1v(J.7x.b2).1l(J.7x.4r);if(!G){H.1x().1l(J.4k);H.1v("k-1K-2u k-2p-2Y").1l("k-1K-2P k-2p-u").3q(".k-4a").1v(J.7x.4r).1l(J.7x.b2)}c L=H.4w(),I=J.2P.4w(),M={l:J,gE:G&&!J.8d?E([]):H,gD:J.2P,gz:G&&!J.8d?E([]):L,gA:I},N=J.4F.3F(J.2P[0])>J.4F.3F(H[0]);J.2P=G?E([]):H;D.21(b,L,I,M,G,N);q 1a}h A(H,G){q G?2L G=="8v"?H.3m(":eq("+G+")"):H.7g(H.7g(G)):G===1a?E([]):H.3m(":eq(0)")}E.1Q(E.k.3C,{3A:"1.52",56:{7N:1j,8d:1j,9G:"6R",1w:"2l",4r:"a",7x:{4r:"k-4a-8L-1-e",b2:"k-4a-8L-1-s"},h4:h(){q b.48.5R()==cH.48.5R()},9h:0,4k:"1S"},f8:{6R:h(G,I){G=E.1Q({1X:"9L",1H:fq},G,I);if(!G.8j.1E()){G.5V.1Z({18:"1G"},G);q}c H=G.8j.18(),J=G.5V.18(),L=J/H,K=G.5V.v("3f");G.5V.v({18:0,3f:"3h"}).1G();G.8j.3m(":3h").1J(G.6p).4H().3m(":5L").1Z({18:"1L"},{7y:h(M){c N=(H-M)*L;if(E.1W.43||E.1W.6s){N=1n.eM(N)}G.5V.18(N)},1H:G.1H,1X:G.1X,6p:h(){if(!G.7N){G.5V.v("18","3K")}G.5V.v({3f:K});G.6p()}})},lc:h(G){b.6R(G,{1X:G.54?"bt":"9L",1H:G.54?a3:l8})},l9:h(G){b.6R(G,{1X:"la",1H:eG})}}})})(2o);(h(B){c A={db:"2E.2d",4z:"4z.2d",d3:"3z.2d",6A:"6A.1r",5v:"5v.1r",6y:"6y.1r",6q:"6q.1r",dk:"2E.1r",2j:"4z.1r",dv:"3z.1r"};B.1V("k.2e",{5H:h(){b.aU=b.Z.1T("3P");b.l.3P=b.l.3P||b.aU;c L=b,J=b.l,K=J.3P||"&eP;",I=B.k.2e.fm(b.Z),M=(b.3y=B("<1R/>")).2O(1k.1U).1L().1l("k-2e k-1V k-1V-3B k-2p-2Y "+J.lb).v({1f:"2k",3f:"3h",2K:J.2K}).1T("6g",-1).v("lj",0).7w(h(N){(J.cB&&N.2W&&N.2W==B.k.2W.cA&&L.7h())}).1T({6e:"2e","4C-lq":I}).af(h(){L.dD()}),C=b.Z.5s("3P").1l("k-2e-3B k-1V-3B").2O(M),G=(b.eJ=B("<1R></1R>")).1l("k-2e-dj k-1V-4r k-2p-2Y k-1d-8V").cp(M),D=B(\'<a 48="#"/>\').1l("k-2e-dj-7h k-2p-2Y").1T("6e","3S").4l(h(){D.1l("k-1K-4l")},h(){D.1v("k-1K-4l")}).2M(h(){D.1l("k-1K-2M")}).7f(h(){D.1v("k-1K-2M")}).af(h(N){N.hA()}).2l(h(){L.7h();q 1a}).2O(G),F=(b.eY=B("<3p/>")).1l("k-4a k-4a-lr").aQ(J.9S).2O(D),H=B("<3p/>").1l("k-2e-3P").1T("id",I).2Z(K).cp(G),E=(b.eR=B("<1R></1R>")).1l("k-2e-hJ k-1V-3B k-1d-8V").2O(M);G.3q("*").22(G).7C();(J.2d&&B.fn.2d&&b.dn());(J.1r&&B.fn.1r&&b.cs());b.dq(J.du);b.aw=1a;(J.7E&&B.fn.7E&&M.7E());(J.eL&&b.dc())},3x:h(){(b.2U&&b.2U.3x());b.3y.1L();b.Z.3l(".2e").4p("2e").1v("k-2e-3B k-1V-3B").1L().2O("1U");b.3y.2i();(b.aU&&b.Z.1T("3P",b.aU))},7h:h(){if(1a===b.3u("ll",1e,{l:b.l})){q}(b.2U&&b.2U.3x());b.3y.1L(b.l.1L).3l("ar.k-2e");b.3u("7h",1e,{l:b.l});B.k.2e.2U.2j();b.aw=1a},fo:h(){q b.aw},dD:h(F){if((b.l.a5&&!F)||(!b.l.6D&&!b.l.a5)){q b.3u("2M",1e,{l:b.l})}c E=b.l.2K,D=b.l;B(".k-2e:5L").1J(h(){E=1n.2z(E,1o(B(b).v("z-3F"),10)||D.2K)});(b.2U&&b.2U.$el.v("z-3F",++E));c C={26:b.Z.1T("26"),23:b.Z.1T("23")};b.3y.v("z-3F",++E);b.Z.1T(C);b.3u("2M",1e,{l:b.l})},dc:h(){if(b.aw){q}b.2U=b.l.a5?2c B.k.2e.2U(b):1e;(b.3y.4w().1m&&b.3y.2O("1U"));b.eK();b.dm(b.l.1f);b.3y.1G(b.l.1G);b.dD(1j);(b.l.a5&&b.3y.3b("ar.k-2e",h(E){if(E.2W!=B.k.2W.eQ){q}c D=B(":df",b),F=D.3m(":8o")[0],C=D.3m(":en")[0];if(E.1h==C&&!E.9q){7Z(h(){F.2M()},1)}1i{if(E.1h==F&&E.9q){7Z(h(){C.2M()},1)}}}));b.3y.3q(":df:8o").2M();b.3u("dc",1e,{l:b.l});b.aw=1j},dq:h(F){c C=b,E=1a,D=b.eR;D.cb().1L();B.1J(F,h(){q!(E=1j)});if(E){D.1G();B.1J(F,h(G,H){B(\'<3S 5u="3S"></3S>\').1l("k-1K-2u k-2p-2Y").aQ(G).2l(h(){H.1D(C.Z[0],1A)}).4l(h(){B(b).1l("k-1K-4l")},h(){B(b).1v("k-1K-4l")}).2M(h(){B(b).1l("k-1K-2M")}).7f(h(){B(b).1v("k-1K-2M")}).2O(D)})}},dn:h(){c C=b,D=b.l;b.3y.2d({5X:".k-2e-3B",1d:D.kN,2y:".k-2e-dj",2E:h(){(D.db&&D.db.1D(C.Z[0],1A))},4z:h(){(D.4z&&D.4z.1D(C.Z[0],1A))},3z:h(){(D.d3&&D.d3.1D(C.Z[0],1A));B.k.2e.2U.2j()}})},cs:h(F){F=(F===3G?b.l.1r:F);c C=b,E=b.l,D=2L F=="5b"?F:"n,e,s,w,4c,4t,ne,4q";b.3y.1r({5X:".k-2e-3B",4I:b.Z,1d:E.l0,6y:E.6y,6A:E.6A,6q:E.6q,5v:E.5v,2E:h(){(E.dk&&E.dk.1D(C.Z[0],1A))},2j:h(){(E.2j&&E.2j.1D(C.Z[0],1A))},2Q:D,3z:h(){(E.dv&&E.dv.1D(C.Z[0],1A));B.k.2e.2U.2j()}}).3q(".k-1r-4c").1l("k-4a k-4a-m0-m1-4c")},dm:h(H){c D=B(30),F=B(1k),G=F.26(),C=F.23(),E=G;if(B.8i(H,["7A","u","2S","3d","t"])>=0){H=[H=="2S"||H=="t"?H:"7A",H=="u"||H=="3d"?H:"8R"]}if(H.4V!=9k){H=["7A","8R"]}if(H[0].4V==aG){C+=H[0]}1i{4x(H[0]){1s"t":C+=0;1y;1s"2S":C+=D.19()-b.3y.3E();1y;2u:1s"7A":C+=(D.19()-b.3y.3E())/2}}if(H[1].4V==aG){G+=H[1]}1i{4x(H[1]){1s"u":G+=0;1y;1s"3d":G+=(B.1W.6s?30.7p:D.18())-b.3y.3r();1y;2u:1s"8R":G+=((B.1W.6s?30.7p:D.18())-b.3y.3r())/2}}G=1n.2z(G,E);b.3y.v({u:G,t:C})},4s:h(C,E){(A[C]&&b.3y.1p(A[C],E));4x(C){1s"du":b.dq(E);1y;1s"9S":b.eY.aQ(E);1y;1s"2d":(E?b.dn():b.3y.2d("3x"));1y;1s"18":b.3y.18(E);1y;1s"1f":b.dm(E);1y;1s"1r":c D=b.3y,F=b.3y.is(":1p(1r)");(F&&!E&&D.1r("3x"));(F&&2L E=="5b"&&D.1r("7P","2Q",E));(F||b.cs(E));1y;1s"3P":B(".k-2e-3P",b.eJ).2Z(E||"&eP;");1y;1s"19":b.3y.19(E);1y}B.1V.4J.4s.1D(b,1A)},eK:h(){c C=b.l;b.Z.v({18:0,19:"3K"});c D=b.3y.v({18:"3K",19:C.19}).18();b.Z.v({5v:C.5v-D,18:C.18=="3K"?"3K":C.18-D})}});B.1Q(B.k.2e,{3A:"1.52",56:{eL:1j,7E:1a,du:{},cB:1j,9S:"7h",2d:1j,18:"3K",5v:9Y,6q:9Y,a5:1a,2U:{},1f:"7A",1r:1j,6D:1j,19:fq,2K:a3},9E:"fo",ay:0,fm:h(C){q"k-2e-3P-"+(C.1T("id")||++b.ay)},2U:h(C){b.$el=B.k.2e.2U.fk(C)}});B.1Q(B.k.2e.2U,{7V:[],f3:B.7k("2M,af,d1,7w,ar,2l".8Q(","),h(C){q C+".2e-2U"}).5F(" "),fk:h(C){if(b.7V.1m===0){7Z(h(){B("a, :1t").3b(B.k.2e.2U.f3,h(){c E=1a;c H=B(b).4U(".k-2e");if(H.1m){c G=B(".k-2e-2U");if(G.1m){c F=1o(G.v("z-3F"),10);G.1J(h(){F=1n.2z(F,1o(B(b).v("z-3F"),10))});E=1o(H.v("z-3F"),10)>F}1i{E=1j}}q E})},1);B(1k).3b("7w.2e-2U",h(E){(C.l.cB&&E.2W&&E.2W==B.k.2W.cA&&C.7h())});B(30).3b("2j.2e-2U",B.k.2e.2U.2j)}c D=B("<1R></1R>").2O(1k.1U).1l("k-2e-2U").v(B.1Q({lK:0,5m:0,eb:0,1f:"2k",u:0,t:0,19:b.19(),18:b.18()},C.l.2U));(C.l.7E&&B.fn.7E&&D.7E());b.7V.4n(D);q D},3x:h(C){b.7V.c3(B.8i(b.7V,C),1);if(b.7V.1m===0){B("a, :1t").22([1k,30]).3l(".2e-2U")}C.2i()},18:h(){if(B.1W.43&&B.1W.3A<7){c D=1n.2z(1k.4o.72,1k.1U.72);c C=1n.2z(1k.4o.5f,1k.1U.5f);if(D<C){q B(30).18()+"3e"}1i{q D+"3e"}}1i{if(B.1W.6s){q 1n.2z(30.7p,B(1k).18())+"3e"}1i{q B(1k).18()+"3e"}}},19:h(){if(B.1W.43&&B.1W.3A<7){c C=1n.2z(1k.4o.aD,1k.1U.aD);c D=1n.2z(1k.4o.5J,1k.1U.5J);if(C<D){q B(30).19()+"3e"}1i{q C+"3e"}}1i{if(B.1W.6s){q 1n.2z(30.aB,B(1k).19())+"3e"}1i{q B(1k).19()+"3e"}}},2j:h(){c C=B([]);B.1J(B.k.2e.2U.7V,h(){C=C.22(b)});C.v({19:0,18:0}).v({19:B.k.2e.2U.19(),18:B.k.2e.2U.18()})}});B.1Q(B.k.2e.2U.4J,{3x:h(){B.k.2e.2U.3x(b.$el)}})})(2o);(h(A){A.1V("k.3T",A.1Q({},A.k.7K,{5H:h(){c C=b;b.aj=1a;b.bk=1e;b.9x();b.Z.1l("k-3T k-3T-"+b.7T()+" k-1V k-1V-3B k-2p-2Y");b.3s=A([]);if(b.l.3s){if(b.l.3s===1j){b.3s=A("<1R></1R>");if(!b.l.2A){b.l.2A=[b.4h(),b.4h()]}if(b.l.2A.1m&&b.l.2A.1m!=2){b.l.2A=[b.l.2A[0],b.l.2A[0]]}}1i{b.3s=A("<1R></1R>")}b.3s.2O(b.Z).1l("k-3T-3s k-1V-4r");c D=b.l.3s,B=b.7T();(D=="3L")&&(B=="4Y")&&b.3s.v({t:0});(D=="2z")&&(B=="4Y")&&b.3s.v({2S:0});(D=="3L")&&(B=="4D")&&b.3s.v({3d:0});(D=="2z")&&(B=="4D")&&b.3s.v({u:0})}if(A(".k-3T-2y",b.Z).1m==0){A(\'<a 48="#"></a>\').2O(b.Z).1l("k-3T-2y")}if(b.l.2A&&b.l.2A.1m){6t(A(".k-3T-2y",b.Z).1m<b.l.2A.1m){A(\'<a 48="#"></a>\').2O(b.Z).1l("k-3T-2y")}}b.2Q=A(".k-3T-2y",b.Z).1l("k-1K-2u k-2p-2Y");b.2y=b.2Q.eq(0);b.2Q.22(b.3s).3m("a").2l(h(E){E.8h()}).4l(h(){A(b).1l("k-1K-4l")},h(){A(b).1v("k-1K-4l")}).2M(h(){C.2Q.1v("k-1K-2M");A(b).1l("k-1K-2M")}).7f(h(){A(b).1v("k-1K-2M")});b.2Q.1J(h(E){A(b).1p("3F.k-3T-2y",E)});b.2Q.7w(h(I){c F=A(b).1p("3F.k-3T-2y");if(C.l.1I){q}4x(I.2W){1s A.k.2W.cR:1s A.k.2W.cP:1s A.k.2W.bz:1s A.k.2W.by:1s A.k.2W.bw:1s A.k.2W.bx:if(!C.aj){C.aj=1j;A(b).1l("k-1K-2P");C.cX(I)}1y}c E,G,H=C.fc();if(C.l.2A&&C.l.2A.1m){E=G=C.2A(F)}1i{E=G=C.1F()}4x(I.2W){1s A.k.2W.cR:G=C.4h();1y;1s A.k.2W.cP:G=C.4K();1y;1s A.k.2W.bz:1s A.k.2W.by:G=E+H;1y;1s A.k.2W.bw:1s A.k.2W.bx:G=E-H;1y}C.bi(I,F,G)}).lR(h(E){if(C.aj){C.cU(E);C.4M(E);C.aj=1a;A(b).1v("k-1K-2P")}});b.71()},3x:h(){b.2Q.2i();b.Z.1v("k-3T k-3T-4Y k-3T-4D k-3T-1I k-1V k-1V-3B k-2p-2Y").4p("3T").3l(".3T");b.8s()},8a:h(G){c H=b.l;if(H.1I){q 1a}b.cX(G);b.d0={19:b.Z.3E(),18:b.Z.3r()};b.8Y=b.Z.1b();c B={x:G.3R,y:G.3Q};c E=b.cZ(B);c I=b.4K(),C;c D=b,F;b.2Q.1J(h(K){c J=1n.4j(E-D.2A(K));if(I>J){I=J;C=A(b);F=K}});D.bk=F;C.1l("k-1K-2P").2M();b.bi(G,F,E);q 1j},6L:h(B){q 1j},64:h(D){c B={x:D.3R,y:D.3Q};c C=b.cZ(B);b.bi(D,b.bk,C);q 1a},6U:h(B){b.2Q.1v("k-1K-2P");b.cU(B);b.4M(B);b.bk=1e;q 1a},cZ:h(B){c G,I;if("4Y"==b.7T()){G=b.d0.19;I=B.x-b.8Y.t}1i{G=b.d0.18;I=B.y-b.8Y.u}c E=(I/G);if(E>1){E=1}if(E<0){E=0}if("4D"==b.7T()){E=1-E}c C=b.4K()-b.4h();c H=E*C;c F=H%b.l.7y;c D=b.4h()+H-F;if(F>(b.l.7y/2)){D+=b.l.7y}q D},cX:h(B){b.3u("2E",B,{1F:b.1F()})},bi:h(G,C,E){if(b.l.2A&&b.l.2A.1m){c B=b.2Q[C];c F=b.2A(C?0:1);if((C==0&&E>=F)||(C==1&&E<=F)){E=F}if(E!=b.2A(C)){c D=b.2A();D[C]=E;c H=b.3u("6R",G,{2y:B,1F:E,2A:D});c F=b.2A(C?0:1);if(H!==1a){b.2A(C,E)}}}1i{if(E!=b.1F()){c H=b.3u("6R",G,{1F:E});if(H!==1a){b.4s("1F",E)}}}},cU:h(B){b.3u("3z",B,{1F:b.1F()})},4M:h(B){b.3u("7Y",B,{1F:b.1F()})},1F:h(B){if(1A.1m){b.4s("1F",B);b.4M()}q b.a6()},2A:h(B,C){if(1A.1m>1){b.l.2A[B]=C;b.71();b.4M()}if(1A.1m){if(b.l.2A&&b.l.2A.1m){q b.cK(B)}1i{q b.1F()}}1i{q b.cK()}},4s:h(B,C){A.1V.4J.4s.1D(b,1A);4x(B){1s"cv":b.Z.1v("k-3T-4Y k-3T-4D").1l("k-3T-"+b.7T());b.71();1y;1s"1F":b.71();1y}},7T:h(){c B=b.l.cv;if(B!="4Y"&&B!="4D"){B="4Y"}q B},fc:h(){c B=b.l.7y;q B},a6:h(){c B=b.l.1F;if(B<b.4h()){B=b.4h()}if(B>b.4K()){B=b.4K()}q B},cK:h(B){if(1A.1m){c C=b.l.2A[B];if(C<b.4h()){C=b.4h()}if(C>b.4K()){C=b.4K()}q C}1i{q b.l.2A}},4h:h(){c B=b.l.3L;q B},4K:h(){c B=b.l.2z;q B},71:h(){c F=b.l.3s,C=b.7T();if(b.l.2A&&b.l.2A.1m){c D=b,B,G;b.2Q.1J(h(J,I){c H=(D.2A(J)-D.4h())/(D.4K()-D.4h())*3a;A(b).v(C=="4Y"?"t":"3d",H+"%");if(D.l.3s===1j){if(C=="4Y"){(J==0)&&D.3s.v("t",H+"%");(J==1)&&D.3s.v("19",(H-cy)+"%")}1i{(J==0)&&D.3s.v("3d",(H)+"%");(J==1)&&D.3s.v("18",(H-cy)+"%")}}cy=H})}1i{c E=(b.1F()-b.4h())/(b.4K()-b.4h())*3a;b.2y.v(C=="4Y"?"t":"3d",E+"%");(F=="3L")&&(C=="4Y")&&b.3s.v({t:0,19:E+"%"});(F=="2z")&&(C=="4Y")&&b.3s.v({t:E+"%",19:(3a-E)+"%"});(F=="3L")&&(C=="4D")&&b.3s.v({u:(3a-E)+"%",18:E+"%"});(F=="2z")&&(C=="4D")&&b.3s.v({3d:E+"%",18:(3a-E)+"%"})}}}));A.1Q(A.k.3T,{9E:"1F 2A",3A:"1.52",f7:"6R",56:{74:0,5G:0,2z:3a,3L:0,cv:"4Y",3s:1a,7y:1,1F:0,2A:1e}})})(2o);(h(A){A.1V("k.1u",{5H:h(){b.a4(1j)},3x:h(){c B=b.l;b.Z.3l(".1u").1v(B.bf).4p("1u");b.$1u.1J(h(){c C=A.1p(b,"48.1u");if(C){b.48=C}c D=A(b).3l(".1u");A.1J(["48","5w","7e"],h(F,E){D.4p(E+".1u")})});b.$3U.22(b.$3N).1J(h(){if(A.1p(b,"3x.1u")){A(b).2i()}1i{A(b).1v([B.b8,B.4k,B.8C,B.87,B.9U,B.6o].5F(" "))}});if(B.5T){b.9C(1e,B.5T)}},4s:h(B,C){if((/^1S/).1P(B)){b.4R(C)}1i{b.l[B]=C;b.a4()}},1m:h(){q b.$1u.1m},cI:h(B){q B.3P&&B.3P.4Z(/\\s/g,"9l").4Z(/[^A-kU-kS-9\\-9l:\\.]/g,"")||b.l.hh+A.1p(B)},bY:h(B){q B.4Z(/:/g,"\\\\:")},9C:h(){c B=b.5T||(b.5T="k-1u-"+A.1p(b.Z[0]));q A.5T.1D(1e,[B].5r(A.fu(1A)))},a4:h(O){b.$3U=A("li:l7(a[48])",b.Z.is("1R")?A("> fz:8o",b.Z):b.Z);b.$1u=b.$3U.7k(h(){q A("a",b)[0]});b.$3N=A([]);c N=b,D=b.l;b.$3U.4l(h(){A(b).1l("k-1K-4l")},h(){A(b).1v("k-1K-4l")});b.$1u.2M(h(){A(b).1x().1l("k-1K-2M")}).7f(h(){A(b).1x().1v("k-1K-2M")});b.$1u.1J(h(Q,P){if(P.6Z&&P.6Z.4Z("#","")){N.$3N=N.$3N.22(N.bY(P.6Z))}1i{if(A(P).1T("48")!="#"){A.1p(P,"48.1u",P.48);A.1p(P,"5w.1u",P.48);c S=N.cI(P);P.48="#"+S;c R=A("#"+S);if(!R.1m){R=A(D.dw).1T("id",S).1l(D.9U).lp(N.$3N[Q-1]||N.Z);R.1p("3x.1u",1j)}N.$3N=N.$3N.22(R)}1i{D.1I.4n(Q+1)}}});if(O){if(b.Z.is("1R")){b.Z.1l("k-1u k-1V k-1V-3B k-2p-2Y");A("> fz:8o",b.Z).1l(D.bf)}1i{b.Z.1l(D.bf)}b.$3U.1l(D.b8);b.$3N.1l(D.9U);if(D.1S===3G){if(cH.6Z){b.$1u.1J(h(Q,P){if(P.6Z==cH.6Z){D.1S=Q;q 1a}})}1i{if(D.5T){c I=1o(N.9C(),10);if(I&&N.$1u[I]){D.1S=I}}1i{if(N.$3U.3m("."+D.4k).1m){D.1S=N.$3U.3F(N.$3U.3m("."+D.4k)[0])}}}}D.1S=D.1S===1e||D.1S!==3G?D.1S:0;D.1I=A.lf(D.1I.5r(A.7k(b.$3U.3m("."+D.87),h(Q,P){q N.$3U.3F(Q)}))).7c();if(A.8i(D.1S,D.1I)!=-1){D.1I.c3(A.8i(D.1S,D.1I),1)}b.$3N.1l(D.6o);b.$3U.1v(D.4k);if(D.1S!==1e){b.$3N.eq(D.1S).1v(D.6o);c E=[D.4k];if(D.8B){E.4n(D.8C)}b.$3U.eq(D.1S).1l(E.5F(" "));c B=h(){N.3u("1G",1e,N.k(N.$1u[D.1S],N.$3N[D.1S]))};if(A.1p(b.$1u[D.1S],"5w.1u")){b.5w(D.1S,B)}1i{B()}}A(30).3b("n9",h(){N.$1u.3l(".1u");N.$3U=N.$1u=N.$3N=1e})}1i{D.1S=b.$3U.3F(b.$3U.3m("."+D.4k)[0])}if(D.5T){b.9C(D.1S,D.5T)}1M(c G=0,M;M=b.$3U[G];G++){A(M)[A.8i(G,D.1I)!=-1&&!A(M).4g(D.4k)?"1l":"1v"](D.87)}if(D.7e===1a){b.$1u.4p("7e.1u")}c J,C;if(D.fx){if(D.fx.4V==9k){J=D.fx[0];C=D.fx[1]}1i{J=C=D.fx}}h H(P,Q){P.v({66:""});if(A.1W.43&&Q.24){P[0].31.fN("3m")}}c K=C?h(P,Q){Q.1Z(C,C.1H||"8Z",h(){Q.1v(D.6o);H(Q,C);N.3u("1G",1e,N.k(P,Q[0]))})}:h(P,Q){Q.1v(D.6o);N.3u("1G",1e,N.k(P,Q[0]))};c L=J?h(Q,P,R){P.1Z(J,J.1H||"8Z",h(){P.1l(D.6o);H(P,J);if(R){K(Q,R,P)}})}:h(Q,P,R){P.1l(D.6o);if(R){K(Q,R)}};h F(R,T,P,S){c Q=[D.4k];if(D.8B){Q.4n(D.8C)}T.1v("k-1K-2u").1l(Q.5F(" ")).7B().1v(Q.5F(" ")).1l("k-1K-2u");L(R,P,S)}b.$1u.3l(".1u").3b(D.1w+".1u",h(){c S=A(b).4U("li:eq(0)"),P=N.$3N.3m(":5L"),R=A(N.bY(b.6Z));if((S.4g("k-1K-2P")&&!D.8B)||S.4g(D.87)||A(b).4g(D.9X)||N.3u("4R",1e,N.k(b,R[0]))===1a){b.7f();q 1a}D.1S=N.$1u.3F(b);if(D.8B){if(S.4g("k-1K-2P")){N.l.1S=1e;S.1v([D.4k,D.8C].5F(" ")).1l("k-1K-2u");N.$3N.3z();L(b,P);b.7f();q 1a}1i{if(!P.1m){N.$3N.3z();c Q=b;N.5w(N.$1u.3F(b),h(){S.1l([D.4k,D.8C].5F(" ")).1v("k-1K-2u");K(Q,R)});b.7f();q 1a}}}if(D.5T){N.9C(D.1S,D.5T)}N.$3N.3z();if(R.1m){c Q=b;N.5w(N.$1u.3F(b),P.1m?h(){F(Q,S,P,R)}:h(){S.1l(D.4k).1v("k-1K-2u");K(Q,R)})}1i{7D"2o n6 nj: mq mo mn."}if(A.1W.43){b.7f()}q 1a});if(D.1w!="2l"){b.$1u.3b("2l.1u",h(){q 1a})}},22:h(E,D,C){if(C==3G){C=b.$1u.1m}c G=b.l;c I=A(G.hb.4Z(/#\\{48\\}/g,E).4Z(/#\\{bd\\}/g,D));I.1l(G.b8).1p("3x.1u",1j);c H=E.ai("#")==0?E.4Z("#",""):b.cI(A("a:8o-3o",I)[0]);c F=A("#"+H);if(!F.1m){F=A(G.dw).1T("id",H).1l(G.6o).1p("3x.1u",1j)}F.1l(G.9U);if(C>=b.$3U.1m){I.2O(b.Z);F.2O(b.Z[0].4e)}1i{I.cG(b.$3U[C]);F.cG(b.$3N[C])}G.1I=A.7k(G.1I,h(K,J){q K>=C?++K:K});b.a4();if(b.$1u.1m==1){I.1l(G.4k);F.1v(G.6o);c B=A.1p(b.$1u[0],"5w.1u");if(B){b.5w(C,B)}}b.3u("22",1e,b.k(b.$1u[C],b.$3N[C]))},2i:h(B){c D=b.l,E=b.$3U.eq(B).2i(),C=b.$3N.eq(B).2i();if(E.4g(D.4k)&&b.$1u.1m>1){b.4R(B+(B+1<b.$1u.1m?1:-1))}D.1I=A.7k(A.f1(D.1I,h(G,F){q G!=B}),h(G,F){q G>=B?--G:G});b.a4();b.3u("2i",1e,b.k(E.3q("a")[0],C[0]))},cD:h(B){c C=b.l;if(A.8i(B,C.1I)==-1){q}c D=b.$3U.eq(B).1v(C.87);if(A.1W.91){D.v("66","4d-7G");7Z(h(){D.v("66","7G")},0)}C.1I=A.f1(C.1I,h(F,E){q F!=B});b.3u("cD",1e,b.k(b.$1u[B],b.$3N[B]))},d2:h(C){c B=b,D=b.l;if(C!=D.1S){b.$3U.eq(C).1l(D.87);D.1I.4n(C);D.1I.7c();b.3u("d2",1e,b.k(b.$1u[C],b.$3N[C]))}},4R:h(B){if(2L B=="5b"){B=b.$1u.3F(b.$1u.3m("[48$="+B+"]")[0])}b.$1u.eq(B).8n(b.l.1w+".1u")},5w:h(G,K){c L=b,D=b.l,E=b.$1u.eq(G),J=E[0],H=K==3G||K===1a,B=E.1p("5w.1u");K=K||h(){};if(!B||!H&&A.1p(J,"7e.1u")){K();q}c M=h(N){c O=A(N),P=O.3q("*:en");q P.1m&&P.is(":7g(8J)")&&P||O};c C=h(){L.$1u.3m("."+D.9X).1v(D.9X).1J(h(){if(D.be){M(b).1x().2Z(M(b).1p("bd.1u"))}});L.bW=1e};if(D.be){c I=M(J).2Z();M(J).mK("<em></em>").3q("em").1p("bd.1u",I).2Z(D.be)}c F=A.1Q({},D.ds,{hI:B,hL:h(P,N){A(L.bY(J.6Z)).2Z(P);C();if(D.7e){A.1p(J,"7e.1u",1j)}L.3u("5w",1e,L.k(L.$1u[G],L.$3N[G]));9H{D.ds.hL(P,N)}9O(O){}K()}});if(b.bW){b.bW.mg();C()}E.1l(D.9X);L.bW=A.mc(F)},hI:h(C,B){b.$1u.eq(C).4p("7e.1u").1p("5w.1u",B)},k:h(C,B){q{l:b.l,hS:C,h6:B,3F:b.$1u.3F(C)}}});A.1Q(A.k.1u,{3A:"1.52",9E:"1m",56:{ds:1e,7e:1a,5T:1e,8B:1a,8C:"k-1u-8B",1I:[],87:"k-1K-1I",1w:"2l",fx:1e,6o:"k-1u-1L",hh:"k-1u-",9X:"k-1u-l5",bf:"k-1u-kX k-1d-8A k-1d-8V k-1V-4r k-2p-2Y",b8:"k-1K-2u k-2p-u",9U:"k-1u-h6 k-1V-3B k-2p-3d",dw:"<1R></1R>",4k:"k-1u-1S k-1K-2P",be:"lZ&#lW;",hb:\'<li><a 48="#{48}"><3p>#{bd}</3p></a></li>\'}});A.1Q(A.k.1u.4J,{dB:1e,lS:h(C,F){F=F||1a;c B=b,E=b.l.1S;h G(){B.dB=lT(h(){E=++E<B.$1u.1m?E:0;B.4R(E)},C)}h D(H){if(!H||H.hx){lU(B.dB)}}if(C){G();if(!F){b.$1u.3b(b.l.1w+".1u",D)}1i{b.$1u.3b(b.l.1w+".1u",h(){D();E=B.l.1S;G()})}}1i{D();b.$1u.3l(b.l.1w+".1u",D)}}})})(2o);(h($){$.1Q($.k,{1c:{3A:"1.52"}});c 70="1c";h aC(){b.hi=1a;b.86=1e;b.bo=1a;b.6S=[];b.8g=1a;b.7t=1a;b.dE="k-1c-1R";b.aR="k-1c-4d";b.di="k-1c-6N";b.6O="k-1c-8n";b.ep="k-1c-2e";b.m8="k-1c-1I";b.eo="k-1c-6n";b.eh="k-1c-5Q-2I";b.c4="k-1c-lD-lA-5n";b.dz=[];b.dz[""]={lv:"ly",9S:"lN",6r:"lJ",lI:"&#hn;&#hn;",6l:"lH",lG:"&#hq;&#hq;",84:"lL",4B:["lO","lM","lF","lx","ha","lw","lC","lB","lP","lQ","m4","m3"],4A:["m2","m5","m9","lV","ha","kZ","l1","kW","kV","kP","kO","kM"],5c:["kT","l6","ln","mb","le","ma","na"],5i:["n8","n7","nb","nc","ng","nf","nd"],c7:["mW","n4","n3","n2","n1","np","nq"],7L:"mm/dd/8l",4E:0,3I:1a};b.4X={82:"2M",5y:"1G",ew:{},5C:1e,aE:"",7o:"...",8E:"",hO:1a,9F:1a,8T:1a,es:1a,7H:1a,7I:1a,aq:1a,fh:"-10:+10",8M:1a,ex:b.bM,5k:"+10",2T:1e,3i:1e,1H:"8Z",9z:1e,a0:1e,7q:1e,f5:1e,9N:1e,f4:1,bs:0,60:1,88:12,am:"",b9:"",hu:1j,bZ:1a};$.1Q(b.4X,b.dz[""]);b.2H=$(\'<1R id="\'+b.dE+\'" 2D="k-1c k-1V k-1V-3B k-1d-8V k-2p-2Y k-1d-3h-mu"></1R>\')}$.1Q(aC.4J,{5P:"md",dZ:h(){if(b.hi){my.dZ.1D("",1A)}},mN:h(2b){94(b.4X,2b||{});q b},fy:h(1h,2b){c 8z=1e;1M(c aX in b.4X){c b4=1h.mM("1g:"+aX);if(b4){8z=8z||{};9H{8z[aX]=mL(b4)}9O(hF){8z[aX]=b4}}}c 3g=1h.3g.5R();c 4d=(3g=="1R"||3g=="3p");if(!1h.id){1h.id="dp"+(++b.ay)}c p=b.da($(1h),4d);p.2b=$.1Q({},2b||{},8z||{});if(3g=="1t"){b.hH(1h,p)}1i{if(4d){b.h7(1h,p)}}},da:h(1h,4d){c id=1h[0].id.4Z(/([:\\[\\]\\.])/g,"\\\\\\\\$1");q{id:id,1t:1h,5a:0,4G:0,4T:0,2r:0,2G:0,4d:4d,2H:(!4d?b.2H:$(\'<1R 2D="\'+b.aR+\' k-1c k-1V k-1V-3B k-1d-8V k-2p-2Y"></1R>\'))}},hH:h(1h,p){c 1t=$(1h);if(1t.4g(b.5P)){q}c aE=b.1z(p,"aE");c 3I=b.1z(p,"3I");if(aE){1t[3I?"d9":"ba"](\'<3p 2D="\'+b.di+\'">\'+aE+"</3p>")}c 82=b.1z(p,"82");if(82=="2M"||82=="7v"){1t.2M(b.8y)}if(82=="3S"||82=="7v"){c 7o=b.1z(p,"7o");c 8E=b.1z(p,"8E");c 8n=$(b.1z(p,"hO")?$("<8J/>").1l(b.6O).1T({eA:8E,hj:7o,3P:7o}):$(\'<3S 5u="3S"></3S>\').1l(b.6O).2Z(8E==""?7o:$("<8J/>").1T({eA:8E,hj:7o,3P:7o})));1t[3I?"d9":"ba"](8n);8n.2l(h(){if($.1c.8g&&$.1c.8G==1h){$.1c.6j()}1i{$.1c.8y(1h)}q 1a})}1t.1l(b.5P).7w(b.aS).ar(b.ck).3b("d4.1c",h(1w,6b,1F){p.2b[6b]=1F}).3b("d5.1c",h(1w,6b){q b.1z(p,6b)});$.1p(1h,70,p)},h7:h(1h,p){c d6=$(1h);if(d6.4g(b.5P)){q}d6.1l(b.5P).6N(p.2H).3b("d4.1c",h(1w,6b,1F){p.2b[6b]=1F}).3b("d5.1c",h(1w,6b){q b.1z(p,6b)});$.1p(1h,70,p);b.eF(p,b.bL(p));b.6X(p);b.b7(p)},j7:h(1t,ht,7q,2b,2C){c p=b.hz;if(!p){c id="dp"+(++b.ay);b.6v=$(\'<1t 5u="aQ" id="\'+id+\'" 1E="1" 31="1f: 2k; u: -ho;"/>\');b.6v.7w(b.aS);$("1U").6N(b.6v);p=b.hz=b.da(b.6v,1a);p.2b={};$.1p(b.6v[0],70,p)}94(p.2b,2b||{});b.6v.89(ht);b.5e=(2C?(2C.1m?2C:[2C.3R,2C.3Q]):1e);if(!b.5e){c bF=30.aB||1k.4o.bA||1k.1U.bA;c bl=30.7p||1k.4o.bH||1k.1U.bH;c 7F=1k.4o.23||1k.1U.23;c 8f=1k.4o.26||1k.1U.26;b.5e=[(bF/2)-3a+7F,(bl/2)-9Y+8f]}b.6v.v("t",b.5e[0]+"3e").v("u",b.5e[1]+"3e");p.2b.7q=7q;b.7t=1j;b.2H.1l(b.ep);b.8y(b.6v[0]);if($.9A){$.9A(b.2H)}$.1p(b.6v[0],70,p);q b},hV:h(1h){c $1h=$(1h);if(!$1h.4g(b.5P)){q}c 3g=1h.3g.5R();$.4p(1h,70);if(3g=="1t"){$1h.7B("."+b.di).2i().4H().7B("."+b.6O).2i().4H().1v(b.5P).3l("2M",b.8y).3l("7w",b.aS).3l("ar",b.ck)}1i{if(3g=="1R"||3g=="3p"){$1h.1v(b.5P).cb()}}},hX:h(1h){c $1h=$(1h);if(!$1h.4g(b.5P)){q}c 3g=1h.3g.5R();if(3g=="1t"){1h.1I=1a;$1h.7B("3S."+b.6O).1J(h(){b.1I=1a}).4H().7B("8J."+b.6O).v({24:"1.0",2q:""})}1i{if(3g=="1R"||3g=="3p"){c 4d=$1h.6W("."+b.aR);4d.6W().1v("k-1K-1I")}}b.6S=$.7k(b.6S,h(1F){q(1F==1h?1e:1F)})},i8:h(1h){c $1h=$(1h);if(!$1h.4g(b.5P)){q}c 3g=1h.3g.5R();if(3g=="1t"){1h.1I=1j;$1h.7B("3S."+b.6O).1J(h(){b.1I=1j}).4H().7B("8J."+b.6O).v({24:"0.5",2q:"2u"})}1i{if(3g=="1R"||3g=="3p"){c 4d=$1h.6W("."+b.aR);4d.6W().1l("k-1K-1I")}}b.6S=$.7k(b.6S,h(1F){q(1F==1h?1e:1F)});b.6S[b.6S.1m]=1h},a7:h(1h){if(!1h){q 1a}1M(c i=0;i<b.6S.1m;i++){if(b.6S[i]==1h){q 1j}}q 1a},4S:h(1h){9H{q $.1p(1h,70)}9O(hF){7D"hc 1Y 1p 1M b 1c"}},hN:h(1h,3X,1F){c 2b=3X||{};if(2L 3X=="5b"){2b={};2b[3X]=1F}c p=b.4S(1h);if(p){if(b.86==p){b.6j(1e)}94(p.2b,2b);c 1g=2c 2g();94(p,{65:1e,8x:1e,9Q:1e,5d:1e,5a:1g.3v(),4G:1g.3O(),4T:1g.2R(),4O:1g.3v(),5A:1g.3O(),5l:1g.2R(),2r:1g.3O(),2G:1g.2R()});b.6X(p)}},kk:h(1h,3X,1F){b.hN(1h,3X,1F)},k2:h(1h){c p=b.4S(1h);if(p){b.6X(p)}},jg:h(1h,1g,8O){c p=b.4S(1h);if(p){b.eF(p,1g,8O);b.6X(p);b.b7(p)}},k6:h(1h){c p=b.4S(1h);if(p&&!p.4d){b.e4(p)}q(p?b.ej(p):1e)},aS:h(1w){c p=$.1c.4S(1w.1h);c 6d=1j;c 3I=p.2H.is(".k-1c-eO");p.bo=1j;if($.1c.8g){4x(1w.2W){1s 9:$.1c.6j(1e,"");1y;1s 13:c cg=$("73."+$.1c.c4+", 73."+$.1c.eh,p.2H);if(cg[0]){$.1c.eg(1w.1h,p.4G,p.4T,cg[0])}1i{$.1c.6j(1e,$.1c.1z(p,"1H"))}q 1a;1y;1s 27:$.1c.6j(1e,$.1c.1z(p,"1H"));1y;1s 33:$.1c.5o(1w.1h,(1w.4b?-$.1c.1z(p,"88"):-$.1c.1z(p,"60")),"M");1y;1s 34:$.1c.5o(1w.1h,(1w.4b?+$.1c.1z(p,"88"):+$.1c.1z(p,"60")),"M");1y;1s 35:if(1w.4b||1w.4L){$.1c.hr(1w.1h)}6d=1w.4b||1w.4L;1y;1s 36:if(1w.4b||1w.4L){$.1c.eC(1w.1h)}6d=1w.4b||1w.4L;1y;1s 37:if(1w.4b||1w.4L){$.1c.5o(1w.1h,(3I?+1:-1),"D")}6d=1w.4b||1w.4L;if(1w.hv.c8){$.1c.5o(1w.1h,(1w.4b?-$.1c.1z(p,"88"):-$.1c.1z(p,"60")),"M")}1y;1s 38:if(1w.4b||1w.4L){$.1c.5o(1w.1h,-7,"D")}6d=1w.4b||1w.4L;1y;1s 39:if(1w.4b||1w.4L){$.1c.5o(1w.1h,(3I?-1:+1),"D")}6d=1w.4b||1w.4L;if(1w.hv.c8){$.1c.5o(1w.1h,(1w.4b?+$.1c.1z(p,"88"):+$.1c.1z(p,"60")),"M")}1y;1s 40:if(1w.4b||1w.4L){$.1c.5o(1w.1h,+7,"D")}6d=1w.4b||1w.4L;1y;2u:6d=1a}}1i{if(1w.2W==36&&1w.4b){$.1c.8y(b)}1i{6d=1a}}if(6d){1w.8h();1w.hA()}},ck:h(1w){c p=$.1c.4S(1w.1h);if($.1c.1z(p,"hu")){c 6F=$.1c.hk($.1c.1z(p,"7L"));c ca=a9.kH(1w.hd==3G?1w.2W:1w.hd);q 1w.4b||(ca<" "||!6F||6F.ai(ca)>-1)}},8y:h(1t){1t=1t.1h||1t;if(1t.3g.5R()!="1t"){1t=$("1t",1t.4e)[0]}if($.1c.a7(1t)||$.1c.8G==1t){q}c p=$.1c.4S(1t);c a0=$.1c.1z(p,"a0");94(p.2b,(a0?a0.1D(1t,[1t,p]):{}));$.1c.6j(1e,"");$.1c.8G=1t;$.1c.e4(p);if($.1c.7t){1t.1F=""}if(!$.1c.5e){$.1c.5e=$.1c.ek(1t);$.1c.5e[1]+=1t.5f}c 4Q=1a;$(1t).4U().1J(h(){4Q|=$(b).v("1f")=="5g";q!4Q});if(4Q&&$.1W.6s){$.1c.5e[0]-=1k.4o.23;$.1c.5e[1]-=1k.4o.26}c 1b={t:$.1c.5e[0],u:$.1c.5e[1]};$.1c.5e=1e;p.65=1e;p.2H.v({1f:"2k",66:"7G",u:"-k1"});$.1c.6X(p);1b=$.1c.hM(p,1b,4Q);p.2H.v({1f:($.1c.7t&&$.9A?"5Z":(4Q?"5g":"2k")),66:"7m",t:1b.t+"3e",u:1b.u+"3e"});if(!p.4d){c 5y=$.1c.1z(p,"5y")||"1G";c 1H=$.1c.1z(p,"1H");c 7J=h(){$.1c.8g=1j;if($.1W.43&&1o($.1W.3A,10)<7){$("aJ.k-1c-ez").v({19:p.2H.19()+4,18:p.2H.18()+4})}};if($.1q&&$.1q[5y]){p.2H.1G(5y,$.1c.1z(p,"ew"),1H,7J)}1i{p.2H[5y](1H,7J)}if(1H==""){7J()}if(p.1t[0].5u!="3h"){p.1t[0].2M()}$.1c.86=p}},6X:h(p){c co={19:p.2H.19()+4,18:p.2H.18()+4};c hy=b;p.2H.cb().6N(b.hP(p)).3q("aJ.k-1c-ez").v({19:co.19,18:co.18}).4H().3q("3S, .k-1c-4y, .k-1c-4w, .k-1c-c0 73 a").3b("jB",h(){$(b).1v("k-1K-4l")}).3b("ch",h(){if(!hy.a7(p.4d?p.2H.1x()[0]:p.1t[0])){$(b).4U(".k-1c-c0").3q("a").1v("k-1K-4l");$(b).1l("k-1K-4l")}}).4H().3q("."+b.c4+" a").8n("ch").4H();c 4m=b.bB(p);c bn=4m[1];c 19=17;if(bn>1){p.2H.1l("k-1c-9y-"+bn).v("19",(19*bn)+"em")}1i{p.2H.1v("k-1c-9y-2 k-1c-9y-3 k-1c-9y-4").19("")}p.2H[(4m[0]!=1||4m[1]!=1?"22":"2i")+"hK"]("k-1c-9y");p.2H[(b.1z(p,"3I")?"22":"2i")+"hK"]("k-1c-eO");if(p.1t&&p.1t[0].5u!="3h"&&p==$.1c.86){$(p.1t[0]).2M()}},hM:h(p,1b,4Q){c 2C=p.1t?b.ek(p.1t[0]):1e;c bF=30.aB||(1k.4o?1k.4o.bA:1k.1U.bA);c bl=30.7p||(1k.4o?1k.4o.bH:1k.1U.bH);c 7F=1k.4o.23||1k.1U.23;c 8f=1k.4o.26||1k.1U.26;if(b.1z(p,"3I")||(1b.t+p.2H.19()-7F)>bF){1b.t=1n.2z((4Q?0:7F),2C[0]+(p.1t?p.1t.19():0)-(4Q?7F:0)-p.2H.19()-(4Q&&$.1W.6s?1k.4o.23:0))}1i{1b.t-=(4Q?7F:0)}if((1b.u+p.2H.18()-8f)>bl){1b.u=1n.2z((4Q?0:8f),2C[1]-(4Q?8f:0)-(b.7t?0:p.2H.18())-(4Q&&$.1W.6s?1k.4o.26:0))}1i{1b.u-=(4Q?8f:0)}q 1b},ek:h(7R){6t(7R&&(7R.5u=="3h"||7R.hm!=1)){7R=7R.hw}c 1f=$(7R).1b();q[1f.t,1f.u]},6j:h(1t,1H){c p=b.86;if(!p||(1t&&p!=$.1p(1t,70))){q}if(p.8H){b.aY("#"+p.id,b.as(p,p.4O,p.5A,p.5l))}p.8H=1a;if(b.8g){1H=(1H!=1e?1H:b.1z(p,"1H"));c 5y=b.1z(p,"5y");c 7J=h(){$.1c.ev(p)};if(1H!=""&&$.1q&&$.1q[5y]){p.2H.1L(5y,$.1c.1z(p,"ew"),1H,7J)}1i{p.2H[(1H==""?"1L":(5y=="jC"?"jx":(5y=="ju"?"jv":"1L")))](1H,7J)}if(1H==""){b.ev(p)}c 9N=b.1z(p,"9N");if(9N){9N.1D((p.1t?p.1t[0]:1e),[(p.1t?p.1t.89():""),p])}b.8g=1a;b.8G=1e;if(b.7t){b.6v.v({1f:"2k",t:"0",u:"-ho"});if($.9A){$.kv();$("1U").6N(b.2H)}}b.7t=1a}b.86=1e},ev:h(p){p.2H.1v(b.ep).3l(".k-1c-c0")},fv:h(1w){if(!$.1c.86){q}c $1h=$(1w.1h);if(($1h.4U("#"+$.1c.dE).1m==0)&&!$1h.4g($.1c.5P)&&!$1h.4g($.1c.6O)&&$.1c.8g&&!($.1c.7t&&$.9A)){$.1c.6j(1e,"")}},5o:h(id,1b,63){c 1h=$(id);c p=b.4S(1h[0]);if(b.a7(1h[0])){q}b.bv(p,1b,63);b.6X(p)},eC:h(id){c 1h=$(id);c p=b.4S(1h[0]);if(b.1z(p,"es")&&p.4O){p.5a=p.4O;p.2r=p.4G=p.5A;p.2G=p.4T=p.5l}1i{c 1g=2c 2g();p.5a=1g.3v();p.2r=p.4G=1g.3O();p.2G=p.4T=1g.2R()}b.au(p);b.5o(1h)},dS:h(id,4R,63){c 1h=$(id);c p=b.4S(1h[0]);p.bb=1a;p["1S"+(63=="M"?"hp":"hs")]=p["ky"+(63=="M"?"hp":"hs")]=1o(4R.l[4R.ks].1F,10);b.au(p);b.5o(1h)},dT:h(id){c 1h=$(id);c p=b.4S(1h[0]);if(p.1t&&p.bb&&!$.1W.43){p.1t[0].2M()}p.bb=!p.bb},eg:h(id,2n,2a,73){c 1h=$(id);if($(73).4g(b.eo)||b.a7(1h[0])){q}c p=b.4S(1h[0]);p.5a=p.4O=$("a",73).2Z();p.4G=p.5A=2n;p.4T=p.5l=2a;if(p.8H){p.8x=p.9Q=p.5d=1e}b.aY(id,b.as(p,p.4O,p.5A,p.5l));if(p.8H){p.65=b.49(2c 2g(p.5l,p.5A,p.4O));b.6X(p)}},hr:h(id){c 1h=$(id);c p=b.4S(1h[0]);p.8H=1a;p.8x=p.9Q=p.5d=p.65=1e;b.aY(1h,"")},aY:h(id,7s){c 1h=$(id);c p=b.4S(1h[0]);7s=(7s!=1e?7s:b.as(p));if(p.1t){p.1t.89(7s)}b.b7(p);c 7q=b.1z(p,"7q");if(7q){7q.1D((p.1t?p.1t[0]:1e),[7s,p])}1i{if(p.1t){p.1t.8n("7Y")}}if(p.4d){b.6X(p)}1i{if(!p.8H){b.6j(1e,b.1z(p,"1H"));b.8G=p.1t[0];if(2L(p.1t[0])!="6J"){p.1t[0].2M()}b.8G=1e}}},b7:h(p){c am=b.1z(p,"am");if(am){c b9=b.1z(p,"b9")||b.1z(p,"7L");c 1g=b.ej(p);7s=b.98(b9,1g,b.7O(p));$(am).1J(h(){$(b).89(7s)})}},kB:h(1g){c 2I=1g.8u();q[(2I>0&&2I<6),""]},bM:h(1g){c 5O=2c 2g(1g.2R(),1g.3O(),1g.3v());c 8F=2c 2g(5O.2R(),1-1,4);c 4E=8F.8u()||7;8F.aI(8F.3v()+1-4E);if(4E<4&&5O<8F){5O.aI(5O.3v()-3);q $.1c.bM(5O)}1i{if(5O>2c 2g(5O.2R(),12-1,28)){4E=2c 2g(5O.2R()+1,1-1,4).8u()||7;if(4E>4&&(5O.8u()||7)<4E-3){q 1}}}q 1n.9W(((5O-8F)/ko)/7)+1},hD:h(3H,1F,2b){if(3H==1e||1F==1e){7D"dU 1A"}1F=(2L 1F=="6J"?1F.dW():1F+"");if(1F==""){q 1e}c 5k=(2b?2b.5k:1e)||b.4X.5k;c 5i=(2b?2b.5i:1e)||b.4X.5i;c 5c=(2b?2b.5c:1e)||b.4X.5c;c 4A=(2b?2b.4A:1e)||b.4X.4A;c 4B=(2b?2b.4B:1e)||b.4X.4B;c 2a=-1;c 2n=-1;c 2I=-1;c 8p=-1;c 5q=1a;c 5p=h(3D){c 51=(3j+1<3H.1m&&3H.3Z(3j+1)==3D);if(51){3j++}q 51};c 8I=h(3D){5p(3D);c eD=(3D=="@"?14:(3D=="y"?4:(3D=="o"?3:2)));c 1E=eD;c 6I=0;6t(1E>0&&5B<1F.1m&&1F.3Z(5B)>="0"&&1F.3Z(5B)<="9"){6I=6I*10+1o(1F.3Z(5B++),10);1E--}if(1E==eD){7D"hc 8v at 1f "+5B}q 6I};c ef=h(3D,b5,bc){c aF=(5p(3D)?bc:b5);c 1E=0;1M(c j=0;j<aF.1m;j++){1E=1n.2z(1E,aF[j].1m)}c 3X="";c hE=5B;6t(1E>0&&5B<1F.1m){3X+=1F.3Z(5B++);1M(c i=0;i<aF.1m;i++){if(3X==aF[i]){q i+1}}1E--}7D"km 3X at 1f "+hE};c aP=h(){if(1F.3Z(5B)!=3H.3Z(3j)){7D"ki 5q at 1f "+5B}5B++};c 5B=0;1M(c 3j=0;3j<3H.1m;3j++){if(5q){if(3H.3Z(3j)=="\'"&&!5p("\'")){5q=1a}1i{aP()}}1i{4x(3H.3Z(3j)){1s"d":2I=8I("d");1y;1s"D":ef("D",5i,5c);1y;1s"o":8p=8I("o");1y;1s"m":2n=8I("m");1y;1s"M":2n=ef("M",4A,4B);1y;1s"y":2a=8I("y");1y;1s"@":c 1g=2c 2g(8I("@"));2a=1g.2R();2n=1g.3O()+1;2I=1g.3v();1y;1s"\'":if(5p("\'")){aP()}1i{5q=1j}1y;2u:aP()}}}if(2a==-1){2a=2c 2g().2R()}1i{if(2a<3a){2a+=2c 2g().2R()-2c 2g().2R()%3a+(2a<=5k?0:-3a)}}if(8p>-1){2n=1;2I=8p;do{c dF=b.7X(2a,2n-1);if(2I<=dF){1y}2n++;2I-=dF}6t(1j)}c 1g=b.49(2c 2g(2a,2n-1,2I));if(1g.2R()!=2a||1g.3O()+1!=2n||1g.3v()!=2I){7D"dU 1g"}q 1g},kg:"8l-mm-dd",i5:"D, dd M 8l",ij:"8l-mm-dd",hW:"D, d M y",iq:"i2, dd-M-y",i3:"D, d M y",iW:"D, d M 8l",iw:"D, d M 8l",j9:"D, d M y",iT:"@",iD:"8l-mm-dd",98:h(3H,1g,2b){if(!1g){q""}c 5i=(2b?2b.5i:1e)||b.4X.5i;c 5c=(2b?2b.5c:1e)||b.4X.5c;c 4A=(2b?2b.4A:1e)||b.4X.4A;c 4B=(2b?2b.4B:1e)||b.4X.4B;c 5p=h(3D){c 51=(3j+1<3H.1m&&3H.3Z(3j+1)==3D);if(51){3j++}q 51};c aW=h(3D,1F,hC){c 6I=""+1F;if(5p(3D)){6t(6I.1m<hC){6I="0"+6I}}q 6I};c ea=h(3D,1F,b5,bc){q(5p(3D)?bc[1F]:b5[1F])};c 5E="";c 5q=1a;if(1g){1M(c 3j=0;3j<3H.1m;3j++){if(5q){if(3H.3Z(3j)=="\'"&&!5p("\'")){5q=1a}1i{5E+=3H.3Z(3j)}}1i{4x(3H.3Z(3j)){1s"d":5E+=aW("d",1g.3v(),2);1y;1s"D":5E+=ea("D",1g.8u(),5i,5c);1y;1s"o":c 8p=1g.3v();1M(c m=1g.3O()-1;m>=0;m--){8p+=b.7X(1g.2R(),m)}5E+=aW("o",8p,3);1y;1s"m":5E+=aW("m",1g.3O()+1,2);1y;1s"M":5E+=ea("M",1g.3O(),4A,4B);1y;1s"y":5E+=(5p("y")?1g.2R():(1g.hG()%3a<10?"0":"")+1g.hG()%3a);1y;1s"@":5E+=1g.44();1y;1s"\'":if(5p("\'")){5E+="\'"}1i{5q=1j}1y;2u:5E+=3H.3Z(3j)}}}}q 5E},hk:h(3H){c 6F="";c 5q=1a;1M(c 3j=0;3j<3H.1m;3j++){if(5q){if(3H.3Z(3j)=="\'"&&!5p("\'")){5q=1a}1i{6F+=3H.3Z(3j)}}1i{4x(3H.3Z(3j)){1s"d":1s"m":1s"y":1s"@":6F+="mG";1y;1s"D":1s"M":q 1e;1s"\'":if(5p("\'")){6F+="\'"}1i{5q=1j}1y;2u:6F+=3H.3Z(3j)}}}q 6F},1z:h(p,3X){q p.2b[3X]!==3G?p.2b[3X]:b.4X[3X]},e4:h(p){c 7L=b.1z(p,"7L");c 9B=p.1t?p.1t.89():1e;p.8x=p.9Q=p.5d=1e;c 1g=5C=b.bL(p);c 2b=b.7O(p);9H{1g=b.hD(7L,9B,2b)||5C}9O(1w){b.dZ(1w);1g=5C}p.5a=1g.3v();p.2r=p.4G=1g.3O();p.2G=p.4T=1g.2R();p.4O=(9B?1g.3v():0);p.5A=(9B?1g.3O():0);p.5l=(9B?1g.2R():0);b.bv(p)},bL:h(p){c 1g=b.bC(b.1z(p,"5C"),2c 2g());c 2T=b.6V(p,"3L",1j);c 3i=b.6V(p,"2z");1g=(2T&&1g<2T?2T:1g);1g=(3i&&1g>3i?3i:1g);q 1g},bC:h(1g,5C){c h9=h(1b){c 1g=2c 2g();1g.aI(1g.3v()+1b);q 1g};c hl=h(1b,dL){c 1g=2c 2g();c 2a=1g.2R();c 2n=1g.3O();c 2I=1g.3v();c dJ=/([+-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g;c 51=dJ.7j(1b);6t(51){4x(51[2]||"d"){1s"d":1s"D":2I+=1o(51[1],10);1y;1s"w":1s"W":2I+=1o(51[1],10)*7;1y;1s"m":1s"M":2n+=1o(51[1],10);2I=1n.3L(2I,dL(2a,2n));1y;1s"y":1s"Y":2a+=1o(51[1],10);2I=1n.3L(2I,dL(2a,2n));1y}51=dJ.7j(1b)}q 2c 2g(2a,2n,2I)};1g=(1g==1e?5C:(2L 1g=="5b"?hl(1g,b.7X):(2L 1g=="8v"?(a2(1g)?5C:h9(1g)):1g)));1g=(1g&&1g.dW()=="dU 2g"?5C:1g);if(1g){1g.h8(0);1g.lY(0);1g.lX(0);1g.lt(0)}q b.49(1g)},49:h(1g){if(!1g){q 1e}1g.h8(1g.he()>12?1g.he()+2:0);q 1g},eF:h(p,1g,8O){c hB=!(1g);c hf=p.4G;c hg=p.4T;1g=b.bC(1g,2c 2g());p.5a=p.4O=1g.3v();p.2r=p.4G=p.5A=1g.3O();p.2G=p.4T=p.5l=1g.2R();if(hf!=p.4G||hg!=p.4T){b.au(p)}b.bv(p);if(p.1t){p.1t.89(hB?"":b.as(p))}},ej:h(p){c hQ=(!p.5l||(p.1t&&p.1t.89()=="")?1e:b.49(2c 2g(p.5l,p.5A,p.4O)));q hQ},hP:h(p){c 6T=2c 2g();6T=b.49(2c 2g(6T.2R(),6T.3O(),6T.3v()));c 3I=b.1z(p,"3I");c bZ=b.1z(p,"bZ");c 9F=b.1z(p,"9F");c 8T=b.1z(p,"8T");c 4m=b.bB(p);c bs=b.1z(p,"bs");c 60=b.1z(p,"60");c 88=b.1z(p,"88");c bK=(4m[0]!=1||4m[1]!=1);c aH=b.49((!p.4O?2c 2g(kQ,9,9):2c 2g(p.5l,p.5A,p.4O)));c 2T=b.6V(p,"3L",1j);c 3i=b.6V(p,"2z");c 2r=p.2r-bs;c 2G=p.2G;if(2r<0){2r+=12;2G--}if(3i){c 9I=b.49(2c 2g(3i.2R(),3i.3O()-4m[1]+1,3i.3v()));9I=(2T&&9I<2T?2T:9I);6t(b.49(2c 2g(2G,2r,1))>9I){2r--;if(2r<0){2r=11;2G--}}}c 6r=b.1z(p,"6r");6r=(!8T?6r:b.98(6r,b.49(2c 2g(2G,2r-60,1)),b.7O(p)));c 4y=(b.dI(p,-1,2G,2r)?\'<a 2D="k-1c-4y k-2p-2Y" 7M="2o.1c.5o(\\\'#\'+p.id+"\', -"+60+", \'M\');\\" 3P=\\""+6r+\'"><3p 2D="k-4a k-4a-bU-8L-\'+(3I?"e":"w")+\'">\'+6r+"</3p></a>":(9F?"":\'<a 2D="k-1c-4y k-2p-2Y k-1K-1I" 3P="\'+6r+\'"><3p 2D="k-4a k-4a-bU-8L-\'+(3I?"e":"w")+\'">\'+6r+"</3p></a>"));c 6l=b.1z(p,"6l");6l=(!8T?6l:b.98(6l,b.49(2c 2g(2G,2r+60,1)),b.7O(p)));c 4w=(b.dI(p,+1,2G,2r)?\'<a 2D="k-1c-4w k-2p-2Y" 7M="2o.1c.5o(\\\'#\'+p.id+"\', +"+60+", \'M\');\\" 3P=\\""+6l+\'"><3p 2D="k-4a k-4a-bU-8L-\'+(3I?"w":"e")+\'">\'+6l+"</3p></a>":(9F?"":\'<a 2D="k-1c-4w k-2p-2Y k-1K-1I" 3P="\'+6l+\'"><3p 2D="k-4a k-4a-bU-8L-\'+(3I?"w":"e")+\'">\'+6l+"</3p></a>"));c 84=b.1z(p,"84");c ey=(b.1z(p,"es")&&p.4O?aH:6T);84=(!8T?84:b.98(84,ey,b.7O(p)));c e3=\'<3S 5u="3S" 2D="k-1c-7h k-1K-2u k-hR-mk k-2p-2Y" 7M="2o.1c.6j();">\'+b.1z(p,"9S")+"</3S>";c fb=(bZ)?\'<1R 2D="k-1c-hJ k-1V-3B">\'+(3I?e3:"")+(b.dV(p,ey)?\'<3S 5u="3S" 2D="k-1c-5Q k-1K-2u k-hR-8t k-2p-2Y" 7M="2o.1c.eC(\\\'#\'+p.id+"\');\\">"+84+"</3S>":"")+(3I?"":e3)+"</1R>":"";c 4E=1o(b.1z(p,"4E"));4E=(a2(4E)?0:4E);c 5c=b.1z(p,"5c");c 5i=b.1z(p,"5i");c c7=b.1z(p,"c7");c 4B=b.1z(p,"4B");c 4A=b.1z(p,"4A");c 9z=b.1z(p,"9z");c 8M=b.1z(p,"8M");c ex=b.1z(p,"ex")||b.bM;c 8O=p.8x?b.49(2c 2g(p.5d,p.9Q,p.8x)):aH;c 5C=b.bL(p);c 2Z="";1M(c 8W=0;8W<4m[0];8W++){c 76="";1M(c a1=0;a1<4m[1];a1++){c 7U=b.49(2c 2g(2G,2r,p.5a));c 8r=" k-2p-2Y";c 5D="";if(bK){5D+=\'<1R 2D="k-1c-76 k-1c-76-\';4x(a1){1s 0:5D+="8o";8r=" k-2p-"+(3I?"2S":"t");1y;1s 4m[1]-1:5D+="en";8r=" k-2p-"+(3I?"t":"2S");1y;2u:5D+="8R";8r="";1y}5D+=\'">\'}5D+=\'<1R 2D="k-1c-4r k-1V-4r k-1d-8V\'+8r+\'">\'+(/2Y|t/.1P(8r)&&8W==0?(3I?4w:4y):"")+(/2Y|2S/.1P(8r)&&8W==0?(3I?4y:4w):"")+b.fd(p,2r,2G,2T,3i,7U,8W>0||a1>0,4B,4A)+\'</1R><fa 2D="k-1c-c0"><9P><br>\';c 9P="";1M(c 6z=0;6z<7;6z++){c 2I=(6z+4E)%7;9P+="<eI"+((6z+4E+6)%7>=5?\' 2D="k-1c-fs-4H"\':"")+\'><3p 3P="\'+5c[2I]+\'">\'+c7[2I]+"</3p></eI>"}5D+=9P+"</br></9P><aA>";c er=b.7X(2G,2r);if(2G==p.4T&&2r==p.4G){p.5a=1n.3L(p.5a,er)}c ei=(b.fi(2G,2r)-4E+7)%7;c fB=(bK?6:1n.eM((ei+er)/7));c 41=b.49(2c 2g(2G,2r,1-ei));1M(c et=0;et<fB;et++){5D+="<br>";c aA="";1M(c 6z=0;6z<7;6z++){c 9J=(9z?9z.1D((p.1t?p.1t[0]:1e),[41]):[1j,""]);c 8N=(41.3O()!=2r);c 6n=8N||!9J[0]||(2T&&41<2T)||(3i&&41>3i);aA+=\'<73 2D="\'+((6z+4E+6)%7>=5?" k-1c-fs-4H":"")+(8N?" k-1c-ld-2n":"")+((41.44()==7U.44()&&2r==p.4G&&p.bo)||(5C.44()==41.44()&&5C.44()==7U.44())?" "+b.c4:"")+(6n?" "+b.eo+" k-1K-1I":"")+(8N&&!8M?"":" "+9J[1]+(41.44()>=aH.44()&&41.44()<=8O.44()?" "+b.eh:"")+(41.44()==6T.44()?" k-1c-6T":""))+\'"\'+((!8N||8M)&&9J[2]?\' 3P="\'+9J[2]+\'"\':"")+(6n?"":" 7M=\\"2o.1c.eg(\'#"+p.id+"\',"+2r+","+2G+\', b);q 1a;"\')+">"+(8N?(8M?41.3v():"&#dM;"):(6n?41.3v():\'<a 2D="k-1K-2u\'+(41.44()==6T.44()?" k-1K-fV":"")+(41.44()>=aH.44()&&41.44()<=8O.44()?" k-1K-2P":"")+\'" 48="#">\'+41.3v()+"</a>"))+"</73>";41.aI(41.3v()+1);41=b.49(41)}5D+=aA+"</br>"}2r++;if(2r>11){2r=0;2G++}5D+="</aA></fa>"+(bK?"</1R>":"");76+=5D}2Z+=76}2Z+=(!p.4d?fb:"")+($.1W.43&&1o($.1W.3A,10)<7&&!p.4d?\'<aJ eA="l3:1a;" 2D="k-1c-ez" l2="0"></aJ>\':"");p.bo=1a;q 2Z},fd:h(p,2r,2G,2T,3i,7U,8t,4B,4A){2T=(p.65&&2T&&7U<2T?7U:2T);c 7H=b.1z(p,"7H");c 7I=b.1z(p,"7I");c aq=b.1z(p,"aq");c 2Z=\'<1R 2D="k-1c-3P">\';c 8q="";if(8t||!7H){8q+=\'<3p 2D="k-1c-2n">\'+4B[2r]+"</3p> "}1i{c fe=(2T&&2T.2R()==2G);c ff=(3i&&3i.2R()==2G);8q+=\'<4R 2D="k-1c-2n" fg="2o.1c.dS(\\\'#\'+p.id+"\', b, \'M\');\\" 7M=\\"2o.1c.dT(\'#"+p.id+"\');\\">";1M(c 2n=0;2n<12;2n++){if((!fe||2n>=2T.3O())&&(!ff||2n<=3i.3O())){8q+=\'<7P 1F="\'+2n+\'"\'+(2n==2r?\' 1S="1S"\':"")+">"+4A[2n]+"</7P>"}}8q+="</4R>"}if(!aq){2Z+=8q+((8t||7H||7I)&&(!(7H&&7I))?"&#dM;":"")}if(8t||!7I){2Z+=\'<3p 2D="k-1c-2a">\'+2G+"</3p>"}1i{c 77=b.1z(p,"fh").8Q(":");c 2a=0;c 5d=0;if(77.1m!=2){2a=2G-10;5d=2G+10}1i{if(77[0].3Z(0)=="+"||77[0].3Z(0)=="-"){2a=5d=2c 2g().2R();2a+=1o(77[0],10);5d+=1o(77[1],10)}1i{2a=1o(77[0],10);5d=1o(77[1],10)}}2a=(2T?1n.2z(2a,2T.2R()):2a);5d=(3i?1n.3L(5d,3i.2R()):5d);2Z+=\'<4R 2D="k-1c-2a" fg="2o.1c.dS(\\\'#\'+p.id+"\', b, \'Y\');\\" 7M=\\"2o.1c.dT(\'#"+p.id+"\');\\">";1M(;2a<=5d;2a++){2Z+=\'<7P 1F="\'+2a+\'"\'+(2a==2G?\' 1S="1S"\':"")+">"+2a+"</7P>"}2Z+="</4R>"}if(aq){2Z+=(8t||7H||7I?"&#dM;":"")+8q}2Z+="</1R>";q 2Z},bv:h(p,1b,63){c 2a=p.2G+(63=="Y"?1b:0);c 2n=p.2r+(63=="M"?1b:0);c 2I=1n.3L(p.5a,b.7X(2a,2n))+(63=="D"?1b:0);c 1g=b.49(2c 2g(2a,2n,2I));c 2T=b.6V(p,"3L",1j);c 3i=b.6V(p,"2z");1g=(2T&&1g<2T?2T:1g);1g=(3i&&1g>3i?3i:1g);p.5a=1g.3v();p.2r=p.4G=1g.3O();p.2G=p.4T=1g.2R();if(63=="M"||63=="Y"){b.au(p)}},au:h(p){c dH=b.1z(p,"f5");if(dH){dH.1D((p.1t?p.1t[0]:1e),[p.4T,p.4G+1,p])}},bB:h(p){c 4m=b.1z(p,"f4");q(4m==1e?[1,1]:(2L 4m=="8v"?[1,4m]:4m))},6V:h(p,f6,f9){c 1g=b.bC(b.1z(p,f6+"2g"),1e);q(!f9||!p.65?1g:(!1g||p.65>1g?p.65:1g))},7X:h(2a,2n){q 32-2c 2g(2a,2n,32).3v()},fi:h(2a,2n){q 2c 2g(2a,2n,1).8u()},dI:h(p,1b,fj,ft){c 4m=b.bB(p);c 1g=b.49(2c 2g(fj,ft+(1b<0?1b:4m[1]),1));if(1b<0){1g.aI(b.7X(1g.2R(),1g.3O()))}q b.dV(p,1g)},dV:h(p,1g){c 9u=(!p.65?1e:b.49(2c 2g(p.4T,p.4G,p.5a)));9u=(9u&&p.65<9u?p.65:9u);c 2T=9u||b.6V(p,"3L");c 3i=b.6V(p,"2z");q((!2T||1g>=2T)&&(!3i||1g<=3i))},7O:h(p){c 5k=b.1z(p,"5k");5k=(2L 5k!="5b"?5k:2c 2g().2R()%3a+1o(5k,10));q{5k:5k,5i:b.1z(p,"5i"),5c:b.1z(p,"5c"),4A:b.1z(p,"4A"),4B:b.1z(p,"4B")}},as:h(p,2I,2n,2a){if(!2I){p.4O=p.5a;p.5A=p.4G;p.5l=p.4T}c 1g=(2I?(2L 2I=="6J"?2I:b.49(2c 2g(2a,2n,2I))):b.49(2c 2g(p.5l,p.5A,p.4O)));q b.98(b.1z(p,"7L"),1g,b.7O(p))}});h 94(1h,9n){$.1Q(1h,9n);1M(c 3X in 9n){if(9n[3X]==1e||9n[3X]==3G){1h[3X]=9n[3X]}}q 1h}h m6(a){q(a&&(($.1W.91&&2L a=="6J"&&a.1m)||(a.4V&&a.4V.dW().3D(/\\9k\\(\\)/))))}$.fn.1c=h(l){if(!$.1c.e7){$(1k.1U).6N($.1c.2H).af($.1c.fv);$.1c.e7=1j}c e8=9k.4J.fw.21(1A,1);if(2L l=="5b"&&(l=="lz"||l=="3v")){q $.1c["9l"+l+"aC"].1D($.1c,[b[0]].5r(e8))}q b.1J(h(){2L l=="5b"?$.1c["9l"+l+"aC"].1D($.1c,[b].5r(e8)):$.1c.fy(b,l)})};$.1c=2c aC();$.1c.e7=1a;$.1c.ay=2c 2g().44();$.1c.3A="1.52"})(2o);(h(A){A.1V("k.7b",{5H:h(){c B=b,C=b.l;b.Z.1l("k-7b k-1V k-1V-3B k-2p-2Y").1T({6e:"7b","4C-fr":b.4h(),"4C-fl":b.4K(),"4C-e6":b.a6()});b.c1=A(\'<1R 2D="k-7b-1F k-1V-4r k-2p-t"></1R>\').2O(b.Z);b.71()},3x:h(){b.Z.1v("k-7b k-1V k-1V-3B k-2p-2Y").5s("6e").5s("4C-fr").5s("4C-fl").5s("4C-e6").4p("7b").3l(".7b");b.c1.2i();A.1V.4J.3x.1D(b,1A)},1F:h(B){1A.1m&&b.4s("1F",B);q b.a6()},4s:h(B,C){4x(B){1s"1F":b.l.1F=C;b.71();b.3u("7Y",1e,{});1y}A.1V.4J.4s.1D(b,1A)},a6:h(){c B=b.l.1F;if(B<b.4h()){B=b.4h()}if(B>b.4K()){B=b.4K()}q B},4h:h(){c B=0;q B},4K:h(){c B=3a;q B},71:h(){c B=b.1F();b.c1[B==b.4K()?"1l":"1v"]("k-2p-2S");b.c1.19(B+"%");b.Z.1T("4C-e6",B)}});A.1Q(A.k.7b,{3A:"1.52",56:{1F:0}})})(2o);(h(C){C.1q=C.1q||{};C.1Q(C.1q,{3A:"1.52",5S:h(F,G){1M(c E=0;E<G.1m;E++){if(G[E]!==1e){C.1p(F[0],"ec.fp."+G[E],F[0].31[G[E]])}}},53:h(F,G){1M(c E=0;E<G.1m;E++){if(G[E]!==1e){F.v(G[E],C.1p(F[0],"ec.fp."+G[E]))}}},57:h(E,F){if(F=="61"){F=E.is(":3h")?"1G":"1L"}q F},fM:h(G,F){c H,E;4x(G[0]){1s"u":H=0;1y;1s"8R":H=0.5;1y;1s"3d":H=1;1y;2u:H=G[0]/F.18}4x(G[1]){1s"t":E=0;1y;1s"7A":E=0.5;1y;1s"2S":E=1;1y;2u:E=G[1]/F.19}q{x:E,y:H}},6G:h(F){if(F.1x().1T("id")=="e5"){q F}c E={19:F.3E({5m:1j}),18:F.3r({5m:1j}),"e9":F.v("e9")};F.a8(\'<1R id="e5" 31="lE-1E:3a%;bX:7a;ed:7m;5m:0;eb:0"></1R>\');c I=F.1x();if(F.v("1f")=="5Z"){I.v({1f:"1N"});F.v({1f:"1N"})}1i{c H=F.v("u");if(a2(1o(H))){H="3K"}c G=F.v("t");if(a2(1o(G))){G="3K"}I.v({1f:F.v("1f"),u:H,t:G,2K:F.v("z-3F")}).1G();F.v({1f:"1N",u:0,t:0})}I.v(E);q I},6m:h(E){if(E.1x().1T("id")=="e5"){q E.1x().eH(E)}q E},5W:h(F,G,E,H){H=H||{};C.1J(G,h(J,I){aT=F.f0(I);if(aT[0]>0){H[I]=aT[0]*E+aT[1]}});q H},ag:h(G,J,I,H){c E=(2L I=="h"?I:(H?H:1e));c F=(2L I=="6J"?I:1e);q b.1J(h(){c O={};c M=C(b);c N=M.1T("31")||"";if(2L N=="6J"){N=N.dY}if(G.61){M.4g(G.61)?G.2i=G.61:G.22=G.61}c K=C.1Q({},(1k.aO?1k.aO.eN(b,1e):b.f2));if(G.22){M.1l(G.22)}if(G.2i){M.1v(G.2i)}c L=C.1Q({},(1k.aO?1k.aO.eN(b,1e):b.f2));if(G.22){M.1v(G.22)}if(G.2i){M.1l(G.2i)}1M(c P in L){if(2L L[P]!="h"&&L[P]&&P.ai("m7")==-1&&P.ai("1m")==-1&&L[P]!=K[P]&&(P.3D(/b3/i)||(!P.3D(/b3/i)&&!a2(1o(L[P],10))))&&(K.1f!="5Z"||(K.1f=="5Z"&&!P.3D(/t|u|3d|2S/)))){O[P]=L[P]}}M.1Z(O,J,F,h(){if(2L C(b).1T("31")=="6J"){C(b).1T("31")["dY"]="";C(b).1T("31")["dY"]=N}1i{C(b).1T("31",N)}if(G.22){C(b).1l(G.22)}if(G.2i){C(b).1v(G.2i)}if(E){E.1D(b,1A)}})})}});C.fn.1Q({eX:C.fn.1G,eS:C.fn.1L,eV:C.fn.61,eZ:C.fn.1l,eU:C.fn.1v,eT:C.fn.6a,5x:h(E,H,F,G){q C.1q[E]?C.1q[E].21(b,{lu:E,l:H||{},1H:F,2t:G}):1e},1G:h(){if(!1A[0]||(1A[0].4V==aG||/(aZ|8Z|e1)/.1P(1A[0]))){q b.eX.1D(b,1A)}1i{c E=1A[1]||{};E.2X="1G";q b.5x.1D(b,[1A[0],E,1A[2]||E.1H,1A[3]||E.2t])}},1L:h(){if(!1A[0]||(1A[0].4V==aG||/(aZ|8Z|e1)/.1P(1A[0]))){q b.eS.1D(b,1A)}1i{c E=1A[1]||{};E.2X="1L";q b.5x.1D(b,[1A[0],E,1A[2]||E.1H,1A[3]||E.2t])}},61:h(){if(!1A[0]||(1A[0].4V==aG||/(aZ|8Z|e1)/.1P(1A[0]))||(1A[0].4V==l4)){q b.eV.1D(b,1A)}1i{c E=1A[1]||{};E.2X="61";q b.5x.1D(b,[1A[0],E,1A[2]||E.1H,1A[3]||E.2t])}},1l:h(H,E,G,F){q E?C.1q.ag.1D(b,[{22:H},E,G,F]):b.eZ(H)},1v:h(H,E,G,F){q E?C.1q.ag.1D(b,[{2i:H},E,G,F]):b.eU(H)},6a:h(H,E,G,F){q E?C.1q.ag.1D(b,[{61:H},E,G,F]):b.eT(H)},eW:h(F,I,E,H,G){q C.1q.ag.1D(b,[{22:I,2i:F},E,H,G])},kR:h(){q b.eW.1D(b,1A)},f0:h(E){c F=b.v(E),G=[];C.1J(["em","3e","%","lm"],h(H,I){if(F.ai(I)>0){G=[9V(F),I]}});q G}});C.1J(["8k","lk","lo","ls","lh","b3","lg"],h(F,E){C.fx.7y[E]=h(G){if(G.1K==0){G.2E=D(G.h5,E);G.4H=A(G.4H)}G.h5.31[E]="e2("+[1n.2z(1n.3L(1o((G.2C*(G.4H[0]-G.2E[0]))+G.2E[0]),2x),0),1n.2z(1n.3L(1o((G.2C*(G.4H[1]-G.2E[1]))+G.2E[1]),2x),0),1n.2z(1n.3L(1o((G.2C*(G.4H[2]-G.2E[2]))+G.2E[2]),2x),0)].5F(",")+")"}});h A(E){c F;if(E&&E.4V==9k&&E.1m==3){q E}if(F=/e2\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.7j(E)){q[1o(F[1]),1o(F[2]),1o(F[3])]}if(F=/e2\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.7j(E)){q[9V(F[1])*2.55,9V(F[2])*2.55,9V(F[3])*2.55]}if(F=/#([a-fA-9p-9]{2})([a-fA-9p-9]{2})([a-fA-9p-9]{2})/.7j(E)){q[1o(F[1],16),1o(F[2],16),1o(F[3],16)]}if(F=/#([a-fA-9p-9])([a-fA-9p-9])([a-fA-9p-9])/.7j(E)){q[1o(F[1]+F[1],16),1o(F[2]+F[2],16),1o(F[3]+F[3],16)]}if(F=/gC\\(0, 0, 0, 0\\)/.7j(E)){q B.7a}q B[C.gB(E).5R()]}h D(G,E){c F;do{F=C.6Y(G,E);if(F!=""&&F!="7a"||C.3g(G,"1U")){1y}E="8k"}6t(G=G.4e);q A(F)}c B={n5:[0,2x,2x],mY:[gu,2x,2x],mX:[gH,gH,ni],gq:[0,0,0],ns:[0,0,2x],nm:[gX,42,42],nr:[0,2x,2x],n0:[0,0,96],mT:[0,96,96],mr:[e0,e0,e0],mp:[0,3a,0],ms:[mt,mU,dX],mw:[96,0,96],mv:[85,dX,47],ml:[2x,eE,0],mf:[me,50,mh],mj:[96,0,0],mi:[mx,9Y,mO],mP:[mS,0,aN],mR:[2x,0,2x],mQ:[2x,mJ,0],mI:[0,6E,0],mC:[75,0,mB],mA:[gu,gt,eE],mz:[mD,mE,gt],mH:[gY,2x,2x],mF:[gJ,kY,gJ],iM:[aN,aN,aN],iL:[2x,iK,iJ],iN:[2x,2x,gY],iO:[0,2x,0],iR:[2x,0,2x],iQ:[6E,0,0],iP:[0,0,6E],iI:[6E,6E,0],iH:[2x,gX,0],iA:[2x,c5,iz],iy:[6E,0,6E],ix:[6E,0,6E],kL:[2x,0,0],iB:[c5,c5,c5],iC:[2x,2x,2x],iG:[2x,2x,0],7a:[2x,2x,2x]};C.1X.iF=C.1X.9L;C.1Q(C.1X,{gW:"gT",9L:h(F,G,E,I,H){q C.1X[C.1X.gW](F,G,E,I,H)},iS:h(F,G,E,I,H){q I*(G/=H)*G+E},gT:h(F,G,E,I,H){q-I*(G/=H)*(G-2)+E},j8:h(F,G,E,I,H){if((G/=H/2)<1){q I/2*G*G+E}q-I/2*((--G)*(G-2)-1)+E},j6:h(F,G,E,I,H){q I*(G/=H)*G*G+E},ja:h(F,G,E,I,H){q I*((G=G/H-1)*G*G+1)+E},jb:h(F,G,E,I,H){if((G/=H/2)<1){q I/2*G*G*G+E}q I/2*((G-=2)*G*G+2)+E},je:h(F,G,E,I,H){q I*(G/=H)*G*G*G+E},jd:h(F,G,E,I,H){q-I*((G=G/H-1)*G*G*G-1)+E},jc:h(F,G,E,I,H){if((G/=H/2)<1){q I/2*G*G*G*G+E}q-I/2*((G-=2)*G*G*G-2)+E},j4:h(F,G,E,I,H){q I*(G/=H)*G*G*G*G+E},iU:h(F,G,E,I,H){q I*((G=G/H-1)*G*G*G*G+1)+E},iY:h(F,G,E,I,H){if((G/=H/2)<1){q I/2*G*G*G*G*G+E}q I/2*((G-=2)*G*G*G*G+2)+E},j2:h(F,G,E,I,H){q-I*1n.gS(G/H*(1n.6c/2))+I+E},j0:h(F,G,E,I,H){q I*1n.ac(G/H*(1n.6c/2))+E},jf:h(F,G,E,I,H){q-I/2*(1n.gS(1n.6c*G/H)-1)+E},i1:h(F,G,E,I,H){q(G==0)?E:I*1n.7l(2,10*(G/H-1))+E},hY:h(F,G,E,I,H){q(G==H)?E+I:I*(-1n.7l(2,-10*G/H)+1)+E},hU:h(F,G,E,I,H){if(G==0){q E}if(G==H){q E+I}if((G/=H/2)<1){q I/2*1n.7l(2,10*(G-1))+E}q I/2*(-1n.7l(2,-10*--G)+2)+E},i9:h(F,G,E,I,H){q-I*(1n.8S(1-(G/=H)*G)-1)+E},ip:h(F,G,E,I,H){q I*1n.8S(1-(G=G/H-1)*G)+E},io:h(F,G,E,I,H){if((G/=H/2)<1){q-I/2*(1n.8S(1-G*G)-1)+E}q I/2*(1n.8S(1-(G-=2)*G)+1)+E},il:h(F,H,E,L,K){c I=1.8K;c J=0;c G=L;if(H==0){q E}if((H/=K)==1){q E+L}if(!J){J=K*0.3}if(G<1n.4j(L)){G=L;c I=J/4}1i{c I=J/(2*1n.6c)*1n.dK(L/G)}q-(G*1n.7l(2,10*(H-=1))*1n.ac((H*K-I)*(2*1n.6c)/J))+E},ib:h(F,H,E,L,K){c I=1.8K;c J=0;c G=L;if(H==0){q E}if((H/=K)==1){q E+L}if(!J){J=K*0.3}if(G<1n.4j(L)){G=L;c I=J/4}1i{c I=J/(2*1n.6c)*1n.dK(L/G)}q G*1n.7l(2,-10*H)*1n.ac((H*K-I)*(2*1n.6c)/J)+L+E},iu:h(F,H,E,L,K){c I=1.8K;c J=0;c G=L;if(H==0){q E}if((H/=K/2)==2){q E+L}if(!J){J=K*(0.3*1.5)}if(G<1n.4j(L)){G=L;c I=J/4}1i{c I=J/(2*1n.6c)*1n.dK(L/G)}if(H<1){q-0.5*(G*1n.7l(2,10*(H-=1))*1n.ac((H*K-I)*(2*1n.6c)/J))+E}q G*1n.7l(2,-10*(H-=1))*1n.ac((H*K-I)*(2*1n.6c)/J)*0.5+L+E},hZ:h(F,G,E,J,I,H){if(H==3G){H=1.8K}q J*(G/=I)*G*((H+1)*G-H)+E},ik:h(F,G,E,J,I,H){if(H==3G){H=1.8K}q J*((G=G/I-1)*G*((H+1)*G+H)+1)+E},ic:h(F,G,E,J,I,H){if(H==3G){H=1.8K}if((G/=I/2)<1){q J/2*(G*G*(((H*=(1.gl))+1)*G-H))+E}q J/2*((G-=2)*G*(((H*=(1.gl))+1)*G+H)+2)+E},fQ:h(F,G,E,I,H){q I-C.1X.bt(F,H-G,0,I,H)+E},bt:h(F,G,E,I,H){if((G/=H)<(1/2.75)){q I*(7.bm*G*G)+E}1i{if(G<(2/2.75)){q I*(7.bm*(G-=(1.5/2.75))*G+0.75)+E}1i{if(G<(2.5/2.75)){q I*(7.bm*(G-=(2.25/2.75))*G+0.ig)+E}1i{q I*(7.bm*(G-=(2.ie/2.75))*G+0.ia)+E}}}},i7:h(F,G,E,I,H){if(G<H/2){q C.1X.fQ(F,G*2,0,I,H)*0.5+E}q C.1X.bt(F,G*2-H,0,I,H)*0.5+I*0.5+E}})})(2o);(h(A){A.1q.j5=h(B){q b.3M(h(){c D=A(b),C=["1f","u","t"];c G=A.1q.57(D,B.l.2X||"1L");c J=B.l.6Q||"4D";A.1q.5S(D,C);D.1G();c I=A.1q.6G(D).v({3f:"3h"});c E=(J=="4D")?"18":"19";c H=(J=="4D")?I.18():I.19();if(G=="1G"){I.v(E,0)}c F={};F[E]=G=="1G"?H:0;I.1Z(F,B.1H,B.l.1X,h(){if(G=="1L"){D.1L()}A.1q.53(D,C);A.1q.6m(D);if(B.2t){B.2t.1D(D[0],1A)}D.4v()})})}})(2o);(h(A){A.1q.kK=h(B){q b.3M(h(){c E=A(b),K=["1f","u","t"];c J=A.1q.57(E,B.l.2X||"5x");c O=B.l.6Q||"5I";c D=B.l.5G||20;c C=B.l.eB||5;c G=B.1H||kh;if(/1G|1L/.1P(J)){K.4n("24")}A.1q.5S(E,K);E.1G();A.1q.6G(E);c F=(O=="5I"||O=="54")?"u":"t";c M=(O=="5I"||O=="t")?"2C":"bP";c D=B.l.5G||(F=="u"?E.3r({5m:1j})/3:E.3E({5m:1j})/3);if(J=="1G"){E.v("24",0).v(F,M=="2C"?-D:D)}if(J=="1L"){D=D/(C*2)}if(J!="1L"){C--}if(J=="1G"){c H={24:1};H[F]=(M=="2C"?"+=":"-=")+D;E.1Z(H,G/2,B.l.1X);D=D/2;C--}1M(c I=0;I<C;I++){c N={},L={};N[F]=(M=="2C"?"-=":"+=")+D;L[F]=(M=="2C"?"+=":"-=")+D;E.1Z(N,G/2,B.l.1X).1Z(L,G/2,B.l.1X);D=(J=="1L")?D*2:D/2}if(J=="1L"){c H={24:0};H[F]=(M=="2C"?"-=":"+=")+D;E.1Z(H,G/2,B.l.1X,h(){E.1L();A.1q.53(E,K);A.1q.6m(E);if(B.2t){B.2t.1D(b,1A)}})}1i{c N={},L={};N[F]=(M=="2C"?"-=":"+=")+D;L[F]=(M=="2C"?"+=":"-=")+D;E.1Z(N,G/2,B.l.1X).1Z(L,G/2,B.l.1X,h(){A.1q.53(E,K);A.1q.6m(E);if(B.2t){B.2t.1D(b,1A)}})}E.3M("fx",h(){E.4v()});E.4v()})}})(2o);(h(A){A.1q.kf=h(B){q b.3M(h(){c E=A(b),J=["1f","u","t","18","19"];c H=A.1q.57(E,B.l.2X||"1L");c K=B.l.6Q||"4D";A.1q.5S(E,J);E.1G();c D=A.1q.6G(E).v({3f:"3h"});c I=E[0].5t=="ke"?D:E;c F={1E:(K=="4D")?"18":"19",1f:(K=="4D")?"u":"t"};c C=(K=="4D")?I.18():I.19();if(H=="1G"){I.v(F.1E,0);I.v(F.1f,C/2)}c G={};G[F.1E]=H=="1G"?C:0;G[F.1f]=H=="1G"?0:C/2;I.1Z(G,{3M:1a,1H:B.1H,1X:B.l.1X,6p:h(){if(H=="1L"){E.1L()}A.1q.53(E,J);A.1q.6m(E);if(B.2t){B.2t.1D(E[0],1A)}E.4v()}})})}})(2o);(h(A){A.1q.6K=h(B){q b.3M(h(){c D=A(b),C=["1f","u","t","24"];c H=A.1q.57(D,B.l.2X||"1L");c J=B.l.6Q||"t";A.1q.5S(D,C);D.1G();A.1q.6G(D);c F=(J=="5I"||J=="54")?"u":"t";c E=(J=="5I"||J=="t")?"2C":"bP";c I=B.l.5G||(F=="u"?D.3r({5m:1j})/2:D.3E({5m:1j})/2);if(H=="1G"){D.v("24",0).v(F,E=="2C"?-I:I)}c G={24:H=="1G"?1:0};G[F]=(H=="1G"?(E=="2C"?"+=":"-="):(E=="2C"?"-=":"+="))+I;D.1Z(G,{3M:1a,1H:B.1H,1X:B.l.1X,6p:h(){if(H=="1L"){D.1L()}A.1q.53(D,C);A.1q.6m(D);if(B.2t){B.2t.1D(b,1A)}D.4v()}})})}})(2o);(h(A){A.1q.dG=h(B){q b.3M(h(){c I=B.l.c2?1n.79(1n.8S(B.l.c2)):3;c D=B.l.c2?1n.79(1n.8S(B.l.c2)):3;B.l.2X=B.l.2X=="61"?(A(b).is(":5L")?"1L":"1G"):B.l.2X;c G=A(b).1G().v("9D","3h");c J=G.1b();J.u-=1o(G.v("83"))||0;J.t-=1o(G.v("7z"))||0;c F=G.3E(1j);c H=G.3r(1j);1M(c E=0;E<I;E++){1M(c C=0;C<D;C++){G.7d().2O("1U").a8("<1R></1R>").v({1f:"2k",9D:"5L",t:-C*(F/D),u:-E*(H/I)}).1x().1l("1q-dG").v({1f:"2k",3f:"3h",19:F/D,18:H/I,t:J.t+C*(F/D)+(B.l.2X=="1G"?(C-1n.9W(D/2))*(F/D):0),u:J.u+E*(H/I)+(B.l.2X=="1G"?(E-1n.9W(I/2))*(H/I):0),24:B.l.2X=="1G"?0:1}).1Z({t:J.t+C*(F/D)+(B.l.2X=="1G"?0:(C-1n.9W(D/2))*(F/D)),u:J.u+E*(H/I)+(B.l.2X=="1G"?0:(E-1n.9W(I/2))*(H/I)),24:B.l.2X=="1G"?1:0},B.1H||aV)}}7Z(h(){B.l.2X=="1G"?G.v({9D:"5L"}):G.v({9D:"5L"}).1L();if(B.2t){B.2t.1D(G[0])}G.4v();A(".1q-dG").2i()},B.1H||aV)})}})(2o);(h(A){A.1q.kj=h(B){q b.3M(h(){c F=A(b),J=["1f","u","t"];c I=A.1q.57(F,B.l.2X||"1L");c N=B.l.1E||15;c M=!(!B.l.kl);A.1q.5S(F,J);F.1G();c D=A.1q.6G(F).v({3f:"3h"});c H=((I=="1G")!=M);c G=H?["19","18"]:["18","19"];c C=H?[D.19(),D.18()]:[D.18(),D.19()];c E=/([0-9]+)%/.7j(N);if(E){N=1o(E[1])/3a*C[I=="1L"?0:1]}if(I=="1G"){D.v(M?{18:0,19:N}:{18:N,19:0})}c L={},K={};L[G[0]]=I=="1G"?C[0]:N;K[G[1]]=I=="1G"?C[1]:0;D.1Z(L,B.1H/2,B.l.1X).1Z(K,B.1H/2,B.l.1X,h(){if(I=="1L"){F.1L()}A.1q.53(F,J);A.1q.6m(F);if(B.2t){B.2t.1D(F[0],1A)}F.4v()})})}})(2o);(h(A){A.1q.fV=h(B){q b.3M(h(){c E=A(b),D=["dN","8k","24"];c H=A.1q.57(E,B.l.2X||"1G");c C=B.l.b3||"#k3";c G=E.v("8k");A.1q.5S(E,D);E.1G();E.v({dN:"7m",8k:C});c F={8k:G};if(H=="1L"){F.24=0}E.1Z(F,{3M:1a,1H:B.1H,1X:B.l.1X,6p:h(){if(H=="1L"){E.1L()}A.1q.53(E,D);if(H=="1G"&&A.1W.43){b.31.fN("3m")}if(B.2t){B.2t.1D(b,1A)}E.4v()}})})}})(2o);(h(A){A.1q.k7=h(B){q b.3M(h(){c D=A(b);c F=A.1q.57(D,B.l.2X||"1G");c E=B.l.eB||5;if(F=="1L"){E--}if(D.is(":3h")){D.v("24",0);D.1G();D.1Z({24:1},B.1H/2,B.l.1X);E=E-2}1M(c C=0;C<E;C++){D.1Z({24:0},B.1H/2,B.l.1X).1Z({24:1},B.1H/2,B.l.1X)}if(F=="1L"){D.1Z({24:0},B.1H/2,B.l.1X,h(){D.1L();if(B.2t){B.2t.1D(b,1A)}})}1i{D.1Z({24:0},B.1H/2,B.l.1X).1Z({24:1},B.1H/2,B.l.1X,h(){if(B.2t){B.2t.1D(b,1A)}})}D.3M("fx",h(){D.4v()});D.4v()})}})(2o);(h(A){A.1q.k9=h(B){q b.3M(h(){c G=A(b);c F=A.1Q(1j,{},B.l);c H=A.1q.57(G,B.l.2X||"1L");c C=1o(B.l.bg)||9Y;F.fH=1j;c E={18:G.18(),19:G.19()};c D=C/3a;G.29=(H=="1L")?E:{18:E.18*D,19:E.19*D};F.29=G.29;F.bg=(H=="1L")?C:3a;F.2X=H;G.5x("ee",F,B.1H,B.2t);G.4v()})};A.1q.ee=h(B){q b.3M(h(){c H=A(b);c F=A.1Q(1j,{},B.l);c I=A.1q.57(H,B.l.2X||"5x");c C=1o(B.l.bg)||(1o(B.l.bg)==0?0:(I=="1L"?0:3a));c J=B.l.6Q||"7v";c G=B.l.eu;if(I!="5x"){F.eu=G||["8R","7A"];F.53=1j}c E={18:H.18(),19:H.19()};H.29=B.l.29||(I=="1G"?{18:0,19:0}:E);c D={y:J!="4Y"?(C/3a):1,x:J!="4D"?(C/3a):1};H.2h={18:E.18*D.y,19:E.19*D.x};if(B.l.fH){if(I=="1G"){H.29.24=0;H.2h.24=1}if(I=="1L"){H.29.24=1;H.2h.24=0}}F.29=H.29;F.2h=H.2h;F.2X=I;H.5x("1E",F,B.1H,B.2t);H.4v()})};A.1q.1E=h(B){q b.3M(h(){c H=A(b),N=["1f","u","t","19","18","3f","24"];c D=["1f","u","t","3f","24"];c F=["19","18","3f"];c O=["fI"];c E=["6h","bO","dR","dO"];c K=["6i","b1","dP","dQ"];c L=A.1q.57(H,B.l.2X||"5x");c M=B.l.53||1a;c J=B.l.ee||"7v";c P=B.l.eu;c I={18:H.18(),19:H.19()};H.29=B.l.29||I;H.2h=B.l.2h||I;if(P){c G=A.1q.fM(P,I);H.29.u=(I.18-H.29.18)*G.y;H.29.t=(I.19-H.29.19)*G.x;H.2h.u=(I.18-H.2h.18)*G.y;H.2h.t=(I.19-H.2h.19)*G.x}c C={29:{y:H.29.18/I.18,x:H.29.19/I.19},2h:{y:H.2h.18/I.18,x:H.2h.19/I.19}};if(J=="kn"||J=="7v"){if(C.29.y!=C.2h.y){N=N.5r(E);H.29=A.1q.5W(H,E,C.29.y,H.29);H.2h=A.1q.5W(H,E,C.2h.y,H.2h)}if(C.29.x!=C.2h.x){N=N.5r(K);H.29=A.1q.5W(H,K,C.29.x,H.29);H.2h=A.1q.5W(H,K,C.2h.x,H.2h)}}if(J=="3B"||J=="7v"){if(C.29.y!=C.2h.y){N=N.5r(O);H.29=A.1q.5W(H,O,C.29.y,H.29);H.2h=A.1q.5W(H,O,C.2h.y,H.2h)}}A.1q.5S(H,M?N:D);H.1G();A.1q.6G(H);H.v("3f","3h").v(H.29);if(J=="3B"||J=="7v"){E=E.5r(["83","8U"]).5r(O);K=K.5r(["7z","9j"]);F=N.5r(E).5r(K);H.3q("*[19]").1J(h(){3o=A(b);if(M){A.1q.5S(3o,F)}c Q={18:3o.18(),19:3o.19()};3o.29={18:Q.18*C.29.y,19:Q.19*C.29.x};3o.2h={18:Q.18*C.2h.y,19:Q.19*C.2h.x};if(C.29.y!=C.2h.y){3o.29=A.1q.5W(3o,E,C.29.y,3o.29);3o.2h=A.1q.5W(3o,E,C.2h.y,3o.2h)}if(C.29.x!=C.2h.x){3o.29=A.1q.5W(3o,K,C.29.x,3o.29);3o.2h=A.1q.5W(3o,K,C.2h.x,3o.2h)}3o.v(3o.29);3o.1Z(3o.2h,B.1H,B.l.1X,h(){if(M){A.1q.53(3o,F)}})})}H.1Z(H.2h,{3M:1a,1H:B.1H,1X:B.l.1X,6p:h(){if(L=="1L"){H.1L()}A.1q.53(H,M?N:D);A.1q.6m(H);if(B.2t){B.2t.1D(b,1A)}H.4v()}})})}})(2o);(h(A){A.1q.kC=h(B){q b.3M(h(){c E=A(b),K=["1f","u","t"];c J=A.1q.57(E,B.l.2X||"5x");c O=B.l.6Q||"t";c D=B.l.5G||20;c C=B.l.eB||3;c G=B.1H||B.l.1H||eE;A.1q.5S(E,K);E.1G();A.1q.6G(E);c F=(O=="5I"||O=="54")?"u":"t";c M=(O=="5I"||O=="t")?"2C":"bP";c H={},N={},L={};H[F]=(M=="2C"?"-=":"+=")+D;N[F]=(M=="2C"?"+=":"-=")+D*2;L[F]=(M=="2C"?"-=":"+=")+D*2;E.1Z(H,G,B.l.1X);1M(c I=1;I<C;I++){E.1Z(N,G,B.l.1X).1Z(L,G,B.l.1X)}E.1Z(N,G,B.l.1X).1Z(H,G/2,B.l.1X,h(){A.1q.53(E,K);A.1q.6m(E);if(B.2t){B.2t.1D(b,1A)}});E.3M("fx",h(){E.4v()});E.4v()})}})(2o);(h(A){A.1q.6R=h(B){q b.3M(h(){c D=A(b),C=["1f","u","t"];c H=A.1q.57(D,B.l.2X||"1G");c J=B.l.6Q||"t";A.1q.5S(D,C);D.1G();A.1q.6G(D).v({3f:"3h"});c F=(J=="5I"||J=="54")?"u":"t";c E=(J=="5I"||J=="t")?"2C":"bP";c I=B.l.5G||(F=="u"?D.3r({5m:1j}):D.3E({5m:1j}));if(H=="1G"){D.v(F,E=="2C"?-I:I)}c G={};G[F]=(H=="1G"?(E=="2C"?"+=":"-="):(E=="2C"?"-=":"+="))+I;D.1Z(G,{3M:1a,1H:B.1H,1X:B.l.1X,6p:h(){if(H=="1L"){D.1L()}A.1q.53(D,C);A.1q.6m(D);if(B.2t){B.2t.1D(b,1A)}D.4v()}})})}})(2o);(h(A){A.1q.gj=h(B){q b.3M(h(){c E=A(b);c F=A.1q.57(E,B.l.2X||"5x");c G=A(B.l.2h);c C=E.1b();c D=A(\'<1R 2D="k-1q-gj"></1R>\').2O(1k.1U);if(B.l.8w){D.1l(B.l.8w)}D.1l(B.l.8w);D.v({u:C.u,t:C.t,18:E.3r()-1o(D.v("6h"))-1o(D.v("bO")),19:E.3E()-1o(D.v("6i"))-1o(D.v("b1")),1f:"2k"});C=G.1b();g1={u:C.u,t:C.t,18:G.3r()-1o(D.v("6h"))-1o(D.v("bO")),19:G.3E()-1o(D.v("6i"))-1o(D.v("b1"))};D.1Z(g1,B.1H,B.l.1X,h(){D.2i();if(B.2t){B.2t.1D(E[0],1A)}E.4v()})})}})(2o);',62,1455,'|||||||||||this|var|||||function|||ui|options||||inst|return|||left|top|css||||||||||||||||||||||||||||||element|||||||||height|width|false|offset|datepicker|helper|null|position|date|target|else|true|document|addClass|length|Math|parseInt|data|effects|resizable|case|input|tabs|removeClass|event|parent|break|_get|arguments|currentItem|containment|apply|size|value|show|duration|disabled|each|state|hide|for|relative|scrollParent|test|extend|div|selected|attr|body|widget|browser|easing|instance|animate||call|add|scrollLeft|opacity||scrollTop|||from|year|settings|new|draggable|dialog|containers|Date|to|remove|resize|absolute|click|sortable|month|jQuery|corner|cursor|drawMonth|ddmanager|callback|default|_propagate|helperProportions|255|handle|max|values|item|pos|class|start|margins|drawYear|dpDiv|day|items|zIndex|typeof|focus|grid|appendTo|active|handles|getFullYear|right|minDate|overlay|plugin|keyCode|mode|all|html|window|style|||||||||100|bind|placeholder|bottom|px|overflow|nodeName|hidden|maxDate|iFormat|originalPosition|unbind|filter|offsetParent|child|span|find|outerHeight|range|0px|_trigger|getDate|positionAbs|destroy|uiDialog|stop|version|content|accordion|match|outerWidth|index|undefined|format|isRTL|selectable|auto|min|queue|panels|getMonth|title|pageY|pageX|button|slider|lis|unselecting|cssPosition|name|triggerHandler|charAt||printDate||msie|getTime||||href|_daylightSavingAdjust|icon|ctrlKey|se|inline|parentNode|scrollSpeed|hasClass|_valueMin|scrollSensitivity|abs|selectedClass|hover|numMonths|push|documentElement|removeData|nw|header|_setData|sw|axis|dequeue|next|switch|prev|drag|monthNamesShort|monthNames|aria|vertical|firstDay|headers|selectedMonth|end|alsoResize|prototype|_valueMax|metaKey|_change|containerCache|currentDay|selecting|isFixed|select|_getInst|selectedYear|parents|constructor|accept|_defaults|horizontal|replace||matches|6rc4|restore|down||defaults|setMode|ghost|_convertPositionTo|selectedDay|string|dayNames|endYear|_pos|offsetHeight|fixed|droppable|dayNamesShort|snapElements|shortYearCutoff|currentYear|margin|over|_adjustDate|lookAhead|literal|concat|removeAttr|tagName|type|minHeight|load|effect|showAnim|isFunction|currentMonth|iValue|defaultDate|calender|output|join|distance|_init|up|offsetWidth|originalSize|visible|get|4px|checkDate|markerClassName|current|toLowerCase|save|cookie|snap|toShow|setTransition|cancel|tolerance|static|stepMonths|toggle|aspectRatio|period|_mouseDrag|rangeStart|display|revert|isover|proportionallyResize|toggleClass|key|PI|handled|role|sizeDiff|tabIndex|borderTopWidth|borderLeftWidth|_hideDatepicker|overflowOffset|nextText|removeWrapper|unselectable|hideClass|complete|minWidth|prevText|opera|while|contains|_dialogInput|scroll|scope|maxWidth|dow|maxHeight|continue|isOver|stack|128|chars|createWrapper|_mouseStarted|num|object|drop|_mouseStart|knobHandles|append|_triggerClass|widgetName|direction|slide|_disabledInputs|today|_mouseStop|_getMinMaxDate|children|_updateDatepicker|curCSS|hash|PROP_NAME|_refreshValue|scrollHeight|td|delay||group|years|isout|round|transparent|progressbar|sort|clone|cache|blur|not|close|0pt|exec|map|pow|none|dragging|buttonText|innerHeight|onSelect|droppables|dateStr|_inDialog|plugins|both|keydown|icons|step|marginLeft|center|siblings|disableSelection|throw|bgiframe|scrollX|block|changeMonth|changeYear|postProcess|mouse|dateFormat|onclick|autoHeight|_getFormatConfig|option|isOverAxis|obj|startselected|_orientation|selectedDate|instances|_zIndex|_getDaysInMonth|change|setTimeout|_storedCSS|proportions|showOn|marginTop|currentText||_curInst|disabledClass|stepBigMonths|val|_mouseCapture|_getParentOffset|original|alwaysOpen|floating|scrollY|_datepickerShowing|preventDefault|inArray|toHide|backgroundColor|yy|cancelHelperRemoval|trigger|first|doy|monthHtml|cornerClass|_mouseDestroy|secondary|getDay|number|className|endDay|_showDatepicker|inlineSettings|reset|deselectable|deselectableClass|_handles|buttonImage|firstMon|_lastInput|stayOpen|getNumber|img|70158|triangle|showOtherMonths|otherMonth|endDate|borderDif|split|middle|sqrt|navigationAsDateFormat|marginBottom|clearfix|row|parentData|elementOffset|normal|prepareOffsets|safari|cssNamespace|_opacity|extendRemove|_mouseUp|139|_generatePosition|formatDate|_cacheHelperProportions|_getRelativeOffset|_cursor|out|activate|deactivate|connectWith|domPosition|running|currentContainer|marginRight|Array|_|dropBehaviour|props|iframeFix|F0|shiftKey|_clear|intersect|refreshPositions|newMinDate|_ui|removeChild|_mouseInit|multi|beforeShowDay|blockUI|dates|_cookie|visibility|getter|hideIfNoPrevNext|animated|try|maxDraw|daySettings|_proportionallyResize|swing|proxied|onClose|catch|thead|endMonth|beforeStop|closeText|expanded|panelClass|parseFloat|floor|loadingClass|150|counter|beforeShow|col|isNaN|1000|_tabify|modal|_value|_isDisabledDatepicker|wrap|String|proxiedDuration|refresh|sin|cssCache|hoverClass|mousedown|animateClass|absolutePosition|indexOf|_keySliding|update|_aspectRatio|altField|activeClass|containerOffset|cursorAt|showMonthAfterYear|keypress|_formatDate||_notifyChange|hasScroll|_isOpen|knob|uuid|lastPositionAbs|tbody|innerWidth|Datepicker|scrollWidth|appendText|names|Number|currentDate|setDate|iframe|_uiHash|textarea|sortables|211|defaultView|checkLiteral|text|_inlineClass|_doKeyDown|unit|originalTitle|500|formatNumber|attrName|_selectDate|slow|mouseDelayMet|borderRightWidth|headerSelected|color|attrValue|shortNames|resizing|_updateAlternate|tabClass|altFormat|after|_selectingMonthYear|longNames|label|spinner|navClass|percent|containerSize|_slide|pointer|_handleIndex|browserHeight|5625|cols|_keyEvent|_mouseDownEvent|_refreshItems|tr|showCurrentAtPos|easeOutBounce|andSelf|_adjustInstDate|DOWN|LEFT|RIGHT|UP|clientWidth|_getNumberOfMonths|_determineDate|HTML|containerPosition|browserWidth|selectees|clientHeight|1px|snapping|isMultiMonth|_getDefaultDate|iso8601Week|_cacheMargins|borderBottomWidth|neg|_adjustOffsetFromHelper|sortIndicator|_setContainment|Parent|circle|reverting|xhr|background|_sanitizeSelector|showButtonPanel|calendar|valueDiv|pieces|splice|_dayOverClass|192|_createHelper|dayNamesMin|altKey|borderLeft|chr|empty|fillSpace|_over|_out|greedy|sel|mouseover|borderRight|aaa|_doKeyPress|borderTop|snapMode|forceHelperSize|dims|prependTo|borderBottom|_getData|_makeResizable|_getItemsAsjQuery|custom|orientation|originalElement|preserveCursor|lastValPercent|alsoresize|ESCAPE|closeOnEscape|_mouseMoveDelegate|enable|_mouseDelayMet|mozilla|insertBefore|location|_tabId|_getDragHorizontalDirection|_values|opos|selectableunselecting|dragged|_mouseUpDelegate|END|containerElement|HOME|touch|_preventClickEvent|_stop|_mouseDistanceMet|_updateCache|_start|_getDragVerticalDirection|_normValueFromMouse|elementSize|mouseup|disable|dragStop|setData|getData|divSpan|namespace|connectToSortable|before|_newInst|dragStart|open||knobTheme|tabbable|widgetBaseClass|_helper|_appendClass|titlebar|resizeStart|_nodeName|_position|_makeDraggable|||_createButtons|_noFinalSort|ajaxOptions|appendChild|buttons|resizeStop|panelTemplate|widgetEventPrefix|autohide|regional|wrapper|rotation|documentScroll|moveToTop|_mainDivId|dim|explode|onChange|_canAdjustMonth|pattern|asin|getDaysInMonth|xa0|backgroundImage|paddingBottom|paddingLeft|paddingRight|paddingTop|_selectMonthYear|_clickMonthYear|Invalid|_isInRange|toString|107|cssText|log|169|fast|rgb|controls|_setDateFromField|fxWrapper|valuenow|initialized|otherArgs|float|formatName|padding||border|scale|getName|_selectDay|_currentClass|leadDays|_getDate|_findPos|||last|_unselectableClass|_dialogClass||daysInMonth|gotoCurrent|dRow|origin|_tidyDialog|showOptions|calculateWeek|gotoDate|cover|src|times|_gotoToday|origSize|140|_setDate|700|replaceWith|th|uiDialogTitlebar|_size|autoOpen|ceil|getComputedStyle|rtl|nbsp|TAB|uiDialogButtonPane|_hide|_toggleClass|_removeClass|__toggle|morph|_show|uiDialogTitlebarCloseText|_addClass|cssUnit|grep|currentStyle|events|numberOfMonths|onChangeMonthYear|minMax|eventPrefix|animations|checkRange|table|buttonPanel|_step|_generateMonthYearHeader|inMinYear|inMaxYear|onchange|yearRange|_getFirstDayOfMonth|curYear|create|valuemax|getTitleId||isOpen|storage|300|valuemin|week|curMonth|makeArray|_checkExternalClick|slice||_attachDatepicker|ul||numRows|zoom|F2F2F2|solid|8px|defaultTheme|fade|fontSize|_drop|_deactivate|greedyChild|getBaseline|removeAttribute|_renderAxis|autoHide|easeInBounce|animateDuration|animateEasing|_renderProxy|_respectSize|highlight|originalMousePosition|_updateRatio|_activate|droppablesLoop|getterSetter|animation|on|_mouseUnselectable|metadata|selectstart|compareDocumentPosition|5000px|wairole|MozUserSelect|_mouseDown|_mouseMove|snapTolerance|release|snapItem|clickOffset|shouldRevert|revertDuration|mousemove|transfer|_getHandle|525|fit|dropOnEmpty|forcePlaceholderSize|_rearrange|black|accurateIntersection|toArray|230|240|sender|serialize|tabindex|_keydown|newContent|oldContent|trim|rgba|oldHeader|newHeader|SPACE|ENTER|245|receive|144|attribute|_intersectsWithPointer|_intersectsWithSides|_removeCurrentsFromItems|connected|expression|unselected|autoRefresh|cos|easeOutQuad|toleranceElement|_intersectsWith|def|165|224|_contactContainers|innerHTML|refreshContainers|_createPlaceholder|createElement|navigationFilter|elem|panel|_inlineDatepicker|setHours|offsetNumeric|May|tabTemplate|Missing|charCode|getHours|origMonth|origYear|idPrefix|debug|alt|_possibleChars|offsetString|nodeType|x3c|100px|Month|x3e|_clearDate|Year|dateText|constrainInput|originalEvent|nextSibling|clientX|self|_dialogInst|stopPropagation|clear|len|parseDate|iInit|err|getYear|_connectDatepicker|url|buttonpane|Class|success|_checkOffset|_optionDatepicker|buttonImageOnly|_generateHTML|startDate|priority|tab|selectableunselected|easeInOutExpo|_destroyDatepicker|RFC_822|_enableDatepicker|easeOutExpo|easeInBack|selectee|easeInExpo|DD|RFC_1036|selectablestop|COOKIE|selectableselected|easeInOutBounce|_disableDatepicker|easeInCirc|984375|easeOutElastic|easeInOutBack||625||9375|clientY|keyboard|ISO_8601|easeOutBack|easeInElastic|selectableselecting||easeInOutCirc|easeOutCirc|RFC_850|instanceof||dotted|easeInOutElastic|selectablestart|RFC_2822|violet|purple|203|pink|silver|white|W3C|10000|jswing|yellow|orange|olive|193|182|lightpink|lightgrey|lightyellow|lime|navy|maroon|magenta|easeInQuad|TIMESTAMP|easeOutQuint|prepend|RFC_1123|forcePointerForContainers|easeInOutQuint|dynamic|easeOutSine|_preserveHelperProportions|easeInSine|semi|easeInQuint|blind|easeInCubic|_dialogDatepicker|easeInOutQuad|RSS|easeOutCubic|easeInOutCubic|easeInOutQuart|easeOutQuart|easeInQuart|easeInOutSine|_setDateDatepicker|2005|07|setAttributeNS|removeAttributeNS|org|w3|190|SHIFT|http|www|enableSelection|off|started|fadeIn|fadeOut|which|slideUp|fix|expr|substring|mouseout|slideDown|PERIOD|PAGE_UP|CONTROL|DELETE|INSERT|NUMPAD_ADD|188|COMMA|522|gen|BACKSPACE|CAPS_LOCK|NUMPAD_DECIMAL|110|106|NUMPAD_SUBTRACT|109|PAGE_DOWN|NUMPAD_MULTIPLY|108|NUMPAD_DIVIDE|111|NUMPAD_ENTER|_mouseDelayTimer|1000px|_refreshDatepicker|ffff99|Top|Bottom|_getDateDatepicker|pulsate|DEDEDE|puff|808080|canvas|Right|Left|IMG|clip|ATOM|250|Unexpected|fold|_changeDatepicker|horizFirst|Unknown|box|86400000|fromSortable|fff|001|selectedIndex|toSortable|sortreceive|unblockUI|invalid|valid|draw|inner|outer|noWeekends|shake|dragstart|sortactivate|dropout|dropover|fromCharCode|dropactivate|dropdeactivate|bounce|red|Dec|dragHelper|Nov|Oct|9999|switchClass|z0|Sunday|Za|Sep|Aug|nav|238|Jun|resizeHelper|Jul|frameborder|javascript|Function|loading|Monday|has|200|easeslide|easeinout|dialogClass|bounceslide|other|Thursday|unique|outlineColor|borderTopColor||outline|borderBottomColor|beforeclose|pt|Tuesday|borderLeftColor|insertAfter|labelledby|closethick|borderRightColor|setMilliseconds|method|clearText|June|April|Clear|isDisabled|cell|August|July|days|font|March|nextBigText|Next|prevBigText|Prev|borderWidth|Today|February|Done|January|September|October|keyup|rotate|setInterval|clearInterval|Apr|8230|setSeconds|setMinutes|Loading|grip|diagonal|Jan|December|November|Feb|isArray|Moz|_disableClass|Mar|Friday|Wednesday|ajax|hasDatepicker|153|darkorchid|abort|204|darksalmon|darkred|primary|darkorange||identifier|fragment|darkgreen|Mismatching|darkgrey|darkkhaki|189|accessible|darkolivegreen|darkmagenta|233|console|lightblue|khaki|130|indigo|173|216|lightgreen|0123456789|lightcyan|green|215|wrapInner|eval|getAttribute|setDefaults|122|darkviolet|gold|fuchsia|148|darkcyan|183|changestart|Su|beige|azure|clearStyle|darkblue|Th|We|Tu|Mo|aqua|UI|Mon|Sun|unload|Saturday|Tue|Wed|Sat||Fri|Thu|tabpanel|220|Tabs|navigation|mouseleave|brown|mouseenter|tablist|Fr|Sa|cyan|blue'.split('|'),0,{}))


/*------------jquery/jquery.form.js----------*/

/*
 * jQuery Form Plugin
 * version: 2.17 (06-NOV-2008)
 * @requires jQuery v1.2.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Revision: $Id$
 */
;(function($) {

/*
    Usage Note:  
    -----------
    Do not use both ajaxSubmit and ajaxForm on the same form.  These
    functions are intended to be exclusive.  Use ajaxSubmit if you want
    to bind your own submit handler to the form.  For example,

    $(document).ready(function() {
        $('#myForm').bind('submit', function() {
            $(this).ajaxSubmit({
                target: '#output'
            });
            return false; // <-- important!
        });
    });

    Use ajaxForm when you want the plugin to manage all the event binding
    for you.  For example,

    $(document).ready(function() {
        $('#myForm').ajaxForm({
            target: '#output'
        });
    });
        
    When using ajaxForm, the ajaxSubmit function will be invoked for you
    at the appropriate time.  
*/

/**
 * ajaxSubmit() provides a mechanism for immediately submitting 
 * an HTML form using AJAX.
 */
$.fn.ajaxSubmit = function(options) {
    // fast fail if nothing selected (http://dev.jquery.com/ticket/2752)
    if (!this.length) {
        log('ajaxSubmit: skipping submit process - no element selected');
        return this;
    }

    if (typeof options == 'function')
        options = { success: options };

    options = $.extend({
        url:  this.attr('action') || window.location.toString(),
        type: this.attr('method') || 'GET'
    }, options || {});

    // hook for manipulating the form data before it is extracted;
    // convenient for use with rich editors like tinyMCE or FCKEditor
    var veto = {};
    this.trigger('form-pre-serialize', [this, options, veto]);
    if (veto.veto) {
        log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');
        return this;
    }

    // provide opportunity to alter form data before it is serialized
    if (options.beforeSerialize && options.beforeSerialize(this, options) === false) {
        log('ajaxSubmit: submit aborted via beforeSerialize callback');
        return this;
    }    
   
    var a = this.formToArray(options.semantic);
    if (options.data) {
        options.extraData = options.data;
        for (var n in options.data) {
          if(options.data[n] instanceof Array) {
            for (var k in options.data[n])
              a.push( { name: n, value: options.data[n][k] } )
          }  
          else
             a.push( { name: n, value: options.data[n] } );
        }
    }

    // give pre-submit callback an opportunity to abort the submit
    if (options.beforeSubmit && options.beforeSubmit(a, this, options) === false) {
        log('ajaxSubmit: submit aborted via beforeSubmit callback');
        return this;
    }    

    // fire vetoable 'validate' event
    this.trigger('form-submit-validate', [a, this, options, veto]);
    if (veto.veto) {
        log('ajaxSubmit: submit vetoed via form-submit-validate trigger');
        return this;
    }    

    var q = $.param(a);

    if (options.type.toUpperCase() == 'GET') {
        options.url += (options.url.indexOf('?') >= 0 ? '&' : '?') + q;
        options.data = null;  // data is null for 'get'
    }
    else
        options.data = q; // data is the query string for 'post'

    var $form = this, callbacks = [];
    if (options.resetForm) callbacks.push(function() { $form.resetForm(); });
    if (options.clearForm) callbacks.push(function() { $form.clearForm(); });

    // perform a load on the target only if dataType is not provided
    if (!options.dataType && options.target) {
        var oldSuccess = options.success || function(){};
        callbacks.push(function(data) {
            $(options.target).html(data).each(oldSuccess, arguments);
        });
    }
    else if (options.success)
        callbacks.push(options.success);

    options.success = function(data, status) {
        for (var i=0, max=callbacks.length; i < max; i++)
            callbacks[i].apply(options, [data, status, $form]);
    };

    // are there files to upload?
    var files = $('input:file', this).fieldValue();
    var found = false;
    for (var j=0; j < files.length; j++)
        if (files[j])
            found = true;

    // options.iframe allows user to force iframe mode
   if (options.iframe || found) { 
       // hack to fix Safari hang (thanks to Tim Molendijk for this)
       // see:  http://groups.google.com/group/jquery-dev/browse_thread/thread/36395b7ab510dd5d
       if ($.browser.safari && options.closeKeepAlive)
           $.get(options.closeKeepAlive, fileUpload);
       else
           fileUpload();
       }
   else
       $.ajax(options);

    // fire 'notify' event
    this.trigger('form-submit-notify', [this, options]);
    return this;


    // private function for handling file uploads (hat tip to YAHOO!)
    function fileUpload() {
        var form = $form[0];
        
        if ($(':input[@name=submit]', form).length) {
            alert('Error: Form elements must not be named "submit".');
            return;
        }
        
        var opts = $.extend({}, $.ajaxSettings, options);
		var s = jQuery.extend(true, {}, $.extend(true, {}, $.ajaxSettings), opts);

        var id = 'jqFormIO' + (new Date().getTime());
        var $io = $('<iframe id="' + id + '" name="' + id + '" />');
        var io = $io[0];

        if ($.browser.msie || $.browser.opera) 
            io.src = 'javascript:false;document.write("");';
        $io.css({ position: 'absolute', top: '-1000px', left: '-1000px' });

        var xhr = { // mock object
            aborted: 0,
            responseText: null,
            responseXML: null,
            status: 0,
            statusText: 'n/a',
            getAllResponseHeaders: function() {},
            getResponseHeader: function() {},
            setRequestHeader: function() {},
            abort: function() { 
                this.aborted = 1; 
                $io.attr('src','about:blank'); // abort op in progress
            }
        };

        var g = opts.global;
        // trigger ajax global events so that activity/block indicators work like normal
        if (g && ! $.active++) $.event.trigger("ajaxStart");
        if (g) $.event.trigger("ajaxSend", [xhr, opts]);

		if (s.beforeSend && s.beforeSend(xhr, s) === false) {
			s.global && jQuery.active--;
			return;
        }
        if (xhr.aborted)
            return;
        
        var cbInvoked = 0;
        var timedOut = 0;

        // add submitting element to data if we know it
        var sub = form.clk;
        if (sub) {
            var n = sub.name;
            if (n && !sub.disabled) {
                options.extraData = options.extraData || {};
                options.extraData[n] = sub.value;
                if (sub.type == "image") {
                    options.extraData[name+'.x'] = form.clk_x;
                    options.extraData[name+'.y'] = form.clk_y;
                }
            }
        }

        // take a breath so that pending repaints get some cpu time before the upload starts
        setTimeout(function() {
            // make sure form attrs are set
            var t = $form.attr('target'), a = $form.attr('action');
            $form.attr({
                target:   id,
                method:   'POST',
                action:   opts.url
            });
            
            // ie borks in some cases when setting encoding
            if (! options.skipEncodingOverride) {
                $form.attr({
                    encoding: 'multipart/form-data',
                    enctype:  'multipart/form-data'
                });
            }

            // support timout
            if (opts.timeout)
                setTimeout(function() { timedOut = true; cb(); }, opts.timeout);

            // add "extra" data to form if provided in options
            var extraInputs = [];
            try {
                if (options.extraData)
                    for (var n in options.extraData)
                        extraInputs.push(
                            $('<input type="hidden" name="'+n+'" value="'+options.extraData[n]+'" />')
                                .appendTo(form)[0]);
            
                // add iframe to doc and submit the form
                $io.appendTo('body');
                io.attachEvent ? io.attachEvent('onload', cb) : io.addEventListener('load', cb, false);
                form.submit();
            }
            finally {
                // reset attrs and remove "extra" input elements
                $form.attr('action', a);
                t ? $form.attr('target', t) : $form.removeAttr('target');
                $(extraInputs).remove();
            }
        }, 10);

        function cb() {
            if (cbInvoked++) return;
            
            io.detachEvent ? io.detachEvent('onload', cb) : io.removeEventListener('load', cb, false);

            var operaHack = 0;
            var ok = true;
            try {
                if (timedOut) throw 'timeout';
                // extract the server response from the iframe
                var data, doc;

                doc = io.contentWindow ? io.contentWindow.document : io.contentDocument ? io.contentDocument : io.document;
                
                if (doc.body == null && !operaHack && $.browser.opera) {
                    // In Opera 9.2.x the iframe DOM is not always traversable when
                    // the onload callback fires so we give Opera 100ms to right itself
                    operaHack = 1;
                    cbInvoked--;
                    setTimeout(cb, 100);
                    return;
                }
                
                xhr.responseText = doc.body ? doc.body.innerHTML : null;
                xhr.responseXML = doc.XMLDocument ? doc.XMLDocument : doc;
                xhr.getResponseHeader = function(header){
                    var headers = {'content-type': opts.dataType};
                    return headers[header];
                };

                if (opts.dataType == 'json' || opts.dataType == 'script') {
                    var ta = doc.getElementsByTagName('textarea')[0];
                    xhr.responseText = ta ? ta.value : xhr.responseText;
                }
                else if (opts.dataType == 'xml' && !xhr.responseXML && xhr.responseText != null) {
                    xhr.responseXML = toXml(xhr.responseText);
                }
                data = $.httpData(xhr, opts.dataType);
            }
            catch(e){
                ok = false;
                $.handleError(opts, xhr, 'error', e);
            }

            // ordering of these callbacks/triggers is odd, but that's how $.ajax does it
            if (ok) {
                opts.success(data, 'success');
                if (g) $.event.trigger("ajaxSuccess", [xhr, opts]);
            }
            if (g) $.event.trigger("ajaxComplete", [xhr, opts]);
            if (g && ! --$.active) $.event.trigger("ajaxStop");
            if (opts.complete) opts.complete(xhr, ok ? 'success' : 'error');

            // clean up
            setTimeout(function() {
                $io.remove();
                xhr.responseXML = null;
            }, 100);
        };

        function toXml(s, doc) {
            if (window.ActiveXObject) {
                doc = new ActiveXObject('Microsoft.XMLDOM');
                doc.async = 'false';
                doc.loadXML(s);
            }
            else
                doc = (new DOMParser()).parseFromString(s, 'text/xml');
            return (doc && doc.documentElement && doc.documentElement.tagName != 'parsererror') ? doc : null;
        };
    };
};

/**
 * ajaxForm() provides a mechanism for fully automating form submission.
 *
 * The advantages of using this method instead of ajaxSubmit() are:
 *
 * 1: This method will include coordinates for <input type="image" /> elements (if the element
 *    is used to submit the form).
 * 2. This method will include the submit element's name/value data (for the element that was
 *    used to submit the form).
 * 3. This method binds the submit() method to the form for you.
 *
 * The options argument for ajaxForm works exactly as it does for ajaxSubmit.  ajaxForm merely
 * passes the options argument along after properly binding events for submit elements and
 * the form itself.
 */ 
$.fn.ajaxForm = function(options) {
    return this.ajaxFormUnbind().bind('submit.form-plugin',function() {
        $(this).ajaxSubmit(options);
        return false;
    }).each(function() {
        // store options in hash
        $(":submit,input:image", this).bind('click.form-plugin',function(e) {
            var form = this.form;
            form.clk = this;
            if (this.type == 'image') {
                if (e.offsetX != undefined) {
                    form.clk_x = e.offsetX;
                    form.clk_y = e.offsetY;
                } else if (typeof $.fn.offset == 'function') { // try to use dimensions plugin
                    var offset = $(this).offset();
                    form.clk_x = e.pageX - offset.left;
                    form.clk_y = e.pageY - offset.top;
                } else {
                    form.clk_x = e.pageX - this.offsetLeft;
                    form.clk_y = e.pageY - this.offsetTop;
                }
            }
            // clear form vars
            setTimeout(function() { form.clk = form.clk_x = form.clk_y = null; }, 10);
        });
    });
};

// ajaxFormUnbind unbinds the event handlers that were bound by ajaxForm
$.fn.ajaxFormUnbind = function() {
    this.unbind('submit.form-plugin');
    return this.each(function() {
        $(":submit,input:image", this).unbind('click.form-plugin');
    });

};

/**
 * formToArray() gathers form element data into an array of objects that can
 * be passed to any of the following ajax functions: $.get, $.post, or load.
 * Each object in the array has both a 'name' and 'value' property.  An example of
 * an array for a simple login form might be:
 *
 * [ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ]
 *
 * It is this array that is passed to pre-submit callback functions provided to the
 * ajaxSubmit() and ajaxForm() methods.
 */
$.fn.formToArray = function(semantic) {
    var a = [];
    if (this.length == 0) return a;

    var form = this[0];
    var els = semantic ? form.getElementsByTagName('*') : form.elements;
    if (!els) return a;
    for(var i=0, max=els.length; i < max; i++) {
        var el = els[i];
        var n = el.name;
        if (!n) continue;

        if (semantic && form.clk && el.type == "image") {
            // handle image inputs on the fly when semantic == true
            if(!el.disabled && form.clk == el)
                a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
            continue;
        }

        var v = $.fieldValue(el, true);
        if (v && v.constructor == Array) {
            for(var j=0, jmax=v.length; j < jmax; j++)
                a.push({name: n, value: v[j]});
        }
        else if (v !== null && typeof v != 'undefined')
            a.push({name: n, value: v});
    }

    if (!semantic && form.clk) {
        // input type=='image' are not found in elements array! handle them here
        var inputs = form.getElementsByTagName("input");
        for(var i=0, max=inputs.length; i < max; i++) {
            var input = inputs[i];
            var n = input.name;
            if(n && !input.disabled && input.type == "image" && form.clk == input)
                a.push({name: n+'.x', value: form.clk_x}, {name: n+'.y', value: form.clk_y});
        }
    }
    return a;
};

/**
 * Serializes form data into a 'submittable' string. This method will return a string
 * in the format: name1=value1&amp;name2=value2
 */
$.fn.formSerialize = function(semantic) {
    //hand off to jQuery.param for proper encoding
    return $.param(this.formToArray(semantic));
};

/**
 * Serializes all field elements in the jQuery object into a query string.
 * This method will return a string in the format: name1=value1&amp;name2=value2
 */
$.fn.fieldSerialize = function(successful) {
    var a = [];
    this.each(function() {
        var n = this.name;
        if (!n) return;
        var v = $.fieldValue(this, successful);
        if (v && v.constructor == Array) {
            for (var i=0,max=v.length; i < max; i++)
                a.push({name: n, value: v[i]});
        }
        else if (v !== null && typeof v != 'undefined')
            a.push({name: this.name, value: v});
    });
    //hand off to jQuery.param for proper encoding
    return $.param(a);
};

/**
 * Returns the value(s) of the element in the matched set.  For example, consider the following form:
 *
 *  <form><fieldset>
 *      <input name="A" type="text" />
 *      <input name="A" type="text" />
 *      <input name="B" type="checkbox" value="B1" />
 *      <input name="B" type="checkbox" value="B2"/>
 *      <input name="C" type="radio" value="C1" />
 *      <input name="C" type="radio" value="C2" />
 *  </fieldset></form>
 *
 *  var v = $(':text').fieldValue();
 *  // if no values are entered into the text inputs
 *  v == ['','']
 *  // if values entered into the text inputs are 'foo' and 'bar'
 *  v == ['foo','bar']
 *
 *  var v = $(':checkbox').fieldValue();
 *  // if neither checkbox is checked
 *  v === undefined
 *  // if both checkboxes are checked
 *  v == ['B1', 'B2']
 *
 *  var v = $(':radio').fieldValue();
 *  // if neither radio is checked
 *  v === undefined
 *  // if first radio is checked
 *  v == ['C1']
 *
 * The successful argument controls whether or not the field element must be 'successful'
 * (per http://www.w3.org/TR/html4/interact/forms.html#successful-controls).
 * The default value of the successful argument is true.  If this value is false the value(s)
 * for each element is returned.
 *
 * Note: This method *always* returns an array.  If no valid value can be determined the
 *       array will be empty, otherwise it will contain one or more values.
 */
$.fn.fieldValue = function(successful) {
    for (var val=[], i=0, max=this.length; i < max; i++) {
        var el = this[i];
        var v = $.fieldValue(el, successful);
        if (v === null || typeof v == 'undefined' || (v.constructor == Array && !v.length))
            continue;
        v.constructor == Array ? $.merge(val, v) : val.push(v);
    }
    return val;
};

/**
 * Returns the value of the field element.
 */
$.fieldValue = function(el, successful) {
    var n = el.name, t = el.type, tag = el.tagName.toLowerCase();
    if (typeof successful == 'undefined') successful = true;

    if (successful && (!n || el.disabled || t == 'reset' || t == 'button' ||
        (t == 'checkbox' || t == 'radio') && !el.checked ||
        (t == 'submit' || t == 'image') && el.form && el.form.clk != el ||
        tag == 'select' && el.selectedIndex == -1))
            return null;

    if (tag == 'select') {
        var index = el.selectedIndex;
        if (index < 0) return null;
        var a = [], ops = el.options;
        var one = (t == 'select-one');
        var max = (one ? index+1 : ops.length);
        for(var i=(one ? index : 0); i < max; i++) {
            var op = ops[i];
            if (op.selected) {
                // extra pain for IE...
                var v = $.browser.msie && !(op.attributes['value'].specified) ? op.text : op.value;
                if (one) return v;
                a.push(v);
            }
        }
        return a;
    }
    return el.value;
};

/**
 * Clears the form data.  Takes the following actions on the form's input fields:
 *  - input text fields will have their 'value' property set to the empty string
 *  - select elements will have their 'selectedIndex' property set to -1
 *  - checkbox and radio inputs will have their 'checked' property set to false
 *  - inputs of type submit, button, reset, and hidden will *not* be effected
 *  - button elements will *not* be effected
 */
$.fn.clearForm = function() {
    return this.each(function() {
        $('input,select,textarea', this).clearFields();
    });
};

/**
 * Clears the selected form elements.
 */
$.fn.clearFields = $.fn.clearInputs = function() {
    return this.each(function() {
        var t = this.type, tag = this.tagName.toLowerCase();
        if (t == 'text' || t == 'password' || tag == 'textarea')
            this.value = '';
        else if (t == 'checkbox' || t == 'radio')
            this.checked = false;
        else if (tag == 'select')
            this.selectedIndex = -1;
    });
};

/**
 * Resets the form data.  Causes all form elements to be reset to their original value.
 */
$.fn.resetForm = function() {
    return this.each(function() {
        // guard against an input with the name of 'reset'
        // note that IE reports the reset function as an 'object'
        if (typeof this.reset == 'function' || (typeof this.reset == 'object' && !this.reset.nodeType))
            this.reset();
    });
};

/**
 * Enables or disables any matching elements.
 */
$.fn.enable = function(b) { 
    if (b == undefined) b = true;
    return this.each(function() { 
        this.disabled = !b 
    });
};

/**
 * Checks/unchecks any matching checkboxes or radio buttons and
 * selects/deselects and matching option elements.
 */
$.fn.selected = function(select) {
    if (select == undefined) select = true;
    return this.each(function() { 
        var t = this.type;
        if (t == 'checkbox' || t == 'radio')
            this.checked = select;
        else if (this.tagName.toLowerCase() == 'option') {
            var $sel = $(this).parent('select');
            if (select && $sel[0] && $sel[0].type == 'select-one') {
                // deselect all other options
                $sel.find('option').selected(false);
            }
            this.selected = select;
        }
    });
};

// helper fn for console logging
// set $.fn.ajaxSubmit.debug to true to enable debug logging
function log() {
    if ($.fn.ajaxSubmit.debug && window.console && window.console.log)
        window.console.log('[jquery.form] ' + Array.prototype.join.call(arguments,''));
};

})(jQuery);


/*------------jquery/jquery.scrollTo.js----------*/

/**
 * jQuery.ScrollTo
 * Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
 * Dual licensed under MIT and GPL.
 * Date: 9/11/2008
 *
 * @projectDescription Easy element scrolling using jQuery.
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 * Tested with jQuery 1.2.6. On FF 2/3, IE 6/7, Opera 9.2/5 and Safari 3. on Windows.
 *
 * @author Ariel Flesler
 * @version 1.4
 *
 * @id jQuery.scrollTo
 * @id jQuery.fn.scrollTo
 * @param {String, Number, DOMElement, jQuery, Object} target Where to scroll the matched elements.
 *	  The different options for target are:
 *		- A number position (will be applied to all axes).
 *		- A string position ('44', '100px', '+=90', etc ) will be applied to all axes
 *		- A jQuery/DOM element ( logically, child of the element to scroll )
 *		- A string selector, that will be relative to the element to scroll ( 'li:eq(2)', etc )
 *		- A hash { top:x, left:y }, x and y can be any kind of number/string like above.
 * @param {Number} duration The OVERALL length of the animation, this argument can be the settings object instead.
 * @param {Object,Function} settings Optional set of settings or the onAfter callback.
 *	 @option {String} axis Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'.
 *	 @option {Number} duration The OVERALL length of the animation.
 *	 @option {String} easing The easing method for the animation.
 *	 @option {Boolean} margin If true, the margin of the target element will be deducted from the final position.
 *	 @option {Object, Number} offset Add/deduct from the end position. One number for both axes or { top:x, left:y }.
 *	 @option {Object, Number} over Add/deduct the height/width multiplied by 'over', can be { top:x, left:y } when using both axes.
 *	 @option {Boolean} queue If true, and both axis are given, the 2nd axis will only be animated after the first one ends.
 *	 @option {Function} onAfter Function to be called after the scrolling ends. 
 *	 @option {Function} onAfterFirst If queuing is activated, this function will be called after the first scrolling ends.
 * @return {jQuery} Returns the same jQuery object, for chaining.
 *
 * @desc Scroll to a fixed position
 * @example $('div').scrollTo( 340 );
 *
 * @desc Scroll relatively to the actual position
 * @example $('div').scrollTo( '+=340px', { axis:'y' } );
 *
 * @dec Scroll using a selector (relative to the scrolled element)
 * @example $('div').scrollTo( 'p.paragraph:eq(2)', 500, { easing:'swing', queue:true, axis:'xy' } );
 *
 * @ Scroll to a DOM element (same for jQuery object)
 * @example var second_child = document.getElementById('container').firstChild.nextSibling;
 *			$('#container').scrollTo( second_child, { duration:500, axis:'x', onAfter:function(){
 *				alert('scrolled!!');																   
 *			}});
 *
 * @desc Scroll on both axes, to different values
 * @example $('div').scrollTo( { top: 300, left:'+=200' }, { axis:'xy', offset:-20 } );
 */
;(function( $ ){
	
	var $scrollTo = $.scrollTo = function( target, duration, settings ){
		$(window).scrollTo( target, duration, settings );
	};

	$scrollTo.defaults = {
		axis:'y',
		duration:1
	};

	// Returns the element that needs to be animated to scroll the window.
	// Kept for backwards compatibility (specially for localScroll & serialScroll)
	$scrollTo.window = function( scope ){
		return $(window).scrollable();
	};

	// Hack, hack, hack... stay away!
	// Returns the real elements to scroll (supports window/iframes, documents and regular nodes)
	$.fn.scrollable = function(){
		return this.map(function(){
			// Just store it, we might need it
			var win = this.parentWindow || this.defaultView,
				// If it's a document, get its iframe or the window if it's THE document
				elem = this.nodeName == '#document' ? win.frameElement || win : this,
				// Get the corresponding document
				doc = elem.contentDocument || (elem.contentWindow || elem).document,
				isWin = elem.setInterval;

			return elem.nodeName == 'IFRAME' || isWin && $.browser.safari ? doc.body
				: isWin ? doc.documentElement
				: this;
		});
	};

	$.fn.scrollTo = function( target, duration, settings ){
		if( typeof duration == 'object' ){
			settings = duration;
			duration = 0;
		}
		if( typeof settings == 'function' )
			settings = { onAfter:settings };
			
		settings = $.extend( {}, $scrollTo.defaults, settings );
		// Speed is still recognized for backwards compatibility
		duration = duration || settings.speed || settings.duration;
		// Make sure the settings are given right
		settings.queue = settings.queue && settings.axis.length > 1;
		
		if( settings.queue )
			// Let's keep the overall duration
			duration /= 2;
		settings.offset = both( settings.offset );
		settings.over = both( settings.over );

		return this.scrollable().each(function(){
			var elem = this,
				$elem = $(elem),
				targ = target, toff, attr = {},
				win = $elem.is('html,body');

			switch( typeof targ ){
				// A number will pass the regex
				case 'number':
				case 'string':
					if( /^([+-]=)?\d+(px)?$/.test(targ) ){
						targ = both( targ );
						// We are done
						break;
					}
					// Relative selector, no break!
					targ = $(targ,this);
				case 'object':
					// DOMElement / jQuery
					if( targ.is || targ.style )
						// Get the real position of the target 
						toff = (targ = $(targ)).offset();
			}
			$.each( settings.axis.split(''), function( i, axis ){
				var Pos	= axis == 'x' ? 'Left' : 'Top',
					pos = Pos.toLowerCase(),
					key = 'scroll' + Pos,
					old = elem[key],
					Dim = axis == 'x' ? 'Width' : 'Height',
					dim = Dim.toLowerCase();

				if( toff ){// jQuery / DOMElement
					attr[key] = toff[pos] + ( win ? 0 : old - $elem.offset()[pos] );

					// If it's a dom element, reduce the margin
					if( settings.margin ){
						attr[key] -= parseInt(targ.css('margin'+Pos)) || 0;
						attr[key] -= parseInt(targ.css('border'+Pos+'Width')) || 0;
					}
					
					attr[key] += settings.offset[pos] || 0;
					
					if( settings.over[pos] )
						// Scroll to a fraction of its width/height
						attr[key] += targ[dim]() * settings.over[pos];
				}else
					attr[key] = targ[pos];

				// Number or 'number'
				if( /^\d+$/.test(attr[key]) )
					// Check the limits
					attr[key] = attr[key] <= 0 ? 0 : Math.min( attr[key], max(Dim) );

				// Queueing axes
				if( !i && settings.queue ){
					// Don't waste time animating, if there's no need.
					if( old != attr[key] )
						// Intermediate animation
						animate( settings.onAfterFirst );
					// Don't animate this axis again in the next iteration.
					delete attr[key];
				}
			});			
			animate( settings.onAfter );			

			function animate( callback ){
				$elem.animate( attr, duration, settings.easing, callback && function(){
					callback.call(this, target, settings);
				});
			};
			function max( Dim ){
				var attr ='scroll'+Dim,
					doc = elem.ownerDocument;
				
				return win
						? Math.max( doc.documentElement[attr], doc.body[attr]  )
						: elem[attr];
			};
		}).end();
	};

	function both( val ){
		return typeof val == 'object' ? val : { top:val, left:val };
	};

})( jQuery );

/*------------jquery/jquery.fancybox.js----------*/

/*
 * FancyBox - simple jQuery plugin for fancy image zooming
 * Examples and documentation at: http://fancy.klade.lv/
 * Version: 1.0.0 (29/04/2008)
 * Copyright (c) 2008 Janis Skarnelis
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
 * Requires: jQuery v1.2.1 or later
*/
(function($) {
	var opts = {}, 
		imgPreloader = new Image, imgTypes = ['png', 'jpg', 'jpeg', 'gif'], 
		loadingTimer, loadingFrame = 1;

   $.fn.fancybox = function(settings) {
		opts.settings = $.extend({}, $.fn.fancybox.defaults, settings);

		$.fn.fancybox.init();

		return this.each(function() {
			var $this = $(this);
			var o = $.metadata ? $.extend({}, opts.settings, $this.metadata()) : opts.settings;

			$this.unbind('click').click(function() {
				$.fn.fancybox.start(this, o); return false;
			});
		});
	};

	$.fn.fancybox.start = function(el, o) {
		if (opts.animating) return false;

		if (o.overlayShow) {
			$("#fancy_wrap").prepend('<div id="fancy_overlay"></div>');
			$("#fancy_overlay").css({'width': $(window).width(), 'height': $(document).height(), 'opacity': o.overlayOpacity});

			if ($.browser.msie) {
				$("#fancy_wrap").prepend('<iframe id="fancy_bigIframe" scrolling="no" frameborder="0"></iframe>');
				$("#fancy_bigIframe").css({'width': $(window).width(), 'height': $(document).height(), 'opacity': 0});
			}

			$("#fancy_overlay").click($.fn.fancybox.close);
		}

		opts.itemArray	= [];
		opts.itemNum	= 0;

		if (jQuery.isFunction(o.itemLoadCallback)) {
		   o.itemLoadCallback.apply(this, [opts]);

			var c	= $(el).children("img:first").length ? $(el).children("img:first") : $(el);
			var tmp	= {'width': c.width(), 'height': c.height(), 'pos': $.fn.fancybox.getPosition(c)}

		   for (var i = 0; i < opts.itemArray.length; i++) {
				opts.itemArray[i].o = $.extend({}, o, opts.itemArray[i].o);
				
				if (o.zoomSpeedIn > 0 || o.zoomSpeedOut > 0) {
					opts.itemArray[i].orig = tmp;
				}
		   }

		} else {
			if (!el.rel || el.rel == '') {
				var item = {url: el.href, title: el.title, o: o};

				if (o.zoomSpeedIn > 0 || o.zoomSpeedOut > 0) {
					var c = $(el).children("img:first").length ? $(el).children("img:first") : $(el);
					item.orig = {'width': c.width(), 'height': c.height(), 'pos': $.fn.fancybox.getPosition(c)}
				}

				opts.itemArray.push(item);

			} else {
				var arr	= $("a[@rel=" + el.rel + "]").get();

				for (var i = 0; i < arr.length; i++) {
					var tmp		= $.metadata ? $.extend({}, o, $(arr[i]).metadata()) : o;
   					var item	= {url: arr[i].href, title: arr[i].title, o: tmp};

   					if (o.zoomSpeedIn > 0 || o.zoomSpeedOut > 0) {
						var c = $(arr[i]).children("img:first").length ? $(arr[i]).children("img:first") : $(el);

						item.orig = {'width': c.width(), 'height': c.height(), 'pos': $.fn.fancybox.getPosition(c)}
					}

					if (arr[i].href == el.href) opts.itemNum = i;

					opts.itemArray.push(item);
				}
			}
		}

		$.fn.fancybox.changeItem(opts.itemNum);
	};

	$.fn.fancybox.changeItem = function(n) {
		$.fn.fancybox.showLoading();

		opts.itemNum = n;

		$("#fancy_nav").empty();
		$("#fancy_outer").stop();
		$("#fancy_title").hide();
		$(document).unbind("keydown");

		imgRegExp = imgTypes.join('|');
    	imgRegExp = new RegExp('\.' + imgRegExp + '$', 'i');

		var url = opts.itemArray[n].url;

		if (url.match(/#/)) {
			var target = window.location.href.split('#')[0]; target = url.replace(target,'');

	        $.fn.fancybox.showItem('<div id="fancy_div">' + $(target).html() + '</div>');

	        $("#fancy_loading").hide();

		} else if (url.match(imgRegExp)) {
			$(imgPreloader).unbind('load').bind('load', function() {
				$("#fancy_loading").hide();

				opts.itemArray[n].o.frameWidth	= imgPreloader.width;
				opts.itemArray[n].o.frameHeight	= imgPreloader.height;

				$.fn.fancybox.showItem('<img id="fancy_img" src="' + imgPreloader.src + '" />');

			}).attr('src', url + '?rand=' + Math.floor(Math.random() * 999999999) );

		} else {
			$.fn.fancybox.showItem('<iframe id="fancy_frame" onload="$.fn.fancybox.showIframe()" name="fancy_iframe' + Math.round(Math.random()*1000) + '" frameborder="0" hspace="0" src="' + url + '"></iframe>');
		}
	};

	$.fn.fancybox.showIframe = function() {
		$("#fancy_loading").hide();
		$("#fancy_frame").show();
	};

	$.fn.fancybox.showItem = function(val) {
		$.fn.fancybox.preloadNeighborImages();

		var viewportPos	= $.fn.fancybox.getViewport();
		var itemSize	= $.fn.fancybox.getMaxSize(viewportPos[0] - 50, viewportPos[1] - 100, opts.itemArray[opts.itemNum].o.frameWidth, opts.itemArray[opts.itemNum].o.frameHeight);

		var itemLeft	= viewportPos[2] + Math.round((viewportPos[0] - itemSize[0]) / 2) - 20;
		var itemTop		= viewportPos[3] + Math.round((viewportPos[1] - itemSize[1]) / 2) - 40;

		var itemOpts = {
			'left':		itemLeft, 
			'top':		itemTop, 
			'width':	itemSize[0] + 'px', 
			'height':	itemSize[1] + 'px'	
		}

		if (opts.active) {
			$('#fancy_content').fadeOut("normal", function() {
				$("#fancy_content").empty();
				
				$("#fancy_outer").animate(itemOpts, "normal", function() {
					$("#fancy_content").append($(val)).fadeIn("normal");
					$.fn.fancybox.updateDetails();
				});
			});

		} else {
			opts.active = true;

			$("#fancy_content").empty();

			if ($("#fancy_content").is(":animated")) {
				console.info('animated!');
			}

			if (opts.itemArray[opts.itemNum].o.zoomSpeedIn > 0) {
				opts.animating		= true;
				itemOpts.opacity	= "show";

				$("#fancy_outer").css({
					'top':		opts.itemArray[opts.itemNum].orig.pos.top - 18,
					'left':		opts.itemArray[opts.itemNum].orig.pos.left - 18,
					'height':	opts.itemArray[opts.itemNum].orig.height,
					'width':	opts.itemArray[opts.itemNum].orig.width
				});

				$("#fancy_content").append($(val)).show();

				$("#fancy_outer").animate(itemOpts, opts.itemArray[opts.itemNum].o.zoomSpeedIn, function() {
					opts.animating = false;
					$.fn.fancybox.updateDetails();
				});

			} else {
				$("#fancy_content").append($(val)).show();
				$("#fancy_outer").css(itemOpts).show();
				$.fn.fancybox.updateDetails();
			}
		 }
	};

	$.fn.fancybox.updateDetails = function() {
		$("#fancy_bg,#fancy_close").show();

		if (opts.itemArray[opts.itemNum].title !== undefined && opts.itemArray[opts.itemNum].title !== '') {
			$('#fancy_title div').html(opts.itemArray[opts.itemNum].title);
			$('#fancy_title').show();
		}

		if (opts.itemArray[opts.itemNum].o.hideOnContentClick) {
			$("#fancy_content").click($.fn.fancybox.close);
		} else {
			$("#fancy_content").unbind('click');
		}

		if (opts.itemNum != 0) {
			$("#fancy_nav").append('<a id="fancy_left" href="javascript:;"></a>');

			$('#fancy_left').click(function() {
				$.fn.fancybox.changeItem(opts.itemNum - 1); return false;
			});
		}

		if (opts.itemNum != (opts.itemArray.length - 1)) {
			$("#fancy_nav").append('<a id="fancy_right" href="javascript:;"></a>');
			
			$('#fancy_right').click(function(){
				$.fn.fancybox.changeItem(opts.itemNum + 1); return false;
			});
		}

		$(document).keydown(function(event) {
			if (event.keyCode == 27) {
            	$.fn.fancybox.close();

			} else if(event.keyCode == 37 && opts.itemNum != 0) {
            	$.fn.fancybox.changeItem(opts.itemNum - 1);

			} else if(event.keyCode == 39 && opts.itemNum != (opts.itemArray.length - 1)) {
            	$.fn.fancybox.changeItem(opts.itemNum + 1);
			}
		});
	};

	$.fn.fancybox.preloadNeighborImages = function() {
		if ((opts.itemArray.length - 1) > opts.itemNum) {
			preloadNextImage = new Image();
			preloadNextImage.src = opts.itemArray[opts.itemNum + 1].url;
		}

		if (opts.itemNum > 0) {
			preloadPrevImage = new Image();
			preloadPrevImage.src = opts.itemArray[opts.itemNum - 1].url;
		}
	};

	$.fn.fancybox.close = function() {
		if (opts.animating) return false;

		$(imgPreloader).unbind('load');
		$(document).unbind("keydown");

		$("#fancy_loading,#fancy_title,#fancy_close,#fancy_bg").hide();

		$("#fancy_nav").empty();

		opts.active	= false;

		if (opts.itemArray[opts.itemNum].o.zoomSpeedOut > 0) {
			var itemOpts = {
				'top':		opts.itemArray[opts.itemNum].orig.pos.top - 18,
				'left':		opts.itemArray[opts.itemNum].orig.pos.left - 18,
				'height':	opts.itemArray[opts.itemNum].orig.height,
				'width':	opts.itemArray[opts.itemNum].orig.width,
				'opacity':	'hide'
			};

			opts.animating = true;

			$("#fancy_outer").animate(itemOpts, opts.itemArray[opts.itemNum].o.zoomSpeedOut, function() {
				$("#fancy_content").hide().empty();
				$("#fancy_overlay,#fancy_bigIframe").remove();
				opts.animating = false;
			});

		} else {
			$("#fancy_outer").hide();
			$("#fancy_content").hide().empty();
			$("#fancy_overlay,#fancy_bigIframe").fadeOut("fast").remove();
		}
	};

	$.fn.fancybox.showLoading = function() {
		clearInterval(loadingTimer);

		var pos = $.fn.fancybox.getViewport();

		$("#fancy_loading").css({'left': ((pos[0] - 40) / 2 + pos[2]), 'top': ((pos[1] - 40) / 2 + pos[3])}).show();
		$("#fancy_loading").bind('click', $.fn.fancybox.close);
		
		loadingTimer = setInterval($.fn.fancybox.animateLoading, 66);
	};

	$.fn.fancybox.animateLoading = function(el, o) {
		if (!$("#fancy_loading").is(':visible')){
			clearInterval(loadingTimer);
			return;
		}

		$("#fancy_loading > div").css('top', (loadingFrame * -40) + 'px');

		loadingFrame = (loadingFrame + 1) % 12;
	};

	$.fn.fancybox.init = function() {
		if (!$('#fancy_wrap').length) {
			$('<div id="fancy_wrap"><div id="fancy_loading"><div></div></div><div id="fancy_outer"><div id="fancy_inner"><div id="fancy_nav"></div><div id="fancy_close"></div><div id="fancy_content"></div><div id="fancy_title"></div></div></div></div>').appendTo("body");
			$('<div id="fancy_bg"><div class="fancy_bg fancy_bg_n"></div><div class="fancy_bg fancy_bg_ne"></div><div class="fancy_bg fancy_bg_e"></div><div class="fancy_bg fancy_bg_se"></div><div class="fancy_bg fancy_bg_s"></div><div class="fancy_bg fancy_bg_sw"></div><div class="fancy_bg fancy_bg_w"></div><div class="fancy_bg fancy_bg_nw"></div></div>').prependTo("#fancy_inner");
			
			$('<table cellspacing="0" cellpadding="0" border="0"><tr><td id="fancy_title_left"></td><td id="fancy_title_main"><div></div></td><td id="fancy_title_right"></td></tr></table>').appendTo('#fancy_title');
		}

		if ($.browser.msie) {
			$("#fancy_inner").prepend('<iframe id="fancy_freeIframe" scrolling="no" frameborder="0"></iframe>');
		}

		if (jQuery.fn.pngFix) $(document).pngFix();

    	$("#fancy_close").click($.fn.fancybox.close);
	};

	$.fn.fancybox.getPosition = function(el) {
		var pos = el.offset();

		pos.top	+= $.fn.fancybox.num(el, 'paddingTop');
		pos.top	+= $.fn.fancybox.num(el, 'borderTopWidth');

 		pos.left += $.fn.fancybox.num(el, 'paddingLeft');
		pos.left += $.fn.fancybox.num(el, 'borderLeftWidth');

		return pos;
	};

	$.fn.fancybox.num = function (el, prop) {
		return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0;
	};

	$.fn.fancybox.getPageScroll = function() {
		var xScroll, yScroll;

		if (self.pageYOffset) {
			yScroll = self.pageYOffset;
			xScroll = self.pageXOffset;
		} else if (document.documentElement && document.documentElement.scrollTop) {
			yScroll = document.documentElement.scrollTop;
			xScroll = document.documentElement.scrollLeft;
		} else if (document.body) {
			yScroll = document.body.scrollTop;
			xScroll = document.body.scrollLeft;	
		}

		return [xScroll, yScroll]; 
	};

	$.fn.fancybox.getViewport = function() {
		var scroll = $.fn.fancybox.getPageScroll();

		return [$(window).width(), $(window).height(), scroll[0], scroll[1]];
	};

	$.fn.fancybox.getMaxSize = function(maxWidth, maxHeight, imageWidth, imageHeight) {
		var r = Math.min(Math.min(maxWidth, imageWidth) / imageWidth, Math.min(maxHeight, imageHeight) / imageHeight);

		return [Math.round(r * imageWidth), Math.round(r * imageHeight)];
	};

	$.fn.fancybox.defaults = {
		hideOnContentClick:	false,
		zoomSpeedIn:		500,
		zoomSpeedOut:		500,
		frameWidth:			600,
		frameHeight:		400,
		overlayShow:		false,
		overlayOpacity:		0.4,
		itemLoadCallback:	null
	};
})(jQuery);

/*------------jquery/jquery.multiselect.js----------*/

/**
 * Transform single select list into 2 multi-selects
 * adding controls to move options left or right.
 * 
 * Based on work from two other solutions:
 *   http://devblog.jasonhuck.com/2008/04/25/jquery-combo-select-redux/
 *   http://akibjorklund.com/code/multiselectable/
 */
(function($) {
	$.fn.multiSelect = function(custom_options) {
		// defaults
		var defaults = {
			
		};
		
		// extend defaults with custom options
		var options = $.extend(defaults, custom_options);
		
		// setup multiselect
		return this.each(function() {
			// set values
			var orig     = $(this);
			var left_id  = this.id + '_left';
			var right_id = this.id + '_right';
			var form     = orig.parents('form');
			var width    = orig[0].offsetWidth;
			
			// hide and replace original element
			var html = '';
			html += '<div class="multi-select-available">';
			html += '<h3>Available</h3>';
			html += '<select id="' + left_id + '" name="' + left_id + '" class="multi-select-left" multiple="multiple" size="5">';
			html += '</select>';
			html += '</div>';
			html += '<div class="multi-select-triggers">';
			html += '<button class="secondary multi-select-add" onclick="return false;">&raquo;</button><br />';
			html += '<button class="secondary multi-select-remove" onclick="return false;">&laquo;</button>';
			html += '</div>';
			html += '<div class="multi-select-selected">';
			html += '<h3>Selected</h3>';
			html += '<select id="' + right_id + '" name="' + right_id + '" class="multi-select-right" multiple="multiple" size="5">';
			html += '</select>';
			html += '</div>';
			orig.hide().after(html);
			
			// set left and right
			var left  = $('#' + left_id);
			var right = $('#' + right_id);
			
			// add options to left and right
			orig.find('option:selected').clone().removeAttr('selected').appendTo(right);
			orig.find('option:not(:selected)').clone().appendTo(left);
			
			// update widths so they match
			left.width(width);
			right.width(width);
			
			// handle move left or right
			function move(from, to, selected) {
				from.find('option:selected').removeAttr('selected').remove().appendTo(to);
				to.sortOptions();
				return false;
			}
			function moveLeft() { return move(right, left, false); }
			function moveRight() { return move(left, right, true); }
			
			// events that trigger a move
			left.dblclick(moveRight);  
			right.dblclick(moveLeft);
			$('button.multi-select-add').click(moveRight);
			$('button.multi-select-remove').click(moveLeft);
			
			// submit event
			form.submit(function() {
				// clear original
				orig.find('option:selected').removeAttr('selected');
				
				// set right options as selected
				right.find('option').each(function() {
					var v = $(this).attr('value');
					orig.find('option[value="' + v + '"]').attr('selected', 'selected');
				});
				
				return true;
			});
		});
	};
})(jQuery);


/*------------jquery/jquery.selectboxes.min.js----------*/

/*
 *
 * Copyright (c) 2006-2008 Sam Collett (http://www.texotela.co.uk)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Version 2.2.4
 * Demo: http://www.texotela.co.uk/code/jquery/select/
 *
 * $LastChangedDate: 2008-06-17 17:27:25 +0100 (Tue, 17 Jun 2008) $
 * $Rev: 5727 $
 *
 */
;(function(h){h.fn.addOption=function(){var j=function(a,f,c,g){var d=document.createElement("option");d.value=f,d.text=c;var b=a.options;var e=b.length;if(!a.cache){a.cache={};for(var i=0;i<e;i++){a.cache[b[i].value]=i}}if(typeof a.cache[f]=="undefined")a.cache[f]=e;a.options[a.cache[f]]=d;if(g){d.selected=true}};var k=arguments;if(k.length==0)return this;var l=true;var m=false;var n,o,p;if(typeof(k[0])=="object"){m=true;n=k[0]}if(k.length>=2){if(typeof(k[1])=="boolean")l=k[1];else if(typeof(k[2])=="boolean")l=k[2];if(!m){o=k[0];p=k[1]}}this.each(function(){if(this.nodeName.toLowerCase()!="select")return;if(m){for(var a in n){j(this,a,n[a],l)}}else{j(this,o,p,l)}});return this};h.fn.ajaxAddOption=function(c,g,d,b,e){if(typeof(c)!="string")return this;if(typeof(g)!="object")g={};if(typeof(d)!="boolean")d=true;this.each(function(){var f=this;h.getJSON(c,g,function(a){h(f).addOption(a,d);if(typeof b=="function"){if(typeof e=="object"){b.apply(f,e)}else{b.call(f)}}})});return this};h.fn.removeOption=function(){var d=arguments;if(d.length==0)return this;var b=typeof(d[0]);var e,i;if(b=="string"||b=="object"||b=="function"){e=d[0];if(e.constructor==Array){var j=e.length;for(var k=0;k<j;k++){this.removeOption(e[k],d[1])}return this}}else if(b=="number")i=d[0];else return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return;if(this.cache)this.cache=null;var a=false;var f=this.options;if(!!e){var c=f.length;for(var g=c-1;g>=0;g--){if(e.constructor==RegExp){if(f[g].value.match(e)){a=true}}else if(f[g].value==e){a=true}if(a&&d[1]===true)a=f[g].selected;if(a){f[g]=null}a=false}}else{if(d[1]===true){a=f[i].selected}else{a=true}if(a){this.remove(i)}}});return this};h.fn.sortOptions=function(e){var i=h(this).selectedValues();var j=typeof(e)=="undefined"?true:!!e;this.each(function(){if(this.nodeName.toLowerCase()!="select")return;var c=this.options;var g=c.length;var d=[];for(var b=0;b<g;b++){d[b]={v:c[b].value,t:c[b].text}}d.sort(function(a,f){o1t=a.t.toLowerCase(),o2t=f.t.toLowerCase();if(o1t==o2t)return 0;if(j){return o1t<o2t?-1:1}else{return o1t>o2t?-1:1}});for(var b=0;b<g;b++){c[b].text=d[b].t;c[b].value=d[b].v}}).selectOptions(i,true);return this};h.fn.selectOptions=function(g,d){var b=g;var e=typeof(g);if(e=="object"&&b.constructor==Array){var i=this;h.each(b,function(){i.selectOptions(this,d)})};var j=d||false;if(e!="string"&&e!="function"&&e!="object")return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(b.constructor==RegExp){if(a[c].value.match(b)){a[c].selected=true}else if(j){a[c].selected=false}}else{if(a[c].value==b){a[c].selected=true}else if(j){a[c].selected=false}}}});return this};h.fn.copyOptions=function(g,d){var b=d||"selected";if(h(g).size()==0)return this;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(b=="all"||(b=="selected"&&a[c].selected)){h(g).addOption(a[c].value,a[c].text)}}});return this};h.fn.containsOption=function(g,d){var b=false;var e=g;var i=typeof(e);var j=typeof(d);if(i!="string"&&i!="function"&&i!="object")return j=="function"?this:b;this.each(function(){if(this.nodeName.toLowerCase()!="select")return this;if(b&&j!="function")return false;var a=this.options;var f=a.length;for(var c=0;c<f;c++){if(e.constructor==RegExp){if(a[c].value.match(e)){b=true;if(j=="function")d.call(a[c],c)}}else{if(a[c].value==e){b=true;if(j=="function")d.call(a[c],c)}}}});return j=="function"?this:b};h.fn.selectedValues=function(){var a=[];this.selectedOptions().each(function(){a[a.length]=this.value});return a};h.fn.selectedTexts=function(){var a=[];this.selectedOptions().each(function(){a[a.length]=this.text});return a};h.fn.selectedOptions=function(){return this.find("option:selected")}})(jQuery);

/*------------jquery/jquery.tablesorter.min.js----------*/


(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'.',debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter);}else if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter);}if(!p){p=detectParserForColumn(table,cells[i]);}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n";}list.push(p);}}if(table.config.debug){log(parsersDebug);}return list;};function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i<l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i];}}return parsers[0];}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i];}}return false;}function buildCache(table){if(table.config.debug){var cacheTime=new Date();}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]));}cols.push(i);cache.normalized.push(cols);cols=null;};if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime);}return cache;};function getElementText(config,node){if(!node)return"";var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML;}else{t=node.innerHTML;}}else{if(typeof(config.textExtraction)=="function"){t=config.textExtraction(node);}else{t=$(node).text();}}return t;}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j<l;j++){tableBody[0].appendChild(o[j]);}}}if(table.config.appender){table.config.appender(table,rows);}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime);}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd");},0);};function buildHeaders(table){if(table.config.debug){var time=new Date();}var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++){tableHeadersRows[i]=0;};$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index))this.sortDisabled=true;if(!this.sortDisabled){$(this).addClass(table.config.cssHeader);}table.config.headerList[index]=this;});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders);}return $tableHeaders;};function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table);}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i];}}};function formatSortingOrder(v){if(typeof(v)!="Number"){i=(v.toLowerCase()=="desc")?1:0;}else{i=(v==(0||1))?v:0;}return i;}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true;}}return false;}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this);}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]]);}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$('<colgroup>');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('<col>').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++;}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date();}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc");var e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { ";}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; ";}dynamicExp+="return 0; ";dynamicExp+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime);}return cache;};function sortText(a,b){return((a<b)?-1:((a>b)?1:0));};function sortTextDesc(a,b){return((b<a)?-1:((b>a)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j]);}}}config.sortList.push([i,this.order]);}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2;}}}else{config.sortList.push([i,this.order]);}};setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache));},1);return false;}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false;}});$this.bind("update",function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache));}).bind("appendCache",function(){appendToTable(this,cache);}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this);}).bind("applyWidgets",function(){applyWidget(this);});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist;}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false;}}if(a){parsers.push(parser);};};this.addWidget=function(widget){widgets.push(widget);};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i;};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i;};this.isDigit=function(s,config){var DECIMAL='\\'+config.decimal;var exp='/(^[+]?0('+DECIMAL+'0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)'+DECIMAL+'(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*'+DECIMAL+'0+$)/';return RegExp(exp).test($.trim(s));};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild)this.removeChild(this.firstChild);}empty.apply(table.tBodies[0]);}else{table.tBodies[0].innerHTML="";}};}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true;},format:function(s){return $.trim(s.toLowerCase());},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c);},format:function(s){return $.tablesorter.formatFloat(s);},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s);},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""));},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s);},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item;}else{r+=item;}}return $.tablesorter.formatFloat(r);},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s);},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),''));},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s);},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0");},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s));},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""));},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/));},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s);},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2");}else if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1");}else if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3");}return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s);},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime());},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false;},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?'sortValue':c.parserMetadataName;return $(cell).metadata()[p];},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date();}$("tr:visible",table.tBodies[0]).filter(':even').removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(':odd').removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time);}}});})(jQuery);

/*------------jquery/jquery.pngFix.pack.js----------*/

/**
 * --------------------------------------------------------------------
 * jQuery-Plugin "pngFix"
 * Version: 1.1, 11.09.2007
 * by Andreas Eberhard, andreas.eberhard@gmail.com
 *                      http://jquery.andreaseberhard.de/
 *
 * Copyright (c) 2007 Andreas Eberhard
 * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(s($){3.1s.1k=s(j){j=3.1a({12:\'1m.1j\'},j);8 k=(n.P=="r 10 Z"&&U(n.v)==4&&n.v.E("14 5.5")!=-1);8 l=(n.P=="r 10 Z"&&U(n.v)==4&&n.v.E("14 6.0")!=-1);o(3.17.16&&(k||l)){3(2).L("1r[@m$=.M]").z(s(){3(2).7(\'q\',3(2).q());3(2).7(\'p\',3(2).p());8 a=\'\';8 b=\'\';8 c=(3(2).7(\'K\'))?\'K="\'+3(2).7(\'K\')+\'" \':\'\';8 d=(3(2).7(\'A\'))?\'A="\'+3(2).7(\'A\')+\'" \':\'\';8 e=(3(2).7(\'C\'))?\'C="\'+3(2).7(\'C\')+\'" \':\'\';8 f=(3(2).7(\'B\'))?\'B="\'+3(2).7(\'B\')+\'" \':\'\';8 g=(3(2).7(\'R\'))?\'1d:\'+3(2).7(\'R\')+\';\':\'\';8 h=(3(2).1c().7(\'1b\'))?\'19:18;\':\'\';o(2.9.y){a+=\'y:\'+2.9.y+\';\';2.9.y=\'\'}o(2.9.t){a+=\'t:\'+2.9.t+\';\';2.9.t=\'\'}o(2.9.w){a+=\'w:\'+2.9.w+\';\';2.9.w=\'\'}8 i=(2.9.15);b+=\'<x \'+c+d+e+f;b+=\'9="13:11;1q-1p:1o-1n;O:W-V;N:1l;\'+g+h;b+=\'q:\'+3(2).q()+\'u;\'+\'p:\'+3(2).p()+\'u;\';b+=\'J:I:H.r.G\'+\'(m=\\\'\'+3(2).7(\'m\')+\'\\\', D=\\\'F\\\');\';b+=i+\'"></x>\';o(a!=\'\'){b=\'<x 9="13:11;O:W-V;\'+a+h+\'q:\'+3(2).q()+\'u;\'+\'p:\'+3(2).p()+\'u;\'+\'">\'+b+\'</x>\'}3(2).1i();3(2).1h(b)});3(2).L("*").z(s(){8 a=3(2).T(\'N-S\');o(a.E(".M")!=-1){8 b=a.X(\'1g("\')[1].X(\'")\')[0];3(2).T(\'N-S\',\'1f\');3(2).Q(0).Y.J="I:H.r.G(m=\'"+b+"\',D=\'F\')"}});3(2).L("1e[@m$=.M]").z(s(){8 a=3(2).7(\'m\');3(2).Q(0).Y.J=\'I:H.r.G\'+\'(m=\\\'\'+a+\'\\\', D=\\\'F\\\');\';3(2).7(\'m\',j.12)})}1t 3}})(3);',62,92,'||this|jQuery||||attr|var|style|||||||||||||src|navigator|if|height|width|Microsoft|function|padding|px|appVersion|margin|span|border|each|class|alt|title|sizingMethod|indexOf|scale|AlphaImageLoader|DXImageTransform|progid|filter|id|find|png|background|display|appName|get|align|image|css|parseInt|block|inline|split|runtimeStyle|Explorer|Internet|relative|blankgif|position|MSIE|cssText|msie|browser|hand|cursor|extend|href|parent|float|input|none|url|after|hide|gif|pngFix|transparent|blank|line|pre|space|white|img|fn|return'.split('|'),0,{}))

/*------------jquery/jquery.metadata.pack.js----------*/

/*
 * Metadata - jQuery plugin for parsing metadata from elements
 *
 * Copyright (c) 2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul McLanahan
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Revision: $Id: jquery.metadata.js 3620 2007-10-10 20:55:38Z pmclanahan $
 *
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(9($){$.r({3:{7:{8:\'l\',h:\'3\',q:/({.*})/,4:\'3\'},w:9(a,b){g.7.8=a;g.7.h=b},j:9(b,c){5 d=$.r({},g.7,c);2(!d.4.o)d.4=\'3\';5 a=$.n(b,d.4);2(a)6 a;a="{}";2(d.8=="l"){5 m=d.q.v(b.u);2(m)a=m[1]}k 2(d.8=="t"){2(!b.i)6;5 e=b.i(d.h);2(e.o)a=$.s(e[0].C)}k 2(b.p!=A){5 f=b.p(d.h);2(f)a=f}2(a.z(\'{\')<0)a="{"+a+"}";a=y("("+a+")");$.n(b,d.4,a);6 a}}});$.x.3=9(a){6 $.3.j(g[0],a)}})(B);',39,39,'||if|metadata|single|var|return|defaults|type|function|||||||this|name|getElementsByTagName|get|else|class||data|length|getAttribute|cre|extend|trim|elem|className|exec|setType|fn|eval|indexOf|undefined|jQuery|innerHTML'.split('|'),0,{}))

/*------------jquery/jquery.maskedinput.pack.js----------*/

/*
 * Masked Input Plugin for jQuery 1.2.1
 * Copyright (c) 2008 Josh Bush (digitalbush.com)
 * Licensed under the MIT (MIT-LICENSE.txt) 
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(4($){2 w=($.21.1V?\'1U\':\'1Q\')+".C";2 x=(1o.1E!=1A);$.C={1m:{\'9\':"[0-9]",\'a\':"[A-1k-z]",\'*\':"[A-1k-1s-9]"}};$.28.1i({D:4(b,c){3(5.y==0)6;3(1h b==\'1f\'){c=(1h c==\'1f\')?c:b;6 5.11(4(){3(5.13){5.1e();5.13(b,c)}B 3(5.1d){2 a=5.1d();a.1B(V);a.1z(\'Y\',c);a.1c(\'Y\',b);a.1x()}})}B{3(5[0].13){b=5[0].1w;c=5[0].1v}B 3(15.S&&15.S.1a){2 d=15.S.1a();b=0-d.1D().1c(\'Y\',-1y);c=b+d.29.y}6{I:b,W:c}}},X:4(){6 5.1F("X")},C:4(m,n){3(!m&&5.y>0){2 o=$(5[0]);2 q=o.R("12");6 $.18(o.R("14"),4(c,i){6 q[i]?c:E}).19(\'\')}n=$.1i({F:"1G",U:E},n);2 r=$.C.1m;2 q=[];2 s=m.y;2 u=E;2 v=m.y;$.11(m.1b(""),4(i,c){3(c==\'?\'){v--;s=i}B{q.1I(r[c]?20 22(r[c]):E);3(q[q.y-1]&&u==E)u=q.y-1}});6 5.11(4(){2 f=$(5);2 g=$.18(m.1b(""),4(c,i){3(c!=\'?\')6 r[c]?n.F:c});2 h=G;2 l=f.7();f.R("14",g).R("12",q);4 K(a){Z(++a<v){3(q[a])6 a}6 v};4 1g(a){Z(!q[a]&&a>=0)a--;P(2 i=a;i<v;i++){3(q[i]){g[i]=n.F;2 j=K(i);3(j<v&&q[i].O(g[j])){g[i]=g[j]}B Q}}H();f.D(1t.1u(u,a))};4 1j(a){P(2 i=a,c=n.F;i<v;i++){3(q[i]){2 j=K(i);2 t=g[i];g[i]=c;3(j<v&&q[j].O(t))c=t;B Q}}};4 1l(e){2 a=$(5).D();2 k=e.10;h=(k<16||(k>16&&k<17)||(k>17&&k<1n));3((a.I-a.W)!=0&&(!h||k==8||k==T))M(a.I,a.W);3(k==8||k==T||(x&&k==1H)){1g(a.I+(k==T?0:-1));6 G}B 3(k==27){M(0,v);H();$(5).D(u);6 G}};4 1p(e){3(h){h=G;6(e.10==8)?G:E}e=e||1o.1J;2 k=e.1K||e.10||e.1L;2 a=$(5).D();3(e.1M||e.1N){6 V}B 3((k>=1n&&k<=1O)||k==17||k>1P){2 p=K(a.I-1);3(p<v){2 c=1R.1S(k);3(q[p].O(c)){1j(p);g[p]=c;H();2 b=K(p);$(5).D(b);3(n.U&&b==v)n.U.1T(f)}}}6 G};4 M(a,b){P(2 i=a;i<b&&i<v;i++){3(q[i])g[i]=n.F}};4 H(){6 f.7(g.19(\'\')).7()};4 J(a){2 b=f.7();2 d=-1;P(2 i=0,N=0;i<v;i++){3(q[i]){g[i]=n.F;Z(N++<b.y){2 c=b.1W(N-1);3(q[i].O(c)){g[i]=c;d=i;Q}}3(N>b.y)Q}}3(!a&&d+1<s){f.7("");M(0,v)}B 3(a||d+1>=s){H();3(!a)f.7(f.7().1X(0,d+1))}6(s?i:u)};f.1Y("X",4(){f.1Z(".C").1q("14").1q("12")}).L("1e.C",4(){l=f.7();2 a=J();H();1r(4(){f.D(a)},0)}).L("23.C",4(){J();3(f.7()!=l)f.24()}).L("25.C",1l).L("26.C",1p).L(w,4(){1r(4(){f.D(J(V))},0)});J()})}})})(1C);',62,134,'||var|if|function|this|return|val|||||||||||||||||||||||||||length|||else|mask|caret|null|placeholder|false|writeBuffer|begin|checkVal|seekNext|bind|clearBuffer|pos|test|for|break|data|selection|46|completed|true|end|unmask|character|while|keyCode|each|tests|setSelectionRange|buffer|document||32|map|join|createRange|split|moveStart|createTextRange|focus|number|shiftL|typeof|extend|shiftR|Za|keydownEvent|definitions|41|window|keypressEvent|removeData|setTimeout|z0|Math|max|selectionEnd|selectionStart|select|100000|moveEnd|undefined|collapse|jQuery|duplicate|orientation|trigger|_|127|push|event|charCode|which|ctrlKey|altKey|122|186|input|String|fromCharCode|call|paste|msie|charAt|substring|one|unbind|new|browser|RegExp|blur|change|keydown|keypress||fn|text'.split('|'),0,{}))

/*------------reglib.js----------*/

/*
reglib version 1.0.6
Copyright 2008
Released under MIT license
http://code.google.com/p/reglib/
*/

// you can rename window.reg to whatever you want
window.reg = (function(){

	var reg = {};

	// this adds reg's dom helper functions and event functions to the 
	// global namespace. don't call this method if you want to keep your 
	// global namespace clean. alternatively you can individually import 
	// certain sections, this is just a convenient way to do them all.
	reg.importAll = function() {
		var errStrings = [];
		try { reg.importSelectorAPI(); }
		catch (err) { errStrings.push(err.message); }
		try { reg.importHelperFunctions(); }
		catch (err) { errStrings.push(err.message); }
		try { reg.importEventFunctions(); }
		catch (err) { errStrings.push(err.message); }
		if (errStrings.length > 0) { throw new Error(errStrings.join("\n")); }
	};
	function globalError(name) {
		return "reglib tried to add \""+name+"\" to global namespace but \""+name+"\" already existed.";
	}
	if (window.Node && Node.prototype && !Node.prototype.contains) {
		Node.prototype.contains = function (arg) {
			return !!(this.compareDocumentPosition(arg) & 16);
		}
	}

// #############################################################################
// #### SELECTORS ##############################################################
// #############################################################################

	/*
	A CSS-like selector API focusing on matching not traversal:
	- new reg.Selector(selectorString)
	- new reg.Selector(selectorString).matches(someElement)

	For example:
	var sel = new reg.Selector('div#foo > ul.bar > li');
	var item = document.getElementById('myListItem');
	if (sel.matches(item)) { ... }
	*/

	// precompiled patterns
	var expressions = {
		leadSpace:  new RegExp("^\\s+"),
		tagName:    new RegExp("^([a-z_][a-z0-9_-]*)","i"),
		wildCard:   new RegExp("^\\*([^=]|$)"),
		className:  new RegExp("^(\\.([a-z0-9_-]+))","i"),
		id:         new RegExp("^(#([a-z0-9_-]+))","i"),
		att:        new RegExp("^(@([a-z0-9_-]+))","i"),
		matchType:  new RegExp("(^\\^=)|(^\\$=)|(^\\*=)|(^~=)|(^\\|=)|(^=)"),
		spaceQuote: new RegExp("^\\s+['\"]")
	};

	// constructor
	reg.Selector=function(selString) {
		var exp = expressions;
		this.items = []; // for each comma-separated selector, this array has an item
		var itms = []; // this will be added to this.items
		var count = 0;
		var origSel = selString;
		while (selString.length>0) {
			if (count > 100) { throw new Error("failed parsing '"+origSel+"' stuck at '"+selString+"'"); }
			// get rid of any leading spaces
			var leadSpaceChopped = false;
			if (exp.leadSpace.test(selString)) {
				selString=selString.replace(exp.leadSpace,'');
				leadSpaceChopped = true;
			}

			// find tag name
			var tagNameMatch = exp.tagName.exec(selString);
			if (tagNameMatch) {
				if (itms.length > 0 && itms[itms.length-1].name=='tag') { itms.push({name:'descendant'}); }
				itms.push({name:'tag',tagName:tagNameMatch[1].toLowerCase()});
				selString=selString.substring(tagNameMatch[1].length);
				tagNameMatch=null;
				continue;
			}
			// explicit wildcard selector
			if (exp.wildCard.test(selString)) {
				if (itms.length > 0 && itms[itms.length-1].name=='tag') { itms.push({name:'descendant'}); }
				itms.push({name:'tag',tagName:'*'});
				selString = selString.substring(1);
				continue;
			}
			var classMatch = exp.className.exec(selString);
			var idMatch = exp.id.exec(selString);
			var attMatch = exp.att.exec(selString);
			if (classMatch || idMatch || attMatch) {
				// declare descendant if necessary
				if (leadSpaceChopped && itms.length>0 && itms[itms.length-1].name=='tag') { itms.push({name:'descendant'}); }
				// create a tag wildcard * if necessary
				if (itms.length==0 || itms[itms.length-1].name!='tag') { itms.push({name:'tag',tagName:'*'}); }
				var lastTag = itms[itms.length-1];
				// find class name, like .entry
				if (classMatch) {
					if (!lastTag.classNames) {
						lastTag.classNames = [classMatch[2]];
					} else {
						lastTag.classNames.push(classMatch[2]);
					}
					selString=selString.substring(classMatch[1].length);
					classMatch=null;
					continue;
				}
				// find id, like #content
				if (idMatch) {
					lastTag.id=idMatch[2];
					selString=selString.substring(idMatch[1].length);
					idMatch=null;
					continue;
				}
				// find attribute selector, like @src
				if (attMatch) {
					if (!lastTag.attributes) {
						lastTag.attributes = [{name:attMatch[2]}];
					} else {
						lastTag.attributes.push({name:attMatch[2]});
					}
					selString=selString.substring(attMatch[1].length);
					attMatch=null;
					continue;
				}
			}
			// find attribute value specifier
			var mTypeMatch=exp.matchType.exec(selString);
			if (mTypeMatch) {
				// this will determine how the matching is done
				// (lastTag should still be hanging around)
				if(lastTag && lastTag.attributes && !lastTag.attributes[lastTag.attributes.length-1].value){

					var lastAttribute = lastTag.attributes[lastTag.attributes.length-1];
					lastAttribute.matchType = mTypeMatch[0];
					
					selString=selString.substring(lastAttribute.matchType.length);
					if(selString.charAt(0)!='"'&&selString.charAt(0)!="'"){
						if(exp.spaceQuote.test(selString)){selString=selString.replace(exp.leadSpace,'');}
						else{throw new Error(origSel+" is invalid, single or double quotes required around attribute values");}
					}
					// it is enclosed in quotes, end is closing quote
					var q=selString.charAt(0);
					var lastQInd=selString.indexOf(q,1);
					if(lastQInd==-1){throw new Error(origSel+" is invalid, missing closing quote");}
					while(selString.charAt(lastQInd-1)=='\\'){
						lastQInd=selString.indexOf(q,lastQInd+1);
						if(lastQInd==-1){throw new Error(origSel+" is invalid, missing closing quote");}
					}
					lastAttribute.value=selString.substring(1,lastQInd);
					if      ('~=' == lastAttribute.matchType) { lastAttribute.valuePatt = new RegExp("(^|\\s)"+lastAttribute.value+"($|\\s)"); }
					else if ('|=' == lastAttribute.matchType) { lastAttribute.valuePatt = new RegExp("^"+lastAttribute.value+"($|\\-)"); }
					selString=selString.substring(lastAttribute.value.length+2);// +2 for the quotes
					continue;
				} else {
					throw new Error(origSel+" is invalid, "+mTypeMatch[0]+" appeared without preceding attribute identifier");
				}
				mTypeMatch=null;
			}
			// find child selector
			if (selString.charAt(0) == '>') {
				itms.push({name:'child'});
				selString=selString.substring(1);
				continue;
			}
			// find next sibling selector
			if (selString.charAt(0) == '+') {
				itms.push({name:'nextSib'});
				selString=selString.substring(1);
				continue;
			}
			// find after sibling selector
			if (selString.charAt(0) == '~') {
				itms.push({name:'followingSib'});
				selString=selString.substring(1);
				continue;
			}
			// find the comma separator
			if (selString.charAt(0) == ',') {
				this.items.push(itms);
				itms = [];
				selString = selString.substring(1);
				continue;
			}
			count++;
		}
		this.items.push(itms);
		this.selectorString=origSel;
		// do some structural validation
		for (var a=0;a<this.items.length;a++){
			var itms = this.items[a];
			if (itms.length==0) { throw new Error("illegal structure: '"+origSel+"' contains an empty set"); }
			if (itms[0].name!='tag') { throw new Error("illegal structure: '"+origSel+"' contains a dangling relation"); }
			if (itms[itms.length-1].name!='tag') { throw new Error("illegal structure: '"+origSel+"' contains a dangling relation"); }
			for(var b=1;b<itms.length;b++){
				if(itms[b].name!='tag'&&itms[b-1].name!='tag'){ throw new Error("illegal structure: '"+origSel+"' contains doubled up relations"); }
			}
		}
	}

	// returns string suitable for querySelector() and querySelectorAll()
	function toQuerySelectorString(sel) {
		if (!sel.qss) {
			var itemStrings = [];
			for (var i=0; i<sel.items.length; i++) {
				var result = '';
				var item = sel.items[i];
				for (var j=0; j<item.length; j++) {
					var des = item[j];
					if (des.name=='tag') {
						result += des.tagName;
						if (des.classNames) { result += "." + des.classNames.join("."); }
						if (des.id) { result += '#' + des.id; }
						if (des.targeted) {  result += ':target'; }
						if (des.attributes) {
							
							for (var k=0; k<des.attributes.length; k++) {
								result += '[' + des.attributes[k].name;
								if (des.attributes[k].matchType) {
									result += des.attributes[k].matchType;
									result += '"'+des.attributes[k].value.replace(/"/,'\\"')+'"';
								}
								result += ']';
							}
							
						}
					} else if (des.name=='descendant') {
						result += ' ';
						continue;
					} else if (des.name=='child') {
						result += ' > ';
						continue;
					} else if (des.name=='followingSib') {
						result += ' ~ ';
						continue;
					} else if (des.name=='nextSib') {
						result += ' + ';
						continue;
					}
				}
				itemStrings.push(result);
			}
			sel.qss = itemStrings.join(', ');
		}
		return sel.qss;
	}

	// match against an element
	reg.Selector.prototype.matches = function(el) {
		if (!el) { throw new Error(this.selectorString+' cannot be evaluated against '+el); }
		if (el.nodeType != 1) { throw new Error(this.selectorString+' cannot be evaluated against element of type '+el.nodeType); }
		commas:for (var a=0;a<this.items.length;a++) { // for each comma-separated selector
			var tempEl = el;
			var itms = this.items[a];
			for (var b=itms.length-1; b>=0; b--) { // loop backwards through the items
				var itm = itms[b];
				if (itm.name == 'tag') {
					if (!matchIt(tempEl, itm)) {
						// these relational selectors require more extensive searching
						if (tempEl && b < itms.length-1 && itms[b+1].name=='descendant') { tempEl=tempEl.parentNode; b++; continue; }
						else if (tempEl && b < itms.length-1 && itms[b+1].name=='followingSib') { tempEl=tempEl.previousSibling; b++; continue; }
						else { continue commas; } // fail this one
					}
				}
				else if (itm.name == 'nextSib') { tempEl = previousElement(tempEl); }
				else if (itm.name == 'followingSib') { tempEl = previousElement(tempEl); }
				else if (itm.name == 'child') { tempEl = tempEl.parentNode; }
				else if (itm.name == 'descendant') { tempEl = tempEl.parentNode; }
			}
			return true;
		}
		return false;
	};

	// subroutine for matches() above
	function matchIt(el, itm) {
		// try to falsify as soon as possible
		if (!el) { return false; }
		if (el.nodeName.toLowerCase()!=itm.tagName && itm.tagName!='*') { return false; }
		if (itm.classNames) {
			 for (var i=0; i<itm.classNames.length; i++) {
			 	if (!hasClassName(el, itm.classNames[i])) {
					return false;
				}
			}
		}
		if (itm.id && el.id != itm.id) { return false; }
		if (itm.attributes) {
			for (var i=0; i<itm.attributes.length; i++) {
				var itmAtt = itm.attributes[i];
				if (typeof el.hasAttribute != 'undefined') {
					if (!el.hasAttribute(itmAtt.name)) { return false; }
					var att = el.getAttribute(itmAtt.name);
				}else{
					if(el.nodeType!=1) {return false;}
					var att = el.getAttribute(itmAtt.name,2);
					if(itmAtt.name=='class'){att=el.className;}
					else if(itmAtt.name=='for'){att=el.htmlFor;}
					if(!att){return false;}
				}
				if (itmAtt.value) {
					if (itmAtt.matchType=='^='){
						if (att.indexOf(itmAtt.value)!=0){return false;}
					} else if (itmAtt.matchType=='*='){
						if (att.indexOf(itmAtt.value)==-1){return false;}
					} else if (itmAtt.matchType=='$='){
						if (att.indexOf(itmAtt.value)!=att.length-itmAtt.value.length){return false;}
					} else if (itmAtt.matchType=='='){
						if (att!=itmAtt.value){return false;}
					} else if ('|='==itmAtt.matchType || '~='==itmAtt.matchType){
						if (!itmAtt.valuePatt.test(att)){return false;}
					}else{
						if(!itmAtt.matchType){throw new Error("illegal structure, parsed selector cannot have null or empty attribute match type");}
						else{throw new Error("illegal structure, parsed selector cannot have '"+itm.matchType+"' as an attribute match type");}
					}
				}
			}
		}
		return true;
	}

	// gets the tag names that the selector represents
	function getTagNames(sel) {
		var hash = {}; // this avoids dupes
		for (var a=0;a<sel.items.length;a++){
			hash[sel.items[a][sel.items[a].length-1].tagName]=null;
		}
		var result = [];
		for (var tag in hash){if(hash.hasOwnProperty(tag)){result.push(tag);}}
		return result;
	}

	reg.importSelectorAPI = function() {
		if (window.Selector) { throw new Error(globalError("Selector")); }
		window.Selector = reg.Selector;
	};

// #############################################################################
// #### DOM HELPERS ############################################################
// #############################################################################

	/*
	A bunch of DOM convenience methods (alias names in braces):

	CLASSNAMES
	- reg.addClassName(el, cName)..............................{acn}
	- reg.getElementsByClassName(cNames[, ctxNode[, tagName]]).{gebcn}
	- reg.hasClassName(el, cName)..............................{hcn}
	- reg.matchClassName(el, regexp)...........................{mcn}
	- reg.removeClassName(el, cName)...........................{rcn}
	- reg.switchClassName(el, cName1, cName2)..................{scn}
	- reg.toggleClassName(el, cName)...........................{tcn}

	SELECTORS
	- reg.elementMatchesSelector(el, selString)................{matches}
	- reg.getElementsBySelector(selString[, ctxNode])..........{gebs}

	OTHER
	- reg.elementText(el)......................................{elemText}
	- reg.getElementById().....................................{gebi}
	- reg.getElementsByTagName(tagName[, ctxNode]).............{gebtn}
	- reg.getParent(el, selString)
	- reg.innerWrap(el, wrapperEl)
	- reg.insertAfter(insertMe, afterThis)
	- reg.newElement(tagName[, attObj[, contents]])............{elem}
	- reg.nextElement(el)......................................{nextElem}
	- reg.outerWrap(el, wrapperEl)
	- reg.previousElement(el)..................................{prevElem}
	*/

	var clPatts={};// cache compiled classname regexps
	var cSels={};// cache compiled selectors

	// TEST FOR CLASS NAME
	function hasClassName(element, cName) {
		if (!clPatts[cName]) { clPatts[cName] = new RegExp("(^|\\s)"+cName+"($|\\s)"); }
		return element.className && clPatts[cName].test(element.className);
	}

	// ADD CLASS NAME
	function addClassName(element, cName) {
		if (!hasClassName(element, cName)) {
			element.className += ' ' + cName;
		}
	}

	// REMOVE CLASS NAME
	function removeClassName(element, cName) {
		if (!clPatts[cName]) { clPatts[cName] = new RegExp("(^|\\s+)"+cName+"($|\\s+)"); }
		element.className = element.className.replace(clPatts[cName], ' ');
	}

	// TOGGLE CLASS NAME
	function toggleClassName(element, cName) {
		if (hasClassName(element, cName)) { removeClassName(element, cName); }
		else { addClassName(element, cName); }
	}

	// SWITCH CLASS NAME A->B, B->A
	function switchClassName(element, cName1, cName2) {
		if (cName1 == cName2) { throw new Error("cName1 and cName2 both equal "+cName1); }
		var has1 = hasClassName(element, cName1);
		var has2 = hasClassName(element, cName2);
		if (has1 && has2) { removeClassName(element, cName2); }
		else if (!has1 && !has2) { addClassName(element, cName1); }
		else if (has1) { removeClassName(element, cName1); addClassName(element, cName2); }
		else { removeClassName(element, cName2); addClassName(element, cName1); }
	}

	// TEST FOR CLASS NAME BY REGEXP
	function matchClassName(element, pattern){
		var cNames = element.className.split(' ');
		for (var a=0; a<cNames.length; a++){
			var matches = cNames[a].match(pattern);
			if (matches) { return matches; }
		}
		return null;
	}

	// TEST AGAINST SELECTOR
	function elementMatchesSelector(element, selString){
		if(!cSels[selString]){cSels[selString]=new reg.Selector(selString);}
		return cSels[selString].matches(element);
	}

	// FIND PREVIOUS ELEMENT
	function previousElement(el) {
		var prev = el.previousSibling;
		while(prev && prev.nodeType!=1){prev=prev.previousSibling;}
		return prev;
	}

	// FIND NEXT ELEMENT
	function nextElement(el) {
		var next = el.nextSibling;
		while(next && next.nodeType!=1){next=next.nextSibling;}
		return next;
	}

	// ADD INNER WRAPPER
	function innerWrap(el, wrapperEl) {
		var nodes = el.childNodes;
		while (nodes.length > 0) {
			var myNode = nodes[0];
			el.removeChild(myNode);
			wrapperEl.appendChild(myNode);
		}
		el.appendChild(wrapperEl);
	}

	// ADD OUTER WRAPPER
	function outerWrap(el, wrapperEl) {
		el.parentNode.insertBefore(wrapperEl, el);
		el.parentNode.removeChild(el);
		wrapperEl.appendChild(el);
	}

	// GET PARENT
	function getParent(el, selString) {
		var parsedSel = new reg.Selector(selString);
		while (el.parentNode) {
			el = el.parentNode;
			if (el.nodeType==1 && parsedSel.matches(el)) { return el; }
		}
		return null;
	}

	// INSERT AFTER
	function insertAfter(insertMe, afterThis){
		var beforeThis = afterThis.nextSibling;
		var parent = afterThis.parentNode;
		if (beforeThis) { parent.insertBefore(insertMe, beforeThis); }
		else { parent.appendChild(insertMe); }
	}

	// SHORTCUT FOR BUILDING ELEMENTS
	function newElement(name, atts, content) {
		// name: e.g. 'div', 'div.foo', 'div#bar', 'div.foo#bar', 'div#bar.foo'
		// atts: (optional) e.g. {'href':'page.html','target':'_blank'}
		// content: (optional) either a string, or an element, or an arry of strings or elements
		if (name.indexOf('.') + name.indexOf('#') > -2) {
			var className = (name.indexOf('.') > -1) ? name.replace(/^.*\.([^\.#]*).*$/,"$1") : "";
			var id = (name.indexOf('#') > -1) ? name.replace(/^.*#([^\.#]*).*$/,"$1") : "";
			name = name.replace(/^([^\.#]*).*$/,'$1');
		}
		var e = document.createElement(name);
		if (className) { e.className = className; }
		if (id) { e.id = id; }
		if (atts) {
			for (var key in atts) {
				// setAttribute() has shaky support, try direct methods first
				if (!atts.hasOwnProperty(key)) { continue; }
				if (key == 'class') { e.className = e.className ? e.className += ' ' + atts[key] : atts[key]; }
				else if (key == 'for') { e.htmlFor = atts[key]; }
				else if (key.indexOf('on') == 0) { e[key] = atts[key]; }
				else {
					e.setAttribute(key, atts[key]);
				}
			}
		}
		if (content) {
			if (!(content instanceof Array)) {
				content = [content];
			}
			for (var a=0; a<content.length; a++) {
				if (typeof content[a] == 'string') {
					e.appendChild(document.createTextNode(content[a]));
				}else{
					e.appendChild(content[a]);
				}
			}
		}
		if (name.toLowerCase() == 'img' && !e.alt) { e.alt = ''; }
		return e;
	}

	// GRAB JUST THE TEXTUAL DATA OF AN ELEMENT
	function elementText(el) {
		// <a id="foo" href="page.html">click <b>here</b></a>
		// elementText(document.getElementById('foo')) == "click here"
		var r = '';
		if (el.alt) { r += el.alt; }
		r += el.innerHTML.replace(/<[a-z0-9_-]+ [^>]+alt="([^">]+)[^>]+>/ig,'$1').replace(/<[^>]+>/ig,'');
		var d = newElement('div');
		d.innerHTML = r;
		r = (d.childNodes[0]) ? d.childNodes[0].data : '';
		d = null;
		return r;
	}

	// GET ELEMENT BY ID
	function getElementById(id) { return document.getElementById(id); }

	// GET ELEMENTS BY TAG NAME
	function getElementsByTagName(tag, contextNode) {
		if(!contextNode){contextNode=document;}
		return contextNode.getElementsByTagName(tag);
	}

	// GET ELEMENTS BY SELECTOR
	var classTest = /^\s*([a-z0-9_-]+)?\.([a-z0-9_-]+)\s*$/i;
	var idTest = /^\s*([a-z0-9_-]+)?\#([a-z0-9_-]+)\s*$/i;
	function getElementsBySelector(selString, contextNode) {
		contextNode = contextNode || window.document.documentElement;
		var result = [];
		var cMat, iMat;
		if (cMat = selString.match(classTest)) {
			var cl = cMat[2];
			var tg = cMat[1];
			result = reg.gebcn(cl, contextNode, tg);
		} else if (iMat = selString.match(idTest)) {
			var id = iMat[2];
			var tg = iMat[1];
			var el = reg.gebi(id);
			if (el && contextNode.contains(el) && reg.matches(el, selString)) { result[0] = el; }
		} else {
			if (!cSels[selString]) { cSels[selString] = new reg.Selector(selString); }
			var sel = cSels[selString];
			if (contextNode.querySelectorAll) {
				var qlist = contextNode.querySelectorAll(toQuerySelectorString(sel));
				for (var i=0; i<qlist.length; i++) {
					result[result.length] = qlist[i];
				}
			} else {
				var tagNames = getTagNames(sel);
				for (var a=0; a<tagNames.length; a++) {
					var els = getElementsByTagName(tagNames[a], contextNode);
					for (var b=0, el; el=els[b++];) {
						if (el.nodeType!=1) { continue; }
						if (sel.matches(el)) { result.push(el); }
					}
				}
			}
		}
		return result;
	}

	// GET ELEMENTS BY CLASS NAME
	function getElementsByClassName(classNames, contextNode, tag) {
		contextNode = (contextNode) ? contextNode : document;
		tag = (tag) ? tag.toLowerCase() : '*';
		var results = [];
		if (document.getElementsByClassName) {
			// traverse natively
			var liveList = contextNode.getElementsByClassName(classNames);
			if (tag != '*') {
				for (var i=0; i<liveList.length; i++) {
					var el = liveList[i];
					if (tag == el.nodeName.toLowerCase()) {
						results.push(el);
					}
				}
			} else {
				for (var i=0; i<liveList.length; i++) { results.push(liveList[i]); }
			}
		} else {
			classNames = classNames.split(/\s+/);
			if (document.evaluate) {
				// traverse w/ xpath
				var xpath = ".//"+tag;
				var len = classNames.length;
				for(var i=0; i<len; i++) {
					xpath += "[contains(concat(' ', @class, ' '), ' " + classNames[i] + " ')]";
				}
				var xpathResult = document.evaluate(xpath, contextNode, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, xpathResult);
				var el;
				while (el = xpathResult.iterateNext()) {
					results.push(el);
				}
			} else {
				// traverse w/ dom
				var els = (tag=='*'&&contextNode.all) ? contextNode.all : getElementsByTagName(tag,contextNode);
				elements:for (var i=0,el;el=els[i++];) {
					for (var j=0; j<classNames.length; j++) {
						if (!hasClassName(el, classNames[j])) { continue elements; }
					}
					results.push(el);
				}
			}
		}
		return results;
	}

	var helpers = {
		hasClassName:           hasClassName,
		addClassName:           addClassName,
		removeClassName:        removeClassName,
		toggleClassName:        toggleClassName,
		switchClassName:        switchClassName,
		matchClassName:         matchClassName,
		elementMatchesSelector: elementMatchesSelector,
		previousElement:        previousElement,
		nextElement:            nextElement,
		innerWrap:              innerWrap,
		outerWrap:              outerWrap,
		getParent:              getParent,
		insertAfter:            insertAfter,
		newElement:             newElement,
		elementText:            elementText,
		getElementById:         getElementById,
		getElementsByTagName:   getElementsByTagName,
		getElementsBySelector:  getElementsBySelector,
		getElementsByClassName: getElementsByClassName
	};

	// aliases
	helpers.hcn      = helpers.hasClassName;
	helpers.acn      = helpers.addClassName;
	helpers.rcn      = helpers.removeClassName;
	helpers.tcn      = helpers.toggleClassName;
	helpers.scn      = helpers.switchClassName;
	helpers.mcn      = helpers.matchClassName;
	helpers.matches  = helpers.elementMatchesSelector;
	helpers.prevElem = helpers.previousElement;
	helpers.nextElem = helpers.nextElement;
	helpers.elem     = helpers.newElement;
	helpers.elemText = helpers.elementText;
	helpers.gebi     = helpers.getElementById;
	helpers.gebtn    = helpers.getElementsByTagName;
	helpers.gebs     = helpers.getElementsBySelector;
	helpers.gebcn    = helpers.getElementsByClassName;

	// add it globally
	reg.importHelperFunctions = function() {
		var errStrings = [];
		for (var func in helpers) {
			if(!helpers.hasOwnProperty(func)) { continue; }
			if (window[func]) { errStrings.push(globalError(func)); }
			else { window[func] = helpers[func]; }
		}
		if (errStrings.length > 0) { throw new Error(errStrings.join("\n")); }
	};

	// add it to reg
	for (var func in helpers) {
		if(!helpers.hasOwnProperty(func)) { continue; }
		if (reg[func]) { throw new Error("Already exists under reg: "+func); }
		else { reg[func] = helpers[func]; }
	}

// #############################################################################
// #### X-BROWSER EVENTS #######################################################
// #############################################################################

	/*
	Event attachment and detachment:
	- reg.addEvent(elmt,evt,handler,cptr)
	- reg.calcelDefault(evt)
	- reg.getTarget(evt)
	*/

	var memEvents = {};
	var aMemInd = 0;
	function rememberEvent(elmt,evt,handle,cptr){
		var memInd = aMemInd++;
		var key = "mem"+memInd;
		memEvents[key] = {
			element: elmt,
			event: evt,
			handler: handle,
			capture: cptr
		};
		return memInd;
	}
	function cleanup(){return;
		for (var key in memEvents) {
			var matches = key.match(/^mem(\d+)$/);
			if (!matches) { continue; }
			removeEvent(parseInt(matches[1]));
		}
	}

	// get the element on which the event occurred
	function getTarget(e) {
		if (!e) { e = window.event; }
		if (e.target) { var targ = e.target; }
		else if (e.srcElement) { var targ = e.srcElement; }
		if (targ.nodeType == 3) { targ = targ.parentNode; } // safari hack
		return targ;
	}

	// get the element on which the event occurred
	function getRelatedTarget(e) {
		if (!e) { e = window.event; }
		var rTarg = e.relatedTarget;
		if (!rTarg) {
			if ('mouseover'==e.type) { rTarg = e.fromElement; }
			if ('mouseout'==e.type) { rTarg = e.toElement; }
		}
		return rTarg;
	}

	// cancel default action
	function cancelDefault(e) {
		if (typeof e.preventDefault != 'undefined') { e.preventDefault(); return; }
		e.returnValue=false;
	}

	// cancel bubble
	function cancelBubble(e) {
		if (typeof e.stopPropagation != 'undefined') { e.stopPropagation(); return; }
		e.cancelBubble=true;
	}

	// generic event adder, plus memory leak prevention
	// returns an int mem that you can use to later remove that event removeEvent(mem)
	function addEvent(elmt,evt,handler,cptr) {
		cptr=(cptr)?true:false;
		if(elmt.addEventListener){
			elmt.addEventListener(evt,handler,cptr);
			return rememberEvent(elmt,evt,handler,cptr);
		}else if(elmt.attachEvent){
			var actualHandler = function(){handler.call(elmt,window.event);};
			elmt.attachEvent("on"+evt,actualHandler);
			return rememberEvent(elmt,evt,actualHandler);
		}
	}

	// event remover
	function removeEvent(memInt) {
		var eo = memEvents["mem"+memInt];
		if (eo) {
			var el=eo.element;
			if(el.removeEventListener) {
				el.removeEventListener(eo.event, eo.handler, eo.capture);
				return true;
			} else if(el.detachEvent) {
				el.detachEvent('on'+eo.event, eo.handler);
				return true;
			}
		}
		return false;
	}

	// fight memory leaks in ie
	addEvent(window,'unload',cleanup);

	var events = {
		getTarget:        getTarget,
		getRelatedTarget: getRelatedTarget,
		cancelDefault:    cancelDefault,
		addEvent:         addEvent,
		removeEvent:      removeEvent,
		cancelBubble:     cancelBubble
	};

	reg.importEventFunctions = function() {
		var errStrings = [];
		for (var func in events) {
			if(!events.hasOwnProperty(func)) { continue; }
			if (window[func]) { errStrings.push(globalError(func)); }
			else { window[func] = events[func]; }
		}
		if (errStrings.length > 0) { throw new Error(errStrings.join("\n")); }
	};

	for (var func in events) {
		if(!events.hasOwnProperty(func)) { continue; }
		if (reg[func]) { throw new Error("Already exists under reg: "+func); }
		else { reg[func] = events[func]; }
	}

// #############################################################################
// #### ON(DOM)LOAD ACTIONS ####################################################
// #############################################################################

	/*
	Add actions to run onload:
	- reg.preSetup(func)
	- reg.setup(selString, func, firstTimeOnly)
	- reg.postSetup(func)

	!!! WARNING !!!
	On browsers *without* native querySelector() support
	reg.setup makes page load time O(MN)
	where M is the number of calls to reg.setup()
	and N is the number of elements on the page
	*/

	// these contain lists of things to do
	var preSetupQueue=[];
	var setupQueue={};
	var postSetupQueue=[];

	// traverse and act onload
	reg.setup=function(selector, setup, firstTimeOnly){
		firstTimeOnly=(firstTimeOnly)?true:false;
		var sq=setupQueue;
		var parsedSel = new reg.Selector(selector);
		var tagNames=getTagNames(parsedSel);
		var regObj={
			selector:parsedSel,
			setup:setup,
			ran:false,
			firstTimeOnly:firstTimeOnly
		};
		for(var a=0;a<tagNames.length;a++){
			var tagName = tagNames[a];
			if(!sq[tagName]){sq[tagName]=[regObj];}
			else{sq[tagName].push(regObj);}
		}
	};
	// do this before setup
	reg.preSetup=function(fn){preSetupQueue.push(fn);};
	// do this after setup
	reg.postSetup=function(fn){postSetupQueue.push(fn);};

	// (re)run setup functions
	var runSetupFunctions = reg.rerun = function(el, noClobber){
		function runIt(el, regObj){
			regObj.setup.call(el);
			regObj.ran=true;
		}
		var start = new Date().getTime();
		if (typeof el.clobberable != 'undefined' && el.clobberable && noClobber) { return; }
		var doc=(el)?el:document;
		var sq=setupQueue;
		var sqIsEmpty=true;
		for (var tagName in sq) {
			if(!sq.hasOwnProperty(tagName)) { continue; }
			sqIsEmpty = false;
			break;
		}

		if (el.querySelector) {

			//####################################
			//querySelector() branch

			var qSelResults = [];
			for (var tagName in sq) {
				if(!sq.hasOwnProperty(tagName)) { continue; }
				var regObjArray = sq[tagName];
				for (var i=0; i<regObjArray.length; i++) {
					var regObj = regObjArray[i];
					if (regObj.firstTimeOnly) {
						if (regObj.ran) { continue; }
						try {
							var elmt = el.querySelector(toQuerySelectorString(regObj.selector));
							if (elmt) { qSelResults.push({el:elmt,regObj:regObj}); }
						} catch (ex) {
							console.log("querySelector('"+toQuerySelectorString(regObj.selector)+"') threw "+ex);
							continue;
						}
					} else {
						try {
							var elmts = el.querySelectorAll(toQuerySelectorString(regObj.selector));
							for (var j=0; j<elmts.length; j++) {
								qSelResults.push({el:elmts[j],regObj:regObj});
							}
						} catch (ex) {
							console.log("querySelectorAll('"+toQuerySelectorString(regObj.selector)+"') threw "+ex);
							continue;
						}
					}
				}
			}
			for (var i=0; i<qSelResults.length; i++) {
				runIt(qSelResults[i].el, qSelResults[i].regObj);
			}
		} else if (!sqIsEmpty) {

			//####################################
			//old branch

			var elsList=getElementsByTagName('*',doc);

			//dump live list to static list
			for (var i=elsList.length-1, els=[]; i>=0; i--) {
				els[i] = elsList[i];
			}

			// crawl the dom
			for(var a=0,elmt;elmt=els[a++];){
				if (elmt.nodeType!=1){continue;}//for ie7
				var lcNodeName=elmt.nodeName.toLowerCase();
				var regObjArrayAll=sq['*'];
				var regObjArrayTag=sq[lcNodeName];

				// any wildcards?
				if(regObjArrayAll){
					for(var b=0;b<regObjArrayAll.length;b++){
						var regObj=regObjArrayAll[b];
						if(regObj.firstTimeOnly && regObj.ran){continue;}
						var matches = regObj.selector.matches(elmt);
						if(matches){runIt(elmt, regObj);}
					}
				}

				// any items match this specific tag?
				if(regObjArrayTag){
					for(var b=0;b<regObjArrayTag.length;b++){
						var regObj=regObjArrayTag[b];
						if(regObj.firstTimeOnly && regObj.ran){continue;}
						var matches = regObj.selector.matches(elmt);
						if(matches){runIt(elmt, regObj);}
					}
				}
			}
		}
		el.clobberable = true;
		var runtime = new Date().getTime() - start;
		if(!reg.setupTime){ reg.setupTime=runtime; }
		reg.lastSetupTime=runtime;
	}

	var ie6 = navigator.appVersion.indexOf('MSIE 6.0') != -1;
	if (!ie6) {
		addClassName(document.documentElement, 'regloading');
	}
	var loadFuncRan = false;
	function loadFunc(e) {
		if (!loadFuncRan) {
			for(var a=0;a<preSetupQueue.length;a++){
				preSetupQueue[a]();
			}
			runSetupFunctions(document, true);
			for(var a=0;a<postSetupQueue.length;a++){
				postSetupQueue[a]();
			}
			loadFuncRan = true;
			if (!ie6) {
				// unfortunately this causes hangs and laborious redraws in ie6
				removeClassName(document.documentElement, 'regloading');
				addClassName(document.documentElement, 'regloaded');
			}
		}
	}

	// contents of loadFunc only execute once, this sidesteps user agent sniffing
	addEvent(window, 'load', loadFunc);
	addEvent(window, 'DOMContentLoaded', loadFunc);

// #############################################################################
// #### EVENT DELEGATION #######################################################
// #############################################################################

	/*
	The main purpose of reglib is event delegation:
	- reg.click(selString, handler, depth)
	- reg.hover(selString, overHandler, outHandler, depth)
	- reg.focus(selString, focusHandler, blurHandler, depth)
	- reg.key(selString, downHandler, pressHandler, upHandler, depth)
	
	Note: delegated events are active before page load, and remain
	active throughout arbitrary rewrites of the DOM.
	*/

	// these contain the event handling functions
	var clickHandlers = {};
	var mouseDownHandlers = {};
	var mouseUpHandlers = {};
	var doubleClickHandlers = {};
	var mouseOverHandlers = {};
	var mouseOutHandlers = {};
	var focusHandlers = {};
	var blurHandlers = {};
	var keyDownHandlers = {};
	var keyPressHandlers = {};
	var keyUpHandlers = {};

	// returns first arg that's a number
	function getDepth(fargs){
		var result = null;
		for (var i=2; i<fargs.length; i++) {
			if (!isNaN(parseInt(fargs[i]))) {
				result = fargs[i];
				break;
			}
		}
		if(result===null){result=-1;}
		if(result<-1){throw new Error("bad arg for depth, must be -1 or higher");}
		return result;
	}

	// add a handler function
	function pushFunc(selStr, handlerFunc, depth, handlers, hoverFlag, memInd) {
		if(!handlerFunc || typeof handlerFunc != "function"){return;}
		var parsedSel = new reg.Selector(selStr);
		if(!handlers[selStr]) {handlers[selStr]=[];}
		var selHandler = {
			selector:parsedSel,
			handle:handlerFunc,
			depth:depth,
			hoverFlag:hoverFlag,
			paused:false
		};
		handlers[selStr].push(selHandler);
		if (!pauseResumeArray[memInd]) { pauseResumeArray[memInd] = []; }
		pauseResumeArray[memInd].push(selHandler);
	}

	// to keep track of events for later pause and resume
	var dMemInd = 0;
	var pauseResumeArray = [];

	// click
	reg.click=function(selStr, clickFunc, downFunc, upFunc, doubleFunc){
		var depth = getDepth(arguments);
		var memInd = dMemInd++;
		pushFunc(selStr, clickFunc,  depth, clickHandlers,       false, memInd);
		pushFunc(selStr, downFunc,   depth, mouseDownHandlers,   false, memInd);
		pushFunc(selStr, upFunc,     depth, mouseUpHandlers,     false, memInd);
		pushFunc(selStr, doubleFunc, depth, doubleClickHandlers, false, memInd);
		return memInd;
	};

	// mouse over and out
	reg.hover=function(selStr, overFunc, outFunc){
		var depth = getDepth(arguments);
		var memInd = dMemInd++;
		pushFunc(selStr, overFunc, depth, mouseOverHandlers, true, memInd);
		pushFunc(selStr, outFunc,  depth, mouseOutHandlers,  true, memInd);
		return memInd;
	};

	// focus and blur
	reg.focus=function(selStr, focusFunc, blurFunc){
		var depth = getDepth(arguments);
		var memInd = dMemInd++;
		pushFunc(selStr, focusFunc, depth, focusHandlers, false, memInd);
		pushFunc(selStr, blurFunc,  depth, blurHandlers,  false, memInd);
		return memInd;
	};

	// key press
	reg.key=function(selStr, downFunc, pressFunc, upFunc){
		var depth = getDepth(arguments);
		var memInd = dMemInd++;
		pushFunc(selStr, downFunc,  depth, keyDownHandlers,  false, memInd);
		pushFunc(selStr, pressFunc, depth, keyPressHandlers, false, memInd);
		pushFunc(selStr, upFunc,    depth, keyUpHandlers,    false, memInd);
		return memInd;
	};

	// stops execution of event
	reg.pause = function(memInd) {
		if (!(memInd in pauseResumeArray)) { return; }
		var arr = pauseResumeArray[memInd];
		for (var i=0; i<arr.length; i++) { arr[i].paused = true; }
	};

	// starts execution of event
	reg.resume = function(memInd) {
		if (!(memInd in pauseResumeArray)) { return; }
		var arr = pauseResumeArray[memInd];
		for (var i=0; i<arr.length; i++) { arr[i].paused = false; }
	};

	// the delegator
	function delegate(selectionHandlers, event) {
		var targ = getTarget(event);
		if (selectionHandlers) {
			for (var sel in selectionHandlers) {
				if(!selectionHandlers.hasOwnProperty(sel)) { continue; }
				for(var a=0; a<selectionHandlers[sel].length; a++) {
					var selHandler=selectionHandlers[sel][a];
					if (selHandler.paused) { continue; }
					var depth = (selHandler.depth==-1) ? 100 : selHandler.depth;
					var el = targ;
					for (var b=-1; b<depth && el && el.nodeType == 1; b++, el=el.parentNode) {
						if (selHandler.selector.matches(el)) {
							// replicate mouse enter/leave
							if (selHandler.hoverFlag) {
								var relTarg = getRelatedTarget(event);
								if (relTarg && (el.contains(relTarg) || el == relTarg)) {
									break;
								}
							}
							var retVal=selHandler.handle.call(el,event);
							// if they return false from the handler, cancel default
							if(retVal!==undefined && !retVal) {
								cancelDefault(event);
							}
							break;
						}
					}
				}
			}
		}
	}
	
	if(typeof document.onactivate == 'object'){
		var focusEventType = 'activate';
		var blurEventType = 'deactivate';
	}else{
		var focusEventType = 'focus';
		var blurEventType = 'blur';
	}

	// attach the events
	addEvent(document.documentElement,'click',        function(e){delegate(clickHandlers,      e);});
	addEvent(document.documentElement,'mousedown',    function(e){delegate(mouseDownHandlers,  e);});
	addEvent(document.documentElement,'mouseup',      function(e){delegate(mouseUpHandlers,    e);});
	addEvent(document.documentElement,'dblclick',     function(e){delegate(doubleClickHandlers,e);});
	addEvent(document.documentElement,'keydown',      function(e){delegate(keyDownHandlers,    e);});
	addEvent(document.documentElement,'keypress',     function(e){delegate(keyPressHandlers,   e);});
	addEvent(document.documentElement,'keyup',        function(e){delegate(keyUpHandlers,      e);});
	addEvent(document.documentElement, focusEventType,function(e){delegate(focusHandlers,      e);},true);
	addEvent(document.documentElement, blurEventType, function(e){delegate(blurHandlers,       e);},true);
	addEvent(document.documentElement,'mouseover',    function(e){delegate(mouseOverHandlers,  e);});
	addEvent(document.documentElement,'mouseout',     function(e){delegate(mouseOutHandlers,   e);});

	// handy for css
	addClassName(document.documentElement, 'regenabled');

// #############################################################################
// #### CONSOLE.LOG BACKUP #####################################################
// #############################################################################

	/*
	For backwards compatibility.
	Allows console.log() to be called in old clients without errors.
	in which case console.contents() fetches logged messages.
	*/

	var logMessages = [];
	var log = function(str) { logMessages.push(str); };
	var contents = function() { return logMessages.join("\n")+"\n"; };
	if (!window.console) { window.console = { log : log, contents : contents }; }
	else {
		if (!window.console.log) {
			window.console.log = log;
			if (!window.console.contents) { window.console.contents = contents; }
		}
	}

// #############################################################################
// #### AND... DONE. ###########################################################
// #############################################################################

	return reg;

})();



/*------------global.js----------*/

function setNotice(content, status) {
	// :KLUDGE: having to force background colors
	//          highlight effect isn't reading new color
	//          from dynamically set classname
	// status related colors
	var colors = new Array();
	colors['info']  = '#e2f9e3';
	colors['error'] = '#ffcfce';
	var bgcolor = (status) ? colors[status] : colors['info'];
	
	// update notice and highlight
	$('#user-notice').html(unescape(content))
	                 .attr({'class':'user-notice-' + ((status) ? status : 'info')})
									 .show();
	highlightNotice(bgcolor);
}
function clearNotice() {
	$('#user-notice').empty().hide();
}
function highlightNotice(bgcolor) {
	var e = $('#user-notice');
	var bgcolor = (bgcolor) ? bgcolor : e.css('background-color');
	e.css({backgroundColor:'#ff8'}).animate({backgroundColor:bgcolor}, 2000);
}
function focusFirst(form_id) {
	var first = $('#' + form_id + ' :input:visible:enabled:first');
	if (isElementInView(first)) {
		first.focus();
	}
}
function isElementInView(e) {
	var top   = $(window).scrollTop();
	var bot   = top + $(window).height();
	var e_top = $(e).offset().top;
	var e_bot = e_top + $(e).height();
	return ((e_bot >= top) && (e_top <= bot));
}
function setDatePicker(id, type) {
	if ($('#' + id).length) {
		var now      = new Date();
		var min_year = now.getFullYear() - 10;
		var max_year = min_year + 10;
		var field_id = id.replace('_anchor', '');
		var text     = (type == 'text') ? true : false;
		$('#' + id).datepicker({
			changeMonth:true,
			changeYear:true,
			buttonImage:'/images/icons/calendar.png',
			buttonImageOnly:true,
			buttonText:'click to select date',
			showOn:'button',
			showButtonPanel:true,
			gotoCurrent:false,
			currentText:'Current',
			yearRange:min_year + ':' + max_year,
			minDate:new Date(min_year, 1 - 1, 1),
			maxDate:new Date(max_year, 12, 0),
			onSelect:function(date) {
				if (text) {
					$('#' + field_id).val(date);
				} else {
					setSelectedDate(this.id.replace('_anchor', ''), date);
				}
			},
			beforeShow:function() {
				if (text) {
					$(this).val($('#' + field_id).val());
				} else {
					getSelectedDate(this.id.replace('_anchor', ''), $(this));
				}
				return {};
			}
		});
		if (text) {
			$('#' + field_id).mask('99/99/9999', {completed:function() {
				if (!isValidDate(this.val())) {
					alert('Please enter a valid date in the form mm/dd/yyyy.');
				}
			}});
		}
	}
}
function setSelectedDate(id, date) {
	var parts = date.split('/');
	$('#' + id + '_m').val(parts[0]);
	$('#' + id + '_d').val(parts[1]);
	$('#' + id + '_y').val(parts[2]);
}
function getSelectedDate(id, picker) {
	picker.val(
		$('#' + id + '_m').val() + '/' +
		$('#' + id + '_d').val() + '/' +
		$('#' + id + '_y').val()
	);
}
function isValidDate(string) {
	var valid = false;
	var regx  = /^\d{1,2}\/\d{1,2}\/\d{4}$/
	if (regx.test(string)) {
		var parts = string.split('/');
		var mm    = parseInt(parts[0], 10);
		var dd    = parseInt(parts[1], 10);
		var yyyy  = parseInt(parts[2], 10);
		var date  = new Date(yyyy, mm-1, dd);
		if ((date.getFullYear() == yyyy ) && (date.getMonth() == mm-1) && (date.getDate() == dd)) {
			valid = true;
		} else {
			valid = false;
		}
	} else {
		valid = false;
	}
	return valid;
}


/*------------forms.js----------*/

// form field focus styling
reg.focus('input, textarea, select', function(e) {
	reg.addClassName(this, 'field-focus');
}, function(e) {
	reg.removeClassName(this, 'field-focus');
});

// disable/hide form actions (buttons, links) onSubmit
reg.setup('form', function() {
	reg.addEvent(this, 'submit', function(e) {
		var form = $(this);
		if (form.find('.action-bar').length) {
			disableActions(form.find('.action-bar'));
		} else {
			disableAction(form.find('.action'));
		}
	});
});

// submit form
function submitForm(obj) {
	// set values
	var form      = $(obj).parents('form');
	var container = $(obj).parent();
	
	// disable action
	disableAction(container);
	
	// submit
	form.submit();
}

// submit form via Ajax call to controller method
function submitFormAjax(obj) {
	// set values
	var form      = $(obj).parents('form');
	var form_id   = form.attr('id');
	var container = $(obj).parent();
	
	// disable action
	disableAction(container);
	
	// post form
	form.ajaxSubmit({
		dataType: 'json',
		success: function(response) {
			// re-enable actions
			enableAction(container);
			
			// errors?
			if (response.errors) {
				// clear previous errors
				clearErrors(form_id);
				
				// build error message and highlight fields
				var msg = '';
				$.each(response.errors, function(k, v) {
					msg = msg + '<li>' + v + '</li>';
					$('#f-' + k).addClass('error');
				});
				
				// display notice
				var notice = '<strong>Please note the following issues:</strong><ul>' + msg + '</ul>';
				setNotice(escape(notice), 'error');
				
				// scroll to the top of the page
				// so we can see the notice
				$.scrollTo('#top', 800);
			} else if (response.notice) {
				// clear errors
				clearErrors(form_id);
				
				// reset form
				form.resetForm();
				
				// display notice
				setNotice(escape(response.notice));
				
				// scroll to the top of the page
				// so we can see the notice
				$.scrollTo('#top', 800);
				
				} else if (response.success) {
				// reset and hide
				clearNotice();
				form.resetForm();
				$('#' + form_id).hide();
			
				// add success message
				$('#' + form_id).before('<div class="success-message">' + response.success + '</div>');
		
				} 	else if (response.redirect) {
				// redirect
			  location.href = response.redirect;
			} else {
				// display notice
				setNotice(escape('There was an error processing your request. Please try again.'), 'error');
			}
		}
	});
}

// disable/enable form actions
function disableAction(container) {
	// disable/hide
	var list = container.children('button, a');
	list.each(function() {
		$(this).blur().attr({'disabled':'disabled'}).hide();
	});
	
	// add "processing"
	container.append('<div class="processing">processing...</div>');
}
function enableAction(container) {
	// remove "processing"
	var list = container.children('div.processing');
	list.each(function() {
		$(this).remove();
	});
	
	// enable/show
	list = container.children('button', 'a');
	list.each(function() {
		$(this).attr({'disabled':''}).show();
	});
}
function disableActions(container) {
	// disable/hide
	var list = container.children('button, a');
	list.each(function() {
		$(this).blur().attr({'disabled':'disabled'});
	});
	list = container.children('div');
	list.each(function() {
		$(this).hide();
	});
	
	// add "processing"
	container.append('<div class="processing bg-center">processing...</div>');
}
function enableActions(container) {
	// remove "processing"
	var list = container.children('div.processing');
	list.each(function() {
		$(this).remove();
	});
	
	// enable/show
	list = container.children('button, a');
	list.each(function() {
		$(this).attr({'disabled':''})
	});
	list = container.children('div');
	list.each(function() {
		$(this).show();
	});
}

// clear error styled fields for a given form
function clearErrors(id) {
	var list = $('#' + id + ' fieldset table tbody > tr[id]');
	list.each(function() {
		$(this).removeClass('error');
	});
}


/*------------onload.js----------*/

// global onload events
reg.postSetup(function() {
	// highlight notice area
	if ($('#user-notice').is(':visible')) {
		highlightNotice();
	}
	
	// field masks or defaults
	reg.focus('input.url', function(e) {
		if ($(this).val() == '') { $(this).val('http://'); }
	}, function(e) {
		if ($(this).val() == 'http://') { $(this).val(''); }
	});

	$('a[href*=#]').click(function() {
	if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
		var $target = $(this.hash);
		$target = $target.length && $target || $('[id=' + this.hash.slice(1) + ']');
		if ($target.length) {
			var targetOffset = $target.offset().top;
			$('html,body').animate({scrollTop: targetOffset}, 1000);
			return false;
		}
	}
});

	
});

