var mod_pagespeed_xk5w57kQIz = "/*!\n * jQuery UI @VERSION\n *\n * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)\n * Dual licensed under the MIT (MIT-LICENSE.txt)\n * and GPL (GPL-LICENSE.txt) licenses.\n *\n * http://docs.jquery.com/UI\n */\n;jQuery.ui || (function($) {\n\n//Helper functions and ui object\n$.ui = {\n	version: \"@VERSION\",\n\n	// $.ui.plugin is deprecated.  Use the proxy pattern instead.\n	plugin: {\n		add: function(module, option, set) {\n			var proto = $.ui[module].prototype;\n			for(var i in set) {\n				proto.plugins[i] = proto.plugins[i] || [];\n				proto.plugins[i].push([option, set[i]]);\n			}\n		},\n		call: function(instance, name, args) {\n			var set = instance.plugins[name];\n			if(!set || !instance.element[0].parentNode) { return; }\n\n			for (var i = 0; i < set.length; i++) {\n				if (instance.options[set[i][0]]) {\n					set[i][1].apply(instance.element, args);\n				}\n			}\n		}\n	},\n\n	contains: function(a, b) {\n		return document.compareDocumentPosition\n			? a.compareDocumentPosition(b) & 16\n			: a !== b && a.contains(b);\n	},\n\n	hasScroll: function(el, a) {\n\n		//If overflow is hidden, the element might have extra content, but the user wants to hide it\n		if ($(el).css('overflow') == 'hidden') { return false; }\n\n		var scroll = (a && a == 'left') ? 'scrollLeft' : 'scrollTop',\n			has = false;\n\n		if (el[scroll] > 0) { return true; }\n\n		// TODO: determine which cases actually cause this to happen\n		// if the element doesn't have the scroll set, see if it's possible to\n		// set the scroll\n		el[scroll] = 1;\n		has = (el[scroll] > 0);\n		el[scroll] = 0;\n		return has;\n	},\n\n	isOverAxis: function(x, reference, size) {\n		//Determines when x coordinate is over \"b\" element axis\n		return (x > reference) && (x < (reference + size));\n	},\n\n	isOver: function(y, x, top, left, height, width) {\n		//Determines when x, y coordinates is over \"b\" element\n		return $.ui.isOverAxis(y, top, height) && $.ui.isOverAxis(x, left, width);\n	},\n\n	keyCode: {\n		BACKSPACE: 8,\n		CAPS_LOCK: 20,\n		COMMA: 188,\n		CONTROL: 17,\n		DELETE: 46,\n		DOWN: 40,\n		END: 35,\n		ENTER: 13,\n		ESCAPE: 27,\n		HOME: 36,\n		INSERT: 45,\n		LEFT: 37,\n		NUMPAD_ADD: 107,\n		NUMPAD_DECIMAL: 110,\n		NUMPAD_DIVIDE: 111,\n		NUMPAD_ENTER: 108,\n		NUMPAD_MULTIPLY: 106,\n		NUMPAD_SUBTRACT: 109,\n		PAGE_DOWN: 34,\n		PAGE_UP: 33,\n		PERIOD: 190,\n		RIGHT: 39,\n		SHIFT: 16,\n		SPACE: 32,\n		TAB: 9,\n		UP: 38\n	}\n};\n\n//jQuery plugins\n$.fn.extend({\n	_focus: $.fn.focus,\n	focus: function(delay, fn) {\n		return typeof delay === 'number'\n			? this.each(function() {\n				var elem = this;\n				setTimeout(function() {\n					$(elem).focus();\n					(fn && fn.call(elem));\n				}, delay);\n			})\n			: this._focus.apply(this, arguments);\n	},\n	\n	enableSelection: function() {\n		return this\n			.attr('unselectable', 'off')\n			.css('MozUserSelect', '')\n			.unbind('selectstart.ui');\n	},\n\n	disableSelection: function() {\n		return this\n			.attr('unselectable', 'on')\n			.css('MozUserSelect', 'none')\n			.bind('selectstart.ui', function() { return false; });\n	},\n\n	scrollParent: function() {\n		var scrollParent;\n		if(($.browser.msie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) {\n			scrollParent = this.parents().filter(function() {\n				return (/(relative|absolute|fixed)/).test($.curCSS(this,'position',1)) && (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));\n			}).eq(0);\n		} else {\n			scrollParent = this.parents().filter(function() {\n				return (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1));\n			}).eq(0);\n		}\n\n		return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent;\n	},\n\n	zIndex: function(zIndex) {\n		if (zIndex !== undefined) {\n			return this.css('zIndex', zIndex);\n		}\n		\n		if (this.length) {\n			var elem = $(this[0]), position, value;\n			while (elem.length && elem[0] !== document) {\n				// Ignore z-index if position is set to a value where z-index is ignored by the browser\n				// This makes behavior of this function consistent across browsers\n				// WebKit always returns auto if the element is positioned\n				position = elem.css('position');\n				if (position == 'absolute' || position == 'relative' || position == 'fixed')\n				{\n					// IE returns 0 when zIndex is not specified\n					// other browsers return a string\n					// we ignore the case of nested elements with an explicit value of 0\n					// <div style=\"z-index: -10;\"><div style=\"z-index: 0;\"></div></div>\n					value = parseInt(elem.css('zIndex'));\n					if (!isNaN(value) && value != 0) {\n						return value;\n					}\n				}\n				elem = elem.parent();\n			}\n		}\n\n		return 0;\n	}\n});\n\n\n//Additional selectors\n$.extend($.expr[':'], {\n	data: function(elem, i, match) {\n		return !!$.data(elem, match[3]);\n	},\n\n	focusable: function(element) {\n		var nodeName = element.nodeName.toLowerCase(),\n			tabIndex = $.attr(element, 'tabindex');\n		return (/input|select|textarea|button|object/.test(nodeName)\n			? !element.disabled\n			: 'a' == nodeName || 'area' == nodeName\n				? element.href || !isNaN(tabIndex)\n				: !isNaN(tabIndex))\n			// the element and all of its ancestors must be visible\n			// the browser may report that the area is hidden\n			&& !$(element)['area' == nodeName ? 'parents' : 'closest'](':hidden').length;\n	},\n\n	tabbable: function(element) {\n		var tabIndex = $.attr(element, 'tabindex');\n		return (isNaN(tabIndex) || tabIndex >= 0) && $(element).is(':focusable');\n	}\n});\n\n})(jQuery);\n";
var mod_pagespeed_OwLPWXDDQO = "/*\n * jQuery UI Datepicker @VERSION\n *\n * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)\n * Dual licensed under the MIT (MIT-LICENSE.txt)\n * and GPL (GPL-LICENSE.txt) licenses.\n *\n * http://docs.jquery.com/UI/Datepicker\n *\n * Depends:\n *	jquery.ui.core.js\n */\n\n(function($) { // hide the namespace\n\n$.extend($.ui, { datepicker: { version: \"@VERSION\" } });\n\nvar PROP_NAME = 'datepicker';\nvar dpuuid = new Date().getTime();\n\n/* Date picker manager.\n   Use the singleton instance of this class, $.datepicker, to interact with the date picker.\n   Settings for (groups of) date pickers are maintained in an instance object,\n   allowing multiple different settings on the same page. */\n\nfunction Datepicker() {\n	this.debug = false; // Change this to true to start debugging\n	this._curInst = null; // The current instance in use\n	this._keyEvent = false; // If the last event was a key event\n	this._disabledInputs = []; // List of date picker inputs that have been disabled\n	this._datepickerShowing = false; // True if the popup picker is showing , false if not\n	this._inDialog = false; // True if showing within a \"dialog\", false if not\n	this._mainDivId = 'ui-datepicker-div'; // The ID of the main datepicker division\n	this._inlineClass = 'ui-datepicker-inline'; // The name of the inline marker class\n	this._appendClass = 'ui-datepicker-append'; // The name of the append marker class\n	this._triggerClass = 'ui-datepicker-trigger'; // The name of the trigger marker class\n	this._dialogClass = 'ui-datepicker-dialog'; // The name of the dialog marker class\n	this._disableClass = 'ui-datepicker-disabled'; // The name of the disabled covering marker class\n	this._unselectableClass = 'ui-datepicker-unselectable'; // The name of the unselectable cell marker class\n	this._currentClass = 'ui-datepicker-current-day'; // The name of the current day marker class\n	this._dayOverClass = 'ui-datepicker-days-cell-over'; // The name of the day hover marker class\n	this.regional = []; // Available regional settings, indexed by language code\n	this.regional[''] = { // Default regional settings\n		closeText: 'Done', // Display text for close link\n		prevText: 'Prev', // Display text for previous month link\n		nextText: 'Next', // Display text for next month link\n		currentText: 'Today', // Display text for current month link\n		monthNames: ['January','February','March','April','May','June',\n			'July','August','September','October','November','December'], // Names of months for drop-down and formatting\n		monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], // For formatting\n		dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], // For formatting\n		dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // For formatting\n		dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], // Column headings for days starting at Sunday\n		weekHeader: 'Wk', // Column header for week of the year\n		dateFormat: 'mm/dd/yy', // See format options on parseDate\n		firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...\n		isRTL: false, // True if right-to-left language, false if left-to-right\n		showMonthAfterYear: false, // True if the year select precedes month, false for month then year\n		yearSuffix: '' // Additional text to append to the year in the month headers\n	};\n	this._defaults = { // Global defaults for all the date picker instances\n		showOn: 'focus', // 'focus' for popup on focus,\n			// 'button' for trigger button, or 'both' for either\n		showAnim: 'show', // Name of jQuery animation for popup\n		showOptions: {}, // Options for enhanced animations\n		defaultDate: null, // Used when field is blank: actual date,\n			// +/-number for offset from today, null for today\n		appendText: '', // Display text following the input box, e.g. showing the format\n		buttonText: '...', // Text for trigger button\n		buttonImage: '', // URL for trigger button image\n		buttonImageOnly: false, // True if the image appears alone, false if it appears on a button\n		hideIfNoPrevNext: false, // True to hide next/previous month links\n			// if not applicable, false to just disable them\n		navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links\n		gotoCurrent: false, // True if today link goes back to current selection instead\n		changeMonth: false, // True if month can be selected directly, false if only prev/next\n		changeYear: false, // True if year can be selected directly, false if only prev/next\n		yearRange: 'c-10:c+10', // Range of years to display in drop-down,\n			// either relative to today's year (-nn:+nn), relative to currently displayed year\n			// (c-nn:c+nn), absolute (nnnn:nnnn), or a combination of the above (nnnn:-n)\n		showOtherMonths: false, // True to show dates in other months, false to leave blank\n		selectOtherMonths: false, // True to allow selection of dates in other months, false for unselectable\n		showWeek: false, // True to show week of the year, false to not show it\n		calculateWeek: this.iso8601Week, // How to calculate the week of the year,\n			// takes a Date and returns the number of the week for it\n		shortYearCutoff: '+10', // Short year values < this are in the current century,\n			// > this are in the previous century,\n			// string value starting with '+' for current year + value\n		minDate: null, // The earliest selectable date, or null for no limit\n		maxDate: null, // The latest selectable date, or null for no limit\n		duration: '_default', // Duration of display/closure\n		beforeShowDay: null, // Function that takes a date and returns an array with\n			// [0] = true if selectable, false if not, [1] = custom CSS class name(s) or '',\n			// [2] = cell title (optional), e.g. $.datepicker.noWeekends\n		beforeShow: null, // Function that takes an input field and\n			// returns a set of custom settings for the date picker\n		onSelect: null, // Define a callback function when a date is selected\n		onChangeMonthYear: null, // Define a callback function when the month or year is changed\n		onClose: null, // Define a callback function when the datepicker is closed\n		numberOfMonths: 1, // Number of months to show at a time\n		showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0)\n		stepMonths: 1, // Number of months to step back/forward\n		stepBigMonths: 12, // Number of months to step back/forward for the big links\n		altField: '', // Selector for an alternate field to store selected dates into\n		altFormat: '', // The date format to use for the alternate field\n		constrainInput: true, // The input is constrained by the current date format\n		showButtonPanel: false, // True to show button panel, false to not show it\n		autoSize: false // True to size the input for the date format, false to leave as is\n	};\n	$.extend(this._defaults, this.regional['']);\n	this.dpDiv = $('<div id=\"' + this._mainDivId + '\" class=\"ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible\"></div>');\n}\n\n$.extend(Datepicker.prototype, {\n	/* Class name added to elements to indicate already configured with a date picker. */\n	markerClassName: 'hasDatepicker',\n\n	/* Debug logging (if enabled). */\n	log: function () {\n		if (this.debug)\n			console.log.apply('', arguments);\n	},\n	\n	// TODO rename to \"widget\" when switching to widget factory\n	_widgetDatepicker: function() {\n		return this.dpDiv;\n	},\n\n	/* Override the default settings for all instances of the date picker.\n	   @param  settings  object - the new settings to use as defaults (anonymous object)\n	   @return the manager object */\n	setDefaults: function(settings) {\n		extendRemove(this._defaults, settings || {});\n		return this;\n	},\n\n	/* Attach the date picker to a jQuery selection.\n	   @param  target    element - the target input field or division or span\n	   @param  settings  object - the new settings to use for this date picker instance (anonymous) */\n	_attachDatepicker: function(target, settings) {\n		// check for settings on the control itself - in namespace 'date:'\n		var inlineSettings = null;\n		for (var attrName in this._defaults) {\n			var attrValue = target.getAttribute('date:' + attrName);\n			if (attrValue) {\n				inlineSettings = inlineSettings || {};\n				try {\n					inlineSettings[attrName] = eval(attrValue);\n				} catch (err) {\n					inlineSettings[attrName] = attrValue;\n				}\n			}\n		}\n		var nodeName = target.nodeName.toLowerCase();\n		var inline = (nodeName == 'div' || nodeName == 'span');\n		if (!target.id)\n			target.id = 'dp' + (++this.uuid);\n		var inst = this._newInst($(target), inline);\n		inst.settings = $.extend({}, settings || {}, inlineSettings || {});\n		if (nodeName == 'input') {\n			this._connectDatepicker(target, inst);\n		} else if (inline) {\n			this._inlineDatepicker(target, inst);\n		}\n	},\n\n	/* Create a new instance object. */\n	_newInst: function(target, inline) {\n		var id = target[0].id.replace(/([^A-Za-z0-9_])/g, '\\\\\\\\$1'); // escape jQuery meta chars\n		return {id: id, input: target, // associated target\n			selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection\n			drawMonth: 0, drawYear: 0, // month being drawn\n			inline: inline, // is datepicker inline or not\n			dpDiv: (!inline ? this.dpDiv : // presentation div\n			$('<div class=\"' + this._inlineClass + ' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all\"></div>'))};\n	},\n\n	/* Attach the date picker to an input field. */\n	_connectDatepicker: function(target, inst) {\n		var input = $(target);\n		inst.append = $([]);\n		inst.trigger = $([]);\n		if (input.hasClass(this.markerClassName))\n			return;\n		this._attachments(input, inst);\n		input.addClass(this.markerClassName).keydown(this._doKeyDown).\n			keypress(this._doKeyPress).keyup(this._doKeyUp).\n			bind(\"setData.datepicker\", function(event, key, value) {\n				inst.settings[key] = value;\n			}).bind(\"getData.datepicker\", function(event, key) {\n				return this._get(inst, key);\n			});\n		this._autoSize(inst);\n		$.data(target, PROP_NAME, inst);\n	},\n\n	/* Make attachments based on settings. */\n	_attachments: function(input, inst) {\n		var appendText = this._get(inst, 'appendText');\n		var isRTL = this._get(inst, 'isRTL');\n		if (inst.append)\n			inst.append.remove();\n		if (appendText) {\n			inst.append = $('<span class=\"' + this._appendClass + '\">' + appendText + '</span>');\n			input[isRTL ? 'before' : 'after'](inst.append);\n		}\n		input.unbind('focus', this._showDatepicker);\n		if (inst.trigger)\n			inst.trigger.remove();\n		var showOn = this._get(inst, 'showOn');\n		if (showOn == 'focus' || showOn == 'both') // pop-up date picker when in the marked field\n			input.focus(this._showDatepicker);\n		if (showOn == 'button' || showOn == 'both') { // pop-up date picker when button clicked\n			var buttonText = this._get(inst, 'buttonText');\n			var buttonImage = this._get(inst, 'buttonImage');\n			inst.trigger = $(this._get(inst, 'buttonImageOnly') ?\n				$('<img/>').addClass(this._triggerClass).\n					attr({ src: buttonImage, alt: buttonText, title: buttonText }) :\n				$('<button type=\"button\"></button>').addClass(this._triggerClass).\n					html(buttonImage == '' ? buttonText : $('<img/>').attr(\n					{ src:buttonImage, alt:buttonText, title:buttonText })));\n			input[isRTL ? 'before' : 'after'](inst.trigger);\n			inst.trigger.click(function() {\n				if ($.datepicker._datepickerShowing && $.datepicker._lastInput == input[0])\n					$.datepicker._hideDatepicker();\n				else\n					$.datepicker._showDatepicker(input[0]);\n				return false;\n			});\n		}\n	},\n\n	/* Apply the maximum length for the date format. */\n	_autoSize: function(inst) {\n		if (this._get(inst, 'autoSize') && !inst.inline) {\n			var date = new Date(2009, 12 - 1, 20); // Ensure double digits\n			var dateFormat = this._get(inst, 'dateFormat');\n			if (dateFormat.match(/[DM]/)) {\n				var findMax = function(names) {\n					var max = 0;\n					var maxI = 0;\n					for (var i = 0; i < names.length; i++) {\n						if (names[i].length > max) {\n							max = names[i].length;\n							maxI = i;\n						}\n					}\n					return maxI;\n				};\n				date.setMonth(findMax(this._get(inst, (dateFormat.match(/MM/) ?\n					'monthNames' : 'monthNamesShort'))));\n				date.setDate(findMax(this._get(inst, (dateFormat.match(/DD/) ?\n					'dayNames' : 'dayNamesShort'))) + 20 - date.getDay());\n			}\n			inst.input.attr('size', this._formatDate(inst, date).length);\n		}\n	},\n\n	/* Attach an inline date picker to a div. */\n	_inlineDatepicker: function(target, inst) {\n		var divSpan = $(target);\n		if (divSpan.hasClass(this.markerClassName))\n			return;\n		divSpan.addClass(this.markerClassName).append(inst.dpDiv).\n			bind(\"setData.datepicker\", function(event, key, value){\n				inst.settings[key] = value;\n			}).bind(\"getData.datepicker\", function(event, key){\n				return this._get(inst, key);\n			});\n		$.data(target, PROP_NAME, inst);\n		this._setDate(inst, this._getDefaultDate(inst), true);\n		this._updateDatepicker(inst);\n		this._updateAlternate(inst);\n	},\n\n	/* Pop-up the date picker in a \"dialog\" box.\n	   @param  input     element - ignored\n	   @param  date      string or Date - the initial date to display\n	   @param  onSelect  function - the function to call when a date is selected\n	   @param  settings  object - update the dialog date picker instance's settings (anonymous object)\n	   @param  pos       int[2] - coordinates for the dialog's position within the screen or\n	                     event - with x/y coordinates or\n	                     leave empty for default (screen centre)\n	   @return the manager object */\n	_dialogDatepicker: function(input, date, onSelect, settings, pos) {\n		var inst = this._dialogInst; // internal instance\n		if (!inst) {\n			var id = 'dp' + (++this.uuid);\n			this._dialogInput = $('<input type=\"text\" id=\"' + id +\n				'\" style=\"position: absolute; top: -100px; width: 0px; z-index: -10;\"/>');\n			this._dialogInput.keydown(this._doKeyDown);\n			$('body').append(this._dialogInput);\n			inst = this._dialogInst = this._newInst(this._dialogInput, false);\n			inst.settings = {};\n			$.data(this._dialogInput[0], PROP_NAME, inst);\n		}\n		extendRemove(inst.settings, settings || {});\n		date = (date && date.constructor == Date ? this._formatDate(inst, date) : date);\n		this._dialogInput.val(date);\n\n		this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);\n		if (!this._pos) {\n			var browserWidth = document.documentElement.clientWidth;\n			var browserHeight = document.documentElement.clientHeight;\n			var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;\n			var scrollY = document.documentElement.scrollTop || document.body.scrollTop;\n			this._pos = // should use actual width/height below\n				[(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];\n		}\n\n		// move input on screen for focus, but hidden behind dialog\n		this._dialogInput.css('left', (this._pos[0] + 20) + 'px').css('top', this._pos[1] + 'px');\n		inst.settings.onSelect = onSelect;\n		this._inDialog = true;\n		this.dpDiv.addClass(this._dialogClass);\n		this._showDatepicker(this._dialogInput[0]);\n		if ($.blockUI)\n			$.blockUI(this.dpDiv);\n		$.data(this._dialogInput[0], PROP_NAME, inst);\n		return this;\n	},\n\n	/* Detach a datepicker from its control.\n	   @param  target    element - the target input field or division or span */\n	_destroyDatepicker: function(target) {\n		var $target = $(target);\n		var inst = $.data(target, PROP_NAME);\n		if (!$target.hasClass(this.markerClassName)) {\n			return;\n		}\n		var nodeName = target.nodeName.toLowerCase();\n		$.removeData(target, PROP_NAME);\n		if (nodeName == 'input') {\n			inst.append.remove();\n			inst.trigger.remove();\n			$target.removeClass(this.markerClassName).\n				unbind('focus', this._showDatepicker).\n				unbind('keydown', this._doKeyDown).\n				unbind('keypress', this._doKeyPress).\n				unbind('keyup', this._doKeyUp);\n		} else if (nodeName == 'div' || nodeName == 'span')\n			$target.removeClass(this.markerClassName).empty();\n	},\n\n	/* Enable the date picker to a jQuery selection.\n	   @param  target    element - the target input field or division or span */\n	_enableDatepicker: function(target) {\n		var $target = $(target);\n		var inst = $.data(target, PROP_NAME);\n		if (!$target.hasClass(this.markerClassName)) {\n			return;\n		}\n		var nodeName = target.nodeName.toLowerCase();\n		if (nodeName == 'input') {\n			target.disabled = false;\n			inst.trigger.filter('button').\n				each(function() { this.disabled = false; }).end().\n				filter('img').css({opacity: '1.0', cursor: ''});\n		}\n		else if (nodeName == 'div' || nodeName == 'span') {\n			var inline = $target.children('.' + this._inlineClass);\n			inline.children().removeClass('ui-state-disabled');\n		}\n		this._disabledInputs = $.map(this._disabledInputs,\n			function(value) { return (value == target ? null : value); }); // delete entry\n	},\n\n	/* Disable the date picker to a jQuery selection.\n	   @param  target    element - the target input field or division or span */\n	_disableDatepicker: function(target) {\n		var $target = $(target);\n		var inst = $.data(target, PROP_NAME);\n		if (!$target.hasClass(this.markerClassName)) {\n			return;\n		}\n		var nodeName = target.nodeName.toLowerCase();\n		if (nodeName == 'input') {\n			target.disabled = true;\n			inst.trigger.filter('button').\n				each(function() { this.disabled = true; }).end().\n				filter('img').css({opacity: '0.5', cursor: 'default'});\n		}\n		else if (nodeName == 'div' || nodeName == 'span') {\n			var inline = $target.children('.' + this._inlineClass);\n			inline.children().addClass('ui-state-disabled');\n		}\n		this._disabledInputs = $.map(this._disabledInputs,\n			function(value) { return (value == target ? null : value); }); // delete entry\n		this._disabledInputs[this._disabledInputs.length] = target;\n	},\n\n	/* Is the first field in a jQuery collection disabled as a datepicker?\n	   @param  target    element - the target input field or division or span\n	   @return boolean - true if disabled, false if enabled */\n	_isDisabledDatepicker: function(target) {\n		if (!target) {\n			return false;\n		}\n		for (var i = 0; i < this._disabledInputs.length; i++) {\n			if (this._disabledInputs[i] == target)\n				return true;\n		}\n		return false;\n	},\n\n	/* Retrieve the instance data for the target control.\n	   @param  target  element - the target input field or division or span\n	   @return  object - the associated instance data\n	   @throws  error if a jQuery problem getting data */\n	_getInst: function(target) {\n		try {\n			return $.data(target, PROP_NAME);\n		}\n		catch (err) {\n			throw 'Missing instance data for this datepicker';\n		}\n	},\n\n	/* Update or retrieve the settings for a date picker attached to an input field or division.\n	   @param  target  element - the target input field or division or span\n	   @param  name    object - the new settings to update or\n	                   string - the name of the setting to change or retrieve,\n	                   when retrieving also 'all' for all instance settings or\n	                   'defaults' for all global defaults\n	   @param  value   any - the new value for the setting\n	                   (omit if above is an object or to retrieve a value) */\n	_optionDatepicker: function(target, name, value) {\n		var inst = this._getInst(target);\n		if (arguments.length == 2 && typeof name == 'string') {\n			return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) :\n				(inst ? (name == 'all' ? $.extend({}, inst.settings) :\n				this._get(inst, name)) : null));\n		}\n		var settings = name || {};\n		if (typeof name == 'string') {\n			settings = {};\n			settings[name] = value;\n		}\n		if (inst) {\n			if (this._curInst == inst) {\n				this._hideDatepicker();\n			}\n			var date = this._getDateDatepicker(target, true);\n			extendRemove(inst.settings, settings);\n			this._attachments($(target), inst);\n			this._autoSize(inst);\n			this._setDateDatepicker(target, date);\n			this._updateDatepicker(inst);\n		}\n	},\n\n	// change method deprecated\n	_changeDatepicker: function(target, name, value) {\n		this._optionDatepicker(target, name, value);\n	},\n\n	/* Redraw the date picker attached to an input field or division.\n	   @param  target  element - the target input field or division or span */\n	_refreshDatepicker: function(target) {\n		var inst = this._getInst(target);\n		if (inst) {\n			this._updateDatepicker(inst);\n		}\n	},\n\n	/* Set the dates for a jQuery selection.\n	   @param  target   element - the target input field or division or span\n	   @param  date     Date - the new date */\n	_setDateDatepicker: function(target, date) {\n		var inst = this._getInst(target);\n		if (inst) {\n			this._setDate(inst, date);\n			this._updateDatepicker(inst);\n			this._updateAlternate(inst);\n		}\n	},\n\n	/* Get the date(s) for the first entry in a jQuery selection.\n	   @param  target     element - the target input field or division or span\n	   @param  noDefault  boolean - true if no default date is to be used\n	   @return Date - the current date */\n	_getDateDatepicker: function(target, noDefault) {\n		var inst = this._getInst(target);\n		if (inst && !inst.inline)\n			this._setDateFromField(inst, noDefault);\n		return (inst ? this._getDate(inst) : null);\n	},\n\n	/* Handle keystrokes. */\n	_doKeyDown: function(event) {\n		var inst = $.datepicker._getInst(event.target);\n		var handled = true;\n		var isRTL = inst.dpDiv.is('.ui-datepicker-rtl');\n		inst._keyEvent = true;\n		if ($.datepicker._datepickerShowing)\n			switch (event.keyCode) {\n				case 9: $.datepicker._hideDatepicker();\n						handled = false;\n						break; // hide on tab out\n				case 13: var sel = $('td.' + $.datepicker._dayOverClass, inst.dpDiv).\n							add($('td.' + $.datepicker._currentClass, inst.dpDiv));\n						if (sel[0])\n							$.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]);\n						else\n							$.datepicker._hideDatepicker();\n						return false; // don't submit the form\n						break; // select the value on enter\n				case 27: $.datepicker._hideDatepicker();\n						break; // hide on escape\n				case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ?\n							-$.datepicker._get(inst, 'stepBigMonths') :\n							-$.datepicker._get(inst, 'stepMonths')), 'M');\n						break; // previous month/year on page up/+ ctrl\n				case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ?\n							+$.datepicker._get(inst, 'stepBigMonths') :\n							+$.datepicker._get(inst, 'stepMonths')), 'M');\n						break; // next month/year on page down/+ ctrl\n				case 35: if (event.ctrlKey || event.metaKey) $.datepicker._clearDate(event.target);\n						handled = event.ctrlKey || event.metaKey;\n						break; // clear on ctrl or command +end\n				case 36: if (event.ctrlKey || event.metaKey) $.datepicker._gotoToday(event.target);\n						handled = event.ctrlKey || event.metaKey;\n						break; // current on ctrl or command +home\n				case 37: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), 'D');\n						handled = event.ctrlKey || event.metaKey;\n						// -1 day on ctrl or command +left\n						if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ?\n									-$.datepicker._get(inst, 'stepBigMonths') :\n									-$.datepicker._get(inst, 'stepMonths')), 'M');\n						// next month/year on alt +left on Mac\n						break;\n				case 38: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, -7, 'D');\n						handled = event.ctrlKey || event.metaKey;\n						break; // -1 week on ctrl or command +up\n				case 39: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), 'D');\n						handled = event.ctrlKey || event.metaKey;\n						// +1 day on ctrl or command +right\n						if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ?\n									+$.datepicker._get(inst, 'stepBigMonths') :\n									+$.datepicker._get(inst, 'stepMonths')), 'M');\n						// next month/year on alt +right\n						break;\n				case 40: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, +7, 'D');\n						handled = event.ctrlKey || event.metaKey;\n						break; // +1 week on ctrl or command +down\n				default: handled = false;\n			}\n		else if (event.keyCode == 36 && event.ctrlKey) // display the date picker on ctrl+home\n			$.datepicker._showDatepicker(this);\n		else {\n			handled = false;\n		}\n		if (handled) {\n			event.preventDefault();\n			event.stopPropagation();\n		}\n	},\n\n	/* Filter entered characters - based on date format. */\n	_doKeyPress: function(event) {\n		var inst = $.datepicker._getInst(event.target);\n		if ($.datepicker._get(inst, 'constrainInput')) {\n			var chars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat'));\n			var chr = String.fromCharCode(event.charCode == undefined ? event.keyCode : event.charCode);\n			return event.ctrlKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1);\n		}\n	},\n\n	/* Synchronise manual entry and field/alternate field. */\n	_doKeyUp: function(event) {\n		var inst = $.datepicker._getInst(event.target);\n		if (inst.input.val() != inst.lastVal) {\n			try {\n				var date = $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),\n					(inst.input ? inst.input.val() : null),\n					$.datepicker._getFormatConfig(inst));\n				if (date) { // only if valid\n					$.datepicker._setDateFromField(inst);\n					$.datepicker._updateAlternate(inst);\n					$.datepicker._updateDatepicker(inst);\n				}\n			}\n			catch (event) {\n				$.datepicker.log(event);\n			}\n		}\n		return true;\n	},\n\n	/* Pop-up the date picker for a given input field.\n	   @param  input  element - the input field attached to the date picker or\n	                  event - if triggered by focus */\n	_showDatepicker: function(input) {\n		input = input.target || input;\n		if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger\n			input = $('input', input.parentNode)[0];\n		if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here\n			return;\n		var inst = $.datepicker._getInst(input);\n		if ($.datepicker._curInst && $.datepicker._curInst != inst) {\n			$.datepicker._curInst.dpDiv.stop(true, true);\n		}\n		var beforeShow = $.datepicker._get(inst, 'beforeShow');\n		extendRemove(inst.settings, (beforeShow ? beforeShow.apply(input, [input, inst]) : {}));\n		inst.lastVal = null;\n		$.datepicker._lastInput = input;\n		$.datepicker._setDateFromField(inst);\n		if ($.datepicker._inDialog) // hide cursor\n			input.value = '';\n		if (!$.datepicker._pos) { // position below input\n			$.datepicker._pos = $.datepicker._findPos(input);\n			$.datepicker._pos[1] += input.offsetHeight; // add the height\n		}\n		var isFixed = false;\n		$(input).parents().each(function() {\n			isFixed |= $(this).css('position') == 'fixed';\n			return !isFixed;\n		});\n		if (isFixed && $.browser.opera) { // correction for Opera when fixed and scrolled\n			$.datepicker._pos[0] -= document.documentElement.scrollLeft;\n			$.datepicker._pos[1] -= document.documentElement.scrollTop;\n		}\n		var offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]};\n		$.datepicker._pos = null;\n		// determine sizing offscreen\n		inst.dpDiv.css({position: 'absolute', display: 'block', top: '-1000px'});\n		$.datepicker._updateDatepicker(inst);\n		// fix width for dynamic number of date pickers\n		// and adjust position before showing\n		offset = $.datepicker._checkOffset(inst, offset, isFixed);\n		inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ?\n			'static' : (isFixed ? 'fixed' : 'absolute')), display: 'none',\n			left: offset.left + 'px', top: offset.top + 'px'});\n		if (!inst.inline) {\n			var showAnim = $.datepicker._get(inst, 'showAnim');\n			var duration = $.datepicker._get(inst, 'duration');\n			var postProcess = function() {\n				$.datepicker._datepickerShowing = true;\n				var borders = $.datepicker._getBorders(inst.dpDiv);\n				inst.dpDiv.find('iframe.ui-datepicker-cover'). // IE6- only\n					css({left: -borders[0], top: -borders[1],\n						width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()});\n			};\n			inst.dpDiv.zIndex($(input).zIndex()+1);\n			if ($.effects && $.effects[showAnim])\n				inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);\n			else\n				inst.dpDiv[showAnim || 'show']((showAnim ? duration : null), postProcess);\n			if (!showAnim || !duration)\n				postProcess();\n			if (inst.input.is(':visible') && !inst.input.is(':disabled'))\n				inst.input.focus();\n			$.datepicker._curInst = inst;\n		}\n	},\n\n	/* Generate the date picker content. */\n	_updateDatepicker: function(inst) {\n		var self = this;\n		var borders = $.datepicker._getBorders(inst.dpDiv);\n		inst.dpDiv.empty().append(this._generateHTML(inst))\n			.find('iframe.ui-datepicker-cover') // IE6- only\n				.css({left: -borders[0], top: -borders[1],\n					width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()})\n			.end()\n			.find('button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a')\n				.bind('mouseout', function(){\n					$(this).removeClass('ui-state-hover');\n					if(this.className.indexOf('ui-datepicker-prev') != -1) $(this).removeClass('ui-datepicker-prev-hover');\n					if(this.className.indexOf('ui-datepicker-next') != -1) $(this).removeClass('ui-datepicker-next-hover');\n				})\n				.bind('mouseover', function(){\n					if (!self._isDisabledDatepicker( inst.inline ? inst.dpDiv.parent()[0] : inst.input[0])) {\n						$(this).parents('.ui-datepicker-calendar').find('a').removeClass('ui-state-hover');\n						$(this).addClass('ui-state-hover');\n						if(this.className.indexOf('ui-datepicker-prev') != -1) $(this).addClass('ui-datepicker-prev-hover');\n						if(this.className.indexOf('ui-datepicker-next') != -1) $(this).addClass('ui-datepicker-next-hover');\n					}\n				})\n			.end()\n			.find('.' + this._dayOverClass + ' a')\n				.trigger('mouseover')\n			.end();\n		var numMonths = this._getNumberOfMonths(inst);\n		var cols = numMonths[1];\n		var width = 17;\n		if (cols > 1)\n			inst.dpDiv.addClass('ui-datepicker-multi-' + cols).css('width', (width * cols) + 'em');\n		else\n			inst.dpDiv.removeClass('ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4').width('');\n		inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? 'add' : 'remove') +\n			'Class']('ui-datepicker-multi');\n		inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') +\n			'Class']('ui-datepicker-rtl');\n		if (inst == $.datepicker._curInst && $.datepicker._datepickerShowing && inst.input &&\n				inst.input.is(':visible') && !inst.input.is(':disabled'))\n			inst.input.focus();\n	},\n\n	/* Retrieve the size of left and top borders for an element.\n	   @param  elem  (jQuery object) the element of interest\n	   @return  (number[2]) the left and top borders */\n	_getBorders: function(elem) {\n		var convert = function(value) {\n			return {thin: 1, medium: 2, thick: 3}[value] || value;\n		};\n		return [parseFloat(convert(elem.css('border-left-width'))),\n			parseFloat(convert(elem.css('border-top-width')))];\n	},\n\n	/* Check positioning to remain on screen. */\n	_checkOffset: function(inst, offset, isFixed) {\n		var dpWidth = inst.dpDiv.outerWidth();\n		var dpHeight = inst.dpDiv.outerHeight();\n		var inputWidth = inst.input ? inst.input.outerWidth() : 0;\n		var inputHeight = inst.input ? inst.input.outerHeight() : 0;\n		var viewWidth = document.documentElement.clientWidth + $(document).scrollLeft();\n		var viewHeight = document.documentElement.clientHeight + $(document).scrollTop();\n\n		offset.left -= (this._get(inst, 'isRTL') ? (dpWidth - inputWidth) : 0);\n		offset.left -= (isFixed && offset.left == inst.input.offset().left) ? $(document).scrollLeft() : 0;\n		offset.top -= (isFixed && offset.top == (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0;\n\n		// now check if datepicker is showing outside window viewport - move to a better place if so.\n		offset.left -= Math.min(offset.left, (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ?\n			Math.abs(offset.left + dpWidth - viewWidth) : 0);\n		offset.top -= Math.min(offset.top, (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ?\n			Math.abs(dpHeight + inputHeight) : 0);\n\n		return offset;\n	},\n\n	/* Find an object's position on the screen. */\n	_findPos: function(obj) {\n		var inst = this._getInst(obj);\n		var isRTL = this._get(inst, 'isRTL');\n        while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) {\n            obj = obj[isRTL ? 'previousSibling' : 'nextSibling'];\n        }\n        var position = $(obj).offset();\n	    return [position.left, position.top];\n	},\n\n	/* Hide the date picker from view.\n	   @param  input  element - the input field attached to the date picker */\n	_hideDatepicker: function(input) {\n		var inst = this._curInst;\n		if (!inst || (input && inst != $.data(input, PROP_NAME)))\n			return;\n		if (this._datepickerShowing) {\n			var showAnim = this._get(inst, 'showAnim');\n			var duration = this._get(inst, 'duration');\n			var postProcess = function() {\n				$.datepicker._tidyDialog(inst);\n				this._curInst = null;\n			};\n			if ($.effects && $.effects[showAnim])\n				inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess);\n			else\n				inst.dpDiv[(showAnim == 'slideDown' ? 'slideUp' :\n					(showAnim == 'fadeIn' ? 'fadeOut' : 'hide'))]((showAnim ? duration : null), postProcess);\n			if (!showAnim)\n				postProcess();\n			var onClose = this._get(inst, 'onClose');\n			if (onClose)\n				onClose.apply((inst.input ? inst.input[0] : null),\n					[(inst.input ? inst.input.val() : ''), inst]);  // trigger custom callback\n			this._datepickerShowing = false;\n			this._lastInput = null;\n			if (this._inDialog) {\n				this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' });\n				if ($.blockUI) {\n					$.unblockUI();\n					$('body').append(this.dpDiv);\n				}\n			}\n			this._inDialog = false;\n		}\n	},\n\n	/* Tidy up after a dialog display. */\n	_tidyDialog: function(inst) {\n		inst.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker-calendar');\n	},\n\n	/* Close date picker if clicked elsewhere. */\n	_checkExternalClick: function(event) {\n		if (!$.datepicker._curInst)\n			return;\n		var $target = $(event.target);\n		if ($target[0].id != $.datepicker._mainDivId &&\n				$target.parents('#' + $.datepicker._mainDivId).length == 0 &&\n				!$target.hasClass($.datepicker.markerClassName) &&\n				!$target.hasClass($.datepicker._triggerClass) &&\n				$.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI))\n			$.datepicker._hideDatepicker();\n	},\n\n	/* Adjust one of the date sub-fields. */\n	_adjustDate: function(id, offset, period) {\n		var target = $(id);\n		var inst = this._getInst(target[0]);\n		if (this._isDisabledDatepicker(target[0])) {\n			return;\n		}\n		this._adjustInstDate(inst, offset +\n			(period == 'M' ? this._get(inst, 'showCurrentAtPos') : 0), // undo positioning\n			period);\n		this._updateDatepicker(inst);\n	},\n\n	/* Action for current link. */\n	_gotoToday: function(id) {\n		var target = $(id);\n		var inst = this._getInst(target[0]);\n		if (this._get(inst, 'gotoCurrent') && inst.currentDay) {\n			inst.selectedDay = inst.currentDay;\n			inst.drawMonth = inst.selectedMonth = inst.currentMonth;\n			inst.drawYear = inst.selectedYear = inst.currentYear;\n		}\n		else {\n			var date = new Date();\n			inst.selectedDay = date.getDate();\n			inst.drawMonth = inst.selectedMonth = date.getMonth();\n			inst.drawYear = inst.selectedYear = date.getFullYear();\n		}\n		this._notifyChange(inst);\n		this._adjustDate(target);\n	},\n\n	/* Action for selecting a new month/year. */\n	_selectMonthYear: function(id, select, period) {\n		var target = $(id);\n		var inst = this._getInst(target[0]);\n		inst._selectingMonthYear = false;\n		inst['selected' + (period == 'M' ? 'Month' : 'Year')] =\n		inst['draw' + (period == 'M' ? 'Month' : 'Year')] =\n			parseInt(select.options[select.selectedIndex].value,10);\n		this._notifyChange(inst);\n		this._adjustDate(target);\n	},\n\n	/* Restore input focus after not changing month/year. */\n	_clickMonthYear: function(id) {\n		var target = $(id);\n		var inst = this._getInst(target[0]);\n		if (inst.input && inst._selectingMonthYear && !$.browser.msie)\n			inst.input.focus();\n		inst._selectingMonthYear = !inst._selectingMonthYear;\n	},\n\n	/* Action for selecting a day. */\n	_selectDay: function(id, month, year, td) {\n		var target = $(id);\n		if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) {\n			return;\n		}\n		var inst = this._getInst(target[0]);\n		inst.selectedDay = inst.currentDay = $('a', td).html();\n		inst.selectedMonth = inst.currentMonth = month;\n		inst.selectedYear = inst.currentYear = year;\n		this._selectDate(id, this._formatDate(inst,\n			inst.currentDay, inst.currentMonth, inst.currentYear));\n	},\n\n	/* Erase the input field and hide the date picker. */\n	_clearDate: function(id) {\n		var target = $(id);\n		var inst = this._getInst(target[0]);\n		this._selectDate(target, '');\n	},\n\n	/* Update the input field with the selected date. */\n	_selectDate: function(id, dateStr) {\n		var target = $(id);\n		var inst = this._getInst(target[0]);\n		dateStr = (dateStr != null ? dateStr : this._formatDate(inst));\n		if (inst.input)\n			inst.input.val(dateStr);\n		this._updateAlternate(inst);\n		var onSelect = this._get(inst, 'onSelect');\n		if (onSelect)\n			onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]);  // trigger custom callback\n		else if (inst.input)\n			inst.input.trigger('change'); // fire the change event\n		if (inst.inline)\n			this._updateDatepicker(inst);\n		else {\n			this._hideDatepicker();\n			this._lastInput = inst.input[0];\n			if (typeof(inst.input[0]) != 'object')\n				inst.input.focus(); // restore focus\n			this._lastInput = null;\n		}\n	},\n\n	/* Update any alternate field to synchronise with the main field. */\n	_updateAlternate: function(inst) {\n		var altField = this._get(inst, 'altField');\n		if (altField) { // update alternate field too\n			var altFormat = this._get(inst, 'altFormat') || this._get(inst, 'dateFormat');\n			var date = this._getDate(inst);\n			var dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst));\n			$(altField).each(function() { $(this).val(dateStr); });\n		}\n	},\n\n	/* Set as beforeShowDay function to prevent selection of weekends.\n	   @param  date  Date - the date to customise\n	   @return [boolean, string] - is this date selectable?, what is its CSS class? */\n	noWeekends: function(date) {\n		var day = date.getDay();\n		return [(day > 0 && day < 6), ''];\n	},\n\n	/* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.\n	   @param  date  Date - the date to get the week for\n	   @return  number - the number of the week within the year that contains this date */\n	iso8601Week: function(date) {\n		var checkDate = new Date(date.getTime());\n		// Find Thursday of this week starting on Monday\n		checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));\n		var time = checkDate.getTime();\n		checkDate.setMonth(0); // Compare with Jan 1\n		checkDate.setDate(1);\n		return Math.floor(Math.round((time - checkDate) / 86400000) / 7) + 1;\n	},\n\n	/* Parse a string value into a date object.\n	   See formatDate below for the possible formats.\n\n	   @param  format    string - the expected format of the date\n	   @param  value     string - the date in the above format\n	   @param  settings  Object - attributes include:\n	                     shortYearCutoff  number - the cutoff year for determining the century (optional)\n	                     dayNamesShort    string[7] - abbreviated names of the days from Sunday (optional)\n	                     dayNames         string[7] - names of the days from Sunday (optional)\n	                     monthNamesShort  string[12] - abbreviated names of the months (optional)\n	                     monthNames       string[12] - names of the months (optional)\n	   @return  Date - the extracted date value or null if value is blank */\n	parseDate: function (format, value, settings) {\n		if (format == null || value == null)\n			throw 'Invalid arguments';\n		value = (typeof value == 'object' ? value.toString() : value + '');\n		if (value == '')\n			return null;\n		var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff;\n		var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;\n		var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;\n		var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;\n		var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;\n		var year = -1;\n		var month = -1;\n		var day = -1;\n		var doy = -1;\n		var literal = false;\n		// Check whether a format character is doubled\n		var lookAhead = function(match) {\n			var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);\n			if (matches)\n				iFormat++;\n			return matches;\n		};\n		// Extract a number from the string value\n		var getNumber = function(match) {\n			lookAhead(match);\n			var size = (match == '@' ? 14 : (match == '!' ? 20 :\n				(match == 'y' ? 4 : (match == 'o' ? 3 : 2))));\n			var digits = new RegExp('^\\\\d{1,' + size + '}');\n			var num = value.substring(iValue).match(digits);\n			if (!num)\n				throw 'Missing number at position ' + iValue;\n			iValue += num[0].length;\n			return parseInt(num[0], 10);\n		};\n		// Extract a name from the string value and convert to an index\n		var getName = function(match, shortNames, longNames) {\n			var names = (lookAhead(match) ? longNames : shortNames);\n			for (var i = 0; i < names.length; i++) {\n				if (value.substr(iValue, names[i].length) == names[i]) {\n					iValue += names[i].length;\n					return i + 1;\n				}\n			}\n			throw 'Unknown name at position ' + iValue;\n		};\n		// Confirm that a literal character matches the string value\n		var checkLiteral = function() {\n			if (value.charAt(iValue) != format.charAt(iFormat))\n				throw 'Unexpected literal at position ' + iValue;\n			iValue++;\n		};\n		var iValue = 0;\n		for (var iFormat = 0; iFormat < format.length; iFormat++) {\n			if (literal)\n				if (format.charAt(iFormat) == \"'\" && !lookAhead(\"'\"))\n					literal = false;\n				else\n					checkLiteral();\n			else\n				switch (format.charAt(iFormat)) {\n					case 'd':\n						day = getNumber('d');\n						break;\n					case 'D':\n						getName('D', dayNamesShort, dayNames);\n						break;\n					case 'o':\n						doy = getNumber('o');\n						break;\n					case 'm':\n						month = getNumber('m');\n						break;\n					case 'M':\n						month = getName('M', monthNamesShort, monthNames);\n						break;\n					case 'y':\n						year = getNumber('y');\n						break;\n					case '@':\n						var date = new Date(getNumber('@'));\n						year = date.getFullYear();\n						month = date.getMonth() + 1;\n						day = date.getDate();\n						break;\n					case '!':\n						var date = new Date((getNumber('!') - this._ticksTo1970) / 10000);\n						year = date.getFullYear();\n						month = date.getMonth() + 1;\n						day = date.getDate();\n						break;\n					case \"'\":\n						if (lookAhead(\"'\"))\n							checkLiteral();\n						else\n							literal = true;\n						break;\n					default:\n						checkLiteral();\n				}\n		}\n		if (year == -1)\n			year = new Date().getFullYear();\n		else if (year < 100)\n			year += new Date().getFullYear() - new Date().getFullYear() % 100 +\n				(year <= shortYearCutoff ? 0 : -100);\n		if (doy > -1) {\n			month = 1;\n			day = doy;\n			do {\n				var dim = this._getDaysInMonth(year, month - 1);\n				if (day <= dim)\n					break;\n				month++;\n				day -= dim;\n			} while (true);\n		}\n		var date = this._daylightSavingAdjust(new Date(year, month - 1, day));\n		if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day)\n			throw 'Invalid date'; // E.g. 31/02/*\n		return date;\n	},\n\n	/* Standard date formats. */\n	ATOM: 'yy-mm-dd', // RFC 3339 (ISO 8601)\n	COOKIE: 'D, dd M yy',\n	ISO_8601: 'yy-mm-dd',\n	RFC_822: 'D, d M y',\n	RFC_850: 'DD, dd-M-y',\n	RFC_1036: 'D, d M y',\n	RFC_1123: 'D, d M yy',\n	RFC_2822: 'D, d M yy',\n	RSS: 'D, d M y', // RFC 822\n	TICKS: '!',\n	TIMESTAMP: '@',\n	W3C: 'yy-mm-dd', // ISO 8601\n\n	_ticksTo1970: (((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) +\n		Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000),\n\n	/* Format a date object into a string value.\n	   The format can be combinations of the following:\n	   d  - day of month (no leading zero)\n	   dd - day of month (two digit)\n	   o  - day of year (no leading zeros)\n	   oo - day of year (three digit)\n	   D  - day name short\n	   DD - day name long\n	   m  - month of year (no leading zero)\n	   mm - month of year (two digit)\n	   M  - month name short\n	   MM - month name long\n	   y  - year (two digit)\n	   yy - year (four digit)\n	   @ - Unix timestamp (ms since 01/01/1970)\n	   ! - Windows ticks (100ns since 01/01/0001)\n	   '...' - literal text\n	   '' - single quote\n\n	   @param  format    string - the desired format of the date\n	   @param  date      Date - the date value to format\n	   @param  settings  Object - attributes include:\n	                     dayNamesShort    string[7] - abbreviated names of the days from Sunday (optional)\n	                     dayNames         string[7] - names of the days from Sunday (optional)\n	                     monthNamesShort  string[12] - abbreviated names of the months (optional)\n	                     monthNames       string[12] - names of the months (optional)\n	   @return  string - the date in the above format */\n	formatDate: function (format, date, settings) {\n		if (!date)\n			return '';\n		var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;\n		var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;\n		var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;\n		var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;\n		// Check whether a format character is doubled\n		var lookAhead = function(match) {\n			var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);\n			if (matches)\n				iFormat++;\n			return matches;\n		};\n		// Format a number, with leading zero if necessary\n		var formatNumber = function(match, value, len) {\n			var num = '' + value;\n			if (lookAhead(match))\n				while (num.length < len)\n					num = '0' + num;\n			return num;\n		};\n		// Format a name, short or long as requested\n		var formatName = function(match, value, shortNames, longNames) {\n			return (lookAhead(match) ? longNames[value] : shortNames[value]);\n		};\n		var output = '';\n		var literal = false;\n		if (date)\n			for (var iFormat = 0; iFormat < format.length; iFormat++) {\n				if (literal)\n					if (format.charAt(iFormat) == \"'\" && !lookAhead(\"'\"))\n						literal = false;\n					else\n						output += format.charAt(iFormat);\n				else\n					switch (format.charAt(iFormat)) {\n						case 'd':\n							output += formatNumber('d', date.getDate(), 2);\n							break;\n						case 'D':\n							output += formatName('D', date.getDay(), dayNamesShort, dayNames);\n							break;\n						case 'o':\n							output += formatNumber('o',\n								(date.getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000, 3);\n							break;\n						case 'm':\n							output += formatNumber('m', date.getMonth() + 1, 2);\n							break;\n						case 'M':\n							output += formatName('M', date.getMonth(), monthNamesShort, monthNames);\n							break;\n						case 'y':\n							output += (lookAhead('y') ? date.getFullYear() :\n								(date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100);\n							break;\n						case '@':\n							output += date.getTime();\n							break;\n						case '!':\n							output += date.getTime() * 10000 + this._ticksTo1970;\n							break;\n						case \"'\":\n							if (lookAhead(\"'\"))\n								output += \"'\";\n							else\n								literal = true;\n							break;\n						default:\n							output += format.charAt(iFormat);\n					}\n			}\n		return output;\n	},\n\n	/* Extract all possible characters from the date format. */\n	_possibleChars: function (format) {\n		var chars = '';\n		var literal = false;\n		// Check whether a format character is doubled\n		var lookAhead = function(match) {\n			var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);\n			if (matches)\n				iFormat++;\n			return matches;\n		};\n		for (var iFormat = 0; iFormat < format.length; iFormat++)\n			if (literal)\n				if (format.charAt(iFormat) == \"'\" && !lookAhead(\"'\"))\n					literal = false;\n				else\n					chars += format.charAt(iFormat);\n			else\n				switch (format.charAt(iFormat)) {\n					case 'd': case 'm': case 'y': case '@':\n						chars += '0123456789';\n						break;\n					case 'D': case 'M':\n						return null; // Accept anything\n					case \"'\":\n						if (lookAhead(\"'\"))\n							chars += \"'\";\n						else\n							literal = true;\n						break;\n					default:\n						chars += format.charAt(iFormat);\n				}\n		return chars;\n	},\n\n	/* Get a setting value, defaulting if necessary. */\n	_get: function(inst, name) {\n		return inst.settings[name] !== undefined ?\n			inst.settings[name] : this._defaults[name];\n	},\n\n	/* Parse existing date and initialise date picker. */\n	_setDateFromField: function(inst, noDefault) {\n		if (inst.input.val() == inst.lastVal) {\n			return;\n		}\n		var dateFormat = this._get(inst, 'dateFormat');\n		var dates = inst.lastVal = inst.input ? inst.input.val() : null;\n		var date, defaultDate;\n		date = defaultDate = this._getDefaultDate(inst);\n		var settings = this._getFormatConfig(inst);\n		try {\n			date = this.parseDate(dateFormat, dates, settings) || defaultDate;\n		} catch (event) {\n			this.log(event);\n			dates = (noDefault ? '' : dates);\n		}\n		inst.selectedDay = date.getDate();\n		inst.drawMonth = inst.selectedMonth = date.getMonth();\n		inst.drawYear = inst.selectedYear = date.getFullYear();\n		inst.currentDay = (dates ? date.getDate() : 0);\n		inst.currentMonth = (dates ? date.getMonth() : 0);\n		inst.currentYear = (dates ? date.getFullYear() : 0);\n		this._adjustInstDate(inst);\n	},\n\n	/* Retrieve the default date shown on opening. */\n	_getDefaultDate: function(inst) {\n		return this._restrictMinMax(inst,\n			this._determineDate(inst, this._get(inst, 'defaultDate'), new Date()));\n	},\n\n	/* A date may be specified as an exact value or a relative one. */\n	_determineDate: function(inst, date, defaultDate) {\n		var offsetNumeric = function(offset) {\n			var date = new Date();\n			date.setDate(date.getDate() + offset);\n			return date;\n		};\n		var offsetString = function(offset) {\n			try {\n				return $.datepicker.parseDate($.datepicker._get(inst, 'dateFormat'),\n					offset, $.datepicker._getFormatConfig(inst));\n			}\n			catch (e) {\n				// Ignore\n			}\n			var date = (offset.toLowerCase().match(/^c/) ?\n				$.datepicker._getDate(inst) : null) || new Date();\n			var year = date.getFullYear();\n			var month = date.getMonth();\n			var day = date.getDate();\n			var pattern = /([+-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?/g;\n			var matches = pattern.exec(offset);\n			while (matches) {\n				switch (matches[2] || 'd') {\n					case 'd' : case 'D' :\n						day += parseInt(matches[1],10); break;\n					case 'w' : case 'W' :\n						day += parseInt(matches[1],10) * 7; break;\n					case 'm' : case 'M' :\n						month += parseInt(matches[1],10);\n						day = Math.min(day, $.datepicker._getDaysInMonth(year, month));\n						break;\n					case 'y': case 'Y' :\n						year += parseInt(matches[1],10);\n						day = Math.min(day, $.datepicker._getDaysInMonth(year, month));\n						break;\n				}\n				matches = pattern.exec(offset);\n			}\n			return new Date(year, month, day);\n		};\n		date = (date == null ? defaultDate : (typeof date == 'string' ? offsetString(date) :\n			(typeof date == 'number' ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : date)));\n		date = (date && date.toString() == 'Invalid Date' ? defaultDate : date);\n		if (date) {\n			date.setHours(0);\n			date.setMinutes(0);\n			date.setSeconds(0);\n			date.setMilliseconds(0);\n		}\n		return this._daylightSavingAdjust(date);\n	},\n\n	/* Handle switch to/from daylight saving.\n	   Hours may be non-zero on daylight saving cut-over:\n	   > 12 when midnight changeover, but then cannot generate\n	   midnight datetime, so jump to 1AM, otherwise reset.\n	   @param  date  (Date) the date to check\n	   @return  (Date) the corrected date */\n	_daylightSavingAdjust: function(date) {\n		if (!date) return null;\n		date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);\n		return date;\n	},\n\n	/* Set the date(s) directly. */\n	_setDate: function(inst, date, noChange) {\n		var clear = !(date);\n		var origMonth = inst.selectedMonth;\n		var origYear = inst.selectedYear;\n		date = this._restrictMinMax(inst, this._determineDate(inst, date, new Date()));\n		inst.selectedDay = inst.currentDay = date.getDate();\n		inst.drawMonth = inst.selectedMonth = inst.currentMonth = date.getMonth();\n		inst.drawYear = inst.selectedYear = inst.currentYear = date.getFullYear();\n		if ((origMonth != inst.selectedMonth || origYear != inst.selectedYear) && !noChange)\n			this._notifyChange(inst);\n		this._adjustInstDate(inst);\n		if (inst.input) {\n			inst.input.val(clear ? '' : this._formatDate(inst));\n		}\n	},\n\n	/* Retrieve the date(s) directly. */\n	_getDate: function(inst) {\n		var startDate = (!inst.currentYear || (inst.input && inst.input.val() == '') ? null :\n			this._daylightSavingAdjust(new Date(\n			inst.currentYear, inst.currentMonth, inst.currentDay)));\n			return startDate;\n	},\n\n	/* Generate the HTML for the current state of the date picker. */\n	_generateHTML: function(inst) {\n		var today = new Date();\n		today = this._daylightSavingAdjust(\n			new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time\n		var isRTL = this._get(inst, 'isRTL');\n		var showButtonPanel = this._get(inst, 'showButtonPanel');\n		var hideIfNoPrevNext = this._get(inst, 'hideIfNoPrevNext');\n		var navigationAsDateFormat = this._get(inst, 'navigationAsDateFormat');\n		var numMonths = this._getNumberOfMonths(inst);\n		var showCurrentAtPos = this._get(inst, 'showCurrentAtPos');\n		var stepMonths = this._get(inst, 'stepMonths');\n		var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1);\n		var currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) :\n			new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));\n		var minDate = this._getMinMaxDate(inst, 'min');\n		var maxDate = this._getMinMaxDate(inst, 'max');\n		var drawMonth = inst.drawMonth - showCurrentAtPos;\n		var drawYear = inst.drawYear;\n		if (drawMonth < 0) {\n			drawMonth += 12;\n			drawYear--;\n		}\n		if (maxDate) {\n			var maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(),\n				maxDate.getMonth() - (numMonths[0] * numMonths[1]) + 1, maxDate.getDate()));\n			maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);\n			while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) {\n				drawMonth--;\n				if (drawMonth < 0) {\n					drawMonth = 11;\n					drawYear--;\n				}\n			}\n		}\n		inst.drawMonth = drawMonth;\n		inst.drawYear = drawYear;\n		var prevText = this._get(inst, 'prevText');\n		prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText,\n			this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)),\n			this._getFormatConfig(inst)));\n		var prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?\n			'<a class=\"ui-datepicker-prev ui-corner-all\" onclick=\"DP_jQuery_' + dpuuid +\n			'.datepicker._adjustDate(\\'#' + inst.id + '\\', -' + stepMonths + ', \\'M\\');\"' +\n			' title=\"' + prevText + '\"><span class=\"ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '\">' + prevText + '</span></a>' :\n			(hideIfNoPrevNext ? '' : '<a class=\"ui-datepicker-prev ui-corner-all ui-state-disabled\" title=\"'+ prevText +'\"><span class=\"ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '\">' + prevText + '</span></a>'));\n		var nextText = this._get(inst, 'nextText');\n		nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText,\n			this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)),\n			this._getFormatConfig(inst)));\n		var next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?\n			'<a class=\"ui-datepicker-next ui-corner-all\" onclick=\"DP_jQuery_' + dpuuid +\n			'.datepicker._adjustDate(\\'#' + inst.id + '\\', +' + stepMonths + ', \\'M\\');\"' +\n			' title=\"' + nextText + '\"><span class=\"ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'w' : 'e') + '\">' + nextText + '</span></a>' :\n			(hideIfNoPrevNext ? '' : '<a class=\"ui-datepicker-next ui-corner-all ui-state-disabled\" title=\"'+ nextText + '\"><span class=\"ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'w' : 'e') + '\">' + nextText + '</span></a>'));\n		var currentText = this._get(inst, 'currentText');\n		var gotoDate = (this._get(inst, 'gotoCurrent') && inst.currentDay ? currentDate : today);\n		currentText = (!navigationAsDateFormat ? currentText :\n			this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));\n		var controls = (!inst.inline ? '<button type=\"button\" class=\"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all\" onclick=\"DP_jQuery_' + dpuuid +\n			'.datepicker._hideDatepicker();\">' + this._get(inst, 'closeText') + '</button>' : '');\n		var buttonPanel = (showButtonPanel) ? '<div class=\"ui-datepicker-buttonpane ui-widget-content\">' + (isRTL ? controls : '') +\n			(this._isInRange(inst, gotoDate) ? '<button type=\"button\" class=\"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all\" onclick=\"DP_jQuery_' + dpuuid +\n			'.datepicker._gotoToday(\\'#' + inst.id + '\\');\"' +\n			'>' + currentText + '</button>' : '') + (isRTL ? '' : controls) + '</div>' : '';\n		var firstDay = parseInt(this._get(inst, 'firstDay'),10);\n		firstDay = (isNaN(firstDay) ? 0 : firstDay);\n		var showWeek = this._get(inst, 'showWeek');\n		var dayNames = this._get(inst, 'dayNames');\n		var dayNamesShort = this._get(inst, 'dayNamesShort');\n		var dayNamesMin = this._get(inst, 'dayNamesMin');\n		var monthNames = this._get(inst, 'monthNames');\n		var monthNamesShort = this._get(inst, 'monthNamesShort');\n		var beforeShowDay = this._get(inst, 'beforeShowDay');\n		var showOtherMonths = this._get(inst, 'showOtherMonths');\n		var selectOtherMonths = this._get(inst, 'selectOtherMonths');\n		var calculateWeek = this._get(inst, 'calculateWeek') || this.iso8601Week;\n		var defaultDate = this._getDefaultDate(inst);\n		var html = '';\n		for (var row = 0; row < numMonths[0]; row++) {\n			var group = '';\n			for (var col = 0; col < numMonths[1]; col++) {\n				var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay));\n				var cornerClass = ' ui-corner-all';\n				var calender = '';\n				if (isMultiMonth) {\n					calender += '<div class=\"ui-datepicker-group';\n					if (numMonths[1] > 1)\n						switch (col) {\n							case 0: calender += ' ui-datepicker-group-first';\n								cornerClass = ' ui-corner-' + (isRTL ? 'right' : 'left'); break;\n							case numMonths[1]-1: calender += ' ui-datepicker-group-last';\n								cornerClass = ' ui-corner-' + (isRTL ? 'left' : 'right'); break;\n							default: calender += ' ui-datepicker-group-middle'; cornerClass = ''; break;\n						}\n					calender += '\">';\n				}\n				calender += '<div class=\"ui-datepicker-header ui-widget-header ui-helper-clearfix' + cornerClass + '\">' +\n					(/all|left/.test(cornerClass) && row == 0 ? (isRTL ? next : prev) : '') +\n					(/all|right/.test(cornerClass) && row == 0 ? (isRTL ? prev : next) : '') +\n					this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate,\n					row > 0 || col > 0, monthNames, monthNamesShort) + // draw month headers\n					'</div><table class=\"ui-datepicker-calendar\"><thead>' +\n					'<tr>';\n				var thead = (showWeek ? '<th class=\"ui-datepicker-week-col\">' + this._get(inst, 'weekHeader') + '</th>' : '');\n				for (var dow = 0; dow < 7; dow++) { // days of the week\n					var day = (dow + firstDay) % 7;\n					thead += '<th' + ((dow + firstDay + 6) % 7 >= 5 ? ' class=\"ui-datepicker-week-end\"' : '') + '>' +\n						'<span title=\"' + dayNames[day] + '\">' + dayNamesMin[day] + '</span></th>';\n				}\n				calender += thead + '</tr></thead><tbody>';\n				var daysInMonth = this._getDaysInMonth(drawYear, drawMonth);\n				if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth)\n					inst.selectedDay = Math.min(inst.selectedDay, daysInMonth);\n				var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;\n				var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate\n				var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays));\n				for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows\n					calender += '<tr>';\n					var tbody = (!showWeek ? '' : '<td class=\"ui-datepicker-week-col\">' +\n						this._get(inst, 'calculateWeek')(printDate) + '</td>');\n					for (var dow = 0; dow < 7; dow++) { // create date picker days\n						var daySettings = (beforeShowDay ?\n							beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, '']);\n						var otherMonth = (printDate.getMonth() != drawMonth);\n						var unselectable = (otherMonth && !selectOtherMonths) || !daySettings[0] ||\n							(minDate && printDate < minDate) || (maxDate && printDate > maxDate);\n						tbody += '<td class=\"' +\n							((dow + firstDay + 6) % 7 >= 5 ? ' ui-datepicker-week-end' : '') + // highlight weekends\n							(otherMonth ? ' ui-datepicker-other-month' : '') + // highlight days from other months\n							((printDate.getTime() == selectedDate.getTime() && drawMonth == inst.selectedMonth && inst._keyEvent) || // user pressed key\n							(defaultDate.getTime() == printDate.getTime() && defaultDate.getTime() == selectedDate.getTime()) ?\n							// or defaultDate is current printedDate and defaultDate is selectedDate\n							' ' + this._dayOverClass : '') + // highlight selected day\n							(unselectable ? ' ' + this._unselectableClass + ' ui-state-disabled': '') +  // highlight unselectable days\n							(otherMonth && !showOtherMonths ? '' : ' ' + daySettings[1] + // highlight custom dates\n							(printDate.getTime() == currentDate.getTime() ? ' ' + this._currentClass : '') + // highlight selected day\n							(printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '\"' + // highlight today (if different)\n							((!otherMonth || showOtherMonths) && daySettings[2] ? ' title=\"' + daySettings[2] + '\"' : '') + // cell title\n							(unselectable ? '' : ' onclick=\"DP_jQuery_' + dpuuid + '.datepicker._selectDay(\\'#' +\n							inst.id + '\\',' + printDate.getMonth() + ',' + printDate.getFullYear() + ', this);return false;\"') + '>' + // actions\n							(otherMonth && !showOtherMonths ? '&#xa0;' : // display for other months\n							(unselectable ? '<span class=\"ui-state-default\">' + printDate.getDate() + '</span>' : '<a class=\"ui-state-default' +\n							(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +\n							(printDate.getTime() == currentDate.getTime() ? ' ui-state-active' : '') + // highlight selected day\n							(otherMonth ? ' ui-priority-secondary' : '') + // distinguish dates from other months\n							'\" href=\"#\">' + printDate.getDate() + '</a>')) + '</td>'; // display selectable date\n						printDate.setDate(printDate.getDate() + 1);\n						printDate = this._daylightSavingAdjust(printDate);\n					}\n					calender += tbody + '</tr>';\n				}\n				drawMonth++;\n				if (drawMonth > 11) {\n					drawMonth = 0;\n					drawYear++;\n				}\n				calender += '</tbody></table>' + (isMultiMonth ? '</div>' + \n							((numMonths[0] > 0 && col == numMonths[1]-1) ? '<div class=\"ui-datepicker-row-break\"></div>' : '') : '');\n				group += calender;\n			}\n			html += group;\n		}\n		html += buttonPanel + ($.browser.msie && parseInt($.browser.version,10) < 7 && !inst.inline ?\n			'<iframe src=\"javascript:false;\" class=\"ui-datepicker-cover\" frameborder=\"0\"></iframe>' : '');\n		inst._keyEvent = false;\n		return html;\n	},\n\n	/* Generate the month and year header. */\n	_generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate,\n			secondary, monthNames, monthNamesShort) {\n		var changeMonth = this._get(inst, 'changeMonth');\n		var changeYear = this._get(inst, 'changeYear');\n		var showMonthAfterYear = this._get(inst, 'showMonthAfterYear');\n		var html = '<div class=\"ui-datepicker-title\">';\n		var monthHtml = '';\n		// month selection\n		if (secondary || !changeMonth)\n			monthHtml += '<span class=\"ui-datepicker-month\">' + monthNames[drawMonth] + '</span>';\n		else {\n			var inMinYear = (minDate && minDate.getFullYear() == drawYear);\n			var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear);\n			monthHtml += '<select class=\"ui-datepicker-month\" ' +\n				'onchange=\"DP_jQuery_' + dpuuid + '.datepicker._selectMonthYear(\\'#' + inst.id + '\\', this, \\'M\\');\" ' +\n				'onclick=\"DP_jQuery_' + dpuuid + '.datepicker._clickMonthYear(\\'#' + inst.id + '\\');\"' +\n			 	'>';\n			for (var month = 0; month < 12; month++) {\n				if ((!inMinYear || month >= minDate.getMonth()) &&\n						(!inMaxYear || month <= maxDate.getMonth()))\n					monthHtml += '<option value=\"' + month + '\"' +\n						(month == drawMonth ? ' selected=\"selected\"' : '') +\n						'>' + monthNamesShort[month] + '</option>';\n			}\n			monthHtml += '</select>';\n		}\n		if (!showMonthAfterYear)\n			html += monthHtml + (secondary || !(changeMonth && changeYear) ? '&#xa0;' : '');\n		// year selection\n		if (secondary || !changeYear)\n			html += '<span class=\"ui-datepicker-year\">' + drawYear + '</span>';\n		else {\n			// determine range of years to display\n			var years = this._get(inst, 'yearRange').split(':');\n			var thisYear = new Date().getFullYear();\n			var determineYear = function(value) {\n				var year = (value.match(/c[+-].*/) ? drawYear + parseInt(value.substring(1), 10) :\n					(value.match(/[+-].*/) ? thisYear + parseInt(value, 10) :\n					parseInt(value, 10)));\n				return (isNaN(year) ? thisYear : year);\n			};\n			var year = determineYear(years[0]);\n			var endYear = Math.max(year, determineYear(years[1] || ''));\n			year = (minDate ? Math.max(year, minDate.getFullYear()) : year);\n			endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);\n			html += '<select class=\"ui-datepicker-year\" ' +\n				'onchange=\"DP_jQuery_' + dpuuid + '.datepicker._selectMonthYear(\\'#' + inst.id + '\\', this, \\'Y\\');\" ' +\n				'onclick=\"DP_jQuery_' + dpuuid + '.datepicker._clickMonthYear(\\'#' + inst.id + '\\');\"' +\n				'>';\n			for (; year <= endYear; year++) {\n				html += '<option value=\"' + year + '\"' +\n					(year == drawYear ? ' selected=\"selected\"' : '') +\n					'>' + year + '</option>';\n			}\n			html += '</select>';\n		}\n		html += this._get(inst, 'yearSuffix');\n		if (showMonthAfterYear)\n			html += (secondary || !(changeMonth && changeYear) ? '&#xa0;' : '') + monthHtml;\n		html += '</div>'; // Close datepicker_header\n		return html;\n	},\n\n	/* Adjust one of the date sub-fields. */\n	_adjustInstDate: function(inst, offset, period) {\n		var year = inst.drawYear + (period == 'Y' ? offset : 0);\n		var month = inst.drawMonth + (period == 'M' ? offset : 0);\n		var day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) +\n			(period == 'D' ? offset : 0);\n		var date = this._restrictMinMax(inst,\n			this._daylightSavingAdjust(new Date(year, month, day)));\n		inst.selectedDay = date.getDate();\n		inst.drawMonth = inst.selectedMonth = date.getMonth();\n		inst.drawYear = inst.selectedYear = date.getFullYear();\n		if (period == 'M' || period == 'Y')\n			this._notifyChange(inst);\n	},\n\n	/* Ensure a date is within any min/max bounds. */\n	_restrictMinMax: function(inst, date) {\n		var minDate = this._getMinMaxDate(inst, 'min');\n		var maxDate = this._getMinMaxDate(inst, 'max');\n		date = (minDate && date < minDate ? minDate : date);\n		date = (maxDate && date > maxDate ? maxDate : date);\n		return date;\n	},\n\n	/* Notify change of month/year. */\n	_notifyChange: function(inst) {\n		var onChange = this._get(inst, 'onChangeMonthYear');\n		if (onChange)\n			onChange.apply((inst.input ? inst.input[0] : null),\n				[inst.selectedYear, inst.selectedMonth + 1, inst]);\n	},\n\n	/* Determine the number of months to show. */\n	_getNumberOfMonths: function(inst) {\n		var numMonths = this._get(inst, 'numberOfMonths');\n		return (numMonths == null ? [1, 1] : (typeof numMonths == 'number' ? [1, numMonths] : numMonths));\n	},\n\n	/* Determine the current maximum date - ensure no time components are set. */\n	_getMinMaxDate: function(inst, minMax) {\n		return this._determineDate(inst, this._get(inst, minMax + 'Date'), null);\n	},\n\n	/* Find the number of days in a given month. */\n	_getDaysInMonth: function(year, month) {\n		return 32 - new Date(year, month, 32).getDate();\n	},\n\n	/* Find the day of the week of the first of a month. */\n	_getFirstDayOfMonth: function(year, month) {\n		return new Date(year, month, 1).getDay();\n	},\n\n	/* Determines if we should allow a \"next/prev\" month display change. */\n	_canAdjustMonth: function(inst, offset, curYear, curMonth) {\n		var numMonths = this._getNumberOfMonths(inst);\n		var date = this._daylightSavingAdjust(new Date(curYear,\n			curMonth + (offset < 0 ? offset : numMonths[0] * numMonths[1]), 1));\n		if (offset < 0)\n			date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));\n		return this._isInRange(inst, date);\n	},\n\n	/* Is the given date in the accepted range? */\n	_isInRange: function(inst, date) {\n		var minDate = this._getMinMaxDate(inst, 'min');\n		var maxDate = this._getMinMaxDate(inst, 'max');\n		return ((!minDate || date.getTime() >= minDate.getTime()) &&\n			(!maxDate || date.getTime() <= maxDate.getTime()));\n	},\n\n	/* Provide the configuration settings for formatting/parsing. */\n	_getFormatConfig: function(inst) {\n		var shortYearCutoff = this._get(inst, 'shortYearCutoff');\n		shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff :\n			new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));\n		return {shortYearCutoff: shortYearCutoff,\n			dayNamesShort: this._get(inst, 'dayNamesShort'), dayNames: this._get(inst, 'dayNames'),\n			monthNamesShort: this._get(inst, 'monthNamesShort'), monthNames: this._get(inst, 'monthNames')};\n	},\n\n	/* Format the given date for display. */\n	_formatDate: function(inst, day, month, year) {\n		if (!day) {\n			inst.currentDay = inst.selectedDay;\n			inst.currentMonth = inst.selectedMonth;\n			inst.currentYear = inst.selectedYear;\n		}\n		var date = (day ? (typeof day == 'object' ? day :\n			this._daylightSavingAdjust(new Date(year, month, day))) :\n			this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay)));\n		return this.formatDate(this._get(inst, 'dateFormat'), date, this._getFormatConfig(inst));\n	}\n});\n\n/* jQuery extend now ignores nulls! */\nfunction extendRemove(target, props) {\n	$.extend(target, props);\n	for (var name in props)\n		if (props[name] == null || props[name] == undefined)\n			target[name] = props[name];\n	return target;\n};\n\n/* Determine whether an object is an array. */\nfunction isArray(a) {\n	return (a && (($.browser.safari && typeof a == 'object' && a.length) ||\n		(a.constructor && a.constructor.toString().match(/\\Array\\(\\)/))));\n};\n\n/* Invoke the datepicker functionality.\n   @param  options  string - a command, optionally followed by additional parameters or\n                    Object - settings for attaching new datepicker functionality\n   @return  jQuery object */\n$.fn.datepicker = function(options){\n\n	/* Initialise the date picker. */\n	if (!$.datepicker.initialized) {\n		$(document).mousedown($.datepicker._checkExternalClick).\n			find('body').append($.datepicker.dpDiv);\n		$.datepicker.initialized = true;\n	}\n\n	var otherArgs = Array.prototype.slice.call(arguments, 1);\n	if (typeof options == 'string' && (options == 'isDisabled' || options == 'getDate' || options == 'widget'))\n		return $.datepicker['_' + options + 'Datepicker'].\n			apply($.datepicker, [this[0]].concat(otherArgs));\n	if (options == 'option' && arguments.length == 2 && typeof arguments[1] == 'string')\n		return $.datepicker['_' + options + 'Datepicker'].\n			apply($.datepicker, [this[0]].concat(otherArgs));\n	return this.each(function() {\n		typeof options == 'string' ?\n			$.datepicker['_' + options + 'Datepicker'].\n				apply($.datepicker, [this].concat(otherArgs)) :\n			$.datepicker._attachDatepicker(this, options);\n	});\n};\n\n$.datepicker = new Datepicker(); // singleton instance\n$.datepicker.initialized = false;\n$.datepicker.uuid = new Date().getTime();\n$.datepicker.version = \"@VERSION\";\n\n// Workaround for #4055\n// Add another global to avoid noConflict issues with inline event handlers\nwindow['DP_jQuery_' + dpuuid] = $;\n\n})(jQuery);\n";

