summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2008-06-20 04:13:10 +0000
committerChristian Fowler <spider@viovio.com>2008-06-20 04:13:10 +0000
commit568d218d54ca3b1d548fcd63c25289028d829625 (patch)
treed27cd36a583794f4c3bc865d3e5423fe946d6304
parent33435cbd28c0bffa306f8dee59dac9930143dc17 (diff)
downloadutil-568d218d54ca3b1d548fcd63c25289028d829625.tar.gz
util-568d218d54ca3b1d548fcd63c25289028d829625.tar.bz2
util-568d218d54ca3b1d548fcd63c25289028d829625.zip
add jQuery 1.5, interface.eyecon.ro 1.1.2, ui.jquery.com 1.5
-rw-r--r--javascript/libs/jquery/full/interface/accordion.js165
-rw-r--r--javascript/libs/jquery/full/interface/carousel.js257
-rw-r--r--javascript/libs/jquery/full/interface/easing.js124
-rw-r--r--javascript/libs/jquery/full/interface/fisheye.js142
-rw-r--r--javascript/libs/jquery/full/interface/iautocompleter.js536
-rw-r--r--javascript/libs/jquery/full/interface/iautoscroller.js112
-rw-r--r--javascript/libs/jquery/full/interface/idrag.js588
-rw-r--r--javascript/libs/jquery/full/interface/idrop.js323
-rw-r--r--javascript/libs/jquery/full/interface/iexpander.js114
-rw-r--r--javascript/libs/jquery/full/interface/ifx.js490
-rw-r--r--javascript/libs/jquery/full/interface/ifxblind.js212
-rw-r--r--javascript/libs/jquery/full/interface/ifxbounce.js89
-rw-r--r--javascript/libs/jquery/full/interface/ifxdrop.js300
-rw-r--r--javascript/libs/jquery/full/interface/ifxfold.js157
-rw-r--r--javascript/libs/jquery/full/interface/ifxhighlight.js64
-rw-r--r--javascript/libs/jquery/full/interface/ifxopenclose.js227
-rw-r--r--javascript/libs/jquery/full/interface/ifxpulsate.js77
-rw-r--r--javascript/libs/jquery/full/interface/ifxscale.js290
-rw-r--r--javascript/libs/jquery/full/interface/ifxscrollto.js111
-rw-r--r--javascript/libs/jquery/full/interface/ifxshake.js97
-rw-r--r--javascript/libs/jquery/full/interface/ifxslide.js349
-rw-r--r--javascript/libs/jquery/full/interface/ifxtransfer.js123
-rw-r--r--javascript/libs/jquery/full/interface/imagebox.js595
-rw-r--r--javascript/libs/jquery/full/interface/interface.js12
-rw-r--r--javascript/libs/jquery/full/interface/iresizable.js453
-rw-r--r--javascript/libs/jquery/full/interface/iselect.js275
-rw-r--r--javascript/libs/jquery/full/interface/islider.js301
-rw-r--r--javascript/libs/jquery/full/interface/islideshow.js422
-rw-r--r--javascript/libs/jquery/full/interface/isortables.js392
-rw-r--r--javascript/libs/jquery/full/interface/itooltip.js184
-rw-r--r--javascript/libs/jquery/full/interface/ittabs.js92
-rw-r--r--javascript/libs/jquery/full/interface/iutil.js245
-rw-r--r--javascript/libs/jquery/full/jquery.js3549
-rw-r--r--javascript/libs/jquery/full/ui/effects.blind.js50
-rw-r--r--javascript/libs/jquery/full/ui/effects.bounce.js79
-rw-r--r--javascript/libs/jquery/full/ui/effects.clip.js54
-rw-r--r--javascript/libs/jquery/full/ui/effects.core.js510
-rw-r--r--javascript/libs/jquery/full/ui/effects.drop.js51
-rw-r--r--javascript/libs/jquery/full/ui/effects.explode.js80
-rw-r--r--javascript/libs/jquery/full/ui/effects.fold.js52
-rw-r--r--javascript/libs/jquery/full/ui/effects.highlight.js49
-rw-r--r--javascript/libs/jquery/full/ui/effects.pulsate.js56
-rw-r--r--javascript/libs/jquery/full/ui/effects.scale.js180
-rw-r--r--javascript/libs/jquery/full/ui/effects.shake.js58
-rw-r--r--javascript/libs/jquery/full/ui/effects.slide.js51
-rw-r--r--javascript/libs/jquery/full/ui/effects.transfer.js60
-rw-r--r--javascript/libs/jquery/full/ui/jquery.ui.all.js7361
-rw-r--r--javascript/libs/jquery/full/ui/ui.accordion.js299
-rw-r--r--javascript/libs/jquery/full/ui/ui.core.js289
-rw-r--r--javascript/libs/jquery/full/ui/ui.datepicker.js1450
-rw-r--r--javascript/libs/jquery/full/ui/ui.dialog.js444
-rw-r--r--javascript/libs/jquery/full/ui/ui.draggable.js561
-rw-r--r--javascript/libs/jquery/full/ui/ui.droppable.js281
-rw-r--r--javascript/libs/jquery/full/ui/ui.resizable.js752
-rw-r--r--javascript/libs/jquery/full/ui/ui.selectable.js265
-rw-r--r--javascript/libs/jquery/full/ui/ui.slider.js423
-rw-r--r--javascript/libs/jquery/full/ui/ui.sortable.js674
-rw-r--r--javascript/libs/jquery/full/ui/ui.tabs.js593
-rw-r--r--javascript/libs/jquery/min/interface/accordion.js13
-rw-r--r--javascript/libs/jquery/min/interface/carousel.js13
-rw-r--r--javascript/libs/jquery/min/interface/easing.js13
-rw-r--r--javascript/libs/jquery/min/interface/fisheye.js13
-rw-r--r--javascript/libs/jquery/min/interface/iautocompleter.js13
-rw-r--r--javascript/libs/jquery/min/interface/iautoscroller.js13
-rw-r--r--javascript/libs/jquery/min/interface/idrag.js13
-rw-r--r--javascript/libs/jquery/min/interface/idrop.js13
-rw-r--r--javascript/libs/jquery/min/interface/iexpander.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifx.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxblind.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxbounce.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxdrop.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxfold.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxhighlight.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxopenclose.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxpulsate.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxscale.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxscrollto.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxshake.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxslide.js13
-rw-r--r--javascript/libs/jquery/min/interface/ifxtransfer.js13
-rw-r--r--javascript/libs/jquery/min/interface/imagebox.js13
-rw-r--r--javascript/libs/jquery/min/interface/iresizable.js13
-rw-r--r--javascript/libs/jquery/min/interface/iselect.js13
-rw-r--r--javascript/libs/jquery/min/interface/islider.js13
-rw-r--r--javascript/libs/jquery/min/interface/islideshow.js13
-rw-r--r--javascript/libs/jquery/min/interface/isortables.js13
-rw-r--r--javascript/libs/jquery/min/interface/itooltip.js13
-rw-r--r--javascript/libs/jquery/min/interface/ittabs.js13
-rw-r--r--javascript/libs/jquery/min/interface/iutil.js13
-rw-r--r--javascript/libs/jquery/min/jquery32
-rw-r--r--javascript/libs/jquery/min/ui/effects.blind.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.bounce.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.clip.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.core.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.drop.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.explode.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.fold.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.highlight.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.pulsate.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.scale.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.shake.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.slide.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/effects.transfer.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/jquery.ui.all.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/ui.accordion.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/ui.core.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/ui.datepicker.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/ui.dialog.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/ui.draggable.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/ui.droppable.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/ui.resizable.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/ui.selectable.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/ui.slider.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/ui.sortable.min.js1
-rw-r--r--javascript/libs/jquery/min/ui/ui.tabs.min.js1
-rw-r--r--javascript/libs/jquery/packed/interface.js12
-rw-r--r--javascript/libs/jquery/packed/ui/effects.blind.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.bounce.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.clip.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.core.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.drop.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.explode.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.fold.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.highlight.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.pulsate.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.scale.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.shake.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.slide.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/effects.transfer.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/jquery.ui.all.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/ui.accordion.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/ui.core.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/ui.datepicker.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/ui.dialog.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/ui.draggable.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/ui.droppable.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/ui.resizable.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/ui.selectable.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/ui.slider.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/ui.sortable.packed.js2
-rw-r--r--javascript/libs/jquery/packed/ui/ui.tabs.packed.js2
141 files changed, 26711 insertions, 0 deletions
diff --git a/javascript/libs/jquery/full/interface/accordion.js b/javascript/libs/jquery/full/interface/accordion.js
new file mode 100644
index 0000000..a9e18d5
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/accordion.js
@@ -0,0 +1,165 @@
+/**
+ * Interface Elements for jQuery
+ * Accordion
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+
+/**
+ * Create an accordion from a HTML structure
+ *
+ * @example $('#myAccordion').Accordion(
+ * {
+ * headerSelector : 'dt',
+ * panelSelector : 'dd',
+ * activeClass : 'myAccordionActive',
+ * hoverClass : 'myAccordionHover',
+ * panelHeight : 200,
+ * speed : 300
+ * }
+ * );
+ * @desc Converts definition list with id 'myAccordion' into an accordion width dt tags as headers and dd tags as panels
+ *
+ * @name Accordion
+ * @description Create an accordion from a HTML structure
+ * @param Hash hash A hash of parameters
+ * @option Integer panelHeight the pannels' height
+ * @option String headerSelector selector for header elements
+ * @option String panelSelector selector for panel elements
+ * @option String activeClass (optional) CSS Class for active header
+ * @option String hoverClass (optional) CSS Class for hovered header
+ * @option Function onShow (optional) callback called whenever an pannel gets active
+ * @option Function onHide (optional) callback called whenever an pannel gets incative
+ * @option Function onClick (optional) callback called just before an panel gets active
+ * @option Mixed speed (optional) animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @option Integer crrentPanel (otional) the active panel on initialisation
+ *
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.iAccordion = {
+ build : function(options)
+ {
+ return this.each(
+ function()
+ {
+ if (!options.headerSelector || !options.panelSelector)
+ return;
+ var el = this;
+ el.accordionCfg = {
+ panelHeight : options.panelHeight||300,
+ headerSelector : options.headerSelector,
+ panelSelector : options.panelSelector,
+ activeClass : options.activeClass||'fakeAccordionClass',
+ hoverClass : options.hoverClass||'fakeAccordionClass',
+ onShow : options.onShow && typeof options.onShow == 'function' ? options.onShow : false,
+ onHide : options.onShow && typeof options.onHide == 'function' ? options.onHide : false,
+ onClick : options.onClick && typeof options.onClick == 'function' ? options.onClick : false,
+ headers : jQuery(options.headerSelector, this),
+ panels : jQuery(options.panelSelector, this),
+ speed : options.speed||400,
+ currentPanel : options.currentPanel||0
+ };
+ el.accordionCfg.panels
+ .hide()
+ .css('height', '1px')
+ .eq(0)
+ .css(
+ {
+ height: el.accordionCfg.panelHeight + 'px',
+ display: 'block'
+ }
+ )
+ .end();
+
+ el.accordionCfg.headers
+ .each(
+ function(nr)
+ {
+ this.accordionPos = nr;
+ }
+ )
+ .hover(
+ function()
+ {
+ jQuery(this).addClass(el.accordionCfg.hoverClass);
+ },
+ function()
+ {
+ jQuery(this).removeClass(el.accordionCfg.hoverClass);
+ }
+ )
+ .bind(
+ 'click',
+ function(e)
+ {
+ if (el.accordionCfg.currentPanel == this.accordionPos)
+ return;
+ el.accordionCfg.headers
+ .eq(el.accordionCfg.currentPanel)
+ .removeClass(el.accordionCfg.activeClass)
+ .end()
+ .eq(this.accordionPos)
+ .addClass(el.accordionCfg.activeClass)
+ .end();
+ el.accordionCfg.panels
+ .eq(el.accordionCfg.currentPanel)
+ .animate(
+ {height:0},
+ el.accordionCfg.speed,
+ function()
+ {
+ this.style.display = 'none';
+ if (el.accordionCfg.onHide) {
+ el.accordionCfg.onHide.apply(el, [this]);
+ }
+ }
+ )
+ .end()
+ .eq(this.accordionPos)
+ .show()
+ .animate (
+ {height:el.accordionCfg.panelHeight},
+ el.accordionCfg.speed,
+ function()
+ {
+ this.style.display = 'block';
+ if (el.accordionCfg.onShow) {
+ el.accordionCfg.onShow.apply(el, [this]);
+ }
+ }
+ )
+ .end();
+
+ if (el.accordionCfg.onClick) {
+ el.accordionCfg.onClick.apply(
+ el,
+ [
+ this,
+ el.accordionCfg.panels.get(this.accordionPos),
+ el.accordionCfg.headers.get(el.accordionCfg.currentPanel),
+ el.accordionCfg.panels.get(el.accordionCfg.currentPanel)
+ ]
+ );
+ }
+ el.accordionCfg.currentPanel = this.accordionPos;
+ }
+ )
+ .eq(0)
+ .addClass(el.accordionCfg.activeClass)
+ .end();
+ jQuery(this)
+ .css('height', jQuery(this).css('height'))
+ .css('overflow', 'hidden');
+ }
+ );
+ }
+};
+
+jQuery.fn.Accordion = jQuery.iAccordion.build; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/carousel.js b/javascript/libs/jquery/full/interface/carousel.js
new file mode 100644
index 0000000..7ed1c7f
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/carousel.js
@@ -0,0 +1,257 @@
+/**
+ * Interface Elements for jQuery
+ * 3D Carousel
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+/**
+ * Created a 3D Carousel from a list of images, with reflections and animated by mouse position
+ *
+ * @example window.onload =
+ * function()
+ * {
+ * $('#carousel').Carousel(
+ * {
+ * itemWidth: 110,
+ * itemHeight: 62,
+ * itemMinWidth: 50,
+ * items: 'a',
+ * reflections: .5,
+ * rotationSpeed: 1.8
+ * }
+ * );
+ * }
+ * HTML
+ * <div id="carousel">
+ * <a href="" title=""><img src="" width="100%" /></a>
+ * <a href="" title=""><img src="" width="100%" /></a>
+ * <a href="" title=""><img src="" width="100%" /></a>
+ * <a href="" title=""><img src="" width="100%" /></a>
+ * <a href="" title=""><img src="" width="100%" /></a>
+ * </div>
+ * CSS
+ * #carousel
+ * {
+ * width: 700px;
+ * height: 150px;
+ * background-color: #111;
+ * position: absolute;
+ * top: 200px;
+ * left: 100px;
+ * }
+ * #carousel a
+ * {
+ * position: absolute;
+ * width: 110px;
+ * }
+ *
+ * @desc Creates a 3D carousel from all images inside div tag with id 'carousel'
+ *
+ *
+ * @name 3D Carousel
+ * @description Created a 3D Carousel from a list of images, with reflections and animated by mouse position
+ * @param Hash hash A hash of parameters
+ * @option String items items selection
+ * @option Integer itemWidth the max width for each item
+ * @option Integer itemHeight the max height for each item
+ * @option Integer itemMinWidth the minimum width for each item, the height is automaticaly calculated to keep proportions
+ * @option Float rotationSpeed the speed for rotation animation
+ * @option Float reflectionSize the reflection size a fraction from items' height
+ *
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.iCarousel = {
+
+ build : function(options)
+ {
+ return this.each(
+ function()
+ {
+ var el = this;
+ var increment = 2*Math.PI/360;
+ var maxRotation = 2*Math.PI;
+ if(jQuery(el).css('position') != 'relative' && jQuery(el).css('position') != 'absolute') {
+ jQuery(el).css('position', 'relative');
+ }
+ el.carouselCfg = {
+ items : jQuery(options.items, this),
+ itemWidth : options.itemWidth,
+ itemHeight : options.itemHeight,
+ itemMinWidth : options.itemMinWidth,
+ maxRotation : maxRotation,
+ size : jQuery.iUtil.getSize(this),
+ position : jQuery.iUtil.getPosition(this),
+ start : Math.PI/2,
+ rotationSpeed : options.rotationSpeed,
+ reflectionSize : options.reflections,
+ reflections : [],
+ protectRotation : false,
+ increment: 2*Math.PI/360
+ };
+ el.carouselCfg.radiusX = (el.carouselCfg.size.w - el.carouselCfg.itemWidth)/2;
+ el.carouselCfg.radiusY = (el.carouselCfg.size.h - el.carouselCfg.itemHeight - el.carouselCfg.itemHeight * el.carouselCfg.reflectionSize)/2;
+ el.carouselCfg.step = 2*Math.PI/el.carouselCfg.items.size();
+ el.carouselCfg.paddingX = el.carouselCfg.size.w/2;
+ el.carouselCfg.paddingY = el.carouselCfg.size.h/2 - el.carouselCfg.itemHeight * el.carouselCfg.reflectionSize;
+ var reflexions = document.createElement('div');
+ jQuery(reflexions)
+ .css(
+ {
+ position: 'absolute',
+ zIndex: 1,
+ top: 0,
+ left: 0
+ }
+ );
+ jQuery(el).append(reflexions);
+ el.carouselCfg.items
+ .each(
+ function(nr)
+ {
+ image = jQuery('img', this).get(0);
+ height = parseInt(el.carouselCfg.itemHeight*el.carouselCfg.reflectionSize);
+ if (jQuery.browser.msie) {
+ canvas = document.createElement('img');
+ jQuery(canvas).css('position', 'absolute');
+ canvas.src = image.src;
+ canvas.style.filter = 'flipv progid:DXImageTransform.Microsoft.Alpha(opacity=60, style=1, finishOpacity=0, startx=0, starty=0, finishx=0)';
+
+ } else {
+ canvas = document.createElement('canvas');
+ if (canvas.getContext) {
+ context = canvas.getContext("2d");
+ canvas.style.position = 'absolute';
+ canvas.style.height = height +'px';
+ canvas.style.width = el.carouselCfg.itemWidth+'px';
+ canvas.height = height;
+ canvas.width = el.carouselCfg.itemWidth;
+ context.save();
+
+ context.translate(0,height);
+ context.scale(1,-1);
+
+ context.drawImage(
+ image,
+ 0,
+ 0,
+ el.carouselCfg.itemWidth,
+ height
+ );
+
+ context.restore();
+
+ context.globalCompositeOperation = "destination-out";
+ var gradient = context.createLinearGradient(
+ 0,
+ 0,
+ 0,
+ height
+ );
+
+ gradient.addColorStop(1, "rgba(255, 255, 255, 1)");
+ gradient.addColorStop(0, "rgba(255, 255, 255, 0.6)");
+
+ context.fillStyle = gradient;
+ if (navigator.appVersion.indexOf('WebKit') != -1) {
+ context.fill();
+ } else {
+ context.fillRect(
+ 0,
+ 0,
+ el.carouselCfg.itemWidth,
+ height
+ );
+ }
+ }
+ }
+
+ el.carouselCfg.reflections[nr] = canvas;
+ jQuery(reflexions).append(canvas);
+ }
+ )
+ .bind(
+ 'mouseover',
+ function(e)
+ {
+ el.carouselCfg.protectRotation = true;
+ el.carouselCfg.speed = el.carouselCfg.increment*0.1 * el.carouselCfg.speed / Math.abs(el.carouselCfg.speed);
+ return false;
+ }
+ )
+ .bind(
+ 'mouseout',
+ function(e)
+ {
+ el.carouselCfg.protectRotation = false;
+ return false;
+ }
+ );
+ jQuery.iCarousel.positionItems(el);
+ el.carouselCfg.speed = el.carouselCfg.increment*0.2;
+ el.carouselCfg.rotationTimer = window.setInterval(
+ function()
+ {
+ el.carouselCfg.start += el.carouselCfg.speed;
+ if (el.carouselCfg.start > maxRotation)
+ el.carouselCfg.start = 0;
+ jQuery.iCarousel.positionItems(el);
+ },
+ 20
+ );
+ jQuery(el)
+ .bind(
+ 'mouseout',
+ function()
+ {
+ el.carouselCfg.speed = el.carouselCfg.increment*0.2 * el.carouselCfg.speed / Math.abs(el.carouselCfg.speed);
+ }
+ )
+ .bind(
+ 'mousemove',
+ function(e)
+ {
+ if (el.carouselCfg.protectRotation == false) {
+ pointer = jQuery.iUtil.getPointer(e);
+ mousex = el.carouselCfg.size.w - pointer.x + el.carouselCfg.position.x;
+ el.carouselCfg.speed = el.carouselCfg.rotationSpeed * el.carouselCfg.increment * (el.carouselCfg.size.w/2 - mousex) / (el.carouselCfg.size.w/2);
+ }
+ }
+ );
+ }
+ );
+ },
+
+ positionItems : function(el)
+ {
+ el.carouselCfg.items.each(
+ function (nr)
+ {
+ angle = el.carouselCfg.start+nr*el.carouselCfg.step;
+ x = el.carouselCfg.radiusX*Math.cos(angle);
+ y = el.carouselCfg.radiusY*Math.sin(angle) ;
+ itemZIndex = parseInt(100*(el.carouselCfg.radiusY+y)/(2*el.carouselCfg.radiusY));
+ parte = (el.carouselCfg.radiusY+y)/(2*el.carouselCfg.radiusY);
+
+ width = parseInt((el.carouselCfg.itemWidth - el.carouselCfg.itemMinWidth) * parte + el.carouselCfg.itemMinWidth);
+ height = parseInt(width * el.carouselCfg.itemHeight / el.carouselCfg.itemWidth);
+ this.style.top = el.carouselCfg.paddingY + y - height/2 + "px";
+ this.style.left = el.carouselCfg.paddingX + x - width/2 + "px";
+ this.style.width = width + "px";
+ this.style.height = height + "px";
+ this.style.zIndex = itemZIndex;
+ el.carouselCfg.reflections[nr].style.top = parseInt(el.carouselCfg.paddingY + y + height - 1 - height/2) + "px";
+ el.carouselCfg.reflections[nr].style.left = parseInt(el.carouselCfg.paddingX + x - width/2) + "px";
+ el.carouselCfg.reflections[nr].style.width = width + "px";
+ el.carouselCfg.reflections[nr].style.height = parseInt(height * el.carouselCfg.reflectionSize) + "px";
+ }
+ );
+ }
+};
+jQuery.fn.Carousel = jQuery.iCarousel.build; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/easing.js b/javascript/libs/jquery/full/interface/easing.js
new file mode 100644
index 0000000..7b074cf
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/easing.js
@@ -0,0 +1,124 @@
+/**
+ * Interface Elements for jQuery
+ * Easing formulas
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ */
+
+/**
+ * Starting with jQuery 1.1 the fx function accepts easing formulas that can be used with .animation() and most of FX plugins from Interface. The object can be extended to accept new easing formulas
+ */
+
+ jQuery.extend({
+ /**
+ *
+ * @param Integer p period step in animation
+ * @param Integer n current time
+ * @param Mixed firstNum begin value
+ * @param Mixed delta change in
+ * @param Integer duration duration
+ */
+ easing : {
+ linear: function(p, n, firstNum, delta, duration) {
+ return ((-Math.cos(p*Math.PI)/2) + 0.5) * delta + firstNum;
+ },
+
+ easein: function(p, n, firstNum, delta, duration) {
+ return delta*(n/=duration)*n*n + firstNum;
+ },
+
+ easeout: function(p, n, firstNum, delta, duration) {
+ return -delta * ((n=n/duration-1)*n*n*n - 1) + firstNum;
+ },
+
+ easeboth: function(p, n, firstNum, delta, duration) {
+ if ((n/=duration/2) < 1)
+ return delta/2*n*n*n*n + firstNum;
+ return -delta/2 * ((n-=2)*n*n*n - 2) + firstNum;
+ },
+
+ bounceout: function(p, n, firstNum, delta, duration) {
+ if ((n/=duration) < (1/2.75)) {
+ return delta*(7.5625*n*n) + firstNum;
+ } else if (n < (2/2.75)) {
+ return delta*(7.5625*(n-=(1.5/2.75))*n + .75) + firstNum;
+ } else if (n < (2.5/2.75)) {
+ return delta*(7.5625*(n-=(2.25/2.75))*n + .9375) + firstNum;
+ } else {
+ return delta*(7.5625*(n-=(2.625/2.75))*n + .984375) + firstNum;
+ }
+ },
+
+ bouncein: function(p, n, firstNum, delta, duration) {
+ if (jQuery.easing.bounceout)
+ return delta - jQuery.easing.bounceout (p, duration - n, 0, delta, duration) + firstNum;
+ return firstNum + delta;
+ },
+
+ bounceboth: function(p, n, firstNum, delta, duration) {
+ if (jQuery.easing.bouncein && jQuery.easing.bounceout)
+ if (n < duration/2)
+ return jQuery.easing.bouncein(p, n*2, 0, delta, duration) * .5 + firstNum;
+ return jQuery.easing.bounceout(p, n*2-duration, 0, delta, duration) * .5 + delta*.5 + firstNum;
+ return firstNum + delta;
+ },
+
+ elasticin: function(p, n, firstNum, delta, duration) {
+ var a, s;
+ if (n == 0)
+ return firstNum;
+ if ((n/=duration)==1)
+ return firstNum+delta;
+ a = delta * 0.3;
+ p=duration*.3;
+ if (a < Math.abs(delta)) {
+ a=delta;
+ s=p/4;
+ } else {
+ s = p/(2*Math.PI) * Math.asin (delta/a);
+ }
+ return -(a*Math.pow(2,10*(n-=1)) * Math.sin( (n*duration-s)*(2*Math.PI)/p )) + firstNum;
+ },
+
+ elasticout:function(p, n, firstNum, delta, duration) {
+ var a, s;
+ if (n==0)
+ return firstNum;
+ if ((n/=duration/2)==2)
+ return firstNum + delta;
+ a = delta * 0.3;
+ p=duration*.3;
+ if (a < Math.abs(delta)){
+ a = delta;
+ s=p/4;
+ } else {
+ s = p/(2*Math.PI) * Math.asin (delta/a);
+ }
+ return a*Math.pow(2,-10*n) * Math.sin( (n*duration-s)*(2*Math.PI)/p ) + delta + firstNum;
+ },
+
+ elasticboth: function(p, n, firstNum, delta, duration) {
+ var a, s;
+ if (n==0)
+ return firstNum;
+ if ((n/=duration/2)==2)
+ return firstNum + delta;
+ a = delta * 0.3;
+ p=duration*.3;
+ if (a < Math.abs(delta)){
+ a = delta;
+ s=p/4;
+ } else {
+ s = p/(2*Math.PI) * Math.asin (delta/a);
+ }
+ if (n < 1) {
+ return -.5*(a*Math.pow(2,10*(n-=1)) * Math.sin( (n*duration-s)*(2*Math.PI)/p )) + firstNum;
+ }
+ return a*Math.pow(2,-10*(n-=1)) * Math.sin( (n*duration-s)*(2*Math.PI)/p )*.5 + delta + firstNum;
+ }
+ }
+}); \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/fisheye.js b/javascript/libs/jquery/full/interface/fisheye.js
new file mode 100644
index 0000000..28079b4
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/fisheye.js
@@ -0,0 +1,142 @@
+/**
+ * Interface Elements for jQuery
+ * Fisheye menu
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+
+/**
+ * Build a Fisheye menu from a list of links
+ *
+ * @name Fisheye
+ * @description Build a Fisheye menu from a list of links
+ * @param Hash hash A hash of parameters
+ * @option String items items selection
+ * @option String container container element
+ * @option Integer itemWidth the minimum width for each item
+ * @option Integer maxWidth the maximum width for each item
+ * @option String itemsText selection of element that contains the text for each item
+ * @option Integer proximity the distance from element that make item to interact
+ * @option String valign vertical alignment
+ * @option String halign horizontal alignment
+ *
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.iFisheye = {
+
+ build : function(options)
+ {
+
+ return this.each(
+ function()
+ {
+ var el = this;
+ el.fisheyeCfg = {
+ items : jQuery(options.items, this),
+ container: jQuery(options.container, this),
+ pos : jQuery.iUtil.getPosition(this),
+ itemWidth: options.itemWidth,
+ itemsText: options.itemsText,
+ proximity: options.proximity,
+ valign: options.valign,
+ halign: options.halign,
+ maxWidth : options.maxWidth
+ };
+ jQuery.iFisheye.positionContainer(el, 0);
+ jQuery(window).bind(
+ 'resize',
+ function()
+ {
+ el.fisheyeCfg.pos = jQuery.iUtil.getPosition(el);
+ jQuery.iFisheye.positionContainer(el, 0);
+ jQuery.iFisheye.positionItems(el);
+ }
+ );
+ jQuery.iFisheye.positionItems(el);
+ el.fisheyeCfg.items
+ .bind(
+ 'mouseover',
+ function()
+ {
+ jQuery(el.fisheyeCfg.itemsText, this).get(0).style.display = 'block';
+ }
+ )
+ .bind(
+ 'mouseout',
+ function()
+ {
+ jQuery(el.fisheyeCfg.itemsText, this).get(0).style.display = 'none';
+ }
+ );
+ jQuery(document).bind(
+ 'mousemove',
+ function(e)
+ {
+ var pointer = jQuery.iUtil.getPointer(e);
+ var toAdd = 0;
+ if (el.fisheyeCfg.halign && el.fisheyeCfg.halign == 'center')
+ var posx = pointer.x - el.fisheyeCfg.pos.x - (el.offsetWidth - el.fisheyeCfg.itemWidth * el.fisheyeCfg.items.size())/2 - el.fisheyeCfg.itemWidth/2;
+ else if (el.fisheyeCfg.halign && el.fisheyeCfg.halign == 'right')
+ var posx = pointer.x - el.fisheyeCfg.pos.x - el.offsetWidth + el.fisheyeCfg.itemWidth * el.fisheyeCfg.items.size();
+ else
+ var posx = pointer.x - el.fisheyeCfg.pos.x;
+ var posy = Math.pow(pointer.y - el.fisheyeCfg.pos.y - el.offsetHeight/2,2);
+ el.fisheyeCfg.items.each(
+ function(nr)
+ {
+ distance = Math.sqrt(
+ Math.pow(posx - nr*el.fisheyeCfg.itemWidth, 2)
+ + posy
+ );
+ distance -= el.fisheyeCfg.itemWidth/2;
+
+ distance = distance < 0 ? 0 : distance;
+ distance = distance > el.fisheyeCfg.proximity ? el.fisheyeCfg.proximity : distance;
+ distance = el.fisheyeCfg.proximity - distance;
+
+ extraWidth = el.fisheyeCfg.maxWidth * distance/el.fisheyeCfg.proximity;
+
+ this.style.width = el.fisheyeCfg.itemWidth + extraWidth + 'px';
+ this.style.left = el.fisheyeCfg.itemWidth * nr + toAdd + 'px';
+ toAdd += extraWidth;
+ }
+ );
+ jQuery.iFisheye.positionContainer(el, toAdd);
+ }
+ );
+ }
+ )
+ },
+
+ positionContainer : function(el, toAdd)
+ {
+ if (el.fisheyeCfg.halign)
+ if (el.fisheyeCfg.halign == 'center')
+ el.fisheyeCfg.container.get(0).style.left = (el.offsetWidth - el.fisheyeCfg.itemWidth * el.fisheyeCfg.items.size())/2 - toAdd/2 + 'px';
+ else if (el.fisheyeCfg.halign == 'left')
+ el.fisheyeCfg.container.get(0).style.left = - toAdd/el.fisheyeCfg.items.size() + 'px';
+ else if (el.fisheyeCfg.halign == 'right')
+ el.fisheyeCfg.container.get(0).style.left = (el.offsetWidth - el.fisheyeCfg.itemWidth * el.fisheyeCfg.items.size()) - toAdd/2 + 'px';
+ el.fisheyeCfg.container.get(0).style.width = el.fisheyeCfg.itemWidth * el.fisheyeCfg.items.size() + toAdd + 'px';
+ },
+
+ positionItems : function(el)
+ {
+ el.fisheyeCfg.items.each(
+ function(nr)
+ {
+ this.style.width = el.fisheyeCfg.itemWidth + 'px';
+ this.style.left = el.fisheyeCfg.itemWidth * nr + 'px';
+ }
+ );
+ }
+};
+
+jQuery.fn.Fisheye = jQuery.iFisheye.build; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/iautocompleter.js b/javascript/libs/jquery/full/interface/iautocompleter.js
new file mode 100644
index 0000000..c0359ef
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/iautocompleter.js
@@ -0,0 +1,536 @@
+/**
+ * Interface Elements for jQuery
+ * Autocompleter
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+
+/**
+ * Attach AJAX driven autocomplete/sugestion box to text input fields.
+ *
+ *
+ *
+ * @name Autocomplete
+ * @description Attach AJAX driven autocomplete/sugestion box to text input fields.
+ * @param Hash hash A hash of parameters
+ * @option String source the URL to request
+ * @option Integer delay (optional) the delayed time to start the AJAX request
+ * @option Boolean autofill (optional) when true the first sugested value fills the input
+ * @option String helperClass (optional) the CSS class applied to sugestion box
+ * @option String selectClass (optional) the CSS class applied to selected/hovered item
+ * @option Integer minchars (optional) the number of characters needed before starting AJAX request
+ * @option Hash fx (optional) {type:[slide|blind|fade]; duration: integer} the fx type to apply to sugestion box and duration for that fx
+ * @option Function onSelect (optional) A function to be executed whenever an item it is selected
+ * @option Function onShow (optional) A function to be executed whenever the suggection box is displayed
+ * @option Function onHide (optional) A function to be executed whenever the suggection box is hidden
+ * @option Function onHighlight (optional) A function to be executed whenever an item it is highlighted
+ *
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.iAuto = {
+ helper : null,
+ content : null,
+ iframe: null,
+ timer : null,
+ lastValue: null,
+ currentValue: null,
+ subject: null,
+ selectedItem : null,
+ items: null,
+
+ empty : function()
+ {
+ jQuery.iAuto.content.empty();
+ if (jQuery.iAuto.iframe) {
+ jQuery.iAuto.iframe.hide();
+ }
+ },
+
+ clear : function()
+ {
+ jQuery.iAuto.items = null;
+ jQuery.iAuto.selectedItem = null;
+ jQuery.iAuto.lastValue = jQuery.iAuto.subject.value;
+ if(jQuery.iAuto.helper.css('display') == 'block') {
+ if (jQuery.iAuto.subject.autoCFG.fx) {
+ switch(jQuery.iAuto.subject.autoCFG.fx.type) {
+ case 'fade':
+ jQuery.iAuto.helper.fadeOut(jQuery.iAuto.subject.autoCFG.fx.duration, jQuery.iAuto.empty);
+ break;
+ case 'slide':
+ jQuery.iAuto.helper.SlideOutUp(jQuery.iAuto.subject.autoCFG.fx.duration, jQuery.iAuto.empty);
+ break;
+ case 'blind':
+ jQuery.iAuto.helper.BlindUp(jQuery.iAuto.subject.autoCFG.fx.duration, jQuery.iAuto.empty);
+ break;
+ }
+ } else {
+ jQuery.iAuto.helper.hide();
+ }
+ if (jQuery.iAuto.subject.autoCFG.onHide)
+ jQuery.iAuto.subject.autoCFG.onHide.apply(jQuery.iAuto.subject, [jQuery.iAuto.helper, jQuery.iAuto.iframe]);
+ } else {
+ jQuery.iAuto.empty();
+ }
+ window.clearTimeout(jQuery.iAuto.timer);
+ },
+
+ update : function ()
+ {
+ var subject = jQuery.iAuto.subject;
+ var subjectValue = jQuery.iAuto.getFieldValues(subject);
+ //var selectionStart = jQuery.iAuto.getSelectionStart(subject);
+ if (subject && subjectValue.item != jQuery.iAuto.lastValue && subjectValue.item.length >= subject.autoCFG.minchars) {
+ jQuery.iAuto.lastValue = subjectValue.item;
+ jQuery.iAuto.currentValue = subjectValue.item;
+
+ data = {
+ field: jQuery(subject).attr('name')||'field',
+ value: subjectValue.item
+ };
+
+ jQuery.ajax(
+ {
+ type: 'POST',
+ data: jQuery.param(data),
+ success: function(xml)
+ {
+ subject.autoCFG.lastSuggestion = jQuery('item',xml);
+ size = subject.autoCFG.lastSuggestion.size();
+ if (size > 0) {
+ var toWrite = '';
+ subject.autoCFG.lastSuggestion.each(
+ function(nr)
+ {
+ toWrite += '<li rel="' + jQuery('value', this).text() + '" dir="' + nr + '" style="cursor: default;">' + jQuery('text', this).text() + '</li>';
+ }
+ );
+ if (subject.autoCFG.autofill) {
+ var valueToAdd = jQuery('value', subject.autoCFG.lastSuggestion.get(0)).text();
+ subject.value = subjectValue.pre + valueToAdd + subject.autoCFG.multipleSeparator + subjectValue.post;
+ jQuery.iAuto.selection(
+ subject,
+ subjectValue.item.length != valueToAdd.length ? (subjectValue.pre.length + subjectValue.item.length) : valueToAdd.length,
+ subjectValue.item.length != valueToAdd.length ? (subjectValue.pre.length + valueToAdd.length) : valueToAdd.length
+ );
+ }
+
+ if (size > 0) {
+ jQuery.iAuto.writeItems(subject, toWrite);
+ } else {
+ jQuery.iAuto.clear();
+ }
+ } else {
+ jQuery.iAuto.clear();
+ }
+ },
+ url : subject.autoCFG.source
+ }
+ );
+ }
+ },
+
+ writeItems : function(subject, toWrite)
+ {
+ jQuery.iAuto.content.html(toWrite);
+ jQuery.iAuto.items = jQuery('li', jQuery.iAuto.content.get(0));
+ jQuery.iAuto.items
+ .mouseover(jQuery.iAuto.hoverItem)
+ .bind('click', jQuery.iAuto.clickItem);
+ var position = jQuery.iUtil.getPosition(subject);
+ var size = jQuery.iUtil.getSize(subject);
+ jQuery.iAuto.helper
+ .css('top', position.y + size.hb + 'px')
+ .css('left', position.x + 'px')
+ .addClass(subject.autoCFG.helperClass);
+ if (jQuery.iAuto.iframe) {
+ jQuery.iAuto.iframe
+ .css('display', 'block')
+ .css('top', position.y + size.hb + 'px')
+ .css('left', position.x + 'px')
+ .css('width', jQuery.iAuto.helper.css('width'))
+ .css('height', jQuery.iAuto.helper.css('height'));
+ }
+ jQuery.iAuto.selectedItem = 0;
+ jQuery.iAuto.items.get(0).className = subject.autoCFG.selectClass;
+ jQuery.iAuto.applyOn(subject,subject.autoCFG.lastSuggestion.get(0), 'onHighlight');
+
+ if (jQuery.iAuto.helper.css('display') == 'none') {
+ if (subject.autoCFG.inputWidth) {
+ var borders = jQuery.iUtil.getPadding(subject, true);
+ var paddings = jQuery.iUtil.getBorder(subject, true);
+ jQuery.iAuto.helper.css('width', subject.offsetWidth - (jQuery.boxModel ? (borders.l + borders.r + paddings.l + paddings.r) : 0 ) + 'px');
+ }
+ if (subject.autoCFG.fx) {
+ switch(subject.autoCFG.fx.type) {
+ case 'fade':
+ jQuery.iAuto.helper.fadeIn(subject.autoCFG.fx.duration);
+ break;
+ case 'slide':
+ jQuery.iAuto.helper.SlideInUp(subject.autoCFG.fx.duration);
+ break;
+ case 'blind':
+ jQuery.iAuto.helper.BlindDown(subject.autoCFG.fx.duration);
+ break;
+ }
+ } else {
+ jQuery.iAuto.helper.show();
+ }
+
+ if (jQuery.iAuto.subject.autoCFG.onShow)
+ jQuery.iAuto.subject.autoCFG.onShow.apply(jQuery.iAuto.subject, [jQuery.iAuto.helper, jQuery.iAuto.iframe]);
+ }
+ },
+
+ checkCache : function()
+ {
+ var subject = this;
+ if (subject.autoCFG.lastSuggestion) {
+
+ jQuery.iAuto.lastValue = subject.value;
+ jQuery.iAuto.currentValue = subject.value;
+
+ var toWrite = '';
+ subject.autoCFG.lastSuggestion.each(
+ function(nr)
+ {
+ value = jQuery('value', this).text().toLowerCase();
+ inputValue = subject.value.toLowerCase();
+ if (value.indexOf(inputValue) == 0) {
+ toWrite += '<li rel="' + jQuery('value', this).text() + '" dir="' + nr + '" style="cursor: default;">' + jQuery('text', this).text() + '</li>';
+ }
+ }
+ );
+
+ if (toWrite != '') {
+ jQuery.iAuto.writeItems(subject, toWrite);
+
+ this.autoCFG.inCache = true;
+ return;
+ }
+ }
+ subject.autoCFG.lastSuggestion = null;
+ this.autoCFG.inCache = false;
+ },
+
+ selection : function(field, start, end)
+ {
+ if (field.createTextRange) {
+ var selRange = field.createTextRange();
+ selRange.collapse(true);
+ selRange.moveStart("character", start);
+ selRange.moveEnd("character", - end + start);
+ selRange.select();
+ } else if (field.setSelectionRange) {
+ field.setSelectionRange(start, end);
+ } else {
+ if (field.selectionStart) {
+ field.selectionStart = start;
+ field.selectionEnd = end;
+ }
+ }
+ field.focus();
+ },
+
+ getSelectionStart : function(field)
+ {
+ if (field.selectionStart)
+ return field.selectionStart;
+ else if(field.createTextRange) {
+ var selRange = document.selection.createRange();
+ var selRange2 = selRange.duplicate();
+ return 0 - selRange2.moveStart('character', -100000);
+ //result.end = result.start + range.text.length;
+ /*var selRange = document.selection.createRange();
+ var isCollapsed = selRange.compareEndPoints("StartToEnd", selRange) == 0;
+ if (!isCollapsed)
+ selRange.collapse(true);
+ var bookmark = selRange.getBookmark();
+ return bookmark.charCodeAt(2) - 2;*/
+ }
+ },
+
+ getFieldValues : function(field)
+ {
+ var fieldData = {
+ value: field.value,
+ pre: '',
+ post: '',
+ item: ''
+ };
+
+ if(field.autoCFG.multiple) {
+ var finishedPre = false;
+ var selectionStart = jQuery.iAuto.getSelectionStart(field)||0;
+ var chunks = fieldData.value.split(field.autoCFG.multipleSeparator);
+ for (var i=0; i<chunks.length; i++) {
+ if(
+ (fieldData.pre.length + chunks[i].length >= selectionStart
+ ||
+ selectionStart == 0)
+ &&
+ !finishedPre
+ ) {
+ if (fieldData.pre.length <= selectionStart)
+ fieldData.item = chunks[i];
+ else
+ fieldData.post += chunks[i] + (chunks[i] != '' ? field.autoCFG.multipleSeparator : '');
+ finishedPre = true;
+ } else if (finishedPre){
+ fieldData.post += chunks[i] + (chunks[i] != '' ? field.autoCFG.multipleSeparator : '');
+ }
+ if(!finishedPre) {
+ fieldData.pre += chunks[i] + (chunks.length > 1 ? field.autoCFG.multipleSeparator : '');
+ }
+ }
+ } else {
+ fieldData.item = fieldData.value;
+ }
+ return fieldData;
+ },
+
+ autocomplete : function(e)
+ {
+ window.clearTimeout(jQuery.iAuto.timer);
+ var subject = jQuery.iAuto.getFieldValues(this);
+
+ var pressedKey = e.charCode || e.keyCode || -1;
+ if (/13|27|35|36|38|40|9/.test(pressedKey) && jQuery.iAuto.items) {
+ if (window.event) {
+ window.event.cancelBubble = true;
+ window.event.returnValue = false;
+ } else {
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ if (jQuery.iAuto.selectedItem != null)
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).className = '';
+ else
+ jQuery.iAuto.selectedItem = -1;
+ switch(pressedKey) {
+ //enter
+ case 9:
+ case 13:
+ if (jQuery.iAuto.selectedItem == -1)
+ jQuery.iAuto.selectedItem = 0;
+ var selectedItem = jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0);
+ var valueToAdd = selectedItem.getAttribute('rel');
+ this.value = subject.pre + valueToAdd + this.autoCFG.multipleSeparator + subject.post;
+ jQuery.iAuto.lastValue = subject.item;
+ jQuery.iAuto.selection(
+ this,
+ subject.pre.length + valueToAdd.length + this.autoCFG.multipleSeparator.length,
+ subject.pre.length + valueToAdd.length + this.autoCFG.multipleSeparator.length
+ );
+ jQuery.iAuto.clear();
+ if (this.autoCFG.onSelect) {
+ iteration = parseInt(selectedItem.getAttribute('dir'))||0;
+ jQuery.iAuto.applyOn(this,this.autoCFG.lastSuggestion.get(iteration), 'onSelect');
+ }
+ if (this.scrollIntoView)
+ this.scrollIntoView(false);
+ return pressedKey != 13;
+ break;
+ //escape
+ case 27:
+ this.value = subject.pre + jQuery.iAuto.lastValue + this.autoCFG.multipleSeparator + subject.post;
+ this.autoCFG.lastSuggestion = null;
+ jQuery.iAuto.clear();
+ if (this.scrollIntoView)
+ this.scrollIntoView(false);
+ return false;
+ break;
+ //end
+ case 35:
+ jQuery.iAuto.selectedItem = jQuery.iAuto.items.size() - 1;
+ break;
+ //home
+ case 36:
+ jQuery.iAuto.selectedItem = 0;
+ break;
+ //up
+ case 38:
+ jQuery.iAuto.selectedItem --;
+ if (jQuery.iAuto.selectedItem < 0)
+ jQuery.iAuto.selectedItem = jQuery.iAuto.items.size() - 1;
+ break;
+ case 40:
+ jQuery.iAuto.selectedItem ++;
+ if (jQuery.iAuto.selectedItem == jQuery.iAuto.items.size())
+ jQuery.iAuto.selectedItem = 0;
+ break;
+ }
+ jQuery.iAuto.applyOn(this,this.autoCFG.lastSuggestion.get(jQuery.iAuto.selectedItem||0), 'onHighlight');
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).className = this.autoCFG.selectClass;
+ if (jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).scrollIntoView)
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).scrollIntoView(false);
+ if(this.autoCFG.autofill) {
+ var valToAdd = jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).getAttribute('rel');
+ this.value = subject.pre + valToAdd + this.autoCFG.multipleSeparator + subject.post;
+ if(jQuery.iAuto.lastValue.length != valToAdd.length)
+ jQuery.iAuto.selection(
+ this,
+ subject.pre.length + jQuery.iAuto.lastValue.length,
+ subject.pre.length + valToAdd.length
+ );
+ }
+ return false;
+ }
+ jQuery.iAuto.checkCache.apply(this);
+
+ if (this.autoCFG.inCache == false) {
+ if (subject.item != jQuery.iAuto.lastValue && subject.item.length >= this.autoCFG.minchars)
+ jQuery.iAuto.timer = window.setTimeout(jQuery.iAuto.update, this.autoCFG.delay);
+ if (jQuery.iAuto.items) {
+ jQuery.iAuto.clear();
+ }
+ }
+ return true;
+ },
+
+ applyOn: function(field, item, type)
+ {
+ if (field.autoCFG[type]) {
+ var data = {};
+ childs = item.getElementsByTagName('*');
+ for(i=0; i<childs.length; i++){
+ data[childs[i].tagName] = childs[i].firstChild.nodeValue;
+ }
+ field.autoCFG[type].apply(field,[data]);
+ }
+ },
+
+ hoverItem : function(e)
+ {
+ if (jQuery.iAuto.items) {
+ if (jQuery.iAuto.selectedItem != null)
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).className = '';
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).className = '';
+ jQuery.iAuto.selectedItem = parseInt(this.getAttribute('dir'))||0;
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).className = jQuery.iAuto.subject.autoCFG.selectClass;
+ }
+ },
+
+ clickItem : function(event)
+ {
+ window.clearTimeout(jQuery.iAuto.timer);
+
+ event = event || jQuery.event.fix( window.event );
+ event.preventDefault();
+ event.stopPropagation();
+ var subject = jQuery.iAuto.getFieldValues(jQuery.iAuto.subject);
+ var valueToAdd = this.getAttribute('rel');
+ jQuery.iAuto.subject.value = subject.pre + valueToAdd + jQuery.iAuto.subject.autoCFG.multipleSeparator + subject.post;
+ jQuery.iAuto.lastValue = this.getAttribute('rel');
+ jQuery.iAuto.selection(
+ jQuery.iAuto.subject,
+ subject.pre.length + valueToAdd.length + jQuery.iAuto.subject.autoCFG.multipleSeparator.length,
+ subject.pre.length + valueToAdd.length + jQuery.iAuto.subject.autoCFG.multipleSeparator.length
+ );
+ jQuery.iAuto.clear();
+ if (jQuery.iAuto.subject.autoCFG.onSelect) {
+ iteration = parseInt(this.getAttribute('dir'))||0;
+ jQuery.iAuto.applyOn(jQuery.iAuto.subject,jQuery.iAuto.subject.autoCFG.lastSuggestion.get(iteration), 'onSelect');
+ }
+
+ return false;
+ },
+
+ protect : function(e)
+ {
+ pressedKey = e.charCode || e.keyCode || -1;
+ if (/13|27|35|36|38|40/.test(pressedKey) && jQuery.iAuto.items) {
+ if (window.event) {
+ window.event.cancelBubble = true;
+ window.event.returnValue = false;
+ } else {
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ return false;
+ }
+ },
+
+ build : function(options)
+ {
+ if (!options.source || !jQuery.iUtil) {
+ return;
+ }
+
+ if (!jQuery.iAuto.helper) {
+ if (jQuery.browser.msie) {
+ jQuery('body', document).append('<iframe style="display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" id="autocompleteIframe" src="javascript:false;" frameborder="0" scrolling="no"></iframe>');
+ jQuery.iAuto.iframe = jQuery('#autocompleteIframe');
+ }
+ jQuery('body', document).append('<div id="autocompleteHelper" style="position: absolute; top: 0; left: 0; z-index: 30001; display: none;"><ul style="margin: 0;padding: 0; list-style: none; z-index: 30002;">&nbsp;</ul></div>');
+ jQuery.iAuto.helper = jQuery('#autocompleteHelper');
+ jQuery.iAuto.content = jQuery('ul', jQuery.iAuto.helper);
+ }
+
+ return this.each(
+ function()
+ {
+ if (this.tagName != 'INPUT' && this.getAttribute('type') != 'text' )
+ return;
+ this.autoCFG = {};
+ this.autoCFG.source = options.source;
+ this.autoCFG.minchars = Math.abs(parseInt(options.minchars)||1);
+ this.autoCFG.helperClass = options.helperClass ? options.helperClass : '';
+ this.autoCFG.selectClass = options.selectClass ? options.selectClass : '';
+ this.autoCFG.onSelect = options.onSelect && options.onSelect.constructor == Function ? options.onSelect : null;
+ this.autoCFG.onShow = options.onShow && options.onShow.constructor == Function ? options.onShow : null;
+ this.autoCFG.onHide = options.onHide && options.onHide.constructor == Function ? options.onHide : null;
+ this.autoCFG.onHighlight = options.onHighlight && options.onHighlight.constructor == Function ? options.onHighlight : null;
+ this.autoCFG.inputWidth = options.inputWidth||false;
+ this.autoCFG.multiple = options.multiple||false;
+ this.autoCFG.multipleSeparator = this.autoCFG.multiple ? (options.multipleSeparator||', '):'';
+ this.autoCFG.autofill = options.autofill ? true : false;
+ this.autoCFG.delay = Math.abs(parseInt(options.delay)||1000);
+ if (options.fx && options.fx.constructor == Object) {
+ if (!options.fx.type || !/fade|slide|blind/.test(options.fx.type)) {
+ options.fx.type = 'slide';
+ }
+ if (options.fx.type == 'slide' && !jQuery.fx.slide)
+ return;
+ if (options.fx.type == 'blind' && !jQuery.fx.BlindDirection)
+ return;
+
+ options.fx.duration = Math.abs(parseInt(options.fx.duration)||400);
+ if (options.fx.duration > this.autoCFG.delay) {
+ options.fx.duration = this.autoCFG.delay - 100;
+ }
+ this.autoCFG.fx = options.fx;
+ }
+ this.autoCFG.lastSuggestion = null;
+ this.autoCFG.inCache = false;
+
+ jQuery(this)
+ .attr('autocomplete', 'off')
+ .focus(
+ function()
+ {
+ jQuery.iAuto.subject = this;
+ jQuery.iAuto.lastValue = this.value;
+ }
+ )
+ .keypress(jQuery.iAuto.protect)
+ .keyup(jQuery.iAuto.autocomplete)
+
+ .blur(
+ function()
+ {
+ jQuery.iAuto.timer = window.setTimeout(jQuery.iAuto.clear, 200);
+ }
+ );
+ }
+ );
+ }
+};
+jQuery.fn.Autocomplete = jQuery.iAuto.build; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/iautoscroller.js b/javascript/libs/jquery/full/interface/iautoscroller.js
new file mode 100644
index 0000000..0f55623
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/iautoscroller.js
@@ -0,0 +1,112 @@
+/**
+ * Interface Elements for jQuery
+ * Autoscroller
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * Utility object that helps to make custom autoscrollers.
+ *
+ * @example
+ * $('div.dragMe').Draggable(
+ * {
+ * onStart : function()
+ * {
+ * $.iAutoscroller.start(this, document.getElementsByTagName('body'));
+ * },
+ * onStop : function()
+ * {
+ * $.iAutoscroller.stop();
+ * }
+ * }
+ * );
+ *
+ * @description Utility object that helps to make custom autoscrollers
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+
+jQuery.iAutoscroller = {
+ timer: null,
+ elToScroll: null,
+ elsToScroll: null,
+ step: 10,
+ /**
+ * This is called to start autoscrolling
+ * @param DOMElement el the element used as reference
+ * @param Array els collection of elements to scroll
+ * @param Integer step the pixels scroll on each step
+ * @param Integer interval miliseconds between each step
+ */
+ start: function(el, els, step, interval)
+ {
+ jQuery.iAutoscroller.elToScroll = el;
+ jQuery.iAutoscroller.elsToScroll = els;
+ jQuery.iAutoscroller.step = parseInt(step)||10;
+ jQuery.iAutoscroller.timer = window.setInterval(jQuery.iAutoscroller.doScroll, parseInt(interval)||40);
+ },
+
+ //private function
+ doScroll : function()
+ {
+ for (i=0;i<jQuery.iAutoscroller.elsToScroll.length; i++) {
+ if(!jQuery.iAutoscroller.elsToScroll[i].parentData) {
+ jQuery.iAutoscroller.elsToScroll[i].parentData = jQuery.extend(
+ jQuery.iUtil.getPositionLite(jQuery.iAutoscroller.elsToScroll[i]),
+ jQuery.iUtil.getSizeLite(jQuery.iAutoscroller.elsToScroll[i]),
+ jQuery.iUtil.getScroll(jQuery.iAutoscroller.elsToScroll[i])
+ );
+ } else {
+ jQuery.iAutoscroller.elsToScroll[i].parentData.t = jQuery.iAutoscroller.elsToScroll[i].scrollTop;
+ jQuery.iAutoscroller.elsToScroll[i].parentData.l = jQuery.iAutoscroller.elsToScroll[i].scrollLeft;
+ }
+
+ if (jQuery.iAutoscroller.elToScroll.dragCfg && jQuery.iAutoscroller.elToScroll.dragCfg.init == true) {
+ elementData = {
+ x : jQuery.iAutoscroller.elToScroll.dragCfg.nx,
+ y : jQuery.iAutoscroller.elToScroll.dragCfg.ny,
+ wb : jQuery.iAutoscroller.elToScroll.dragCfg.oC.wb,
+ hb : jQuery.iAutoscroller.elToScroll.dragCfg.oC.hb
+ };
+ } else {
+ elementData = jQuery.extend(
+ jQuery.iUtil.getPositionLite(jQuery.iAutoscroller.elToScroll),
+ jQuery.iUtil.getSizeLite(jQuery.iAutoscroller.elToScroll)
+ );
+ }
+ if (
+ jQuery.iAutoscroller.elsToScroll[i].parentData.t > 0
+ &&
+ jQuery.iAutoscroller.elsToScroll[i].parentData.y + jQuery.iAutoscroller.elsToScroll[i].parentData.t > elementData.y) {
+ jQuery.iAutoscroller.elsToScroll[i].scrollTop -= jQuery.iAutoscroller.step;
+ } else if (jQuery.iAutoscroller.elsToScroll[i].parentData.t <= jQuery.iAutoscroller.elsToScroll[i].parentData.h && jQuery.iAutoscroller.elsToScroll[i].parentData.t + jQuery.iAutoscroller.elsToScroll[i].parentData.hb < elementData.y + elementData.hb) {
+ jQuery.iAutoscroller.elsToScroll[i].scrollTop += jQuery.iAutoscroller.step;
+ }
+ if (jQuery.iAutoscroller.elsToScroll[i].parentData.l > 0 && jQuery.iAutoscroller.elsToScroll[i].parentData.x + jQuery.iAutoscroller.elsToScroll[i].parentData.l > elementData.x) {
+ jQuery.iAutoscroller.elsToScroll[i].scrollLeft -= jQuery.iAutoscroller.step;
+ } else if (jQuery.iAutoscroller.elsToScroll[i].parentData.l <= jQuery.iAutoscroller.elsToScroll[i].parentData.wh && jQuery.iAutoscroller.elsToScroll[i].parentData.l + jQuery.iAutoscroller.elsToScroll[i].parentData.wb < elementData.x + elementData.wb) {
+ jQuery.iAutoscroller.elsToScroll[i].scrollLeft += jQuery.iAutoscroller.step;
+ }
+ }
+ },
+ /**
+ * This is called to stop autoscrolling
+ */
+ stop: function()
+ {
+ window.clearInterval(jQuery.iAutoscroller.timer);
+ jQuery.iAutoscroller.elToScroll = null;
+ jQuery.iAutoscroller.elsToScroll = null;
+ for (i in jQuery.iAutoscroller.elsToScroll) {
+ jQuery.iAutoscroller.elsToScroll[i].parentData = null;
+ }
+ }
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/idrag.js b/javascript/libs/jquery/full/interface/idrag.js
new file mode 100644
index 0000000..d4b2c72
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/idrag.js
@@ -0,0 +1,588 @@
+/**
+ * Interface Elements for jQuery
+ * Draggable
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ */
+
+/**
+ * Create a draggable element with a number of advanced options including callback, Google Maps type draggables,
+ * reversion, ghosting, and grid dragging.
+ *
+ * @name Draggable
+ * @descr Creates draggable elements that can be moved across the page.
+ * @param Hash hash A hash of parameters. All parameters are optional.
+ * @option String handle (optional) The jQuery selector matching the handle that starts the draggable
+ * @option DOMElement handle (optional) The DOM Element of the handle that starts the draggable
+ * @option Boolean revert (optional) When true, on stop-drag the element returns to initial position
+ * @option Boolean ghosting (optional) When true, a copy of the element is moved
+ * @option Integer zIndex (optional) zIndex depth for the element while it is being dragged
+ * @option Float opacity (optional) A number between 0 and 1 that indicates the opacity of the element while being dragged
+ * @option Integer grid (optional) (optional) A number of pixels indicating the grid that the element should snap to
+ * @option Array grid (optional) A number of x-pixels and y-pixels indicating the grid that the element should snap to
+ * @option Integer fx (optional) Duration for the effect (like ghosting or revert) applied to the draggable
+ * @option String containment (optional) Define the zone where the draggable can be moved. 'parent' moves it inside parent
+ * element, while 'document' prevents it from leaving the document and forcing additional
+ * scrolling
+ * @option Array containment An 4-element array (left, top, width, height) indicating the containment of the element
+ * @option String axis (optional) Set an axis: vertical (with 'vertically') or horizontal (with 'horizontally')
+ * @option Function onStart (optional) Callback function triggered when the dragging starts
+ * @option Function onStop (optional) Callback function triggered when the dragging stops
+ * @option Function onChange (optional) Callback function triggered when the dragging stop *and* the element was moved at least
+ * one pixel
+ * @option Function onDrag (optional) Callback function triggered while the element is dragged. Receives two parameters: x and y
+ * coordinates. You can return an object with new coordinates {x: x, y: y} so this way you can
+ * interact with the dragging process (for instance, build your containment)
+ * @option Boolean insideParent Forces the element to remain inside its parent when being dragged (like Google Maps)
+ * @option Integer snapDistance (optional) The element is not moved unless it is dragged more than snapDistance. You can prevent
+ * accidental dragging and keep regular clicking enabled (for links or form elements,
+ * for instance)
+ * @option Object cursorAt (optional) The dragged element is moved to the cursor position with the offset specified. Accepts value
+ * for top, left, right and bottom offset. Basically, this forces the cursor to a particular
+ * position during the entire drag operation.
+ * @option Boolean autoSize (optional) When true, the drag helper is resized to its content, instead of the dragged element's sizes
+ * @option String frameClass (optional) When is set the cloned element is hidden so only a frame is dragged
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+
+jQuery.iDrag = {
+ helper : null,
+ dragged: null,
+ destroy : function()
+ {
+ return this.each(
+ function ()
+ {
+ if (this.isDraggable) {
+ this.dragCfg.dhe.unbind('mousedown', jQuery.iDrag.draginit);
+ this.dragCfg = null;
+ this.isDraggable = false;
+ if(jQuery.browser.msie) {
+ this.unselectable = "off";
+ } else {
+ this.style.MozUserSelect = '';
+ this.style.KhtmlUserSelect = '';
+ this.style.userSelect = '';
+ }
+ }
+ }
+ );
+ },
+ draginit : function (e)
+ {
+ if (jQuery.iDrag.dragged != null) {
+ jQuery.iDrag.dragstop(e);
+ return false;
+ }
+ var elm = this.dragElem;
+ jQuery(document)
+ .bind('mousemove', jQuery.iDrag.dragmove)
+ .bind('mouseup', jQuery.iDrag.dragstop);
+ elm.dragCfg.pointer = jQuery.iUtil.getPointer(e);
+ elm.dragCfg.currentPointer = elm.dragCfg.pointer;
+ elm.dragCfg.init = false;
+ elm.dragCfg.fromHandler = this != this.dragElem;
+ jQuery.iDrag.dragged = elm;
+ if (elm.dragCfg.si && this != this.dragElem) {
+ parentPos = jQuery.iUtil.getPosition(elm.parentNode);
+ sliderSize = jQuery.iUtil.getSize(elm);
+ sliderPos = {
+ x : parseInt(jQuery.css(elm,'left')) || 0,
+ y : parseInt(jQuery.css(elm,'top')) || 0
+ };
+ dx = elm.dragCfg.currentPointer.x - parentPos.x - sliderSize.wb/2 - sliderPos.x;
+ dy = elm.dragCfg.currentPointer.y - parentPos.y - sliderSize.hb/2 - sliderPos.y;
+ jQuery.iSlider.dragmoveBy(elm, [dx, dy]);
+ }
+ return jQuery.selectKeyHelper||false;
+ },
+
+ dragstart : function(e)
+ {
+ var elm = jQuery.iDrag.dragged;
+ elm.dragCfg.init = true;
+
+ var dEs = elm.style;
+
+ elm.dragCfg.oD = jQuery.css(elm,'display');
+ elm.dragCfg.oP = jQuery.css(elm,'position');
+ if (!elm.dragCfg.initialPosition)
+ elm.dragCfg.initialPosition = elm.dragCfg.oP;
+
+ elm.dragCfg.oR = {
+ x : parseInt(jQuery.css(elm,'left')) || 0,
+ y : parseInt(jQuery.css(elm,'top')) || 0
+ };
+ elm.dragCfg.diffX = 0;
+ elm.dragCfg.diffY = 0;
+ if (jQuery.browser.msie) {
+ var oldBorder = jQuery.iUtil.getBorder(elm, true);
+ elm.dragCfg.diffX = oldBorder.l||0;
+ elm.dragCfg.diffY = oldBorder.t||0;
+ }
+
+ elm.dragCfg.oC = jQuery.extend(
+ jQuery.iUtil.getPosition(elm),
+ jQuery.iUtil.getSize(elm)
+ );
+ if (elm.dragCfg.oP != 'relative' && elm.dragCfg.oP != 'absolute') {
+ dEs.position = 'relative';
+ }
+
+ jQuery.iDrag.helper.empty();
+ var clonedEl = elm.cloneNode(true);
+
+ jQuery(clonedEl).css(
+ {
+ display: 'block',
+ left: '0px',
+ top: '0px'
+ }
+ );
+ clonedEl.style.marginTop = '0';
+ clonedEl.style.marginRight = '0';
+ clonedEl.style.marginBottom = '0';
+ clonedEl.style.marginLeft = '0';
+ jQuery.iDrag.helper.append(clonedEl);
+
+ var dhs = jQuery.iDrag.helper.get(0).style;
+
+ if (elm.dragCfg.autoSize) {
+ dhs.width = 'auto';
+ dhs.height = 'auto';
+ } else {
+ dhs.height = elm.dragCfg.oC.hb + 'px';
+ dhs.width = elm.dragCfg.oC.wb + 'px';
+ }
+
+ dhs.display = 'block';
+ dhs.marginTop = '0px';
+ dhs.marginRight = '0px';
+ dhs.marginBottom = '0px';
+ dhs.marginLeft = '0px';
+
+ //remeasure the clone to check if the size was changed by user's functions
+ jQuery.extend(
+ elm.dragCfg.oC,
+ jQuery.iUtil.getSize(clonedEl)
+ );
+
+ if (elm.dragCfg.cursorAt) {
+ if (elm.dragCfg.cursorAt.left) {
+ elm.dragCfg.oR.x += elm.dragCfg.pointer.x - elm.dragCfg.oC.x - elm.dragCfg.cursorAt.left;
+ elm.dragCfg.oC.x = elm.dragCfg.pointer.x - elm.dragCfg.cursorAt.left;
+ }
+ if (elm.dragCfg.cursorAt.top) {
+ elm.dragCfg.oR.y += elm.dragCfg.pointer.y - elm.dragCfg.oC.y - elm.dragCfg.cursorAt.top;
+ elm.dragCfg.oC.y = elm.dragCfg.pointer.y - elm.dragCfg.cursorAt.top;
+ }
+ if (elm.dragCfg.cursorAt.right) {
+ elm.dragCfg.oR.x += elm.dragCfg.pointer.x - elm.dragCfg.oC.x -elm.dragCfg.oC.hb + elm.dragCfg.cursorAt.right;
+ elm.dragCfg.oC.x = elm.dragCfg.pointer.x - elm.dragCfg.oC.wb + elm.dragCfg.cursorAt.right;
+ }
+ if (elm.dragCfg.cursorAt.bottom) {
+ elm.dragCfg.oR.y += elm.dragCfg.pointer.y - elm.dragCfg.oC.y - elm.dragCfg.oC.hb + elm.dragCfg.cursorAt.bottom;
+ elm.dragCfg.oC.y = elm.dragCfg.pointer.y - elm.dragCfg.oC.hb + elm.dragCfg.cursorAt.bottom;
+ }
+ }
+ elm.dragCfg.nx = elm.dragCfg.oR.x;
+ elm.dragCfg.ny = elm.dragCfg.oR.y;
+
+ if (elm.dragCfg.insideParent || elm.dragCfg.containment == 'parent') {
+ parentBorders = jQuery.iUtil.getBorder(elm.parentNode, true);
+ elm.dragCfg.oC.x = elm.offsetLeft + (jQuery.browser.msie ? 0 : jQuery.browser.opera ? -parentBorders.l : parentBorders.l);
+ elm.dragCfg.oC.y = elm.offsetTop + (jQuery.browser.msie ? 0 : jQuery.browser.opera ? -parentBorders.t : parentBorders.t);
+ jQuery(elm.parentNode).append(jQuery.iDrag.helper.get(0));
+ }
+ if (elm.dragCfg.containment) {
+ jQuery.iDrag.getContainment(elm);
+ elm.dragCfg.onDragModifier.containment = jQuery.iDrag.fitToContainer;
+ }
+
+ if (elm.dragCfg.si) {
+ jQuery.iSlider.modifyContainer(elm);
+ }
+
+ dhs.left = elm.dragCfg.oC.x - elm.dragCfg.diffX + 'px';
+ dhs.top = elm.dragCfg.oC.y - elm.dragCfg.diffY + 'px';
+ //resize the helper to fit the clone
+ dhs.width = elm.dragCfg.oC.wb + 'px';
+ dhs.height = elm.dragCfg.oC.hb + 'px';
+
+ jQuery.iDrag.dragged.dragCfg.prot = false;
+
+ if (elm.dragCfg.gx) {
+ elm.dragCfg.onDragModifier.grid = jQuery.iDrag.snapToGrid;
+ }
+ if (elm.dragCfg.zIndex != false) {
+ jQuery.iDrag.helper.css('zIndex', elm.dragCfg.zIndex);
+ }
+ if (elm.dragCfg.opacity) {
+ jQuery.iDrag.helper.css('opacity', elm.dragCfg.opacity);
+ if (window.ActiveXObject) {
+ jQuery.iDrag.helper.css('filter', 'alpha(opacity=' + elm.dragCfg.opacity * 100 + ')');
+ }
+ }
+
+ if(elm.dragCfg.frameClass) {
+ jQuery.iDrag.helper.addClass(elm.dragCfg.frameClass);
+ jQuery.iDrag.helper.get(0).firstChild.style.display = 'none';
+ }
+ if (elm.dragCfg.onStart)
+ elm.dragCfg.onStart.apply(elm, [clonedEl, elm.dragCfg.oR.x, elm.dragCfg.oR.y]);
+ if (jQuery.iDrop && jQuery.iDrop.count > 0 ){
+ jQuery.iDrop.highlight(elm);
+ }
+ if (elm.dragCfg.ghosting == false) {
+ dEs.display = 'none';
+ }
+ return false;
+ },
+
+ getContainment : function(elm)
+ {
+ if (elm.dragCfg.containment.constructor == String) {
+ if (elm.dragCfg.containment == 'parent') {
+ elm.dragCfg.cont = jQuery.extend(
+ {x:0,y:0},
+ jQuery.iUtil.getSize(elm.parentNode)
+ );
+ var contBorders = jQuery.iUtil.getBorder(elm.parentNode, true);
+ elm.dragCfg.cont.w = elm.dragCfg.cont.wb - contBorders.l - contBorders.r;
+ elm.dragCfg.cont.h = elm.dragCfg.cont.hb - contBorders.t - contBorders.b;
+ } else if (elm.dragCfg.containment == 'document') {
+ var clnt = jQuery.iUtil.getClient();
+ elm.dragCfg.cont = {
+ x : 0,
+ y : 0,
+ w : clnt.w,
+ h : clnt.h
+ };
+ }
+ } else if (elm.dragCfg.containment.constructor == Array) {
+ elm.dragCfg.cont = {
+ x : parseInt(elm.dragCfg.containment[0])||0,
+ y : parseInt(elm.dragCfg.containment[1])||0,
+ w : parseInt(elm.dragCfg.containment[2])||0,
+ h : parseInt(elm.dragCfg.containment[3])||0
+ };
+ }
+ elm.dragCfg.cont.dx = elm.dragCfg.cont.x - elm.dragCfg.oC.x;
+ elm.dragCfg.cont.dy = elm.dragCfg.cont.y - elm.dragCfg.oC.y;
+ },
+
+ hidehelper : function(dragged)
+ {
+ if (dragged.dragCfg.insideParent || dragged.dragCfg.containment == 'parent') {
+ jQuery('body', document).append(jQuery.iDrag.helper.get(0));
+ }
+ jQuery.iDrag.helper.empty().hide().css('opacity', 1);
+ if (window.ActiveXObject) {
+ jQuery.iDrag.helper.css('filter', 'alpha(opacity=100)');
+ }
+ },
+
+ dragstop : function(e)
+ {
+
+ jQuery(document)
+ .unbind('mousemove', jQuery.iDrag.dragmove)
+ .unbind('mouseup', jQuery.iDrag.dragstop);
+
+ if (jQuery.iDrag.dragged == null) {
+ return;
+ }
+ var dragged = jQuery.iDrag.dragged;
+
+ jQuery.iDrag.dragged = null;
+
+ if (dragged.dragCfg.init == false) {
+ return false;
+ }
+ if (dragged.dragCfg.so == true) {
+ jQuery(dragged).css('position', dragged.dragCfg.oP);
+ }
+ var dEs = dragged.style;
+
+ if (dragged.si) {
+ jQuery.iDrag.helper.css('cursor', 'move');
+ }
+ if(dragged.dragCfg.frameClass) {
+ jQuery.iDrag.helper.removeClass(dragged.dragCfg.frameClass);
+ }
+
+ if (dragged.dragCfg.revert == false) {
+ if (dragged.dragCfg.fx > 0) {
+ if (!dragged.dragCfg.axis || dragged.dragCfg.axis == 'horizontally') {
+ var x = new jQuery.fx(dragged,{duration:dragged.dragCfg.fx}, 'left');
+ x.custom(dragged.dragCfg.oR.x,dragged.dragCfg.nRx);
+ }
+ if (!dragged.dragCfg.axis || dragged.dragCfg.axis == 'vertically') {
+ var y = new jQuery.fx(dragged,{duration:dragged.dragCfg.fx}, 'top');
+ y.custom(dragged.dragCfg.oR.y,dragged.dragCfg.nRy);
+ }
+ } else {
+ if (!dragged.dragCfg.axis || dragged.dragCfg.axis == 'horizontally')
+ dragged.style.left = dragged.dragCfg.nRx + 'px';
+ if (!dragged.dragCfg.axis || dragged.dragCfg.axis == 'vertically')
+ dragged.style.top = dragged.dragCfg.nRy + 'px';
+ }
+ jQuery.iDrag.hidehelper(dragged);
+ if (dragged.dragCfg.ghosting == false) {
+ jQuery(dragged).css('display', dragged.dragCfg.oD);
+ }
+ } else if (dragged.dragCfg.fx > 0) {
+ dragged.dragCfg.prot = true;
+ var dh = false;
+ if(jQuery.iDrop && jQuery.iSort && dragged.dragCfg.so) {
+ dh = jQuery.iUtil.getPosition(jQuery.iSort.helper.get(0));
+ }
+ jQuery.iDrag.helper.animate(
+ {
+ left : dh ? dh.x : dragged.dragCfg.oC.x,
+ top : dh ? dh.y : dragged.dragCfg.oC.y
+ },
+ dragged.dragCfg.fx,
+ function()
+ {
+ dragged.dragCfg.prot = false;
+ if (dragged.dragCfg.ghosting == false) {
+ dragged.style.display = dragged.dragCfg.oD;
+ }
+ jQuery.iDrag.hidehelper(dragged);
+ }
+ );
+ } else {
+ jQuery.iDrag.hidehelper(dragged);
+ if (dragged.dragCfg.ghosting == false) {
+ jQuery(dragged).css('display', dragged.dragCfg.oD);
+ }
+ }
+
+ if (jQuery.iDrop && jQuery.iDrop.count > 0 ){
+ jQuery.iDrop.checkdrop(dragged);
+ }
+ if (jQuery.iSort && dragged.dragCfg.so) {
+ jQuery.iSort.check(dragged);
+ }
+ if (dragged.dragCfg.onChange && (dragged.dragCfg.nRx != dragged.dragCfg.oR.x || dragged.dragCfg.nRy != dragged.dragCfg.oR.y)){
+ dragged.dragCfg.onChange.apply(dragged, dragged.dragCfg.lastSi||[0,0,dragged.dragCfg.nRx,dragged.dragCfg.nRy]);
+ }
+ if (dragged.dragCfg.onStop)
+ dragged.dragCfg.onStop.apply(dragged);
+ return false;
+ },
+
+ snapToGrid : function(x, y, dx, dy)
+ {
+ if (dx != 0)
+ dx = parseInt((dx + (this.dragCfg.gx * dx/Math.abs(dx))/2)/this.dragCfg.gx) * this.dragCfg.gx;
+ if (dy != 0)
+ dy = parseInt((dy + (this.dragCfg.gy * dy/Math.abs(dy))/2)/this.dragCfg.gy) * this.dragCfg.gy;
+ return {
+ dx : dx,
+ dy : dy,
+ x: 0,
+ y: 0
+ };
+ },
+
+ fitToContainer : function(x, y, dx, dy)
+ {
+ dx = Math.min(
+ Math.max(dx,this.dragCfg.cont.dx),
+ this.dragCfg.cont.w + this.dragCfg.cont.dx - this.dragCfg.oC.wb
+ );
+ dy = Math.min(
+ Math.max(dy,this.dragCfg.cont.dy),
+ this.dragCfg.cont.h + this.dragCfg.cont.dy - this.dragCfg.oC.hb
+ );
+
+ return {
+ dx : dx,
+ dy : dy,
+ x: 0,
+ y: 0
+ }
+ },
+
+ dragmove : function(e)
+ {
+ if (jQuery.iDrag.dragged == null || jQuery.iDrag.dragged.dragCfg.prot == true) {
+ return;
+ }
+
+ var dragged = jQuery.iDrag.dragged;
+
+ dragged.dragCfg.currentPointer = jQuery.iUtil.getPointer(e);
+ if (dragged.dragCfg.init == false) {
+ distance = Math.sqrt(Math.pow(dragged.dragCfg.pointer.x - dragged.dragCfg.currentPointer.x, 2) + Math.pow(dragged.dragCfg.pointer.y - dragged.dragCfg.currentPointer.y, 2));
+ if (distance < dragged.dragCfg.snapDistance){
+ return;
+ } else {
+ jQuery.iDrag.dragstart(e);
+ }
+ }
+
+ var dx = dragged.dragCfg.currentPointer.x - dragged.dragCfg.pointer.x;
+ var dy = dragged.dragCfg.currentPointer.y - dragged.dragCfg.pointer.y;
+
+ for (var i in dragged.dragCfg.onDragModifier) {
+ var newCoords = dragged.dragCfg.onDragModifier[i].apply(dragged, [dragged.dragCfg.oR.x + dx, dragged.dragCfg.oR.y + dy, dx, dy]);
+ if (newCoords && newCoords.constructor == Object) {
+ dx = i != 'user' ? newCoords.dx : (newCoords.x - dragged.dragCfg.oR.x);
+ dy = i != 'user' ? newCoords.dy : (newCoords.y - dragged.dragCfg.oR.y);
+ }
+ }
+
+ dragged.dragCfg.nx = dragged.dragCfg.oC.x + dx - dragged.dragCfg.diffX;
+ dragged.dragCfg.ny = dragged.dragCfg.oC.y + dy - dragged.dragCfg.diffY;
+
+ if (dragged.dragCfg.si && (dragged.dragCfg.onSlide || dragged.dragCfg.onChange)) {
+ jQuery.iSlider.onSlide(dragged, dragged.dragCfg.nx, dragged.dragCfg.ny);
+ }
+
+ if(dragged.dragCfg.onDrag)
+ dragged.dragCfg.onDrag.apply(dragged, [dragged.dragCfg.oR.x + dx, dragged.dragCfg.oR.y + dy]);
+
+ if (!dragged.dragCfg.axis || dragged.dragCfg.axis == 'horizontally') {
+ dragged.dragCfg.nRx = dragged.dragCfg.oR.x + dx;
+ jQuery.iDrag.helper.get(0).style.left = dragged.dragCfg.nx + 'px';
+ }
+ if (!dragged.dragCfg.axis || dragged.dragCfg.axis == 'vertically') {
+ dragged.dragCfg.nRy = dragged.dragCfg.oR.y + dy;
+ jQuery.iDrag.helper.get(0).style.top = dragged.dragCfg.ny + 'px';
+ }
+
+ if (jQuery.iDrop && jQuery.iDrop.count > 0 ){
+ jQuery.iDrop.checkhover(dragged);
+ }
+ return false;
+ },
+
+ build : function(o)
+ {
+ if (!jQuery.iDrag.helper) {
+ jQuery('body',document).append('<div id="dragHelper"></div>');
+ jQuery.iDrag.helper = jQuery('#dragHelper');
+ var el = jQuery.iDrag.helper.get(0);
+ var els = el.style;
+ els.position = 'absolute';
+ els.display = 'none';
+ els.cursor = 'move';
+ els.listStyle = 'none';
+ els.overflow = 'hidden';
+ if (window.ActiveXObject) {
+ el.unselectable = "on";
+ } else {
+ els.mozUserSelect = 'none';
+ els.userSelect = 'none';
+ els.KhtmlUserSelect = 'none';
+ }
+ }
+ if (!o) {
+ o = {};
+ }
+ return this.each(
+ function()
+ {
+ if (this.isDraggable || !jQuery.iUtil)
+ return;
+ if (window.ActiveXObject) {
+ this.onselectstart = function(){return false;};
+ this.ondragstart = function(){return false;};
+ }
+ var el = this;
+ var dhe = o.handle ? jQuery(this).find(o.handle) : jQuery(this);
+ if(jQuery.browser.msie) {
+ dhe.each(
+ function()
+ {
+ this.unselectable = "on";
+ }
+ );
+ } else {
+ dhe.css('-moz-user-select', 'none');
+ dhe.css('user-select', 'none');
+ dhe.css('-khtml-user-select', 'none');
+ }
+ this.dragCfg = {
+ dhe: dhe,
+ revert : o.revert ? true : false,
+ ghosting : o.ghosting ? true : false,
+ so : o.so ? o.so : false,
+ si : o.si ? o.si : false,
+ insideParent : o.insideParent ? o.insideParent : false,
+ zIndex : o.zIndex ? parseInt(o.zIndex)||0 : false,
+ opacity : o.opacity ? parseFloat(o.opacity) : false,
+ fx : parseInt(o.fx)||null,
+ hpc : o.hpc ? o.hpc : false,
+ onDragModifier : {},
+ pointer : {},
+ onStart : o.onStart && o.onStart.constructor == Function ? o.onStart : false,
+ onStop : o.onStop && o.onStop.constructor == Function ? o.onStop : false,
+ onChange : o.onChange && o.onChange.constructor == Function ? o.onChange : false,
+ axis : /vertically|horizontally/.test(o.axis) ? o.axis : false,
+ snapDistance : o.snapDistance ? parseInt(o.snapDistance)||0 : 0,
+ cursorAt: o.cursorAt ? o.cursorAt : false,
+ autoSize : o.autoSize ? true : false,
+ frameClass : o.frameClass || false
+
+ };
+ if (o.onDragModifier && o.onDragModifier.constructor == Function)
+ this.dragCfg.onDragModifier.user = o.onDragModifier;
+ if (o.onDrag && o.onDrag.constructor == Function)
+ this.dragCfg.onDrag = o.onDrag;
+ if (o.containment && ((o.containment.constructor == String && (o.containment == 'parent' || o.containment == 'document')) || (o.containment.constructor == Array && o.containment.length == 4) )) {
+ this.dragCfg.containment = o.containment;
+ }
+ if(o.fractions) {
+ this.dragCfg.fractions = o.fractions;
+ }
+ if(o.grid){
+ if(typeof o.grid == 'number'){
+ this.dragCfg.gx = parseInt(o.grid)||1;
+ this.dragCfg.gy = parseInt(o.grid)||1;
+ } else if (o.grid.length == 2) {
+ this.dragCfg.gx = parseInt(o.grid[0])||1;
+ this.dragCfg.gy = parseInt(o.grid[1])||1;
+ }
+ }
+ if (o.onSlide && o.onSlide.constructor == Function) {
+ this.dragCfg.onSlide = o.onSlide;
+ }
+
+ this.isDraggable = true;
+ dhe.each(
+ function(){
+ this.dragElem = el;
+ }
+ );
+ dhe.bind('mousedown', jQuery.iDrag.draginit);
+ }
+ )
+ }
+};
+
+/**
+ * Destroy an existing draggable on a collection of elements
+ *
+ * @name DraggableDestroy
+ * @descr Destroy a draggable
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @example $('#drag2').DraggableDestroy();
+ */
+
+jQuery.fn.extend(
+ {
+ DraggableDestroy : jQuery.iDrag.destroy,
+ Draggable : jQuery.iDrag.build
+ }
+); \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/idrop.js b/javascript/libs/jquery/full/interface/idrop.js
new file mode 100644
index 0000000..ede4e64
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/idrop.js
@@ -0,0 +1,323 @@
+/**
+ * Interface Elements for jQuery
+ * Droppables
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * With the Draggables plugin, Droppable allows you to create drop zones for draggable elements.
+ *
+ * @name Droppable
+ * @cat Plugins/Interface
+ * @param Hash options A hash of options
+ * @option String accept The class name for draggables to get accepted by the droppable (mandatory)
+ * @option String activeclass When an acceptable draggable is moved, the droppable gets this class
+ * @option String hoverclass When an acceptable draggable is inside the droppable, the droppable gets
+ * this class
+ * @option String tolerance Choose from 'pointer', 'intersect', or 'fit'. The pointer options means
+ * that the pointer must be inside the droppable in order for the draggable
+ * to be dropped. The intersect option means that the draggable must intersect
+ * the droppable. The fit option means that the entire draggable must be
+ * inside the droppable.
+ * @option Function onDrop When an acceptable draggable is dropped on a droppable, this callback is
+ * called. It passes the draggable DOMElement as a parameter.
+ * @option Function onHover When an acceptable draggable is hovered over a droppable, this callback
+ * is called. It passes the draggable DOMElement as a parameter.
+ * @option Function onOut When an acceptable draggable leaves a droppable, this callback is called.
+ * It passes the draggable DOMElement as a parameter.
+ * @example $('#dropzone1').Droppable(
+ * {
+ * accept : 'dropaccept',
+ * activeclass: 'dropzoneactive',
+ * hoverclass: 'dropzonehover',
+ * ondrop: function (drag) {
+ * alert(this); //the droppable
+ * alert(drag); //the draggable
+ * },
+ * fit: true
+ * }
+ * )
+ */
+
+jQuery.iDrop = {
+ fit : function (zonex, zoney, zonew, zoneh)
+ {
+ return zonex <= jQuery.iDrag.dragged.dragCfg.nx &&
+ (zonex + zonew) >= (jQuery.iDrag.dragged.dragCfg.nx + jQuery.iDrag.dragged.dragCfg.oC.w) &&
+ zoney <= jQuery.iDrag.dragged.dragCfg.ny &&
+ (zoney + zoneh) >= (jQuery.iDrag.dragged.dragCfg.ny + jQuery.iDrag.dragged.dragCfg.oC.h) ? true :false;
+ },
+ intersect : function (zonex, zoney, zonew, zoneh)
+ {
+ return ! ( zonex > (jQuery.iDrag.dragged.dragCfg.nx + jQuery.iDrag.dragged.dragCfg.oC.w)
+ || (zonex + zonew) < jQuery.iDrag.dragged.dragCfg.nx
+ || zoney > (jQuery.iDrag.dragged.dragCfg.ny + jQuery.iDrag.dragged.dragCfg.oC.h)
+ || (zoney + zoneh) < jQuery.iDrag.dragged.dragCfg.ny
+ ) ? true :false;
+ },
+ pointer : function (zonex, zoney, zonew, zoneh)
+ {
+ return zonex < jQuery.iDrag.dragged.dragCfg.currentPointer.x
+ && (zonex + zonew) > jQuery.iDrag.dragged.dragCfg.currentPointer.x
+ && zoney < jQuery.iDrag.dragged.dragCfg.currentPointer.y
+ && (zoney + zoneh) > jQuery.iDrag.dragged.dragCfg.currentPointer.y
+ ? true :false;
+ },
+ overzone : false,
+ highlighted : {},
+ count : 0,
+ zones : {},
+
+ highlight : function (elm)
+ {
+ if (jQuery.iDrag.dragged == null) {
+ return;
+ }
+ var i;
+ jQuery.iDrop.highlighted = {};
+ var oneIsSortable = false;
+ for (i in jQuery.iDrop.zones) {
+ if (jQuery.iDrop.zones[i] != null) {
+ var iEL = jQuery.iDrop.zones[i].get(0);
+ if (jQuery(jQuery.iDrag.dragged).is('.' + iEL.dropCfg.a)) {
+ if (iEL.dropCfg.m == false) {
+ iEL.dropCfg.p = jQuery.extend(
+ jQuery.iUtil.getPositionLite(iEL),
+ jQuery.iUtil.getSizeLite(iEL)
+ );//jQuery.iUtil.getPos(iEL);
+ iEL.dropCfg.m = true;
+ }
+ if (iEL.dropCfg.ac) {
+ jQuery.iDrop.zones[i].addClass(iEL.dropCfg.ac);
+ }
+ jQuery.iDrop.highlighted[i] = jQuery.iDrop.zones[i];
+ //if (jQuery.iSort && jQuery.iDrag.dragged.dragCfg.so) {
+ if (jQuery.iSort && iEL.dropCfg.s && jQuery.iDrag.dragged.dragCfg.so) {
+ iEL.dropCfg.el = jQuery('.' + iEL.dropCfg.a, iEL);
+ elm.style.display = 'none';
+ jQuery.iSort.measure(iEL);
+ iEL.dropCfg.os = jQuery.iSort.serialize(jQuery.attr(iEL, 'id')).hash;
+ elm.style.display = elm.dragCfg.oD;
+ oneIsSortable = true;
+ }
+ if (iEL.dropCfg.onActivate) {
+ iEL.dropCfg.onActivate.apply(jQuery.iDrop.zones[i].get(0), [jQuery.iDrag.dragged]);
+ }
+ }
+ }
+ }
+ //if (jQuery.iSort && jQuery.iDrag.dragged.dragCfg.so) {
+ if (oneIsSortable) {
+ jQuery.iSort.start();
+ }
+ },
+ /**
+ * remeasure the droppable
+ *
+ * useful when the positions/dimensions for droppables
+ * are changed while dragging a element
+ *
+ * this works for sortables too but with a greate processor
+ * penality because remeasures each sort items too
+ */
+ remeasure : function()
+ {
+ jQuery.iDrop.highlighted = {};
+ for (i in jQuery.iDrop.zones) {
+ if (jQuery.iDrop.zones[i] != null) {
+ var iEL = jQuery.iDrop.zones[i].get(0);
+ if (jQuery(jQuery.iDrag.dragged).is('.' + iEL.dropCfg.a)) {
+ iEL.dropCfg.p = jQuery.extend(
+ jQuery.iUtil.getPositionLite(iEL),
+ jQuery.iUtil.getSizeLite(iEL)
+ );
+ if (iEL.dropCfg.ac) {
+ jQuery.iDrop.zones[i].addClass(iEL.dropCfg.ac);
+ }
+ jQuery.iDrop.highlighted[i] = jQuery.iDrop.zones[i];
+
+ if (jQuery.iSort && iEL.dropCfg.s && jQuery.iDrag.dragged.dragCfg.so) {
+ iEL.dropCfg.el = jQuery('.' + iEL.dropCfg.a, iEL);
+ elm.style.display = 'none';
+ jQuery.iSort.measure(iEL);
+ elm.style.display = elm.dragCfg.oD;
+ }
+ }
+ }
+ }
+ },
+
+ checkhover : function (e)
+ {
+ if (jQuery.iDrag.dragged == null) {
+ return;
+ }
+ jQuery.iDrop.overzone = false;
+ var i;
+ var applyOnHover = false;
+ var hlt = 0;
+ for (i in jQuery.iDrop.highlighted)
+ {
+ var iEL = jQuery.iDrop.highlighted[i].get(0);
+ if (
+ jQuery.iDrop.overzone == false
+ &&
+ jQuery.iDrop[iEL.dropCfg.t](
+ iEL.dropCfg.p.x,
+ iEL.dropCfg.p.y,
+ iEL.dropCfg.p.wb,
+ iEL.dropCfg.p.hb
+ )
+
+ ) {
+ if (iEL.dropCfg.hc && iEL.dropCfg.h == false) {
+ jQuery.iDrop.highlighted[i].addClass(iEL.dropCfg.hc);
+ }
+ //chec if onHover function has to be called
+ if (iEL.dropCfg.h == false &&iEL.dropCfg.onHover) {
+ applyOnHover = true;
+ }
+ iEL.dropCfg.h = true;
+ jQuery.iDrop.overzone = iEL;
+ //if(jQuery.iSort && jQuery.iDrag.dragged.dragCfg.so) {
+ if(jQuery.iSort && iEL.dropCfg.s && jQuery.iDrag.dragged.dragCfg.so) {
+ jQuery.iSort.helper.get(0).className = iEL.dropCfg.shc;
+ jQuery.iSort.checkhover(iEL);
+ }
+ hlt ++;
+ } else if(iEL.dropCfg.h == true) {
+ //onOut function
+ if (iEL.dropCfg.onOut) {
+ iEL.dropCfg.onOut.apply(iEL, [e, jQuery.iDrag.helper.get(0).firstChild, iEL.dropCfg.fx]);
+ }
+ if (iEL.dropCfg.hc) {
+ jQuery.iDrop.highlighted[i].removeClass(iEL.dropCfg.hc);
+ }
+ iEL.dropCfg.h = false;
+ }
+ }
+ if (jQuery.iSort && !jQuery.iDrop.overzone && jQuery.iDrag.dragged.so) {
+ jQuery.iSort.helper.get(0).style.display = 'none';
+ //jQuery('body').append(jQuery.iSort.helper.get(0));
+ }
+ //call onhover
+ if(applyOnHover) {
+ jQuery.iDrop.overzone.dropCfg.onHover.apply(jQuery.iDrop.overzone, [e, jQuery.iDrag.helper.get(0).firstChild]);
+ }
+ },
+ checkdrop : function (e)
+ {
+ var i;
+ for (i in jQuery.iDrop.highlighted) {
+ var iEL = jQuery.iDrop.highlighted[i].get(0);
+ if (iEL.dropCfg.ac) {
+ jQuery.iDrop.highlighted[i].removeClass(iEL.dropCfg.ac);
+ }
+ if (iEL.dropCfg.hc) {
+ jQuery.iDrop.highlighted[i].removeClass(iEL.dropCfg.hc);
+ }
+ if(iEL.dropCfg.s) {
+ jQuery.iSort.changed[jQuery.iSort.changed.length] = i;
+ }
+ if (iEL.dropCfg.onDrop && iEL.dropCfg.h == true) {
+ iEL.dropCfg.h = false;
+ iEL.dropCfg.onDrop.apply(iEL, [e, iEL.dropCfg.fx]);
+ }
+ iEL.dropCfg.m = false;
+ iEL.dropCfg.h = false;
+ }
+ jQuery.iDrop.highlighted = {};
+ },
+ destroy : function()
+ {
+ return this.each(
+ function()
+ {
+ if (this.isDroppable) {
+ if (this.dropCfg.s) {
+ id = jQuery.attr(this,'id');
+ jQuery.iSort.collected[id] = null;
+ jQuery('.' + this.dropCfg.a, this).DraggableDestroy();
+ }
+ jQuery.iDrop.zones['d' + this.idsa] = null;
+ this.isDroppable = false;
+ this.f = null;
+ }
+ }
+ );
+ },
+ build : function (o)
+ {
+ return this.each(
+ function()
+ {
+ if (this.isDroppable == true || !o.accept || !jQuery.iUtil || !jQuery.iDrag){
+ return;
+ }
+ this.dropCfg = {
+ a : o.accept,
+ ac: o.activeclass||false,
+ hc: o.hoverclass||false,
+ shc: o.helperclass||false,
+ onDrop: o.ondrop||o.onDrop||false,
+ onHover: o.onHover||o.onhover||false,
+ onOut: o.onOut||o.onout||false,
+ onActivate: o.onActivate||false,
+ t: o.tolerance && ( o.tolerance == 'fit' || o.tolerance == 'intersect') ? o.tolerance : 'pointer',
+ fx: o.fx ? o.fx : false,
+ m: false,
+ h: false
+ };
+ if (o.sortable == true && jQuery.iSort) {
+ id = jQuery.attr(this,'id');
+ jQuery.iSort.collected[id] = this.dropCfg.a;
+ this.dropCfg.s = true;
+ if(o.onChange) {
+ this.dropCfg.onChange = o.onChange;
+ this.dropCfg.os = jQuery.iSort.serialize(id).hash;
+ }
+ }
+ this.isDroppable = true;
+ this.idsa = parseInt(Math.random() * 10000);
+ jQuery.iDrop.zones['d' + this.idsa] = jQuery(this);
+ jQuery.iDrop.count ++;
+ }
+ );
+ }
+};
+
+/**
+ * Destroy an existing droppable on a collection of elements
+ *
+ * @name DroppableDestroy
+ * @descr Destroy a droppable
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @example $('#drag2').DroppableDestroy();
+ */
+
+jQuery.fn.extend(
+ {
+ DroppableDestroy : jQuery.iDrop.destroy,
+ Droppable : jQuery.iDrop.build
+ }
+);
+
+
+/**
+ * Recalculate all Droppables
+ *
+ * @name $.recallDroppables
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @example $.recallDroppable();
+ */
+
+jQuery.recallDroppables = jQuery.iDrop.remeasure; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/iexpander.js b/javascript/libs/jquery/full/interface/iexpander.js
new file mode 100644
index 0000000..64d2f19
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/iexpander.js
@@ -0,0 +1,114 @@
+/**
+ * Interface Elements for jQuery
+ * Expander
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * Expands text and textarea elements while new characters are typed to the a miximum width
+ *
+ * @name Expander
+ * @description Expands text and textarea elements while new characters are typed to the a miximum width
+ * @param Mixed limit integer if only expands in width, array if expands in width and height
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+
+jQuery.iExpander =
+{
+ helper : null,
+ expand : function()
+ {
+
+ text = this.value;
+ if (!text)
+ return;
+ style = {
+ fontFamily: jQuery(this).css('fontFamily')||'',
+ fontSize: jQuery(this).css('fontSize')||'',
+ fontWeight: jQuery(this).css('fontWeight')||'',
+ fontStyle: jQuery(this).css('fontStyle')||'',
+ fontStretch: jQuery(this).css('fontStretch')||'',
+ fontVariant: jQuery(this).css('fontVariant')||'',
+ letterSpacing: jQuery(this).css('letterSpacing')||'',
+ wordSpacing: jQuery(this).css('wordSpacing')||''
+ };
+ jQuery.iExpander.helper.css(style);
+ html = jQuery.iExpander.htmlEntities(text);
+ html = html.replace(new RegExp( "\\n", "g" ), "<br />");
+ jQuery.iExpander.helper.html('pW');
+ spacer = jQuery.iExpander.helper.get(0).offsetWidth;
+ jQuery.iExpander.helper.html(html);
+ width = jQuery.iExpander.helper.get(0).offsetWidth + spacer;
+ if (this.Expander.limit && width > this.Expander.limit[0]) {
+ width = this.Expander.limit[0];
+ }
+ this.style.width = width + 'px';
+ if (this.tagName == 'TEXTAREA') {
+ height = jQuery.iExpander.helper.get(0).offsetHeight + spacer;
+ if (this.Expander.limit && height > this.Expander.limit[1]) {
+ height = this.Expander.limit[1];
+ }
+ this.style.height = height + 'px';
+ }
+ },
+ htmlEntities : function(text)
+ {
+ entities = {
+ '&':'&amp;',
+ '<':'&lt;',
+ '>':'&gt;',
+ '"':'&quot;'
+ };
+ for(i in entities) {
+ text = text.replace(new RegExp(i,'g'),entities[i]);
+ }
+ return text;
+ },
+ build : function(limit)
+ {
+ if (jQuery.iExpander.helper == null) {
+ jQuery('body', document).append('<div id="expanderHelper" style="position: absolute; top: 0; left: 0; visibility: hidden;"></div>');
+ jQuery.iExpander.helper = jQuery('#expanderHelper');
+ }
+ return this.each(
+ function()
+ {
+ if (/TEXTAREA|INPUT/.test(this.tagName)) {
+ if (this.tagName == 'INPUT') {
+ elType = this.getAttribute('type');
+ if (!/text|password/.test(elType)) {
+ return;
+ }
+ }
+ if (limit && (limit.constructor == Number || (limit.constructor == Array && limit.length == 2))) {
+ if (limit.constructor == Number)
+ limit = [limit, limit];
+ else {
+ limit[0] = parseInt(limit[0])||400;
+ limit[1] = parseInt(limit[1])||400;
+ }
+ this.Expander = {
+ limit : limit
+ };
+ }
+ jQuery(this)
+ .blur(jQuery.iExpander.expand)
+ .keyup(jQuery.iExpander.expand)
+ .keypress(jQuery.iExpander.expand);
+ jQuery.iExpander.expand.apply(this);
+ }
+ }
+ );
+ }
+};
+
+jQuery.fn.Autoexpand = jQuery.iExpander.build; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/ifx.js b/javascript/libs/jquery/full/interface/ifx.js
new file mode 100644
index 0000000..3c94c4b
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifx.js
@@ -0,0 +1,490 @@
+/**
+ * Interface Elements for jQuery
+ * FX
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * Validates elements that can be animated
+ */
+jQuery.fxCheckTag = function(e)
+{
+ if (/^tr$|^td$|^tbody$|^caption$|^thead$|^tfoot$|^col$|^colgroup$|^th$|^body$|^header$|^script$|^frame$|^frameset$|^option$|^optgroup$|^meta$/i.test(e.nodeName) )
+ return false;
+ else
+ return true;
+};
+
+/**
+ * Destroy the wrapper used for some animations
+ */
+jQuery.fx.destroyWrapper = function(e, old)
+{
+ var c = e.firstChild;
+ var cs = c.style;
+ cs.position = old.position;
+ cs.marginTop = old.margins.t;
+ cs.marginLeft = old.margins.l;
+ cs.marginBottom = old.margins.b;
+ cs.marginRight = old.margins.r;
+ cs.top = old.top + 'px';
+ cs.left = old.left + 'px';
+ e.parentNode.insertBefore(c, e);
+ e.parentNode.removeChild(e);
+};
+
+/**
+ * Builds a wrapper used for some animations
+ */
+jQuery.fx.buildWrapper = function(e)
+{
+ if (!jQuery.fxCheckTag(e))
+ return false;
+ var t = jQuery(e);
+ var es = e.style;
+ var restoreStyle = false;
+
+ if (t.css('display') == 'none') {
+ oldVisibility = t.css('visibility');
+ t.css('visibility', 'hidden').show();
+ restoreStyle = true;
+ }
+ var oldStyle = {};
+ oldStyle.position = t.css('position');
+ oldStyle.sizes = jQuery.iUtil.getSize(e);
+ oldStyle.margins = jQuery.iUtil.getMargins(e);
+
+ var oldFloat = e.currentStyle ? e.currentStyle.styleFloat : t.css('float');
+ oldStyle.top = parseInt(t.css('top'))||0;
+ oldStyle.left = parseInt(t.css('left'))||0;
+ var wid = 'w_' + parseInt(Math.random() * 10000);
+ var wr = document.createElement(/^img$|^br$|^input$|^hr$|^select$|^textarea$|^object$|^iframe$|^button$|^form$|^table$|^ul$|^dl$|^ol$/i.test(e.nodeName) ? 'div' : e.nodeName);
+ jQuery.attr(wr,'id', wid);
+ var wrapEl = jQuery(wr).addClass('fxWrapper');
+ var wrs = wr.style;
+ var top = 0;
+ var left = 0;
+ if (oldStyle.position == 'relative' || oldStyle.position == 'absolute'){
+ top = oldStyle.top;
+ left = oldStyle.left;
+ }
+
+ wrs.top = top + 'px';
+ wrs.left = left + 'px';
+ wrs.position = oldStyle.position != 'relative' && oldStyle.position != 'absolute' ? 'relative' : oldStyle.position;
+ wrs.height = oldStyle.sizes.hb + 'px';
+ wrs.width = oldStyle.sizes.wb + 'px';
+ wrs.marginTop = oldStyle.margins.t;
+ wrs.marginRight = oldStyle.margins.r;
+ wrs.marginBottom = oldStyle.margins.b;
+ wrs.marginLeft = oldStyle.margins.l;
+ wrs.overflow = 'hidden';
+ if (jQuery.browser.msie) {
+ wrs.styleFloat = oldFloat;
+ } else {
+ wrs.cssFloat = oldFloat;
+ }
+ if (jQuery.browser == "msie") {
+ es.filter = "alpha(opacity=" + 0.999*100 + ")";
+ }
+ es.opacity = 0.999;
+ //t.wrap(wr);
+ e.parentNode.insertBefore(wr, e);
+ wr.appendChild(e);
+ es.marginTop = '0px';
+ es.marginRight = '0px';
+ es.marginBottom = '0px';
+ es.marginLeft = '0px';
+ es.position = 'absolute';
+ es.listStyle = 'none';
+ es.top = '0px';
+ es.left = '0px';
+ if (restoreStyle) {
+ t.hide();
+ es.visibility = oldVisibility;
+ }
+ return {oldStyle:oldStyle, wrapper:jQuery(wr)};
+};
+
+/**
+ * named colors
+ */
+jQuery.fx.namedColors = {
+ aqua:[0,255,255],
+ azure:[240,255,255],
+ beige:[245,245,220],
+ black:[0,0,0],
+ blue:[0,0,255],
+ brown:[165,42,42],
+ cyan:[0,255,255],
+ darkblue:[0,0,139],
+ darkcyan:[0,139,139],
+ darkgrey:[169,169,169],
+ darkgreen:[0,100,0],
+ darkkhaki:[189,183,107],
+ darkmagenta:[139,0,139],
+ darkolivegreen:[85,107,47],
+ darkorange:[255,140,0],
+ darkorchid:[153,50,204],
+ darkred:[139,0,0],
+ darksalmon:[233,150,122],
+ darkviolet:[148,0,211],
+ fuchsia:[255,0,255],
+ gold:[255,215,0],
+ green:[0,128,0],
+ indigo:[75,0,130],
+ khaki:[240,230,140],
+ lightblue:[173,216,230],
+ lightcyan:[224,255,255],
+ lightgreen:[144,238,144],
+ lightgrey:[211,211,211],
+ lightpink:[255,182,193],
+ lightyellow:[255,255,224],
+ lime:[0,255,0],
+ magenta:[255,0,255],
+ maroon:[128,0,0],
+ navy:[0,0,128],
+ olive:[128,128,0],
+ orange:[255,165,0],
+ pink:[255,192,203],
+ purple:[128,0,128],
+ red:[255,0,0],
+ silver:[192,192,192],
+ white:[255,255,255],
+ yellow:[255,255,0]
+};
+
+/**
+ * parses a color to an object for reg, green and blue
+ */
+jQuery.fx.parseColor = function(color, notColor)
+{
+ if (jQuery.fx.namedColors[color])
+ return {
+ r: jQuery.fx.namedColors[color][0],
+ g: jQuery.fx.namedColors[color][1],
+ b: jQuery.fx.namedColors[color][2]
+ };
+ else if (result = /^rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)$/.exec(color))
+ return {
+ r: parseInt(result[1]),
+ g: parseInt(result[2]),
+ b: parseInt(result[3])
+ };
+ else if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)$/.exec(color))
+ return {
+ r: parseFloat(result[1])*2.55,
+ g: parseFloat(result[2])*2.55,
+ b: parseFloat(result[3])*2.55
+ };
+ else if (result = /^#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/.exec(color))
+ return {
+ r: parseInt("0x"+ result[1] + result[1]),
+ g: parseInt("0x" + result[2] + result[2]),
+ b: parseInt("0x" + result[3] + result[3])
+ };
+ else if (result = /^#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/.exec(color))
+ return {
+ r: parseInt("0x" + result[1]),
+ g: parseInt("0x" + result[2]),
+ b: parseInt("0x" + result[3])
+ };
+ else
+ return notColor == true ? false : {r: 255, g: 255, b: 255};
+};
+/**
+ * CSS rules that can be animated
+ */
+jQuery.fx.cssProps = {
+ borderBottomWidth:1,
+ borderLeftWidth:1,
+ borderRightWidth:1,
+ borderTopWidth:1,
+ bottom:1,
+ fontSize:1,
+ height:1,
+ left:1,
+ letterSpacing:1,
+ lineHeight:1,
+ marginBottom:1,
+ marginLeft:1,
+ marginRight:1,
+ marginTop:1,
+ maxHeight:1,
+ maxWidth:1,
+ minHeight:1,
+ minWidth:1,
+ opacity:1,
+ outlineOffset:1,
+ outlineWidth:1,
+ paddingBottom:1,
+ paddingLeft:1,
+ paddingRight:1,
+ paddingTop:1,
+ right:1,
+ textIndent:1,
+ top:1,
+ width:1,
+ zIndex:1
+};
+/**
+ * CSS color rules that can be animated
+ */
+jQuery.fx.colorCssProps = {
+ backgroundColor:1,
+ borderBottomColor:1,
+ borderLeftColor:1,
+ borderRightColor:1,
+ borderTopColor:1,
+ color:1,
+ outlineColor:1
+};
+
+jQuery.fx.cssSides = ['Top', 'Right', 'Bottom', 'Left'];
+jQuery.fx.cssSidesEnd = {
+ 'borderWidth': ['border', 'Width'],
+ 'borderColor': ['border', 'Color'],
+ 'margin': ['margin', ''],
+ 'padding': ['padding', '']
+};
+
+/**
+ * Overwrite animation to use new FX function
+ */
+jQuery.fn.extend({
+
+ animate: function( prop, speed, easing, callback ) {
+ return this.queue(function(){
+ var opt = jQuery.speed(speed, easing, callback);
+ var e = new jQuery.fxe( this, opt, prop );
+
+ });
+ },
+ pause: function(speed, callback) {
+ return this.queue(function(){
+ var opt = jQuery.speed(speed, callback);
+ var e = new jQuery.pause( this, opt );
+ });
+ },
+ stop : function(step) {
+ return this.each(function(){
+ if (this.animationHandler)
+ jQuery.stopAnim(this, step);
+
+ });
+ },
+ stopAll : function(step) {
+ return this.each(function(){
+ if (this.animationHandler)
+ jQuery.stopAnim(this, step);
+ if ( this.queue && this.queue['fx'] )
+ this.queue.fx = [];
+ });
+ }
+});
+/**
+ * Improved FXC function that aniamtes collection of properties per timer. Accepts inline styles and class names to animate
+ */
+jQuery.extend({
+ pause: function(elem, options)
+ {
+ var z = this, values;
+ z.step = function()
+ {
+ if ( jQuery.isFunction( options.complete ) )
+ options.complete.apply( elem );
+ };
+ z.timer=setInterval(function(){z.step();},options.duration);
+ elem.animationHandler = z;
+ },
+ easing : {
+ linear: function(p, n, firstNum, delta, duration) {
+ return ((-Math.cos(p*Math.PI)/2) + 0.5) * delta + firstNum;
+ }
+ },
+ fxe: function( elem, options, prop ){
+ var z = this, values;
+
+ // The styles
+ var y = elem.style;
+ var oldOverflow = jQuery.css(elem, "overflow");
+ var oldDisplay= jQuery.css(elem, "display");
+ var props = {};
+ z.startTime = (new Date()).getTime();
+ options.easing = options.easing && jQuery.easing[options.easing] ? options.easing : 'linear';
+
+ z.getValues = function(tp, vp)
+ {
+ if (jQuery.fx.cssProps[tp]) {
+ if (vp == 'show' || vp == 'hide' || vp == 'toggle') {
+ if ( !elem.orig ) elem.orig = {};
+ var r = parseFloat( jQuery.curCSS(elem, tp) );
+ elem.orig[tp] = r && r > -10000 ? r : (parseFloat( jQuery.css(elem,tp) )||0);
+ vp = vp == 'toggle' ? ( oldDisplay == 'none' ? 'show' : 'hide') : vp;
+ options[vp] = true;
+ props[tp] = vp == 'show' ? [0, elem.orig[tp]] : [elem.orig[tp], 0];
+ if (tp != 'opacity')
+ y[tp] = props[tp][0] + (tp != 'zIndex' && tp != 'fontWeight' ? 'px':'');
+ else
+ jQuery.attr(y, "opacity", props[tp][0]);
+ } else {
+ props[tp] = [parseFloat( jQuery.curCSS(elem, tp) ), parseFloat(vp)||0];
+ }
+ } else if (jQuery.fx.colorCssProps[tp])
+ props[tp] = [jQuery.fx.parseColor(jQuery.curCSS(elem, tp)), jQuery.fx.parseColor(vp)];
+ else if(/^margin$|padding$|border$|borderColor$|borderWidth$/i.test(tp)) {
+ var m = vp.replace(/\s+/g, ' ').replace(/rgb\s*\(\s*/g,'rgb(').replace(/\s*,\s*/g,',').replace(/\s*\)/g,')').match(/([^\s]+)/g);
+ switch(tp){
+ case 'margin':
+ case 'padding':
+ case 'borderWidth':
+ case 'borderColor':
+ m[3] = m[3]||m[1]||m[0];
+ m[2] = m[2]||m[0];
+ m[1] = m[1]||m[0];
+ for(var i = 0; i < jQuery.fx.cssSides.length; i++) {
+ var nmp = jQuery.fx.cssSidesEnd[tp][0] + jQuery.fx.cssSides[i] + jQuery.fx.cssSidesEnd[tp][1];
+ props[nmp] = tp == 'borderColor' ?
+ [jQuery.fx.parseColor(jQuery.curCSS(elem, nmp)), jQuery.fx.parseColor(m[i])]
+ : [parseFloat( jQuery.curCSS(elem, nmp) ), parseFloat(m[i])];
+ }
+ break;
+ case 'border':
+ for(var i = 0; i< m.length; i++) {
+ var floatVal = parseFloat(m[i]);
+ var sideEnd = !isNaN(floatVal) ? 'Width' : (!/transparent|none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(m[i]) ? 'Color' : false);
+ if (sideEnd) {
+ for(var j = 0; j < jQuery.fx.cssSides.length; j++) {
+ nmp = 'border' + jQuery.fx.cssSides[j] + sideEnd;
+ props[nmp] = sideEnd == 'Color' ?
+ [jQuery.fx.parseColor(jQuery.curCSS(elem, nmp)), jQuery.fx.parseColor(m[i])]
+ : [parseFloat( jQuery.curCSS(elem, nmp) ), floatVal];
+ }
+ } else {
+ y['borderStyle'] = m[i];
+ }
+ }
+ break;
+ }
+ } else {
+ y[tp] = vp;
+ }
+ return false;
+ };
+
+ for(p in prop) {
+ if (p == 'style') {
+ var newStyles = jQuery.parseStyle(prop[p]);
+ for (np in newStyles) {
+ this.getValues(np, newStyles[np]);
+ }
+ } else if (p == 'className') {
+ if (document.styleSheets)
+ for (var i=0; i<document.styleSheets.length; i++){
+ var cssRules = document.styleSheets[i].cssRules||document.styleSheets[i].rules||null;
+ if (cssRules) {
+ for (var j=0; j<cssRules.length; j++) {
+ if(cssRules[j].selectorText == '.' + prop[p]) {
+ var rule = new RegExp('\.' + prop[p] + ' {');
+ var styles = cssRules[j].style.cssText;
+ var newStyles = jQuery.parseStyle(styles.replace(rule, '').replace(/}/g, ''));
+ for (np in newStyles) {
+ this.getValues(np, newStyles[np]);
+ }
+ }
+ }
+ }
+ }
+ } else {
+ this.getValues(p, prop[p]);
+ }
+ }
+ y.display = oldDisplay == 'none' ? 'block' : oldDisplay;
+ y.overflow = 'hidden';
+
+ /*if (options.show)
+ y.display = "";*/
+
+ z.step = function(){
+ var t = (new Date()).getTime();
+ if (t > options.duration + z.startTime) {
+ clearInterval(z.timer);
+ z.timer = null;
+ for (p in props) {
+ if ( p == "opacity" )
+ jQuery.attr(y, "opacity", props[p][1]);
+ else if (typeof props[p][1] == 'object')
+ y[p] = 'rgb(' + props[p][1].r +',' + props[p][1].g +',' + props[p][1].b +')';
+ else
+ y[p] = props[p][1] + (p != 'zIndex' && p != 'fontWeight' ? 'px':'');
+ }
+ if ( options.hide || options.show )
+ for ( var p in elem.orig )
+ if (p == "opacity")
+ jQuery.attr(y, p, elem.orig[p]);
+ else
+ y[p] = "";
+ y.display = options.hide ? 'none' : (oldDisplay !='none' ? oldDisplay : 'block');
+ y.overflow = oldOverflow;
+ elem.animationHandler = null;
+ if ( jQuery.isFunction( options.complete ) )
+ options.complete.apply( elem );
+ } else {
+ var n = t - this.startTime;
+ var pr = n / options.duration;
+ for (p in props) {
+ if (typeof props[p][1] == 'object') {
+ y[p] = 'rgb('
+ + parseInt(jQuery.easing[options.easing](pr, n, props[p][0].r, (props[p][1].r-props[p][0].r), options.duration))
+ + ','
+ + parseInt(jQuery.easing[options.easing](pr, n, props[p][0].g, (props[p][1].g-props[p][0].g), options.duration))
+ + ','
+ + parseInt(jQuery.easing[options.easing](pr, n, props[p][0].b, (props[p][1].b-props[p][0].b), options.duration))
+ +')';
+ } else {
+ var pValue = jQuery.easing[options.easing](pr, n, props[p][0], (props[p][1]-props[p][0]), options.duration);
+ if ( p == "opacity" )
+ jQuery.attr(y, "opacity", pValue);
+ else
+ y[p] = pValue + (p != 'zIndex' && p != 'fontWeight' ? 'px':'');
+ }
+ }
+
+ }
+ };
+ z.timer=setInterval(function(){z.step();},13);
+ elem.animationHandler = z;
+ },
+ stopAnim: function(elem, step)
+ {
+ if (step)
+ elem.animationHandler.startTime -= 100000000;
+ else {
+ window.clearInterval(elem.animationHandler.timer);
+ elem.animationHandler = null;
+ jQuery.dequeue(elem, "fx");
+ }
+ }
+}
+);
+
+jQuery.parseStyle = function(styles) {
+ var newStyles = {};
+ if (typeof styles == 'string') {
+ styles = styles.toLowerCase().split(';');
+ for(var i=0; i< styles.length; i++){
+ rule = styles[i].split(':');
+ if (rule.length == 2) {
+ newStyles[jQuery.trim(rule[0].replace(/\-(\w)/g,function(m,c){return c.toUpperCase();}))] = jQuery.trim(rule[1]);
+ }
+ }
+ }
+ return newStyles;
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/ifxblind.js b/javascript/libs/jquery/full/interface/ifxblind.js
new file mode 100644
index 0000000..d8a7c29
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxblind.js
@@ -0,0 +1,212 @@
+/**
+ * Interface Elements for jQuery
+ * FX - blind
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * Applies a blinding animation to element
+ */
+jQuery.fn.extend(
+ {
+ /**
+ * @name BlindUp
+ * @description blinds the element up
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ BlindUp : function (speed, callback, easing)
+ {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.BlindDirection(this, speed, callback, 'up', easing);
+ });
+ },
+
+ /**
+ * @name BlindDown
+ * @description blinds the element down
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ BlindDown : function (speed, callback, easing)
+ {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.BlindDirection(this, speed, callback, 'down', easing);
+ });
+ },
+
+ /**
+ * @name BlindToggleVertically
+ * @description blinds the element up or down
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ BlindToggleVertically : function (speed, callback, easing)
+ {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.BlindDirection(this, speed, callback, 'togglever', easing);
+ });
+ },
+
+ /**
+ * @name BlindLeft
+ * @description blinds the element left
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ BlindLeft : function (speed, callback, easing)
+ {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.BlindDirection(this, speed, callback, 'left', easing);
+ });
+ },
+
+ /**
+ * @name BlindRight
+ * @description blinds the element right
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ BlindRight : function (speed, callback, easing)
+ {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.BlindDirection(this, speed, callback, 'right', easing);
+ });
+ },
+
+ /**
+ * @name BlindToggleHorizontally
+ * @description blinds the element left and right
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ BlindToggleHorizontally : function (speed, callback, easing)
+ {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.BlindDirection(this, speed, callback, 'togglehor', easing);
+ });
+ }
+ }
+);
+
+jQuery.fx.BlindDirection = function (e, speed, callback, direction, easing)
+{
+ if (!jQuery.fxCheckTag(e)) {
+ jQuery.dequeue(e, 'interfaceFX');
+ return false;
+ }
+ var z = this;
+ z.el = jQuery(e);
+ z.size = jQuery.iUtil.getSize(e);
+ z.easing = typeof callback == 'string' ? callback : easing||null;
+ if (!e.ifxFirstDisplay)
+ e.ifxFirstDisplay = z.el.css('display');
+ if ( direction == 'togglever') {
+ direction = z.el.css('display') == 'none' ? 'down' : 'up';
+ } else if (direction == 'togglehor') {
+ direction = z.el.css('display') == 'none' ? 'right' : 'left';
+ }
+ z.el.show();
+ z.speed = speed;
+ z.callback = typeof callback == 'function' ? callback : null;
+ z.fx = jQuery.fx.buildWrapper(e);
+ z.direction = direction;
+ z.complete = function()
+ {
+ if (z.callback && z.callback.constructor == Function) {
+ z.callback.apply(z.el.get(0));
+ }
+ if(z.direction == 'down' || z.direction == 'right'){
+ z.el.css('display', z.el.get(0).ifxFirstDisplay == 'none' ? 'block' : z.el.get(0).ifxFirstDisplay);
+ } else {
+ z.el.hide();
+ }
+ jQuery.fx.destroyWrapper(z.fx.wrapper.get(0), z.fx.oldStyle);
+ jQuery.dequeue(z.el.get(0), 'interfaceFX');
+ };
+ switch (z.direction) {
+ case 'up':
+ fxh = new jQuery.fx(
+ z.fx.wrapper.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'height'
+ );
+ fxh.custom(z.fx.oldStyle.sizes.hb, 0);
+ break;
+ case 'down':
+ z.fx.wrapper.css('height', '1px');
+ z.el.show();
+ fxh = new jQuery.fx(
+ z.fx.wrapper.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'height'
+ );
+ fxh.custom(0, z.fx.oldStyle.sizes.hb);
+ break;
+ case 'left':
+ fxh = new jQuery.fx(
+ z.fx.wrapper.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'width'
+ );
+ fxh.custom(z.fx.oldStyle.sizes.wb, 0);
+ break;
+ case 'right':
+ z.fx.wrapper.css('width', '1px');
+ z.el.show();
+ fxh = new jQuery.fx(
+ z.fx.wrapper.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'width'
+ );
+ fxh.custom(0, z.fx.oldStyle.sizes.wb);
+ break;
+ }
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/ifxbounce.js b/javascript/libs/jquery/full/interface/ifxbounce.js
new file mode 100644
index 0000000..e8fc132
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxbounce.js
@@ -0,0 +1,89 @@
+/**
+ * Interface Elements for jQuery
+ * FX - bounce
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * @name Bounce
+ * @description makes the element to bounce
+ * @param Integer hight the hight in pxels for element to jumps to
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.fn.Bounce = function (hight, callback) {
+ return this.queue('interfaceFX', function(){
+ if (!jQuery.fxCheckTag(this)) {
+ jQuery.dequeue(this, 'interfaceFX');
+ return false;
+ }
+ var e = new jQuery.fx.iBounce(this, hight, callback);
+ e.bounce();
+ });
+};
+jQuery.fx.iBounce = function (e, hight, callback)
+{
+ var z = this;
+ z.el = jQuery(e);
+ z.el.show();
+ z.callback = callback;
+ z.hight = parseInt(hight)||40;
+ z.oldStyle = {};
+ z.oldStyle.position = z.el.css('position');
+ z.oldStyle.top = parseInt(z.el.css('top'))||0;
+ z.oldStyle.left = parseInt(z.el.css('left'))||0;
+
+ if (z.oldStyle.position != 'relative' && z.oldStyle.position != 'absolute') {
+ z.el.css('position', 'relative');
+ }
+
+ z.times = 5;
+ z.cnt = 1;
+
+ z.bounce = function ()
+ {
+ z.cnt ++;
+ z.e = new jQuery.fx(
+ z.el.get(0),
+ {
+ duration: 120,
+ complete : function ()
+ {
+ z.e = new jQuery.fx(
+ z.el.get(0),
+ {
+ duration: 80,
+ complete : function ()
+ {
+ z.hight = parseInt(z.hight/2);
+ if (z.cnt <= z.times)
+ z.bounce();
+ else {
+ z.el.css('position', z.oldStyle.position).css('top', z.oldStyle.top + 'px').css('left', z.oldStyle.left + 'px');
+ jQuery.dequeue(z.el.get(0), 'interfaceFX');
+ if (z.callback && z.callback.constructor == Function) {
+ z.callback.apply(z.el.get(0));
+ }
+ }
+ }
+ },
+ 'top'
+ );
+ z.e.custom (z.oldStyle.top-z.hight, z.oldStyle.top);
+ }
+ },
+ 'top'
+ );
+ z.e.custom (z.oldStyle.top, z.oldStyle.top-z.hight);
+ };
+
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/ifxdrop.js b/javascript/libs/jquery/full/interface/ifxdrop.js
new file mode 100644
index 0000000..c51e317
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxdrop.js
@@ -0,0 +1,300 @@
+/**
+ * Interface Elements for jQuery
+ * FX - drop
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * Applies a dropping effect to element
+ */
+jQuery.fn.extend(
+ {
+ /**
+ * @name DropOutDown
+ * @description drops the element out down
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropOutDown : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'down', 'out', easing);
+ });
+ },
+
+ /**
+ * @name DropInDown
+ * @description drops the element in down
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropInDown : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'down', 'in', easing);
+ });
+ },
+
+ /**
+ * @name DropToggleDown
+ * @description drops the element in/out down
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropToggleDown : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'down', 'toggle', easing);
+ });
+ },
+
+ /**
+ * @name DropOutUp
+ * @description drops the element out up
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropOutUp : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'up', 'out', easing);
+ });
+ },
+
+ /**
+ * @name DropInUp
+ * @description drops the element in up
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropInUp : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'up', 'in', easing);
+ });
+ },
+
+ /**
+ * @name DropToggleUp
+ * @description drops the element in/out up
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropToggleUp : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'up', 'toggle', easing);
+ });
+ },
+
+ /**
+ * @name DropOutLeft
+ * @description drops the element out left
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropOutLeft : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'left', 'out', easing);
+ });
+ },
+
+ /**
+ * @name DropInLeft
+ * @description drops the element in left
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropInLeft : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'left', 'in', easing);
+ });
+ },
+
+ /**
+ * @name DropToggleLeft
+ * @description drops the element in/out left
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropToggleLeft : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'left', 'toggle', easing);
+ });
+ },
+
+ /**
+ * @name DropOutRight
+ * @description drops the element out right
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropOutRight : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'right', 'out', easing);
+ });
+ },
+
+ /**
+ * @name DropInRight
+ * @description drops the element in right
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropInRight : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'right', 'in', easing);
+ });
+ },
+
+ /**
+ * @name DropToggleRight
+ * @description drops the element in/out right
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DropToggleRight : function (speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DropOutDirectiont(this, speed, callback, 'right', 'toggle', easing);
+ });
+ }
+ }
+);
+
+jQuery.fx.DropOutDirectiont = function (e, speed, callback, direction, type, easing)
+{
+ if (!jQuery.fxCheckTag(e)) {
+ jQuery.dequeue(e, 'interfaceFX');
+ return false;
+ }
+ var z = this;
+ z.el = jQuery(e);
+ z.easing = typeof callback == 'string' ? callback : easing||null;
+ z.oldStyle = {};
+ z.oldStyle.position = z.el.css('position');
+ z.oldStyle.top = z.el.css('top');
+ z.oldStyle.left = z.el.css('left');
+ if (!e.ifxFirstDisplay)
+ e.ifxFirstDisplay = z.el.css('display');
+ if ( type == 'toggle') {
+ type = z.el.css('display') == 'none' ? 'in' : 'out';
+ }
+ z.el.show();
+
+ if (z.oldStyle.position != 'relative' && z.oldStyle.position != 'absolute') {
+ z.el.css('position', 'relative');
+ }
+ z.type = type;
+ callback = typeof callback == 'function' ? callback : null;
+ /*sizes = ['em','px','pt','%'];
+ for(i in sizes) {
+ if (z.oldStyle.top.indexOf(sizes[i])>0) {
+ z.topUnit = sizes[1];
+ z.topSize = parseFloat(z.oldStyle.top)||0;
+ }
+ if (z.oldStyle.left.indexOf(sizes[i])>0) {
+ z.leftUnit = sizes[1];
+ z.leftSize = parseFloat(z.oldStyle.left)||0;
+ }
+ }*/
+
+ directionIncrement = 1;
+ switch (direction){
+ case 'up':
+ z.e = new jQuery.fx(z.el.get(0), jQuery.speed(speed - 15, z.easing,callback), 'top');
+ z.point = parseFloat(z.oldStyle.top)||0;
+ z.unit = z.topUnit;
+ directionIncrement = -1;
+ break;
+ case 'down':
+ z.e = new jQuery.fx(z.el.get(0), jQuery.speed(speed - 15, z.easing,callback), 'top');
+ z.point = parseFloat(z.oldStyle.top)||0;
+ z.unit = z.topUnit;
+ break;
+ case 'right':
+ z.e = new jQuery.fx(z.el.get(0), jQuery.speed(speed - 15, z.easing,callback), 'left');
+ z.point = parseFloat(z.oldStyle.left)||0;
+ z.unit = z.leftUnit;
+ break;
+ case 'left':
+ z.e = new jQuery.fx(z.el.get(0), jQuery.speed(speed - 15, z.easing,callback), 'left');
+ z.point = parseFloat(z.oldStyle.left)||0;
+ z.unit = z.leftUnit;
+ directionIncrement = -1;
+ break;
+ }
+ z.e2 = new jQuery.fx(
+ z.el.get(0),
+ jQuery.speed
+ (
+ speed, z.easing,
+ function()
+ {
+ z.el.css(z.oldStyle);
+ if (z.type == 'out') {
+ z.el.css('display', 'none');
+ } else
+ z.el.css('display', z.el.get(0).ifxFirstDisplay == 'none' ? 'block' : z.el.get(0).ifxFirstDisplay);
+
+ jQuery.dequeue(z.el.get(0), 'interfaceFX');
+ }
+ ),
+ 'opacity'
+ );
+ if (type == 'in') {
+ z.e.custom(z.point+ 100*directionIncrement, z.point);
+ z.e2.custom(0,1);
+ } else {
+ z.e.custom(z.point, z.point + 100*directionIncrement);
+ z.e2.custom(1,0);
+ }
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/ifxfold.js b/javascript/libs/jquery/full/interface/ifxfold.js
new file mode 100644
index 0000000..a3f8d30
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxfold.js
@@ -0,0 +1,157 @@
+/**
+ * Interface Elements for jQuery
+ * FX - fold
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * Applies a folding animation to element
+ */
+jQuery.fn.extend(
+ {
+ /**
+ * @name Fold
+ * @description folds the element
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Integer height the height in pixels to fold element to
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ Fold : function (speed, height, callback, easing)
+ {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DoFold(this, speed, height, callback, 'fold', easing);
+ });
+ },
+
+ /**
+ * @name UnFold
+ * @description unfolds the element
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Integer height the height in pixels to unfold element to
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ UnFold : function (speed, height, callback, easing)
+ {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DoFold(this, speed, height, callback, 'unfold', easing);
+ });
+ },
+
+ /**
+ * @name FoldToggle
+ * @description folds/unfolds the element
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Integer height the height in pixels to folds/unfolds element to
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ FoldToggle : function (speed, height, callback, easing)
+ {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.DoFold(this, speed, height, callback, 'toggle', easing);
+ });
+ }
+ }
+);
+
+jQuery.fx.DoFold = function (e, speed, height, callback, type, easing)
+{
+ if (!jQuery.fxCheckTag(e)) {
+ jQuery.dequeue(e, 'interfaceFX');
+ return false;
+ }
+ var z = this;
+ z.el = jQuery(e);
+ z.easing = typeof callback == 'string' ? callback : easing||null;
+ z.callback = typeof callback == 'function' ? callback : null;
+ if ( type == 'toggle') {
+ type = z.el.css('display') == 'none' ? 'unfold' : 'fold';
+ }
+ //z.el.show();
+ z.speed = speed;
+ z.height = height && height.constructor == Number ? height : 20;
+ z.fx = jQuery.fx.buildWrapper(e);
+ z.type = type;
+ z.complete = function()
+ {
+ if (z.callback && z.callback.constructor == Function) {
+ z.callback.apply(z.el.get(0));
+ }
+ if(z.type == 'unfold'){
+ z.el.show();
+ } else {
+ z.el.hide();
+ }
+ jQuery.fx.destroyWrapper(z.fx.wrapper.get(0), z.fx.oldStyle);
+ jQuery.dequeue(z.el.get(0), 'interfaceFX');
+ };
+ if ( z.type == 'unfold') {
+ z.el.show();
+ z.fx.wrapper.css('height', z.height + 'px').css('width', '1px');
+
+ z.ef = new jQuery.fx(
+ z.fx.wrapper.get(0),
+ jQuery.speed (
+ z.speed,
+ z.easing,
+ function()
+ {
+ z.ef = new jQuery.fx(
+ z.fx.wrapper.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'height'
+ );
+ z.ef.custom(z.height, z.fx.oldStyle.sizes.hb);
+ }
+ ),
+ 'width'
+ );
+ z.ef.custom(0, z.fx.oldStyle.sizes.wb);
+ } else {
+ z.ef = new jQuery.fx(
+ z.fx.wrapper.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ function()
+ {
+ z.ef = new jQuery.fx(
+ z.fx.wrapper.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'width'
+ );
+ z.ef.custom(z.fx.oldStyle.sizes.wb, 0);
+ }
+ ),
+ 'height'
+ );
+ z.ef.custom(z.fx.oldStyle.sizes.hb, z.height);
+ }
+};
+
diff --git a/javascript/libs/jquery/full/interface/ifxhighlight.js b/javascript/libs/jquery/full/interface/ifxhighlight.js
new file mode 100644
index 0000000..fa2eb33
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxhighlight.js
@@ -0,0 +1,64 @@
+/**
+ * Interface Elements for jQuery
+ * FX - Highlight
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+
+/**
+ * @name Highlight
+ * @description Animates the backgroudn color to create a highlight animation
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param String color color to highlight from
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.fn.Highlight = function(speed, color, callback, easing) {
+ return this.queue(
+ 'interfaceColorFX',
+ function()
+ {
+ this.oldStyleAttr = jQuery(this).attr("style") || '';
+ easing = typeof callback == 'string' ? callback : easing||null;
+ callback = typeof callback == 'function' ? callback : null;
+ var oldColor = jQuery(this).css('backgroundColor');
+ var parentEl = this.parentNode;
+ while(oldColor == 'transparent' && parentEl) {
+ oldColor = jQuery(parentEl).css('backgroundColor');
+ parentEl = parentEl.parentNode;
+ }
+ jQuery(this).css('backgroundColor', color);
+
+
+ /* In IE, style is a object.. */
+ if(typeof this.oldStyleAttr == 'object') this.oldStyleAttr = this.oldStyleAttr["cssText"];
+
+ jQuery(this).animate(
+ {'backgroundColor':oldColor},
+ speed,
+ easing,
+ function() {
+ jQuery.dequeue(this, 'interfaceColorFX');
+ if(typeof jQuery(this).attr("style") == 'object') {
+ jQuery(this).attr("style")["cssText"] = "";
+ jQuery(this).attr("style")["cssText"] = this.oldStyleAttr;
+ } else {
+ jQuery(this).attr("style", this.oldStyleAttr);
+ }
+ if (callback)
+ callback.apply(this);
+ }
+ );
+ }
+ );
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/ifxopenclose.js b/javascript/libs/jquery/full/interface/ifxopenclose.js
new file mode 100644
index 0000000..8b017d1
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxopenclose.js
@@ -0,0 +1,227 @@
+/**
+ * Interface Elements for jQuery
+ * FX - open/close/switch
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * Applies an open/close animation to element
+ */
+jQuery.fn.extend(
+ {
+ /**
+ * @name CloseVertically
+ * @description closes the element vertically
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ CloseVertically : function (speed, callback, easing) {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.OpenClose(this, speed, callback, 'vertically', 'close', easing);
+ });
+ },
+
+ /**
+ * @name CloseHorizontally
+ * @description closes the element horizontally
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ CloseHorizontally : function (speed, callback, easing) {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.OpenClose(this, speed, callback, 'horizontally', 'close', easing);
+ });
+ },
+
+ /**
+ * @name SwitchHorizontally
+ * @description opens/closes the element horizontally
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SwitchHorizontally : function (speed, callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ if (jQuery.css(this, 'display') == 'none') {
+ new jQuery.fx.OpenClose(this, speed, callback, 'horizontally', 'open', easing);
+ } else {
+ new jQuery.fx.OpenClose(this, speed, callback, 'horizontally', 'close', easing);
+ }
+ });
+ },
+
+ /**
+ * @name SwitchVertically
+ * @description opens/closes the element vertically
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SwitchVertically : function (speed, callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ if (jQuery.css(this, 'display') == 'none') {
+ new jQuery.fx.OpenClose(this, speed, callback, 'vertically', 'open', easing);
+ } else {
+ new jQuery.fx.OpenClose(this, speed, callback, 'vertically', 'close', easing);
+ }
+ });
+ },
+
+ /**
+ * @name OpenVertically
+ * @description opens the element vertically
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ OpenVertically : function (speed, callback, easing) {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.OpenClose(this, speed, callback, 'vertically', 'open', easing);
+ });
+ },
+
+ /**
+ * @name OpenHorizontally
+ * @description opens the element horizontally
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ OpenHorizontally : function (speed, callback, easing) {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.OpenClose(this, speed, callback, 'horizontally', 'open', easing);
+ });
+ }
+ }
+);
+
+jQuery.fx.OpenClose = function (e, speed, callback, direction, type, easing)
+{
+ if (!jQuery.fxCheckTag(e)) {
+ jQuery.dequeue(e, 'interfaceFX');
+ return false;
+ }
+ var z = this;
+ var restoreStyle = false;
+ z.el = jQuery(e);
+ z.easing = typeof callback == 'string' ? callback : easing||null;
+ z.callback = typeof callback == 'function' ? callback : null;
+ z.type = type;
+ z.speed = speed;
+ z.oldP = jQuery.iUtil.getSize(e);
+ z.oldStyle = {};
+ z.oldStyle.position = z.el.css('position');
+ z.oldStyle.display = z.el.css('display');
+ if (z.oldStyle.display == 'none') {
+ oldVisibility = z.el.css('visibility');
+ z.el.show();
+ restoreStyle = true;
+ }
+ z.oldStyle.top = z.el.css('top');
+ z.oldStyle.left = z.el.css('left');
+ if (restoreStyle) {
+ z.el.hide();
+ z.el.css('visibility', oldVisibility);
+ }
+ z.oldStyle.width = z.oldP.w + 'px';
+ z.oldStyle.height = z.oldP.h + 'px';
+ z.oldStyle.overflow = z.el.css('overflow');
+ z.oldP.top = parseInt(z.oldStyle.top)||0;
+ z.oldP.left = parseInt(z.oldStyle.left)||0;
+ //z.el.show();
+
+ if (z.oldStyle.position != 'relative' && z.oldStyle.position != 'absolute') {
+ z.el.css('position', 'relative');
+ }
+ z.el.css('overflow', 'hidden')
+ .css('height', type == 'open' && direction == 'vertically' ? 1 : z.oldP.h + 'px')
+ .css('width', type == 'open' && direction == 'horizontally' ? 1 : z.oldP.w + 'px');
+
+ z.complete = function()
+ {
+ z.el.css(z.oldStyle);
+ if (z.type == 'close')
+ z.el.hide();
+ else
+ z.el.show();
+ jQuery.dequeue(z.el.get(0), 'interfaceFX');
+ };
+
+ switch (direction) {
+ case 'vertically':
+ z.eh = new jQuery.fx(
+ z.el.get(0),
+ jQuery.speed(speed-15, z.easing, callback),
+ 'height'
+ );
+ z.et = new jQuery.fx(
+ z.el.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'top'
+ );
+ if (z.type == 'close') {
+ z.eh.custom(z.oldP.h,0);
+ z.et.custom(z.oldP.top, z.oldP.top + z.oldP.h/2);
+ } else {
+ z.eh.custom(0, z.oldP.h);
+ z.et.custom(z.oldP.top + z.oldP.h/2, z.oldP.top);
+ }
+ break;
+ case 'horizontally':
+ z.eh = new jQuery.fx(
+ z.el.get(0),
+ jQuery.speed(speed-15, z.easing, callback),
+ 'width'
+ );
+ z.et = new jQuery.fx(
+ z.el.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'left'
+ );
+ if (z.type == 'close') {
+ z.eh.custom(z.oldP.w,0);
+ z.et.custom(z.oldP.left, z.oldP.left + z.oldP.w/2);
+ } else {
+ z.eh.custom(0, z.oldP.w);
+ z.et.custom(z.oldP.left + z.oldP.w/2, z.oldP.left);
+ }
+ break;
+ }
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/ifxpulsate.js b/javascript/libs/jquery/full/interface/ifxpulsate.js
new file mode 100644
index 0000000..fa14d70
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxpulsate.js
@@ -0,0 +1,77 @@
+/**
+ * Interface Elements for jQuery
+ * FX - pulsate
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * @name Bounce
+ * @description makes the element to pulsate
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Integer times how many times to pulsate
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.fn.Pulsate = function(speed, times, callback) {
+ return this.queue('interfaceFX',function(){
+ if (!jQuery.fxCheckTag(this)) {
+ jQuery.dequeue(this, 'interfaceFX');
+ return false;
+ }
+ var fx = new jQuery.fx.Pulsate(this, speed, times, callback);
+ fx.pulse();
+ });
+};
+
+jQuery.fx.Pulsate = function (el, speed, times, callback)
+{
+ var z = this;
+ z.times = times;
+ z.cnt = 1;
+ z.el = el;
+ z.speed = speed;
+ z.callback = callback;
+ jQuery(z.el).show();
+ z.pulse = function()
+ {
+ z.cnt ++;
+ z.e = new jQuery.fx(
+ z.el,
+ jQuery.speed(
+ z.speed,
+ function(){
+ z.ef = new jQuery.fx(
+ z.el,
+ jQuery.speed(
+ z.speed,
+ function()
+ {
+ if (z.cnt <= z.times)
+ z.pulse();
+ else {
+ jQuery.dequeue(z.el, 'interfaceFX');
+ if (z.callback && z.callback.constructor == Function) {
+ z.callback.apply(z.el);
+ }
+ }
+ }
+ ),
+ 'opacity'
+ );
+ z.ef.custom(0,1);
+ }
+ ),
+ 'opacity'
+ );
+ z.e.custom(1,0);
+ };
+};
diff --git a/javascript/libs/jquery/full/interface/ifxscale.js b/javascript/libs/jquery/full/interface/ifxscale.js
new file mode 100644
index 0000000..81d3cf1
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxscale.js
@@ -0,0 +1,290 @@
+/**
+ * Interface Elements for jQuery
+ * FX - scale/grow/shrink/puff
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+/**
+ * Applies a scallign animation to element
+ */
+jQuery.fn.extend(
+ {
+ /**
+ * @name Grow
+ * @description scales the element from 0 to intitial size
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ Grow : function(speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.Scale(this, speed, 1, 100, true, callback, 'grow', easing);
+ });
+ },
+
+ /**
+ * @name Shrink
+ * @description scales the element from intitial size to 0
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ Shrink : function(speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.Scale(this, speed, 100, 1, true, callback, 'shrink', easing);
+ });
+ },
+
+ /**
+ * @name Puff
+ * @description makes element to dispear by scalling to 150% and fading it out
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ Puff : function(speed, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ var easing = easing || 'easeout';
+ new jQuery.fx.Scale(this, speed, 100, 150, true, callback, 'puff', easing);
+ });
+ },
+
+ /**
+ * @name Scale
+ * @description scales the element
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Integer from initial scalling procentage
+ * @param Integer to final scalling procentage
+ * @param Boolean reastore whatever to restore the initital scalling procentage when animation ends
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ Scale : function(speed, from, to, restore, callback, easing) {
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.Scale(this, speed, from, to, restore, callback, 'Scale', easing);
+ });
+ }
+ }
+);
+
+jQuery.fx.Scale = function (e, speed, from, to, restore, callback, type, easing)
+{
+ if (!jQuery.fxCheckTag(e)) {
+ jQuery.dequeue(e, 'interfaceFX');
+ return false;
+ }
+ var z = this;
+ z.el = jQuery(e);
+ z.from = parseInt(from) || 100;
+ z.to = parseInt(to) || 100;
+ z.easing = typeof callback == 'string' ? callback : easing||null;
+ z.callback = typeof callback == 'function' ? callback : null;
+ z.duration = jQuery.speed(speed).duration;
+ z.restore = restore|| null;
+ z.oldP = jQuery.iUtil.getSize(e);
+ z.oldStyle = {
+ width: z.el.css('width'),
+ height: z.el.css('height'),
+ fontSize: z.el.css('fontSize')||'100%',
+ position : z.el.css('position'),
+ display : z.el.css('display'),
+ top : z.el.css('top'),
+ left : z.el.css('left'),
+ overflow : z.el.css('overflow'),
+ borderTopWidth : z.el.css('borderTopWidth'),
+ borderRightWidth : z.el.css('borderRightWidth'),
+ borderBottomWidth : z.el.css('borderBottomWidth'),
+ borderLeftWidth : z.el.css('borderLeftWidth'),
+ paddingTop : z.el.css('paddingTop'),
+ paddingRight : z.el.css('paddingRight'),
+ paddingBottom : z.el.css('paddingBottom'),
+ paddingLeft : z.el.css('paddingLeft')
+ };
+ z.width = parseInt(z.oldStyle.width)||e.offsetWidth||0;
+ z.height = parseInt(z.oldStyle.height)||e.offsetHeight||0;
+ z.top = parseInt(z.oldStyle.top)||0;
+ z.left = parseInt(z.oldStyle.left)||0;
+ sizes = ['em','px','pt','%'];
+ for(i in sizes) {
+ if (z.oldStyle.fontSize.indexOf(sizes[i])>0) {
+ z.fontUnit = sizes[i];
+ z.fontSize = parseFloat(z.oldStyle.fontSize);
+ }
+ if (z.oldStyle.borderTopWidth.indexOf(sizes[i])>0) {
+ z.borderTopUnit = sizes[i];
+ z.borderTopSize = parseFloat(z.oldStyle.borderTopWidth)||0;
+ }
+ if (z.oldStyle.borderRightWidth.indexOf(sizes[i])>0) {
+ z.borderRightUnit = sizes[i];
+ z.borderRightSize = parseFloat(z.oldStyle.borderRightWidth)||0;
+ }
+ if (z.oldStyle.borderBottomWidth.indexOf(sizes[i])>0) {
+ z.borderBottomUnit = sizes[i];
+ z.borderBottomSize = parseFloat(z.oldStyle.borderBottomWidth)||0;
+ }
+ if (z.oldStyle.borderLeftWidth.indexOf(sizes[i])>0) {
+ z.borderLeftUnit = sizes[i];
+ z.borderLeftSize = parseFloat(z.oldStyle.borderLeftWidth)||0;
+ }
+ if (z.oldStyle.paddingTop.indexOf(sizes[i])>0) {
+ z.paddingTopUnit = sizes[i];
+ z.paddingTopSize = parseFloat(z.oldStyle.paddingTop)||0;
+ }
+ if (z.oldStyle.paddingRight.indexOf(sizes[i])>0) {
+ z.paddingRightUnit = sizes[i];
+ z.paddingRightSize = parseFloat(z.oldStyle.paddingRight)||0;
+ }
+ if (z.oldStyle.paddingBottom.indexOf(sizes[i])>0) {
+ z.paddingBottomUnit = sizes[i];
+ z.paddingBottomSize = parseFloat(z.oldStyle.paddingBottom)||0;
+ }
+ if (z.oldStyle.paddingLeft.indexOf(sizes[i])>0) {
+ z.paddingLeftUnit = sizes[i];
+ z.paddingLeftSize = parseFloat(z.oldStyle.paddingLeft)||0;
+ }
+ }
+
+
+ if (z.oldStyle.position != 'relative' && z.oldStyle.position != 'absolute') {
+ z.el.css('position', 'relative');
+ }
+ z.el.css('overflow', 'hidden');
+ z.type = type;
+ switch(z.type)
+ {
+ case 'grow':
+ z.startTop = z.top + z.oldP.h/2;
+ z.endTop = z.top;
+ z.startLeft = z.left + z.oldP.w/2;
+ z.endLeft = z.left;
+ break;
+ case 'shrink':
+ z.endTop = z.top + z.oldP.h/2;
+ z.startTop = z.top;
+ z.endLeft = z.left + z.oldP.w/2;
+ z.startLeft = z.left;
+ break;
+ case 'puff':
+ z.endTop = z.top - z.oldP.h/4;
+ z.startTop = z.top;
+ z.endLeft = z.left - z.oldP.w/4;
+ z.startLeft = z.left;
+ break;
+ }
+ z.firstStep = false;
+ z.t=(new Date).getTime();
+ z.clear = function(){clearInterval(z.timer);z.timer=null;};
+ z.step = function(){
+ if (z.firstStep == false) {
+ z.el.show();
+ z.firstStep = true;
+ }
+ var t = (new Date).getTime();
+ var n = t - z.t;
+ var p = n / z.duration;
+ if (t >= z.duration+z.t) {
+ setTimeout(
+ function(){
+ o = 1;
+ if (z.type) {
+ t = z.endTop;
+ l = z.endLeft;
+ if (z.type == 'puff')
+ o = 0;
+ }
+ z.zoom(z.to, l, t, true, o);
+ },
+ 13
+ );
+ z.clear();
+ } else {
+ o = 1;
+ if (!jQuery.easing || !jQuery.easing[z.easing]) {
+ s = ((-Math.cos(p*Math.PI)/2) + 0.5) * (z.to-z.from) + z.from;
+ } else {
+ s = jQuery.easing[z.easing](p, n, z.from, (z.to-z.from), z.duration);
+ }
+ if (z.type) {
+ if (!jQuery.easing || !jQuery.easing[z.easing]) {
+ t = ((-Math.cos(p*Math.PI)/2) + 0.5) * (z.endTop-z.startTop) + z.startTop;
+ l = ((-Math.cos(p*Math.PI)/2) + 0.5) * (z.endLeft-z.startLeft) + z.startLeft;
+ if (z.type == 'puff')
+ o = ((-Math.cos(p*Math.PI)/2) + 0.5) * (-0.9999) + 0.9999;
+ } else {
+ t = jQuery.easing[z.easing](p, n, z.startTop, (z.endTop-z.startTop), z.duration);
+ l = jQuery.easing[z.easing](p, n, z.startLeft, (z.endLeft-z.startLeft), z.duration);
+ if (z.type == 'puff')
+ o = jQuery.easing[z.easing](p, n, 0.9999, -0.9999, z.duration);
+ }
+ }
+ z.zoom(s, l, t, false, o);
+ }
+ };
+ z.timer=setInterval(function(){z.step();},13);
+ z.zoom = function(percent, left, top, finish, opacity)
+ {
+ z.el
+ .css('height', z.height * percent/100 + 'px')
+ .css('width', z.width * percent/100 + 'px')
+ .css('left', left + 'px')
+ .css('top', top + 'px')
+ .css('fontSize', z.fontSize * percent /100 + z.fontUnit);
+ if (z.borderTopSize)
+ z.el.css('borderTopWidth', z.borderTopSize * percent /100 + z.borderTopUnit);
+ if (z.borderRightSize)
+ z.el.css('borderRightWidth', z.borderRightSize * percent /100 + z.borderRightUnit);
+ if (z.borderBottomSize)
+ z.el.css('borderBottomWidth', z.borderBottomSize * percent /100 + z.borderBottomUnit);
+ if (z.borderLeftSize)
+ z.el.css('borderLeftWidth', z.borderLeftSize * percent /100 + z.borderLeftUnit);
+ if (z.paddingTopSize)
+ z.el.css('paddingTop', z.paddingTopSize * percent /100 + z.paddingTopUnit);
+ if (z.paddingRightSize)
+ z.el.css('paddingRight', z.paddingRightSize * percent /100 + z.paddingRightUnit);
+ if (z.paddingBottomSize)
+ z.el.css('paddingBottom', z.paddingBottomSize * percent /100 + z.paddingBottomUnit);
+ if (z.paddingLeftSize)
+ z.el.css('paddingLeft', z.paddingLeftSize * percent /100 + z.paddingLeftUnit);
+ if (z.type == 'puff') {
+ if (window.ActiveXObject)
+ z.el.get(0).style.filter = "alpha(opacity=" + opacity*100 + ")";
+ z.el.get(0).style.opacity = opacity;
+ }
+ if (finish){
+ if (z.restore){
+ z.el.css(z.oldStyle);
+ }
+ if (z.type == 'shrink' || z.type == 'puff'){
+ z.el.css('display', 'none');
+ if (z.type == 'puff') {
+ if (window.ActiveXObject)
+ z.el.get(0).style.filter = "alpha(opacity=" + 100 + ")";
+ z.el.get(0).style.opacity = 1;
+ }
+ }else
+ z.el.css('display', 'block');
+ if (z.callback)
+ z.callback.apply(z.el.get(0));
+
+ jQuery.dequeue(z.el.get(0), 'interfaceFX');
+ }
+ };
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/ifxscrollto.js b/javascript/libs/jquery/full/interface/ifxscrollto.js
new file mode 100644
index 0000000..c24a245
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxscrollto.js
@@ -0,0 +1,111 @@
+/**
+ * Interface Elements for jQuery
+ * FX - scroll to
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+/**
+ * Applies a scrolling effect to document until the element gets into viewport
+ */
+jQuery.fn.extend (
+ {
+ /**
+ * @name ScrollTo
+ * @description scrolls the document until the lement gets into viewport
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param String axis (optional) whatever to scroll on vertical, horizontal or both axis ['vertical'|'horizontal'|null]
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ ScrollTo : function(speed, axis, easing) {
+ o = jQuery.speed(speed);
+ return this.queue('interfaceFX',function(){
+ new jQuery.fx.ScrollTo(this, o, axis, easing);
+ });
+ },
+ /**
+ * @name ScrollToAnchors
+ * @description all links to '#elementId' will animate scroll
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param String axis (optional) whatever to scroll on vertical, horizontal or both axis ['vertical'|'horizontal'|null]
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ /*inspired by David Maciejewski www.macx.de*/
+ ScrollToAnchors : function(speed, axis, easing) {
+ return this.each(
+ function()
+ {
+ jQuery('a[@href*="#"]', this).click(
+ function(e)
+ {
+ parts = this.href.split('#');
+ jQuery('#' + parts[1]).ScrollTo(speed, axis, easing);
+ return false;
+ }
+ );
+ }
+ )
+ }
+ }
+);
+
+jQuery.fx.ScrollTo = function (e, o, axis, easing)
+{
+ var z = this;
+ z.o = o;
+ z.e = e;
+ z.axis = /vertical|horizontal/.test(axis) ? axis : false;
+ z.easing = easing;
+ p = jQuery.iUtil.getPosition(e);
+ s = jQuery.iUtil.getScroll();
+ z.clear = function(){clearInterval(z.timer);z.timer=null;jQuery.dequeue(z.e, 'interfaceFX');};
+ z.t=(new Date).getTime();
+ s.h = s.h > s.ih ? (s.h - s.ih) : s.h;
+ s.w = s.w > s.iw ? (s.w - s.iw) : s.w;
+ z.endTop = p.y > s.h ? s.h : p.y;
+ z.endLeft = p.x > s.w ? s.w : p.x;
+ z.startTop = s.t;
+ z.startLeft = s.l;
+ z.step = function(){
+ var t = (new Date).getTime();
+ var n = t - z.t;
+ var p = n / z.o.duration;
+ if (t >= z.o.duration+z.t) {
+ z.clear();
+ setTimeout(function(){z.scroll(z.endTop, z.endLeft)},13);
+ } else {
+ if (!z.axis || z.axis == 'vertical') {
+ if (!jQuery.easing || !jQuery.easing[z.easing]) {
+ st = ((-Math.cos(p*Math.PI)/2) + 0.5) * (z.endTop-z.startTop) + z.startTop;
+ } else {
+ st = jQuery.easing[z.easing](p, n, z.startTop, (z.endTop - z.startTop), z.o.duration);
+ }
+ } else {
+ st = z.startTop;
+ }
+ if (!z.axis || z.axis == 'horizontal') {
+ if (!jQuery.easing || !jQuery.easing[z.easing]) {
+ sl = ((-Math.cos(p*Math.PI)/2) + 0.5) * (z.endLeft-z.startLeft) + z.startLeft;
+ } else {
+ sl = jQuery.easing[z.easing](p, n, z.startLeft, (z.endLeft - z.startLeft), z.o.duration);
+ }
+ } else {
+ sl = z.startLeft;
+ }
+ z.scroll(st, sl);
+ }
+ };
+ z.scroll = function (t, l){window.scrollTo(l, t);};
+ z.timer=setInterval(function(){z.step();},13);
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/ifxshake.js b/javascript/libs/jquery/full/interface/ifxshake.js
new file mode 100644
index 0000000..0fbf2ab
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxshake.js
@@ -0,0 +1,97 @@
+/**
+ * Interface Elements for jQuery
+ * FX - shake
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * @name Shake
+ * @description makes the element to shake
+ * @param Integer times how many tomes to shake the element
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.fn.Shake = function (times, callback) {
+ return this.queue('interfaceFX',function(){
+ if (!jQuery.fxCheckTag(this)) {
+ jQuery.dequeue(this, 'interfaceFX');
+ return false;
+ }
+ var e = new jQuery.fx.Shake(this, times, callback);
+ e.shake();
+ });
+};
+jQuery.fx.Shake = function (e, times, callback)
+{
+ var z = this;
+ z.el = jQuery(e);
+ z.el.show();
+ z.times = parseInt(times)||3;
+ z.callback = callback;
+ z.cnt = 1;
+ z.oldStyle = {};
+ z.oldStyle.position = z.el.css('position');
+ z.oldStyle.top = parseInt(z.el.css('top'))||0;
+ z.oldStyle.left = parseInt(z.el.css('left'))||0;
+
+ if (z.oldStyle.position != 'relative' && z.oldStyle.position != 'absolute') {
+ z.el.css('position', 'relative');
+ }
+
+ z.shake = function ()
+ {
+ z.cnt ++;
+
+ z.e = new jQuery.fx(
+ z.el.get(0),
+ {
+ duration: 60,
+ complete : function ()
+ {
+ z.e = new jQuery.fx(
+ z.el.get(0),
+ {
+ duration: 60,
+ complete : function ()
+ {
+ z.e = new jQuery.fx(
+ e,
+ {
+ duration: 60,
+ complete: function(){
+ if (z.cnt <= z.times)
+ z.shake();
+ else {
+ z.el.css('position', z.oldStyle.position).css('top', z.oldStyle.top + 'px').css('left', z.oldStyle.left + 'px');
+ jQuery.dequeue(z.el.get(0), 'interfaceFX');
+ if (z.callback && z.callback.constructor == Function) {
+ z.callback.apply(z.el.get(0));
+ }
+ }
+ }
+ },
+ 'left'
+ );
+ z.e.custom (z.oldStyle.left-20, z.oldStyle.left);
+ }
+ },
+ 'left'
+ );
+ z.e.custom (z.oldStyle.left+20, z.oldStyle.left-20);
+ }
+ },
+ 'left'
+ );
+ z.e.custom (z.oldStyle.left, z.oldStyle.left+20);
+ };
+
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/ifxslide.js b/javascript/libs/jquery/full/interface/ifxslide.js
new file mode 100644
index 0000000..b1cdb62
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxslide.js
@@ -0,0 +1,349 @@
+/**
+ * Interface Elements for jQuery
+ * FX - slide
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * Slides the element
+ */
+jQuery.fn.extend(
+ {
+ /**
+ * @name SlideInUp
+ * @description slides the element in up
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideInUp : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'up', 'in', easing);
+ });
+ },
+
+ /**
+ * @name SlideOutUp
+ * @description slides the element out up
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideOutUp : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'up', 'out', easing);
+ });
+ },
+
+ /**
+ * @name SlideToggleUp
+ * @description slides the element in/out up
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideToggleUp : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'up', 'toggle', easing);
+ });
+ },
+
+ /**
+ * @name SlideInDown
+ * @description slides the element in down
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideInDown : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'down', 'in', easing);
+ });
+ },
+
+ /**
+ * @name SlideOutDown
+ * @description slides the element out down
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideOutDown : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'down', 'out', easing);
+ });
+ },
+
+ /**
+ * @name SlideToggleDown
+ * @description slides the element in/out down
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideToggleDown : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'down', 'toggle', easing);
+ });
+ },
+
+ /**
+ * @name SlideInLeft
+ * @description slides the element in left
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideInLeft : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'left', 'in', easing);
+ });
+ },
+
+ /**
+ * @name SlideOutLeft
+ * @description slides the element out left
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideOutLeft : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'left', 'out', easing);
+ });
+ },
+
+ /**
+ * @name SlideToggleLeft
+ * @description slides the element in/out left
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideToggleLeft : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'left', 'toggle', easing);
+ });
+ },
+
+ /**
+ * @name SlideInRight
+ * @description slides the element in right
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideInRight : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'right', 'in', easing);
+ });
+ },
+
+ /**
+ * @name SlideOutRight
+ * @description slides the element out right
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideOutRight : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'right', 'out', easing);
+ });
+ },
+
+ /**
+ * @name SlideToggleRight
+ * @description slides the element in/out right
+ * @param Mixed speed animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @param Function callback (optional) A function to be executed whenever the animation completes.
+ * @param String easing (optional) The name of the easing effect that you want to use.
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SlideToggleRight : function (speed,callback, easing)
+ {
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.slide(this, speed, callback, 'right', 'toggle', easing);
+ });
+ }
+ }
+);
+
+jQuery.fx.slide = function(e, speed, callback, direction, type, easing)
+{
+ if (!jQuery.fxCheckTag(e)) {
+ jQuery.dequeue(e, 'interfaceFX');
+ return false;
+ }
+ var z = this;
+ z.el = jQuery(e);
+ z.easing = typeof callback == 'string' ? callback : easing||null;
+ z.callback = typeof callback == 'function' ? callback : null;
+ if ( type == 'toggle') {
+ type = z.el.css('display') == 'none' ? 'in' : 'out';
+ }
+ if (!e.ifxFirstDisplay)
+ e.ifxFirstDisplay = z.el.css('display');
+ z.el.show();
+
+ z.speed = speed;
+ z.fx = jQuery.fx.buildWrapper(e);
+
+ z.type = type;
+ z.direction = direction;
+ z.complete = function()
+ {
+ if(z.type == 'out')
+ z.el.css('visibility', 'hidden');
+ jQuery.fx.destroyWrapper(z.fx.wrapper.get(0), z.fx.oldStyle);
+ if(z.type == 'in'){
+ z.el.css('display', z.el.get(0).ifxFirstDisplay == 'none' ? 'block' : z.el.get(0).ifxFirstDisplay);
+ } else {
+ z.el.css('display', 'none');
+ z.el.css('visibility', 'visible');
+ }
+ if (z.callback && z.callback.constructor == Function) {
+ z.callback.apply(z.el.get(0));
+ }
+ jQuery.dequeue(z.el.get(0), 'interfaceFX');
+ };
+ switch (z.direction) {
+ case 'up':
+ z.ef = new jQuery.fx(
+ z.el.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'top'
+ );
+ z.efx = new jQuery.fx(
+ z.fx.wrapper.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing
+ ),
+ 'height'
+ );
+ if (z.type == 'in') {
+ z.ef.custom (-z.fx.oldStyle.sizes.hb, 0);
+ z.efx.custom(0, z.fx.oldStyle.sizes.hb);
+ } else {
+ z.ef.custom (0, -z.fx.oldStyle.sizes.hb);
+ z.efx.custom (z.fx.oldStyle.sizes.hb, 0);
+ }
+ break;
+ case 'down':
+ z.ef = new jQuery.fx(
+ z.el.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'top'
+ );
+ if (z.type == 'in') {
+ z.ef.custom (z.fx.oldStyle.sizes.hb, 0);
+ } else {
+ z.ef.custom (0, z.fx.oldStyle.sizes.hb);
+ }
+ break;
+ case 'left':
+ z.ef = new jQuery.fx(
+ z.el.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'left'
+ );
+ z.efx = new jQuery.fx(
+ z.fx.wrapper.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing
+ ),
+ 'width'
+ );
+ if (z.type == 'in') {
+ z.ef.custom (-z.fx.oldStyle.sizes.wb, 0);
+ z.efx.custom (0, z.fx.oldStyle.sizes.wb);
+ } else {
+ z.ef.custom (0, -z.fx.oldStyle.sizes.wb);
+ z.efx.custom (z.fx.oldStyle.sizes.wb, 0);
+ }
+ break;
+ case 'right':
+ z.ef = new jQuery.fx(
+ z.el.get(0),
+ jQuery.speed(
+ z.speed,
+ z.easing,
+ z.complete
+ ),
+ 'left'
+ );
+ if (z.type == 'in') {
+ z.ef.custom (z.fx.oldStyle.sizes.wb, 0);
+ } else {
+ z.ef.custom (0, z.fx.oldStyle.sizes.wb);
+ }
+ break;
+ }
+};
diff --git a/javascript/libs/jquery/full/interface/ifxtransfer.js b/javascript/libs/jquery/full/interface/ifxtransfer.js
new file mode 100644
index 0000000..5bb1fac
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ifxtransfer.js
@@ -0,0 +1,123 @@
+/**
+ * Interface Elements for jQuery
+ * FX - transfer
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+jQuery.transferHelper = null;
+/**
+ *
+ * @name TransferTo
+ * @description Animates an new build element to simulate a transfer action from one element to other
+ * @param Hash hash A hash of parameters
+ * @option Mixed to DOMElement or element ID to transfer to
+ * @option String className CSS class to apply to transfer element
+ * @option String duration animation speed, integer for miliseconds, string ['slow' | 'normal' | 'fast']
+ * @option Function callback (optional) A function to be executed whenever the animation completes.
+ *
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.fn.TransferTo = function(o)
+{
+ return this.queue('interfaceFX', function(){
+ new jQuery.fx.itransferTo(this, o);
+ });
+};
+jQuery.fx.itransferTo = function(e, o)
+{
+
+ if(jQuery.transferHelper == null)
+ {
+ jQuery('body', document).append('<div id="transferHelper"></div>');
+ jQuery.transferHelper = jQuery('#transferHelper');
+ }
+ jQuery.transferHelper.css('display', 'block').css('position', 'absolute');
+
+ var z = this;
+ z.el = jQuery(e);
+ if(!o || !o.to) {
+ return;
+ }
+
+ if (o.to.constructor == String && document.getElementById(o.to)) {
+ o.to = document.getElementById(o.to);
+ } else if ( !o.to.childNodes ) {
+ return;
+ }
+
+ if (!o.duration) {
+ o.duration = 500;
+ }
+ z.duration = o.duration;
+ z.to = o.to;
+ z.classname = o.className;
+ z.complete = o.complete;
+ if (z.classname) {
+ jQuery.transferHelper.addClass(z.classname);
+ }
+ z.diffWidth = 0;
+ z.diffHeight = 0;
+
+ if(jQuery.boxModel) {
+ z.diffWidth = (parseInt(jQuery.transferHelper.css('borderLeftWidth')) || 0 )
+ + (parseInt(jQuery.transferHelper.css('borderRightWidth')) || 0)
+ + (parseInt(jQuery.transferHelper.css('paddingLeft')) || 0)
+ + (parseInt(jQuery.transferHelper.css('paddingRight')) || 0);
+ z.diffHeight = (parseInt(jQuery.transferHelper.css('borderTopWidth')) || 0 )
+ + (parseInt(jQuery.transferHelper.css('borderBottomWidth')) || 0)
+ + (parseInt(jQuery.transferHelper.css('paddingTop')) || 0)
+ + (parseInt(jQuery.transferHelper.css('paddingBottom')) || 0);
+ }
+ z.start = jQuery.extend(
+ jQuery.iUtil.getPosition(z.el.get(0)),
+ jQuery.iUtil.getSize(z.el.get(0))
+ );
+ z.end = jQuery.extend(
+ jQuery.iUtil.getPosition(z.to),
+ jQuery.iUtil.getSize(z.to)
+ );
+ z.start.wb -= z.diffWidth;
+ z.start.hb -= z.diffHeight;
+ z.end.wb -= z.diffWidth;
+ z.end.hb -= z.diffHeight;
+ z.callback = o.complete;
+
+ // Execute the transfer
+ jQuery.transferHelper
+ .css('width', z.start.wb + 'px')
+ .css('height', z.start.hb + 'px')
+ .css('top', z.start.y + 'px')
+ .css('left', z.start.x + 'px')
+ .animate(
+ {
+ top: z.end.y,
+ left: z.end.x,
+ width: z.end.wb,
+ height: z.end.hb
+ },
+ z.duration,
+ function()
+ {
+ // Set correct classname
+ if(z.classname)
+ jQuery.transferHelper.removeClass(z.classname);
+ jQuery.transferHelper.css('display', 'none');
+
+ // Callback
+ if (z.complete && z.complete.constructor == Function) {
+ z.complete.apply(z.el.get(0), [z.to]);
+ }
+ // Done
+ jQuery.dequeue(z.el.get(0), 'interfaceFX');
+ }
+ );
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/imagebox.js b/javascript/libs/jquery/full/interface/imagebox.js
new file mode 100644
index 0000000..6f056d1
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/imagebox.js
@@ -0,0 +1,595 @@
+/**
+ * Interface Elements for jQuery
+ * ImageBox
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+
+/**
+ * This a jQuery equivalent for Lightbox2. Alternative to image popups that will display images in an overlay. All links that have attribute 'rel' starting with 'imagebox' and link to an image will display the image inside the page. Galleries can by build buy giving the value 'imagebox-galname' to attribute 'rel'. Attribute 'title' will be used as caption.
+ * Keyboard navigation:
+ * - next image: arrow right, page down, 'n' key, space
+ * - previous image: arrow left, page up, 'p' key, backspace
+ * - close: escape
+ *
+ * CSS
+ * #ImageBoxOverlay
+ * {
+ * background-color: #000;
+ * }
+ * #ImageBoxCaption
+ * {
+ * background-color: #F4F4EC;
+ * }
+ * #ImageBoxContainer
+ * {
+ * width: 250px;
+ * height: 250px;
+ * background-color: #F4F4EC;
+ * }
+ * #ImageBoxCaptionText
+ * {
+ * font-weight: bold;
+ * padding-bottom: 5px;
+ * font-size: 13px;
+ * color: #000;
+ * }
+ * #ImageBoxCaptionImages
+ * {
+ * margin: 0;
+ * }
+ * #ImageBoxNextImage
+ * {
+ * background-image: url(images/imagebox/spacer.gif);
+ * background-color: transparent;
+ * }
+ * #ImageBoxPrevImage
+ * {
+ * background-image: url(images/imagebox/spacer.gif);
+ * background-color: transparent;
+ * }
+ * #ImageBoxNextImage:hover
+ * {
+ * background-image: url(images/imagebox/next_image.jpg);
+ * background-repeat: no-repeat;
+ * background-position: right top;
+ * }
+ * #ImageBoxPrevImage:hover
+ * {
+ * background-image: url(images/imagebox/prev_image.jpg);
+ * background-repeat: no-repeat;
+ * background-position: left bottom;
+ * }
+ *
+ * @name Imagebox
+ * @description This a jQuery equivalent for Lightbox2. Alternative to image popups that will display images in an overlay. All links that have attribute 'rel' starting with 'imagebox' and link to an image will display the image inside the page. Galleries can by build buy giving the value 'imagebox-galname' to attribute 'rel'. Attribute 'title' will be used as caption.
+ * @param Hash hash A hash of parameters
+ * @option Integer border border width
+ * @option String loaderSRC path to loading image
+ * @option String closeHTML path to close overlay image
+ * @option Float overlayOpacity opacity for overlay
+ * @option String textImage when a galalry it is build then the iteration is displayed
+ * @option String textImageFrom when a galalry it is build then the iteration is displayed
+ * @option Integer fadeDuration fade duration in miliseconds
+ *
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.ImageBox = {
+ options : {
+ border : 10,
+ loaderSRC : 'images/loading.gif',
+ closeHTML : '<img src="images/close.jpg" />',
+ overlayOpacity : 0.8,
+ textImage : 'Showing image',
+ textImageFrom : 'from',
+ fadeDuration : 400
+ },
+ imageLoaded : false,
+ firstResize : false,
+ currentRel : null,
+ animationInProgress : false,
+ opened : false,
+
+ keyPressed : function(event)
+ {
+ if(!jQuery.ImageBox.opened || jQuery.ImageBox.animationInProgress)
+ return;
+ var pressedKey = event.charCode || event.keyCode || -1;
+ switch (pressedKey)
+ {
+ //end
+ case 35:
+ if (jQuery.ImageBox.currentRel)
+ jQuery.ImageBox.start(null, jQuery('a[@rel=' + jQuery.ImageBox.currentRel+ ']:last').get(0));
+ break;
+ //home
+ case 36:
+ if (jQuery.ImageBox.currentRel)
+ jQuery.ImageBox.start(null, jQuery('a[@rel=' + jQuery.ImageBox.currentRel+ ']:first').get(0));
+ break;
+ //left
+ case 37:
+ //backspace
+ case 8:
+ //page up
+ case 33:
+ //p
+ case 80:
+ case 112:
+ var prevEl = jQuery('#ImageBoxPrevImage');
+ if(prevEl.get(0).onclick != null) {
+ prevEl.get(0).onclick.apply(prevEl.get(0));
+ }
+ break;
+ //up
+ case 38:
+ break;
+ //right
+ case 39:
+ //page down
+ case 34:
+ //space
+ case 32:
+ //n
+ case 110:
+ case 78:
+ var nextEl = jQuery('#ImageBoxNextImage');
+ if(nextEl.get(0).onclick != null) {
+ nextEl.get(0).onclick.apply(nextEl.get(0));
+ }
+ break;
+ //down;
+ case 40:
+ break;
+ //escape
+ case 27:
+ jQuery.ImageBox.hideImage();
+ break;
+ }
+ },
+
+ init : function(options)
+ {
+ if (options)
+ jQuery.extend(jQuery.ImageBox.options, options);
+ if (window.event) {
+ jQuery('body',document).bind('keyup', jQuery.ImageBox.keyPressed);
+ } else {
+ jQuery(document).bind('keyup', jQuery.ImageBox.keyPressed);
+ }
+ jQuery('a').each(
+ function()
+ {
+ el = jQuery(this);
+ relAttr = el.attr('rel')||'';
+ hrefAttr = el.attr('href')||'';
+ imageTypes = /\.jpg|\.jpeg|\.png|\.gif|\.bmp/g;
+ if (hrefAttr.toLowerCase().match(imageTypes) != null && relAttr.toLowerCase().indexOf('imagebox') == 0) {
+ el.bind('click', jQuery.ImageBox.start);
+ }
+ }
+ );
+ if (jQuery.browser.msie) {
+ iframe = document.createElement('iframe');
+ jQuery(iframe)
+ .attr(
+ {
+ id : 'ImageBoxIframe',
+ src : 'javascript:false;',
+ frameborder : 'no',
+ scrolling : 'no'
+ }
+ )
+ .css (
+ {
+ display : 'none',
+ position : 'absolute',
+ top : '0',
+ left : '0',
+ filter : 'progid:DXImageTransform.Microsoft.Alpha(opacity=0)'
+ }
+ );
+ jQuery('body').append(iframe);
+ }
+
+ overlay = document.createElement('div');
+ jQuery(overlay)
+ .attr('id', 'ImageBoxOverlay')
+ .css(
+ {
+ position : 'absolute',
+ display : 'none',
+ top : '0',
+ left : '0',
+ opacity : 0
+ }
+ )
+ .append(document.createTextNode(' '))
+ .bind('click', jQuery.ImageBox.hideImage);
+
+ captionText = document.createElement('div');
+ jQuery(captionText)
+ .attr('id', 'ImageBoxCaptionText')
+ .css(
+ {
+ paddingLeft : jQuery.ImageBox.options.border + 'px'
+ }
+ )
+ .append(document.createTextNode(' '));
+
+ captionImages = document.createElement('div');
+ jQuery(captionImages)
+ .attr('id', 'ImageBoxCaptionImages')
+ .css(
+ {
+ paddingLeft : jQuery.ImageBox.options.border + 'px',
+ paddingBottom : jQuery.ImageBox.options.border + 'px'
+ }
+ )
+ .append(document.createTextNode(' '));
+
+ closeEl = document.createElement('a');
+ jQuery(closeEl)
+ .attr(
+ {
+ id : 'ImageBoxClose',
+ href : '#'
+ }
+ )
+ .css(
+ {
+ position : 'absolute',
+ right : jQuery.ImageBox.options.border + 'px',
+ top : '0'
+ }
+ )
+ .append(jQuery.ImageBox.options.closeHTML)
+ .bind('click', jQuery.ImageBox.hideImage);
+
+ captionEl = document.createElement('div');
+ jQuery(captionEl)
+ .attr('id', 'ImageBoxCaption')
+ .css(
+ {
+ position : 'relative',
+ textAlign : 'left',
+ margin : '0 auto',
+ zIndex : 1
+ }
+ )
+ .append(captionText)
+ .append(captionImages)
+ .append(closeEl);
+
+ loader = document.createElement('img');
+ loader.src = jQuery.ImageBox.options.loaderSRC;
+ jQuery(loader)
+ .attr('id', 'ImageBoxLoader')
+ .css(
+ {
+ position : 'absolute'
+ }
+ );
+
+ prevImage = document.createElement('a');
+ jQuery(prevImage)
+ .attr(
+ {
+ id : 'ImageBoxPrevImage',
+ href : '#'
+ }
+ )
+ .css(
+ {
+ position : 'absolute',
+ display : 'none',
+ overflow : 'hidden',
+ textDecoration : 'none'
+ }
+ )
+ .append(document.createTextNode(' '));
+
+ nextImage = document.createElement('a');
+ jQuery(nextImage)
+ .attr(
+ {
+ id : 'ImageBoxNextImage',
+ href : '#'
+ }
+ )
+ .css(
+ {
+ position : 'absolute',
+ overflow : 'hidden',
+ textDecoration : 'none'
+ }
+ )
+ .append(document.createTextNode(' '));
+
+ container = document.createElement('div');
+ jQuery(container)
+ .attr('id', 'ImageBoxContainer')
+ .css(
+ {
+ display : 'none',
+ position : 'relative',
+ overflow : 'hidden',
+ textAlign : 'left',
+ margin : '0 auto',
+ top : '0',
+ left : '0',
+ zIndex : 2
+ }
+ )
+ .append([loader, prevImage, nextImage]);
+
+ outerContainer = document.createElement('div');
+ jQuery(outerContainer)
+ .attr('id', 'ImageBoxOuterContainer')
+ .css(
+ {
+ display : 'none',
+ position : 'absolute',
+ overflow : 'hidden',
+ top : '0',
+ left : '0',
+ textAlign : 'center',
+ backgroundColor : 'transparent',
+ lineHeigt : '0'
+ }
+ )
+ .append([container,captionEl]);
+
+ jQuery('body')
+ .append(overlay)
+ .append(outerContainer);
+ },
+
+ start : function(e, elm)
+ {
+ el = elm ? jQuery(elm) : jQuery(this);
+ linkRel = el.attr('rel');
+ var totalImages, iteration, prevImage, nextImage;
+ if (linkRel != 'imagebox') {
+ jQuery.ImageBox.currentRel = linkRel;
+ gallery = jQuery('a[@rel=' + linkRel + ']');
+ totalImages = gallery.size();
+ iteration = gallery.index(elm ? elm : this);
+ prevImage = gallery.get(iteration - 1);
+ nextImage = gallery.get(iteration + 1);
+ }
+ imageSrc = el.attr('href');
+ captionText = el.attr('title');
+ pageSize = jQuery.iUtil.getScroll();
+ overlay = jQuery('#ImageBoxOverlay');
+ if (!jQuery.ImageBox.opened) {
+ jQuery.ImageBox.opened = true;
+ if (jQuery.browser.msie) {
+ jQuery('#ImageBoxIframe')
+ .css ('height', Math.max(pageSize.ih,pageSize.h) + 'px')
+ .css ('width', Math.max(pageSize.iw,pageSize.w) + 'px')
+ .show();
+ }
+ overlay
+ .css ('height', Math.max(pageSize.ih,pageSize.h) + 'px')
+ .css ('width', Math.max(pageSize.iw,pageSize.w) + 'px')
+ .show()
+ .fadeTo(
+ 300,
+ jQuery.ImageBox.options.overlayOpacity,
+ function()
+ {
+ jQuery.ImageBox.loadImage(
+ imageSrc,
+ captionText,
+ pageSize,
+ totalImages,
+ iteration,
+ prevImage,
+ nextImage
+ );
+ }
+ );
+ jQuery('#ImageBoxOuterContainer').css ('width', Math.max(pageSize.iw,pageSize.w) + 'px');
+ } else {
+ jQuery('#ImageBoxPrevImage').get(0).onclick = null;
+ jQuery('#ImageBoxNextImage').get(0).onclick = null;
+ jQuery.ImageBox.loadImage(
+ imageSrc,
+ captionText,
+ pageSize,
+ totalImages,
+ iteration,
+ prevImage,
+ nextImage
+ );
+ }
+ return false;
+ },
+
+ loadImage : function(imageSrc, captiontext, pageSize, totalImages, iteration, prevImage, nextImage)
+ {
+ jQuery('#ImageBoxCurrentImage').remove();
+ prevImageEl = jQuery('#ImageBoxPrevImage');
+ prevImageEl.hide();
+ nextImageEl = jQuery('#ImageBoxNextImage');
+ nextImageEl.hide();
+ loader = jQuery('#ImageBoxLoader');
+ container = jQuery('#ImageBoxContainer');
+ outerContainer = jQuery('#ImageBoxOuterContainer');
+ captionEl = jQuery('#ImageBoxCaption').css('visibility', 'hidden');
+ jQuery('#ImageBoxCaptionText').html(captionText);
+ jQuery.ImageBox.animationInProgress = true;
+ if (totalImages)
+ jQuery('#ImageBoxCaptionImages').html(
+ jQuery.ImageBox.options.textImage
+ + ' ' + (iteration + 1) + ' '
+ + jQuery.ImageBox.options.textImageFrom
+ + ' ' + totalImages
+ );
+ if (prevImage) {
+ prevImageEl.get(0).onclick = function()
+ {
+ this.blur();
+ jQuery.ImageBox.start(null, prevImage);
+ return false;
+ };
+ }
+ if (nextImage) {
+ nextImageEl.get(0).onclick =function()
+ {
+ this.blur();
+ jQuery.ImageBox.start(null, nextImage);
+ return false;
+ };
+ }
+ loader.show();
+ containerSize = jQuery.iUtil.getSize(container.get(0));
+ containerW = Math.max(containerSize.wb, loader.get(0).width + jQuery.ImageBox.options.border * 2);
+ containerH = Math.max(containerSize.hb, loader.get(0).height + jQuery.ImageBox.options.border * 2);
+ loader
+ .css(
+ {
+ left : (containerW - loader.get(0).width)/2 + 'px',
+ top : (containerH - loader.get(0).height)/2 + 'px'
+ }
+ );
+ container
+ .css(
+ {
+ width : containerW + 'px',
+ height : containerH + 'px'
+ }
+ )
+ .show();
+ clientSize = jQuery.iUtil.getClient();
+ outerContainer
+ .css('top', pageSize.t + (clientSize.h / 15) + 'px');
+ if (outerContainer.css('display') == 'none') {
+ outerContainer
+ .show()
+ .fadeIn(
+ jQuery.ImageBox.options.fadeDuration
+ );
+ }
+ imageEl = new Image;
+ jQuery(imageEl)
+ .attr('id', 'ImageBoxCurrentImage')
+ .bind('load',
+ function()
+ {
+ containerW = imageEl.width + jQuery.ImageBox.options.border * 2;
+ containerH = imageEl.height + jQuery.ImageBox.options.border * 2;
+ loader.hide();
+ container.animate(
+ {
+ height : containerH
+ },
+ containerSize.hb != containerH ? jQuery.ImageBox.options.fadeDuration : 1,
+ function()
+ {
+ container.animate(
+ {
+ width : containerW
+ },
+ containerSize.wb != containerW ? jQuery.ImageBox.options.fadeDuration : 1,
+ function()
+ {
+ container.prepend(imageEl);
+ jQuery(imageEl)
+ .css(
+ {
+ position : 'absolute',
+ left : jQuery.ImageBox.options.border + 'px',
+ top : jQuery.ImageBox.options.border + 'px'
+ }
+ )
+ .fadeIn(
+ jQuery.ImageBox.options.fadeDuration,
+ function()
+ {
+ captionSize = jQuery.iUtil.getSize(captionEl.get(0));
+ if (prevImage) {
+ prevImageEl
+ .css(
+ {
+ left : jQuery.ImageBox.options.border + 'px',
+ top : jQuery.ImageBox.options.border + 'px',
+ width : containerW/2 - jQuery.ImageBox.options.border * 3 + 'px',
+ height : containerH - jQuery.ImageBox.options.border * 2 + 'px'
+ }
+ )
+ .show();
+ }
+ if (nextImage) {
+ nextImageEl
+ .css(
+ {
+ left : containerW/2 + jQuery.ImageBox.options.border * 2 + 'px',
+ top : jQuery.ImageBox.options.border + 'px',
+ width : containerW/2 - jQuery.ImageBox.options.border * 3 + 'px',
+ height : containerH - jQuery.ImageBox.options.border * 2 + 'px'
+ }
+ )
+ .show();
+ }
+ captionEl
+ .css(
+ {
+ width : containerW + 'px',
+ top : - captionSize.hb + 'px',
+ visibility : 'visible'
+ }
+ )
+ .animate(
+ {
+ top : -1
+ },
+ jQuery.ImageBox.options.fadeDuration,
+ function()
+ {
+ jQuery.ImageBox.animationInProgress = false;
+ }
+ );
+ }
+ );
+ }
+ );
+ }
+ );
+ }
+ );
+ imageEl.src = imageSrc;
+
+ },
+
+ hideImage : function()
+ {
+ jQuery('#ImageBoxCurrentImage').remove();
+ jQuery('#ImageBoxOuterContainer').hide();
+ jQuery('#ImageBoxCaption').css('visibility', 'hidden');
+ jQuery('#ImageBoxOverlay').fadeTo(
+ 300,
+ 0,
+ function(){
+ jQuery(this).hide();
+ if (jQuery.browser.msie) {
+ jQuery('#ImageBoxIframe').hide();
+ }
+ }
+ );
+ jQuery('#ImageBoxPrevImage').get(0).onclick = null;
+ jQuery('#ImageBoxNextImage').get(0).onclick = null;
+ jQuery.ImageBox.currentRel = null;
+ jQuery.ImageBox.opened = false;
+ jQuery.ImageBox.animationInProgress = false;
+ return false;
+ }
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/interface.js b/javascript/libs/jquery/full/interface/interface.js
new file mode 100644
index 0000000..d069216
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/interface.js
@@ -0,0 +1,12 @@
+/**
+ * Interface Elements for jQuery
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+ 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}('k.f2={2r:u(M){E q.1E(u(){if(!M.aR||!M.aZ)E;D el=q;el.2l={aq:M.aq||cO,aR:M.aR,aZ:M.aZ,8e:M.8e||\'fV\',aJ:M.aJ||\'fV\',2Y:M.2Y&&2g M.2Y==\'u\'?M.2Y:I,3i:M.2Y&&2g M.3i==\'u\'?M.3i:I,7U:M.7U&&2g M.7U==\'u\'?M.7U:I,as:k(M.aR,q),8f:k(M.aZ,q),H:M.H||8J,67:M.67||0};el.2l.8f.2G().B(\'W\',\'9R\').eq(0).B({W:el.2l.aq+\'U\',19:\'2B\'}).2T();el.2l.as.1E(u(2N){q.7X=2N}).gC(u(){k(q).2R(el.2l.aJ)},u(){k(q).4i(el.2l.aJ)}).1J(\'5h\',u(e){if(el.2l.67==q.7X)E;el.2l.as.eq(el.2l.67).4i(el.2l.8e).2T().eq(q.7X).2R(el.2l.8e).2T();el.2l.8f.eq(el.2l.67).5w({W:0},el.2l.H,u(){q.14.19=\'1o\';if(el.2l.3i){el.2l.3i.1D(el,[q])}}).2T().eq(q.7X).1Y().5w({W:el.2l.aq},el.2l.H,u(){q.14.19=\'2B\';if(el.2l.2Y){el.2l.2Y.1D(el,[q])}}).2T();if(el.2l.7U){el.2l.7U.1D(el,[q,el.2l.8f.K(q.7X),el.2l.as.K(el.2l.67),el.2l.8f.K(el.2l.67)])}el.2l.67=q.7X}).eq(0).2R(el.2l.8e).2T();k(q).B(\'W\',k(q).B(\'W\')).B(\'2U\',\'2K\')})}};k.fn.gN=k.f2.2r;k.aA={2r:u(M){E q.1E(u(){D el=q;D 7E=2*18.2Q/f1;D an=2*18.2Q;if(k(el).B(\'Y\')!=\'2s\'&&k(el).B(\'Y\')!=\'1P\'){k(el).B(\'Y\',\'2s\')}el.1l={1R:k(M.1R,q),2F:M.2F,6q:M.6q,aD:M.aD,an:an,1N:k.1a.2o(q),Y:k.1a.3w(q),26:18.2Q/2,bi:M.bi,8p:M.6r,6r:[],aG:I,7E:2*18.2Q/f1};el.1l.fB=(el.1l.1N.w-el.1l.2F)/2;el.1l.7D=(el.1l.1N.h-el.1l.6q-el.1l.6q*el.1l.8p)/2;el.1l.2D=2*18.2Q/el.1l.1R.1N();el.1l.ba=el.1l.1N.w/2;el.1l.b9=el.1l.1N.h/2-el.1l.6q*el.1l.8p;D ak=1h.3F(\'22\');k(ak).B({Y:\'1P\',3I:1,Q:0,O:0});k(el).1S(ak);el.1l.1R.1E(u(2N){a6=k(\'1T\',q).K(0);W=T(el.1l.6q*el.1l.8p);if(k.3a.4t){3E=1h.3F(\'1T\');k(3E).B(\'Y\',\'1P\');3E.2J=a6.2J;3E.14.5E=\'gE 9n:9w.9y.cC(1G=60, 14=1, gB=0, gA=0, gv=0, gF=0)\'}P{3E=1h.3F(\'3E\');if(3E.fD){4L=3E.fD("2d");3E.14.Y=\'1P\';3E.14.W=W+\'U\';3E.14.Z=el.1l.2F+\'U\';3E.W=W;3E.Z=el.1l.2F;4L.gu();4L.gO(0,W);4L.gk(1,-1);4L.gp(a6,0,0,el.1l.2F,W);4L.6H();4L.gm="gG-4l";D ap=4L.hy(0,0,0,W);ap.fs(1,"fr(1V, 1V, 1V, 1)");ap.fs(0,"fr(1V, 1V, 1V, 0.6)");4L.hx=ap;if(hA.hB.3J(\'hw\')!=-1){4L.hv()}P{4L.hu(0,0,el.1l.2F,W)}}}el.1l.6r[2N]=3E;k(ak).1S(3E)}).1J(\'9z\',u(e){el.1l.aG=1b;el.1l.H=el.1l.7E*0.1*el.1l.H/18.3S(el.1l.H);E I}).1J(\'8B\',u(e){el.1l.aG=I;E I});k.aA.7T(el);el.1l.H=el.1l.7E*0.2;el.1l.ht=1X.6V(u(){el.1l.26+=el.1l.H;if(el.1l.26>an)el.1l.26=0;k.aA.7T(el)},20);k(el).1J(\'8B\',u(){el.1l.H=el.1l.7E*0.2*el.1l.H/18.3S(el.1l.H)}).1J(\'3D\',u(e){if(el.1l.aG==I){1s=k.1a.4a(e);fz=el.1l.1N.w-1s.x+el.1l.Y.x;el.1l.H=el.1l.bi*el.1l.7E*(el.1l.1N.w/2-fz)/(el.1l.1N.w/2)}})})},7T:u(el){el.1l.1R.1E(u(2N){b8=el.1l.26+2N*el.1l.2D;x=el.1l.fB*18.5H(b8);y=el.1l.7D*18.83(b8);f9=T(2a*(el.1l.7D+y)/(2*el.1l.7D));fk=(el.1l.7D+y)/(2*el.1l.7D);Z=T((el.1l.2F-el.1l.aD)*fk+el.1l.aD);W=T(Z*el.1l.6q/el.1l.2F);q.14.Q=el.1l.b9+y-W/2+"U";q.14.O=el.1l.ba+x-Z/2+"U";q.14.Z=Z+"U";q.14.W=W+"U";q.14.3I=f9;el.1l.6r[2N].14.Q=T(el.1l.b9+y+W-1-W/2)+"U";el.1l.6r[2N].14.O=T(el.1l.ba+x-Z/2)+"U";el.1l.6r[2N].14.Z=Z+"U";el.1l.6r[2N].14.W=T(W*el.1l.8p)+"U"})}};k.fn.hI=k.aA.2r;k.23({G:{c8:u(p,n,1W,1H,1m){E((-18.5H(p*18.2Q)/2)+0.5)*1H+1W},hK:u(p,n,1W,1H,1m){E 1H*(n/=1m)*n*n+1W},fl:u(p,n,1W,1H,1m){E-1H*((n=n/1m-1)*n*n*n-1)+1W},hm:u(p,n,1W,1H,1m){if((n/=1m/2)<1)E 1H/2*n*n*n*n+1W;E-1H/2*((n-=2)*n*n*n-2)+1W},8l:u(p,n,1W,1H,1m){if((n/=1m)<(1/2.75)){E 1H*(7.aB*n*n)+1W}P if(n<(2/2.75)){E 1H*(7.aB*(n-=(1.5/2.75))*n+.75)+1W}P if(n<(2.5/2.75)){E 1H*(7.aB*(n-=(2.25/2.75))*n+.gY)+1W}P{E 1H*(7.aB*(n-=(2.h2/2.75))*n+.gX)+1W}},cr:u(p,n,1W,1H,1m){if(k.G.8l)E 1H-k.G.8l(p,1m-n,0,1H,1m)+1W;E 1W+1H},gW:u(p,n,1W,1H,1m){if(k.G.cr&&k.G.8l)if(n<1m/2)E k.G.cr(p,n*2,0,1H,1m)*.5+1W;E k.G.8l(p,n*2-1m,0,1H,1m)*.5+1H*.5+1W;E 1W+1H},gQ:u(p,n,1W,1H,1m){D a,s;if(n==0)E 1W;if((n/=1m)==1)E 1W+1H;a=1H*0.3;p=1m*.3;if(a<18.3S(1H)){a=1H;s=p/4}P{s=p/(2*18.2Q)*18.cb(1H/a)}E-(a*18.6b(2,10*(n-=1))*18.83((n*1m-s)*(2*18.2Q)/p))+1W},gT:u(p,n,1W,1H,1m){D a,s;if(n==0)E 1W;if((n/=1m/2)==2)E 1W+1H;a=1H*0.3;p=1m*.3;if(a<18.3S(1H)){a=1H;s=p/4}P{s=p/(2*18.2Q)*18.cb(1H/a)}E a*18.6b(2,-10*n)*18.83((n*1m-s)*(2*18.2Q)/p)+1H+1W},gV:u(p,n,1W,1H,1m){D a,s;if(n==0)E 1W;if((n/=1m/2)==2)E 1W+1H;a=1H*0.3;p=1m*.3;if(a<18.3S(1H)){a=1H;s=p/4}P{s=p/(2*18.2Q)*18.cb(1H/a)}if(n<1){E-.5*(a*18.6b(2,10*(n-=1))*18.83((n*1m-s)*(2*18.2Q)/p))+1W}E a*18.6b(2,-10*(n-=1))*18.83((n*1m-s)*(2*18.2Q)/p)*.5+1H+1W}}});k.6n={2r:u(M){E q.1E(u(){D el=q;el.1F={1R:k(M.1R,q),1Z:k(M.1Z,q),1M:k.1a.3w(q),2F:M.2F,ax:M.ax,7Y:M.7Y,ge:M.ge,51:M.51,6x:M.6x};k.6n.aH(el,0);k(1X).1J(\'gU\',u(){el.1F.1M=k.1a.3w(el);k.6n.aH(el,0);k.6n.7T(el)});k.6n.7T(el);el.1F.1R.1J(\'9z\',u(){k(el.1F.ax,q).K(0).14.19=\'2B\'}).1J(\'8B\',u(){k(el.1F.ax,q).K(0).14.19=\'1o\'});k(1h).1J(\'3D\',u(e){D 1s=k.1a.4a(e);D 5s=0;if(el.1F.51&&el.1F.51==\'cv\')D aI=1s.x-el.1F.1M.x-(el.4c-el.1F.2F*el.1F.1R.1N())/2-el.1F.2F/2;P if(el.1F.51&&el.1F.51==\'2L\')D aI=1s.x-el.1F.1M.x-el.4c+el.1F.2F*el.1F.1R.1N();P D aI=1s.x-el.1F.1M.x;D fP=18.6b(1s.y-el.1F.1M.y-el.5W/2,2);el.1F.1R.1E(u(2N){45=18.ez(18.6b(aI-2N*el.1F.2F,2)+fP);45-=el.1F.2F/2;45=45<0?0:45;45=45>el.1F.7Y?el.1F.7Y:45;45=el.1F.7Y-45;bB=el.1F.6x*45/el.1F.7Y;q.14.Z=el.1F.2F+bB+\'U\';q.14.O=el.1F.2F*2N+5s+\'U\';5s+=bB});k.6n.aH(el,5s)})})},aH:u(el,5s){if(el.1F.51)if(el.1F.51==\'cv\')el.1F.1Z.K(0).14.O=(el.4c-el.1F.2F*el.1F.1R.1N())/2-5s/2+\'U\';P if(el.1F.51==\'O\')el.1F.1Z.K(0).14.O=-5s/el.1F.1R.1N()+\'U\';P if(el.1F.51==\'2L\')el.1F.1Z.K(0).14.O=(el.4c-el.1F.2F*el.1F.1R.1N())-5s/2+\'U\';el.1F.1Z.K(0).14.Z=el.1F.2F*el.1F.1R.1N()+5s+\'U\'},7T:u(el){el.1F.1R.1E(u(2N){q.14.Z=el.1F.2F+\'U\';q.14.O=el.1F.2F*2N+\'U\'})}};k.fn.hi=k.6n.2r;k.N={1c:S,8R:S,3A:S,2I:S,4y:S,cl:S,1d:S,2h:S,1R:S,5o:u(){k.N.8R.5o();if(k.N.3A){k.N.3A.2G()}},4w:u(){k.N.1R=S;k.N.2h=S;k.N.4y=k.N.1d.2y;if(k.N.1c.B(\'19\')==\'2B\'){if(k.N.1d.1f.fx){3m(k.N.1d.1f.fx.1u){1e\'c6\':k.N.1c.7a(k.N.1d.1f.fx.1m,k.N.5o);1r;1e\'1z\':k.N.1c.fq(k.N.1d.1f.fx.1m,k.N.5o);1r;1e\'a7\':k.N.1c.g3(k.N.1d.1f.fx.1m,k.N.5o);1r}}P{k.N.1c.2G()}if(k.N.1d.1f.3i)k.N.1d.1f.3i.1D(k.N.1d,[k.N.1c,k.N.3A])}P{k.N.5o()}1X.bH(k.N.2I)},dQ:u(){D 1d=k.N.1d;D 4d=k.N.aY(1d);if(1d&&4d.3o!=k.N.4y&&4d.3o.1g>=1d.1f.aL){k.N.4y=4d.3o;k.N.cl=4d.3o;81={2n:k(1d).1p(\'hj\')||\'2n\',2y:4d.3o};k.hl({1u:\'hk\',81:k.hf(81),he:u(fZ){1d.1f.4e=k(\'3o\',fZ);1N=1d.1f.4e.1N();if(1N>0){D 5p=\'\';1d.1f.4e.1E(u(2N){5p+=\'<8P 4I="\'+k(\'2y\',q).3g()+\'" 8K="\'+2N+\'" 14="9b: ad;">\'+k(\'3g\',q).3g()+\'</8P>\'});if(1d.1f.aU){D 3M=k(\'2y\',1d.1f.4e.K(0)).3g();1d.2y=4d.3j+3M+1d.1f.3N+4d.66;k.N.6J(1d,4d.3o.1g!=3M.1g?(4d.3j.1g+4d.3o.1g):3M.1g,4d.3o.1g!=3M.1g?(4d.3j.1g+3M.1g):3M.1g)}if(1N>0){k.N.cj(1d,5p)}P{k.N.4w()}}P{k.N.4w()}},5N:1d.1f.aN})}},cj:u(1d,5p){k.N.8R.3x(5p);k.N.1R=k(\'8P\',k.N.8R.K(0));k.N.1R.9z(k.N.di).1J(\'5h\',k.N.dj);D Y=k.1a.3w(1d);D 1N=k.1a.2o(1d);k.N.1c.B(\'Q\',Y.y+1N.hb+\'U\').B(\'O\',Y.x+\'U\').2R(1d.1f.aM);if(k.N.3A){k.N.3A.B(\'19\',\'2B\').B(\'Q\',Y.y+1N.hb+\'U\').B(\'O\',Y.x+\'U\').B(\'Z\',k.N.1c.B(\'Z\')).B(\'W\',k.N.1c.B(\'W\'))}k.N.2h=0;k.N.1R.K(0).3l=1d.1f.7H;k.N.8Q(1d,1d.1f.4e.K(0),\'7J\');if(k.N.1c.B(\'19\')==\'1o\'){if(1d.1f.bV){D cp=k.1a.aT(1d,1b);D cm=k.1a.6U(1d,1b);k.N.1c.B(\'Z\',1d.4c-(k.dF?(cp.l+cp.r+cm.l+cm.r):0)+\'U\')}if(1d.1f.fx){3m(1d.1f.fx.1u){1e\'c6\':k.N.1c.7f(1d.1f.fx.1m);1r;1e\'1z\':k.N.1c.fo(1d.1f.fx.1m);1r;1e\'a7\':k.N.1c.gb(1d.1f.fx.1m);1r}}P{k.N.1c.1Y()}if(k.N.1d.1f.2Y)k.N.1d.1f.2Y.1D(k.N.1d,[k.N.1c,k.N.3A])}},dO:u(){D 1d=q;if(1d.1f.4e){k.N.4y=1d.2y;k.N.cl=1d.2y;D 5p=\'\';1d.1f.4e.1E(u(2N){2y=k(\'2y\',q).3g().6c();fY=1d.2y.6c();if(2y.3J(fY)==0){5p+=\'<8P 4I="\'+k(\'2y\',q).3g()+\'" 8K="\'+2N+\'" 14="9b: ad;">\'+k(\'3g\',q).3g()+\'</8P>\'}});if(5p!=\'\'){k.N.cj(1d,5p);q.1f.9x=1b;E}}1d.1f.4e=S;q.1f.9x=I},6J:u(2n,26,2T){if(2n.b1){D 6t=2n.b1();6t.hp(1b);6t.dI("ck",26);6t.ha("ck",-2T+26);6t.8C()}P if(2n.aF){2n.aF(26,2T)}P{if(2n.5q){2n.5q=26;2n.dN=2T}}2n.6K()},f0:u(2n){if(2n.5q)E 2n.5q;P if(2n.b1){D 6t=1h.6J.dZ();D eX=6t.h9();E 0-eX.dI(\'ck\',-h6)}},aY:u(2n){D 4P={2y:2n.2y,3j:\'\',66:\'\',3o:\'\'};if(2n.1f.aQ){D 8N=I;D 5q=k.N.f0(2n)||0;D 4T=4P.2y.7C(2n.1f.3N);24(D i=0;i<4T.1g;i++){if((4P.3j.1g+4T[i].1g>=5q||5q==0)&&!8N){if(4P.3j.1g<=5q)4P.3o=4T[i];P 4P.66+=4T[i]+(4T[i]!=\'\'?2n.1f.3N:\'\');8N=1b}P if(8N){4P.66+=4T[i]+(4T[i]!=\'\'?2n.1f.3N:\'\')}if(!8N){4P.3j+=4T[i]+(4T.1g>1?2n.1f.3N:\'\')}}}P{4P.3o=4P.2y}E 4P},bU:u(e){1X.bH(k.N.2I);D 1d=k.N.aY(q);D 3K=e.7L||e.7K||-1;if(/13|27|35|36|38|40|9/.48(3K)&&k.N.1R){if(1X.2k){1X.2k.bT=1b;1X.2k.c0=I}P{e.aP();e.aW()}if(k.N.2h!=S)k.N.1R.K(k.N.2h||0).3l=\'\';P k.N.2h=-1;3m(3K){1e 9:1e 13:if(k.N.2h==-1)k.N.2h=0;D 2h=k.N.1R.K(k.N.2h||0);D 3M=2h.5C(\'4I\');q.2y=1d.3j+3M+q.1f.3N+1d.66;k.N.4y=1d.3o;k.N.6J(q,1d.3j.1g+3M.1g+q.1f.3N.1g,1d.3j.1g+3M.1g+q.1f.3N.1g);k.N.4w();if(q.1f.68){4u=T(2h.5C(\'8K\'))||0;k.N.8Q(q,q.1f.4e.K(4u),\'68\')}if(q.7W)q.7W(I);E 3K!=13;1r;1e 27:q.2y=1d.3j+k.N.4y+q.1f.3N+1d.66;q.1f.4e=S;k.N.4w();if(q.7W)q.7W(I);E I;1r;1e 35:k.N.2h=k.N.1R.1N()-1;1r;1e 36:k.N.2h=0;1r;1e 38:k.N.2h--;if(k.N.2h<0)k.N.2h=k.N.1R.1N()-1;1r;1e 40:k.N.2h++;if(k.N.2h==k.N.1R.1N())k.N.2h=0;1r}k.N.8Q(q,q.1f.4e.K(k.N.2h||0),\'7J\');k.N.1R.K(k.N.2h||0).3l=q.1f.7H;if(k.N.1R.K(k.N.2h||0).7W)k.N.1R.K(k.N.2h||0).7W(I);if(q.1f.aU){D aK=k.N.1R.K(k.N.2h||0).5C(\'4I\');q.2y=1d.3j+aK+q.1f.3N+1d.66;if(k.N.4y.1g!=aK.1g)k.N.6J(q,1d.3j.1g+k.N.4y.1g,1d.3j.1g+aK.1g)}E I}k.N.dO.1D(q);if(q.1f.9x==I){if(1d.3o!=k.N.4y&&1d.3o.1g>=q.1f.aL)k.N.2I=1X.9T(k.N.dQ,q.1f.54);if(k.N.1R){k.N.4w()}}E 1b},8Q:u(2n,3o,1u){if(2n.1f[1u]){D 81={};ar=3o.f3(\'*\');24(i=0;i<ar.1g;i++){81[ar[i].4Y]=ar[i].7c.h4}2n.1f[1u].1D(2n,[81])}},di:u(e){if(k.N.1R){if(k.N.2h!=S)k.N.1R.K(k.N.2h||0).3l=\'\';k.N.1R.K(k.N.2h||0).3l=\'\';k.N.2h=T(q.5C(\'8K\'))||0;k.N.1R.K(k.N.2h||0).3l=k.N.1d.1f.7H}},dj:u(2k){1X.bH(k.N.2I);2k=2k||k.2k.gS(1X.2k);2k.aP();2k.aW();D 1d=k.N.aY(k.N.1d);D 3M=q.5C(\'4I\');k.N.1d.2y=1d.3j+3M+k.N.1d.1f.3N+1d.66;k.N.4y=q.5C(\'4I\');k.N.6J(k.N.1d,1d.3j.1g+3M.1g+k.N.1d.1f.3N.1g,1d.3j.1g+3M.1g+k.N.1d.1f.3N.1g);k.N.4w();if(k.N.1d.1f.68){4u=T(q.5C(\'8K\'))||0;k.N.8Q(k.N.1d,k.N.1d.1f.4e.K(4u),\'68\')}E I},eJ:u(e){3K=e.7L||e.7K||-1;if(/13|27|35|36|38|40/.48(3K)&&k.N.1R){if(1X.2k){1X.2k.bT=1b;1X.2k.c0=I}P{e.aP();e.aW()}E I}},2r:u(M){if(!M.aN||!k.1a){E}if(!k.N.1c){if(k.3a.4t){k(\'2e\',1h).1S(\'<3A 14="19:1o;Y:1P;5E:9n:9w.9y.cC(1G=0);" id="ds" 2J="ek:I;" ej="0" ep="cD"></3A>\');k.N.3A=k(\'#ds\')}k(\'2e\',1h).1S(\'<22 id="dr" 14="Y: 1P; Q: 0; O: 0; z-cZ: h3; 19: 1o;"><9h 14="6w: 0;8F: 0; h1-14: 1o; z-cZ: h0;">&7k;</9h></22>\');k.N.1c=k(\'#dr\');k.N.8R=k(\'9h\',k.N.1c)}E q.1E(u(){if(q.4Y!=\'ch\'&&q.5C(\'1u\')!=\'3g\')E;q.1f={};q.1f.aN=M.aN;q.1f.aL=18.3S(T(M.aL)||1);q.1f.aM=M.aM?M.aM:\'\';q.1f.7H=M.7H?M.7H:\'\';q.1f.68=M.68&&M.68.1K==2A?M.68:S;q.1f.2Y=M.2Y&&M.2Y.1K==2A?M.2Y:S;q.1f.3i=M.3i&&M.3i.1K==2A?M.3i:S;q.1f.7J=M.7J&&M.7J.1K==2A?M.7J:S;q.1f.bV=M.bV||I;q.1f.aQ=M.aQ||I;q.1f.3N=q.1f.aQ?(M.3N||\', \'):\'\';q.1f.aU=M.aU?1b:I;q.1f.54=18.3S(T(M.54)||aC);if(M.fx&&M.fx.1K==7M){if(!M.fx.1u||!/c6|1z|a7/.48(M.fx.1u)){M.fx.1u=\'1z\'}if(M.fx.1u==\'1z\'&&!k.fx.1z)E;if(M.fx.1u==\'a7\'&&!k.fx.61)E;M.fx.1m=18.3S(T(M.fx.1m)||8J);if(M.fx.1m>q.1f.54){M.fx.1m=q.1f.54-2a}q.1f.fx=M.fx}q.1f.4e=S;q.1f.9x=I;k(q).1p(\'bU\',\'eN\').6K(u(){k.N.1d=q;k.N.4y=q.2y}).dH(k.N.eJ).6y(k.N.bU).5B(u(){k.N.2I=1X.9T(k.N.4w,hM)})})}};k.fn.hR=k.N.2r;k.1y={2I:S,4Q:S,29:S,2D:10,26:u(el,4J,2D,eG){k.1y.4Q=el;k.1y.29=4J;k.1y.2D=T(2D)||10;k.1y.2I=1X.6V(k.1y.eF,T(eG)||40)},eF:u(){24(i=0;i<k.1y.29.1g;i++){if(!k.1y.29[i].2X){k.1y.29[i].2X=k.23(k.1a.7G(k.1y.29[i]),k.1a.74(k.1y.29[i]),k.1a.6z(k.1y.29[i]))}P{k.1y.29[i].2X.t=k.1y.29[i].3d;k.1y.29[i].2X.l=k.1y.29[i].3c}if(k.1y.4Q.A&&k.1y.4Q.A.7q==1b){69={x:k.1y.4Q.A.2v,y:k.1y.4Q.A.2q,1C:k.1y.4Q.A.1B.1C,hb:k.1y.4Q.A.1B.hb}}P{69=k.23(k.1a.7G(k.1y.4Q),k.1a.74(k.1y.4Q))}if(k.1y.29[i].2X.t>0&&k.1y.29[i].2X.y+k.1y.29[i].2X.t>69.y){k.1y.29[i].3d-=k.1y.2D}P if(k.1y.29[i].2X.t<=k.1y.29[i].2X.h&&k.1y.29[i].2X.t+k.1y.29[i].2X.hb<69.y+69.hb){k.1y.29[i].3d+=k.1y.2D}if(k.1y.29[i].2X.l>0&&k.1y.29[i].2X.x+k.1y.29[i].2X.l>69.x){k.1y.29[i].3c-=k.1y.2D}P if(k.1y.29[i].2X.l<=k.1y.29[i].2X.hP&&k.1y.29[i].2X.l+k.1y.29[i].2X.1C<69.x+69.1C){k.1y.29[i].3c+=k.1y.2D}}},8o:u(){1X.5T(k.1y.2I);k.1y.4Q=S;k.1y.29=S;24(i in k.1y.29){k.1y.29[i].2X=S}}};k.11={1c:S,F:S,4U:u(){E q.1E(u(){if(q.9I){q.A.5e.3q(\'5v\',k.11.bN);q.A=S;q.9I=I;if(k.3a.4t){q.bE="eN"}P{q.14.hq=\'\';q.14.e1=\'\';q.14.e7=\'\'}}})},bN:u(e){if(k.11.F!=S){k.11.9A(e);E I}D C=q.3U;k(1h).1J(\'3D\',k.11.bX).1J(\'5P\',k.11.9A);C.A.1s=k.1a.4a(e);C.A.4B=C.A.1s;C.A.7q=I;C.A.ho=q!=q.3U;k.11.F=C;if(C.A.5i&&q!=q.3U){bS=k.1a.3w(C.31);bQ=k.1a.2o(C);bR={x:T(k.B(C,\'O\'))||0,y:T(k.B(C,\'Q\'))||0};dx=C.A.4B.x-bS.x-bQ.1C/2-bR.x;dy=C.A.4B.y-bS.y-bQ.hb/2-bR.y;k.3b.5c(C,[dx,dy])}E k.7n||I},ea:u(e){D C=k.11.F;C.A.7q=1b;D 9G=C.14;C.A.7V=k.B(C,\'19\');C.A.4n=k.B(C,\'Y\');if(!C.A.cz)C.A.cz=C.A.4n;C.A.2c={x:T(k.B(C,\'O\'))||0,y:T(k.B(C,\'Q\'))||0};C.A.9B=0;C.A.ai=0;if(k.3a.4t){D bW=k.1a.6U(C,1b);C.A.9B=bW.l||0;C.A.ai=bW.t||0}C.A.1B=k.23(k.1a.3w(C),k.1a.2o(C));if(C.A.4n!=\'2s\'&&C.A.4n!=\'1P\'){9G.Y=\'2s\'}k.11.1c.5o();D 5g=C.fI(1b);k(5g).B({19:\'2B\',O:\'2P\',Q:\'2P\'});5g.14.5K=\'0\';5g.14.5z=\'0\';5g.14.5k=\'0\';5g.14.5j=\'0\';k.11.1c.1S(5g);D 3Y=k.11.1c.K(0).14;if(C.A.bD){3Y.Z=\'9F\';3Y.W=\'9F\'}P{3Y.W=C.A.1B.hb+\'U\';3Y.Z=C.A.1B.1C+\'U\'}3Y.19=\'2B\';3Y.5K=\'2P\';3Y.5z=\'2P\';3Y.5k=\'2P\';3Y.5j=\'2P\';k.23(C.A.1B,k.1a.2o(5g));if(C.A.2V){if(C.A.2V.O){C.A.2c.x+=C.A.1s.x-C.A.1B.x-C.A.2V.O;C.A.1B.x=C.A.1s.x-C.A.2V.O}if(C.A.2V.Q){C.A.2c.y+=C.A.1s.y-C.A.1B.y-C.A.2V.Q;C.A.1B.y=C.A.1s.y-C.A.2V.Q}if(C.A.2V.2L){C.A.2c.x+=C.A.1s.x-C.A.1B.x-C.A.1B.hb+C.A.2V.2L;C.A.1B.x=C.A.1s.x-C.A.1B.1C+C.A.2V.2L}if(C.A.2V.4D){C.A.2c.y+=C.A.1s.y-C.A.1B.y-C.A.1B.hb+C.A.2V.4D;C.A.1B.y=C.A.1s.y-C.A.1B.hb+C.A.2V.4D}}C.A.2v=C.A.2c.x;C.A.2q=C.A.2c.y;if(C.A.8s||C.A.2p==\'94\'){8U=k.1a.6U(C.31,1b);C.A.1B.x=C.8t+(k.3a.4t?0:k.3a.7I?-8U.l:8U.l);C.A.1B.y=C.8G+(k.3a.4t?0:k.3a.7I?-8U.t:8U.t);k(C.31).1S(k.11.1c.K(0))}if(C.A.2p){k.11.c5(C);C.A.5t.2p=k.11.ce}if(C.A.5i){k.3b.ct(C)}3Y.O=C.A.1B.x-C.A.9B+\'U\';3Y.Q=C.A.1B.y-C.A.ai+\'U\';3Y.Z=C.A.1B.1C+\'U\';3Y.W=C.A.1B.hb+\'U\';k.11.F.A.9E=I;if(C.A.gx){C.A.5t.6a=k.11.c7}if(C.A.3I!=I){k.11.1c.B(\'3I\',C.A.3I)}if(C.A.1G){k.11.1c.B(\'1G\',C.A.1G);if(1X.71){k.11.1c.B(\'5E\',\'8V(1G=\'+C.A.1G*2a+\')\')}}if(C.A.7O){k.11.1c.2R(C.A.7O);k.11.1c.K(0).7c.14.19=\'1o\'}if(C.A.4o)C.A.4o.1D(C,[5g,C.A.2c.x,C.A.2c.y]);if(k.1x&&k.1x.8D>0){k.1x.ed(C)}if(C.A.46==I){9G.19=\'1o\'}E I},c5:u(C){if(C.A.2p.1K==b0){if(C.A.2p==\'94\'){C.A.28=k.23({x:0,y:0},k.1a.2o(C.31));D 8S=k.1a.6U(C.31,1b);C.A.28.w=C.A.28.1C-8S.l-8S.r;C.A.28.h=C.A.28.hb-8S.t-8S.b}P if(C.A.2p==\'1h\'){D bY=k.1a.bm();C.A.28={x:0,y:0,w:bY.w,h:bY.h}}}P if(C.A.2p.1K==7F){C.A.28={x:T(C.A.2p[0])||0,y:T(C.A.2p[1])||0,w:T(C.A.2p[2])||0,h:T(C.A.2p[3])||0}}C.A.28.dx=C.A.28.x-C.A.1B.x;C.A.28.dy=C.A.28.y-C.A.1B.y},9H:u(F){if(F.A.8s||F.A.2p==\'94\'){k(\'2e\',1h).1S(k.11.1c.K(0))}k.11.1c.5o().2G().B(\'1G\',1);if(1X.71){k.11.1c.B(\'5E\',\'8V(1G=2a)\')}},9A:u(e){k(1h).3q(\'3D\',k.11.bX).3q(\'5P\',k.11.9A);if(k.11.F==S){E}D F=k.11.F;k.11.F=S;if(F.A.7q==I){E I}if(F.A.44==1b){k(F).B(\'Y\',F.A.4n)}D 9G=F.14;if(F.5i){k.11.1c.B(\'9b\',\'8j\')}if(F.A.7O){k.11.1c.4i(F.A.7O)}if(F.A.6N==I){if(F.A.fx>0){if(!F.A.1O||F.A.1O==\'4j\'){D x=12 k.fx(F,{1m:F.A.fx},\'O\');x.1L(F.A.2c.x,F.A.8y)}if(!F.A.1O||F.A.1O==\'49\'){D y=12 k.fx(F,{1m:F.A.fx},\'Q\');y.1L(F.A.2c.y,F.A.8v)}}P{if(!F.A.1O||F.A.1O==\'4j\')F.14.O=F.A.8y+\'U\';if(!F.A.1O||F.A.1O==\'49\')F.14.Q=F.A.8v+\'U\'}k.11.9H(F);if(F.A.46==I){k(F).B(\'19\',F.A.7V)}}P if(F.A.fx>0){F.A.9E=1b;D dh=I;if(k.1x&&k.1t&&F.A.44){dh=k.1a.3w(k.1t.1c.K(0))}k.11.1c.5w({O:dh?dh.x:F.A.1B.x,Q:dh?dh.y:F.A.1B.y},F.A.fx,u(){F.A.9E=I;if(F.A.46==I){F.14.19=F.A.7V}k.11.9H(F)})}P{k.11.9H(F);if(F.A.46==I){k(F).B(\'19\',F.A.7V)}}if(k.1x&&k.1x.8D>0){k.1x.eO(F)}if(k.1t&&F.A.44){k.1t.fC(F)}if(F.A.2Z&&(F.A.8y!=F.A.2c.x||F.A.8v!=F.A.2c.y)){F.A.2Z.1D(F,F.A.b3||[0,0,F.A.8y,F.A.8v])}if(F.A.3T)F.A.3T.1D(F);E I},c7:u(x,y,dx,dy){if(dx!=0)dx=T((dx+(q.A.gx*dx/18.3S(dx))/2)/q.A.gx)*q.A.gx;if(dy!=0)dy=T((dy+(q.A.gy*dy/18.3S(dy))/2)/q.A.gy)*q.A.gy;E{dx:dx,dy:dy,x:0,y:0}},ce:u(x,y,dx,dy){dx=18.3L(18.3r(dx,q.A.28.dx),q.A.28.w+q.A.28.dx-q.A.1B.1C);dy=18.3L(18.3r(dy,q.A.28.dy),q.A.28.h+q.A.28.dy-q.A.1B.hb);E{dx:dx,dy:dy,x:0,y:0}},bX:u(e){if(k.11.F==S||k.11.F.A.9E==1b){E}D F=k.11.F;F.A.4B=k.1a.4a(e);if(F.A.7q==I){45=18.ez(18.6b(F.A.1s.x-F.A.4B.x,2)+18.6b(F.A.1s.y-F.A.4B.y,2));if(45<F.A.6M){E}P{k.11.ea(e)}}D dx=F.A.4B.x-F.A.1s.x;D dy=F.A.4B.y-F.A.1s.y;24(D i in F.A.5t){D 3y=F.A.5t[i].1D(F,[F.A.2c.x+dx,F.A.2c.y+dy,dx,dy]);if(3y&&3y.1K==7M){dx=i!=\'7R\'?3y.dx:(3y.x-F.A.2c.x);dy=i!=\'7R\'?3y.dy:(3y.y-F.A.2c.y)}}F.A.2v=F.A.1B.x+dx-F.A.9B;F.A.2q=F.A.1B.y+dy-F.A.ai;if(F.A.5i&&(F.A.3H||F.A.2Z)){k.3b.3H(F,F.A.2v,F.A.2q)}if(F.A.4m)F.A.4m.1D(F,[F.A.2c.x+dx,F.A.2c.y+dy]);if(!F.A.1O||F.A.1O==\'4j\'){F.A.8y=F.A.2c.x+dx;k.11.1c.K(0).14.O=F.A.2v+\'U\'}if(!F.A.1O||F.A.1O==\'49\'){F.A.8v=F.A.2c.y+dy;k.11.1c.K(0).14.Q=F.A.2q+\'U\'}if(k.1x&&k.1x.8D>0){k.1x.al(F)}E I},2r:u(o){if(!k.11.1c){k(\'2e\',1h).1S(\'<22 id="e8"></22>\');k.11.1c=k(\'#e8\');D el=k.11.1c.K(0);D 4J=el.14;4J.Y=\'1P\';4J.19=\'1o\';4J.9b=\'8j\';4J.eu=\'1o\';4J.2U=\'2K\';if(1X.71){el.bE="e4"}P{4J.gi=\'1o\';4J.e7=\'1o\';4J.e1=\'1o\'}}if(!o){o={}}E q.1E(u(){if(q.9I||!k.1a)E;if(1X.71){q.gh=u(){E I};q.gj=u(){E I}}D el=q;D 5e=o.3v?k(q).gf(o.3v):k(q);if(k.3a.4t){5e.1E(u(){q.bE="e4"})}P{5e.B(\'-gI-7R-8C\',\'1o\');5e.B(\'7R-8C\',\'1o\');5e.B(\'-gH-7R-8C\',\'1o\')}q.A={5e:5e,6N:o.6N?1b:I,46:o.46?1b:I,44:o.44?o.44:I,5i:o.5i?o.5i:I,8s:o.8s?o.8s:I,3I:o.3I?T(o.3I)||0:I,1G:o.1G?2m(o.1G):I,fx:T(o.fx)||S,6R:o.6R?o.6R:I,5t:{},1s:{},4o:o.4o&&o.4o.1K==2A?o.4o:I,3T:o.3T&&o.3T.1K==2A?o.3T:I,2Z:o.2Z&&o.2Z.1K==2A?o.2Z:I,1O:/49|4j/.48(o.1O)?o.1O:I,6M:o.6M?T(o.6M)||0:0,2V:o.2V?o.2V:I,bD:o.bD?1b:I,7O:o.7O||I};if(o.5t&&o.5t.1K==2A)q.A.5t.7R=o.5t;if(o.4m&&o.4m.1K==2A)q.A.4m=o.4m;if(o.2p&&((o.2p.1K==b0&&(o.2p==\'94\'||o.2p==\'1h\'))||(o.2p.1K==7F&&o.2p.1g==4))){q.A.2p=o.2p}if(o.2O){q.A.2O=o.2O}if(o.6a){if(2g o.6a==\'gz\'){q.A.gx=T(o.6a)||1;q.A.gy=T(o.6a)||1}P if(o.6a.1g==2){q.A.gx=T(o.6a[0])||1;q.A.gy=T(o.6a[1])||1}}if(o.3H&&o.3H.1K==2A){q.A.3H=o.3H}q.9I=1b;5e.1E(u(){q.3U=el});5e.1J(\'5v\',k.11.bN)})}};k.fn.23({aS:k.11.4U,7t:k.11.2r});k.1x={du:u(5J,5G,7Q,7S){E 5J<=k.11.F.A.2v&&(5J+7Q)>=(k.11.F.A.2v+k.11.F.A.1B.w)&&5G<=k.11.F.A.2q&&(5G+7S)>=(k.11.F.A.2q+k.11.F.A.1B.h)?1b:I},cV:u(5J,5G,7Q,7S){E!(5J>(k.11.F.A.2v+k.11.F.A.1B.w)||(5J+7Q)<k.11.F.A.2v||5G>(k.11.F.A.2q+k.11.F.A.1B.h)||(5G+7S)<k.11.F.A.2q)?1b:I},1s:u(5J,5G,7Q,7S){E 5J<k.11.F.A.4B.x&&(5J+7Q)>k.11.F.A.4B.x&&5G<k.11.F.A.4B.y&&(5G+7S)>k.11.F.A.4B.y?1b:I},5r:I,3Q:{},8D:0,3P:{},ed:u(C){if(k.11.F==S){E}D i;k.1x.3Q={};D bJ=I;24(i in k.1x.3P){if(k.1x.3P[i]!=S){D 1j=k.1x.3P[i].K(0);if(k(k.11.F).is(\'.\'+1j.1i.a)){if(1j.1i.m==I){1j.1i.p=k.23(k.1a.7G(1j),k.1a.74(1j));1j.1i.m=1b}if(1j.1i.ac){k.1x.3P[i].2R(1j.1i.ac)}k.1x.3Q[i]=k.1x.3P[i];if(k.1t&&1j.1i.s&&k.11.F.A.44){1j.1i.el=k(\'.\'+1j.1i.a,1j);C.14.19=\'1o\';k.1t.cT(1j);1j.1i.ay=k.1t.8x(k.1p(1j,\'id\')).7l;C.14.19=C.A.7V;bJ=1b}if(1j.1i.9i){1j.1i.9i.1D(k.1x.3P[i].K(0),[k.11.F])}}}}if(bJ){k.1t.26()}},dS:u(){k.1x.3Q={};24(i in k.1x.3P){if(k.1x.3P[i]!=S){D 1j=k.1x.3P[i].K(0);if(k(k.11.F).is(\'.\'+1j.1i.a)){1j.1i.p=k.23(k.1a.7G(1j),k.1a.74(1j));if(1j.1i.ac){k.1x.3P[i].2R(1j.1i.ac)}k.1x.3Q[i]=k.1x.3P[i];if(k.1t&&1j.1i.s&&k.11.F.A.44){1j.1i.el=k(\'.\'+1j.1i.a,1j);C.14.19=\'1o\';k.1t.cT(1j);C.14.19=C.A.7V}}}}},al:u(e){if(k.11.F==S){E}k.1x.5r=I;D i;D bK=I;D eQ=0;24(i in k.1x.3Q){D 1j=k.1x.3Q[i].K(0);if(k.1x.5r==I&&k.1x[1j.1i.t](1j.1i.p.x,1j.1i.p.y,1j.1i.p.1C,1j.1i.p.hb)){if(1j.1i.hc&&1j.1i.h==I){k.1x.3Q[i].2R(1j.1i.hc)}if(1j.1i.h==I&&1j.1i.7x){bK=1b}1j.1i.h=1b;k.1x.5r=1j;if(k.1t&&1j.1i.s&&k.11.F.A.44){k.1t.1c.K(0).3l=1j.1i.eV;k.1t.al(1j)}eQ++}P if(1j.1i.h==1b){if(1j.1i.7y){1j.1i.7y.1D(1j,[e,k.11.1c.K(0).7c,1j.1i.fx])}if(1j.1i.hc){k.1x.3Q[i].4i(1j.1i.hc)}1j.1i.h=I}}if(k.1t&&!k.1x.5r&&k.11.F.44){k.1t.1c.K(0).14.19=\'1o\'}if(bK){k.1x.5r.1i.7x.1D(k.1x.5r,[e,k.11.1c.K(0).7c])}},eO:u(e){D i;24(i in k.1x.3Q){D 1j=k.1x.3Q[i].K(0);if(1j.1i.ac){k.1x.3Q[i].4i(1j.1i.ac)}if(1j.1i.hc){k.1x.3Q[i].4i(1j.1i.hc)}if(1j.1i.s){k.1t.7s[k.1t.7s.1g]=i}if(1j.1i.9l&&1j.1i.h==1b){1j.1i.h=I;1j.1i.9l.1D(1j,[e,1j.1i.fx])}1j.1i.m=I;1j.1i.h=I}k.1x.3Q={}},4U:u(){E q.1E(u(){if(q.9j){if(q.1i.s){id=k.1p(q,\'id\');k.1t.5L[id]=S;k(\'.\'+q.1i.a,q).aS()}k.1x.3P[\'d\'+q.c2]=S;q.9j=I;q.f=S}})},2r:u(o){E q.1E(u(){if(q.9j==1b||!o.3C||!k.1a||!k.11){E}q.1i={a:o.3C,ac:o.9J||I,hc:o.a5||I,eV:o.58||I,9l:o.gq||o.9l||I,7x:o.7x||o.dC||I,7y:o.7y||o.fO||I,9i:o.9i||I,t:o.6I&&(o.6I==\'du\'||o.6I==\'cV\')?o.6I:\'1s\',fx:o.fx?o.fx:I,m:I,h:I};if(o.cQ==1b&&k.1t){id=k.1p(q,\'id\');k.1t.5L[id]=q.1i.a;q.1i.s=1b;if(o.2Z){q.1i.2Z=o.2Z;q.1i.ay=k.1t.8x(id).7l}}q.9j=1b;q.c2=T(18.6o()*c9);k.1x.3P[\'d\'+q.c2]=k(q);k.1x.8D++})}};k.fn.23({dR:k.1x.4U,do:k.1x.2r});k.gD=k.1x.dS;k.3B={1c:S,8L:u(){3g=q.2y;if(!3g)E;14={dz:k(q).B(\'dz\')||\'\',4A:k(q).B(\'4A\')||\'\',8Z:k(q).B(\'8Z\')||\'\',dP:k(q).B(\'dP\')||\'\',dT:k(q).B(\'dT\')||\'\',dU:k(q).B(\'dU\')||\'\',c3:k(q).B(\'c3\')||\'\',dY:k(q).B(\'dY\')||\'\'};k.3B.1c.B(14);3x=k.3B.dX(3g);3x=3x.4E(12 bb("\\\\n","g"),"<br />");k.3B.1c.3x(\'gL\');ci=k.3B.1c.K(0).4c;k.3B.1c.3x(3x);Z=k.3B.1c.K(0).4c+ci;if(q.6l.2M&&Z>q.6l.2M[0]){Z=q.6l.2M[0]}q.14.Z=Z+\'U\';if(q.4Y==\'cf\'){W=k.3B.1c.K(0).5W+ci;if(q.6l.2M&&W>q.6l.2M[1]){W=q.6l.2M[1]}q.14.W=W+\'U\'}},dX:u(3g){cg={\'&\':\'&gK;\',\'<\':\'&gJ;\',\'>\':\'&gt;\',\'"\':\'&gs;\'};24(i in cg){3g=3g.4E(12 bb(i,\'g\'),cg[i])}E 3g},2r:u(2M){if(k.3B.1c==S){k(\'2e\',1h).1S(\'<22 id="dE" 14="Y: 1P; Q: 0; O: 0; 3n: 2K;"></22>\');k.3B.1c=k(\'#dE\')}E q.1E(u(){if(/cf|ch/.48(q.4Y)){if(q.4Y==\'ch\'){dB=q.5C(\'1u\');if(!/3g|gr/.48(dB)){E}}if(2M&&(2M.1K==bn||(2M.1K==7F&&2M.1g==2))){if(2M.1K==bn)2M=[2M,2M];P{2M[0]=T(2M[0])||8J;2M[1]=T(2M[1])||8J}q.6l={2M:2M}}k(q).5B(k.3B.8L).6y(k.3B.8L).dH(k.3B.8L);k.3B.8L.1D(q)}})}};k.fn.kc=k.3B.2r;k.4K=u(e){if(/^kd$|^ke$|^ka$|^6L$|^k9$|^k5$|^k4$|^k6$|^k7$|^2e$|^k8$|^kf$|^kg$|^kn$|^ko$|^kp$|^kq$/i.48(e.9N))E I;P E 1b};k.fx.a0=u(e,65){D c=e.7c;D cs=c.14;cs.Y=65.Y;cs.5K=65.3G.t;cs.5j=65.3G.l;cs.5k=65.3G.b;cs.5z=65.3G.r;cs.Q=65.Q+\'U\';cs.O=65.O+\'U\';e.31.ew(c,e);e.31.km(e)};k.fx.9P=u(e){if(!k.4K(e))E I;D t=k(e);D es=e.14;D 73=I;if(t.B(\'19\')==\'1o\'){5Y=t.B(\'3n\');t.B(\'3n\',\'2K\').1Y();73=1b}D V={};V.Y=t.B(\'Y\');V.1q=k.1a.2o(e);V.3G=k.1a.cy(e);D co=e.4Z?e.4Z.ei:t.B(\'hU\');V.Q=T(t.B(\'Q\'))||0;V.O=T(t.B(\'O\'))||0;D eo=\'kl\'+T(18.6o()*c9);D 6u=1h.3F(/^1T$|^br$|^kh$|^hr$|^8C$|^kj$|^8T$|^3A$|^kk$|^k3$|^k2$|^9h$|^dl$|^jM$/i.48(e.9N)?\'22\':e.9N);k.1p(6u,\'id\',eo);D jN=k(6u).2R(\'jO\');D 4h=6u.14;D Q=0;D O=0;if(V.Y==\'2s\'||V.Y==\'1P\'){Q=V.Q;O=V.O}4h.Q=Q+\'U\';4h.O=O+\'U\';4h.Y=V.Y!=\'2s\'&&V.Y!=\'1P\'?\'2s\':V.Y;4h.W=V.1q.hb+\'U\';4h.Z=V.1q.1C+\'U\';4h.5K=V.3G.t;4h.5z=V.3G.r;4h.5k=V.3G.b;4h.5j=V.3G.l;4h.2U=\'2K\';if(k.3a.4t){4h.ei=co}P{4h.jK=co}if(k.3a=="4t"){es.5E="8V(1G="+0.ex*2a+")"}es.1G=0.ex;e.31.ew(6u,e);6u.jF(e);es.5K=\'2P\';es.5z=\'2P\';es.5k=\'2P\';es.5j=\'2P\';es.Y=\'1P\';es.eu=\'1o\';es.Q=\'2P\';es.O=\'2P\';if(73){t.2G();es.3n=5Y}E{V:V,3p:k(6u)}};k.fx.8E={jE:[0,1V,1V],jG:[eD,1V,1V],jH:[e6,e6,jI],jP:[0,0,0],ks:[0,0,1V],jY:[dv,42,42],jZ:[0,1V,1V],k0:[0,0,7w],k1:[0,7w,7w],jX:[cn,cn,cn],jS:[0,2a,0],jR:[jT,jU,eb],jV:[7w,0,7w],kr:[85,eb,47],kP:[1V,eA,0],kN:[kO,50,kx],kF:[7w,0,0],kD:[ku,f8,kt],ky:[kH,0,9C],kL:[1V,0,1V],kM:[1V,kJ,0],kv:[0,6C,0],kA:[75,0,kE],kC:[eD,eB,eA],kG:[kI,kB,eB],kw:[e0,1V,1V],kz:[eL,kK,eL],kQ:[9C,9C,9C],jC:[1V,iy,iz],iA:[1V,1V,e0],iB:[0,1V,0],ix:[1V,0,1V],iv:[6C,0,0],iq:[0,0,6C],ip:[6C,6C,0],ir:[1V,dv,0],it:[1V,ah,iu],iC:[6C,0,6C],iD:[1V,0,0],iK:[ah,ah,ah],iL:[1V,1V,1V],iM:[1V,1V,0]};k.fx.6D=u(4x,dm){if(k.fx.8E[4x])E{r:k.fx.8E[4x][0],g:k.fx.8E[4x][1],b:k.fx.8E[4x][2]};P if(2W=/^6Y\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)$/.a4(4x))E{r:T(2W[1]),g:T(2W[2]),b:T(2W[3])};P if(2W=/6Y\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)$/.a4(4x))E{r:2m(2W[1])*2.55,g:2m(2W[2])*2.55,b:2m(2W[3])*2.55};P if(2W=/^#([a-fA-79-9])([a-fA-79-9])([a-fA-79-9])$/.a4(4x))E{r:T("77"+2W[1]+2W[1]),g:T("77"+2W[2]+2W[2]),b:T("77"+2W[3]+2W[3])};P if(2W=/^#([a-fA-79-9]{2})([a-fA-79-9]{2})([a-fA-79-9]{2})$/.a4(4x))E{r:T("77"+2W[1]),g:T("77"+2W[2]),b:T("77"+2W[3])};P E dm==1b?I:{r:1V,g:1V,b:1V}};k.fx.dD={5Q:1,5b:1,5O:1,4S:1,4D:1,4A:1,W:1,O:1,c3:1,iI:1,5k:1,5j:1,5z:1,5K:1,8b:1,6x:1,8c:1,av:1,1G:1,iE:1,iF:1,5n:1,4X:1,5U:1,5M:1,2L:1,jD:1,Q:1,Z:1,3I:1};k.fx.dA={7i:1,iG:1,iH:1,io:1,im:1,4x:1,i2:1};k.fx.8A=[\'i3\',\'i4\',\'i5\',\'i1\'];k.fx.cc={\'cd\':[\'2E\',\'dK\'],\'a8\':[\'2E\',\'bh\'],\'6w\':[\'6w\',\'\'],\'8F\':[\'8F\',\'\']};k.fn.23({5w:u(5X,H,G,J){E q.1w(u(){D a1=k.H(H,G,J);D e=12 k.dM(q,a1,5X)})},c4:u(H,J){E q.1w(u(){D a1=k.H(H,J);D e=12 k.c4(q,a1)})},8o:u(2D){E q.1E(u(){if(q.6d)k.by(q,2D)})},i0:u(2D){E q.1E(u(){if(q.6d)k.by(q,2D);if(q.1w&&q.1w[\'fx\'])q.1w.fx=[]})}});k.23({c4:u(2f,M){D z=q,3t;z.2D=u(){if(k.fQ(M.21))M.21.1D(2f)};z.2I=6V(u(){z.2D()},M.1m);2f.6d=z},G:{c8:u(p,n,1W,1H,1m){E((-18.5H(p*18.2Q)/2)+0.5)*1H+1W}},dM:u(2f,M,5X){D z=q,3t;D y=2f.14;D fR=k.B(2f,"2U");D 72=k.B(2f,"19");D 2j={};z.9O=(12 7g()).7z();M.G=M.G&&k.G[M.G]?M.G:\'c8\';z.ag=u(2w,43){if(k.fx.dD[2w]){if(43==\'1Y\'||43==\'2G\'||43==\'3R\'){if(!2f.6v)2f.6v={};D r=2m(k.6E(2f,2w));2f.6v[2w]=r&&r>-c9?r:(2m(k.B(2f,2w))||0);43=43==\'3R\'?(72==\'1o\'?\'1Y\':\'2G\'):43;M[43]=1b;2j[2w]=43==\'1Y\'?[0,2f.6v[2w]]:[2f.6v[2w],0];if(2w!=\'1G\')y[2w]=2j[2w][0]+(2w!=\'3I\'&&2w!=\'8Z\'?\'U\':\'\');P k.1p(y,"1G",2j[2w][0])}P{2j[2w]=[2m(k.6E(2f,2w)),2m(43)||0]}}P if(k.fx.dA[2w])2j[2w]=[k.fx.6D(k.6E(2f,2w)),k.fx.6D(43)];P if(/^6w$|8F$|2E$|a8$|cd$/i.48(2w)){D m=43.4E(/\\s+/g,\' \').4E(/6Y\\s*\\(\\s*/g,\'6Y(\').4E(/\\s*,\\s*/g,\',\').4E(/\\s*\\)/g,\')\').d5(/([^\\s]+)/g);3m(2w){1e\'6w\':1e\'8F\':1e\'cd\':1e\'a8\':m[3]=m[3]||m[1]||m[0];m[2]=m[2]||m[0];m[1]=m[1]||m[0];24(D i=0;i<k.fx.8A.1g;i++){D 64=k.fx.cc[2w][0]+k.fx.8A[i]+k.fx.cc[2w][1];2j[64]=2w==\'a8\'?[k.fx.6D(k.6E(2f,64)),k.fx.6D(m[i])]:[2m(k.6E(2f,64)),2m(m[i])]}1r;1e\'2E\':24(D i=0;i<m.1g;i++){D bd=2m(m[i]);D a9=!hX(bd)?\'dK\':(!/cu|1o|2K|hY|hZ|i6|i7|ii|ij|ik|il/i.48(m[i])?\'bh\':I);if(a9){24(D j=0;j<k.fx.8A.1g;j++){64=\'2E\'+k.fx.8A[j]+a9;2j[64]=a9==\'bh\'?[k.fx.6D(k.6E(2f,64)),k.fx.6D(m[i])]:[2m(k.6E(2f,64)),bd]}}P{y[\'ie\']=m[i]}}1r}}P{y[2w]=43}E I};24(p in 5X){if(p==\'14\'){D 5f=k.bl(5X[p]);24(7A in 5f){q.ag(7A,5f[7A])}}P if(p==\'3l\'){if(1h.af)24(D i=0;i<1h.af.1g;i++){D 7e=1h.af[i].7e||1h.af[i].i9||S;if(7e){24(D j=0;j<7e.1g;j++){if(7e[j].i8==\'.\'+5X[p]){D 6X=12 bb(\'\\.\'+5X[p]+\' {\');D 5Z=7e[j].14.9X;D 5f=k.bl(5Z.4E(6X,\'\').4E(/}/g,\'\'));24(7A in 5f){q.ag(7A,5f[7A])}}}}}}P{q.ag(p,5X[p])}}y.19=72==\'1o\'?\'2B\':72;y.2U=\'2K\';z.2D=u(){D t=(12 7g()).7z();if(t>M.1m+z.9O){5T(z.2I);z.2I=S;24(p in 2j){if(p=="1G")k.1p(y,"1G",2j[p][1]);P if(2g 2j[p][1]==\'8T\')y[p]=\'6Y(\'+2j[p][1].r+\',\'+2j[p][1].g+\',\'+2j[p][1].b+\')\';P y[p]=2j[p][1]+(p!=\'3I\'&&p!=\'8Z\'?\'U\':\'\')}if(M.2G||M.1Y)24(D p in 2f.6v)if(p=="1G")k.1p(y,p,2f.6v[p]);P y[p]="";y.19=M.2G?\'1o\':(72!=\'1o\'?72:\'2B\');y.2U=fR;2f.6d=S;if(k.fQ(M.21))M.21.1D(2f)}P{D n=t-q.9O;D 8w=n/M.1m;24(p in 2j){if(2g 2j[p][1]==\'8T\'){y[p]=\'6Y(\'+T(k.G[M.G](8w,n,2j[p][0].r,(2j[p][1].r-2j[p][0].r),M.1m))+\',\'+T(k.G[M.G](8w,n,2j[p][0].g,(2j[p][1].g-2j[p][0].g),M.1m))+\',\'+T(k.G[M.G](8w,n,2j[p][0].b,(2j[p][1].b-2j[p][0].b),M.1m))+\')\'}P{D bz=k.G[M.G](8w,n,2j[p][0],(2j[p][1]-2j[p][0]),M.1m);if(p=="1G")k.1p(y,"1G",bz);P y[p]=bz+(p!=\'3I\'&&p!=\'8Z\'?\'U\':\'\')}}}};z.2I=6V(u(){z.2D()},13);2f.6d=z},by:u(2f,2D){if(2D)2f.6d.9O-=iO;P{1X.5T(2f.6d.2I);2f.6d=S;k.2H(2f,"fx")}}});k.bl=u(5Z){D 5f={};if(2g 5Z==\'4V\'){5Z=5Z.6c().7C(\';\');24(D i=0;i<5Z.1g;i++){6X=5Z[i].7C(\':\');if(6X.1g==2){5f[k.g6(6X[0].4E(/\\-(\\w)/g,u(m,c){E c.jo()}))]=k.g6(6X[1])}}}E 5f};k.fn.23({g3:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'4F\',G)})},gb:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'4r\',G)})},jl:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'fJ\',G)})},jk:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'O\',G)})},jg:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'2L\',G)})},jf:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'fh\',G)})}});k.fx.61=u(e,H,J,2S,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;z.el=k(e);z.1N=k.1a.2o(e);z.G=2g J==\'4V\'?J:G||S;if(!e.4s)e.4s=z.el.B(\'19\');if(2S==\'fJ\'){2S=z.el.B(\'19\')==\'1o\'?\'4r\':\'4F\'}P if(2S==\'fh\'){2S=z.el.B(\'19\')==\'1o\'?\'2L\':\'O\'}z.el.1Y();z.H=H;z.J=2g J==\'u\'?J:S;z.fx=k.fx.9P(e);z.2S=2S;z.21=u(){if(z.J&&z.J.1K==2A){z.J.1D(z.el.K(0))}if(z.2S==\'4r\'||z.2S==\'2L\'){z.el.B(\'19\',z.el.K(0).4s==\'1o\'?\'2B\':z.el.K(0).4s)}P{z.el.2G()}k.fx.a0(z.fx.3p.K(0),z.fx.V);k.2H(z.el.K(0),\'1n\')};3m(z.2S){1e\'4F\':63=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'W\');63.1L(z.fx.V.1q.hb,0);1r;1e\'4r\':z.fx.3p.B(\'W\',\'9R\');z.el.1Y();63=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'W\');63.1L(0,z.fx.V.1q.hb);1r;1e\'O\':63=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'Z\');63.1L(z.fx.V.1q.1C,0);1r;1e\'2L\':z.fx.3p.B(\'Z\',\'9R\');z.el.1Y();63=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'Z\');63.1L(0,z.fx.V.1q.1C);1r}};k.fn.ji=u(5D,J){E q.1w(\'1n\',u(){if(!k.4K(q)){k.2H(q,\'1n\');E I}D e=12 k.fx.f4(q,5D,J);e.bp()})};k.fx.f4=u(e,5D,J){D z=q;z.el=k(e);z.el.1Y();z.J=J;z.5D=T(5D)||40;z.V={};z.V.Y=z.el.B(\'Y\');z.V.Q=T(z.el.B(\'Q\'))||0;z.V.O=T(z.el.B(\'O\'))||0;if(z.V.Y!=\'2s\'&&z.V.Y!=\'1P\'){z.el.B(\'Y\',\'2s\')}z.3V=5;z.5y=1;z.bp=u(){z.5y++;z.e=12 k.fx(z.el.K(0),{1m:jj,21:u(){z.e=12 k.fx(z.el.K(0),{1m:80,21:u(){z.5D=T(z.5D/2);if(z.5y<=z.3V)z.bp();P{z.el.B(\'Y\',z.V.Y).B(\'Q\',z.V.Q+\'U\').B(\'O\',z.V.O+\'U\');k.2H(z.el.K(0),\'1n\');if(z.J&&z.J.1K==2A){z.J.1D(z.el.K(0))}}}},\'Q\');z.e.1L(z.V.Q-z.5D,z.V.Q)}},\'Q\');z.e.1L(z.V.Q,z.V.Q-z.5D)}};k.fn.23({jy:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4r\',\'4l\',G)})},jz:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4r\',\'in\',G)})},jA:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4r\',\'3R\',G)})},jB:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4F\',\'4l\',G)})},jx:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4F\',\'in\',G)})},jw:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4F\',\'3R\',G)})},js:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'O\',\'4l\',G)})},jt:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'O\',\'in\',G)})},ju:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'O\',\'3R\',G)})},jv:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'2L\',\'4l\',G)})},je:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'2L\',\'in\',G)})},jd:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'2L\',\'3R\',G)})}});k.fx.4f=u(e,H,J,2S,1u,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;z.el=k(e);z.G=2g J==\'4V\'?J:G||S;z.V={};z.V.Y=z.el.B(\'Y\');z.V.Q=z.el.B(\'Q\');z.V.O=z.el.B(\'O\');if(!e.4s)e.4s=z.el.B(\'19\');if(1u==\'3R\'){1u=z.el.B(\'19\')==\'1o\'?\'in\':\'4l\'}z.el.1Y();if(z.V.Y!=\'2s\'&&z.V.Y!=\'1P\'){z.el.B(\'Y\',\'2s\')}z.1u=1u;J=2g J==\'u\'?J:S;8H=1;3m(2S){1e\'4F\':z.e=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'Q\');z.62=2m(z.V.Q)||0;z.9K=z.fG;8H=-1;1r;1e\'4r\':z.e=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'Q\');z.62=2m(z.V.Q)||0;z.9K=z.fG;1r;1e\'2L\':z.e=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'O\');z.62=2m(z.V.O)||0;z.9K=z.fy;1r;1e\'O\':z.e=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'O\');z.62=2m(z.V.O)||0;z.9K=z.fy;8H=-1;1r}z.e2=12 k.fx(z.el.K(0),k.H(H,z.G,u(){z.el.B(z.V);if(z.1u==\'4l\'){z.el.B(\'19\',\'1o\')}P z.el.B(\'19\',z.el.K(0).4s==\'1o\'?\'2B\':z.el.K(0).4s);k.2H(z.el.K(0),\'1n\')}),\'1G\');if(1u==\'in\'){z.e.1L(z.62+2a*8H,z.62);z.e2.1L(0,1)}P{z.e.1L(z.62,z.62+2a*8H);z.e2.1L(1,0)}};k.fn.23({j0:u(H,W,J,G){E q.1w(\'1n\',u(){12 k.fx.9L(q,H,W,J,\'fp\',G)})},iW:u(H,W,J,G){E q.1w(\'1n\',u(){12 k.fx.9L(q,H,W,J,\'9M\',G)})},iV:u(H,W,J,G){E q.1w(\'1n\',u(){12 k.fx.9L(q,H,W,J,\'3R\',G)})}});k.fx.9L=u(e,H,W,J,1u,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;z.el=k(e);z.G=2g J==\'4V\'?J:G||S;z.J=2g J==\'u\'?J:S;if(1u==\'3R\'){1u=z.el.B(\'19\')==\'1o\'?\'9M\':\'fp\'}z.H=H;z.W=W&&W.1K==bn?W:20;z.fx=k.fx.9P(e);z.1u=1u;z.21=u(){if(z.J&&z.J.1K==2A){z.J.1D(z.el.K(0))}if(z.1u==\'9M\'){z.el.1Y()}P{z.el.2G()}k.fx.a0(z.fx.3p.K(0),z.fx.V);k.2H(z.el.K(0),\'1n\')};if(z.1u==\'9M\'){z.el.1Y();z.fx.3p.B(\'W\',z.W+\'U\').B(\'Z\',\'9R\');z.ef=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,u(){z.ef=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'W\');z.ef.1L(z.W,z.fx.V.1q.hb)}),\'Z\');z.ef.1L(0,z.fx.V.1q.1C)}P{z.ef=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,u(){z.ef=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'Z\');z.ef.1L(z.fx.V.1q.1C,0)}),\'W\');z.ef.1L(z.fx.V.1q.hb,z.W)}};k.fn.iR=u(H,4x,J,G){E q.1w(\'fv\',u(){q.6W=k(q).1p("14")||\'\';G=2g J==\'4V\'?J:G||S;J=2g J==\'u\'?J:S;D 9S=k(q).B(\'7i\');D 8I=q.31;7d(9S==\'cu\'&&8I){9S=k(8I).B(\'7i\');8I=8I.31}k(q).B(\'7i\',4x);if(2g q.6W==\'8T\')q.6W=q.6W["9X"];k(q).5w({\'7i\':9S},H,G,u(){k.2H(q,\'fv\');if(2g k(q).1p("14")==\'8T\'){k(q).1p("14")["9X"]="";k(q).1p("14")["9X"]=q.6W}P{k(q).1p("14",q.6W)}if(J)J.1D(q)})})};k.fn.23({iT:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.5m(q,H,J,\'49\',\'6g\',G)})},iU:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.5m(q,H,J,\'4j\',\'6g\',G)})},j1:u(H,J,G){E q.1w(\'1n\',u(){if(k.B(q,\'19\')==\'1o\'){12 k.fx.5m(q,H,J,\'4j\',\'6Z\',G)}P{12 k.fx.5m(q,H,J,\'4j\',\'6g\',G)}})},j2:u(H,J,G){E q.1w(\'1n\',u(){if(k.B(q,\'19\')==\'1o\'){12 k.fx.5m(q,H,J,\'49\',\'6Z\',G)}P{12 k.fx.5m(q,H,J,\'49\',\'6g\',G)}})},j9:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.5m(q,H,J,\'49\',\'6Z\',G)})},ja:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.5m(q,H,J,\'4j\',\'6Z\',G)})}});k.fx.5m=u(e,H,J,2S,1u,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;D 73=I;z.el=k(e);z.G=2g J==\'4V\'?J:G||S;z.J=2g J==\'u\'?J:S;z.1u=1u;z.H=H;z.2i=k.1a.2o(e);z.V={};z.V.Y=z.el.B(\'Y\');z.V.19=z.el.B(\'19\');if(z.V.19==\'1o\'){5Y=z.el.B(\'3n\');z.el.1Y();73=1b}z.V.Q=z.el.B(\'Q\');z.V.O=z.el.B(\'O\');if(73){z.el.2G();z.el.B(\'3n\',5Y)}z.V.Z=z.2i.w+\'U\';z.V.W=z.2i.h+\'U\';z.V.2U=z.el.B(\'2U\');z.2i.Q=T(z.V.Q)||0;z.2i.O=T(z.V.O)||0;if(z.V.Y!=\'2s\'&&z.V.Y!=\'1P\'){z.el.B(\'Y\',\'2s\')}z.el.B(\'2U\',\'2K\').B(\'W\',1u==\'6Z\'&&2S==\'49\'?1:z.2i.h+\'U\').B(\'Z\',1u==\'6Z\'&&2S==\'4j\'?1:z.2i.w+\'U\');z.21=u(){z.el.B(z.V);if(z.1u==\'6g\')z.el.2G();P z.el.1Y();k.2H(z.el.K(0),\'1n\')};3m(2S){1e\'49\':z.eh=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'W\');z.et=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'Q\');if(z.1u==\'6g\'){z.eh.1L(z.2i.h,0);z.et.1L(z.2i.Q,z.2i.Q+z.2i.h/2)}P{z.eh.1L(0,z.2i.h);z.et.1L(z.2i.Q+z.2i.h/2,z.2i.Q)}1r;1e\'4j\':z.eh=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'Z\');z.et=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'O\');if(z.1u==\'6g\'){z.eh.1L(z.2i.w,0);z.et.1L(z.2i.O,z.2i.O+z.2i.w/2)}P{z.eh.1L(0,z.2i.w);z.et.1L(z.2i.O+z.2i.w/2,z.2i.O)}1r}};k.fn.bg=u(H,3V,J){E q.1w(\'1n\',u(){if(!k.4K(q)){k.2H(q,\'1n\');E I}D fx=12 k.fx.bg(q,H,3V,J);fx.bf()})};k.fx.bg=u(el,H,3V,J){D z=q;z.3V=3V;z.5y=1;z.el=el;z.H=H;z.J=J;k(z.el).1Y();z.bf=u(){z.5y++;z.e=12 k.fx(z.el,k.H(z.H,u(){z.ef=12 k.fx(z.el,k.H(z.H,u(){if(z.5y<=z.3V)z.bf();P{k.2H(z.el,\'1n\');if(z.J&&z.J.1K==2A){z.J.1D(z.el)}}}),\'1G\');z.ef.1L(0,1)}),\'1G\');z.e.1L(1,0)}};k.fn.23({jb:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.6G(q,H,1,2a,1b,J,\'fa\',G)})},jc:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.6G(q,H,2a,1,1b,J,\'b4\',G)})},j8:u(H,J,G){E q.1w(\'1n\',u(){D G=G||\'fl\';12 k.fx.6G(q,H,2a,f8,1b,J,\'6h\',G)})},6G:u(H,57,30,6H,J,G){E q.1w(\'1n\',u(){12 k.fx.6G(q,H,57,30,6H,J,\'6G\',G)})}});k.fx.6G=u(e,H,57,30,6H,J,1u,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;z.el=k(e);z.57=T(57)||2a;z.30=T(30)||2a;z.G=2g J==\'4V\'?J:G||S;z.J=2g J==\'u\'?J:S;z.1m=k.H(H).1m;z.6H=6H||S;z.2i=k.1a.2o(e);z.V={Z:z.el.B(\'Z\'),W:z.el.B(\'W\'),4A:z.el.B(\'4A\')||\'2a%\',Y:z.el.B(\'Y\'),19:z.el.B(\'19\'),Q:z.el.B(\'Q\'),O:z.el.B(\'O\'),2U:z.el.B(\'2U\'),4S:z.el.B(\'4S\'),5O:z.el.B(\'5O\'),5Q:z.el.B(\'5Q\'),5b:z.el.B(\'5b\'),5M:z.el.B(\'5M\'),5U:z.el.B(\'5U\'),5n:z.el.B(\'5n\'),4X:z.el.B(\'4X\')};z.Z=T(z.V.Z)||e.4c||0;z.W=T(z.V.W)||e.5W||0;z.Q=T(z.V.Q)||0;z.O=T(z.V.O)||0;1q=[\'em\',\'U\',\'j7\',\'%\'];24(i in 1q){if(z.V.4A.3J(1q[i])>0){z.fg=1q[i];z.4A=2m(z.V.4A)}if(z.V.4S.3J(1q[i])>0){z.fc=1q[i];z.bw=2m(z.V.4S)||0}if(z.V.5O.3J(1q[i])>0){z.fe=1q[i];z.bc=2m(z.V.5O)||0}if(z.V.5Q.3J(1q[i])>0){z.fL=1q[i];z.bA=2m(z.V.5Q)||0}if(z.V.5b.3J(1q[i])>0){z.g8=1q[i];z.bt=2m(z.V.5b)||0}if(z.V.5M.3J(1q[i])>0){z.g4=1q[i];z.bx=2m(z.V.5M)||0}if(z.V.5U.3J(1q[i])>0){z.g9=1q[i];z.bv=2m(z.V.5U)||0}if(z.V.5n.3J(1q[i])>0){z.gc=1q[i];z.bj=2m(z.V.5n)||0}if(z.V.4X.3J(1q[i])>0){z.fK=1q[i];z.b7=2m(z.V.4X)||0}}if(z.V.Y!=\'2s\'&&z.V.Y!=\'1P\'){z.el.B(\'Y\',\'2s\')}z.el.B(\'2U\',\'2K\');z.1u=1u;3m(z.1u){1e\'fa\':z.4b=z.Q+z.2i.h/2;z.5a=z.Q;z.4k=z.O+z.2i.w/2;z.59=z.O;1r;1e\'b4\':z.5a=z.Q+z.2i.h/2;z.4b=z.Q;z.59=z.O+z.2i.w/2;z.4k=z.O;1r;1e\'6h\':z.5a=z.Q-z.2i.h/4;z.4b=z.Q;z.59=z.O-z.2i.w/4;z.4k=z.O;1r}z.be=I;z.t=(12 7g).7z();z.4w=u(){5T(z.2I);z.2I=S};z.2D=u(){if(z.be==I){z.el.1Y();z.be=1b}D t=(12 7g).7z();D n=t-z.t;D p=n/z.1m;if(t>=z.1m+z.t){9T(u(){o=1;if(z.1u){t=z.5a;l=z.59;if(z.1u==\'6h\')o=0}z.bs(z.30,l,t,1b,o)},13);z.4w()}P{o=1;if(!k.G||!k.G[z.G]){s=((-18.5H(p*18.2Q)/2)+0.5)*(z.30-z.57)+z.57}P{s=k.G[z.G](p,n,z.57,(z.30-z.57),z.1m)}if(z.1u){if(!k.G||!k.G[z.G]){t=((-18.5H(p*18.2Q)/2)+0.5)*(z.5a-z.4b)+z.4b;l=((-18.5H(p*18.2Q)/2)+0.5)*(z.59-z.4k)+z.4k;if(z.1u==\'6h\')o=((-18.5H(p*18.2Q)/2)+0.5)*(-0.9Y)+0.9Y}P{t=k.G[z.G](p,n,z.4b,(z.5a-z.4b),z.1m);l=k.G[z.G](p,n,z.4k,(z.59-z.4k),z.1m);if(z.1u==\'6h\')o=k.G[z.G](p,n,0.9Y,-0.9Y,z.1m)}}z.bs(s,l,t,I,o)}};z.2I=6V(u(){z.2D()},13);z.bs=u(4q,O,Q,fM,1G){z.el.B(\'W\',z.W*4q/2a+\'U\').B(\'Z\',z.Z*4q/2a+\'U\').B(\'O\',O+\'U\').B(\'Q\',Q+\'U\').B(\'4A\',z.4A*4q/2a+z.fg);if(z.bw)z.el.B(\'4S\',z.bw*4q/2a+z.fc);if(z.bc)z.el.B(\'5O\',z.bc*4q/2a+z.fe);if(z.bA)z.el.B(\'5Q\',z.bA*4q/2a+z.fL);if(z.bt)z.el.B(\'5b\',z.bt*4q/2a+z.g8);if(z.bx)z.el.B(\'5M\',z.bx*4q/2a+z.g4);if(z.bv)z.el.B(\'5U\',z.bv*4q/2a+z.g9);if(z.bj)z.el.B(\'5n\',z.bj*4q/2a+z.gc);if(z.b7)z.el.B(\'4X\',z.b7*4q/2a+z.fK);if(z.1u==\'6h\'){if(1X.71)z.el.K(0).14.5E="8V(1G="+1G*2a+")";z.el.K(0).14.1G=1G}if(fM){if(z.6H){z.el.B(z.V)}if(z.1u==\'b4\'||z.1u==\'6h\'){z.el.B(\'19\',\'1o\');if(z.1u==\'6h\'){if(1X.71)z.el.K(0).14.5E="8V(1G="+2a+")";z.el.K(0).14.1G=1}}P z.el.B(\'19\',\'2B\');if(z.J)z.J.1D(z.el.K(0));k.2H(z.el.K(0),\'1n\')}}};k.fn.23({9U:u(H,1O,G){o=k.H(H);E q.1w(\'1n\',u(){12 k.fx.9U(q,o,1O,G)})},j6:u(H,1O,G){E q.1E(u(){k(\'a[@3h*="#"]\',q).5h(u(e){fW=q.3h.7C(\'#\');k(\'#\'+fW[1]).9U(H,1O,G);E I})})}});k.fx.9U=u(e,o,1O,G){D z=q;z.o=o;z.e=e;z.1O=/fT|gd/.48(1O)?1O:I;z.G=G;p=k.1a.3w(e);s=k.1a.6z();z.4w=u(){5T(z.2I);z.2I=S;k.2H(z.e,\'1n\')};z.t=(12 7g).7z();s.h=s.h>s.ih?(s.h-s.ih):s.h;s.w=s.w>s.iw?(s.w-s.iw):s.w;z.5a=p.y>s.h?s.h:p.y;z.59=p.x>s.w?s.w:p.x;z.4b=s.t;z.4k=s.l;z.2D=u(){D t=(12 7g).7z();D n=t-z.t;D p=n/z.o.1m;if(t>=z.o.1m+z.t){z.4w();9T(u(){z.d3(z.5a,z.59)},13)}P{if(!z.1O||z.1O==\'fT\'){if(!k.G||!k.G[z.G]){9V=((-18.5H(p*18.2Q)/2)+0.5)*(z.5a-z.4b)+z.4b}P{9V=k.G[z.G](p,n,z.4b,(z.5a-z.4b),z.o.1m)}}P{9V=z.4b}if(!z.1O||z.1O==\'gd\'){if(!k.G||!k.G[z.G]){9W=((-18.5H(p*18.2Q)/2)+0.5)*(z.59-z.4k)+z.4k}P{9W=k.G[z.G](p,n,z.4k,(z.59-z.4k),z.o.1m)}}P{9W=z.4k}z.d3(9V,9W)}};z.d3=u(t,l){1X.j4(l,t)};z.2I=6V(u(){z.2D()},13)};k.fn.cY=u(3V,J){E q.1w(\'1n\',u(){if(!k.4K(q)){k.2H(q,\'1n\');E I}D e=12 k.fx.cY(q,3V,J);e.cG()})};k.fx.cY=u(e,3V,J){D z=q;z.el=k(e);z.el.1Y();z.3V=T(3V)||3;z.J=J;z.5y=1;z.V={};z.V.Y=z.el.B(\'Y\');z.V.Q=T(z.el.B(\'Q\'))||0;z.V.O=T(z.el.B(\'O\'))||0;if(z.V.Y!=\'2s\'&&z.V.Y!=\'1P\'){z.el.B(\'Y\',\'2s\')}z.cG=u(){z.5y++;z.e=12 k.fx(z.el.K(0),{1m:60,21:u(){z.e=12 k.fx(z.el.K(0),{1m:60,21:u(){z.e=12 k.fx(e,{1m:60,21:u(){if(z.5y<=z.3V)z.cG();P{z.el.B(\'Y\',z.V.Y).B(\'Q\',z.V.Q+\'U\').B(\'O\',z.V.O+\'U\');k.2H(z.el.K(0),\'1n\');if(z.J&&z.J.1K==2A){z.J.1D(z.el.K(0))}}}},\'O\');z.e.1L(z.V.O-20,z.V.O)}},\'O\');z.e.1L(z.V.O+20,z.V.O-20)}},\'O\');z.e.1L(z.V.O,z.V.O+20)}};k.fn.23({fo:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4F\',\'in\',G)})},fq:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4F\',\'4l\',G)})},iY:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4F\',\'3R\',G)})},iX:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4r\',\'in\',G)})},jr:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4r\',\'4l\',G)})},jq:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4r\',\'3R\',G)})},jp:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'O\',\'in\',G)})},jn:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'O\',\'4l\',G)})},jm:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'O\',\'3R\',G)})},iP:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'2L\',\'in\',G)})},ic:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'2L\',\'4l\',G)})},ib:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'2L\',\'3R\',G)})}});k.fx.1z=u(e,H,J,2S,1u,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;z.el=k(e);z.G=2g J==\'4V\'?J:G||S;z.J=2g J==\'u\'?J:S;if(1u==\'3R\'){1u=z.el.B(\'19\')==\'1o\'?\'in\':\'4l\'}if(!e.4s)e.4s=z.el.B(\'19\');z.el.1Y();z.H=H;z.fx=k.fx.9P(e);z.1u=1u;z.2S=2S;z.21=u(){if(z.1u==\'4l\')z.el.B(\'3n\',\'2K\');k.fx.a0(z.fx.3p.K(0),z.fx.V);if(z.1u==\'in\'){z.el.B(\'19\',z.el.K(0).4s==\'1o\'?\'2B\':z.el.K(0).4s)}P{z.el.B(\'19\',\'1o\');z.el.B(\'3n\',\'dd\')}if(z.J&&z.J.1K==2A){z.J.1D(z.el.K(0))}k.2H(z.el.K(0),\'1n\')};3m(z.2S){1e\'4F\':z.ef=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'Q\');z.7v=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G),\'W\');if(z.1u==\'in\'){z.ef.1L(-z.fx.V.1q.hb,0);z.7v.1L(0,z.fx.V.1q.hb)}P{z.ef.1L(0,-z.fx.V.1q.hb);z.7v.1L(z.fx.V.1q.hb,0)}1r;1e\'4r\':z.ef=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'Q\');if(z.1u==\'in\'){z.ef.1L(z.fx.V.1q.hb,0)}P{z.ef.1L(0,z.fx.V.1q.hb)}1r;1e\'O\':z.ef=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'O\');z.7v=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G),\'Z\');if(z.1u==\'in\'){z.ef.1L(-z.fx.V.1q.1C,0);z.7v.1L(0,z.fx.V.1q.1C)}P{z.ef.1L(0,-z.fx.V.1q.1C);z.7v.1L(z.fx.V.1q.1C,0)}1r;1e\'2L\':z.ef=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'O\');if(z.1u==\'in\'){z.ef.1L(z.fx.V.1q.1C,0)}P{z.ef.1L(0,z.fx.V.1q.1C)}1r}};k.3f=S;k.fn.ig=u(o){E q.1w(\'1n\',u(){12 k.fx.dG(q,o)})};k.fx.dG=u(e,o){if(k.3f==S){k(\'2e\',1h).1S(\'<22 id="3f"></22>\');k.3f=k(\'#3f\')}k.3f.B(\'19\',\'2B\').B(\'Y\',\'1P\');D z=q;z.el=k(e);if(!o||!o.30){E}if(o.30.1K==b0&&1h.9e(o.30)){o.30=1h.9e(o.30)}P if(!o.30.dq){E}if(!o.1m){o.1m=g5}z.1m=o.1m;z.30=o.30;z.8r=o.3l;z.21=o.21;if(z.8r){k.3f.2R(z.8r)}z.a3=0;z.a2=0;if(k.dF){z.a3=(T(k.3f.B(\'5b\'))||0)+(T(k.3f.B(\'5O\'))||0)+(T(k.3f.B(\'4X\'))||0)+(T(k.3f.B(\'5U\'))||0);z.a2=(T(k.3f.B(\'4S\'))||0)+(T(k.3f.B(\'5Q\'))||0)+(T(k.3f.B(\'5M\'))||0)+(T(k.3f.B(\'5n\'))||0)}z.26=k.23(k.1a.3w(z.el.K(0)),k.1a.2o(z.el.K(0)));z.2T=k.23(k.1a.3w(z.30),k.1a.2o(z.30));z.26.1C-=z.a3;z.26.hb-=z.a2;z.2T.1C-=z.a3;z.2T.hb-=z.a2;z.J=o.21;k.3f.B(\'Z\',z.26.1C+\'U\').B(\'W\',z.26.hb+\'U\').B(\'Q\',z.26.y+\'U\').B(\'O\',z.26.x+\'U\').5w({Q:z.2T.y,O:z.2T.x,Z:z.2T.1C,W:z.2T.hb},z.1m,u(){if(z.8r)k.3f.4i(z.8r);k.3f.B(\'19\',\'1o\');if(z.21&&z.21.1K==2A){z.21.1D(z.el.K(0),[z.30])}k.2H(z.el.K(0),\'1n\')})};k.1v={M:{2E:10,ec:\'1Q/iJ.eZ\',e3:\'<1T 2J="1Q/6g.da" />\',eW:0.8,d8:\'iN a6\',dc:\'57\',3W:8J},jQ:I,jW:I,6j:S,8m:I,8k:I,d1:u(2k){if(!k.1v.8k||k.1v.8m)E;D 3K=2k.7L||2k.7K||-1;3m(3K){1e 35:if(k.1v.6j)k.1v.26(S,k(\'a[@4I=\'+k.1v.6j+\']:jJ\').K(0));1r;1e 36:if(k.1v.6j)k.1v.26(S,k(\'a[@4I=\'+k.1v.6j+\']:jL\').K(0));1r;1e 37:1e 8:1e 33:1e 80:1e kb:D 9p=k(\'#87\');if(9p.K(0).53!=S){9p.K(0).53.1D(9p.K(0))}1r;1e 38:1r;1e 39:1e 34:1e 32:1e gl:1e 78:D 9k=k(\'#88\');if(9k.K(0).53!=S){9k.K(0).53.1D(9k.K(0))}1r;1e 40:1r;1e 27:k.1v.au();1r}},7q:u(M){if(M)k.23(k.1v.M,M);if(1X.2k){k(\'2e\',1h).1J(\'6y\',k.1v.d1)}P{k(1h).1J(\'6y\',k.1v.d1)}k(\'a\').1E(u(){el=k(q);en=el.1p(\'4I\')||\'\';e9=el.1p(\'3h\')||\'\';ev=/\\.da|\\.gw|\\.8X|\\.eZ|\\.gn/g;if(e9.6c().d5(ev)!=S&&en.6c().3J(\'eU\')==0){el.1J(\'5h\',k.1v.26)}});if(k.3a.4t){3A=1h.3F(\'3A\');k(3A).1p({id:\'cN\',2J:\'ek:I;\',ej:\'cD\',ep:\'cD\'}).B({19:\'1o\',Y:\'1P\',Q:\'0\',O:\'0\',5E:\'9n:9w.9y.cC(1G=0)\'});k(\'2e\').1S(3A)}8n=1h.3F(\'22\');k(8n).1p(\'id\',\'cP\').B({Y:\'1P\',19:\'1o\',Q:\'0\',O:\'0\',1G:0}).1S(1h.8M(\' \')).1J(\'5h\',k.1v.au);6A=1h.3F(\'22\');k(6A).1p(\'id\',\'eK\').B({4X:k.1v.M.2E+\'U\'}).1S(1h.8M(\' \'));cE=1h.3F(\'22\');k(cE).1p(\'id\',\'dg\').B({4X:k.1v.M.2E+\'U\',5n:k.1v.M.2E+\'U\'}).1S(1h.8M(\' \'));cF=1h.3F(\'a\');k(cF).1p({id:\'gg\',3h:\'#\'}).B({Y:\'1P\',2L:k.1v.M.2E+\'U\',Q:\'0\'}).1S(k.1v.M.e3).1J(\'5h\',k.1v.au);7m=1h.3F(\'22\');k(7m).1p(\'id\',\'cM\').B({Y:\'2s\',cA:\'O\',6w:\'0 9F\',3I:1}).1S(6A).1S(cE).1S(cF);2b=1h.3F(\'1T\');2b.2J=k.1v.M.ec;k(2b).1p(\'id\',\'eM\').B({Y:\'1P\'});4G=1h.3F(\'a\');k(4G).1p({id:\'87\',3h:\'#\'}).B({Y:\'1P\',19:\'1o\',2U:\'2K\',ey:\'1o\'}).1S(1h.8M(\' \'));4M=1h.3F(\'a\');k(4M).1p({id:\'88\',3h:\'#\'}).B({Y:\'1P\',2U:\'2K\',ey:\'1o\'}).1S(1h.8M(\' \'));1Z=1h.3F(\'22\');k(1Z).1p(\'id\',\'eE\').B({19:\'1o\',Y:\'2s\',2U:\'2K\',cA:\'O\',6w:\'0 9F\',Q:\'0\',O:\'0\',3I:2}).1S([2b,4G,4M]);6F=1h.3F(\'22\');k(6F).1p(\'id\',\'ao\').B({19:\'1o\',Y:\'1P\',2U:\'2K\',Q:\'0\',O:\'0\',cA:\'cv\',7i:\'cu\',hC:\'0\'}).1S([1Z,7m]);k(\'2e\').1S(8n).1S(6F)},26:u(e,C){el=C?k(C):k(q);9t=el.1p(\'4I\');D 6B,4u,4G,4M;if(9t!=\'eU\'){k.1v.6j=9t;8Y=k(\'a[@4I=\'+9t+\']\');6B=8Y.1N();4u=8Y.cZ(C?C:q);4G=8Y.K(4u-1);4M=8Y.K(4u+1)}89=el.1p(\'3h\');6A=el.1p(\'4g\');3O=k.1a.6z();8n=k(\'#cP\');if(!k.1v.8k){k.1v.8k=1b;if(k.3a.4t){k(\'#cN\').B(\'W\',18.3r(3O.ih,3O.h)+\'U\').B(\'Z\',18.3r(3O.iw,3O.w)+\'U\').1Y()}8n.B(\'W\',18.3r(3O.ih,3O.h)+\'U\').B(\'Z\',18.3r(3O.iw,3O.w)+\'U\').1Y().fX(cO,k.1v.M.eW,u(){k.1v.cw(89,6A,3O,6B,4u,4G,4M)});k(\'#ao\').B(\'Z\',18.3r(3O.iw,3O.w)+\'U\')}P{k(\'#87\').K(0).53=S;k(\'#88\').K(0).53=S;k.1v.cw(89,6A,3O,6B,4u,4G,4M)}E I},cw:u(89,gP,3O,6B,4u,4G,4M){k(\'#cW\').bk();aX=k(\'#87\');aX.2G();aO=k(\'#88\');aO.2G();2b=k(\'#eM\');1Z=k(\'#eE\');6F=k(\'#ao\');7m=k(\'#cM\').B(\'3n\',\'2K\');k(\'#eK\').3x(6A);k.1v.8m=1b;if(6B)k(\'#dg\').3x(k.1v.M.d8+\' \'+(4u+1)+\' \'+k.1v.M.dc+\' \'+6B);if(4G){aX.K(0).53=u(){q.5B();k.1v.26(S,4G);E I}}if(4M){aO.K(0).53=u(){q.5B();k.1v.26(S,4M);E I}}2b.1Y();82=k.1a.2o(1Z.K(0));56=18.3r(82.1C,2b.K(0).Z+k.1v.M.2E*2);6f=18.3r(82.hb,2b.K(0).W+k.1v.M.2E*2);2b.B({O:(56-2b.K(0).Z)/2+\'U\',Q:(6f-2b.K(0).W)/2+\'U\'});1Z.B({Z:56+\'U\',W:6f+\'U\'}).1Y();dw=k.1a.bm();6F.B(\'Q\',3O.t+(dw.h/15)+\'U\');if(6F.B(\'19\')==\'1o\'){6F.1Y().7f(k.1v.M.3W)}6k=12 9s;k(6k).1p(\'id\',\'cW\').1J(\'hJ\',u(){56=6k.Z+k.1v.M.2E*2;6f=6k.W+k.1v.M.2E*2;2b.2G();1Z.5w({W:6f},82.hb!=6f?k.1v.M.3W:1,u(){1Z.5w({Z:56},82.1C!=56?k.1v.M.3W:1,u(){1Z.bG(6k);k(6k).B({Y:\'1P\',O:k.1v.M.2E+\'U\',Q:k.1v.M.2E+\'U\'}).7f(k.1v.M.3W,u(){db=k.1a.2o(7m.K(0));if(4G){aX.B({O:k.1v.M.2E+\'U\',Q:k.1v.M.2E+\'U\',Z:56/2-k.1v.M.2E*3+\'U\',W:6f-k.1v.M.2E*2+\'U\'}).1Y()}if(4M){aO.B({O:56/2+k.1v.M.2E*2+\'U\',Q:k.1v.M.2E+\'U\',Z:56/2-k.1v.M.2E*3+\'U\',W:6f-k.1v.M.2E*2+\'U\'}).1Y()}7m.B({Z:56+\'U\',Q:-db.hb+\'U\',3n:\'dd\'}).5w({Q:-1},k.1v.M.3W,u(){k.1v.8m=I})})})})});6k.2J=89},au:u(){k(\'#cW\').bk();k(\'#ao\').2G();k(\'#cM\').B(\'3n\',\'2K\');k(\'#cP\').fX(cO,0,u(){k(q).2G();if(k.3a.4t){k(\'#cN\').2G()}});k(\'#87\').K(0).53=S;k(\'#88\').K(0).53=S;k.1v.6j=S;k.1v.8k=I;k.1v.8m=I;E I}};k.R={1A:S,41:S,F:S,1s:S,1q:S,Y:S,9a:u(e){k.R.F=(q.d0)?q.d0:q;k.R.1s=k.1a.4a(e);k.R.1q={Z:T(k(k.R.F).B(\'Z\'))||0,W:T(k(k.R.F).B(\'W\'))||0};k.R.Y={Q:T(k(k.R.F).B(\'Q\'))||0,O:T(k(k.R.F).B(\'O\'))||0};k(1h).1J(\'3D\',k.R.cR).1J(\'5P\',k.R.cK);if(2g k.R.F.1k.g2===\'u\'){k.R.F.1k.g2.1D(k.R.F)}E I},cK:u(e){k(1h).3q(\'3D\',k.R.cR).3q(\'5P\',k.R.cK);if(2g k.R.F.1k.fN===\'u\'){k.R.F.1k.fN.1D(k.R.F)}k.R.F=S},cR:u(e){if(!k.R.F){E}1s=k.1a.4a(e);7p=k.R.Y.Q-k.R.1s.y+1s.y;7r=k.R.Y.O-k.R.1s.x+1s.x;7p=18.3r(18.3L(7p,k.R.F.1k.8g-k.R.1q.W),k.R.F.1k.7h);7r=18.3r(18.3L(7r,k.R.F.1k.8h-k.R.1q.Z),k.R.F.1k.70);if(2g k.R.F.1k.4m===\'u\'){D 8a=k.R.F.1k.4m.1D(k.R.F,[7r,7p]);if(2g 8a==\'hh\'&&8a.1g==2){7r=8a[0];7p=8a[1]}}k.R.F.14.Q=7p+\'U\';k.R.F.14.O=7r+\'U\';E I},26:u(e){k(1h).1J(\'3D\',k.R.8j).1J(\'5P\',k.R.8o);k.R.1A=q.1A;k.R.41=q.41;k.R.1s=k.1a.4a(e);k.R.1q={Z:T(k(q.1A).B(\'Z\'))||0,W:T(k(q.1A).B(\'W\'))||0};k.R.Y={Q:T(k(q.1A).B(\'Q\'))||0,O:T(k(q.1A).B(\'O\'))||0};if(k.R.1A.1k.4o){k.R.1A.1k.4o.1D(k.R.1A,[q])}E I},8o:u(){k(1h).3q(\'3D\',k.R.8j).3q(\'5P\',k.R.8o);if(k.R.1A.1k.3T){k.R.1A.1k.3T.1D(k.R.1A,[k.R.41])}k.R.1A=S;k.R.41=S},6i:u(dx,az){E 18.3L(18.3r(k.R.1q.Z+dx*az,k.R.1A.1k.av),k.R.1A.1k.6x)},6m:u(dy,az){E 18.3L(18.3r(k.R.1q.W+dy*az,k.R.1A.1k.8c),k.R.1A.1k.8b)},fb:u(W){E 18.3L(18.3r(W,k.R.1A.1k.8c),k.R.1A.1k.8b)},8j:u(e){if(k.R.1A==S){E}1s=k.1a.4a(e);dx=1s.x-k.R.1s.x;dy=1s.y-k.R.1s.y;1I={Z:k.R.1q.Z,W:k.R.1q.W};2z={Q:k.R.Y.Q,O:k.R.Y.O};3m(k.R.41){1e\'e\':1I.Z=k.R.6i(dx,1);1r;1e\'fj\':1I.Z=k.R.6i(dx,1);1I.W=k.R.6m(dy,1);1r;1e\'w\':1I.Z=k.R.6i(dx,-1);2z.O=k.R.Y.O-1I.Z+k.R.1q.Z;1r;1e\'5F\':1I.Z=k.R.6i(dx,-1);2z.O=k.R.Y.O-1I.Z+k.R.1q.Z;1I.W=k.R.6m(dy,1);1r;1e\'76\':1I.W=k.R.6m(dy,-1);2z.Q=k.R.Y.Q-1I.W+k.R.1q.W;1I.Z=k.R.6i(dx,-1);2z.O=k.R.Y.O-1I.Z+k.R.1q.Z;1r;1e\'n\':1I.W=k.R.6m(dy,-1);2z.Q=k.R.Y.Q-1I.W+k.R.1q.W;1r;1e\'at\':1I.W=k.R.6m(dy,-1);2z.Q=k.R.Y.Q-1I.W+k.R.1q.W;1I.Z=k.R.6i(dx,1);1r;1e\'s\':1I.W=k.R.6m(dy,1);1r}if(k.R.1A.1k.4v){if(k.R.41==\'n\'||k.R.41==\'s\')4p=1I.W*k.R.1A.1k.4v;P 4p=1I.Z;4W=k.R.fb(4p*k.R.1A.1k.4v);4p=4W/k.R.1A.1k.4v;3m(k.R.41){1e\'n\':1e\'76\':1e\'at\':2z.Q+=1I.W-4W;1r}3m(k.R.41){1e\'76\':1e\'w\':1e\'5F\':2z.O+=1I.Z-4p;1r}1I.W=4W;1I.Z=4p}if(2z.Q<k.R.1A.1k.7h){4W=1I.W+2z.Q-k.R.1A.1k.7h;2z.Q=k.R.1A.1k.7h;if(k.R.1A.1k.4v){4p=4W/k.R.1A.1k.4v;3m(k.R.41){1e\'76\':1e\'w\':1e\'5F\':2z.O+=1I.Z-4p;1r}1I.Z=4p}1I.W=4W}if(2z.O<k.R.1A.1k.70){4p=1I.Z+2z.O-k.R.1A.1k.70;2z.O=k.R.1A.1k.70;if(k.R.1A.1k.4v){4W=4p*k.R.1A.1k.4v;3m(k.R.41){1e\'n\':1e\'76\':1e\'at\':2z.Q+=1I.W-4W;1r}1I.W=4W}1I.Z=4p}if(2z.Q+1I.W>k.R.1A.1k.8g){1I.W=k.R.1A.1k.8g-2z.Q;if(k.R.1A.1k.4v){1I.Z=1I.W/k.R.1A.1k.4v}}if(2z.O+1I.Z>k.R.1A.1k.8h){1I.Z=k.R.1A.1k.8h-2z.O;if(k.R.1A.1k.4v){1I.W=1I.Z*k.R.1A.1k.4v}}D 6p=I;if(k.R.1A.1k.f7){6p=k.R.1A.1k.f7.1D(k.R.1A,[1I,2z]);if(6p){if(6p.1q){k.23(1I,6p.1q)}if(6p.Y){k.23(2z,6p.Y)}}}8d=k.R.1A.14;8d.O=2z.O+\'U\';8d.Q=2z.Q+\'U\';8d.Z=1I.Z+\'U\';8d.W=1I.W+\'U\';E I},2r:u(M){if(!M||!M.3Z||M.3Z.1K!=7M){E}E q.1E(u(){D el=q;el.1k=M;el.1k.av=M.av||10;el.1k.8c=M.8c||10;el.1k.6x=M.6x||6P;el.1k.8b=M.8b||6P;el.1k.7h=M.7h||-aC;el.1k.70=M.70||-aC;el.1k.8h=M.8h||6P;el.1k.8g=M.8g||6P;d6=k(el).B(\'Y\');if(!(d6==\'2s\'||d6==\'1P\')){el.14.Y=\'2s\'}fS=/n|at|e|fj|s|5F|w|76/g;24(i in el.1k.3Z){if(i.6c().d5(fS)!=S){if(el.1k.3Z[i].1K==b0){3v=k(el.1k.3Z[i]);if(3v.1N()>0){el.1k.3Z[i]=3v.K(0)}}if(el.1k.3Z[i].4Y){el.1k.3Z[i].1A=el;el.1k.3Z[i].41=i;k(el.1k.3Z[i]).1J(\'5v\',k.R.26)}}}if(el.1k.5S){if(2g el.1k.5S===\'4V\'){aV=k(el.1k.5S);if(aV.1N()>0){aV.1E(u(){q.d0=el});aV.1J(\'5v\',k.R.9a)}}P if(el.1k.5S==1b){k(q).1J(\'5v\',k.R.9a)}}})},4U:u(){E q.1E(u(){D el=q;24(i in el.1k.3Z){el.1k.3Z[i].1A=S;el.1k.3Z[i].41=S;k(el.1k.3Z[i]).3q(\'5v\',k.R.26)}if(el.1k.5S){if(2g el.1k.5S===\'4V\'){3v=k(el.1k.5S);if(3v.1N()>0){3v.3q(\'5v\',k.R.9a)}}P if(el.1k.5S==1b){k(q).3q(\'5v\',k.R.9a)}}el.1k=S})}};k.fn.23({hz:k.R.2r,hs:k.R.4U});k.2C=S;k.7n=I;k.3k=S;k.7o=[];k.9v=u(e){D 3K=e.7L||e.7K||-1;if(3K==17||3K==16){k.7n=1b}};k.9u=u(e){k.7n=I};k.dL=u(e){q.f.1s=k.1a.4a(e);q.f.1M=k.23(k.1a.3w(q),k.1a.2o(q));q.f.3e=k.1a.6z(q);q.f.1s.x-=q.f.1M.x;q.f.1s.y-=q.f.1M.y;k(q).1S(k.2C.K(0));if(q.f.hc)k.2C.2R(q.f.hc).B(\'19\',\'2B\');k.2C.B({19:\'2B\',Z:\'2P\',W:\'2P\'});if(q.f.o){k.2C.B(\'1G\',q.f.o)}k.3k=q;k.96=I;k.7o=[];q.f.el.1E(u(){q.1M={x:q.8t+(q.4Z&&!k.3a.7I?T(q.4Z.5b)||0:0)+(k.3k.3c||0),y:q.8G+(q.4Z&&!k.3a.7I?T(q.4Z.4S)||0:0)+(k.3k.3d||0),1C:q.4c,hb:q.5W};if(q.s==1b){if(k.7n==I){q.s=I;k(q).4i(k.3k.f.7j)}P{k.96=1b;k.7o[k.7o.1g]=k.1p(q,\'id\')}}});k.am.1D(q,[e]);k(1h).1J(\'3D\',k.am).1J(\'5P\',k.cX);E I};k.am=u(e){if(!k.3k)E;k.fd.1D(k.3k,[e])};k.fd=u(e){if(!k.3k)E;D 1s=k.1a.4a(e);D 3e=k.1a.6z(k.3k);1s.x+=3e.l-q.f.3e.l-q.f.1M.x;1s.y+=3e.t-q.f.3e.t-q.f.1M.y;D 93=18.3L(1s.x,q.f.1s.x);D 5F=18.3L(18.3S(1s.x-q.f.1s.x),18.3S(q.f.3e.w-93));D 99=18.3L(1s.y,q.f.1s.y);D 9g=18.3L(18.3S(1s.y-q.f.1s.y),18.3S(q.f.3e.h-99));if(q.3d>0&&1s.y-20<q.3d){D 3X=18.3L(3e.t,10);99-=3X;9g+=3X;q.3d-=3X}P if(q.3d+q.f.1M.h<q.f.3e.h&&1s.y+20>q.3d+q.f.1M.h){D 3X=18.3L(q.f.3e.h-q.3d,10);q.3d+=3X;if(q.3d!=3e.t)9g+=3X}if(q.3c>0&&1s.x-20<q.3c){D 3X=18.3L(3e.l,10);93-=3X;5F+=3X;q.3c-=3X}P if(q.3c+q.f.1M.w<q.f.3e.w&&1s.x+20>q.3c+q.f.1M.w){D 3X=18.3L(q.f.3e.w-q.3c,10);q.3c+=3X;if(q.3c!=3e.l)5F+=3X}k.2C.B({O:93+\'U\',Q:99+\'U\',Z:5F+\'U\',W:9g+\'U\'});k.2C.l=93+q.f.3e.l;k.2C.t=99+q.f.3e.t;k.2C.r=k.2C.l+5F;k.2C.b=k.2C.t+9g;k.96=I;q.f.el.1E(u(){aw=k.7o.3J(k.1p(q,\'id\'));if(!(q.1M.x>k.2C.r||(q.1M.x+q.1M.1C)<k.2C.l||q.1M.y>k.2C.b||(q.1M.y+q.1M.hb)<k.2C.t)){k.96=1b;if(q.s!=1b){q.s=1b;k(q).2R(k.3k.f.7j)}if(aw!=-1){q.s=I;k(q).4i(k.3k.f.7j)}}P if((q.s==1b)&&(aw==-1)){q.s=I;k(q).4i(k.3k.f.7j)}P if((!q.s)&&(k.7n==1b)&&(aw!=-1)){q.s=1b;k(q).2R(k.3k.f.7j)}});E I};k.cX=u(e){if(!k.3k)E;k.g0.1D(k.3k,[e])};k.g0=u(e){k(1h).3q(\'3D\',k.am).3q(\'5P\',k.cX);if(!k.3k)E;k.2C.B(\'19\',\'1o\');if(q.f.hc)k.2C.4i(q.f.hc);k.3k=I;k(\'2e\').1S(k.2C.K(0));if(k.96==1b){if(q.f.98)q.f.98(k.cJ(k.1p(q,\'id\')))}P{if(q.f.9d)q.f.9d(k.cJ(k.1p(q,\'id\')))}k.7o=[]};k.cJ=u(s){D h=\'\';D o=[];if(a=k(\'#\'+s)){a.K(0).f.el.1E(u(){if(q.s==1b){if(h.1g>0){h+=\'&\'}h+=s+\'[]=\'+k.1p(q,\'id\');o[o.1g]=k.1p(q,\'id\')}})}E{7l:h,o:o}};k.fn.gZ=u(o){if(!k.2C){k(\'2e\',1h).1S(\'<22 id="2C"></22>\').1J(\'7B\',k.9v).1J(\'6y\',k.9u);k.2C=k(\'#2C\');k.2C.B({Y:\'1P\',19:\'1o\'});if(1X.2k){k(\'2e\',1h).1J(\'7B\',k.9v).1J(\'6y\',k.9u)}P{k(1h).1J(\'7B\',k.9v).1J(\'6y\',k.9u)}}if(!o){o={}}E q.1E(u(){if(q.eP)E;q.eP=1b;q.f={a:o.3C,o:o.1G?2m(o.1G):I,7j:o.eS?o.eS:I,hc:o.58?o.58:I,98:o.98?o.98:I,9d:o.9d?o.9d:I};q.f.el=k(\'.\'+o.3C);k(q).1J(\'5v\',k.dL).B(\'Y\',\'2s\')})};k.3b={bM:1,eH:u(3t){D 3t=3t;E q.1E(u(){q.4z.6s.1E(u(ab){k.3b.5c(q,3t[ab])})})},K:u(){D 3t=[];q.1E(u(cL){if(q.bI){3t[cL]=[];D C=q;D 1q=k.1a.2o(q);q.4z.6s.1E(u(ab){D x=q.8t;D y=q.8G;92=T(x*2a/(1q.w-q.4c));91=T(y*2a/(1q.h-q.5W));3t[cL][ab]=[92||0,91||0,x||0,y||0]})}});E 3t},ct:u(C){C.A.fu=C.A.28.w-C.A.1B.1C;C.A.fw=C.A.28.h-C.A.1B.hb;if(C.9r.4z.bC){9Z=C.9r.4z.6s.K(C.bF+1);if(9Z){C.A.28.w=(T(k(9Z).B(\'O\'))||0)+C.A.1B.1C;C.A.28.h=(T(k(9Z).B(\'Q\'))||0)+C.A.1B.hb}9Q=C.9r.4z.6s.K(C.bF-1);if(9Q){D cU=T(k(9Q).B(\'O\'))||0;D cH=T(k(9Q).B(\'O\'))||0;C.A.28.x+=cU;C.A.28.y+=cH;C.A.28.w-=cU;C.A.28.h-=cH}}C.A.g7=C.A.28.w-C.A.1B.1C;C.A.eC=C.A.28.h-C.A.1B.hb;if(C.A.2O){C.A.gx=((C.A.28.w-C.A.1B.1C)/C.A.2O)||1;C.A.gy=((C.A.28.h-C.A.1B.hb)/C.A.2O)||1;C.A.fU=C.A.g7/C.A.2O;C.A.fH=C.A.eC/C.A.2O}C.A.28.dx=C.A.28.x-C.A.2c.x;C.A.28.dy=C.A.28.y-C.A.2c.y;k.11.1c.B(\'9b\',\'ad\')},3H:u(C,x,y){if(C.A.2O){fE=T(x/C.A.fU);92=fE*2a/C.A.2O;ft=T(y/C.A.fH);91=ft*2a/C.A.2O}P{92=T(x*2a/C.A.fu);91=T(y*2a/C.A.fw)}C.A.b3=[92||0,91||0,x||0,y||0];if(C.A.3H)C.A.3H.1D(C,C.A.b3)},eI:u(2k){3K=2k.7L||2k.7K||-1;3m(3K){1e 35:k.3b.5c(q.3U,[ae,ae]);1r;1e 36:k.3b.5c(q.3U,[-ae,-ae]);1r;1e 37:k.3b.5c(q.3U,[-q.3U.A.gx||-1,0]);1r;1e 38:k.3b.5c(q.3U,[0,-q.3U.A.gy||-1]);1r;1e 39:k.3b.5c(q.3U,[q.3U.A.gx||1,0]);1r;1e 40:k.11.5c(q.3U,[0,q.3U.A.gy||1]);1r}},5c:u(C,Y){if(!C.A){E}C.A.1B=k.23(k.1a.3w(C),k.1a.2o(C));C.A.2c={x:T(k.B(C,\'O\'))||0,y:T(k.B(C,\'Q\'))||0};C.A.4n=k.B(C,\'Y\');if(C.A.4n!=\'2s\'&&C.A.4n!=\'1P\'){C.14.Y=\'2s\'}k.11.c5(C);k.3b.ct(C);dx=T(Y[0])||0;dy=T(Y[1])||0;2v=C.A.2c.x+dx;2q=C.A.2c.y+dy;if(C.A.2O){3y=k.11.c7.1D(C,[2v,2q,dx,dy]);if(3y.1K==7M){dx=3y.dx;dy=3y.dy}2v=C.A.2c.x+dx;2q=C.A.2c.y+dy}3y=k.11.ce.1D(C,[2v,2q,dx,dy]);if(3y&&3y.1K==7M){dx=3y.dx;dy=3y.dy}2v=C.A.2c.x+dx;2q=C.A.2c.y+dy;if(C.A.5i&&(C.A.3H||C.A.2Z)){k.3b.3H(C,2v,2q)}2v=!C.A.1O||C.A.1O==\'4j\'?2v:C.A.2c.x||0;2q=!C.A.1O||C.A.1O==\'49\'?2q:C.A.2c.y||0;C.14.O=2v+\'U\';C.14.Q=2q+\'U\'},2r:u(o){E q.1E(u(){if(q.bI==1b||!o.3C||!k.1a||!k.11||!k.1x){E}5x=k(o.3C,q);if(5x.1N()==0){E}D 4N={2p:\'94\',5i:1b,3H:o.3H&&o.3H.1K==2A?o.3H:S,2Z:o.2Z&&o.2Z.1K==2A?o.2Z:S,3v:q,1G:o.1G||I};if(o.2O&&T(o.2O)){4N.2O=T(o.2O)||1;4N.2O=4N.2O>0?4N.2O:1}if(5x.1N()==1)5x.7t(4N);P{k(5x.K(0)).7t(4N);4N.3v=S;5x.7t(4N)}5x.7B(k.3b.eI);5x.1p(\'bM\',k.3b.bM++);q.bI=1b;q.4z={};q.4z.er=4N.er;q.4z.2O=4N.2O;q.4z.6s=5x;q.4z.bC=o.bC?1b:I;bZ=q;bZ.4z.6s.1E(u(2N){q.bF=2N;q.9r=bZ});if(o.3t&&o.3t.1K==7F){24(i=o.3t.1g-1;i>=0;i--){if(o.3t[i].1K==7F&&o.3t[i].1g==2){el=q.4z.6s.K(i);if(el.4Y){k.3b.5c(el,o.3t[i])}}}}})}};k.fn.23({hN:k.3b.2r,hS:k.3b.eH,hG:k.3b.K});k.2u={5I:[],eg:u(){q.5B();X=q.31;id=k.1p(X,\'id\');if(k.2u.5I[id]!=S){1X.5T(k.2u.5I[id])}1z=X.L.3u+1;if(X.L.1Q.1g<1z){1z=1}1Q=k(\'1T\',X.L.5u);X.L.3u=1z;if(1Q.1N()>0){1Q.7a(X.L.3W,k.2u.95)}},dp:u(){q.5B();X=q.31;id=k.1p(X,\'id\');if(k.2u.5I[id]!=S){1X.5T(k.2u.5I[id])}1z=X.L.3u-1;1Q=k(\'1T\',X.L.5u);if(1z<1){1z=X.L.1Q.1g}X.L.3u=1z;if(1Q.1N()>0){1Q.7a(X.L.3W,k.2u.95)}},2I:u(c){X=1h.9e(c);if(X.L.6o){1z=X.L.3u;7d(1z==X.L.3u){1z=1+T(18.6o()*X.L.1Q.1g)}}P{1z=X.L.3u+1;if(X.L.1Q.1g<1z){1z=1}}1Q=k(\'1T\',X.L.5u);X.L.3u=1z;if(1Q.1N()>0){1Q.7a(X.L.3W,k.2u.95)}},go:u(o){D X;if(o&&o.1K==7M){if(o.2b){X=1h.9e(o.2b.X);5N=1X.hn.3h.7C("#");o.2b.6S=S;if(5N.1g==2){1z=T(5N[1]);1Y=5N[1].4E(1z,\'\');if(k.1p(X,\'id\')!=1Y){1z=1}}P{1z=1}}if(o.90){o.90.5B();X=o.90.31.31;id=k.1p(X,\'id\');if(k.2u.5I[id]!=S){1X.5T(k.2u.5I[id])}5N=o.90.3h.7C("#");1z=T(5N[1]);1Y=5N[1].4E(1z,\'\');if(k.1p(X,\'id\')!=1Y){1z=1}}if(X.L.1Q.1g<1z||1z<1){1z=1}X.L.3u=1z;52=k.1a.2o(X);dt=k.1a.aT(X);d9=k.1a.6U(X);if(X.L.3z){X.L.3z.o.B(\'19\',\'1o\')}if(X.L.3s){X.L.3s.o.B(\'19\',\'1o\')}if(X.L.2b){y=T(dt.t)+T(d9.t);if(X.L.1U){if(X.L.1U.5A==\'Q\'){y+=X.L.1U.4C.hb}P{52.h-=X.L.1U.4C.hb}}if(X.L.2x){if(X.L.2x&&X.L.2x.6Q==\'Q\'){y+=X.L.2x.4C.hb}P{52.h-=X.L.2x.4C.hb}}if(!X.L.c1){X.L.df=o.2b?o.2b.W:(T(X.L.2b.B(\'W\'))||0);X.L.c1=o.2b?o.2b.Z:(T(X.L.2b.B(\'Z\'))||0)}X.L.2b.B(\'Q\',y+(52.h-X.L.df)/2+\'U\');X.L.2b.B(\'O\',(52.1C-X.L.c1)/2+\'U\');X.L.2b.B(\'19\',\'2B\')}1Q=k(\'1T\',X.L.5u);if(1Q.1N()>0){1Q.7a(X.L.3W,k.2u.95)}P{aj=k(\'a\',X.L.1U.o).K(1z-1);k(aj).2R(X.L.1U.5R);D 1T=12 9s();1T.X=k.1p(X,\'id\');1T.1z=1z-1;1T.2J=X.L.1Q[X.L.3u-1].2J;if(1T.21){1T.6S=S;k.2u.19.1D(1T)}P{1T.6S=k.2u.19}if(X.L.2x){X.L.2x.o.3x(X.L.1Q[1z-1].6L)}}}},95:u(){X=q.31.31;X.L.5u.B(\'19\',\'1o\');if(X.L.1U.5R){aj=k(\'a\',X.L.1U.o).4i(X.L.1U.5R).K(X.L.3u-1);k(aj).2R(X.L.1U.5R)}D 1T=12 9s();1T.X=k.1p(X,\'id\');1T.1z=X.L.3u-1;1T.2J=X.L.1Q[X.L.3u-1].2J;if(1T.21){1T.6S=S;k.2u.19.1D(1T)}P{1T.6S=k.2u.19}if(X.L.2x){X.L.2x.o.3x(X.L.1Q[X.L.3u-1].6L)}},19:u(){X=1h.9e(q.X);if(X.L.3z){X.L.3z.o.B(\'19\',\'1o\')}if(X.L.3s){X.L.3s.o.B(\'19\',\'1o\')}52=k.1a.2o(X);y=0;if(X.L.1U){if(X.L.1U.5A==\'Q\'){y+=X.L.1U.4C.hb}P{52.h-=X.L.1U.4C.hb}}if(X.L.2x){if(X.L.2x&&X.L.2x.6Q==\'Q\'){y+=X.L.2x.4C.hb}P{52.h-=X.L.2x.4C.hb}}hg=k(\'.ca\',X);y=y+(52.h-q.W)/2;x=(52.1C-q.Z)/2;X.L.5u.B(\'Q\',y+\'U\').B(\'O\',x+\'U\').3x(\'<1T 2J="\'+q.2J+\'" />\');X.L.5u.7f(X.L.3W);3s=X.L.3u+1;if(3s>X.L.1Q.1g){3s=1}3z=X.L.3u-1;if(3z<1){3z=X.L.1Q.1g}X.L.3s.o.B(\'19\',\'2B\').B(\'Q\',y+\'U\').B(\'O\',x+2*q.Z/3+\'U\').B(\'Z\',q.Z/3+\'U\').B(\'W\',q.W+\'U\').1p(\'4g\',X.L.1Q[3s-1].6L);X.L.3s.o.K(0).3h=\'#\'+3s+k.1p(X,\'id\');X.L.3z.o.B(\'19\',\'2B\').B(\'Q\',y+\'U\').B(\'O\',x+\'U\').B(\'Z\',q.Z/3+\'U\').B(\'W\',q.W+\'U\').1p(\'4g\',X.L.1Q[3z-1].6L);X.L.3z.o.K(0).3h=\'#\'+3z+k.1p(X,\'id\')},2r:u(o){if(!o||!o.1Z||k.2u.5I[o.1Z])E;D 1Z=k(\'#\'+o.1Z);D el=1Z.K(0);if(el.14.Y!=\'1P\'&&el.14.Y!=\'2s\'){el.14.Y=\'2s\'}el.14.2U=\'2K\';if(1Z.1N()==0)E;el.L={};el.L.1Q=o.1Q?o.1Q:[];el.L.6o=o.6o&&o.6o==1b||I;97=el.f3(\'hL\');24(i=0;i<97.1g;i++){7Z=el.L.1Q.1g;el.L.1Q[7Z]={2J:97[i].2J,6L:97[i].4g||97[i].hD||\'\'}}if(el.L.1Q.1g==0){E}el.L.4n=k.23(k.1a.3w(el),k.1a.2o(el));el.L.b5=k.1a.aT(el);el.L.bu=k.1a.6U(el);t=T(el.L.b5.t)+T(el.L.bu.t);b=T(el.L.b5.b)+T(el.L.bu.b);k(\'1T\',el).bk();el.L.3W=o.3W?o.3W:g5;if(o.5A||o.9f||o.5R){el.L.1U={};1Z.1S(\'<22 6T="g1"></22>\');el.L.1U.o=k(\'.g1\',el);if(o.9f){el.L.1U.9f=o.9f;el.L.1U.o.2R(o.9f)}if(o.5R){el.L.1U.5R=o.5R}el.L.1U.o.B(\'Y\',\'1P\').B(\'Z\',el.L.4n.w+\'U\');if(o.5A&&o.5A==\'Q\'){el.L.1U.5A=\'Q\';el.L.1U.o.B(\'Q\',t+\'U\')}P{el.L.1U.5A=\'4D\';el.L.1U.o.B(\'4D\',b+\'U\')}el.L.1U.aE=o.aE?o.aE:\' \';24(D i=0;i<el.L.1Q.1g;i++){7Z=T(i)+1;el.L.1U.o.1S(\'<a 3h="#\'+7Z+o.1Z+\'" 6T="gR" 4g="\'+el.L.1Q[i].6L+\'">\'+7Z+\'</a>\'+(7Z!=el.L.1Q.1g?el.L.1U.aE:\'\'))}k(\'a\',el.L.1U.o).1J(\'5h\',u(){k.2u.go({90:q})});el.L.1U.4C=k.1a.2o(el.L.1U.o.K(0))}if(o.6Q||o.9c){el.L.2x={};1Z.1S(\'<22 6T="dn">&7k;</22>\');el.L.2x.o=k(\'.dn\',el);if(o.9c){el.L.2x.9c=o.9c;el.L.2x.o.2R(o.9c)}el.L.2x.o.B(\'Y\',\'1P\').B(\'Z\',el.L.4n.w+\'U\');if(o.6Q&&o.6Q==\'Q\'){el.L.2x.6Q=\'Q\';el.L.2x.o.B(\'Q\',(el.L.1U&&el.L.1U.5A==\'Q\'?el.L.1U.4C.hb+t:t)+\'U\')}P{el.L.2x.6Q=\'4D\';el.L.2x.o.B(\'4D\',(el.L.1U&&el.L.1U.5A==\'4D\'?el.L.1U.4C.hb+b:b)+\'U\')}el.L.2x.4C=k.1a.2o(el.L.2x.o.K(0))}if(o.9D){el.L.3s={9D:o.9D};1Z.1S(\'<a 3h="#2\'+o.1Z+\'" 6T="eY">&7k;</a>\');el.L.3s.o=k(\'.eY\',el);el.L.3s.o.B(\'Y\',\'1P\').B(\'19\',\'1o\').B(\'2U\',\'2K\').B(\'4A\',\'eR\').2R(el.L.3s.9D);el.L.3s.o.1J(\'5h\',k.2u.eg)}if(o.9o){el.L.3z={9o:o.9o};1Z.1S(\'<a 3h="#0\'+o.1Z+\'" 6T="ee">&7k;</a>\');el.L.3z.o=k(\'.ee\',el);el.L.3z.o.B(\'Y\',\'1P\').B(\'19\',\'1o\').B(\'2U\',\'2K\').B(\'4A\',\'eR\').2R(el.L.3z.9o);el.L.3z.o.1J(\'5h\',k.2u.dp)}1Z.bG(\'<22 6T="ca"></22>\');el.L.5u=k(\'.ca\',el);el.L.5u.B(\'Y\',\'1P\').B(\'Q\',\'2P\').B(\'O\',\'2P\').B(\'19\',\'1o\');if(o.2b){1Z.bG(\'<22 6T="dW" 14="19: 1o;"><1T 2J="\'+o.2b+\'" /></22>\');el.L.2b=k(\'.dW\',el);el.L.2b.B(\'Y\',\'1P\');D 1T=12 9s();1T.X=o.1Z;1T.2J=o.2b;if(1T.21){1T.6S=S;k.2u.go({2b:1T})}P{1T.6S=u(){k.2u.go({2b:q})}}}P{k.2u.go({1Z:el})}if(o.cS){fi=T(o.cS)*aC}k.2u.5I[o.1Z]=o.cS?1X.6V(\'k.2u.2I(\\\'\'+o.1Z+\'\\\')\',fi):S}};k.X=k.2u.2r;k.1t={7s:[],5L:{},1c:I,7u:S,26:u(){if(k.11.F==S){E}D 4O,3G,c,cs;k.1t.1c.K(0).3l=k.11.F.A.6R;4O=k.1t.1c.K(0).14;4O.19=\'2B\';k.1t.1c.1B=k.23(k.1a.3w(k.1t.1c.K(0)),k.1a.2o(k.1t.1c.K(0)));4O.Z=k.11.F.A.1B.1C+\'U\';4O.W=k.11.F.A.1B.hb+\'U\';3G=k.1a.cy(k.11.F);4O.5K=3G.t;4O.5z=3G.r;4O.5k=3G.b;4O.5j=3G.l;if(k.11.F.A.46==1b){c=k.11.F.fI(1b);cs=c.14;cs.5K=\'2P\';cs.5z=\'2P\';cs.5k=\'2P\';cs.5j=\'2P\';cs.19=\'2B\';k.1t.1c.5o().1S(c)}k(k.11.F).f5(k.1t.1c.K(0));k.11.F.14.19=\'1o\'},fC:u(e){if(!e.A.44&&k.1x.5r.cQ){if(e.A.3T)e.A.3T.1D(F);k(e).B(\'Y\',e.A.cz||e.A.4n);k(e).aS();k(k.1x.5r).f6(e)}k.1t.1c.4i(e.A.6R).3x(\'&7k;\');k.1t.7u=S;D 4O=k.1t.1c.K(0).14;4O.19=\'1o\';k.1t.1c.f5(e);if(e.A.fx>0){k(e).7f(e.A.fx)}k(\'2e\').1S(k.1t.1c.K(0));D 86=[];D 8q=I;24(D i=0;i<k.1t.7s.1g;i++){D 1j=k.1x.3P[k.1t.7s[i]].K(0);D id=k.1p(1j,\'id\');D 8i=k.1t.8x(id);if(1j.1i.ay!=8i.7l){1j.1i.ay=8i.7l;if(8q==I&&1j.1i.2Z){8q=1j.1i.2Z}8i.id=id;86[86.1g]=8i}}k.1t.7s=[];if(8q!=I&&86.1g>0){8q(86)}},al:u(e,o){if(!k.11.F)E;D 6e=I;D i=0;if(e.1i.el.1N()>0){24(i=e.1i.el.1N();i>0;i--){if(e.1i.el.K(i-1)!=k.11.F){if(!e.5V.b2){if((e.1i.el.K(i-1).1M.y+e.1i.el.K(i-1).1M.hb/2)>k.11.F.A.2q){6e=e.1i.el.K(i-1)}P{1r}}P{if((e.1i.el.K(i-1).1M.x+e.1i.el.K(i-1).1M.1C/2)>k.11.F.A.2v&&(e.1i.el.K(i-1).1M.y+e.1i.el.K(i-1).1M.hb/2)>k.11.F.A.2q){6e=e.1i.el.K(i-1)}}}}}if(6e&&k.1t.7u!=6e){k.1t.7u=6e;k(6e).h5(k.1t.1c.K(0))}P if(!6e&&(k.1t.7u!=S||k.1t.1c.K(0).31!=e)){k.1t.7u=S;k(e).1S(k.1t.1c.K(0))}k.1t.1c.K(0).14.19=\'2B\'},cT:u(e){if(k.11.F==S){E}e.1i.el.1E(u(){q.1M=k.23(k.1a.74(q),k.1a.7G(q))})},8x:u(s){D i;D h=\'\';D o={};if(s){if(k.1t.5L[s]){o[s]=[];k(\'#\'+s+\' .\'+k.1t.5L[s]).1E(u(){if(h.1g>0){h+=\'&\'}h+=s+\'[]=\'+k.1p(q,\'id\');o[s][o[s].1g]=k.1p(q,\'id\')})}P{24(a in s){if(k.1t.5L[s[a]]){o[s[a]]=[];k(\'#\'+s[a]+\' .\'+k.1t.5L[s[a]]).1E(u(){if(h.1g>0){h+=\'&\'}h+=s[a]+\'[]=\'+k.1p(q,\'id\');o[s[a]][o[s[a]].1g]=k.1p(q,\'id\')})}}}}P{24(i in k.1t.5L){o[i]=[];k(\'#\'+i+\' .\'+k.1t.5L[i]).1E(u(){if(h.1g>0){h+=\'&\'}h+=i+\'[]=\'+k.1p(q,\'id\');o[i][o[i].1g]=k.1p(q,\'id\')})}}E{7l:h,o:o}},fF:u(e){if(!e.dq){E}E q.1E(u(){if(!q.5V||!k(e).is(\'.\'+q.5V.3C))k(e).2R(q.5V.3C);k(e).7t(q.5V.A)})},4U:u(){E q.1E(u(){k(\'.\'+q.5V.3C).aS();k(q).dR();q.5V=S;q.fm=S})},2r:u(o){if(o.3C&&k.1a&&k.11&&k.1x){if(!k.1t.1c){k(\'2e\',1h).1S(\'<22 id="e5">&7k;</22>\');k.1t.1c=k(\'#e5\');k.1t.1c.K(0).14.19=\'1o\'}q.do({3C:o.3C,9J:o.9J?o.9J:I,a5:o.a5?o.a5:I,58:o.58?o.58:I,7x:o.7x||o.dC,7y:o.7y||o.fO,cQ:1b,2Z:o.2Z||o.ia,fx:o.fx?o.fx:I,46:o.46?1b:I,6I:o.6I?o.6I:\'cV\'});E q.1E(u(){D A={6N:o.6N?1b:I,ff:6P,1G:o.1G?2m(o.1G):I,6R:o.58?o.58:I,fx:o.fx?o.fx:I,44:1b,46:o.46?1b:I,3v:o.3v?o.3v:S,2p:o.2p?o.2p:S,4o:o.4o&&o.4o.1K==2A?o.4o:I,4m:o.4m&&o.4m.1K==2A?o.4m:I,3T:o.3T&&o.3T.1K==2A?o.3T:I,1O:/49|4j/.48(o.1O)?o.1O:I,6M:o.6M?T(o.6M)||0:I,2V:o.2V?o.2V:I};k(\'.\'+o.3C,q).7t(A);q.fm=1b;q.5V={3C:o.3C,6N:o.6N?1b:I,ff:6P,1G:o.1G?2m(o.1G):I,6R:o.58?o.58:I,fx:o.fx?o.fx:I,44:1b,46:o.46?1b:I,3v:o.3v?o.3v:S,2p:o.2p?o.2p:S,b2:o.b2?1b:I,A:A}})}}};k.fn.23({j3:k.1t.2r,f6:k.1t.fF,iS:k.1t.4U});k.iZ=k.1t.8x;k.2t={6O:S,7b:I,9m:S,6K:u(e){k.2t.7b=1b;k.2t.1Y(e,q,1b)},cq:u(e){if(k.2t.6O!=q)E;k.2t.7b=I;k.2t.2G(e,q)},1Y:u(e,el,7b){if(k.2t.6O!=S)E;if(!el){el=q}k.2t.6O=el;1M=k.23(k.1a.3w(el),k.1a.2o(el));8u=k(el);4g=8u.1p(\'4g\');3h=8u.1p(\'3h\');if(4g){k.2t.9m=4g;8u.1p(\'4g\',\'\');k(\'#eT\').3x(4g);if(3h)k(\'#bL\').3x(3h.4E(\'jh://\',\'\'));P k(\'#bL\').3x(\'\');1c=k(\'#8z\');if(el.4H.3l){1c.K(0).3l=el.4H.3l}P{1c.K(0).3l=\'\'}bo=k.1a.2o(1c.K(0));ga=7b&&el.4H.Y==\'bO\'?\'4D\':el.4H.Y;3m(ga){1e\'Q\':2q=1M.y-bo.hb;2v=1M.x;1r;1e\'O\':2q=1M.y;2v=1M.x-bo.1C;1r;1e\'2L\':2q=1M.y;2v=1M.x+1M.1C;1r;1e\'bO\':k(\'2e\').1J(\'3D\',k.2t.3D);1s=k.1a.4a(e);2q=1s.y+15;2v=1s.x+15;1r;ad:2q=1M.y+1M.hb;2v=1M.x;1r}1c.B({Q:2q+\'U\',O:2v+\'U\'});if(el.4H.54==I){1c.1Y()}P{1c.7f(el.4H.54)}if(el.4H.2Y)el.4H.2Y.1D(el);8u.1J(\'8B\',k.2t.2G).1J(\'5B\',k.2t.cq)}},3D:u(e){if(k.2t.6O==S){k(\'2e\').3q(\'3D\',k.2t.3D);E}1s=k.1a.4a(e);k(\'#8z\').B({Q:1s.y+15+\'U\',O:1s.x+15+\'U\'})},2G:u(e,el){if(!el){el=q}if(k.2t.7b!=1b&&k.2t.6O==el){k.2t.6O=S;k(\'#8z\').7a(1);k(el).1p(\'4g\',k.2t.9m).3q(\'8B\',k.2t.2G).3q(\'5B\',k.2t.cq);if(el.4H.3i)el.4H.3i.1D(el);k.2t.9m=S}},2r:u(M){if(!k.2t.1c){k(\'2e\').1S(\'<22 id="8z"><22 id="eT"></22><22 id="bL"></22></22>\');k(\'#8z\').B({Y:\'1P\',3I:6P,19:\'1o\'});k.2t.1c=1b}E q.1E(u(){if(k.1p(q,\'4g\')){q.4H={Y:/Q|4D|O|2L|bO/.48(M.Y)?M.Y:\'4D\',3l:M.3l?M.3l:I,54:M.54?M.54:I,2Y:M.2Y&&M.2Y.1K==2A?M.2Y:I,3i:M.3i&&M.3i.1K==2A?M.3i:I};D el=k(q);el.1J(\'9z\',k.2t.1Y);el.1J(\'6K\',k.2t.6K)}})}};k.fn.hO=k.2t.2r;k.84={bq:u(e){3K=e.7L||e.7K||-1;if(3K==9){if(1X.2k){1X.2k.bT=1b;1X.2k.c0=I}P{e.aP();e.aW()}if(q.b1){1h.6J.dZ().3g="\\t";q.dV=u(){q.6K();q.dV=S}}P if(q.aF){26=q.5q;2T=q.dN;q.2y=q.2y.hd(0,26)+"\\t"+q.2y.h8(2T);q.aF(26+1,26+1);q.6K()}E I}},4U:u(){E q.1E(u(){if(q.7P&&q.7P==1b){k(q).3q(\'7B\',k.84.bq);q.7P=I}})},2r:u(){E q.1E(u(){if(q.4Y==\'cf\'&&(!q.7P||q.7P==I)){k(q).1J(\'7B\',k.84.bq);q.7P=1b}})}};k.fn.23({j5:k.84.2r,hH:k.84.4U});k.1a={3w:u(e){D x=0;D y=0;D es=e.14;D bP=I;if(k(e).B(\'19\')==\'1o\'){D 5Y=es.3n;D 9q=es.Y;bP=1b;es.3n=\'2K\';es.19=\'2B\';es.Y=\'1P\'}D el=e;7d(el){x+=el.8t+(el.4Z&&!k.3a.7I?T(el.4Z.5b)||0:0);y+=el.8G+(el.4Z&&!k.3a.7I?T(el.4Z.4S)||0:0);el=el.dJ}el=e;7d(el&&el.4Y&&el.4Y.6c()!=\'2e\'){x-=el.3c||0;y-=el.3d||0;el=el.31}if(bP==1b){es.19=\'1o\';es.Y=9q;es.3n=5Y}E{x:x,y:y}},7G:u(el){D x=0,y=0;7d(el){x+=el.8t||0;y+=el.8G||0;el=el.dJ}E{x:x,y:y}},2o:u(e){D w=k.B(e,\'Z\');D h=k.B(e,\'W\');D 1C=0;D hb=0;D es=e.14;if(k(e).B(\'19\')!=\'1o\'){1C=e.4c;hb=e.5W}P{D 5Y=es.3n;D 9q=es.Y;es.3n=\'2K\';es.19=\'2B\';es.Y=\'1P\';1C=e.4c;hb=e.5W;es.19=\'1o\';es.Y=9q;es.3n=5Y}E{w:w,h:h,1C:1C,hb:hb}},74:u(el){E{1C:el.4c||0,hb:el.5W||0}},bm:u(e){D h,w,de;if(e){w=e.8W;h=e.8O}P{de=1h.5d;w=1X.d4||aa.d4||(de&&de.8W)||1h.2e.8W;h=1X.cB||aa.cB||(de&&de.8O)||1h.2e.8O}E{w:w,h:h}},6z:u(e){D t=0,l=0,w=0,h=0,iw=0,ih=0;if(e&&e.9N.6c()!=\'2e\'){t=e.3d;l=e.3c;w=e.d7;h=e.d2;iw=0;ih=0}P{if(1h.5d){t=1h.5d.3d;l=1h.5d.3c;w=1h.5d.d7;h=1h.5d.d2}P if(1h.2e){t=1h.2e.3d;l=1h.2e.3c;w=1h.2e.d7;h=1h.2e.d2}iw=aa.d4||1h.5d.8W||1h.2e.8W||0;ih=aa.cB||1h.5d.8O||1h.2e.8O||0}E{t:t,l:l,w:w,h:h,iw:iw,ih:ih}},cy:u(e,7N){D el=k(e);D t=el.B(\'5K\')||\'\';D r=el.B(\'5z\')||\'\';D b=el.B(\'5k\')||\'\';D l=el.B(\'5j\')||\'\';if(7N)E{t:T(t)||0,r:T(r)||0,b:T(b)||0,l:T(l)};P E{t:t,r:r,b:b,l:l}},aT:u(e,7N){D el=k(e);D t=el.B(\'5M\')||\'\';D r=el.B(\'5U\')||\'\';D b=el.B(\'5n\')||\'\';D l=el.B(\'4X\')||\'\';if(7N)E{t:T(t)||0,r:T(r)||0,b:T(b)||0,l:T(l)};P E{t:t,r:r,b:b,l:l}},6U:u(e,7N){D el=k(e);D t=el.B(\'4S\')||\'\';D r=el.B(\'5O\')||\'\';D b=el.B(\'5Q\')||\'\';D l=el.B(\'5b\')||\'\';if(7N)E{t:T(t)||0,r:T(r)||0,b:T(b)||0,l:T(l)||0};P E{t:t,r:r,b:b,l:l}},4a:u(2k){D x=2k.hT||(2k.gM+(1h.5d.3c||1h.2e.3c))||0;D y=2k.ki||(2k.iQ+(1h.5d.3d||1h.2e.3d))||0;E{x:x,y:y}},cI:u(4R,cx){cx(4R);4R=4R.7c;7d(4R){k.1a.cI(4R,cx);4R=4R.hQ}},h7:u(4R){k.1a.cI(4R,u(el){24(D 1p in el){if(2g el[1p]===\'u\'){el[1p]=S}}})},hV:u(el,1O){D 5l=k.1a.6z();D b6=k.1a.2o(el);if(!1O||1O==\'49\')k(el).B({Q:5l.t+((18.3r(5l.h,5l.ih)-5l.t-b6.hb)/2)+\'U\'});if(!1O||1O==\'4j\')k(el).B({O:5l.l+((18.3r(5l.w,5l.iw)-5l.l-b6.1C)/2)+\'U\'})},hW:u(el,dk){D 1Q=k(\'1T[@2J*="8X"]\',el||1h),8X;1Q.1E(u(){8X=q.2J;q.2J=dk;q.14.5E="9n:9w.9y.hE(2J=\'"+8X+"\')"})}};[].3J||(7F.hF.3J=u(v,n){n=(n==S)?0:n;D m=q.1g;24(D i=n;i<m;i++)if(q[i]==v)E i;E-1});',62,1293,'||||||||||||||||||||jQuery||||||this||||function||||||dragCfg|css|elm|var|return|dragged|easing|speed|false|callback|get|ss|options|iAuto|left|else|top|iResize|null|parseInt|px|oldStyle|height|slideshow|position|width||iDrag|new||style||||Math|display|iUtil|true|helper|subject|case|autoCFG|length|document|dropCfg|iEL|resizeOptions|carouselCfg|duration|interfaceFX|none|attr|sizes|break|pointer|iSort|type|ImageBox|queue|iDrop|iAutoscroller|slide|resizeElement|oC|wb|apply|each|fisheyeCfg|opacity|delta|newSizes|bind|constructor|custom|pos|size|axis|absolute|images|items|append|img|slideslinks|255|firstNum|window|show|container||complete|div|extend|for||start||cont|elsToScroll|100|loader|oR||body|elem|typeof|selectedItem|oldP|props|event|accordionCfg|parseFloat|field|getSize|containment|ny|build|relative|iTooltip|islideshow|nx|tp|slideCaption|value|newPosition|Function|block|selectHelper|step|border|itemWidth|hide|dequeue|timer|src|hidden|right|limit|nr|fractions|0px|PI|addClass|direction|end|overflow|cursorAt|result|parentData|onShow|onChange|to|parentNode|||||||||browser|iSlider|scrollLeft|scrollTop|scr|transferHelper|text|href|onHide|pre|selectdrug|className|switch|visibility|item|wrapper|unbind|max|nextslide|values|currentslide|handle|getPosition|html|newCoords|prevslide|iframe|iExpander|accept|mousemove|canvas|createElement|margins|onSlide|zIndex|indexOf|pressedKey|min|valueToAdd|multipleSeparator|pageSize|zones|highlighted|toggle|abs|onStop|dragElem|times|fadeDuration|diff|dhs|handlers||resizeDirection||vp|so|distance|ghosting||test|vertically|getPointer|startTop|offsetWidth|subjectValue|lastSuggestion|DropOutDirectiont|title|wrs|removeClass|horizontally|startLeft|out|onDrag|oP|onStart|nWidth|percent|down|ifxFirstDisplay|msie|iteration|ratio|clear|color|lastValue|slideCfg|fontSize|currentPointer|dimm|bottom|replace|up|prevImage|tooltipCFG|rel|els|fxCheckTag|context|nextImage|params|shs|fieldData|elToScroll|nodeEl|borderTopWidth|chunks|destroy|string|nHeight|paddingLeft|tagName|currentStyle||halign|slidePos|onclick|delay||containerW|from|helperclass|endLeft|endTop|borderLeftWidth|dragmoveBy|documentElement|dhe|newStyles|clonedEl|click|si|marginLeft|marginBottom|clientScroll|OpenClose|paddingBottom|empty|toWrite|selectionStart|overzone|toAdd|onDragModifier|holder|mousedown|animate|toDrag|cnt|marginRight|linksPosition|blur|getAttribute|hight|filter|sw|zoney|cos|slideshows|zonex|marginTop|collected|paddingTop|url|borderRightWidth|mouseup|borderBottomWidth|activeLinkClass|dragHandle|clearInterval|paddingRight|sortCfg|offsetHeight|prop|oldVisibility|styles||BlindDirection|point|fxh|nmp|old|post|currentPanel|onSelect|elementData|grid|pow|toLowerCase|animationHandler|cur|containerH|close|puff|getWidth|currentRel|imageEl|Expander|getHeight|iFisheye|random|newDimensions|itemHeight|reflections|sliders|selRange|wr|orig|margin|maxWidth|keyup|getScroll|captionText|totalImages|128|parseColor|curCSS|outerContainer|Scale|restore|tolerance|selection|focus|caption|snapDistance|revert|current|3000|captionPosition|hpc|onload|class|getBorder|setInterval|oldStyleAttr|rule|rgb|open|minLeft|ActiveXObject|oldDisplay|restoreStyle|getSizeLite||nw|0x||F0|fadeOut|focused|firstChild|while|cssRules|fadeIn|Date|minTop|backgroundColor|sc|nbsp|hash|captionEl|selectKeyHelper|selectCurrent|newTop|init|newLeft|changed|Draggable|inFrontOf|efx|139|onHover|onOut|getTime|np|keydown|split|radiusY|increment|Array|getPositionLite|selectClass|opera|onHighlight|keyCode|charCode|Object|toInteger|frameClass|hasTabsEnabled|zonew|user|zoneh|positionItems|onClick|oD|scrollIntoView|accordionPos|proximity|indic||data|containerSize|sin|iTTabs||ts|ImageBoxPrevImage|ImageBoxNextImage|imageSrc|newPos|maxHeight|minHeight|elS|activeClass|panels|maxBottom|maxRight|ser|move|opened|bounceout|animationInProgress|overlay|stop|reflectionSize|fnc|classname|insideParent|offsetLeft|jEl|nRy|pr|serialize|nRx|tooltipHelper|cssSides|mouseout|select|count|namedColors|padding|offsetTop|directionIncrement|parentEl|400|dir|expand|createTextNode|finishedPre|clientHeight|li|applyOn|content|contBorders|object|parentBorders|alpha|clientWidth|png|gallery|fontWeight|link|yproc|xproc|sx|parent|showImage|selectedone|imgs|onselect|sy|startDrag|cursor|captionClass|onselectstop|getElementById|linksClass|sh|ul|onActivate|isDroppable|nextEl|onDrop|oldTitle|progid|prevslideClass|prevEl|oldPosition|SliderContainer|Image|linkRel|selectKeyUp|selectKeyDown|DXImageTransform|inCache|Microsoft|mouseover|dragstop|diffX|211|nextslideClass|prot|auto|dEs|hidehelper|isDraggable|activeclass|unit|DoFold|unfold|nodeName|startTime|buildWrapper|prev|1px|oldColor|setTimeout|ScrollTo|st|sl|cssText|9999|next|destroyWrapper|opt|diffHeight|diffWidth|exec|hoverclass|image|blind|borderColor|sideEnd|self|key||default|2000|styleSheets|getValues|192|diffY|lnk|reflexions|checkhover|selectcheck|maxRotation|ImageBoxOuterContainer|gradient|panelHeight|childs|headers|ne|hideImage|minWidth|iIndex|itemsText|os|side|iCarousel|5625|1000|itemMinWidth|linksSeparator|setSelectionRange|protectRotation|positionContainer|posx|hoverClass|valToAdd|minchars|helperClass|source|nextImageEl|preventDefault|multiple|headerSelector|DraggableDestroy|getPadding|autofill|handleEl|stopPropagation|prevImageEl|getFieldValues|panelSelector|String|createTextRange|floats|lastSi|shrink|oPad|windowSize|paddingLeftSize|angle|paddingY|paddingX|RegExp|borderRightSize|floatVal|firstStep|pulse|Pulsate|Color|rotationSpeed|paddingBottomSize|remove|parseStyle|getClient|Number|helperSize|bounce|doTab||zoom|borderLeftSize|oBor|paddingRightSize|borderTopSize|paddingTopSize|stopAnim|pValue|borderBottomSize|extraWidth|restricted|autoSize|unselectable|SliderIteration|prepend|clearTimeout|isSlider|oneIsSortable|applyOnHover|tooltipURL|tabindex|draginit|mouse|restoreStyles|sliderSize|sliderPos|parentPos|cancelBubble|autocomplete|inputWidth|oldBorder|dragmove|clnt|sliderEl|returnValue|loaderWidth|idsa|letterSpacing|pause|getContainment|fade|snapToGrid|linear|10000|slideshowHolder|asin|cssSidesEnd|borderWidth|fitToContainer|TEXTAREA|entities|INPUT|spacer|writeItems|character|currentValue|paddings|169|oldFloat|borders|hidefocused|bouncein||modifyContainer|transparent|center|loadImage|func|getMargins|initialPosition|textAlign|innerHeight|Alpha|no|captionImages|closeEl|shake|prevTop|traverseDOM|Selectserialize|stopDrag|slider|ImageBoxCaption|ImageBoxIframe|300|ImageBoxOverlay|sortable|moveDrag|autoplay|measure|prevLeft|intersect|ImageBoxCurrentImage|selectstop|Shake|index|dragEl|keyPressed|scrollHeight|scroll|innerWidth|match|elPosition|scrollWidth|textImage|slideBor|jpg|captionSize|textImageFrom|visible||loaderHeight|ImageBoxCaptionImages||hoverItem|clickItem|emptyGIF||notColor|slideshowCaption|Droppable|goprev|childNodes|autocompleteHelper|autocompleteIframe|slidePad|fit|165|clientSize|||fontFamily|colorCssProps|elType|onhover|cssProps|expanderHelper|boxModel|itransferTo|keypress|moveStart|offsetParent|Width|selectstart|fxe|selectionEnd|checkCache|fontStyle|update|DroppableDestroy|remeasure|fontStretch|fontVariant|onblur|slideshowLoader|htmlEntities|wordSpacing|createRange|224|KhtmlUserSelect||closeHTML|on|sortHelper|245|userSelect|dragHelper|hrefAttr|dragstart|107|loaderSRC|highlight|slideshowPrevslide||gonext||styleFloat|frameborder|javascript|||relAttr|wid|scrolling||onslide|||listStyle|imageTypes|insertBefore|999|textDecoration|sqrt|140|230|maxy|240|ImageBoxContainer|doScroll|interval|set|dragmoveByKey|protect|ImageBoxCaptionText|144|ImageBoxLoader|off|checkdrop|isSelectable|hlt|30px|selectedclass|tooltipTitle|imagebox|shc|overlayOpacity|selRange2|slideshowNextSlide|gif|getSelectionStart|360|iAccordion|getElementsByTagName|iBounce|after|SortableAddItem|onResize|150|itemZIndex|grow|getHeightMinMax|borderTopUnit|selectcheckApply|borderRightUnit|zindex|fontUnit|togglehor|time|se|parte|easeout|isSortable||SlideInUp|fold|SlideOutUp|rgba|addColorStop|yfrac|containerMaxx|interfaceColorFX|containerMaxy||leftUnit|mousex||radiusX|check|getContext|xfrac|addItem|topUnit|fracH|cloneNode|togglever|paddingLeftUnit|borderBottomUnit|finish|onDragStop|onout|posy|isFunction|oldOverflow|directions|vertical|fracW|fakeAccordionClass|parts|fadeTo|inputValue|xml|selectstopApply|slideshowLinks|onDragStart|BlindUp|paddingTopUnit|500|trim|maxx|borderLeftUnit|paddingRightUnit|filteredPosition|BlindDown|paddingBottomUnit|horizontal|valign|find|ImageBoxClose|onselectstart|mozUserSelect|ondragstart|scale|110|globalCompositeOperation|bmp||drawImage|ondrop|password|quot||save|starty|jpeg|||number|startx|finishOpacity|hover|recallDroppables|flipv|finishx|destination|khtml|moz|lt|amp|pW|clientX|Accordion|translate|captiontext|elasticin|slideshowLink|fix|elasticout|resize|elasticboth|bounceboth|984375|9375|Selectable|30002|list|625|30001|nodeValue|before|100000|purgeEvents|substr|duplicate|moveEnd|||substring|success|param|par|array|Fisheye|name|POST|ajax|easeboth|location|fromHandler|collapse|MozUserSelect||ResizableDestroy|rotationTimer|fillRect|fill|WebKit|fillStyle|createLinearGradient|Resizable|navigator|appVersion|lineHeigt|alt|AlphaImageLoader|prototype|SliderGetValues|DisableTabs|Carousel|load|easein|IMG|200|Slider|ToolTip|wh|nextSibling|Autocomplete|SliderSetValues|pageX|float|centerEl|fixPNG|isNaN|dotted|dashed|stopAll|Left|outlineColor|Top|Right|Bottom|solid|double|selectorText|rules|onchange|SlideToggleRight|SlideOutRight||borderStyle||TransferTo||groove|ridge|inset|outset|borderTopColor||borderRightColor|olive|navy|orange||pink|203|maroon||magenta|182|193|lightyellow|lime|purple|red|outlineOffset|outlineWidth|borderBottomColor|borderLeftColor|lineHeight|loading|silver|white|yellow|Showing|100000000|SlideInRight|clientY|Highlight|SortableDestroy|CloseVertically|CloseHorizontally|FoldToggle|UnFold|SlideInDown|SlideToggleUp|SortSerialize|Fold|SwitchHorizontally|SwitchVertically|Sortable|scrollTo|EnableTabs|ScrollToAnchors|pt|Puff|OpenVertically|OpenHorizontally|Grow|Shrink|DropToggleRight|DropInRight|BlindToggleHorizontally|BlindRight|http|Bounce|120|BlindLeft|BlindToggleVertically|SlideToggleLeft|SlideOutLeft|toUpperCase|SlideInLeft|SlideToggleDown|SlideOutDown|DropOutLeft|DropInLeft|DropToggleLeft|DropOutRight|DropToggleUp|DropInUp|DropOutDown|DropInDown|DropToggleDown|DropOutUp|lightpink|textIndent|aqua|appendChild|azure|beige|220|last|cssFloat|first|ol|wrapEl|fxWrapper|black|imageLoaded|darkkhaki|darkgreen|189|183|darkmagenta|firstResize|darkgrey|brown|cyan|darkblue|darkcyan|table|form|col|tfoot|colgroup|th|header|thead|tbody|112|Autoexpand|tr|td|script|frame|input|pageY|textarea|button|w_|removeChild|frameset|option|optgroup|meta|darkolivegreen|blue|122|233|green|lightcyan|204|darkviolet|lightgreen|indigo|216|khaki|darksalmon|130|darkred|lightblue|148|173|215|238|fuchsia|gold|darkorchid|153|darkorange|lightgrey'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/full/interface/iresizable.js b/javascript/libs/jquery/full/interface/iresizable.js
new file mode 100644
index 0000000..18bc6ba
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/iresizable.js
@@ -0,0 +1,453 @@
+/**
+ * Interface Elements for jQuery
+ * Resizable
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+jQuery.iResize = {
+ resizeElement: null,
+ resizeDirection: null,
+ dragged: null,
+ pointer: null,
+ sizes: null,
+ position: null,
+ /**
+ * internal: Start function
+ */
+ startDrag: function(e) {
+ jQuery.iResize.dragged = (this.dragEl) ? this.dragEl: this;
+ jQuery.iResize.pointer = jQuery.iUtil.getPointer(e);
+
+ // Save original size
+ jQuery.iResize.sizes = {
+ width: parseInt(jQuery(jQuery.iResize.dragged).css('width')) || 0,
+ height: parseInt(jQuery(jQuery.iResize.dragged).css('height')) || 0
+ };
+
+ // Save original position
+ jQuery.iResize.position = {
+ top: parseInt(jQuery(jQuery.iResize.dragged).css('top')) || 0,
+ left: parseInt(jQuery(jQuery.iResize.dragged).css('left')) || 0
+ };
+
+ // Assign event handlers
+ jQuery(document)
+ .bind('mousemove', jQuery.iResize.moveDrag)
+ .bind('mouseup', jQuery.iResize.stopDrag);
+
+ // Callback?
+ if (typeof jQuery.iResize.dragged.resizeOptions.onDragStart === 'function') {
+ jQuery.iResize.dragged.resizeOptions.onDragStart.apply(jQuery.iResize.dragged);
+ }
+ return false;
+ },
+ /**
+ * internal: Stop function
+ */
+ stopDrag: function(e) {
+ // Unbind event handlers
+ jQuery(document)
+ .unbind('mousemove', jQuery.iResize.moveDrag)
+ .unbind('mouseup', jQuery.iResize.stopDrag);
+
+ // Callback?
+ if (typeof jQuery.iResize.dragged.resizeOptions.onDragStop === 'function') {
+ jQuery.iResize.dragged.resizeOptions.onDragStop.apply(jQuery.iResize.dragged);
+ }
+
+ // Remove dragged element
+ jQuery.iResize.dragged = null;
+ },
+ /**
+ * internal: Move function
+ */
+ moveDrag: function(e) {
+ if (!jQuery.iResize.dragged) {
+ return;
+ }
+
+ pointer = jQuery.iUtil.getPointer(e);
+
+ // Calculate new positions
+ newTop = jQuery.iResize.position.top - jQuery.iResize.pointer.y + pointer.y;
+ newLeft = jQuery.iResize.position.left - jQuery.iResize.pointer.x + pointer.x;
+ newTop = Math.max(
+ Math.min(newTop, jQuery.iResize.dragged.resizeOptions.maxBottom - jQuery.iResize.sizes.height),
+ jQuery.iResize.dragged.resizeOptions.minTop
+ );
+ newLeft = Math.max(
+ Math.min(newLeft, jQuery.iResize.dragged.resizeOptions.maxRight- jQuery.iResize.sizes.width),
+ jQuery.iResize.dragged.resizeOptions.minLeft
+ );
+
+ // Callback
+ if (typeof jQuery.iResize.dragged.resizeOptions.onDrag === 'function') {
+ var newPos = jQuery.iResize.dragged.resizeOptions.onDrag.apply(jQuery.iResize.dragged, [newLeft, newTop]);
+ if (typeof newPos == 'array' && newPos.length == 2) {
+ newLeft = newPos[0];
+ newTop = newPos[1];
+ }
+ }
+
+ // Update the element
+ jQuery.iResize.dragged.style.top = newTop + 'px';
+ jQuery.iResize.dragged.style.left = newLeft + 'px';
+
+ return false;
+ },
+ start: function(e) {
+ // Bind event handlers
+ jQuery(document)
+ .bind('mousemove', jQuery.iResize.move)
+ .bind('mouseup', jQuery.iResize.stop);
+
+ // Initialize resizable
+ jQuery.iResize.resizeElement = this.resizeElement;
+ jQuery.iResize.resizeDirection = this.resizeDirection;
+ jQuery.iResize.pointer = jQuery.iUtil.getPointer(e);
+ jQuery.iResize.sizes = {
+ width: parseInt(jQuery(this.resizeElement).css('width'))||0,
+ height: parseInt(jQuery(this.resizeElement).css('height'))||0
+ };
+ jQuery.iResize.position = {
+ top: parseInt(jQuery(this.resizeElement).css('top'))||0,
+ left: parseInt(jQuery(this.resizeElement).css('left'))||0
+ };
+
+ // Callback function
+ if (jQuery.iResize.resizeElement.resizeOptions.onStart) {
+ jQuery.iResize.resizeElement.resizeOptions.onStart.apply(jQuery.iResize.resizeElement, [this]);
+ }
+
+ return false;
+ },
+ stop: function() {
+ // Unbind event handlers
+ jQuery(document)
+ .unbind('mousemove', jQuery.iResize.move)
+ .unbind('mouseup', jQuery.iResize.stop);
+
+ // Callback function
+ if (jQuery.iResize.resizeElement.resizeOptions.onStop) {
+ jQuery.iResize.resizeElement.resizeOptions.onStop.apply(jQuery.iResize.resizeElement, [jQuery.iResize.resizeDirection]);
+ }
+
+ // Unbind
+ jQuery.iResize.resizeElement = null;
+ jQuery.iResize.resizeDirection = null;
+ },
+ getWidth: function(dx, side) {
+ return Math.min(
+ Math.max(jQuery.iResize.sizes.width + dx * side, jQuery.iResize.resizeElement.resizeOptions.minWidth),
+ jQuery.iResize.resizeElement.resizeOptions.maxWidth
+ );
+ },
+ getHeight: function(dy, side) {
+ return Math.min(
+ Math.max(jQuery.iResize.sizes.height + dy * side, jQuery.iResize.resizeElement.resizeOptions.minHeight),
+ jQuery.iResize.resizeElement.resizeOptions.maxHeight
+ );
+ },
+ getHeightMinMax: function(height) {
+ return Math.min(
+ Math.max(height, jQuery.iResize.resizeElement.resizeOptions.minHeight),
+ jQuery.iResize.resizeElement.resizeOptions.maxHeight
+ );
+ },
+ move: function(e) {
+ if (jQuery.iResize.resizeElement == null) {
+ return;
+ }
+
+ pointer = jQuery.iUtil.getPointer(e);
+ dx = pointer.x - jQuery.iResize.pointer.x;
+ dy = pointer.y - jQuery.iResize.pointer.y;
+
+ newSizes = {
+ width: jQuery.iResize.sizes.width,
+ height: jQuery.iResize.sizes.height
+ };
+ newPosition = {
+ top: jQuery.iResize.position.top,
+ left: jQuery.iResize.position.left
+ };
+
+ switch (jQuery.iResize.resizeDirection){
+ case 'e':
+ newSizes.width = jQuery.iResize.getWidth(dx,1);
+ break;
+ case 'se':
+ newSizes.width = jQuery.iResize.getWidth(dx,1);
+ newSizes.height = jQuery.iResize.getHeight(dy,1);
+ break;
+ case 'w':
+ newSizes.width = jQuery.iResize.getWidth(dx,-1);
+ newPosition.left = jQuery.iResize.position.left - newSizes.width + jQuery.iResize.sizes.width;
+ break;
+ case 'sw':
+ newSizes.width = jQuery.iResize.getWidth(dx,-1);
+ newPosition.left = jQuery.iResize.position.left - newSizes.width + jQuery.iResize.sizes.width;
+ newSizes.height = jQuery.iResize.getHeight(dy,1);
+ break;
+ case 'nw':
+ newSizes.height = jQuery.iResize.getHeight(dy,-1);
+ newPosition.top = jQuery.iResize.position.top - newSizes.height + jQuery.iResize.sizes.height;
+ newSizes.width = jQuery.iResize.getWidth(dx,-1);
+ newPosition.left = jQuery.iResize.position.left - newSizes.width + jQuery.iResize.sizes.width;
+ break;
+ case 'n':
+ newSizes.height = jQuery.iResize.getHeight(dy,-1);
+ newPosition.top = jQuery.iResize.position.top - newSizes.height + jQuery.iResize.sizes.height;
+ break;
+ case 'ne':
+ newSizes.height = jQuery.iResize.getHeight(dy,-1);
+ newPosition.top = jQuery.iResize.position.top - newSizes.height + jQuery.iResize.sizes.height;
+ newSizes.width = jQuery.iResize.getWidth(dx,1);
+ break;
+ case 's':
+ newSizes.height = jQuery.iResize.getHeight(dy,1);
+ break;
+ }
+
+ if (jQuery.iResize.resizeElement.resizeOptions.ratio) {
+ if (jQuery.iResize.resizeDirection == 'n' || jQuery.iResize.resizeDirection == 's')
+ nWidth = newSizes.height * jQuery.iResize.resizeElement.resizeOptions.ratio;
+ else
+ nWidth = newSizes.width;
+ nHeight = jQuery.iResize.getHeightMinMax(nWidth * jQuery.iResize.resizeElement.resizeOptions.ratio);
+ nWidth = nHeight / jQuery.iResize.resizeElement.resizeOptions.ratio;
+
+ switch (jQuery.iResize.resizeDirection){
+ case 'n':
+ case 'nw':
+ case 'ne':
+ newPosition.top += newSizes.height - nHeight;
+ break;
+ }
+
+ switch (jQuery.iResize.resizeDirection){
+ case 'nw':
+ case 'w':
+ case 'sw':
+ newPosition.left += newSizes.width - nWidth;
+ break;
+ }
+
+ newSizes.height = nHeight;
+ newSizes.width = nWidth;
+ }
+
+ if (newPosition.top < jQuery.iResize.resizeElement.resizeOptions.minTop) {
+ nHeight = newSizes.height + newPosition.top - jQuery.iResize.resizeElement.resizeOptions.minTop;
+ newPosition.top = jQuery.iResize.resizeElement.resizeOptions.minTop;
+
+ if (jQuery.iResize.resizeElement.resizeOptions.ratio) {
+ nWidth = nHeight / jQuery.iResize.resizeElement.resizeOptions.ratio;
+ switch (jQuery.iResize.resizeDirection){
+ case 'nw':
+ case 'w':
+ case 'sw':
+ newPosition.left += newSizes.width - nWidth;
+ break;
+ }
+ newSizes.width = nWidth;
+ }
+ newSizes.height = nHeight;
+ }
+
+ if (newPosition.left < jQuery.iResize.resizeElement.resizeOptions.minLeft ) {
+ nWidth = newSizes.width + newPosition.left - jQuery.iResize.resizeElement.resizeOptions.minLeft;
+ newPosition.left = jQuery.iResize.resizeElement.resizeOptions.minLeft;
+
+ if (jQuery.iResize.resizeElement.resizeOptions.ratio) {
+ nHeight = nWidth * jQuery.iResize.resizeElement.resizeOptions.ratio;
+ switch (jQuery.iResize.resizeDirection){
+ case 'n':
+ case 'nw':
+ case 'ne':
+ newPosition.top += newSizes.height - nHeight;
+ break;
+ }
+ newSizes.height = nHeight;
+ }
+ newSizes.width = nWidth;
+ }
+
+ if (newPosition.top + newSizes.height > jQuery.iResize.resizeElement.resizeOptions.maxBottom) {
+ newSizes.height = jQuery.iResize.resizeElement.resizeOptions.maxBottom - newPosition.top;
+ if (jQuery.iResize.resizeElement.resizeOptions.ratio) {
+ newSizes.width = newSizes.height / jQuery.iResize.resizeElement.resizeOptions.ratio;
+ }
+
+ }
+
+ if (newPosition.left + newSizes.width > jQuery.iResize.resizeElement.resizeOptions.maxRight) {
+ newSizes.width = jQuery.iResize.resizeElement.resizeOptions.maxRight - newPosition.left;
+ if (jQuery.iResize.resizeElement.resizeOptions.ratio) {
+ newSizes.height = newSizes.width * jQuery.iResize.resizeElement.resizeOptions.ratio;
+ }
+
+ }
+
+ var newDimensions = false;
+ if (jQuery.iResize.resizeElement.resizeOptions.onResize) {
+ newDimensions = jQuery.iResize.resizeElement.resizeOptions.onResize.apply( jQuery.iResize.resizeElement, [ newSizes, newPosition ] );
+ if (newDimensions) {
+ if (newDimensions.sizes) {
+ jQuery.extend(newSizes, newDimensions.sizes);
+ }
+
+ if (newDimensions.position) {
+ jQuery.extend(newPosition, newDimensions.position);
+ }
+ }
+ }
+ elS = jQuery.iResize.resizeElement.style;
+ elS.left = newPosition.left + 'px';
+ elS.top = newPosition.top + 'px';
+ elS.width = newSizes.width + 'px';
+ elS.height = newSizes.height + 'px';
+
+ return false;
+ },
+ /**
+ * Builds the resizable
+ */
+ build: function(options) {
+ if (!options || !options.handlers || options.handlers.constructor != Object) {
+ return;
+ }
+
+ return this.each(
+ function() {
+ var el = this;
+ el.resizeOptions = options;
+ el.resizeOptions.minWidth = options.minWidth || 10;
+ el.resizeOptions.minHeight = options.minHeight || 10;
+ el.resizeOptions.maxWidth = options.maxWidth || 3000;
+ el.resizeOptions.maxHeight = options.maxHeight || 3000;
+ el.resizeOptions.minTop = options.minTop || -1000;
+ el.resizeOptions.minLeft = options.minLeft || -1000;
+ el.resizeOptions.maxRight = options.maxRight || 3000;
+ el.resizeOptions.maxBottom = options.maxBottom || 3000;
+ elPosition = jQuery(el).css('position');
+ if (!(elPosition == 'relative' || elPosition == 'absolute')) {
+ el.style.position = 'relative';
+ }
+
+ directions = /n|ne|e|se|s|sw|w|nw/g;
+ for (i in el.resizeOptions.handlers) {
+ if (i.toLowerCase().match(directions) != null) {
+ if (el.resizeOptions.handlers[i].constructor == String) {
+ handle = jQuery(el.resizeOptions.handlers[i]);
+ if (handle.size() > 0) {
+ el.resizeOptions.handlers[i] = handle.get(0);
+ }
+ }
+
+ if (el.resizeOptions.handlers[i].tagName) {
+ el.resizeOptions.handlers[i].resizeElement = el;
+ el.resizeOptions.handlers[i].resizeDirection = i;
+ jQuery(el.resizeOptions.handlers[i]).bind('mousedown', jQuery.iResize.start);
+ }
+ }
+ }
+
+ if (el.resizeOptions.dragHandle) {
+ if (typeof el.resizeOptions.dragHandle === 'string') {
+ handleEl = jQuery(el.resizeOptions.dragHandle);
+ if (handleEl.size() > 0) {
+ handleEl.each(function() {
+ this.dragEl = el;
+ });
+ handleEl.bind('mousedown', jQuery.iResize.startDrag);
+ }
+ } else if (el.resizeOptions.dragHandle == true) {
+ jQuery(this).bind('mousedown', jQuery.iResize.startDrag);
+ }
+ }
+ }
+ );
+ },
+ /**
+ * Destroys the resizable
+ */
+ destroy: function() {
+ return this.each(
+ function() {
+ var el = this;
+
+ // Unbind the handlers
+ for (i in el.resizeOptions.handlers) {
+ el.resizeOptions.handlers[i].resizeElement = null;
+ el.resizeOptions.handlers[i].resizeDirection = null;
+ jQuery(el.resizeOptions.handlers[i]).unbind('mousedown', jQuery.iResize.start);
+ }
+
+ // Remove the draghandle
+ if (el.resizeOptions.dragHandle) {
+ if (typeof el.resizeOptions.dragHandle === 'string') {
+ handle = jQuery(el.resizeOptions.dragHandle);
+ if (handle.size() > 0) {
+ handle.unbind('mousedown', jQuery.iResize.startDrag);
+ }
+ } else if (el.resizeOptions.dragHandle == true) {
+ jQuery(this).unbind('mousedown', jQuery.iResize.startDrag);
+ }
+ }
+
+ // Reset the options
+ el.resizeOptions = null;
+ }
+ );
+ }
+};
+
+
+jQuery.fn.extend ({
+ /**
+ * Create a resizable element with a number of advanced options including callback, dragging
+ *
+ * @name Resizable
+ * @description Create a resizable element with a number of advanced options including callback, dragging
+ * @param Hash hash A hash of parameters. All parameters are optional.
+ * @option Hash handlers hash with keys for each resize direction (e, es, s, sw, w, nw, n) and value string selection
+ * @option Integer minWidth (optional) the minimum width that element can be resized to
+ * @option Integer maxWidth (optional) the maximum width that element can be resized to
+ * @option Integer minHeight (optional) the minimum height that element can be resized to
+ * @option Integer maxHeight (optional) the maximum height that element can be resized to
+ * @option Integer minTop (optional) the minmum top position to wich element can be moved to
+ * @option Integer minLeft (optional) the minmum left position to wich element can be moved to
+ * @option Integer maxRight (optional) the maximum right position to wich element can be moved to
+ * @option Integer maxBottom (optional) the maximum bottom position to wich element can be moved to
+ * @option Float ratio (optional) the ratio between width and height to constrain elements sizes to that ratio
+ * @option Mixed dragHandle (optional) true to make the element draggable, string selection for drag handle
+ * @option Function onDragStart (optional) A function to be executed whenever the dragging starts
+ * @option Function onDragStop (optional) A function to be executed whenever the dragging stops
+ * @option Function onDrag (optional) A function to be executed whenever the element is dragged
+ * @option Function onStart (optional) A function to be executed whenever the element starts to be resized
+ * @option Function onStop (optional) A function to be executed whenever the element stops to be resized
+ * @option Function onResize (optional) A function to be executed whenever the element is resized
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ Resizable: jQuery.iResize.build,
+ /**
+ * Destroy a resizable
+ *
+ * @name ResizableDestroy
+ * @description Destroy a resizable
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ ResizableDestroy: jQuery.iResize.destroy
+ }); \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/iselect.js b/javascript/libs/jquery/full/interface/iselect.js
new file mode 100644
index 0000000..554d0f6
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/iselect.js
@@ -0,0 +1,275 @@
+/**
+ * Interface Elements for jQuery
+ * Selectables
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+jQuery.selectHelper = null;
+jQuery.selectKeyHelper = false;
+jQuery.selectdrug = null;
+jQuery.selectCurrent = []; // For current selection
+jQuery.selectKeyDown = function(e) {
+ var pressedKey = e.charCode || e.keyCode || -1;
+ if (pressedKey == 17 || pressedKey == 16) {
+ jQuery.selectKeyHelper = true;
+ }
+};
+jQuery.selectKeyUp = function(e) {
+ jQuery.selectKeyHelper = false;
+};
+jQuery.selectstart = function(e) {
+ this.f.pointer = jQuery.iUtil.getPointer(e);
+ this.f.pos = jQuery.extend(
+ jQuery.iUtil.getPosition(this),
+ jQuery.iUtil.getSize(this)
+ );
+
+ this.f.scr = jQuery.iUtil.getScroll(this);
+ this.f.pointer.x -= this.f.pos.x;
+ this.f.pointer.y -= this.f.pos.y;
+ jQuery(this).append(jQuery.selectHelper.get(0));
+ if (this.f.hc)
+ jQuery.selectHelper.addClass(this.f.hc).css('display','block');
+ jQuery.selectHelper.css(
+ {
+ display: 'block',
+ width: '0px',
+ height: '0px'
+ }
+ );
+ if (this.f.o) {
+ jQuery.selectHelper.css('opacity', this.f.o);
+ }
+
+ jQuery.selectdrug = this;
+ jQuery.selectedone = false;
+ jQuery.selectCurrent = []; // For current selection state
+ this.f.el.each(
+ function ()
+ {
+ this.pos = {
+ x: this.offsetLeft + (this.currentStyle && !jQuery.browser.opera ?parseInt(this.currentStyle.borderLeftWidth)||0:0) + (jQuery.selectdrug.scrollLeft||0),
+ y: this.offsetTop + (this.currentStyle && !jQuery.browser.opera ?parseInt(this.currentStyle.borderTopWidth)||0:0) + (jQuery.selectdrug.scrollTop||0),
+ wb: this.offsetWidth,
+ hb: this.offsetHeight
+ };
+ if (this.s == true) {
+ if (jQuery.selectKeyHelper == false) {
+ this.s = false;
+ jQuery(this).removeClass(jQuery.selectdrug.f.sc);
+ } else {
+ jQuery.selectedone = true;
+
+ // Save current state
+ jQuery.selectCurrent[jQuery.selectCurrent.length] = jQuery.attr(this,'id');
+ }
+ }
+ }
+ );
+ jQuery.selectcheck.apply(this, [e]);
+ jQuery(document)
+ .bind('mousemove', jQuery.selectcheck)
+ .bind('mouseup', jQuery.selectstop);
+ return false;
+};
+jQuery.selectcheck = function(e)
+{
+ if(!jQuery.selectdrug)
+ return;
+ jQuery.selectcheckApply.apply(jQuery.selectdrug, [e]);
+};
+jQuery.selectcheckApply = function(e)
+{
+ if(!jQuery.selectdrug)
+ return;
+ var pointer = jQuery.iUtil.getPointer(e);
+
+ var scr = jQuery.iUtil.getScroll(jQuery.selectdrug);
+ pointer.x += scr.l - this.f.scr.l - this.f.pos.x;
+ pointer.y += scr.t - this.f.scr.t - this.f.pos.y;
+
+ var sx = Math.min(pointer.x, this.f.pointer.x);
+ var sw = Math.min(Math.abs(pointer.x - this.f.pointer.x), Math.abs(this.f.scr.w - sx));
+ var sy = Math.min(pointer.y, this.f.pointer.y);
+ var sh = Math.min(Math.abs(pointer.y - this.f.pointer.y), Math.abs(this.f.scr.h - sy));
+ if (this.scrollTop > 0 && pointer.y - 20 < this.scrollTop) {
+ var diff = Math.min(scr.t, 10);
+ sy -= diff;
+ sh += diff;
+ this.scrollTop -= diff;
+ } else if (this.scrollTop+ this.f.pos.h < this.f.scr.h && pointer.y + 20 > this.scrollTop + this.f.pos.h) {
+ var diff = Math.min(this.f.scr.h - this.scrollTop, 10);
+ this.scrollTop += diff;
+ if (this.scrollTop != scr.t)
+ sh += diff;
+ }
+ if (this.scrollLeft > 0 && pointer.x - 20 < this.scrollLeft) {
+ var diff = Math.min(scr.l, 10);
+ sx -= diff;
+ sw += diff;
+ this.scrollLeft -= diff;
+ } else if (this.scrollLeft+ this.f.pos.w < this.f.scr.w && pointer.x + 20 > this.scrollLeft + this.f.pos.w) {
+ var diff = Math.min(this.f.scr.w - this.scrollLeft, 10);
+ this.scrollLeft += diff;
+ if (this.scrollLeft != scr.l)
+ sw += diff;
+ }
+ jQuery.selectHelper.css(
+ {
+ left: sx + 'px',
+ top: sy + 'px',
+ width: sw + 'px',
+ height: sh + 'px'
+ }
+ );
+ jQuery.selectHelper.l = sx + this.f.scr.l;
+ jQuery.selectHelper.t = sy + this.f.scr.t;
+ jQuery.selectHelper.r = jQuery.selectHelper.l + sw;
+ jQuery.selectHelper.b = jQuery.selectHelper.t + sh;
+ jQuery.selectedone = false;
+ this.f.el.each(
+ function () {
+ // Locate the current element in the current selection
+ iIndex = jQuery.selectCurrent.indexOf(jQuery.attr(this, 'id'));
+ // In case we are currently OVER an item
+ if (
+ ! ( this.pos.x > jQuery.selectHelper.r
+ || (this.pos.x + this.pos.wb) < jQuery.selectHelper.l
+ || this.pos.y > jQuery.selectHelper.b
+ || (this.pos.y + this.pos.hb) < jQuery.selectHelper.t
+ )
+ )
+ {
+ jQuery.selectedone = true;
+ if (this.s != true) {
+ this.s = true;
+ jQuery(this).addClass(jQuery.selectdrug.f.sc);
+ }
+
+ // Check to see if this item was previously selected, if so, unselect it
+ if (iIndex != -1) {
+ this.s = false;
+ jQuery(this).removeClass(jQuery.selectdrug.f.sc);
+ }
+ } else if (
+ (this.s == true) &&
+ (iIndex == -1)
+ ) {
+ // If the item was marked as selected, but it was not selected when you started dragging unselect it.
+ this.s = false;
+ jQuery(this).removeClass(jQuery.selectdrug.f.sc);
+ } else if (
+ (!this.s) &&
+ (jQuery.selectKeyHelper == true) &&
+ (iIndex != -1)
+ ) {
+ // Reselect the item if:
+ // - we ARE multiselecting,
+ // - dragged over an allready selected object (so it got unselected)
+ // - But then dragged the selection out of it again.
+ this.s = true;
+ jQuery(this).addClass(jQuery.selectdrug.f.sc);
+ }
+ }
+ );
+ return false;
+};
+jQuery.selectstop = function(e)
+{
+ if(!jQuery.selectdrug)
+ return;
+ jQuery.selectstopApply.apply(jQuery.selectdrug, [e]);
+};
+jQuery.selectstopApply = function(e)
+{
+ jQuery(document)
+ .unbind('mousemove', jQuery.selectcheck)
+ .unbind('mouseup', jQuery.selectstop);
+ if(!jQuery.selectdrug)
+ return;
+ jQuery.selectHelper.css('display','none');
+ if (this.f.hc)
+ jQuery.selectHelper.removeClass(this.f.hc);
+ jQuery.selectdrug = false;
+ jQuery('body').append(jQuery.selectHelper.get(0));
+ //
+ // In case we have selected some new items..
+ if (jQuery.selectedone == true) {
+ if (this.f.onselect)
+ this.f.onselect(jQuery.Selectserialize(jQuery.attr(this,'id')));
+ } else {
+ if (this.f.onselectstop)
+ this.f.onselectstop(jQuery.Selectserialize(jQuery.attr(this,'id')));
+ }
+ // Reset current selection
+ jQuery.selectCurrent = [];
+};
+
+jQuery.Selectserialize = function(s)
+{
+ var h = '';
+ var o = [];
+ if (a = jQuery('#' + s)) {
+ a.get(0).f.el.each(
+ function ()
+ {
+ if (this.s == true) {
+ if (h.length > 0) {
+ h += '&';
+ }
+ h += s + '[]=' + jQuery.attr(this,'id');
+ o[o.length] = jQuery.attr(this,'id');
+ }
+ }
+ );
+ }
+ return {hash:h, o:o};
+};
+jQuery.fn.Selectable = function(o)
+{
+ if (!jQuery.selectHelper) {
+ jQuery('body',document).append('<div id="selectHelper"></div>').bind('keydown', jQuery.selectKeyDown).bind('keyup', jQuery.selectKeyUp);
+ jQuery.selectHelper = jQuery('#selectHelper');
+ jQuery.selectHelper.css(
+ {
+ position: 'absolute',
+ display: 'none'
+ }
+ );
+
+ if (window.event) {
+ jQuery('body',document).bind('keydown', jQuery.selectKeyDown).bind('keyup', jQuery.selectKeyUp);
+ } else {
+ jQuery(document).bind('keydown', jQuery.selectKeyDown).bind('keyup', jQuery.selectKeyUp);
+ }
+ }
+
+ if (!o) {
+ o = {};
+ }
+ return this.each(
+ function()
+ {
+ if (this.isSelectable)
+ return;
+ this.isSelectable = true;
+ this.f = {
+ a : o.accept,
+ o : o.opacity ? parseFloat(o.opacity) : false,
+ sc : o.selectedclass ? o.selectedclass : false,
+ hc : o.helperclass ? o.helperclass : false,
+ onselect : o.onselect ? o.onselect : false,
+ onselectstop : o.onselectstop ? o.onselectstop : false
+ };
+ this.f.el = jQuery('.' + o.accept);
+ jQuery(this).bind('mousedown', jQuery.selectstart).css('position', 'relative');
+ }
+ );
+}; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/islider.js b/javascript/libs/jquery/full/interface/islider.js
new file mode 100644
index 0000000..997337d
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/islider.js
@@ -0,0 +1,301 @@
+/**
+ * Interface Elements for jQuery
+ * Slider
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+jQuery.iSlider = {
+ tabindex : 1,
+ set : function (values)
+ {
+ var values = values;
+ return this.each(
+ function()
+ {
+ this.slideCfg.sliders.each(
+ function (key)
+ {
+ jQuery.iSlider.dragmoveBy(this,values[key]);
+ }
+ );
+ }
+ );
+ },
+
+ get : function()
+ {
+ var values = [];
+ this.each(
+ function(slider)
+ {
+ if (this.isSlider) {
+ values[slider] = [];
+ var elm = this;
+ var sizes = jQuery.iUtil.getSize(this);
+ this.slideCfg.sliders.each(
+ function (key)
+ {
+ var x = this.offsetLeft;
+ var y = this.offsetTop;
+ xproc = parseInt(x * 100 / (sizes.w - this.offsetWidth));
+ yproc = parseInt(y * 100 / (sizes.h - this.offsetHeight));
+ values[slider][key] = [xproc||0, yproc||0, x||0, y||0];
+ }
+ );
+ }
+ }
+ );
+ return values;
+ },
+
+ modifyContainer : function (elm)
+ {
+ elm.dragCfg.containerMaxx = elm.dragCfg.cont.w - elm.dragCfg.oC.wb;
+ elm.dragCfg.containerMaxy = elm.dragCfg.cont.h - elm.dragCfg.oC.hb;
+ if (elm.SliderContainer.slideCfg.restricted ) {
+ next = elm.SliderContainer.slideCfg.sliders.get(elm.SliderIteration+1);
+ if (next) {
+ elm.dragCfg.cont.w = (parseInt(jQuery(next).css('left'))||0) + elm.dragCfg.oC.wb;
+ elm.dragCfg.cont.h = (parseInt(jQuery(next).css('top'))||0) + elm.dragCfg.oC.hb;
+ }
+ prev = elm.SliderContainer.slideCfg.sliders.get(elm.SliderIteration-1);
+ if (prev) {
+ var prevLeft = parseInt(jQuery(prev).css('left'))||0;
+ var prevTop = parseInt(jQuery(prev).css('left'))||0;
+ elm.dragCfg.cont.x += prevLeft;
+ elm.dragCfg.cont.y += prevTop;
+ elm.dragCfg.cont.w -= prevLeft;
+ elm.dragCfg.cont.h -= prevTop;
+ }
+ }
+ elm.dragCfg.maxx = elm.dragCfg.cont.w - elm.dragCfg.oC.wb;
+ elm.dragCfg.maxy = elm.dragCfg.cont.h - elm.dragCfg.oC.hb;
+ if(elm.dragCfg.fractions) {
+ elm.dragCfg.gx = ((elm.dragCfg.cont.w - elm.dragCfg.oC.wb)/elm.dragCfg.fractions) || 1;
+ elm.dragCfg.gy = ((elm.dragCfg.cont.h - elm.dragCfg.oC.hb)/elm.dragCfg.fractions) || 1;
+ elm.dragCfg.fracW = elm.dragCfg.maxx / elm.dragCfg.fractions;
+ elm.dragCfg.fracH = elm.dragCfg.maxy / elm.dragCfg.fractions;
+ }
+
+ elm.dragCfg.cont.dx = elm.dragCfg.cont.x - elm.dragCfg.oR.x;
+ elm.dragCfg.cont.dy = elm.dragCfg.cont.y - elm.dragCfg.oR.y;
+
+ jQuery.iDrag.helper.css('cursor', 'default');
+ },
+
+ onSlide : function(elm, x, y)
+ {
+ if (elm.dragCfg.fractions) {
+ xfrac = parseInt(x/elm.dragCfg.fracW);
+ xproc = xfrac * 100 / elm.dragCfg.fractions;
+ yfrac = parseInt(y/elm.dragCfg.fracH);
+ yproc = yfrac * 100 / elm.dragCfg.fractions;
+ } else {
+ xproc = parseInt(x * 100 / elm.dragCfg.containerMaxx);
+ yproc = parseInt(y * 100 / elm.dragCfg.containerMaxy);
+ }
+ elm.dragCfg.lastSi = [xproc||0, yproc||0, x||0, y||0];
+ if (elm.dragCfg.onSlide)
+ elm.dragCfg.onSlide.apply(elm, elm.dragCfg.lastSi);
+ },
+
+ dragmoveByKey : function (event)
+ {
+ pressedKey = event.charCode || event.keyCode || -1;
+
+ switch (pressedKey)
+ {
+ //end
+ case 35:
+ jQuery.iSlider.dragmoveBy(this.dragElem, [2000, 2000] );
+ break;
+ //home
+ case 36:
+ jQuery.iSlider.dragmoveBy(this.dragElem, [-2000, -2000] );
+ break;
+ //left
+ case 37:
+ jQuery.iSlider.dragmoveBy(this.dragElem, [-this.dragElem.dragCfg.gx||-1, 0] );
+ break;
+ //up
+ case 38:
+ jQuery.iSlider.dragmoveBy(this.dragElem, [0, -this.dragElem.dragCfg.gy||-1] );
+ break;
+ //right
+ case 39:
+ jQuery.iSlider.dragmoveBy(this.dragElem, [this.dragElem.dragCfg.gx||1, 0] );
+ break;
+ //down;
+ case 40:
+ jQuery.iDrag.dragmoveBy(this.dragElem, [0, this.dragElem.dragCfg.gy||1] );
+ break;
+ }
+ },
+
+ dragmoveBy : function (elm, position)
+ {
+ if (!elm.dragCfg) {
+ return;
+ }
+
+ elm.dragCfg.oC = jQuery.extend(
+ jQuery.iUtil.getPosition(elm),
+ jQuery.iUtil.getSize(elm)
+ );
+
+ elm.dragCfg.oR = {
+ x : parseInt(jQuery.css(elm, 'left'))||0,
+ y : parseInt(jQuery.css(elm, 'top'))||0
+ };
+
+ elm.dragCfg.oP = jQuery.css(elm, 'position');
+ if (elm.dragCfg.oP != 'relative' && elm.dragCfg.oP != 'absolute') {
+ elm.style.position = 'relative';
+ }
+
+ jQuery.iDrag.getContainment(elm);
+ jQuery.iSlider.modifyContainer(elm);
+
+ dx = parseInt(position[0]) || 0;
+ dy = parseInt(position[1]) || 0;
+
+ nx = elm.dragCfg.oR.x + dx;
+ ny = elm.dragCfg.oR.y + dy;
+ if(elm.dragCfg.fractions) {
+ newCoords = jQuery.iDrag.snapToGrid.apply(elm, [nx, ny, dx, dy]);
+ if (newCoords.constructor == Object) {
+ dx = newCoords.dx;
+ dy = newCoords.dy;
+ }
+ nx = elm.dragCfg.oR.x + dx;
+ ny = elm.dragCfg.oR.y + dy;
+ }
+
+ newCoords = jQuery.iDrag.fitToContainer.apply(elm, [nx, ny, dx, dy]);
+ if (newCoords && newCoords.constructor == Object) {
+ dx = newCoords.dx;
+ dy = newCoords.dy;
+ }
+
+ nx = elm.dragCfg.oR.x + dx;
+ ny = elm.dragCfg.oR.y + dy;
+
+ if (elm.dragCfg.si && (elm.dragCfg.onSlide || elm.dragCfg.onChange)) {
+ jQuery.iSlider.onSlide(elm, nx, ny);
+ }
+ nx = !elm.dragCfg.axis || elm.dragCfg.axis == 'horizontally' ? nx : elm.dragCfg.oR.x||0;
+ ny = !elm.dragCfg.axis || elm.dragCfg.axis == 'vertically' ? ny : elm.dragCfg.oR.y||0;
+ elm.style.left = nx + 'px';
+ elm.style.top = ny + 'px';
+ },
+
+ build : function(o) {
+ return this.each(
+ function()
+ {
+ if (this.isSlider == true || !o.accept || !jQuery.iUtil || !jQuery.iDrag || !jQuery.iDrop){
+ return;
+ }
+ toDrag = jQuery(o.accept, this);
+ if (toDrag.size() == 0) {
+ return;
+ }
+ var params = {
+ containment: 'parent',
+ si : true,
+ onSlide : o.onSlide && o.onSlide.constructor == Function ? o.onSlide : null,
+ onChange : o.onChange && o.onChange.constructor == Function ? o.onChange : null,
+ handle: this,
+ opacity: o.opacity||false
+ };
+ if (o.fractions && parseInt(o.fractions)) {
+ params.fractions = parseInt(o.fractions)||1;
+ params.fractions = params.fractions > 0 ? params.fractions : 1;
+ }
+ if (toDrag.size() == 1)
+ toDrag.Draggable(params);
+ else {
+ jQuery(toDrag.get(0)).Draggable(params);
+ params.handle = null;
+ toDrag.Draggable(params);
+ }
+ toDrag.keydown(jQuery.iSlider.dragmoveByKey);
+ toDrag.attr('tabindex',jQuery.iSlider.tabindex++);
+
+ this.isSlider = true;
+ this.slideCfg = {};
+ this.slideCfg.onslide = params.onslide;
+ this.slideCfg.fractions = params.fractions;
+ this.slideCfg.sliders = toDrag;
+ this.slideCfg.restricted = o.restricted ? true : false;
+ sliderEl = this;
+ sliderEl.slideCfg.sliders.each(
+ function(nr)
+ {
+ this.SliderIteration = nr;
+ this.SliderContainer = sliderEl;
+ }
+ );
+ if (o.values && o.values.constructor == Array) {
+ for (i = o.values.length -1; i>=0;i--) {
+ if (o.values[i].constructor == Array && o.values[i].length == 2) {
+ el = this.slideCfg.sliders.get(i);
+ if (el.tagName) {
+ jQuery.iSlider.dragmoveBy(el, o.values[i]);
+ }
+ }
+ }
+ }
+ }
+ );
+ }
+};
+jQuery.fn.extend(
+ {
+ /**
+ * Create a slider width options
+ *
+ * @name Slider
+ * @description Create a slider width options
+ * @param Hash hash A hash of parameters. All parameters are optional.
+ * @option Mixed accepts string to select slider indicators or DOMElement slider indicator
+ * @option Integer factions (optional) number of sgments to divide and snap slider
+ * @option Function onSlide (optional) A function to be executed whenever slider indicator it is moved
+ * @option Function onChanged (optional) A function to be executed whenever slider indicator was moved
+ * @option Array values (optional) Initial values for slider indicators
+ * @option Boolean restricted (optional) if true the slider indicator can not be moved beyond adjacent indicators
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ Slider : jQuery.iSlider.build,
+ /**
+ * Set value/position for slider indicators
+ *
+ * @name SliderSetValues
+ * @description Set value/position for slider indicators
+ * @param Array values array width values for each indicator
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SliderSetValues : jQuery.iSlider.set,
+ /**
+ * Get value/position for slider indicators
+ *
+ * @name SliderSetValues
+ * @description Get value/position for slider indicators
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ SliderGetValues : jQuery.iSlider.get
+ }
+); \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/islideshow.js b/javascript/libs/jquery/full/interface/islideshow.js
new file mode 100644
index 0000000..6e8a9b3
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/islideshow.js
@@ -0,0 +1,422 @@
+/**
+ * Interface Elements for jQuery
+ * Slideshow
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+
+
+/**
+ * Creates an image slideshow. The slideshow can autoplay slides, each image can have caption, navigation links: next, prev, each slide. A page may have more then one slideshow, eachone working independently. Each slide can be bookmarked. The source images can be defined by JavaScript in slideshow options or by HTML placing images inside container.
+ *
+ *
+ *
+ * @name Slideshow
+ * @description Creates an image slideshow. The slideshow can autoplay slides, each image can have caption, navigation links: next, prev, each slide. A page may have more then one slideshow, eachone working independently. Each slide can be bookmarked. The source images can be defined by JavaScript in slideshow options or by HTML placing images inside container.
+ * @param Hash hash A hash of parameters
+ * @option String container container ID
+ * @option String loader path to loading indicator image
+ * @option String linksPosition (optional) images links position ['top'|'bottom'|null]
+ * @option String linksClass (optional) images links cssClass
+ * @option String linksSeparator (optional) images links separator
+ * @option Integer fadeDuration fade animation duration in miliseconds
+ * @option String activeLinkClass (optional) active image link CSS class
+ * @option String nextslideClass (optional) next image CSS class
+ * @option String prevslideClass (optional) previous image CSS class
+ * @option String captionPosition (optional) image caption position ['top'|'bottom'|null]
+ * @option String captionClass (optional) image caption CSS class
+ * @option String autoplay (optional) seconds to wait untill next images is displayed. This option will make the slideshow to autoplay.
+ * @option String random (optional) if slideshow autoplayes the images can be randomized
+ * @option Array images (optional) array of hash with keys 'src' (path to image) and 'cation' (image caption) for images
+ *
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.islideshow = {
+ slideshows: [],
+ gonext : function()
+ {
+ this.blur();
+ slideshow = this.parentNode;
+ id = jQuery.attr(slideshow, 'id');
+ if (jQuery.islideshow.slideshows[id] != null) {
+ window.clearInterval(jQuery.islideshow.slideshows[id]);
+ }
+ slide = slideshow.ss.currentslide + 1;
+ if (slideshow.ss.images.length < slide) {
+ slide = 1;
+ }
+ images = jQuery('img', slideshow.ss.holder);
+ slideshow.ss.currentslide = slide;
+ if (images.size() > 0) {
+ images.fadeOut(
+ slideshow.ss.fadeDuration,
+ jQuery.islideshow.showImage
+ );
+ }
+ },
+ goprev : function()
+ {
+ this.blur();
+ slideshow = this.parentNode;
+ id = jQuery.attr(slideshow, 'id');
+ if (jQuery.islideshow.slideshows[id] != null) {
+ window.clearInterval(jQuery.islideshow.slideshows[id]);
+ }
+ slide = slideshow.ss.currentslide - 1;
+ images = jQuery('img', slideshow.ss.holder);
+ if (slide < 1) {
+ slide = slideshow.ss.images.length ;
+ }
+ slideshow.ss.currentslide = slide;
+ if (images.size() > 0) {
+ images.fadeOut(
+ slideshow.ss.fadeDuration,
+ jQuery.islideshow.showImage
+ );
+ }
+ },
+ timer : function (c)
+ {
+ slideshow = document.getElementById(c);
+ if (slideshow.ss.random) {
+ slide = slideshow.ss.currentslide;
+ while(slide == slideshow.ss.currentslide) {
+ slide = 1 + parseInt(Math.random() * slideshow.ss.images.length);
+ }
+ } else {
+ slide = slideshow.ss.currentslide + 1;
+ if (slideshow.ss.images.length < slide) {
+ slide = 1;
+ }
+ }
+ images = jQuery('img', slideshow.ss.holder);
+ slideshow.ss.currentslide = slide;
+ if (images.size() > 0) {
+ images.fadeOut(
+ slideshow.ss.fadeDuration,
+ jQuery.islideshow.showImage
+ );
+ }
+ },
+ go : function(o)
+ {
+ var slideshow;
+ if (o && o.constructor == Object) {
+ if (o.loader) {
+ slideshow = document.getElementById(o.loader.slideshow);
+ url = window.location.href.split("#");
+ o.loader.onload = null;
+ if (url.length == 2) {
+ slide = parseInt(url[1]);
+ show = url[1].replace(slide,'');
+ if (jQuery.attr(slideshow,'id') != show) {
+ slide = 1;
+ }
+ } else {
+ slide = 1;
+ }
+ }
+ if(o.link) {
+ o.link.blur();
+ slideshow = o.link.parentNode.parentNode;
+ id = jQuery.attr(slideshow, 'id');
+ if (jQuery.islideshow.slideshows[id] != null) {
+ window.clearInterval(jQuery.islideshow.slideshows[id]);
+ }
+ url = o.link.href.split("#");
+ slide = parseInt(url[1]);
+ show = url[1].replace(slide,'');
+ if (jQuery.attr(slideshow,'id') != show) {
+ slide = 1;
+ }
+ }
+ if (slideshow.ss.images.length < slide || slide < 1) {
+ slide = 1;
+ }
+ slideshow.ss.currentslide = slide;
+ slidePos = jQuery.iUtil.getSize(slideshow);
+ slidePad = jQuery.iUtil.getPadding(slideshow);
+ slideBor = jQuery.iUtil.getBorder(slideshow);
+ if (slideshow.ss.prevslide) {
+ slideshow.ss.prevslide.o.css('display', 'none');
+ }
+ if (slideshow.ss.nextslide) {
+ slideshow.ss.nextslide.o.css('display', 'none');
+ }
+
+ //center loader
+ if (slideshow.ss.loader) {
+ y = parseInt(slidePad.t) + parseInt(slideBor.t);
+ if (slideshow.ss.slideslinks) {
+ if (slideshow.ss.slideslinks.linksPosition == 'top') {
+ y += slideshow.ss.slideslinks.dimm.hb;
+ } else {
+ slidePos.h -= slideshow.ss.slideslinks.dimm.hb;
+ }
+ }
+ if (slideshow.ss.slideCaption) {
+ if (slideshow.ss.slideCaption && slideshow.ss.slideCaption.captionPosition == 'top') {
+ y += slideshow.ss.slideCaption.dimm.hb;
+ } else {
+ slidePos.h -= slideshow.ss.slideCaption.dimm.hb;
+ }
+ }
+ if (!slideshow.ss.loaderWidth) {
+ slideshow.ss.loaderHeight = o.loader ? o.loader.height : (parseInt(slideshow.ss.loader.css('height'))||0);
+ slideshow.ss.loaderWidth = o.loader ? o.loader.width : (parseInt(slideshow.ss.loader.css('width'))||0);
+ }
+
+ slideshow.ss.loader.css('top', y + (slidePos.h - slideshow.ss.loaderHeight)/2 + 'px');
+ slideshow.ss.loader.css('left', (slidePos.wb - slideshow.ss.loaderWidth)/2 + 'px');
+ slideshow.ss.loader.css('display', 'block');
+ }
+
+ //getimage
+ images = jQuery('img', slideshow.ss.holder);
+ if (images.size() > 0) {
+ images.fadeOut(
+ slideshow.ss.fadeDuration,
+ jQuery.islideshow.showImage
+ );
+ } else {
+ lnk = jQuery('a', slideshow.ss.slideslinks.o).get(slide-1);
+ jQuery(lnk).addClass(slideshow.ss.slideslinks.activeLinkClass);
+ var img = new Image();
+ img.slideshow = jQuery.attr(slideshow,'id');
+ img.slide = slide-1;
+ img.src = slideshow.ss.images[slideshow.ss.currentslide-1].src ;
+ if (img.complete) {
+ img.onload = null;
+ jQuery.islideshow.display.apply(img);
+ } else {
+ img.onload = jQuery.islideshow.display;
+ }
+ //slideshow.ss.holder.html('<img src="' + slideshow.ss.images[slide-1].src + '" />');
+ if (slideshow.ss.slideCaption) {
+ slideshow.ss.slideCaption.o.html(slideshow.ss.images[slide-1].caption);
+ }
+ //jQuery('img', slideshow.ss.holder).bind('load',jQuery.slideshowDisplay);
+ }
+ }
+ },
+ showImage : function()
+ {
+ slideshow = this.parentNode.parentNode;
+ slideshow.ss.holder.css('display','none');
+ if (slideshow.ss.slideslinks.activeLinkClass) {
+ lnk = jQuery('a', slideshow.ss.slideslinks.o).removeClass(slideshow.ss.slideslinks.activeLinkClass).get(slideshow.ss.currentslide - 1);
+ jQuery(lnk).addClass(slideshow.ss.slideslinks.activeLinkClass);
+ }
+ //slideshow.ss.holder.html('<img src="' + slideshow.ss.images[slideshow.ss.currentslide - 1].src + '" />');
+
+ var img = new Image();
+ img.slideshow = jQuery.attr(slideshow,'id');
+ img.slide = slideshow.ss.currentslide - 1;
+ img.src = slideshow.ss.images[slideshow.ss.currentslide - 1].src ;
+ if (img.complete) {
+ img.onload = null;
+ jQuery.islideshow.display.apply(img);
+ } else {
+ img.onload = jQuery.islideshow.display;
+ }
+ if (slideshow.ss.slideCaption) {
+ slideshow.ss.slideCaption.o.html(slideshow.ss.images[slideshow.ss.currentslide-1].caption);
+ }
+ //jQuery('img', slideshow.ss.holder).bind('load',jQuery.slideshowDisplay);
+ },
+ display : function ()
+ {
+ slideshow = document.getElementById(this.slideshow);
+ if (slideshow.ss.prevslide) {
+ slideshow.ss.prevslide.o.css('display', 'none');
+ }
+ if (slideshow.ss.nextslide) {
+ slideshow.ss.nextslide.o.css('display', 'none');
+ }
+ slidePos = jQuery.iUtil.getSize(slideshow);
+ y = 0;
+ if (slideshow.ss.slideslinks) {
+ if (slideshow.ss.slideslinks.linksPosition == 'top') {
+ y += slideshow.ss.slideslinks.dimm.hb;
+ } else {
+ slidePos.h -= slideshow.ss.slideslinks.dimm.hb;
+ }
+ }
+ if (slideshow.ss.slideCaption) {
+ if (slideshow.ss.slideCaption && slideshow.ss.slideCaption.captionPosition == 'top') {
+ y += slideshow.ss.slideCaption.dimm.hb;
+ } else {
+ slidePos.h -= slideshow.ss.slideCaption.dimm.hb;
+ }
+ }
+ par = jQuery('.slideshowHolder', slideshow);
+ y = y + (slidePos.h - this.height)/2 ;
+ x = (slidePos.wb - this.width)/2;
+ slideshow.ss.holder.css('top', y + 'px').css('left', x + 'px').html('<img src="' + this.src + '" />');
+ slideshow.ss.holder.fadeIn(slideshow.ss.fadeDuration);
+ nextslide = slideshow.ss.currentslide + 1;
+ if (nextslide > slideshow.ss.images.length) {
+ nextslide = 1;
+ }
+ prevslide = slideshow.ss.currentslide - 1;
+ if (prevslide < 1) {
+ prevslide = slideshow.ss.images.length;
+ }
+ slideshow.ss.nextslide.o
+ .css('display','block')
+ .css('top', y + 'px')
+ .css('left', x + 2 * this.width/3 + 'px')
+ .css('width', this.width/3 + 'px')
+ .css('height', this.height + 'px')
+ .attr('title', slideshow.ss.images[nextslide-1].caption);
+ slideshow.ss.nextslide.o.get(0).href = '#' + nextslide + jQuery.attr(slideshow, 'id');
+ slideshow.ss.prevslide.o
+ .css('display','block')
+ .css('top', y + 'px')
+ .css('left', x + 'px')
+ .css('width', this.width/3 + 'px')
+ .css('height', this.height + 'px')
+ .attr('title', slideshow.ss.images[prevslide-1].caption);
+ slideshow.ss.prevslide.o.get(0).href = '#' + prevslide + jQuery.attr(slideshow, 'id');
+ },
+ build : function(o)
+ {
+ if (!o || !o.container || jQuery.islideshow.slideshows[o.container])
+ return;
+ var container = jQuery('#' + o.container);
+ var el = container.get(0);
+
+ if (el.style.position != 'absolute' && el.style.position != 'relative') {
+ el.style.position = 'relative';
+ }
+ el.style.overflow = 'hidden';
+ if (container.size() == 0)
+ return;
+ el.ss = {};
+
+ el.ss.images = o.images ? o.images : [];
+ el.ss.random = o.random && o.random == true || false;
+ imgs = el.getElementsByTagName('IMG');
+ for(i = 0; i< imgs.length; i++) {
+ indic = el.ss.images.length;
+ el.ss.images[indic] = {src:imgs[i].src, caption:imgs[i].title||imgs[i].alt||''};
+ }
+
+ if (el.ss.images.length == 0) {
+ return;
+ }
+
+ el.ss.oP = jQuery.extend(
+ jQuery.iUtil.getPosition(el),
+ jQuery.iUtil.getSize(el)
+ );
+ el.ss.oPad = jQuery.iUtil.getPadding(el);
+ el.ss.oBor = jQuery.iUtil.getBorder(el);
+ t = parseInt(el.ss.oPad.t) + parseInt(el.ss.oBor.t);
+ b = parseInt(el.ss.oPad.b) + parseInt(el.ss.oBor.b);
+ jQuery('img', el).remove();
+ el.ss.fadeDuration = o.fadeDuration ? o.fadeDuration : 500;
+ if (o.linksPosition || o.linksClass || o.activeLinkClass) {
+ el.ss.slideslinks = {};
+ container.append('<div class="slideshowLinks"></div>');
+ el.ss.slideslinks.o = jQuery('.slideshowLinks', el);
+ if (o.linksClass) {
+ el.ss.slideslinks.linksClass = o.linksClass;
+ el.ss.slideslinks.o.addClass(o.linksClass);
+ }
+ if (o.activeLinkClass) {
+ el.ss.slideslinks.activeLinkClass = o.activeLinkClass;
+ }
+ el.ss.slideslinks.o.css('position','absolute').css('width', el.ss.oP.w + 'px');
+ if (o.linksPosition && o.linksPosition == 'top') {
+ el.ss.slideslinks.linksPosition = 'top';
+ el.ss.slideslinks.o.css('top',t + 'px');
+ } else {
+ el.ss.slideslinks.linksPosition = 'bottom';
+ el.ss.slideslinks.o.css('bottom',b + 'px');
+ }
+ el.ss.slideslinks.linksSeparator = o.linksSeparator ? o.linksSeparator : ' ';
+ for (var i=0; i<el.ss.images.length; i++) {
+ indic = parseInt(i) + 1;
+ el.ss.slideslinks.o.append('<a href="#' + indic + o.container + '" class="slideshowLink" title="' + el.ss.images[i].caption + '">' + indic + '</a>' + (indic != el.ss.images.length ? el.ss.slideslinks.linksSeparator : ''));
+ }
+ jQuery('a', el.ss.slideslinks.o).bind(
+ 'click',
+ function()
+ {
+ jQuery.islideshow.go({link:this})
+ }
+ );
+ el.ss.slideslinks.dimm = jQuery.iUtil.getSize(el.ss.slideslinks.o.get(0));
+ }
+ if (o.captionPosition || o.captionClass) {
+ el.ss.slideCaption = {};
+ container.append('<div class="slideshowCaption">&nbsp;</div>');
+ el.ss.slideCaption.o = jQuery('.slideshowCaption', el);
+ if (o.captionClass) {
+ el.ss.slideCaption.captionClass = o.captionClass;
+ el.ss.slideCaption.o.addClass(o.captionClass);
+ }
+ el.ss.slideCaption.o.css('position','absolute').css('width', el.ss.oP.w + 'px');
+ if (o.captionPosition&& o.captionPosition == 'top') {
+ el.ss.slideCaption.captionPosition = 'top';
+ el.ss.slideCaption.o.css('top', (el.ss.slideslinks && el.ss.slideslinks.linksPosition == 'top' ? el.ss.slideslinks.dimm.hb + t : t) + 'px');
+ } else {
+ el.ss.slideCaption.captionPosition = 'bottom';
+ el.ss.slideCaption.o.css('bottom', (el.ss.slideslinks && el.ss.slideslinks.linksPosition == 'bottom' ? el.ss.slideslinks.dimm.hb + b : b) + 'px');
+ }
+ el.ss.slideCaption.dimm = jQuery.iUtil.getSize(el.ss.slideCaption.o.get(0));
+ }
+
+ if (o.nextslideClass) {
+ el.ss.nextslide = {nextslideClass:o.nextslideClass};
+ container.append('<a href="#2' + o.container + '" class="slideshowNextSlide">&nbsp;</a>');
+ el.ss.nextslide.o = jQuery('.slideshowNextSlide', el);
+ el.ss.nextslide.o.css('position', 'absolute').css('display', 'none').css('overflow','hidden').css('fontSize', '30px').addClass(el.ss.nextslide.nextslideClass);
+ el.ss.nextslide.o.bind('click', jQuery.islideshow.gonext);
+ }
+ if (o.prevslideClass) {
+ el.ss.prevslide= {prevslideClass:o.prevslideClass};
+ container.append('<a href="#0' + o.container + '" class="slideshowPrevslide">&nbsp;</a>');
+ el.ss.prevslide.o = jQuery('.slideshowPrevslide', el);
+ el.ss.prevslide.o.css('position', 'absolute').css('display', 'none').css('overflow','hidden').css('fontSize', '30px').addClass(el.ss.prevslide.prevslideClass);
+ el.ss.prevslide.o.bind('click', jQuery.islideshow.goprev);
+ }
+
+ container.prepend('<div class="slideshowHolder"></div>');
+ el.ss.holder = jQuery('.slideshowHolder', el);
+ el.ss.holder.css('position','absolute').css('top','0px').css('left','0px').css('display', 'none');
+ if (o.loader) {
+ container.prepend('<div class="slideshowLoader" style="display: none;"><img src="' + o.loader + '" /></div>');
+ el.ss.loader = jQuery('.slideshowLoader', el);
+ el.ss.loader.css('position', 'absolute');
+ var img = new Image();
+ img.slideshow = o.container;
+ img.src = o.loader;
+ if (img.complete) {
+ img.onload = null;
+ jQuery.islideshow.go({loader:img});
+ } else {
+ img.onload = function()
+ {
+ jQuery.islideshow.go({loader:this});
+ };
+ }
+ } else {
+ jQuery.islideshow.go({container:el});
+ }
+
+ if(o.autoplay) {
+ time = parseInt(o.autoplay) * 1000;
+ }
+ jQuery.islideshow.slideshows[o.container] = o.autoplay ? window.setInterval('jQuery.islideshow.timer(\'' + o.container + '\')', time) : null;
+ }
+};
+jQuery.slideshow = jQuery.islideshow.build; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/isortables.js b/javascript/libs/jquery/full/interface/isortables.js
new file mode 100644
index 0000000..6568324
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/isortables.js
@@ -0,0 +1,392 @@
+/**
+ * Interface Elements for jQuery
+ * Sortables
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * Allows you to resort elements within a container by dragging and dropping. Requires
+ * the Draggables and Droppables plugins. The container and each item inside the container
+ * must have an ID. Sortables are especially useful for lists.
+ *
+ * @see Plugins/Interface/Draggable
+ * @see Plugins/Interface/Droppable
+ * @author Stefan Petre
+ * @name Sortable
+ * @cat Plugins/Interface
+ * @param Hash options A hash of options
+ * @option String accept The class name for items inside the container (mandatory)
+ * @option String activeclass The class for the container when one of its items has started to move
+ * @option String hoverclass The class for the container when an acceptable item is inside it
+ * @option String helperclass The helper is used to point to the place where the item will be
+ * moved. This is the class for the helper.
+ * @option Float opacity Opacity (between 0 and 1) of the item while being dragged
+ * @option Boolean ghosting When true, the sortable is ghosted when dragged
+ * @option String tolerance Either 'pointer', 'intersect', or 'fit'. See Droppable for more details
+ * @option Boolean fit When true, sortable must be inside the container in order to drop
+ * @option Integer fx Duration for the effect applied to the sortable
+ * @option Function onchange Callback that gets called when the sortable list changed. It takes
+ * an array of serialized elements
+ * @option Boolean floats True if the sorted elements are floated
+ * @option String containment Use 'parent' to constrain the drag to the container
+ * @option String axis Use 'horizontally' or 'vertically' to constrain dragging to an axis
+ * @option String handle The jQuery selector that indicates the draggable handle
+ * @option DOMElement handle The node that indicates the draggable handle
+ * @option Function onHover Callback that is called when an acceptable item is dragged over the
+ * container. Gets the hovering DOMElement as a parameter
+ * @option Function onOut Callback that is called when an acceptable item leaves the container.
+ * Gets the leaving DOMElement as a parameter
+ * @option Object cursorAt The mouse cursor will be moved to the offset on the dragged item
+ * indicated by the object, which takes "top", "bottom", "left", and
+ * "right" keys
+ * @option Function onStart Callback function triggered when the dragging starts
+ * @option Function onStop Callback function triggered when the dragging stops
+ * @example $('ul').Sortable(
+ * {
+ * accept : 'sortableitem',
+ * activeclass : 'sortableactive',
+ * hoverclass : 'sortablehover',
+ * helperclass : 'sorthelper',
+ * opacity: 0.5,
+ * fit : false
+ * }
+ * )
+ */
+
+jQuery.iSort = {
+ changed : [],
+ collected : {},
+ helper : false,
+ inFrontOf: null,
+
+ start : function ()
+ {
+ if (jQuery.iDrag.dragged == null) {
+ return;
+ }
+ var shs, margins,c, cs;
+
+ jQuery.iSort.helper.get(0).className = jQuery.iDrag.dragged.dragCfg.hpc;
+ shs = jQuery.iSort.helper.get(0).style;
+ shs.display = 'block';
+ jQuery.iSort.helper.oC = jQuery.extend(
+ jQuery.iUtil.getPosition(jQuery.iSort.helper.get(0)),
+ jQuery.iUtil.getSize(jQuery.iSort.helper.get(0))
+ );
+
+ shs.width = jQuery.iDrag.dragged.dragCfg.oC.wb + 'px';
+ shs.height = jQuery.iDrag.dragged.dragCfg.oC.hb + 'px';
+ //shs.cssFloat = jQuery.iDrag.dragged.dragCfg.oF;
+ margins = jQuery.iUtil.getMargins(jQuery.iDrag.dragged);
+ shs.marginTop = margins.t;
+ shs.marginRight = margins.r;
+ shs.marginBottom = margins.b;
+ shs.marginLeft = margins.l;
+ if (jQuery.iDrag.dragged.dragCfg.ghosting == true) {
+ c = jQuery.iDrag.dragged.cloneNode(true);
+ cs = c.style;
+ cs.marginTop = '0px';
+ cs.marginRight = '0px';
+ cs.marginBottom = '0px';
+ cs.marginLeft = '0px';
+ cs.display = 'block';
+ jQuery.iSort.helper.empty().append(c);
+ }
+ jQuery(jQuery.iDrag.dragged).after(jQuery.iSort.helper.get(0));
+ jQuery.iDrag.dragged.style.display = 'none';
+ },
+
+ check : function (e)
+ {
+ if (!e.dragCfg.so && jQuery.iDrop.overzone.sortable) {
+ if (e.dragCfg.onStop)
+ e.dragCfg.onStop.apply(dragged);
+ jQuery(e).css('position', e.dragCfg.initialPosition || e.dragCfg.oP);
+ jQuery(e).DraggableDestroy();
+ jQuery(jQuery.iDrop.overzone).SortableAddItem(e);
+ }
+ jQuery.iSort.helper.removeClass(e.dragCfg.hpc).html('&nbsp;');
+ jQuery.iSort.inFrontOf = null;
+ var shs = jQuery.iSort.helper.get(0).style;
+ shs.display = 'none';
+ jQuery.iSort.helper.after(e);
+ if (e.dragCfg.fx > 0) {
+ jQuery(e).fadeIn(e.dragCfg.fx);
+ }
+ jQuery('body').append(jQuery.iSort.helper.get(0));
+ var ts = [];
+ var fnc = false;
+ for(var i=0; i<jQuery.iSort.changed.length; i++){
+ var iEL = jQuery.iDrop.zones[jQuery.iSort.changed[i]].get(0);
+ var id = jQuery.attr(iEL, 'id');
+ var ser = jQuery.iSort.serialize(id);
+ if (iEL.dropCfg.os != ser.hash) {
+ iEL.dropCfg.os = ser.hash;
+ if (fnc == false && iEL.dropCfg.onChange) {
+ fnc = iEL.dropCfg.onChange;
+ }
+ ser.id = id;
+ ts[ts.length] = ser;
+ }
+ }
+ jQuery.iSort.changed = [];
+ if (fnc != false && ts.length > 0) {
+ fnc(ts);
+ }
+ },
+
+ checkhover : function(e,o)
+ {
+ if (!jQuery.iDrag.dragged)
+ return;
+ var cur = false;
+ var i = 0;
+ if ( e.dropCfg.el.size() > 0) {
+ for (i = e.dropCfg.el.size(); i >0; i--) {
+ if (e.dropCfg.el.get(i-1) != jQuery.iDrag.dragged) {
+ if (!e.sortCfg.floats) {
+ if (
+ (e.dropCfg.el.get(i-1).pos.y + e.dropCfg.el.get(i-1).pos.hb/2) > jQuery.iDrag.dragged.dragCfg.ny
+ ) {
+ cur = e.dropCfg.el.get(i-1);
+ } else {
+ break;
+ }
+ } else {
+ if (
+ (e.dropCfg.el.get(i-1).pos.x + e.dropCfg.el.get(i-1).pos.wb/2) > jQuery.iDrag.dragged.dragCfg.nx &&
+ (e.dropCfg.el.get(i-1).pos.y + e.dropCfg.el.get(i-1).pos.hb/2) > jQuery.iDrag.dragged.dragCfg.ny
+ ) {
+ cur = e.dropCfg.el.get(i-1);
+ }
+ }
+ }
+ }
+ }
+ //helpos = jQuery.iUtil.getPos(jQuery.iSort.helper.get(0));
+ if (cur && jQuery.iSort.inFrontOf != cur) {
+ jQuery.iSort.inFrontOf = cur;
+ jQuery(cur).before(jQuery.iSort.helper.get(0));
+ } else if(!cur && (jQuery.iSort.inFrontOf != null || jQuery.iSort.helper.get(0).parentNode != e) ) {
+ jQuery.iSort.inFrontOf = null;
+ jQuery(e).append(jQuery.iSort.helper.get(0));
+ }
+ jQuery.iSort.helper.get(0).style.display = 'block';
+ },
+
+ measure : function (e)
+ {
+ if (jQuery.iDrag.dragged == null) {
+ return;
+ }
+ e.dropCfg.el.each (
+ function ()
+ {
+ this.pos = jQuery.extend(
+ jQuery.iUtil.getSizeLite(this),
+ jQuery.iUtil.getPositionLite(this)
+ );
+ }
+ );
+ },
+
+ serialize : function(s)
+ {
+ var i;
+ var h = '';
+ var o = {};
+ if (s) {
+ if (jQuery.iSort.collected[s] ) {
+ o[s] = [];
+ jQuery('#' + s + ' .' + jQuery.iSort.collected[s]).each(
+ function ()
+ {
+ if (h.length > 0) {
+ h += '&';
+ }
+ h += s + '[]=' + jQuery.attr(this,'id');
+ o[s][o[s].length] = jQuery.attr(this,'id');
+ }
+ );
+ } else {
+ for ( a in s) {
+ if (jQuery.iSort.collected[s[a]] ) {
+ o[s[a]] = [];
+ jQuery('#' + s[a] + ' .' + jQuery.iSort.collected[s[a]]).each(
+ function ()
+ {
+ if (h.length > 0) {
+ h += '&';
+ }
+ h += s[a] + '[]=' + jQuery.attr(this,'id');
+ o[s[a]][o[s[a]].length] = jQuery.attr(this,'id');
+ }
+ );
+ }
+ }
+ }
+ } else {
+ for ( i in jQuery.iSort.collected){
+ o[i] = [];
+ jQuery('#' + i + ' .' + jQuery.iSort.collected[i]).each(
+ function ()
+ {
+ if (h.length > 0) {
+ h += '&';
+ }
+ h += i + '[]=' + jQuery.attr(this,'id');
+ o[i][o[i].length] = jQuery.attr(this,'id');
+ }
+ );
+ }
+ }
+ return {hash:h, o:o};
+ },
+
+ addItem : function (e)
+ {
+ if ( !e.childNodes ) {
+ return;
+ }
+ return this.each(
+ function ()
+ {
+ if(!this.sortCfg || !jQuery(e).is('.' + this.sortCfg.accept))
+ jQuery(e).addClass(this.sortCfg.accept);
+ jQuery(e).Draggable(this.sortCfg.dragCfg);
+ }
+ );
+ },
+
+ destroy: function()
+ {
+ return this.each(
+ function()
+ {
+ jQuery('.' + this.sortCfg.accept).DraggableDestroy();
+ jQuery(this).DroppableDestroy();
+ this.sortCfg = null;
+ this.isSortable = null;
+ }
+ );
+ },
+
+ build : function (o)
+ {
+ if (o.accept && jQuery.iUtil && jQuery.iDrag && jQuery.iDrop) {
+ if (!jQuery.iSort.helper) {
+ jQuery('body',document).append('<div id="sortHelper">&nbsp;</div>');
+ jQuery.iSort.helper = jQuery('#sortHelper');
+ jQuery.iSort.helper.get(0).style.display = 'none';
+ }
+ this.Droppable(
+ {
+ accept : o.accept,
+ activeclass : o.activeclass ? o.activeclass : false,
+ hoverclass : o.hoverclass ? o.hoverclass : false,
+ helperclass : o.helperclass ? o.helperclass : false,
+ /*onDrop: function (drag, fx)
+ {
+ jQuery.iSort.helper.after(drag);
+ if (fx > 0) {
+ jQuery(drag).fadeIn(fx);
+ }
+ },*/
+ onHover: o.onHover||o.onhover,
+ onOut: o.onOut||o.onout,
+ sortable : true,
+ onChange : o.onChange||o.onchange,
+ fx : o.fx ? o.fx : false,
+ ghosting : o.ghosting ? true : false,
+ tolerance: o.tolerance ? o.tolerance : 'intersect'
+ }
+ );
+
+ return this.each(
+ function()
+ {
+ var dragCfg = {
+ revert : o.revert? true : false,
+ zindex : 3000,
+ opacity : o.opacity ? parseFloat(o.opacity) : false,
+ hpc : o.helperclass ? o.helperclass : false,
+ fx : o.fx ? o.fx : false,
+ so : true,
+ ghosting : o.ghosting ? true : false,
+ handle: o.handle ? o.handle : null,
+ containment: o.containment ? o.containment : null,
+ onStart : o.onStart && o.onStart.constructor == Function ? o.onStart : false,
+ onDrag : o.onDrag && o.onDrag.constructor == Function ? o.onDrag : false,
+ onStop : o.onStop && o.onStop.constructor == Function ? o.onStop : false,
+ axis : /vertically|horizontally/.test(o.axis) ? o.axis : false,
+ snapDistance : o.snapDistance ? parseInt(o.snapDistance)||0 : false,
+ cursorAt: o.cursorAt ? o.cursorAt : false
+ };
+ jQuery('.' + o.accept, this).Draggable(dragCfg);
+ this.isSortable = true;
+ this.sortCfg = {
+ accept : o.accept,
+ revert : o.revert? true : false,
+ zindex : 3000,
+ opacity : o.opacity ? parseFloat(o.opacity) : false,
+ hpc : o.helperclass ? o.helperclass : false,
+ fx : o.fx ? o.fx : false,
+ so : true,
+ ghosting : o.ghosting ? true : false,
+ handle: o.handle ? o.handle : null,
+ containment: o.containment ? o.containment : null,
+ floats: o.floats ? true : false,
+ dragCfg : dragCfg
+ }
+ }
+ );
+ }
+ }
+};
+
+jQuery.fn.extend(
+ {
+ Sortable : jQuery.iSort.build,
+ /**
+ * A new item can be added to a sortable by adding it to the DOM and then adding it via
+ * SortableAddItem.
+ *
+ * @name SortableAddItem
+ * @param DOMElement elem A DOM Element to add to the sortable list
+ * @example $('#sortable1').append('<li id="newitem">new item</li>')
+ * .SortableAddItem($("#new_item")[0])
+ * @type jQuery
+ * @cat Plugins/Interface
+ */
+ SortableAddItem : jQuery.iSort.addItem,
+ /**
+ * Destroy a sortable
+ *
+ * @name SortableDestroy
+ * @example $('#sortable1').SortableDestroy();
+ * @type jQuery
+ * @cat Plugins/Interface
+ */
+ SortableDestroy: jQuery.iSort.destroy
+ }
+);
+
+/**
+ * This function returns the hash and an object (can be used as arguments for $.post) for every
+ * sortable in the page or specific sortables. The hash is based on the 'id' attributes of
+ * container and items.
+ *
+ * @params String sortable The id of the sortable to serialize
+ * @name $.SortSerialize
+ * @type String
+ * @cat Plugins/Interface
+ */
+
+jQuery.SortSerialize = jQuery.iSort.serialize; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/itooltip.js b/javascript/libs/jquery/full/interface/itooltip.js
new file mode 100644
index 0000000..1ef350f
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/itooltip.js
@@ -0,0 +1,184 @@
+/**
+ * Interface Elements for jQuery
+ * Tooltip
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+/**
+ * Creates tooltips using title attribute
+ *
+ *
+ *
+ * @name ToolTip
+ * @description Creates tooltips using title attribute
+ * @param Hash hash A hash of parameters
+ * @option String position tooltip's position ['top'|'left'|'right'|'bottom'|'mouse']
+ * @options Function onShow (optional) A function to be executed whenever the tooltip is displayed
+ * @options Function onHide (optional) A function to be executed whenever the tooltip is hidden
+ *
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+jQuery.iTooltip = {
+ current : null,
+ focused : false,
+ oldTitle : null,
+ focus : function(e)
+ {
+ jQuery.iTooltip.focused = true;
+ jQuery.iTooltip.show(e, this, true);
+ },
+ hidefocused : function(e)
+ {
+ if (jQuery.iTooltip.current != this)
+ return ;
+ jQuery.iTooltip.focused = false;
+ jQuery.iTooltip.hide(e, this);
+ },
+ show : function(e, el, focused)
+ {
+ if (jQuery.iTooltip.current != null)
+ return ;
+ if (!el) {
+ el = this;
+ }
+
+ jQuery.iTooltip.current = el;
+ pos = jQuery.extend(
+ jQuery.iUtil.getPosition(el),
+ jQuery.iUtil.getSize(el)
+ );
+ jEl = jQuery(el);
+ title = jEl.attr('title');
+ href = jEl.attr('href');
+ if (title) {
+ jQuery.iTooltip.oldTitle = title;
+ jEl.attr('title','');
+ jQuery('#tooltipTitle').html(title);
+ if (href)
+ jQuery('#tooltipURL').html(href.replace('http://', ''));
+ else
+ jQuery('#tooltipURL').html('');
+ helper = jQuery('#tooltipHelper');
+ if(el.tooltipCFG.className){
+ helper.get(0).className = el.tooltipCFG.className;
+ } else {
+ helper.get(0).className = '';
+ }
+ helperSize = jQuery.iUtil.getSize(helper.get(0));
+ filteredPosition = focused && el.tooltipCFG.position == 'mouse' ? 'bottom' : el.tooltipCFG.position;
+
+ switch (filteredPosition) {
+ case 'top':
+ ny = pos.y - helperSize.hb;
+ nx = pos.x;
+ break;
+ case 'left' :
+ ny = pos.y;
+ nx = pos.x - helperSize.wb;
+ break;
+ case 'right' :
+ ny = pos.y;
+ nx = pos.x + pos.wb;
+ break;
+ case 'mouse' :
+ jQuery('body').bind('mousemove', jQuery.iTooltip.mousemove);
+ pointer = jQuery.iUtil.getPointer(e);
+ ny = pointer.y + 15;
+ nx = pointer.x + 15;
+ break;
+ default :
+ ny = pos.y + pos.hb;
+ nx = pos.x;
+ break;
+ }
+ helper.css(
+ {
+ top : ny + 'px',
+ left : nx + 'px'
+ }
+ );
+ if (el.tooltipCFG.delay == false) {
+ helper.show();
+ } else {
+ helper.fadeIn(el.tooltipCFG.delay);
+ }
+ if (el.tooltipCFG.onShow)
+ el.tooltipCFG.onShow.apply(el);
+ jEl.bind('mouseout',jQuery.iTooltip.hide)
+ .bind('blur',jQuery.iTooltip.hidefocused);
+ }
+ },
+ mousemove : function(e)
+ {
+ if (jQuery.iTooltip.current == null) {
+ jQuery('body').unbind('mousemove', jQuery.iTooltip.mousemove);
+ return;
+ }
+ pointer = jQuery.iUtil.getPointer(e);
+ jQuery('#tooltipHelper').css(
+ {
+ top : pointer.y + 15 + 'px',
+ left : pointer.x + 15 + 'px'
+ }
+ );
+ },
+ hide : function(e, el)
+ {
+ if (!el) {
+ el = this;
+ }
+ if (jQuery.iTooltip.focused != true && jQuery.iTooltip.current == el) {
+ jQuery.iTooltip.current = null;
+ jQuery('#tooltipHelper').fadeOut(1);
+ jQuery(el)
+ .attr('title',jQuery.iTooltip.oldTitle)
+ .unbind('mouseout', jQuery.iTooltip.hide)
+ .unbind('blur', jQuery.iTooltip.hidefocused);
+ if (el.tooltipCFG.onHide)
+ el.tooltipCFG.onHide.apply(el);
+ jQuery.iTooltip.oldTitle = null;
+ }
+ },
+ build : function(options)
+ {
+ if (!jQuery.iTooltip.helper)
+ {
+ jQuery('body').append('<div id="tooltipHelper"><div id="tooltipTitle"></div><div id="tooltipURL"></div></div>');
+ jQuery('#tooltipHelper').css(
+ {
+ position: 'absolute',
+ zIndex: 3000,
+ display: 'none'
+ }
+ );
+ jQuery.iTooltip.helper = true;
+ }
+ return this.each(
+ function(){
+ if(jQuery.attr(this,'title')) {
+ this.tooltipCFG = {
+ position : /top|bottom|left|right|mouse/.test(options.position) ? options.position : 'bottom',
+ className : options.className ? options.className : false,
+ delay : options.delay ? options.delay : false,
+ onShow : options.onShow && options.onShow.constructor == Function ? options.onShow : false,
+ onHide : options.onHide && options.onHide.constructor == Function ? options.onHide : false
+ };
+ var el = jQuery(this);
+ el.bind('mouseover',jQuery.iTooltip.show);
+ el.bind('focus',jQuery.iTooltip.focus);
+ }
+ }
+ );
+ }
+};
+
+jQuery.fn.ToolTip = jQuery.iTooltip.build; \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/ittabs.js b/javascript/libs/jquery/full/interface/ittabs.js
new file mode 100644
index 0000000..54b9330
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/ittabs.js
@@ -0,0 +1,92 @@
+/**
+ * Interface Elements for jQuery
+ * TTabs
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ *
+ */
+
+jQuery.iTTabs =
+{
+ doTab : function(e)
+ {
+ pressedKey = e.charCode || e.keyCode || -1;
+ if (pressedKey == 9) {
+ if (window.event) {
+ window.event.cancelBubble = true;
+ window.event.returnValue = false;
+ } else {
+ e.preventDefault();
+ e.stopPropagation();
+ }
+ if (this.createTextRange) {
+ document.selection.createRange().text="\t";
+ this.onblur = function() { this.focus(); this.onblur = null; };
+ } else if (this.setSelectionRange) {
+ start = this.selectionStart;
+ end = this.selectionEnd;
+ this.value = this.value.substring(0, start) + "\t" + this.value.substr(end);
+ this.setSelectionRange(start + 1, start + 1);
+ this.focus();
+ }
+ return false;
+ }
+ },
+ destroy : function()
+ {
+ return this.each(
+ function()
+ {
+ if (this.hasTabsEnabled && this.hasTabsEnabled == true) {
+ jQuery(this).unbind('keydown', jQuery.iTTabs.doTab);
+ this.hasTabsEnabled = false;
+ }
+ }
+ );
+ },
+ build : function()
+ {
+ return this.each(
+ function()
+ {
+ if (this.tagName == 'TEXTAREA' && (!this.hasTabsEnabled || this.hasTabsEnabled == false)) {
+ jQuery(this).bind('keydown', jQuery.iTTabs.doTab);
+ this.hasTabsEnabled = true;
+ }
+ }
+ );
+ }
+};
+
+jQuery.fn.extend (
+ {
+ /**
+ * Enable tabs in textareas
+ *
+ * @name EnableTabs
+ * @description Enable tabs in textareas
+ *
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ EnableTabs : jQuery.iTTabs.build,
+ /**
+ * Disable tabs in textareas
+ *
+ * @name DisableTabs
+ * @description Disable tabs in textareas
+ *
+ * @type jQuery
+ * @cat Plugins/Interface
+ * @author Stefan Petre
+ */
+ DisableTabs : jQuery.iTTabs.destroy
+ }
+); \ No newline at end of file
diff --git a/javascript/libs/jquery/full/interface/iutil.js b/javascript/libs/jquery/full/interface/iutil.js
new file mode 100644
index 0000000..2dcba9f
--- /dev/null
+++ b/javascript/libs/jquery/full/interface/iutil.js
@@ -0,0 +1,245 @@
+/**
+ * Interface Elements for jQuery
+ * utility function
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+
+jQuery.iUtil = {
+ getPosition : function(e)
+ {
+ var x = 0;
+ var y = 0;
+ var es = e.style;
+ var restoreStyles = false;
+ if (jQuery(e).css('display') == 'none') {
+ var oldVisibility = es.visibility;
+ var oldPosition = es.position;
+ restoreStyles = true;
+ es.visibility = 'hidden';
+ es.display = 'block';
+ es.position = 'absolute';
+ }
+ var el = e;
+ while (el){
+ x += el.offsetLeft + (el.currentStyle && !jQuery.browser.opera ?parseInt(el.currentStyle.borderLeftWidth)||0:0);
+ y += el.offsetTop + (el.currentStyle && !jQuery.browser.opera ?parseInt(el.currentStyle.borderTopWidth)||0:0);
+ el = el.offsetParent;
+ }
+ el = e;
+ while (el && el.tagName && el.tagName.toLowerCase() != 'body')
+ {
+ x -= el.scrollLeft||0;
+ y -= el.scrollTop||0;
+ el = el.parentNode;
+ }
+ if (restoreStyles == true) {
+ es.display = 'none';
+ es.position = oldPosition;
+ es.visibility = oldVisibility;
+ }
+ return {x:x, y:y};
+ },
+ getPositionLite : function(el)
+ {
+ var x = 0, y = 0;
+ while(el) {
+ x += el.offsetLeft || 0;
+ y += el.offsetTop || 0;
+ el = el.offsetParent;
+ }
+ return {x:x, y:y};
+ },
+ getSize : function(e)
+ {
+ var w = jQuery.css(e,'width');
+ var h = jQuery.css(e,'height');
+ var wb = 0;
+ var hb = 0;
+ var es = e.style;
+ if (jQuery(e).css('display') != 'none') {
+ wb = e.offsetWidth;
+ hb = e.offsetHeight;
+ } else {
+ var oldVisibility = es.visibility;
+ var oldPosition = es.position;
+ es.visibility = 'hidden';
+ es.display = 'block';
+ es.position = 'absolute';
+ wb = e.offsetWidth;
+ hb = e.offsetHeight;
+ es.display = 'none';
+ es.position = oldPosition;
+ es.visibility = oldVisibility;
+ }
+ return {w:w, h:h, wb:wb, hb:hb};
+ },
+ getSizeLite : function(el)
+ {
+ return {
+ wb:el.offsetWidth||0,
+ hb:el.offsetHeight||0
+ };
+ },
+ getClient : function(e)
+ {
+ var h, w, de;
+ if (e) {
+ w = e.clientWidth;
+ h = e.clientHeight;
+ } else {
+ de = document.documentElement;
+ w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
+ h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
+ }
+ return {w:w,h:h};
+ },
+ getScroll : function (e)
+ {
+ var t=0, l=0, w=0, h=0, iw=0, ih=0;
+ if (e && e.nodeName.toLowerCase() != 'body') {
+ t = e.scrollTop;
+ l = e.scrollLeft;
+ w = e.scrollWidth;
+ h = e.scrollHeight;
+ iw = 0;
+ ih = 0;
+ } else {
+ if (document.documentElement) {
+ t = document.documentElement.scrollTop;
+ l = document.documentElement.scrollLeft;
+ w = document.documentElement.scrollWidth;
+ h = document.documentElement.scrollHeight;
+ } else if (document.body) {
+ t = document.body.scrollTop;
+ l = document.body.scrollLeft;
+ w = document.body.scrollWidth;
+ h = document.body.scrollHeight;
+ }
+ iw = self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;
+ ih = self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0;
+ }
+ return { t: t, l: l, w: w, h: h, iw: iw, ih: ih };
+ },
+ getMargins : function(e, toInteger)
+ {
+ var el = jQuery(e);
+ var t = el.css('marginTop') || '';
+ var r = el.css('marginRight') || '';
+ var b = el.css('marginBottom') || '';
+ var l = el.css('marginLeft') || '';
+ if (toInteger)
+ return {
+ t: parseInt(t)||0,
+ r: parseInt(r)||0,
+ b: parseInt(b)||0,
+ l: parseInt(l)
+ };
+ else
+ return {t: t, r: r, b: b, l: l};
+ },
+ getPadding : function(e, toInteger)
+ {
+ var el = jQuery(e);
+ var t = el.css('paddingTop') || '';
+ var r = el.css('paddingRight') || '';
+ var b = el.css('paddingBottom') || '';
+ var l = el.css('paddingLeft') || '';
+ if (toInteger)
+ return {
+ t: parseInt(t)||0,
+ r: parseInt(r)||0,
+ b: parseInt(b)||0,
+ l: parseInt(l)
+ };
+ else
+ return {t: t, r: r, b: b, l: l};
+ },
+ getBorder : function(e, toInteger)
+ {
+ var el = jQuery(e);
+ var t = el.css('borderTopWidth') || '';
+ var r = el.css('borderRightWidth') || '';
+ var b = el.css('borderBottomWidth') || '';
+ var l = el.css('borderLeftWidth') || '';
+ if (toInteger)
+ return {
+ t: parseInt(t)||0,
+ r: parseInt(r)||0,
+ b: parseInt(b)||0,
+ l: parseInt(l)||0
+ };
+ else
+ return {t: t, r: r, b: b, l: l};
+ },
+ getPointer : function(event)
+ {
+ var x = event.pageX || (event.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft)) || 0;
+ var y = event.pageY || (event.clientY + (document.documentElement.scrollTop || document.body.scrollTop)) || 0;
+ return {x:x, y:y};
+ },
+ traverseDOM : function(nodeEl, func)
+ {
+ func(nodeEl);
+ nodeEl = nodeEl.firstChild;
+ while(nodeEl){
+ jQuery.iUtil.traverseDOM(nodeEl, func);
+ nodeEl = nodeEl.nextSibling;
+ }
+ },
+ purgeEvents : function(nodeEl)
+ {
+ jQuery.iUtil.traverseDOM(
+ nodeEl,
+ function(el)
+ {
+ for(var attr in el){
+ if(typeof el[attr] === 'function') {
+ el[attr] = null;
+ }
+ }
+ }
+ );
+ },
+ centerEl : function(el, axis)
+ {
+ var clientScroll = jQuery.iUtil.getScroll();
+ var windowSize = jQuery.iUtil.getSize(el);
+ if (!axis || axis == 'vertically')
+ jQuery(el).css(
+ {
+ top: clientScroll.t + ((Math.max(clientScroll.h,clientScroll.ih) - clientScroll.t - windowSize.hb)/2) + 'px'
+ }
+ );
+ if (!axis || axis == 'horizontally')
+ jQuery(el).css(
+ {
+ left: clientScroll.l + ((Math.max(clientScroll.w,clientScroll.iw) - clientScroll.l - windowSize.wb)/2) + 'px'
+ }
+ );
+ },
+ fixPNG : function (el, emptyGIF) {
+ var images = jQuery('img[@src*="png"]', el||document), png;
+ images.each( function() {
+ png = this.src;
+ this.src = emptyGIF;
+ this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + png + "')";
+ });
+ }
+};
+
+// Helper function to support older browsers!
+[].indexOf || (Array.prototype.indexOf = function(v, n){
+ n = (n == null) ? 0 : n;
+ var m = this.length;
+ for (var i=n; i<m; i++)
+ if (this[i] == v)
+ return i;
+ return -1;
+});
diff --git a/javascript/libs/jquery/full/jquery.js b/javascript/libs/jquery/full/jquery.js
new file mode 100644
index 0000000..450ea4b
--- /dev/null
+++ b/javascript/libs/jquery/full/jquery.js
@@ -0,0 +1,3549 @@
+(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/06/20 04:13:02 $
+ * $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);
+ };
+
+});})();
diff --git a/javascript/libs/jquery/full/ui/effects.blind.js b/javascript/libs/jquery/full/ui/effects.blind.js
new file mode 100644
index 0000000..f39df9a
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.blind.js
@@ -0,0 +1,50 @@
+/*
+ * jQuery UI Effects Blind
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Blind
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.blind = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+ var direction = o.options.direction || 'vertical'; // Default direction
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+ var ref = (direction == 'vertical') ? 'height' : 'width';
+ var distance = (direction == 'vertical') ? wrapper.height() : wrapper.width();
+ if(mode == 'show') wrapper.css(ref, 0); // Shift
+
+ // Animation
+ var animation = {};
+ animation[ref] = mode == 'show' ? distance : 0;
+
+ // Animate
+ wrapper.animate(animation, o.duration, o.options.easing, function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(el[0], arguments); // Callback
+ el.dequeue();
+ });
+
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.bounce.js b/javascript/libs/jquery/full/ui/effects.bounce.js
new file mode 100644
index 0000000..a85fb7c
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.bounce.js
@@ -0,0 +1,79 @@
+/*
+ * jQuery UI Effects Bounce
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Bounce
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.bounce = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+ var direction = o.options.direction || 'up'; // Default direction
+ var distance = o.options.distance || 20; // Default distance
+ var times = o.options.times || 5; // Default # of times
+ var speed = o.duration || 250; // Default speed per bounce
+ if (/show|hide/.test(mode)) props.push('opacity'); // Avoid touching opacity to prevent clearType and PNG issues in IE
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ $.effects.createWrapper(el); // Create Wrapper
+ var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+ var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+ var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 3 : el.outerWidth({margin:true}) / 3);
+ if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
+ if (mode == 'hide') distance = distance / (times * 2);
+ if (mode != 'hide') times--;
+
+ // Animate
+ if (mode == 'show') { // Show Bounce
+ var animation = {opacity: 1};
+ animation[ref] = (motion == 'pos' ? '+=' : '-=') + distance;
+ el.animate(animation, speed / 2, o.options.easing);
+ distance = distance / 2;
+ times--;
+ };
+ for (var i = 0; i < times; i++) { // Bounces
+ var animation1 = {}, animation2 = {};
+ animation1[ref] = (motion == 'pos' ? '-=' : '+=') + distance;
+ animation2[ref] = (motion == 'pos' ? '+=' : '-=') + distance;
+ el.animate(animation1, speed / 2, o.options.easing).animate(animation2, speed / 2, o.options.easing);
+ distance = (mode == 'hide') ? distance * 2 : distance / 2;
+ };
+ if (mode == 'hide') { // Last Bounce
+ var animation = {opacity: 0};
+ animation[ref] = (motion == 'pos' ? '-=' : '+=') + distance;
+ el.animate(animation, speed / 2, o.options.easing, function(){
+ el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ });
+ } else {
+ var animation1 = {}, animation2 = {};
+ animation1[ref] = (motion == 'pos' ? '-=' : '+=') + distance;
+ animation2[ref] = (motion == 'pos' ? '+=' : '-=') + distance;
+ el.animate(animation1, speed / 2, o.options.easing).animate(animation2, speed / 2, o.options.easing, function(){
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ });
+ };
+ el.queue('fx', function() { el.dequeue(); });
+ el.dequeue();
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.clip.js b/javascript/libs/jquery/full/ui/effects.clip.js
new file mode 100644
index 0000000..3d5990a
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.clip.js
@@ -0,0 +1,54 @@
+/*
+ * jQuery UI Effects Clip
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Clip
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.clip = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left','width','height'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+ var direction = o.options.direction || 'vertical'; // Default direction
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+ var ref = {
+ size: (direction == 'vertical') ? 'height' : 'width',
+ position: (direction == 'vertical') ? 'top' : 'left'
+ };
+ var distance = (direction == 'vertical') ? el.height() : el.width();
+ if(mode == 'show') { el.css(ref.size, 0); el.css(ref.position, distance / 2); } // Shift
+
+ // Animation
+ var animation = {};
+ animation[ref.size] = mode == 'show' ? distance : 0;
+ animation[ref.position] = mode == 'show' ? 0 : distance / 2;
+
+ // Animate
+ el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ el.dequeue();
+ }});
+
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.core.js b/javascript/libs/jquery/full/ui/effects.core.js
new file mode 100644
index 0000000..0b9f357
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.core.js
@@ -0,0 +1,510 @@
+/*
+ * jQuery UI Effects 1.5
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/
+ *
+ */
+;(function($) {
+
+$.effects = $.effects || {}; //Add the 'effects' scope
+
+$.extend($.effects, {
+ save: function(el, set) {
+ for(var i=0;i<set.length;i++) {
+ if(set[i] !== null) $.data(el[0], "ec.storage."+set[i], el[0].style[set[i]]);
+ }
+ },
+ restore: function(el, set) {
+ for(var i=0;i<set.length;i++) {
+ if(set[i] !== null) el.css(set[i], $.data(el[0], "ec.storage."+set[i]));
+ }
+ },
+ setMode: function(el, mode) {
+ if (mode == 'toggle') mode = el.is(':hidden') ? 'show' : 'hide'; // Set for toggle
+ return mode;
+ },
+ getBaseline: function(origin, original) { // Translates a [top,left] array into a baseline value
+ // this should be a little more flexible in the future to handle a string & hash
+ var y, x;
+ switch (origin[0]) {
+ case 'top': y = 0; break;
+ case 'middle': y = 0.5; break;
+ case 'bottom': y = 1; break;
+ default: y = origin[0] / original.height;
+ };
+ switch (origin[1]) {
+ case 'left': x = 0; break;
+ case 'center': x = 0.5; break;
+ case 'right': x = 1; break;
+ default: x = origin[1] / original.width;
+ };
+ return {x: x, y: y};
+ },
+ createWrapper: function(el) {
+ if (el.parent().attr('id') == 'fxWrapper')
+ return el;
+ var props = {width: el.outerWidth({margin:true}), height: el.outerHeight({margin:true}), 'float': el.css('float')};
+ el.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
+ var wrapper = el.parent();
+ if (el.css('position') == 'static'){
+ wrapper.css({position: 'relative'});
+ el.css({position: 'relative'});
+ } else {
+ var top = parseInt(el.css('top'), 10); if(isNaN(top)) top = 'auto';
+ var left = parseInt(el.css('left'), 10); if(isNaN(top)) left = 'auto';
+ wrapper.css({ position: el.css('position'), top: top, left: left, zIndex: el.css('z-index') }).show();
+ el.css({position: 'relative', top:0, left:0});
+ }
+ wrapper.css(props);
+ return wrapper;
+ },
+ removeWrapper: function(el) {
+ if (el.parent().attr('id') == 'fxWrapper')
+ return el.parent().replaceWith(el);
+ return el;
+ },
+ setTransition: function(el, list, factor, val) {
+ val = val || {};
+ $.each(list,function(i, x){
+ unit = el.cssUnit(x);
+ if (unit[0] > 0) val[x] = unit[0] * factor + unit[1];
+ });
+ return val;
+ },
+ animateClass: function(value, duration, easing, callback) {
+
+ var cb = (typeof easing == "function" ? easing : (callback ? callback : null));
+ var ea = (typeof easing == "object" ? easing : null);
+
+ return this.each(function() {
+
+ var offset = {}; var that = $(this); var oldStyleAttr = that.attr("style") || '';
+ if(typeof oldStyleAttr == 'object') oldStyleAttr = oldStyleAttr["cssText"]; /* Stupidly in IE, style is a object.. */
+ if(value.toggle) { that.hasClass(value.toggle) ? value.remove = value.toggle : value.add = value.toggle; }
+
+ //Let's get a style offset
+ var oldStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
+ if(value.add) that.addClass(value.add); if(value.remove) that.removeClass(value.remove);
+ var newStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
+ if(value.add) that.removeClass(value.add); if(value.remove) that.addClass(value.remove);
+
+ // The main function to form the object for animation
+ for(var n in newStyle) {
+ if( typeof newStyle[n] != "function" && newStyle[n] /* No functions and null properties */
+ && n.indexOf("Moz") == -1 && n.indexOf("length") == -1 /* No mozilla spezific render properties. */
+ && newStyle[n] != oldStyle[n] /* Only values that have changed are used for the animation */
+ && (n.match(/color/i) || (!n.match(/color/i) && !isNaN(parseInt(newStyle[n],10)))) /* Only things that can be parsed to integers or colors */
+ && (oldStyle.position != "static" || (oldStyle.position == "static" && !n.match(/left|top|bottom|right/))) /* No need for positions when dealing with static positions */
+ ) offset[n] = newStyle[n];
+ }
+
+ that.animate(offset, duration, ea, function() { // Animate the newly constructed offset object
+ // Change style attribute back to original. For stupid IE, we need to clear the damn object.
+ if(typeof $(this).attr("style") == 'object') { $(this).attr("style")["cssText"] = ""; $(this).attr("style")["cssText"] = oldStyleAttr; } else $(this).attr("style", oldStyleAttr);
+ if(value.add) $(this).addClass(value.add); if(value.remove) $(this).removeClass(value.remove);
+ if(cb) cb.apply(this, arguments);
+ });
+
+ });
+ }
+});
+
+//Extend the methods of jQuery
+$.fn.extend({
+ //Save old methods
+ _show: $.fn.show,
+ _hide: $.fn.hide,
+ __toggle: $.fn.toggle,
+ _addClass: $.fn.addClass,
+ _removeClass: $.fn.removeClass,
+ _toggleClass: $.fn.toggleClass,
+ // New ec methods
+ effect: function(fx,o,speed,callback) {
+ return $.effects[fx] ? $.effects[fx].call(this, {method: fx, options: o || {}, duration: speed, callback: callback }) : null;
+ },
+ show: function() {
+ if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])))
+ return this._show.apply(this, arguments);
+ else {
+ var o = arguments[1] || {}; o['mode'] = 'show';
+ return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
+ }
+ },
+ hide: function() {
+ if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])))
+ return this._hide.apply(this, arguments);
+ else {
+ var o = arguments[1] || {}; o['mode'] = 'hide';
+ return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
+ }
+ },
+ toggle: function(){
+ if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])) || (arguments[0].constructor == Function))
+ return this.__toggle.apply(this, arguments);
+ else {
+ var o = arguments[1] || {}; o['mode'] = 'toggle';
+ return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
+ }
+ },
+ addClass: function(classNames,speed,easing,callback) {
+ return speed ? $.effects.animateClass.apply(this, [{ add: classNames },speed,easing,callback]) : this._addClass(classNames);
+ },
+ removeClass: function(classNames,speed,easing,callback) {
+ return speed ? $.effects.animateClass.apply(this, [{ remove: classNames },speed,easing,callback]) : this._removeClass(classNames);
+ },
+ toggleClass: function(classNames,speed,easing,callback) {
+ return speed ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames);
+ },
+ morph: function(remove,add,speed,easing,callback) {
+ return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]);
+ },
+ switchClass: function() {
+ return this.morph.apply(this, arguments);
+ },
+ // helper functions
+ cssUnit: function(key) {
+ var style = this.css(key), val = [];
+ $.each( ['em','px','%','pt'], function(i, unit){
+ if(style.indexOf(unit) > 0)
+ val = [parseFloat(style), unit];
+ });
+ return val;
+ }
+});
+
+/*
+ * jQuery Color Animations
+ * Copyright 2007 John Resig
+ * Released under the MIT and GPL licenses.
+ */
+
+// We override the animation for all of these color styles
+jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
+ jQuery.fx.step[attr] = function(fx){
+ if ( fx.state == 0 ) {
+ fx.start = getColor( fx.elem, attr );
+ fx.end = getRGB( fx.end );
+ }
+
+ fx.elem.style[attr] = "rgb(" + [
+ Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
+ Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
+ Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
+ ].join(",") + ")";
+ }
+});
+
+// Color Conversion functions from highlightFade
+// By Blair Mitchelmore
+// http://jquery.offput.ca/highlightFade/
+
+// Parse strings looking for color tuples [255,255,255]
+function getRGB(color) {
+ var result;
+
+ // Check if we're already dealing with an array of colors
+ if ( color && color.constructor == Array && color.length == 3 )
+ return color;
+
+ // Look for rgb(num,num,num)
+ if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
+ return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];
+
+ // Look for rgb(num%,num%,num%)
+ if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
+ return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];
+
+ // Look for #a0b1c2
+ if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
+ return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];
+
+ // Look for #fff
+ if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
+ return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];
+
+ // Look for rgba(0, 0, 0, 0) == transparent in Safari 3
+ if (result = /rgba\(0, 0, 0, 0\)/.exec(color))
+ return colors['transparent']
+
+ // Otherwise, we're most likely dealing with a named color
+ return colors[jQuery.trim(color).toLowerCase()];
+}
+
+function getColor(elem, attr) {
+ var color;
+
+ do {
+ color = jQuery.curCSS(elem, attr);
+
+ // Keep going until we find an element that has color, or we hit the body
+ if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
+ break;
+
+ attr = "backgroundColor";
+ } while ( elem = elem.parentNode );
+
+ return getRGB(color);
+};
+
+// Some named colors to work with
+// From Interface by Stefan Petre
+// http://interface.eyecon.ro/
+
+var colors = {
+ aqua:[0,255,255],
+ azure:[240,255,255],
+ beige:[245,245,220],
+ black:[0,0,0],
+ blue:[0,0,255],
+ brown:[165,42,42],
+ cyan:[0,255,255],
+ darkblue:[0,0,139],
+ darkcyan:[0,139,139],
+ darkgrey:[169,169,169],
+ darkgreen:[0,100,0],
+ darkkhaki:[189,183,107],
+ darkmagenta:[139,0,139],
+ darkolivegreen:[85,107,47],
+ darkorange:[255,140,0],
+ darkorchid:[153,50,204],
+ darkred:[139,0,0],
+ darksalmon:[233,150,122],
+ darkviolet:[148,0,211],
+ fuchsia:[255,0,255],
+ gold:[255,215,0],
+ green:[0,128,0],
+ indigo:[75,0,130],
+ khaki:[240,230,140],
+ lightblue:[173,216,230],
+ lightcyan:[224,255,255],
+ lightgreen:[144,238,144],
+ lightgrey:[211,211,211],
+ lightpink:[255,182,193],
+ lightyellow:[255,255,224],
+ lime:[0,255,0],
+ magenta:[255,0,255],
+ maroon:[128,0,0],
+ navy:[0,0,128],
+ olive:[128,128,0],
+ orange:[255,165,0],
+ pink:[255,192,203],
+ purple:[128,0,128],
+ violet:[128,0,128],
+ red:[255,0,0],
+ silver:[192,192,192],
+ white:[255,255,255],
+ yellow:[255,255,0],
+ transparent: [255,255,255]
+};
+
+/*
+ * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
+ *
+ * Uses the built in easing capabilities added In jQuery 1.1
+ * to offer multiple easing options
+ *
+ * TERMS OF USE - jQuery Easing
+ *
+ * Open source under the BSD License.
+ *
+ * Copyright © 2008 George McGinley Smith
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this list of
+ * conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list
+ * of conditions and the following disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * Neither the name of the author nor the names of contributors may be used to endorse
+ * or promote products derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+*/
+
+// t: current time, b: begInnIng value, c: change In value, d: duration
+jQuery.easing['jswing'] = jQuery.easing['swing'];
+
+jQuery.extend( jQuery.easing,
+{
+ def: 'easeOutQuad',
+ swing: function (x, t, b, c, d) {
+ //alert(jQuery.easing.default);
+ return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
+ },
+ easeInQuad: function (x, t, b, c, d) {
+ return c*(t/=d)*t + b;
+ },
+ easeOutQuad: function (x, t, b, c, d) {
+ return -c *(t/=d)*(t-2) + b;
+ },
+ easeInOutQuad: function (x, t, b, c, d) {
+ if ((t/=d/2) < 1) return c/2*t*t + b;
+ return -c/2 * ((--t)*(t-2) - 1) + b;
+ },
+ easeInCubic: function (x, t, b, c, d) {
+ return c*(t/=d)*t*t + b;
+ },
+ easeOutCubic: function (x, t, b, c, d) {
+ return c*((t=t/d-1)*t*t + 1) + b;
+ },
+ easeInOutCubic: function (x, t, b, c, d) {
+ if ((t/=d/2) < 1) return c/2*t*t*t + b;
+ return c/2*((t-=2)*t*t + 2) + b;
+ },
+ easeInQuart: function (x, t, b, c, d) {
+ return c*(t/=d)*t*t*t + b;
+ },
+ easeOutQuart: function (x, t, b, c, d) {
+ return -c * ((t=t/d-1)*t*t*t - 1) + b;
+ },
+ easeInOutQuart: function (x, t, b, c, d) {
+ if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
+ return -c/2 * ((t-=2)*t*t*t - 2) + b;
+ },
+ easeInQuint: function (x, t, b, c, d) {
+ return c*(t/=d)*t*t*t*t + b;
+ },
+ easeOutQuint: function (x, t, b, c, d) {
+ return c*((t=t/d-1)*t*t*t*t + 1) + b;
+ },
+ easeInOutQuint: function (x, t, b, c, d) {
+ if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
+ return c/2*((t-=2)*t*t*t*t + 2) + b;
+ },
+ easeInSine: function (x, t, b, c, d) {
+ return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
+ },
+ easeOutSine: function (x, t, b, c, d) {
+ return c * Math.sin(t/d * (Math.PI/2)) + b;
+ },
+ easeInOutSine: function (x, t, b, c, d) {
+ return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
+ },
+ easeInExpo: function (x, t, b, c, d) {
+ return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
+ },
+ easeOutExpo: function (x, t, b, c, d) {
+ return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
+ },
+ easeInOutExpo: function (x, t, b, c, d) {
+ if (t==0) return b;
+ if (t==d) return b+c;
+ if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
+ return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
+ },
+ easeInCirc: function (x, t, b, c, d) {
+ return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
+ },
+ easeOutCirc: function (x, t, b, c, d) {
+ return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
+ },
+ easeInOutCirc: function (x, t, b, c, d) {
+ if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
+ return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
+ },
+ easeInElastic: function (x, t, b, c, d) {
+ var s=1.70158;var p=0;var a=c;
+ if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
+ return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
+ },
+ easeOutElastic: function (x, t, b, c, d) {
+ var s=1.70158;var p=0;var a=c;
+ if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
+ return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
+ },
+ easeInOutElastic: function (x, t, b, c, d) {
+ var s=1.70158;var p=0;var a=c;
+ if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
+ if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
+ return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
+ },
+ easeInBack: function (x, t, b, c, d, s) {
+ if (s == undefined) s = 1.70158;
+ return c*(t/=d)*t*((s+1)*t - s) + b;
+ },
+ easeOutBack: function (x, t, b, c, d, s) {
+ if (s == undefined) s = 1.70158;
+ return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
+ },
+ easeInOutBack: function (x, t, b, c, d, s) {
+ if (s == undefined) s = 1.70158;
+ if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
+ return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
+ },
+ easeInBounce: function (x, t, b, c, d) {
+ return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
+ },
+ easeOutBounce: function (x, t, b, c, d) {
+ if ((t/=d) < (1/2.75)) {
+ return c*(7.5625*t*t) + b;
+ } else if (t < (2/2.75)) {
+ return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
+ } else if (t < (2.5/2.75)) {
+ return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
+ } else {
+ return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
+ }
+ },
+ easeInOutBounce: function (x, t, b, c, d) {
+ if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
+ return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
+ }
+});
+
+/*
+ *
+ * TERMS OF USE - EASING EQUATIONS
+ *
+ * Open source under the BSD License.
+ *
+ * Copyright © 2001 Robert Penner
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this list of
+ * conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list
+ * of conditions and the following disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * Neither the name of the author nor the names of contributors may be used to endorse
+ * or promote products derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.drop.js b/javascript/libs/jquery/full/ui/effects.drop.js
new file mode 100644
index 0000000..466bb55
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.drop.js
@@ -0,0 +1,51 @@
+/*
+ * jQuery UI Effects Drop
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Drop
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.drop = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left','opacity'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+ var direction = o.options.direction || 'left'; // Default Direction
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ $.effects.createWrapper(el); // Create Wrapper
+ var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+ var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+ var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 2 : el.outerWidth({margin:true}) / 2);
+ if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
+
+ // Animation
+ var animation = {opacity: mode == 'show' ? 1 : 0};
+ animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance;
+
+ // Animate
+ el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ el.dequeue();
+ }});
+
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.explode.js b/javascript/libs/jquery/full/ui/effects.explode.js
new file mode 100644
index 0000000..39f9c7d
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.explode.js
@@ -0,0 +1,80 @@
+/*
+ * jQuery UI Effects Explode
+ *
+ * Copyright (c) 2008 Paul Bakaus (ui.jquery.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Explode
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.explode = function(o) {
+
+ return this.queue(function() {
+
+ var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
+ var cells = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
+
+ o.options.mode = o.options.mode == 'toggle' ? ($(this).is(':visible') ? 'hide' : 'show') : o.options.mode;
+ var el = $(this).show().css('visibility', 'hidden');
+ var offset = el.offset();
+
+ //Substract the margins - not fixing the problem yet.
+ offset.top -= parseInt(el.css("marginTop")) || 0;
+ offset.left -= parseInt(el.css("marginLeft")) || 0;
+
+ var width = el.outerWidth(true);
+ var height = el.outerHeight(true);
+
+ for(var i=0;i<rows;i++) { // =
+ for(var j=0;j<cells;j++) { // ||
+ el
+ .clone()
+ .appendTo('body')
+ .wrap('<div></div>')
+ .css({
+ position: 'absolute',
+ visibility: 'visible',
+ left: -j*(width/cells),
+ top: -i*(height/rows)
+ })
+ .parent()
+ .addClass('effects-explode')
+ .css({
+ position: 'absolute',
+ overflow: 'hidden',
+ width: width/cells,
+ height: height/rows,
+ left: offset.left + j*(width/cells) + (o.options.mode == 'show' ? (j-Math.floor(cells/2))*(width/cells) : 0),
+ top: offset.top + i*(height/rows) + (o.options.mode == 'show' ? (i-Math.floor(rows/2))*(height/rows) : 0),
+ opacity: o.options.mode == 'show' ? 0 : 1
+ }).animate({
+ left: offset.left + j*(width/cells) + (o.options.mode == 'show' ? 0 : (j-Math.floor(cells/2))*(width/cells)),
+ top: offset.top + i*(height/rows) + (o.options.mode == 'show' ? 0 : (i-Math.floor(rows/2))*(height/rows)),
+ opacity: o.options.mode == 'show' ? 1 : 0
+ }, o.duration || 500);
+ }
+ }
+
+ // Set a timeout, to call the callback approx. when the other animations have finished
+ setTimeout(function() {
+
+ o.options.mode == 'show' ? el.css({ visibility: 'visible' }) : el.css({ visibility: 'visible' }).hide();
+ if(o.callback) o.callback.apply(el[0]); // Callback
+ el.dequeue();
+
+ $('.effects-explode').remove();
+
+ }, o.duration || 500);
+
+
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.fold.js b/javascript/libs/jquery/full/ui/effects.fold.js
new file mode 100644
index 0000000..23ce189
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.fold.js
@@ -0,0 +1,52 @@
+/*
+ * jQuery UI Effects Fold
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Fold
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.fold = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+ var size = o.options.size || 15; // Default fold size
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+ var ref = (mode == 'show') ? ['width', 'height'] : ['height', 'width'];
+ var distance = (mode == 'show') ? [wrapper.width(), wrapper.height()] : [wrapper.height(), wrapper.width()];
+ if(mode == 'show') wrapper.css({height: size, width: 0}); // Shift
+
+ // Animation
+ var animation1 = {}, animation2 = {};
+ animation1[ref[0]] = mode == 'show' ? distance[0] : size;
+ animation2[ref[1]] = mode == 'show' ? distance[1] : 0;
+
+ // Animate
+ wrapper.animate(animation1, o.duration / 2, o.options.easing)
+ .animate(animation2, o.duration / 2, o.options.easing, function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(el[0], arguments); // Callback
+ el.dequeue();
+ });
+
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.highlight.js b/javascript/libs/jquery/full/ui/effects.highlight.js
new file mode 100644
index 0000000..0e42fb5
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.highlight.js
@@ -0,0 +1,49 @@
+/*
+ * jQuery UI Effects Highlight
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Highlight
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+;(function($) {
+
+$.effects.highlight = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['backgroundImage','backgroundColor','opacity'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
+ var color = o.options.color || "#ffff99"; // Default highlight color
+ var oldColor = el.css("backgroundColor");
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ el.css({backgroundImage: 'none', backgroundColor: color}); // Shift
+
+ // Animation
+ var animation = {backgroundColor: oldColor };
+ if (mode == "hide") animation['opacity'] = 0;
+
+ // Animate
+ el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if(mode == "hide") el.hide();
+ $.effects.restore(el, props);
+ if (mode == "show" && jQuery.browser.msie) this.style.removeAttribute('filter');
+ if(o.callback) o.callback.apply(this, arguments);
+ el.dequeue();
+ }});
+
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.pulsate.js b/javascript/libs/jquery/full/ui/effects.pulsate.js
new file mode 100644
index 0000000..3bdeb0e
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.pulsate.js
@@ -0,0 +1,56 @@
+/*
+ * jQuery UI Effects Pulsate
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Pulsate
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.pulsate = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this);
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
+ var times = o.options.times || 5; // Default # of times
+
+ // Adjust
+ if (mode == 'hide') times--;
+ if (el.is(':hidden')) { // Show fadeIn
+ el.css('opacity', 0);
+ el.show(); // Show
+ el.animate({opacity: 1}, o.duration / 2, o.options.easing);
+ times = times-2;
+ }
+
+ // Animate
+ for (var i = 0; i < times; i++) { // Pulsate
+ el.animate({opacity: 0}, o.duration / 2, o.options.easing).animate({opacity: 1}, o.duration / 2, o.options.easing);
+ };
+ if (mode == 'hide') { // Last Pulse
+ el.animate({opacity: 0}, o.duration / 2, o.options.easing, function(){
+ el.hide(); // Hide
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ });
+ } else {
+ el.animate({opacity: 0}, o.duration / 2, o.options.easing).animate({opacity: 1}, o.duration / 2, o.options.easing, function(){
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ });
+ };
+ el.queue('fx', function() { el.dequeue(); });
+ el.dequeue();
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.scale.js b/javascript/libs/jquery/full/ui/effects.scale.js
new file mode 100644
index 0000000..54d56f9
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.scale.js
@@ -0,0 +1,180 @@
+/*
+ * jQuery UI Effects Scale
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Scale
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.puff = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this);
+
+ // Set options
+ var options = $.extend(true, {}, o);
+ var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+ var percent = parseInt(o.options.percent) || 150; // Set default puff percent
+ options.fade = true; // It's not a puff if it doesn't fade! :)
+ var original = {height: el.height(), width: el.width()}; // Save original
+
+ // Adjust
+ var factor = percent / 100;
+ el.from = (mode == 'hide') ? original : {height: original.height * factor, width: original.width * factor};
+
+ // Animation
+ options.from = el.from;
+ options.percent = (mode == 'hide') ? percent : 100;
+ options.mode = mode;
+
+ // Animate
+ el.effect('scale', options, o.duration, o.callback);
+ el.dequeue();
+ });
+
+};
+
+$.effects.scale = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this);
+
+ // Set options
+ var options = $.extend(true, {}, o);
+ var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+ var percent = parseInt(o.options.percent) || (parseInt(o.options.percent) == 0 ? 0 : (mode == 'hide' ? 0 : 100)); // Set default scaling percent
+ var direction = o.options.direction || 'both'; // Set default axis
+ var origin = o.options.origin; // The origin of the scaling
+ if (mode != 'effect') { // Set default origin and restore for show/hide
+ origin = origin || ['middle','center'];
+ options.restore = true;
+ }
+ var original = {height: el.height(), width: el.width()}; // Save original
+ el.from = o.options.from || (mode == 'show' ? {height: 0, width: 0} : original); // Default from state
+
+ // Adjust
+ var factor = { // Set scaling factor
+ y: direction != 'horizontal' ? (percent / 100) : 1,
+ x: direction != 'vertical' ? (percent / 100) : 1
+ };
+ el.to = {height: original.height * factor.y, width: original.width * factor.x}; // Set to state
+ if (origin) { // Calculate baseline shifts
+ var baseline = $.effects.getBaseline(origin, original);
+ el.from.top = (original.height - el.from.height) * baseline.y;
+ el.from.left = (original.width - el.from.width) * baseline.x;
+ el.to.top = (original.height - el.to.height) * baseline.y;
+ el.to.left = (original.width - el.to.width) * baseline.x;
+ };
+ if (o.options.fade) { // Fade option to support puff
+ if (mode == 'show') {el.from.opacity = 0; el.to.opacity = 1;};
+ if (mode == 'hide') {el.from.opacity = 1; el.to.opacity = 0;};
+ };
+
+ // Animation
+ options.from = el.from; options.to = el.to; options.mode = mode;
+
+ // Animate
+ el.effect('size', options, o.duration, o.callback);
+ el.dequeue();
+ });
+
+};
+
+$.effects.size = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left','width','height','overflow','opacity'];
+ var props1 = ['position','overflow','opacity']; // Always restore
+ var props2 = ['width','height','overflow']; // Copy for children
+ var cProps = ['fontSize'];
+ var vProps = ['borderTopWidth', 'borderBottomWidth', 'paddingTop', 'paddingBottom'];
+ var hProps = ['borderLeftWidth', 'borderRightWidth', 'paddingLeft', 'paddingRight'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+ var restore = o.options.restore || false; // Default restore
+ var scale = o.options.scale || 'both'; // Default scale mode
+ var original = {height: el.height(), width: el.width()}; // Save original
+ el.from = o.options.from || original; // Default from state
+ el.to = o.options.to || original; // Default to state
+
+ // Adjust
+ var factor = { // Set scaling factor
+ from: {y: el.from.height / original.height, x: el.from.width / original.width},
+ to: {y: el.to.height / original.height, x: el.to.width / original.width}
+ };
+ if (scale == 'box' || scale == 'both') { // Scale the css box
+ if (factor.from.y != factor.to.y) { // Vertical props scaling
+ props = props.concat(vProps);
+ el.from = $.effects.setTransition(el, vProps, factor.from.y, el.from);
+ el.to = $.effects.setTransition(el, vProps, factor.to.y, el.to);
+ };
+ if (factor.from.x != factor.to.x) { // Horizontal props scaling
+ props = props.concat(hProps);
+ el.from = $.effects.setTransition(el, hProps, factor.from.x, el.from);
+ el.to = $.effects.setTransition(el, hProps, factor.to.x, el.to);
+ };
+ };
+ if (scale == 'content' || scale == 'both') { // Scale the content
+ if (factor.from.y != factor.to.y) { // Vertical props scaling
+ props = props.concat(cProps);
+ el.from = $.effects.setTransition(el, cProps, factor.from.y, el.from);
+ el.to = $.effects.setTransition(el, cProps, factor.to.y, el.to);
+ };
+ };
+ $.effects.save(el, restore ? props : props1); el.show(); // Save & Show
+ $.effects.createWrapper(el); // Create Wrapper
+ el.css('overflow','hidden').css(el.from); // Shift
+
+ // Animate
+ if (scale == 'content' || scale == 'both') { // Scale the children
+ vProps = vProps.concat(['marginTop','marginBottom']).concat(cProps); // Add margins/font-size
+ hProps = hProps.concat(['marginLeft','marginRight']); // Add margins
+ props2 = props.concat(vProps).concat(hProps); // Concat
+ el.find("*[width]").each(function(){
+ child = $(this);
+ if (restore) $.effects.save(child, props2);
+ var c_original = {height: child.height(), width: child.width()}; // Save original
+ child.from = {height: c_original.height * factor.from.y, width: c_original.width * factor.from.x};
+ child.to = {height: c_original.height * factor.to.y, width: c_original.width * factor.to.x};
+ if (factor.from.y != factor.to.y) { // Vertical props scaling
+ child.from = $.effects.setTransition(child, vProps, factor.from.y, child.from);
+ child.to = $.effects.setTransition(child, vProps, factor.to.y, child.to);
+ };
+ if (factor.from.x != factor.to.x) { // Horizontal props scaling
+ child.from = $.effects.setTransition(child, hProps, factor.from.x, child.from);
+ child.to = $.effects.setTransition(child, hProps, factor.to.x, child.to);
+ };
+ child.css(child.from); // Shift children
+ child.animate(child.to, o.duration, o.options.easing, function(){
+ if (restore) $.effects.restore(child, props2); // Restore children
+ }); // Animate children
+ });
+ };
+
+ // Animate
+ el.animate(el.to, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, restore ? props : props1); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ el.dequeue();
+ }});
+
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.shake.js b/javascript/libs/jquery/full/ui/effects.shake.js
new file mode 100644
index 0000000..dd93df4
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.shake.js
@@ -0,0 +1,58 @@
+/*
+ * jQuery UI Effects Shake
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Shake
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.shake = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+ var direction = o.options.direction || 'left'; // Default direction
+ var distance = o.options.distance || 20; // Default distance
+ var times = o.options.times || 3; // Default # of times
+ var speed = o.duration || o.options.duration || 140; // Default speed per shake
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ $.effects.createWrapper(el); // Create Wrapper
+ var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+ var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+
+ // Animation
+ var animation = {}, animation1 = {}, animation2 = {};
+ animation[ref] = (motion == 'pos' ? '-=' : '+=') + distance;
+ animation1[ref] = (motion == 'pos' ? '+=' : '-=') + distance * 2;
+ animation2[ref] = (motion == 'pos' ? '-=' : '+=') + distance * 2;
+
+ // Animate
+ el.animate(animation, speed, o.options.easing);
+ for (var i = 1; i < times; i++) { // Shakes
+ el.animate(animation1, speed, o.options.easing).animate(animation2, speed, o.options.easing);
+ };
+ el.animate(animation1, speed, o.options.easing).
+ animate(animation, speed / 2, o.options.easing, function(){ // Last shake
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ });
+ el.queue('fx', function() { el.dequeue(); });
+ el.dequeue();
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.slide.js b/javascript/libs/jquery/full/ui/effects.slide.js
new file mode 100644
index 0000000..722ee23
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.slide.js
@@ -0,0 +1,51 @@
+/*
+ * jQuery UI Effects Slide
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Slide
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.slide = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
+ var direction = o.options.direction || 'left'; // Default Direction
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+ var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+ var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+ var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) : el.outerWidth({margin:true}));
+ if (mode == 'show') el.css(ref, motion == 'pos' ? -distance : distance); // Shift
+
+ // Animation
+ var animation = {};
+ animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance;
+
+ // Animate
+ el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ el.dequeue();
+ }});
+
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/effects.transfer.js b/javascript/libs/jquery/full/ui/effects.transfer.js
new file mode 100644
index 0000000..dd77d8d
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/effects.transfer.js
@@ -0,0 +1,60 @@
+/*
+ * jQuery UI Effects Transfer
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Transfer
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.transfer = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this);
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+ var target = $(o.options.to); // Find Target
+ var position = el.offset();
+ var transfer = $('<div class="ui-effects-transfer"></div>').appendTo(document.body);
+ if(o.options.className) transfer.addClass(o.options.className);
+
+ // Set target css
+ transfer.addClass(o.options.className);
+ transfer.css({
+ top: position.top,
+ left: position.left,
+ height: el.outerHeight(true) - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
+ width: el.outerWidth(true) - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth')),
+ position: 'absolute'
+ });
+
+ // Animation
+ position = target.offset();
+ animation = {
+ top: position.top,
+ left: position.left,
+ height: target.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
+ width: target.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth'))
+ };
+
+ // Animate
+ transfer.animate(animation, o.duration, o.options.easing, function() {
+ transfer.remove(); // Remove div
+ if(o.callback) o.callback.apply(el[0], arguments); // Callback
+ el.dequeue();
+ });
+
+ });
+
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/jquery.ui.all.js b/javascript/libs/jquery/full/ui/jquery.ui.all.js
new file mode 100644
index 0000000..9d84b1a
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/jquery.ui.all.js
@@ -0,0 +1,7361 @@
+/*
+ * jQuery UI 1.5
+ *
+ * Copyright (c) 2008 Paul Bakaus (ui.jquery.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI
+ *
+ */
+;(function($) {
+
+$.ui = {
+ plugin: {
+ add: function(module, option, set) {
+ var proto = $.ui[module].prototype;
+ for(var i in set) {
+ proto.plugins[i] = proto.plugins[i] || [];
+ proto.plugins[i].push([option, set[i]]);
+ }
+ },
+ call: function(instance, name, args) {
+ var set = instance.plugins[name];
+ if(!set) { return; }
+
+ for (var i = 0; i < set.length; i++) {
+ if (instance.options[set[i][0]]) {
+ set[i][1].apply(instance.element, args);
+ }
+ }
+ }
+ },
+ cssCache: {},
+ css: function(name) {
+ if ($.ui.cssCache[name]) { return $.ui.cssCache[name]; }
+ var tmp = $('<div class="ui-resizable-gen">').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body');
+
+ //if (!$.browser.safari)
+ //tmp.appendTo('body');
+
+ //Opera and Safari set width and height to 0px instead of auto
+ //Safari returns rgba(0,0,0,0) when bgcolor is not set
+ $.ui.cssCache[name] = !!(
+ (!(/auto|default/).test(tmp.css('cursor')) || (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) ||
+ !(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor')))
+ );
+ try { $('body').get(0).removeChild(tmp.get(0)); } catch(e){}
+ return $.ui.cssCache[name];
+ },
+ disableSelection: function(e) {
+ e.unselectable = "on";
+ e.onselectstart = function() { return false; };
+ if (e.style) { e.style.MozUserSelect = "none"; }
+ },
+ enableSelection: function(e) {
+ e.unselectable = "off";
+ e.onselectstart = function() { return true; };
+ if (e.style) { e.style.MozUserSelect = ""; }
+ },
+ hasScroll: function(e, a) {
+ var scroll = /top/.test(a||"top") ? 'scrollTop' : 'scrollLeft', has = false;
+ if (e[scroll] > 0) return true; e[scroll] = 1;
+ has = e[scroll] > 0 ? true : false; e[scroll] = 0;
+ return has;
+ }
+};
+
+
+/** jQuery core modifications and additions **/
+
+var _remove = $.fn.remove;
+$.fn.remove = function() {
+ $("*", this).add(this).trigger("remove");
+ return _remove.apply(this, arguments );
+};
+
+// $.widget is a factory to create jQuery plugins
+// taking some boilerplate code out of the plugin code
+// created by Scott González and Jörn Zaefferer
+function getter(namespace, plugin, method) {
+ var methods = $[namespace][plugin].getter || [];
+ methods = (typeof methods == "string" ? methods.split(/,?\s+/) : methods);
+ return ($.inArray(method, methods) != -1);
+}
+
+$.widget = function(name, prototype) {
+ var namespace = name.split(".")[0];
+ name = name.split(".")[1];
+
+ // create plugin method
+ $.fn[name] = function(options) {
+ var isMethodCall = (typeof options == 'string'),
+ args = Array.prototype.slice.call(arguments, 1);
+
+ if (isMethodCall && getter(namespace, name, options)) {
+ var instance = $.data(this[0], name);
+ return (instance ? instance[options].apply(instance, args)
+ : undefined);
+ }
+
+ return this.each(function() {
+ var instance = $.data(this, name);
+ if (isMethodCall && instance && $.isFunction(instance[options])) {
+ instance[options].apply(instance, args);
+ } else if (!isMethodCall) {
+ $.data(this, name, new $[namespace][name](this, options));
+ }
+ });
+ };
+
+ // create widget constructor
+ $[namespace][name] = function(element, options) {
+ var self = this;
+
+ this.widgetName = name;
+ this.widgetBaseClass = namespace + '-' + name;
+
+ this.options = $.extend({ disabled: false }, $[namespace][name].defaults, options);
+ this.element = $(element)
+ .bind('setData.' + name, function(e, key, value) {
+ return self.setData(key, value);
+ })
+ .bind('getData.' + name, function(e, key) {
+ return self.getData(key);
+ })
+ .bind('remove', function() {
+ return self.destroy();
+ });
+ this.init();
+ };
+
+ // add widget prototype
+ $[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype);
+};
+
+$.widget.prototype = {
+ init: function() {},
+ destroy: function() {
+ this.element.removeData(this.widgetName);
+ },
+
+ getData: function(key) {
+ return this.options[key];
+ },
+ setData: function(key, value) {
+ this.options[key] = value;
+
+ if (key == 'disabled') {
+ this.element[value ? 'addClass' : 'removeClass'](
+ this.widgetBaseClass + '-disabled');
+ }
+ },
+
+ enable: function() {
+ this.setData('disabled', false);
+ },
+ disable: function() {
+ this.setData('disabled', true);
+ }
+};
+
+
+/** Mouse Interaction Plugin **/
+
+$.ui.mouse = {
+ mouseInit: function() {
+ var self = this;
+
+ this.element.bind('mousedown.'+this.widgetName, function(e) {
+ return self.mouseDown(e);
+ });
+
+ // Prevent text selection in IE
+ if ($.browser.msie) {
+ this._mouseUnselectable = this.element.attr('unselectable');
+ this.element.attr('unselectable', 'on');
+ }
+
+ this.started = false;
+ },
+
+ // TODO: make sure destroying one instance of mouse doesn't mess with
+ // other instances of mouse
+ mouseDestroy: function() {
+ this.element.unbind('.'+this.widgetName);
+
+ // Restore text selection in IE
+ ($.browser.msie
+ && this.element.attr('unselectable', this._mouseUnselectable));
+ },
+
+ mouseDown: function(e) {
+ // we may have missed mouseup (out of window)
+ (this._mouseStarted && this.mouseUp(e));
+
+ this._mouseDownEvent = e;
+
+ var self = this,
+ btnIsLeft = (e.which == 1),
+ elIsCancel = (typeof this.options.cancel == "string" ? $(e.target).is(this.options.cancel) : false);
+ if (!btnIsLeft || elIsCancel || !this.mouseCapture(e)) {
+ return true;
+ }
+
+ this._mouseDelayMet = !this.options.delay;
+ if (!this._mouseDelayMet) {
+ this._mouseDelayTimer = setTimeout(function() {
+ self._mouseDelayMet = true;
+ }, this.options.delay);
+ }
+
+ if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) {
+ this._mouseStarted = (this.mouseStart(e) !== false);
+ if (!this._mouseStarted) { e.preventDefault(); return true; }
+ }
+
+ // these delegates are required to keep context
+ this._mouseMoveDelegate = function(e) {
+ return self.mouseMove(e);
+ };
+ this._mouseUpDelegate = function(e) {
+ return self.mouseUp(e);
+ };
+ $(document)
+ .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
+ .bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
+
+ return false;
+ },
+
+ mouseMove: function(e) {
+ // IE mouseup check - mouseup happened when mouse was out of window
+ if ($.browser.msie && !e.button) {
+ return this.mouseUp(e);
+ }
+
+ if (this._mouseStarted) {
+ this.mouseDrag(e);
+ return false;
+ }
+
+ if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) {
+ this._mouseStarted =
+ (this.mouseStart(this._mouseDownEvent, e) !== false);
+ (this._mouseStarted ? this.mouseDrag(e) : this.mouseUp(e));
+ }
+
+ return !this._mouseStarted;
+ },
+
+ mouseUp: function(e) {
+ $(document)
+ .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
+ .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
+
+ if (this._mouseStarted) {
+ this._mouseStarted = false;
+ this.mouseStop(e);
+ }
+
+ return false;
+ },
+
+ mouseDistanceMet: function(e) {
+ return (Math.max(
+ Math.abs(this._mouseDownEvent.pageX - e.pageX),
+ Math.abs(this._mouseDownEvent.pageY - e.pageY)
+ ) >= this.options.distance
+ );
+ },
+
+ mouseDelayMet: function(e) {
+ return this._mouseDelayMet;
+ },
+
+ // These are placeholder methods, to be overriden by extending plugin
+ mouseStart: function(e) {},
+ mouseDrag: function(e) {},
+ mouseStop: function(e) {},
+ mouseCapture: function(e) { return true; }
+};
+
+$.ui.mouse.defaults = {
+ cancel: null,
+ distance: 1,
+ delay: 0
+};
+
+})(jQuery);
+/*
+ * jQuery UI Draggable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Draggables
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.widget("ui.draggable", $.extend($.ui.mouse, {
+ init: function() {
+
+ //Initialize needed constants
+ var o = this.options;
+
+ //Position the node
+ if (o.helper == 'original' && !(/(relative|absolute|fixed)/).test(this.element.css('position')))
+ this.element.css('position', 'relative');
+
+ this.element.addClass('ui-draggable');
+ (o.disabled && this.element.addClass('ui-draggable-disabled'));
+
+ this.mouseInit();
+
+ },
+ mouseStart: function(e) {
+ var o = this.options;
+
+ if (this.helper || o.disabled || $(e.target).is('.ui-resizable-handle')) return false;
+
+ var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false;
+
+
+ $(this.options.handle, this.element).find("*").andSelf().each(function() {
+ if(this == e.target) handle = true;
+ });
+ if (!handle) return false;
+
+ if($.ui.ddmanager) $.ui.ddmanager.current = this;
+
+ //Create and append the visible helper
+ this.helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [e])) : (o.helper == 'clone' ? this.element.clone() : this.element);
+ if(!this.helper.parents('body').length) this.helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo));
+ if(this.helper[0] != this.element[0] && !(/(fixed|absolute)/).test(this.helper.css("position"))) this.helper.css("position", "absolute");
+
+ /*
+ * - Position generation -
+ * This block generates everything position related - it's the core of draggables.
+ */
+
+ this.margins = { //Cache the margins
+ left: (parseInt(this.element.css("marginLeft"),10) || 0),
+ top: (parseInt(this.element.css("marginTop"),10) || 0)
+ };
+
+ this.cssPosition = this.helper.css("position"); //Store the helper's css position
+ this.offset = this.element.offset(); //The element's absolute position on the page
+ this.offset = { //Substract the margins from the element's absolute offset
+ top: this.offset.top - this.margins.top,
+ left: this.offset.left - this.margins.left
+ };
+
+ this.offset.click = { //Where the click happened, relative to the element
+ left: e.pageX - this.offset.left,
+ top: e.pageY - this.offset.top
+ };
+
+ this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); //Get the offsetParent and cache its position
+ if(this.offsetParent[0] == document.body && $.browser.mozilla) po = { top: 0, left: 0 }; //Ugly FF3 fix
+ this.offset.parent = { //Store its position plus border
+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
+ };
+
+ var p = this.element.position(); //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helpers
+ this.offset.relative = this.cssPosition == "relative" ? {
+ top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.offsetParent[0].scrollTop,
+ left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.offsetParent[0].scrollLeft
+ } : { top: 0, left: 0 };
+
+ this.originalPosition = this.generatePosition(e); //Generate the original position
+ this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Cache the helper size
+
+ if(o.cursorAt) {
+ if(o.cursorAt.left != undefined) this.offset.click.left = o.cursorAt.left + this.margins.left;
+ if(o.cursorAt.right != undefined) this.offset.click.left = this.helperProportions.width - o.cursorAt.right + this.margins.left;
+ if(o.cursorAt.top != undefined) this.offset.click.top = o.cursorAt.top + this.margins.top;
+ if(o.cursorAt.bottom != undefined) this.offset.click.top = this.helperProportions.height - o.cursorAt.bottom + this.margins.top;
+ }
+
+
+ /*
+ * - Position constraining -
+ * Here we prepare position constraining like grid and containment.
+ */
+
+ if(o.containment) {
+ if(o.containment == 'parent') o.containment = this.helper[0].parentNode;
+ if(o.containment == 'document' || o.containment == 'window') this.containment = [
+ 0 - this.offset.relative.left - this.offset.parent.left,
+ 0 - this.offset.relative.top - this.offset.parent.top,
+ $(o.containment == 'document' ? document : window).width() - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
+ ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
+ ];
+
+ if(!(/^(document|window|parent)$/).test(o.containment)) {
+ var ce = $(o.containment)[0];
+ var co = $(o.containment).offset();
+
+ this.containment = [
+ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left,
+ co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top,
+ co.left+Math.max(ce.scrollWidth,ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
+ co.top+Math.max(ce.scrollHeight,ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
+ ];
+ }
+ }
+
+ //Call plugins and callbacks
+ this.propagate("start", e);
+
+ this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Recache the helper size
+ if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, e);
+
+ this.helper.addClass("ui-draggable-dragging");
+ this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
+ return true;
+ },
+ convertPositionTo: function(d, pos) {
+ if(!pos) pos = this.position;
+ var mod = d == "absolute" ? 1 : -1;
+ return {
+ top: (
+ pos.top // the calculated relative position
+ + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent
+ + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)
+ - (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollTop) * mod // The offsetParent's scroll position, not if the element is fixed
+ + (this.cssPosition == "fixed" ? this.offsetParent[0].scrollTop : 0) * mod
+ + this.margins.top * mod //Add the margin (you don't want the margin counting in intersection methods)
+ ),
+ left: (
+ pos.left // the calculated relative position
+ + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent
+ + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)
+ - (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollLeft) * mod // The offsetParent's scroll position, not if the element is fixed
+ + (this.cssPosition == "fixed" ? this.offsetParent[0].scrollLeft : 0) * mod
+ + this.margins.left * mod //Add the margin (you don't want the margin counting in intersection methods)
+ )
+ };
+ },
+ generatePosition: function(e) {
+
+ var o = this.options;
+ var position = {
+ top: (
+ e.pageY // The absolute mouse position
+ - this.offset.click.top // Click offset (relative to the element)
+ - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent
+ - this.offset.parent.top // The offsetParent's offset without borders (offset + border)
+ + (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollTop) // The offsetParent's scroll position, not if the element is fixed
+ - (this.cssPosition == "fixed" ? this.offsetParent[0].scrollTop : 0)
+ ),
+ left: (
+ e.pageX // The absolute mouse position
+ - this.offset.click.left // Click offset (relative to the element)
+ - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent
+ - this.offset.parent.left // The offsetParent's offset without borders (offset + border)
+ + (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollLeft) // The offsetParent's scroll position, not if the element is fixed
+ - (this.cssPosition == "fixed" ? this.offsetParent[0].scrollLeft : 0)
+ )
+ };
+
+ if(!this.originalPosition) return position; //If we are not dragging yet, we won't check for options
+
+ /*
+ * - Position constraining -
+ * Constrain the position to a mix of grid, containment.
+ */
+ if(this.containment) {
+ if(position.left < this.containment[0]) position.left = this.containment[0];
+ if(position.top < this.containment[1]) position.top = this.containment[1];
+ if(position.left > this.containment[2]) position.left = this.containment[2];
+ if(position.top > this.containment[3]) position.top = this.containment[3];
+ }
+
+ if(o.grid) {
+ var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1];
+ position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
+
+ var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0];
+ position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
+ }
+
+ return position;
+ },
+ mouseDrag: function(e) {
+
+ //Compute the helpers position
+ this.position = this.generatePosition(e);
+ this.positionAbs = this.convertPositionTo("absolute");
+
+ //Call plugins and callbacks and use the resulting position if something is returned
+ this.position = this.propagate("drag", e) || this.position;
+
+ if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px';
+ if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px';
+ if($.ui.ddmanager) $.ui.ddmanager.drag(this, e);
+
+ return false;
+ },
+ mouseStop: function(e) {
+
+ //If we are using droppables, inform the manager about the drop
+ if ($.ui.ddmanager && !this.options.dropBehaviour)
+ $.ui.ddmanager.drop(this, e);
+
+ if(this.options.revert) {
+ var self = this;
+ $(this.helper).animate(this.originalPosition, parseInt(this.options.revert, 10) || 500, function() {
+ self.propagate("stop", e);
+ self.clear();
+ });
+ } else {
+ this.propagate("stop", e);
+ this.clear();
+ }
+
+ return false;
+ },
+ clear: function() {
+ this.helper.removeClass("ui-draggable-dragging");
+ if(this.options.helper != 'original' && !this.cancelHelperRemoval) this.helper.remove();
+ //if($.ui.ddmanager) $.ui.ddmanager.current = null;
+ this.helper = null;
+ this.cancelHelperRemoval = false;
+ },
+
+ // From now on bulk stuff - mainly helpers
+ plugins: {},
+ uiHash: function(e) {
+ return {
+ helper: this.helper,
+ position: this.position,
+ absolutePosition: this.positionAbs,
+ options: this.options
+ };
+ },
+ propagate: function(n,e) {
+ $.ui.plugin.call(this, n, [e, this.uiHash()]);
+ return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [e, this.uiHash()], this.options[n]);
+ },
+ destroy: function() {
+ if(!this.element.data('draggable')) return;
+ this.element.removeData("draggable").unbind(".draggable").removeClass('ui-draggable');
+ this.mouseDestroy();
+ }
+}));
+
+$.extend($.ui.draggable, {
+ defaults: {
+ appendTo: "parent",
+ axis: false,
+ cancel: ":input,button",
+ delay: 0,
+ distance: 0,
+ helper: "original"
+ }
+});
+
+$.ui.plugin.add("draggable", "cursor", {
+ start: function(e, ui) {
+ var t = $('body');
+ if (t.css("cursor")) ui.options._cursor = t.css("cursor");
+ t.css("cursor", ui.options.cursor);
+ },
+ stop: function(e, ui) {
+ if (ui.options._cursor) $('body').css("cursor", ui.options._cursor);
+ }
+});
+
+$.ui.plugin.add("draggable", "zIndex", {
+ start: function(e, ui) {
+ var t = $(ui.helper);
+ if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex");
+ t.css('zIndex', ui.options.zIndex);
+ },
+ stop: function(e, ui) {
+ if(ui.options._zIndex) $(ui.helper).css('zIndex', ui.options._zIndex);
+ }
+});
+
+$.ui.plugin.add("draggable", "opacity", {
+ start: function(e, ui) {
+ var t = $(ui.helper);
+ if(t.css("opacity")) ui.options._opacity = t.css("opacity");
+ t.css('opacity', ui.options.opacity);
+ },
+ stop: function(e, ui) {
+ if(ui.options._opacity) $(ui.helper).css('opacity', ui.options._opacity);
+ }
+});
+
+$.ui.plugin.add("draggable", "iframeFix", {
+ start: function(e, ui) {
+ $(ui.options.iframeFix === true ? "iframe" : ui.options.iframeFix).each(function() {
+ $('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>')
+ .css({
+ width: this.offsetWidth+"px", height: this.offsetHeight+"px",
+ position: "absolute", opacity: "0.001", zIndex: 1000
+ })
+ .css($(this).offset())
+ .appendTo("body");
+ });
+ },
+ stop: function(e, ui) {
+ $("div.DragDropIframeFix").each(function() { this.parentNode.removeChild(this); }); //Remove frame helpers
+ }
+});
+
+$.ui.plugin.add("draggable", "scroll", {
+ start: function(e, ui) {
+ var o = ui.options;
+ var i = $(this).data("draggable");
+ o.scrollSensitivity = o.scrollSensitivity || 20;
+ o.scrollSpeed = o.scrollSpeed || 20;
+
+ i.overflowY = function(el) {
+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-y'))) return el; el = el.parent(); } while (el[0].parentNode);
+ return $(document);
+ }(this);
+ i.overflowX = function(el) {
+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-x'))) return el; el = el.parent(); } while (el[0].parentNode);
+ return $(document);
+ }(this);
+
+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') i.overflowYOffset = i.overflowY.offset();
+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') i.overflowXOffset = i.overflowX.offset();
+
+ },
+ drag: function(e, ui) {
+
+ var o = ui.options;
+ var i = $(this).data("draggable");
+
+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') {
+ if((i.overflowYOffset.top + i.overflowY[0].offsetHeight) - e.pageY < o.scrollSensitivity)
+ i.overflowY[0].scrollTop = i.overflowY[0].scrollTop + o.scrollSpeed;
+ if(e.pageY - i.overflowYOffset.top < o.scrollSensitivity)
+ i.overflowY[0].scrollTop = i.overflowY[0].scrollTop - o.scrollSpeed;
+
+ } else {
+ if(e.pageY - $(document).scrollTop() < o.scrollSensitivity)
+ $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
+ if($(window).height() - (e.pageY - $(document).scrollTop()) < o.scrollSensitivity)
+ $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
+ }
+
+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') {
+ if((i.overflowXOffset.left + i.overflowX[0].offsetWidth) - e.pageX < o.scrollSensitivity)
+ i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft + o.scrollSpeed;
+ if(e.pageX - i.overflowXOffset.left < o.scrollSensitivity)
+ i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft - o.scrollSpeed;
+ } else {
+ if(e.pageX - $(document).scrollLeft() < o.scrollSensitivity)
+ $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
+ if($(window).width() - (e.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
+ $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
+ }
+
+ }
+});
+
+$.ui.plugin.add("draggable", "snap", {
+ start: function(e, ui) {
+
+ var inst = $(this).data("draggable");
+ inst.snapElements = [];
+ $(ui.options.snap === true ? '.ui-draggable' : ui.options.snap).each(function() {
+ var $t = $(this); var $o = $t.offset();
+ if(this != inst.element[0]) inst.snapElements.push({
+ item: this,
+ width: $t.outerWidth(), height: $t.outerHeight(),
+ top: $o.top, left: $o.left
+ });
+ });
+
+ },
+ drag: function(e, ui) {
+
+ var inst = $(this).data("draggable");
+ var d = ui.options.snapTolerance || 20;
+ var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width,
+ y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height;
+
+ for (var i = inst.snapElements.length - 1; i >= 0; i--){
+
+ var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width,
+ t = inst.snapElements[i].top, b = t + inst.snapElements[i].height;
+
+ //Yes, I know, this is insane ;)
+ if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) continue;
+
+ if(ui.options.snapMode != 'inner') {
+ var ts = Math.abs(t - y2) <= 20;
+ var bs = Math.abs(b - y1) <= 20;
+ var ls = Math.abs(l - x2) <= 20;
+ var rs = Math.abs(r - x1) <= 20;
+ if(ts) ui.position.top = inst.convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top;
+ if(bs) ui.position.top = inst.convertPositionTo("relative", { top: b, left: 0 }).top;
+ if(ls) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left;
+ if(rs) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: r }).left;
+ }
+
+ if(ui.options.snapMode != 'outer') {
+ var ts = Math.abs(t - y1) <= 20;
+ var bs = Math.abs(b - y2) <= 20;
+ var ls = Math.abs(l - x1) <= 20;
+ var rs = Math.abs(r - x2) <= 20;
+ if(ts) ui.position.top = inst.convertPositionTo("relative", { top: t, left: 0 }).top;
+ if(bs) ui.position.top = inst.convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top;
+ if(ls) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: l }).left;
+ if(rs) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left;
+ }
+
+ };
+ }
+});
+
+$.ui.plugin.add("draggable", "connectToSortable", {
+ start: function(e,ui) {
+
+ var inst = $(this).data("draggable");
+ inst.sortables = [];
+ $(ui.options.connectToSortable).each(function() {
+ if($.data(this, 'sortable')) {
+ var sortable = $.data(this, 'sortable');
+ inst.sortables.push({
+ instance: sortable,
+ shouldRevert: sortable.options.revert
+ });
+ sortable.refresh(); //Do a one-time refresh at start to refresh the containerCache
+ sortable.propagate("activate", e, inst);
+ }
+ });
+
+ },
+ stop: function(e,ui) {
+
+ //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper
+ var inst = $(this).data("draggable");
+
+ $.each(inst.sortables, function() {
+ if(this.instance.isOver) {
+ this.instance.isOver = 0;
+ inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance
+ this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work)
+ if(this.shouldRevert) this.instance.options.revert = true; //revert here
+ this.instance.mouseStop(e);
+
+ //Also propagate receive event, since the sortable is actually receiving a element
+ this.instance.element.triggerHandler("sortreceive", [e, $.extend(this.instance.ui(), { sender: inst.element })], this.instance.options["receive"]);
+
+ this.instance.options.helper = this.instance.options._helper;
+ } else {
+ this.instance.propagate("deactivate", e, inst);
+ }
+
+ });
+
+ },
+ drag: function(e,ui) {
+
+ var inst = $(this).data("draggable"), self = this;
+
+ var checkPos = function(o) {
+
+ var l = o.left, r = l + o.width,
+ t = o.top, b = t + o.height;
+
+ return (l < (this.positionAbs.left + this.offset.click.left) && (this.positionAbs.left + this.offset.click.left) < r
+ && t < (this.positionAbs.top + this.offset.click.top) && (this.positionAbs.top + this.offset.click.top) < b);
+ };
+
+ $.each(inst.sortables, function(i) {
+
+ if(checkPos.call(inst, this.instance.containerCache)) {
+
+ //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once
+ if(!this.instance.isOver) {
+ this.instance.isOver = 1;
+
+ //Now we fake the start of dragging for the sortable instance,
+ //by cloning the list group item, appending it to the sortable and using it as inst.currentItem
+ //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one)
+ this.instance.currentItem = $(self).clone().appendTo(this.instance.element).data("sortable-item", true);
+ this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it
+ this.instance.options.helper = function() { return ui.helper[0]; };
+
+ e.target = this.instance.currentItem[0];
+ this.instance.mouseCapture(e, true, true);
+ this.instance.mouseStart(e, true, true);
+
+ //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes
+ this.instance.offset.click.top = inst.offset.click.top;
+ this.instance.offset.click.left = inst.offset.click.left;
+ this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left;
+ this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top;
+
+ inst.propagate("toSortable", e);
+
+ }
+
+ //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable
+ if(this.instance.currentItem) this.instance.mouseDrag(e);
+
+ } else {
+
+ //If it doesn't intersect with the sortable, and it intersected before,
+ //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval
+ if(this.instance.isOver) {
+ this.instance.isOver = 0;
+ this.instance.cancelHelperRemoval = true;
+ this.instance.options.revert = false; //No revert here
+ this.instance.mouseStop(e, true);
+ this.instance.options.helper = this.instance.options._helper;
+
+ //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size
+ this.instance.currentItem.remove();
+ this.instance.placeholder.remove();
+
+ inst.propagate("fromSortable", e);
+ }
+
+ };
+
+ });
+
+ }
+});
+
+$.ui.plugin.add("draggable", "stack", {
+ start: function(e,ui) {
+ var group = $.makeArray($(ui.options.stack.group)).sort(function(a,b) {
+ return (parseInt($(a).css("zIndex"),10) || ui.options.stack.min) - (parseInt($(b).css("zIndex"),10) || ui.options.stack.min);
+ });
+
+ $(group).each(function(i) {
+ this.style.zIndex = ui.options.stack.min + i;
+ });
+
+ this[0].style.zIndex = ui.options.stack.min + group.length;
+ }
+});
+
+})(jQuery);
+/*
+ * jQuery UI Droppable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Droppables
+ *
+ * Depends:
+ * ui.core.js
+ * ui.draggable.js
+ *
+ */
+(function($) {
+
+$.widget("ui.droppable", {
+ init: function() {
+
+ this.element.addClass("ui-droppable");
+ this.isover = 0; this.isout = 1;
+
+ //Prepare the passed options
+ var o = this.options, accept = o.accept;
+ o = $.extend(o, {
+ accept: o.accept && o.accept.constructor == Function ? o.accept : function(d) {
+ return $(d).is(accept);
+ }
+ });
+
+ //Store the droppable's proportions
+ this.proportions = { width: this.element.outerWidth(), height: this.element.outerHeight() };
+
+ // Add the reference and positions to the manager
+ $.ui.ddmanager.droppables.push(this);
+
+ },
+ plugins: {},
+ ui: function(c) {
+ return {
+ draggable: (c.currentItem || c.element),
+ helper: c.helper,
+ position: c.position,
+ absolutePosition: c.positionAbs,
+ options: this.options,
+ element: this.element
+ };
+ },
+ destroy: function() {
+ var drop = $.ui.ddmanager.droppables;
+ for ( var i = 0; i < drop.length; i++ )
+ if ( drop[i] == this )
+ drop.splice(i, 1);
+
+ this.element
+ .removeClass("ui-droppable ui-droppable-disabled")
+ .removeData("droppable")
+ .unbind(".droppable");
+ },
+ over: function(e) {
+
+ var draggable = $.ui.ddmanager.current;
+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element
+
+ if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+ $.ui.plugin.call(this, 'over', [e, this.ui(draggable)]);
+ this.element.triggerHandler("dropover", [e, this.ui(draggable)], this.options.over);
+ }
+
+ },
+ out: function(e) {
+
+ var draggable = $.ui.ddmanager.current;
+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element
+
+ if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+ $.ui.plugin.call(this, 'out', [e, this.ui(draggable)]);
+ this.element.triggerHandler("dropout", [e, this.ui(draggable)], this.options.out);
+ }
+
+ },
+ drop: function(e,custom) {
+
+ var draggable = custom || $.ui.ddmanager.current;
+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element
+
+ var childrenIntersection = false;
+ this.element.find(".ui-droppable").not(".ui-draggable-dragging").each(function() {
+ var inst = $.data(this, 'droppable');
+ if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) {
+ childrenIntersection = true; return false;
+ }
+ });
+ if(childrenIntersection) return false;
+
+ if(this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+ $.ui.plugin.call(this, 'drop', [e, this.ui(draggable)]);
+ this.element.triggerHandler("drop", [e, this.ui(draggable)], this.options.drop);
+ return true;
+ }
+
+ return false;
+
+ },
+ activate: function(e) {
+
+ var draggable = $.ui.ddmanager.current;
+ $.ui.plugin.call(this, 'activate', [e, this.ui(draggable)]);
+ if(draggable) this.element.triggerHandler("dropactivate", [e, this.ui(draggable)], this.options.activate);
+
+ },
+ deactivate: function(e) {
+
+ var draggable = $.ui.ddmanager.current;
+ $.ui.plugin.call(this, 'deactivate', [e, this.ui(draggable)]);
+ if(draggable) this.element.triggerHandler("dropdeactivate", [e, this.ui(draggable)], this.options.deactivate);
+
+ }
+});
+
+$.extend($.ui.droppable, {
+ defaults: {
+ disabled: false,
+ tolerance: 'intersect'
+ }
+});
+
+$.ui.intersect = function(draggable, droppable, toleranceMode) {
+
+ if (!droppable.offset) return false;
+
+ var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width,
+ y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height;
+ var l = droppable.offset.left, r = l + droppable.proportions.width,
+ t = droppable.offset.top, b = t + droppable.proportions.height;
+
+ switch (toleranceMode) {
+ case 'fit':
+ return (l < x1 && x2 < r
+ && t < y1 && y2 < b);
+ break;
+ case 'intersect':
+ return (l < x1 + (draggable.helperProportions.width / 2) // Right Half
+ && x2 - (draggable.helperProportions.width / 2) < r // Left Half
+ && t < y1 + (draggable.helperProportions.height / 2) // Bottom Half
+ && y2 - (draggable.helperProportions.height / 2) < b ); // Top Half
+ break;
+ case 'pointer':
+ return (l < ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) && ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) < r
+ && t < ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) && ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) < b);
+ break;
+ case 'touch':
+ return (
+ (y1 >= t && y1 <= b) || // Top edge touching
+ (y2 >= t && y2 <= b) || // Bottom edge touching
+ (y1 < t && y2 > b) // Surrounded vertically
+ ) && (
+ (x1 >= l && x1 <= r) || // Left edge touching
+ (x2 >= l && x2 <= r) || // Right edge touching
+ (x1 < l && x2 > r) // Surrounded horizontally
+ );
+ break;
+ default:
+ return false;
+ break;
+ }
+
+};
+
+/*
+ This manager tracks offsets of draggables and droppables
+*/
+$.ui.ddmanager = {
+ current: null,
+ droppables: [],
+ prepareOffsets: function(t, e) {
+
+ var m = $.ui.ddmanager.droppables;
+ var type = e ? e.type : null; // workaround for #2317
+ for (var i = 0; i < m.length; i++) {
+
+ if(m[i].options.disabled || (t && !m[i].options.accept.call(m[i].element,(t.currentItem || t.element)))) continue;
+ m[i].visible = m[i].element.is(":visible"); if(!m[i].visible) continue; //If the element is not visible, continue
+ m[i].offset = m[i].element.offset();
+ m[i].proportions = { width: m[i].element.outerWidth(), height: m[i].element.outerHeight() };
+
+ if(type == "dragstart" || type == "sortactivate") m[i].activate.call(m[i], e); //Activate the droppable if used directly from draggables
+ }
+
+ },
+ drop: function(draggable, e) {
+
+ var dropped = false;
+ $.each($.ui.ddmanager.droppables, function() {
+
+ if(!this.options) return;
+ if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance))
+ dropped = this.drop.call(this, e);
+
+ if (!this.options.disabled && this.visible && this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+ this.isout = 1; this.isover = 0;
+ this.deactivate.call(this, e);
+ }
+
+ });
+ return dropped;
+
+ },
+ drag: function(draggable, e) {
+
+ //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
+ if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, e);
+
+ //Run through all droppables and check their positions based on specific tolerance options
+ $.each($.ui.ddmanager.droppables, function() {
+
+ if(this.disabled || this.greedyChild || !this.visible) return;
+ var intersects = $.ui.intersect(draggable, this, this.options.tolerance);
+
+ var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null);
+ if(!c) return;
+
+ var parentInstance;
+ if (this.options.greedy) {
+ var parent = this.element.parents('.ui-droppable:eq(0)');
+ if (parent.length) {
+ parentInstance = $.data(parent[0], 'droppable');
+ parentInstance.greedyChild = (c == 'isover' ? 1 : 0);
+ }
+ }
+
+ // we just moved into a greedy child
+ if (parentInstance && c == 'isover') {
+ parentInstance['isover'] = 0;
+ parentInstance['isout'] = 1;
+ parentInstance.out.call(parentInstance, e);
+ }
+
+ this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0;
+ this[c == "isover" ? "over" : "out"].call(this, e);
+
+ // we just moved out of a greedy child
+ if (parentInstance && c == 'isout') {
+ parentInstance['isout'] = 0;
+ parentInstance['isover'] = 1;
+ parentInstance.over.call(parentInstance, e);
+ }
+ });
+
+ }
+};
+
+/*
+ * Droppable Extensions
+ */
+
+$.ui.plugin.add("droppable", "activeClass", {
+ activate: function(e, ui) {
+ $(this).addClass(ui.options.activeClass);
+ },
+ deactivate: function(e, ui) {
+ $(this).removeClass(ui.options.activeClass);
+ },
+ drop: function(e, ui) {
+ $(this).removeClass(ui.options.activeClass);
+ }
+});
+
+$.ui.plugin.add("droppable", "hoverClass", {
+ over: function(e, ui) {
+ $(this).addClass(ui.options.hoverClass);
+ },
+ out: function(e, ui) {
+ $(this).removeClass(ui.options.hoverClass);
+ },
+ drop: function(e, ui) {
+ $(this).removeClass(ui.options.hoverClass);
+ }
+});
+
+})(jQuery);
+/*
+ * jQuery UI Resizable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Resizables
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.widget("ui.resizable", $.extend($.ui.mouse, {
+ init: function() {
+
+ var self = this, o = this.options;
+
+ var elpos = this.element.css('position');
+
+ // simulate .ui-resizable { position: relative; }
+ this.element.addClass("ui-resizable").css({ position: /static/.test(elpos) ? 'relative' : elpos });
+
+ $.extend(o, {
+ _aspectRatio: !!(o.aspectRatio),
+ proxy: o.proxy || o.ghost || o.animate ? o.proxy || 'proxy' : null,
+ knobHandles: o.knobHandles === true ? 'ui-resizable-knob-handle' : o.knobHandles
+ });
+
+ //Default Theme
+ var aBorder = '1px solid #DEDEDE';
+
+ o.defaultTheme = {
+ 'ui-resizable': { display: 'block' },
+ 'ui-resizable-handle': { position: 'absolute', background: '#F2F2F2', fontSize: '0.1px' },
+ 'ui-resizable-n': { cursor: 'n-resize', height: '4px', left: '0px', right: '0px', borderTop: aBorder },
+ 'ui-resizable-s': { cursor: 's-resize', height: '4px', left: '0px', right: '0px', borderBottom: aBorder },
+ 'ui-resizable-e': { cursor: 'e-resize', width: '4px', top: '0px', bottom: '0px', borderRight: aBorder },
+ 'ui-resizable-w': { cursor: 'w-resize', width: '4px', top: '0px', bottom: '0px', borderLeft: aBorder },
+ 'ui-resizable-se': { cursor: 'se-resize', width: '4px', height: '4px', borderRight: aBorder, borderBottom: aBorder },
+ 'ui-resizable-sw': { cursor: 'sw-resize', width: '4px', height: '4px', borderBottom: aBorder, borderLeft: aBorder },
+ 'ui-resizable-ne': { cursor: 'ne-resize', width: '4px', height: '4px', borderRight: aBorder, borderTop: aBorder },
+ 'ui-resizable-nw': { cursor: 'nw-resize', width: '4px', height: '4px', borderLeft: aBorder, borderTop: aBorder }
+ };
+
+ o.knobTheme = {
+ 'ui-resizable-handle': { background: '#F2F2F2', border: '1px solid #808080', height: '8px', width: '8px' },
+ 'ui-resizable-n': { cursor: 'n-resize', top: '0px', left: '45%' },
+ 'ui-resizable-s': { cursor: 's-resize', bottom: '0px', left: '45%' },
+ 'ui-resizable-e': { cursor: 'e-resize', right: '0px', top: '45%' },
+ 'ui-resizable-w': { cursor: 'w-resize', left: '0px', top: '45%' },
+ 'ui-resizable-se': { cursor: 'se-resize', right: '0px', bottom: '0px' },
+ 'ui-resizable-sw': { cursor: 'sw-resize', left: '0px', bottom: '0px' },
+ 'ui-resizable-nw': { cursor: 'nw-resize', left: '0px', top: '0px' },
+ 'ui-resizable-ne': { cursor: 'ne-resize', right: '0px', top: '0px' }
+ };
+
+ o._nodeName = this.element[0].nodeName;
+
+ //Wrap the element if it cannot hold child nodes
+ if(o._nodeName.match(/canvas|textarea|input|select|button|img/i)) {
+ var el = this.element;
+
+ //Opera fixing relative position
+ if (/relative/.test(el.css('position')) && $.browser.opera)
+ el.css({ position: 'relative', top: 'auto', left: 'auto' });
+
+ //Create a wrapper element and set the wrapper to the new current internal element
+ el.wrap(
+ $('<div class="ui-wrapper" style="overflow: hidden;"></div>').css( {
+ position: el.css('position'),
+ width: el.outerWidth(),
+ height: el.outerHeight(),
+ top: el.css('top'),
+ left: el.css('left')
+ })
+ );
+
+ var oel = this.element; this.element = this.element.parent();
+
+ // store instance on wrapper
+ this.element.data('resizable', this);
+
+ //Move margins to the wrapper
+ this.element.css({ marginLeft: oel.css("marginLeft"), marginTop: oel.css("marginTop"),
+ marginRight: oel.css("marginRight"), marginBottom: oel.css("marginBottom")
+ });
+
+ oel.css({ marginLeft: 0, marginTop: 0, marginRight: 0, marginBottom: 0});
+
+ //Prevent Safari textarea resize
+ if ($.browser.safari && o.preventDefault) oel.css('resize', 'none');
+
+ o.proportionallyResize = oel.css({ position: 'static', zoom: 1, display: 'block' });
+
+ // avoid IE jump
+ this.element.css({ margin: oel.css('margin') });
+
+ // fix handlers offset
+ this._proportionallyResize();
+ }
+
+ if(!o.handles) o.handles = !$('.ui-resizable-handle', this.element).length ? "e,s,se" : { n: '.ui-resizable-n', e: '.ui-resizable-e', s: '.ui-resizable-s', w: '.ui-resizable-w', se: '.ui-resizable-se', sw: '.ui-resizable-sw', ne: '.ui-resizable-ne', nw: '.ui-resizable-nw' };
+ if(o.handles.constructor == String) {
+
+ o.zIndex = o.zIndex || 1000;
+
+ if(o.handles == 'all') o.handles = 'n,e,s,w,se,sw,ne,nw';
+
+ var n = o.handles.split(","); o.handles = {};
+
+ // insertions are applied when don't have theme loaded
+ var insertionsDefault = {
+ handle: 'position: absolute; display: none; overflow:hidden;',
+ n: 'top: 0pt; width:100%;',
+ e: 'right: 0pt; height:100%;',
+ s: 'bottom: 0pt; width:100%;',
+ w: 'left: 0pt; height:100%;',
+ se: 'bottom: 0pt; right: 0px;',
+ sw: 'bottom: 0pt; left: 0px;',
+ ne: 'top: 0pt; right: 0px;',
+ nw: 'top: 0pt; left: 0px;'
+ };
+
+ for(var i = 0; i < n.length; i++) {
+ var handle = $.trim(n[i]), dt = o.defaultTheme, hname = 'ui-resizable-'+handle, loadDefault = !$.ui.css(hname) && !o.knobHandles, userKnobClass = $.ui.css('ui-resizable-knob-handle'),
+ allDefTheme = $.extend(dt[hname], dt['ui-resizable-handle']), allKnobTheme = $.extend(o.knobTheme[hname], !userKnobClass ? o.knobTheme['ui-resizable-handle'] : {});
+
+ // increase zIndex of sw, se, ne, nw axis
+ var applyZIndex = /sw|se|ne|nw/.test(handle) ? { zIndex: ++o.zIndex } : {};
+
+ var defCss = (loadDefault ? insertionsDefault[handle] : ''),
+ axis = $(['<div class="ui-resizable-handle ', hname, '" style="', defCss, insertionsDefault.handle, '"></div>'].join('')).css( applyZIndex );
+ o.handles[handle] = '.ui-resizable-'+handle;
+
+ this.element.append(
+ //Theme detection, if not loaded, load o.defaultTheme
+ axis.css( loadDefault ? allDefTheme : {} )
+ // Load the knobHandle css, fix width, height, top, left...
+ .css( o.knobHandles ? allKnobTheme : {} ).addClass(o.knobHandles ? 'ui-resizable-knob-handle' : '').addClass(o.knobHandles)
+ );
+ }
+
+ if (o.knobHandles) this.element.addClass('ui-resizable-knob').css( !$.ui.css('ui-resizable-knob') ? { /*border: '1px #fff dashed'*/ } : {} );
+ }
+
+ this._renderAxis = function(target) {
+ target = target || this.element;
+
+ for(var i in o.handles) {
+ if(o.handles[i].constructor == String)
+ o.handles[i] = $(o.handles[i], this.element).show();
+
+ if (o.transparent)
+ o.handles[i].css({opacity:0});
+
+ //Apply pad to wrapper element, needed to fix axis position (textarea, inputs, scrolls)
+ if (this.element.is('.ui-wrapper') &&
+ o._nodeName.match(/textarea|input|select|button/i)) {
+
+ var axis = $(o.handles[i], this.element), padWrapper = 0;
+
+ //Checking the correct pad and border
+ padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth();
+
+ //The padding type i have to apply...
+ var padPos = [ 'padding',
+ /ne|nw|n/.test(i) ? 'Top' :
+ /se|sw|s/.test(i) ? 'Bottom' :
+ /^e$/.test(i) ? 'Right' : 'Left' ].join("");
+
+ if (!o.transparent)
+ target.css(padPos, padWrapper);
+
+ this._proportionallyResize();
+ }
+ if(!$(o.handles[i]).length) continue;
+ }
+ };
+
+ this._renderAxis(this.element);
+ o._handles = $('.ui-resizable-handle', self.element);
+
+ if (o.disableSelection)
+ o._handles.each(function(i, e) { $.ui.disableSelection(e); });
+
+ //Matching axis name
+ o._handles.mouseover(function() {
+ if (!o.resizing) {
+ if (this.className)
+ var axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
+ //Axis, default = se
+ self.axis = o.axis = axis && axis[1] ? axis[1] : 'se';
+ }
+ });
+
+ //If we want to auto hide the elements
+ if (o.autohide) {
+ o._handles.hide();
+ $(self.element).addClass("ui-resizable-autohide").hover(function() {
+ $(this).removeClass("ui-resizable-autohide");
+ o._handles.show();
+ },
+ function(){
+ if (!o.resizing) {
+ $(this).addClass("ui-resizable-autohide");
+ o._handles.hide();
+ }
+ });
+ }
+
+ this.mouseInit();
+ },
+ plugins: {},
+ ui: function() {
+ return {
+ axis: this.options.axis,
+ options: this.options
+ };
+ },
+ propagate: function(n,e) {
+ $.ui.plugin.call(this, n, [e, this.ui()]);
+ this.element.triggerHandler(n == "resize" ? n : ["resize", n].join(""), [e, this.ui()], this.options[n]);
+ },
+ destroy: function() {
+ var el = this.element, wrapped = el.children(".ui-resizable").get(0);
+
+ this.mouseDestroy();
+
+ var _destroy = function(exp) {
+ $(exp).removeClass("ui-resizable ui-resizable-disabled")
+ .removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
+ };
+
+ _destroy(el);
+
+ if (el.is('.ui-wrapper') && wrapped) {
+ el.parent().append(
+ $(wrapped).css({
+ position: el.css('position'),
+ width: el.outerWidth(),
+ height: el.outerHeight(),
+ top: el.css('top'),
+ left: el.css('left')
+ })
+ ).end().remove();
+
+ _destroy(wrapped);
+ }
+ },
+ mouseStart: function(e) {
+ if(this.options.disabled) return false;
+
+ var handle = false;
+ for(var i in this.options.handles) {
+ if($(this.options.handles[i])[0] == e.target) handle = true;
+ }
+ if (!handle) return false;
+
+ var o = this.options, iniPos = this.element.position(), el = this.element,
+ num = function(v) { return parseInt(v, 10) || 0; }, ie6 = $.browser.msie && $.browser.version < 7;
+ o.resizing = true;
+ o.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() };
+
+ // bugfix #1749
+ if (el.is('.ui-draggable') || (/absolute/).test(el.css('position'))) {
+
+ // sOffset decides if document scrollOffset will be added to the top/left of the resizable element
+ var sOffset = $.browser.msie && !o.containment && (/absolute/).test(el.css('position')) && !(/relative/).test(el.parent().css('position'));
+ var dscrollt = sOffset ? o.documentScroll.top : 0, dscrolll = sOffset ? o.documentScroll.left : 0;
+
+ el.css({ position: 'absolute', top: (iniPos.top + dscrollt), left: (iniPos.left + dscrolll) });
+ }
+
+ //Opera fixing relative position
+ if ($.browser.opera && /relative/.test(el.css('position')))
+ el.css({ position: 'relative', top: 'auto', left: 'auto' });
+
+ this._renderProxy();
+
+ var curleft = num(this.helper.css('left')), curtop = num(this.helper.css('top'));
+
+ //Store needed variables
+ this.offset = this.helper.offset();
+ this.position = { left: curleft, top: curtop };
+ this.size = o.proxy || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
+ this.originalSize = o.proxy || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
+ this.originalPosition = { left: curleft, top: curtop };
+ this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() };
+ this.originalMousePosition = { left: e.pageX, top: e.pageY };
+
+ //Aspect Ratio
+ o.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.height / this.originalSize.width)||1);
+
+ if (o.preserveCursor)
+ $('body').css('cursor', this.axis + '-resize');
+
+ this.propagate("start", e);
+ return true;
+ },
+ mouseDrag: function(e) {
+
+ //Increase performance, avoid regex
+ var el = this.helper, o = this.options, props = {},
+ self = this, smp = this.originalMousePosition, a = this.axis;
+
+ var dx = (e.pageX-smp.left)||0, dy = (e.pageY-smp.top)||0;
+ var trigger = this._change[a];
+ if (!trigger) return false;
+
+ // Calculate the attrs that will be change
+ var data = trigger.apply(this, [e, dx, dy]), ie6 = $.browser.msie && $.browser.version < 7, csdif = this.sizeDiff;
+
+ if (o._aspectRatio || e.shiftKey)
+ data = this._updateRatio(data, e);
+
+ data = this._respectSize(data, e);
+
+ this.propagate("resize", e);
+
+ el.css({
+ top: this.position.top + "px", left: this.position.left + "px",
+ width: this.size.width + "px", height: this.size.height + "px"
+ });
+
+ if (!o.proxy && o.proportionallyResize)
+ this._proportionallyResize();
+
+ this._updateCache(data);
+
+ return false;
+ },
+ mouseStop: function(e) {
+
+ this.options.resizing = false;
+ var o = this.options, num = function(v) { return parseInt(v, 10) || 0; }, self = this;
+
+ if(o.proxy) {
+ var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName),
+ soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height,
+ soffsetw = ista ? 0 : self.sizeDiff.width;
+
+ var s = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) },
+ left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null,
+ top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null;
+
+ if (!o.animate)
+ this.element.css($.extend(s, { top: top, left: left }));
+
+ if (o.proxy && !o.animate) this._proportionallyResize();
+ }
+
+ if (o.preserveCursor)
+ $('body').css('cursor', 'auto');
+
+ this.propagate("stop", e);
+
+ if (o.proxy) this.helper.remove();
+
+ return false;
+ },
+ _updateCache: function(data) {
+ var o = this.options;
+ this.offset = this.helper.offset();
+ if (data.left) this.position.left = data.left;
+ if (data.top) this.position.top = data.top;
+ if (data.height) this.size.height = data.height;
+ if (data.width) this.size.width = data.width;
+ },
+ _updateRatio: function(data, e) {
+ var o = this.options, cpos = this.position, csize = this.size, a = this.axis;
+
+ if (data.height) data.width = (csize.height / o.aspectRatio);
+ else if (data.width) data.height = (csize.width * o.aspectRatio);
+
+ if (a == 'sw') {
+ data.left = cpos.left + (csize.width - data.width);
+ data.top = null;
+ }
+ if (a == 'nw') {
+ data.top = cpos.top + (csize.height - data.height);
+ data.left = cpos.left + (csize.width - data.width);
+ }
+
+ return data;
+ },
+ _respectSize: function(data, e) {
+
+ var el = this.helper, o = this.options, pRatio = o._aspectRatio || e.shiftKey, a = this.axis,
+ ismaxw = data.width && o.maxWidth && o.maxWidth < data.width, ismaxh = data.height && o.maxHeight && o.maxHeight < data.height,
+ isminw = data.width && o.minWidth && o.minWidth > data.width, isminh = data.height && o.minHeight && o.minHeight > data.height;
+
+ if (isminw) data.width = o.minWidth;
+ if (isminh) data.height = o.minHeight;
+ if (ismaxw) data.width = o.maxWidth;
+ if (ismaxh) data.height = o.maxHeight;
+
+ var dw = this.originalPosition.left + this.originalSize.width, dh = this.position.top + this.size.height;
+ var cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a);
+
+ if (isminw && cw) data.left = dw - o.minWidth;
+ if (ismaxw && cw) data.left = dw - o.maxWidth;
+ if (isminh && ch) data.top = dh - o.minHeight;
+ if (ismaxh && ch) data.top = dh - o.maxHeight;
+
+ // fixing jump error on top/left - bug #2330
+ var isNotwh = !data.width && !data.height;
+ if (isNotwh && !data.left && data.top) data.top = null;
+ else if (isNotwh && !data.top && data.left) data.left = null;
+
+ return data;
+ },
+ _proportionallyResize: function() {
+ var o = this.options;
+ if (!o.proportionallyResize) return;
+ var prel = o.proportionallyResize, el = this.helper || this.element;
+
+ if (!o.borderDif) {
+ var b = [prel.css('borderTopWidth'), prel.css('borderRightWidth'), prel.css('borderBottomWidth'), prel.css('borderLeftWidth')],
+ p = [prel.css('paddingTop'), prel.css('paddingRight'), prel.css('paddingBottom'), prel.css('paddingLeft')];
+
+ o.borderDif = $.map(b, function(v, i) {
+ var border = parseInt(v,10)||0, padding = parseInt(p[i],10)||0;
+ return border + padding;
+ });
+ }
+ prel.css({
+ height: (el.height() - o.borderDif[0] - o.borderDif[2]) + "px",
+ width: (el.width() - o.borderDif[1] - o.borderDif[3]) + "px"
+ });
+ },
+ _renderProxy: function() {
+ var el = this.element, o = this.options;
+ this.elementOffset = el.offset();
+
+ if(o.proxy) {
+ this.helper = this.helper || $('<div style="overflow:hidden;"></div>');
+
+ // fix ie6 offset
+ var ie6 = $.browser.msie && $.browser.version < 7, ie6offset = (ie6 ? 1 : 0),
+ pxyoffset = ( ie6 ? 2 : -1 );
+
+ this.helper.addClass(o.proxy).css({
+ width: el.outerWidth() + pxyoffset,
+ height: el.outerHeight() + pxyoffset,
+ position: 'absolute',
+ left: this.elementOffset.left - ie6offset +'px',
+ top: this.elementOffset.top - ie6offset +'px',
+ zIndex: ++o.zIndex
+ });
+
+ this.helper.appendTo("body");
+
+ if (o.disableSelection)
+ $.ui.disableSelection(this.helper.get(0));
+
+ } else {
+ this.helper = el;
+ }
+ },
+ _change: {
+ e: function(e, dx, dy) {
+ return { width: this.originalSize.width + dx };
+ },
+ w: function(e, dx, dy) {
+ var o = this.options, cs = this.originalSize, sp = this.originalPosition;
+ return { left: sp.left + dx, width: cs.width - dx };
+ },
+ n: function(e, dx, dy) {
+ var o = this.options, cs = this.originalSize, sp = this.originalPosition;
+ return { top: sp.top + dy, height: cs.height - dy };
+ },
+ s: function(e, dx, dy) {
+ return { height: this.originalSize.height + dy };
+ },
+ se: function(e, dx, dy) {
+ return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [e, dx, dy]));
+ },
+ sw: function(e, dx, dy) {
+ return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [e, dx, dy]));
+ },
+ ne: function(e, dx, dy) {
+ return $.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [e, dx, dy]));
+ },
+ nw: function(e, dx, dy) {
+ return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [e, dx, dy]));
+ }
+ }
+}));
+
+$.extend($.ui.resizable, {
+ defaults: {
+ cancel: ":input,button",
+ distance: 0,
+ delay: 0,
+ preventDefault: true,
+ transparent: false,
+ minWidth: 10,
+ minHeight: 10,
+ aspectRatio: false,
+ disableSelection: true,
+ preserveCursor: true,
+ autohide: false,
+ knobHandles: false
+ }
+});
+
+/*
+ * Resizable Extensions
+ */
+
+$.ui.plugin.add("resizable", "containment", {
+
+ start: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable"), el = self.element;
+ var oc = o.containment, ce = (oc instanceof $) ? oc.get(0) : (/parent/.test(oc)) ? el.parent().get(0) : oc;
+ if (!ce) return;
+
+ self.containerElement = $(ce);
+
+ if (/document/.test(oc) || oc == document) {
+ self.containerOffset = { left: 0, top: 0 };
+ self.containerPosition = { left: 0, top: 0 };
+
+ self.parentData = {
+ element: $(document), left: 0, top: 0, width: $(document).width(),
+ height: $(document).height() || document.body.parentNode.scrollHeight
+ };
+ }
+
+ // i'm a node, so compute top, left, right, bottom
+ else{
+ self.containerOffset = $(ce).offset();
+ self.containerPosition = $(ce).position();
+ self.containerSize = { height: $(ce).innerHeight(), width: $(ce).innerWidth() };
+
+ var co = self.containerOffset, ch = self.containerSize.height, cw = self.containerSize.width,
+ width = ($.ui.hasScroll(ce, "left") ? ce.scrollWidth : cw ), height = ($.ui.hasScroll(ce) ? ce.scrollHeight : ch);
+
+ self.parentData = {
+ element: ce, left: co.left, top: co.top, width: width, height: height
+ };
+ }
+ },
+
+ resize: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable"),
+ ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
+ pRatio = o._aspectRatio || e.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement;
+
+ if (/static/.test(ce.css('position')))
+ cop = self.containerPosition;
+
+ if (cp.left < (o.proxy ? co.left : cop.left)) {
+ self.size.width = self.size.width + (o.proxy ? (self.position.left - co.left) : (self.position.left - cop.left));
+ if (pRatio) self.size.height = self.size.width * o.aspectRatio;
+ self.position.left = o.proxy ? co.left : cop.left;
+ }
+
+ if (cp.top < (o.proxy ? co.top : 0)) {
+ self.size.height = self.size.height + (o.proxy ? (self.position.top - co.top) : self.position.top);
+ if (pRatio) self.size.width = self.size.height / o.aspectRatio;
+ self.position.top = o.proxy ? co.top : 0;
+ }
+
+ var woset = (o.proxy ? self.offset.left - co.left : (self.position.left - cop.left)) + self.sizeDiff.width,
+ hoset = (o.proxy ? self.offset.top - co.top : self.position.top) + self.sizeDiff.height;
+
+ if (woset + self.size.width >= self.parentData.width) {
+ self.size.width = self.parentData.width - woset;
+ if (pRatio) self.size.height = self.size.width * o.aspectRatio;
+ }
+
+ if (hoset + self.size.height >= self.parentData.height) {
+ self.size.height = self.parentData.height - hoset;
+ if (pRatio) self.size.width = self.size.height / o.aspectRatio;
+ }
+ },
+
+ stop: function(e, ui){
+ var o = ui.options, self = $(this).data("resizable"), cp = self.position,
+ co = self.containerOffset, cop = self.containerPosition, ce = self.containerElement;
+
+ var helper = $(self.helper), ho = helper.offset(), w = helper.innerWidth(), h = helper.innerHeight();
+
+
+ if (o.proxy && !o.animate && /relative/.test(ce.css('position')))
+ $(this).css({ left: (ho.left - co.left), top: (ho.top - co.top), width: w, height: h });
+
+ if (o.proxy && !o.animate && /static/.test(ce.css('position')))
+ $(this).css({ left: cop.left + (ho.left - co.left), top: cop.top + (ho.top - co.top), width: w, height: h });
+
+ }
+});
+
+$.ui.plugin.add("resizable", "grid", {
+
+ resize: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable"), cs = self.size, os = self.originalSize, op = self.originalPosition, a = self.axis, ratio = o._aspectRatio || e.shiftKey;
+ o.grid = typeof o.grid == "number" ? [o.grid, o.grid] : o.grid;
+ var ox = Math.round((cs.width - os.width) / (o.grid[0]||1)) * (o.grid[0]||1), oy = Math.round((cs.height - os.height) / (o.grid[1]||1)) * (o.grid[1]||1);
+
+ if (/^(se|s|e)$/.test(a)) {
+ self.size.width = os.width + ox;
+ self.size.height = os.height + oy;
+ }
+ else if (/^(ne)$/.test(a)) {
+ self.size.width = os.width + ox;
+ self.size.height = os.height + oy;
+ self.position.top = op.top - oy;
+ }
+ else if (/^(sw)$/.test(a)) {
+ self.size.width = os.width + ox;
+ self.size.height = os.height + oy;
+ self.position.left = op.left - ox;
+ }
+ else {
+ self.size.width = os.width + ox;
+ self.size.height = os.height + oy;
+ self.position.top = op.top - oy;
+ self.position.left = op.left - ox;
+ }
+ }
+
+});
+
+$.ui.plugin.add("resizable", "animate", {
+
+ stop: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable");
+
+ var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName),
+ soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height,
+ soffsetw = ista ? 0 : self.sizeDiff.width;
+
+ var style = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) },
+ left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null,
+ top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null;
+
+ self.element.animate(
+ $.extend(style, top && left ? { top: top, left: left } : {}), {
+ duration: o.animateDuration || "slow", easing: o.animateEasing || "swing",
+ step: function() {
+
+ var data = {
+ width: parseInt(self.element.css('width'), 10),
+ height: parseInt(self.element.css('height'), 10),
+ top: parseInt(self.element.css('top'), 10),
+ left: parseInt(self.element.css('left'), 10)
+ };
+
+ if (pr) pr.css({ width: data.width, height: data.height });
+
+ // propagating resize, and updating values for each animation step
+ self._updateCache(data);
+ self.propagate("animate", e);
+
+ }
+ }
+ );
+ }
+
+});
+
+$.ui.plugin.add("resizable", "ghost", {
+
+ start: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize, cs = self.size;
+
+ if (!pr) self.ghost = self.element.clone();
+ else self.ghost = pr.clone();
+
+ self.ghost.css(
+ { opacity: .25, display: 'block', position: 'relative', height: cs.height, width: cs.width, margin: 0, left: 0, top: 0 }
+ )
+ .addClass('ui-resizable-ghost').addClass(typeof o.ghost == 'string' ? o.ghost : '');
+
+ self.ghost.appendTo(self.helper);
+
+ },
+
+ resize: function(e, ui){
+ var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize;
+
+ if (self.ghost) self.ghost.css({ position: 'relative', height: self.size.height, width: self.size.width });
+
+ },
+
+ stop: function(e, ui){
+ var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize;
+ if (self.ghost && self.helper) self.helper.get(0).removeChild(self.ghost.get(0));
+ }
+
+});
+
+$.ui.plugin.add("resizable", "alsoResize", {
+
+ start: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable"),
+
+ _store = function(exp) {
+ $(exp).each(function() {
+ $(this).data("resizable-alsoresize", {
+ width: parseInt($(this).width(), 10), height: parseInt($(this).height(), 10),
+ left: parseInt($(this).css('left'), 10), top: parseInt($(this).css('top'), 10)
+ });
+ });
+ };
+
+ if (typeof(o.alsoResize) == 'object') {
+ $.each(o.alsoResize, function(exp, c) { _store(exp); });
+ }else{
+ _store(o.alsoResize);
+ }
+ },
+
+ resize: function(e, ui){
+ var o = ui.options, self = $(this).data("resizable"), os = self.originalSize, op = self.originalPosition;
+
+ var delta = {
+ height: (self.size.height - os.height) || 0, width: (self.size.width - os.width) || 0,
+ top: (self.position.top - op.top) || 0, left: (self.position.left - op.left) || 0
+ },
+
+ _alsoResize = function(exp, c) {
+ $(exp).each(function() {
+ var start = $(this).data("resizable-alsoresize"), style = {}, css = c && c.length ? c : ['width', 'height', 'top', 'left'];
+
+ $.each(css || ['width', 'height', 'top', 'left'], function(i, prop) {
+ var sum = (start[prop]||0) + (delta[prop]||0);
+ if (sum && sum >= 0)
+ style[prop] = sum || null;
+ });
+ $(this).css(style);
+ });
+ };
+
+ if (typeof(o.alsoResize) == 'object') {
+ $.each(o.alsoResize, function(exp, c) { _alsoResize(exp, c); });
+ }else{
+ _alsoResize(o.alsoResize);
+ }
+ },
+
+ stop: function(e, ui){
+ $(this).removeData("resizable-alsoresize-start");
+ }
+});
+
+})(jQuery);
+/*
+ * jQuery UI Selectable
+ *
+ * Copyright (c) 2008 Richard D. Worth (rdworth.org)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Selectables
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.widget("ui.selectable", $.extend($.ui.mouse, {
+ init: function() {
+ var self = this;
+
+ this.element.addClass("ui-selectable");
+
+ this.dragged = false;
+
+ // cache selectee children based on filter
+ var selectees;
+ this.refresh = function() {
+ selectees = $(self.options.filter, self.element[0]);
+ selectees.each(function() {
+ var $this = $(this);
+ var pos = $this.offset();
+ $.data(this, "selectable-item", {
+ element: this,
+ $element: $this,
+ left: pos.left,
+ top: pos.top,
+ right: pos.left + $this.width(),
+ bottom: pos.top + $this.height(),
+ startselected: false,
+ selected: $this.hasClass('ui-selected'),
+ selecting: $this.hasClass('ui-selecting'),
+ unselecting: $this.hasClass('ui-unselecting')
+ });
+ });
+ };
+ this.refresh();
+
+ this.selectees = selectees.addClass("ui-selectee");
+
+ this.mouseInit();
+
+ this.helper = $(document.createElement('div')).css({border:'1px dotted black'});
+ },
+ toggle: function() {
+ if(this.options.disabled){
+ this.enable();
+ } else {
+ this.disable();
+ }
+ },
+ destroy: function() {
+ this.element
+ .removeClass("ui-selectable ui-selectable-disabled")
+ .removeData("selectable")
+ .unbind(".selectable");
+ this.mouseDestroy();
+ },
+ mouseStart: function(e) {
+ var self = this;
+
+ this.opos = [e.pageX, e.pageY];
+
+ if (this.options.disabled)
+ return;
+
+ var options = this.options;
+
+ this.selectees = $(options.filter, this.element[0]);
+
+ // selectable START callback
+ this.element.triggerHandler("selectablestart", [e, {
+ "selectable": this.element[0],
+ "options": options
+ }], options.start);
+
+ $('body').append(this.helper);
+ // position helper (lasso)
+ this.helper.css({
+ "z-index": 100,
+ "position": "absolute",
+ "left": e.clientX,
+ "top": e.clientY,
+ "width": 0,
+ "height": 0
+ });
+
+ if (options.autoRefresh) {
+ this.refresh();
+ }
+
+ this.selectees.filter('.ui-selected').each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.startselected = true;
+ if (!e.ctrlKey) {
+ selectee.$element.removeClass('ui-selected');
+ selectee.selected = false;
+ selectee.$element.addClass('ui-unselecting');
+ selectee.unselecting = true;
+ // selectable UNSELECTING callback
+ self.element.triggerHandler("selectableunselecting", [e, {
+ selectable: self.element[0],
+ unselecting: selectee.element,
+ options: options
+ }], options.unselecting);
+ }
+ });
+
+ var isSelectee = false;
+ $(e.target).parents().andSelf().each(function() {
+ if($.data(this, "selectable-item")) isSelectee = true;
+ });
+ return this.options.keyboard ? !isSelectee : true;
+ },
+ mouseDrag: function(e) {
+ var self = this;
+ this.dragged = true;
+
+ if (this.options.disabled)
+ return;
+
+ var options = this.options;
+
+ var x1 = this.opos[0], y1 = this.opos[1], x2 = e.pageX, y2 = e.pageY;
+ if (x1 > x2) { var tmp = x2; x2 = x1; x1 = tmp; }
+ if (y1 > y2) { var tmp = y2; y2 = y1; y1 = tmp; }
+ this.helper.css({left: x1, top: y1, width: x2-x1, height: y2-y1});
+
+ this.selectees.each(function() {
+ var selectee = $.data(this, "selectable-item");
+ //prevent helper from being selected if appendTo: selectable
+ if (!selectee || selectee.element == self.element[0])
+ return;
+ var hit = false;
+ if (options.tolerance == 'touch') {
+ hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) );
+ } else if (options.tolerance == 'fit') {
+ hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2);
+ }
+
+ if (hit) {
+ // SELECT
+ if (selectee.selected) {
+ selectee.$element.removeClass('ui-selected');
+ selectee.selected = false;
+ }
+ if (selectee.unselecting) {
+ selectee.$element.removeClass('ui-unselecting');
+ selectee.unselecting = false;
+ }
+ if (!selectee.selecting) {
+ selectee.$element.addClass('ui-selecting');
+ selectee.selecting = true;
+ // selectable SELECTING callback
+ self.element.triggerHandler("selectableselecting", [e, {
+ selectable: self.element[0],
+ selecting: selectee.element,
+ options: options
+ }], options.selecting);
+ }
+ } else {
+ // UNSELECT
+ if (selectee.selecting) {
+ if (e.ctrlKey && selectee.startselected) {
+ selectee.$element.removeClass('ui-selecting');
+ selectee.selecting = false;
+ selectee.$element.addClass('ui-selected');
+ selectee.selected = true;
+ } else {
+ selectee.$element.removeClass('ui-selecting');
+ selectee.selecting = false;
+ if (selectee.startselected) {
+ selectee.$element.addClass('ui-unselecting');
+ selectee.unselecting = true;
+ }
+ // selectable UNSELECTING callback
+ self.element.triggerHandler("selectableunselecting", [e, {
+ selectable: self.element[0],
+ unselecting: selectee.element,
+ options: options
+ }], options.unselecting);
+ }
+ }
+ if (selectee.selected) {
+ if (!e.ctrlKey && !selectee.startselected) {
+ selectee.$element.removeClass('ui-selected');
+ selectee.selected = false;
+
+ selectee.$element.addClass('ui-unselecting');
+ selectee.unselecting = true;
+ // selectable UNSELECTING callback
+ self.element.triggerHandler("selectableunselecting", [e, {
+ selectable: self.element[0],
+ unselecting: selectee.element,
+ options: options
+ }], options.unselecting);
+ }
+ }
+ }
+ });
+
+ return false;
+ },
+ mouseStop: function(e) {
+ var self = this;
+
+ this.dragged = false;
+
+ var options = this.options;
+
+ $('.ui-unselecting', this.element[0]).each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.$element.removeClass('ui-unselecting');
+ selectee.unselecting = false;
+ selectee.startselected = false;
+ self.element.triggerHandler("selectableunselected", [e, {
+ selectable: self.element[0],
+ unselected: selectee.element,
+ options: options
+ }], options.unselected);
+ });
+ $('.ui-selecting', this.element[0]).each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.$element.removeClass('ui-selecting').addClass('ui-selected');
+ selectee.selecting = false;
+ selectee.selected = true;
+ selectee.startselected = true;
+ self.element.triggerHandler("selectableselected", [e, {
+ selectable: self.element[0],
+ selected: selectee.element,
+ options: options
+ }], options.selected);
+ });
+ this.element.triggerHandler("selectablestop", [e, {
+ selectable: self.element[0],
+ options: this.options
+ }], this.options.stop);
+
+ this.helper.remove();
+
+ return false;
+ }
+}));
+
+$.extend($.ui.selectable, {
+ defaults: {
+ distance: 0,
+ delay: 0,
+ cancel: ":input,button",
+ appendTo: 'body',
+ autoRefresh: true,
+ filter: '*',
+ tolerance: 'touch'
+ }
+});
+
+})(jQuery);
+/*
+ * jQuery UI Sortable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Sortables
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+function contains(a, b) {
+ var safari2 = $.browser.safari && $.browser.version < 522;
+ if (a.contains && !safari2) {
+ return a.contains(b);
+ }
+ if (a.compareDocumentPosition)
+ return !!(a.compareDocumentPosition(b) & 16);
+ while (b = b.parentNode)
+ if (b == a) return true;
+ return false;
+};
+
+$.widget("ui.sortable", $.extend($.ui.mouse, {
+ init: function() {
+
+ var o = this.options;
+ this.containerCache = {};
+ this.element.addClass("ui-sortable");
+
+ //Get the items
+ this.refresh();
+
+ //Let's determine if the items are floating
+ this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) : false;
+
+ //Let's determine the parent's offset
+ if(!(/(relative|absolute|fixed)/).test(this.element.css('position'))) this.element.css('position', 'relative');
+ this.offset = this.element.offset();
+
+ //Initialize mouse events for interaction
+ this.mouseInit();
+
+ },
+ plugins: {},
+ ui: function(inst) {
+ return {
+ helper: (inst || this)["helper"],
+ placeholder: (inst || this)["placeholder"] || $([]),
+ position: (inst || this)["position"],
+ absolutePosition: (inst || this)["positionAbs"],
+ options: this.options,
+ element: this.element,
+ item: (inst || this)["currentItem"],
+ sender: inst ? inst.element : null
+ };
+ },
+ propagate: function(n,e,inst, noPropagation) {
+ $.ui.plugin.call(this, n, [e, this.ui(inst)]);
+ if(!noPropagation) this.element.triggerHandler(n == "sort" ? n : "sort"+n, [e, this.ui(inst)], this.options[n]);
+ },
+ serialize: function(o) {
+
+ var items = ($.isFunction(this.options.items) ? this.options.items.call(this.element) : $(this.options.items, this.element)).not('.ui-sortable-helper'); //Only the items of the sortable itself
+ var str = []; o = o || {};
+
+ items.each(function() {
+ var res = ($(this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));
+ if(res) str.push((o.key || res[1])+'[]='+(o.key ? res[1] : res[2]));
+ });
+
+ return str.join('&');
+
+ },
+ toArray: function(attr) {
+
+ var items = ($.isFunction(this.options.items) ? this.options.items.call(this.element) : $(this.options.items, this.element)).not('.ui-sortable-helper'); //Only the items of the sortable itself
+ var ret = [];
+
+ items.each(function() { ret.push($(this).attr(attr || 'id')); });
+ return ret;
+
+ },
+ /* Be careful with the following core functions */
+ intersectsWith: function(item) {
+
+ var x1 = this.positionAbs.left, x2 = x1 + this.helperProportions.width,
+ y1 = this.positionAbs.top, y2 = y1 + this.helperProportions.height;
+ var l = item.left, r = l + item.width,
+ t = item.top, b = t + item.height;
+
+ if(this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])) {
+ return (y1 + this.offset.click.top > t && y1 + this.offset.click.top < b && x1 + this.offset.click.left > l && x1 + this.offset.click.left < r);
+ } else {
+
+ return (l < x1 + (this.helperProportions.width / 2) // Right Half
+ && x2 - (this.helperProportions.width / 2) < r // Left Half
+ && t < y1 + (this.helperProportions.height / 2) // Bottom Half
+ && y2 - (this.helperProportions.height / 2) < b ); // Top Half
+
+ }
+
+ },
+ intersectsWithEdge: function(item) {
+ var x1 = this.positionAbs.left, x2 = x1 + this.helperProportions.width,
+ y1 = this.positionAbs.top, y2 = y1 + this.helperProportions.height;
+ var l = item.left, r = l + item.width,
+ t = item.top, b = t + item.height;
+
+ if(this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])) {
+
+ if(!(y1 + this.offset.click.top > t && y1 + this.offset.click.top < b && x1 + this.offset.click.left > l && x1 + this.offset.click.left < r)) return false;
+
+ if(this.floating) {
+ if(x1 + this.offset.click.left > l && x1 + this.offset.click.left < l + item.width/2) return 2;
+ if(x1 + this.offset.click.left > l+item.width/2 && x1 + this.offset.click.left < r) return 1;
+ } else {
+ if(y1 + this.offset.click.top > t && y1 + this.offset.click.top < t + item.height/2) return 2;
+ if(y1 + this.offset.click.top > t+item.height/2 && y1 + this.offset.click.top < b) return 1;
+ }
+
+ } else {
+
+ if (!(l < x1 + (this.helperProportions.width / 2) // Right Half
+ && x2 - (this.helperProportions.width / 2) < r // Left Half
+ && t < y1 + (this.helperProportions.height / 2) // Bottom Half
+ && y2 - (this.helperProportions.height / 2) < b )) return false; // Top Half
+
+ if(this.floating) {
+ if(x2 > l && x1 < l) return 2; //Crosses left edge
+ if(x1 < r && x2 > r) return 1; //Crosses right edge
+ } else {
+ if(y2 > t && y1 < t) return 1; //Crosses top edge
+ if(y1 < b && y2 > b) return 2; //Crosses bottom edge
+ }
+
+ }
+
+ return false;
+
+ },
+ refresh: function() {
+ this.refreshItems();
+ this.refreshPositions();
+ },
+ refreshItems: function() {
+
+ this.items = [];
+ this.containers = [this];
+ var items = this.items;
+ var queries = [$.isFunction(this.options.items) ? this.options.items.call(this.element) : $(this.options.items, this.element)];
+
+ if(this.options.connectWith) {
+ for (var i = this.options.connectWith.length - 1; i >= 0; i--){
+ var cur = $(this.options.connectWith[i]);
+ for (var j = cur.length - 1; j >= 0; j--){
+ var inst = $.data(cur[j], 'sortable');
+ if(inst && !inst.options.disabled) {
+ queries.push($.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element));
+ this.containers.push(inst);
+ }
+ };
+ };
+ }
+
+ for (var i = queries.length - 1; i >= 0; i--){
+ queries[i].each(function() {
+ $.data(this, 'sortable-item', true); // Data for target checking (mouse manager)
+ items.push({
+ item: $(this),
+ width: 0, height: 0,
+ left: 0, top: 0
+ });
+ });
+ };
+
+ },
+ refreshPositions: function(fast) {
+ for (var i = this.items.length - 1; i >= 0; i--){
+ var t = this.items[i].item;
+ if(!fast) this.items[i].width = (this.options.toleranceElement ? $(this.options.toleranceElement, t) : t).outerWidth();
+ if(!fast) this.items[i].height = (this.options.toleranceElement ? $(this.options.toleranceElement, t) : t).outerHeight();
+ var p = (this.options.toleranceElement ? $(this.options.toleranceElement, t) : t).offset();
+ this.items[i].left = p.left;
+ this.items[i].top = p.top;
+ };
+ for (var i = this.containers.length - 1; i >= 0; i--){
+ var p =this.containers[i].element.offset();
+ this.containers[i].containerCache.left = p.left;
+ this.containers[i].containerCache.top = p.top;
+ this.containers[i].containerCache.width = this.containers[i].element.outerWidth();
+ this.containers[i].containerCache.height = this.containers[i].element.outerHeight();
+ };
+ },
+ destroy: function() {
+ this.element
+ .removeClass("ui-sortable ui-sortable-disabled")
+ .removeData("sortable")
+ .unbind(".sortable");
+ this.mouseDestroy();
+
+ for ( var i = this.items.length - 1; i >= 0; i-- )
+ this.items[i].item.removeData("sortable-item");
+ },
+ createPlaceholder: function(that) {
+
+ var self = that || this, o = self.options;
+
+ if(o.placeholder.constructor == String) {
+ var className = o.placeholder;
+ o.placeholder = {
+ element: function() {
+ return $('<div></div>').addClass(className)[0];
+ },
+ update: function(i, p) {
+ p.css(i.offset()).css({ width: i.outerWidth(), height: i.outerHeight() });
+ }
+ };
+ }
+
+ self.placeholder = $(o.placeholder.element.call(self.element, self.currentItem)).appendTo('body').css({ position: 'absolute' });
+ o.placeholder.update.call(self.element, self.currentItem, self.placeholder);
+ },
+ contactContainers: function(e) {
+ for (var i = this.containers.length - 1; i >= 0; i--){
+
+ if(this.intersectsWith(this.containers[i].containerCache)) {
+ if(!this.containers[i].containerCache.over) {
+
+
+ if(this.currentContainer != this.containers[i]) {
+
+ //When entering a new container, we will find the item with the least distance and append our item near it
+ var dist = 10000; var itemWithLeastDistance = null; var base = this.positionAbs[this.containers[i].floating ? 'left' : 'top'];
+ for (var j = this.items.length - 1; j >= 0; j--) {
+ if(!contains(this.containers[i].element[0], this.items[j].item[0])) continue;
+ var cur = this.items[j][this.containers[i].floating ? 'left' : 'top'];
+ if(Math.abs(cur - base) < dist) {
+ dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j];
+ }
+ }
+
+ if(!itemWithLeastDistance && !this.options.dropOnEmpty) //Check if dropOnEmpty is enabled
+ continue;
+
+ //We also need to exchange the placeholder
+ if(this.placeholder) this.placeholder.remove();
+ if(this.containers[i].options.placeholder) {
+ this.containers[i].createPlaceholder(this);
+ } else {
+ this.placeholder = null;;
+ }
+
+
+ itemWithLeastDistance ? this.rearrange(e, itemWithLeastDistance) : this.rearrange(e, null, this.containers[i].element);
+ this.propagate("change", e); //Call plugins and callbacks
+ this.containers[i].propagate("change", e, this); //Call plugins and callbacks
+ this.currentContainer = this.containers[i];
+
+ }
+
+ this.containers[i].propagate("over", e, this);
+ this.containers[i].containerCache.over = 1;
+ }
+ } else {
+ if(this.containers[i].containerCache.over) {
+ this.containers[i].propagate("out", e, this);
+ this.containers[i].containerCache.over = 0;
+ }
+ }
+
+ };
+ },
+ mouseCapture: function(e, overrideHandle) {
+
+ if(this.options.disabled || this.options.type == 'static') return false;
+
+ //Find out if the clicked node (or one of its parents) is a actual item in this.items
+ var currentItem = null, nodes = $(e.target).parents().each(function() {
+ if($.data(this, 'sortable-item')) {
+ currentItem = $(this);
+ return false;
+ }
+ });
+ if($.data(e.target, 'sortable-item')) currentItem = $(e.target);
+
+ if(!currentItem) return false;
+ if(this.options.handle && !overrideHandle) {
+ var validHandle = false;
+ $(this.options.handle, currentItem).find("*").andSelf().each(function() { if(this == e.target) validHandle = true; });
+ if(!validHandle) return false;
+ }
+
+ this.currentItem = currentItem;
+ return true;
+
+ },
+ mouseStart: function(e, overrideHandle, noActivation) {
+
+ var o = this.options;
+ this.currentContainer = this;
+
+ this.refresh();
+
+ //Create and append the visible helper
+ this.helper = typeof o.helper == 'function' ? $(o.helper.apply(this.element[0], [e, this.currentItem])) : this.currentItem.clone();
+ if(!this.helper.parents('body').length) this.helper.appendTo((o.appendTo != 'parent' ? o.appendTo : this.currentItem[0].parentNode)); //Add the helper to the DOM if that didn't happen already
+ this.helper.css({ position: 'absolute', clear: 'both' }).addClass('ui-sortable-helper'); //Position it absolutely and add a helper class
+
+ /*
+ * - Position generation -
+ * This block generates everything position related - it's the core of draggables.
+ */
+
+ this.margins = { //Cache the margins
+ left: (parseInt(this.currentItem.css("marginLeft"),10) || 0),
+ top: (parseInt(this.currentItem.css("marginTop"),10) || 0)
+ };
+
+ this.offset = this.currentItem.offset(); //The element's absolute position on the page
+ this.offset = { //Substract the margins from the element's absolute offset
+ top: this.offset.top - this.margins.top,
+ left: this.offset.left - this.margins.left
+ };
+
+ this.offset.click = { //Where the click happened, relative to the element
+ left: e.pageX - this.offset.left,
+ top: e.pageY - this.offset.top
+ };
+
+ this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); //Get the offsetParent and cache its position
+
+ this.offset.parent = { //Store its position plus border
+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
+ };
+
+ this.originalPosition = this.generatePosition(e); //Generate the original position
+ this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Cache the helper size
+
+ if(o.cursorAt) {
+ if(o.cursorAt.left != undefined) this.offset.click.left = o.cursorAt.left;
+ if(o.cursorAt.right != undefined) this.offset.click.left = this.helperProportions.width - o.cursorAt.right;
+ if(o.cursorAt.top != undefined) this.offset.click.top = o.cursorAt.top;
+ if(o.cursorAt.bottom != undefined) this.offset.click.top = this.helperProportions.height - o.cursorAt.bottom;
+ }
+
+ this.domPosition = this.currentItem.prev()[0]; //Cache the former DOM position
+
+ /*
+ * - Position constraining -
+ * Here we prepare position constraining like grid and containment.
+ */
+
+ if(o.containment) {
+ if(o.containment == 'parent') o.containment = this.helper[0].parentNode;
+ if(o.containment == 'document' || o.containment == 'window') this.containment = [
+ 0 - this.offset.parent.left,
+ 0 - this.offset.parent.top,
+ $(o.containment == 'document' ? document : window).width() - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
+ ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
+ ];
+
+ if(!(/^(document|window|parent)$/).test(o.containment)) {
+ var ce = $(o.containment)[0];
+ var co = $(o.containment).offset();
+
+ this.containment = [
+ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.parent.left,
+ co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.parent.top,
+ co.left+Math.max(ce.scrollWidth,ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.currentItem.css("marginRight"),10) || 0),
+ co.top+Math.max(ce.scrollHeight,ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.currentItem.css("marginBottom"),10) || 0)
+ ];
+ }
+ }
+
+ //If o.placeholder is used, create a new element at the given position with the class
+ if(o.placeholder) this.createPlaceholder();
+
+ //Call plugins and callbacks
+ this.propagate("start", e);
+ this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Recache the helper size
+
+ if(this.options.placeholder != 'clone') this.currentItem.css('visibility', 'hidden'); //Set the original element visibility to hidden to still fill out the white space
+
+ if(!noActivation) {
+ for (var i = this.containers.length - 1; i >= 0; i--) { this.containers[i].propagate("activate", e, this); } //Post 'activate' events to possible containers
+ }
+
+ //Prepare possible droppables
+ if($.ui.ddmanager) $.ui.ddmanager.current = this;
+ if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, e);
+
+ this.dragging = true;
+
+ this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
+ return true;
+
+
+ },
+ convertPositionTo: function(d, pos) {
+ if(!pos) pos = this.position;
+ var mod = d == "absolute" ? 1 : -1;
+ return {
+ top: (
+ pos.top // the calculated relative position
+ + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)
+ - (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop) * mod // The offsetParent's scroll position
+ + this.margins.top * mod //Add the margin (you don't want the margin counting in intersection methods)
+ ),
+ left: (
+ pos.left // the calculated relative position
+ + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)
+ - (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft) * mod // The offsetParent's scroll position
+ + this.margins.left * mod //Add the margin (you don't want the margin counting in intersection methods)
+ )
+ };
+ },
+ generatePosition: function(e) {
+
+ var o = this.options;
+ var position = {
+ top: (
+ e.pageY // The absolute mouse position
+ - this.offset.click.top // Click offset (relative to the element)
+ - this.offset.parent.top // The offsetParent's offset without borders (offset + border)
+ + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop) // The offsetParent's scroll position, not if the element is fixed
+ ),
+ left: (
+ e.pageX // The absolute mouse position
+ - this.offset.click.left // Click offset (relative to the element)
+ - this.offset.parent.left // The offsetParent's offset without borders (offset + border)
+ + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft) // The offsetParent's scroll position, not if the element is fixed
+ )
+ };
+
+ if(!this.originalPosition) return position; //If we are not dragging yet, we won't check for options
+
+ /*
+ * - Position constraining -
+ * Constrain the position to a mix of grid, containment.
+ */
+ if(this.containment) {
+ if(position.left < this.containment[0]) position.left = this.containment[0];
+ if(position.top < this.containment[1]) position.top = this.containment[1];
+ if(position.left > this.containment[2]) position.left = this.containment[2];
+ if(position.top > this.containment[3]) position.top = this.containment[3];
+ }
+
+ if(o.grid) {
+ var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1];
+ position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
+
+ var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0];
+ position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
+ }
+
+ return position;
+ },
+ mouseDrag: function(e) {
+
+
+ //Compute the helpers position
+ this.position = this.generatePosition(e);
+ this.positionAbs = this.convertPositionTo("absolute");
+
+ //Rearrange
+ for (var i = this.items.length - 1; i >= 0; i--) {
+ var intersection = this.intersectsWithEdge(this.items[i]);
+ if(!intersection) continue;
+
+ if(this.items[i].item[0] != this.currentItem[0] //cannot intersect with itself
+ && this.currentItem[intersection == 1 ? "next" : "prev"]()[0] != this.items[i].item[0] //no useless actions that have been done before
+ && !contains(this.currentItem[0], this.items[i].item[0]) //no action if the item moved is the parent of the item checked
+ && (this.options.type == 'semi-dynamic' ? !contains(this.element[0], this.items[i].item[0]) : true)
+ ) {
+
+ this.direction = intersection == 1 ? "down" : "up";
+ this.rearrange(e, this.items[i]);
+ this.propagate("change", e); //Call plugins and callbacks
+ break;
+ }
+ }
+
+ //Post events to containers
+ this.contactContainers(e);
+
+ //Call plugins and callbacks
+ this.propagate("sort", e);
+
+ if(!this.options.axis || this.options.axis == "x") this.helper[0].style.left = this.position.left+'px';
+ if(!this.options.axis || this.options.axis == "y") this.helper[0].style.top = this.position.top+'px';
+
+ //Interconnect with droppables
+ if($.ui.ddmanager) $.ui.ddmanager.drag(this, e);
+
+ return false;
+
+ },
+ mouseStop: function(e, noPropagation) {
+
+ //If we are using droppables, inform the manager about the drop
+ if ($.ui.ddmanager && !this.options.dropBehaviour)
+ $.ui.ddmanager.drop(this, e);
+
+ if(this.options.revert) {
+ var self = this;
+ var cur = self.currentItem.offset();
+
+ //Also animate the placeholder if we have one
+ if(self.placeholder) self.placeholder.animate({ opacity: 'hide' }, (parseInt(this.options.revert, 10) || 500)-50);
+
+ $(this.helper).animate({
+ left: cur.left - this.offset.parent.left - self.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft),
+ top: cur.top - this.offset.parent.top - self.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop)
+ }, parseInt(this.options.revert, 10) || 500, function() {
+ self.propagate("stop", e, null, noPropagation);
+ self.clear(e);
+ });
+ } else {
+ this.propagate("stop", e, null, noPropagation);
+ this.clear(e, noPropagation);
+ }
+
+ return false;
+
+ },
+ clear: function(e, noPropagation) {
+
+ if(this.domPosition != this.currentItem.prev().not(".ui-sortable-helper")[0]) this.propagate("update", e, null, noPropagation); //Trigger update callback if the DOM position has changed
+ if(!contains(this.element[0], this.currentItem[0])) { //Node was moved out of the current element
+ if(this.domPosition == this.currentItem.prev().not(".ui-sortable-helper")[0]) this.propagate("update", e, null, noPropagation); //Trigger update callback, if it wasn't triggered before, because that is definitely an update
+ this.propagate("remove", e, null, noPropagation);
+ for (var i = this.containers.length - 1; i >= 0; i--){
+ if(contains(this.containers[i].element[0], this.currentItem[0])) {
+ this.containers[i].propagate("update", e, this, noPropagation);
+ this.containers[i].propagate("receive", e, this, noPropagation);
+ }
+ };
+ };
+
+ //Post events to containers
+ for (var i = this.containers.length - 1; i >= 0; i--){
+ this.containers[i].propagate("deactivate", e, this, noPropagation);
+ if(this.containers[i].containerCache.over) {
+ this.containers[i].propagate("out", e, this);
+ this.containers[i].containerCache.over = 0;
+ }
+ }
+
+ this.dragging = false;
+ if(this.cancelHelperRemoval) return false;
+ $(this.currentItem).css('visibility', '');
+ if(this.placeholder) this.placeholder.remove();
+ this.helper.remove();
+
+ return true;
+
+ },
+ rearrange: function(e, i, a) {
+ a ? a.append(this.currentItem) : i.item[this.direction == 'down' ? 'before' : 'after'](this.currentItem);
+ this.refreshPositions(true); //Precompute after each DOM insertion, NOT on mousemove
+ if(this.options.placeholder) this.options.placeholder.update.call(this.element, this.currentItem, this.placeholder);
+ }
+}));
+
+$.extend($.ui.sortable, {
+ getter: "serialize toArray",
+ defaults: {
+ tolerance: "guess",
+ distance: 0,
+ delay: 0,
+ cancel: ":input,button",
+ items: '> *',
+ zIndex: 1000,
+ dropOnEmpty: true,
+ appendTo: "parent"
+ }
+});
+
+/*
+ * Sortable Extensions
+ */
+
+$.ui.plugin.add("sortable", "cursor", {
+ start: function(e, ui) {
+ var t = $('body');
+ if (t.css("cursor")) ui.options._cursor = t.css("cursor");
+ t.css("cursor", ui.options.cursor);
+ },
+ stop: function(e, ui) {
+ if (ui.options._cursor) $('body').css("cursor", ui.options._cursor);
+ }
+});
+
+$.ui.plugin.add("sortable", "zIndex", {
+ start: function(e, ui) {
+ var t = ui.helper;
+ if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex");
+ t.css('zIndex', ui.options.zIndex);
+ },
+ stop: function(e, ui) {
+ if(ui.options._zIndex) $(ui.helper).css('zIndex', ui.options._zIndex);
+ }
+});
+
+$.ui.plugin.add("sortable", "opacity", {
+ start: function(e, ui) {
+ var t = ui.helper;
+ if(t.css("opacity")) ui.options._opacity = t.css("opacity");
+ t.css('opacity', ui.options.opacity);
+ },
+ stop: function(e, ui) {
+ if(ui.options._opacity) $(ui.helper).css('opacity', ui.options._opacity);
+ }
+});
+
+$.ui.plugin.add("sortable", "scroll", {
+ start: function(e, ui) {
+ var o = ui.options;
+ var i = $(this).data("sortable");
+ o.scrollSensitivity = o.scrollSensitivity || 20;
+ o.scrollSpeed = o.scrollSpeed || 20;
+
+ i.overflowY = function(el) {
+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-y'))) return el; el = el.parent(); } while (el[0].parentNode);
+ return $(document);
+ }(i.currentItem);
+ i.overflowX = function(el) {
+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-x'))) return el; el = el.parent(); } while (el[0].parentNode);
+ return $(document);
+ }(i.currentItem);
+
+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') i.overflowYOffset = i.overflowY.offset();
+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') i.overflowXOffset = i.overflowX.offset();
+
+ },
+ sort: function(e, ui) {
+
+ var o = ui.options;
+ var i = $(this).data("sortable");
+
+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') {
+ if((i.overflowYOffset.top + i.overflowY[0].offsetHeight) - e.pageY < o.scrollSensitivity)
+ i.overflowY[0].scrollTop = i.overflowY[0].scrollTop + o.scrollSpeed;
+ if(e.pageY - i.overflowYOffset.top < o.scrollSensitivity)
+ i.overflowY[0].scrollTop = i.overflowY[0].scrollTop - o.scrollSpeed;
+ } else {
+ if(e.pageY - $(document).scrollTop() < o.scrollSensitivity)
+ $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
+ if($(window).height() - (e.pageY - $(document).scrollTop()) < o.scrollSensitivity)
+ $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
+ }
+
+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') {
+ if((i.overflowXOffset.left + i.overflowX[0].offsetWidth) - e.pageX < o.scrollSensitivity)
+ i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft + o.scrollSpeed;
+ if(e.pageX - i.overflowXOffset.left < o.scrollSensitivity)
+ i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft - o.scrollSpeed;
+ } else {
+ if(e.pageX - $(document).scrollLeft() < o.scrollSensitivity)
+ $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
+ if($(window).width() - (e.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
+ $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
+ }
+
+ }
+});
+
+})(jQuery);
+/*
+ * jQuery UI Effects 1.5
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/
+ *
+ */
+;(function($) {
+
+$.effects = $.effects || {}; //Add the 'effects' scope
+
+$.extend($.effects, {
+ save: function(el, set) {
+ for(var i=0;i<set.length;i++) {
+ if(set[i] !== null) $.data(el[0], "ec.storage."+set[i], el[0].style[set[i]]);
+ }
+ },
+ restore: function(el, set) {
+ for(var i=0;i<set.length;i++) {
+ if(set[i] !== null) el.css(set[i], $.data(el[0], "ec.storage."+set[i]));
+ }
+ },
+ setMode: function(el, mode) {
+ if (mode == 'toggle') mode = el.is(':hidden') ? 'show' : 'hide'; // Set for toggle
+ return mode;
+ },
+ getBaseline: function(origin, original) { // Translates a [top,left] array into a baseline value
+ // this should be a little more flexible in the future to handle a string & hash
+ var y, x;
+ switch (origin[0]) {
+ case 'top': y = 0; break;
+ case 'middle': y = 0.5; break;
+ case 'bottom': y = 1; break;
+ default: y = origin[0] / original.height;
+ };
+ switch (origin[1]) {
+ case 'left': x = 0; break;
+ case 'center': x = 0.5; break;
+ case 'right': x = 1; break;
+ default: x = origin[1] / original.width;
+ };
+ return {x: x, y: y};
+ },
+ createWrapper: function(el) {
+ if (el.parent().attr('id') == 'fxWrapper')
+ return el;
+ var props = {width: el.outerWidth({margin:true}), height: el.outerHeight({margin:true}), 'float': el.css('float')};
+ el.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');
+ var wrapper = el.parent();
+ if (el.css('position') == 'static'){
+ wrapper.css({position: 'relative'});
+ el.css({position: 'relative'});
+ } else {
+ var top = parseInt(el.css('top'), 10); if(isNaN(top)) top = 'auto';
+ var left = parseInt(el.css('left'), 10); if(isNaN(top)) left = 'auto';
+ wrapper.css({ position: el.css('position'), top: top, left: left, zIndex: el.css('z-index') }).show();
+ el.css({position: 'relative', top:0, left:0});
+ }
+ wrapper.css(props);
+ return wrapper;
+ },
+ removeWrapper: function(el) {
+ if (el.parent().attr('id') == 'fxWrapper')
+ return el.parent().replaceWith(el);
+ return el;
+ },
+ setTransition: function(el, list, factor, val) {
+ val = val || {};
+ $.each(list,function(i, x){
+ unit = el.cssUnit(x);
+ if (unit[0] > 0) val[x] = unit[0] * factor + unit[1];
+ });
+ return val;
+ },
+ animateClass: function(value, duration, easing, callback) {
+
+ var cb = (typeof easing == "function" ? easing : (callback ? callback : null));
+ var ea = (typeof easing == "object" ? easing : null);
+
+ return this.each(function() {
+
+ var offset = {}; var that = $(this); var oldStyleAttr = that.attr("style") || '';
+ if(typeof oldStyleAttr == 'object') oldStyleAttr = oldStyleAttr["cssText"]; /* Stupidly in IE, style is a object.. */
+ if(value.toggle) { that.hasClass(value.toggle) ? value.remove = value.toggle : value.add = value.toggle; }
+
+ //Let's get a style offset
+ var oldStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
+ if(value.add) that.addClass(value.add); if(value.remove) that.removeClass(value.remove);
+ var newStyle = $.extend({}, (document.defaultView ? document.defaultView.getComputedStyle(this,null) : this.currentStyle));
+ if(value.add) that.removeClass(value.add); if(value.remove) that.addClass(value.remove);
+
+ // The main function to form the object for animation
+ for(var n in newStyle) {
+ if( typeof newStyle[n] != "function" && newStyle[n] /* No functions and null properties */
+ && n.indexOf("Moz") == -1 && n.indexOf("length") == -1 /* No mozilla spezific render properties. */
+ && newStyle[n] != oldStyle[n] /* Only values that have changed are used for the animation */
+ && (n.match(/color/i) || (!n.match(/color/i) && !isNaN(parseInt(newStyle[n],10)))) /* Only things that can be parsed to integers or colors */
+ && (oldStyle.position != "static" || (oldStyle.position == "static" && !n.match(/left|top|bottom|right/))) /* No need for positions when dealing with static positions */
+ ) offset[n] = newStyle[n];
+ }
+
+ that.animate(offset, duration, ea, function() { // Animate the newly constructed offset object
+ // Change style attribute back to original. For stupid IE, we need to clear the damn object.
+ if(typeof $(this).attr("style") == 'object') { $(this).attr("style")["cssText"] = ""; $(this).attr("style")["cssText"] = oldStyleAttr; } else $(this).attr("style", oldStyleAttr);
+ if(value.add) $(this).addClass(value.add); if(value.remove) $(this).removeClass(value.remove);
+ if(cb) cb.apply(this, arguments);
+ });
+
+ });
+ }
+});
+
+//Extend the methods of jQuery
+$.fn.extend({
+ //Save old methods
+ _show: $.fn.show,
+ _hide: $.fn.hide,
+ __toggle: $.fn.toggle,
+ _addClass: $.fn.addClass,
+ _removeClass: $.fn.removeClass,
+ _toggleClass: $.fn.toggleClass,
+ // New ec methods
+ effect: function(fx,o,speed,callback) {
+ return $.effects[fx] ? $.effects[fx].call(this, {method: fx, options: o || {}, duration: speed, callback: callback }) : null;
+ },
+ show: function() {
+ if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])))
+ return this._show.apply(this, arguments);
+ else {
+ var o = arguments[1] || {}; o['mode'] = 'show';
+ return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
+ }
+ },
+ hide: function() {
+ if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])))
+ return this._hide.apply(this, arguments);
+ else {
+ var o = arguments[1] || {}; o['mode'] = 'hide';
+ return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
+ }
+ },
+ toggle: function(){
+ if(!arguments[0] || (arguments[0].constructor == Number || /(slow|normal|fast)/.test(arguments[0])) || (arguments[0].constructor == Function))
+ return this.__toggle.apply(this, arguments);
+ else {
+ var o = arguments[1] || {}; o['mode'] = 'toggle';
+ return this.effect.apply(this, [arguments[0], o, arguments[2] || o.duration, arguments[3] || o.callback]);
+ }
+ },
+ addClass: function(classNames,speed,easing,callback) {
+ return speed ? $.effects.animateClass.apply(this, [{ add: classNames },speed,easing,callback]) : this._addClass(classNames);
+ },
+ removeClass: function(classNames,speed,easing,callback) {
+ return speed ? $.effects.animateClass.apply(this, [{ remove: classNames },speed,easing,callback]) : this._removeClass(classNames);
+ },
+ toggleClass: function(classNames,speed,easing,callback) {
+ return speed ? $.effects.animateClass.apply(this, [{ toggle: classNames },speed,easing,callback]) : this._toggleClass(classNames);
+ },
+ morph: function(remove,add,speed,easing,callback) {
+ return $.effects.animateClass.apply(this, [{ add: add, remove: remove },speed,easing,callback]);
+ },
+ switchClass: function() {
+ return this.morph.apply(this, arguments);
+ },
+ // helper functions
+ cssUnit: function(key) {
+ var style = this.css(key), val = [];
+ $.each( ['em','px','%','pt'], function(i, unit){
+ if(style.indexOf(unit) > 0)
+ val = [parseFloat(style), unit];
+ });
+ return val;
+ }
+});
+
+/*
+ * jQuery Color Animations
+ * Copyright 2007 John Resig
+ * Released under the MIT and GPL licenses.
+ */
+
+// We override the animation for all of these color styles
+jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
+ jQuery.fx.step[attr] = function(fx){
+ if ( fx.state == 0 ) {
+ fx.start = getColor( fx.elem, attr );
+ fx.end = getRGB( fx.end );
+ }
+
+ fx.elem.style[attr] = "rgb(" + [
+ Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
+ Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
+ Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
+ ].join(",") + ")";
+ }
+});
+
+// Color Conversion functions from highlightFade
+// By Blair Mitchelmore
+// http://jquery.offput.ca/highlightFade/
+
+// Parse strings looking for color tuples [255,255,255]
+function getRGB(color) {
+ var result;
+
+ // Check if we're already dealing with an array of colors
+ if ( color && color.constructor == Array && color.length == 3 )
+ return color;
+
+ // Look for rgb(num,num,num)
+ if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
+ return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];
+
+ // Look for rgb(num%,num%,num%)
+ if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
+ return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];
+
+ // Look for #a0b1c2
+ if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
+ return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];
+
+ // Look for #fff
+ if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
+ return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];
+
+ // Look for rgba(0, 0, 0, 0) == transparent in Safari 3
+ if (result = /rgba\(0, 0, 0, 0\)/.exec(color))
+ return colors['transparent']
+
+ // Otherwise, we're most likely dealing with a named color
+ return colors[jQuery.trim(color).toLowerCase()];
+}
+
+function getColor(elem, attr) {
+ var color;
+
+ do {
+ color = jQuery.curCSS(elem, attr);
+
+ // Keep going until we find an element that has color, or we hit the body
+ if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
+ break;
+
+ attr = "backgroundColor";
+ } while ( elem = elem.parentNode );
+
+ return getRGB(color);
+};
+
+// Some named colors to work with
+// From Interface by Stefan Petre
+// http://interface.eyecon.ro/
+
+var colors = {
+ aqua:[0,255,255],
+ azure:[240,255,255],
+ beige:[245,245,220],
+ black:[0,0,0],
+ blue:[0,0,255],
+ brown:[165,42,42],
+ cyan:[0,255,255],
+ darkblue:[0,0,139],
+ darkcyan:[0,139,139],
+ darkgrey:[169,169,169],
+ darkgreen:[0,100,0],
+ darkkhaki:[189,183,107],
+ darkmagenta:[139,0,139],
+ darkolivegreen:[85,107,47],
+ darkorange:[255,140,0],
+ darkorchid:[153,50,204],
+ darkred:[139,0,0],
+ darksalmon:[233,150,122],
+ darkviolet:[148,0,211],
+ fuchsia:[255,0,255],
+ gold:[255,215,0],
+ green:[0,128,0],
+ indigo:[75,0,130],
+ khaki:[240,230,140],
+ lightblue:[173,216,230],
+ lightcyan:[224,255,255],
+ lightgreen:[144,238,144],
+ lightgrey:[211,211,211],
+ lightpink:[255,182,193],
+ lightyellow:[255,255,224],
+ lime:[0,255,0],
+ magenta:[255,0,255],
+ maroon:[128,0,0],
+ navy:[0,0,128],
+ olive:[128,128,0],
+ orange:[255,165,0],
+ pink:[255,192,203],
+ purple:[128,0,128],
+ violet:[128,0,128],
+ red:[255,0,0],
+ silver:[192,192,192],
+ white:[255,255,255],
+ yellow:[255,255,0],
+ transparent: [255,255,255]
+};
+
+/*
+ * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
+ *
+ * Uses the built in easing capabilities added In jQuery 1.1
+ * to offer multiple easing options
+ *
+ * TERMS OF USE - jQuery Easing
+ *
+ * Open source under the BSD License.
+ *
+ * Copyright © 2008 George McGinley Smith
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this list of
+ * conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list
+ * of conditions and the following disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * Neither the name of the author nor the names of contributors may be used to endorse
+ * or promote products derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+*/
+
+// t: current time, b: begInnIng value, c: change In value, d: duration
+jQuery.easing['jswing'] = jQuery.easing['swing'];
+
+jQuery.extend( jQuery.easing,
+{
+ def: 'easeOutQuad',
+ swing: function (x, t, b, c, d) {
+ //alert(jQuery.easing.default);
+ return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
+ },
+ easeInQuad: function (x, t, b, c, d) {
+ return c*(t/=d)*t + b;
+ },
+ easeOutQuad: function (x, t, b, c, d) {
+ return -c *(t/=d)*(t-2) + b;
+ },
+ easeInOutQuad: function (x, t, b, c, d) {
+ if ((t/=d/2) < 1) return c/2*t*t + b;
+ return -c/2 * ((--t)*(t-2) - 1) + b;
+ },
+ easeInCubic: function (x, t, b, c, d) {
+ return c*(t/=d)*t*t + b;
+ },
+ easeOutCubic: function (x, t, b, c, d) {
+ return c*((t=t/d-1)*t*t + 1) + b;
+ },
+ easeInOutCubic: function (x, t, b, c, d) {
+ if ((t/=d/2) < 1) return c/2*t*t*t + b;
+ return c/2*((t-=2)*t*t + 2) + b;
+ },
+ easeInQuart: function (x, t, b, c, d) {
+ return c*(t/=d)*t*t*t + b;
+ },
+ easeOutQuart: function (x, t, b, c, d) {
+ return -c * ((t=t/d-1)*t*t*t - 1) + b;
+ },
+ easeInOutQuart: function (x, t, b, c, d) {
+ if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
+ return -c/2 * ((t-=2)*t*t*t - 2) + b;
+ },
+ easeInQuint: function (x, t, b, c, d) {
+ return c*(t/=d)*t*t*t*t + b;
+ },
+ easeOutQuint: function (x, t, b, c, d) {
+ return c*((t=t/d-1)*t*t*t*t + 1) + b;
+ },
+ easeInOutQuint: function (x, t, b, c, d) {
+ if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
+ return c/2*((t-=2)*t*t*t*t + 2) + b;
+ },
+ easeInSine: function (x, t, b, c, d) {
+ return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
+ },
+ easeOutSine: function (x, t, b, c, d) {
+ return c * Math.sin(t/d * (Math.PI/2)) + b;
+ },
+ easeInOutSine: function (x, t, b, c, d) {
+ return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
+ },
+ easeInExpo: function (x, t, b, c, d) {
+ return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
+ },
+ easeOutExpo: function (x, t, b, c, d) {
+ return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
+ },
+ easeInOutExpo: function (x, t, b, c, d) {
+ if (t==0) return b;
+ if (t==d) return b+c;
+ if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
+ return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
+ },
+ easeInCirc: function (x, t, b, c, d) {
+ return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
+ },
+ easeOutCirc: function (x, t, b, c, d) {
+ return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
+ },
+ easeInOutCirc: function (x, t, b, c, d) {
+ if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
+ return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
+ },
+ easeInElastic: function (x, t, b, c, d) {
+ var s=1.70158;var p=0;var a=c;
+ if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
+ return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
+ },
+ easeOutElastic: function (x, t, b, c, d) {
+ var s=1.70158;var p=0;var a=c;
+ if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
+ return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
+ },
+ easeInOutElastic: function (x, t, b, c, d) {
+ var s=1.70158;var p=0;var a=c;
+ if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
+ if (a < Math.abs(c)) { a=c; var s=p/4; }
+ else var s = p/(2*Math.PI) * Math.asin (c/a);
+ if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
+ return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
+ },
+ easeInBack: function (x, t, b, c, d, s) {
+ if (s == undefined) s = 1.70158;
+ return c*(t/=d)*t*((s+1)*t - s) + b;
+ },
+ easeOutBack: function (x, t, b, c, d, s) {
+ if (s == undefined) s = 1.70158;
+ return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
+ },
+ easeInOutBack: function (x, t, b, c, d, s) {
+ if (s == undefined) s = 1.70158;
+ if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
+ return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
+ },
+ easeInBounce: function (x, t, b, c, d) {
+ return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
+ },
+ easeOutBounce: function (x, t, b, c, d) {
+ if ((t/=d) < (1/2.75)) {
+ return c*(7.5625*t*t) + b;
+ } else if (t < (2/2.75)) {
+ return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
+ } else if (t < (2.5/2.75)) {
+ return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
+ } else {
+ return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
+ }
+ },
+ easeInOutBounce: function (x, t, b, c, d) {
+ if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
+ return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
+ }
+});
+
+/*
+ *
+ * TERMS OF USE - EASING EQUATIONS
+ *
+ * Open source under the BSD License.
+ *
+ * Copyright © 2001 Robert Penner
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * Redistributions of source code must retain the above copyright notice, this list of
+ * conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright notice, this list
+ * of conditions and the following disclaimer in the documentation and/or other materials
+ * provided with the distribution.
+ *
+ * Neither the name of the author nor the names of contributors may be used to endorse
+ * or promote products derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+
+})(jQuery);
+/*
+ * jQuery UI Effects Blind
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Blind
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.blind = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+ var direction = o.options.direction || 'vertical'; // Default direction
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+ var ref = (direction == 'vertical') ? 'height' : 'width';
+ var distance = (direction == 'vertical') ? wrapper.height() : wrapper.width();
+ if(mode == 'show') wrapper.css(ref, 0); // Shift
+
+ // Animation
+ var animation = {};
+ animation[ref] = mode == 'show' ? distance : 0;
+
+ // Animate
+ wrapper.animate(animation, o.duration, o.options.easing, function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(el[0], arguments); // Callback
+ el.dequeue();
+ });
+
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Bounce
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Bounce
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.bounce = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+ var direction = o.options.direction || 'up'; // Default direction
+ var distance = o.options.distance || 20; // Default distance
+ var times = o.options.times || 5; // Default # of times
+ var speed = o.duration || 250; // Default speed per bounce
+ if (/show|hide/.test(mode)) props.push('opacity'); // Avoid touching opacity to prevent clearType and PNG issues in IE
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ $.effects.createWrapper(el); // Create Wrapper
+ var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+ var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+ var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 3 : el.outerWidth({margin:true}) / 3);
+ if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
+ if (mode == 'hide') distance = distance / (times * 2);
+ if (mode != 'hide') times--;
+
+ // Animate
+ if (mode == 'show') { // Show Bounce
+ var animation = {opacity: 1};
+ animation[ref] = (motion == 'pos' ? '+=' : '-=') + distance;
+ el.animate(animation, speed / 2, o.options.easing);
+ distance = distance / 2;
+ times--;
+ };
+ for (var i = 0; i < times; i++) { // Bounces
+ var animation1 = {}, animation2 = {};
+ animation1[ref] = (motion == 'pos' ? '-=' : '+=') + distance;
+ animation2[ref] = (motion == 'pos' ? '+=' : '-=') + distance;
+ el.animate(animation1, speed / 2, o.options.easing).animate(animation2, speed / 2, o.options.easing);
+ distance = (mode == 'hide') ? distance * 2 : distance / 2;
+ };
+ if (mode == 'hide') { // Last Bounce
+ var animation = {opacity: 0};
+ animation[ref] = (motion == 'pos' ? '-=' : '+=') + distance;
+ el.animate(animation, speed / 2, o.options.easing, function(){
+ el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ });
+ } else {
+ var animation1 = {}, animation2 = {};
+ animation1[ref] = (motion == 'pos' ? '-=' : '+=') + distance;
+ animation2[ref] = (motion == 'pos' ? '+=' : '-=') + distance;
+ el.animate(animation1, speed / 2, o.options.easing).animate(animation2, speed / 2, o.options.easing, function(){
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ });
+ };
+ el.queue('fx', function() { el.dequeue(); });
+ el.dequeue();
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Clip
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Clip
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.clip = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left','width','height'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+ var direction = o.options.direction || 'vertical'; // Default direction
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+ var ref = {
+ size: (direction == 'vertical') ? 'height' : 'width',
+ position: (direction == 'vertical') ? 'top' : 'left'
+ };
+ var distance = (direction == 'vertical') ? el.height() : el.width();
+ if(mode == 'show') { el.css(ref.size, 0); el.css(ref.position, distance / 2); } // Shift
+
+ // Animation
+ var animation = {};
+ animation[ref.size] = mode == 'show' ? distance : 0;
+ animation[ref.position] = mode == 'show' ? 0 : distance / 2;
+
+ // Animate
+ el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ el.dequeue();
+ }});
+
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Drop
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Drop
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.drop = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left','opacity'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+ var direction = o.options.direction || 'left'; // Default Direction
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ $.effects.createWrapper(el); // Create Wrapper
+ var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+ var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+ var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) / 2 : el.outerWidth({margin:true}) / 2);
+ if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
+
+ // Animation
+ var animation = {opacity: mode == 'show' ? 1 : 0};
+ animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance;
+
+ // Animate
+ el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ el.dequeue();
+ }});
+
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Explode
+ *
+ * Copyright (c) 2008 Paul Bakaus (ui.jquery.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Explode
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.explode = function(o) {
+
+ return this.queue(function() {
+
+ var rows = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
+ var cells = o.options.pieces ? Math.round(Math.sqrt(o.options.pieces)) : 3;
+
+ o.options.mode = o.options.mode == 'toggle' ? ($(this).is(':visible') ? 'hide' : 'show') : o.options.mode;
+ var el = $(this).show().css('visibility', 'hidden');
+ var offset = el.offset();
+
+ //Substract the margins - not fixing the problem yet.
+ offset.top -= parseInt(el.css("marginTop")) || 0;
+ offset.left -= parseInt(el.css("marginLeft")) || 0;
+
+ var width = el.outerWidth(true);
+ var height = el.outerHeight(true);
+
+ for(var i=0;i<rows;i++) { // =
+ for(var j=0;j<cells;j++) { // ||
+ el
+ .clone()
+ .appendTo('body')
+ .wrap('<div></div>')
+ .css({
+ position: 'absolute',
+ visibility: 'visible',
+ left: -j*(width/cells),
+ top: -i*(height/rows)
+ })
+ .parent()
+ .addClass('effects-explode')
+ .css({
+ position: 'absolute',
+ overflow: 'hidden',
+ width: width/cells,
+ height: height/rows,
+ left: offset.left + j*(width/cells) + (o.options.mode == 'show' ? (j-Math.floor(cells/2))*(width/cells) : 0),
+ top: offset.top + i*(height/rows) + (o.options.mode == 'show' ? (i-Math.floor(rows/2))*(height/rows) : 0),
+ opacity: o.options.mode == 'show' ? 0 : 1
+ }).animate({
+ left: offset.left + j*(width/cells) + (o.options.mode == 'show' ? 0 : (j-Math.floor(cells/2))*(width/cells)),
+ top: offset.top + i*(height/rows) + (o.options.mode == 'show' ? 0 : (i-Math.floor(rows/2))*(height/rows)),
+ opacity: o.options.mode == 'show' ? 1 : 0
+ }, o.duration || 500);
+ }
+ }
+
+ // Set a timeout, to call the callback approx. when the other animations have finished
+ setTimeout(function() {
+
+ o.options.mode == 'show' ? el.css({ visibility: 'visible' }) : el.css({ visibility: 'visible' }).hide();
+ if(o.callback) o.callback.apply(el[0]); // Callback
+ el.dequeue();
+
+ $('.effects-explode').remove();
+
+ }, o.duration || 500);
+
+
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Fold
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Fold
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.fold = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+ var size = o.options.size || 15; // Default fold size
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ var wrapper = $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+ var ref = (mode == 'show') ? ['width', 'height'] : ['height', 'width'];
+ var distance = (mode == 'show') ? [wrapper.width(), wrapper.height()] : [wrapper.height(), wrapper.width()];
+ if(mode == 'show') wrapper.css({height: size, width: 0}); // Shift
+
+ // Animation
+ var animation1 = {}, animation2 = {};
+ animation1[ref[0]] = mode == 'show' ? distance[0] : size;
+ animation2[ref[1]] = mode == 'show' ? distance[1] : 0;
+
+ // Animate
+ wrapper.animate(animation1, o.duration / 2, o.options.easing)
+ .animate(animation2, o.duration / 2, o.options.easing, function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(el[0], arguments); // Callback
+ el.dequeue();
+ });
+
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Highlight
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Highlight
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+;(function($) {
+
+$.effects.highlight = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['backgroundImage','backgroundColor','opacity'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
+ var color = o.options.color || "#ffff99"; // Default highlight color
+ var oldColor = el.css("backgroundColor");
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ el.css({backgroundImage: 'none', backgroundColor: color}); // Shift
+
+ // Animation
+ var animation = {backgroundColor: oldColor };
+ if (mode == "hide") animation['opacity'] = 0;
+
+ // Animate
+ el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if(mode == "hide") el.hide();
+ $.effects.restore(el, props);
+ if (mode == "show" && jQuery.browser.msie) this.style.removeAttribute('filter');
+ if(o.callback) o.callback.apply(this, arguments);
+ el.dequeue();
+ }});
+
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Pulsate
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Pulsate
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.pulsate = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this);
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
+ var times = o.options.times || 5; // Default # of times
+
+ // Adjust
+ if (mode == 'hide') times--;
+ if (el.is(':hidden')) { // Show fadeIn
+ el.css('opacity', 0);
+ el.show(); // Show
+ el.animate({opacity: 1}, o.duration / 2, o.options.easing);
+ times = times-2;
+ }
+
+ // Animate
+ for (var i = 0; i < times; i++) { // Pulsate
+ el.animate({opacity: 0}, o.duration / 2, o.options.easing).animate({opacity: 1}, o.duration / 2, o.options.easing);
+ };
+ if (mode == 'hide') { // Last Pulse
+ el.animate({opacity: 0}, o.duration / 2, o.options.easing, function(){
+ el.hide(); // Hide
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ });
+ } else {
+ el.animate({opacity: 0}, o.duration / 2, o.options.easing).animate({opacity: 1}, o.duration / 2, o.options.easing, function(){
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ });
+ };
+ el.queue('fx', function() { el.dequeue(); });
+ el.dequeue();
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Scale
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Scale
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.puff = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this);
+
+ // Set options
+ var options = $.extend(true, {}, o);
+ var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
+ var percent = parseInt(o.options.percent) || 150; // Set default puff percent
+ options.fade = true; // It's not a puff if it doesn't fade! :)
+ var original = {height: el.height(), width: el.width()}; // Save original
+
+ // Adjust
+ var factor = percent / 100;
+ el.from = (mode == 'hide') ? original : {height: original.height * factor, width: original.width * factor};
+
+ // Animation
+ options.from = el.from;
+ options.percent = (mode == 'hide') ? percent : 100;
+ options.mode = mode;
+
+ // Animate
+ el.effect('scale', options, o.duration, o.callback);
+ el.dequeue();
+ });
+
+};
+
+$.effects.scale = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this);
+
+ // Set options
+ var options = $.extend(true, {}, o);
+ var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+ var percent = parseInt(o.options.percent) || (parseInt(o.options.percent) == 0 ? 0 : (mode == 'hide' ? 0 : 100)); // Set default scaling percent
+ var direction = o.options.direction || 'both'; // Set default axis
+ var origin = o.options.origin; // The origin of the scaling
+ if (mode != 'effect') { // Set default origin and restore for show/hide
+ origin = origin || ['middle','center'];
+ options.restore = true;
+ }
+ var original = {height: el.height(), width: el.width()}; // Save original
+ el.from = o.options.from || (mode == 'show' ? {height: 0, width: 0} : original); // Default from state
+
+ // Adjust
+ var factor = { // Set scaling factor
+ y: direction != 'horizontal' ? (percent / 100) : 1,
+ x: direction != 'vertical' ? (percent / 100) : 1
+ };
+ el.to = {height: original.height * factor.y, width: original.width * factor.x}; // Set to state
+ if (origin) { // Calculate baseline shifts
+ var baseline = $.effects.getBaseline(origin, original);
+ el.from.top = (original.height - el.from.height) * baseline.y;
+ el.from.left = (original.width - el.from.width) * baseline.x;
+ el.to.top = (original.height - el.to.height) * baseline.y;
+ el.to.left = (original.width - el.to.width) * baseline.x;
+ };
+ if (o.options.fade) { // Fade option to support puff
+ if (mode == 'show') {el.from.opacity = 0; el.to.opacity = 1;};
+ if (mode == 'hide') {el.from.opacity = 1; el.to.opacity = 0;};
+ };
+
+ // Animation
+ options.from = el.from; options.to = el.to; options.mode = mode;
+
+ // Animate
+ el.effect('size', options, o.duration, o.callback);
+ el.dequeue();
+ });
+
+};
+
+$.effects.size = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left','width','height','overflow','opacity'];
+ var props1 = ['position','overflow','opacity']; // Always restore
+ var props2 = ['width','height','overflow']; // Copy for children
+ var cProps = ['fontSize'];
+ var vProps = ['borderTopWidth', 'borderBottomWidth', 'paddingTop', 'paddingBottom'];
+ var hProps = ['borderLeftWidth', 'borderRightWidth', 'paddingLeft', 'paddingRight'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+ var restore = o.options.restore || false; // Default restore
+ var scale = o.options.scale || 'both'; // Default scale mode
+ var original = {height: el.height(), width: el.width()}; // Save original
+ el.from = o.options.from || original; // Default from state
+ el.to = o.options.to || original; // Default to state
+
+ // Adjust
+ var factor = { // Set scaling factor
+ from: {y: el.from.height / original.height, x: el.from.width / original.width},
+ to: {y: el.to.height / original.height, x: el.to.width / original.width}
+ };
+ if (scale == 'box' || scale == 'both') { // Scale the css box
+ if (factor.from.y != factor.to.y) { // Vertical props scaling
+ props = props.concat(vProps);
+ el.from = $.effects.setTransition(el, vProps, factor.from.y, el.from);
+ el.to = $.effects.setTransition(el, vProps, factor.to.y, el.to);
+ };
+ if (factor.from.x != factor.to.x) { // Horizontal props scaling
+ props = props.concat(hProps);
+ el.from = $.effects.setTransition(el, hProps, factor.from.x, el.from);
+ el.to = $.effects.setTransition(el, hProps, factor.to.x, el.to);
+ };
+ };
+ if (scale == 'content' || scale == 'both') { // Scale the content
+ if (factor.from.y != factor.to.y) { // Vertical props scaling
+ props = props.concat(cProps);
+ el.from = $.effects.setTransition(el, cProps, factor.from.y, el.from);
+ el.to = $.effects.setTransition(el, cProps, factor.to.y, el.to);
+ };
+ };
+ $.effects.save(el, restore ? props : props1); el.show(); // Save & Show
+ $.effects.createWrapper(el); // Create Wrapper
+ el.css('overflow','hidden').css(el.from); // Shift
+
+ // Animate
+ if (scale == 'content' || scale == 'both') { // Scale the children
+ vProps = vProps.concat(['marginTop','marginBottom']).concat(cProps); // Add margins/font-size
+ hProps = hProps.concat(['marginLeft','marginRight']); // Add margins
+ props2 = props.concat(vProps).concat(hProps); // Concat
+ el.find("*[width]").each(function(){
+ child = $(this);
+ if (restore) $.effects.save(child, props2);
+ var c_original = {height: child.height(), width: child.width()}; // Save original
+ child.from = {height: c_original.height * factor.from.y, width: c_original.width * factor.from.x};
+ child.to = {height: c_original.height * factor.to.y, width: c_original.width * factor.to.x};
+ if (factor.from.y != factor.to.y) { // Vertical props scaling
+ child.from = $.effects.setTransition(child, vProps, factor.from.y, child.from);
+ child.to = $.effects.setTransition(child, vProps, factor.to.y, child.to);
+ };
+ if (factor.from.x != factor.to.x) { // Horizontal props scaling
+ child.from = $.effects.setTransition(child, hProps, factor.from.x, child.from);
+ child.to = $.effects.setTransition(child, hProps, factor.to.x, child.to);
+ };
+ child.css(child.from); // Shift children
+ child.animate(child.to, o.duration, o.options.easing, function(){
+ if (restore) $.effects.restore(child, props2); // Restore children
+ }); // Animate children
+ });
+ };
+
+ // Animate
+ el.animate(el.to, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, restore ? props : props1); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ el.dequeue();
+ }});
+
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Shake
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Shake
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.shake = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+ var direction = o.options.direction || 'left'; // Default direction
+ var distance = o.options.distance || 20; // Default distance
+ var times = o.options.times || 3; // Default # of times
+ var speed = o.duration || o.options.duration || 140; // Default speed per shake
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ $.effects.createWrapper(el); // Create Wrapper
+ var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+ var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+
+ // Animation
+ var animation = {}, animation1 = {}, animation2 = {};
+ animation[ref] = (motion == 'pos' ? '-=' : '+=') + distance;
+ animation1[ref] = (motion == 'pos' ? '+=' : '-=') + distance * 2;
+ animation2[ref] = (motion == 'pos' ? '-=' : '+=') + distance * 2;
+
+ // Animate
+ el.animate(animation, speed, o.options.easing);
+ for (var i = 1; i < times; i++) { // Shakes
+ el.animate(animation1, speed, o.options.easing).animate(animation2, speed, o.options.easing);
+ };
+ el.animate(animation1, speed, o.options.easing).
+ animate(animation, speed / 2, o.options.easing, function(){ // Last shake
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ });
+ el.queue('fx', function() { el.dequeue(); });
+ el.dequeue();
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Slide
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Slide
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.slide = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this), props = ['position','top','left'];
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
+ var direction = o.options.direction || 'left'; // Default Direction
+
+ // Adjust
+ $.effects.save(el, props); el.show(); // Save & Show
+ $.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
+ var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
+ var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
+ var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) : el.outerWidth({margin:true}));
+ if (mode == 'show') el.css(ref, motion == 'pos' ? -distance : distance); // Shift
+
+ // Animation
+ var animation = {};
+ animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance;
+
+ // Animate
+ el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
+ if(mode == 'hide') el.hide(); // Hide
+ $.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
+ if(o.callback) o.callback.apply(this, arguments); // Callback
+ el.dequeue();
+ }});
+
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Effects Transfer
+ *
+ * Copyright (c) 2008 Aaron Eisenberger (aaronchi@gmail.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Effects/Transfer
+ *
+ * Depends:
+ * effects.core.js
+ *
+ */
+(function($) {
+
+$.effects.transfer = function(o) {
+
+ return this.queue(function() {
+
+ // Create element
+ var el = $(this);
+
+ // Set options
+ var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
+ var target = $(o.options.to); // Find Target
+ var position = el.offset();
+ var transfer = $('<div class="ui-effects-transfer"></div>').appendTo(document.body);
+ if(o.options.className) transfer.addClass(o.options.className);
+
+ // Set target css
+ transfer.addClass(o.options.className);
+ transfer.css({
+ top: position.top,
+ left: position.left,
+ height: el.outerHeight(true) - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
+ width: el.outerWidth(true) - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth')),
+ position: 'absolute'
+ });
+
+ // Animation
+ position = target.offset();
+ animation = {
+ top: position.top,
+ left: position.left,
+ height: target.outerHeight() - parseInt(transfer.css('borderTopWidth')) - parseInt(transfer.css('borderBottomWidth')),
+ width: target.outerWidth() - parseInt(transfer.css('borderLeftWidth')) - parseInt(transfer.css('borderRightWidth'))
+ };
+
+ // Animate
+ transfer.animate(animation, o.duration, o.options.easing, function() {
+ transfer.remove(); // Remove div
+ if(o.callback) o.callback.apply(el[0], arguments); // Callback
+ el.dequeue();
+ });
+
+ });
+
+};
+
+})(jQuery);
+/*
+ * jQuery UI Accordion
+ *
+ * Copyright (c) 2007, 2008 Jörn Zaefferer
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Accordion
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.widget("ui.accordion", {
+ init: function() {
+ var options = this.options;
+
+ if ( options.navigation ) {
+ var current = this.element.find("a").filter(options.navigationFilter);
+ if ( current.length ) {
+ if ( current.filter(options.header).length ) {
+ options.active = current;
+ } else {
+ options.active = current.parent().parent().prev();
+ current.addClass("current");
+ }
+ }
+ }
+
+ // calculate active if not specified, using the first header
+ options.headers = this.element.find(options.header);
+ options.active = findActive(options.headers, options.active);
+
+ // IE7-/Win - Extra vertical space in Lists fixed
+ if ($.browser.msie) {
+ this.element.find('a').css('zoom', '1');
+ }
+
+ if (!this.element.hasClass("ui-accordion")) {
+ this.element.addClass("ui-accordion");
+ $("<span class='ui-accordion-left'/>").insertBefore(options.headers);
+ $("<span class='ui-accordion-right'/>").appendTo(options.headers);
+ options.headers.addClass("ui-accordion-header").attr("tabindex", "0");
+ }
+
+ var maxHeight;
+ if ( options.fillSpace ) {
+ maxHeight = this.element.parent().height();
+ options.headers.each(function() {
+ maxHeight -= $(this).outerHeight();
+ });
+ var maxPadding = 0;
+ options.headers.next().each(function() {
+ maxPadding = Math.max(maxPadding, $(this).innerHeight() - $(this).height());
+ }).height(maxHeight - maxPadding);
+ } else if ( options.autoHeight ) {
+ maxHeight = 0;
+ options.headers.next().each(function() {
+ maxHeight = Math.max(maxHeight, $(this).outerHeight());
+ }).height(maxHeight);
+ }
+
+ options.headers
+ .not(options.active || "")
+ .next()
+ .hide();
+ options.active.parent().andSelf().addClass(options.selectedClass);
+
+ if (options.event) {
+ this.element.bind((options.event) + ".accordion", clickHandler);
+ }
+ },
+ activate: function(index) {
+ // call clickHandler with custom event
+ clickHandler.call(this.element[0], {
+ target: findActive( this.options.headers, index )[0]
+ });
+ },
+ destroy: function() {
+ this.options.headers.next().css("display", "");
+ if ( this.options.fillSpace || this.options.autoHeight ) {
+ this.options.headers.next().css("height", "");
+ }
+ $.removeData(this.element[0], "accordion");
+ this.element.removeClass("ui-accordion").unbind(".accordion");
+ }
+});
+
+function scopeCallback(callback, scope) {
+ return function() {
+ return callback.apply(scope, arguments);
+ };
+};
+
+function completed(cancel) {
+ // if removed while animated data can be empty
+ if (!$.data(this, "accordion")) {
+ return;
+ }
+
+ var instance = $.data(this, "accordion");
+ var options = instance.options;
+ options.running = cancel ? 0 : --options.running;
+ if ( options.running ) {
+ return;
+ }
+ if ( options.clearStyle ) {
+ options.toShow.add(options.toHide).css({
+ height: "",
+ overflow: ""
+ });
+ }
+ $(this).triggerHandler("accordionchange", [options.data], options.change);
+}
+
+function toggle(toShow, toHide, data, clickedActive, down) {
+ var options = $.data(this, "accordion").options;
+ options.toShow = toShow;
+ options.toHide = toHide;
+ options.data = data;
+ var complete = scopeCallback(completed, this);
+
+ // count elements to animate
+ options.running = toHide.size() === 0 ? toShow.size() : toHide.size();
+
+ if ( options.animated ) {
+ if ( !options.alwaysOpen && clickedActive ) {
+ $.ui.accordion.animations[options.animated]({
+ toShow: jQuery([]),
+ toHide: toHide,
+ complete: complete,
+ down: down,
+ autoHeight: options.autoHeight
+ });
+ } else {
+ $.ui.accordion.animations[options.animated]({
+ toShow: toShow,
+ toHide: toHide,
+ complete: complete,
+ down: down,
+ autoHeight: options.autoHeight
+ });
+ }
+ } else {
+ if ( !options.alwaysOpen && clickedActive ) {
+ toShow.toggle();
+ } else {
+ toHide.hide();
+ toShow.show();
+ }
+ complete(true);
+ }
+}
+
+function clickHandler(event) {
+ var options = $.data(this, "accordion").options;
+ if (options.disabled) {
+ return false;
+ }
+
+ // called only when using activate(false) to close all parts programmatically
+ if ( !event.target && !options.alwaysOpen ) {
+ options.active.parent().andSelf().toggleClass(options.selectedClass);
+ var toHide = options.active.next(),
+ data = {
+ options: options,
+ newHeader: jQuery([]),
+ oldHeader: options.active,
+ newContent: jQuery([]),
+ oldContent: toHide
+ },
+ toShow = (options.active = $([]));
+ toggle.call(this, toShow, toHide, data );
+ return false;
+ }
+ // get the click target
+ var clicked = $(event.target);
+
+ // due to the event delegation model, we have to check if one
+ // of the parent elements is our actual header, and find that
+ if ( clicked.parents(options.header).length ) {
+ while ( !clicked.is(options.header) ) {
+ clicked = clicked.parent();
+ }
+ }
+
+ var clickedActive = clicked[0] == options.active[0];
+
+ // if animations are still active, or the active header is the target, ignore click
+ if (options.running || (options.alwaysOpen && clickedActive)) {
+ return false;
+ }
+ if (!clicked.is(options.header)) {
+ return;
+ }
+
+ // switch classes
+ options.active.parent().andSelf().toggleClass(options.selectedClass);
+ if ( !clickedActive ) {
+ clicked.parent().andSelf().addClass(options.selectedClass);
+ }
+
+ // find elements to show and hide
+ var toShow = clicked.next(),
+ toHide = options.active.next(),
+ //data = [clicked, options.active, toShow, toHide],
+ data = {
+ options: options,
+ newHeader: clicked,
+ oldHeader: options.active,
+ newContent: toShow,
+ oldContent: toHide
+ },
+ down = options.headers.index( options.active[0] ) > options.headers.index( clicked[0] );
+
+ options.active = clickedActive ? $([]) : clicked;
+ toggle.call(this, toShow, toHide, data, clickedActive, down );
+
+ return false;
+};
+
+function findActive(headers, selector) {
+ return selector != undefined
+ ? typeof selector == "number"
+ ? headers.filter(":eq(" + selector + ")")
+ : headers.not(headers.not(selector))
+ : selector === false
+ ? $([])
+ : headers.filter(":eq(0)");
+}
+
+$.extend($.ui.accordion, {
+ defaults: {
+ selectedClass: "selected",
+ alwaysOpen: true,
+ animated: 'slide',
+ event: "click",
+ header: "a",
+ autoHeight: true,
+ running: 0,
+ navigationFilter: function() {
+ return this.href.toLowerCase() == location.href.toLowerCase();
+ }
+ },
+ animations: {
+ slide: function(options, additions) {
+ options = $.extend({
+ easing: "swing",
+ duration: 300
+ }, options, additions);
+ if ( !options.toHide.size() ) {
+ options.toShow.animate({height: "show"}, options);
+ return;
+ }
+ var hideHeight = options.toHide.height(),
+ showHeight = options.toShow.height(),
+ difference = showHeight / hideHeight;
+ options.toShow.css({ height: 0, overflow: 'hidden' }).show();
+ options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate({height:"hide"},{
+ step: function(now) {
+ var current = (hideHeight - now) * difference;
+ if ($.browser.msie || $.browser.opera) {
+ current = Math.ceil(current);
+ }
+ options.toShow.height( current );
+ },
+ duration: options.duration,
+ easing: options.easing,
+ complete: function() {
+ if ( !options.autoHeight ) {
+ options.toShow.css("height", "auto");
+ }
+ options.complete();
+ }
+ });
+ },
+ bounceslide: function(options) {
+ this.slide(options, {
+ easing: options.down ? "bounceout" : "swing",
+ duration: options.down ? 1000 : 200
+ });
+ },
+ easeslide: function(options) {
+ this.slide(options, {
+ easing: "easeinout",
+ duration: 700
+ });
+ }
+ }
+});
+
+// deprecated, use accordion("activate", index) instead
+$.fn.activate = function(index) {
+ return this.accordion("activate", index);
+};
+
+})(jQuery);
+/*
+ * jQuery UI Datepicker
+ *
+ * Copyright (c) 2006, 2007, 2008 Marc Grabanski
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Datepicker
+ *
+ * Depends:
+ * ui.core.js
+ *
+ * Marc Grabanski (m@marcgrabanski.com) and Keith Wood (kbwood@virginbroadband.com.au).
+ */
+
+(function($) { // hide the namespace
+
+/* Date picker manager.
+ Use the singleton instance of this class, $.datepicker, to interact with the date picker.
+ Settings for (groups of) date pickers are maintained in an instance object
+ (DatepickerInstance), allowing multiple different settings on the same page. */
+
+function Datepicker() {
+ this.debug = false; // Change this to true to start debugging
+ this._nextId = 0; // Next ID for a date picker instance
+ this._inst = []; // List of instances indexed by ID
+ this._curInst = null; // The current instance in use
+ this._disabledInputs = []; // List of date picker inputs that have been disabled
+ this._datepickerShowing = false; // True if the popup picker is showing , false if not
+ this._inDialog = false; // True if showing within a "dialog", false if not
+ this.regional = []; // Available regional settings, indexed by language code
+ this.regional[''] = { // Default regional settings
+ clearText: 'Clear', // Display text for clear link
+ clearStatus: 'Erase the current date', // Status text for clear link
+ closeText: 'Close', // Display text for close link
+ closeStatus: 'Close without change', // Status text for close link
+ prevText: '&#x3c;Prev', // Display text for previous month link
+ prevStatus: 'Show the previous month', // Status text for previous month link
+ nextText: 'Next&#x3e;', // Display text for next month link
+ nextStatus: 'Show the next month', // Status text for next month link
+ currentText: 'Today', // Display text for current month link
+ currentStatus: 'Show the current month', // Status text for current month link
+ monthNames: ['January','February','March','April','May','June',
+ 'July','August','September','October','November','December'], // Names of months for drop-down and formatting
+ monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], // For formatting
+ monthStatus: 'Show a different month', // Status text for selecting a month
+ yearStatus: 'Show a different year', // Status text for selecting a year
+ weekHeader: 'Wk', // Header for the week of the year column
+ weekStatus: 'Week of the year', // Status text for the week of the year column
+ dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], // For formatting
+ dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // For formatting
+ dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], // Column headings for days starting at Sunday
+ dayStatus: 'Set DD as first week day', // Status text for the day of the week selection
+ dateStatus: 'Select DD, M d', // Status text for the date selection
+ dateFormat: 'mm/dd/yy', // See format options on parseDate
+ firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
+ initStatus: 'Select a date', // Initial Status text on opening
+ isRTL: false // True if right-to-left language, false if left-to-right
+ };
+ this._defaults = { // Global defaults for all the date picker instances
+ showOn: 'focus', // 'focus' for popup on focus,
+ // 'button' for trigger button, or 'both' for either
+ showAnim: 'show', // Name of jQuery animation for popup
+ defaultDate: null, // Used when field is blank: actual date,
+ // +/-number for offset from today, null for today
+ appendText: '', // Display text following the input box, e.g. showing the format
+ buttonText: '...', // Text for trigger button
+ buttonImage: '', // URL for trigger button image
+ buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
+ closeAtTop: true, // True to have the clear/close at the top,
+ // false to have them at the bottom
+ mandatory: false, // True to hide the Clear link, false to include it
+ hideIfNoPrevNext: false, // True to hide next/previous month links
+ // if not applicable, false to just disable them
+ changeMonth: true, // True if month can be selected directly, false if only prev/next
+ changeYear: true, // True if year can be selected directly, false if only prev/next
+ yearRange: '-10:+10', // Range of years to display in drop-down,
+ // either relative to current year (-nn:+nn) or absolute (nnnn:nnnn)
+ changeFirstDay: true, // True to click on day name to change, false to remain as set
+ showOtherMonths: false, // True to show dates in other months, false to leave blank
+ showWeeks: false, // True to show week of the year, false to omit
+ calculateWeek: this.iso8601Week, // How to calculate the week of the year,
+ // takes a Date and returns the number of the week for it
+ shortYearCutoff: '+10', // Short year values < this are in the current century,
+ // > this are in the previous century,
+ // string value starting with '+' for current year + value
+ showStatus: false, // True to show status bar at bottom, false to not show it
+ statusForDate: this.dateStatus, // Function to provide status text for a date -
+ // takes date and instance as parameters, returns display text
+ minDate: null, // The earliest selectable date, or null for no limit
+ maxDate: null, // The latest selectable date, or null for no limit
+ speed: 'normal', // Speed of display/closure
+ beforeShowDay: null, // Function that takes a date and returns an array with
+ // [0] = true if selectable, false if not,
+ // [1] = custom CSS class name(s) or '', e.g. $.datepicker.noWeekends
+ beforeShow: null, // Function that takes an input field and
+ // returns a set of custom settings for the date picker
+ onSelect: null, // Define a callback function when a date is selected
+ onClose: null, // Define a callback function when the datepicker is closed
+ numberOfMonths: 1, // Number of months to show at a time
+ stepMonths: 1, // Number of months to step back/forward
+ rangeSelect: false, // Allows for selecting a date range on one date picker
+ rangeSeparator: ' - ' // Text between two dates in a range
+ };
+ $.extend(this._defaults, this.regional['']);
+ this._datepickerDiv = $('<div id="ui-datepicker-div"></div>');
+}
+
+$.extend(Datepicker.prototype, {
+ /* Class name added to elements to indicate already configured with a date picker. */
+ markerClassName: 'hasDatepicker',
+
+ /* Debug logging (if enabled). */
+ log: function () {
+ if (this.debug)
+ console.log.apply('', arguments);
+ },
+
+ /* Register a new date picker instance - with custom settings. */
+ _register: function(inst) {
+ var id = this._nextId++;
+ this._inst[id] = inst;
+ return id;
+ },
+
+ /* Retrieve a particular date picker instance based on its ID. */
+ _getInst: function(id) {
+ return this._inst[id] || id;
+ },
+
+ /* Override the default settings for all instances of the date picker.
+ @param settings object - the new settings to use as defaults (anonymous object)
+ @return the manager object */
+ setDefaults: function(settings) {
+ extendRemove(this._defaults, settings || {});
+ return this;
+ },
+
+ /* Attach the date picker to a jQuery selection.
+ @param target element - the target input field or division or span
+ @param settings object - the new settings to use for this date picker instance (anonymous) */
+ _attachDatepicker: function(target, settings) {
+ // check for settings on the control itself - in namespace 'date:'
+ var inlineSettings = null;
+ for (attrName in this._defaults) {
+ var attrValue = target.getAttribute('date:' + attrName);
+ if (attrValue) {
+ inlineSettings = inlineSettings || {};
+ try {
+ inlineSettings[attrName] = eval(attrValue);
+ } catch (err) {
+ inlineSettings[attrName] = attrValue;
+ }
+ }
+ }
+ var nodeName = target.nodeName.toLowerCase();
+ var instSettings = (inlineSettings ?
+ $.extend(settings || {}, inlineSettings || {}) : settings);
+ if (nodeName == 'input') {
+ var inst = (inst && !inlineSettings ? inst :
+ new DatepickerInstance(instSettings, false));
+ this._connectDatepicker(target, inst);
+ } else if (nodeName == 'div' || nodeName == 'span') {
+ var inst = new DatepickerInstance(instSettings, true);
+ this._inlineDatepicker(target, inst);
+ }
+ },
+
+ /* Detach a datepicker from its control.
+ @param target element - the target input field or division or span */
+ _destroyDatepicker: function(target) {
+ var nodeName = target.nodeName.toLowerCase();
+ var calId = target._calId;
+ target._calId = null;
+ var $target = $(target);
+ if (nodeName == 'input') {
+ $target.siblings('.ui-datepicker-append').replaceWith('').end()
+ .siblings('.ui-datepicker-trigger').replaceWith('').end()
+ .removeClass(this.markerClassName)
+ .unbind('focus', this._showDatepicker)
+ .unbind('keydown', this._doKeyDown)
+ .unbind('keypress', this._doKeyPress);
+ var wrapper = $target.parents('.ui-datepicker-wrap');
+ if (wrapper)
+ wrapper.replaceWith(wrapper.html());
+ } else if (nodeName == 'div' || nodeName == 'span')
+ $target.removeClass(this.markerClassName).empty();
+ if ($('input[_calId=' + calId + ']').length == 0)
+ // clean up if last for this ID
+ this._inst[calId] = null;
+ },
+
+ /* Enable the date picker to a jQuery selection.
+ @param target element - the target input field or division or span */
+ _enableDatepicker: function(target) {
+ target.disabled = false;
+ $(target).siblings('button.ui-datepicker-trigger').each(function() { this.disabled = false; }).end()
+ .siblings('img.ui-datepicker-trigger').css({opacity: '1.0', cursor: ''});
+ this._disabledInputs = $.map(this._disabledInputs,
+ function(value) { return (value == target ? null : value); }); // delete entry
+ },
+
+ /* Disable the date picker to a jQuery selection.
+ @param target element - the target input field or division or span */
+ _disableDatepicker: function(target) {
+ target.disabled = true;
+ $(target).siblings('button.ui-datepicker-trigger').each(function() { this.disabled = true; }).end()
+ .siblings('img.ui-datepicker-trigger').css({opacity: '0.5', cursor: 'default'});
+ this._disabledInputs = $.map($.datepicker._disabledInputs,
+ function(value) { return (value == target ? null : value); }); // delete entry
+ this._disabledInputs[$.datepicker._disabledInputs.length] = target;
+ },
+
+ /* Is the first field in a jQuery collection disabled as a datepicker?
+ @param target element - the target input field or division or span
+ @return boolean - true if disabled, false if enabled */
+ _isDisabledDatepicker: function(target) {
+ if (!target)
+ return false;
+ for (var i = 0; i < this._disabledInputs.length; i++) {
+ if (this._disabledInputs[i] == target)
+ return true;
+ }
+ return false;
+ },
+
+ /* Update the settings for a date picker attached to an input field or division.
+ @param target element - the target input field or division or span
+ @param name string - the name of the setting to change or
+ object - the new settings to update
+ @param value any - the new value for the setting (omit if above is an object) */
+ _changeDatepicker: function(target, name, value) {
+ var settings = name || {};
+ if (typeof name == 'string') {
+ settings = {};
+ settings[name] = value;
+ }
+ if (inst = this._getInst(target._calId)) {
+ extendRemove(inst._settings, settings);
+ this._updateDatepicker(inst);
+ }
+ },
+
+ /* Set the dates for a jQuery selection.
+ @param target element - the target input field or division or span
+ @param date Date - the new date
+ @param endDate Date - the new end date for a range (optional) */
+ _setDateDatepicker: function(target, date, endDate) {
+ if (inst = this._getInst(target._calId)) {
+ inst._setDate(date, endDate);
+ this._updateDatepicker(inst);
+ }
+ },
+
+ /* Get the date(s) for the first entry in a jQuery selection.
+ @param target element - the target input field or division or span
+ @return Date - the current date or
+ Date[2] - the current dates for a range */
+ _getDateDatepicker: function(target) {
+ var inst = this._getInst(target._calId);
+ if (inst) {
+ inst._setDateFromField($(target));
+ }
+ return (inst ? inst._getDate() : null);
+ },
+
+ /* Handle keystrokes. */
+ _doKeyDown: function(e) {
+ var inst = $.datepicker._getInst(this._calId);
+ if ($.datepicker._datepickerShowing)
+ switch (e.keyCode) {
+ case 9: $.datepicker._hideDatepicker(null, '');
+ break; // hide on tab out
+ case 13: $.datepicker._selectDay(inst, inst._selectedMonth, inst._selectedYear,
+ $('td.ui-datepicker-days-cell-over', inst._datepickerDiv)[0]);
+ return false; // don't submit the form
+ break; // select the value on enter
+ case 27: $.datepicker._hideDatepicker(null, inst._get('speed'));
+ break; // hide on escape
+ case 33: $.datepicker._adjustDate(inst,
+ (e.ctrlKey ? -1 : -inst._get('stepMonths')), (e.ctrlKey ? 'Y' : 'M'));
+ break; // previous month/year on page up/+ ctrl
+ case 34: $.datepicker._adjustDate(inst,
+ (e.ctrlKey ? +1 : +inst._get('stepMonths')), (e.ctrlKey ? 'Y' : 'M'));
+ break; // next month/year on page down/+ ctrl
+ case 35: if (e.ctrlKey) $.datepicker._clearDate(inst);
+ break; // clear on ctrl+end
+ case 36: if (e.ctrlKey) $.datepicker._gotoToday(inst);
+ break; // current on ctrl+home
+ case 37: if (e.ctrlKey) $.datepicker._adjustDate(inst, -1, 'D');
+ break; // -1 day on ctrl+left
+ case 38: if (e.ctrlKey) $.datepicker._adjustDate(inst, -7, 'D');
+ break; // -1 week on ctrl+up
+ case 39: if (e.ctrlKey) $.datepicker._adjustDate(inst, +1, 'D');
+ break; // +1 day on ctrl+right
+ case 40: if (e.ctrlKey) $.datepicker._adjustDate(inst, +7, 'D');
+ break; // +1 week on ctrl+down
+ }
+ else if (e.keyCode == 36 && e.ctrlKey) // display the date picker on ctrl+home
+ $.datepicker._showDatepicker(this);
+ },
+
+ /* Filter entered characters - based on date format. */
+ _doKeyPress: function(e) {
+ var inst = $.datepicker._getInst(this._calId);
+ var chars = $.datepicker._possibleChars(inst._get('dateFormat'));
+ var chr = String.fromCharCode(e.charCode == undefined ? e.keyCode : e.charCode);
+ return e.ctrlKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1);
+ },
+
+ /* Attach the date picker to an input field. */
+ _connectDatepicker: function(target, inst) {
+ var input = $(target);
+ if (input.is('.' + this.markerClassName))
+ return;
+ var appendText = inst._get('appendText');
+ var isRTL = inst._get('isRTL');
+ if (appendText) {
+ if (isRTL)
+ input.before('<span class="ui-datepicker-append">' + appendText);
+ else
+ input.after('<span class="ui-datepicker-append">' + appendText);
+ }
+ var showOn = inst._get('showOn');
+ if (showOn == 'focus' || showOn == 'both') // pop-up date picker when in the marked field
+ input.focus(this._showDatepicker);
+ if (showOn == 'button' || showOn == 'both') { // pop-up date picker when button clicked
+ input.wrap('<span class="ui-datepicker-wrap">');
+ var buttonText = inst._get('buttonText');
+ var buttonImage = inst._get('buttonImage');
+ var trigger = $(inst._get('buttonImageOnly') ?
+ $('<img>').addClass('ui-datepicker-trigger').attr({ src: buttonImage, alt: buttonText, title: buttonText }) :
+ $('<button>').addClass('ui-datepicker-trigger').attr({ type: 'button' }).html(buttonImage != '' ?
+ $('<img>').attr({ src:buttonImage, alt:buttonText, title:buttonText }) : buttonText));
+ if (isRTL)
+ input.before(trigger);
+ else
+ input.after(trigger);
+ trigger.click(function() {
+ if ($.datepicker._datepickerShowing && $.datepicker._lastInput == target)
+ $.datepicker._hideDatepicker();
+ else
+ $.datepicker._showDatepicker(target);
+ });
+ }
+ input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress)
+ .bind("setData.datepicker", function(event, key, value) {
+ inst._settings[key] = value;
+ }).bind("getData.datepicker", function(event, key) {
+ return inst._get(key);
+ });
+ input[0]._calId = inst._id;
+ },
+
+ /* Attach an inline date picker to a div. */
+ _inlineDatepicker: function(target, inst) {
+ var input = $(target);
+ if (input.is('.' + this.markerClassName))
+ return;
+ input.addClass(this.markerClassName).append(inst._datepickerDiv)
+ .bind("setData.datepicker", function(event, key, value){
+ inst._settings[key] = value;
+ }).bind("getData.datepicker", function(event, key){
+ return inst._get(key);
+ });
+ input[0]._calId = inst._id;
+ this._updateDatepicker(inst);
+ },
+
+ /* Tidy up after displaying the date picker. */
+ _inlineShow: function(inst) {
+ var numMonths = inst._getNumberOfMonths(); // fix width for dynamic number of date pickers
+ inst._datepickerDiv.width(numMonths[1] * $('.ui-datepicker', inst._datepickerDiv[0]).width());
+ },
+
+ /* Pop-up the date picker in a "dialog" box.
+ @param input element - ignored
+ @param dateText string - the initial date to display (in the current format)
+ @param onSelect function - the function(dateText) to call when a date is selected
+ @param settings object - update the dialog date picker instance's settings (anonymous object)
+ @param pos int[2] - coordinates for the dialog's position within the screen or
+ event - with x/y coordinates or
+ leave empty for default (screen centre)
+ @return the manager object */
+ _dialogDatepicker: function(input, dateText, onSelect, settings, pos) {
+ var inst = this._dialogInst; // internal instance
+ if (!inst) {
+ inst = this._dialogInst = new DatepickerInstance({}, false);
+ this._dialogInput = $('<input type="text" size="1" style="position: absolute; top: -100px;"/>');
+ this._dialogInput.keydown(this._doKeyDown);
+ $('body').append(this._dialogInput);
+ this._dialogInput[0]._calId = inst._id;
+ }
+ extendRemove(inst._settings, settings || {});
+ this._dialogInput.val(dateText);
+
+ this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);
+ if (!this._pos) {
+ var browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
+ var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
+ var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
+ var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
+ this._pos = // should use actual width/height below
+ [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];
+ }
+
+ // move input on screen for focus, but hidden behind dialog
+ this._dialogInput.css('left', this._pos[0] + 'px').css('top', this._pos[1] + 'px');
+ inst._settings.onSelect = onSelect;
+ this._inDialog = true;
+ this._datepickerDiv.addClass('ui-datepicker-dialog');
+ this._showDatepicker(this._dialogInput[0]);
+ if ($.blockUI)
+ $.blockUI(this._datepickerDiv);
+ return this;
+ },
+
+ /* Pop-up the date picker for a given input field.
+ @param input element - the input field attached to the date picker or
+ event - if triggered by focus */
+ _showDatepicker: function(input) {
+ input = input.target || input;
+ if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
+ input = $('input', input.parentNode)[0];
+ if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here
+ return;
+ var inst = $.datepicker._getInst(input._calId);
+ var beforeShow = inst._get('beforeShow');
+ extendRemove(inst._settings, (beforeShow ? beforeShow.apply(input, [input, inst]) : {}));
+ $.datepicker._hideDatepicker(null, '');
+ $.datepicker._lastInput = input;
+ inst._setDateFromField(input);
+ if ($.datepicker._inDialog) // hide cursor
+ input.value = '';
+ if (!$.datepicker._pos) { // position below input
+ $.datepicker._pos = $.datepicker._findPos(input);
+ $.datepicker._pos[1] += input.offsetHeight; // add the height
+ }
+ var isFixed = false;
+ $(input).parents().each(function() {
+ isFixed |= $(this).css('position') == 'fixed';
+ });
+ if (isFixed && $.browser.opera) { // correction for Opera when fixed and scrolled
+ $.datepicker._pos[0] -= document.documentElement.scrollLeft;
+ $.datepicker._pos[1] -= document.documentElement.scrollTop;
+ }
+ inst._datepickerDiv.css('position', ($.datepicker._inDialog && $.blockUI ?
+ 'static' : (isFixed ? 'fixed' : 'absolute')))
+ .css({ left: $.datepicker._pos[0] + 'px', top: $.datepicker._pos[1] + 'px' });
+ $.datepicker._pos = null;
+ inst._rangeStart = null;
+ $.datepicker._updateDatepicker(inst);
+ if (!inst._inline) {
+ var speed = inst._get('speed');
+ var postProcess = function() {
+ $.datepicker._datepickerShowing = true;
+ $.datepicker._afterShow(inst);
+ };
+ var showAnim = inst._get('showAnim') || 'show';
+ inst._datepickerDiv[showAnim](speed, postProcess);
+ if (speed == '')
+ postProcess();
+ if (inst._input[0].type != 'hidden')
+ inst._input[0].focus();
+ $.datepicker._curInst = inst;
+ }
+ },
+
+ /* Generate the date picker content. */
+ _updateDatepicker: function(inst) {
+ inst._datepickerDiv.empty().append(inst._generateDatepicker());
+ var numMonths = inst._getNumberOfMonths();
+ if (numMonths[0] != 1 || numMonths[1] != 1)
+ inst._datepickerDiv.addClass('ui-datepicker-multi');
+ else
+ inst._datepickerDiv.removeClass('ui-datepicker-multi');
+
+ if (inst._get('isRTL'))
+ inst._datepickerDiv.addClass('ui-datepicker-rtl');
+ else
+ inst._datepickerDiv.removeClass('ui-datepicker-rtl');
+
+ if (inst._input && inst._input[0].type != 'hidden')
+ $(inst._input[0]).focus();
+ },
+
+ /* Tidy up after displaying the date picker. */
+ _afterShow: function(inst) {
+ var numMonths = inst._getNumberOfMonths(); // fix width for dynamic number of date pickers
+ inst._datepickerDiv.width(numMonths[1] * $('.ui-datepicker', inst._datepickerDiv[0])[0].offsetWidth);
+ if ($.browser.msie && parseInt($.browser.version) < 7) { // fix IE < 7 select problems
+ $('iframe.ui-datepicker-cover').css({width: inst._datepickerDiv.width() + 4,
+ height: inst._datepickerDiv.height() + 4});
+ }
+ // re-position on screen if necessary
+ var isFixed = inst._datepickerDiv.css('position') == 'fixed';
+ var pos = inst._input ? $.datepicker._findPos(inst._input[0]) : null;
+ var browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
+ var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
+ var scrollX = (isFixed ? 0 : document.documentElement.scrollLeft || document.body.scrollLeft);
+ var scrollY = (isFixed ? 0 : document.documentElement.scrollTop || document.body.scrollTop);
+ // reposition date picker horizontally if outside the browser window
+ if ((inst._datepickerDiv.offset().left + inst._datepickerDiv.width() -
+ (isFixed && $.browser.msie ? document.documentElement.scrollLeft : 0)) >
+ (browserWidth + scrollX)) {
+ inst._datepickerDiv.css('left', Math.max(scrollX,
+ pos[0] + (inst._input ? $(inst._input[0]).width() : null) - inst._datepickerDiv.width() -
+ (isFixed && $.browser.opera ? document.documentElement.scrollLeft : 0)) + 'px');
+ }
+ // reposition date picker vertically if outside the browser window
+ if ((inst._datepickerDiv.offset().top + inst._datepickerDiv.height() -
+ (isFixed && $.browser.msie ? document.documentElement.scrollTop : 0)) >
+ (browserHeight + scrollY) ) {
+ inst._datepickerDiv.css('top', Math.max(scrollY,
+ pos[1] - (this._inDialog ? 0 : inst._datepickerDiv.height()) -
+ (isFixed && $.browser.opera ? document.documentElement.scrollTop : 0)) + 'px');
+ }
+ },
+
+ /* Find an object's position on the screen. */
+ _findPos: function(obj) {
+ while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) {
+ obj = obj.nextSibling;
+ }
+ var position = $(obj).offset();
+ return [position.left, position.top];
+ },
+
+ /* Hide the date picker from view.
+ @param input element - the input field attached to the date picker
+ @param speed string - the speed at which to close the date picker */
+ _hideDatepicker: function(input, speed) {
+ var inst = this._curInst;
+ if (!inst)
+ return;
+ var rangeSelect = inst._get('rangeSelect');
+ if (rangeSelect && this._stayOpen) {
+ this._selectDate(inst, inst._formatDate(
+ inst._currentDay, inst._currentMonth, inst._currentYear));
+ }
+ this._stayOpen = false;
+ if (this._datepickerShowing) {
+ speed = (speed != null ? speed : inst._get('speed'));
+ var showAnim = inst._get('showAnim');
+ inst._datepickerDiv[(showAnim == 'slideDown' ? 'slideUp' :
+ (showAnim == 'fadeIn' ? 'fadeOut' : 'hide'))](speed, function() {
+ $.datepicker._tidyDialog(inst);
+ });
+ if (speed == '')
+ this._tidyDialog(inst);
+ var onClose = inst._get('onClose');
+ if (onClose) {
+ onClose.apply((inst._input ? inst._input[0] : null),
+ [inst._getDate(), inst]); // trigger custom callback
+ }
+ this._datepickerShowing = false;
+ this._lastInput = null;
+ inst._settings.prompt = null;
+ if (this._inDialog) {
+ this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' });
+ if ($.blockUI) {
+ $.unblockUI();
+ $('body').append(this._datepickerDiv);
+ }
+ }
+ this._inDialog = false;
+ }
+ this._curInst = null;
+ },
+
+ /* Tidy up after a dialog display. */
+ _tidyDialog: function(inst) {
+ inst._datepickerDiv.removeClass('ui-datepicker-dialog').unbind('.ui-datepicker');
+ $('.ui-datepicker-prompt', inst._datepickerDiv).remove();
+ },
+
+ /* Close date picker if clicked elsewhere. */
+ _checkExternalClick: function(event) {
+ if (!$.datepicker._curInst)
+ return;
+ var $target = $(event.target);
+ if (($target.parents("#ui-datepicker-div").length == 0) &&
+ !$target.hasClass('hasDatepicker') &&
+ !$target.hasClass('ui-datepicker-trigger') &&
+ $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI)) {
+ $.datepicker._hideDatepicker(null, '');
+ }
+ },
+
+ /* Adjust one of the date sub-fields. */
+ _adjustDate: function(id, offset, period) {
+ var inst = this._getInst(id);
+ inst._adjustDate(offset, period);
+ this._updateDatepicker(inst);
+ },
+
+ /* Action for current link. */
+ _gotoToday: function(id) {
+ var date = new Date();
+ var inst = this._getInst(id);
+ inst._selectedDay = date.getDate();
+ inst._drawMonth = inst._selectedMonth = date.getMonth();
+ inst._drawYear = inst._selectedYear = date.getFullYear();
+ this._adjustDate(inst);
+ },
+
+ /* Action for selecting a new month/year. */
+ _selectMonthYear: function(id, select, period) {
+ var inst = this._getInst(id);
+ inst._selectingMonthYear = false;
+ inst[period == 'M' ? '_drawMonth' : '_drawYear'] =
+ select.options[select.selectedIndex].value - 0;
+ this._adjustDate(inst);
+ },
+
+ /* Restore input focus after not changing month/year. */
+ _clickMonthYear: function(id) {
+ var inst = this._getInst(id);
+ if (inst._input && inst._selectingMonthYear && !$.browser.msie)
+ inst._input[0].focus();
+ inst._selectingMonthYear = !inst._selectingMonthYear;
+ },
+
+ /* Action for changing the first week day. */
+ _changeFirstDay: function(id, day) {
+ var inst = this._getInst(id);
+ inst._settings.firstDay = day;
+ this._updateDatepicker(inst);
+ },
+
+ /* Action for selecting a day. */
+ _selectDay: function(id, month, year, td) {
+ if ($(td).is('.ui-datepicker-unselectable'))
+ return;
+ var inst = this._getInst(id);
+ var rangeSelect = inst._get('rangeSelect');
+ if (rangeSelect) {
+ if (!this._stayOpen) {
+ $('.ui-datepicker td').removeClass('ui-datepicker-current-day');
+ $(td).addClass('ui-datepicker-current-day');
+ }
+ this._stayOpen = !this._stayOpen;
+ }
+ inst._selectedDay = inst._currentDay = $('a', td).html();
+ inst._selectedMonth = inst._currentMonth = month;
+ inst._selectedYear = inst._currentYear = year;
+ this._selectDate(id, inst._formatDate(
+ inst._currentDay, inst._currentMonth, inst._currentYear));
+ if (this._stayOpen) {
+ inst._endDay = inst._endMonth = inst._endYear = null;
+ inst._rangeStart = new Date(inst._currentYear, inst._currentMonth, inst._currentDay);
+ this._updateDatepicker(inst);
+ }
+ else if (rangeSelect) {
+ inst._endDay = inst._currentDay;
+ inst._endMonth = inst._currentMonth;
+ inst._endYear = inst._currentYear;
+ inst._selectedDay = inst._currentDay = inst._rangeStart.getDate();
+ inst._selectedMonth = inst._currentMonth = inst._rangeStart.getMonth();
+ inst._selectedYear = inst._currentYear = inst._rangeStart.getFullYear();
+ inst._rangeStart = null;
+ if (inst._inline)
+ this._updateDatepicker(inst);
+ }
+ },
+
+ /* Erase the input field and hide the date picker. */
+ _clearDate: function(id) {
+ var inst = this._getInst(id);
+ if (inst._get('mandatory'))
+ return;
+ this._stayOpen = false;
+ inst._endDay = inst._endMonth = inst._endYear = inst._rangeStart = null;
+ this._selectDate(inst, '');
+ },
+
+ /* Update the input field with the selected date. */
+ _selectDate: function(id, dateStr) {
+ var inst = this._getInst(id);
+ dateStr = (dateStr != null ? dateStr : inst._formatDate());
+ if (inst._rangeStart)
+ dateStr = inst._formatDate(inst._rangeStart) + inst._get('rangeSeparator') + dateStr;
+ if (inst._input)
+ inst._input.val(dateStr);
+ var onSelect = inst._get('onSelect');
+ if (onSelect)
+ onSelect.apply((inst._input ? inst._input[0] : null), [dateStr, inst]); // trigger custom callback
+ else if (inst._input)
+ inst._input.trigger('change'); // fire the change event
+ if (inst._inline)
+ this._updateDatepicker(inst);
+ else if (!this._stayOpen) {
+ this._hideDatepicker(null, inst._get('speed'));
+ this._lastInput = inst._input[0];
+ if (typeof(inst._input[0]) != 'object')
+ inst._input[0].focus(); // restore focus
+ this._lastInput = null;
+ }
+ },
+
+ /* Set as beforeShowDay function to prevent selection of weekends.
+ @param date Date - the date to customise
+ @return [boolean, string] - is this date selectable?, what is its CSS class? */
+ noWeekends: function(date) {
+ var day = date.getDay();
+ return [(day > 0 && day < 6), ''];
+ },
+
+ /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
+ @param date Date - the date to get the week for
+ @return number - the number of the week within the year that contains this date */
+ iso8601Week: function(date) {
+ var checkDate = new Date(date.getFullYear(), date.getMonth(), date.getDate(), (date.getTimezoneOffset() / -60));
+ var firstMon = new Date(checkDate.getFullYear(), 1 - 1, 4); // First week always contains 4 Jan
+ var firstDay = firstMon.getDay() || 7; // Day of week: Mon = 1, ..., Sun = 7
+ firstMon.setDate(firstMon.getDate() + 1 - firstDay); // Preceding Monday
+ if (firstDay < 4 && checkDate < firstMon) { // Adjust first three days in year if necessary
+ checkDate.setDate(checkDate.getDate() - 3); // Generate for previous year
+ return $.datepicker.iso8601Week(checkDate);
+ } else if (checkDate > new Date(checkDate.getFullYear(), 12 - 1, 28)) { // Check last three days in year
+ firstDay = new Date(checkDate.getFullYear() + 1, 1 - 1, 4).getDay() || 7;
+ if (firstDay > 4 && (checkDate.getDay() || 7) < firstDay - 3) { // Adjust if necessary
+ checkDate.setDate(checkDate.getDate() + 3); // Generate for next year
+ return $.datepicker.iso8601Week(checkDate);
+ }
+ }
+ return Math.floor(((checkDate - firstMon) / 86400000) / 7) + 1; // Weeks to given date
+ },
+
+ /* Provide status text for a particular date.
+ @param date the date to get the status for
+ @param inst the current datepicker instance
+ @return the status display text for this date */
+ dateStatus: function(date, inst) {
+ return $.datepicker.formatDate(inst._get('dateStatus'), date, inst._getFormatConfig());
+ },
+
+ /* Parse a string value into a date object.
+ The format can be combinations of the following:
+ d - day of month (no leading zero)
+ dd - day of month (two digit)
+ D - day name short
+ DD - day name long
+ m - month of year (no leading zero)
+ mm - month of year (two digit)
+ M - month name short
+ MM - month name long
+ y - year (two digit)
+ yy - year (four digit)
+ '...' - literal text
+ '' - single quote
+
+ @param format String - the expected format of the date
+ @param value String - the date in the above format
+ @param settings Object - attributes include:
+ shortYearCutoff Number - the cutoff year for determining the century (optional)
+ dayNamesShort String[7] - abbreviated names of the days from Sunday (optional)
+ dayNames String[7] - names of the days from Sunday (optional)
+ monthNamesShort String[12] - abbreviated names of the months (optional)
+ monthNames String[12] - names of the months (optional)
+ @return Date - the extracted date value or null if value is blank */
+ parseDate: function (format, value, settings) {
+ if (format == null || value == null)
+ throw 'Invalid arguments';
+ value = (typeof value == 'object' ? value.toString() : value + '');
+ if (value == '')
+ return null;
+ var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff;
+ var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
+ var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
+ var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
+ var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
+ var year = -1;
+ var month = -1;
+ var day = -1;
+ var literal = false;
+ // Check whether a format character is doubled
+ var lookAhead = function(match) {
+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
+ if (matches)
+ iFormat++;
+ return matches;
+ };
+ // Extract a number from the string value
+ var getNumber = function(match) {
+ lookAhead(match);
+ var size = (match == 'y' ? 4 : 2);
+ var num = 0;
+ while (size > 0 && iValue < value.length &&
+ value.charAt(iValue) >= '0' && value.charAt(iValue) <= '9') {
+ num = num * 10 + (value.charAt(iValue++) - 0);
+ size--;
+ }
+ if (size == (match == 'y' ? 4 : 2))
+ throw 'Missing number at position ' + iValue;
+ return num;
+ };
+ // Extract a name from the string value and convert to an index
+ var getName = function(match, shortNames, longNames) {
+ var names = (lookAhead(match) ? longNames : shortNames);
+ var size = 0;
+ for (var j = 0; j < names.length; j++)
+ size = Math.max(size, names[j].length);
+ var name = '';
+ var iInit = iValue;
+ while (size > 0 && iValue < value.length) {
+ name += value.charAt(iValue++);
+ for (var i = 0; i < names.length; i++)
+ if (name == names[i])
+ return i + 1;
+ size--;
+ }
+ throw 'Unknown name at position ' + iInit;
+ };
+ // Confirm that a literal character matches the string value
+ var checkLiteral = function() {
+ if (value.charAt(iValue) != format.charAt(iFormat))
+ throw 'Unexpected literal at position ' + iValue;
+ iValue++;
+ };
+ var iValue = 0;
+ for (var iFormat = 0; iFormat < format.length; iFormat++) {
+ if (literal)
+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))
+ literal = false;
+ else
+ checkLiteral();
+ else
+ switch (format.charAt(iFormat)) {
+ case 'd':
+ day = getNumber('d');
+ break;
+ case 'D':
+ getName('D', dayNamesShort, dayNames);
+ break;
+ case 'm':
+ month = getNumber('m');
+ break;
+ case 'M':
+ month = getName('M', monthNamesShort, monthNames);
+ break;
+ case 'y':
+ year = getNumber('y');
+ break;
+ case "'":
+ if (lookAhead("'"))
+ checkLiteral();
+ else
+ literal = true;
+ break;
+ default:
+ checkLiteral();
+ }
+ }
+ if (year < 100) {
+ year += new Date().getFullYear() - new Date().getFullYear() % 100 +
+ (year <= shortYearCutoff ? 0 : -100);
+ }
+ var date = new Date(year, month - 1, day);
+ if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day) {
+ throw 'Invalid date'; // E.g. 31/02/*
+ }
+ return date;
+ },
+
+ /* Format a date object into a string value.
+ The format can be combinations of the following:
+ d - day of month (no leading zero)
+ dd - day of month (two digit)
+ D - day name short
+ DD - day name long
+ m - month of year (no leading zero)
+ mm - month of year (two digit)
+ M - month name short
+ MM - month name long
+ y - year (two digit)
+ yy - year (four digit)
+ '...' - literal text
+ '' - single quote
+
+ @param format String - the desired format of the date
+ @param date Date - the date value to format
+ @param settings Object - attributes include:
+ dayNamesShort String[7] - abbreviated names of the days from Sunday (optional)
+ dayNames String[7] - names of the days from Sunday (optional)
+ monthNamesShort String[12] - abbreviated names of the months (optional)
+ monthNames String[12] - names of the months (optional)
+ @return String - the date in the above format */
+ formatDate: function (format, date, settings) {
+ if (!date)
+ return '';
+ var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
+ var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
+ var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
+ var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
+ // Check whether a format character is doubled
+ var lookAhead = function(match) {
+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
+ if (matches)
+ iFormat++;
+ return matches;
+ };
+ // Format a number, with leading zero if necessary
+ var formatNumber = function(match, value) {
+ return (lookAhead(match) && value < 10 ? '0' : '') + value;
+ };
+ // Format a name, short or long as requested
+ var formatName = function(match, value, shortNames, longNames) {
+ return (lookAhead(match) ? longNames[value] : shortNames[value]);
+ };
+ var output = '';
+ var literal = false;
+ if (date) {
+ for (var iFormat = 0; iFormat < format.length; iFormat++) {
+ if (literal)
+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))
+ literal = false;
+ else
+ output += format.charAt(iFormat);
+ else
+ switch (format.charAt(iFormat)) {
+ case 'd':
+ output += formatNumber('d', date.getDate());
+ break;
+ case 'D':
+ output += formatName('D', date.getDay(), dayNamesShort, dayNames);
+ break;
+ case 'm':
+ output += formatNumber('m', date.getMonth() + 1);
+ break;
+ case 'M':
+ output += formatName('M', date.getMonth(), monthNamesShort, monthNames);
+ break;
+ case 'y':
+ output += (lookAhead('y') ? date.getFullYear() :
+ (date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100);
+ break;
+ case "'":
+ if (lookAhead("'"))
+ output += "'";
+ else
+ literal = true;
+ break;
+ default:
+ output += format.charAt(iFormat);
+ }
+ }
+ }
+ return output;
+ },
+
+ /* Extract all possible characters from the date format. */
+ _possibleChars: function (format) {
+ var chars = '';
+ var literal = false;
+ for (var iFormat = 0; iFormat < format.length; iFormat++)
+ if (literal)
+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))
+ literal = false;
+ else
+ chars += format.charAt(iFormat);
+ else
+ switch (format.charAt(iFormat)) {
+ case 'd' || 'm' || 'y':
+ chars += '0123456789';
+ break;
+ case 'D' || 'M':
+ return null; // Accept anything
+ case "'":
+ if (lookAhead("'"))
+ chars += "'";
+ else
+ literal = true;
+ break;
+ default:
+ chars += format.charAt(iFormat);
+ }
+ return chars;
+ }
+});
+
+/* Individualised settings for date picker functionality applied to one or more related inputs.
+ Instances are managed and manipulated through the Datepicker manager. */
+function DatepickerInstance(settings, inline) {
+ this._id = $.datepicker._register(this);
+ this._selectedDay = 0; // Current date for selection
+ this._selectedMonth = 0; // 0-11
+ this._selectedYear = 0; // 4-digit year
+ this._drawMonth = 0; // Current month at start of datepicker
+ this._drawYear = 0;
+ this._input = null; // The attached input field
+ this._inline = inline; // True if showing inline, false if used in a popup
+ this._datepickerDiv = (!inline ? $.datepicker._datepickerDiv :
+ $('<div id="ui-datepicker-div-' + this._id + '" class="ui-datepicker-inline">'));
+ // customise the date picker object - uses manager defaults if not overridden
+ this._settings = extendRemove(settings || {}); // clone
+ if (inline)
+ this._setDate(this._getDefaultDate());
+}
+
+$.extend(DatepickerInstance.prototype, {
+ /* Get a setting value, defaulting if necessary. */
+ _get: function(name) {
+ return this._settings[name] !== undefined ? this._settings[name] : $.datepicker._defaults[name];
+ },
+
+ /* Parse existing date and initialise date picker. */
+ _setDateFromField: function(input) {
+ this._input = $(input);
+ var dateFormat = this._get('dateFormat');
+ var dates = this._input ? this._input.val().split(this._get('rangeSeparator')) : null;
+ this._endDay = this._endMonth = this._endYear = null;
+ var date = defaultDate = this._getDefaultDate();
+ if (dates.length > 0) {
+ var settings = this._getFormatConfig();
+ if (dates.length > 1) {
+ date = $.datepicker.parseDate(dateFormat, dates[1], settings) || defaultDate;
+ this._endDay = date.getDate();
+ this._endMonth = date.getMonth();
+ this._endYear = date.getFullYear();
+ }
+ try {
+ date = $.datepicker.parseDate(dateFormat, dates[0], settings) || defaultDate;
+ } catch (e) {
+ $.datepicker.log(e);
+ date = defaultDate;
+ }
+ }
+ this._selectedDay = date.getDate();
+ this._drawMonth = this._selectedMonth = date.getMonth();
+ this._drawYear = this._selectedYear = date.getFullYear();
+ this._currentDay = (dates[0] ? date.getDate() : 0);
+ this._currentMonth = (dates[0] ? date.getMonth() : 0);
+ this._currentYear = (dates[0] ? date.getFullYear() : 0);
+ this._adjustDate();
+ },
+
+ /* Retrieve the default date shown on opening. */
+ _getDefaultDate: function() {
+ var date = this._determineDate('defaultDate', new Date());
+ var minDate = this._getMinMaxDate('min', true);
+ var maxDate = this._getMinMaxDate('max');
+ date = (minDate && date < minDate ? minDate : date);
+ date = (maxDate && date > maxDate ? maxDate : date);
+ return date;
+ },
+
+ /* A date may be specified as an exact value or a relative one. */
+ _determineDate: function(name, defaultDate) {
+ var offsetNumeric = function(offset) {
+ var date = new Date();
+ date.setDate(date.getDate() + offset);
+ return date;
+ };
+ var offsetString = function(offset, getDaysInMonth) {
+ var date = new Date();
+ var matches = /^([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?$/.exec(offset);
+ if (matches) {
+ var year = date.getFullYear();
+ var month = date.getMonth();
+ var day = date.getDate();
+ switch (matches[2] || 'd') {
+ case 'd' : case 'D' :
+ day += (matches[1] - 0); break;
+ case 'w' : case 'W' :
+ day += (matches[1] * 7); break;
+ case 'm' : case 'M' :
+ month += (matches[1] - 0);
+ day = Math.min(day, getDaysInMonth(year, month));
+ break;
+ case 'y': case 'Y' :
+ year += (matches[1] - 0);
+ day = Math.min(day, getDaysInMonth(year, month));
+ break;
+ }
+ date = new Date(year, month, day);
+ }
+ return date;
+ };
+ var date = this._get(name);
+ return (date == null ? defaultDate :
+ (typeof date == 'string' ? offsetString(date, this._getDaysInMonth) :
+ (typeof date == 'number' ? offsetNumeric(date) : date)));
+ },
+
+ /* Set the date(s) directly. */
+ _setDate: function(date, endDate) {
+ this._selectedDay = this._currentDay = date.getDate();
+ this._drawMonth = this._selectedMonth = this._currentMonth = date.getMonth();
+ this._drawYear = this._selectedYear = this._currentYear = date.getFullYear();
+ if (this._get('rangeSelect')) {
+ if (endDate) {
+ this._endDay = endDate.getDate();
+ this._endMonth = endDate.getMonth();
+ this._endYear = endDate.getFullYear();
+ } else {
+ this._endDay = this._currentDay;
+ this._endMonth = this._currentMonth;
+ this._endYear = this._currentYear;
+ }
+ }
+ this._adjustDate();
+ },
+
+ /* Retrieve the date(s) directly. */
+ _getDate: function() {
+ var startDate = (!this._currentYear || (this._input && this._input.val() == '') ? null :
+ new Date(this._currentYear, this._currentMonth, this._currentDay));
+ if (this._get('rangeSelect')) {
+ return [startDate, (!this._endYear ? null :
+ new Date(this._endYear, this._endMonth, this._endDay))];
+ } else
+ return startDate;
+ },
+
+ /* Generate the HTML for the current state of the date picker. */
+ _generateDatepicker: function() {
+ var today = new Date();
+ today = new Date(today.getFullYear(), today.getMonth(), today.getDate()); // clear time
+ var showStatus = this._get('showStatus');
+ var isRTL = this._get('isRTL');
+ // build the date picker HTML
+ var clear = (this._get('mandatory') ? '' :
+ '<div class="ui-datepicker-clear"><a onclick="jQuery.datepicker._clearDate(' + this._id + ');"' +
+ (showStatus ? this._addStatus(this._get('clearStatus') || '&#xa0;') : '') + '>' +
+ this._get('clearText') + '</a></div>');
+ var controls = '<div class="ui-datepicker-control">' + (isRTL ? '' : clear) +
+ '<div class="ui-datepicker-close"><a onclick="jQuery.datepicker._hideDatepicker();"' +
+ (showStatus ? this._addStatus(this._get('closeStatus') || '&#xa0;') : '') + '>' +
+ this._get('closeText') + '</a></div>' + (isRTL ? clear : '') + '</div>';
+ var prompt = this._get('prompt');
+ var closeAtTop = this._get('closeAtTop');
+ var hideIfNoPrevNext = this._get('hideIfNoPrevNext');
+ var numMonths = this._getNumberOfMonths();
+ var stepMonths = this._get('stepMonths');
+ var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1);
+ var minDate = this._getMinMaxDate('min', true);
+ var maxDate = this._getMinMaxDate('max');
+ var drawMonth = this._drawMonth;
+ var drawYear = this._drawYear;
+ if (maxDate) {
+ var maxDraw = new Date(maxDate.getFullYear(),
+ maxDate.getMonth() - numMonths[1] + 1, maxDate.getDate());
+ maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);
+ while (new Date(drawYear, drawMonth, 1) > maxDraw) {
+ drawMonth--;
+ if (drawMonth < 0) {
+ drawMonth = 11;
+ drawYear--;
+ }
+ }
+ }
+ // controls and links
+ var prev = '<div class="ui-datepicker-prev">' + (this._canAdjustMonth(-1, drawYear, drawMonth) ?
+ '<a onclick="jQuery.datepicker._adjustDate(' + this._id + ', -' + stepMonths + ', \'M\');"' +
+ (showStatus ? this._addStatus(this._get('prevStatus') || '&#xa0;') : '') + '>' +
+ this._get('prevText') + '</a>' :
+ (hideIfNoPrevNext ? '' : '<label>' + this._get('prevText') + '</label>')) + '</div>';
+ var next = '<div class="ui-datepicker-next">' + (this._canAdjustMonth(+1, drawYear, drawMonth) ?
+ '<a onclick="jQuery.datepicker._adjustDate(' + this._id + ', +' + stepMonths + ', \'M\');"' +
+ (showStatus ? this._addStatus(this._get('nextStatus') || '&#xa0;') : '') + '>' +
+ this._get('nextText') + '</a>' :
+ (hideIfNoPrevNext ? '>' : '<label>' + this._get('nextText') + '</label>')) + '</div>';
+ var html = (prompt ? '<div class="ui-datepicker-prompt">' + prompt + '</div>' : '') +
+ (closeAtTop && !this._inline ? controls : '') +
+ '<div class="ui-datepicker-links">' + (isRTL ? next : prev) +
+ (this._isInRange(today) ? '<div class="ui-datepicker-current">' +
+ '<a onclick="jQuery.datepicker._gotoToday(' + this._id + ');"' +
+ (showStatus ? this._addStatus(this._get('currentStatus') || '&#xa0;') : '') + '>' +
+ this._get('currentText') + '</a></div>' : '') + (isRTL ? prev : next) + '</div>';
+ var showWeeks = this._get('showWeeks');
+ for (var row = 0; row < numMonths[0]; row++)
+ for (var col = 0; col < numMonths[1]; col++) {
+ var selectedDate = new Date(drawYear, drawMonth, this._selectedDay);
+ html += '<div class="ui-datepicker-one-month' + (col == 0 ? ' ui-datepicker-new-row' : '') + '">' +
+ this._generateMonthYearHeader(drawMonth, drawYear, minDate, maxDate,
+ selectedDate, row > 0 || col > 0) + // draw month headers
+ '<table class="ui-datepicker" cellpadding="0" cellspacing="0"><thead>' +
+ '<tr class="ui-datepicker-title-row">' +
+ (showWeeks ? '<td>' + this._get('weekHeader') + '</td>' : '');
+ var firstDay = this._get('firstDay');
+ var changeFirstDay = this._get('changeFirstDay');
+ var dayNames = this._get('dayNames');
+ var dayNamesShort = this._get('dayNamesShort');
+ var dayNamesMin = this._get('dayNamesMin');
+ for (var dow = 0; dow < 7; dow++) { // days of the week
+ var day = (dow + firstDay) % 7;
+ var status = this._get('dayStatus') || '&#xa0;';
+ status = (status.indexOf('DD') > -1 ? status.replace(/DD/, dayNames[day]) :
+ status.replace(/D/, dayNamesShort[day]));
+ html += '<td' + ((dow + firstDay + 6) % 7 >= 5 ? ' class="ui-datepicker-week-end-cell"' : '') + '>' +
+ (!changeFirstDay ? '<span' :
+ '<a onclick="jQuery.datepicker._changeFirstDay(' + this._id + ', ' + day + ');"') +
+ (showStatus ? this._addStatus(status) : '') + ' title="' + dayNames[day] + '">' +
+ dayNamesMin[day] + (changeFirstDay ? '</a>' : '</span>') + '</td>';
+ }
+ html += '</tr></thead><tbody>';
+ var daysInMonth = this._getDaysInMonth(drawYear, drawMonth);
+ if (drawYear == this._selectedYear && drawMonth == this._selectedMonth) {
+ this._selectedDay = Math.min(this._selectedDay, daysInMonth);
+ }
+ var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
+ var currentDate = (!this._currentDay ? new Date(9999, 9, 9) :
+ new Date(this._currentYear, this._currentMonth, this._currentDay));
+ var endDate = this._endDay ? new Date(this._endYear, this._endMonth, this._endDay) : currentDate;
+ var printDate = new Date(drawYear, drawMonth, 1 - leadDays);
+ var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate
+ var beforeShowDay = this._get('beforeShowDay');
+ var showOtherMonths = this._get('showOtherMonths');
+ var calculateWeek = this._get('calculateWeek') || $.datepicker.iso8601Week;
+ var dateStatus = this._get('statusForDate') || $.datepicker.dateStatus;
+ for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows
+ html += '<tr class="ui-datepicker-days-row">' +
+ (showWeeks ? '<td class="ui-datepicker-week-col">' + calculateWeek(printDate) + '</td>' : '');
+ for (var dow = 0; dow < 7; dow++) { // create date picker days
+ var daySettings = (beforeShowDay ?
+ beforeShowDay.apply((this._input ? this._input[0] : null), [printDate]) : [true, '']);
+ var otherMonth = (printDate.getMonth() != drawMonth);
+ var unselectable = otherMonth || !daySettings[0] ||
+ (minDate && printDate < minDate) || (maxDate && printDate > maxDate);
+ html += '<td class="ui-datepicker-days-cell' +
+ ((dow + firstDay + 6) % 7 >= 5 ? ' ui-datepicker-week-end-cell' : '') + // highlight weekends
+ (otherMonth ? ' ui-datepicker-otherMonth' : '') + // highlight days from other months
+ (printDate.getTime() == selectedDate.getTime() && drawMonth == this._selectedMonth ?
+ ' ui-datepicker-days-cell-over' : '') + // highlight selected day
+ (unselectable ? ' ui-datepicker-unselectable' : '') + // highlight unselectable days
+ (otherMonth && !showOtherMonths ? '' : ' ' + daySettings[1] + // highlight custom dates
+ (printDate.getTime() >= currentDate.getTime() && printDate.getTime() <= endDate.getTime() ? // in current range
+ ' ui-datepicker-current-day' : '') + // highlight selected day
+ (printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different)
+ (unselectable ? '' : ' onmouseover="jQuery(this).addClass(\'ui-datepicker-days-cell-over\');' +
+ (!showStatus || (otherMonth && !showOtherMonths) ? '' : 'jQuery(\'#ui-datepicker-status-' +
+ this._id + '\').html(\'' + (dateStatus.apply((this._input ? this._input[0] : null),
+ [printDate, this]) || '&#xa0;') +'\');') + '"' +
+ ' onmouseout="jQuery(this).removeClass(\'ui-datepicker-days-cell-over\');' +
+ (!showStatus || (otherMonth && !showOtherMonths) ? '' : 'jQuery(\'#ui-datepicker-status-' +
+ this._id + '\').html(\'&#xa0;\');') + '" onclick="jQuery.datepicker._selectDay(' +
+ this._id + ',' + drawMonth + ',' + drawYear + ', this);"') + '>' + // actions
+ (otherMonth ? (showOtherMonths ? printDate.getDate() : '&#xa0;') : // display for other months
+ (unselectable ? printDate.getDate() : '<a>' + printDate.getDate() + '</a>')) + '</td>'; // display for this month
+ printDate.setDate(printDate.getDate() + 1);
+ }
+ html += '</tr>';
+ }
+ drawMonth++;
+ if (drawMonth > 11) {
+ drawMonth = 0;
+ drawYear++;
+ }
+ html += '</tbody></table></div>';
+ }
+ html += (showStatus ? '<div style="clear: both;"></div><div id="ui-datepicker-status-' + this._id +
+ '" class="ui-datepicker-status">' + (this._get('initStatus') || '&#xa0;') + '</div>' : '') +
+ (!closeAtTop && !this._inline ? controls : '') +
+ '<div style="clear: both;"></div>' +
+ ($.browser.msie && parseInt($.browser.version) < 7 && !this._inline ?
+ '<iframe src="javascript:false;" class="ui-datepicker-cover"></iframe>' : '');
+ return html;
+ },
+
+ /* Generate the month and year header. */
+ _generateMonthYearHeader: function(drawMonth, drawYear, minDate, maxDate, selectedDate, secondary) {
+ minDate = (this._rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate);
+ var showStatus = this._get('showStatus');
+ var html = '<div class="ui-datepicker-header">';
+ // month selection
+ var monthNames = this._get('monthNames');
+ if (secondary || !this._get('changeMonth'))
+ html += monthNames[drawMonth] + '&#xa0;';
+
+ else {
+ var inMinYear = (minDate && minDate.getFullYear() == drawYear);
+ var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear);
+ html += '<select class="ui-datepicker-new-month" ' +
+ 'onchange="jQuery.datepicker._selectMonthYear(' + this._id + ', this, \'M\');" ' +
+ 'onclick="jQuery.datepicker._clickMonthYear(' + this._id + ');"' +
+ (showStatus ? this._addStatus(this._get('monthStatus') || '&#xa0;') : '') + '>';
+ for (var month = 0; month < 12; month++) {
+ if ((!inMinYear || month >= minDate.getMonth()) &&
+ (!inMaxYear || month <= maxDate.getMonth())) {
+ html += '<option value="' + month + '"' +
+ (month == drawMonth ? ' selected="selected"' : '') +
+ '>' + monthNames[month] + '</option>';
+ }
+ }
+ html += '</select>';
+ }
+ // year selection
+ if (secondary || !this._get('changeYear'))
+ html += drawYear;
+ else {
+ // determine range of years to display
+ var years = this._get('yearRange').split(':');
+ var year = 0;
+ var endYear = 0;
+ if (years.length != 2) {
+ year = drawYear - 10;
+ endYear = drawYear + 10;
+ } else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') {
+ year = new Date().getFullYear() + parseInt(years[0], 10);
+ endYear = new Date().getFullYear() + parseInt(years[1], 10);
+ } else {
+ year = parseInt(years[0], 10);
+ endYear = parseInt(years[1], 10);
+ }
+ year = (minDate ? Math.max(year, minDate.getFullYear()) : year);
+ endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);
+ html += '<select class="ui-datepicker-new-year" ' +
+ 'onchange="jQuery.datepicker._selectMonthYear(' + this._id + ', this, \'Y\');" ' +
+ 'onclick="jQuery.datepicker._clickMonthYear(' + this._id + ');"' +
+ (showStatus ? this._addStatus(this._get('yearStatus') || '&#xa0;') : '') + '>';
+ for (; year <= endYear; year++) {
+ html += '<option value="' + year + '"' +
+ (year == drawYear ? ' selected="selected"' : '') +
+ '>' + year + '</option>';
+ }
+ html += '</select>';
+ }
+ html += '</div>'; // Close datepicker_header
+ return html;
+ },
+
+ /* Provide code to set and clear the status panel. */
+ _addStatus: function(text) {
+ return ' onmouseover="jQuery(\'#ui-datepicker-status-' + this._id + '\').html(\'' + text + '\');" ' +
+ 'onmouseout="jQuery(\'#ui-datepicker-status-' + this._id + '\').html(\'&#xa0;\');"';
+ },
+
+ /* Adjust one of the date sub-fields. */
+ _adjustDate: function(offset, period) {
+ var year = this._drawYear + (period == 'Y' ? offset : 0);
+ var month = this._drawMonth + (period == 'M' ? offset : 0);
+ var day = Math.min(this._selectedDay, this._getDaysInMonth(year, month)) +
+ (period == 'D' ? offset : 0);
+ var date = new Date(year, month, day);
+ // ensure it is within the bounds set
+ var minDate = this._getMinMaxDate('min', true);
+ var maxDate = this._getMinMaxDate('max');
+ date = (minDate && date < minDate ? minDate : date);
+ date = (maxDate && date > maxDate ? maxDate : date);
+ this._selectedDay = date.getDate();
+ this._drawMonth = this._selectedMonth = date.getMonth();
+ this._drawYear = this._selectedYear = date.getFullYear();
+ },
+
+ /* Determine the number of months to show. */
+ _getNumberOfMonths: function() {
+ var numMonths = this._get('numberOfMonths');
+ return (numMonths == null ? [1, 1] : (typeof numMonths == 'number' ? [1, numMonths] : numMonths));
+ },
+
+ /* Determine the current maximum date - ensure no time components are set - may be overridden for a range. */
+ _getMinMaxDate: function(minMax, checkRange) {
+ var date = this._determineDate(minMax + 'Date', null);
+ if (date) {
+ date.setHours(0);
+ date.setMinutes(0);
+ date.setSeconds(0);
+ date.setMilliseconds(0);
+ }
+ return date || (checkRange ? this._rangeStart : null);
+ },
+
+ /* Find the number of days in a given month. */
+ _getDaysInMonth: function(year, month) {
+ return 32 - new Date(year, month, 32).getDate();
+ },
+
+ /* Find the day of the week of the first of a month. */
+ _getFirstDayOfMonth: function(year, month) {
+ return new Date(year, month, 1).getDay();
+ },
+
+ /* Determines if we should allow a "next/prev" month display change. */
+ _canAdjustMonth: function(offset, curYear, curMonth) {
+ var numMonths = this._getNumberOfMonths();
+ var date = new Date(curYear, curMonth + (offset < 0 ? offset : numMonths[1]), 1);
+ if (offset < 0)
+ date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));
+ return this._isInRange(date);
+ },
+
+ /* Is the given date in the accepted range? */
+ _isInRange: function(date) {
+ // during range selection, use minimum of selected date and range start
+ var newMinDate = (!this._rangeStart ? null :
+ new Date(this._selectedYear, this._selectedMonth, this._selectedDay));
+ newMinDate = (newMinDate && this._rangeStart < newMinDate ? this._rangeStart : newMinDate);
+ var minDate = newMinDate || this._getMinMaxDate('min');
+ var maxDate = this._getMinMaxDate('max');
+ return ((!minDate || date >= minDate) && (!maxDate || date <= maxDate));
+ },
+
+ /* Provide the configuration settings for formatting/parsing. */
+ _getFormatConfig: function() {
+ var shortYearCutoff = this._get('shortYearCutoff');
+ shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff :
+ new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
+ return {shortYearCutoff: shortYearCutoff,
+ dayNamesShort: this._get('dayNamesShort'), dayNames: this._get('dayNames'),
+ monthNamesShort: this._get('monthNamesShort'), monthNames: this._get('monthNames')};
+ },
+
+ /* Format the given date for display. */
+ _formatDate: function(day, month, year) {
+ if (!day) {
+ this._currentDay = this._selectedDay;
+ this._currentMonth = this._selectedMonth;
+ this._currentYear = this._selectedYear;
+ }
+ var date = (day ? (typeof day == 'object' ? day : new Date(year, month, day)) :
+ new Date(this._currentYear, this._currentMonth, this._currentDay));
+ return $.datepicker.formatDate(this._get('dateFormat'), date, this._getFormatConfig());
+ }
+});
+
+/* jQuery extend now ignores nulls! */
+function extendRemove(target, props) {
+ $.extend(target, props);
+ for (var name in props)
+ if (props[name] == null)
+ target[name] = null;
+ return target;
+};
+
+/* Invoke the datepicker functionality.
+ @param options String - a command, optionally followed by additional parameters or
+ Object - settings for attaching new datepicker functionality
+ @return jQuery object */
+$.fn.datepicker = function(options){
+ var otherArgs = Array.prototype.slice.call(arguments, 1);
+ if (typeof options == 'string' && (options == 'isDisabled' || options == 'getDate')) {
+ return $.datepicker['_' + options + 'Datepicker'].apply($.datepicker, [this[0]].concat(otherArgs));
+ }
+ return this.each(function() {
+ typeof options == 'string' ?
+ $.datepicker['_' + options + 'Datepicker'].apply($.datepicker, [this].concat(otherArgs)) :
+ $.datepicker._attachDatepicker(this, options);
+ });
+};
+
+$.datepicker = new Datepicker(); // singleton instance
+
+/* Initialise the date picker. */
+$(document).ready(function() {
+ $(document.body).append($.datepicker._datepickerDiv)
+ .mousedown($.datepicker._checkExternalClick);
+});
+
+})(jQuery);
+/*
+ * jQuery UI Dialog
+ *
+ * Copyright (c) 2008 Richard D. Worth (rdworth.org)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Dialog
+ *
+ * Depends:
+ * ui.core.js
+ * ui.draggable.js
+ * ui.resizable.js
+ *
+ */
+(function($) {
+
+var setDataSwitch = {
+ dragStart: "start.draggable",
+ drag: "drag.draggable",
+ dragStop: "stop.draggable",
+ maxHeight: "maxHeight.resizable",
+ minHeight: "minHeight.resizable",
+ maxWidth: "maxWidth.resizable",
+ minWidth: "minWidth.resizable",
+ resizeStart: "start.resizable",
+ resize: "drag.resizable",
+ resizeStop: "stop.resizable"
+};
+
+$.widget("ui.dialog", {
+ init: function() {
+ var self = this,
+ options = this.options,
+ resizeHandles = typeof options.resizable == 'string'
+ ? options.resizable
+ : 'n,e,s,w,se,sw,ne,nw',
+
+ uiDialogContent = this.element
+ .addClass('ui-dialog-content')
+ .wrap('<div/>')
+ .wrap('<div/>'),
+
+ uiDialogContainer = uiDialogContent.parent()
+ .addClass('ui-dialog-container')
+ .css({position: 'relative'}),
+
+ title = options.title || uiDialogContent.attr('title') || '',
+ uiDialogTitlebar = (this.uiDialogTitlebar =
+ $('<div class="ui-dialog-titlebar"/>'))
+ .append('<span class="ui-dialog-title">' + title + '</span>')
+ .append('<a href="#" class="ui-dialog-titlebar-close"><span>X</span></a>')
+ .prependTo(uiDialogContainer),
+
+ uiDialog = (this.uiDialog = uiDialogContainer.parent())
+ .appendTo(document.body)
+ .hide()
+ .addClass('ui-dialog')
+ .addClass(options.dialogClass)
+ // add content classes to dialog
+ // to inherit theme at top level of element
+ .addClass(uiDialogContent.attr('className'))
+ .removeClass('ui-dialog-content')
+ .css({
+ position: 'absolute',
+ width: options.width,
+ height: options.height,
+ overflow: 'hidden',
+ zIndex: options.zIndex
+ })
+ // setting tabIndex makes the div focusable
+ // setting outline to 0 prevents a border on focus in Mozilla
+ .attr('tabIndex', -1).css('outline', 0).keydown(function(ev) {
+ if (options.closeOnEscape) {
+ var ESC = 27;
+ (ev.keyCode && ev.keyCode == ESC && self.close());
+ }
+ })
+ .mousedown(function() {
+ self.moveToTop();
+ });
+
+ this.uiDialogTitlebarClose = $('.ui-dialog-titlebar-close', uiDialogTitlebar)
+ .hover(
+ function() {
+ $(this).addClass('ui-dialog-titlebar-close-hover');
+ },
+ function() {
+ $(this).removeClass('ui-dialog-titlebar-close-hover');
+ }
+ )
+ .mousedown(function(ev) {
+ ev.stopPropagation();
+ })
+ .click(function() {
+ self.close();
+ return false;
+ });
+
+ var hasButtons = false;
+ $.each(options.buttons, function() { return !(hasButtons = true); });
+ if (hasButtons) {
+ var uiDialogButtonPane = $('<div class="ui-dialog-buttonpane"/>')
+ .appendTo(uiDialog);
+ $.each(options.buttons, function(name, fn) {
+ $('<button/>')
+ .text(name)
+ .click(function() { fn.apply(self.element[0], arguments); })
+ .appendTo(uiDialogButtonPane);
+ });
+ }
+
+ if ($.fn.draggable) {
+ uiDialog.draggable({
+ handle: '.ui-dialog-titlebar',
+ start: function(e, ui) {
+ self.moveToTop();
+ (options.dragStart && options.dragStart.apply(this, arguments));
+ },
+ drag: options.drag,
+ stop: function(e, ui) {
+ (options.dragStop && options.dragStop.apply(this, arguments));
+ $.ui.dialog.overlay.resize();
+ }
+ });
+ (options.draggable || uiDialog.draggable('disable'));
+ }
+
+ if ($.fn.resizable) {
+ uiDialog.resizable({
+ maxWidth: options.maxWidth,
+ maxHeight: options.maxHeight,
+ minWidth: options.minWidth,
+ minHeight: options.minHeight,
+ start: options.resizeStart,
+ resize: options.resize,
+ handles: resizeHandles,
+ stop: function(e, ui) {
+ (options.resizeStop && options.resizeStop.apply(this, arguments));
+ $.ui.dialog.overlay.resize();
+ }
+ });
+ (options.resizable || uiDialog.resizable('disable'));
+ }
+
+ (options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe());
+ (options.autoOpen && this.open());
+ },
+
+ setData: function(key, value){
+ (setDataSwitch[key] && this.uiDialog.data(setDataSwitch[key], value));
+ switch (key) {
+ case "draggable":
+ this.uiDialog.draggable(value ? 'enable' : 'disable');
+ break;
+ case "height":
+ this.uiDialog.height(value);
+ break;
+ case "position":
+ this.position(value);
+ break;
+ case "resizable":
+ (typeof value == 'string' && this.uiDialog.data('handles.resizable', value));
+ this.uiDialog.resizable(value ? 'enable' : 'disable');
+ break;
+ case "title":
+ $(".ui-dialog-title", this.uiDialogTitlebar).text(value);
+ break;
+ case "width":
+ this.uiDialog.width(value);
+ break;
+ }
+
+ $.widget.prototype.setData.apply(this, arguments);
+ },
+
+ position: function(pos) {
+ var wnd = $(window), doc = $(document),
+ pTop = doc.scrollTop(), pLeft = doc.scrollLeft(),
+ minTop = pTop;
+
+ if ($.inArray(pos, ['center','top','right','bottom','left']) >= 0) {
+ pos = [
+ pos == 'right' || pos == 'left' ? pos : 'center',
+ pos == 'top' || pos == 'bottom' ? pos : 'middle'
+ ];
+ }
+ if (pos.constructor != Array) {
+ pos = ['center', 'middle'];
+ }
+ if (pos[0].constructor == Number) {
+ pLeft += pos[0];
+ } else {
+ switch (pos[0]) {
+ case 'left':
+ pLeft += 0;
+ break;
+ case 'right':
+ pLeft += wnd.width() - this.uiDialog.width();
+ break;
+ default:
+ case 'center':
+ pLeft += (wnd.width() - this.uiDialog.width()) / 2;
+ }
+ }
+ if (pos[1].constructor == Number) {
+ pTop += pos[1];
+ } else {
+ switch (pos[1]) {
+ case 'top':
+ pTop += 0;
+ break;
+ case 'bottom':
+ pTop += wnd.height() - this.uiDialog.height();
+ break;
+ default:
+ case 'middle':
+ pTop += (wnd.height() - this.uiDialog.height()) / 2;
+ }
+ }
+
+ // prevent the dialog from being too high (make sure the titlebar
+ // is accessible)
+ pTop = Math.max(pTop, minTop);
+ this.uiDialog.css({top: pTop, left: pLeft});
+ },
+
+ open: function() {
+ this.overlay = this.options.modal ? new $.ui.dialog.overlay(this) : null;
+ this.uiDialog.appendTo('body');
+ this.position(this.options.position);
+ this.uiDialog.show();
+ this.moveToTop(true);
+
+ // CALLBACK: open
+ var openEV = null;
+ var openUI = {
+ options: this.options
+ };
+ this.uiDialogTitlebarClose.focus();
+ this.element.triggerHandler("dialogopen", [openEV, openUI], this.options.open);
+ },
+
+ // the force parameter allows us to move modal dialogs to their correct
+ // position on open
+ moveToTop: function(force) {
+ if ((this.options.modal && !force) || !this.options.stack) { return; }
+
+ var maxZ = this.options.zIndex, options = this.options;
+ $('.ui-dialog:visible').each(function() {
+ maxZ = Math.max(maxZ, parseInt($(this).css('z-index'), 10) || options.zIndex);
+ });
+ (this.overlay && this.overlay.$el.css('z-index', ++maxZ));
+ this.uiDialog.css('z-index', ++maxZ);
+ },
+
+ close: function() {
+ (this.overlay && this.overlay.destroy());
+ this.uiDialog.hide();
+
+ // CALLBACK: close
+ var closeEV = null;
+ var closeUI = {
+ options: this.options
+ };
+ this.element.triggerHandler("dialogclose", [closeEV, closeUI], this.options.close);
+ $.ui.dialog.overlay.resize();
+ },
+
+ destroy: function() {
+ (this.overlay && this.overlay.destroy());
+ this.uiDialog.hide();
+ this.element
+ .unbind('.dialog')
+ .removeData('dialog')
+ .removeClass('ui-dialog-content')
+ .hide().appendTo('body');
+ this.uiDialog.remove();
+ }
+});
+
+$.extend($.ui.dialog, {
+ defaults: {
+ autoOpen: true,
+ bgiframe: false,
+ buttons: {},
+ closeOnEscape: true,
+ draggable: true,
+ height: 200,
+ minHeight: 100,
+ minWidth: 150,
+ modal: false,
+ overlay: {},
+ position: 'center',
+ resizable: true,
+ stack: true,
+ width: 300,
+ zIndex: 1000
+ },
+
+ overlay: function(dialog) {
+ this.$el = $.ui.dialog.overlay.create(dialog);
+ }
+});
+
+$.extend($.ui.dialog.overlay, {
+ instances: [],
+ events: $.map('focus,mousedown,mouseup,keydown,keypress,click'.split(','),
+ function(e) { return e + '.dialog-overlay'; }).join(' '),
+ create: function(dialog) {
+ if (this.instances.length === 0) {
+ // prevent use of anchors and inputs
+ // we use a setTimeout in case the overlay is created from an
+ // event that we're going to be cancelling (see #2804)
+ setTimeout(function() {
+ $('a, :input').bind($.ui.dialog.overlay.events, function() {
+ // allow use of the element if inside a dialog and
+ // - there are no modal dialogs
+ // - there are modal dialogs, but we are in front of the topmost modal
+ var allow = false;
+ var $dialog = $(this).parents('.ui-dialog');
+ if ($dialog.length) {
+ var $overlays = $('.ui-dialog-overlay');
+ if ($overlays.length) {
+ var maxZ = parseInt($overlays.css('z-index'), 10);
+ $overlays.each(function() {
+ maxZ = Math.max(maxZ, parseInt($(this).css('z-index'), 10));
+ });
+ allow = parseInt($dialog.css('z-index'), 10) > maxZ;
+ } else {
+ allow = true;
+ }
+ }
+ return allow;
+ });
+ }, 1);
+
+ // allow closing by pressing the escape key
+ $(document).bind('keydown.dialog-overlay', function(e) {
+ var ESC = 27;
+ (e.keyCode && e.keyCode == ESC && dialog.close());
+ });
+
+ // handle window resize
+ $(window).bind('resize.dialog-overlay', $.ui.dialog.overlay.resize);
+ }
+
+ var $el = $('<div/>').appendTo(document.body)
+ .addClass('ui-dialog-overlay').css($.extend({
+ borderWidth: 0, margin: 0, padding: 0,
+ position: 'absolute', top: 0, left: 0,
+ width: this.width(),
+ height: this.height()
+ }, dialog.options.overlay));
+
+ (dialog.options.bgiframe && $.fn.bgiframe && $el.bgiframe());
+
+ this.instances.push($el);
+ return $el;
+ },
+
+ destroy: function($el) {
+ this.instances.splice($.inArray(this.instances, $el), 1);
+
+ if (this.instances.length === 0) {
+ $('a, :input').add([document, window]).unbind('.dialog-overlay');
+ }
+
+ $el.remove();
+ },
+
+ height: function() {
+ if ($.browser.msie && $.browser.version < 7) {
+ var scrollHeight = Math.max(
+ document.documentElement.scrollHeight,
+ document.body.scrollHeight
+ );
+ var offsetHeight = Math.max(
+ document.documentElement.offsetHeight,
+ document.body.offsetHeight
+ );
+
+ if (scrollHeight < offsetHeight) {
+ return $(window).height() + 'px';
+ } else {
+ return scrollHeight + 'px';
+ }
+ } else {
+ return $(document).height() + 'px';
+ }
+ },
+
+ width: function() {
+ if ($.browser.msie && $.browser.version < 7) {
+ var scrollWidth = Math.max(
+ document.documentElement.scrollWidth,
+ document.body.scrollWidth
+ );
+ var offsetWidth = Math.max(
+ document.documentElement.offsetWidth,
+ document.body.offsetWidth
+ );
+
+ if (scrollWidth < offsetWidth) {
+ return $(window).width() + 'px';
+ } else {
+ return scrollWidth + 'px';
+ }
+ } else {
+ return $(document).width() + 'px';
+ }
+ },
+
+ resize: function() {
+ /* If the dialog is draggable and the user drags it past the
+ * right edge of the window, the document becomes wider so we
+ * need to stretch the overlay. If the user then drags the
+ * dialog back to the left, the document will become narrower,
+ * so we need to shrink the overlay to the appropriate size.
+ * This is handled by shrinking the overlay before setting it
+ * to the full document size.
+ */
+ var $overlays = $([]);
+ $.each($.ui.dialog.overlay.instances, function() {
+ $overlays = $overlays.add(this);
+ });
+
+ $overlays.css({
+ width: 0,
+ height: 0
+ }).css({
+ width: $.ui.dialog.overlay.width(),
+ height: $.ui.dialog.overlay.height()
+ });
+ }
+});
+
+$.extend($.ui.dialog.overlay.prototype, {
+ destroy: function() {
+ $.ui.dialog.overlay.destroy(this.$el);
+ }
+});
+
+})(jQuery);
+/*
+ * jQuery UI Slider
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Slider
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.fn.unwrap = $.fn.unwrap || function(expr) {
+ return this.each(function(){
+ $(this).parents(expr).eq(0).after(this).remove();
+ });
+};
+
+$.widget("ui.slider", {
+ plugins: {},
+ ui: function(e) {
+ return {
+ options: this.options,
+ handle: this.currentHandle,
+ value: this.options.axis != "both" || !this.options.axis ? Math.round(this.value(null,this.options.axis == "vertical" ? "y" : "x")) : {
+ x: Math.round(this.value(null,"x")),
+ y: Math.round(this.value(null,"y"))
+ },
+ range: this.getRange()
+ };
+ },
+ propagate: function(n,e) {
+ $.ui.plugin.call(this, n, [e, this.ui()]);
+ this.element.triggerHandler(n == "slide" ? n : "slide"+n, [e, this.ui()], this.options[n]);
+ },
+ destroy: function() {
+ this.element
+ .removeClass("ui-slider ui-slider-disabled")
+ .removeData("slider")
+ .unbind(".slider");
+ this.handle
+ .unwrap("a");
+ this.handle.each(function() {
+ $(this).data("mouse").mouseDestroy();
+ });
+ this.generated && this.generated.remove();
+ },
+ setData: function(key, value) {
+ $.widget.prototype.setData.apply(this, arguments);
+ if (/min|max|steps/.test(key)) {
+ this.initBoundaries();
+ }
+ },
+
+ init: function() {
+
+ var self = this;
+ this.element.addClass("ui-slider");
+ this.initBoundaries();
+
+ // Initialize mouse and key events for interaction
+ this.handle = $(this.options.handle, this.element);
+ if (!this.handle.length) {
+ self.handle = self.generated = $(self.options.handles || [0]).map(function() {
+ var handle = $("<div/>").addClass("ui-slider-handle").appendTo(self.element);
+ if (this.id)
+ handle.attr("id", this.id);
+ return handle[0];
+ });
+ }
+
+
+ var handleclass = function(el) {
+ this.element = $(el);
+ this.element.data("mouse", this);
+ this.options = self.options;
+
+ this.element.bind("mousedown", function() {
+ if(self.currentHandle) this.blur(self.currentHandle);
+ self.focus(this,1);
+ });
+
+ this.mouseInit();
+ };
+
+ $.extend(handleclass.prototype, $.ui.mouse, {
+ mouseStart: function(e) { return self.start.call(self, e, this.element[0]); },
+ mouseStop: function(e) { return self.stop.call(self, e, this.element[0]); },
+ mouseDrag: function(e) { return self.drag.call(self, e, this.element[0]); },
+ mouseCapture: function() { return true; },
+ trigger: function(e) { this.mouseDown(e); }
+ });
+
+
+ $(this.handle)
+ .each(function() {
+ new handleclass(this);
+ })
+ .wrap('<a href="javascript:void(0)" style="cursor:default;"></a>')
+ .parent()
+ .bind('focus', function(e) { self.focus(this.firstChild); })
+ .bind('blur', function(e) { self.blur(this.firstChild); })
+ .bind('keydown', function(e) { if(!self.options.noKeyboard) self.keydown(e.keyCode, this.firstChild); })
+ ;
+
+ // Bind the click to the slider itself
+ this.element.bind('mousedown.slider', function(e) {
+ self.click.apply(self, [e]);
+ self.currentHandle.data("mouse").trigger(e);
+ self.firstValue = self.firstValue + 1; //This is for always triggering the change event
+ });
+
+ // Move the first handle to the startValue
+ $.each(this.options.handles || [], function(index, handle) {
+ self.moveTo(handle.start, index, true);
+ });
+ if (!isNaN(this.options.startValue))
+ this.moveTo(this.options.startValue, 0, true);
+
+ this.previousHandle = $(this.handle[0]); //set the previous handle to the first to allow clicking before selecting the handle
+ if(this.handle.length == 2 && this.options.range) this.createRange();
+ },
+ initBoundaries: function() {
+
+ var element = this.element[0], o = this.options;
+ this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
+
+ $.extend(o, {
+ axis: o.axis || (element.offsetWidth < element.offsetHeight ? 'vertical' : 'horizontal'),
+ max: !isNaN(parseInt(o.max,10)) ? { x: parseInt(o.max, 10), y: parseInt(o.max, 10) } : ({ x: o.max && o.max.x || 100, y: o.max && o.max.y || 100 }),
+ min: !isNaN(parseInt(o.min,10)) ? { x: parseInt(o.min, 10), y: parseInt(o.min, 10) } : ({ x: o.min && o.min.x || 0, y: o.min && o.min.y || 0 })
+ });
+ //Prepare the real maxValue
+ o.realMax = {
+ x: o.max.x - o.min.x,
+ y: o.max.y - o.min.y
+ };
+ //Calculate stepping based on steps
+ o.stepping = {
+ x: o.stepping && o.stepping.x || parseInt(o.stepping, 10) || (o.steps ? o.realMax.x/(o.steps.x || parseInt(o.steps, 10) || o.realMax.x) : 0),
+ y: o.stepping && o.stepping.y || parseInt(o.stepping, 10) || (o.steps ? o.realMax.y/(o.steps.y || parseInt(o.steps, 10) || o.realMax.y) : 0)
+ };
+ },
+
+
+ keydown: function(keyCode, handle) {
+ if(/(37|38|39|40)/.test(keyCode)) {
+ this.moveTo({
+ x: /(37|39)/.test(keyCode) ? (keyCode == 37 ? '-' : '+') + '=' + this.oneStep("x") : 0,
+ y: /(38|40)/.test(keyCode) ? (keyCode == 38 ? '-' : '+') + '=' + this.oneStep("y") : 0
+ }, handle);
+ }
+ },
+ focus: function(handle,hard) {
+ this.currentHandle = $(handle).addClass('ui-slider-handle-active');
+ if (hard)
+ this.currentHandle.parent()[0].focus();
+ },
+ blur: function(handle) {
+ $(handle).removeClass('ui-slider-handle-active');
+ if(this.currentHandle && this.currentHandle[0] == handle) { this.previousHandle = this.currentHandle; this.currentHandle = null; };
+ },
+ click: function(e) {
+ // This method is only used if:
+ // - The user didn't click a handle
+ // - The Slider is not disabled
+ // - There is a current, or previous selected handle (otherwise we wouldn't know which one to move)
+
+ var pointer = [e.pageX,e.pageY];
+
+ var clickedHandle = false;
+ this.handle.each(function() {
+ if(this == e.target)
+ clickedHandle = true;
+ });
+ if (clickedHandle || this.options.disabled || !(this.currentHandle || this.previousHandle))
+ return;
+
+ // If a previous handle was focussed, focus it again
+ if (!this.currentHandle && this.previousHandle)
+ this.focus(this.previousHandle, true);
+
+ // propagate only for distance > 0, otherwise propagation is done my drag
+ this.offset = this.element.offset();
+
+ this.moveTo({
+ y: this.convertValue(e.pageY - this.offset.top - this.currentHandle[0].offsetHeight/2, "y"),
+ x: this.convertValue(e.pageX - this.offset.left - this.currentHandle[0].offsetWidth/2, "x")
+ }, null, !this.options.distance);
+ },
+
+
+
+ createRange: function() {
+ this.rangeElement = $('<div></div>')
+ .addClass('ui-slider-range')
+ .css({ position: 'absolute' })
+ .appendTo(this.element);
+ this.updateRange();
+ },
+ updateRange: function() {
+ var prop = this.options.axis == "vertical" ? "top" : "left";
+ var size = this.options.axis == "vertical" ? "height" : "width";
+ this.rangeElement.css(prop, (parseInt($(this.handle[0]).css(prop),10) || 0) + this.handleSize(0, this.options.axis == "vertical" ? "y" : "x")/2);
+ this.rangeElement.css(size, (parseInt($(this.handle[1]).css(prop),10) || 0) - (parseInt($(this.handle[0]).css(prop),10) || 0));
+ },
+ getRange: function() {
+ return this.rangeElement ? this.convertValue(parseInt(this.rangeElement.css(this.options.axis == "vertical" ? "height" : "width"),10), this.options.axis == "vertical" ? "y" : "x") : null;
+ },
+
+ handleIndex: function() {
+ return this.handle.index(this.currentHandle[0]);
+ },
+ value: function(handle, axis) {
+ if(this.handle.length == 1) this.currentHandle = this.handle;
+ if(!axis) axis = this.options.axis == "vertical" ? "y" : "x";
+
+ var curHandle = $(handle != undefined && handle !== null ? this.handle[handle] || handle : this.currentHandle);
+
+ if(curHandle.data("mouse").sliderValue) {
+ return parseInt(curHandle.data("mouse").sliderValue[axis],10);
+ } else {
+ return parseInt(((parseInt(curHandle.css(axis == "x" ? "left" : "top"),10) / (this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(handle,axis))) * this.options.realMax[axis]) + this.options.min[axis],10);
+ }
+
+ },
+ convertValue: function(value,axis) {
+ return this.options.min[axis] + (value / (this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis))) * this.options.realMax[axis];
+ },
+
+ translateValue: function(value,axis) {
+ return ((value - this.options.min[axis]) / this.options.realMax[axis]) * (this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis));
+ },
+ translateRange: function(value,axis) {
+ if (this.rangeElement) {
+ if (this.currentHandle[0] == this.handle[0] && value >= this.translateValue(this.value(1),axis))
+ value = this.translateValue(this.value(1,axis) - this.oneStep(axis), axis);
+ if (this.currentHandle[0] == this.handle[1] && value <= this.translateValue(this.value(0),axis))
+ value = this.translateValue(this.value(0,axis) + this.oneStep(axis), axis);
+ }
+ if (this.options.handles) {
+ var handle = this.options.handles[this.handleIndex()];
+ if (value < this.translateValue(handle.min,axis)) {
+ value = this.translateValue(handle.min,axis);
+ } else if (value > this.translateValue(handle.max,axis)) {
+ value = this.translateValue(handle.max,axis);
+ }
+ }
+ return value;
+ },
+ translateLimits: function(value,axis) {
+ if (value >= this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis))
+ value = this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis);
+ if (value <= 0)
+ value = 0;
+ return value;
+ },
+ handleSize: function(handle,axis) {
+ return $(handle != undefined && handle !== null ? this.handle[handle] : this.currentHandle)[0]["offset"+(axis == "x" ? "Width" : "Height")];
+ },
+ oneStep: function(axis) {
+ return this.options.stepping[axis] || 1;
+ },
+
+
+ start: function(e, handle) {
+
+ var o = this.options;
+ if(o.disabled) return false;
+
+ // Prepare the outer size
+ this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
+
+ // This is a especially ugly fix for strange blur events happening on mousemove events
+ if (!this.currentHandle)
+ this.focus(this.previousHandle, true);
+
+ this.offset = this.element.offset();
+
+ this.handleOffset = this.currentHandle.offset();
+ this.clickOffset = { top: e.pageY - this.handleOffset.top, left: e.pageX - this.handleOffset.left };
+
+ this.firstValue = this.value();
+
+ this.propagate('start', e);
+ this.drag(e, handle);
+ return true;
+
+ },
+ stop: function(e) {
+ this.propagate('stop', e);
+ if (this.firstValue != this.value())
+ this.propagate('change', e);
+ // This is a especially ugly fix for strange blur events happening on mousemove events
+ this.focus(this.currentHandle, true);
+ return false;
+ },
+ drag: function(e, handle) {
+
+ var o = this.options;
+ var position = { top: e.pageY - this.offset.top - this.clickOffset.top, left: e.pageX - this.offset.left - this.clickOffset.left};
+ if(!this.currentHandle) this.focus(this.previousHandle, true); //This is a especially ugly fix for strange blur events happening on mousemove events
+
+ position.left = this.translateLimits(position.left, "x");
+ position.top = this.translateLimits(position.top, "y");
+
+ if (o.stepping.x) {
+ var value = this.convertValue(position.left, "x");
+ value = Math.round(value / o.stepping.x) * o.stepping.x;
+ position.left = this.translateValue(value, "x");
+ }
+ if (o.stepping.y) {
+ var value = this.convertValue(position.top, "y");
+ value = Math.round(value / o.stepping.y) * o.stepping.y;
+ position.top = this.translateValue(value, "y");
+ }
+
+ position.left = this.translateRange(position.left, "x");
+ position.top = this.translateRange(position.top, "y");
+
+ if(o.axis != "vertical") this.currentHandle.css({ left: position.left });
+ if(o.axis != "horizontal") this.currentHandle.css({ top: position.top });
+
+ //Store the slider's value
+ this.currentHandle.data("mouse").sliderValue = {
+ x: Math.round(this.convertValue(position.left, "x")) || 0,
+ y: Math.round(this.convertValue(position.top, "y")) || 0
+ };
+
+ if (this.rangeElement)
+ this.updateRange();
+ this.propagate('slide', e);
+ return false;
+ },
+
+ moveTo: function(value, handle, noPropagation) {
+
+ var o = this.options;
+
+ // Prepare the outer size
+ this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
+
+ //If no handle has been passed, no current handle is available and we have multiple handles, return false
+ if (handle == undefined && !this.currentHandle && this.handle.length != 1)
+ return false;
+
+ //If only one handle is available, use it
+ if (handle == undefined && !this.currentHandle)
+ handle = 0;
+
+ if (handle != undefined)
+ this.currentHandle = this.previousHandle = $(this.handle[handle] || handle);
+
+
+ if(value.x !== undefined && value.y !== undefined) {
+ var x = value.x, y = value.y;
+ } else {
+ var x = value, y = value;
+ }
+
+ if(x !== undefined && x.constructor != Number) {
+ var me = /^\-\=/.test(x), pe = /^\+\=/.test(x);
+ if(me || pe) {
+ x = this.value(null, "x") + parseInt(x.replace(me ? '=' : '+=', ''), 10);
+ } else {
+ x = isNaN(parseInt(x, 10)) ? undefined : parseInt(x, 10);
+ }
+ }
+
+ if(y !== undefined && y.constructor != Number) {
+ var me = /^\-\=/.test(y), pe = /^\+\=/.test(y);
+ if(me || pe) {
+ y = this.value(null, "y") + parseInt(y.replace(me ? '=' : '+=', ''), 10);
+ } else {
+ y = isNaN(parseInt(y, 10)) ? undefined : parseInt(y, 10);
+ }
+ }
+
+ if(o.axis != "vertical" && x !== undefined) {
+ if(o.stepping.x) x = Math.round(x / o.stepping.x) * o.stepping.x;
+ x = this.translateValue(x, "x");
+ x = this.translateLimits(x, "x");
+ x = this.translateRange(x, "x");
+ this.currentHandle.css({ left: x });
+ }
+
+ if(o.axis != "horizontal" && y !== undefined) {
+ if(o.stepping.y) y = Math.round(y / o.stepping.y) * o.stepping.y;
+ y = this.translateValue(y, "y");
+ y = this.translateLimits(y, "y");
+ y = this.translateRange(y, "y");
+ this.currentHandle.css({ top: y });
+ }
+
+ if (this.rangeElement)
+ this.updateRange();
+
+ //Store the slider's value
+ this.currentHandle.data("mouse").sliderValue = {
+ x: Math.round(this.convertValue(x, "x")) || 0,
+ y: Math.round(this.convertValue(y, "y")) || 0
+ };
+
+ if (!noPropagation) {
+ this.propagate('start', null);
+ this.propagate('stop', null);
+ this.propagate('change', null);
+ this.propagate("slide", null);
+ }
+ }
+});
+
+$.ui.slider.getter = "value";
+
+$.ui.slider.defaults = {
+ handle: ".ui-slider-handle",
+ distance: 1
+};
+
+})(jQuery);
+/*
+ * jQuery UI Tabs
+ *
+ * Copyright (c) 2007, 2008 Klaus Hartl (stilbuero.de)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Tabs
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.widget("ui.tabs", {
+ init: function() {
+ this.options.event += '.tabs'; // namespace event
+
+ // create tabs
+ this.tabify(true);
+ },
+ setData: function(key, value) {
+ if ((/^selected/).test(key))
+ this.select(value);
+ else {
+ this.options[key] = value;
+ this.tabify();
+ }
+ },
+ length: function() {
+ return this.$tabs.length;
+ },
+ tabId: function(a) {
+ return a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '')
+ || this.options.idPrefix + $.data(a);
+ },
+ ui: function(tab, panel) {
+ return {
+ options: this.options,
+ tab: tab,
+ panel: panel
+ };
+ },
+ tabify: function(init) {
+
+ this.$lis = $('li:has(a[href])', this.element);
+ this.$tabs = this.$lis.map(function() { return $('a', this)[0]; });
+ this.$panels = $([]);
+
+ var self = this, o = this.options;
+
+ this.$tabs.each(function(i, a) {
+ // inline tab
+ if (a.hash && a.hash.replace('#', '')) // Safari 2 reports '#' for an empty hash
+ self.$panels = self.$panels.add(a.hash);
+ // remote tab
+ else if ($(a).attr('href') != '#') { // prevent loading the page itself if href is just "#"
+ $.data(a, 'href.tabs', a.href); // required for restore on destroy
+ $.data(a, 'load.tabs', a.href); // mutable
+ var id = self.tabId(a);
+ a.href = '#' + id;
+ var $panel = $('#' + id);
+ if (!$panel.length) {
+ $panel = $(o.panelTemplate).attr('id', id).addClass(o.panelClass)
+ .insertAfter( self.$panels[i - 1] || self.element );
+ $panel.data('destroy.tabs', true);
+ }
+ self.$panels = self.$panels.add( $panel );
+ }
+ // invalid tab href
+ else
+ o.disabled.push(i + 1);
+ });
+
+ if (init) {
+
+ // attach necessary classes for styling if not present
+ this.element.addClass(o.navClass);
+ this.$panels.each(function() {
+ var $this = $(this);
+ $this.addClass(o.panelClass);
+ });
+
+ // Selected tab
+ // use "selected" option or try to retrieve:
+ // 1. from fragment identifier in url
+ // 2. from cookie
+ // 3. from selected class attribute on <li>
+ if (o.selected === undefined) {
+ if (location.hash) {
+ this.$tabs.each(function(i, a) {
+ if (a.hash == location.hash) {
+ o.selected = i;
+ // prevent page scroll to fragment
+ if ($.browser.msie || $.browser.opera) { // && !o.remote
+ var $toShow = $(location.hash), toShowId = $toShow.attr('id');
+ $toShow.attr('id', '');
+ setTimeout(function() {
+ $toShow.attr('id', toShowId); // restore id
+ }, 500);
+ }
+ scrollTo(0, 0);
+ return false; // break
+ }
+ });
+ }
+ else if (o.cookie) {
+ var index = parseInt($.cookie('ui-tabs' + $.data(self.element)),10);
+ if (index && self.$tabs[index])
+ o.selected = index;
+ }
+ else if (self.$lis.filter('.' + o.selectedClass).length)
+ o.selected = self.$lis.index( self.$lis.filter('.' + o.selectedClass)[0] );
+ }
+ o.selected = o.selected === null || o.selected !== undefined ? o.selected : 0; // first tab selected by default
+
+ // Take disabling tabs via class attribute from HTML
+ // into account and update option properly.
+ // A selected tab cannot become disabled.
+ o.disabled = $.unique(o.disabled.concat(
+ $.map(this.$lis.filter('.' + o.disabledClass),
+ function(n, i) { return self.$lis.index(n); } )
+ )).sort();
+ if ($.inArray(o.selected, o.disabled) != -1)
+ o.disabled.splice($.inArray(o.selected, o.disabled), 1);
+
+ // highlight selected tab
+ this.$panels.addClass(o.hideClass);
+ this.$lis.removeClass(o.selectedClass);
+ if (o.selected !== null) {
+ this.$panels.eq(o.selected).show().removeClass(o.hideClass); // use show and remove class to show in any case no matter how it has been hidden before
+ this.$lis.eq(o.selected).addClass(o.selectedClass);
+
+ // seems to be expected behavior that the show callback is fired
+ var onShow = function() {
+ $(self.element).triggerHandler('tabsshow',
+ [self.ui(self.$tabs[o.selected], self.$panels[o.selected])], o.show);
+ };
+
+ // load if remote tab
+ if ($.data(this.$tabs[o.selected], 'load.tabs'))
+ this.load(o.selected, onShow);
+ // just trigger show event
+ else
+ onShow();
+
+ }
+
+ // clean up to avoid memory leaks in certain versions of IE 6
+ $(window).bind('unload', function() {
+ self.$tabs.unbind('.tabs');
+ self.$lis = self.$tabs = self.$panels = null;
+ });
+
+ }
+
+ // disable tabs
+ for (var i = 0, li; li = this.$lis[i]; i++)
+ $(li)[$.inArray(i, o.disabled) != -1 && !$(li).hasClass(o.selectedClass) ? 'addClass' : 'removeClass'](o.disabledClass);
+
+ // reset cache if switching from cached to not cached
+ if (o.cache === false)
+ this.$tabs.removeData('cache.tabs');
+
+ // set up animations
+ var hideFx, showFx, baseFx = { 'min-width': 0, duration: 1 }, baseDuration = 'normal';
+ if (o.fx && o.fx.constructor == Array)
+ hideFx = o.fx[0] || baseFx, showFx = o.fx[1] || baseFx;
+ else
+ hideFx = showFx = o.fx || baseFx;
+
+ // reset some styles to maintain print style sheets etc.
+ var resetCSS = { display: '', overflow: '', height: '' };
+ if (!$.browser.msie) // not in IE to prevent ClearType font issue
+ resetCSS.opacity = '';
+
+ // Hide a tab, animation prevents browser scrolling to fragment,
+ // $show is optional.
+ function hideTab(clicked, $hide, $show) {
+ $hide.animate(hideFx, hideFx.duration || baseDuration, function() { //
+ $hide.addClass(o.hideClass).css(resetCSS); // maintain flexible height and accessibility in print etc.
+ if ($.browser.msie && hideFx.opacity)
+ $hide[0].style.filter = '';
+ if ($show)
+ showTab(clicked, $show, $hide);
+ });
+ }
+
+ // Show a tab, animation prevents browser scrolling to fragment,
+ // $hide is optional.
+ function showTab(clicked, $show, $hide) {
+ if (showFx === baseFx)
+ $show.css('display', 'block'); // prevent occasionally occuring flicker in Firefox cause by gap between showing and hiding the tab panels
+ $show.animate(showFx, showFx.duration || baseDuration, function() {
+ $show.removeClass(o.hideClass).css(resetCSS); // maintain flexible height and accessibility in print etc.
+ if ($.browser.msie && showFx.opacity)
+ $show[0].style.filter = '';
+
+ // callback
+ $(self.element).triggerHandler('tabsshow',
+ [self.ui(clicked, $show[0])], o.show);
+
+ });
+ }
+
+ // switch a tab
+ function switchTab(clicked, $li, $hide, $show) {
+ /*if (o.bookmarkable && trueClick) { // add to history only if true click occured, not a triggered click
+ $.ajaxHistory.update(clicked.hash);
+ }*/
+ $li.addClass(o.selectedClass)
+ .siblings().removeClass(o.selectedClass);
+ hideTab(clicked, $hide, $show);
+ }
+
+ // attach tab event handler, unbind to avoid duplicates from former tabifying...
+ this.$tabs.unbind('.tabs').bind(o.event, function() {
+
+ //var trueClick = e.clientX; // add to history only if true click occured, not a triggered click
+ var $li = $(this).parents('li:eq(0)'),
+ $hide = self.$panels.filter(':visible'),
+ $show = $(this.hash);
+
+ // If tab is already selected and not unselectable or tab disabled or
+ // or is already loading or click callback returns false stop here.
+ // Check if click handler returns false last so that it is not executed
+ // for a disabled or loading tab!
+ if (($li.hasClass(o.selectedClass) && !o.unselect)
+ || $li.hasClass(o.disabledClass)
+ || $(this).hasClass(o.loadingClass)
+ || $(self.element).triggerHandler('tabsselect', [self.ui(this, $show[0])], o.select) === false
+ ) {
+ this.blur();
+ return false;
+ }
+
+ self.options.selected = self.$tabs.index(this);
+
+ // if tab may be closed
+ if (o.unselect) {
+ if ($li.hasClass(o.selectedClass)) {
+ self.options.selected = null;
+ $li.removeClass(o.selectedClass);
+ self.$panels.stop();
+ hideTab(this, $hide);
+ this.blur();
+ return false;
+ } else if (!$hide.length) {
+ self.$panels.stop();
+ var a = this;
+ self.load(self.$tabs.index(this), function() {
+ $li.addClass(o.selectedClass).addClass(o.unselectClass);
+ showTab(a, $show);
+ });
+ this.blur();
+ return false;
+ }
+ }
+
+ if (o.cookie)
+ $.cookie('ui-tabs' + $.data(self.element), self.options.selected, o.cookie);
+
+ // stop possibly running animations
+ self.$panels.stop();
+
+ // show new tab
+ if ($show.length) {
+
+ // prevent scrollbar scrolling to 0 and than back in IE7, happens only if bookmarking/history is enabled
+ /*if ($.browser.msie && o.bookmarkable) {
+ var showId = this.hash.replace('#', '');
+ $show.attr('id', '');
+ setTimeout(function() {
+ $show.attr('id', showId); // restore id
+ }, 0);
+ }*/
+
+ var a = this;
+ self.load(self.$tabs.index(this), $hide.length ?
+ function() {
+ switchTab(a, $li, $hide, $show);
+ } :
+ function() {
+ $li.addClass(o.selectedClass);
+ showTab(a, $show);
+ }
+ );
+
+ // Set scrollbar to saved position - need to use timeout with 0 to prevent browser scroll to target of hash
+ /*var scrollX = window.pageXOffset || document.documentElement && document.documentElement.scrollLeft || document.body.scrollLeft || 0;
+ var scrollY = window.pageYOffset || document.documentElement && document.documentElement.scrollTop || document.body.scrollTop || 0;
+ setTimeout(function() {
+ scrollTo(scrollX, scrollY);
+ }, 0);*/
+
+ } else
+ throw 'jQuery UI Tabs: Mismatching fragment identifier.';
+
+ // Prevent IE from keeping other link focussed when using the back button
+ // and remove dotted border from clicked link. This is controlled in modern
+ // browsers via CSS, also blur removes focus from address bar in Firefox
+ // which can become a usability and annoying problem with tabsRotate.
+ if ($.browser.msie)
+ this.blur();
+
+ //return o.bookmarkable && !!trueClick; // convert trueClick == undefined to Boolean required in IE
+ return false;
+
+ });
+
+ // disable click if event is configured to something else
+ if (!(/^click/).test(o.event))
+ this.$tabs.bind('click.tabs', function() { return false; });
+
+ },
+ add: function(url, label, index) {
+ if (index == undefined)
+ index = this.$tabs.length; // append by default
+
+ var o = this.options;
+ var $li = $(o.tabTemplate.replace(/#\{href\}/g, url).replace(/#\{label\}/g, label));
+ $li.data('destroy.tabs', true);
+
+ var id = url.indexOf('#') == 0 ? url.replace('#', '') : this.tabId( $('a:first-child', $li)[0] );
+
+ // try to find an existing element before creating a new one
+ var $panel = $('#' + id);
+ if (!$panel.length) {
+ $panel = $(o.panelTemplate).attr('id', id)
+ .addClass(o.hideClass)
+ .data('destroy.tabs', true);
+ }
+ $panel.addClass(o.panelClass);
+ if (index >= this.$lis.length) {
+ $li.appendTo(this.element);
+ $panel.appendTo(this.element[0].parentNode);
+ } else {
+ $li.insertBefore(this.$lis[index]);
+ $panel.insertBefore(this.$panels[index]);
+ }
+
+ o.disabled = $.map(o.disabled,
+ function(n, i) { return n >= index ? ++n : n });
+
+ this.tabify();
+
+ if (this.$tabs.length == 1) {
+ $li.addClass(o.selectedClass);
+ $panel.removeClass(o.hideClass);
+ var href = $.data(this.$tabs[0], 'load.tabs');
+ if (href)
+ this.load(index, href);
+ }
+
+ // callback
+ this.element.triggerHandler('tabsadd',
+ [this.ui(this.$tabs[index], this.$panels[index])], o.add
+ );
+ },
+ remove: function(index) {
+ var o = this.options, $li = this.$lis.eq(index).remove(),
+ $panel = this.$panels.eq(index).remove();
+
+ // If selected tab was removed focus tab to the right or
+ // in case the last tab was removed the tab to the left.
+ if ($li.hasClass(o.selectedClass) && this.$tabs.length > 1)
+ this.select(index + (index + 1 < this.$tabs.length ? 1 : -1));
+
+ o.disabled = $.map($.grep(o.disabled, function(n, i) { return n != index; }),
+ function(n, i) { return n >= index ? --n : n });
+
+ this.tabify();
+
+ // callback
+ this.element.triggerHandler('tabsremove',
+ [this.ui($li.find('a')[0], $panel[0])], o.remove
+ );
+ },
+ enable: function(index) {
+ var o = this.options;
+ if ($.inArray(index, o.disabled) == -1)
+ return;
+
+ var $li = this.$lis.eq(index).removeClass(o.disabledClass);
+ if ($.browser.safari) { // fix disappearing tab (that used opacity indicating disabling) after enabling in Safari 2...
+ $li.css('display', 'inline-block');
+ setTimeout(function() {
+ $li.css('display', 'block');
+ }, 0);
+ }
+
+ o.disabled = $.grep(o.disabled, function(n, i) { return n != index; });
+
+ // callback
+ this.element.triggerHandler('tabsenable',
+ [this.ui(this.$tabs[index], this.$panels[index])], o.enable
+ );
+
+ },
+ disable: function(index) {
+ var self = this, o = this.options;
+ if (index != o.selected) { // cannot disable already selected tab
+ this.$lis.eq(index).addClass(o.disabledClass);
+
+ o.disabled.push(index);
+ o.disabled.sort();
+
+ // callback
+ this.element.triggerHandler('tabsdisable',
+ [this.ui(this.$tabs[index], this.$panels[index])], o.disable
+ );
+ }
+ },
+ select: function(index) {
+ if (typeof index == 'string')
+ index = this.$tabs.index( this.$tabs.filter('[href$=' + index + ']')[0] );
+ this.$tabs.eq(index).trigger(this.options.event);
+ },
+ load: function(index, callback) { // callback is for internal usage only
+
+ var self = this, o = this.options, $a = this.$tabs.eq(index), a = $a[0],
+ bypassCache = callback == undefined || callback === false, url = $a.data('load.tabs');
+
+ callback = callback || function() {};
+
+ // no remote or from cache - just finish with callback
+ if (!url || !bypassCache && $.data(a, 'cache.tabs')) {
+ callback();
+ return;
+ }
+
+ // load remote from here on
+
+ var inner = function(parent) {
+ var $parent = $(parent), $inner = $parent.find('*:last');
+ return $inner.length && $inner || $parent;
+ };
+ var cleanup = function() {
+ self.$tabs.filter('.' + o.loadingClass).removeClass(o.loadingClass)
+ .each(function() {
+ if (o.spinner)
+ inner(this).parent().html(inner(this).data('label.tabs'));
+ });
+ self.xhr = null;
+ };
+
+ if (o.spinner) {
+ var label = inner(a).html();
+ inner(a).wrapInner('<em></em>')
+ .find('em').data('label.tabs', label).html(o.spinner);
+ }
+
+ var ajaxOptions = $.extend({}, o.ajaxOptions, {
+ url: url,
+ success: function(r, s) {
+ $(a.hash).html(r);
+ cleanup();
+
+ if (o.cache)
+ $.data(a, 'cache.tabs', true); // if loaded once do not load them again
+
+ // callbacks
+ $(self.element).triggerHandler('tabsload',
+ [self.ui(self.$tabs[index], self.$panels[index])], o.load
+ );
+ o.ajaxOptions.success && o.ajaxOptions.success(r, s);
+
+ // This callback is required because the switch has to take
+ // place after loading has completed. Call last in order to
+ // fire load before show callback...
+ callback();
+ }
+ });
+ if (this.xhr) {
+ // terminate pending requests from other tabs and restore tab label
+ this.xhr.abort();
+ cleanup();
+ }
+ $a.addClass(o.loadingClass);
+ setTimeout(function() { // timeout is again required in IE, "wait" for id being restored
+ self.xhr = $.ajax(ajaxOptions);
+ }, 0);
+
+ },
+ url: function(index, url) {
+ this.$tabs.eq(index).removeData('cache.tabs').data('load.tabs', url);
+ },
+ destroy: function() {
+ var o = this.options;
+ this.element.unbind('.tabs')
+ .removeClass(o.navClass).removeData('tabs');
+ this.$tabs.each(function() {
+ var href = $.data(this, 'href.tabs');
+ if (href)
+ this.href = href;
+ var $this = $(this).unbind('.tabs');
+ $.each(['href', 'load', 'cache'], function(i, prefix) {
+ $this.removeData(prefix + '.tabs');
+ });
+ });
+ this.$lis.add(this.$panels).each(function() {
+ if ($.data(this, 'destroy.tabs'))
+ $(this).remove();
+ else
+ $(this).removeClass([o.selectedClass, o.unselectClass,
+ o.disabledClass, o.panelClass, o.hideClass].join(' '));
+ });
+ }
+});
+
+$.ui.tabs.defaults = {
+ // basic setup
+ unselect: false,
+ event: 'click',
+ disabled: [],
+ cookie: null, // e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true }
+ // TODO history: false,
+
+ // Ajax
+ spinner: 'Loading&#8230;',
+ cache: false,
+ idPrefix: 'ui-tabs-',
+ ajaxOptions: {},
+
+ // animations
+ fx: null, // e.g. { height: 'toggle', opacity: 'toggle', duration: 200 }
+
+ // templates
+ tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>',
+ panelTemplate: '<div></div>',
+
+ // CSS classes
+ navClass: 'ui-tabs-nav',
+ selectedClass: 'ui-tabs-selected',
+ unselectClass: 'ui-tabs-unselect',
+ disabledClass: 'ui-tabs-disabled',
+ panelClass: 'ui-tabs-panel',
+ hideClass: 'ui-tabs-hide',
+ loadingClass: 'ui-tabs-loading'
+};
+
+$.ui.tabs.getter = "length";
+
+/*
+ * Tabs Extensions
+ */
+
+/*
+ * Rotate
+ */
+$.extend($.ui.tabs.prototype, {
+ rotation: null,
+ rotate: function(ms, continuing) {
+
+ continuing = continuing || false;
+
+ var self = this, t = this.options.selected;
+
+ function start() {
+ self.rotation = setInterval(function() {
+ t = ++t < self.$tabs.length ? t : 0;
+ self.select(t);
+ }, ms);
+ }
+
+ function stop(e) {
+ if (!e || e.clientX) { // only in case of a true click
+ clearInterval(self.rotation);
+ }
+ }
+
+ // start interval
+ if (ms) {
+ start();
+ if (!continuing)
+ this.$tabs.bind(this.options.event, stop);
+ else
+ this.$tabs.bind(this.options.event, function() {
+ stop();
+ t = self.options.selected;
+ start();
+ });
+ }
+ // stop interval
+ else {
+ stop();
+ this.$tabs.unbind(this.options.event, stop);
+ }
+ }
+});
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/ui.accordion.js b/javascript/libs/jquery/full/ui/ui.accordion.js
new file mode 100644
index 0000000..d167278
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/ui.accordion.js
@@ -0,0 +1,299 @@
+/*
+ * jQuery UI Accordion
+ *
+ * Copyright (c) 2007, 2008 Jörn Zaefferer
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Accordion
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.widget("ui.accordion", {
+ init: function() {
+ var options = this.options;
+
+ if ( options.navigation ) {
+ var current = this.element.find("a").filter(options.navigationFilter);
+ if ( current.length ) {
+ if ( current.filter(options.header).length ) {
+ options.active = current;
+ } else {
+ options.active = current.parent().parent().prev();
+ current.addClass("current");
+ }
+ }
+ }
+
+ // calculate active if not specified, using the first header
+ options.headers = this.element.find(options.header);
+ options.active = findActive(options.headers, options.active);
+
+ // IE7-/Win - Extra vertical space in Lists fixed
+ if ($.browser.msie) {
+ this.element.find('a').css('zoom', '1');
+ }
+
+ if (!this.element.hasClass("ui-accordion")) {
+ this.element.addClass("ui-accordion");
+ $("<span class='ui-accordion-left'/>").insertBefore(options.headers);
+ $("<span class='ui-accordion-right'/>").appendTo(options.headers);
+ options.headers.addClass("ui-accordion-header").attr("tabindex", "0");
+ }
+
+ var maxHeight;
+ if ( options.fillSpace ) {
+ maxHeight = this.element.parent().height();
+ options.headers.each(function() {
+ maxHeight -= $(this).outerHeight();
+ });
+ var maxPadding = 0;
+ options.headers.next().each(function() {
+ maxPadding = Math.max(maxPadding, $(this).innerHeight() - $(this).height());
+ }).height(maxHeight - maxPadding);
+ } else if ( options.autoHeight ) {
+ maxHeight = 0;
+ options.headers.next().each(function() {
+ maxHeight = Math.max(maxHeight, $(this).outerHeight());
+ }).height(maxHeight);
+ }
+
+ options.headers
+ .not(options.active || "")
+ .next()
+ .hide();
+ options.active.parent().andSelf().addClass(options.selectedClass);
+
+ if (options.event) {
+ this.element.bind((options.event) + ".accordion", clickHandler);
+ }
+ },
+ activate: function(index) {
+ // call clickHandler with custom event
+ clickHandler.call(this.element[0], {
+ target: findActive( this.options.headers, index )[0]
+ });
+ },
+ destroy: function() {
+ this.options.headers.next().css("display", "");
+ if ( this.options.fillSpace || this.options.autoHeight ) {
+ this.options.headers.next().css("height", "");
+ }
+ $.removeData(this.element[0], "accordion");
+ this.element.removeClass("ui-accordion").unbind(".accordion");
+ }
+});
+
+function scopeCallback(callback, scope) {
+ return function() {
+ return callback.apply(scope, arguments);
+ };
+};
+
+function completed(cancel) {
+ // if removed while animated data can be empty
+ if (!$.data(this, "accordion")) {
+ return;
+ }
+
+ var instance = $.data(this, "accordion");
+ var options = instance.options;
+ options.running = cancel ? 0 : --options.running;
+ if ( options.running ) {
+ return;
+ }
+ if ( options.clearStyle ) {
+ options.toShow.add(options.toHide).css({
+ height: "",
+ overflow: ""
+ });
+ }
+ $(this).triggerHandler("accordionchange", [options.data], options.change);
+}
+
+function toggle(toShow, toHide, data, clickedActive, down) {
+ var options = $.data(this, "accordion").options;
+ options.toShow = toShow;
+ options.toHide = toHide;
+ options.data = data;
+ var complete = scopeCallback(completed, this);
+
+ // count elements to animate
+ options.running = toHide.size() === 0 ? toShow.size() : toHide.size();
+
+ if ( options.animated ) {
+ if ( !options.alwaysOpen && clickedActive ) {
+ $.ui.accordion.animations[options.animated]({
+ toShow: jQuery([]),
+ toHide: toHide,
+ complete: complete,
+ down: down,
+ autoHeight: options.autoHeight
+ });
+ } else {
+ $.ui.accordion.animations[options.animated]({
+ toShow: toShow,
+ toHide: toHide,
+ complete: complete,
+ down: down,
+ autoHeight: options.autoHeight
+ });
+ }
+ } else {
+ if ( !options.alwaysOpen && clickedActive ) {
+ toShow.toggle();
+ } else {
+ toHide.hide();
+ toShow.show();
+ }
+ complete(true);
+ }
+}
+
+function clickHandler(event) {
+ var options = $.data(this, "accordion").options;
+ if (options.disabled) {
+ return false;
+ }
+
+ // called only when using activate(false) to close all parts programmatically
+ if ( !event.target && !options.alwaysOpen ) {
+ options.active.parent().andSelf().toggleClass(options.selectedClass);
+ var toHide = options.active.next(),
+ data = {
+ options: options,
+ newHeader: jQuery([]),
+ oldHeader: options.active,
+ newContent: jQuery([]),
+ oldContent: toHide
+ },
+ toShow = (options.active = $([]));
+ toggle.call(this, toShow, toHide, data );
+ return false;
+ }
+ // get the click target
+ var clicked = $(event.target);
+
+ // due to the event delegation model, we have to check if one
+ // of the parent elements is our actual header, and find that
+ if ( clicked.parents(options.header).length ) {
+ while ( !clicked.is(options.header) ) {
+ clicked = clicked.parent();
+ }
+ }
+
+ var clickedActive = clicked[0] == options.active[0];
+
+ // if animations are still active, or the active header is the target, ignore click
+ if (options.running || (options.alwaysOpen && clickedActive)) {
+ return false;
+ }
+ if (!clicked.is(options.header)) {
+ return;
+ }
+
+ // switch classes
+ options.active.parent().andSelf().toggleClass(options.selectedClass);
+ if ( !clickedActive ) {
+ clicked.parent().andSelf().addClass(options.selectedClass);
+ }
+
+ // find elements to show and hide
+ var toShow = clicked.next(),
+ toHide = options.active.next(),
+ //data = [clicked, options.active, toShow, toHide],
+ data = {
+ options: options,
+ newHeader: clicked,
+ oldHeader: options.active,
+ newContent: toShow,
+ oldContent: toHide
+ },
+ down = options.headers.index( options.active[0] ) > options.headers.index( clicked[0] );
+
+ options.active = clickedActive ? $([]) : clicked;
+ toggle.call(this, toShow, toHide, data, clickedActive, down );
+
+ return false;
+};
+
+function findActive(headers, selector) {
+ return selector != undefined
+ ? typeof selector == "number"
+ ? headers.filter(":eq(" + selector + ")")
+ : headers.not(headers.not(selector))
+ : selector === false
+ ? $([])
+ : headers.filter(":eq(0)");
+}
+
+$.extend($.ui.accordion, {
+ defaults: {
+ selectedClass: "selected",
+ alwaysOpen: true,
+ animated: 'slide',
+ event: "click",
+ header: "a",
+ autoHeight: true,
+ running: 0,
+ navigationFilter: function() {
+ return this.href.toLowerCase() == location.href.toLowerCase();
+ }
+ },
+ animations: {
+ slide: function(options, additions) {
+ options = $.extend({
+ easing: "swing",
+ duration: 300
+ }, options, additions);
+ if ( !options.toHide.size() ) {
+ options.toShow.animate({height: "show"}, options);
+ return;
+ }
+ var hideHeight = options.toHide.height(),
+ showHeight = options.toShow.height(),
+ difference = showHeight / hideHeight;
+ options.toShow.css({ height: 0, overflow: 'hidden' }).show();
+ options.toHide.filter(":hidden").each(options.complete).end().filter(":visible").animate({height:"hide"},{
+ step: function(now) {
+ var current = (hideHeight - now) * difference;
+ if ($.browser.msie || $.browser.opera) {
+ current = Math.ceil(current);
+ }
+ options.toShow.height( current );
+ },
+ duration: options.duration,
+ easing: options.easing,
+ complete: function() {
+ if ( !options.autoHeight ) {
+ options.toShow.css("height", "auto");
+ }
+ options.complete();
+ }
+ });
+ },
+ bounceslide: function(options) {
+ this.slide(options, {
+ easing: options.down ? "bounceout" : "swing",
+ duration: options.down ? 1000 : 200
+ });
+ },
+ easeslide: function(options) {
+ this.slide(options, {
+ easing: "easeinout",
+ duration: 700
+ });
+ }
+ }
+});
+
+// deprecated, use accordion("activate", index) instead
+$.fn.activate = function(index) {
+ return this.accordion("activate", index);
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/ui.core.js b/javascript/libs/jquery/full/ui/ui.core.js
new file mode 100644
index 0000000..d911728
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/ui.core.js
@@ -0,0 +1,289 @@
+/*
+ * jQuery UI 1.5
+ *
+ * Copyright (c) 2008 Paul Bakaus (ui.jquery.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI
+ *
+ */
+;(function($) {
+
+$.ui = {
+ plugin: {
+ add: function(module, option, set) {
+ var proto = $.ui[module].prototype;
+ for(var i in set) {
+ proto.plugins[i] = proto.plugins[i] || [];
+ proto.plugins[i].push([option, set[i]]);
+ }
+ },
+ call: function(instance, name, args) {
+ var set = instance.plugins[name];
+ if(!set) { return; }
+
+ for (var i = 0; i < set.length; i++) {
+ if (instance.options[set[i][0]]) {
+ set[i][1].apply(instance.element, args);
+ }
+ }
+ }
+ },
+ cssCache: {},
+ css: function(name) {
+ if ($.ui.cssCache[name]) { return $.ui.cssCache[name]; }
+ var tmp = $('<div class="ui-resizable-gen">').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body');
+
+ //if (!$.browser.safari)
+ //tmp.appendTo('body');
+
+ //Opera and Safari set width and height to 0px instead of auto
+ //Safari returns rgba(0,0,0,0) when bgcolor is not set
+ $.ui.cssCache[name] = !!(
+ (!(/auto|default/).test(tmp.css('cursor')) || (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) ||
+ !(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor')))
+ );
+ try { $('body').get(0).removeChild(tmp.get(0)); } catch(e){}
+ return $.ui.cssCache[name];
+ },
+ disableSelection: function(e) {
+ e.unselectable = "on";
+ e.onselectstart = function() { return false; };
+ if (e.style) { e.style.MozUserSelect = "none"; }
+ },
+ enableSelection: function(e) {
+ e.unselectable = "off";
+ e.onselectstart = function() { return true; };
+ if (e.style) { e.style.MozUserSelect = ""; }
+ },
+ hasScroll: function(e, a) {
+ var scroll = /top/.test(a||"top") ? 'scrollTop' : 'scrollLeft', has = false;
+ if (e[scroll] > 0) return true; e[scroll] = 1;
+ has = e[scroll] > 0 ? true : false; e[scroll] = 0;
+ return has;
+ }
+};
+
+
+/** jQuery core modifications and additions **/
+
+var _remove = $.fn.remove;
+$.fn.remove = function() {
+ $("*", this).add(this).trigger("remove");
+ return _remove.apply(this, arguments );
+};
+
+// $.widget is a factory to create jQuery plugins
+// taking some boilerplate code out of the plugin code
+// created by Scott González and Jörn Zaefferer
+function getter(namespace, plugin, method) {
+ var methods = $[namespace][plugin].getter || [];
+ methods = (typeof methods == "string" ? methods.split(/,?\s+/) : methods);
+ return ($.inArray(method, methods) != -1);
+}
+
+$.widget = function(name, prototype) {
+ var namespace = name.split(".")[0];
+ name = name.split(".")[1];
+
+ // create plugin method
+ $.fn[name] = function(options) {
+ var isMethodCall = (typeof options == 'string'),
+ args = Array.prototype.slice.call(arguments, 1);
+
+ if (isMethodCall && getter(namespace, name, options)) {
+ var instance = $.data(this[0], name);
+ return (instance ? instance[options].apply(instance, args)
+ : undefined);
+ }
+
+ return this.each(function() {
+ var instance = $.data(this, name);
+ if (isMethodCall && instance && $.isFunction(instance[options])) {
+ instance[options].apply(instance, args);
+ } else if (!isMethodCall) {
+ $.data(this, name, new $[namespace][name](this, options));
+ }
+ });
+ };
+
+ // create widget constructor
+ $[namespace][name] = function(element, options) {
+ var self = this;
+
+ this.widgetName = name;
+ this.widgetBaseClass = namespace + '-' + name;
+
+ this.options = $.extend({ disabled: false }, $[namespace][name].defaults, options);
+ this.element = $(element)
+ .bind('setData.' + name, function(e, key, value) {
+ return self.setData(key, value);
+ })
+ .bind('getData.' + name, function(e, key) {
+ return self.getData(key);
+ })
+ .bind('remove', function() {
+ return self.destroy();
+ });
+ this.init();
+ };
+
+ // add widget prototype
+ $[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype);
+};
+
+$.widget.prototype = {
+ init: function() {},
+ destroy: function() {
+ this.element.removeData(this.widgetName);
+ },
+
+ getData: function(key) {
+ return this.options[key];
+ },
+ setData: function(key, value) {
+ this.options[key] = value;
+
+ if (key == 'disabled') {
+ this.element[value ? 'addClass' : 'removeClass'](
+ this.widgetBaseClass + '-disabled');
+ }
+ },
+
+ enable: function() {
+ this.setData('disabled', false);
+ },
+ disable: function() {
+ this.setData('disabled', true);
+ }
+};
+
+
+/** Mouse Interaction Plugin **/
+
+$.ui.mouse = {
+ mouseInit: function() {
+ var self = this;
+
+ this.element.bind('mousedown.'+this.widgetName, function(e) {
+ return self.mouseDown(e);
+ });
+
+ // Prevent text selection in IE
+ if ($.browser.msie) {
+ this._mouseUnselectable = this.element.attr('unselectable');
+ this.element.attr('unselectable', 'on');
+ }
+
+ this.started = false;
+ },
+
+ // TODO: make sure destroying one instance of mouse doesn't mess with
+ // other instances of mouse
+ mouseDestroy: function() {
+ this.element.unbind('.'+this.widgetName);
+
+ // Restore text selection in IE
+ ($.browser.msie
+ && this.element.attr('unselectable', this._mouseUnselectable));
+ },
+
+ mouseDown: function(e) {
+ // we may have missed mouseup (out of window)
+ (this._mouseStarted && this.mouseUp(e));
+
+ this._mouseDownEvent = e;
+
+ var self = this,
+ btnIsLeft = (e.which == 1),
+ elIsCancel = (typeof this.options.cancel == "string" ? $(e.target).is(this.options.cancel) : false);
+ if (!btnIsLeft || elIsCancel || !this.mouseCapture(e)) {
+ return true;
+ }
+
+ this._mouseDelayMet = !this.options.delay;
+ if (!this._mouseDelayMet) {
+ this._mouseDelayTimer = setTimeout(function() {
+ self._mouseDelayMet = true;
+ }, this.options.delay);
+ }
+
+ if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) {
+ this._mouseStarted = (this.mouseStart(e) !== false);
+ if (!this._mouseStarted) { e.preventDefault(); return true; }
+ }
+
+ // these delegates are required to keep context
+ this._mouseMoveDelegate = function(e) {
+ return self.mouseMove(e);
+ };
+ this._mouseUpDelegate = function(e) {
+ return self.mouseUp(e);
+ };
+ $(document)
+ .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
+ .bind('mouseup.'+this.widgetName, this._mouseUpDelegate);
+
+ return false;
+ },
+
+ mouseMove: function(e) {
+ // IE mouseup check - mouseup happened when mouse was out of window
+ if ($.browser.msie && !e.button) {
+ return this.mouseUp(e);
+ }
+
+ if (this._mouseStarted) {
+ this.mouseDrag(e);
+ return false;
+ }
+
+ if (this.mouseDistanceMet(e) && this.mouseDelayMet(e)) {
+ this._mouseStarted =
+ (this.mouseStart(this._mouseDownEvent, e) !== false);
+ (this._mouseStarted ? this.mouseDrag(e) : this.mouseUp(e));
+ }
+
+ return !this._mouseStarted;
+ },
+
+ mouseUp: function(e) {
+ $(document)
+ .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate)
+ .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate);
+
+ if (this._mouseStarted) {
+ this._mouseStarted = false;
+ this.mouseStop(e);
+ }
+
+ return false;
+ },
+
+ mouseDistanceMet: function(e) {
+ return (Math.max(
+ Math.abs(this._mouseDownEvent.pageX - e.pageX),
+ Math.abs(this._mouseDownEvent.pageY - e.pageY)
+ ) >= this.options.distance
+ );
+ },
+
+ mouseDelayMet: function(e) {
+ return this._mouseDelayMet;
+ },
+
+ // These are placeholder methods, to be overriden by extending plugin
+ mouseStart: function(e) {},
+ mouseDrag: function(e) {},
+ mouseStop: function(e) {},
+ mouseCapture: function(e) { return true; }
+};
+
+$.ui.mouse.defaults = {
+ cancel: null,
+ distance: 1,
+ delay: 0
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/ui.datepicker.js b/javascript/libs/jquery/full/ui/ui.datepicker.js
new file mode 100644
index 0000000..e467f72
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/ui.datepicker.js
@@ -0,0 +1,1450 @@
+/*
+ * jQuery UI Datepicker
+ *
+ * Copyright (c) 2006, 2007, 2008 Marc Grabanski
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Datepicker
+ *
+ * Depends:
+ * ui.core.js
+ *
+ * Marc Grabanski (m@marcgrabanski.com) and Keith Wood (kbwood@virginbroadband.com.au).
+ */
+
+(function($) { // hide the namespace
+
+/* Date picker manager.
+ Use the singleton instance of this class, $.datepicker, to interact with the date picker.
+ Settings for (groups of) date pickers are maintained in an instance object
+ (DatepickerInstance), allowing multiple different settings on the same page. */
+
+function Datepicker() {
+ this.debug = false; // Change this to true to start debugging
+ this._nextId = 0; // Next ID for a date picker instance
+ this._inst = []; // List of instances indexed by ID
+ this._curInst = null; // The current instance in use
+ this._disabledInputs = []; // List of date picker inputs that have been disabled
+ this._datepickerShowing = false; // True if the popup picker is showing , false if not
+ this._inDialog = false; // True if showing within a "dialog", false if not
+ this.regional = []; // Available regional settings, indexed by language code
+ this.regional[''] = { // Default regional settings
+ clearText: 'Clear', // Display text for clear link
+ clearStatus: 'Erase the current date', // Status text for clear link
+ closeText: 'Close', // Display text for close link
+ closeStatus: 'Close without change', // Status text for close link
+ prevText: '&#x3c;Prev', // Display text for previous month link
+ prevStatus: 'Show the previous month', // Status text for previous month link
+ nextText: 'Next&#x3e;', // Display text for next month link
+ nextStatus: 'Show the next month', // Status text for next month link
+ currentText: 'Today', // Display text for current month link
+ currentStatus: 'Show the current month', // Status text for current month link
+ monthNames: ['January','February','March','April','May','June',
+ 'July','August','September','October','November','December'], // Names of months for drop-down and formatting
+ monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], // For formatting
+ monthStatus: 'Show a different month', // Status text for selecting a month
+ yearStatus: 'Show a different year', // Status text for selecting a year
+ weekHeader: 'Wk', // Header for the week of the year column
+ weekStatus: 'Week of the year', // Status text for the week of the year column
+ dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], // For formatting
+ dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // For formatting
+ dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], // Column headings for days starting at Sunday
+ dayStatus: 'Set DD as first week day', // Status text for the day of the week selection
+ dateStatus: 'Select DD, M d', // Status text for the date selection
+ dateFormat: 'mm/dd/yy', // See format options on parseDate
+ firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
+ initStatus: 'Select a date', // Initial Status text on opening
+ isRTL: false // True if right-to-left language, false if left-to-right
+ };
+ this._defaults = { // Global defaults for all the date picker instances
+ showOn: 'focus', // 'focus' for popup on focus,
+ // 'button' for trigger button, or 'both' for either
+ showAnim: 'show', // Name of jQuery animation for popup
+ defaultDate: null, // Used when field is blank: actual date,
+ // +/-number for offset from today, null for today
+ appendText: '', // Display text following the input box, e.g. showing the format
+ buttonText: '...', // Text for trigger button
+ buttonImage: '', // URL for trigger button image
+ buttonImageOnly: false, // True if the image appears alone, false if it appears on a button
+ closeAtTop: true, // True to have the clear/close at the top,
+ // false to have them at the bottom
+ mandatory: false, // True to hide the Clear link, false to include it
+ hideIfNoPrevNext: false, // True to hide next/previous month links
+ // if not applicable, false to just disable them
+ changeMonth: true, // True if month can be selected directly, false if only prev/next
+ changeYear: true, // True if year can be selected directly, false if only prev/next
+ yearRange: '-10:+10', // Range of years to display in drop-down,
+ // either relative to current year (-nn:+nn) or absolute (nnnn:nnnn)
+ changeFirstDay: true, // True to click on day name to change, false to remain as set
+ showOtherMonths: false, // True to show dates in other months, false to leave blank
+ showWeeks: false, // True to show week of the year, false to omit
+ calculateWeek: this.iso8601Week, // How to calculate the week of the year,
+ // takes a Date and returns the number of the week for it
+ shortYearCutoff: '+10', // Short year values < this are in the current century,
+ // > this are in the previous century,
+ // string value starting with '+' for current year + value
+ showStatus: false, // True to show status bar at bottom, false to not show it
+ statusForDate: this.dateStatus, // Function to provide status text for a date -
+ // takes date and instance as parameters, returns display text
+ minDate: null, // The earliest selectable date, or null for no limit
+ maxDate: null, // The latest selectable date, or null for no limit
+ speed: 'normal', // Speed of display/closure
+ beforeShowDay: null, // Function that takes a date and returns an array with
+ // [0] = true if selectable, false if not,
+ // [1] = custom CSS class name(s) or '', e.g. $.datepicker.noWeekends
+ beforeShow: null, // Function that takes an input field and
+ // returns a set of custom settings for the date picker
+ onSelect: null, // Define a callback function when a date is selected
+ onClose: null, // Define a callback function when the datepicker is closed
+ numberOfMonths: 1, // Number of months to show at a time
+ stepMonths: 1, // Number of months to step back/forward
+ rangeSelect: false, // Allows for selecting a date range on one date picker
+ rangeSeparator: ' - ' // Text between two dates in a range
+ };
+ $.extend(this._defaults, this.regional['']);
+ this._datepickerDiv = $('<div id="ui-datepicker-div"></div>');
+}
+
+$.extend(Datepicker.prototype, {
+ /* Class name added to elements to indicate already configured with a date picker. */
+ markerClassName: 'hasDatepicker',
+
+ /* Debug logging (if enabled). */
+ log: function () {
+ if (this.debug)
+ console.log.apply('', arguments);
+ },
+
+ /* Register a new date picker instance - with custom settings. */
+ _register: function(inst) {
+ var id = this._nextId++;
+ this._inst[id] = inst;
+ return id;
+ },
+
+ /* Retrieve a particular date picker instance based on its ID. */
+ _getInst: function(id) {
+ return this._inst[id] || id;
+ },
+
+ /* Override the default settings for all instances of the date picker.
+ @param settings object - the new settings to use as defaults (anonymous object)
+ @return the manager object */
+ setDefaults: function(settings) {
+ extendRemove(this._defaults, settings || {});
+ return this;
+ },
+
+ /* Attach the date picker to a jQuery selection.
+ @param target element - the target input field or division or span
+ @param settings object - the new settings to use for this date picker instance (anonymous) */
+ _attachDatepicker: function(target, settings) {
+ // check for settings on the control itself - in namespace 'date:'
+ var inlineSettings = null;
+ for (attrName in this._defaults) {
+ var attrValue = target.getAttribute('date:' + attrName);
+ if (attrValue) {
+ inlineSettings = inlineSettings || {};
+ try {
+ inlineSettings[attrName] = eval(attrValue);
+ } catch (err) {
+ inlineSettings[attrName] = attrValue;
+ }
+ }
+ }
+ var nodeName = target.nodeName.toLowerCase();
+ var instSettings = (inlineSettings ?
+ $.extend(settings || {}, inlineSettings || {}) : settings);
+ if (nodeName == 'input') {
+ var inst = (inst && !inlineSettings ? inst :
+ new DatepickerInstance(instSettings, false));
+ this._connectDatepicker(target, inst);
+ } else if (nodeName == 'div' || nodeName == 'span') {
+ var inst = new DatepickerInstance(instSettings, true);
+ this._inlineDatepicker(target, inst);
+ }
+ },
+
+ /* Detach a datepicker from its control.
+ @param target element - the target input field or division or span */
+ _destroyDatepicker: function(target) {
+ var nodeName = target.nodeName.toLowerCase();
+ var calId = target._calId;
+ target._calId = null;
+ var $target = $(target);
+ if (nodeName == 'input') {
+ $target.siblings('.ui-datepicker-append').replaceWith('').end()
+ .siblings('.ui-datepicker-trigger').replaceWith('').end()
+ .removeClass(this.markerClassName)
+ .unbind('focus', this._showDatepicker)
+ .unbind('keydown', this._doKeyDown)
+ .unbind('keypress', this._doKeyPress);
+ var wrapper = $target.parents('.ui-datepicker-wrap');
+ if (wrapper)
+ wrapper.replaceWith(wrapper.html());
+ } else if (nodeName == 'div' || nodeName == 'span')
+ $target.removeClass(this.markerClassName).empty();
+ if ($('input[_calId=' + calId + ']').length == 0)
+ // clean up if last for this ID
+ this._inst[calId] = null;
+ },
+
+ /* Enable the date picker to a jQuery selection.
+ @param target element - the target input field or division or span */
+ _enableDatepicker: function(target) {
+ target.disabled = false;
+ $(target).siblings('button.ui-datepicker-trigger').each(function() { this.disabled = false; }).end()
+ .siblings('img.ui-datepicker-trigger').css({opacity: '1.0', cursor: ''});
+ this._disabledInputs = $.map(this._disabledInputs,
+ function(value) { return (value == target ? null : value); }); // delete entry
+ },
+
+ /* Disable the date picker to a jQuery selection.
+ @param target element - the target input field or division or span */
+ _disableDatepicker: function(target) {
+ target.disabled = true;
+ $(target).siblings('button.ui-datepicker-trigger').each(function() { this.disabled = true; }).end()
+ .siblings('img.ui-datepicker-trigger').css({opacity: '0.5', cursor: 'default'});
+ this._disabledInputs = $.map($.datepicker._disabledInputs,
+ function(value) { return (value == target ? null : value); }); // delete entry
+ this._disabledInputs[$.datepicker._disabledInputs.length] = target;
+ },
+
+ /* Is the first field in a jQuery collection disabled as a datepicker?
+ @param target element - the target input field or division or span
+ @return boolean - true if disabled, false if enabled */
+ _isDisabledDatepicker: function(target) {
+ if (!target)
+ return false;
+ for (var i = 0; i < this._disabledInputs.length; i++) {
+ if (this._disabledInputs[i] == target)
+ return true;
+ }
+ return false;
+ },
+
+ /* Update the settings for a date picker attached to an input field or division.
+ @param target element - the target input field or division or span
+ @param name string - the name of the setting to change or
+ object - the new settings to update
+ @param value any - the new value for the setting (omit if above is an object) */
+ _changeDatepicker: function(target, name, value) {
+ var settings = name || {};
+ if (typeof name == 'string') {
+ settings = {};
+ settings[name] = value;
+ }
+ if (inst = this._getInst(target._calId)) {
+ extendRemove(inst._settings, settings);
+ this._updateDatepicker(inst);
+ }
+ },
+
+ /* Set the dates for a jQuery selection.
+ @param target element - the target input field or division or span
+ @param date Date - the new date
+ @param endDate Date - the new end date for a range (optional) */
+ _setDateDatepicker: function(target, date, endDate) {
+ if (inst = this._getInst(target._calId)) {
+ inst._setDate(date, endDate);
+ this._updateDatepicker(inst);
+ }
+ },
+
+ /* Get the date(s) for the first entry in a jQuery selection.
+ @param target element - the target input field or division or span
+ @return Date - the current date or
+ Date[2] - the current dates for a range */
+ _getDateDatepicker: function(target) {
+ var inst = this._getInst(target._calId);
+ if (inst) {
+ inst._setDateFromField($(target));
+ }
+ return (inst ? inst._getDate() : null);
+ },
+
+ /* Handle keystrokes. */
+ _doKeyDown: function(e) {
+ var inst = $.datepicker._getInst(this._calId);
+ if ($.datepicker._datepickerShowing)
+ switch (e.keyCode) {
+ case 9: $.datepicker._hideDatepicker(null, '');
+ break; // hide on tab out
+ case 13: $.datepicker._selectDay(inst, inst._selectedMonth, inst._selectedYear,
+ $('td.ui-datepicker-days-cell-over', inst._datepickerDiv)[0]);
+ return false; // don't submit the form
+ break; // select the value on enter
+ case 27: $.datepicker._hideDatepicker(null, inst._get('speed'));
+ break; // hide on escape
+ case 33: $.datepicker._adjustDate(inst,
+ (e.ctrlKey ? -1 : -inst._get('stepMonths')), (e.ctrlKey ? 'Y' : 'M'));
+ break; // previous month/year on page up/+ ctrl
+ case 34: $.datepicker._adjustDate(inst,
+ (e.ctrlKey ? +1 : +inst._get('stepMonths')), (e.ctrlKey ? 'Y' : 'M'));
+ break; // next month/year on page down/+ ctrl
+ case 35: if (e.ctrlKey) $.datepicker._clearDate(inst);
+ break; // clear on ctrl+end
+ case 36: if (e.ctrlKey) $.datepicker._gotoToday(inst);
+ break; // current on ctrl+home
+ case 37: if (e.ctrlKey) $.datepicker._adjustDate(inst, -1, 'D');
+ break; // -1 day on ctrl+left
+ case 38: if (e.ctrlKey) $.datepicker._adjustDate(inst, -7, 'D');
+ break; // -1 week on ctrl+up
+ case 39: if (e.ctrlKey) $.datepicker._adjustDate(inst, +1, 'D');
+ break; // +1 day on ctrl+right
+ case 40: if (e.ctrlKey) $.datepicker._adjustDate(inst, +7, 'D');
+ break; // +1 week on ctrl+down
+ }
+ else if (e.keyCode == 36 && e.ctrlKey) // display the date picker on ctrl+home
+ $.datepicker._showDatepicker(this);
+ },
+
+ /* Filter entered characters - based on date format. */
+ _doKeyPress: function(e) {
+ var inst = $.datepicker._getInst(this._calId);
+ var chars = $.datepicker._possibleChars(inst._get('dateFormat'));
+ var chr = String.fromCharCode(e.charCode == undefined ? e.keyCode : e.charCode);
+ return e.ctrlKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1);
+ },
+
+ /* Attach the date picker to an input field. */
+ _connectDatepicker: function(target, inst) {
+ var input = $(target);
+ if (input.is('.' + this.markerClassName))
+ return;
+ var appendText = inst._get('appendText');
+ var isRTL = inst._get('isRTL');
+ if (appendText) {
+ if (isRTL)
+ input.before('<span class="ui-datepicker-append">' + appendText);
+ else
+ input.after('<span class="ui-datepicker-append">' + appendText);
+ }
+ var showOn = inst._get('showOn');
+ if (showOn == 'focus' || showOn == 'both') // pop-up date picker when in the marked field
+ input.focus(this._showDatepicker);
+ if (showOn == 'button' || showOn == 'both') { // pop-up date picker when button clicked
+ input.wrap('<span class="ui-datepicker-wrap">');
+ var buttonText = inst._get('buttonText');
+ var buttonImage = inst._get('buttonImage');
+ var trigger = $(inst._get('buttonImageOnly') ?
+ $('<img>').addClass('ui-datepicker-trigger').attr({ src: buttonImage, alt: buttonText, title: buttonText }) :
+ $('<button>').addClass('ui-datepicker-trigger').attr({ type: 'button' }).html(buttonImage != '' ?
+ $('<img>').attr({ src:buttonImage, alt:buttonText, title:buttonText }) : buttonText));
+ if (isRTL)
+ input.before(trigger);
+ else
+ input.after(trigger);
+ trigger.click(function() {
+ if ($.datepicker._datepickerShowing && $.datepicker._lastInput == target)
+ $.datepicker._hideDatepicker();
+ else
+ $.datepicker._showDatepicker(target);
+ });
+ }
+ input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress)
+ .bind("setData.datepicker", function(event, key, value) {
+ inst._settings[key] = value;
+ }).bind("getData.datepicker", function(event, key) {
+ return inst._get(key);
+ });
+ input[0]._calId = inst._id;
+ },
+
+ /* Attach an inline date picker to a div. */
+ _inlineDatepicker: function(target, inst) {
+ var input = $(target);
+ if (input.is('.' + this.markerClassName))
+ return;
+ input.addClass(this.markerClassName).append(inst._datepickerDiv)
+ .bind("setData.datepicker", function(event, key, value){
+ inst._settings[key] = value;
+ }).bind("getData.datepicker", function(event, key){
+ return inst._get(key);
+ });
+ input[0]._calId = inst._id;
+ this._updateDatepicker(inst);
+ },
+
+ /* Tidy up after displaying the date picker. */
+ _inlineShow: function(inst) {
+ var numMonths = inst._getNumberOfMonths(); // fix width for dynamic number of date pickers
+ inst._datepickerDiv.width(numMonths[1] * $('.ui-datepicker', inst._datepickerDiv[0]).width());
+ },
+
+ /* Pop-up the date picker in a "dialog" box.
+ @param input element - ignored
+ @param dateText string - the initial date to display (in the current format)
+ @param onSelect function - the function(dateText) to call when a date is selected
+ @param settings object - update the dialog date picker instance's settings (anonymous object)
+ @param pos int[2] - coordinates for the dialog's position within the screen or
+ event - with x/y coordinates or
+ leave empty for default (screen centre)
+ @return the manager object */
+ _dialogDatepicker: function(input, dateText, onSelect, settings, pos) {
+ var inst = this._dialogInst; // internal instance
+ if (!inst) {
+ inst = this._dialogInst = new DatepickerInstance({}, false);
+ this._dialogInput = $('<input type="text" size="1" style="position: absolute; top: -100px;"/>');
+ this._dialogInput.keydown(this._doKeyDown);
+ $('body').append(this._dialogInput);
+ this._dialogInput[0]._calId = inst._id;
+ }
+ extendRemove(inst._settings, settings || {});
+ this._dialogInput.val(dateText);
+
+ this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null);
+ if (!this._pos) {
+ var browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
+ var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
+ var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft;
+ var scrollY = document.documentElement.scrollTop || document.body.scrollTop;
+ this._pos = // should use actual width/height below
+ [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY];
+ }
+
+ // move input on screen for focus, but hidden behind dialog
+ this._dialogInput.css('left', this._pos[0] + 'px').css('top', this._pos[1] + 'px');
+ inst._settings.onSelect = onSelect;
+ this._inDialog = true;
+ this._datepickerDiv.addClass('ui-datepicker-dialog');
+ this._showDatepicker(this._dialogInput[0]);
+ if ($.blockUI)
+ $.blockUI(this._datepickerDiv);
+ return this;
+ },
+
+ /* Pop-up the date picker for a given input field.
+ @param input element - the input field attached to the date picker or
+ event - if triggered by focus */
+ _showDatepicker: function(input) {
+ input = input.target || input;
+ if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger
+ input = $('input', input.parentNode)[0];
+ if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here
+ return;
+ var inst = $.datepicker._getInst(input._calId);
+ var beforeShow = inst._get('beforeShow');
+ extendRemove(inst._settings, (beforeShow ? beforeShow.apply(input, [input, inst]) : {}));
+ $.datepicker._hideDatepicker(null, '');
+ $.datepicker._lastInput = input;
+ inst._setDateFromField(input);
+ if ($.datepicker._inDialog) // hide cursor
+ input.value = '';
+ if (!$.datepicker._pos) { // position below input
+ $.datepicker._pos = $.datepicker._findPos(input);
+ $.datepicker._pos[1] += input.offsetHeight; // add the height
+ }
+ var isFixed = false;
+ $(input).parents().each(function() {
+ isFixed |= $(this).css('position') == 'fixed';
+ });
+ if (isFixed && $.browser.opera) { // correction for Opera when fixed and scrolled
+ $.datepicker._pos[0] -= document.documentElement.scrollLeft;
+ $.datepicker._pos[1] -= document.documentElement.scrollTop;
+ }
+ inst._datepickerDiv.css('position', ($.datepicker._inDialog && $.blockUI ?
+ 'static' : (isFixed ? 'fixed' : 'absolute')))
+ .css({ left: $.datepicker._pos[0] + 'px', top: $.datepicker._pos[1] + 'px' });
+ $.datepicker._pos = null;
+ inst._rangeStart = null;
+ $.datepicker._updateDatepicker(inst);
+ if (!inst._inline) {
+ var speed = inst._get('speed');
+ var postProcess = function() {
+ $.datepicker._datepickerShowing = true;
+ $.datepicker._afterShow(inst);
+ };
+ var showAnim = inst._get('showAnim') || 'show';
+ inst._datepickerDiv[showAnim](speed, postProcess);
+ if (speed == '')
+ postProcess();
+ if (inst._input[0].type != 'hidden')
+ inst._input[0].focus();
+ $.datepicker._curInst = inst;
+ }
+ },
+
+ /* Generate the date picker content. */
+ _updateDatepicker: function(inst) {
+ inst._datepickerDiv.empty().append(inst._generateDatepicker());
+ var numMonths = inst._getNumberOfMonths();
+ if (numMonths[0] != 1 || numMonths[1] != 1)
+ inst._datepickerDiv.addClass('ui-datepicker-multi');
+ else
+ inst._datepickerDiv.removeClass('ui-datepicker-multi');
+
+ if (inst._get('isRTL'))
+ inst._datepickerDiv.addClass('ui-datepicker-rtl');
+ else
+ inst._datepickerDiv.removeClass('ui-datepicker-rtl');
+
+ if (inst._input && inst._input[0].type != 'hidden')
+ $(inst._input[0]).focus();
+ },
+
+ /* Tidy up after displaying the date picker. */
+ _afterShow: function(inst) {
+ var numMonths = inst._getNumberOfMonths(); // fix width for dynamic number of date pickers
+ inst._datepickerDiv.width(numMonths[1] * $('.ui-datepicker', inst._datepickerDiv[0])[0].offsetWidth);
+ if ($.browser.msie && parseInt($.browser.version) < 7) { // fix IE < 7 select problems
+ $('iframe.ui-datepicker-cover').css({width: inst._datepickerDiv.width() + 4,
+ height: inst._datepickerDiv.height() + 4});
+ }
+ // re-position on screen if necessary
+ var isFixed = inst._datepickerDiv.css('position') == 'fixed';
+ var pos = inst._input ? $.datepicker._findPos(inst._input[0]) : null;
+ var browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
+ var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
+ var scrollX = (isFixed ? 0 : document.documentElement.scrollLeft || document.body.scrollLeft);
+ var scrollY = (isFixed ? 0 : document.documentElement.scrollTop || document.body.scrollTop);
+ // reposition date picker horizontally if outside the browser window
+ if ((inst._datepickerDiv.offset().left + inst._datepickerDiv.width() -
+ (isFixed && $.browser.msie ? document.documentElement.scrollLeft : 0)) >
+ (browserWidth + scrollX)) {
+ inst._datepickerDiv.css('left', Math.max(scrollX,
+ pos[0] + (inst._input ? $(inst._input[0]).width() : null) - inst._datepickerDiv.width() -
+ (isFixed && $.browser.opera ? document.documentElement.scrollLeft : 0)) + 'px');
+ }
+ // reposition date picker vertically if outside the browser window
+ if ((inst._datepickerDiv.offset().top + inst._datepickerDiv.height() -
+ (isFixed && $.browser.msie ? document.documentElement.scrollTop : 0)) >
+ (browserHeight + scrollY) ) {
+ inst._datepickerDiv.css('top', Math.max(scrollY,
+ pos[1] - (this._inDialog ? 0 : inst._datepickerDiv.height()) -
+ (isFixed && $.browser.opera ? document.documentElement.scrollTop : 0)) + 'px');
+ }
+ },
+
+ /* Find an object's position on the screen. */
+ _findPos: function(obj) {
+ while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) {
+ obj = obj.nextSibling;
+ }
+ var position = $(obj).offset();
+ return [position.left, position.top];
+ },
+
+ /* Hide the date picker from view.
+ @param input element - the input field attached to the date picker
+ @param speed string - the speed at which to close the date picker */
+ _hideDatepicker: function(input, speed) {
+ var inst = this._curInst;
+ if (!inst)
+ return;
+ var rangeSelect = inst._get('rangeSelect');
+ if (rangeSelect && this._stayOpen) {
+ this._selectDate(inst, inst._formatDate(
+ inst._currentDay, inst._currentMonth, inst._currentYear));
+ }
+ this._stayOpen = false;
+ if (this._datepickerShowing) {
+ speed = (speed != null ? speed : inst._get('speed'));
+ var showAnim = inst._get('showAnim');
+ inst._datepickerDiv[(showAnim == 'slideDown' ? 'slideUp' :
+ (showAnim == 'fadeIn' ? 'fadeOut' : 'hide'))](speed, function() {
+ $.datepicker._tidyDialog(inst);
+ });
+ if (speed == '')
+ this._tidyDialog(inst);
+ var onClose = inst._get('onClose');
+ if (onClose) {
+ onClose.apply((inst._input ? inst._input[0] : null),
+ [inst._getDate(), inst]); // trigger custom callback
+ }
+ this._datepickerShowing = false;
+ this._lastInput = null;
+ inst._settings.prompt = null;
+ if (this._inDialog) {
+ this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' });
+ if ($.blockUI) {
+ $.unblockUI();
+ $('body').append(this._datepickerDiv);
+ }
+ }
+ this._inDialog = false;
+ }
+ this._curInst = null;
+ },
+
+ /* Tidy up after a dialog display. */
+ _tidyDialog: function(inst) {
+ inst._datepickerDiv.removeClass('ui-datepicker-dialog').unbind('.ui-datepicker');
+ $('.ui-datepicker-prompt', inst._datepickerDiv).remove();
+ },
+
+ /* Close date picker if clicked elsewhere. */
+ _checkExternalClick: function(event) {
+ if (!$.datepicker._curInst)
+ return;
+ var $target = $(event.target);
+ if (($target.parents("#ui-datepicker-div").length == 0) &&
+ !$target.hasClass('hasDatepicker') &&
+ !$target.hasClass('ui-datepicker-trigger') &&
+ $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI)) {
+ $.datepicker._hideDatepicker(null, '');
+ }
+ },
+
+ /* Adjust one of the date sub-fields. */
+ _adjustDate: function(id, offset, period) {
+ var inst = this._getInst(id);
+ inst._adjustDate(offset, period);
+ this._updateDatepicker(inst);
+ },
+
+ /* Action for current link. */
+ _gotoToday: function(id) {
+ var date = new Date();
+ var inst = this._getInst(id);
+ inst._selectedDay = date.getDate();
+ inst._drawMonth = inst._selectedMonth = date.getMonth();
+ inst._drawYear = inst._selectedYear = date.getFullYear();
+ this._adjustDate(inst);
+ },
+
+ /* Action for selecting a new month/year. */
+ _selectMonthYear: function(id, select, period) {
+ var inst = this._getInst(id);
+ inst._selectingMonthYear = false;
+ inst[period == 'M' ? '_drawMonth' : '_drawYear'] =
+ select.options[select.selectedIndex].value - 0;
+ this._adjustDate(inst);
+ },
+
+ /* Restore input focus after not changing month/year. */
+ _clickMonthYear: function(id) {
+ var inst = this._getInst(id);
+ if (inst._input && inst._selectingMonthYear && !$.browser.msie)
+ inst._input[0].focus();
+ inst._selectingMonthYear = !inst._selectingMonthYear;
+ },
+
+ /* Action for changing the first week day. */
+ _changeFirstDay: function(id, day) {
+ var inst = this._getInst(id);
+ inst._settings.firstDay = day;
+ this._updateDatepicker(inst);
+ },
+
+ /* Action for selecting a day. */
+ _selectDay: function(id, month, year, td) {
+ if ($(td).is('.ui-datepicker-unselectable'))
+ return;
+ var inst = this._getInst(id);
+ var rangeSelect = inst._get('rangeSelect');
+ if (rangeSelect) {
+ if (!this._stayOpen) {
+ $('.ui-datepicker td').removeClass('ui-datepicker-current-day');
+ $(td).addClass('ui-datepicker-current-day');
+ }
+ this._stayOpen = !this._stayOpen;
+ }
+ inst._selectedDay = inst._currentDay = $('a', td).html();
+ inst._selectedMonth = inst._currentMonth = month;
+ inst._selectedYear = inst._currentYear = year;
+ this._selectDate(id, inst._formatDate(
+ inst._currentDay, inst._currentMonth, inst._currentYear));
+ if (this._stayOpen) {
+ inst._endDay = inst._endMonth = inst._endYear = null;
+ inst._rangeStart = new Date(inst._currentYear, inst._currentMonth, inst._currentDay);
+ this._updateDatepicker(inst);
+ }
+ else if (rangeSelect) {
+ inst._endDay = inst._currentDay;
+ inst._endMonth = inst._currentMonth;
+ inst._endYear = inst._currentYear;
+ inst._selectedDay = inst._currentDay = inst._rangeStart.getDate();
+ inst._selectedMonth = inst._currentMonth = inst._rangeStart.getMonth();
+ inst._selectedYear = inst._currentYear = inst._rangeStart.getFullYear();
+ inst._rangeStart = null;
+ if (inst._inline)
+ this._updateDatepicker(inst);
+ }
+ },
+
+ /* Erase the input field and hide the date picker. */
+ _clearDate: function(id) {
+ var inst = this._getInst(id);
+ if (inst._get('mandatory'))
+ return;
+ this._stayOpen = false;
+ inst._endDay = inst._endMonth = inst._endYear = inst._rangeStart = null;
+ this._selectDate(inst, '');
+ },
+
+ /* Update the input field with the selected date. */
+ _selectDate: function(id, dateStr) {
+ var inst = this._getInst(id);
+ dateStr = (dateStr != null ? dateStr : inst._formatDate());
+ if (inst._rangeStart)
+ dateStr = inst._formatDate(inst._rangeStart) + inst._get('rangeSeparator') + dateStr;
+ if (inst._input)
+ inst._input.val(dateStr);
+ var onSelect = inst._get('onSelect');
+ if (onSelect)
+ onSelect.apply((inst._input ? inst._input[0] : null), [dateStr, inst]); // trigger custom callback
+ else if (inst._input)
+ inst._input.trigger('change'); // fire the change event
+ if (inst._inline)
+ this._updateDatepicker(inst);
+ else if (!this._stayOpen) {
+ this._hideDatepicker(null, inst._get('speed'));
+ this._lastInput = inst._input[0];
+ if (typeof(inst._input[0]) != 'object')
+ inst._input[0].focus(); // restore focus
+ this._lastInput = null;
+ }
+ },
+
+ /* Set as beforeShowDay function to prevent selection of weekends.
+ @param date Date - the date to customise
+ @return [boolean, string] - is this date selectable?, what is its CSS class? */
+ noWeekends: function(date) {
+ var day = date.getDay();
+ return [(day > 0 && day < 6), ''];
+ },
+
+ /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition.
+ @param date Date - the date to get the week for
+ @return number - the number of the week within the year that contains this date */
+ iso8601Week: function(date) {
+ var checkDate = new Date(date.getFullYear(), date.getMonth(), date.getDate(), (date.getTimezoneOffset() / -60));
+ var firstMon = new Date(checkDate.getFullYear(), 1 - 1, 4); // First week always contains 4 Jan
+ var firstDay = firstMon.getDay() || 7; // Day of week: Mon = 1, ..., Sun = 7
+ firstMon.setDate(firstMon.getDate() + 1 - firstDay); // Preceding Monday
+ if (firstDay < 4 && checkDate < firstMon) { // Adjust first three days in year if necessary
+ checkDate.setDate(checkDate.getDate() - 3); // Generate for previous year
+ return $.datepicker.iso8601Week(checkDate);
+ } else if (checkDate > new Date(checkDate.getFullYear(), 12 - 1, 28)) { // Check last three days in year
+ firstDay = new Date(checkDate.getFullYear() + 1, 1 - 1, 4).getDay() || 7;
+ if (firstDay > 4 && (checkDate.getDay() || 7) < firstDay - 3) { // Adjust if necessary
+ checkDate.setDate(checkDate.getDate() + 3); // Generate for next year
+ return $.datepicker.iso8601Week(checkDate);
+ }
+ }
+ return Math.floor(((checkDate - firstMon) / 86400000) / 7) + 1; // Weeks to given date
+ },
+
+ /* Provide status text for a particular date.
+ @param date the date to get the status for
+ @param inst the current datepicker instance
+ @return the status display text for this date */
+ dateStatus: function(date, inst) {
+ return $.datepicker.formatDate(inst._get('dateStatus'), date, inst._getFormatConfig());
+ },
+
+ /* Parse a string value into a date object.
+ The format can be combinations of the following:
+ d - day of month (no leading zero)
+ dd - day of month (two digit)
+ D - day name short
+ DD - day name long
+ m - month of year (no leading zero)
+ mm - month of year (two digit)
+ M - month name short
+ MM - month name long
+ y - year (two digit)
+ yy - year (four digit)
+ '...' - literal text
+ '' - single quote
+
+ @param format String - the expected format of the date
+ @param value String - the date in the above format
+ @param settings Object - attributes include:
+ shortYearCutoff Number - the cutoff year for determining the century (optional)
+ dayNamesShort String[7] - abbreviated names of the days from Sunday (optional)
+ dayNames String[7] - names of the days from Sunday (optional)
+ monthNamesShort String[12] - abbreviated names of the months (optional)
+ monthNames String[12] - names of the months (optional)
+ @return Date - the extracted date value or null if value is blank */
+ parseDate: function (format, value, settings) {
+ if (format == null || value == null)
+ throw 'Invalid arguments';
+ value = (typeof value == 'object' ? value.toString() : value + '');
+ if (value == '')
+ return null;
+ var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff;
+ var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
+ var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
+ var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
+ var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
+ var year = -1;
+ var month = -1;
+ var day = -1;
+ var literal = false;
+ // Check whether a format character is doubled
+ var lookAhead = function(match) {
+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
+ if (matches)
+ iFormat++;
+ return matches;
+ };
+ // Extract a number from the string value
+ var getNumber = function(match) {
+ lookAhead(match);
+ var size = (match == 'y' ? 4 : 2);
+ var num = 0;
+ while (size > 0 && iValue < value.length &&
+ value.charAt(iValue) >= '0' && value.charAt(iValue) <= '9') {
+ num = num * 10 + (value.charAt(iValue++) - 0);
+ size--;
+ }
+ if (size == (match == 'y' ? 4 : 2))
+ throw 'Missing number at position ' + iValue;
+ return num;
+ };
+ // Extract a name from the string value and convert to an index
+ var getName = function(match, shortNames, longNames) {
+ var names = (lookAhead(match) ? longNames : shortNames);
+ var size = 0;
+ for (var j = 0; j < names.length; j++)
+ size = Math.max(size, names[j].length);
+ var name = '';
+ var iInit = iValue;
+ while (size > 0 && iValue < value.length) {
+ name += value.charAt(iValue++);
+ for (var i = 0; i < names.length; i++)
+ if (name == names[i])
+ return i + 1;
+ size--;
+ }
+ throw 'Unknown name at position ' + iInit;
+ };
+ // Confirm that a literal character matches the string value
+ var checkLiteral = function() {
+ if (value.charAt(iValue) != format.charAt(iFormat))
+ throw 'Unexpected literal at position ' + iValue;
+ iValue++;
+ };
+ var iValue = 0;
+ for (var iFormat = 0; iFormat < format.length; iFormat++) {
+ if (literal)
+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))
+ literal = false;
+ else
+ checkLiteral();
+ else
+ switch (format.charAt(iFormat)) {
+ case 'd':
+ day = getNumber('d');
+ break;
+ case 'D':
+ getName('D', dayNamesShort, dayNames);
+ break;
+ case 'm':
+ month = getNumber('m');
+ break;
+ case 'M':
+ month = getName('M', monthNamesShort, monthNames);
+ break;
+ case 'y':
+ year = getNumber('y');
+ break;
+ case "'":
+ if (lookAhead("'"))
+ checkLiteral();
+ else
+ literal = true;
+ break;
+ default:
+ checkLiteral();
+ }
+ }
+ if (year < 100) {
+ year += new Date().getFullYear() - new Date().getFullYear() % 100 +
+ (year <= shortYearCutoff ? 0 : -100);
+ }
+ var date = new Date(year, month - 1, day);
+ if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day) {
+ throw 'Invalid date'; // E.g. 31/02/*
+ }
+ return date;
+ },
+
+ /* Format a date object into a string value.
+ The format can be combinations of the following:
+ d - day of month (no leading zero)
+ dd - day of month (two digit)
+ D - day name short
+ DD - day name long
+ m - month of year (no leading zero)
+ mm - month of year (two digit)
+ M - month name short
+ MM - month name long
+ y - year (two digit)
+ yy - year (four digit)
+ '...' - literal text
+ '' - single quote
+
+ @param format String - the desired format of the date
+ @param date Date - the date value to format
+ @param settings Object - attributes include:
+ dayNamesShort String[7] - abbreviated names of the days from Sunday (optional)
+ dayNames String[7] - names of the days from Sunday (optional)
+ monthNamesShort String[12] - abbreviated names of the months (optional)
+ monthNames String[12] - names of the months (optional)
+ @return String - the date in the above format */
+ formatDate: function (format, date, settings) {
+ if (!date)
+ return '';
+ var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort;
+ var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames;
+ var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort;
+ var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames;
+ // Check whether a format character is doubled
+ var lookAhead = function(match) {
+ var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match);
+ if (matches)
+ iFormat++;
+ return matches;
+ };
+ // Format a number, with leading zero if necessary
+ var formatNumber = function(match, value) {
+ return (lookAhead(match) && value < 10 ? '0' : '') + value;
+ };
+ // Format a name, short or long as requested
+ var formatName = function(match, value, shortNames, longNames) {
+ return (lookAhead(match) ? longNames[value] : shortNames[value]);
+ };
+ var output = '';
+ var literal = false;
+ if (date) {
+ for (var iFormat = 0; iFormat < format.length; iFormat++) {
+ if (literal)
+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))
+ literal = false;
+ else
+ output += format.charAt(iFormat);
+ else
+ switch (format.charAt(iFormat)) {
+ case 'd':
+ output += formatNumber('d', date.getDate());
+ break;
+ case 'D':
+ output += formatName('D', date.getDay(), dayNamesShort, dayNames);
+ break;
+ case 'm':
+ output += formatNumber('m', date.getMonth() + 1);
+ break;
+ case 'M':
+ output += formatName('M', date.getMonth(), monthNamesShort, monthNames);
+ break;
+ case 'y':
+ output += (lookAhead('y') ? date.getFullYear() :
+ (date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100);
+ break;
+ case "'":
+ if (lookAhead("'"))
+ output += "'";
+ else
+ literal = true;
+ break;
+ default:
+ output += format.charAt(iFormat);
+ }
+ }
+ }
+ return output;
+ },
+
+ /* Extract all possible characters from the date format. */
+ _possibleChars: function (format) {
+ var chars = '';
+ var literal = false;
+ for (var iFormat = 0; iFormat < format.length; iFormat++)
+ if (literal)
+ if (format.charAt(iFormat) == "'" && !lookAhead("'"))
+ literal = false;
+ else
+ chars += format.charAt(iFormat);
+ else
+ switch (format.charAt(iFormat)) {
+ case 'd' || 'm' || 'y':
+ chars += '0123456789';
+ break;
+ case 'D' || 'M':
+ return null; // Accept anything
+ case "'":
+ if (lookAhead("'"))
+ chars += "'";
+ else
+ literal = true;
+ break;
+ default:
+ chars += format.charAt(iFormat);
+ }
+ return chars;
+ }
+});
+
+/* Individualised settings for date picker functionality applied to one or more related inputs.
+ Instances are managed and manipulated through the Datepicker manager. */
+function DatepickerInstance(settings, inline) {
+ this._id = $.datepicker._register(this);
+ this._selectedDay = 0; // Current date for selection
+ this._selectedMonth = 0; // 0-11
+ this._selectedYear = 0; // 4-digit year
+ this._drawMonth = 0; // Current month at start of datepicker
+ this._drawYear = 0;
+ this._input = null; // The attached input field
+ this._inline = inline; // True if showing inline, false if used in a popup
+ this._datepickerDiv = (!inline ? $.datepicker._datepickerDiv :
+ $('<div id="ui-datepicker-div-' + this._id + '" class="ui-datepicker-inline">'));
+ // customise the date picker object - uses manager defaults if not overridden
+ this._settings = extendRemove(settings || {}); // clone
+ if (inline)
+ this._setDate(this._getDefaultDate());
+}
+
+$.extend(DatepickerInstance.prototype, {
+ /* Get a setting value, defaulting if necessary. */
+ _get: function(name) {
+ return this._settings[name] !== undefined ? this._settings[name] : $.datepicker._defaults[name];
+ },
+
+ /* Parse existing date and initialise date picker. */
+ _setDateFromField: function(input) {
+ this._input = $(input);
+ var dateFormat = this._get('dateFormat');
+ var dates = this._input ? this._input.val().split(this._get('rangeSeparator')) : null;
+ this._endDay = this._endMonth = this._endYear = null;
+ var date = defaultDate = this._getDefaultDate();
+ if (dates.length > 0) {
+ var settings = this._getFormatConfig();
+ if (dates.length > 1) {
+ date = $.datepicker.parseDate(dateFormat, dates[1], settings) || defaultDate;
+ this._endDay = date.getDate();
+ this._endMonth = date.getMonth();
+ this._endYear = date.getFullYear();
+ }
+ try {
+ date = $.datepicker.parseDate(dateFormat, dates[0], settings) || defaultDate;
+ } catch (e) {
+ $.datepicker.log(e);
+ date = defaultDate;
+ }
+ }
+ this._selectedDay = date.getDate();
+ this._drawMonth = this._selectedMonth = date.getMonth();
+ this._drawYear = this._selectedYear = date.getFullYear();
+ this._currentDay = (dates[0] ? date.getDate() : 0);
+ this._currentMonth = (dates[0] ? date.getMonth() : 0);
+ this._currentYear = (dates[0] ? date.getFullYear() : 0);
+ this._adjustDate();
+ },
+
+ /* Retrieve the default date shown on opening. */
+ _getDefaultDate: function() {
+ var date = this._determineDate('defaultDate', new Date());
+ var minDate = this._getMinMaxDate('min', true);
+ var maxDate = this._getMinMaxDate('max');
+ date = (minDate && date < minDate ? minDate : date);
+ date = (maxDate && date > maxDate ? maxDate : date);
+ return date;
+ },
+
+ /* A date may be specified as an exact value or a relative one. */
+ _determineDate: function(name, defaultDate) {
+ var offsetNumeric = function(offset) {
+ var date = new Date();
+ date.setDate(date.getDate() + offset);
+ return date;
+ };
+ var offsetString = function(offset, getDaysInMonth) {
+ var date = new Date();
+ var matches = /^([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?$/.exec(offset);
+ if (matches) {
+ var year = date.getFullYear();
+ var month = date.getMonth();
+ var day = date.getDate();
+ switch (matches[2] || 'd') {
+ case 'd' : case 'D' :
+ day += (matches[1] - 0); break;
+ case 'w' : case 'W' :
+ day += (matches[1] * 7); break;
+ case 'm' : case 'M' :
+ month += (matches[1] - 0);
+ day = Math.min(day, getDaysInMonth(year, month));
+ break;
+ case 'y': case 'Y' :
+ year += (matches[1] - 0);
+ day = Math.min(day, getDaysInMonth(year, month));
+ break;
+ }
+ date = new Date(year, month, day);
+ }
+ return date;
+ };
+ var date = this._get(name);
+ return (date == null ? defaultDate :
+ (typeof date == 'string' ? offsetString(date, this._getDaysInMonth) :
+ (typeof date == 'number' ? offsetNumeric(date) : date)));
+ },
+
+ /* Set the date(s) directly. */
+ _setDate: function(date, endDate) {
+ this._selectedDay = this._currentDay = date.getDate();
+ this._drawMonth = this._selectedMonth = this._currentMonth = date.getMonth();
+ this._drawYear = this._selectedYear = this._currentYear = date.getFullYear();
+ if (this._get('rangeSelect')) {
+ if (endDate) {
+ this._endDay = endDate.getDate();
+ this._endMonth = endDate.getMonth();
+ this._endYear = endDate.getFullYear();
+ } else {
+ this._endDay = this._currentDay;
+ this._endMonth = this._currentMonth;
+ this._endYear = this._currentYear;
+ }
+ }
+ this._adjustDate();
+ },
+
+ /* Retrieve the date(s) directly. */
+ _getDate: function() {
+ var startDate = (!this._currentYear || (this._input && this._input.val() == '') ? null :
+ new Date(this._currentYear, this._currentMonth, this._currentDay));
+ if (this._get('rangeSelect')) {
+ return [startDate, (!this._endYear ? null :
+ new Date(this._endYear, this._endMonth, this._endDay))];
+ } else
+ return startDate;
+ },
+
+ /* Generate the HTML for the current state of the date picker. */
+ _generateDatepicker: function() {
+ var today = new Date();
+ today = new Date(today.getFullYear(), today.getMonth(), today.getDate()); // clear time
+ var showStatus = this._get('showStatus');
+ var isRTL = this._get('isRTL');
+ // build the date picker HTML
+ var clear = (this._get('mandatory') ? '' :
+ '<div class="ui-datepicker-clear"><a onclick="jQuery.datepicker._clearDate(' + this._id + ');"' +
+ (showStatus ? this._addStatus(this._get('clearStatus') || '&#xa0;') : '') + '>' +
+ this._get('clearText') + '</a></div>');
+ var controls = '<div class="ui-datepicker-control">' + (isRTL ? '' : clear) +
+ '<div class="ui-datepicker-close"><a onclick="jQuery.datepicker._hideDatepicker();"' +
+ (showStatus ? this._addStatus(this._get('closeStatus') || '&#xa0;') : '') + '>' +
+ this._get('closeText') + '</a></div>' + (isRTL ? clear : '') + '</div>';
+ var prompt = this._get('prompt');
+ var closeAtTop = this._get('closeAtTop');
+ var hideIfNoPrevNext = this._get('hideIfNoPrevNext');
+ var numMonths = this._getNumberOfMonths();
+ var stepMonths = this._get('stepMonths');
+ var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1);
+ var minDate = this._getMinMaxDate('min', true);
+ var maxDate = this._getMinMaxDate('max');
+ var drawMonth = this._drawMonth;
+ var drawYear = this._drawYear;
+ if (maxDate) {
+ var maxDraw = new Date(maxDate.getFullYear(),
+ maxDate.getMonth() - numMonths[1] + 1, maxDate.getDate());
+ maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw);
+ while (new Date(drawYear, drawMonth, 1) > maxDraw) {
+ drawMonth--;
+ if (drawMonth < 0) {
+ drawMonth = 11;
+ drawYear--;
+ }
+ }
+ }
+ // controls and links
+ var prev = '<div class="ui-datepicker-prev">' + (this._canAdjustMonth(-1, drawYear, drawMonth) ?
+ '<a onclick="jQuery.datepicker._adjustDate(' + this._id + ', -' + stepMonths + ', \'M\');"' +
+ (showStatus ? this._addStatus(this._get('prevStatus') || '&#xa0;') : '') + '>' +
+ this._get('prevText') + '</a>' :
+ (hideIfNoPrevNext ? '' : '<label>' + this._get('prevText') + '</label>')) + '</div>';
+ var next = '<div class="ui-datepicker-next">' + (this._canAdjustMonth(+1, drawYear, drawMonth) ?
+ '<a onclick="jQuery.datepicker._adjustDate(' + this._id + ', +' + stepMonths + ', \'M\');"' +
+ (showStatus ? this._addStatus(this._get('nextStatus') || '&#xa0;') : '') + '>' +
+ this._get('nextText') + '</a>' :
+ (hideIfNoPrevNext ? '>' : '<label>' + this._get('nextText') + '</label>')) + '</div>';
+ var html = (prompt ? '<div class="ui-datepicker-prompt">' + prompt + '</div>' : '') +
+ (closeAtTop && !this._inline ? controls : '') +
+ '<div class="ui-datepicker-links">' + (isRTL ? next : prev) +
+ (this._isInRange(today) ? '<div class="ui-datepicker-current">' +
+ '<a onclick="jQuery.datepicker._gotoToday(' + this._id + ');"' +
+ (showStatus ? this._addStatus(this._get('currentStatus') || '&#xa0;') : '') + '>' +
+ this._get('currentText') + '</a></div>' : '') + (isRTL ? prev : next) + '</div>';
+ var showWeeks = this._get('showWeeks');
+ for (var row = 0; row < numMonths[0]; row++)
+ for (var col = 0; col < numMonths[1]; col++) {
+ var selectedDate = new Date(drawYear, drawMonth, this._selectedDay);
+ html += '<div class="ui-datepicker-one-month' + (col == 0 ? ' ui-datepicker-new-row' : '') + '">' +
+ this._generateMonthYearHeader(drawMonth, drawYear, minDate, maxDate,
+ selectedDate, row > 0 || col > 0) + // draw month headers
+ '<table class="ui-datepicker" cellpadding="0" cellspacing="0"><thead>' +
+ '<tr class="ui-datepicker-title-row">' +
+ (showWeeks ? '<td>' + this._get('weekHeader') + '</td>' : '');
+ var firstDay = this._get('firstDay');
+ var changeFirstDay = this._get('changeFirstDay');
+ var dayNames = this._get('dayNames');
+ var dayNamesShort = this._get('dayNamesShort');
+ var dayNamesMin = this._get('dayNamesMin');
+ for (var dow = 0; dow < 7; dow++) { // days of the week
+ var day = (dow + firstDay) % 7;
+ var status = this._get('dayStatus') || '&#xa0;';
+ status = (status.indexOf('DD') > -1 ? status.replace(/DD/, dayNames[day]) :
+ status.replace(/D/, dayNamesShort[day]));
+ html += '<td' + ((dow + firstDay + 6) % 7 >= 5 ? ' class="ui-datepicker-week-end-cell"' : '') + '>' +
+ (!changeFirstDay ? '<span' :
+ '<a onclick="jQuery.datepicker._changeFirstDay(' + this._id + ', ' + day + ');"') +
+ (showStatus ? this._addStatus(status) : '') + ' title="' + dayNames[day] + '">' +
+ dayNamesMin[day] + (changeFirstDay ? '</a>' : '</span>') + '</td>';
+ }
+ html += '</tr></thead><tbody>';
+ var daysInMonth = this._getDaysInMonth(drawYear, drawMonth);
+ if (drawYear == this._selectedYear && drawMonth == this._selectedMonth) {
+ this._selectedDay = Math.min(this._selectedDay, daysInMonth);
+ }
+ var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7;
+ var currentDate = (!this._currentDay ? new Date(9999, 9, 9) :
+ new Date(this._currentYear, this._currentMonth, this._currentDay));
+ var endDate = this._endDay ? new Date(this._endYear, this._endMonth, this._endDay) : currentDate;
+ var printDate = new Date(drawYear, drawMonth, 1 - leadDays);
+ var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate
+ var beforeShowDay = this._get('beforeShowDay');
+ var showOtherMonths = this._get('showOtherMonths');
+ var calculateWeek = this._get('calculateWeek') || $.datepicker.iso8601Week;
+ var dateStatus = this._get('statusForDate') || $.datepicker.dateStatus;
+ for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows
+ html += '<tr class="ui-datepicker-days-row">' +
+ (showWeeks ? '<td class="ui-datepicker-week-col">' + calculateWeek(printDate) + '</td>' : '');
+ for (var dow = 0; dow < 7; dow++) { // create date picker days
+ var daySettings = (beforeShowDay ?
+ beforeShowDay.apply((this._input ? this._input[0] : null), [printDate]) : [true, '']);
+ var otherMonth = (printDate.getMonth() != drawMonth);
+ var unselectable = otherMonth || !daySettings[0] ||
+ (minDate && printDate < minDate) || (maxDate && printDate > maxDate);
+ html += '<td class="ui-datepicker-days-cell' +
+ ((dow + firstDay + 6) % 7 >= 5 ? ' ui-datepicker-week-end-cell' : '') + // highlight weekends
+ (otherMonth ? ' ui-datepicker-otherMonth' : '') + // highlight days from other months
+ (printDate.getTime() == selectedDate.getTime() && drawMonth == this._selectedMonth ?
+ ' ui-datepicker-days-cell-over' : '') + // highlight selected day
+ (unselectable ? ' ui-datepicker-unselectable' : '') + // highlight unselectable days
+ (otherMonth && !showOtherMonths ? '' : ' ' + daySettings[1] + // highlight custom dates
+ (printDate.getTime() >= currentDate.getTime() && printDate.getTime() <= endDate.getTime() ? // in current range
+ ' ui-datepicker-current-day' : '') + // highlight selected day
+ (printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different)
+ (unselectable ? '' : ' onmouseover="jQuery(this).addClass(\'ui-datepicker-days-cell-over\');' +
+ (!showStatus || (otherMonth && !showOtherMonths) ? '' : 'jQuery(\'#ui-datepicker-status-' +
+ this._id + '\').html(\'' + (dateStatus.apply((this._input ? this._input[0] : null),
+ [printDate, this]) || '&#xa0;') +'\');') + '"' +
+ ' onmouseout="jQuery(this).removeClass(\'ui-datepicker-days-cell-over\');' +
+ (!showStatus || (otherMonth && !showOtherMonths) ? '' : 'jQuery(\'#ui-datepicker-status-' +
+ this._id + '\').html(\'&#xa0;\');') + '" onclick="jQuery.datepicker._selectDay(' +
+ this._id + ',' + drawMonth + ',' + drawYear + ', this);"') + '>' + // actions
+ (otherMonth ? (showOtherMonths ? printDate.getDate() : '&#xa0;') : // display for other months
+ (unselectable ? printDate.getDate() : '<a>' + printDate.getDate() + '</a>')) + '</td>'; // display for this month
+ printDate.setDate(printDate.getDate() + 1);
+ }
+ html += '</tr>';
+ }
+ drawMonth++;
+ if (drawMonth > 11) {
+ drawMonth = 0;
+ drawYear++;
+ }
+ html += '</tbody></table></div>';
+ }
+ html += (showStatus ? '<div style="clear: both;"></div><div id="ui-datepicker-status-' + this._id +
+ '" class="ui-datepicker-status">' + (this._get('initStatus') || '&#xa0;') + '</div>' : '') +
+ (!closeAtTop && !this._inline ? controls : '') +
+ '<div style="clear: both;"></div>' +
+ ($.browser.msie && parseInt($.browser.version) < 7 && !this._inline ?
+ '<iframe src="javascript:false;" class="ui-datepicker-cover"></iframe>' : '');
+ return html;
+ },
+
+ /* Generate the month and year header. */
+ _generateMonthYearHeader: function(drawMonth, drawYear, minDate, maxDate, selectedDate, secondary) {
+ minDate = (this._rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate);
+ var showStatus = this._get('showStatus');
+ var html = '<div class="ui-datepicker-header">';
+ // month selection
+ var monthNames = this._get('monthNames');
+ if (secondary || !this._get('changeMonth'))
+ html += monthNames[drawMonth] + '&#xa0;';
+
+ else {
+ var inMinYear = (minDate && minDate.getFullYear() == drawYear);
+ var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear);
+ html += '<select class="ui-datepicker-new-month" ' +
+ 'onchange="jQuery.datepicker._selectMonthYear(' + this._id + ', this, \'M\');" ' +
+ 'onclick="jQuery.datepicker._clickMonthYear(' + this._id + ');"' +
+ (showStatus ? this._addStatus(this._get('monthStatus') || '&#xa0;') : '') + '>';
+ for (var month = 0; month < 12; month++) {
+ if ((!inMinYear || month >= minDate.getMonth()) &&
+ (!inMaxYear || month <= maxDate.getMonth())) {
+ html += '<option value="' + month + '"' +
+ (month == drawMonth ? ' selected="selected"' : '') +
+ '>' + monthNames[month] + '</option>';
+ }
+ }
+ html += '</select>';
+ }
+ // year selection
+ if (secondary || !this._get('changeYear'))
+ html += drawYear;
+ else {
+ // determine range of years to display
+ var years = this._get('yearRange').split(':');
+ var year = 0;
+ var endYear = 0;
+ if (years.length != 2) {
+ year = drawYear - 10;
+ endYear = drawYear + 10;
+ } else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') {
+ year = new Date().getFullYear() + parseInt(years[0], 10);
+ endYear = new Date().getFullYear() + parseInt(years[1], 10);
+ } else {
+ year = parseInt(years[0], 10);
+ endYear = parseInt(years[1], 10);
+ }
+ year = (minDate ? Math.max(year, minDate.getFullYear()) : year);
+ endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);
+ html += '<select class="ui-datepicker-new-year" ' +
+ 'onchange="jQuery.datepicker._selectMonthYear(' + this._id + ', this, \'Y\');" ' +
+ 'onclick="jQuery.datepicker._clickMonthYear(' + this._id + ');"' +
+ (showStatus ? this._addStatus(this._get('yearStatus') || '&#xa0;') : '') + '>';
+ for (; year <= endYear; year++) {
+ html += '<option value="' + year + '"' +
+ (year == drawYear ? ' selected="selected"' : '') +
+ '>' + year + '</option>';
+ }
+ html += '</select>';
+ }
+ html += '</div>'; // Close datepicker_header
+ return html;
+ },
+
+ /* Provide code to set and clear the status panel. */
+ _addStatus: function(text) {
+ return ' onmouseover="jQuery(\'#ui-datepicker-status-' + this._id + '\').html(\'' + text + '\');" ' +
+ 'onmouseout="jQuery(\'#ui-datepicker-status-' + this._id + '\').html(\'&#xa0;\');"';
+ },
+
+ /* Adjust one of the date sub-fields. */
+ _adjustDate: function(offset, period) {
+ var year = this._drawYear + (period == 'Y' ? offset : 0);
+ var month = this._drawMonth + (period == 'M' ? offset : 0);
+ var day = Math.min(this._selectedDay, this._getDaysInMonth(year, month)) +
+ (period == 'D' ? offset : 0);
+ var date = new Date(year, month, day);
+ // ensure it is within the bounds set
+ var minDate = this._getMinMaxDate('min', true);
+ var maxDate = this._getMinMaxDate('max');
+ date = (minDate && date < minDate ? minDate : date);
+ date = (maxDate && date > maxDate ? maxDate : date);
+ this._selectedDay = date.getDate();
+ this._drawMonth = this._selectedMonth = date.getMonth();
+ this._drawYear = this._selectedYear = date.getFullYear();
+ },
+
+ /* Determine the number of months to show. */
+ _getNumberOfMonths: function() {
+ var numMonths = this._get('numberOfMonths');
+ return (numMonths == null ? [1, 1] : (typeof numMonths == 'number' ? [1, numMonths] : numMonths));
+ },
+
+ /* Determine the current maximum date - ensure no time components are set - may be overridden for a range. */
+ _getMinMaxDate: function(minMax, checkRange) {
+ var date = this._determineDate(minMax + 'Date', null);
+ if (date) {
+ date.setHours(0);
+ date.setMinutes(0);
+ date.setSeconds(0);
+ date.setMilliseconds(0);
+ }
+ return date || (checkRange ? this._rangeStart : null);
+ },
+
+ /* Find the number of days in a given month. */
+ _getDaysInMonth: function(year, month) {
+ return 32 - new Date(year, month, 32).getDate();
+ },
+
+ /* Find the day of the week of the first of a month. */
+ _getFirstDayOfMonth: function(year, month) {
+ return new Date(year, month, 1).getDay();
+ },
+
+ /* Determines if we should allow a "next/prev" month display change. */
+ _canAdjustMonth: function(offset, curYear, curMonth) {
+ var numMonths = this._getNumberOfMonths();
+ var date = new Date(curYear, curMonth + (offset < 0 ? offset : numMonths[1]), 1);
+ if (offset < 0)
+ date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth()));
+ return this._isInRange(date);
+ },
+
+ /* Is the given date in the accepted range? */
+ _isInRange: function(date) {
+ // during range selection, use minimum of selected date and range start
+ var newMinDate = (!this._rangeStart ? null :
+ new Date(this._selectedYear, this._selectedMonth, this._selectedDay));
+ newMinDate = (newMinDate && this._rangeStart < newMinDate ? this._rangeStart : newMinDate);
+ var minDate = newMinDate || this._getMinMaxDate('min');
+ var maxDate = this._getMinMaxDate('max');
+ return ((!minDate || date >= minDate) && (!maxDate || date <= maxDate));
+ },
+
+ /* Provide the configuration settings for formatting/parsing. */
+ _getFormatConfig: function() {
+ var shortYearCutoff = this._get('shortYearCutoff');
+ shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff :
+ new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10));
+ return {shortYearCutoff: shortYearCutoff,
+ dayNamesShort: this._get('dayNamesShort'), dayNames: this._get('dayNames'),
+ monthNamesShort: this._get('monthNamesShort'), monthNames: this._get('monthNames')};
+ },
+
+ /* Format the given date for display. */
+ _formatDate: function(day, month, year) {
+ if (!day) {
+ this._currentDay = this._selectedDay;
+ this._currentMonth = this._selectedMonth;
+ this._currentYear = this._selectedYear;
+ }
+ var date = (day ? (typeof day == 'object' ? day : new Date(year, month, day)) :
+ new Date(this._currentYear, this._currentMonth, this._currentDay));
+ return $.datepicker.formatDate(this._get('dateFormat'), date, this._getFormatConfig());
+ }
+});
+
+/* jQuery extend now ignores nulls! */
+function extendRemove(target, props) {
+ $.extend(target, props);
+ for (var name in props)
+ if (props[name] == null)
+ target[name] = null;
+ return target;
+};
+
+/* Invoke the datepicker functionality.
+ @param options String - a command, optionally followed by additional parameters or
+ Object - settings for attaching new datepicker functionality
+ @return jQuery object */
+$.fn.datepicker = function(options){
+ var otherArgs = Array.prototype.slice.call(arguments, 1);
+ if (typeof options == 'string' && (options == 'isDisabled' || options == 'getDate')) {
+ return $.datepicker['_' + options + 'Datepicker'].apply($.datepicker, [this[0]].concat(otherArgs));
+ }
+ return this.each(function() {
+ typeof options == 'string' ?
+ $.datepicker['_' + options + 'Datepicker'].apply($.datepicker, [this].concat(otherArgs)) :
+ $.datepicker._attachDatepicker(this, options);
+ });
+};
+
+$.datepicker = new Datepicker(); // singleton instance
+
+/* Initialise the date picker. */
+$(document).ready(function() {
+ $(document.body).append($.datepicker._datepickerDiv)
+ .mousedown($.datepicker._checkExternalClick);
+});
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/ui.dialog.js b/javascript/libs/jquery/full/ui/ui.dialog.js
new file mode 100644
index 0000000..c3b89fc
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/ui.dialog.js
@@ -0,0 +1,444 @@
+/*
+ * jQuery UI Dialog
+ *
+ * Copyright (c) 2008 Richard D. Worth (rdworth.org)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Dialog
+ *
+ * Depends:
+ * ui.core.js
+ * ui.draggable.js
+ * ui.resizable.js
+ *
+ */
+(function($) {
+
+var setDataSwitch = {
+ dragStart: "start.draggable",
+ drag: "drag.draggable",
+ dragStop: "stop.draggable",
+ maxHeight: "maxHeight.resizable",
+ minHeight: "minHeight.resizable",
+ maxWidth: "maxWidth.resizable",
+ minWidth: "minWidth.resizable",
+ resizeStart: "start.resizable",
+ resize: "drag.resizable",
+ resizeStop: "stop.resizable"
+};
+
+$.widget("ui.dialog", {
+ init: function() {
+ var self = this,
+ options = this.options,
+ resizeHandles = typeof options.resizable == 'string'
+ ? options.resizable
+ : 'n,e,s,w,se,sw,ne,nw',
+
+ uiDialogContent = this.element
+ .addClass('ui-dialog-content')
+ .wrap('<div/>')
+ .wrap('<div/>'),
+
+ uiDialogContainer = uiDialogContent.parent()
+ .addClass('ui-dialog-container')
+ .css({position: 'relative'}),
+
+ title = options.title || uiDialogContent.attr('title') || '',
+ uiDialogTitlebar = (this.uiDialogTitlebar =
+ $('<div class="ui-dialog-titlebar"/>'))
+ .append('<span class="ui-dialog-title">' + title + '</span>')
+ .append('<a href="#" class="ui-dialog-titlebar-close"><span>X</span></a>')
+ .prependTo(uiDialogContainer),
+
+ uiDialog = (this.uiDialog = uiDialogContainer.parent())
+ .appendTo(document.body)
+ .hide()
+ .addClass('ui-dialog')
+ .addClass(options.dialogClass)
+ // add content classes to dialog
+ // to inherit theme at top level of element
+ .addClass(uiDialogContent.attr('className'))
+ .removeClass('ui-dialog-content')
+ .css({
+ position: 'absolute',
+ width: options.width,
+ height: options.height,
+ overflow: 'hidden',
+ zIndex: options.zIndex
+ })
+ // setting tabIndex makes the div focusable
+ // setting outline to 0 prevents a border on focus in Mozilla
+ .attr('tabIndex', -1).css('outline', 0).keydown(function(ev) {
+ if (options.closeOnEscape) {
+ var ESC = 27;
+ (ev.keyCode && ev.keyCode == ESC && self.close());
+ }
+ })
+ .mousedown(function() {
+ self.moveToTop();
+ });
+
+ this.uiDialogTitlebarClose = $('.ui-dialog-titlebar-close', uiDialogTitlebar)
+ .hover(
+ function() {
+ $(this).addClass('ui-dialog-titlebar-close-hover');
+ },
+ function() {
+ $(this).removeClass('ui-dialog-titlebar-close-hover');
+ }
+ )
+ .mousedown(function(ev) {
+ ev.stopPropagation();
+ })
+ .click(function() {
+ self.close();
+ return false;
+ });
+
+ var hasButtons = false;
+ $.each(options.buttons, function() { return !(hasButtons = true); });
+ if (hasButtons) {
+ var uiDialogButtonPane = $('<div class="ui-dialog-buttonpane"/>')
+ .appendTo(uiDialog);
+ $.each(options.buttons, function(name, fn) {
+ $('<button/>')
+ .text(name)
+ .click(function() { fn.apply(self.element[0], arguments); })
+ .appendTo(uiDialogButtonPane);
+ });
+ }
+
+ if ($.fn.draggable) {
+ uiDialog.draggable({
+ handle: '.ui-dialog-titlebar',
+ start: function(e, ui) {
+ self.moveToTop();
+ (options.dragStart && options.dragStart.apply(this, arguments));
+ },
+ drag: options.drag,
+ stop: function(e, ui) {
+ (options.dragStop && options.dragStop.apply(this, arguments));
+ $.ui.dialog.overlay.resize();
+ }
+ });
+ (options.draggable || uiDialog.draggable('disable'));
+ }
+
+ if ($.fn.resizable) {
+ uiDialog.resizable({
+ maxWidth: options.maxWidth,
+ maxHeight: options.maxHeight,
+ minWidth: options.minWidth,
+ minHeight: options.minHeight,
+ start: options.resizeStart,
+ resize: options.resize,
+ handles: resizeHandles,
+ stop: function(e, ui) {
+ (options.resizeStop && options.resizeStop.apply(this, arguments));
+ $.ui.dialog.overlay.resize();
+ }
+ });
+ (options.resizable || uiDialog.resizable('disable'));
+ }
+
+ (options.bgiframe && $.fn.bgiframe && uiDialog.bgiframe());
+ (options.autoOpen && this.open());
+ },
+
+ setData: function(key, value){
+ (setDataSwitch[key] && this.uiDialog.data(setDataSwitch[key], value));
+ switch (key) {
+ case "draggable":
+ this.uiDialog.draggable(value ? 'enable' : 'disable');
+ break;
+ case "height":
+ this.uiDialog.height(value);
+ break;
+ case "position":
+ this.position(value);
+ break;
+ case "resizable":
+ (typeof value == 'string' && this.uiDialog.data('handles.resizable', value));
+ this.uiDialog.resizable(value ? 'enable' : 'disable');
+ break;
+ case "title":
+ $(".ui-dialog-title", this.uiDialogTitlebar).text(value);
+ break;
+ case "width":
+ this.uiDialog.width(value);
+ break;
+ }
+
+ $.widget.prototype.setData.apply(this, arguments);
+ },
+
+ position: function(pos) {
+ var wnd = $(window), doc = $(document),
+ pTop = doc.scrollTop(), pLeft = doc.scrollLeft(),
+ minTop = pTop;
+
+ if ($.inArray(pos, ['center','top','right','bottom','left']) >= 0) {
+ pos = [
+ pos == 'right' || pos == 'left' ? pos : 'center',
+ pos == 'top' || pos == 'bottom' ? pos : 'middle'
+ ];
+ }
+ if (pos.constructor != Array) {
+ pos = ['center', 'middle'];
+ }
+ if (pos[0].constructor == Number) {
+ pLeft += pos[0];
+ } else {
+ switch (pos[0]) {
+ case 'left':
+ pLeft += 0;
+ break;
+ case 'right':
+ pLeft += wnd.width() - this.uiDialog.width();
+ break;
+ default:
+ case 'center':
+ pLeft += (wnd.width() - this.uiDialog.width()) / 2;
+ }
+ }
+ if (pos[1].constructor == Number) {
+ pTop += pos[1];
+ } else {
+ switch (pos[1]) {
+ case 'top':
+ pTop += 0;
+ break;
+ case 'bottom':
+ pTop += wnd.height() - this.uiDialog.height();
+ break;
+ default:
+ case 'middle':
+ pTop += (wnd.height() - this.uiDialog.height()) / 2;
+ }
+ }
+
+ // prevent the dialog from being too high (make sure the titlebar
+ // is accessible)
+ pTop = Math.max(pTop, minTop);
+ this.uiDialog.css({top: pTop, left: pLeft});
+ },
+
+ open: function() {
+ this.overlay = this.options.modal ? new $.ui.dialog.overlay(this) : null;
+ this.uiDialog.appendTo('body');
+ this.position(this.options.position);
+ this.uiDialog.show();
+ this.moveToTop(true);
+
+ // CALLBACK: open
+ var openEV = null;
+ var openUI = {
+ options: this.options
+ };
+ this.uiDialogTitlebarClose.focus();
+ this.element.triggerHandler("dialogopen", [openEV, openUI], this.options.open);
+ },
+
+ // the force parameter allows us to move modal dialogs to their correct
+ // position on open
+ moveToTop: function(force) {
+ if ((this.options.modal && !force) || !this.options.stack) { return; }
+
+ var maxZ = this.options.zIndex, options = this.options;
+ $('.ui-dialog:visible').each(function() {
+ maxZ = Math.max(maxZ, parseInt($(this).css('z-index'), 10) || options.zIndex);
+ });
+ (this.overlay && this.overlay.$el.css('z-index', ++maxZ));
+ this.uiDialog.css('z-index', ++maxZ);
+ },
+
+ close: function() {
+ (this.overlay && this.overlay.destroy());
+ this.uiDialog.hide();
+
+ // CALLBACK: close
+ var closeEV = null;
+ var closeUI = {
+ options: this.options
+ };
+ this.element.triggerHandler("dialogclose", [closeEV, closeUI], this.options.close);
+ $.ui.dialog.overlay.resize();
+ },
+
+ destroy: function() {
+ (this.overlay && this.overlay.destroy());
+ this.uiDialog.hide();
+ this.element
+ .unbind('.dialog')
+ .removeData('dialog')
+ .removeClass('ui-dialog-content')
+ .hide().appendTo('body');
+ this.uiDialog.remove();
+ }
+});
+
+$.extend($.ui.dialog, {
+ defaults: {
+ autoOpen: true,
+ bgiframe: false,
+ buttons: {},
+ closeOnEscape: true,
+ draggable: true,
+ height: 200,
+ minHeight: 100,
+ minWidth: 150,
+ modal: false,
+ overlay: {},
+ position: 'center',
+ resizable: true,
+ stack: true,
+ width: 300,
+ zIndex: 1000
+ },
+
+ overlay: function(dialog) {
+ this.$el = $.ui.dialog.overlay.create(dialog);
+ }
+});
+
+$.extend($.ui.dialog.overlay, {
+ instances: [],
+ events: $.map('focus,mousedown,mouseup,keydown,keypress,click'.split(','),
+ function(e) { return e + '.dialog-overlay'; }).join(' '),
+ create: function(dialog) {
+ if (this.instances.length === 0) {
+ // prevent use of anchors and inputs
+ // we use a setTimeout in case the overlay is created from an
+ // event that we're going to be cancelling (see #2804)
+ setTimeout(function() {
+ $('a, :input').bind($.ui.dialog.overlay.events, function() {
+ // allow use of the element if inside a dialog and
+ // - there are no modal dialogs
+ // - there are modal dialogs, but we are in front of the topmost modal
+ var allow = false;
+ var $dialog = $(this).parents('.ui-dialog');
+ if ($dialog.length) {
+ var $overlays = $('.ui-dialog-overlay');
+ if ($overlays.length) {
+ var maxZ = parseInt($overlays.css('z-index'), 10);
+ $overlays.each(function() {
+ maxZ = Math.max(maxZ, parseInt($(this).css('z-index'), 10));
+ });
+ allow = parseInt($dialog.css('z-index'), 10) > maxZ;
+ } else {
+ allow = true;
+ }
+ }
+ return allow;
+ });
+ }, 1);
+
+ // allow closing by pressing the escape key
+ $(document).bind('keydown.dialog-overlay', function(e) {
+ var ESC = 27;
+ (e.keyCode && e.keyCode == ESC && dialog.close());
+ });
+
+ // handle window resize
+ $(window).bind('resize.dialog-overlay', $.ui.dialog.overlay.resize);
+ }
+
+ var $el = $('<div/>').appendTo(document.body)
+ .addClass('ui-dialog-overlay').css($.extend({
+ borderWidth: 0, margin: 0, padding: 0,
+ position: 'absolute', top: 0, left: 0,
+ width: this.width(),
+ height: this.height()
+ }, dialog.options.overlay));
+
+ (dialog.options.bgiframe && $.fn.bgiframe && $el.bgiframe());
+
+ this.instances.push($el);
+ return $el;
+ },
+
+ destroy: function($el) {
+ this.instances.splice($.inArray(this.instances, $el), 1);
+
+ if (this.instances.length === 0) {
+ $('a, :input').add([document, window]).unbind('.dialog-overlay');
+ }
+
+ $el.remove();
+ },
+
+ height: function() {
+ if ($.browser.msie && $.browser.version < 7) {
+ var scrollHeight = Math.max(
+ document.documentElement.scrollHeight,
+ document.body.scrollHeight
+ );
+ var offsetHeight = Math.max(
+ document.documentElement.offsetHeight,
+ document.body.offsetHeight
+ );
+
+ if (scrollHeight < offsetHeight) {
+ return $(window).height() + 'px';
+ } else {
+ return scrollHeight + 'px';
+ }
+ } else {
+ return $(document).height() + 'px';
+ }
+ },
+
+ width: function() {
+ if ($.browser.msie && $.browser.version < 7) {
+ var scrollWidth = Math.max(
+ document.documentElement.scrollWidth,
+ document.body.scrollWidth
+ );
+ var offsetWidth = Math.max(
+ document.documentElement.offsetWidth,
+ document.body.offsetWidth
+ );
+
+ if (scrollWidth < offsetWidth) {
+ return $(window).width() + 'px';
+ } else {
+ return scrollWidth + 'px';
+ }
+ } else {
+ return $(document).width() + 'px';
+ }
+ },
+
+ resize: function() {
+ /* If the dialog is draggable and the user drags it past the
+ * right edge of the window, the document becomes wider so we
+ * need to stretch the overlay. If the user then drags the
+ * dialog back to the left, the document will become narrower,
+ * so we need to shrink the overlay to the appropriate size.
+ * This is handled by shrinking the overlay before setting it
+ * to the full document size.
+ */
+ var $overlays = $([]);
+ $.each($.ui.dialog.overlay.instances, function() {
+ $overlays = $overlays.add(this);
+ });
+
+ $overlays.css({
+ width: 0,
+ height: 0
+ }).css({
+ width: $.ui.dialog.overlay.width(),
+ height: $.ui.dialog.overlay.height()
+ });
+ }
+});
+
+$.extend($.ui.dialog.overlay.prototype, {
+ destroy: function() {
+ $.ui.dialog.overlay.destroy(this.$el);
+ }
+});
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/ui.draggable.js b/javascript/libs/jquery/full/ui/ui.draggable.js
new file mode 100644
index 0000000..dd663e2
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/ui.draggable.js
@@ -0,0 +1,561 @@
+/*
+ * jQuery UI Draggable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Draggables
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.widget("ui.draggable", $.extend($.ui.mouse, {
+ init: function() {
+
+ //Initialize needed constants
+ var o = this.options;
+
+ //Position the node
+ if (o.helper == 'original' && !(/(relative|absolute|fixed)/).test(this.element.css('position')))
+ this.element.css('position', 'relative');
+
+ this.element.addClass('ui-draggable');
+ (o.disabled && this.element.addClass('ui-draggable-disabled'));
+
+ this.mouseInit();
+
+ },
+ mouseStart: function(e) {
+ var o = this.options;
+
+ if (this.helper || o.disabled || $(e.target).is('.ui-resizable-handle')) return false;
+
+ var handle = !this.options.handle || !$(this.options.handle, this.element).length ? true : false;
+
+
+ $(this.options.handle, this.element).find("*").andSelf().each(function() {
+ if(this == e.target) handle = true;
+ });
+ if (!handle) return false;
+
+ if($.ui.ddmanager) $.ui.ddmanager.current = this;
+
+ //Create and append the visible helper
+ this.helper = $.isFunction(o.helper) ? $(o.helper.apply(this.element[0], [e])) : (o.helper == 'clone' ? this.element.clone() : this.element);
+ if(!this.helper.parents('body').length) this.helper.appendTo((o.appendTo == 'parent' ? this.element[0].parentNode : o.appendTo));
+ if(this.helper[0] != this.element[0] && !(/(fixed|absolute)/).test(this.helper.css("position"))) this.helper.css("position", "absolute");
+
+ /*
+ * - Position generation -
+ * This block generates everything position related - it's the core of draggables.
+ */
+
+ this.margins = { //Cache the margins
+ left: (parseInt(this.element.css("marginLeft"),10) || 0),
+ top: (parseInt(this.element.css("marginTop"),10) || 0)
+ };
+
+ this.cssPosition = this.helper.css("position"); //Store the helper's css position
+ this.offset = this.element.offset(); //The element's absolute position on the page
+ this.offset = { //Substract the margins from the element's absolute offset
+ top: this.offset.top - this.margins.top,
+ left: this.offset.left - this.margins.left
+ };
+
+ this.offset.click = { //Where the click happened, relative to the element
+ left: e.pageX - this.offset.left,
+ top: e.pageY - this.offset.top
+ };
+
+ this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); //Get the offsetParent and cache its position
+ if(this.offsetParent[0] == document.body && $.browser.mozilla) po = { top: 0, left: 0 }; //Ugly FF3 fix
+ this.offset.parent = { //Store its position plus border
+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
+ };
+
+ var p = this.element.position(); //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helpers
+ this.offset.relative = this.cssPosition == "relative" ? {
+ top: p.top - (parseInt(this.helper.css("top"),10) || 0) + this.offsetParent[0].scrollTop,
+ left: p.left - (parseInt(this.helper.css("left"),10) || 0) + this.offsetParent[0].scrollLeft
+ } : { top: 0, left: 0 };
+
+ this.originalPosition = this.generatePosition(e); //Generate the original position
+ this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Cache the helper size
+
+ if(o.cursorAt) {
+ if(o.cursorAt.left != undefined) this.offset.click.left = o.cursorAt.left + this.margins.left;
+ if(o.cursorAt.right != undefined) this.offset.click.left = this.helperProportions.width - o.cursorAt.right + this.margins.left;
+ if(o.cursorAt.top != undefined) this.offset.click.top = o.cursorAt.top + this.margins.top;
+ if(o.cursorAt.bottom != undefined) this.offset.click.top = this.helperProportions.height - o.cursorAt.bottom + this.margins.top;
+ }
+
+
+ /*
+ * - Position constraining -
+ * Here we prepare position constraining like grid and containment.
+ */
+
+ if(o.containment) {
+ if(o.containment == 'parent') o.containment = this.helper[0].parentNode;
+ if(o.containment == 'document' || o.containment == 'window') this.containment = [
+ 0 - this.offset.relative.left - this.offset.parent.left,
+ 0 - this.offset.relative.top - this.offset.parent.top,
+ $(o.containment == 'document' ? document : window).width() - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
+ ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
+ ];
+
+ if(!(/^(document|window|parent)$/).test(o.containment)) {
+ var ce = $(o.containment)[0];
+ var co = $(o.containment).offset();
+
+ this.containment = [
+ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left,
+ co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top,
+ co.left+Math.max(ce.scrollWidth,ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.relative.left - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
+ co.top+Math.max(ce.scrollHeight,ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.relative.top - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
+ ];
+ }
+ }
+
+ //Call plugins and callbacks
+ this.propagate("start", e);
+
+ this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Recache the helper size
+ if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, e);
+
+ this.helper.addClass("ui-draggable-dragging");
+ this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
+ return true;
+ },
+ convertPositionTo: function(d, pos) {
+ if(!pos) pos = this.position;
+ var mod = d == "absolute" ? 1 : -1;
+ return {
+ top: (
+ pos.top // the calculated relative position
+ + this.offset.relative.top * mod // Only for relative positioned nodes: Relative offset from element to offset parent
+ + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)
+ - (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollTop) * mod // The offsetParent's scroll position, not if the element is fixed
+ + (this.cssPosition == "fixed" ? this.offsetParent[0].scrollTop : 0) * mod
+ + this.margins.top * mod //Add the margin (you don't want the margin counting in intersection methods)
+ ),
+ left: (
+ pos.left // the calculated relative position
+ + this.offset.relative.left * mod // Only for relative positioned nodes: Relative offset from element to offset parent
+ + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)
+ - (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollLeft) * mod // The offsetParent's scroll position, not if the element is fixed
+ + (this.cssPosition == "fixed" ? this.offsetParent[0].scrollLeft : 0) * mod
+ + this.margins.left * mod //Add the margin (you don't want the margin counting in intersection methods)
+ )
+ };
+ },
+ generatePosition: function(e) {
+
+ var o = this.options;
+ var position = {
+ top: (
+ e.pageY // The absolute mouse position
+ - this.offset.click.top // Click offset (relative to the element)
+ - this.offset.relative.top // Only for relative positioned nodes: Relative offset from element to offset parent
+ - this.offset.parent.top // The offsetParent's offset without borders (offset + border)
+ + (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollTop) // The offsetParent's scroll position, not if the element is fixed
+ - (this.cssPosition == "fixed" ? this.offsetParent[0].scrollTop : 0)
+ ),
+ left: (
+ e.pageX // The absolute mouse position
+ - this.offset.click.left // Click offset (relative to the element)
+ - this.offset.relative.left // Only for relative positioned nodes: Relative offset from element to offset parent
+ - this.offset.parent.left // The offsetParent's offset without borders (offset + border)
+ + (this.cssPosition == "fixed" || (this.cssPosition == "absolute" && this.offsetParent[0] == document.body) ? 0 : this.offsetParent[0].scrollLeft) // The offsetParent's scroll position, not if the element is fixed
+ - (this.cssPosition == "fixed" ? this.offsetParent[0].scrollLeft : 0)
+ )
+ };
+
+ if(!this.originalPosition) return position; //If we are not dragging yet, we won't check for options
+
+ /*
+ * - Position constraining -
+ * Constrain the position to a mix of grid, containment.
+ */
+ if(this.containment) {
+ if(position.left < this.containment[0]) position.left = this.containment[0];
+ if(position.top < this.containment[1]) position.top = this.containment[1];
+ if(position.left > this.containment[2]) position.left = this.containment[2];
+ if(position.top > this.containment[3]) position.top = this.containment[3];
+ }
+
+ if(o.grid) {
+ var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1];
+ position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
+
+ var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0];
+ position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
+ }
+
+ return position;
+ },
+ mouseDrag: function(e) {
+
+ //Compute the helpers position
+ this.position = this.generatePosition(e);
+ this.positionAbs = this.convertPositionTo("absolute");
+
+ //Call plugins and callbacks and use the resulting position if something is returned
+ this.position = this.propagate("drag", e) || this.position;
+
+ if(!this.options.axis || this.options.axis != "y") this.helper[0].style.left = this.position.left+'px';
+ if(!this.options.axis || this.options.axis != "x") this.helper[0].style.top = this.position.top+'px';
+ if($.ui.ddmanager) $.ui.ddmanager.drag(this, e);
+
+ return false;
+ },
+ mouseStop: function(e) {
+
+ //If we are using droppables, inform the manager about the drop
+ if ($.ui.ddmanager && !this.options.dropBehaviour)
+ $.ui.ddmanager.drop(this, e);
+
+ if(this.options.revert) {
+ var self = this;
+ $(this.helper).animate(this.originalPosition, parseInt(this.options.revert, 10) || 500, function() {
+ self.propagate("stop", e);
+ self.clear();
+ });
+ } else {
+ this.propagate("stop", e);
+ this.clear();
+ }
+
+ return false;
+ },
+ clear: function() {
+ this.helper.removeClass("ui-draggable-dragging");
+ if(this.options.helper != 'original' && !this.cancelHelperRemoval) this.helper.remove();
+ //if($.ui.ddmanager) $.ui.ddmanager.current = null;
+ this.helper = null;
+ this.cancelHelperRemoval = false;
+ },
+
+ // From now on bulk stuff - mainly helpers
+ plugins: {},
+ uiHash: function(e) {
+ return {
+ helper: this.helper,
+ position: this.position,
+ absolutePosition: this.positionAbs,
+ options: this.options
+ };
+ },
+ propagate: function(n,e) {
+ $.ui.plugin.call(this, n, [e, this.uiHash()]);
+ return this.element.triggerHandler(n == "drag" ? n : "drag"+n, [e, this.uiHash()], this.options[n]);
+ },
+ destroy: function() {
+ if(!this.element.data('draggable')) return;
+ this.element.removeData("draggable").unbind(".draggable").removeClass('ui-draggable');
+ this.mouseDestroy();
+ }
+}));
+
+$.extend($.ui.draggable, {
+ defaults: {
+ appendTo: "parent",
+ axis: false,
+ cancel: ":input,button",
+ delay: 0,
+ distance: 0,
+ helper: "original"
+ }
+});
+
+$.ui.plugin.add("draggable", "cursor", {
+ start: function(e, ui) {
+ var t = $('body');
+ if (t.css("cursor")) ui.options._cursor = t.css("cursor");
+ t.css("cursor", ui.options.cursor);
+ },
+ stop: function(e, ui) {
+ if (ui.options._cursor) $('body').css("cursor", ui.options._cursor);
+ }
+});
+
+$.ui.plugin.add("draggable", "zIndex", {
+ start: function(e, ui) {
+ var t = $(ui.helper);
+ if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex");
+ t.css('zIndex', ui.options.zIndex);
+ },
+ stop: function(e, ui) {
+ if(ui.options._zIndex) $(ui.helper).css('zIndex', ui.options._zIndex);
+ }
+});
+
+$.ui.plugin.add("draggable", "opacity", {
+ start: function(e, ui) {
+ var t = $(ui.helper);
+ if(t.css("opacity")) ui.options._opacity = t.css("opacity");
+ t.css('opacity', ui.options.opacity);
+ },
+ stop: function(e, ui) {
+ if(ui.options._opacity) $(ui.helper).css('opacity', ui.options._opacity);
+ }
+});
+
+$.ui.plugin.add("draggable", "iframeFix", {
+ start: function(e, ui) {
+ $(ui.options.iframeFix === true ? "iframe" : ui.options.iframeFix).each(function() {
+ $('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>')
+ .css({
+ width: this.offsetWidth+"px", height: this.offsetHeight+"px",
+ position: "absolute", opacity: "0.001", zIndex: 1000
+ })
+ .css($(this).offset())
+ .appendTo("body");
+ });
+ },
+ stop: function(e, ui) {
+ $("div.DragDropIframeFix").each(function() { this.parentNode.removeChild(this); }); //Remove frame helpers
+ }
+});
+
+$.ui.plugin.add("draggable", "scroll", {
+ start: function(e, ui) {
+ var o = ui.options;
+ var i = $(this).data("draggable");
+ o.scrollSensitivity = o.scrollSensitivity || 20;
+ o.scrollSpeed = o.scrollSpeed || 20;
+
+ i.overflowY = function(el) {
+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-y'))) return el; el = el.parent(); } while (el[0].parentNode);
+ return $(document);
+ }(this);
+ i.overflowX = function(el) {
+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-x'))) return el; el = el.parent(); } while (el[0].parentNode);
+ return $(document);
+ }(this);
+
+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') i.overflowYOffset = i.overflowY.offset();
+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') i.overflowXOffset = i.overflowX.offset();
+
+ },
+ drag: function(e, ui) {
+
+ var o = ui.options;
+ var i = $(this).data("draggable");
+
+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') {
+ if((i.overflowYOffset.top + i.overflowY[0].offsetHeight) - e.pageY < o.scrollSensitivity)
+ i.overflowY[0].scrollTop = i.overflowY[0].scrollTop + o.scrollSpeed;
+ if(e.pageY - i.overflowYOffset.top < o.scrollSensitivity)
+ i.overflowY[0].scrollTop = i.overflowY[0].scrollTop - o.scrollSpeed;
+
+ } else {
+ if(e.pageY - $(document).scrollTop() < o.scrollSensitivity)
+ $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
+ if($(window).height() - (e.pageY - $(document).scrollTop()) < o.scrollSensitivity)
+ $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
+ }
+
+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') {
+ if((i.overflowXOffset.left + i.overflowX[0].offsetWidth) - e.pageX < o.scrollSensitivity)
+ i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft + o.scrollSpeed;
+ if(e.pageX - i.overflowXOffset.left < o.scrollSensitivity)
+ i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft - o.scrollSpeed;
+ } else {
+ if(e.pageX - $(document).scrollLeft() < o.scrollSensitivity)
+ $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
+ if($(window).width() - (e.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
+ $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
+ }
+
+ }
+});
+
+$.ui.plugin.add("draggable", "snap", {
+ start: function(e, ui) {
+
+ var inst = $(this).data("draggable");
+ inst.snapElements = [];
+ $(ui.options.snap === true ? '.ui-draggable' : ui.options.snap).each(function() {
+ var $t = $(this); var $o = $t.offset();
+ if(this != inst.element[0]) inst.snapElements.push({
+ item: this,
+ width: $t.outerWidth(), height: $t.outerHeight(),
+ top: $o.top, left: $o.left
+ });
+ });
+
+ },
+ drag: function(e, ui) {
+
+ var inst = $(this).data("draggable");
+ var d = ui.options.snapTolerance || 20;
+ var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width,
+ y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height;
+
+ for (var i = inst.snapElements.length - 1; i >= 0; i--){
+
+ var l = inst.snapElements[i].left, r = l + inst.snapElements[i].width,
+ t = inst.snapElements[i].top, b = t + inst.snapElements[i].height;
+
+ //Yes, I know, this is insane ;)
+ if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) continue;
+
+ if(ui.options.snapMode != 'inner') {
+ var ts = Math.abs(t - y2) <= 20;
+ var bs = Math.abs(b - y1) <= 20;
+ var ls = Math.abs(l - x2) <= 20;
+ var rs = Math.abs(r - x1) <= 20;
+ if(ts) ui.position.top = inst.convertPositionTo("relative", { top: t - inst.helperProportions.height, left: 0 }).top;
+ if(bs) ui.position.top = inst.convertPositionTo("relative", { top: b, left: 0 }).top;
+ if(ls) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: l - inst.helperProportions.width }).left;
+ if(rs) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: r }).left;
+ }
+
+ if(ui.options.snapMode != 'outer') {
+ var ts = Math.abs(t - y1) <= 20;
+ var bs = Math.abs(b - y2) <= 20;
+ var ls = Math.abs(l - x1) <= 20;
+ var rs = Math.abs(r - x2) <= 20;
+ if(ts) ui.position.top = inst.convertPositionTo("relative", { top: t, left: 0 }).top;
+ if(bs) ui.position.top = inst.convertPositionTo("relative", { top: b - inst.helperProportions.height, left: 0 }).top;
+ if(ls) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: l }).left;
+ if(rs) ui.position.left = inst.convertPositionTo("relative", { top: 0, left: r - inst.helperProportions.width }).left;
+ }
+
+ };
+ }
+});
+
+$.ui.plugin.add("draggable", "connectToSortable", {
+ start: function(e,ui) {
+
+ var inst = $(this).data("draggable");
+ inst.sortables = [];
+ $(ui.options.connectToSortable).each(function() {
+ if($.data(this, 'sortable')) {
+ var sortable = $.data(this, 'sortable');
+ inst.sortables.push({
+ instance: sortable,
+ shouldRevert: sortable.options.revert
+ });
+ sortable.refresh(); //Do a one-time refresh at start to refresh the containerCache
+ sortable.propagate("activate", e, inst);
+ }
+ });
+
+ },
+ stop: function(e,ui) {
+
+ //If we are still over the sortable, we fake the stop event of the sortable, but also remove helper
+ var inst = $(this).data("draggable");
+
+ $.each(inst.sortables, function() {
+ if(this.instance.isOver) {
+ this.instance.isOver = 0;
+ inst.cancelHelperRemoval = true; //Don't remove the helper in the draggable instance
+ this.instance.cancelHelperRemoval = false; //Remove it in the sortable instance (so sortable plugins like revert still work)
+ if(this.shouldRevert) this.instance.options.revert = true; //revert here
+ this.instance.mouseStop(e);
+
+ //Also propagate receive event, since the sortable is actually receiving a element
+ this.instance.element.triggerHandler("sortreceive", [e, $.extend(this.instance.ui(), { sender: inst.element })], this.instance.options["receive"]);
+
+ this.instance.options.helper = this.instance.options._helper;
+ } else {
+ this.instance.propagate("deactivate", e, inst);
+ }
+
+ });
+
+ },
+ drag: function(e,ui) {
+
+ var inst = $(this).data("draggable"), self = this;
+
+ var checkPos = function(o) {
+
+ var l = o.left, r = l + o.width,
+ t = o.top, b = t + o.height;
+
+ return (l < (this.positionAbs.left + this.offset.click.left) && (this.positionAbs.left + this.offset.click.left) < r
+ && t < (this.positionAbs.top + this.offset.click.top) && (this.positionAbs.top + this.offset.click.top) < b);
+ };
+
+ $.each(inst.sortables, function(i) {
+
+ if(checkPos.call(inst, this.instance.containerCache)) {
+
+ //If it intersects, we use a little isOver variable and set it once, so our move-in stuff gets fired only once
+ if(!this.instance.isOver) {
+ this.instance.isOver = 1;
+
+ //Now we fake the start of dragging for the sortable instance,
+ //by cloning the list group item, appending it to the sortable and using it as inst.currentItem
+ //We can then fire the start event of the sortable with our passed browser event, and our own helper (so it doesn't create a new one)
+ this.instance.currentItem = $(self).clone().appendTo(this.instance.element).data("sortable-item", true);
+ this.instance.options._helper = this.instance.options.helper; //Store helper option to later restore it
+ this.instance.options.helper = function() { return ui.helper[0]; };
+
+ e.target = this.instance.currentItem[0];
+ this.instance.mouseCapture(e, true, true);
+ this.instance.mouseStart(e, true, true);
+
+ //Because the browser event is way off the new appended portlet, we modify a couple of variables to reflect the changes
+ this.instance.offset.click.top = inst.offset.click.top;
+ this.instance.offset.click.left = inst.offset.click.left;
+ this.instance.offset.parent.left -= inst.offset.parent.left - this.instance.offset.parent.left;
+ this.instance.offset.parent.top -= inst.offset.parent.top - this.instance.offset.parent.top;
+
+ inst.propagate("toSortable", e);
+
+ }
+
+ //Provided we did all the previous steps, we can fire the drag event of the sortable on every draggable drag, when it intersects with the sortable
+ if(this.instance.currentItem) this.instance.mouseDrag(e);
+
+ } else {
+
+ //If it doesn't intersect with the sortable, and it intersected before,
+ //we fake the drag stop of the sortable, but make sure it doesn't remove the helper by using cancelHelperRemoval
+ if(this.instance.isOver) {
+ this.instance.isOver = 0;
+ this.instance.cancelHelperRemoval = true;
+ this.instance.options.revert = false; //No revert here
+ this.instance.mouseStop(e, true);
+ this.instance.options.helper = this.instance.options._helper;
+
+ //Now we remove our currentItem, the list group clone again, and the placeholder, and animate the helper back to it's original size
+ this.instance.currentItem.remove();
+ this.instance.placeholder.remove();
+
+ inst.propagate("fromSortable", e);
+ }
+
+ };
+
+ });
+
+ }
+});
+
+$.ui.plugin.add("draggable", "stack", {
+ start: function(e,ui) {
+ var group = $.makeArray($(ui.options.stack.group)).sort(function(a,b) {
+ return (parseInt($(a).css("zIndex"),10) || ui.options.stack.min) - (parseInt($(b).css("zIndex"),10) || ui.options.stack.min);
+ });
+
+ $(group).each(function(i) {
+ this.style.zIndex = ui.options.stack.min + i;
+ });
+
+ this[0].style.zIndex = ui.options.stack.min + group.length;
+ }
+});
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/ui.droppable.js b/javascript/libs/jquery/full/ui/ui.droppable.js
new file mode 100644
index 0000000..ef76a62
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/ui.droppable.js
@@ -0,0 +1,281 @@
+/*
+ * jQuery UI Droppable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Droppables
+ *
+ * Depends:
+ * ui.core.js
+ * ui.draggable.js
+ *
+ */
+(function($) {
+
+$.widget("ui.droppable", {
+ init: function() {
+
+ this.element.addClass("ui-droppable");
+ this.isover = 0; this.isout = 1;
+
+ //Prepare the passed options
+ var o = this.options, accept = o.accept;
+ o = $.extend(o, {
+ accept: o.accept && o.accept.constructor == Function ? o.accept : function(d) {
+ return $(d).is(accept);
+ }
+ });
+
+ //Store the droppable's proportions
+ this.proportions = { width: this.element.outerWidth(), height: this.element.outerHeight() };
+
+ // Add the reference and positions to the manager
+ $.ui.ddmanager.droppables.push(this);
+
+ },
+ plugins: {},
+ ui: function(c) {
+ return {
+ draggable: (c.currentItem || c.element),
+ helper: c.helper,
+ position: c.position,
+ absolutePosition: c.positionAbs,
+ options: this.options,
+ element: this.element
+ };
+ },
+ destroy: function() {
+ var drop = $.ui.ddmanager.droppables;
+ for ( var i = 0; i < drop.length; i++ )
+ if ( drop[i] == this )
+ drop.splice(i, 1);
+
+ this.element
+ .removeClass("ui-droppable ui-droppable-disabled")
+ .removeData("droppable")
+ .unbind(".droppable");
+ },
+ over: function(e) {
+
+ var draggable = $.ui.ddmanager.current;
+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element
+
+ if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+ $.ui.plugin.call(this, 'over', [e, this.ui(draggable)]);
+ this.element.triggerHandler("dropover", [e, this.ui(draggable)], this.options.over);
+ }
+
+ },
+ out: function(e) {
+
+ var draggable = $.ui.ddmanager.current;
+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return; // Bail if draggable and droppable are same element
+
+ if (this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+ $.ui.plugin.call(this, 'out', [e, this.ui(draggable)]);
+ this.element.triggerHandler("dropout", [e, this.ui(draggable)], this.options.out);
+ }
+
+ },
+ drop: function(e,custom) {
+
+ var draggable = custom || $.ui.ddmanager.current;
+ if (!draggable || (draggable.currentItem || draggable.element)[0] == this.element[0]) return false; // Bail if draggable and droppable are same element
+
+ var childrenIntersection = false;
+ this.element.find(".ui-droppable").not(".ui-draggable-dragging").each(function() {
+ var inst = $.data(this, 'droppable');
+ if(inst.options.greedy && $.ui.intersect(draggable, $.extend(inst, { offset: inst.element.offset() }), inst.options.tolerance)) {
+ childrenIntersection = true; return false;
+ }
+ });
+ if(childrenIntersection) return false;
+
+ if(this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+ $.ui.plugin.call(this, 'drop', [e, this.ui(draggable)]);
+ this.element.triggerHandler("drop", [e, this.ui(draggable)], this.options.drop);
+ return true;
+ }
+
+ return false;
+
+ },
+ activate: function(e) {
+
+ var draggable = $.ui.ddmanager.current;
+ $.ui.plugin.call(this, 'activate', [e, this.ui(draggable)]);
+ if(draggable) this.element.triggerHandler("dropactivate", [e, this.ui(draggable)], this.options.activate);
+
+ },
+ deactivate: function(e) {
+
+ var draggable = $.ui.ddmanager.current;
+ $.ui.plugin.call(this, 'deactivate', [e, this.ui(draggable)]);
+ if(draggable) this.element.triggerHandler("dropdeactivate", [e, this.ui(draggable)], this.options.deactivate);
+
+ }
+});
+
+$.extend($.ui.droppable, {
+ defaults: {
+ disabled: false,
+ tolerance: 'intersect'
+ }
+});
+
+$.ui.intersect = function(draggable, droppable, toleranceMode) {
+
+ if (!droppable.offset) return false;
+
+ var x1 = (draggable.positionAbs || draggable.position.absolute).left, x2 = x1 + draggable.helperProportions.width,
+ y1 = (draggable.positionAbs || draggable.position.absolute).top, y2 = y1 + draggable.helperProportions.height;
+ var l = droppable.offset.left, r = l + droppable.proportions.width,
+ t = droppable.offset.top, b = t + droppable.proportions.height;
+
+ switch (toleranceMode) {
+ case 'fit':
+ return (l < x1 && x2 < r
+ && t < y1 && y2 < b);
+ break;
+ case 'intersect':
+ return (l < x1 + (draggable.helperProportions.width / 2) // Right Half
+ && x2 - (draggable.helperProportions.width / 2) < r // Left Half
+ && t < y1 + (draggable.helperProportions.height / 2) // Bottom Half
+ && y2 - (draggable.helperProportions.height / 2) < b ); // Top Half
+ break;
+ case 'pointer':
+ return (l < ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) && ((draggable.positionAbs || draggable.position.absolute).left + (draggable.clickOffset || draggable.offset.click).left) < r
+ && t < ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) && ((draggable.positionAbs || draggable.position.absolute).top + (draggable.clickOffset || draggable.offset.click).top) < b);
+ break;
+ case 'touch':
+ return (
+ (y1 >= t && y1 <= b) || // Top edge touching
+ (y2 >= t && y2 <= b) || // Bottom edge touching
+ (y1 < t && y2 > b) // Surrounded vertically
+ ) && (
+ (x1 >= l && x1 <= r) || // Left edge touching
+ (x2 >= l && x2 <= r) || // Right edge touching
+ (x1 < l && x2 > r) // Surrounded horizontally
+ );
+ break;
+ default:
+ return false;
+ break;
+ }
+
+};
+
+/*
+ This manager tracks offsets of draggables and droppables
+*/
+$.ui.ddmanager = {
+ current: null,
+ droppables: [],
+ prepareOffsets: function(t, e) {
+
+ var m = $.ui.ddmanager.droppables;
+ var type = e ? e.type : null; // workaround for #2317
+ for (var i = 0; i < m.length; i++) {
+
+ if(m[i].options.disabled || (t && !m[i].options.accept.call(m[i].element,(t.currentItem || t.element)))) continue;
+ m[i].visible = m[i].element.is(":visible"); if(!m[i].visible) continue; //If the element is not visible, continue
+ m[i].offset = m[i].element.offset();
+ m[i].proportions = { width: m[i].element.outerWidth(), height: m[i].element.outerHeight() };
+
+ if(type == "dragstart" || type == "sortactivate") m[i].activate.call(m[i], e); //Activate the droppable if used directly from draggables
+ }
+
+ },
+ drop: function(draggable, e) {
+
+ var dropped = false;
+ $.each($.ui.ddmanager.droppables, function() {
+
+ if(!this.options) return;
+ if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance))
+ dropped = this.drop.call(this, e);
+
+ if (!this.options.disabled && this.visible && this.options.accept.call(this.element,(draggable.currentItem || draggable.element))) {
+ this.isout = 1; this.isover = 0;
+ this.deactivate.call(this, e);
+ }
+
+ });
+ return dropped;
+
+ },
+ drag: function(draggable, e) {
+
+ //If you have a highly dynamic page, you might try this option. It renders positions every time you move the mouse.
+ if(draggable.options.refreshPositions) $.ui.ddmanager.prepareOffsets(draggable, e);
+
+ //Run through all droppables and check their positions based on specific tolerance options
+ $.each($.ui.ddmanager.droppables, function() {
+
+ if(this.disabled || this.greedyChild || !this.visible) return;
+ var intersects = $.ui.intersect(draggable, this, this.options.tolerance);
+
+ var c = !intersects && this.isover == 1 ? 'isout' : (intersects && this.isover == 0 ? 'isover' : null);
+ if(!c) return;
+
+ var parentInstance;
+ if (this.options.greedy) {
+ var parent = this.element.parents('.ui-droppable:eq(0)');
+ if (parent.length) {
+ parentInstance = $.data(parent[0], 'droppable');
+ parentInstance.greedyChild = (c == 'isover' ? 1 : 0);
+ }
+ }
+
+ // we just moved into a greedy child
+ if (parentInstance && c == 'isover') {
+ parentInstance['isover'] = 0;
+ parentInstance['isout'] = 1;
+ parentInstance.out.call(parentInstance, e);
+ }
+
+ this[c] = 1; this[c == 'isout' ? 'isover' : 'isout'] = 0;
+ this[c == "isover" ? "over" : "out"].call(this, e);
+
+ // we just moved out of a greedy child
+ if (parentInstance && c == 'isout') {
+ parentInstance['isout'] = 0;
+ parentInstance['isover'] = 1;
+ parentInstance.over.call(parentInstance, e);
+ }
+ });
+
+ }
+};
+
+/*
+ * Droppable Extensions
+ */
+
+$.ui.plugin.add("droppable", "activeClass", {
+ activate: function(e, ui) {
+ $(this).addClass(ui.options.activeClass);
+ },
+ deactivate: function(e, ui) {
+ $(this).removeClass(ui.options.activeClass);
+ },
+ drop: function(e, ui) {
+ $(this).removeClass(ui.options.activeClass);
+ }
+});
+
+$.ui.plugin.add("droppable", "hoverClass", {
+ over: function(e, ui) {
+ $(this).addClass(ui.options.hoverClass);
+ },
+ out: function(e, ui) {
+ $(this).removeClass(ui.options.hoverClass);
+ },
+ drop: function(e, ui) {
+ $(this).removeClass(ui.options.hoverClass);
+ }
+});
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/ui.resizable.js b/javascript/libs/jquery/full/ui/ui.resizable.js
new file mode 100644
index 0000000..e801e83
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/ui.resizable.js
@@ -0,0 +1,752 @@
+/*
+ * jQuery UI Resizable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Resizables
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.widget("ui.resizable", $.extend($.ui.mouse, {
+ init: function() {
+
+ var self = this, o = this.options;
+
+ var elpos = this.element.css('position');
+
+ // simulate .ui-resizable { position: relative; }
+ this.element.addClass("ui-resizable").css({ position: /static/.test(elpos) ? 'relative' : elpos });
+
+ $.extend(o, {
+ _aspectRatio: !!(o.aspectRatio),
+ proxy: o.proxy || o.ghost || o.animate ? o.proxy || 'proxy' : null,
+ knobHandles: o.knobHandles === true ? 'ui-resizable-knob-handle' : o.knobHandles
+ });
+
+ //Default Theme
+ var aBorder = '1px solid #DEDEDE';
+
+ o.defaultTheme = {
+ 'ui-resizable': { display: 'block' },
+ 'ui-resizable-handle': { position: 'absolute', background: '#F2F2F2', fontSize: '0.1px' },
+ 'ui-resizable-n': { cursor: 'n-resize', height: '4px', left: '0px', right: '0px', borderTop: aBorder },
+ 'ui-resizable-s': { cursor: 's-resize', height: '4px', left: '0px', right: '0px', borderBottom: aBorder },
+ 'ui-resizable-e': { cursor: 'e-resize', width: '4px', top: '0px', bottom: '0px', borderRight: aBorder },
+ 'ui-resizable-w': { cursor: 'w-resize', width: '4px', top: '0px', bottom: '0px', borderLeft: aBorder },
+ 'ui-resizable-se': { cursor: 'se-resize', width: '4px', height: '4px', borderRight: aBorder, borderBottom: aBorder },
+ 'ui-resizable-sw': { cursor: 'sw-resize', width: '4px', height: '4px', borderBottom: aBorder, borderLeft: aBorder },
+ 'ui-resizable-ne': { cursor: 'ne-resize', width: '4px', height: '4px', borderRight: aBorder, borderTop: aBorder },
+ 'ui-resizable-nw': { cursor: 'nw-resize', width: '4px', height: '4px', borderLeft: aBorder, borderTop: aBorder }
+ };
+
+ o.knobTheme = {
+ 'ui-resizable-handle': { background: '#F2F2F2', border: '1px solid #808080', height: '8px', width: '8px' },
+ 'ui-resizable-n': { cursor: 'n-resize', top: '0px', left: '45%' },
+ 'ui-resizable-s': { cursor: 's-resize', bottom: '0px', left: '45%' },
+ 'ui-resizable-e': { cursor: 'e-resize', right: '0px', top: '45%' },
+ 'ui-resizable-w': { cursor: 'w-resize', left: '0px', top: '45%' },
+ 'ui-resizable-se': { cursor: 'se-resize', right: '0px', bottom: '0px' },
+ 'ui-resizable-sw': { cursor: 'sw-resize', left: '0px', bottom: '0px' },
+ 'ui-resizable-nw': { cursor: 'nw-resize', left: '0px', top: '0px' },
+ 'ui-resizable-ne': { cursor: 'ne-resize', right: '0px', top: '0px' }
+ };
+
+ o._nodeName = this.element[0].nodeName;
+
+ //Wrap the element if it cannot hold child nodes
+ if(o._nodeName.match(/canvas|textarea|input|select|button|img/i)) {
+ var el = this.element;
+
+ //Opera fixing relative position
+ if (/relative/.test(el.css('position')) && $.browser.opera)
+ el.css({ position: 'relative', top: 'auto', left: 'auto' });
+
+ //Create a wrapper element and set the wrapper to the new current internal element
+ el.wrap(
+ $('<div class="ui-wrapper" style="overflow: hidden;"></div>').css( {
+ position: el.css('position'),
+ width: el.outerWidth(),
+ height: el.outerHeight(),
+ top: el.css('top'),
+ left: el.css('left')
+ })
+ );
+
+ var oel = this.element; this.element = this.element.parent();
+
+ // store instance on wrapper
+ this.element.data('resizable', this);
+
+ //Move margins to the wrapper
+ this.element.css({ marginLeft: oel.css("marginLeft"), marginTop: oel.css("marginTop"),
+ marginRight: oel.css("marginRight"), marginBottom: oel.css("marginBottom")
+ });
+
+ oel.css({ marginLeft: 0, marginTop: 0, marginRight: 0, marginBottom: 0});
+
+ //Prevent Safari textarea resize
+ if ($.browser.safari && o.preventDefault) oel.css('resize', 'none');
+
+ o.proportionallyResize = oel.css({ position: 'static', zoom: 1, display: 'block' });
+
+ // avoid IE jump
+ this.element.css({ margin: oel.css('margin') });
+
+ // fix handlers offset
+ this._proportionallyResize();
+ }
+
+ if(!o.handles) o.handles = !$('.ui-resizable-handle', this.element).length ? "e,s,se" : { n: '.ui-resizable-n', e: '.ui-resizable-e', s: '.ui-resizable-s', w: '.ui-resizable-w', se: '.ui-resizable-se', sw: '.ui-resizable-sw', ne: '.ui-resizable-ne', nw: '.ui-resizable-nw' };
+ if(o.handles.constructor == String) {
+
+ o.zIndex = o.zIndex || 1000;
+
+ if(o.handles == 'all') o.handles = 'n,e,s,w,se,sw,ne,nw';
+
+ var n = o.handles.split(","); o.handles = {};
+
+ // insertions are applied when don't have theme loaded
+ var insertionsDefault = {
+ handle: 'position: absolute; display: none; overflow:hidden;',
+ n: 'top: 0pt; width:100%;',
+ e: 'right: 0pt; height:100%;',
+ s: 'bottom: 0pt; width:100%;',
+ w: 'left: 0pt; height:100%;',
+ se: 'bottom: 0pt; right: 0px;',
+ sw: 'bottom: 0pt; left: 0px;',
+ ne: 'top: 0pt; right: 0px;',
+ nw: 'top: 0pt; left: 0px;'
+ };
+
+ for(var i = 0; i < n.length; i++) {
+ var handle = $.trim(n[i]), dt = o.defaultTheme, hname = 'ui-resizable-'+handle, loadDefault = !$.ui.css(hname) && !o.knobHandles, userKnobClass = $.ui.css('ui-resizable-knob-handle'),
+ allDefTheme = $.extend(dt[hname], dt['ui-resizable-handle']), allKnobTheme = $.extend(o.knobTheme[hname], !userKnobClass ? o.knobTheme['ui-resizable-handle'] : {});
+
+ // increase zIndex of sw, se, ne, nw axis
+ var applyZIndex = /sw|se|ne|nw/.test(handle) ? { zIndex: ++o.zIndex } : {};
+
+ var defCss = (loadDefault ? insertionsDefault[handle] : ''),
+ axis = $(['<div class="ui-resizable-handle ', hname, '" style="', defCss, insertionsDefault.handle, '"></div>'].join('')).css( applyZIndex );
+ o.handles[handle] = '.ui-resizable-'+handle;
+
+ this.element.append(
+ //Theme detection, if not loaded, load o.defaultTheme
+ axis.css( loadDefault ? allDefTheme : {} )
+ // Load the knobHandle css, fix width, height, top, left...
+ .css( o.knobHandles ? allKnobTheme : {} ).addClass(o.knobHandles ? 'ui-resizable-knob-handle' : '').addClass(o.knobHandles)
+ );
+ }
+
+ if (o.knobHandles) this.element.addClass('ui-resizable-knob').css( !$.ui.css('ui-resizable-knob') ? { /*border: '1px #fff dashed'*/ } : {} );
+ }
+
+ this._renderAxis = function(target) {
+ target = target || this.element;
+
+ for(var i in o.handles) {
+ if(o.handles[i].constructor == String)
+ o.handles[i] = $(o.handles[i], this.element).show();
+
+ if (o.transparent)
+ o.handles[i].css({opacity:0});
+
+ //Apply pad to wrapper element, needed to fix axis position (textarea, inputs, scrolls)
+ if (this.element.is('.ui-wrapper') &&
+ o._nodeName.match(/textarea|input|select|button/i)) {
+
+ var axis = $(o.handles[i], this.element), padWrapper = 0;
+
+ //Checking the correct pad and border
+ padWrapper = /sw|ne|nw|se|n|s/.test(i) ? axis.outerHeight() : axis.outerWidth();
+
+ //The padding type i have to apply...
+ var padPos = [ 'padding',
+ /ne|nw|n/.test(i) ? 'Top' :
+ /se|sw|s/.test(i) ? 'Bottom' :
+ /^e$/.test(i) ? 'Right' : 'Left' ].join("");
+
+ if (!o.transparent)
+ target.css(padPos, padWrapper);
+
+ this._proportionallyResize();
+ }
+ if(!$(o.handles[i]).length) continue;
+ }
+ };
+
+ this._renderAxis(this.element);
+ o._handles = $('.ui-resizable-handle', self.element);
+
+ if (o.disableSelection)
+ o._handles.each(function(i, e) { $.ui.disableSelection(e); });
+
+ //Matching axis name
+ o._handles.mouseover(function() {
+ if (!o.resizing) {
+ if (this.className)
+ var axis = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);
+ //Axis, default = se
+ self.axis = o.axis = axis && axis[1] ? axis[1] : 'se';
+ }
+ });
+
+ //If we want to auto hide the elements
+ if (o.autohide) {
+ o._handles.hide();
+ $(self.element).addClass("ui-resizable-autohide").hover(function() {
+ $(this).removeClass("ui-resizable-autohide");
+ o._handles.show();
+ },
+ function(){
+ if (!o.resizing) {
+ $(this).addClass("ui-resizable-autohide");
+ o._handles.hide();
+ }
+ });
+ }
+
+ this.mouseInit();
+ },
+ plugins: {},
+ ui: function() {
+ return {
+ axis: this.options.axis,
+ options: this.options
+ };
+ },
+ propagate: function(n,e) {
+ $.ui.plugin.call(this, n, [e, this.ui()]);
+ this.element.triggerHandler(n == "resize" ? n : ["resize", n].join(""), [e, this.ui()], this.options[n]);
+ },
+ destroy: function() {
+ var el = this.element, wrapped = el.children(".ui-resizable").get(0);
+
+ this.mouseDestroy();
+
+ var _destroy = function(exp) {
+ $(exp).removeClass("ui-resizable ui-resizable-disabled")
+ .removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
+ };
+
+ _destroy(el);
+
+ if (el.is('.ui-wrapper') && wrapped) {
+ el.parent().append(
+ $(wrapped).css({
+ position: el.css('position'),
+ width: el.outerWidth(),
+ height: el.outerHeight(),
+ top: el.css('top'),
+ left: el.css('left')
+ })
+ ).end().remove();
+
+ _destroy(wrapped);
+ }
+ },
+ mouseStart: function(e) {
+ if(this.options.disabled) return false;
+
+ var handle = false;
+ for(var i in this.options.handles) {
+ if($(this.options.handles[i])[0] == e.target) handle = true;
+ }
+ if (!handle) return false;
+
+ var o = this.options, iniPos = this.element.position(), el = this.element,
+ num = function(v) { return parseInt(v, 10) || 0; }, ie6 = $.browser.msie && $.browser.version < 7;
+ o.resizing = true;
+ o.documentScroll = { top: $(document).scrollTop(), left: $(document).scrollLeft() };
+
+ // bugfix #1749
+ if (el.is('.ui-draggable') || (/absolute/).test(el.css('position'))) {
+
+ // sOffset decides if document scrollOffset will be added to the top/left of the resizable element
+ var sOffset = $.browser.msie && !o.containment && (/absolute/).test(el.css('position')) && !(/relative/).test(el.parent().css('position'));
+ var dscrollt = sOffset ? o.documentScroll.top : 0, dscrolll = sOffset ? o.documentScroll.left : 0;
+
+ el.css({ position: 'absolute', top: (iniPos.top + dscrollt), left: (iniPos.left + dscrolll) });
+ }
+
+ //Opera fixing relative position
+ if ($.browser.opera && /relative/.test(el.css('position')))
+ el.css({ position: 'relative', top: 'auto', left: 'auto' });
+
+ this._renderProxy();
+
+ var curleft = num(this.helper.css('left')), curtop = num(this.helper.css('top'));
+
+ //Store needed variables
+ this.offset = this.helper.offset();
+ this.position = { left: curleft, top: curtop };
+ this.size = o.proxy || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
+ this.originalSize = o.proxy || ie6 ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
+ this.originalPosition = { left: curleft, top: curtop };
+ this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() };
+ this.originalMousePosition = { left: e.pageX, top: e.pageY };
+
+ //Aspect Ratio
+ o.aspectRatio = (typeof o.aspectRatio == 'number') ? o.aspectRatio : ((this.originalSize.height / this.originalSize.width)||1);
+
+ if (o.preserveCursor)
+ $('body').css('cursor', this.axis + '-resize');
+
+ this.propagate("start", e);
+ return true;
+ },
+ mouseDrag: function(e) {
+
+ //Increase performance, avoid regex
+ var el = this.helper, o = this.options, props = {},
+ self = this, smp = this.originalMousePosition, a = this.axis;
+
+ var dx = (e.pageX-smp.left)||0, dy = (e.pageY-smp.top)||0;
+ var trigger = this._change[a];
+ if (!trigger) return false;
+
+ // Calculate the attrs that will be change
+ var data = trigger.apply(this, [e, dx, dy]), ie6 = $.browser.msie && $.browser.version < 7, csdif = this.sizeDiff;
+
+ if (o._aspectRatio || e.shiftKey)
+ data = this._updateRatio(data, e);
+
+ data = this._respectSize(data, e);
+
+ this.propagate("resize", e);
+
+ el.css({
+ top: this.position.top + "px", left: this.position.left + "px",
+ width: this.size.width + "px", height: this.size.height + "px"
+ });
+
+ if (!o.proxy && o.proportionallyResize)
+ this._proportionallyResize();
+
+ this._updateCache(data);
+
+ return false;
+ },
+ mouseStop: function(e) {
+
+ this.options.resizing = false;
+ var o = this.options, num = function(v) { return parseInt(v, 10) || 0; }, self = this;
+
+ if(o.proxy) {
+ var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName),
+ soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height,
+ soffsetw = ista ? 0 : self.sizeDiff.width;
+
+ var s = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) },
+ left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null,
+ top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null;
+
+ if (!o.animate)
+ this.element.css($.extend(s, { top: top, left: left }));
+
+ if (o.proxy && !o.animate) this._proportionallyResize();
+ }
+
+ if (o.preserveCursor)
+ $('body').css('cursor', 'auto');
+
+ this.propagate("stop", e);
+
+ if (o.proxy) this.helper.remove();
+
+ return false;
+ },
+ _updateCache: function(data) {
+ var o = this.options;
+ this.offset = this.helper.offset();
+ if (data.left) this.position.left = data.left;
+ if (data.top) this.position.top = data.top;
+ if (data.height) this.size.height = data.height;
+ if (data.width) this.size.width = data.width;
+ },
+ _updateRatio: function(data, e) {
+ var o = this.options, cpos = this.position, csize = this.size, a = this.axis;
+
+ if (data.height) data.width = (csize.height / o.aspectRatio);
+ else if (data.width) data.height = (csize.width * o.aspectRatio);
+
+ if (a == 'sw') {
+ data.left = cpos.left + (csize.width - data.width);
+ data.top = null;
+ }
+ if (a == 'nw') {
+ data.top = cpos.top + (csize.height - data.height);
+ data.left = cpos.left + (csize.width - data.width);
+ }
+
+ return data;
+ },
+ _respectSize: function(data, e) {
+
+ var el = this.helper, o = this.options, pRatio = o._aspectRatio || e.shiftKey, a = this.axis,
+ ismaxw = data.width && o.maxWidth && o.maxWidth < data.width, ismaxh = data.height && o.maxHeight && o.maxHeight < data.height,
+ isminw = data.width && o.minWidth && o.minWidth > data.width, isminh = data.height && o.minHeight && o.minHeight > data.height;
+
+ if (isminw) data.width = o.minWidth;
+ if (isminh) data.height = o.minHeight;
+ if (ismaxw) data.width = o.maxWidth;
+ if (ismaxh) data.height = o.maxHeight;
+
+ var dw = this.originalPosition.left + this.originalSize.width, dh = this.position.top + this.size.height;
+ var cw = /sw|nw|w/.test(a), ch = /nw|ne|n/.test(a);
+
+ if (isminw && cw) data.left = dw - o.minWidth;
+ if (ismaxw && cw) data.left = dw - o.maxWidth;
+ if (isminh && ch) data.top = dh - o.minHeight;
+ if (ismaxh && ch) data.top = dh - o.maxHeight;
+
+ // fixing jump error on top/left - bug #2330
+ var isNotwh = !data.width && !data.height;
+ if (isNotwh && !data.left && data.top) data.top = null;
+ else if (isNotwh && !data.top && data.left) data.left = null;
+
+ return data;
+ },
+ _proportionallyResize: function() {
+ var o = this.options;
+ if (!o.proportionallyResize) return;
+ var prel = o.proportionallyResize, el = this.helper || this.element;
+
+ if (!o.borderDif) {
+ var b = [prel.css('borderTopWidth'), prel.css('borderRightWidth'), prel.css('borderBottomWidth'), prel.css('borderLeftWidth')],
+ p = [prel.css('paddingTop'), prel.css('paddingRight'), prel.css('paddingBottom'), prel.css('paddingLeft')];
+
+ o.borderDif = $.map(b, function(v, i) {
+ var border = parseInt(v,10)||0, padding = parseInt(p[i],10)||0;
+ return border + padding;
+ });
+ }
+ prel.css({
+ height: (el.height() - o.borderDif[0] - o.borderDif[2]) + "px",
+ width: (el.width() - o.borderDif[1] - o.borderDif[3]) + "px"
+ });
+ },
+ _renderProxy: function() {
+ var el = this.element, o = this.options;
+ this.elementOffset = el.offset();
+
+ if(o.proxy) {
+ this.helper = this.helper || $('<div style="overflow:hidden;"></div>');
+
+ // fix ie6 offset
+ var ie6 = $.browser.msie && $.browser.version < 7, ie6offset = (ie6 ? 1 : 0),
+ pxyoffset = ( ie6 ? 2 : -1 );
+
+ this.helper.addClass(o.proxy).css({
+ width: el.outerWidth() + pxyoffset,
+ height: el.outerHeight() + pxyoffset,
+ position: 'absolute',
+ left: this.elementOffset.left - ie6offset +'px',
+ top: this.elementOffset.top - ie6offset +'px',
+ zIndex: ++o.zIndex
+ });
+
+ this.helper.appendTo("body");
+
+ if (o.disableSelection)
+ $.ui.disableSelection(this.helper.get(0));
+
+ } else {
+ this.helper = el;
+ }
+ },
+ _change: {
+ e: function(e, dx, dy) {
+ return { width: this.originalSize.width + dx };
+ },
+ w: function(e, dx, dy) {
+ var o = this.options, cs = this.originalSize, sp = this.originalPosition;
+ return { left: sp.left + dx, width: cs.width - dx };
+ },
+ n: function(e, dx, dy) {
+ var o = this.options, cs = this.originalSize, sp = this.originalPosition;
+ return { top: sp.top + dy, height: cs.height - dy };
+ },
+ s: function(e, dx, dy) {
+ return { height: this.originalSize.height + dy };
+ },
+ se: function(e, dx, dy) {
+ return $.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [e, dx, dy]));
+ },
+ sw: function(e, dx, dy) {
+ return $.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [e, dx, dy]));
+ },
+ ne: function(e, dx, dy) {
+ return $.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [e, dx, dy]));
+ },
+ nw: function(e, dx, dy) {
+ return $.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [e, dx, dy]));
+ }
+ }
+}));
+
+$.extend($.ui.resizable, {
+ defaults: {
+ cancel: ":input,button",
+ distance: 0,
+ delay: 0,
+ preventDefault: true,
+ transparent: false,
+ minWidth: 10,
+ minHeight: 10,
+ aspectRatio: false,
+ disableSelection: true,
+ preserveCursor: true,
+ autohide: false,
+ knobHandles: false
+ }
+});
+
+/*
+ * Resizable Extensions
+ */
+
+$.ui.plugin.add("resizable", "containment", {
+
+ start: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable"), el = self.element;
+ var oc = o.containment, ce = (oc instanceof $) ? oc.get(0) : (/parent/.test(oc)) ? el.parent().get(0) : oc;
+ if (!ce) return;
+
+ self.containerElement = $(ce);
+
+ if (/document/.test(oc) || oc == document) {
+ self.containerOffset = { left: 0, top: 0 };
+ self.containerPosition = { left: 0, top: 0 };
+
+ self.parentData = {
+ element: $(document), left: 0, top: 0, width: $(document).width(),
+ height: $(document).height() || document.body.parentNode.scrollHeight
+ };
+ }
+
+ // i'm a node, so compute top, left, right, bottom
+ else{
+ self.containerOffset = $(ce).offset();
+ self.containerPosition = $(ce).position();
+ self.containerSize = { height: $(ce).innerHeight(), width: $(ce).innerWidth() };
+
+ var co = self.containerOffset, ch = self.containerSize.height, cw = self.containerSize.width,
+ width = ($.ui.hasScroll(ce, "left") ? ce.scrollWidth : cw ), height = ($.ui.hasScroll(ce) ? ce.scrollHeight : ch);
+
+ self.parentData = {
+ element: ce, left: co.left, top: co.top, width: width, height: height
+ };
+ }
+ },
+
+ resize: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable"),
+ ps = self.containerSize, co = self.containerOffset, cs = self.size, cp = self.position,
+ pRatio = o._aspectRatio || e.shiftKey, cop = { top:0, left:0 }, ce = self.containerElement;
+
+ if (/static/.test(ce.css('position')))
+ cop = self.containerPosition;
+
+ if (cp.left < (o.proxy ? co.left : cop.left)) {
+ self.size.width = self.size.width + (o.proxy ? (self.position.left - co.left) : (self.position.left - cop.left));
+ if (pRatio) self.size.height = self.size.width * o.aspectRatio;
+ self.position.left = o.proxy ? co.left : cop.left;
+ }
+
+ if (cp.top < (o.proxy ? co.top : 0)) {
+ self.size.height = self.size.height + (o.proxy ? (self.position.top - co.top) : self.position.top);
+ if (pRatio) self.size.width = self.size.height / o.aspectRatio;
+ self.position.top = o.proxy ? co.top : 0;
+ }
+
+ var woset = (o.proxy ? self.offset.left - co.left : (self.position.left - cop.left)) + self.sizeDiff.width,
+ hoset = (o.proxy ? self.offset.top - co.top : self.position.top) + self.sizeDiff.height;
+
+ if (woset + self.size.width >= self.parentData.width) {
+ self.size.width = self.parentData.width - woset;
+ if (pRatio) self.size.height = self.size.width * o.aspectRatio;
+ }
+
+ if (hoset + self.size.height >= self.parentData.height) {
+ self.size.height = self.parentData.height - hoset;
+ if (pRatio) self.size.width = self.size.height / o.aspectRatio;
+ }
+ },
+
+ stop: function(e, ui){
+ var o = ui.options, self = $(this).data("resizable"), cp = self.position,
+ co = self.containerOffset, cop = self.containerPosition, ce = self.containerElement;
+
+ var helper = $(self.helper), ho = helper.offset(), w = helper.innerWidth(), h = helper.innerHeight();
+
+
+ if (o.proxy && !o.animate && /relative/.test(ce.css('position')))
+ $(this).css({ left: (ho.left - co.left), top: (ho.top - co.top), width: w, height: h });
+
+ if (o.proxy && !o.animate && /static/.test(ce.css('position')))
+ $(this).css({ left: cop.left + (ho.left - co.left), top: cop.top + (ho.top - co.top), width: w, height: h });
+
+ }
+});
+
+$.ui.plugin.add("resizable", "grid", {
+
+ resize: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable"), cs = self.size, os = self.originalSize, op = self.originalPosition, a = self.axis, ratio = o._aspectRatio || e.shiftKey;
+ o.grid = typeof o.grid == "number" ? [o.grid, o.grid] : o.grid;
+ var ox = Math.round((cs.width - os.width) / (o.grid[0]||1)) * (o.grid[0]||1), oy = Math.round((cs.height - os.height) / (o.grid[1]||1)) * (o.grid[1]||1);
+
+ if (/^(se|s|e)$/.test(a)) {
+ self.size.width = os.width + ox;
+ self.size.height = os.height + oy;
+ }
+ else if (/^(ne)$/.test(a)) {
+ self.size.width = os.width + ox;
+ self.size.height = os.height + oy;
+ self.position.top = op.top - oy;
+ }
+ else if (/^(sw)$/.test(a)) {
+ self.size.width = os.width + ox;
+ self.size.height = os.height + oy;
+ self.position.left = op.left - ox;
+ }
+ else {
+ self.size.width = os.width + ox;
+ self.size.height = os.height + oy;
+ self.position.top = op.top - oy;
+ self.position.left = op.left - ox;
+ }
+ }
+
+});
+
+$.ui.plugin.add("resizable", "animate", {
+
+ stop: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable");
+
+ var pr = o.proportionallyResize, ista = pr && (/textarea/i).test(pr.get(0).nodeName),
+ soffseth = ista && $.ui.hasScroll(pr.get(0), 'left') /* TODO - jump height */ ? 0 : self.sizeDiff.height,
+ soffsetw = ista ? 0 : self.sizeDiff.width;
+
+ var style = { width: (self.size.width - soffsetw), height: (self.size.height - soffseth) },
+ left = (parseInt(self.element.css('left'), 10) + (self.position.left - self.originalPosition.left)) || null,
+ top = (parseInt(self.element.css('top'), 10) + (self.position.top - self.originalPosition.top)) || null;
+
+ self.element.animate(
+ $.extend(style, top && left ? { top: top, left: left } : {}), {
+ duration: o.animateDuration || "slow", easing: o.animateEasing || "swing",
+ step: function() {
+
+ var data = {
+ width: parseInt(self.element.css('width'), 10),
+ height: parseInt(self.element.css('height'), 10),
+ top: parseInt(self.element.css('top'), 10),
+ left: parseInt(self.element.css('left'), 10)
+ };
+
+ if (pr) pr.css({ width: data.width, height: data.height });
+
+ // propagating resize, and updating values for each animation step
+ self._updateCache(data);
+ self.propagate("animate", e);
+
+ }
+ }
+ );
+ }
+
+});
+
+$.ui.plugin.add("resizable", "ghost", {
+
+ start: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize, cs = self.size;
+
+ if (!pr) self.ghost = self.element.clone();
+ else self.ghost = pr.clone();
+
+ self.ghost.css(
+ { opacity: .25, display: 'block', position: 'relative', height: cs.height, width: cs.width, margin: 0, left: 0, top: 0 }
+ )
+ .addClass('ui-resizable-ghost').addClass(typeof o.ghost == 'string' ? o.ghost : '');
+
+ self.ghost.appendTo(self.helper);
+
+ },
+
+ resize: function(e, ui){
+ var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize;
+
+ if (self.ghost) self.ghost.css({ position: 'relative', height: self.size.height, width: self.size.width });
+
+ },
+
+ stop: function(e, ui){
+ var o = ui.options, self = $(this).data("resizable"), pr = o.proportionallyResize;
+ if (self.ghost && self.helper) self.helper.get(0).removeChild(self.ghost.get(0));
+ }
+
+});
+
+$.ui.plugin.add("resizable", "alsoResize", {
+
+ start: function(e, ui) {
+ var o = ui.options, self = $(this).data("resizable"),
+
+ _store = function(exp) {
+ $(exp).each(function() {
+ $(this).data("resizable-alsoresize", {
+ width: parseInt($(this).width(), 10), height: parseInt($(this).height(), 10),
+ left: parseInt($(this).css('left'), 10), top: parseInt($(this).css('top'), 10)
+ });
+ });
+ };
+
+ if (typeof(o.alsoResize) == 'object') {
+ $.each(o.alsoResize, function(exp, c) { _store(exp); });
+ }else{
+ _store(o.alsoResize);
+ }
+ },
+
+ resize: function(e, ui){
+ var o = ui.options, self = $(this).data("resizable"), os = self.originalSize, op = self.originalPosition;
+
+ var delta = {
+ height: (self.size.height - os.height) || 0, width: (self.size.width - os.width) || 0,
+ top: (self.position.top - op.top) || 0, left: (self.position.left - op.left) || 0
+ },
+
+ _alsoResize = function(exp, c) {
+ $(exp).each(function() {
+ var start = $(this).data("resizable-alsoresize"), style = {}, css = c && c.length ? c : ['width', 'height', 'top', 'left'];
+
+ $.each(css || ['width', 'height', 'top', 'left'], function(i, prop) {
+ var sum = (start[prop]||0) + (delta[prop]||0);
+ if (sum && sum >= 0)
+ style[prop] = sum || null;
+ });
+ $(this).css(style);
+ });
+ };
+
+ if (typeof(o.alsoResize) == 'object') {
+ $.each(o.alsoResize, function(exp, c) { _alsoResize(exp, c); });
+ }else{
+ _alsoResize(o.alsoResize);
+ }
+ },
+
+ stop: function(e, ui){
+ $(this).removeData("resizable-alsoresize-start");
+ }
+});
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/ui.selectable.js b/javascript/libs/jquery/full/ui/ui.selectable.js
new file mode 100644
index 0000000..3b60d65
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/ui.selectable.js
@@ -0,0 +1,265 @@
+/*
+ * jQuery UI Selectable
+ *
+ * Copyright (c) 2008 Richard D. Worth (rdworth.org)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Selectables
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.widget("ui.selectable", $.extend($.ui.mouse, {
+ init: function() {
+ var self = this;
+
+ this.element.addClass("ui-selectable");
+
+ this.dragged = false;
+
+ // cache selectee children based on filter
+ var selectees;
+ this.refresh = function() {
+ selectees = $(self.options.filter, self.element[0]);
+ selectees.each(function() {
+ var $this = $(this);
+ var pos = $this.offset();
+ $.data(this, "selectable-item", {
+ element: this,
+ $element: $this,
+ left: pos.left,
+ top: pos.top,
+ right: pos.left + $this.width(),
+ bottom: pos.top + $this.height(),
+ startselected: false,
+ selected: $this.hasClass('ui-selected'),
+ selecting: $this.hasClass('ui-selecting'),
+ unselecting: $this.hasClass('ui-unselecting')
+ });
+ });
+ };
+ this.refresh();
+
+ this.selectees = selectees.addClass("ui-selectee");
+
+ this.mouseInit();
+
+ this.helper = $(document.createElement('div')).css({border:'1px dotted black'});
+ },
+ toggle: function() {
+ if(this.options.disabled){
+ this.enable();
+ } else {
+ this.disable();
+ }
+ },
+ destroy: function() {
+ this.element
+ .removeClass("ui-selectable ui-selectable-disabled")
+ .removeData("selectable")
+ .unbind(".selectable");
+ this.mouseDestroy();
+ },
+ mouseStart: function(e) {
+ var self = this;
+
+ this.opos = [e.pageX, e.pageY];
+
+ if (this.options.disabled)
+ return;
+
+ var options = this.options;
+
+ this.selectees = $(options.filter, this.element[0]);
+
+ // selectable START callback
+ this.element.triggerHandler("selectablestart", [e, {
+ "selectable": this.element[0],
+ "options": options
+ }], options.start);
+
+ $('body').append(this.helper);
+ // position helper (lasso)
+ this.helper.css({
+ "z-index": 100,
+ "position": "absolute",
+ "left": e.clientX,
+ "top": e.clientY,
+ "width": 0,
+ "height": 0
+ });
+
+ if (options.autoRefresh) {
+ this.refresh();
+ }
+
+ this.selectees.filter('.ui-selected').each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.startselected = true;
+ if (!e.ctrlKey) {
+ selectee.$element.removeClass('ui-selected');
+ selectee.selected = false;
+ selectee.$element.addClass('ui-unselecting');
+ selectee.unselecting = true;
+ // selectable UNSELECTING callback
+ self.element.triggerHandler("selectableunselecting", [e, {
+ selectable: self.element[0],
+ unselecting: selectee.element,
+ options: options
+ }], options.unselecting);
+ }
+ });
+
+ var isSelectee = false;
+ $(e.target).parents().andSelf().each(function() {
+ if($.data(this, "selectable-item")) isSelectee = true;
+ });
+ return this.options.keyboard ? !isSelectee : true;
+ },
+ mouseDrag: function(e) {
+ var self = this;
+ this.dragged = true;
+
+ if (this.options.disabled)
+ return;
+
+ var options = this.options;
+
+ var x1 = this.opos[0], y1 = this.opos[1], x2 = e.pageX, y2 = e.pageY;
+ if (x1 > x2) { var tmp = x2; x2 = x1; x1 = tmp; }
+ if (y1 > y2) { var tmp = y2; y2 = y1; y1 = tmp; }
+ this.helper.css({left: x1, top: y1, width: x2-x1, height: y2-y1});
+
+ this.selectees.each(function() {
+ var selectee = $.data(this, "selectable-item");
+ //prevent helper from being selected if appendTo: selectable
+ if (!selectee || selectee.element == self.element[0])
+ return;
+ var hit = false;
+ if (options.tolerance == 'touch') {
+ hit = ( !(selectee.left > x2 || selectee.right < x1 || selectee.top > y2 || selectee.bottom < y1) );
+ } else if (options.tolerance == 'fit') {
+ hit = (selectee.left > x1 && selectee.right < x2 && selectee.top > y1 && selectee.bottom < y2);
+ }
+
+ if (hit) {
+ // SELECT
+ if (selectee.selected) {
+ selectee.$element.removeClass('ui-selected');
+ selectee.selected = false;
+ }
+ if (selectee.unselecting) {
+ selectee.$element.removeClass('ui-unselecting');
+ selectee.unselecting = false;
+ }
+ if (!selectee.selecting) {
+ selectee.$element.addClass('ui-selecting');
+ selectee.selecting = true;
+ // selectable SELECTING callback
+ self.element.triggerHandler("selectableselecting", [e, {
+ selectable: self.element[0],
+ selecting: selectee.element,
+ options: options
+ }], options.selecting);
+ }
+ } else {
+ // UNSELECT
+ if (selectee.selecting) {
+ if (e.ctrlKey && selectee.startselected) {
+ selectee.$element.removeClass('ui-selecting');
+ selectee.selecting = false;
+ selectee.$element.addClass('ui-selected');
+ selectee.selected = true;
+ } else {
+ selectee.$element.removeClass('ui-selecting');
+ selectee.selecting = false;
+ if (selectee.startselected) {
+ selectee.$element.addClass('ui-unselecting');
+ selectee.unselecting = true;
+ }
+ // selectable UNSELECTING callback
+ self.element.triggerHandler("selectableunselecting", [e, {
+ selectable: self.element[0],
+ unselecting: selectee.element,
+ options: options
+ }], options.unselecting);
+ }
+ }
+ if (selectee.selected) {
+ if (!e.ctrlKey && !selectee.startselected) {
+ selectee.$element.removeClass('ui-selected');
+ selectee.selected = false;
+
+ selectee.$element.addClass('ui-unselecting');
+ selectee.unselecting = true;
+ // selectable UNSELECTING callback
+ self.element.triggerHandler("selectableunselecting", [e, {
+ selectable: self.element[0],
+ unselecting: selectee.element,
+ options: options
+ }], options.unselecting);
+ }
+ }
+ }
+ });
+
+ return false;
+ },
+ mouseStop: function(e) {
+ var self = this;
+
+ this.dragged = false;
+
+ var options = this.options;
+
+ $('.ui-unselecting', this.element[0]).each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.$element.removeClass('ui-unselecting');
+ selectee.unselecting = false;
+ selectee.startselected = false;
+ self.element.triggerHandler("selectableunselected", [e, {
+ selectable: self.element[0],
+ unselected: selectee.element,
+ options: options
+ }], options.unselected);
+ });
+ $('.ui-selecting', this.element[0]).each(function() {
+ var selectee = $.data(this, "selectable-item");
+ selectee.$element.removeClass('ui-selecting').addClass('ui-selected');
+ selectee.selecting = false;
+ selectee.selected = true;
+ selectee.startselected = true;
+ self.element.triggerHandler("selectableselected", [e, {
+ selectable: self.element[0],
+ selected: selectee.element,
+ options: options
+ }], options.selected);
+ });
+ this.element.triggerHandler("selectablestop", [e, {
+ selectable: self.element[0],
+ options: this.options
+ }], this.options.stop);
+
+ this.helper.remove();
+
+ return false;
+ }
+}));
+
+$.extend($.ui.selectable, {
+ defaults: {
+ distance: 0,
+ delay: 0,
+ cancel: ":input,button",
+ appendTo: 'body',
+ autoRefresh: true,
+ filter: '*',
+ tolerance: 'touch'
+ }
+});
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/ui.slider.js b/javascript/libs/jquery/full/ui/ui.slider.js
new file mode 100644
index 0000000..a4a1a52
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/ui.slider.js
@@ -0,0 +1,423 @@
+/*
+ * jQuery UI Slider
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Slider
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.fn.unwrap = $.fn.unwrap || function(expr) {
+ return this.each(function(){
+ $(this).parents(expr).eq(0).after(this).remove();
+ });
+};
+
+$.widget("ui.slider", {
+ plugins: {},
+ ui: function(e) {
+ return {
+ options: this.options,
+ handle: this.currentHandle,
+ value: this.options.axis != "both" || !this.options.axis ? Math.round(this.value(null,this.options.axis == "vertical" ? "y" : "x")) : {
+ x: Math.round(this.value(null,"x")),
+ y: Math.round(this.value(null,"y"))
+ },
+ range: this.getRange()
+ };
+ },
+ propagate: function(n,e) {
+ $.ui.plugin.call(this, n, [e, this.ui()]);
+ this.element.triggerHandler(n == "slide" ? n : "slide"+n, [e, this.ui()], this.options[n]);
+ },
+ destroy: function() {
+ this.element
+ .removeClass("ui-slider ui-slider-disabled")
+ .removeData("slider")
+ .unbind(".slider");
+ this.handle
+ .unwrap("a");
+ this.handle.each(function() {
+ $(this).data("mouse").mouseDestroy();
+ });
+ this.generated && this.generated.remove();
+ },
+ setData: function(key, value) {
+ $.widget.prototype.setData.apply(this, arguments);
+ if (/min|max|steps/.test(key)) {
+ this.initBoundaries();
+ }
+ },
+
+ init: function() {
+
+ var self = this;
+ this.element.addClass("ui-slider");
+ this.initBoundaries();
+
+ // Initialize mouse and key events for interaction
+ this.handle = $(this.options.handle, this.element);
+ if (!this.handle.length) {
+ self.handle = self.generated = $(self.options.handles || [0]).map(function() {
+ var handle = $("<div/>").addClass("ui-slider-handle").appendTo(self.element);
+ if (this.id)
+ handle.attr("id", this.id);
+ return handle[0];
+ });
+ }
+
+
+ var handleclass = function(el) {
+ this.element = $(el);
+ this.element.data("mouse", this);
+ this.options = self.options;
+
+ this.element.bind("mousedown", function() {
+ if(self.currentHandle) this.blur(self.currentHandle);
+ self.focus(this,1);
+ });
+
+ this.mouseInit();
+ };
+
+ $.extend(handleclass.prototype, $.ui.mouse, {
+ mouseStart: function(e) { return self.start.call(self, e, this.element[0]); },
+ mouseStop: function(e) { return self.stop.call(self, e, this.element[0]); },
+ mouseDrag: function(e) { return self.drag.call(self, e, this.element[0]); },
+ mouseCapture: function() { return true; },
+ trigger: function(e) { this.mouseDown(e); }
+ });
+
+
+ $(this.handle)
+ .each(function() {
+ new handleclass(this);
+ })
+ .wrap('<a href="javascript:void(0)" style="cursor:default;"></a>')
+ .parent()
+ .bind('focus', function(e) { self.focus(this.firstChild); })
+ .bind('blur', function(e) { self.blur(this.firstChild); })
+ .bind('keydown', function(e) { if(!self.options.noKeyboard) self.keydown(e.keyCode, this.firstChild); })
+ ;
+
+ // Bind the click to the slider itself
+ this.element.bind('mousedown.slider', function(e) {
+ self.click.apply(self, [e]);
+ self.currentHandle.data("mouse").trigger(e);
+ self.firstValue = self.firstValue + 1; //This is for always triggering the change event
+ });
+
+ // Move the first handle to the startValue
+ $.each(this.options.handles || [], function(index, handle) {
+ self.moveTo(handle.start, index, true);
+ });
+ if (!isNaN(this.options.startValue))
+ this.moveTo(this.options.startValue, 0, true);
+
+ this.previousHandle = $(this.handle[0]); //set the previous handle to the first to allow clicking before selecting the handle
+ if(this.handle.length == 2 && this.options.range) this.createRange();
+ },
+ initBoundaries: function() {
+
+ var element = this.element[0], o = this.options;
+ this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
+
+ $.extend(o, {
+ axis: o.axis || (element.offsetWidth < element.offsetHeight ? 'vertical' : 'horizontal'),
+ max: !isNaN(parseInt(o.max,10)) ? { x: parseInt(o.max, 10), y: parseInt(o.max, 10) } : ({ x: o.max && o.max.x || 100, y: o.max && o.max.y || 100 }),
+ min: !isNaN(parseInt(o.min,10)) ? { x: parseInt(o.min, 10), y: parseInt(o.min, 10) } : ({ x: o.min && o.min.x || 0, y: o.min && o.min.y || 0 })
+ });
+ //Prepare the real maxValue
+ o.realMax = {
+ x: o.max.x - o.min.x,
+ y: o.max.y - o.min.y
+ };
+ //Calculate stepping based on steps
+ o.stepping = {
+ x: o.stepping && o.stepping.x || parseInt(o.stepping, 10) || (o.steps ? o.realMax.x/(o.steps.x || parseInt(o.steps, 10) || o.realMax.x) : 0),
+ y: o.stepping && o.stepping.y || parseInt(o.stepping, 10) || (o.steps ? o.realMax.y/(o.steps.y || parseInt(o.steps, 10) || o.realMax.y) : 0)
+ };
+ },
+
+
+ keydown: function(keyCode, handle) {
+ if(/(37|38|39|40)/.test(keyCode)) {
+ this.moveTo({
+ x: /(37|39)/.test(keyCode) ? (keyCode == 37 ? '-' : '+') + '=' + this.oneStep("x") : 0,
+ y: /(38|40)/.test(keyCode) ? (keyCode == 38 ? '-' : '+') + '=' + this.oneStep("y") : 0
+ }, handle);
+ }
+ },
+ focus: function(handle,hard) {
+ this.currentHandle = $(handle).addClass('ui-slider-handle-active');
+ if (hard)
+ this.currentHandle.parent()[0].focus();
+ },
+ blur: function(handle) {
+ $(handle).removeClass('ui-slider-handle-active');
+ if(this.currentHandle && this.currentHandle[0] == handle) { this.previousHandle = this.currentHandle; this.currentHandle = null; };
+ },
+ click: function(e) {
+ // This method is only used if:
+ // - The user didn't click a handle
+ // - The Slider is not disabled
+ // - There is a current, or previous selected handle (otherwise we wouldn't know which one to move)
+
+ var pointer = [e.pageX,e.pageY];
+
+ var clickedHandle = false;
+ this.handle.each(function() {
+ if(this == e.target)
+ clickedHandle = true;
+ });
+ if (clickedHandle || this.options.disabled || !(this.currentHandle || this.previousHandle))
+ return;
+
+ // If a previous handle was focussed, focus it again
+ if (!this.currentHandle && this.previousHandle)
+ this.focus(this.previousHandle, true);
+
+ // propagate only for distance > 0, otherwise propagation is done my drag
+ this.offset = this.element.offset();
+
+ this.moveTo({
+ y: this.convertValue(e.pageY - this.offset.top - this.currentHandle[0].offsetHeight/2, "y"),
+ x: this.convertValue(e.pageX - this.offset.left - this.currentHandle[0].offsetWidth/2, "x")
+ }, null, !this.options.distance);
+ },
+
+
+
+ createRange: function() {
+ this.rangeElement = $('<div></div>')
+ .addClass('ui-slider-range')
+ .css({ position: 'absolute' })
+ .appendTo(this.element);
+ this.updateRange();
+ },
+ updateRange: function() {
+ var prop = this.options.axis == "vertical" ? "top" : "left";
+ var size = this.options.axis == "vertical" ? "height" : "width";
+ this.rangeElement.css(prop, (parseInt($(this.handle[0]).css(prop),10) || 0) + this.handleSize(0, this.options.axis == "vertical" ? "y" : "x")/2);
+ this.rangeElement.css(size, (parseInt($(this.handle[1]).css(prop),10) || 0) - (parseInt($(this.handle[0]).css(prop),10) || 0));
+ },
+ getRange: function() {
+ return this.rangeElement ? this.convertValue(parseInt(this.rangeElement.css(this.options.axis == "vertical" ? "height" : "width"),10), this.options.axis == "vertical" ? "y" : "x") : null;
+ },
+
+ handleIndex: function() {
+ return this.handle.index(this.currentHandle[0]);
+ },
+ value: function(handle, axis) {
+ if(this.handle.length == 1) this.currentHandle = this.handle;
+ if(!axis) axis = this.options.axis == "vertical" ? "y" : "x";
+
+ var curHandle = $(handle != undefined && handle !== null ? this.handle[handle] || handle : this.currentHandle);
+
+ if(curHandle.data("mouse").sliderValue) {
+ return parseInt(curHandle.data("mouse").sliderValue[axis],10);
+ } else {
+ return parseInt(((parseInt(curHandle.css(axis == "x" ? "left" : "top"),10) / (this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(handle,axis))) * this.options.realMax[axis]) + this.options.min[axis],10);
+ }
+
+ },
+ convertValue: function(value,axis) {
+ return this.options.min[axis] + (value / (this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis))) * this.options.realMax[axis];
+ },
+
+ translateValue: function(value,axis) {
+ return ((value - this.options.min[axis]) / this.options.realMax[axis]) * (this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis));
+ },
+ translateRange: function(value,axis) {
+ if (this.rangeElement) {
+ if (this.currentHandle[0] == this.handle[0] && value >= this.translateValue(this.value(1),axis))
+ value = this.translateValue(this.value(1,axis) - this.oneStep(axis), axis);
+ if (this.currentHandle[0] == this.handle[1] && value <= this.translateValue(this.value(0),axis))
+ value = this.translateValue(this.value(0,axis) + this.oneStep(axis), axis);
+ }
+ if (this.options.handles) {
+ var handle = this.options.handles[this.handleIndex()];
+ if (value < this.translateValue(handle.min,axis)) {
+ value = this.translateValue(handle.min,axis);
+ } else if (value > this.translateValue(handle.max,axis)) {
+ value = this.translateValue(handle.max,axis);
+ }
+ }
+ return value;
+ },
+ translateLimits: function(value,axis) {
+ if (value >= this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis))
+ value = this.actualSize[axis == "x" ? "width" : "height"] - this.handleSize(null,axis);
+ if (value <= 0)
+ value = 0;
+ return value;
+ },
+ handleSize: function(handle,axis) {
+ return $(handle != undefined && handle !== null ? this.handle[handle] : this.currentHandle)[0]["offset"+(axis == "x" ? "Width" : "Height")];
+ },
+ oneStep: function(axis) {
+ return this.options.stepping[axis] || 1;
+ },
+
+
+ start: function(e, handle) {
+
+ var o = this.options;
+ if(o.disabled) return false;
+
+ // Prepare the outer size
+ this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
+
+ // This is a especially ugly fix for strange blur events happening on mousemove events
+ if (!this.currentHandle)
+ this.focus(this.previousHandle, true);
+
+ this.offset = this.element.offset();
+
+ this.handleOffset = this.currentHandle.offset();
+ this.clickOffset = { top: e.pageY - this.handleOffset.top, left: e.pageX - this.handleOffset.left };
+
+ this.firstValue = this.value();
+
+ this.propagate('start', e);
+ this.drag(e, handle);
+ return true;
+
+ },
+ stop: function(e) {
+ this.propagate('stop', e);
+ if (this.firstValue != this.value())
+ this.propagate('change', e);
+ // This is a especially ugly fix for strange blur events happening on mousemove events
+ this.focus(this.currentHandle, true);
+ return false;
+ },
+ drag: function(e, handle) {
+
+ var o = this.options;
+ var position = { top: e.pageY - this.offset.top - this.clickOffset.top, left: e.pageX - this.offset.left - this.clickOffset.left};
+ if(!this.currentHandle) this.focus(this.previousHandle, true); //This is a especially ugly fix for strange blur events happening on mousemove events
+
+ position.left = this.translateLimits(position.left, "x");
+ position.top = this.translateLimits(position.top, "y");
+
+ if (o.stepping.x) {
+ var value = this.convertValue(position.left, "x");
+ value = Math.round(value / o.stepping.x) * o.stepping.x;
+ position.left = this.translateValue(value, "x");
+ }
+ if (o.stepping.y) {
+ var value = this.convertValue(position.top, "y");
+ value = Math.round(value / o.stepping.y) * o.stepping.y;
+ position.top = this.translateValue(value, "y");
+ }
+
+ position.left = this.translateRange(position.left, "x");
+ position.top = this.translateRange(position.top, "y");
+
+ if(o.axis != "vertical") this.currentHandle.css({ left: position.left });
+ if(o.axis != "horizontal") this.currentHandle.css({ top: position.top });
+
+ //Store the slider's value
+ this.currentHandle.data("mouse").sliderValue = {
+ x: Math.round(this.convertValue(position.left, "x")) || 0,
+ y: Math.round(this.convertValue(position.top, "y")) || 0
+ };
+
+ if (this.rangeElement)
+ this.updateRange();
+ this.propagate('slide', e);
+ return false;
+ },
+
+ moveTo: function(value, handle, noPropagation) {
+
+ var o = this.options;
+
+ // Prepare the outer size
+ this.actualSize = { width: this.element.outerWidth() , height: this.element.outerHeight() };
+
+ //If no handle has been passed, no current handle is available and we have multiple handles, return false
+ if (handle == undefined && !this.currentHandle && this.handle.length != 1)
+ return false;
+
+ //If only one handle is available, use it
+ if (handle == undefined && !this.currentHandle)
+ handle = 0;
+
+ if (handle != undefined)
+ this.currentHandle = this.previousHandle = $(this.handle[handle] || handle);
+
+
+ if(value.x !== undefined && value.y !== undefined) {
+ var x = value.x, y = value.y;
+ } else {
+ var x = value, y = value;
+ }
+
+ if(x !== undefined && x.constructor != Number) {
+ var me = /^\-\=/.test(x), pe = /^\+\=/.test(x);
+ if(me || pe) {
+ x = this.value(null, "x") + parseInt(x.replace(me ? '=' : '+=', ''), 10);
+ } else {
+ x = isNaN(parseInt(x, 10)) ? undefined : parseInt(x, 10);
+ }
+ }
+
+ if(y !== undefined && y.constructor != Number) {
+ var me = /^\-\=/.test(y), pe = /^\+\=/.test(y);
+ if(me || pe) {
+ y = this.value(null, "y") + parseInt(y.replace(me ? '=' : '+=', ''), 10);
+ } else {
+ y = isNaN(parseInt(y, 10)) ? undefined : parseInt(y, 10);
+ }
+ }
+
+ if(o.axis != "vertical" && x !== undefined) {
+ if(o.stepping.x) x = Math.round(x / o.stepping.x) * o.stepping.x;
+ x = this.translateValue(x, "x");
+ x = this.translateLimits(x, "x");
+ x = this.translateRange(x, "x");
+ this.currentHandle.css({ left: x });
+ }
+
+ if(o.axis != "horizontal" && y !== undefined) {
+ if(o.stepping.y) y = Math.round(y / o.stepping.y) * o.stepping.y;
+ y = this.translateValue(y, "y");
+ y = this.translateLimits(y, "y");
+ y = this.translateRange(y, "y");
+ this.currentHandle.css({ top: y });
+ }
+
+ if (this.rangeElement)
+ this.updateRange();
+
+ //Store the slider's value
+ this.currentHandle.data("mouse").sliderValue = {
+ x: Math.round(this.convertValue(x, "x")) || 0,
+ y: Math.round(this.convertValue(y, "y")) || 0
+ };
+
+ if (!noPropagation) {
+ this.propagate('start', null);
+ this.propagate('stop', null);
+ this.propagate('change', null);
+ this.propagate("slide", null);
+ }
+ }
+});
+
+$.ui.slider.getter = "value";
+
+$.ui.slider.defaults = {
+ handle: ".ui-slider-handle",
+ distance: 1
+};
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/ui.sortable.js b/javascript/libs/jquery/full/ui/ui.sortable.js
new file mode 100644
index 0000000..5c672cf
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/ui.sortable.js
@@ -0,0 +1,674 @@
+/*
+ * jQuery UI Sortable
+ *
+ * Copyright (c) 2008 Paul Bakaus
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Sortables
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+function contains(a, b) {
+ var safari2 = $.browser.safari && $.browser.version < 522;
+ if (a.contains && !safari2) {
+ return a.contains(b);
+ }
+ if (a.compareDocumentPosition)
+ return !!(a.compareDocumentPosition(b) & 16);
+ while (b = b.parentNode)
+ if (b == a) return true;
+ return false;
+};
+
+$.widget("ui.sortable", $.extend($.ui.mouse, {
+ init: function() {
+
+ var o = this.options;
+ this.containerCache = {};
+ this.element.addClass("ui-sortable");
+
+ //Get the items
+ this.refresh();
+
+ //Let's determine if the items are floating
+ this.floating = this.items.length ? (/left|right/).test(this.items[0].item.css('float')) : false;
+
+ //Let's determine the parent's offset
+ if(!(/(relative|absolute|fixed)/).test(this.element.css('position'))) this.element.css('position', 'relative');
+ this.offset = this.element.offset();
+
+ //Initialize mouse events for interaction
+ this.mouseInit();
+
+ },
+ plugins: {},
+ ui: function(inst) {
+ return {
+ helper: (inst || this)["helper"],
+ placeholder: (inst || this)["placeholder"] || $([]),
+ position: (inst || this)["position"],
+ absolutePosition: (inst || this)["positionAbs"],
+ options: this.options,
+ element: this.element,
+ item: (inst || this)["currentItem"],
+ sender: inst ? inst.element : null
+ };
+ },
+ propagate: function(n,e,inst, noPropagation) {
+ $.ui.plugin.call(this, n, [e, this.ui(inst)]);
+ if(!noPropagation) this.element.triggerHandler(n == "sort" ? n : "sort"+n, [e, this.ui(inst)], this.options[n]);
+ },
+ serialize: function(o) {
+
+ var items = ($.isFunction(this.options.items) ? this.options.items.call(this.element) : $(this.options.items, this.element)).not('.ui-sortable-helper'); //Only the items of the sortable itself
+ var str = []; o = o || {};
+
+ items.each(function() {
+ var res = ($(this).attr(o.attribute || 'id') || '').match(o.expression || (/(.+)[-=_](.+)/));
+ if(res) str.push((o.key || res[1])+'[]='+(o.key ? res[1] : res[2]));
+ });
+
+ return str.join('&');
+
+ },
+ toArray: function(attr) {
+
+ var items = ($.isFunction(this.options.items) ? this.options.items.call(this.element) : $(this.options.items, this.element)).not('.ui-sortable-helper'); //Only the items of the sortable itself
+ var ret = [];
+
+ items.each(function() { ret.push($(this).attr(attr || 'id')); });
+ return ret;
+
+ },
+ /* Be careful with the following core functions */
+ intersectsWith: function(item) {
+
+ var x1 = this.positionAbs.left, x2 = x1 + this.helperProportions.width,
+ y1 = this.positionAbs.top, y2 = y1 + this.helperProportions.height;
+ var l = item.left, r = l + item.width,
+ t = item.top, b = t + item.height;
+
+ if(this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])) {
+ return (y1 + this.offset.click.top > t && y1 + this.offset.click.top < b && x1 + this.offset.click.left > l && x1 + this.offset.click.left < r);
+ } else {
+
+ return (l < x1 + (this.helperProportions.width / 2) // Right Half
+ && x2 - (this.helperProportions.width / 2) < r // Left Half
+ && t < y1 + (this.helperProportions.height / 2) // Bottom Half
+ && y2 - (this.helperProportions.height / 2) < b ); // Top Half
+
+ }
+
+ },
+ intersectsWithEdge: function(item) {
+ var x1 = this.positionAbs.left, x2 = x1 + this.helperProportions.width,
+ y1 = this.positionAbs.top, y2 = y1 + this.helperProportions.height;
+ var l = item.left, r = l + item.width,
+ t = item.top, b = t + item.height;
+
+ if(this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])) {
+
+ if(!(y1 + this.offset.click.top > t && y1 + this.offset.click.top < b && x1 + this.offset.click.left > l && x1 + this.offset.click.left < r)) return false;
+
+ if(this.floating) {
+ if(x1 + this.offset.click.left > l && x1 + this.offset.click.left < l + item.width/2) return 2;
+ if(x1 + this.offset.click.left > l+item.width/2 && x1 + this.offset.click.left < r) return 1;
+ } else {
+ if(y1 + this.offset.click.top > t && y1 + this.offset.click.top < t + item.height/2) return 2;
+ if(y1 + this.offset.click.top > t+item.height/2 && y1 + this.offset.click.top < b) return 1;
+ }
+
+ } else {
+
+ if (!(l < x1 + (this.helperProportions.width / 2) // Right Half
+ && x2 - (this.helperProportions.width / 2) < r // Left Half
+ && t < y1 + (this.helperProportions.height / 2) // Bottom Half
+ && y2 - (this.helperProportions.height / 2) < b )) return false; // Top Half
+
+ if(this.floating) {
+ if(x2 > l && x1 < l) return 2; //Crosses left edge
+ if(x1 < r && x2 > r) return 1; //Crosses right edge
+ } else {
+ if(y2 > t && y1 < t) return 1; //Crosses top edge
+ if(y1 < b && y2 > b) return 2; //Crosses bottom edge
+ }
+
+ }
+
+ return false;
+
+ },
+ refresh: function() {
+ this.refreshItems();
+ this.refreshPositions();
+ },
+ refreshItems: function() {
+
+ this.items = [];
+ this.containers = [this];
+ var items = this.items;
+ var queries = [$.isFunction(this.options.items) ? this.options.items.call(this.element) : $(this.options.items, this.element)];
+
+ if(this.options.connectWith) {
+ for (var i = this.options.connectWith.length - 1; i >= 0; i--){
+ var cur = $(this.options.connectWith[i]);
+ for (var j = cur.length - 1; j >= 0; j--){
+ var inst = $.data(cur[j], 'sortable');
+ if(inst && !inst.options.disabled) {
+ queries.push($.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element));
+ this.containers.push(inst);
+ }
+ };
+ };
+ }
+
+ for (var i = queries.length - 1; i >= 0; i--){
+ queries[i].each(function() {
+ $.data(this, 'sortable-item', true); // Data for target checking (mouse manager)
+ items.push({
+ item: $(this),
+ width: 0, height: 0,
+ left: 0, top: 0
+ });
+ });
+ };
+
+ },
+ refreshPositions: function(fast) {
+ for (var i = this.items.length - 1; i >= 0; i--){
+ var t = this.items[i].item;
+ if(!fast) this.items[i].width = (this.options.toleranceElement ? $(this.options.toleranceElement, t) : t).outerWidth();
+ if(!fast) this.items[i].height = (this.options.toleranceElement ? $(this.options.toleranceElement, t) : t).outerHeight();
+ var p = (this.options.toleranceElement ? $(this.options.toleranceElement, t) : t).offset();
+ this.items[i].left = p.left;
+ this.items[i].top = p.top;
+ };
+ for (var i = this.containers.length - 1; i >= 0; i--){
+ var p =this.containers[i].element.offset();
+ this.containers[i].containerCache.left = p.left;
+ this.containers[i].containerCache.top = p.top;
+ this.containers[i].containerCache.width = this.containers[i].element.outerWidth();
+ this.containers[i].containerCache.height = this.containers[i].element.outerHeight();
+ };
+ },
+ destroy: function() {
+ this.element
+ .removeClass("ui-sortable ui-sortable-disabled")
+ .removeData("sortable")
+ .unbind(".sortable");
+ this.mouseDestroy();
+
+ for ( var i = this.items.length - 1; i >= 0; i-- )
+ this.items[i].item.removeData("sortable-item");
+ },
+ createPlaceholder: function(that) {
+
+ var self = that || this, o = self.options;
+
+ if(o.placeholder.constructor == String) {
+ var className = o.placeholder;
+ o.placeholder = {
+ element: function() {
+ return $('<div></div>').addClass(className)[0];
+ },
+ update: function(i, p) {
+ p.css(i.offset()).css({ width: i.outerWidth(), height: i.outerHeight() });
+ }
+ };
+ }
+
+ self.placeholder = $(o.placeholder.element.call(self.element, self.currentItem)).appendTo('body').css({ position: 'absolute' });
+ o.placeholder.update.call(self.element, self.currentItem, self.placeholder);
+ },
+ contactContainers: function(e) {
+ for (var i = this.containers.length - 1; i >= 0; i--){
+
+ if(this.intersectsWith(this.containers[i].containerCache)) {
+ if(!this.containers[i].containerCache.over) {
+
+
+ if(this.currentContainer != this.containers[i]) {
+
+ //When entering a new container, we will find the item with the least distance and append our item near it
+ var dist = 10000; var itemWithLeastDistance = null; var base = this.positionAbs[this.containers[i].floating ? 'left' : 'top'];
+ for (var j = this.items.length - 1; j >= 0; j--) {
+ if(!contains(this.containers[i].element[0], this.items[j].item[0])) continue;
+ var cur = this.items[j][this.containers[i].floating ? 'left' : 'top'];
+ if(Math.abs(cur - base) < dist) {
+ dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j];
+ }
+ }
+
+ if(!itemWithLeastDistance && !this.options.dropOnEmpty) //Check if dropOnEmpty is enabled
+ continue;
+
+ //We also need to exchange the placeholder
+ if(this.placeholder) this.placeholder.remove();
+ if(this.containers[i].options.placeholder) {
+ this.containers[i].createPlaceholder(this);
+ } else {
+ this.placeholder = null;;
+ }
+
+
+ itemWithLeastDistance ? this.rearrange(e, itemWithLeastDistance) : this.rearrange(e, null, this.containers[i].element);
+ this.propagate("change", e); //Call plugins and callbacks
+ this.containers[i].propagate("change", e, this); //Call plugins and callbacks
+ this.currentContainer = this.containers[i];
+
+ }
+
+ this.containers[i].propagate("over", e, this);
+ this.containers[i].containerCache.over = 1;
+ }
+ } else {
+ if(this.containers[i].containerCache.over) {
+ this.containers[i].propagate("out", e, this);
+ this.containers[i].containerCache.over = 0;
+ }
+ }
+
+ };
+ },
+ mouseCapture: function(e, overrideHandle) {
+
+ if(this.options.disabled || this.options.type == 'static') return false;
+
+ //Find out if the clicked node (or one of its parents) is a actual item in this.items
+ var currentItem = null, nodes = $(e.target).parents().each(function() {
+ if($.data(this, 'sortable-item')) {
+ currentItem = $(this);
+ return false;
+ }
+ });
+ if($.data(e.target, 'sortable-item')) currentItem = $(e.target);
+
+ if(!currentItem) return false;
+ if(this.options.handle && !overrideHandle) {
+ var validHandle = false;
+ $(this.options.handle, currentItem).find("*").andSelf().each(function() { if(this == e.target) validHandle = true; });
+ if(!validHandle) return false;
+ }
+
+ this.currentItem = currentItem;
+ return true;
+
+ },
+ mouseStart: function(e, overrideHandle, noActivation) {
+
+ var o = this.options;
+ this.currentContainer = this;
+
+ this.refresh();
+
+ //Create and append the visible helper
+ this.helper = typeof o.helper == 'function' ? $(o.helper.apply(this.element[0], [e, this.currentItem])) : this.currentItem.clone();
+ if(!this.helper.parents('body').length) this.helper.appendTo((o.appendTo != 'parent' ? o.appendTo : this.currentItem[0].parentNode)); //Add the helper to the DOM if that didn't happen already
+ this.helper.css({ position: 'absolute', clear: 'both' }).addClass('ui-sortable-helper'); //Position it absolutely and add a helper class
+
+ /*
+ * - Position generation -
+ * This block generates everything position related - it's the core of draggables.
+ */
+
+ this.margins = { //Cache the margins
+ left: (parseInt(this.currentItem.css("marginLeft"),10) || 0),
+ top: (parseInt(this.currentItem.css("marginTop"),10) || 0)
+ };
+
+ this.offset = this.currentItem.offset(); //The element's absolute position on the page
+ this.offset = { //Substract the margins from the element's absolute offset
+ top: this.offset.top - this.margins.top,
+ left: this.offset.left - this.margins.left
+ };
+
+ this.offset.click = { //Where the click happened, relative to the element
+ left: e.pageX - this.offset.left,
+ top: e.pageY - this.offset.top
+ };
+
+ this.offsetParent = this.helper.offsetParent(); var po = this.offsetParent.offset(); //Get the offsetParent and cache its position
+
+ this.offset.parent = { //Store its position plus border
+ top: po.top + (parseInt(this.offsetParent.css("borderTopWidth"),10) || 0),
+ left: po.left + (parseInt(this.offsetParent.css("borderLeftWidth"),10) || 0)
+ };
+
+ this.originalPosition = this.generatePosition(e); //Generate the original position
+ this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Cache the helper size
+
+ if(o.cursorAt) {
+ if(o.cursorAt.left != undefined) this.offset.click.left = o.cursorAt.left;
+ if(o.cursorAt.right != undefined) this.offset.click.left = this.helperProportions.width - o.cursorAt.right;
+ if(o.cursorAt.top != undefined) this.offset.click.top = o.cursorAt.top;
+ if(o.cursorAt.bottom != undefined) this.offset.click.top = this.helperProportions.height - o.cursorAt.bottom;
+ }
+
+ this.domPosition = this.currentItem.prev()[0]; //Cache the former DOM position
+
+ /*
+ * - Position constraining -
+ * Here we prepare position constraining like grid and containment.
+ */
+
+ if(o.containment) {
+ if(o.containment == 'parent') o.containment = this.helper[0].parentNode;
+ if(o.containment == 'document' || o.containment == 'window') this.containment = [
+ 0 - this.offset.parent.left,
+ 0 - this.offset.parent.top,
+ $(o.containment == 'document' ? document : window).width() - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.element.css("marginRight"),10) || 0),
+ ($(o.containment == 'document' ? document : window).height() || document.body.parentNode.scrollHeight) - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.element.css("marginBottom"),10) || 0)
+ ];
+
+ if(!(/^(document|window|parent)$/).test(o.containment)) {
+ var ce = $(o.containment)[0];
+ var co = $(o.containment).offset();
+
+ this.containment = [
+ co.left + (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.parent.left,
+ co.top + (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.parent.top,
+ co.left+Math.max(ce.scrollWidth,ce.offsetWidth) - (parseInt($(ce).css("borderLeftWidth"),10) || 0) - this.offset.parent.left - this.helperProportions.width - this.margins.left - (parseInt(this.currentItem.css("marginRight"),10) || 0),
+ co.top+Math.max(ce.scrollHeight,ce.offsetHeight) - (parseInt($(ce).css("borderTopWidth"),10) || 0) - this.offset.parent.top - this.helperProportions.height - this.margins.top - (parseInt(this.currentItem.css("marginBottom"),10) || 0)
+ ];
+ }
+ }
+
+ //If o.placeholder is used, create a new element at the given position with the class
+ if(o.placeholder) this.createPlaceholder();
+
+ //Call plugins and callbacks
+ this.propagate("start", e);
+ this.helperProportions = { width: this.helper.outerWidth(), height: this.helper.outerHeight() };//Recache the helper size
+
+ if(this.options.placeholder != 'clone') this.currentItem.css('visibility', 'hidden'); //Set the original element visibility to hidden to still fill out the white space
+
+ if(!noActivation) {
+ for (var i = this.containers.length - 1; i >= 0; i--) { this.containers[i].propagate("activate", e, this); } //Post 'activate' events to possible containers
+ }
+
+ //Prepare possible droppables
+ if($.ui.ddmanager) $.ui.ddmanager.current = this;
+ if ($.ui.ddmanager && !o.dropBehaviour) $.ui.ddmanager.prepareOffsets(this, e);
+
+ this.dragging = true;
+
+ this.mouseDrag(e); //Execute the drag once - this causes the helper not to be visible before getting its correct position
+ return true;
+
+
+ },
+ convertPositionTo: function(d, pos) {
+ if(!pos) pos = this.position;
+ var mod = d == "absolute" ? 1 : -1;
+ return {
+ top: (
+ pos.top // the calculated relative position
+ + this.offset.parent.top * mod // The offsetParent's offset without borders (offset + border)
+ - (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop) * mod // The offsetParent's scroll position
+ + this.margins.top * mod //Add the margin (you don't want the margin counting in intersection methods)
+ ),
+ left: (
+ pos.left // the calculated relative position
+ + this.offset.parent.left * mod // The offsetParent's offset without borders (offset + border)
+ - (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft) * mod // The offsetParent's scroll position
+ + this.margins.left * mod //Add the margin (you don't want the margin counting in intersection methods)
+ )
+ };
+ },
+ generatePosition: function(e) {
+
+ var o = this.options;
+ var position = {
+ top: (
+ e.pageY // The absolute mouse position
+ - this.offset.click.top // Click offset (relative to the element)
+ - this.offset.parent.top // The offsetParent's offset without borders (offset + border)
+ + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop) // The offsetParent's scroll position, not if the element is fixed
+ ),
+ left: (
+ e.pageX // The absolute mouse position
+ - this.offset.click.left // Click offset (relative to the element)
+ - this.offset.parent.left // The offsetParent's offset without borders (offset + border)
+ + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft) // The offsetParent's scroll position, not if the element is fixed
+ )
+ };
+
+ if(!this.originalPosition) return position; //If we are not dragging yet, we won't check for options
+
+ /*
+ * - Position constraining -
+ * Constrain the position to a mix of grid, containment.
+ */
+ if(this.containment) {
+ if(position.left < this.containment[0]) position.left = this.containment[0];
+ if(position.top < this.containment[1]) position.top = this.containment[1];
+ if(position.left > this.containment[2]) position.left = this.containment[2];
+ if(position.top > this.containment[3]) position.top = this.containment[3];
+ }
+
+ if(o.grid) {
+ var top = this.originalPosition.top + Math.round((position.top - this.originalPosition.top) / o.grid[1]) * o.grid[1];
+ position.top = this.containment ? (!(top < this.containment[1] || top > this.containment[3]) ? top : (!(top < this.containment[1]) ? top - o.grid[1] : top + o.grid[1])) : top;
+
+ var left = this.originalPosition.left + Math.round((position.left - this.originalPosition.left) / o.grid[0]) * o.grid[0];
+ position.left = this.containment ? (!(left < this.containment[0] || left > this.containment[2]) ? left : (!(left < this.containment[0]) ? left - o.grid[0] : left + o.grid[0])) : left;
+ }
+
+ return position;
+ },
+ mouseDrag: function(e) {
+
+
+ //Compute the helpers position
+ this.position = this.generatePosition(e);
+ this.positionAbs = this.convertPositionTo("absolute");
+
+ //Rearrange
+ for (var i = this.items.length - 1; i >= 0; i--) {
+ var intersection = this.intersectsWithEdge(this.items[i]);
+ if(!intersection) continue;
+
+ if(this.items[i].item[0] != this.currentItem[0] //cannot intersect with itself
+ && this.currentItem[intersection == 1 ? "next" : "prev"]()[0] != this.items[i].item[0] //no useless actions that have been done before
+ && !contains(this.currentItem[0], this.items[i].item[0]) //no action if the item moved is the parent of the item checked
+ && (this.options.type == 'semi-dynamic' ? !contains(this.element[0], this.items[i].item[0]) : true)
+ ) {
+
+ this.direction = intersection == 1 ? "down" : "up";
+ this.rearrange(e, this.items[i]);
+ this.propagate("change", e); //Call plugins and callbacks
+ break;
+ }
+ }
+
+ //Post events to containers
+ this.contactContainers(e);
+
+ //Call plugins and callbacks
+ this.propagate("sort", e);
+
+ if(!this.options.axis || this.options.axis == "x") this.helper[0].style.left = this.position.left+'px';
+ if(!this.options.axis || this.options.axis == "y") this.helper[0].style.top = this.position.top+'px';
+
+ //Interconnect with droppables
+ if($.ui.ddmanager) $.ui.ddmanager.drag(this, e);
+
+ return false;
+
+ },
+ mouseStop: function(e, noPropagation) {
+
+ //If we are using droppables, inform the manager about the drop
+ if ($.ui.ddmanager && !this.options.dropBehaviour)
+ $.ui.ddmanager.drop(this, e);
+
+ if(this.options.revert) {
+ var self = this;
+ var cur = self.currentItem.offset();
+
+ //Also animate the placeholder if we have one
+ if(self.placeholder) self.placeholder.animate({ opacity: 'hide' }, (parseInt(this.options.revert, 10) || 500)-50);
+
+ $(this.helper).animate({
+ left: cur.left - this.offset.parent.left - self.margins.left + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollLeft),
+ top: cur.top - this.offset.parent.top - self.margins.top + (this.offsetParent[0] == document.body ? 0 : this.offsetParent[0].scrollTop)
+ }, parseInt(this.options.revert, 10) || 500, function() {
+ self.propagate("stop", e, null, noPropagation);
+ self.clear(e);
+ });
+ } else {
+ this.propagate("stop", e, null, noPropagation);
+ this.clear(e, noPropagation);
+ }
+
+ return false;
+
+ },
+ clear: function(e, noPropagation) {
+
+ if(this.domPosition != this.currentItem.prev().not(".ui-sortable-helper")[0]) this.propagate("update", e, null, noPropagation); //Trigger update callback if the DOM position has changed
+ if(!contains(this.element[0], this.currentItem[0])) { //Node was moved out of the current element
+ if(this.domPosition == this.currentItem.prev().not(".ui-sortable-helper")[0]) this.propagate("update", e, null, noPropagation); //Trigger update callback, if it wasn't triggered before, because that is definitely an update
+ this.propagate("remove", e, null, noPropagation);
+ for (var i = this.containers.length - 1; i >= 0; i--){
+ if(contains(this.containers[i].element[0], this.currentItem[0])) {
+ this.containers[i].propagate("update", e, this, noPropagation);
+ this.containers[i].propagate("receive", e, this, noPropagation);
+ }
+ };
+ };
+
+ //Post events to containers
+ for (var i = this.containers.length - 1; i >= 0; i--){
+ this.containers[i].propagate("deactivate", e, this, noPropagation);
+ if(this.containers[i].containerCache.over) {
+ this.containers[i].propagate("out", e, this);
+ this.containers[i].containerCache.over = 0;
+ }
+ }
+
+ this.dragging = false;
+ if(this.cancelHelperRemoval) return false;
+ $(this.currentItem).css('visibility', '');
+ if(this.placeholder) this.placeholder.remove();
+ this.helper.remove();
+
+ return true;
+
+ },
+ rearrange: function(e, i, a) {
+ a ? a.append(this.currentItem) : i.item[this.direction == 'down' ? 'before' : 'after'](this.currentItem);
+ this.refreshPositions(true); //Precompute after each DOM insertion, NOT on mousemove
+ if(this.options.placeholder) this.options.placeholder.update.call(this.element, this.currentItem, this.placeholder);
+ }
+}));
+
+$.extend($.ui.sortable, {
+ getter: "serialize toArray",
+ defaults: {
+ tolerance: "guess",
+ distance: 0,
+ delay: 0,
+ cancel: ":input,button",
+ items: '> *',
+ zIndex: 1000,
+ dropOnEmpty: true,
+ appendTo: "parent"
+ }
+});
+
+/*
+ * Sortable Extensions
+ */
+
+$.ui.plugin.add("sortable", "cursor", {
+ start: function(e, ui) {
+ var t = $('body');
+ if (t.css("cursor")) ui.options._cursor = t.css("cursor");
+ t.css("cursor", ui.options.cursor);
+ },
+ stop: function(e, ui) {
+ if (ui.options._cursor) $('body').css("cursor", ui.options._cursor);
+ }
+});
+
+$.ui.plugin.add("sortable", "zIndex", {
+ start: function(e, ui) {
+ var t = ui.helper;
+ if(t.css("zIndex")) ui.options._zIndex = t.css("zIndex");
+ t.css('zIndex', ui.options.zIndex);
+ },
+ stop: function(e, ui) {
+ if(ui.options._zIndex) $(ui.helper).css('zIndex', ui.options._zIndex);
+ }
+});
+
+$.ui.plugin.add("sortable", "opacity", {
+ start: function(e, ui) {
+ var t = ui.helper;
+ if(t.css("opacity")) ui.options._opacity = t.css("opacity");
+ t.css('opacity', ui.options.opacity);
+ },
+ stop: function(e, ui) {
+ if(ui.options._opacity) $(ui.helper).css('opacity', ui.options._opacity);
+ }
+});
+
+$.ui.plugin.add("sortable", "scroll", {
+ start: function(e, ui) {
+ var o = ui.options;
+ var i = $(this).data("sortable");
+ o.scrollSensitivity = o.scrollSensitivity || 20;
+ o.scrollSpeed = o.scrollSpeed || 20;
+
+ i.overflowY = function(el) {
+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-y'))) return el; el = el.parent(); } while (el[0].parentNode);
+ return $(document);
+ }(i.currentItem);
+ i.overflowX = function(el) {
+ do { if(/auto|scroll/.test(el.css('overflow')) || (/auto|scroll/).test(el.css('overflow-x'))) return el; el = el.parent(); } while (el[0].parentNode);
+ return $(document);
+ }(i.currentItem);
+
+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') i.overflowYOffset = i.overflowY.offset();
+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') i.overflowXOffset = i.overflowX.offset();
+
+ },
+ sort: function(e, ui) {
+
+ var o = ui.options;
+ var i = $(this).data("sortable");
+
+ if(i.overflowY[0] != document && i.overflowY[0].tagName != 'HTML') {
+ if((i.overflowYOffset.top + i.overflowY[0].offsetHeight) - e.pageY < o.scrollSensitivity)
+ i.overflowY[0].scrollTop = i.overflowY[0].scrollTop + o.scrollSpeed;
+ if(e.pageY - i.overflowYOffset.top < o.scrollSensitivity)
+ i.overflowY[0].scrollTop = i.overflowY[0].scrollTop - o.scrollSpeed;
+ } else {
+ if(e.pageY - $(document).scrollTop() < o.scrollSensitivity)
+ $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
+ if($(window).height() - (e.pageY - $(document).scrollTop()) < o.scrollSensitivity)
+ $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
+ }
+
+ if(i.overflowX[0] != document && i.overflowX[0].tagName != 'HTML') {
+ if((i.overflowXOffset.left + i.overflowX[0].offsetWidth) - e.pageX < o.scrollSensitivity)
+ i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft + o.scrollSpeed;
+ if(e.pageX - i.overflowXOffset.left < o.scrollSensitivity)
+ i.overflowX[0].scrollLeft = i.overflowX[0].scrollLeft - o.scrollSpeed;
+ } else {
+ if(e.pageX - $(document).scrollLeft() < o.scrollSensitivity)
+ $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
+ if($(window).width() - (e.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
+ $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
+ }
+
+ }
+});
+
+})(jQuery);
diff --git a/javascript/libs/jquery/full/ui/ui.tabs.js b/javascript/libs/jquery/full/ui/ui.tabs.js
new file mode 100644
index 0000000..afcd22f
--- /dev/null
+++ b/javascript/libs/jquery/full/ui/ui.tabs.js
@@ -0,0 +1,593 @@
+/*
+ * jQuery UI Tabs
+ *
+ * Copyright (c) 2007, 2008 Klaus Hartl (stilbuero.de)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * http://docs.jquery.com/UI/Tabs
+ *
+ * Depends:
+ * ui.core.js
+ *
+ */
+(function($) {
+
+$.widget("ui.tabs", {
+ init: function() {
+ this.options.event += '.tabs'; // namespace event
+
+ // create tabs
+ this.tabify(true);
+ },
+ setData: function(key, value) {
+ if ((/^selected/).test(key))
+ this.select(value);
+ else {
+ this.options[key] = value;
+ this.tabify();
+ }
+ },
+ length: function() {
+ return this.$tabs.length;
+ },
+ tabId: function(a) {
+ return a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '')
+ || this.options.idPrefix + $.data(a);
+ },
+ ui: function(tab, panel) {
+ return {
+ options: this.options,
+ tab: tab,
+ panel: panel
+ };
+ },
+ tabify: function(init) {
+
+ this.$lis = $('li:has(a[href])', this.element);
+ this.$tabs = this.$lis.map(function() { return $('a', this)[0]; });
+ this.$panels = $([]);
+
+ var self = this, o = this.options;
+
+ this.$tabs.each(function(i, a) {
+ // inline tab
+ if (a.hash && a.hash.replace('#', '')) // Safari 2 reports '#' for an empty hash
+ self.$panels = self.$panels.add(a.hash);
+ // remote tab
+ else if ($(a).attr('href') != '#') { // prevent loading the page itself if href is just "#"
+ $.data(a, 'href.tabs', a.href); // required for restore on destroy
+ $.data(a, 'load.tabs', a.href); // mutable
+ var id = self.tabId(a);
+ a.href = '#' + id;
+ var $panel = $('#' + id);
+ if (!$panel.length) {
+ $panel = $(o.panelTemplate).attr('id', id).addClass(o.panelClass)
+ .insertAfter( self.$panels[i - 1] || self.element );
+ $panel.data('destroy.tabs', true);
+ }
+ self.$panels = self.$panels.add( $panel );
+ }
+ // invalid tab href
+ else
+ o.disabled.push(i + 1);
+ });
+
+ if (init) {
+
+ // attach necessary classes for styling if not present
+ this.element.addClass(o.navClass);
+ this.$panels.each(function() {
+ var $this = $(this);
+ $this.addClass(o.panelClass);
+ });
+
+ // Selected tab
+ // use "selected" option or try to retrieve:
+ // 1. from fragment identifier in url
+ // 2. from cookie
+ // 3. from selected class attribute on <li>
+ if (o.selected === undefined) {
+ if (location.hash) {
+ this.$tabs.each(function(i, a) {
+ if (a.hash == location.hash) {
+ o.selected = i;
+ // prevent page scroll to fragment
+ if ($.browser.msie || $.browser.opera) { // && !o.remote
+ var $toShow = $(location.hash), toShowId = $toShow.attr('id');
+ $toShow.attr('id', '');
+ setTimeout(function() {
+ $toShow.attr('id', toShowId); // restore id
+ }, 500);
+ }
+ scrollTo(0, 0);
+ return false; // break
+ }
+ });
+ }
+ else if (o.cookie) {
+ var index = parseInt($.cookie('ui-tabs' + $.data(self.element)),10);
+ if (index && self.$tabs[index])
+ o.selected = index;
+ }
+ else if (self.$lis.filter('.' + o.selectedClass).length)
+ o.selected = self.$lis.index( self.$lis.filter('.' + o.selectedClass)[0] );
+ }
+ o.selected = o.selected === null || o.selected !== undefined ? o.selected : 0; // first tab selected by default
+
+ // Take disabling tabs via class attribute from HTML
+ // into account and update option properly.
+ // A selected tab cannot become disabled.
+ o.disabled = $.unique(o.disabled.concat(
+ $.map(this.$lis.filter('.' + o.disabledClass),
+ function(n, i) { return self.$lis.index(n); } )
+ )).sort();
+ if ($.inArray(o.selected, o.disabled) != -1)
+ o.disabled.splice($.inArray(o.selected, o.disabled), 1);
+
+ // highlight selected tab
+ this.$panels.addClass(o.hideClass);
+ this.$lis.removeClass(o.selectedClass);
+ if (o.selected !== null) {
+ this.$panels.eq(o.selected).show().removeClass(o.hideClass); // use show and remove class to show in any case no matter how it has been hidden before
+ this.$lis.eq(o.selected).addClass(o.selectedClass);
+
+ // seems to be expected behavior that the show callback is fired
+ var onShow = function() {
+ $(self.element).triggerHandler('tabsshow',
+ [self.ui(self.$tabs[o.selected], self.$panels[o.selected])], o.show);
+ };
+
+ // load if remote tab
+ if ($.data(this.$tabs[o.selected], 'load.tabs'))
+ this.load(o.selected, onShow);
+ // just trigger show event
+ else
+ onShow();
+
+ }
+
+ // clean up to avoid memory leaks in certain versions of IE 6
+ $(window).bind('unload', function() {
+ self.$tabs.unbind('.tabs');
+ self.$lis = self.$tabs = self.$panels = null;
+ });
+
+ }
+
+ // disable tabs
+ for (var i = 0, li; li = this.$lis[i]; i++)
+ $(li)[$.inArray(i, o.disabled) != -1 && !$(li).hasClass(o.selectedClass) ? 'addClass' : 'removeClass'](o.disabledClass);
+
+ // reset cache if switching from cached to not cached
+ if (o.cache === false)
+ this.$tabs.removeData('cache.tabs');
+
+ // set up animations
+ var hideFx, showFx, baseFx = { 'min-width': 0, duration: 1 }, baseDuration = 'normal';
+ if (o.fx && o.fx.constructor == Array)
+ hideFx = o.fx[0] || baseFx, showFx = o.fx[1] || baseFx;
+ else
+ hideFx = showFx = o.fx || baseFx;
+
+ // reset some styles to maintain print style sheets etc.
+ var resetCSS = { display: '', overflow: '', height: '' };
+ if (!$.browser.msie) // not in IE to prevent ClearType font issue
+ resetCSS.opacity = '';
+
+ // Hide a tab, animation prevents browser scrolling to fragment,
+ // $show is optional.
+ function hideTab(clicked, $hide, $show) {
+ $hide.animate(hideFx, hideFx.duration || baseDuration, function() { //
+ $hide.addClass(o.hideClass).css(resetCSS); // maintain flexible height and accessibility in print etc.
+ if ($.browser.msie && hideFx.opacity)
+ $hide[0].style.filter = '';
+ if ($show)
+ showTab(clicked, $show, $hide);
+ });
+ }
+
+ // Show a tab, animation prevents browser scrolling to fragment,
+ // $hide is optional.
+ function showTab(clicked, $show, $hide) {
+ if (showFx === baseFx)
+ $show.css('display', 'block'); // prevent occasionally occuring flicker in Firefox cause by gap between showing and hiding the tab panels
+ $show.animate(showFx, showFx.duration || baseDuration, function() {
+ $show.removeClass(o.hideClass).css(resetCSS); // maintain flexible height and accessibility in print etc.
+ if ($.browser.msie && showFx.opacity)
+ $show[0].style.filter = '';
+
+ // callback
+ $(self.element).triggerHandler('tabsshow',
+ [self.ui(clicked, $show[0])], o.show);
+
+ });
+ }
+
+ // switch a tab
+ function switchTab(clicked, $li, $hide, $show) {
+ /*if (o.bookmarkable && trueClick) { // add to history only if true click occured, not a triggered click
+ $.ajaxHistory.update(clicked.hash);
+ }*/
+ $li.addClass(o.selectedClass)
+ .siblings().removeClass(o.selectedClass);
+ hideTab(clicked, $hide, $show);
+ }
+
+ // attach tab event handler, unbind to avoid duplicates from former tabifying...
+ this.$tabs.unbind('.tabs').bind(o.event, function() {
+
+ //var trueClick = e.clientX; // add to history only if true click occured, not a triggered click
+ var $li = $(this).parents('li:eq(0)'),
+ $hide = self.$panels.filter(':visible'),
+ $show = $(this.hash);
+
+ // If tab is already selected and not unselectable or tab disabled or
+ // or is already loading or click callback returns false stop here.
+ // Check if click handler returns false last so that it is not executed
+ // for a disabled or loading tab!
+ if (($li.hasClass(o.selectedClass) && !o.unselect)
+ || $li.hasClass(o.disabledClass)
+ || $(this).hasClass(o.loadingClass)
+ || $(self.element).triggerHandler('tabsselect', [self.ui(this, $show[0])], o.select) === false
+ ) {
+ this.blur();
+ return false;
+ }
+
+ self.options.selected = self.$tabs.index(this);
+
+ // if tab may be closed
+ if (o.unselect) {
+ if ($li.hasClass(o.selectedClass)) {
+ self.options.selected = null;
+ $li.removeClass(o.selectedClass);
+ self.$panels.stop();
+ hideTab(this, $hide);
+ this.blur();
+ return false;
+ } else if (!$hide.length) {
+ self.$panels.stop();
+ var a = this;
+ self.load(self.$tabs.index(this), function() {
+ $li.addClass(o.selectedClass).addClass(o.unselectClass);
+ showTab(a, $show);
+ });
+ this.blur();
+ return false;
+ }
+ }
+
+ if (o.cookie)
+ $.cookie('ui-tabs' + $.data(self.element), self.options.selected, o.cookie);
+
+ // stop possibly running animations
+ self.$panels.stop();
+
+ // show new tab
+ if ($show.length) {
+
+ // prevent scrollbar scrolling to 0 and than back in IE7, happens only if bookmarking/history is enabled
+ /*if ($.browser.msie && o.bookmarkable) {
+ var showId = this.hash.replace('#', '');
+ $show.attr('id', '');
+ setTimeout(function() {
+ $show.attr('id', showId); // restore id
+ }, 0);
+ }*/
+
+ var a = this;
+ self.load(self.$tabs.index(this), $hide.length ?
+ function() {
+ switchTab(a, $li, $hide, $show);
+ } :
+ function() {
+ $li.addClass(o.selectedClass);
+ showTab(a, $show);
+ }
+ );
+
+ // Set scrollbar to saved position - need to use timeout with 0 to prevent browser scroll to target of hash
+ /*var scrollX = window.pageXOffset || document.documentElement && document.documentElement.scrollLeft || document.body.scrollLeft || 0;
+ var scrollY = window.pageYOffset || document.documentElement && document.documentElement.scrollTop || document.body.scrollTop || 0;
+ setTimeout(function() {
+ scrollTo(scrollX, scrollY);
+ }, 0);*/
+
+ } else
+ throw 'jQuery UI Tabs: Mismatching fragment identifier.';
+
+ // Prevent IE from keeping other link focussed when using the back button
+ // and remove dotted border from clicked link. This is controlled in modern
+ // browsers via CSS, also blur removes focus from address bar in Firefox
+ // which can become a usability and annoying problem with tabsRotate.
+ if ($.browser.msie)
+ this.blur();
+
+ //return o.bookmarkable && !!trueClick; // convert trueClick == undefined to Boolean required in IE
+ return false;
+
+ });
+
+ // disable click if event is configured to something else
+ if (!(/^click/).test(o.event))
+ this.$tabs.bind('click.tabs', function() { return false; });
+
+ },
+ add: function(url, label, index) {
+ if (index == undefined)
+ index = this.$tabs.length; // append by default
+
+ var o = this.options;
+ var $li = $(o.tabTemplate.replace(/#\{href\}/g, url).replace(/#\{label\}/g, label));
+ $li.data('destroy.tabs', true);
+
+ var id = url.indexOf('#') == 0 ? url.replace('#', '') : this.tabId( $('a:first-child', $li)[0] );
+
+ // try to find an existing element before creating a new one
+ var $panel = $('#' + id);
+ if (!$panel.length) {
+ $panel = $(o.panelTemplate).attr('id', id)
+ .addClass(o.hideClass)
+ .data('destroy.tabs', true);
+ }
+ $panel.addClass(o.panelClass);
+ if (index >= this.$lis.length) {
+ $li.appendTo(this.element);
+ $panel.appendTo(this.element[0].parentNode);
+ } else {
+ $li.insertBefore(this.$lis[index]);
+ $panel.insertBefore(this.$panels[index]);
+ }
+
+ o.disabled = $.map(o.disabled,
+ function(n, i) { return n >= index ? ++n : n });
+
+ this.tabify();
+
+ if (this.$tabs.length == 1) {
+ $li.addClass(o.selectedClass);
+ $panel.removeClass(o.hideClass);
+ var href = $.data(this.$tabs[0], 'load.tabs');
+ if (href)
+ this.load(index, href);
+ }
+
+ // callback
+ this.element.triggerHandler('tabsadd',
+ [this.ui(this.$tabs[index], this.$panels[index])], o.add
+ );
+ },
+ remove: function(index) {
+ var o = this.options, $li = this.$lis.eq(index).remove(),
+ $panel = this.$panels.eq(index).remove();
+
+ // If selected tab was removed focus tab to the right or
+ // in case the last tab was removed the tab to the left.
+ if ($li.hasClass(o.selectedClass) && this.$tabs.length > 1)
+ this.select(index + (index + 1 < this.$tabs.length ? 1 : -1));
+
+ o.disabled = $.map($.grep(o.disabled, function(n, i) { return n != index; }),
+ function(n, i) { return n >= index ? --n : n });
+
+ this.tabify();
+
+ // callback
+ this.element.triggerHandler('tabsremove',
+ [this.ui($li.find('a')[0], $panel[0])], o.remove
+ );
+ },
+ enable: function(index) {
+ var o = this.options;
+ if ($.inArray(index, o.disabled) == -1)
+ return;
+
+ var $li = this.$lis.eq(index).removeClass(o.disabledClass);
+ if ($.browser.safari) { // fix disappearing tab (that used opacity indicating disabling) after enabling in Safari 2...
+ $li.css('display', 'inline-block');
+ setTimeout(function() {
+ $li.css('display', 'block');
+ }, 0);
+ }
+
+ o.disabled = $.grep(o.disabled, function(n, i) { return n != index; });
+
+ // callback
+ this.element.triggerHandler('tabsenable',
+ [this.ui(this.$tabs[index], this.$panels[index])], o.enable
+ );
+
+ },
+ disable: function(index) {
+ var self = this, o = this.options;
+ if (index != o.selected) { // cannot disable already selected tab
+ this.$lis.eq(index).addClass(o.disabledClass);
+
+ o.disabled.push(index);
+ o.disabled.sort();
+
+ // callback
+ this.element.triggerHandler('tabsdisable',
+ [this.ui(this.$tabs[index], this.$panels[index])], o.disable
+ );
+ }
+ },
+ select: function(index) {
+ if (typeof index == 'string')
+ index = this.$tabs.index( this.$tabs.filter('[href$=' + index + ']')[0] );
+ this.$tabs.eq(index).trigger(this.options.event);
+ },
+ load: function(index, callback) { // callback is for internal usage only
+
+ var self = this, o = this.options, $a = this.$tabs.eq(index), a = $a[0],
+ bypassCache = callback == undefined || callback === false, url = $a.data('load.tabs');
+
+ callback = callback || function() {};
+
+ // no remote or from cache - just finish with callback
+ if (!url || !bypassCache && $.data(a, 'cache.tabs')) {
+ callback();
+ return;
+ }
+
+ // load remote from here on
+
+ var inner = function(parent) {
+ var $parent = $(parent), $inner = $parent.find('*:last');
+ return $inner.length && $inner || $parent;
+ };
+ var cleanup = function() {
+ self.$tabs.filter('.' + o.loadingClass).removeClass(o.loadingClass)
+ .each(function() {
+ if (o.spinner)
+ inner(this).parent().html(inner(this).data('label.tabs'));
+ });
+ self.xhr = null;
+ };
+
+ if (o.spinner) {
+ var label = inner(a).html();
+ inner(a).wrapInner('<em></em>')
+ .find('em').data('label.tabs', label).html(o.spinner);
+ }
+
+ var ajaxOptions = $.extend({}, o.ajaxOptions, {
+ url: url,
+ success: function(r, s) {
+ $(a.hash).html(r);
+ cleanup();
+
+ if (o.cache)
+ $.data(a, 'cache.tabs', true); // if loaded once do not load them again
+
+ // callbacks
+ $(self.element).triggerHandler('tabsload',
+ [self.ui(self.$tabs[index], self.$panels[index])], o.load
+ );
+ o.ajaxOptions.success && o.ajaxOptions.success(r, s);
+
+ // This callback is required because the switch has to take
+ // place after loading has completed. Call last in order to
+ // fire load before show callback...
+ callback();
+ }
+ });
+ if (this.xhr) {
+ // terminate pending requests from other tabs and restore tab label
+ this.xhr.abort();
+ cleanup();
+ }
+ $a.addClass(o.loadingClass);
+ setTimeout(function() { // timeout is again required in IE, "wait" for id being restored
+ self.xhr = $.ajax(ajaxOptions);
+ }, 0);
+
+ },
+ url: function(index, url) {
+ this.$tabs.eq(index).removeData('cache.tabs').data('load.tabs', url);
+ },
+ destroy: function() {
+ var o = this.options;
+ this.element.unbind('.tabs')
+ .removeClass(o.navClass).removeData('tabs');
+ this.$tabs.each(function() {
+ var href = $.data(this, 'href.tabs');
+ if (href)
+ this.href = href;
+ var $this = $(this).unbind('.tabs');
+ $.each(['href', 'load', 'cache'], function(i, prefix) {
+ $this.removeData(prefix + '.tabs');
+ });
+ });
+ this.$lis.add(this.$panels).each(function() {
+ if ($.data(this, 'destroy.tabs'))
+ $(this).remove();
+ else
+ $(this).removeClass([o.selectedClass, o.unselectClass,
+ o.disabledClass, o.panelClass, o.hideClass].join(' '));
+ });
+ }
+});
+
+$.ui.tabs.defaults = {
+ // basic setup
+ unselect: false,
+ event: 'click',
+ disabled: [],
+ cookie: null, // e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true }
+ // TODO history: false,
+
+ // Ajax
+ spinner: 'Loading&#8230;',
+ cache: false,
+ idPrefix: 'ui-tabs-',
+ ajaxOptions: {},
+
+ // animations
+ fx: null, // e.g. { height: 'toggle', opacity: 'toggle', duration: 200 }
+
+ // templates
+ tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>',
+ panelTemplate: '<div></div>',
+
+ // CSS classes
+ navClass: 'ui-tabs-nav',
+ selectedClass: 'ui-tabs-selected',
+ unselectClass: 'ui-tabs-unselect',
+ disabledClass: 'ui-tabs-disabled',
+ panelClass: 'ui-tabs-panel',
+ hideClass: 'ui-tabs-hide',
+ loadingClass: 'ui-tabs-loading'
+};
+
+$.ui.tabs.getter = "length";
+
+/*
+ * Tabs Extensions
+ */
+
+/*
+ * Rotate
+ */
+$.extend($.ui.tabs.prototype, {
+ rotation: null,
+ rotate: function(ms, continuing) {
+
+ continuing = continuing || false;
+
+ var self = this, t = this.options.selected;
+
+ function start() {
+ self.rotation = setInterval(function() {
+ t = ++t < self.$tabs.length ? t : 0;
+ self.select(t);
+ }, ms);
+ }
+
+ function stop(e) {
+ if (!e || e.clientX) { // only in case of a true click
+ clearInterval(self.rotation);
+ }
+ }
+
+ // start interval
+ if (ms) {
+ start();
+ if (!continuing)
+ this.$tabs.bind(this.options.event, stop);
+ else
+ this.$tabs.bind(this.options.event, function() {
+ stop();
+ t = self.options.selected;
+ start();
+ });
+ }
+ // stop interval
+ else {
+ stop();
+ this.$tabs.unbind(this.options.event, stop);
+ }
+ }
+});
+
+})(jQuery);
diff --git a/javascript/libs/jquery/min/interface/accordion.js b/javascript/libs/jquery/min/interface/accordion.js
new file mode 100644
index 0000000..5e3f120
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/accordion.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Accordion
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+
+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}('6.E={C:5(3){r 4.A(5(){h(!3.n||!3.p)r;I 1=4;1.2={l:3.l||J,n:3.n,p:3.p,f:3.f||\'z\',o:3.o||\'z\',8:3.8&&w 3.8==\'5\'?3.8:v,j:3.8&&w 3.j==\'5\'?3.j:v,9:3.9&&w 3.9==\'5\'?3.9:v,k:6(3.n,4),g:6(3.p,4),m:3.m||K,7:3.7||0};1.2.g.S().i(\'d\',\'N\').a(0).i({d:1.2.l+\'U\',q:\'D\'}).c();1.2.k.A(5(x){4.b=x}).R(5(){6(4).u(1.2.o)},5(){6(4).y(1.2.o)}).Q(\'O\',5(e){h(1.2.7==4.b)r;1.2.k.a(1.2.7).y(1.2.f).c().a(4.b).u(1.2.f).c();1.2.g.a(1.2.7).F({d:0},1.2.m,5(){4.B.q=\'T\';h(1.2.j){1.2.j.s(1,[4])}}).c().a(4.b).P().F({d:1.2.l},1.2.m,5(){4.B.q=\'D\';h(1.2.8){1.2.8.s(1,[4])}}).c();h(1.2.9){1.2.9.s(1,[4,1.2.g.t(4.b),1.2.k.t(1.2.7),1.2.g.t(1.2.7)])}1.2.7=4.b}).a(0).u(1.2.f).c();6(4).i(\'d\',6(4).i(\'d\')).i(\'H\',\'G\')})}};6.L.M=6.E.C;',57,57,'|el|accordionCfg|options|this|function|jQuery|currentPanel|onShow|onClick|eq|accordionPos|end|height||activeClass|panels|if|css|onHide|headers|panelHeight|speed|headerSelector|hoverClass|panelSelector|display|return|apply|get|addClass|false|typeof|nr|removeClass|fakeAccordionClass|each|style|build|block|iAccordion|animate|hidden|overflow|var|300|400|fn|Accordion|1px|click|show|bind|hover|hide|none|px'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/carousel.js b/javascript/libs/jquery/min/interface/carousel.js
new file mode 100644
index 0000000..1f64ba5
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/carousel.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * 3D Carousel
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+/**
+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}('5.J={10:c(o){Q a.Z(c(){D 3=a;D u=2*g.E/1a;D H=2*g.E;t(5(3).B(\'l\')!=\'17\'&&5(3).B(\'l\')!=\'L\'){5(3).B(\'l\',\'17\')}3.4={C:5(o.C,a),k:o.k,n:o.n,I:o.I,H:H,j:5.P.1x(a),l:5.P.1D(a),A:g.E/2,N:o.N,z:o.p,p:[],K:v,u:2*g.E/1a};3.4.1d=(3.4.j.w-3.4.k)/2;3.4.s=(3.4.j.h-3.4.n-3.4.n*3.4.z)/2;3.4.19=2*g.E/3.4.C.j();3.4.O=3.4.j.w/2;3.4.T=3.4.j.h/2-3.4.n*3.4.z;D G=Y.X(\'1l\');5(G).B({l:\'L\',1h:1,U:0,W:0});5(3).16(G);3.4.C.Z(c(m){V=5(\'1b\',a).1q(0);7=q(3.4.n*3.4.z);t(5.1k.1j){8=Y.X(\'1b\');5(8).B(\'l\',\'L\');8.1f=V.1f;8.9.1w=\'1z 1v:1u.1s.1t(1y=1B, 9=1, 1r=0, 1A=0, 1E=0, 1p=0)\'}11{8=Y.X(\'8\');t(8.13){b=8.13("1o");8.9.l=\'L\';8.9.7=7+\'f\';8.9.d=3.4.k+\'f\';8.7=7;8.d=3.4.k;b.1n();b.1m(0,7);b.1C(1,-1);b.1I(V,0,0,3.4.k,7);b.23();b.1X="1W-1V";D M=b.1U(0,0,0,7);M.15(1,"14(r, r, r, 1)");M.15(0,"14(r, r, r, 0.6)");b.1Y=M;t(24.1Z.21(\'22\')!=-1){b.1T()}11{b.1R(0,0,3.4.k,7)}}}3.4.p[m]=8;5(G).16(8)}).F(\'1K\',c(e){3.4.K=1J;3.4.i=3.4.u*0.1*3.4.i/g.18(3.4.i);Q v}).F(\'12\',c(e){3.4.K=v;Q v});5.J.R(3);3.4.i=3.4.u*0.2;3.4.1S=1G.1F(c(){3.4.A+=3.4.i;t(3.4.A>H)3.4.A=0;5.J.R(3)},20);5(3).F(\'12\',c(){3.4.i=3.4.u*0.2*3.4.i/g.18(3.4.i)}).F(\'1H\',c(e){t(3.4.K==v){1c=5.P.1L(e);1i=3.4.j.w-1c.x+3.4.l.x;3.4.i=3.4.N*3.4.u*(3.4.j.w/2-1i)/(3.4.j.w/2)}})})},R:c(3){3.4.C.Z(c(m){S=3.4.A+m*3.4.19;x=3.4.1d*g.1M(S);y=3.4.s*g.1Q(S);1g=q(1P*(3.4.s+y)/(2*3.4.s));1e=(3.4.s+y)/(2*3.4.s);d=q((3.4.k-3.4.I)*1e+3.4.I);7=q(d*3.4.n/3.4.k);a.9.U=3.4.T+y-7/2+"f";a.9.W=3.4.O+x-d/2+"f";a.9.d=d+"f";a.9.7=7+"f";a.9.1h=1g;3.4.p[m].9.U=q(3.4.T+y+7-1-7/2)+"f";3.4.p[m].9.W=q(3.4.O+x-d/2)+"f";3.4.p[m].9.d=d+"f";3.4.p[m].9.7=q(7*3.4.z)+"f"})}};5.1O.1N=5.J.10;',62,129,'|||el|carouselCfg|jQuery||height|canvas|style|this|context|function|width||px|Math||speed|size|itemWidth|position|nr|itemHeight|options|reflections|parseInt|255|radiusY|if|increment|false||||reflectionSize|start|css|items|var|PI|bind|reflexions|maxRotation|itemMinWidth|iCarousel|protectRotation|absolute|gradient|rotationSpeed|paddingX|iUtil|return|positionItems|angle|paddingY|top|image|left|createElement|document|each|build|else|mouseout|getContext|rgba|addColorStop|append|relative|abs|step|360|img|pointer|radiusX|parte|src|itemZIndex|zIndex|mousex|msie|browser|div|translate|save|2d|finishx|get|finishOpacity|Microsoft|Alpha|DXImageTransform|progid|filter|getSize|opacity|flipv|startx|60|scale|getPosition|starty|setInterval|window|mousemove|drawImage|true|mouseover|getPointer|cos|Carousel|fn|100|sin|fillRect|rotationTimer|fill|createLinearGradient|out|destination|globalCompositeOperation|fillStyle|appVersion||indexOf|WebKit|restore|navigator'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/easing.js b/javascript/libs/jquery/min/interface/easing.js
new file mode 100644
index 0000000..252bf21
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/easing.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Easing formulas
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ */
+
+/**
+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({i:{w:e(p,n,8,6,9){b((-c.x(p*c.f)/2)+0.5)*6+8},C:e(p,n,8,6,9){b 6*(n/=9)*n*n+8},D:e(p,n,8,6,9){b-6*((n=n/9-1)*n*n*n-1)+8},G:e(p,n,8,6,9){d((n/=9/2)<1)b 6/2*n*n*n*n+8;b-6/2*((n-=2)*n*n*n-2)+8},k:e(p,n,8,6,9){d((n/=9)<(1/2.g)){b 6*(7.l*n*n)+8}j d(n<(2/2.g)){b 6*(7.l*(n-=(1.5/2.g))*n+.g)+8}j d(n<(2.5/2.g)){b 6*(7.l*(n-=(2.E/2.g))*n+.F)+8}j{b 6*(7.l*(n-=(2.A/2.g))*n+.z)+8}},r:e(p,n,8,6,9){d(h.i.k)b 6-h.i.k(p,9-n,0,6,9)+8;b 8+6},y:e(p,n,8,6,9){d(h.i.r&&h.i.k)d(n<9/2)b h.i.r(p,n*2,0,6,9)*.5+8;b h.i.k(p,n*2-9,0,6,9)*.5+6*.5+8;b 8+6},I:e(p,n,8,6,9){t a,s;d(n==0)b 8;d((n/=9)==1)b 8+6;a=6*0.3;p=9*.3;d(a<c.u(6)){a=6;s=p/4}j{s=p/(2*c.f)*c.v(6/a)}b-(a*c.m(2,q*(n-=1))*c.o((n*9-s)*(2*c.f)/p))+8},J:e(p,n,8,6,9){t a,s;d(n==0)b 8;d((n/=9/2)==2)b 8+6;a=6*0.3;p=9*.3;d(a<c.u(6)){a=6;s=p/4}j{s=p/(2*c.f)*c.v(6/a)}b a*c.m(2,-q*n)*c.o((n*9-s)*(2*c.f)/p)+6+8},H:e(p,n,8,6,9){t a,s;d(n==0)b 8;d((n/=9/2)==2)b 8+6;a=6*0.3;p=9*.3;d(a<c.u(6)){a=6;s=p/4}j{s=p/(2*c.f)*c.v(6/a)}d(n<1){b-.5*(a*c.m(2,q*(n-=1))*c.o((n*9-s)*(2*c.f)/p))+8}b a*c.m(2,-q*(n-=1))*c.o((n*9-s)*(2*c.f)/p)*.5+6+8}}});',46,46,'||||||delta||firstNum|duration||return|Math|if|function|PI|75|jQuery|easing|else|bounceout|5625|pow||sin||10|bouncein||var|abs|asin|linear|cos|bounceboth|984375|625|extend|easein|easeout|25|9375|easeboth|elasticboth|elasticin|elasticout'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/fisheye.js b/javascript/libs/jquery/min/interface/fisheye.js
new file mode 100644
index 0000000..6f83c49
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/fisheye.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Fisheye menu
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+
+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}('4.h={H:9(d){T 7.F(9(){g 1=7;1.3={8:4(d.8,7),i:4(d.i,7),m:4.z.J(7),5:d.5,t:d.t,j:d.j,K:d.K,b:d.b,A:d.A};4.h.s(1,0);4(S).v(\'W\',9(){1.3.m=4.z.J(1);4.h.s(1,0);4.h.E(1)});4.h.E(1);1.3.8.v(\'O\',9(){4(1.3.t,7).l(0).a.I=\'P\'}).v(\'R\',9(){4(1.3.t,7).l(0).a.I=\'11\'});4(Z).v(\'10\',9(e){g p=4.z.Y(e);g c=0;k(1.3.b&&1.3.b==\'L\')g r=p.x-1.3.m.x-(1.w-1.3.5*1.3.8.n())/2-1.3.5/2;u k(1.3.b&&1.3.b==\'N\')g r=p.x-1.3.m.x-1.w+1.3.5*1.3.8.n();u g r=p.x-1.3.m.x;g M=B.G(p.y-1.3.m.y-1.X/2,2);1.3.8.F(9(q){6=B.Q(B.G(r-q*1.3.5,2)+M);6-=1.3.5/2;6=6<0?0:6;6=6>1.3.j?1.3.j:6;6=1.3.j-6;C=1.3.A*6/1.3.j;7.a.D=1.3.5+C+\'f\';7.a.o=1.3.5*q+c+\'f\';c+=C});4.h.s(1,c)})})},s:9(1,c){k(1.3.b)k(1.3.b==\'L\')1.3.i.l(0).a.o=(1.w-1.3.5*1.3.8.n())/2-c/2+\'f\';u k(1.3.b==\'o\')1.3.i.l(0).a.o=-c/1.3.8.n()+\'f\';u k(1.3.b==\'N\')1.3.i.l(0).a.o=(1.w-1.3.5*1.3.8.n())-c/2+\'f\';1.3.i.l(0).a.D=1.3.5*1.3.8.n()+c+\'f\'},E:9(1){1.3.8.F(9(q){7.a.D=1.3.5+\'f\';7.a.o=1.3.5*q+\'f\'})}};4.V.U=4.h.H;',62,64,'|el||fisheyeCfg|jQuery|itemWidth|distance|this|items|function|style|halign|toAdd|options||px|var|iFisheye|container|proximity|if|get|pos|size|left|pointer|nr|posx|positionContainer|itemsText|else|bind|offsetWidth|||iUtil|maxWidth|Math|extraWidth|width|positionItems|each|pow|build|display|getPosition|valign|center|posy|right|mouseover|block|sqrt|mouseout|window|return|Fisheye|fn|resize|offsetHeight|getPointer|document|mousemove|none'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/iautocompleter.js b/javascript/libs/jquery/min/interface/iautocompleter.js
new file mode 100644
index 0000000..68e3c85
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/iautocompleter.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Autocompleter
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+
+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}('2.3={m:k,1m:k,J:k,1a:k,H:k,1Q:k,4:k,b:k,h:k,19:j(){2.3.1m.19();7(2.3.J){2.3.J.2z()}},R:j(){2.3.h=k;2.3.b=k;2.3.H=2.3.4.g;7(2.3.m.G(\'1i\')==\'22\'){7(2.3.4.5.f){1Y(2.3.4.5.f.E){C\'1O\':2.3.m.2H(2.3.4.5.f.M,2.3.19);D;C\'14\':2.3.m.3z(2.3.4.5.f.M,2.3.19);D;C\'1s\':2.3.m.3y(2.3.4.5.f.M,2.3.19);D}}v{2.3.m.2z()}7(2.3.4.5.X)2.3.4.5.X.1x(2.3.4,[2.3.m,2.3.J])}v{2.3.19()}F.1K(2.3.1a)},2f:j(){d 4=2.3.4;d A=2.3.1t(4);7(4&&A.o!=2.3.H&&A.o.a>=4.5.1u){2.3.H=A.o;2.3.1Q=A.o;16={c:2(4).2o(\'3p\')||\'c\',g:A.o};2.3l({E:\'3n\',16:2.3b(16),3I:j(28){4.5.B=2(\'o\',28);L=4.5.B.L();7(L>0){d P=\'\';4.5.B.1S(j(1v){P+=\'<1j 1c="\'+2(\'g\',6).O()+\'" 1e="\'+1v+\'" 10="26: 2a;">\'+2(\'O\',6).O()+\'</1j>\'});7(4.5.1p){d u=2(\'g\',4.5.B.q(0)).O();4.g=A.p+u+4.5.s+A.S;2.3.15(4,A.o.a!=u.a?(A.p.a+A.o.a):u.a,A.o.a!=u.a?(A.p.a+u.a):u.a)}7(L>0){2.3.1Z(4,P)}v{2.3.R()}}v{2.3.R()}},2W:4.5.1o})}},1Z:j(4,P){2.3.1m.2O(P);2.3.h=2(\'1j\',2.3.1m.q(0));2.3.h.3r(2.3.2e).2L(\'2M\',2.3.2g);d V=2.1f.2N(4);d L=2.1f.2D(4);2.3.m.G(\'1U\',V.y+L.21+\'1n\').G(\'1V\',V.x+\'1n\').2E(4.5.1r);7(2.3.J){2.3.J.G(\'1i\',\'22\').G(\'1U\',V.y+L.21+\'1n\').G(\'1V\',V.x+\'1n\').G(\'1I\',2.3.m.G(\'1I\')).G(\'23\',2.3.m.G(\'23\'))}2.3.b=0;2.3.h.q(0).12=4.5.Z;2.3.1g(4,4.5.B.q(0),\'17\');7(2.3.m.G(\'1i\')==\'1w\'){7(4.5.20){d 1H=2.1f.2V(4,N);d 1L=2.1f.2U(4,N);2.3.m.G(\'1I\',4.2S-(2.2T?(1H.l+1H.r+1L.l+1L.r):0)+\'1n\')}7(4.5.f){1Y(4.5.f.E){C\'1O\':2.3.m.33(4.5.f.M);D;C\'14\':2.3.m.32(4.5.f.M);D;C\'1s\':2.3.m.30(4.5.f.M);D}}v{2.3.m.2Q()}7(2.3.4.5.Y)2.3.4.5.Y.1x(2.3.4,[2.3.m,2.3.J])}},2b:j(){d 4=6;7(4.5.B){2.3.H=4.g;2.3.1Q=4.g;d P=\'\';4.5.B.1S(j(1v){g=2(\'g\',6).O().29();2d=4.g.29();7(g.2C(2d)==0){P+=\'<1j 1c="\'+2(\'g\',6).O()+\'" 1e="\'+1v+\'" 10="26: 2a;">\'+2(\'O\',6).O()+\'</1j>\'}});7(P!=\'\'){2.3.1Z(4,P);6.5.1A=N;t}}4.5.B=k;6.5.1A=n},15:j(c,1d,1B){7(c.1T){d W=c.1T();W.2J(N);W.2i("1R",1d);W.2Z("1R",-1B+1d);W.3L()}v 7(c.24){c.24(1d,1B)}v{7(c.T){c.T=1d;c.3A=1B}}c.2v()},2h:j(c){7(c.T)t c.T;v 7(c.1T){d W=1X.15.3a();d 25=W.3u();t 0-25.2i(\'1R\',-3C)}},1t:j(c){d I={g:c.g,p:\'\',S:\'\',o:\'\'};7(c.5.1q){d 1h=n;d T=2.3.2h(c)||0;d K=I.g.3D(c.5.s);2c(d i=0;i<K.a;i++){7((I.p.a+K[i].a>=T||T==0)&&!1h){7(I.p.a<=T)I.o=K[i];v I.S+=K[i]+(K[i]!=\'\'?c.5.s:\'\');1h=N}v 7(1h){I.S+=K[i]+(K[i]!=\'\'?c.5.s:\'\')}7(!1h){I.p+=K[i]+(K.a>1?c.5.s:\'\')}}}v{I.o=I.g}t I},1J:j(e){F.1K(2.3.1a);d 4=2.3.1t(6);d 11=e.2t||e.2B||-1;7(/13|27|35|36|38|1G|9/.1F(11)&&2.3.h){7(F.w){F.w.2y=N;F.w.2A=n}v{e.1P();e.1E()}7(2.3.b!=k)2.3.h.q(2.3.b||0).12=\'\';v 2.3.b=-1;1Y(11){C 9:C 13:7(2.3.b==-1)2.3.b=0;d b=2.3.h.q(2.3.b||0);d u=b.U(\'1c\');6.g=4.p+u+6.5.s+4.S;2.3.H=4.o;2.3.15(6,4.p.a+u.a+6.5.s.a,4.p.a+u.a+6.5.s.a);2.3.R();7(6.5.Q){1D=1b(b.U(\'1e\'))||0;2.3.1g(6,6.5.B.q(1D),\'Q\')}7(6.18)6.18(n);t 11!=13;D;C 27:6.g=4.p+2.3.H+6.5.s+4.S;6.5.B=k;2.3.R();7(6.18)6.18(n);t n;D;C 35:2.3.b=2.3.h.L()-1;D;C 36:2.3.b=0;D;C 38:2.3.b--;7(2.3.b<0)2.3.b=2.3.h.L()-1;D;C 1G:2.3.b++;7(2.3.b==2.3.h.L())2.3.b=0;D}2.3.1g(6,6.5.B.q(2.3.b||0),\'17\');2.3.h.q(2.3.b||0).12=6.5.Z;7(2.3.h.q(2.3.b||0).18)2.3.h.q(2.3.b||0).18(n);7(6.5.1p){d 1y=2.3.h.q(2.3.b||0).U(\'1c\');6.g=4.p+1y+6.5.s+4.S;7(2.3.H.a!=1y.a)2.3.15(6,4.p.a+2.3.H.a,4.p.a+1y.a)}t n}2.3.2b.1x(6);7(6.5.1A==n){7(4.o!=2.3.H&&4.o.a>=6.5.1u)2.3.1a=F.2w(2.3.2f,6.5.1k);7(2.3.h){2.3.R()}}t N},1g:j(c,o,E){7(c.5[E]){d 16={};1C=o.3i(\'*\');2c(i=0;i<1C.a;i++){16[1C[i].2q]=1C[i].3c.3d}c.5[E].1x(c,[16])}},2e:j(e){7(2.3.h){7(2.3.b!=k)2.3.h.q(2.3.b||0).12=\'\';2.3.h.q(2.3.b||0).12=\'\';2.3.b=1b(6.U(\'1e\'))||0;2.3.h.q(2.3.b||0).12=2.3.4.5.Z}},2g:j(w){F.1K(2.3.1a);w=w||2.w.3o(F.w);w.1P();w.1E();d 4=2.3.1t(2.3.4);d u=6.U(\'1c\');2.3.4.g=4.p+u+2.3.4.5.s+4.S;2.3.H=6.U(\'1c\');2.3.15(2.3.4,4.p.a+u.a+2.3.4.5.s.a,4.p.a+u.a+2.3.4.5.s.a);2.3.R();7(2.3.4.5.Q){1D=1b(6.U(\'1e\'))||0;2.3.1g(2.3.4,2.3.4.5.B.q(1D),\'Q\')}t n},2x:j(e){11=e.2t||e.2B||-1;7(/13|27|35|36|38|1G/.1F(11)&&2.3.h){7(F.w){F.w.2y=N;F.w.2A=n}v{e.1P();e.1E()}t n}},2j:j(8){7(!8.1o||!2.1f){t}7(!2.3.m){7(2.3j.3e){2(\'2m\',1X).2k(\'<J 10="1i:1w;V:2p;3f:3h:3g.3s.3t(3G=0);" 2l="2n" 3F="3E:n;" 3H="0" 3K="3J"></J>\');2.3.J=2(\'#2n\')}2(\'2m\',1X).2k(\'<2s 2l="2u" 10="V: 2p; 1U: 0; 1V: 0; z-2r: 3w; 1i: 1w;"><1W 10="3v: 0;3x: 0; 3B-10: 1w; z-2r: 2K;">&2P;</1W></2s>\');2.3.m=2(\'#2u\');2.3.1m=2(\'1W\',2.3.m)}t 6.1S(j(){7(6.2q!=\'2I\'&&6.U(\'E\')!=\'O\')t;6.5={};6.5.1o=8.1o;6.5.1u=1M.1N(1b(8.1u)||1);6.5.1r=8.1r?8.1r:\'\';6.5.Z=8.Z?8.Z:\'\';6.5.Q=8.Q&&8.Q.1l==1z?8.Q:k;6.5.Y=8.Y&&8.Y.1l==1z?8.Y:k;6.5.X=8.X&&8.X.1l==1z?8.X:k;6.5.17=8.17&&8.17.1l==1z?8.17:k;6.5.20=8.20||n;6.5.1q=8.1q||n;6.5.s=6.5.1q?(8.s||\', \'):\'\';6.5.1p=8.1p?N:n;6.5.1k=1M.1N(1b(8.1k)||2F);7(8.f&&8.f.1l==39){7(!8.f.E||!/1O|14|1s/.1F(8.f.E)){8.f.E=\'14\'}7(8.f.E==\'14\'&&!2.f.14)t;7(8.f.E==\'1s\'&&!2.f.37)t;8.f.M=1M.1N(1b(8.f.M)||34);7(8.f.M>6.5.1k){8.f.M=6.5.1k-2Y}6.5.f=8.f}6.5.B=k;6.5.1A=n;2(6).2o(\'1J\',\'2R\').2v(j(){2.3.4=6;2.3.H=6.g}).2G(2.3.2x).31(2.3.1J).2X(j(){2.3.1a=F.2w(2.3.R,3m)})})}};2.3q.3k=2.3.2j;',62,234,'||jQuery|iAuto|subject|autoCFG|this|if|options||length|selectedItem|field|var||fx|value|items||function|null||helper|false|item|pre|get||multipleSeparator|return|valueToAdd|else|event||||subjectValue|lastSuggestion|case|break|type|window|css|lastValue|fieldData|iframe|chunks|size|duration|true|text|toWrite|onSelect|clear|post|selectionStart|getAttribute|position|selRange|onHide|onShow|selectClass|style|pressedKey|className||slide|selection|data|onHighlight|scrollIntoView|empty|timer|parseInt|rel|start|dir|iUtil|applyOn|finishedPre|display|li|delay|constructor|content|px|source|autofill|multiple|helperClass|blind|getFieldValues|minchars|nr|none|apply|valToAdd|Function|inCache|end|childs|iteration|stopPropagation|test|40|borders|width|autocomplete|clearTimeout|paddings|Math|abs|fade|preventDefault|currentValue|character|each|createTextRange|top|left|ul|document|switch|writeItems|inputWidth|hb|block|height|setSelectionRange|selRange2|cursor||xml|toLowerCase|default|checkCache|for|inputValue|hoverItem|update|clickItem|getSelectionStart|moveStart|build|append|id|body|autocompleteIframe|attr|absolute|tagName|index|div|charCode|autocompleteHelper|focus|setTimeout|protect|cancelBubble|hide|returnValue|keyCode|indexOf|getSize|addClass|1000|keypress|fadeOut|INPUT|collapse|30002|bind|click|getPosition|html|nbsp|show|off|offsetWidth|boxModel|getBorder|getPadding|url|blur|100|moveEnd|BlindDown|keyup|SlideInUp|fadeIn|400|||BlindDirection||Object|createRange|param|firstChild|nodeValue|msie|filter|DXImageTransform|progid|getElementsByTagName|browser|Autocomplete|ajax|200|POST|fix|name|fn|mouseover|Microsoft|Alpha|duplicate|margin|30001|padding|BlindUp|SlideOutUp|selectionEnd|list|100000|split|javascript|src|opacity|frameborder|success|no|scrolling|select'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/iautoscroller.js b/javascript/libs/jquery/min/interface/iautoscroller.js
new file mode 100644
index 0000000..b7dc149
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/iautoscroller.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Autoscroller
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('1.2={j:8,5:8,3:8,6:u,E:k(r,s,6,o){1.2.5=r;1.2.3=s;1.2.6=q(6)||u;1.2.j=A.F(1.2.m,q(o)||B)},m:k(){z(i=0;i<1.2.3.C;i++){a(!1.2.3[i].4){1.2.3[i].4=1.w(1.b.n(1.2.3[i]),1.b.v(1.2.3[i]),1.b.G(1.2.3[i]))}e{1.2.3[i].4.t=1.2.3[i].g;1.2.3[i].4.l=1.2.3[i].f}a(1.2.5.9&&1.2.5.9.I==N){7={x:1.2.5.9.L,y:1.2.5.9.J,c:1.2.5.9.p.c,d:1.2.5.9.p.d}}e{7=1.w(1.b.n(1.2.5),1.b.v(1.2.5))}a(1.2.3[i].4.t>0&&1.2.3[i].4.y+1.2.3[i].4.t>7.y){1.2.3[i].g-=1.2.6}e a(1.2.3[i].4.t<=1.2.3[i].4.h&&1.2.3[i].4.t+1.2.3[i].4.d<7.y+7.d){1.2.3[i].g+=1.2.6}a(1.2.3[i].4.l>0&&1.2.3[i].4.x+1.2.3[i].4.l>7.x){1.2.3[i].f-=1.2.6}e a(1.2.3[i].4.l<=1.2.3[i].4.H&&1.2.3[i].4.l+1.2.3[i].4.c<7.x+7.c){1.2.3[i].f+=1.2.6}}},M:k(){A.D(1.2.j);1.2.5=8;1.2.3=8;z(i K 1.2.3){1.2.3[i].4=8}}};',50,50,'|jQuery|iAutoscroller|elsToScroll|parentData|elToScroll|step|elementData|null|dragCfg|if|iUtil|wb|hb|else|scrollLeft|scrollTop|||timer|function||doScroll|getPositionLite|interval|oC|parseInt|el|els||10|getSizeLite|extend|||for|window|40|length|clearInterval|start|setInterval|getScroll|wh|init|ny|in|nx|stop|true'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/idrag.js b/javascript/libs/jquery/min/interface/idrag.js
new file mode 100644
index 0000000..3332c41
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/idrag.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Draggable
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ */
+
+/**
+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}('8.c={m:W,7:W,2g:z(){B a.1x(z(){9(a.1v){a.5.P.27(\'2L\',8.c.1X);a.5=W;a.1v=d;9(8.13.1o){a.1U="3o"}H{a.v.3n=\'\';a.v.2V=\'\';a.v.2G=\'\'}}})},1X:z(e){9(8.c.7!=W){8.c.1H(e);B d}k 6=a.1z;8(1c).24(\'2u\',8.c.20).24(\'2r\',8.c.1H);6.5.C=8.E.2U(e);6.5.10=6.5.C;6.5.1E=d;6.5.3g=a!=a.1z;8.c.7=6;9(6.5.12&&a!=a.1z){21=8.E.26(6.1p);22=8.E.1K(6);25={x:u(8.q(6,\'K\'))||0,y:u(8.q(6,\'J\'))||0};j=6.5.10.x-21.x-22.1h/2-25.x;g=6.5.10.y-21.y-22.Y/2-25.y;8.1Y.3y(6,[j,g])}B 8.3f||d},2I:z(e){k 6=8.c.7;6.5.1E=G;k 1G=6.v;6.5.1B=8.q(6,\'T\');6.5.1q=8.q(6,\'1N\');9(!6.5.2p)6.5.2p=6.5.1q;6.5.n={x:u(8.q(6,\'K\'))||0,y:u(8.q(6,\'J\'))||0};6.5.1L=0;6.5.1J=0;9(8.13.1o){k 1V=8.E.2f(6,G);6.5.1L=1V.l||0;6.5.1J=1V.t||0}6.5.f=8.1A(8.E.26(6),8.E.1K(6));9(6.5.1q!=\'2A\'&&6.5.1q!=\'2W\'){1G.1N=\'2A\'}8.c.m.2h();k V=6.34(G);8(V).q({T:\'2x\',K:\'16\',J:\'16\'});V.v.2w=\'0\';V.v.2v=\'0\';V.v.2t=\'0\';V.v.2s=\'0\';8.c.m.1y(V);k F=8.c.m.Z(0).v;9(6.5.1Z){F.2d=\'2B\';F.2c=\'2B\'}H{F.2c=6.5.f.Y+\'O\';F.2d=6.5.f.1h+\'O\'}F.T=\'2x\';F.2w=\'16\';F.2v=\'16\';F.2t=\'16\';F.2s=\'16\';8.1A(6.5.f,8.E.1K(V));9(6.5.A){9(6.5.A.K){6.5.n.x+=6.5.C.x-6.5.f.x-6.5.A.K;6.5.f.x=6.5.C.x-6.5.A.K}9(6.5.A.J){6.5.n.y+=6.5.C.y-6.5.f.y-6.5.A.J;6.5.f.y=6.5.C.y-6.5.A.J}9(6.5.A.2b){6.5.n.x+=6.5.C.x-6.5.f.x-6.5.f.Y+6.5.A.2b;6.5.f.x=6.5.C.x-6.5.f.1h+6.5.A.2b}9(6.5.A.28){6.5.n.y+=6.5.C.y-6.5.f.y-6.5.f.Y+6.5.A.28;6.5.f.y=6.5.C.y-6.5.f.Y+6.5.A.28}}6.5.1I=6.5.n.x;6.5.1M=6.5.n.y;9(6.5.1u||6.5.p==\'1w\'){1r=8.E.2f(6.1p,G);6.5.f.x=6.37+(8.13.1o?0:8.13.2n?-1r.l:1r.l);6.5.f.y=6.38+(8.13.1o?0:8.13.2n?-1r.t:1r.t);8(6.1p).1y(8.c.m.Z(0))}9(6.5.p){8.c.2q(6);6.5.S.p=8.c.2j}9(6.5.12){8.1Y.31(6)}F.K=6.5.f.x-6.5.1L+\'O\';F.J=6.5.f.y-6.5.1J+\'O\';F.2d=6.5.f.1h+\'O\';F.2c=6.5.f.Y+\'O\';8.c.7.5.1F=d;9(6.5.1i){6.5.S.X=8.c.2o}9(6.5.17!=d){8.c.m.q(\'17\',6.5.17)}9(6.5.N){8.c.m.q(\'N\',6.5.N);9(1P.1O){8.c.m.q(\'2y\',\'2C(N=\'+6.5.N*2z+\')\')}}9(6.5.1f){8.c.m.3a(6.5.1f);8.c.m.Z(0).3e.v.T=\'M\'}9(6.5.1j)6.5.1j.1m(6,[V,6.5.n.x,6.5.n.y]);9(8.L&&8.L.2a>0){8.L.2Z(6)}9(6.5.19==d){1G.T=\'M\'}B d},2q:z(6){9(6.5.p.I==2P){9(6.5.p==\'1w\'){6.5.s=8.1A({x:0,y:0},8.E.1K(6.1p));k 1t=8.E.2f(6.1p,G);6.5.s.w=6.5.s.1h-1t.l-1t.r;6.5.s.h=6.5.s.Y-1t.t-1t.b}H 9(6.5.p==\'1c\'){k 29=8.E.3x();6.5.s={x:0,y:0,w:29.w,h:29.h}}}H 9(6.5.p.I==2F){6.5.s={x:u(6.5.p[0])||0,y:u(6.5.p[1])||0,w:u(6.5.p[2])||0,h:u(6.5.p[3])||0}}6.5.s.j=6.5.s.x-6.5.f.x;6.5.s.g=6.5.s.y-6.5.f.y},1C:z(7){9(7.5.1u||7.5.p==\'1w\'){8(\'2H\',1c).1y(8.c.m.Z(0))}8.c.m.2h().3v().q(\'N\',1);9(1P.1O){8.c.m.q(\'2y\',\'2C(N=2z)\')}},1H:z(e){8(1c).27(\'2u\',8.c.20).27(\'2r\',8.c.1H);9(8.c.7==W){B}k 7=8.c.7;8.c.7=W;9(7.5.1E==d){B d}9(7.5.15==G){8(7).q(\'1N\',7.5.1q)}k 1G=7.v;9(7.12){8.c.m.q(\'2J\',\'2N\')}9(7.5.1f){8.c.m.3t(7.5.1f)}9(7.5.1T==d){9(7.5.R>0){9(!7.5.D||7.5.D==\'1S\'){k x=2D 8.R(7,{2m:7.5.R},\'K\');x.2i(7.5.n.x,7.5.1l)}9(!7.5.D||7.5.D==\'1Q\'){k y=2D 8.R(7,{2m:7.5.R},\'J\');y.2i(7.5.n.y,7.5.1k)}}H{9(!7.5.D||7.5.D==\'1S\')7.v.K=7.5.1l+\'O\';9(!7.5.D||7.5.D==\'1Q\')7.v.J=7.5.1k+\'O\'}8.c.1C(7);9(7.5.19==d){8(7).q(\'T\',7.5.1B)}}H 9(7.5.R>0){7.5.1F=G;k 1e=d;9(8.L&&8.1D&&7.5.15){1e=8.E.26(8.1D.m.Z(0))}8.c.m.3i({K:1e?1e.x:7.5.f.x,J:1e?1e.y:7.5.f.y},7.5.R,z(){7.5.1F=d;9(7.5.19==d){7.v.T=7.5.1B}8.c.1C(7)})}H{8.c.1C(7);9(7.5.19==d){8(7).q(\'T\',7.5.1B)}}9(8.L&&8.L.2a>0){8.L.3h(7)}9(8.1D&&7.5.15){8.1D.3m(7)}9(7.5.11&&(7.5.1l!=7.5.n.x||7.5.1k!=7.5.n.y)){7.5.11.1m(7,7.5.3r||[0,0,7.5.1l,7.5.1k])}9(7.5.1g)7.5.1g.1m(7);B d},2o:z(x,y,j,g){9(j!=0)j=u((j+(a.5.1i*j/U.2k(j))/2)/a.5.1i)*a.5.1i;9(g!=0)g=u((g+(a.5.1s*g/U.2k(g))/2)/a.5.1s)*a.5.1s;B{j:j,g:g,x:0,y:0}},2j:z(x,y,j,g){j=U.2l(U.2T(j,a.5.s.j),a.5.s.w+a.5.s.j-a.5.f.1h);g=U.2l(U.2T(g,a.5.s.g),a.5.s.h+a.5.s.g-a.5.f.Y);B{j:j,g:g,x:0,y:0}},20:z(e){9(8.c.7==W||8.c.7.5.1F==G){B}k 7=8.c.7;7.5.10=8.E.2U(e);9(7.5.1E==d){2E=U.3l(U.2O(7.5.C.x-7.5.10.x,2)+U.2O(7.5.C.y-7.5.10.y,2));9(2E<7.5.1R){B}H{8.c.2I(e)}}k j=7.5.10.x-7.5.C.x;k g=7.5.10.y-7.5.C.y;3k(k i 3s 7.5.S){k 14=7.5.S[i].1m(7,[7.5.n.x+j,7.5.n.y+g,j,g]);9(14&&14.I==3A){j=i!=\'1d\'?14.j:(14.x-7.5.n.x);g=i!=\'1d\'?14.g:(14.y-7.5.n.y)}}7.5.1I=7.5.f.x+j-7.5.1L;7.5.1M=7.5.f.y+g-7.5.1J;9(7.5.12&&(7.5.1a||7.5.11)){8.1Y.1a(7,7.5.1I,7.5.1M)}9(7.5.18)7.5.18.1m(7,[7.5.n.x+j,7.5.n.y+g]);9(!7.5.D||7.5.D==\'1S\'){7.5.1l=7.5.n.x+j;8.c.m.Z(0).v.K=7.5.1I+\'O\'}9(!7.5.D||7.5.D==\'1Q\'){7.5.1k=7.5.n.y+g;8.c.m.Z(0).v.J=7.5.1M+\'O\'}9(8.L&&8.L.2a>0){8.L.3u(7)}B d},2M:z(o){9(!8.c.m){8(\'2H\',1c).1y(\'<2X 3w="2S"></2X>\');8.c.m=8(\'#2S\');k 1n=8.c.m.Z(0);k Q=1n.v;Q.1N=\'2W\';Q.T=\'M\';Q.2J=\'2N\';Q.30=\'M\';Q.39=\'3c\';9(1P.1O){1n.1U="2R"}H{Q.3d=\'M\';Q.2G=\'M\';Q.2V=\'M\'}}9(!o){o={}}B a.1x(z(){9(a.1v||!8.E)B;9(1P.1O){a.33=z(){B d};a.32=z(){B d}}k 1n=a;k P=o.2Q?8(a).35(o.2Q):8(a);9(8.13.1o){P.1x(z(){a.1U="2R"})}H{P.q(\'-36-1d-1W\',\'M\');P.q(\'1d-1W\',\'M\');P.q(\'-2Y-1d-1W\',\'M\')}a.5={P:P,1T:o.1T?G:d,19:o.19?G:d,15:o.15?o.15:d,12:o.12?o.12:d,1u:o.1u?o.1u:d,17:o.17?u(o.17)||0:d,N:o.N?3B(o.N):d,R:u(o.R)||W,23:o.23?o.23:d,S:{},C:{},1j:o.1j&&o.1j.I==1b?o.1j:d,1g:o.1g&&o.1g.I==1b?o.1g:d,11:o.11&&o.11.I==1b?o.11:d,D:/1Q|1S/.3j(o.D)?o.D:d,1R:o.1R?u(o.1R)||0:0,A:o.A?o.A:d,1Z:o.1Z?G:d,1f:o.1f||d};9(o.S&&o.S.I==1b)a.5.S.1d=o.S;9(o.18&&o.18.I==1b)a.5.18=o.18;9(o.p&&((o.p.I==2P&&(o.p==\'1w\'||o.p==\'1c\'))||(o.p.I==2F&&o.p.2K==4))){a.5.p=o.p}9(o.2e){a.5.2e=o.2e}9(o.X){9(3C o.X==\'3q\'){a.5.1i=u(o.X)||1;a.5.1s=u(o.X)||1}H 9(o.X.2K==2){a.5.1i=u(o.X[0])||1;a.5.1s=u(o.X[1])||1}}9(o.1a&&o.1a.I==1b){a.5.1a=o.1a}a.1v=G;P.1x(z(){a.1z=1n});P.24(\'2L\',8.c.1X)})}};8.3z.1A({3p:8.c.2g,3b:8.c.2M});',62,225,'|||||dragCfg|elm|dragged|jQuery|if|this||iDrag|false||oC|dy|||dx|var||helper|oR||containment|css||cont||parseInt|style||||function|cursorAt|return|pointer|axis|iUtil|dhs|true|else|constructor|top|left|iDrop|none|opacity|px|dhe|els|fx|onDragModifier|display|Math|clonedEl|null|grid|hb|get|currentPointer|onChange|si|browser|newCoords|so|0px|zIndex|onDrag|ghosting|onSlide|Function|document|user|dh|frameClass|onStop|wb|gx|onStart|nRy|nRx|apply|el|msie|parentNode|oP|parentBorders|gy|contBorders|insideParent|isDraggable|parent|each|append|dragElem|extend|oD|hidehelper|iSort|init|prot|dEs|dragstop|nx|diffY|getSize|diffX|ny|position|ActiveXObject|window|vertically|snapDistance|horizontally|revert|unselectable|oldBorder|select|draginit|iSlider|autoSize|dragmove|parentPos|sliderSize|hpc|bind|sliderPos|getPosition|unbind|bottom|clnt|count|right|height|width|fractions|getBorder|destroy|empty|custom|fitToContainer|abs|min|duration|opera|snapToGrid|initialPosition|getContainment|mouseup|marginLeft|marginBottom|mousemove|marginRight|marginTop|block|filter|100|relative|auto|alpha|new|distance|Array|userSelect|body|dragstart|cursor|length|mousedown|build|move|pow|String|handle|on|dragHelper|max|getPointer|KhtmlUserSelect|absolute|div|khtml|highlight|listStyle|modifyContainer|ondragstart|onselectstart|cloneNode|find|moz|offsetLeft|offsetTop|overflow|addClass|Draggable|hidden|mozUserSelect|firstChild|selectKeyHelper|fromHandler|checkdrop|animate|test|for|sqrt|check|MozUserSelect|off|DraggableDestroy|number|lastSi|in|removeClass|checkhover|hide|id|getClient|dragmoveBy|fn|Object|parseFloat|typeof'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/idrop.js b/javascript/libs/jquery/min/interface/idrop.js
new file mode 100644
index 0000000..f424507
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/idrop.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Droppables
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('1.4={1o:l(u,r,G,F){v u<=1.6.8.9.X&&(u+G)>=(1.6.8.9.X+1.6.8.9.S.w)&&r<=1.6.8.9.Q&&(r+F)>=(1.6.8.9.Q+1.6.8.9.S.h)?k:7},1r:l(u,r,G,F){v!(u>(1.6.8.9.X+1.6.8.9.S.w)||(u+G)<1.6.8.9.X||r>(1.6.8.9.Q+1.6.8.9.S.h)||(r+F)<1.6.8.9.Q)?k:7},1q:l(u,r,G,F){v u<1.6.8.9.O.x&&(u+G)>1.6.8.9.O.x&&r<1.6.8.9.O.y&&(r+F)>1.6.8.9.O.y?k:7},C:7,g:{},1u:0,j:{},1E:l(D){5(1.6.8==E){v}n i;1.4.g={};n 15=7;T(i R 1.4.j){5(1.4.j[i]!=E){n 2=1.4.j[i].q(0);5(1(1.6.8).1d(\'.\'+2.3.a)){5(2.3.m==7){2.3.p=1.18(1.K.1c(2),1.K.1b(2));2.3.m=k}5(2.3.A){1.4.j[i].13(2.3.A)}1.4.g[i]=1.4.j[i];5(1.c&&2.3.s&&1.6.8.9.W){2.3.1e=1(\'.\'+2.3.a,2);D.I.H=\'16\';1.c.1f(2);2.3.1k=1.c.1l(1.12(2,\'z\')).1t;D.I.H=D.9.1h;15=k}5(2.3.V){2.3.V.Z(1.4.j[i].q(0),[1.6.8])}}}}5(15){1.c.1F()}},1w:l(){1.4.g={};T(i R 1.4.j){5(1.4.j[i]!=E){n 2=1.4.j[i].q(0);5(1(1.6.8).1d(\'.\'+2.3.a)){2.3.p=1.18(1.K.1c(2),1.K.1b(2));5(2.3.A){1.4.j[i].13(2.3.A)}1.4.g[i]=1.4.j[i];5(1.c&&2.3.s&&1.6.8.9.W){2.3.1e=1(\'.\'+2.3.a,2);D.I.H=\'16\';1.c.1f(2);D.I.H=D.9.1h}}}}},1a:l(e){5(1.6.8==E){v}1.4.C=7;n i;n 14=7;n 1g=0;T(i R 1.4.g){n 2=1.4.g[i].q(0);5(1.4.C==7&&1.4[2.3.t](2.3.p.x,2.3.p.y,2.3.p.1A,2.3.p.1y)){5(2.3.B&&2.3.h==7){1.4.g[i].13(2.3.B)}5(2.3.h==7&&2.3.M){14=k}2.3.h=k;1.4.C=2;5(1.c&&2.3.s&&1.6.8.9.W){1.c.P.q(0).1J=2.3.1m;1.c.1a(2)}1g++}1U 5(2.3.h==k){5(2.3.N){2.3.N.Z(2,[e,1.6.P.q(0).1i,2.3.J])}5(2.3.B){1.4.g[i].11(2.3.B)}2.3.h=7}}5(1.c&&!1.4.C&&1.6.8.W){1.c.P.q(0).I.H=\'16\'}5(14){1.4.C.3.M.Z(1.4.C,[e,1.6.P.q(0).1i])}},1N:l(e){n i;T(i R 1.4.g){n 2=1.4.g[i].q(0);5(2.3.A){1.4.g[i].11(2.3.A)}5(2.3.B){1.4.g[i].11(2.3.B)}5(2.3.s){1.c.19[1.c.19.1Q]=i}5(2.3.L&&2.3.h==k){2.3.h=7;2.3.L.Z(2,[e,2.3.J])}2.3.m=7;2.3.h=7}1.4.g={}},1v:l(){v b.1j(l(){5(b.U){5(b.3.s){z=1.12(b,\'z\');1.c.1p[z]=E;1(\'.\'+b.3.a,b).1P()}1.4.j[\'d\'+b.17]=E;b.U=7;b.f=E}})},1n:l(o){v b.1j(l(){5(b.U==k||!o.1s||!1.K||!1.6){v}b.3={a:o.1s,A:o.1R||7,B:o.1O||7,1m:o.1K||7,L:o.1L||o.L||7,M:o.M||o.1T||7,N:o.N||o.1S||7,V:o.V||7,t:o.Y&&(o.Y==\'1o\'||o.Y==\'1r\')?o.Y:\'1q\',J:o.J?o.J:7,m:7,h:7};5(o.1D==k&&1.c){z=1.12(b,\'z\');1.c.1p[z]=b.3.a;b.3.s=k;5(o.10){b.3.10=o.10;b.3.1k=1.c.1l(z).1t}}b.U=k;b.17=1H(1G.1I()*1B);1.4.j[\'d\'+b.17]=1(b);1.4.1u++})}};1.1z.18({1x:1.4.1v,1C:1.4.1n});1.1M=1.4.1w;',62,119,'|jQuery|iEL|dropCfg|iDrop|if|iDrag|false|dragged|dragCfg||this|iSort||||highlighted|||zones|true|function||var|||get|zoney|||zonex|return||||id|ac|hc|overzone|elm|null|zoneh|zonew|display|style|fx|iUtil|onDrop|onHover|onOut|currentPointer|helper|ny|in|oC|for|isDroppable|onActivate|so|nx|tolerance|apply|onChange|removeClass|attr|addClass|applyOnHover|oneIsSortable|none|idsa|extend|changed|checkhover|getSizeLite|getPositionLite|is|el|measure|hlt|oD|firstChild|each|os|serialize|shc|build|fit|collected|pointer|intersect|accept|hash|count|destroy|remeasure|DroppableDestroy|hb|fn|wb|10000|Droppable|sortable|highlight|start|Math|parseInt|random|className|helperclass|ondrop|recallDroppables|checkdrop|hoverclass|DraggableDestroy|length|activeclass|onout|onhover|else'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/iexpander.js b/javascript/libs/jquery/min/interface/iexpander.js
new file mode 100644
index 0000000..f948951
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/iexpander.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Expander
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('3.6={9:y,d:k(){a=4.T;7(!a)j;h={P:3(4).8(\'P\')||\'\',I:3(4).8(\'I\')||\'\',z:3(4).8(\'z\')||\'\',x:3(4).8(\'x\')||\'\',M:3(4).8(\'M\')||\'\',s:3(4).8(\'s\')||\'\',D:3(4).8(\'D\')||\'\',N:3(4).8(\'N\')||\'\'};3.6.9.8(h);c=3.6.A(a);c=c.K(H G("\\\\n","g"),"<V />");3.6.9.c(\'U\');l=3.6.9.o(0).O;3.6.9.c(c);e=3.6.9.o(0).O+l;7(4.b.5&&e>4.b.5[0]){e=4.b.5[0]}4.h.e=e+\'B\';7(4.p==\'C\'){f=3.6.9.o(0).W+l;7(4.b.5&&f>4.b.5[1]){f=4.b.5[1]}4.h.f=f+\'B\'}},A:k(a){m={\'&\':\'&X;\',\'<\':\'&Y;\',\'>\':\'&Z;\',\'"\':\'&S;\'};Q(i R m){a=a.K(H G(i,\'g\'),m[i])}j a},w:k(5){7(3.6.9==y){3(\'1h\',1g).1f(\'<r 1d="t" h="1e: 1j; 10: 0; 1m: 0; 1l: 1k;"></r>\');3.6.9=3(\'#t\')}j 4.1i(k(){7(/C|L/.J(4.p)){7(4.p==\'L\'){F=4.1b(\'1c\');7(!/a|14/.J(F)){j}}7(5&&(5.q==E||(5.q==13&&5.12==2))){7(5.q==E)5=[5,5];11{5[0]=u(5[0])||v;5[1]=u(5[1])||v}4.b={5:5}}3(4).15(3.6.d).16(3.6.d).1a(3.6.d);3.6.d.19(4)}})}};3.18.17=3.6.w;',62,85,'|||jQuery|this|limit|iExpander|if|css|helper|text|Expander|html|expand|width|height||style||return|function|spacer|entities||get|tagName|constructor|div|fontVariant|expanderHelper|parseInt|400|build|fontStyle|null|fontWeight|htmlEntities|px|TEXTAREA|letterSpacing|Number|elType|RegExp|new|fontSize|test|replace|INPUT|fontStretch|wordSpacing|offsetWidth|fontFamily|for|in|quot|value|pW|br|offsetHeight|amp|lt|gt|top|else|length|Array|password|blur|keyup|Autoexpand|fn|apply|keypress|getAttribute|type|id|position|append|document|body|each|absolute|hidden|visibility|left'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifx.js b/javascript/libs/jquery/min/interface/ifx.js
new file mode 100644
index 0000000..3b9d73e
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifx.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('4.2V=q(e){7(/^3k$|^3h$|^3i$|^3y$|^3A$|^3v$|^37$|^38$|^3t$|^4n$|^4a$|^4b$|^48$|^46$|^3D$|^44$|^4d$/i.1I(e.2d))B 1b;u B 1D};4.f.4k=q(e,V){6 c=e.4l;6 Y=c.1f;Y.L=V.L;Y.1E=V.R.t;Y.1K=V.R.l;Y.1N=V.R.b;Y.1O=V.R.r;Y.K=V.K+\'S\';Y.J=V.J+\'S\';e.21.2B(c,e);e.21.4m(e)};4.f.4i=q(e){7(!4.2V(e))B 1b;6 t=4(e);6 H=e.1f;6 1Y=1b;7(t.N(\'1S\')==\'15\'){2E=t.N(\'1X\');t.N(\'1X\',\'1R\').1y();1Y=1D}6 v={};v.L=t.N(\'L\');v.26=4.2W.3T(e);v.R=4.2W.43(e);6 24=e.2k?e.2k.2l:t.N(\'3S\');v.K=D(t.N(\'K\'))||0;v.J=D(t.N(\'J\'))||0;6 2m=\'3R\'+D(27.3Q()*2R);6 14=1v.3U(/^3V$|^3Y$|^3X$|^3W$|^3P$|^3O$|^2f$|^3H$|^3G$|^3F$|^3E$|^3I$|^3J$|^3N$/i.1I(e.2d)?\'3L\':e.2d);4.1r(14,\'3K\',2m);6 3Z=4(14).40(\'4h\');6 E=14.1f;6 K=0;6 J=0;7(v.L==\'28\'||v.L==\'1Z\'){K=v.K;J=v.J}E.K=K+\'S\';E.J=J+\'S\';E.L=v.L!=\'28\'&&v.L!=\'1Z\'?\'28\':v.L;E.2F=v.26.4g+\'S\';E.2G=v.26.4f+\'S\';E.1E=v.R.t;E.1O=v.R.r;E.1N=v.R.b;E.1K=v.R.l;E.1W=\'1R\';7(4.2i.2A){E.2l=24}u{E.4j=24}7(4.2i=="2A"){H.4c="45(P="+0.2z*2s+")"}H.P=0.2z;e.21.2B(14,e);14.41(e);H.1E=\'1h\';H.1O=\'1h\';H.1N=\'1h\';H.1K=\'1h\';H.L=\'1Z\';H.49=\'15\';H.K=\'1h\';H.J=\'1h\';7(1Y){t.1q();H.1X=2E}B{v:v,36:4(14)}};4.f.1p={35:[0,d,d],39:[2w,d,d],3a:[2D,2D,3d],34:[0,0,0],3c:[0,0,d],3b:[2y,42,42],3e:[0,d,d],33:[0,0,1l],31:[0,1l,1l],32:[2e,2e,2e],3C:[0,2s,0],3u:[3f,3s,2q],3w:[1l,0,1l],3x:[3B,2q,47],3z:[d,2u,0],3r:[3q,50,3j],3g:[1l,0,0],3l:[3p,3o,3n],3m:[3M,0,1z],4s:[d,0,d],5q:[d,5p,0],5o:[0,12,0],5n:[5r,0,5s],5v:[2w,2t,2u],5u:[5m,5l,2t],5e:[2x,d,d],5c:[2r,5b,2r],5f:[1z,1z,1z],4o:[d,5j,5i],5x:[d,d,2x],5w:[0,d,0],5B:[d,0,d],5N:[12,0,0],5L:[0,0,12],5S:[12,12,0],5M:[d,2y,0],5O:[d,1C,5R],5Q:[12,0,12],5K:[d,0,0],5I:[1C,1C,1C],5A:[d,d,d],5y:[d,d,0]};4.f.16=q(M,2p){7(4.f.1p[M])B{r:4.f.1p[M][0],g:4.f.1p[M][1],b:4.f.1p[M][2]};u 7(x=/^1a\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)$/.1B(M))B{r:D(x[1]),g:D(x[2]),b:D(x[3])};u 7(x=/1a\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)$/.1B(M))B{r:I(x[1])*2.55,g:I(x[2])*2.55,b:I(x[3])*2.55};u 7(x=/^#([a-1k-1j-9])([a-1k-1j-9])([a-1k-1j-9])$/.1B(M))B{r:D("1i"+x[1]+x[1]),g:D("1i"+x[2]+x[2]),b:D("1i"+x[3]+x[3])};u 7(x=/^#([a-1k-1j-9]{2})([a-1k-1j-9]{2})([a-1k-1j-9]{2})$/.1B(M))B{r:D("1i"+x[1]),g:D("1i"+x[2]),b:D("1i"+x[3])};u B 2p==1D?1b:{r:d,g:d,b:d}};4.f.2J={4C:1,4B:1,4F:1,4G:1,4J:1,4I:1,2F:1,J:1,4H:1,4A:1,1N:1,1K:1,1O:1,1E:1,4p:1,4t:1,4u:1,4y:1,P:1,4x:1,4w:1,4v:1,4K:1,4L:1,52:1,51:1,4Z:1,K:1,2G:1,1P:1};4.f.2L={4Y:1,53:1,54:1,58:1,57:1,M:1,4X:1};4.f.1t=[\'4W\',\'4P\',\'4O\',\'4N\'];4.f.22={\'23\':[\'1u\',\'2Q\'],\'1F\':[\'1u\',\'2h\'],\'1A\':[\'1A\',\'\'],\'1G\':[\'1G\',\'\']};4.4M.2j({4Q:q(W,1m,C,1M){B A.1s(q(){6 1H=4.1m(1m,C,1M);6 e=1o 4.30(A,1H,W)})},2g:q(1m,1M){B A.1s(q(){6 1H=4.1m(1m,1M);6 e=1o 4.2g(A,1H)})},4R:q(O){B A.2o(q(){7(A.X)4.25(A,O)})},4V:q(O){B A.2o(q(){7(A.X)4.25(A,O);7(A.1s&&A.1s[\'f\'])A.1s.f=[]})}});4.2j({2g:q(8,k){6 z=A,2Z;z.O=q(){7(4.2X(k.1U))k.1U.2H(8)};z.1n=2n(q(){z.O()},k.T);8.X=z},C:{2M:q(p,n,2S,2U,T){B((-27.4T(p*27.4S)/2)+0.5)*2U+2S}},30:q(8,k,W){6 z=A,2Z;6 y=8.1f;6 2K=4.N(8,"1W");6 1c=4.N(8,"1S");6 h={};z.1V=(1o 2T()).2Y();k.C=k.C&&4.C[k.C]?k.C:\'2M\';z.1T=q(o,F){7(4.f.2J[o]){7(F==\'1y\'||F==\'1q\'||F==\'2I\'){7(!8.18)8.18={};6 r=I(4.10(8,o));8.18[o]=r&&r>-2R?r:(I(4.N(8,o))||0);F=F==\'2I\'?(1c==\'15\'?\'1y\':\'1q\'):F;k[F]=1D;h[o]=F==\'1y\'?[0,8.18[o]]:[8.18[o],0];7(o!=\'P\')y[o]=h[o][0]+(o!=\'1P\'&&o!=\'2b\'?\'S\':\'\');u 4.1r(y,"P",h[o][0])}u{h[o]=[I(4.10(8,o)),I(F)||0]}}u 7(4.f.2L[o])h[o]=[4.f.16(4.10(8,o)),4.f.16(F)];u 7(/^1A$|1G$|1u$|1F$|23$/i.1I(o)){6 m=F.11(/\\s+/g,\' \').11(/1a\\s*\\(\\s*/g,\'1a(\').11(/\\s*,\\s*/g,\',\').11(/\\s*\\)/g,\')\').4E(/([^\\s]+)/g);4U(o){1x\'1A\':1x\'1G\':1x\'23\':1x\'1F\':m[3]=m[3]||m[1]||m[0];m[2]=m[2]||m[0];m[1]=m[1]||m[0];G(6 i=0;i<4.f.1t.17;i++){6 U=4.f.22[o][0]+4.f.1t[i]+4.f.22[o][1];h[U]=o==\'1F\'?[4.f.16(4.10(8,U)),4.f.16(m[i])]:[I(4.10(8,U)),I(m[i])]}2N;1x\'1u\':G(6 i=0;i<m.17;i++){6 2a=I(m[i]);6 1J=!56(2a)?\'2Q\':(!/4q|15|1R|4r|4z|5a|5h|5E|5G|5H|5D/i.1I(m[i])?\'2h\':1b);7(1J){G(6 j=0;j<4.f.1t.17;j++){U=\'1u\'+4.f.1t[j]+1J;h[U]=1J==\'2h\'?[4.f.16(4.10(8,U)),4.f.16(m[i])]:[I(4.10(8,U)),2a]}}u{y[\'5C\']=m[i]}}2N}}u{y[o]=F}B 1b};G(p 1g W){7(p==\'1f\'){6 Q=4.20(W[p]);G(1e 1g Q){A.1T(1e,Q[1e])}}u 7(p==\'5g\'){7(1v.1L)G(6 i=0;i<1v.1L.17;i++){6 19=1v.1L[i].19||1v.1L[i].5k||1Q;7(19){G(6 j=0;j<19.17;j++){7(19[j].5t==\'.\'+W[p]){6 1d=1o 5d(\'\\.\'+W[p]+\' {\');6 Z=19[j].1f.5z;6 Q=4.20(Z.11(1d,\'\').11(/}/g,\'\'));G(1e 1g Q){A.1T(1e,Q[1e])}}}}}}u{A.1T(p,W[p])}}y.1S=1c==\'15\'?\'2P\':1c;y.1W=\'1R\';z.O=q(){6 t=(1o 2T()).2Y();7(t>k.T+z.1V){2C(z.1n);z.1n=1Q;G(p 1g h){7(p=="P")4.1r(y,"P",h[p][1]);u 7(29 h[p][1]==\'2f\')y[p]=\'1a(\'+h[p][1].r+\',\'+h[p][1].g+\',\'+h[p][1].b+\')\';u y[p]=h[p][1]+(p!=\'1P\'&&p!=\'2b\'?\'S\':\'\')}7(k.1q||k.1y)G(6 p 1g 8.18)7(p=="P")4.1r(y,p,8.18[p]);u y[p]="";y.1S=k.1q?\'15\':(1c!=\'15\'?1c:\'2P\');y.1W=2K;8.X=1Q;7(4.2X(k.1U))k.1U.2H(8)}u{6 n=t-A.1V;6 1w=n/k.T;G(p 1g h){7(29 h[p][1]==\'2f\'){y[p]=\'1a(\'+D(4.C[k.C](1w,n,h[p][0].r,(h[p][1].r-h[p][0].r),k.T))+\',\'+D(4.C[k.C](1w,n,h[p][0].g,(h[p][1].g-h[p][0].g),k.T))+\',\'+D(4.C[k.C](1w,n,h[p][0].b,(h[p][1].b-h[p][0].b),k.T))+\')\'}u{6 2c=4.C[k.C](1w,n,h[p][0],(h[p][1]-h[p][0]),k.T);7(p=="P")4.1r(y,"P",2c);u y[p]=2c+(p!=\'1P\'&&p!=\'2b\'?\'S\':\'\')}}}};z.1n=2n(q(){z.O()},13);8.X=z},25:q(8,O){7(O)8.X.1V-=4D;u{59.2C(8.X.1n);8.X=1Q;4.5F(8,"f")}}});4.20=q(Z){6 Q={};7(29 Z==\'5J\'){Z=Z.5P().2v(\';\');G(6 i=0;i<Z.17;i++){1d=Z[i].2v(\':\');7(1d.17==2){Q[4.2O(1d[0].11(/\\-(\\w)/g,q(m,c){B c.4e()}))]=4.2O(1d[1])}}}B Q};',62,365,'||||jQuery||var|if|elem|||||255||fx||props|||options||||tp||function||||else|oldStyle||result|||this|return|easing|parseInt|wrs|vp|for|es|parseFloat|left|top|position|color|css|step|opacity|newStyles|margins|px|duration|nmp|old|prop|animationHandler|cs|styles|curCSS|replace|128||wr|none|parseColor|length|orig|cssRules|rgb|false|oldDisplay|rule|np|style|in|0px|0x|F0|fA|139|speed|timer|new|namedColors|hide|attr|queue|cssSides|border|document|pr|case|show|211|margin|exec|192|true|marginTop|borderColor|padding|opt|test|sideEnd|marginLeft|styleSheets|callback|marginBottom|marginRight|zIndex|null|hidden|display|getValues|complete|startTime|overflow|visibility|restoreStyle|absolute|parseStyle|parentNode|cssSidesEnd|borderWidth|oldFloat|stopAnim|sizes|Math|relative|typeof|floatVal|fontWeight|pValue|nodeName|169|object|pause|Color|browser|extend|currentStyle|styleFloat|wid|setInterval|each|notColor|107|144|100|230|140|split|240|224|165|999|msie|insertBefore|clearInterval|245|oldVisibility|height|width|apply|toggle|cssProps|oldOverflow|colorCssProps|linear|break|trim|block|Width|10000|firstNum|Date|delta|fxCheckTag|iUtil|isFunction|getTime|values|fxe|darkcyan|darkgrey|darkblue|black|aqua|wrapper|col|colgroup|azure|beige|brown|blue|220|cyan|189|darkred|td|tbody|204|tr|darksalmon|darkviolet|122|150|233|153|darkorchid|183|th|darkkhaki|tfoot|darkmagenta|darkolivegreen|caption|darkorange|thead|85|darkgreen|option|table|form|button|iframe|ul|dl|id|div|148|ol|textarea|select|random|w_|float|getSize|createElement|img|hr|input|br|wrapEl|addClass|appendChild||getMargins|optgroup|alpha|frameset||frame|listStyle|header|script|filter|meta|toUpperCase|wb|hb|fxWrapper|buildWrapper|cssFloat|destroyWrapper|firstChild|removeChild|body|lightpink|maxHeight|transparent|dotted|fuchsia|maxWidth|minHeight|paddingBottom|outlineWidth|outlineOffset|minWidth|dashed|lineHeight|borderLeftWidth|borderBottomWidth|100000000|match|borderRightWidth|borderTopWidth|letterSpacing|fontSize|bottom|paddingLeft|paddingRight|fn|Left|Bottom|Right|animate|stop|PI|cos|switch|stopAll|Top|outlineColor|backgroundColor|textIndent||right|paddingTop|borderBottomColor|borderLeftColor||isNaN|borderTopColor|borderRightColor|window|solid|238|lightgreen|RegExp|lightcyan|lightgrey|className|double|193|182|rules|216|173|indigo|green|215|gold|75|130|selectorText|lightblue|khaki|lime|lightyellow|yellow|cssText|white|magenta|borderStyle|outset|groove|dequeue|ridge|inset|silver|string|red|navy|orange|maroon|pink|toLowerCase|purple|203|olive'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxblind.js b/javascript/libs/jquery/min/interface/ifxblind.js
new file mode 100644
index 0000000..b50315a
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxblind.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - blind
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('2.R.Q({S:6(3,4,5){h 8.i(\'c\',6(){9 2.1.g(8,3,4,\'B\',5)})},T:6(3,4,5){h 8.i(\'c\',6(){9 2.1.g(8,3,4,\'q\',5)})},U:6(3,4,5){h 8.i(\'c\',6(){9 2.1.g(8,3,4,\'E\',5)})},V:6(3,4,5){h 8.i(\'c\',6(){9 2.1.g(8,3,4,\'w\',5)})},P:6(3,4,5){h 8.i(\'c\',6(){9 2.1.g(8,3,4,\'t\',5)})},L:6(3,4,5){h 8.i(\'c\',6(){9 2.1.g(8,3,4,\'D\',5)})}});2.1.g=6(e,3,4,a,5){k(!2.M(e)){2.H(e,\'c\');h O}N z=8;z.7=2(e);z.W=2.16.14(e);z.5=F 4==\'17\'?4:5||C;k(!e.r)e.r=z.7.j(\'o\');k(a==\'E\'){a=z.7.j(\'o\')==\'v\'?\'q\':\'B\'}G k(a==\'D\'){a=z.7.j(\'o\')==\'v\'?\'t\':\'w\'}z.7.x();z.3=3;z.4=F 4==\'6\'?4:C;z.1=2.1.Y(e);z.a=a;z.m=6(){k(z.4&&z.4.Z==10){z.4.15(z.7.b(0))}k(z.a==\'q\'||z.a==\'t\'){z.7.j(\'o\',z.7.b(0).r==\'v\'?\'11\':z.7.b(0).r)}G{z.7.X()}2.1.12(z.1.f.b(0),z.1.l);2.H(z.7.b(0),\'c\')};13(z.a){u\'B\':d=9 2.1(z.1.f.b(0),2.3(z.3,z.5,z.m),\'A\');d.s(z.1.l.p.I,0);n;u\'q\':z.1.f.j(\'A\',\'J\');z.7.x();d=9 2.1(z.1.f.b(0),2.3(z.3,z.5,z.m),\'A\');d.s(0,z.1.l.p.I);n;u\'w\':d=9 2.1(z.1.f.b(0),2.3(z.3,z.5,z.m),\'y\');d.s(z.1.l.p.K,0);n;u\'t\':z.1.f.j(\'y\',\'J\');z.7.x();d=9 2.1(z.1.f.b(0),2.3(z.3,z.5,z.m),\'y\');d.s(0,z.1.l.p.K);n}};',62,70,'|fx|jQuery|speed|callback|easing|function|el|this|new|direction|get|interfaceFX|fxh||wrapper|BlindDirection|return|queue|css|if|oldStyle|complete|break|display|sizes|down|ifxFirstDisplay|custom|right|case|none|left|show|width||height|up|null|togglehor|togglever|typeof|else|dequeue|hb|1px|wb|BlindToggleHorizontally|fxCheckTag|var|false|BlindRight|extend|fn|BlindUp|BlindDown|BlindToggleVertically|BlindLeft|size|hide|buildWrapper|constructor|Function|block|destroyWrapper|switch|getSize|apply|iUtil|string'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxbounce.js b/javascript/libs/jquery/min/interface/ifxbounce.js
new file mode 100644
index 0000000..fc88a69
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxbounce.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - bounce
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('8.C.D=c(7,9){p d.E(\'n\',c(){f(!8.F(d)){8.u(d,\'n\');p B}r e=k 8.h.x(d,7,9);e.l()})};8.h.x=c(e,7,9){r z=d;z.4=8(e);z.4.y();z.9=9;z.7=g(7)||A;z.3={};z.3.a=z.4.b(\'a\');z.3.6=g(z.4.b(\'6\'))||0;z.3.j=g(z.4.b(\'j\'))||0;f(z.3.a!=\'v\'&&z.3.a!=\'G\'){z.4.b(\'a\',\'v\')}z.t=5;z.m=1;z.l=c(){z.m++;z.e=k 8.h(z.4.i(0),{w:H,s:c(){z.e=k 8.h(z.4.i(0),{w:I,s:c(){z.7=g(z.7/2);f(z.m<=z.t)z.l();M{z.4.b(\'a\',z.3.a).b(\'6\',z.3.6+\'o\').b(\'j\',z.3.j+\'o\');8.u(z.4.i(0),\'n\');f(z.9&&z.9.K==J){z.9.L(z.4.i(0))}}}},\'6\');z.e.q(z.3.6-z.7,z.3.6)}},\'6\');z.e.q(z.3.6,z.3.6-z.7)}};',49,49,'|||oldStyle|el||top|hight|jQuery|callback|position|css|function|this||if|parseInt|fx|get|left|new|bounce|cnt|interfaceFX|px|return|custom|var|complete|times|dequeue|relative|duration|iBounce|show||40|false|fn|Bounce|queue|fxCheckTag|absolute|120|80|Function|constructor|apply|else'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxdrop.js b/javascript/libs/jquery/min/interface/ifxdrop.js
new file mode 100644
index 0000000..8c482da
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxdrop.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - drop
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('5.Q.1a({12:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'A\',\'m\',4)})},13:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'A\',\'n\',4)})},14:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'A\',\'r\',4)})},V:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'w\',\'m\',4)})},U:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'w\',\'n\',4)})},W:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'w\',\'r\',4)})},X:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'h\',\'m\',4)})},T:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'h\',\'n\',4)})},Z:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'h\',\'r\',4)})},S:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'y\',\'m\',4)})},P:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'y\',\'n\',4)})},R:6(2,3,4){d 7.f(\'b\',6(){a 5.9.c(7,2,3,\'y\',\'r\',4)})}});5.9.c=6(e,2,3,H,l,4){o(!5.1c(e)){5.L(e,\'b\');d 18}19 z=7;z.8=5(e);z.4=O 3==\'1b\'?3:4||J;z.g={};z.g.s=z.8.i(\'s\');z.g.p=z.8.i(\'p\');z.g.h=z.8.i(\'h\');o(!e.B)e.B=z.8.i(\'D\');o(l==\'r\'){l=z.8.i(\'D\')==\'E\'?\'n\':\'m\'}z.8.10();o(z.g.s!=\'I\'&&z.g.s!=\'17\'){z.8.i(\'s\',\'I\')}z.l=l;3=O 3==\'6\'?3:J;q=1;16(H){u\'w\':z.e=a 5.9(z.8.k(0),5.2(2-15,z.4,3),\'p\');z.j=t(z.g.p)||0;z.v=z.N;q=-1;C;u\'A\':z.e=a 5.9(z.8.k(0),5.2(2-15,z.4,3),\'p\');z.j=t(z.g.p)||0;z.v=z.N;C;u\'y\':z.e=a 5.9(z.8.k(0),5.2(2-15,z.4,3),\'h\');z.j=t(z.g.h)||0;z.v=z.K;C;u\'h\':z.e=a 5.9(z.8.k(0),5.2(2-15,z.4,3),\'h\');z.j=t(z.g.h)||0;z.v=z.K;q=-1;C}z.F=a 5.9(z.8.k(0),5.2(2,z.4,6(){z.8.i(z.g);o(z.l==\'m\'){z.8.i(\'D\',\'E\')}M z.8.i(\'D\',z.8.k(0).B==\'E\'?\'11\':z.8.k(0).B);5.L(z.8.k(0),\'b\')}),\'Y\');o(l==\'n\'){z.e.x(z.j+G*q,z.j);z.F.x(0,1)}M{z.e.x(z.j,z.j+G*q);z.F.x(1,0)}};',62,75,'||speed|callback|easing|jQuery|function|this|el|fx|new|interfaceFX|DropOutDirectiont|return||queue|oldStyle|left|css|point|get|type|out|in|if|top|directionIncrement|toggle|position|parseFloat|case|unit|up|custom|right||down|ifxFirstDisplay|break|display|none|e2|100|direction|relative|null|leftUnit|dequeue|else|topUnit|typeof|DropInRight|fn|DropToggleRight|DropOutRight|DropInLeft|DropInUp|DropOutUp|DropToggleUp|DropOutLeft|opacity|DropToggleLeft|show|block|DropOutDown|DropInDown|DropToggleDown||switch|absolute|false|var|extend|string|fxCheckTag'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxfold.js b/javascript/libs/jquery/min/interface/ifxfold.js
new file mode 100644
index 0000000..226e84d
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxfold.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - fold
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('2.J.K({L:7(3,4,5,6){n d.o(\'g\',7(){a 2.1.j(d,3,4,5,\'w\',6)})},I:7(3,4,5,6){n d.o(\'g\',7(){a 2.1.j(d,3,4,5,\'k\',6)})},H:7(3,4,5,6){n d.o(\'g\',7(){a 2.1.j(d,3,4,5,\'v\',6)})}});2.1.j=7(e,3,4,5,9,6){h(!2.E(e)){2.x(e,\'g\');n F}G z=d;z.b=2(e);z.6=t 5==\'M\'?5:6||u;z.5=t 5==\'7\'?5:u;h(9==\'v\'){9=z.b.p(\'T\')==\'S\'?\'k\':\'w\'}z.3=3;z.4=4&&4.s==P?4:Q;z.1=2.1.R(e);z.9=9;z.r=7(){h(z.5&&z.5.s==N){z.5.U(z.b.c(0))}h(z.9==\'k\'){z.b.B()}C{z.b.D()}2.1.O(z.1.f.c(0),z.1.i);2.x(z.b.c(0),\'g\')};h(z.9==\'k\'){z.b.B();z.1.f.p(\'4\',z.4+\'W\').p(\'q\',\'V\');z.8=a 2.1(z.1.f.c(0),2.3(z.3,z.6,7(){z.8=a 2.1(z.1.f.c(0),2.3(z.3,z.6,z.r),\'4\');z.8.l(z.4,z.1.i.m.A)}),\'q\');z.8.l(0,z.1.i.m.y)}C{z.8=a 2.1(z.1.f.c(0),2.3(z.3,z.6,7(){z.8=a 2.1(z.1.f.c(0),2.3(z.3,z.6,z.r),\'q\');z.8.l(z.1.i.m.y,0)}),\'4\');z.8.l(z.1.i.m.A,z.4)}};',59,59,'|fx|jQuery|speed|height|callback|easing|function|ef|type|new|el|get|this||wrapper|interfaceFX|if|oldStyle|DoFold|unfold|custom|sizes|return|queue|css|width|complete|constructor|typeof|null|toggle|fold|dequeue|wb||hb|show|else|hide|fxCheckTag|false|var|FoldToggle|UnFold|fn|extend|Fold|string|Function|destroyWrapper|Number|20|buildWrapper|none|display|apply|1px|px'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxhighlight.js b/javascript/libs/jquery/min/interface/ifxhighlight.js
new file mode 100644
index 0000000..a7e1607
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxhighlight.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - Highlight
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}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}('1.q.o=8(j,h,2,a){n 0.m(\'k\',8(){0.3=1(0).5("6")||\'\';a=7 2==\'p\'?2:a||f;2=7 2==\'8\'?2:f;g b=1(0).c(\'9\');g 4=0.i;u(b==\'t\'&&4){b=1(4).c(\'9\');4=4.i}1(0).c(\'9\',h);e(7 0.3==\'l\')0.3=0.3["d"];1(0).v({\'9\':b},j,a,8(){1.s(0,\'k\');e(7 1(0).5("6")==\'l\'){1(0).5("6")["d"]="";1(0).5("6")["d"]=0.3}r{1(0).5("6",0.3)}e(2)2.w(0)})})};',33,33,'this|jQuery|callback|oldStyleAttr|parentEl|attr|style|typeof|function|backgroundColor|easing|oldColor|css|cssText|if|null|var|color|parentNode|speed|interfaceColorFX|object|queue|return|Highlight|string|fn|else|dequeue|transparent|while|animate|apply'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxopenclose.js b/javascript/libs/jquery/min/interface/ifxopenclose.js
new file mode 100644
index 0000000..4c425b6
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxopenclose.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - open/close/switch
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('3.11.10({12:a(4,6,7){o 9.r(\'l\',a(){f 3.d.j(9,4,6,\'q\',\'p\',7)})},13:a(4,6,7){o 9.r(\'l\',a(){f 3.d.j(9,4,6,\'s\',\'p\',7)})},16:a(4,6,7){o 9.r(\'l\',a(){k(3.b(9,\'x\')==\'F\'){f 3.d.j(9,4,6,\'s\',\'t\',7)}A{f 3.d.j(9,4,6,\'s\',\'p\',7)}})},14:a(4,6,7){o 9.r(\'l\',a(){k(3.b(9,\'x\')==\'F\'){f 3.d.j(9,4,6,\'q\',\'t\',7)}A{f 3.d.j(9,4,6,\'q\',\'p\',7)}})},Z:a(4,6,7){o 9.r(\'l\',a(){f 3.d.j(9,4,6,\'q\',\'t\',7)})},X:a(4,6,7){o 9.r(\'l\',a(){f 3.d.j(9,4,6,\'s\',\'t\',7)})}});3.d.j=a(e,4,6,C,n,7){k(!3.Y(e)){3.V(e,\'l\');o M}N z=9;N E=M;z.8=3(e);z.7=O 6==\'18\'?6:7||P;z.6=O 6==\'a\'?6:P;z.n=n;z.4=4;z.5=3.1d.1a(e);z.c={};z.c.y=z.8.b(\'y\');z.c.x=z.8.b(\'x\');k(z.c.x==\'F\'){K=z.8.b(\'Q\');z.8.U();E=19}z.c.i=z.8.b(\'i\');z.c.g=z.8.b(\'g\');k(E){z.8.R();z.8.b(\'Q\',K)}z.c.J=z.5.w+\'D\';z.c.I=z.5.h+\'D\';z.c.G=z.8.b(\'G\');z.5.i=L(z.c.i)||0;z.5.g=L(z.c.g)||0;k(z.c.y!=\'W\'&&z.c.y!=\'1c\'){z.8.b(\'y\',\'W\')}z.8.b(\'G\',\'1b\').b(\'I\',n==\'t\'&&C==\'q\'?1:z.5.h+\'D\').b(\'J\',n==\'t\'&&C==\'s\'?1:z.5.w+\'D\');z.H=a(){z.8.b(z.c);k(z.n==\'p\')z.8.R();A z.8.U();3.V(z.8.B(0),\'l\')};17(C){S\'q\':z.u=f 3.d(z.8.B(0),3.4(4-15,z.7,6),\'I\');z.v=f 3.d(z.8.B(0),3.4(z.4,z.7,z.H),\'i\');k(z.n==\'p\'){z.u.m(z.5.h,0);z.v.m(z.5.i,z.5.i+z.5.h/2)}A{z.u.m(0,z.5.h);z.v.m(z.5.i+z.5.h/2,z.5.i)}T;S\'s\':z.u=f 3.d(z.8.B(0),3.4(4-15,z.7,6),\'J\');z.v=f 3.d(z.8.B(0),3.4(z.4,z.7,z.H),\'g\');k(z.n==\'p\'){z.u.m(z.5.w,0);z.v.m(z.5.g,z.5.g+z.5.w/2)}A{z.u.m(0,z.5.w);z.v.m(z.5.g+z.5.w/2,z.5.g)}T}};',62,76,'|||jQuery|speed|oldP|callback|easing|el|this|function|css|oldStyle|fx||new|left||top|OpenClose|if|interfaceFX|custom|type|return|close|vertically|queue|horizontally|open|eh|et||display|position||else|get|direction|px|restoreStyle|none|overflow|complete|height|width|oldVisibility|parseInt|false|var|typeof|null|visibility|hide|case|break|show|dequeue|relative|OpenHorizontally|fxCheckTag|OpenVertically|extend|fn|CloseVertically|CloseHorizontally|SwitchVertically||SwitchHorizontally|switch|string|true|getSize|hidden|absolute|iUtil'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxpulsate.js b/javascript/libs/jquery/min/interface/ifxpulsate.js
new file mode 100644
index 0000000..7471683
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxpulsate.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - pulsate
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}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}('3.p.b=8(4,7,5){n a.r(\'h\',8(){g(!3.q(a)){3.l(a,\'h\');n o}k 9=d 3.9.b(a,4,7,5);9.f()})};3.9.b=8(6,4,7,5){k 2=a;2.7=7;2.c=1;2.6=6;2.4=4;2.5=5;3(2.6).u();2.f=8(){2.c++;2.e=d 3.9(2.6,3.4(2.4,8(){2.m=d 3.9(2.6,3.4(2.4,8(){g(2.c<=2.7)2.f();s{3.l(2.6,\'h\');g(2.5&&2.5.w==v){2.5.t(2.6)}}}),\'i\');2.m.j(0,1)}),\'i\');2.e.j(1,0)}};',33,33,'||z|jQuery|speed|callback|el|times|function|fx|this|Pulsate|cnt|new||pulse|if|interfaceFX|opacity|custom|var|dequeue|ef|return|false|fn|fxCheckTag|queue|else|apply|show|Function|constructor'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxscale.js b/javascript/libs/jquery/min/interface/ifxscale.js
new file mode 100644
index 0000000..50505cd
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxscale.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - scale/grow/shrink/puff
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('a.21.23({2d:f(q,d,8){Z u.1e(\'O\',f(){N a.S.H(u,q,1,c,14,d,\'1E\',8)})},2f:f(q,d,8){Z u.1e(\'O\',f(){N a.S.H(u,q,c,1,14,d,\'1n\',8)})},27:f(q,d,8){Z u.1e(\'O\',f(){10 8=8||\'1V\';N a.S.H(u,q,c,2c,14,d,\'C\',8)})},H:f(q,r,A,Q,d,8){Z u.1e(\'O\',f(){N a.S.H(u,q,r,A,Q,d,\'H\',8)})}});a.S.H=f(e,q,r,A,Q,d,j,8){6(!a.28(e)){a.1y(e,\'O\');Z 1a}10 z=u;z.3=a(e);z.r=L(r)||c;z.A=L(A)||c;z.8=1v d==\'2b\'?d:8||1c;z.d=1v d==\'f\'?d:1c;z.y=a.q(q).y;z.Q=Q||1c;z.I=a.2g.1U(e);z.9={P:z.3.7(\'P\'),R:z.3.7(\'R\'),D:z.3.7(\'D\')||\'c%\',11:z.3.7(\'11\'),1b:z.3.7(\'1b\'),k:z.3.7(\'k\'),g:z.3.7(\'g\'),1g:z.3.7(\'1g\'),V:z.3.7(\'V\'),X:z.3.7(\'X\'),W:z.3.7(\'W\'),T:z.3.7(\'T\'),16:z.3.7(\'16\'),15:z.3.7(\'15\'),12:z.3.7(\'12\'),Y:z.3.7(\'Y\')};z.P=L(z.9.P)||e.20||0;z.R=L(z.9.R)||e.1S||0;z.k=L(z.9.k)||0;z.g=L(z.9.g)||0;b=[\'1Y\',\'U\',\'22\',\'%\'];1X(i 1W b){6(z.9.D.x(b[i])>0){z.1J=b[i];z.D=v(z.9.D)}6(z.9.V.x(b[i])>0){z.1I=b[i];z.1t=v(z.9.V)||0}6(z.9.X.x(b[i])>0){z.1N=b[i];z.1u=v(z.9.X)||0}6(z.9.W.x(b[i])>0){z.1M=b[i];z.1m=v(z.9.W)||0}6(z.9.T.x(b[i])>0){z.1P=b[i];z.1p=v(z.9.T)||0}6(z.9.16.x(b[i])>0){z.1Q=b[i];z.1s=v(z.9.16)||0}6(z.9.15.x(b[i])>0){z.1O=b[i];z.1r=v(z.9.15)||0}6(z.9.12.x(b[i])>0){z.1z=b[i];z.1o=v(z.9.12)||0}6(z.9.Y.x(b[i])>0){z.1H=b[i];z.1q=v(z.9.Y)||0}}6(z.9.11!=\'1A\'&&z.9.11!=\'2h\'){z.3.7(\'11\',\'1A\')}z.3.7(\'1g\',\'2e\');z.j=j;24(z.j){1k\'1E\':z.G=z.k+z.I.h/2;z.J=z.k;z.E=z.g+z.I.w/2;z.M=z.g;1j;1k\'1n\':z.J=z.k+z.I.h/2;z.G=z.k;z.M=z.g+z.I.w/2;z.E=z.g;1j;1k\'C\':z.J=z.k-z.I.h/4;z.G=z.k;z.M=z.g-z.I.w/4;z.E=z.g;1j}z.1i=1a;z.t=(N 1w).1x();z.1K=f(){26(z.1h);z.1h=1c};z.1L=f(){6(z.1i==1a){z.3.25();z.1i=14}10 t=(N 1w).1x();10 n=t-z.t;10 p=n/z.y;6(t>=z.y+z.t){29(f(){o=1;6(z.j){t=z.J;l=z.M;6(z.j==\'C\')o=0}z.1l(z.A,l,t,14,o)},13);z.1K()}19{o=1;6(!a.8||!a.8[z.8]){s=((-B.1d(p*B.1f)/2)+0.5)*(z.A-z.r)+z.r}19{s=a.8[z.8](p,n,z.r,(z.A-z.r),z.y)}6(z.j){6(!a.8||!a.8[z.8]){t=((-B.1d(p*B.1f)/2)+0.5)*(z.J-z.G)+z.G;l=((-B.1d(p*B.1f)/2)+0.5)*(z.M-z.E)+z.E;6(z.j==\'C\')o=((-B.1d(p*B.1f)/2)+0.5)*(-0.18)+0.18}19{t=a.8[z.8](p,n,z.G,(z.J-z.G),z.y);l=a.8[z.8](p,n,z.E,(z.M-z.E),z.y);6(z.j==\'C\')o=a.8[z.8](p,n,0.18,-0.18,z.y)}}z.1l(s,l,t,1a,o)}};z.1h=1R(f(){z.1L()},13);z.1l=f(m,g,k,1F,F){z.3.7(\'R\',z.R*m/c+\'U\').7(\'P\',z.P*m/c+\'U\').7(\'g\',g+\'U\').7(\'k\',k+\'U\').7(\'D\',z.D*m/c+z.1J);6(z.1t)z.3.7(\'V\',z.1t*m/c+z.1I);6(z.1u)z.3.7(\'X\',z.1u*m/c+z.1N);6(z.1m)z.3.7(\'W\',z.1m*m/c+z.1M);6(z.1p)z.3.7(\'T\',z.1p*m/c+z.1P);6(z.1s)z.3.7(\'16\',z.1s*m/c+z.1Q);6(z.1r)z.3.7(\'15\',z.1r*m/c+z.1O);6(z.1o)z.3.7(\'12\',z.1o*m/c+z.1z);6(z.1q)z.3.7(\'Y\',z.1q*m/c+z.1H);6(z.j==\'C\'){6(1G.1C)z.3.K(0).17.1D="1B(F="+F*c+")";z.3.K(0).17.F=F}6(1F){6(z.Q){z.3.7(z.9)}6(z.j==\'1n\'||z.j==\'C\'){z.3.7(\'1b\',\'2a\');6(z.j==\'C\'){6(1G.1C)z.3.K(0).17.1D="1B(F="+c+")";z.3.K(0).17.F=1}}19 z.3.7(\'1b\',\'1Z\');6(z.d)z.d.1T(z.3.K(0));a.1y(z.3.K(0),\'O\')}}};',62,142,'|||el|||if|css|easing|oldStyle|jQuery|sizes|100|callback||function|left|||type|top||percent||||speed|from|||this|parseFloat||indexOf|duration||to|Math|puff|fontSize|startLeft|opacity|startTop|Scale|oldP|endTop|get|parseInt|endLeft|new|interfaceFX|width|restore|height|fx|borderLeftWidth|px|borderTopWidth|borderBottomWidth|borderRightWidth|paddingLeft|return|var|position|paddingBottom||true|paddingRight|paddingTop|style|9999|else|false|display|null|cos|queue|PI|overflow|timer|firstStep|break|case|zoom|borderBottomSize|shrink|paddingBottomSize|borderLeftSize|paddingLeftSize|paddingRightSize|paddingTopSize|borderTopSize|borderRightSize|typeof|Date|getTime|dequeue|paddingBottomUnit|relative|alpha|ActiveXObject|filter|grow|finish|window|paddingLeftUnit|borderTopUnit|fontUnit|clear|step|borderBottomUnit|borderRightUnit|paddingRightUnit|borderLeftUnit|paddingTopUnit|setInterval|offsetHeight|apply|getSize|easeout|in|for|em|block|offsetWidth|fn|pt|extend|switch|show|clearInterval|Puff|fxCheckTag|setTimeout|none|string|150|Grow|hidden|Shrink|iUtil|absolute'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxscrollto.js b/javascript/libs/jquery/min/interface/ifxscrollto.js
new file mode 100644
index 0000000..9a14023
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxscrollto.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - scroll to
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('4.10.X({m:7(d,6,3){o=4.d(d);C 9.12(\'L\',7(){v 4.K.m(9,o,6,3)})},14:7(d,6,3){C 9.19(7(){4(\'a[@O*="#"]\',9).17(7(e){E=9.O.16(\'#\');4(\'#\'+E[1]).m(d,6,3);C J})})}});4.K.m=7(e,o,6,3){q z=9;z.o=o;z.e=e;z.6=/S|Q/.Z(6)?6:J;z.3=3;p=4.I.11(e);s=4.I.T();z.M=7(){U(z.A);z.A=V;4.W(z.e,\'L\')};z.t=(v G).F();s.h=s.h>s.H?(s.h-s.H):s.h;s.w=s.w>s.N?(s.w-s.N):s.w;z.g=p.y>s.h?s.h:p.y;z.j=p.x>s.w?s.w:p.x;z.8=s.t;z.b=s.l;z.D=7(){q t=(v G).F();q n=t-z.t;q p=n/z.o.i;f(t>=z.o.i+z.t){z.M();1a(7(){z.B(z.g,z.j)},13)}c{f(!z.6||z.6==\'S\'){f(!4.3||!4.3[z.3]){r=((-k.P(p*k.R)/2)+0.5)*(z.g-z.8)+z.8}c{r=4.3[z.3](p,n,z.8,(z.g-z.8),z.o.i)}}c{r=z.8}f(!z.6||z.6==\'Q\'){f(!4.3||!4.3[z.3]){u=((-k.P(p*k.R)/2)+0.5)*(z.j-z.b)+z.b}c{u=4.3[z.3](p,n,z.b,(z.j-z.b),z.o.i)}}c{u=z.b}z.B(r,u)}};z.B=7(t,l){18.15(l,t)};z.A=Y(7(){z.D()},13)};',62,73,'|||easing|jQuery||axis|function|startTop|this||startLeft|else|speed||if|endTop||duration|endLeft|Math||ScrollTo||||var|st|||sl|new|||||timer|scroll|return|step|parts|getTime|Date|ih|iUtil|false|fx|interfaceFX|clear|iw|href|cos|horizontal|PI|vertical|getScroll|clearInterval|null|dequeue|extend|setInterval|test|fn|getPosition|queue||ScrollToAnchors|scrollTo|split|click|window|each|setTimeout'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxshake.js b/javascript/libs/jquery/min/interface/ifxshake.js
new file mode 100644
index 0000000..f941c26
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxshake.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - shake
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('6.F.o=a(b,7){t c.C(\'s\',a(){g(!6.y(c)){6.x(c,\'s\');t G}u e=j 6.d.o(c,b,7);e.q()})};6.d.o=a(e,b,7){u z=c;z.5=6(e);z.5.A();z.b=p(b)||3;z.7=7;z.l=1;z.2={};z.2.8=z.5.9(\'8\');z.2.f=p(z.5.9(\'f\'))||0;z.2.4=p(z.5.9(\'4\'))||0;g(z.2.8!=\'v\'&&z.2.8!=\'H\'){z.5.9(\'8\',\'v\')}z.q=a(){z.l++;z.e=j 6.d(z.5.i(0),{k:n,m:a(){z.e=j 6.d(z.5.i(0),{k:n,m:a(){z.e=j 6.d(e,{k:n,m:a(){g(z.l<=z.b)z.q();D{z.5.9(\'8\',z.2.8).9(\'f\',z.2.f+\'w\').9(\'4\',z.2.4+\'w\');6.x(z.5.i(0),\'s\');g(z.7&&z.7.B==I){z.7.E(z.5.i(0))}}}},\'4\');z.e.r(z.2.4-h,z.2.4)}},\'4\');z.e.r(z.2.4+h,z.2.4-h)}},\'4\');z.e.r(z.2.4,z.2.4+h)}};',45,45,'||oldStyle||left|el|jQuery|callback|position|css|function|times|this|fx||top|if|20|get|new|duration|cnt|complete|60|Shake|parseInt|shake|custom|interfaceFX|return|var|relative|px|dequeue|fxCheckTag||show|constructor|queue|else|apply|fn|false|absolute|Function'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxslide.js b/javascript/libs/jquery/min/interface/ifxslide.js
new file mode 100644
index 0000000..e98bfc6
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxslide.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - slide
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('5.U.T({S:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'C\',\'m\',3)})},Q:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'C\',\'r\',3)})},R:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'C\',\'u\',3)})},V:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'E\',\'m\',3)})},W:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'E\',\'r\',3)})},Z:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'E\',\'u\',3)})},Y:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'s\',\'m\',3)})},X:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'s\',\'r\',3)})},10:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'s\',\'u\',3)})},N:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'D\',\'m\',3)})},O:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'D\',\'r\',3)})},P:6(1,4,3){b 7.g(\'a\',6(){8 5.2.d(7,1,4,\'D\',\'u\',3)})}});5.2.d=6(e,1,4,A,k,3){l(!5.M(e)){5.K(e,\'a\');b 18}1b z=7;z.9=5(e);z.3=J 4==\'1a\'?4:3||L;z.4=J 4==\'6\'?4:L;l(k==\'u\'){k=z.9.q(\'w\')==\'G\'?\'m\':\'r\'}l(!e.y)e.y=z.9.q(\'w\');z.9.1d();z.1=1;z.2=5.2.1e(e);z.k=k;z.A=A;z.t=6(){l(z.k==\'r\')z.9.q(\'I\',\'1f\');5.2.1c(z.2.F.j(0),z.2.c);l(z.k==\'m\'){z.9.q(\'w\',z.9.j(0).y==\'G\'?\'19\':z.9.j(0).y)}v{z.9.q(\'w\',\'G\');z.9.q(\'I\',\'13\')}l(z.4&&z.4.11==12){z.4.14(z.9.j(0))}5.K(z.9.j(0),\'a\')};15(z.A){B\'C\':z.h=8 5.2(z.9.j(0),5.1(z.1,z.3,z.t),\'H\');z.p=8 5.2(z.2.F.j(0),5.1(z.1,z.3),\'17\');l(z.k==\'m\'){z.h.f(-z.2.c.i.n,0);z.p.f(0,z.2.c.i.n)}v{z.h.f(0,-z.2.c.i.n);z.p.f(z.2.c.i.n,0)}x;B\'E\':z.h=8 5.2(z.9.j(0),5.1(z.1,z.3,z.t),\'H\');l(z.k==\'m\'){z.h.f(z.2.c.i.n,0)}v{z.h.f(0,z.2.c.i.n)}x;B\'s\':z.h=8 5.2(z.9.j(0),5.1(z.1,z.3,z.t),\'s\');z.p=8 5.2(z.2.F.j(0),5.1(z.1,z.3),\'16\');l(z.k==\'m\'){z.h.f(-z.2.c.i.o,0);z.p.f(0,z.2.c.i.o)}v{z.h.f(0,-z.2.c.i.o);z.p.f(z.2.c.i.o,0)}x;B\'D\':z.h=8 5.2(z.9.j(0),5.1(z.1,z.3,z.t),\'s\');l(z.k==\'m\'){z.h.f(z.2.c.i.o,0)}v{z.h.f(0,z.2.c.i.o)}x}};',62,78,'|speed|fx|easing|callback|jQuery|function|this|new|el|interfaceFX|return|oldStyle|slide||custom|queue|ef|sizes|get|type|if|in|hb|wb|efx|css|out|left|complete|toggle|else|display|break|ifxFirstDisplay||direction|case|up|right|down|wrapper|none|top|visibility|typeof|dequeue|null|fxCheckTag|SlideInRight|SlideOutRight|SlideToggleRight|SlideOutUp|SlideToggleUp|SlideInUp|extend|fn|SlideInDown|SlideOutDown|SlideOutLeft|SlideInLeft|SlideToggleDown|SlideToggleLeft|constructor|Function|visible|apply|switch|width|height|false|block|string|var|destroyWrapper|show|buildWrapper|hidden'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ifxtransfer.js b/javascript/libs/jquery/min/interface/ifxtransfer.js
new file mode 100644
index 0000000..40690d0
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ifxtransfer.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * FX - transfer
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('1.2=q;1.Q.P=i(o){p m.O(\'s\',i(){R 1.A.w(m,o)})};1.A.w=i(e,o){5(1.2==q){1(\'S\',n).V(\'<t N="2"></t>\');1.2=1(\'#2\')}1.2.3(\'B\',\'T\').3(\'W\',\'L\');I z=m;z.c=1(e);5(!o||!o.4){p}5(o.4.H==K&&n.G(o.4)){o.4=n.G(o.4)}J 5(!o.4.M){p}5(!o.a){o.a=U}z.a=o.a;z.4=o.4;z.b=o.10;z.9=o.9;5(z.b){1.2.19(z.b)}z.g=0;z.h=0;5(1.18){z.g=(6(1.2.3(\'17\'))||0)+(6(1.2.3(\'1a\'))||0)+(6(1.2.3(\'X\'))||0)+(6(1.2.3(\'1d\'))||0);z.h=(6(1.2.3(\'1c\'))||0)+(6(1.2.3(\'16\'))||0)+(6(1.2.3(\'15\'))||0)+(6(1.2.3(\'Z\'))||0)}z.7=1.u(1.k.v(z.c.l(0)),1.k.r(z.c.l(0)));z.8=1.u(1.k.v(z.4),1.k.r(z.4));z.7.j-=z.g;z.7.d-=z.h;z.8.j-=z.g;z.8.d-=z.h;z.11=o.9;1.2.3(\'C\',z.7.j+\'f\').3(\'E\',z.7.d+\'f\').3(\'F\',z.7.y+\'f\').3(\'D\',z.7.x+\'f\').13({F:z.8.y,D:z.8.x,C:z.8.j,E:z.8.d},z.a,i(){5(z.b)1.2.1b(z.b);1.2.3(\'B\',\'1e\');5(z.9&&z.9.H==Y){z.9.14(z.c.l(0),[z.4])}1.12(z.c.l(0),\'s\')})};',62,77,'|jQuery|transferHelper|css|to|if|parseInt|start|end|complete|duration|classname|el|hb||px|diffWidth|diffHeight|function|wb|iUtil|get|this|document||return|null|getSize|interfaceFX|div|extend|getPosition|itransferTo||||fx|display|width|left|height|top|getElementById|constructor|var|else|String|absolute|childNodes|id|queue|TransferTo|fn|new|body|block|500|append|position|paddingLeft|Function|paddingBottom|className|callback|dequeue|animate|apply|paddingTop|borderBottomWidth|borderLeftWidth|boxModel|addClass|borderRightWidth|removeClass|borderTopWidth|paddingRight|none'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/imagebox.js b/javascript/libs/jquery/min/interface/imagebox.js
new file mode 100644
index 0000000..b35a392
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/imagebox.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * ImageBox
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+
+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}('4.5={6:{c:10,1S:\'2f/2z.1L\',1X:\'<1W 1l="2f/2y.1P" />\',2n:0.8,26:\'2u 2r\',23:\'2P\',Z:2L},2M:r,2O:r,O:n,13:r,1e:r,1D:j(1o){d(!4.5.1e||4.5.13)1f;1n 25=1o.2A||1o.2I||-1;2H(25){k 35:d(4.5.O)4.5.V(n,4(\'a[@12=\'+4.5.O+\']:2C\').b(0));R;k 36:d(4.5.O)4.5.V(n,4(\'a[@12=\'+4.5.O+\']:2D\').b(0));R;k 37:k 8:k 33:k 2G:k 2F:1n 1i=4(\'#14\');d(1i.b(0).A!=n){1i.b(0).A.1Y(1i.b(0))}R;k 38:R;k 39:k 34:k 32:k 2N:k 2E:1n 1h=4(\'#17\');d(1h.b(0).A!=n){1h.b(0).A.1Y(1h.b(0))}R;k 2B:R;k 27:4.5.1m();R}},2J:j(6){d(6)4.2K(4.5.6,6);d(2s.1o){4(\'1x\',f).T(\'1K\',4.5.1D)}2m{4(f).T(\'1K\',4.5.1D)}4(\'a\').2v(j(){I=4(11);22=I.i(\'12\')||\'\';2a=I.i(\'1d\')||\'\';1Q=/\\.1P|\\.2w|\\.2x|\\.1L|\\.2t/g;d(2a.1M().3h(1Q)!=n&&22.1M().3i(\'1N\')==0){I.T(\'1A\',4.5.V)}});d(4.1w.1v){1p=f.x(\'1p\');4(1p).i({p:\'1z\',1l:\'3g:r;\',3f:\'1O\',3d:\'1O\'}).9({U:\'G\',z:\'E\',q:\'0\',B:\'0\',3e:\'3j:3k.3p.3o(20=0)\'});4(\'1x\').m(1p)}18=f.x(\'W\');4(18).i(\'p\',\'1G\').9({z:\'E\',U:\'G\',q:\'0\',B:\'0\',20:0}).m(f.1a(\' \')).T(\'1A\',4.5.1m);N=f.x(\'W\');4(N).i(\'p\',\'2i\').9({21:4.5.6.c+\'7\'}).m(f.1a(\' \'));1C=f.x(\'W\');4(1C).i(\'p\',\'29\').9({21:4.5.6.c+\'7\',3n:4.5.6.c+\'7\'}).m(f.1a(\' \'));1H=f.x(\'a\');4(1H).i({p:\'3l\',1d:\'#\'}).9({z:\'E\',3m:4.5.6.c+\'7\',q:\'0\'}).m(4.5.6.1X).T(\'1A\',4.5.1m);X=f.x(\'W\');4(X).i(\'p\',\'1E\').9({z:\'1V\',1t:\'B\',1Z:\'0 1T\',1R:1}).m(N).m(1C).m(1H);o=f.x(\'1W\');o.1l=4.5.6.1S;4(o).i(\'p\',\'2q\').9({z:\'E\'});v=f.x(\'a\');4(v).i({p:\'14\',1d:\'#\'}).9({z:\'E\',U:\'G\',1g:\'S\',1U:\'G\'}).m(f.1a(\' \'));u=f.x(\'a\');4(u).i({p:\'17\',1d:\'#\'}).9({z:\'E\',1g:\'S\',1U:\'G\'}).m(f.1a(\' \'));D=f.x(\'W\');4(D).i(\'p\',\'2o\').9({U:\'G\',z:\'1V\',1g:\'S\',1t:\'B\',1Z:\'0 1T\',q:\'0\',B:\'0\',1R:2}).m([o,v,u]);J=f.x(\'W\');4(J).i(\'p\',\'1j\').9({U:\'G\',z:\'E\',1g:\'S\',q:\'0\',B:\'0\',1t:\'3b\',2V:\'3c\',2T:\'0\'}).m([D,X]);4(\'1x\').m(18).m(J)},V:j(e,19){I=19?4(19):4(11);1k=I.i(\'12\');1n Q,H,v,u;d(1k!=\'1N\'){4.5.O=1k;1c=4(\'a[@12=\'+1k+\']\');Q=1c.2W();H=1c.2X(19?19:11);v=1c.b(H-1);u=1c.b(H+1)}1b=I.i(\'1d\');N=I.i(\'3a\');l=4.1q.2Q();18=4(\'#1G\');d(!4.5.1e){4.5.1e=2g;d(4.1w.1v){4(\'#1z\').9(\'C\',L.P(l.2j,l.h)+\'7\').9(\'s\',L.P(l.1y,l.w)+\'7\').M()}18.9(\'C\',L.P(l.2j,l.h)+\'7\').9(\'s\',L.P(l.1y,l.w)+\'7\').M().2k(2l,4.5.6.2n,j(){4.5.1u(1b,N,l,Q,H,v,u)});4(\'#1j\').9(\'s\',L.P(l.1y,l.w)+\'7\')}2m{4(\'#14\').b(0).A=n;4(\'#17\').b(0).A=n;4.5.1u(1b,N,l,Q,H,v,u)}1f r},1u:j(1b,2Z,l,Q,H,v,u){4(\'#1B\').2p();1r=4(\'#14\');1r.Y();1s=4(\'#17\');1s.Y();o=4(\'#2q\');D=4(\'#2o\');J=4(\'#1j\');X=4(\'#1E\').9(\'1F\',\'S\');4(\'#2i\').2h(N);4.5.13=2g;d(Q)4(\'#29\').2h(4.5.6.26+\' \'+(H+1)+\' \'+4.5.6.23+\' \'+Q);d(v){1r.b(0).A=j(){11.24();4.5.V(n,v);1f r}}d(u){1s.b(0).A=j(){11.24();4.5.V(n,u);1f r}}o.M();16=4.1q.2c(D.b(0));y=L.P(16.2d,o.b(0).s+4.5.6.c*2);F=L.P(16.1I,o.b(0).C+4.5.6.c*2);o.9({B:(y-o.b(0).s)/2+\'7\',q:(F-o.b(0).C)/2+\'7\'});D.9({s:y+\'7\',C:F+\'7\'}).M();2b=4.1q.2U();J.9(\'q\',l.t+(2b.h/15)+\'7\');d(J.9(\'U\')==\'G\'){J.M().28(4.5.6.Z)}K=2Y 30;4(K).i(\'p\',\'1B\').T(\'31\',j(){y=K.s+4.5.6.c*2;F=K.C+4.5.6.c*2;o.Y();D.1J({C:F},16.1I!=F?4.5.6.Z:1,j(){D.1J({s:y},16.2d!=y?4.5.6.Z:1,j(){D.2S(K);4(K).9({z:\'E\',B:4.5.6.c+\'7\',q:4.5.6.c+\'7\'}).28(4.5.6.Z,j(){2e=4.1q.2c(X.b(0));d(v){1r.9({B:4.5.6.c+\'7\',q:4.5.6.c+\'7\',s:y/2-4.5.6.c*3+\'7\',C:F-4.5.6.c*2+\'7\'}).M()}d(u){1s.9({B:y/2+4.5.6.c*2+\'7\',q:4.5.6.c+\'7\',s:y/2-4.5.6.c*3+\'7\',C:F-4.5.6.c*2+\'7\'}).M()}X.9({s:y+\'7\',q:-2e.1I+\'7\',1F:\'2R\'}).1J({q:-1},4.5.6.Z,j(){4.5.13=r})})})})});K.1l=1b},1m:j(){4(\'#1B\').2p();4(\'#1j\').Y();4(\'#1E\').9(\'1F\',\'S\');4(\'#1G\').2k(2l,0,j(){4(11).Y();d(4.1w.1v){4(\'#1z\').Y()}});4(\'#14\').b(0).A=n;4(\'#17\').b(0).A=n;4.5.O=n;4.5.1e=r;4.5.13=r;1f r}};',62,212,'||||jQuery|ImageBox|options|px||css||get|border|if||document|||attr|function|case|pageSize|append|null|loader|id|top|false|width||nextImage|prevImage||createElement|containerW|position|onclick|left|height|container|absolute|containerH|none|iteration|el|outerContainer|imageEl|Math|show|captionText|currentRel|max|totalImages|break|hidden|bind|display|start|div|captionEl|hide|fadeDuration||this|rel|animationInProgress|ImageBoxPrevImage||containerSize|ImageBoxNextImage|overlay|elm|createTextNode|imageSrc|gallery|href|opened|return|overflow|nextEl|prevEl|ImageBoxOuterContainer|linkRel|src|hideImage|var|event|iframe|iUtil|prevImageEl|nextImageEl|textAlign|loadImage|msie|browser|body|iw|ImageBoxIframe|click|ImageBoxCurrentImage|captionImages|keyPressed|ImageBoxCaption|visibility|ImageBoxOverlay|closeEl|hb|animate|keyup|gif|toLowerCase|imagebox|no|jpg|imageTypes|zIndex|loaderSRC|auto|textDecoration|relative|img|closeHTML|apply|margin|opacity|paddingLeft|relAttr|textImageFrom|blur|pressedKey|textImage||fadeIn|ImageBoxCaptionImages|hrefAttr|clientSize|getSize|wb|captionSize|images|true|html|ImageBoxCaptionText|ih|fadeTo|300|else|overlayOpacity|ImageBoxContainer|remove|ImageBoxLoader|image|window|bmp|Showing|each|jpeg|png|close|loading|charCode|40|last|first|78|112|80|switch|keyCode|init|extend|400|imageLoaded|110|firstResize|from|getScroll|visible|prepend|lineHeigt|getClient|backgroundColor|size|index|new|captiontext|Image|load|||||||||title|center|transparent|scrolling|filter|frameborder|javascript|match|indexOf|progid|DXImageTransform|ImageBoxClose|right|paddingBottom|Alpha|Microsoft'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/iresizable.js b/javascript/libs/jquery/min/interface/iresizable.js
new file mode 100644
index 0000000..16a93e0
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/iresizable.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Resizable
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('3.4={6:r,q:r,d:r,u:r,o:r,k:r,17:l(e){3.4.d=(m.1y)?m.1y:m;3.4.u=3.1c.1d(e);3.4.o={b:H(3(3.4.d).F(\'b\'))||0,a:H(3(3.4.d).F(\'a\'))||0};3.4.k={h:H(3(3.4.d).F(\'h\'))||0,f:H(3(3.4.d).F(\'f\'))||0};3(1h).L(\'1a\',3.4.1v).L(\'19\',3.4.1n);8(W 3.4.d.5.1G===\'l\'){3.4.d.5.1G.X(3.4.d)}v 12},1n:l(e){3(1h).K(\'1a\',3.4.1v).K(\'19\',3.4.1n);8(W 3.4.d.5.1A===\'l\'){3.4.d.5.1A.X(3.4.d)}3.4.d=r},1v:l(e){8(!3.4.d){v}u=3.1c.1d(e);R=3.4.k.h-3.4.u.y+u.y;P=3.4.k.f-3.4.u.x+u.x;R=C.11(C.13(R,3.4.d.5.Z-3.4.o.a),3.4.d.5.T);P=C.11(C.13(P,3.4.d.5.16-3.4.o.b),3.4.d.5.O);8(W 3.4.d.5.1D===\'l\'){1e Y=3.4.d.5.1D.X(3.4.d,[P,R]);8(W Y==\'1R\'&&Y.1S==2){P=Y[0];R=Y[1]}}3.4.d.1j.h=R+\'S\';3.4.d.1j.f=P+\'S\';v 12},1w:l(e){3(1h).L(\'1a\',3.4.1p).L(\'19\',3.4.1s);3.4.6=m.6;3.4.q=m.q;3.4.u=3.1c.1d(e);3.4.o={b:H(3(m.6).F(\'b\'))||0,a:H(3(m.6).F(\'a\'))||0};3.4.k={h:H(3(m.6).F(\'h\'))||0,f:H(3(m.6).F(\'f\'))||0};8(3.4.6.5.1B){3.4.6.5.1B.X(3.4.6,[m])}v 12},1s:l(){3(1h).K(\'1a\',3.4.1p).K(\'19\',3.4.1s);8(3.4.6.5.1E){3.4.6.5.1E.X(3.4.6,[3.4.q])}3.4.6=r;3.4.q=r},N:l(G,18){v C.13(C.11(3.4.o.b+G*18,3.4.6.5.1r),3.4.6.5.1m)},M:l(E,18){v C.13(C.11(3.4.o.a+E*18,3.4.6.5.1g),3.4.6.5.1l)},1P:l(a){v C.13(C.11(a,3.4.6.5.1g),3.4.6.5.1l)},1p:l(e){8(3.4.6==r){v}u=3.1c.1d(e);G=u.x-3.4.u.x;E=u.y-3.4.u.y;7={b:3.4.o.b,a:3.4.o.a};c={h:3.4.k.h,f:3.4.k.f};15(3.4.q){j\'e\':7.b=3.4.N(G,1);A;j\'1J\':7.b=3.4.N(G,1);7.a=3.4.M(E,1);A;j\'w\':7.b=3.4.N(G,-1);c.f=3.4.k.f-7.b+3.4.o.b;A;j\'1b\':7.b=3.4.N(G,-1);c.f=3.4.k.f-7.b+3.4.o.b;7.a=3.4.M(E,1);A;j\'Q\':7.a=3.4.M(E,-1);c.h=3.4.k.h-7.a+3.4.o.a;7.b=3.4.N(G,-1);c.f=3.4.k.f-7.b+3.4.o.b;A;j\'n\':7.a=3.4.M(E,-1);c.h=3.4.k.h-7.a+3.4.o.a;A;j\'1k\':7.a=3.4.M(E,-1);c.h=3.4.k.h-7.a+3.4.o.a;7.b=3.4.N(G,1);A;j\'s\':7.a=3.4.M(E,1);A}8(3.4.6.5.B){8(3.4.q==\'n\'||3.4.q==\'s\')z=7.a*3.4.6.5.B;1q z=7.b;D=3.4.1P(z*3.4.6.5.B);z=D/3.4.6.5.B;15(3.4.q){j\'n\':j\'Q\':j\'1k\':c.h+=7.a-D;A}15(3.4.q){j\'Q\':j\'w\':j\'1b\':c.f+=7.b-z;A}7.a=D;7.b=z}8(c.h<3.4.6.5.T){D=7.a+c.h-3.4.6.5.T;c.h=3.4.6.5.T;8(3.4.6.5.B){z=D/3.4.6.5.B;15(3.4.q){j\'Q\':j\'w\':j\'1b\':c.f+=7.b-z;A}7.b=z}7.a=D}8(c.f<3.4.6.5.O){z=7.b+c.f-3.4.6.5.O;c.f=3.4.6.5.O;8(3.4.6.5.B){D=z*3.4.6.5.B;15(3.4.q){j\'n\':j\'Q\':j\'1k\':c.h+=7.a-D;A}7.a=D}7.b=z}8(c.h+7.a>3.4.6.5.Z){7.a=3.4.6.5.Z-c.h;8(3.4.6.5.B){7.b=7.a/3.4.6.5.B}}8(c.f+7.b>3.4.6.5.16){7.b=3.4.6.5.16-c.f;8(3.4.6.5.B){7.a=7.b*3.4.6.5.B}}1e J=12;8(3.4.6.5.1I){J=3.4.6.5.1I.X(3.4.6,[7,c]);8(J){8(J.o){3.1u(7,J.o)}8(J.k){3.1u(c,J.k)}}}14=3.4.6.1j;14.f=c.f+\'S\';14.h=c.h+\'S\';14.b=7.b+\'S\';14.a=7.a+\'S\';v 12},1C:l(t){8(!t||!t.p||t.p.1K!=1V){v}v m.1o(l(){1e 9=m;9.5=t;9.5.1r=t.1r||10;9.5.1g=t.1g||10;9.5.1m=t.1m||1i;9.5.1l=t.1l||1i;9.5.T=t.T||-1M;9.5.O=t.O||-1M;9.5.16=t.16||1i;9.5.Z=t.Z||1i;1x=3(9).F(\'k\');8(!(1x==\'1Q\'||1x==\'1Y\')){9.1j.k=\'1Q\'}1L=/n|1k|e|1J|s|1b|w|Q/g;1N(i 1H 9.5.p){8(i.1U().21(1L)!=r){8(9.5.p[i].1K==1X){V=3(9.5.p[i]);8(V.1t()>0){9.5.p[i]=V.20(0)}}8(9.5.p[i].1Z){9.5.p[i].6=9;9.5.p[i].q=i;3(9.5.p[i]).L(\'U\',3.4.1w)}}}8(9.5.I){8(W 9.5.I===\'1z\'){1f=3(9.5.I);8(1f.1t()>0){1f.1o(l(){m.1y=9});1f.L(\'U\',3.4.17)}}1q 8(9.5.I==1F){3(m).L(\'U\',3.4.17)}}})},1O:l(){v m.1o(l(){1e 9=m;1N(i 1H 9.5.p){9.5.p[i].6=r;9.5.p[i].q=r;3(9.5.p[i]).K(\'U\',3.4.1w)}8(9.5.I){8(W 9.5.I===\'1z\'){V=3(9.5.I);8(V.1t()>0){V.K(\'U\',3.4.17)}}1q 8(9.5.I==1F){3(m).K(\'U\',3.4.17)}}9.5=r})}};3.1W.1u({1T:3.4.1C,22:3.4.1O});',62,127,'|||jQuery|iResize|resizeOptions|resizeElement|newSizes|if|el|height|width|newPosition|dragged||left||top||case|position|function|this||sizes|handlers|resizeDirection|null||options|pointer|return||||nWidth|break|ratio|Math|nHeight|dy|css|dx|parseInt|dragHandle|newDimensions|unbind|bind|getHeight|getWidth|minLeft|newLeft|nw|newTop|px|minTop|mousedown|handle|typeof|apply|newPos|maxBottom||max|false|min|elS|switch|maxRight|startDrag|side|mouseup|mousemove|sw|iUtil|getPointer|var|handleEl|minHeight|document|3000|style|ne|maxHeight|maxWidth|stopDrag|each|move|else|minWidth|stop|size|extend|moveDrag|start|elPosition|dragEl|string|onDragStop|onStart|build|onDrag|onStop|true|onDragStart|in|onResize|se|constructor|directions|1000|for|destroy|getHeightMinMax|relative|array|length|Resizable|toLowerCase|Object|fn|String|absolute|tagName|get|match|ResizableDestroy'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/iselect.js b/javascript/libs/jquery/min/interface/iselect.js
new file mode 100644
index 0000000..dc85ba7
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/iselect.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Selectables
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('2.5=1k;2.F=c;2.8=1k;2.B=[];2.X=i(e){g 1d=e.1O||e.1N||-1;4(1d==17||1d==16){2.F=k}};2.Z=i(e){2.F=c};2.1n=i(e){3.f.6=2.C.1p(e);3.f.9=2.1R(2.C.1T(3),2.C.1S(3));3.f.7=2.C.1r(3);3.f.6.x-=3.f.9.x;3.f.6.y-=3.f.9.y;2(3).1e(2.5.1c(0));4(3.f.J)2.5.13(3.f.J).z(\'V\',\'1i\');2.5.z({V:\'1i\',1g:\'1h\',1l:\'1h\'});4(3.f.o){2.5.z(\'14\',3.f.o)}2.8=3;2.H=c;2.B=[];3.f.W.Y(i(){3.9={x:3.1L+(3.P&&!2.1f.1w?1v(3.P.1G)||0:0)+(2.8.q||0),y:3.1F+(3.P&&!2.1f.1w?1v(3.P.1H)||0:0)+(2.8.p||0),1o:3.1I,1C:3.1K};4(3.s==k){4(2.F==c){3.s=c;2(3).T(2.8.f.D)}v{2.H=k;2.B[2.B.1b]=2.E(3,\'A\')}}});2.U.11(3,[e]);2(G).m(\'1z\',2.U).m(\'1A\',2.1a);n c};2.U=i(e){4(!2.8)n;2.1q.11(2.8,[e])};2.1q=i(e){4(!2.8)n;g 6=2.C.1p(e);g 7=2.C.1r(2.8);6.x+=7.l-3.f.7.l-3.f.9.x;6.y+=7.t-3.f.7.t-3.f.9.y;g I=j.u(6.x,3.f.6.x);g N=j.u(j.Q(6.x-3.f.6.x),j.Q(3.f.7.w-I));g M=j.u(6.y,3.f.6.y);g L=j.u(j.Q(6.y-3.f.6.y),j.Q(3.f.7.h-M));4(3.p>0&&6.y-20<3.p){g d=j.u(7.t,10);M-=d;L+=d;3.p-=d}v 4(3.p+3.f.9.h<3.f.7.h&&6.y+20>3.p+3.f.9.h){g d=j.u(3.f.7.h-3.p,10);3.p+=d;4(3.p!=7.t)L+=d}4(3.q>0&&6.x-20<3.q){g d=j.u(7.l,10);I-=d;N+=d;3.q-=d}v 4(3.q+3.f.9.w<3.f.7.w&&6.x+20>3.q+3.f.9.w){g d=j.u(3.f.7.w-3.q,10);3.q+=d;4(3.q!=7.l)N+=d}2.5.z({1X:I+\'R\',1W:M+\'R\',1g:N+\'R\',1l:L+\'R\'});2.5.l=I+3.f.7.l;2.5.t=M+3.f.7.t;2.5.r=2.5.l+N;2.5.b=2.5.t+L;2.H=c;3.f.W.Y(i(){S=2.B.1U(2.E(3,\'A\'));4(!(3.9.x>2.5.r||(3.9.x+3.9.1o)<2.5.l||3.9.y>2.5.b||(3.9.y+3.9.1C)<2.5.t)){2.H=k;4(3.s!=k){3.s=k;2(3).13(2.8.f.D)}4(S!=-1){3.s=c;2(3).T(2.8.f.D)}}v 4((3.s==k)&&(S==-1)){3.s=c;2(3).T(2.8.f.D)}v 4((!3.s)&&(2.F==k)&&(S!=-1)){3.s=k;2(3).13(2.8.f.D)}});n c};2.1a=i(e){4(!2.8)n;2.1y.11(2.8,[e])};2.1y=i(e){2(G).1D(\'1z\',2.U).1D(\'1A\',2.1a);4(!2.8)n;2.5.z(\'V\',\'1B\');4(3.f.J)2.5.T(3.f.J);2.8=c;2(\'12\').1e(2.5.1c(0));4(2.H==k){4(3.f.K)3.f.K(2.15(2.E(3,\'A\')))}v{4(3.f.O)3.f.O(2.15(2.E(3,\'A\')))}2.B=[]};2.15=i(s){g h=\'\';g o=[];4(a=2(\'#\'+s)){a.1c(0).f.W.Y(i(){4(3.s==k){4(h.1b>0){h+=\'&\'}h+=s+\'[]=\'+2.E(3,\'A\');o[o.1b]=2.E(3,\'A\')}})}n{1M:h,o:o}};2.1Q.1P=i(o){4(!2.5){2(\'12\',G).1e(\'<1j A="5"></1j>\').m(\'18\',2.X).m(\'19\',2.Z);2.5=2(\'#5\');2.5.z({1t:\'1E\',V:\'1B\'});4(1V.1J){2(\'12\',G).m(\'18\',2.X).m(\'19\',2.Z)}v{2(G).m(\'18\',2.X).m(\'19\',2.Z)}}4(!o){o={}}n 3.Y(i(){4(3.1x)n;3.1x=k;3.f={a:o.1s,o:o.14?21(o.14):c,D:o.1m?o.1m:c,J:o.1u?o.1u:c,K:o.K?o.K:c,O:o.O?o.O:c};3.f.W=2(\'.\'+o.1s);2(3).m(\'1Z\',2.1n).z(\'1t\',\'1Y\')})};',62,126,'||jQuery|this|if|selectHelper|pointer|scr|selectdrug|pos|||false|diff|||var||function|Math|true||bind|return||scrollTop|scrollLeft||||min|else||||css|id|selectCurrent|iUtil|sc|attr|selectKeyHelper|document|selectedone|sx|hc|onselect|sh|sy|sw|onselectstop|currentStyle|abs|px|iIndex|removeClass|selectcheck|display|el|selectKeyDown|each|selectKeyUp||apply|body|addClass|opacity|Selectserialize|||keydown|keyup|selectstop|length|get|pressedKey|append|browser|width|0px|block|div|null|height|selectedclass|selectstart|wb|getPointer|selectcheckApply|getScroll|accept|position|helperclass|parseInt|opera|isSelectable|selectstopApply|mousemove|mouseup|none|hb|unbind|absolute|offsetTop|borderLeftWidth|borderTopWidth|offsetWidth|event|offsetHeight|offsetLeft|hash|keyCode|charCode|Selectable|fn|extend|getSize|getPosition|indexOf|window|top|left|relative|mousedown||parseFloat'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/islider.js b/javascript/libs/jquery/min/interface/islider.js
new file mode 100644
index 0000000..690757f
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/islider.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Slider
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('5.b={19:1,1B:d(c){n c=c;H 6.D(d(){6.e.z.D(d(N){5.b.t(6,c[N])})})},A:d(){n c=[];6.D(d(Z){7(6.1a){c[Z]=[];n 3=6;n 1f=5.V.1s(6);6.e.z.D(d(N){n x=6.1L;n y=6.1M;M=a(x*G/(1f.w-6.2c));K=a(y*G/(1f.h-6.1V));c[Z][N]=[M||0,K||0,x||0,y||0]})}});H c},1l:d(3){3.4.1n=3.4.9.w-3.4.r.P;3.4.1g=3.4.9.h-3.4.r.Q;7(3.T.e.1b){W=3.T.e.z.A(3.17+1);7(W){3.4.9.w=(a(5(W).v(\'I\'))||0)+3.4.r.P;3.4.9.h=(a(5(W).v(\'16\'))||0)+3.4.r.Q}O=3.T.e.z.A(3.17-1);7(O){n X=a(5(O).v(\'I\'))||0;n Y=a(5(O).v(\'I\'))||0;3.4.9.x+=X;3.4.9.y+=Y;3.4.9.w-=X;3.4.9.h-=Y}}3.4.1G=3.4.9.w-3.4.r.P;3.4.1p=3.4.9.h-3.4.r.Q;7(3.4.8){3.4.13=((3.4.9.w-3.4.r.P)/3.4.8)||1;3.4.11=((3.4.9.h-3.4.r.Q)/3.4.8)||1;3.4.1o=3.4.1G/3.4.8;3.4.1j=3.4.1p/3.4.8}3.4.9.f=3.4.9.x-3.4.k.x;3.4.9.j=3.4.9.y-3.4.k.y;5.F.1T.v(\'1S\',\'1U\')},u:d(3,x,y){7(3.4.8){1q=a(x/3.4.1o);M=1q*G/3.4.8;1K=a(y/3.4.1j);K=1K*G/3.4.8}1x{M=a(x*G/3.4.1n);K=a(y*G/3.4.1g)}3.4.1A=[M||0,K||0,x||0,y||0];7(3.4.u)3.4.u.12(3,3.4.1A)},1I:d(14){1J=14.1R||14.2b||-1;2a(1J){B 29:5.b.t(6.l,[R,R]);E;B 28:5.b.t(6.l,[-R,-R]);E;B 2d:5.b.t(6.l,[-6.l.4.13||-1,0]);E;B 2h:5.b.t(6.l,[0,-6.l.4.11||-1]);E;B 2g:5.b.t(6.l,[6.l.4.13||1,0]);E;B 2f:5.F.t(6.l,[0,6.l.4.11||1]);E}},t:d(3,L){7(!3.4){H}3.4.r=5.1F(5.V.27(3),5.V.1s(3));3.4.k={x:a(5.v(3,\'I\'))||0,y:a(5.v(3,\'16\'))||0};3.4.10=5.v(3,\'L\');7(3.4.10!=\'1k\'&&3.4.10!=\'26\'){3.15.L=\'1k\'}5.F.1Z(3);5.b.1l(3);f=a(L[0])||0;j=a(L[1])||0;q=3.4.k.x+f;p=3.4.k.y+j;7(3.4.8){s=5.F.1Y.12(3,[q,p,f,j]);7(s.C==1H){f=s.f;j=s.j}q=3.4.k.x+f;p=3.4.k.y+j}s=5.F.1X.12(3,[q,p,f,j]);7(s&&s.C==1H){f=s.f;j=s.j}q=3.4.k.x+f;p=3.4.k.y+j;7(3.4.1z&&(3.4.u||3.4.J)){5.b.u(3,q,p)}q=!3.4.U||3.4.U==\'1W\'?q:3.4.k.x||0;p=!3.4.U||3.4.U==\'21\'?p:3.4.k.y||0;3.15.I=q+\'1C\';3.15.16=p+\'1C\'},1E:d(o){H 6.D(d(){7(6.1a==S||!o.1r||!5.V||!5.F||!5.22){H}m=5(o.1r,6);7(m.1w()==0){H}n g={23:\'24\',1z:S,u:o.u&&o.u.C==1y?o.u:1d,J:o.J&&o.J.C==1y?o.J:1d,1D:6,1v:o.1v||1i};7(o.8&&a(o.8)){g.8=a(o.8)||1;g.8=g.8>0?g.8:1}7(m.1w()==1)m.18(g);1x{5(m.A(0)).18(g);g.1D=1d;m.18(g)}m.25(5.b.1I);m.20(\'19\',5.b.19++);6.1a=S;6.e={};6.e.1u=g.1u;6.e.8=g.8;6.e.z=m;6.e.1b=o.1b?S:1i;1c=6;1c.e.z.D(d(1m){6.17=1m;6.T=1c});7(o.c&&o.c.C==1t){2e(i=o.c.1h-1;i>=0;i--){7(o.c[i].C==1t&&o.c[i].1h==2){1e=6.e.z.A(i);7(1e.2i){5.b.t(1e,o.c[i])}}}}})}};5.1N.1F({1Q:5.b.1E,1O:5.b.1B,1P:5.b.A});',62,143,'|||elm|dragCfg|jQuery|this|if|fractions|cont|parseInt|iSlider|values|function|slideCfg|dx|params|||dy|oR|dragElem|toDrag|var||ny|nx|oC|newCoords|dragmoveBy|onSlide|css||||sliders|get|case|constructor|each|break|iDrag|100|return|left|onChange|yproc|position|xproc|key|prev|wb|hb|2000|true|SliderContainer|axis|iUtil|next|prevLeft|prevTop|slider|oP|gy|apply|gx|event|style|top|SliderIteration|Draggable|tabindex|isSlider|restricted|sliderEl|null|el|sizes|containerMaxy|length|false|fracH|relative|modifyContainer|nr|containerMaxx|fracW|maxy|xfrac|accept|getSize|Array|onslide|opacity|size|else|Function|si|lastSi|set|px|handle|build|extend|maxx|Object|dragmoveByKey|pressedKey|yfrac|offsetLeft|offsetTop|fn|SliderSetValues|SliderGetValues|Slider|charCode|cursor|helper|default|offsetHeight|horizontally|fitToContainer|snapToGrid|getContainment|attr|vertically|iDrop|containment|parent|keydown|absolute|getPosition|36|35|switch|keyCode|offsetWidth|37|for|40|39|38|tagName'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/islideshow.js b/javascript/libs/jquery/min/interface/islideshow.js
new file mode 100644
index 0000000..beec60b
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/islideshow.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Slideshow
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ */
+
+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}('7.k={P:[],1O:O(){u.1t();5=u.14;p=7.E(5,\'p\');8(7.k.P[p]!=T){1k.1u(7.k.P[p])}f=5.4.s+1;8(5.4.e.A<f){f=1}e=7(\'g\',5.4.K);5.4.s=f;8(e.19()>0){e.1o(5.4.S,7.k.1j)}},20:O(){u.1t();5=u.14;p=7.E(5,\'p\');8(7.k.P[p]!=T){1k.1u(7.k.P[p])}f=5.4.s-1;e=7(\'g\',5.4.K);8(f<1){f=5.4.e.A}5.4.s=f;8(e.19()>0){e.1o(5.4.S,7.k.1j)}},1R:O(c){5=1B.1y(c);8(5.4.17){f=5.4.s;2k(f==5.4.s){f=1+C(2e.17()*5.4.e.A)}}B{f=5.4.s+1;8(5.4.e.A<f){f=1}}e=7(\'g\',5.4.K);5.4.s=f;8(e.19()>0){e.1o(5.4.S,7.k.1j)}},1d:O(o){12 5;8(o&&o.2m==2p){8(o.l){5=1B.1y(o.l.5);X=1k.2g.U.23("#");o.l.11=T;8(X.A==2){f=C(X[1]);1m=X[1].1Z(f,\'\');8(7.E(5,\'p\')!=1m){f=1}}B{f=1}}8(o.1f){o.1f.1t();5=o.1f.14.14;p=7.E(5,\'p\');8(7.k.P[p]!=T){1k.1u(7.k.P[p])}X=o.1f.U.23("#");f=C(X[1]);1m=X[1].1Z(f,\'\');8(7.E(5,\'p\')!=1m){f=1}}8(5.4.e.A<f||f<1){f=1}5.4.s=f;F=7.J.18(5);1T=7.J.2b(5);1X=7.J.26(5);8(5.4.v){5.4.v.o.9(\'q\',\'L\')}8(5.4.r){5.4.r.o.9(\'q\',\'L\')}8(5.4.l){y=C(1T.t)+C(1X.t);8(5.4.d){8(5.4.d.N==\'z\'){y+=5.4.d.D.G}B{F.h-=5.4.d.D.G}}8(5.4.j){8(5.4.j&&5.4.j.Y==\'z\'){y+=5.4.j.D.G}B{F.h-=5.4.j.D.G}}8(!5.4.1s){5.4.1W=o.l?o.l.V:(C(5.4.l.9(\'V\'))||0);5.4.1s=o.l?o.l.H:(C(5.4.l.9(\'H\'))||0)}5.4.l.9(\'z\',y+(F.h-5.4.1W)/2+\'n\');5.4.l.9(\'1h\',(F.1N-5.4.1s)/2+\'n\');5.4.l.9(\'q\',\'1x\')}e=7(\'g\',5.4.K);8(e.19()>0){e.1o(5.4.S,7.k.1j)}B{1l=7(\'a\',5.4.d.o).W(f-1);7(1l).16(5.4.d.Q);12 g=1J 1K();g.5=7.E(5,\'p\');g.f=f-1;g.I=5.4.e[5.4.s-1].I;8(g.1G){g.11=T;7.k.q.1U(g)}B{g.11=7.k.q}8(5.4.j){5.4.j.o.1w(5.4.e[f-1].15)}}}},1j:O(){5=u.14.14;5.4.K.9(\'q\',\'L\');8(5.4.d.Q){1l=7(\'a\',5.4.d.o).2c(5.4.d.Q).W(5.4.s-1);7(1l).16(5.4.d.Q)}12 g=1J 1K();g.5=7.E(5,\'p\');g.f=5.4.s-1;g.I=5.4.e[5.4.s-1].I;8(g.1G){g.11=T;7.k.q.1U(g)}B{g.11=7.k.q}8(5.4.j){5.4.j.o.1w(5.4.e[5.4.s-1].15)}},q:O(){5=1B.1y(u.5);8(5.4.v){5.4.v.o.9(\'q\',\'L\')}8(5.4.r){5.4.r.o.9(\'q\',\'L\')}F=7.J.18(5);y=0;8(5.4.d){8(5.4.d.N==\'z\'){y+=5.4.d.D.G}B{F.h-=5.4.d.D.G}}8(5.4.j){8(5.4.j&&5.4.j.Y==\'z\'){y+=5.4.j.D.G}B{F.h-=5.4.j.D.G}}2s=7(\'.1H\',5);y=y+(F.h-u.V)/2;x=(F.1N-u.H)/2;5.4.K.9(\'z\',y+\'n\').9(\'1h\',x+\'n\').1w(\'<g I="\'+u.I+\'" />\');5.4.K.2n(5.4.S);r=5.4.s+1;8(r>5.4.e.A){r=1}v=5.4.s-1;8(v<1){v=5.4.e.A}5.4.r.o.9(\'q\',\'1x\').9(\'z\',y+\'n\').9(\'1h\',x+2*u.H/3+\'n\').9(\'H\',u.H/3+\'n\').9(\'V\',u.V+\'n\').E(\'1p\',5.4.e[r-1].15);5.4.r.o.W(0).U=\'#\'+r+7.E(5,\'p\');5.4.v.o.9(\'q\',\'1x\').9(\'z\',y+\'n\').9(\'1h\',x+\'n\').9(\'H\',u.H/3+\'n\').9(\'V\',u.V+\'n\').E(\'1p\',5.4.e[v-1].15);5.4.v.o.W(0).U=\'#\'+v+7.E(5,\'p\')},25:O(o){8(!o||!o.m||7.k.P[o.m])1z;12 m=7(\'#\'+o.m);12 6=m.W(0);8(6.1a.M!=\'Z\'&&6.1a.M!=\'1Q\'){6.1a.M=\'1Q\'}6.1a.1M=\'1L\';8(m.19()==0)1z;6.4={};6.4.e=o.e?o.e:[];6.4.17=o.17&&o.17==2v||2i;1g=6.2t(\'2u\');28(i=0;i<1g.A;i++){13=6.4.e.A;6.4.e[13]={I:1g[i].I,15:1g[i].1p||1g[i].2l||\'\'}}8(6.4.e.A==0){1z}6.4.1I=7.2q(7.J.2r(6),7.J.18(6));6.4.1v=7.J.2b(6);6.4.1D=7.J.26(6);t=C(6.4.1v.t)+C(6.4.1D.t);b=C(6.4.1v.b)+C(6.4.1D.b);7(\'g\',6).2f();6.4.S=o.S?o.S:2d;8(o.N||o.1c||o.Q){6.4.d={};m.1i(\'<R 10="27"></R>\');6.4.d.o=7(\'.27\',6);8(o.1c){6.4.d.1c=o.1c;6.4.d.o.16(o.1c)}8(o.Q){6.4.d.Q=o.Q}6.4.d.o.9(\'M\',\'Z\').9(\'H\',6.4.1I.w+\'n\');8(o.N&&o.N==\'z\'){6.4.d.N=\'z\';6.4.d.o.9(\'z\',t+\'n\')}B{6.4.d.N=\'1b\';6.4.d.o.9(\'1b\',b+\'n\')}6.4.d.1r=o.1r?o.1r:\' \';28(12 i=0;i<6.4.e.A;i++){13=C(i)+1;6.4.d.o.1i(\'<a U="#\'+13+o.m+\'" 10="2j" 1p="\'+6.4.e[i].15+\'">\'+13+\'</a>\'+(13!=6.4.e.A?6.4.d.1r:\'\'))}7(\'a\',6.4.d.o).1C(\'1E\',O(){7.k.1d({1f:u})});6.4.d.D=7.J.18(6.4.d.o.W(0))}8(o.Y||o.1e){6.4.j={};m.1i(\'<R 10="29">&1F;</R>\');6.4.j.o=7(\'.29\',6);8(o.1e){6.4.j.1e=o.1e;6.4.j.o.16(o.1e)}6.4.j.o.9(\'M\',\'Z\').9(\'H\',6.4.1I.w+\'n\');8(o.Y&&o.Y==\'z\'){6.4.j.Y=\'z\';6.4.j.o.9(\'z\',(6.4.d&&6.4.d.N==\'z\'?6.4.d.D.G+t:t)+\'n\')}B{6.4.j.Y=\'1b\';6.4.j.o.9(\'1b\',(6.4.d&&6.4.d.N==\'1b\'?6.4.d.D.G+b:b)+\'n\')}6.4.j.D=7.J.18(6.4.j.o.W(0))}8(o.1n){6.4.r={1n:o.1n};m.1i(\'<a U="#2\'+o.m+\'" 10="1S">&1F;</a>\');6.4.r.o=7(\'.1S\',6);6.4.r.o.9(\'M\',\'Z\').9(\'q\',\'L\').9(\'1M\',\'1L\').9(\'1Y\',\'1P\').16(6.4.r.1n);6.4.r.o.1C(\'1E\',7.k.1O)}8(o.1q){6.4.v={1q:o.1q};m.1i(\'<a U="#0\'+o.m+\'" 10="1V">&1F;</a>\');6.4.v.o=7(\'.1V\',6);6.4.v.o.9(\'M\',\'Z\').9(\'q\',\'L\').9(\'1M\',\'1L\').9(\'1Y\',\'1P\').16(6.4.v.1q);6.4.v.o.1C(\'1E\',7.k.20)}m.22(\'<R 10="1H"></R>\');6.4.K=7(\'.1H\',6);6.4.K.9(\'M\',\'Z\').9(\'z\',\'24\').9(\'1h\',\'24\').9(\'q\',\'L\');8(o.l){m.22(\'<R 10="2a" 1a="q: L;"><g I="\'+o.l+\'" /></R>\');6.4.l=7(\'.2a\',6);6.4.l.9(\'M\',\'Z\');12 g=1J 1K();g.5=o.m;g.I=o.l;8(g.1G){g.11=T;7.k.1d({l:g})}B{g.11=O(){7.k.1d({l:u})}}}B{7.k.1d({m:6})}8(o.1A){21=C(o.1A)*2h}7.k.P[o.m]=o.1A?1k.2o(\'7.k.1R(\\\'\'+o.m+\'\\\')\',21):T}};7.5=7.k.25;',62,156,'||||ss|slideshow|el|jQuery|if|css||||slideslinks|images|slide|img|||slideCaption|islideshow|loader|container|px||id|display|nextslide|currentslide||this|prevslide||||top|length|else|parseInt|dimm|attr|slidePos|hb|width|src|iUtil|holder|none|position|linksPosition|function|slideshows|activeLinkClass|div|fadeDuration|null|href|height|get|url|captionPosition|absolute|class|onload|var|indic|parentNode|caption|addClass|random|getSize|size|style|bottom|linksClass|go|captionClass|link|imgs|left|append|showImage|window|lnk|show|nextslideClass|fadeOut|title|prevslideClass|linksSeparator|loaderWidth|blur|clearInterval|oPad|html|block|getElementById|return|autoplay|document|bind|oBor|click|nbsp|complete|slideshowHolder|oP|new|Image|hidden|overflow|wb|gonext|30px|relative|timer|slideshowNextSlide|slidePad|apply|slideshowPrevslide|loaderHeight|slideBor|fontSize|replace|goprev|time|prepend|split|0px|build|getBorder|slideshowLinks|for|slideshowCaption|slideshowLoader|getPadding|removeClass|500|Math|remove|location|1000|false|slideshowLink|while|alt|constructor|fadeIn|setInterval|Object|extend|getPosition|par|getElementsByTagName|IMG|true'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/isortables.js b/javascript/libs/jquery/min/interface/isortables.js
new file mode 100644
index 0000000..b10f8fd
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/isortables.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Sortables
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('3.4={17:[],H:{},d:6,T:n,1T:k(){5(3.f.j==n){D}m w,U,c,I;3.4.d.8(0).1U=3.f.j.9.14;w=3.4.d.8(0).L;w.M=\'1k\';3.4.d.1l=3.1i(3.S.1X(3.4.d.8(0)),3.S.1Y(3.4.d.8(0)));w.1V=3.f.j.9.1l.1r+\'1E\';w.27=3.f.j.9.1l.1h+\'1E\';U=3.S.20(3.f.j);w.1z=U.t;w.1C=U.r;w.1y=U.b;w.1Q=U.l;5(3.f.j.9.J==u){c=3.f.j.28(u);I=c.L;I.1z=\'13\';I.1C=\'13\';I.1y=\'13\';I.1Q=\'13\';I.M=\'1k\';3.4.d.24().18(c)}3(3.f.j).1x(3.4.d.8(0));3.f.j.L.M=\'1a\'},23:k(e){5(!e.9.1e&&3.15.1t.1K){5(e.9.P)e.9.P.22(j);3(e).21(\'25\',e.9.26||e.9.2a);3(e).1u();3(3.15.1t).1S(e)}3.4.d.29(e.9.14).2b(\'&1N;\');3.4.T=n;m w=3.4.d.8(0).L;w.M=\'1a\';3.4.d.1x(e);5(e.9.v>0){3(e).1Z(e.9.v)}3(\'1D\').18(3.4.d.8(0));m Y=[];m V=6;Z(m i=0;i<3.4.17.A;i++){m N=3.15.1W[3.4.17[i]].8(0);m p=3.E(N,\'p\');m X=3.4.1p(p);5(N.g.1q!=X.1b){N.g.1q=X.1b;5(V==6&&N.g.10){V=N.g.10}X.p=p;Y[Y.A]=X}}3.4.17=[];5(V!=6&&Y.A>0){V(Y)}},2e:k(e,o){5(!3.f.j)D;m B=6;m i=0;5(e.g.q.1s()>0){Z(i=e.g.q.1s();i>0;i--){5(e.g.q.8(i-1)!=3.f.j){5(!e.C.1g){5((e.g.q.8(i-1).K.y+e.g.q.8(i-1).K.1h/2)>3.f.j.9.1v){B=e.g.q.8(i-1)}W{2v}}W{5((e.g.q.8(i-1).K.x+e.g.q.8(i-1).K.1r/2)>3.f.j.9.2t&&(e.g.q.8(i-1).K.y+e.g.q.8(i-1).K.1h/2)>3.f.j.9.1v){B=e.g.q.8(i-1)}}}}}5(B&&3.4.T!=B){3.4.T=B;3(B).2x(3.4.d.8(0))}W 5(!B&&(3.4.T!=n||3.4.d.8(0).2B!=e)){3.4.T=n;3(e).18(3.4.d.8(0))}3.4.d.8(0).L.M=\'1k\'},2z:k(e){5(3.f.j==n){D}e.g.q.F(k(){7.K=3.1i(3.S.2A(7),3.S.2y(7))})},1p:k(s){m i;m h=\'\';m o={};5(s){5(3.4.H[s]){o[s]=[];3(\'#\'+s+\' .\'+3.4.H[s]).F(k(){5(h.A>0){h+=\'&\'}h+=s+\'[]=\'+3.E(7,\'p\');o[s][o[s].A]=3.E(7,\'p\')})}W{Z(a 1w s){5(3.4.H[s[a]]){o[s[a]]=[];3(\'#\'+s[a]+\' .\'+3.4.H[s[a]]).F(k(){5(h.A>0){h+=\'&\'}h+=s[a]+\'[]=\'+3.E(7,\'p\');o[s[a]][o[s[a]].A]=3.E(7,\'p\')})}}}}W{Z(i 1w 3.4.H){o[i]=[];3(\'#\'+i+\' .\'+3.4.H[i]).F(k(){5(h.A>0){h+=\'&\'}h+=i+\'[]=\'+3.E(7,\'p\');o[i][o[i].A]=3.E(7,\'p\')})}}D{1b:h,o:o}},1L:k(e){5(!e.2h){D}D 7.F(k(){5(!7.C||!3(e).2g(\'.\'+7.C.z))3(e).2d(7.C.z);3(e).1I(7.C.9)})},1M:k(){D 7.F(k(){3(\'.\'+7.C.z).1u();3(7).2c();7.C=n;7.1H=n})},1A:k(o){5(o.z&&3.S&&3.f&&3.15){5(!3.4.d){3(\'1D\',2i).18(\'<1P p="1R">&1N;</1P>\');3.4.d=3(\'#1R\');3.4.d.8(0).L.M=\'1a\'}7.2j({z:o.z,19:o.19?o.19:6,1c:o.1c?o.1c:6,G:o.G?o.G:6,1O:o.1O||o.2o,1J:o.1J||o.2n,1K:u,10:o.10||o.2m,v:o.v?o.v:6,J:o.J?u:6,1m:o.1m?o.1m:\'2k\'});D 7.F(k(){m 9={11:o.11?u:6,1G:1F,O:o.O?1B(o.O):6,14:o.G?o.G:6,v:o.v?o.v:6,1e:u,J:o.J?u:6,R:o.R?o.R:n,Q:o.Q?o.Q:n,12:o.12&&o.12.1o==1n?o.12:6,16:o.16&&o.16.1o==1n?o.16:6,P:o.P&&o.P.1o==1n?o.P:6,1d:/2l|2f/.2p(o.1d)?o.1d:6,1j:o.1j?2q(o.1j)||0:6,1f:o.1f?o.1f:6};3(\'.\'+o.z,7).1I(9);7.1H=u;7.C={z:o.z,11:o.11?u:6,1G:1F,O:o.O?1B(o.O):6,14:o.G?o.G:6,v:o.v?o.v:6,1e:u,J:o.J?u:6,R:o.R?o.R:n,Q:o.Q?o.Q:n,1g:o.1g?u:6,9:9}})}}};3.2w.1i({2s:3.4.1A,1S:3.4.1L,2r:3.4.1M});3.2u=3.4.1p;',62,162,'|||jQuery|iSort|if|false|this|get|dragCfg||||helper||iDrag|dropCfg|||dragged|function||var|null||id|el||||true|fx|shs|||accept|length|cur|sortCfg|return|attr|each|helperclass|collected|cs|ghosting|pos|style|display|iEL|opacity|onStop|containment|handle|iUtil|inFrontOf|margins|fnc|else|ser|ts|for|onChange|revert|onStart|0px|hpc|iDrop|onDrag|changed|append|activeclass|none|hash|hoverclass|axis|so|cursorAt|floats|hb|extend|snapDistance|block|oC|tolerance|Function|constructor|serialize|os|wb|size|overzone|DraggableDestroy|ny|in|after|marginBottom|marginTop|build|parseFloat|marginRight|body|px|3000|zindex|isSortable|Draggable|onOut|sortable|addItem|destroy|nbsp|onHover|div|marginLeft|sortHelper|SortableAddItem|start|className|width|zones|getPosition|getSize|fadeIn|getMargins|css|apply|check|empty|position|initialPosition|height|cloneNode|removeClass|oP|html|DroppableDestroy|addClass|checkhover|horizontally|is|childNodes|document|Droppable|intersect|vertically|onchange|onout|onhover|test|parseInt|SortableDestroy|Sortable|nx|SortSerialize|break|fn|before|getPositionLite|measure|getSizeLite|parentNode'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/itooltip.js b/javascript/libs/jquery/min/interface/itooltip.js
new file mode 100644
index 0000000..37f6687
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/itooltip.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * Tooltip
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('2.4={c:o,p:f,D:o,O:g(e){2.4.p=I;2.4.A(e,9,I)},L:g(e){5(2.4.c!=9)H;2.4.p=f;2.4.E(e,9)},A:g(e,3,p){5(2.4.c!=o)H;5(!3){3=9}2.4.c=3;8=2.1d(2.q.1c(3),2.q.10(3));r=2(3);b=r.v(\'b\');J=r.v(\'J\');5(b){2.4.D=b;r.v(\'b\',\'\');2(\'#12\').N(b);5(J)2(\'#W\').N(J.1j(\'1k://\',\'\'));U 2(\'#W\').N(\'\');a=2(\'#s\');5(3.7.d){a.P(0).d=3.7.d}U{a.P(0).d=\'\'}Q=2.q.10(a.P(0));11=p&&3.7.i==\'S\'?\'R\':3.7.i;1e(11){F\'B\':h=8.y-Q.X;l=8.x;t;F\'G\':h=8.y;l=8.x-Q.Z;t;F\'17\':h=8.y;l=8.x+8.Z;t;F\'S\':2(\'K\').z(\'u\',2.4.u);n=2.q.Y(e);h=n.y+15;l=n.x+15;t;1h:h=8.y+8.X;l=8.x;t}a.T({B:h+\'C\',G:l+\'C\'});5(3.7.w==f){a.A()}U{a.1o(3.7.w)}5(3.7.j)3.7.j.19(3);r.z(\'1a\',2.4.E).z(\'18\',2.4.L)}},u:g(e){5(2.4.c==o){2(\'K\').M(\'u\',2.4.u);H}n=2.q.Y(e);2(\'#s\').T({B:n.y+15+\'C\',G:n.x+15+\'C\'})},E:g(e,3){5(!3){3=9}5(2.4.p!=I&&2.4.c==3){2.4.c=o;2(\'#s\').1s(1);2(3).v(\'b\',2.4.D).M(\'1a\',2.4.E).M(\'18\',2.4.L);5(3.7.k)3.7.k.19(3);2.4.D=o}},13:g(6){5(!2.4.a){2(\'K\').1p(\'<m V="s"><m V="12"></m><m V="W"></m></m>\');2(\'#s\').T({i:\'1r\',1q:1u,1t:\'1m\'});2.4.a=I}H 9.1n(g(){5(2.v(9,\'b\')){9.7={i:/B|R|G|17|S/.1f(6.i)?6.i:\'R\',d:6.d?6.d:f,w:6.w?6.w:f,j:6.j&&6.j.16==14?6.j:f,k:6.k&&6.k.16==14?6.k:f};1l 3=2(9);3.z(\'1g\',2.4.A);3.z(\'O\',2.4.O)}})}};2.1i.1b=2.4.13;',62,93,'||jQuery|el|iTooltip|if|options|tooltipCFG|pos|this|helper|title|current|className||false|function|ny|position|onShow|onHide|nx|div|pointer|null|focused|iUtil|jEl|tooltipHelper|break|mousemove|attr|delay|||bind|show|top|px|oldTitle|hide|case|left|return|true|href|body|hidefocused|unbind|html|focus|get|helperSize|bottom|mouse|css|else|id|tooltipURL|hb|getPointer|wb|getSize|filteredPosition|tooltipTitle|build|Function||constructor|right|blur|apply|mouseout|ToolTip|getPosition|extend|switch|test|mouseover|default|fn|replace|http|var|none|each|fadeIn|append|zIndex|absolute|fadeOut|display|3000'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/ittabs.js b/javascript/libs/jquery/min/interface/ittabs.js
new file mode 100644
index 0000000..d6e8ff2
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/ittabs.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * TTabs
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ *
+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}('3.7={c:5(e){k=e.E||e.B||-1;4(k==9){4(h.b){h.b.C=f;h.b.F=8}n{e.y();e.u()}4(2.s){v.x.w().D="\\t";2.i=5(){2.j();2.i=N}}n 4(2.l){a=2.P;o=2.M;2.d=2.d.H(0,a)+"\\t"+2.d.K(o);2.l(a+1,a+1);2.j()}g 8}},m:5(){g 2.r(5(){4(2.6&&2.6==f){3(2).I(\'q\',3.7.c);2.6=8}})},p:5(){g 2.r(5(){4(2.J==\'L\'&&(!2.6||2.6==8)){3(2).Q(\'q\',3.7.c);2.6=f}})}};3.O.G({z:3.7.p,A:3.7.m});',53,53,'||this|jQuery|if|function|hasTabsEnabled|iTTabs|false||start|event|doTab|value||true|return|window|onblur|focus|pressedKey|setSelectionRange|destroy|else|end|build|keydown|each|createTextRange||stopPropagation|document|createRange|selection|preventDefault|EnableTabs|DisableTabs|keyCode|cancelBubble|text|charCode|returnValue|extend|substring|unbind|tagName|substr|TEXTAREA|selectionEnd|null|fn|selectionStart|bind'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/interface/iutil.js b/javascript/libs/jquery/min/interface/iutil.js
new file mode 100644
index 0000000..05a5b04
--- /dev/null
+++ b/javascript/libs/jquery/min/interface/iutil.js
@@ -0,0 +1,13 @@
+/**
+ * Interface Elements for jQuery
+ * utility function
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+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}('9.J={1C:6(e){4 x=0;4 y=0;4 7=e.Y;4 12=1H;c(9(e).8(\'A\')==\'T\'){4 N=7.B;4 Q=7.z;12=1f;7.B=\'1r\';7.A=\'1q\';7.z=\'1d\'}4 3=e;R(3){x+=3.1h+(3.O&&!9.1m.1i?d(3.O.17)||0:0);y+=3.1n+(3.O&&!9.1m.1i?d(3.O.18)||0:0);3=3.1t}3=e;R(3&&3.1e&&3.1e.16()!=\'f\'){x-=3.u||0;y-=3.F||0;3=3.1D}c(12==1f){7.A=\'T\';7.z=Q;7.B=N}a{x:x,y:y}},1B:6(3){4 x=0,y=0;R(3){x+=3.1h||0;y+=3.1n||0;3=3.1t}a{x:x,y:y}},1s:6(e){4 w=9.8(e,\'1E\');4 h=9.8(e,\'1G\');4 o=0;4 q=0;4 7=e.Y;c(9(e).8(\'A\')!=\'T\'){o=e.V;q=e.U}p{4 N=7.B;4 Q=7.z;7.B=\'1r\';7.A=\'1q\';7.z=\'1d\';o=e.V;q=e.U;7.A=\'T\';7.z=Q;7.B=N}a{w:w,h:h,o:o,q:q}},1F:6(3){a{o:3.V||0,q:3.U||0}},1I:6(e){4 h,w,C;c(e){w=e.I;h=e.G}p{C=5.j;w=1c.14||P.14||(C&&C.I)||5.f.I;h=1c.10||P.10||(C&&C.G)||5.f.G}a{w:w,h:h}},1p:6(e){4 t=0,l=0,w=0,h=0,s=0,E=0;c(e&&e.1u.16()!=\'f\'){t=e.F;l=e.u;w=e.15;h=e.W;s=0;E=0}p{c(5.j){t=5.j.F;l=5.j.u;w=5.j.15;h=5.j.W}p c(5.f){t=5.f.F;l=5.f.u;w=5.f.15;h=5.f.W}s=P.14||5.j.I||5.f.I||0;E=P.10||5.j.G||5.f.G||0}a{t:t,l:l,w:w,h:h,s:s,E:E}},1v:6(e,D){4 3=9(e);4 t=3.8(\'1w\')||\'\';4 r=3.8(\'1x\')||\'\';4 b=3.8(\'1A\')||\'\';4 l=3.8(\'1z\')||\'\';c(D)a{t:d(t)||0,r:d(r)||0,b:d(b)||0,l:d(l)};p a{t:t,r:r,b:b,l:l}},1y:6(e,D){4 3=9(e);4 t=3.8(\'1J\')||\'\';4 r=3.8(\'1M\')||\'\';4 b=3.8(\'27\')||\'\';4 l=3.8(\'28\')||\'\';c(D)a{t:d(t)||0,r:d(r)||0,b:d(b)||0,l:d(l)};p a{t:t,r:r,b:b,l:l}},26:6(e,D){4 3=9(e);4 t=3.8(\'18\')||\'\';4 r=3.8(\'22\')||\'\';4 b=3.8(\'23\')||\'\';4 l=3.8(\'17\')||\'\';c(D)a{t:d(t)||0,r:d(r)||0,b:d(b)||0,l:d(l)||0};p a{t:t,r:r,b:b,l:l}},2e:6(L){4 x=L.2d||(L.2b+(5.j.u||5.f.u))||0;4 y=L.2c||(L.29+(5.j.F||5.f.F))||0;a{x:x,y:y}},X:6(g,13){13(g);g=g.1O;R(g){9.J.X(g,13);g=g.1L}},1N:6(g){9.J.X(g,6(3){19(4 Z 1T 3){c(1Z 3[Z]===\'6\'){3[Z]=1a}}})},1X:6(3,H){4 k=9.J.1p();4 11=9.J.1s(3);c(!H||H==\'1W\')9(3).8({1U:k.t+((1g.1o(k.h,k.E)-k.t-11.q)/2)+\'1j\'});c(!H||H==\'20\')9(3).8({1Y:k.l+((1g.1o(k.w,k.s)-k.l-11.o)/2)+\'1j\'})},2f:6(3,1l){4 1k=9(\'25[@M*="S"]\',3||5),S;1k.24(6(){S=K.M;K.M=1l;K.Y.2a="21:1R.1P.1V(M=\'"+S+"\')"})}};[].1b||(1S.1Q.1b=6(v,n){n=(n==1a)?0:n;4 m=K.1K;19(4 i=n;i<m;i++)c(K[i]==v)a i;a-1});',62,140,'|||el|var|document|function|es|css|jQuery|return||if|parseInt||body|nodeEl|||documentElement|clientScroll||||wb|else|hb||iw||scrollLeft|||||position|display|visibility|de|toInteger|ih|scrollTop|clientHeight|axis|clientWidth|iUtil|this|event|src|oldVisibility|currentStyle|self|oldPosition|while|png|none|offsetHeight|offsetWidth|scrollHeight|traverseDOM|style|attr|innerHeight|windowSize|restoreStyles|func|innerWidth|scrollWidth|toLowerCase|borderLeftWidth|borderTopWidth|for|null|indexOf|window|absolute|tagName|true|Math|offsetLeft|opera|px|images|emptyGIF|browser|offsetTop|max|getScroll|block|hidden|getSize|offsetParent|nodeName|getMargins|marginTop|marginRight|getPadding|marginLeft|marginBottom|getPositionLite|getPosition|parentNode|width|getSizeLite|height|false|getClient|paddingTop|length|nextSibling|paddingRight|purgeEvents|firstChild|Microsoft|prototype|DXImageTransform|Array|in|top|AlphaImageLoader|vertically|centerEl|left|typeof|horizontally|progid|borderRightWidth|borderBottomWidth|each|img|getBorder|paddingBottom|paddingLeft|clientY|filter|clientX|pageY|pageX|getPointer|fixPNG'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/min/jquery b/javascript/libs/jquery/min/jquery
new file mode 100644
index 0000000..e171cc7
--- /dev/null
+++ b/javascript/libs/jquery/min/jquery
@@ -0,0 +1,32 @@
+/*
+ * 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/06/20 04:13:04 $
+ * $Rev: 5685 $
+ */
+(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem);}selector=[];}}else
+return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value===undefined)return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)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])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){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
+return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});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 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)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];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one)return value;values.push(value);}}return values;}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;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};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(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==i){target=this;--i;}for(;i<length;i++)if((options=arguments[i])!=null)for(var name in options){var src=target[name],copy=options[name];if(target===copy)continue;if(deep&&copy&&typeof copy=="object"&&!copy.nodeType)target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)target[name]=copy;}return target;};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)window.jQuery=_jQuery;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data){data=jQuery.trim(data);if(data){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));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];if(!id)id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])jQuery.cache[id]={};if(data!==undefined)jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])break;if(!name)jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)elem.removeAttribute(expando);}delete jQuery.cache[id];}},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;}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){if(jQuery.isFunction(value))value=value.call(elem,i);return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))elem.className+=(elem.className?" ":"")+className;});},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(" "):"";},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);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;function color(elem){if(!jQuery.browser.safari)return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=style[name];else if(defaultView.getComputedStyle){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);else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i<stack.length;i++)if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block";}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++)if(swap[i]!=null)stack[i].style.display=swap[i];}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];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}return ret;},clean:function(elems,context){var ret=[];context=context||document;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+='';if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes: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]);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){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem[name]=value;}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)elem.setAttribute(name,""+value);var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(msie&&name=="opacity"){if(set){elem.zoom=1;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;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++)if(array[i]===elem)return i;return-1;},merge:function(first,second){var i=0,elem,pos=first.length;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=[];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=[];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();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({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){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)this.parentNode.removeChild(this);}},empty:function(){jQuery(">*",this).remove();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){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});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];},":":{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;},"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:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},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";},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");},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:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,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){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();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;t=jQuery.trim(t.replace(re,""));foundToken=true;}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}if(m[1]==".")r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];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(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}if(t)ret=[];if(ret&&context==ret[0])ret.shift();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;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){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);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;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;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;}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+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}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;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
+for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];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];}}});}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){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){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;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]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;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){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){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(withinElement(event,this))return true;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(withinElement(event,this))return true;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){var args=arguments,i=1;while(i<args.length)jQuery.event.proxy(fn,args[i++]);return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.bind('mouseenter',fnOver).bind('mouseleave',fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)fn.call(document,jQuery);else
+jQuery.readyList.push(function(){return fn.call(this,jQuery);});return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}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;}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;}jQuery.ready();})();}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){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode;}catch(error){parent=elem;}return parent==elem;};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind();});jQuery.fn.extend({_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(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):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();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}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:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string")s.data=jQuery.param(s.data);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";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head)head.removeChild(script);};}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;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;if(!jsonp){var done=false;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);return undefined;}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username)xhr.open(type,s.url,s.async,s.username,s.password);else
+xhr.open(type,s.url,s.async);try{if(s.data)xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false;}if(s.global)jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;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"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success();}else
+jQuery.handleError(s,xhr,status);complete();if(s.async)xhr=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xhr){xhr.abort();if(!requestDone)onreadystatechange("timeout");}},s.timeout);}try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xhr,s]);}function complete(){if(s.complete)s.complete(xhr,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");}return xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)jQuery.event.trigger("ajaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");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";if(filter)data=filter(data,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else
+for(var j in a)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 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");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();},_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"){opt.display=jQuery.css(this,"display");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";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
+e.custom(start,val,"");}});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(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});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;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={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);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block";},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;},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);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block";}if(this.options.hide)this.elem.style.display="none";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)this.options.complete.call(this.elem);return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,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;}}});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";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}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]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}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);}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br);};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);};});})(); \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.blind.min.js b/javascript/libs/jquery/min/ui/effects.blind.min.js
new file mode 100644
index 0000000..4a1a7d3
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.blind.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.blind=function(B){return this.queue(function(){var D=A(this),C=["position","top","left"];var H=A.effects.setMode(D,B.options.mode||"hide");var G=B.options.direction||"vertical";A.effects.save(D,C);D.show();var J=A.effects.createWrapper(D).css({overflow:"hidden"});var E=(G=="vertical")?"height":"width";var I=(G=="vertical")?J.height():J.width();if(H=="show"){J.css(E,0)}var F={};F[E]=H=="show"?I:0;J.animate(F,B.duration,B.options.easing,function(){if(H=="hide"){D.hide()}A.effects.restore(D,C);A.effects.removeWrapper(D);if(B.callback){B.callback.apply(D[0],arguments)}D.dequeue()})})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.bounce.min.js b/javascript/libs/jquery/min/ui/effects.bounce.min.js
new file mode 100644
index 0000000..e6e8ac5
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.bounce.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.bounce=function(B){return this.queue(function(){var E=A(this),K=["position","top","left"];var J=A.effects.setMode(E,B.options.mode||"effect");var M=B.options.direction||"up";var C=B.options.distance||20;var D=B.options.times||5;var G=B.duration||250;if(/show|hide/.test(J)){K.push("opacity")}A.effects.save(E,K);E.show();A.effects.createWrapper(E);var F=(M=="up"||M=="down")?"top":"left";var O=(M=="up"||M=="left")?"pos":"neg";var C=B.options.distance||(F=="top"?E.outerHeight({margin:true})/3:E.outerWidth({margin:true})/3);if(J=="show"){E.css("opacity",0).css(F,O=="pos"?-C:C)}if(J=="hide"){C=C/(D*2)}if(J!="hide"){D--}if(J=="show"){var H={opacity:1};H[F]=(O=="pos"?"+=":"-=")+C;E.animate(H,G/2,B.options.easing);C=C/2;D--}for(var I=0;I<D;I++){var N={},L={};N[F]=(O=="pos"?"-=":"+=")+C;L[F]=(O=="pos"?"+=":"-=")+C;E.animate(N,G/2,B.options.easing).animate(L,G/2,B.options.easing);C=(J=="hide")?C*2:C/2}if(J=="hide"){var H={opacity:0};H[F]=(O=="pos"?"-=":"+=")+C;E.animate(H,G/2,B.options.easing,function(){E.hide();A.effects.restore(E,K);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}})}else{var N={},L={};N[F]=(O=="pos"?"-=":"+=")+C;L[F]=(O=="pos"?"+=":"-=")+C;E.animate(N,G/2,B.options.easing).animate(L,G/2,B.options.easing,function(){A.effects.restore(E,K);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}})}E.queue("fx",function(){E.dequeue()});E.dequeue()})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.clip.min.js b/javascript/libs/jquery/min/ui/effects.clip.min.js
new file mode 100644
index 0000000..2b6ecf8
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.clip.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.clip=function(B){return this.queue(function(){var D=A(this),C=["position","top","left","width","height"];var H=A.effects.setMode(D,B.options.mode||"hide");var G=B.options.direction||"vertical";A.effects.save(D,C);D.show();A.effects.createWrapper(D).css({overflow:"hidden"});var E={size:(G=="vertical")?"height":"width",position:(G=="vertical")?"top":"left"};var I=(G=="vertical")?D.height():D.width();if(H=="show"){D.css(E.size,0);D.css(E.position,I/2)}var F={};F[E.size]=H=="show"?I:0;F[E.position]=H=="show"?0:I/2;D.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){D.hide()}A.effects.restore(D,C);A.effects.removeWrapper(D);if(B.callback){B.callback.apply(this,arguments)}D.dequeue()}})})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.core.min.js b/javascript/libs/jquery/min/ui/effects.core.min.js
new file mode 100644
index 0000000..7186c37
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.core.min.js
@@ -0,0 +1 @@
+(function(C){C.effects=C.effects||{};C.extend(C.effects,{save:function(F,G){for(var E=0;E<G.length;E++){if(G[E]!==null){C.data(F[0],"ec.storage."+G[E],F[0].style[G[E]])}}},restore:function(F,G){for(var E=0;E<G.length;E++){if(G[E]!==null){F.css(G[E],C.data(F[0],"ec.storage."+G[E]))}}},setMode:function(E,F){if(F=="toggle"){F=E.is(":hidden")?"show":"hide"}return F},getBaseline:function(F,G){var H,E;switch(F[0]){case"top":H=0;break;case"middle":H=0.5;break;case"bottom":H=1;break;default:H=F[0]/G.height}switch(F[1]){case"left":E=0;break;case"center":E=0.5;break;case"right":E=1;break;default:E=F[1]/G.width}return{x:E,y:H}},createWrapper:function(F){if(F.parent().attr("id")=="fxWrapper"){return F}var E={width:F.outerWidth({margin:true}),height:F.outerHeight({margin:true}),"float":F.css("float")};F.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var I=F.parent();if(F.css("position")=="static"){I.css({position:"relative"});F.css({position:"relative"})}else{var H=parseInt(F.css("top"),10);if(isNaN(H)){H="auto"}var G=parseInt(F.css("left"),10);if(isNaN(H)){G="auto"}I.css({position:F.css("position"),top:H,left:G,zIndex:F.css("z-index")}).show();F.css({position:"relative",top:0,left:0})}I.css(E);return I},removeWrapper:function(E){if(E.parent().attr("id")=="fxWrapper"){return E.parent().replaceWith(E)}return E},setTransition:function(F,G,E,H){H=H||{};C.each(G,function(J,I){unit=F.cssUnit(I);if(unit[0]>0){H[I]=unit[0]*E+unit[1]}});return H},animateClass:function(G,H,J,I){var E=(typeof J=="function"?J:(I?I:null));var F=(typeof J=="object"?J:null);return this.each(function(){var O={};var M=C(this);var N=M.attr("style")||"";if(typeof N=="object"){N=N["cssText"]}if(G.toggle){M.hasClass(G.toggle)?G.remove=G.toggle:G.add=G.toggle}var K=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.addClass(G.add)}if(G.remove){M.removeClass(G.remove)}var L=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.removeClass(G.add)}if(G.remove){M.addClass(G.remove)}for(var P in L){if(typeof L[P]!="function"&&L[P]&&P.indexOf("Moz")==-1&&P.indexOf("length")==-1&&L[P]!=K[P]&&(P.match(/color/i)||(!P.match(/color/i)&&!isNaN(parseInt(L[P],10))))&&(K.position!="static"||(K.position=="static"&&!P.match(/left|top|bottom|right/)))){O[P]=L[P]}}M.animate(O,H,F,function(){if(typeof C(this).attr("style")=="object"){C(this).attr("style")["cssText"]="";C(this).attr("style")["cssText"]=N}else{C(this).attr("style",N)}if(G.add){C(this).addClass(G.add)}if(G.remove){C(this).removeClass(G.remove)}if(E){E.apply(this,arguments)}})})}});C.fn.extend({_show:C.fn.show,_hide:C.fn.hide,__toggle:C.fn.toggle,_addClass:C.fn.addClass,_removeClass:C.fn.removeClass,_toggleClass:C.fn.toggleClass,effect:function(E,G,F,H){return C.effects[E]?C.effects[E].call(this,{method:E,options:G||{},duration:F,callback:H}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._show.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="show";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._hide.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="hide";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="toggle";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},addClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{add:F},E,H,G]):this._addClass(F)},removeClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{remove:F},E,H,G]):this._removeClass(F)},toggleClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{toggle:F},E,H,G]):this._toggleClass(F)},morph:function(E,G,F,I,H){return C.effects.animateClass.apply(this,[{add:G,remove:E},F,I,H])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(E){var F=this.css(E),G=[];C.each(["em","px","%","pt"],function(H,I){if(F.indexOf(I)>0){G=[parseFloat(F),I]}});return G}});jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(F,E){jQuery.fx.step[E]=function(G){if(G.state==0){G.start=D(G.elem,E);G.end=B(G.end)}G.elem.style[E]="rgb("+[Math.max(Math.min(parseInt((G.pos*(G.end[0]-G.start[0]))+G.start[0]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[1]-G.start[1]))+G.start[1]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[2]-G.start[2]))+G.start[2]),255),0)].join(",")+")"}});function B(F){var E;if(F&&F.constructor==Array&&F.length==3){return F}if(E=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(F)){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3])]}if(E=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(F)){return[parseFloat(E[1])*2.55,parseFloat(E[2])*2.55,parseFloat(E[3])*2.55]}if(E=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(F)){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}if(E=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(F)){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}if(E=/rgba\(0, 0, 0, 0\)/.exec(F)){return A["transparent"]}return A[jQuery.trim(F).toLowerCase()]}function D(G,E){var F;do{F=jQuery.curCSS(G,E);if(F!=""&&F!="transparent"||jQuery.nodeName(G,"body")){break}E="backgroundColor"}while(G=G.parentNode);return B(F)}var A={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(F,G,E,I,H){return jQuery.easing[jQuery.easing.def](F,G,E,I,H)},easeInQuad:function(F,G,E,I,H){return I*(G/=H)*G+E},easeOutQuad:function(F,G,E,I,H){return -I*(G/=H)*(G-2)+E},easeInOutQuad:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G+E}return -I/2*((--G)*(G-2)-1)+E},easeInCubic:function(F,G,E,I,H){return I*(G/=H)*G*G+E},easeOutCubic:function(F,G,E,I,H){return I*((G=G/H-1)*G*G+1)+E},easeInOutCubic:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G+E}return I/2*((G-=2)*G*G+2)+E},easeInQuart:function(F,G,E,I,H){return I*(G/=H)*G*G*G+E},easeOutQuart:function(F,G,E,I,H){return -I*((G=G/H-1)*G*G*G-1)+E},easeInOutQuart:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G+E}return -I/2*((G-=2)*G*G*G-2)+E},easeInQuint:function(F,G,E,I,H){return I*(G/=H)*G*G*G*G+E},easeOutQuint:function(F,G,E,I,H){return I*((G=G/H-1)*G*G*G*G+1)+E},easeInOutQuint:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G*G+E}return I/2*((G-=2)*G*G*G*G+2)+E},easeInSine:function(F,G,E,I,H){return -I*Math.cos(G/H*(Math.PI/2))+I+E},easeOutSine:function(F,G,E,I,H){return I*Math.sin(G/H*(Math.PI/2))+E},easeInOutSine:function(F,G,E,I,H){return -I/2*(Math.cos(Math.PI*G/H)-1)+E},easeInExpo:function(F,G,E,I,H){return(G==0)?E:I*Math.pow(2,10*(G/H-1))+E},easeOutExpo:function(F,G,E,I,H){return(G==H)?E+I:I*(-Math.pow(2,-10*G/H)+1)+E},easeInOutExpo:function(F,G,E,I,H){if(G==0){return E}if(G==H){return E+I}if((G/=H/2)<1){return I/2*Math.pow(2,10*(G-1))+E}return I/2*(-Math.pow(2,-10*--G)+2)+E},easeInCirc:function(F,G,E,I,H){return -I*(Math.sqrt(1-(G/=H)*G)-1)+E},easeOutCirc:function(F,G,E,I,H){return I*Math.sqrt(1-(G=G/H-1)*G)+E},easeInOutCirc:function(F,G,E,I,H){if((G/=H/2)<1){return -I/2*(Math.sqrt(1-G*G)-1)+E}return I/2*(Math.sqrt(1-(G-=2)*G)+1)+E},easeInElastic:function(F,H,E,L,K){var I=1.70158;var J=0;var G=L;if(H==0){return E}if((H/=K)==1){return E+L}if(!J){J=K*0.3}if(G<Math.abs(L)){G=L;var I=J/4}else{var I=J/(2*Math.PI)*Math.asin(L/G)}return -(G*Math.pow(2,10*(H-=1))*Math.sin((H*K-I)*(2*Math.PI)/J))+E},easeOutElastic:function(F,H,E,L,K){var I=1.70158;var J=0;var G=L;if(H==0){return E}if((H/=K)==1){return E+L}if(!J){J=K*0.3}if(G<Math.abs(L)){G=L;var I=J/4}else{var I=J/(2*Math.PI)*Math.asin(L/G)}return G*Math.pow(2,-10*H)*Math.sin((H*K-I)*(2*Math.PI)/J)+L+E},easeInOutElastic:function(F,H,E,L,K){var I=1.70158;var J=0;var G=L;if(H==0){return E}if((H/=K/2)==2){return E+L}if(!J){J=K*(0.3*1.5)}if(G<Math.abs(L)){G=L;var I=J/4}else{var I=J/(2*Math.PI)*Math.asin(L/G)}if(H<1){return -0.5*(G*Math.pow(2,10*(H-=1))*Math.sin((H*K-I)*(2*Math.PI)/J))+E}return G*Math.pow(2,-10*(H-=1))*Math.sin((H*K-I)*(2*Math.PI)/J)*0.5+L+E},easeInBack:function(F,G,E,J,I,H){if(H==undefined){H=1.70158}return J*(G/=I)*G*((H+1)*G-H)+E},easeOutBack:function(F,G,E,J,I,H){if(H==undefined){H=1.70158}return J*((G=G/I-1)*G*((H+1)*G+H)+1)+E},easeInOutBack:function(F,G,E,J,I,H){if(H==undefined){H=1.70158}if((G/=I/2)<1){return J/2*(G*G*(((H*=(1.525))+1)*G-H))+E}return J/2*((G-=2)*G*(((H*=(1.525))+1)*G+H)+2)+E},easeInBounce:function(F,G,E,I,H){return I-jQuery.easing.easeOutBounce(F,H-G,0,I,H)+E},easeOutBounce:function(F,G,E,I,H){if((G/=H)<(1/2.75)){return I*(7.5625*G*G)+E}else{if(G<(2/2.75)){return I*(7.5625*(G-=(1.5/2.75))*G+0.75)+E}else{if(G<(2.5/2.75)){return I*(7.5625*(G-=(2.25/2.75))*G+0.9375)+E}else{return I*(7.5625*(G-=(2.625/2.75))*G+0.984375)+E}}}},easeInOutBounce:function(F,G,E,I,H){if(G<H/2){return jQuery.easing.easeInBounce(F,G*2,0,I,H)*0.5+E}return jQuery.easing.easeOutBounce(F,G*2-H,0,I,H)*0.5+I*0.5+E}})})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.drop.min.js b/javascript/libs/jquery/min/ui/effects.drop.min.js
new file mode 100644
index 0000000..a00c79c
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.drop.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.drop=function(B){return this.queue(function(){var E=A(this),D=["position","top","left","opacity"];var I=A.effects.setMode(E,B.options.mode||"hide");var H=B.options.direction||"left";A.effects.save(E,D);E.show();A.effects.createWrapper(E);var F=(H=="up"||H=="down")?"top":"left";var C=(H=="up"||H=="left")?"pos":"neg";var J=B.options.distance||(F=="top"?E.outerHeight({margin:true})/2:E.outerWidth({margin:true})/2);if(I=="show"){E.css("opacity",0).css(F,C=="pos"?-J:J)}var G={opacity:I=="show"?1:0};G[F]=(I=="show"?(C=="pos"?"+=":"-="):(C=="pos"?"-=":"+="))+J;E.animate(G,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(I=="hide"){E.hide()}A.effects.restore(E,D);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}E.dequeue()}})})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.explode.min.js b/javascript/libs/jquery/min/ui/effects.explode.min.js
new file mode 100644
index 0000000..3cbf3be
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.explode.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.explode=function(B){return this.queue(function(){var I=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;var E=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;B.options.mode=B.options.mode=="toggle"?(A(this).is(":visible")?"hide":"show"):B.options.mode;var H=A(this).show().css("visibility","hidden");var J=H.offset();J.top-=parseInt(H.css("marginTop"))||0;J.left-=parseInt(H.css("marginLeft"))||0;var G=H.outerWidth(true);var C=H.outerHeight(true);for(var F=0;F<I;F++){for(var D=0;D<E;D++){H.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-D*(G/E),top:-F*(C/I)}).parent().addClass("effects-explode").css({position:"absolute",overflow:"hidden",width:G/E,height:C/I,left:J.left+D*(G/E)+(B.options.mode=="show"?(D-Math.floor(E/2))*(G/E):0),top:J.top+F*(C/I)+(B.options.mode=="show"?(F-Math.floor(I/2))*(C/I):0),opacity:B.options.mode=="show"?0:1}).animate({left:J.left+D*(G/E)+(B.options.mode=="show"?0:(D-Math.floor(E/2))*(G/E)),top:J.top+F*(C/I)+(B.options.mode=="show"?0:(F-Math.floor(I/2))*(C/I)),opacity:B.options.mode=="show"?1:0},B.duration||500)}}setTimeout(function(){B.options.mode=="show"?H.css({visibility:"visible"}):H.css({visibility:"visible"}).hide();if(B.callback){B.callback.apply(H[0])}H.dequeue();A(".effects-explode").remove()},B.duration||500)})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.fold.min.js b/javascript/libs/jquery/min/ui/effects.fold.min.js
new file mode 100644
index 0000000..f3b04c4
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.fold.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.fold=function(B){return this.queue(function(){var E=A(this),H=["position","top","left"];var G=A.effects.setMode(E,B.options.mode||"hide");var K=B.options.size||15;A.effects.save(E,H);E.show();var C=A.effects.createWrapper(E).css({overflow:"hidden"});var F=(G=="show")?["width","height"]:["height","width"];var D=(G=="show")?[C.width(),C.height()]:[C.height(),C.width()];if(G=="show"){C.css({height:K,width:0})}var J={},I={};J[F[0]]=G=="show"?D[0]:K;I[F[1]]=G=="show"?D[1]:0;C.animate(J,B.duration/2,B.options.easing).animate(I,B.duration/2,B.options.easing,function(){if(G=="hide"){E.hide()}A.effects.restore(E,H);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(E[0],arguments)}E.dequeue()})})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.highlight.min.js b/javascript/libs/jquery/min/ui/effects.highlight.min.js
new file mode 100644
index 0000000..d330418
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.highlight.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.highlight=function(B){return this.queue(function(){var E=A(this),D=["backgroundImage","backgroundColor","opacity"];var H=A.effects.setMode(E,B.options.mode||"show");var C=B.options.color||"#ffff99";var G=E.css("backgroundColor");A.effects.save(E,D);E.show();E.css({backgroundImage:"none",backgroundColor:C});var F={backgroundColor:G};if(H=="hide"){F["opacity"]=0}E.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){E.hide()}A.effects.restore(E,D);if(H=="show"&&jQuery.browser.msie){this.style.removeAttribute("filter")}if(B.callback){B.callback.apply(this,arguments)}E.dequeue()}})})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.pulsate.min.js b/javascript/libs/jquery/min/ui/effects.pulsate.min.js
new file mode 100644
index 0000000..8e29ced
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.pulsate.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.pulsate=function(B){return this.queue(function(){var D=A(this);var F=A.effects.setMode(D,B.options.mode||"show");var E=B.options.times||5;if(F=="hide"){E--}if(D.is(":hidden")){D.css("opacity",0);D.show();D.animate({opacity:1},B.duration/2,B.options.easing);E=E-2}for(var C=0;C<E;C++){D.animate({opacity:0},B.duration/2,B.options.easing).animate({opacity:1},B.duration/2,B.options.easing)}if(F=="hide"){D.animate({opacity:0},B.duration/2,B.options.easing,function(){D.hide();if(B.callback){B.callback.apply(this,arguments)}})}else{D.animate({opacity:0},B.duration/2,B.options.easing).animate({opacity:1},B.duration/2,B.options.easing,function(){if(B.callback){B.callback.apply(this,arguments)}})}D.queue("fx",function(){D.dequeue()});D.dequeue()})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.scale.min.js b/javascript/libs/jquery/min/ui/effects.scale.min.js
new file mode 100644
index 0000000..4680a9e
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.scale.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.puff=function(B){return this.queue(function(){var F=A(this);var C=A.extend(true,{},B);var H=A.effects.setMode(F,B.options.mode||"hide");var G=parseInt(B.options.percent)||150;C.fade=true;var E={height:F.height(),width:F.width()};var D=G/100;F.from=(H=="hide")?E:{height:E.height*D,width:E.width*D};C.from=F.from;C.percent=(H=="hide")?G:100;C.mode=H;F.effect("scale",C,B.duration,B.callback);F.dequeue()})};A.effects.scale=function(B){return this.queue(function(){var C=A(this);var K=A.extend(true,{},B);var E=A.effects.setMode(C,B.options.mode||"effect");var G=parseInt(B.options.percent)||(parseInt(B.options.percent)==0?0:(E=="hide"?0:100));var I=B.options.direction||"both";var J=B.options.origin;if(E!="effect"){J=J||["middle","center"];K.restore=true}var D={height:C.height(),width:C.width()};C.from=B.options.from||(E=="show"?{height:0,width:0}:D);var H={y:I!="horizontal"?(G/100):1,x:I!="vertical"?(G/100):1};C.to={height:D.height*H.y,width:D.width*H.x};if(J){var F=A.effects.getBaseline(J,D);C.from.top=(D.height-C.from.height)*F.y;C.from.left=(D.width-C.from.width)*F.x;C.to.top=(D.height-C.to.height)*F.y;C.to.left=(D.width-C.to.width)*F.x}if(B.options.fade){if(E=="show"){C.from.opacity=0;C.to.opacity=1}if(E=="hide"){C.from.opacity=1;C.to.opacity=0}}K.from=C.from;K.to=C.to;K.mode=E;C.effect("size",K,B.duration,B.callback);C.dequeue()})};A.effects.size=function(B){return this.queue(function(){var C=A(this),M=["position","top","left","width","height","overflow","opacity"];var L=["position","overflow","opacity"];var I=["width","height","overflow"];var N=["fontSize"];var J=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var F=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var G=A.effects.setMode(C,B.options.mode||"effect");var H=B.options.restore||false;var E=B.options.scale||"both";var D={height:C.height(),width:C.width()};C.from=B.options.from||D;C.to=B.options.to||D;var K={from:{y:C.from.height/D.height,x:C.from.width/D.width},to:{y:C.to.height/D.height,x:C.to.width/D.width}};if(E=="box"||E=="both"){if(K.from.y!=K.to.y){M=M.concat(J);C.from=A.effects.setTransition(C,J,K.from.y,C.from);C.to=A.effects.setTransition(C,J,K.to.y,C.to)}if(K.from.x!=K.to.x){M=M.concat(F);C.from=A.effects.setTransition(C,F,K.from.x,C.from);C.to=A.effects.setTransition(C,F,K.to.x,C.to)}}if(E=="content"||E=="both"){if(K.from.y!=K.to.y){M=M.concat(N);C.from=A.effects.setTransition(C,N,K.from.y,C.from);C.to=A.effects.setTransition(C,N,K.to.y,C.to)}}A.effects.save(C,H?M:L);C.show();A.effects.createWrapper(C);C.css("overflow","hidden").css(C.from);if(E=="content"||E=="both"){J=J.concat(["marginTop","marginBottom"]).concat(N);F=F.concat(["marginLeft","marginRight"]);I=M.concat(J).concat(F);C.find("*[width]").each(function(){child=A(this);if(H){A.effects.save(child,I)}var O={height:child.height(),width:child.width()};child.from={height:O.height*K.from.y,width:O.width*K.from.x};child.to={height:O.height*K.to.y,width:O.width*K.to.x};if(K.from.y!=K.to.y){child.from=A.effects.setTransition(child,J,K.from.y,child.from);child.to=A.effects.setTransition(child,J,K.to.y,child.to)}if(K.from.x!=K.to.x){child.from=A.effects.setTransition(child,F,K.from.x,child.from);child.to=A.effects.setTransition(child,F,K.to.x,child.to)}child.css(child.from);child.animate(child.to,B.duration,B.options.easing,function(){if(H){A.effects.restore(child,I)}})})}C.animate(C.to,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(G=="hide"){C.hide()}A.effects.restore(C,H?M:L);A.effects.removeWrapper(C);if(B.callback){B.callback.apply(this,arguments)}C.dequeue()}})})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.shake.min.js b/javascript/libs/jquery/min/ui/effects.shake.min.js
new file mode 100644
index 0000000..48d320c
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.shake.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.shake=function(B){return this.queue(function(){var E=A(this),K=["position","top","left"];var J=A.effects.setMode(E,B.options.mode||"effect");var M=B.options.direction||"left";var C=B.options.distance||20;var D=B.options.times||3;var G=B.duration||B.options.duration||140;A.effects.save(E,K);E.show();A.effects.createWrapper(E);var F=(M=="up"||M=="down")?"top":"left";var O=(M=="up"||M=="left")?"pos":"neg";var H={},N={},L={};H[F]=(O=="pos"?"-=":"+=")+C;N[F]=(O=="pos"?"+=":"-=")+C*2;L[F]=(O=="pos"?"-=":"+=")+C*2;E.animate(H,G,B.options.easing);for(var I=1;I<D;I++){E.animate(N,G,B.options.easing).animate(L,G,B.options.easing)}E.animate(N,G,B.options.easing).animate(H,G/2,B.options.easing,function(){A.effects.restore(E,K);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}});E.queue("fx",function(){E.dequeue()});E.dequeue()})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.slide.min.js b/javascript/libs/jquery/min/ui/effects.slide.min.js
new file mode 100644
index 0000000..5cd6d99
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.slide.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.slide=function(B){return this.queue(function(){var E=A(this),D=["position","top","left"];var I=A.effects.setMode(E,B.options.mode||"show");var H=B.options.direction||"left";A.effects.save(E,D);E.show();A.effects.createWrapper(E).css({overflow:"hidden"});var F=(H=="up"||H=="down")?"top":"left";var C=(H=="up"||H=="left")?"pos":"neg";var J=B.options.distance||(F=="top"?E.outerHeight({margin:true}):E.outerWidth({margin:true}));if(I=="show"){E.css(F,C=="pos"?-J:J)}var G={};G[F]=(I=="show"?(C=="pos"?"+=":"-="):(C=="pos"?"-=":"+="))+J;E.animate(G,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(I=="hide"){E.hide()}A.effects.restore(E,D);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}E.dequeue()}})})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/effects.transfer.min.js b/javascript/libs/jquery/min/ui/effects.transfer.min.js
new file mode 100644
index 0000000..3cf3fc9
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/effects.transfer.min.js
@@ -0,0 +1 @@
+(function(A){A.effects.transfer=function(B){return this.queue(function(){var E=A(this);var G=A.effects.setMode(E,B.options.mode||"effect");var F=A(B.options.to);var C=E.offset();var D=A('<div class="ui-effects-transfer"></div>').appendTo(document.body);if(B.options.className){D.addClass(B.options.className)}D.addClass(B.options.className);D.css({top:C.top,left:C.left,height:E.outerHeight(true)-parseInt(D.css("borderTopWidth"))-parseInt(D.css("borderBottomWidth")),width:E.outerWidth(true)-parseInt(D.css("borderLeftWidth"))-parseInt(D.css("borderRightWidth")),position:"absolute"});C=F.offset();animation={top:C.top,left:C.left,height:F.outerHeight()-parseInt(D.css("borderTopWidth"))-parseInt(D.css("borderBottomWidth")),width:F.outerWidth()-parseInt(D.css("borderLeftWidth"))-parseInt(D.css("borderRightWidth"))};D.animate(animation,B.duration,B.options.easing,function(){D.remove();if(B.callback){B.callback.apply(E[0],arguments)}E.dequeue()})})}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/jquery.ui.all.min.js b/javascript/libs/jquery/min/ui/jquery.ui.all.min.js
new file mode 100644
index 0000000..33014fb
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/jquery.ui.all.min.js
@@ -0,0 +1 @@
+(function(C){C.ui={plugin:{add:function(E,F,H){var G=C.ui[E].prototype;for(var D in H){G.plugins[D]=G.plugins[D]||[];G.plugins[D].push([F,H[D]])}},call:function(D,F,E){var H=D.plugins[F];if(!H){return }for(var G=0;G<H.length;G++){if(D.options[H[G][0]]){H[G][1].apply(D.element,E)}}}},cssCache:{},css:function(D){if(C.ui.cssCache[D]){return C.ui.cssCache[D]}var E=C('<div class="ui-resizable-gen">').addClass(D).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");C.ui.cssCache[D]=!!((!(/auto|default/).test(E.css("cursor"))||(/^[1-9]/).test(E.css("height"))||(/^[1-9]/).test(E.css("width"))||!(/none/).test(E.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(E.css("backgroundColor"))));try{C("body").get(0).removeChild(E.get(0))}catch(F){}return C.ui.cssCache[D]},disableSelection:function(D){D.unselectable="on";D.onselectstart=function(){return false};if(D.style){D.style.MozUserSelect="none"}},enableSelection:function(D){D.unselectable="off";D.onselectstart=function(){return true};if(D.style){D.style.MozUserSelect=""}},hasScroll:function(G,E){var D=/top/.test(E||"top")?"scrollTop":"scrollLeft",F=false;if(G[D]>0){return true}G[D]=1;F=G[D]>0?true:false;G[D]=0;return F}};var B=C.fn.remove;C.fn.remove=function(){C("*",this).add(this).trigger("remove");return B.apply(this,arguments)};function A(E,F,G){var D=C[E][F].getter||[];D=(typeof D=="string"?D.split(/,?\s+/):D);return(C.inArray(G,D)!=-1)}C.widget=function(E,D){var F=E.split(".")[0];E=E.split(".")[1];C.fn[E]=function(J){var H=(typeof J=="string"),I=Array.prototype.slice.call(arguments,1);if(H&&A(F,E,J)){var G=C.data(this[0],E);return(G?G[J].apply(G,I):undefined)}return this.each(function(){var K=C.data(this,E);if(H&&K&&C.isFunction(K[J])){K[J].apply(K,I)}else{if(!H){C.data(this,E,new C[F][E](this,J))}}})};C[F][E]=function(I,H){var G=this;this.widgetName=E;this.widgetBaseClass=F+"-"+E;this.options=C.extend({disabled:false},C[F][E].defaults,H);this.element=C(I).bind("setData."+E,function(L,J,K){return G.setData(J,K)}).bind("getData."+E,function(K,J){return G.getData(J)}).bind("remove",function(){return G.destroy()});this.init()};C[F][E].prototype=C.extend({},C.widget.prototype,D)};C.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName)},getData:function(D){return this.options[D]},setData:function(D,E){this.options[D]=E;if(D=="disabled"){this.element[E?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this.setData("disabled",false)},disable:function(){this.setData("disabled",true)}};C.ui.mouse={mouseInit:function(){var D=this;this.element.bind("mousedown."+this.widgetName,function(E){return D.mouseDown(E)});if(C.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},mouseDestroy:function(){this.element.unbind("."+this.widgetName);(C.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},mouseDown:function(F){(this._mouseStarted&&this.mouseUp(F));this._mouseDownEvent=F;var E=this,G=(F.which==1),D=(typeof this.options.cancel=="string"?C(F.target).is(this.options.cancel):false);if(!G||D||!this.mouseCapture(F)){return true}this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){E._mouseDelayMet=true},this.options.delay)}if(this.mouseDistanceMet(F)&&this.mouseDelayMet(F)){this._mouseStarted=(this.mouseStart(F)!==false);if(!this._mouseStarted){F.preventDefault();return true}}this._mouseMoveDelegate=function(H){return E.mouseMove(H)};this._mouseUpDelegate=function(H){return E.mouseUp(H)};C(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},mouseMove:function(D){if(C.browser.msie&&!D.button){return this.mouseUp(D)}if(this._mouseStarted){this.mouseDrag(D);return false}if(this.mouseDistanceMet(D)&&this.mouseDelayMet(D)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,D)!==false);(this._mouseStarted?this.mouseDrag(D):this.mouseUp(D))}return !this._mouseStarted},mouseUp:function(D){C(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(D)}return false},mouseDistanceMet:function(D){return(Math.max(Math.abs(this._mouseDownEvent.pageX-D.pageX),Math.abs(this._mouseDownEvent.pageY-D.pageY))>=this.options.distance)},mouseDelayMet:function(D){return this._mouseDelayMet},mouseStart:function(D){},mouseDrag:function(D){},mouseStop:function(D){},mouseCapture:function(D){return true}};C.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(A){A.widget("ui.draggable",A.extend(A.ui.mouse,{init:function(){var B=this.options;if(B.helper=="original"&&!(/(relative|absolute|fixed)/).test(this.element.css("position"))){this.element.css("position","relative")}this.element.addClass("ui-draggable");(B.disabled&&this.element.addClass("ui-draggable-disabled"));this.mouseInit()},mouseStart:function(F){var H=this.options;if(this.helper||H.disabled||A(F.target).is(".ui-resizable-handle")){return false}var C=!this.options.handle||!A(this.options.handle,this.element).length?true:false;A(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==F.target){C=true}});if(!C){return false}if(A.ui.ddmanager){A.ui.ddmanager.current=this}this.helper=A.isFunction(H.helper)?A(H.helper.apply(this.element[0],[F])):(H.helper=="clone"?this.element.clone():this.element);if(!this.helper.parents("body").length){this.helper.appendTo((H.appendTo=="parent"?this.element[0].parentNode:H.appendTo))}if(this.helper[0]!=this.element[0]&&!(/(fixed|absolute)/).test(this.helper.css("position"))){this.helper.css("position","absolute")}this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)};this.cssPosition=this.helper.css("position");this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:F.pageX-this.offset.left,top:F.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var B=this.offsetParent.offset();if(this.offsetParent[0]==document.body&&A.browser.mozilla){B={top:0,left:0}}this.offset.parent={top:B.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:B.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};var E=this.element.position();this.offset.relative=this.cssPosition=="relative"?{top:E.top-(parseInt(this.helper.css("top"),10)||0)+this.offsetParent[0].scrollTop,left:E.left-(parseInt(this.helper.css("left"),10)||0)+this.offsetParent[0].scrollLeft}:{top:0,left:0};this.originalPosition=this.generatePosition(F);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(H.cursorAt){if(H.cursorAt.left!=undefined){this.offset.click.left=H.cursorAt.left+this.margins.left}if(H.cursorAt.right!=undefined){this.offset.click.left=this.helperProportions.width-H.cursorAt.right+this.margins.left}if(H.cursorAt.top!=undefined){this.offset.click.top=H.cursorAt.top+this.margins.top}if(H.cursorAt.bottom!=undefined){this.offset.click.top=this.helperProportions.height-H.cursorAt.bottom+this.margins.top}}if(H.containment){if(H.containment=="parent"){H.containment=this.helper[0].parentNode}if(H.containment=="document"||H.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,A(H.containment=="document"?document:window).width()-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(A(H.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(H.containment)){var D=A(H.containment)[0];var G=A(H.containment).offset();this.containment=[G.left+(parseInt(A(D).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left,G.top+(parseInt(A(D).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top,G.left+Math.max(D.scrollWidth,D.offsetWidth)-(parseInt(A(D).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),G.top+Math.max(D.scrollHeight,D.offsetHeight)-(parseInt(A(D).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}}this.propagate("start",F);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(A.ui.ddmanager&&!H.dropBehaviour){A.ui.ddmanager.prepareOffsets(this,F)}this.helper.addClass("ui-draggable-dragging");this.mouseDrag(F);return true},convertPositionTo:function(C,D){if(!D){D=this.position}var B=C=="absolute"?1:-1;return{top:(D.top+this.offset.relative.top*B+this.offset.parent.top*B-(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop)*B+(this.cssPosition=="fixed"?this.offsetParent[0].scrollTop:0)*B+this.margins.top*B),left:(D.left+this.offset.relative.left*B+this.offset.parent.left*B-(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)*B+(this.cssPosition=="fixed"?this.offsetParent[0].scrollLeft:0)*B+this.margins.left*B)}},generatePosition:function(E){var F=this.options;var B={top:(E.pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop)-(this.cssPosition=="fixed"?this.offsetParent[0].scrollTop:0)),left:(E.pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)-(this.cssPosition=="fixed"?this.offsetParent[0].scrollLeft:0))};if(!this.originalPosition){return B}if(this.containment){if(B.left<this.containment[0]){B.left=this.containment[0]}if(B.top<this.containment[1]){B.top=this.containment[1]}if(B.left>this.containment[2]){B.left=this.containment[2]}if(B.top>this.containment[3]){B.top=this.containment[3]}}if(F.grid){var D=this.originalPosition.top+Math.round((B.top-this.originalPosition.top)/F.grid[1])*F.grid[1];B.top=this.containment?(!(D<this.containment[1]||D>this.containment[3])?D:(!(D<this.containment[1])?D-F.grid[1]:D+F.grid[1])):D;var C=this.originalPosition.left+Math.round((B.left-this.originalPosition.left)/F.grid[0])*F.grid[0];B.left=this.containment?(!(C<this.containment[0]||C>this.containment[2])?C:(!(C<this.containment[0])?C-F.grid[0]:C+F.grid[0])):C}return B},mouseDrag:function(B){this.position=this.generatePosition(B);this.positionAbs=this.convertPositionTo("absolute");this.position=this.propagate("drag",B)||this.position;if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(A.ui.ddmanager){A.ui.ddmanager.drag(this,B)}return false},mouseStop:function(C){if(A.ui.ddmanager&&!this.options.dropBehaviour){A.ui.ddmanager.drop(this,C)}if(this.options.revert){var B=this;A(this.helper).animate(this.originalPosition,parseInt(this.options.revert,10)||500,function(){B.propagate("stop",C);B.clear()})}else{this.propagate("stop",C);this.clear()}return false},clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.options.helper!="original"&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},plugins:{},uiHash:function(B){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,options:this.options}},propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.uiHash()]);return this.element.triggerHandler(C=="drag"?C:"drag"+C,[B,this.uiHash()],this.options[C])},destroy:function(){if(!this.element.data("draggable")){return }this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable");this.mouseDestroy()}}));A.extend(A.ui.draggable,{defaults:{appendTo:"parent",axis:false,cancel:":input,button",delay:0,distance:0,helper:"original"}});A.ui.plugin.add("draggable","cursor",{start:function(D,C){var B=A("body");if(B.css("cursor")){C.options._cursor=B.css("cursor")}B.css("cursor",C.options.cursor)},stop:function(C,B){if(B.options._cursor){A("body").css("cursor",B.options._cursor)}}});A.ui.plugin.add("draggable","zIndex",{start:function(D,C){var B=A(C.helper);if(B.css("zIndex")){C.options._zIndex=B.css("zIndex")}B.css("zIndex",C.options.zIndex)},stop:function(C,B){if(B.options._zIndex){A(B.helper).css("zIndex",B.options._zIndex)}}});A.ui.plugin.add("draggable","opacity",{start:function(D,C){var B=A(C.helper);if(B.css("opacity")){C.options._opacity=B.css("opacity")}B.css("opacity",C.options.opacity)},stop:function(C,B){if(B.options._opacity){A(B.helper).css("opacity",B.options._opacity)}}});A.ui.plugin.add("draggable","iframeFix",{start:function(C,B){A(B.options.iframeFix===true?"iframe":B.options.iframeFix).each(function(){A('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(A(this).offset()).appendTo("body")})},stop:function(C,B){A("div.DragDropIframeFix").each(function(){this.parentNode.removeChild(this)})}});A.ui.plugin.add("draggable","scroll",{start:function(D,C){var E=C.options;var B=A(this).data("draggable");E.scrollSensitivity=E.scrollSensitivity||20;E.scrollSpeed=E.scrollSpeed||20;B.overflowY=function(F){do{if(/auto|scroll/.test(F.css("overflow"))||(/auto|scroll/).test(F.css("overflow-y"))){return F}F=F.parent()}while(F[0].parentNode);return A(document)}(this);B.overflowX=function(F){do{if(/auto|scroll/.test(F.css("overflow"))||(/auto|scroll/).test(F.css("overflow-x"))){return F}F=F.parent()}while(F[0].parentNode);return A(document)}(this);if(B.overflowY[0]!=document&&B.overflowY[0].tagName!="HTML"){B.overflowYOffset=B.overflowY.offset()}if(B.overflowX[0]!=document&&B.overflowX[0].tagName!="HTML"){B.overflowXOffset=B.overflowX.offset()}},drag:function(D,C){var E=C.options;var B=A(this).data("draggable");if(B.overflowY[0]!=document&&B.overflowY[0].tagName!="HTML"){if((B.overflowYOffset.top+B.overflowY[0].offsetHeight)-D.pageY<E.scrollSensitivity){B.overflowY[0].scrollTop=B.overflowY[0].scrollTop+E.scrollSpeed}if(D.pageY-B.overflowYOffset.top<E.scrollSensitivity){B.overflowY[0].scrollTop=B.overflowY[0].scrollTop-E.scrollSpeed}}else{if(D.pageY-A(document).scrollTop()<E.scrollSensitivity){A(document).scrollTop(A(document).scrollTop()-E.scrollSpeed)}if(A(window).height()-(D.pageY-A(document).scrollTop())<E.scrollSensitivity){A(document).scrollTop(A(document).scrollTop()+E.scrollSpeed)}}if(B.overflowX[0]!=document&&B.overflowX[0].tagName!="HTML"){if((B.overflowXOffset.left+B.overflowX[0].offsetWidth)-D.pageX<E.scrollSensitivity){B.overflowX[0].scrollLeft=B.overflowX[0].scrollLeft+E.scrollSpeed}if(D.pageX-B.overflowXOffset.left<E.scrollSensitivity){B.overflowX[0].scrollLeft=B.overflowX[0].scrollLeft-E.scrollSpeed}}else{if(D.pageX-A(document).scrollLeft()<E.scrollSensitivity){A(document).scrollLeft(A(document).scrollLeft()-E.scrollSpeed)}if(A(window).width()-(D.pageX-A(document).scrollLeft())<E.scrollSensitivity){A(document).scrollLeft(A(document).scrollLeft()+E.scrollSpeed)}}}});A.ui.plugin.add("draggable","snap",{start:function(D,C){var B=A(this).data("draggable");B.snapElements=[];A(C.options.snap===true?".ui-draggable":C.options.snap).each(function(){var F=A(this);var E=F.offset();if(this!=B.element[0]){B.snapElements.push({item:this,width:F.outerWidth(),height:F.outerHeight(),top:E.top,left:E.left})}})},drag:function(J,N){var I=A(this).data("draggable");var L=N.options.snapTolerance||20;var D=N.absolutePosition.left,C=D+I.helperProportions.width,P=N.absolutePosition.top,O=P+I.helperProportions.height;for(var H=I.snapElements.length-1;H>=0;H--){var E=I.snapElements[H].left,B=E+I.snapElements[H].width,R=I.snapElements[H].top,M=R+I.snapElements[H].height;if(!((E-L<D&&D<B+L&&R-L<P&&P<M+L)||(E-L<D&&D<B+L&&R-L<O&&O<M+L)||(E-L<C&&C<B+L&&R-L<P&&P<M+L)||(E-L<C&&C<B+L&&R-L<O&&O<M+L))){continue}if(N.options.snapMode!="inner"){var K=Math.abs(R-O)<=20;var Q=Math.abs(M-P)<=20;var G=Math.abs(E-C)<=20;var F=Math.abs(B-D)<=20;if(K){N.position.top=I.convertPositionTo("relative",{top:R-I.helperProportions.height,left:0}).top}if(Q){N.position.top=I.convertPositionTo("relative",{top:M,left:0}).top}if(G){N.position.left=I.convertPositionTo("relative",{top:0,left:E-I.helperProportions.width}).left}if(F){N.position.left=I.convertPositionTo("relative",{top:0,left:B}).left}}if(N.options.snapMode!="outer"){var K=Math.abs(R-P)<=20;var Q=Math.abs(M-O)<=20;var G=Math.abs(E-D)<=20;var F=Math.abs(B-C)<=20;if(K){N.position.top=I.convertPositionTo("relative",{top:R,left:0}).top}if(Q){N.position.top=I.convertPositionTo("relative",{top:M-I.helperProportions.height,left:0}).top}if(G){N.position.left=I.convertPositionTo("relative",{top:0,left:E}).left}if(F){N.position.left=I.convertPositionTo("relative",{top:0,left:B-I.helperProportions.width}).left}}}}});A.ui.plugin.add("draggable","connectToSortable",{start:function(D,C){var B=A(this).data("draggable");B.sortables=[];A(C.options.connectToSortable).each(function(){if(A.data(this,"sortable")){var E=A.data(this,"sortable");B.sortables.push({instance:E,shouldRevert:E.options.revert});E.refresh();E.propagate("activate",D,B)}})},stop:function(D,C){var B=A(this).data("draggable");A.each(B.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;B.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance.mouseStop(D);this.instance.element.triggerHandler("sortreceive",[D,A.extend(this.instance.ui(),{sender:B.element})],this.instance.options["receive"]);this.instance.options.helper=this.instance.options._helper}else{this.instance.propagate("deactivate",D,B)}})},drag:function(F,E){var D=A(this).data("draggable"),B=this;var C=function(K){var H=K.left,J=H+K.width,I=K.top,G=I+K.height;return(H<(this.positionAbs.left+this.offset.click.left)&&(this.positionAbs.left+this.offset.click.left)<J&&I<(this.positionAbs.top+this.offset.click.top)&&(this.positionAbs.top+this.offset.click.top)<G)};A.each(D.sortables,function(G){if(C.call(D,this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=A(B).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return E.helper[0]};F.target=this.instance.currentItem[0];this.instance.mouseCapture(F,true,true);this.instance.mouseStart(F,true,true);this.instance.offset.click.top=D.offset.click.top;this.instance.offset.click.left=D.offset.click.left;this.instance.offset.parent.left-=D.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=D.offset.parent.top-this.instance.offset.parent.top;D.propagate("toSortable",F)}if(this.instance.currentItem){this.instance.mouseDrag(F)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance.mouseStop(F,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder.remove();D.propagate("fromSortable",F)}}})}});A.ui.plugin.add("draggable","stack",{start:function(D,B){var C=A.makeArray(A(B.options.stack.group)).sort(function(F,E){return(parseInt(A(F).css("zIndex"),10)||B.options.stack.min)-(parseInt(A(E).css("zIndex"),10)||B.options.stack.min)});A(C).each(function(E){this.style.zIndex=B.options.stack.min+E});this[0].style.zIndex=B.options.stack.min+C.length}})})(jQuery);(function(A){A.widget("ui.droppable",{init:function(){this.element.addClass("ui-droppable");this.isover=0;this.isout=1;var C=this.options,B=C.accept;C=A.extend(C,{accept:C.accept&&C.accept.constructor==Function?C.accept:function(D){return A(D).is(B)}});this.proportions={width:this.element.outerWidth(),height:this.element.outerHeight()};A.ui.ddmanager.droppables.push(this)},plugins:{},ui:function(B){return{draggable:(B.currentItem||B.element),helper:B.helper,position:B.position,absolutePosition:B.positionAbs,options:this.options,element:this.element}},destroy:function(){var B=A.ui.ddmanager.droppables;for(var C=0;C<B.length;C++){if(B[C]==this){B.splice(C,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},over:function(C){var B=A.ui.ddmanager.current;if(!B||(B.currentItem||B.element)[0]==this.element[0]){return }if(this.options.accept.call(this.element,(B.currentItem||B.element))){A.ui.plugin.call(this,"over",[C,this.ui(B)]);this.element.triggerHandler("dropover",[C,this.ui(B)],this.options.over)}},out:function(C){var B=A.ui.ddmanager.current;if(!B||(B.currentItem||B.element)[0]==this.element[0]){return }if(this.options.accept.call(this.element,(B.currentItem||B.element))){A.ui.plugin.call(this,"out",[C,this.ui(B)]);this.element.triggerHandler("dropout",[C,this.ui(B)],this.options.out)}},drop:function(D,C){var B=C||A.ui.ddmanager.current;if(!B||(B.currentItem||B.element)[0]==this.element[0]){return false}var E=false;this.element.find(".ui-droppable").not(".ui-draggable-dragging").each(function(){var F=A.data(this,"droppable");if(F.options.greedy&&A.ui.intersect(B,A.extend(F,{offset:F.element.offset()}),F.options.tolerance)){E=true;return false}});if(E){return false}if(this.options.accept.call(this.element,(B.currentItem||B.element))){A.ui.plugin.call(this,"drop",[D,this.ui(B)]);this.element.triggerHandler("drop",[D,this.ui(B)],this.options.drop);return true}return false},activate:function(C){var B=A.ui.ddmanager.current;A.ui.plugin.call(this,"activate",[C,this.ui(B)]);if(B){this.element.triggerHandler("dropactivate",[C,this.ui(B)],this.options.activate)}},deactivate:function(C){var B=A.ui.ddmanager.current;A.ui.plugin.call(this,"deactivate",[C,this.ui(B)]);if(B){this.element.triggerHandler("dropdeactivate",[C,this.ui(B)],this.options.deactivate)}}});A.extend(A.ui.droppable,{defaults:{disabled:false,tolerance:"intersect"}});A.ui.intersect=function(L,F,J){if(!F.offset){return false}var D=(L.positionAbs||L.position.absolute).left,C=D+L.helperProportions.width,I=(L.positionAbs||L.position.absolute).top,H=I+L.helperProportions.height;var E=F.offset.left,B=E+F.proportions.width,K=F.offset.top,G=K+F.proportions.height;switch(J){case"fit":return(E<D&&C<B&&K<I&&H<G);break;case"intersect":return(E<D+(L.helperProportions.width/2)&&C-(L.helperProportions.width/2)<B&&K<I+(L.helperProportions.height/2)&&H-(L.helperProportions.height/2)<G);break;case"pointer":return(E<((L.positionAbs||L.position.absolute).left+(L.clickOffset||L.offset.click).left)&&((L.positionAbs||L.position.absolute).left+(L.clickOffset||L.offset.click).left)<B&&K<((L.positionAbs||L.position.absolute).top+(L.clickOffset||L.offset.click).top)&&((L.positionAbs||L.position.absolute).top+(L.clickOffset||L.offset.click).top)<G);break;case"touch":return((I>=K&&I<=G)||(H>=K&&H<=G)||(I<K&&H>G))&&((D>=E&&D<=B)||(C>=E&&C<=B)||(D<E&&C>B));break;default:return false;break}};A.ui.ddmanager={current:null,droppables:[],prepareOffsets:function(D,F){var B=A.ui.ddmanager.droppables;var E=F?F.type:null;for(var C=0;C<B.length;C++){if(B[C].options.disabled||(D&&!B[C].options.accept.call(B[C].element,(D.currentItem||D.element)))){continue}B[C].visible=B[C].element.is(":visible");if(!B[C].visible){continue}B[C].offset=B[C].element.offset();B[C].proportions={width:B[C].element.outerWidth(),height:B[C].element.outerHeight()};if(E=="dragstart"||E=="sortactivate"){B[C].activate.call(B[C],F)}}},drop:function(B,C){var D=false;A.each(A.ui.ddmanager.droppables,function(){if(!this.options){return }if(!this.options.disabled&&this.visible&&A.ui.intersect(B,this,this.options.tolerance)){D=this.drop.call(this,C)}if(!this.options.disabled&&this.visible&&this.options.accept.call(this.element,(B.currentItem||B.element))){this.isout=1;this.isover=0;this.deactivate.call(this,C)}});return D},drag:function(B,C){if(B.options.refreshPositions){A.ui.ddmanager.prepareOffsets(B,C)}A.each(A.ui.ddmanager.droppables,function(){if(this.disabled||this.greedyChild||!this.visible){return }var E=A.ui.intersect(B,this,this.options.tolerance);var G=!E&&this.isover==1?"isout":(E&&this.isover==0?"isover":null);if(!G){return }var F;if(this.options.greedy){var D=this.element.parents(".ui-droppable:eq(0)");if(D.length){F=A.data(D[0],"droppable");F.greedyChild=(G=="isover"?1:0)}}if(F&&G=="isover"){F["isover"]=0;F["isout"]=1;F.out.call(F,C)}this[G]=1;this[G=="isout"?"isover":"isout"]=0;this[G=="isover"?"over":"out"].call(this,C);if(F&&G=="isout"){F["isout"]=0;F["isover"]=1;F.over.call(F,C)}})}};A.ui.plugin.add("droppable","activeClass",{activate:function(C,B){A(this).addClass(B.options.activeClass)},deactivate:function(C,B){A(this).removeClass(B.options.activeClass)},drop:function(C,B){A(this).removeClass(B.options.activeClass)}});A.ui.plugin.add("droppable","hoverClass",{over:function(C,B){A(this).addClass(B.options.hoverClass)},out:function(C,B){A(this).removeClass(B.options.hoverClass)},drop:function(C,B){A(this).removeClass(B.options.hoverClass)}})})(jQuery);(function(A){A.widget("ui.resizable",A.extend(A.ui.mouse,{init:function(){var M=this,N=this.options;var Q=this.element.css("position");this.element.addClass("ui-resizable").css({position:/static/.test(Q)?"relative":Q});A.extend(N,{_aspectRatio:!!(N.aspectRatio),proxy:N.proxy||N.ghost||N.animate?N.proxy||"proxy":null,knobHandles:N.knobHandles===true?"ui-resizable-knob-handle":N.knobHandles});var H="1px solid #DEDEDE";N.defaultTheme={"ui-resizable":{display:"block"},"ui-resizable-handle":{position:"absolute",background:"#F2F2F2",fontSize:"0.1px"},"ui-resizable-n":{cursor:"n-resize",height:"4px",left:"0px",right:"0px",borderTop:H},"ui-resizable-s":{cursor:"s-resize",height:"4px",left:"0px",right:"0px",borderBottom:H},"ui-resizable-e":{cursor:"e-resize",width:"4px",top:"0px",bottom:"0px",borderRight:H},"ui-resizable-w":{cursor:"w-resize",width:"4px",top:"0px",bottom:"0px",borderLeft:H},"ui-resizable-se":{cursor:"se-resize",width:"4px",height:"4px",borderRight:H,borderBottom:H},"ui-resizable-sw":{cursor:"sw-resize",width:"4px",height:"4px",borderBottom:H,borderLeft:H},"ui-resizable-ne":{cursor:"ne-resize",width:"4px",height:"4px",borderRight:H,borderTop:H},"ui-resizable-nw":{cursor:"nw-resize",width:"4px",height:"4px",borderLeft:H,borderTop:H}};N.knobTheme={"ui-resizable-handle":{background:"#F2F2F2",border:"1px solid #808080",height:"8px",width:"8px"},"ui-resizable-n":{cursor:"n-resize",top:"0px",left:"45%"},"ui-resizable-s":{cursor:"s-resize",bottom:"0px",left:"45%"},"ui-resizable-e":{cursor:"e-resize",right:"0px",top:"45%"},"ui-resizable-w":{cursor:"w-resize",left:"0px",top:"45%"},"ui-resizable-se":{cursor:"se-resize",right:"0px",bottom:"0px"},"ui-resizable-sw":{cursor:"sw-resize",left:"0px",bottom:"0px"},"ui-resizable-nw":{cursor:"nw-resize",left:"0px",top:"0px"},"ui-resizable-ne":{cursor:"ne-resize",right:"0px",top:"0px"}};N._nodeName=this.element[0].nodeName;if(N._nodeName.match(/canvas|textarea|input|select|button|img/i)){var B=this.element;if(/relative/.test(B.css("position"))&&A.browser.opera){B.css({position:"relative",top:"auto",left:"auto"})}B.wrap(A('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:B.css("position"),width:B.outerWidth(),height:B.outerHeight(),top:B.css("top"),left:B.css("left")}));var J=this.element;this.element=this.element.parent();this.element.data("resizable",this);this.element.css({marginLeft:J.css("marginLeft"),marginTop:J.css("marginTop"),marginRight:J.css("marginRight"),marginBottom:J.css("marginBottom")});J.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});if(A.browser.safari&&N.preventDefault){J.css("resize","none")}N.proportionallyResize=J.css({position:"static",zoom:1,display:"block"});this.element.css({margin:J.css("margin")});this._proportionallyResize()}if(!N.handles){N.handles=!A(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}}if(N.handles.constructor==String){N.zIndex=N.zIndex||1000;if(N.handles=="all"){N.handles="n,e,s,w,se,sw,ne,nw"}var O=N.handles.split(",");N.handles={};var G={handle:"position: absolute; display: none; overflow:hidden;",n:"top: 0pt; width:100%;",e:"right: 0pt; height:100%;",s:"bottom: 0pt; width:100%;",w:"left: 0pt; height:100%;",se:"bottom: 0pt; right: 0px;",sw:"bottom: 0pt; left: 0px;",ne:"top: 0pt; right: 0px;",nw:"top: 0pt; left: 0px;"};for(var R=0;R<O.length;R++){var S=A.trim(O[R]),L=N.defaultTheme,F="ui-resizable-"+S,C=!A.ui.css(F)&&!N.knobHandles,P=A.ui.css("ui-resizable-knob-handle"),T=A.extend(L[F],L["ui-resizable-handle"]),D=A.extend(N.knobTheme[F],!P?N.knobTheme["ui-resizable-handle"]:{});var K=/sw|se|ne|nw/.test(S)?{zIndex:++N.zIndex}:{};var I=(C?G[S]:""),E=A(['<div class="ui-resizable-handle ',F,'" style="',I,G.handle,'"></div>'].join("")).css(K);N.handles[S]=".ui-resizable-"+S;this.element.append(E.css(C?T:{}).css(N.knobHandles?D:{}).addClass(N.knobHandles?"ui-resizable-knob-handle":"").addClass(N.knobHandles))}if(N.knobHandles){this.element.addClass("ui-resizable-knob").css(!A.ui.css("ui-resizable-knob")?{}:{})}}this._renderAxis=function(Y){Y=Y||this.element;for(var V in N.handles){if(N.handles[V].constructor==String){N.handles[V]=A(N.handles[V],this.element).show()}if(N.transparent){N.handles[V].css({opacity:0})}if(this.element.is(".ui-wrapper")&&N._nodeName.match(/textarea|input|select|button/i)){var W=A(N.handles[V],this.element),X=0;X=/sw|ne|nw|se|n|s/.test(V)?W.outerHeight():W.outerWidth();var U=["padding",/ne|nw|n/.test(V)?"Top":/se|sw|s/.test(V)?"Bottom":/^e$/.test(V)?"Right":"Left"].join("");if(!N.transparent){Y.css(U,X)}this._proportionallyResize()}if(!A(N.handles[V]).length){continue}}};this._renderAxis(this.element);N._handles=A(".ui-resizable-handle",M.element);if(N.disableSelection){N._handles.each(function(U,V){A.ui.disableSelection(V)})}N._handles.mouseover(function(){if(!N.resizing){if(this.className){var U=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}M.axis=N.axis=U&&U[1]?U[1]:"se"}});if(N.autohide){N._handles.hide();A(M.element).addClass("ui-resizable-autohide").hover(function(){A(this).removeClass("ui-resizable-autohide");N._handles.show()},function(){if(!N.resizing){A(this).addClass("ui-resizable-autohide");N._handles.hide()}})}this.mouseInit()},plugins:{},ui:function(){return{axis:this.options.axis,options:this.options}},propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.ui()]);this.element.triggerHandler(C=="resize"?C:["resize",C].join(""),[B,this.ui()],this.options[C])},destroy:function(){var D=this.element,C=D.children(".ui-resizable").get(0);this.mouseDestroy();var B=function(E){A(E).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};B(D);if(D.is(".ui-wrapper")&&C){D.parent().append(A(C).css({position:D.css("position"),width:D.outerWidth(),height:D.outerHeight(),top:D.css("top"),left:D.css("left")})).end().remove();B(C)}},mouseStart:function(K){if(this.options.disabled){return false}var J=false;for(var H in this.options.handles){if(A(this.options.handles[H])[0]==K.target){J=true}}if(!J){return false}var C=this.options,B=this.element.position(),D=this.element,I=function(O){return parseInt(O,10)||0},G=A.browser.msie&&A.browser.version<7;C.resizing=true;C.documentScroll={top:A(document).scrollTop(),left:A(document).scrollLeft()};if(D.is(".ui-draggable")||(/absolute/).test(D.css("position"))){var M=A.browser.msie&&!C.containment&&(/absolute/).test(D.css("position"))&&!(/relative/).test(D.parent().css("position"));var L=M?C.documentScroll.top:0,F=M?C.documentScroll.left:0;D.css({position:"absolute",top:(B.top+L),left:(B.left+F)})}if(A.browser.opera&&/relative/.test(D.css("position"))){D.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var N=I(this.helper.css("left")),E=I(this.helper.css("top"));this.offset=this.helper.offset();this.position={left:N,top:E};this.size=C.proxy||G?{width:D.outerWidth(),height:D.outerHeight()}:{width:D.width(),height:D.height()};this.originalSize=C.proxy||G?{width:D.outerWidth(),height:D.outerHeight()}:{width:D.width(),height:D.height()};this.originalPosition={left:N,top:E};this.sizeDiff={width:D.outerWidth()-D.width(),height:D.outerHeight()-D.height()};this.originalMousePosition={left:K.pageX,top:K.pageY};C.aspectRatio=(typeof C.aspectRatio=="number")?C.aspectRatio:((this.originalSize.height/this.originalSize.width)||1);if(C.preserveCursor){A("body").css("cursor",this.axis+"-resize")}this.propagate("start",K);return true},mouseDrag:function(I){var D=this.helper,C=this.options,J={},M=this,F=this.originalMousePosition,K=this.axis;var N=(I.pageX-F.left)||0,L=(I.pageY-F.top)||0;var E=this._change[K];if(!E){return false}var H=E.apply(this,[I,N,L]),G=A.browser.msie&&A.browser.version<7,B=this.sizeDiff;if(C._aspectRatio||I.shiftKey){H=this._updateRatio(H,I)}H=this._respectSize(H,I);this.propagate("resize",I);D.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!C.proxy&&C.proportionallyResize){this._proportionallyResize()}this._updateCache(H);return false},mouseStop:function(I){this.options.resizing=false;var E=this.options,H=function(M){return parseInt(M,10)||0},K=this;if(E.proxy){var D=E.proportionallyResize,B=D&&(/textarea/i).test(D.get(0).nodeName),C=B&&A.ui.hasScroll(D.get(0),"left")?0:K.sizeDiff.height,G=B?0:K.sizeDiff.width;var L={width:(K.size.width-G),height:(K.size.height-C)},F=(parseInt(K.element.css("left"),10)+(K.position.left-K.originalPosition.left))||null,J=(parseInt(K.element.css("top"),10)+(K.position.top-K.originalPosition.top))||null;if(!E.animate){this.element.css(A.extend(L,{top:J,left:F}))}if(E.proxy&&!E.animate){this._proportionallyResize()}}if(E.preserveCursor){A("body").css("cursor","auto")}this.propagate("stop",I);if(E.proxy){this.helper.remove()}return false},_updateCache:function(B){var C=this.options;this.offset=this.helper.offset();if(B.left){this.position.left=B.left}if(B.top){this.position.top=B.top}if(B.height){this.size.height=B.height}if(B.width){this.size.width=B.width}},_updateRatio:function(D,E){var F=this.options,G=this.position,C=this.size,B=this.axis;if(D.height){D.width=(C.height/F.aspectRatio)}else{if(D.width){D.height=(C.width*F.aspectRatio)}}if(B=="sw"){D.left=G.left+(C.width-D.width);D.top=null}if(B=="nw"){D.top=G.top+(C.height-D.height);D.left=G.left+(C.width-D.width)}return D},_respectSize:function(H,I){var F=this.helper,E=this.options,N=E._aspectRatio||I.shiftKey,M=this.axis,P=H.width&&E.maxWidth&&E.maxWidth<H.width,J=H.height&&E.maxHeight&&E.maxHeight<H.height,D=H.width&&E.minWidth&&E.minWidth>H.width,O=H.height&&E.minHeight&&E.minHeight>H.height;if(D){H.width=E.minWidth}if(O){H.height=E.minHeight}if(P){H.width=E.maxWidth}if(J){H.height=E.maxHeight}var C=this.originalPosition.left+this.originalSize.width,L=this.position.top+this.size.height;var G=/sw|nw|w/.test(M),B=/nw|ne|n/.test(M);if(D&&G){H.left=C-E.minWidth}if(P&&G){H.left=C-E.maxWidth}if(O&&B){H.top=L-E.minHeight}if(J&&B){H.top=L-E.maxHeight}var K=!H.width&&!H.height;if(K&&!H.left&&H.top){H.top=null}else{if(K&&!H.top&&H.left){H.left=null}}return H},_proportionallyResize:function(){var F=this.options;if(!F.proportionallyResize){return }var D=F.proportionallyResize,C=this.helper||this.element;if(!F.borderDif){var B=[D.css("borderTopWidth"),D.css("borderRightWidth"),D.css("borderBottomWidth"),D.css("borderLeftWidth")],E=[D.css("paddingTop"),D.css("paddingRight"),D.css("paddingBottom"),D.css("paddingLeft")];F.borderDif=A.map(B,function(G,I){var H=parseInt(G,10)||0,J=parseInt(E[I],10)||0;return H+J})}D.css({height:(C.height()-F.borderDif[0]-F.borderDif[2])+"px",width:(C.width()-F.borderDif[1]-F.borderDif[3])+"px"})},_renderProxy:function(){var C=this.element,F=this.options;this.elementOffset=C.offset();if(F.proxy){this.helper=this.helper||A('<div style="overflow:hidden;"></div>');var B=A.browser.msie&&A.browser.version<7,D=(B?1:0),E=(B?2:-1);this.helper.addClass(F.proxy).css({width:C.outerWidth()+E,height:C.outerHeight()+E,position:"absolute",left:this.elementOffset.left-D+"px",top:this.elementOffset.top-D+"px",zIndex:++F.zIndex});this.helper.appendTo("body");if(F.disableSelection){A.ui.disableSelection(this.helper.get(0))}}else{this.helper=C}},_change:{e:function(D,C,B){return{width:this.originalSize.width+C}},w:function(F,C,B){var G=this.options,D=this.originalSize,E=this.originalPosition;return{left:E.left+C,width:D.width-C}},n:function(F,C,B){var G=this.options,D=this.originalSize,E=this.originalPosition;return{top:E.top+B,height:D.height-B}},s:function(D,C,B){return{height:this.originalSize.height+B}},se:function(D,C,B){return A.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[D,C,B]))},sw:function(D,C,B){return A.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[D,C,B]))},ne:function(D,C,B){return A.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[D,C,B]))},nw:function(D,C,B){return A.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[D,C,B]))}}}));A.extend(A.ui.resizable,{defaults:{cancel:":input,button",distance:0,delay:0,preventDefault:true,transparent:false,minWidth:10,minHeight:10,aspectRatio:false,disableSelection:true,preserveCursor:true,autohide:false,knobHandles:false}});A.ui.plugin.add("resizable","containment",{start:function(I,K){var E=K.options,M=A(this).data("resizable"),G=M.element;var C=E.containment,F=(C instanceof A)?C.get(0):(/parent/.test(C))?G.parent().get(0):C;if(!F){return }M.containerElement=A(F);if(/document/.test(C)||C==document){M.containerOffset={left:0,top:0};M.containerPosition={left:0,top:0};M.parentData={element:A(document),left:0,top:0,width:A(document).width(),height:A(document).height()||document.body.parentNode.scrollHeight}}else{M.containerOffset=A(F).offset();M.containerPosition=A(F).position();M.containerSize={height:A(F).innerHeight(),width:A(F).innerWidth()};var J=M.containerOffset,B=M.containerSize.height,H=M.containerSize.width,D=(A.ui.hasScroll(F,"left")?F.scrollWidth:H),L=(A.ui.hasScroll(F)?F.scrollHeight:B);M.parentData={element:F,left:J.left,top:J.top,width:D,height:L}}},resize:function(H,K){var E=K.options,N=A(this).data("resizable"),C=N.containerSize,J=N.containerOffset,G=N.size,I=N.position,L=E._aspectRatio||H.shiftKey,B={top:0,left:0},D=N.containerElement;if(/static/.test(D.css("position"))){B=N.containerPosition}if(I.left<(E.proxy?J.left:B.left)){N.size.width=N.size.width+(E.proxy?(N.position.left-J.left):(N.position.left-B.left));if(L){N.size.height=N.size.width*E.aspectRatio}N.position.left=E.proxy?J.left:B.left}if(I.top<(E.proxy?J.top:0)){N.size.height=N.size.height+(E.proxy?(N.position.top-J.top):N.position.top);if(L){N.size.width=N.size.height/E.aspectRatio}N.position.top=E.proxy?J.top:0}var F=(E.proxy?N.offset.left-J.left:(N.position.left-B.left))+N.sizeDiff.width,M=(E.proxy?N.offset.top-J.top:N.position.top)+N.sizeDiff.height;if(F+N.size.width>=N.parentData.width){N.size.width=N.parentData.width-F;if(L){N.size.height=N.size.width*E.aspectRatio}}if(M+N.size.height>=N.parentData.height){N.size.height=N.parentData.height-M;if(L){N.size.width=N.size.height/E.aspectRatio}}},stop:function(G,J){var C=J.options,L=A(this).data("resizable"),H=L.position,I=L.containerOffset,B=L.containerPosition,D=L.containerElement;var E=A(L.helper),M=E.offset(),K=E.innerWidth(),F=E.innerHeight();if(C.proxy&&!C.animate&&/relative/.test(D.css("position"))){A(this).css({left:(M.left-I.left),top:(M.top-I.top),width:K,height:F})}if(C.proxy&&!C.animate&&/static/.test(D.css("position"))){A(this).css({left:B.left+(M.left-I.left),top:B.top+(M.top-I.top),width:K,height:F})}}});A.ui.plugin.add("resizable","grid",{resize:function(H,J){var D=J.options,L=A(this).data("resizable"),G=L.size,E=L.originalSize,F=L.originalPosition,K=L.axis,I=D._aspectRatio||H.shiftKey;D.grid=typeof D.grid=="number"?[D.grid,D.grid]:D.grid;var C=Math.round((G.width-E.width)/(D.grid[0]||1))*(D.grid[0]||1),B=Math.round((G.height-E.height)/(D.grid[1]||1))*(D.grid[1]||1);if(/^(se|s|e)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B}else{if(/^(ne)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B;L.position.top=F.top-B}else{if(/^(sw)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B;L.position.left=F.left-C}else{L.size.width=E.width+C;L.size.height=E.height+B;L.position.top=F.top-B;L.position.left=F.left-C}}}}});A.ui.plugin.add("resizable","animate",{stop:function(I,K){var F=K.options,L=A(this).data("resizable");var E=F.proportionallyResize,B=E&&(/textarea/i).test(E.get(0).nodeName),C=B&&A.ui.hasScroll(E.get(0),"left")?0:L.sizeDiff.height,H=B?0:L.sizeDiff.width;var D={width:(L.size.width-H),height:(L.size.height-C)},G=(parseInt(L.element.css("left"),10)+(L.position.left-L.originalPosition.left))||null,J=(parseInt(L.element.css("top"),10)+(L.position.top-L.originalPosition.top))||null;L.element.animate(A.extend(D,J&&G?{top:J,left:G}:{}),{duration:F.animateDuration||"slow",easing:F.animateEasing||"swing",step:function(){var M={width:parseInt(L.element.css("width"),10),height:parseInt(L.element.css("height"),10),top:parseInt(L.element.css("top"),10),left:parseInt(L.element.css("left"),10)};if(E){E.css({width:M.width,height:M.height})}L._updateCache(M);L.propagate("animate",I)}})}});A.ui.plugin.add("resizable","ghost",{start:function(E,D){var F=D.options,B=A(this).data("resizable"),G=F.proportionallyResize,C=B.size;if(!G){B.ghost=B.element.clone()}else{B.ghost=G.clone()}B.ghost.css({opacity:0.25,display:"block",position:"relative",height:C.height,width:C.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof F.ghost=="string"?F.ghost:"");B.ghost.appendTo(B.helper)},resize:function(D,C){var E=C.options,B=A(this).data("resizable"),F=E.proportionallyResize;if(B.ghost){B.ghost.css({position:"relative",height:B.size.height,width:B.size.width})}},stop:function(D,C){var E=C.options,B=A(this).data("resizable"),F=E.proportionallyResize;if(B.ghost&&B.helper){B.helper.get(0).removeChild(B.ghost.get(0))}}});A.ui.plugin.add("resizable","alsoResize",{start:function(E,C){var F=C.options,B=A(this).data("resizable"),D=function(G){A(G).each(function(){A(this).data("resizable-alsoresize",{width:parseInt(A(this).width(),10),height:parseInt(A(this).height(),10),left:parseInt(A(this).css("left"),10),top:parseInt(A(this).css("top"),10)})})};if(typeof (F.alsoResize)=="object"){A.each(F.alsoResize,function(G,H){D(G)})}else{D(F.alsoResize)}},resize:function(F,E){var G=E.options,C=A(this).data("resizable"),D=C.originalSize,I=C.originalPosition;var H={height:(C.size.height-D.height)||0,width:(C.size.width-D.width)||0,top:(C.position.top-I.top)||0,left:(C.position.left-I.left)||0},B=function(J,K){A(J).each(function(){var N=A(this).data("resizable-alsoresize"),M={},L=K&&K.length?K:["width","height","top","left"];A.each(L||["width","height","top","left"],function(O,Q){var P=(N[Q]||0)+(H[Q]||0);if(P&&P>=0){M[Q]=P||null}});A(this).css(M)})};if(typeof (G.alsoResize)=="object"){A.each(G.alsoResize,function(J,K){B(J,K)})}else{B(G.alsoResize)}},stop:function(C,B){A(this).removeData("resizable-alsoresize-start")}})})(jQuery);(function(A){A.widget("ui.selectable",A.extend(A.ui.mouse,{init:function(){var B=this;this.element.addClass("ui-selectable");this.dragged=false;var C;this.refresh=function(){C=A(B.options.filter,B.element[0]);C.each(function(){var D=A(this);var E=D.offset();A.data(this,"selectable-item",{element:this,$element:D,left:E.left,top:E.top,right:E.left+D.width(),bottom:E.top+D.height(),startselected:false,selected:D.hasClass("ui-selected"),selecting:D.hasClass("ui-selecting"),unselecting:D.hasClass("ui-unselecting")})})};this.refresh();this.selectees=C.addClass("ui-selectee");this.mouseInit();this.helper=A(document.createElement("div")).css({border:"1px dotted black"})},toggle:function(){if(this.options.disabled){this.enable()}else{this.disable()}},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this.mouseDestroy()},mouseStart:function(E){var C=this;this.opos=[E.pageX,E.pageY];if(this.options.disabled){return }var D=this.options;this.selectees=A(D.filter,this.element[0]);this.element.triggerHandler("selectablestart",[E,{"selectable":this.element[0],"options":D}],D.start);A("body").append(this.helper);this.helper.css({"z-index":100,"position":"absolute","left":E.clientX,"top":E.clientY,"width":0,"height":0});if(D.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var F=A.data(this,"selectable-item");F.startselected=true;if(!E.ctrlKey){F.$element.removeClass("ui-selected");F.selected=false;F.$element.addClass("ui-unselecting");F.unselecting=true;C.element.triggerHandler("selectableunselecting",[E,{selectable:C.element[0],unselecting:F.element,options:D}],D.unselecting)}});var B=false;A(E.target).parents().andSelf().each(function(){if(A.data(this,"selectable-item")){B=true}});return this.options.keyboard?!B:true},mouseDrag:function(I){var C=this;this.dragged=true;if(this.options.disabled){return }var E=this.options;var D=this.opos[0],H=this.opos[1],B=I.pageX,G=I.pageY;if(D>B){var F=B;B=D;D=F}if(H>G){var F=G;G=H;H=F}this.helper.css({left:D,top:H,width:B-D,height:G-H});this.selectees.each(function(){var J=A.data(this,"selectable-item");if(!J||J.element==C.element[0]){return }var K=false;if(E.tolerance=="touch"){K=(!(J.left>B||J.right<D||J.top>G||J.bottom<H))}else{if(E.tolerance=="fit"){K=(J.left>D&&J.right<B&&J.top>H&&J.bottom<G)}}if(K){if(J.selected){J.$element.removeClass("ui-selected");J.selected=false}if(J.unselecting){J.$element.removeClass("ui-unselecting");J.unselecting=false}if(!J.selecting){J.$element.addClass("ui-selecting");J.selecting=true;C.element.triggerHandler("selectableselecting",[I,{selectable:C.element[0],selecting:J.element,options:E}],E.selecting)}}else{if(J.selecting){if(I.ctrlKey&&J.startselected){J.$element.removeClass("ui-selecting");J.selecting=false;J.$element.addClass("ui-selected");J.selected=true}else{J.$element.removeClass("ui-selecting");J.selecting=false;if(J.startselected){J.$element.addClass("ui-unselecting");J.unselecting=true}C.element.triggerHandler("selectableunselecting",[I,{selectable:C.element[0],unselecting:J.element,options:E}],E.unselecting)}}if(J.selected){if(!I.ctrlKey&&!J.startselected){J.$element.removeClass("ui-selected");J.selected=false;J.$element.addClass("ui-unselecting");J.unselecting=true;C.element.triggerHandler("selectableunselecting",[I,{selectable:C.element[0],unselecting:J.element,options:E}],E.unselecting)}}}});return false},mouseStop:function(D){var B=this;this.dragged=false;var C=this.options;A(".ui-unselecting",this.element[0]).each(function(){var E=A.data(this,"selectable-item");E.$element.removeClass("ui-unselecting");E.unselecting=false;E.startselected=false;B.element.triggerHandler("selectableunselected",[D,{selectable:B.element[0],unselected:E.element,options:C}],C.unselected)});A(".ui-selecting",this.element[0]).each(function(){var E=A.data(this,"selectable-item");E.$element.removeClass("ui-selecting").addClass("ui-selected");E.selecting=false;E.selected=true;E.startselected=true;B.element.triggerHandler("selectableselected",[D,{selectable:B.element[0],selected:E.element,options:C}],C.selected)});this.element.triggerHandler("selectablestop",[D,{selectable:B.element[0],options:this.options}],this.options.stop);this.helper.remove();return false}}));A.extend(A.ui.selectable,{defaults:{distance:0,delay:0,cancel:":input,button",appendTo:"body",autoRefresh:true,filter:"*",tolerance:"touch"}})})(jQuery);(function(B){function A(E,D){var C=B.browser.safari&&B.browser.version<522;if(E.contains&&!C){return E.contains(D)}if(E.compareDocumentPosition){return !!(E.compareDocumentPosition(D)&16)}while(D=D.parentNode){if(D==E){return true}}return false}B.widget("ui.sortable",B.extend(B.ui.mouse,{init:function(){var C=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;if(!(/(relative|absolute|fixed)/).test(this.element.css("position"))){this.element.css("position","relative")}this.offset=this.element.offset();this.mouseInit()},plugins:{},ui:function(C){return{helper:(C||this)["helper"],placeholder:(C||this)["placeholder"]||B([]),position:(C||this)["position"],absolutePosition:(C||this)["positionAbs"],options:this.options,element:this.element,item:(C||this)["currentItem"],sender:C?C.element:null}},propagate:function(F,E,C,D){B.ui.plugin.call(this,F,[E,this.ui(C)]);if(!D){this.element.triggerHandler(F=="sort"?F:"sort"+F,[E,this.ui(C)],this.options[F])}},serialize:function(E){var C=(B.isFunction(this.options.items)?this.options.items.call(this.element):B(this.options.items,this.element)).not(".ui-sortable-helper");var D=[];E=E||{};C.each(function(){var F=(B(this).attr(E.attribute||"id")||"").match(E.expression||(/(.+)[-=_](.+)/));if(F){D.push((E.key||F[1])+"[]="+(E.key?F[1]:F[2]))}});return D.join("&")},toArray:function(C){var D=(B.isFunction(this.options.items)?this.options.items.call(this.element):B(this.options.items,this.element)).not(".ui-sortable-helper");var E=[];D.each(function(){E.push(B(this).attr(C||"id"))});return E},intersectsWith:function(J){var E=this.positionAbs.left,D=E+this.helperProportions.width,I=this.positionAbs.top,H=I+this.helperProportions.height;var F=J.left,C=F+J.width,K=J.top,G=K+J.height;if(this.options.tolerance=="pointer"||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?"width":"height"]>J[this.floating?"width":"height"])){return(I+this.offset.click.top>K&&I+this.offset.click.top<G&&E+this.offset.click.left>F&&E+this.offset.click.left<C)}else{return(F<E+(this.helperProportions.width/2)&&D-(this.helperProportions.width/2)<C&&K<I+(this.helperProportions.height/2)&&H-(this.helperProportions.height/2)<G)}},intersectsWithEdge:function(J){var E=this.positionAbs.left,D=E+this.helperProportions.width,I=this.positionAbs.top,H=I+this.helperProportions.height;var F=J.left,C=F+J.width,K=J.top,G=K+J.height;if(this.options.tolerance=="pointer"||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?"width":"height"]>J[this.floating?"width":"height"])){if(!(I+this.offset.click.top>K&&I+this.offset.click.top<G&&E+this.offset.click.left>F&&E+this.offset.click.left<C)){return false}if(this.floating){if(E+this.offset.click.left>F&&E+this.offset.click.left<F+J.width/2){return 2}if(E+this.offset.click.left>F+J.width/2&&E+this.offset.click.left<C){return 1}}else{if(I+this.offset.click.top>K&&I+this.offset.click.top<K+J.height/2){return 2}if(I+this.offset.click.top>K+J.height/2&&I+this.offset.click.top<G){return 1}}}else{if(!(F<E+(this.helperProportions.width/2)&&D-(this.helperProportions.width/2)<C&&K<I+(this.helperProportions.height/2)&&H-(this.helperProportions.height/2)<G)){return false}if(this.floating){if(D>F&&E<F){return 2}if(E<C&&D>C){return 1}}else{if(H>K&&I<K){return 1}if(I<G&&H>G){return 2}}}return false},refresh:function(){this.refreshItems();this.refreshPositions()},refreshItems:function(){this.items=[];this.containers=[this];var C=this.items;var E=[B.isFunction(this.options.items)?this.options.items.call(this.element):B(this.options.items,this.element)];if(this.options.connectWith){for(var F=this.options.connectWith.length-1;F>=0;F--){var H=B(this.options.connectWith[F]);for(var D=H.length-1;D>=0;D--){var G=B.data(H[D],"sortable");if(G&&!G.options.disabled){E.push(B.isFunction(G.options.items)?G.options.items.call(G.element):B(G.options.items,G.element));this.containers.push(G)}}}}for(var F=E.length-1;F>=0;F--){E[F].each(function(){B.data(this,"sortable-item",true);C.push({item:B(this),width:0,height:0,left:0,top:0})})}},refreshPositions:function(C){for(var E=this.items.length-1;E>=0;E--){var D=this.items[E].item;if(!C){this.items[E].width=(this.options.toleranceElement?B(this.options.toleranceElement,D):D).outerWidth()}if(!C){this.items[E].height=(this.options.toleranceElement?B(this.options.toleranceElement,D):D).outerHeight()}var F=(this.options.toleranceElement?B(this.options.toleranceElement,D):D).offset();this.items[E].left=F.left;this.items[E].top=F.top}for(var E=this.containers.length-1;E>=0;E--){var F=this.containers[E].element.offset();this.containers[E].containerCache.left=F.left;this.containers[E].containerCache.top=F.top;this.containers[E].containerCache.width=this.containers[E].element.outerWidth();this.containers[E].containerCache.height=this.containers[E].element.outerHeight()}},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this.mouseDestroy();for(var C=this.items.length-1;C>=0;C--){this.items[C].item.removeData("sortable-item")}},createPlaceholder:function(E){var C=E||this,F=C.options;if(F.placeholder.constructor==String){var D=F.placeholder;F.placeholder={element:function(){return B("<div></div>").addClass(D)[0]},update:function(G,H){H.css(G.offset()).css({width:G.outerWidth(),height:G.outerHeight()})}}}C.placeholder=B(F.placeholder.element.call(C.element,C.currentItem)).appendTo("body").css({position:"absolute"});F.placeholder.update.call(C.element,C.currentItem,C.placeholder)},contactContainers:function(F){for(var D=this.containers.length-1;D>=0;D--){if(this.intersectsWith(this.containers[D].containerCache)){if(!this.containers[D].containerCache.over){if(this.currentContainer!=this.containers[D]){var I=10000;var H=null;var E=this.positionAbs[this.containers[D].floating?"left":"top"];for(var C=this.items.length-1;C>=0;C--){if(!A(this.containers[D].element[0],this.items[C].item[0])){continue}var G=this.items[C][this.containers[D].floating?"left":"top"];if(Math.abs(G-E)<I){I=Math.abs(G-E);H=this.items[C]}}if(!H&&!this.options.dropOnEmpty){continue}if(this.placeholder){this.placeholder.remove()}if(this.containers[D].options.placeholder){this.containers[D].createPlaceholder(this)}else{this.placeholder=null}H?this.rearrange(F,H):this.rearrange(F,null,this.containers[D].element);this.propagate("change",F);this.containers[D].propagate("change",F,this);this.currentContainer=this.containers[D]}this.containers[D].propagate("over",F,this);this.containers[D].containerCache.over=1}}else{if(this.containers[D].containerCache.over){this.containers[D].propagate("out",F,this);this.containers[D].containerCache.over=0}}}},mouseCapture:function(F,E){if(this.options.disabled||this.options.type=="static"){return false}var D=null,C=B(F.target).parents().each(function(){if(B.data(this,"sortable-item")){D=B(this);return false}});if(B.data(F.target,"sortable-item")){D=B(F.target)}if(!D){return false}if(this.options.handle&&!E){var G=false;B(this.options.handle,D).find("*").andSelf().each(function(){if(this==F.target){G=true}});if(!G){return false}}this.currentItem=D;return true},mouseStart:function(H,F,C){var J=this.options;this.currentContainer=this;this.refresh();this.helper=typeof J.helper=="function"?B(J.helper.apply(this.element[0],[H,this.currentItem])):this.currentItem.clone();if(!this.helper.parents("body").length){this.helper.appendTo((J.appendTo!="parent"?J.appendTo:this.currentItem[0].parentNode))}this.helper.css({position:"absolute",clear:"both"}).addClass("ui-sortable-helper");this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)};this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:H.pageX-this.offset.left,top:H.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var D=this.offsetParent.offset();this.offset.parent={top:D.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:D.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};this.originalPosition=this.generatePosition(H);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(J.cursorAt){if(J.cursorAt.left!=undefined){this.offset.click.left=J.cursorAt.left}if(J.cursorAt.right!=undefined){this.offset.click.left=this.helperProportions.width-J.cursorAt.right}if(J.cursorAt.top!=undefined){this.offset.click.top=J.cursorAt.top}if(J.cursorAt.bottom!=undefined){this.offset.click.top=this.helperProportions.height-J.cursorAt.bottom}}this.domPosition=this.currentItem.prev()[0];if(J.containment){if(J.containment=="parent"){J.containment=this.helper[0].parentNode}if(J.containment=="document"||J.containment=="window"){this.containment=[0-this.offset.parent.left,0-this.offset.parent.top,B(J.containment=="document"?document:window).width()-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(B(J.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(J.containment)){var G=B(J.containment)[0];var I=B(J.containment).offset();this.containment=[I.left+(parseInt(B(G).css("borderLeftWidth"),10)||0)-this.offset.parent.left,I.top+(parseInt(B(G).css("borderTopWidth"),10)||0)-this.offset.parent.top,I.left+Math.max(G.scrollWidth,G.offsetWidth)-(parseInt(B(G).css("borderLeftWidth"),10)||0)-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.currentItem.css("marginRight"),10)||0),I.top+Math.max(G.scrollHeight,G.offsetHeight)-(parseInt(B(G).css("borderTopWidth"),10)||0)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.currentItem.css("marginBottom"),10)||0)]}}if(J.placeholder){this.createPlaceholder()}this.propagate("start",H);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(this.options.placeholder!="clone"){this.currentItem.css("visibility","hidden")}if(!C){for(var E=this.containers.length-1;E>=0;E--){this.containers[E].propagate("activate",H,this)}}if(B.ui.ddmanager){B.ui.ddmanager.current=this}if(B.ui.ddmanager&&!J.dropBehaviour){B.ui.ddmanager.prepareOffsets(this,H)}this.dragging=true;this.mouseDrag(H);return true},convertPositionTo:function(D,E){if(!E){E=this.position}var C=D=="absolute"?1:-1;return{top:(E.top+this.offset.parent.top*C-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)*C+this.margins.top*C),left:(E.left+this.offset.parent.left*C-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)*C+this.margins.left*C)}},generatePosition:function(F){var G=this.options;var C={top:(F.pageY-this.offset.click.top-this.offset.parent.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)),left:(F.pageX-this.offset.click.left-this.offset.parent.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft))};if(!this.originalPosition){return C}if(this.containment){if(C.left<this.containment[0]){C.left=this.containment[0]}if(C.top<this.containment[1]){C.top=this.containment[1]}if(C.left>this.containment[2]){C.left=this.containment[2]}if(C.top>this.containment[3]){C.top=this.containment[3]}}if(G.grid){var E=this.originalPosition.top+Math.round((C.top-this.originalPosition.top)/G.grid[1])*G.grid[1];C.top=this.containment?(!(E<this.containment[1]||E>this.containment[3])?E:(!(E<this.containment[1])?E-G.grid[1]:E+G.grid[1])):E;var D=this.originalPosition.left+Math.round((C.left-this.originalPosition.left)/G.grid[0])*G.grid[0];C.left=this.containment?(!(D<this.containment[0]||D>this.containment[2])?D:(!(D<this.containment[0])?D-G.grid[0]:D+G.grid[0])):D}return C},mouseDrag:function(D){this.position=this.generatePosition(D);this.positionAbs=this.convertPositionTo("absolute");for(var C=this.items.length-1;C>=0;C--){var E=this.intersectsWithEdge(this.items[C]);if(!E){continue}if(this.items[C].item[0]!=this.currentItem[0]&&this.currentItem[E==1?"next":"prev"]()[0]!=this.items[C].item[0]&&!A(this.currentItem[0],this.items[C].item[0])&&(this.options.type=="semi-dynamic"?!A(this.element[0],this.items[C].item[0]):true)){this.direction=E==1?"down":"up";this.rearrange(D,this.items[C]);this.propagate("change",D);break}}this.contactContainers(D);this.propagate("sort",D);if(!this.options.axis||this.options.axis=="x"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis=="y"){this.helper[0].style.top=this.position.top+"px"}if(B.ui.ddmanager){B.ui.ddmanager.drag(this,D)}return false},mouseStop:function(E,D){if(B.ui.ddmanager&&!this.options.dropBehaviour){B.ui.ddmanager.drop(this,E)}if(this.options.revert){var C=this;var F=C.currentItem.offset();if(C.placeholder){C.placeholder.animate({opacity:"hide"},(parseInt(this.options.revert,10)||500)-50)}B(this.helper).animate({left:F.left-this.offset.parent.left-C.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:F.top-this.offset.parent.top-C.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){C.propagate("stop",E,null,D);C.clear(E)})}else{this.propagate("stop",E,null,D);this.clear(E,D)}return false},clear:function(E,D){if(this.domPosition!=this.currentItem.prev().not(".ui-sortable-helper")[0]){this.propagate("update",E,null,D)}if(!A(this.element[0],this.currentItem[0])){if(this.domPosition==this.currentItem.prev().not(".ui-sortable-helper")[0]){this.propagate("update",E,null,D)}this.propagate("remove",E,null,D);for(var C=this.containers.length-1;C>=0;C--){if(A(this.containers[C].element[0],this.currentItem[0])){this.containers[C].propagate("update",E,this,D);this.containers[C].propagate("receive",E,this,D)}}}for(var C=this.containers.length-1;C>=0;C--){this.containers[C].propagate("deactivate",E,this,D);if(this.containers[C].containerCache.over){this.containers[C].propagate("out",E,this);this.containers[C].containerCache.over=0}}this.dragging=false;if(this.cancelHelperRemoval){return false}B(this.currentItem).css("visibility","");if(this.placeholder){this.placeholder.remove()}this.helper.remove();return true},rearrange:function(E,D,C){C?C.append(this.currentItem):D.item[this.direction=="down"?"before":"after"](this.currentItem);this.refreshPositions(true);if(this.options.placeholder){this.options.placeholder.update.call(this.element,this.currentItem,this.placeholder)}}}));B.extend(B.ui.sortable,{getter:"serialize toArray",defaults:{tolerance:"guess",distance:0,delay:0,cancel:":input,button",items:"> *",zIndex:1000,dropOnEmpty:true,appendTo:"parent"}});B.ui.plugin.add("sortable","cursor",{start:function(E,D){var C=B("body");if(C.css("cursor")){D.options._cursor=C.css("cursor")}C.css("cursor",D.options.cursor)},stop:function(D,C){if(C.options._cursor){B("body").css("cursor",C.options._cursor)}}});B.ui.plugin.add("sortable","zIndex",{start:function(E,D){var C=D.helper;if(C.css("zIndex")){D.options._zIndex=C.css("zIndex")}C.css("zIndex",D.options.zIndex)},stop:function(D,C){if(C.options._zIndex){B(C.helper).css("zIndex",C.options._zIndex)}}});B.ui.plugin.add("sortable","opacity",{start:function(E,D){var C=D.helper;if(C.css("opacity")){D.options._opacity=C.css("opacity")}C.css("opacity",D.options.opacity)},stop:function(D,C){if(C.options._opacity){B(C.helper).css("opacity",C.options._opacity)}}});B.ui.plugin.add("sortable","scroll",{start:function(E,D){var F=D.options;var C=B(this).data("sortable");F.scrollSensitivity=F.scrollSensitivity||20;F.scrollSpeed=F.scrollSpeed||20;C.overflowY=function(G){do{if(/auto|scroll/.test(G.css("overflow"))||(/auto|scroll/).test(G.css("overflow-y"))){return G}G=G.parent()}while(G[0].parentNode);return B(document)}(C.currentItem);C.overflowX=function(G){do{if(/auto|scroll/.test(G.css("overflow"))||(/auto|scroll/).test(G.css("overflow-x"))){return G}G=G.parent()}while(G[0].parentNode);return B(document)}(C.currentItem);if(C.overflowY[0]!=document&&C.overflowY[0].tagName!="HTML"){C.overflowYOffset=C.overflowY.offset()}if(C.overflowX[0]!=document&&C.overflowX[0].tagName!="HTML"){C.overflowXOffset=C.overflowX.offset()}},sort:function(E,D){var F=D.options;var C=B(this).data("sortable");if(C.overflowY[0]!=document&&C.overflowY[0].tagName!="HTML"){if((C.overflowYOffset.top+C.overflowY[0].offsetHeight)-E.pageY<F.scrollSensitivity){C.overflowY[0].scrollTop=C.overflowY[0].scrollTop+F.scrollSpeed}if(E.pageY-C.overflowYOffset.top<F.scrollSensitivity){C.overflowY[0].scrollTop=C.overflowY[0].scrollTop-F.scrollSpeed}}else{if(E.pageY-B(document).scrollTop()<F.scrollSensitivity){B(document).scrollTop(B(document).scrollTop()-F.scrollSpeed)}if(B(window).height()-(E.pageY-B(document).scrollTop())<F.scrollSensitivity){B(document).scrollTop(B(document).scrollTop()+F.scrollSpeed)}}if(C.overflowX[0]!=document&&C.overflowX[0].tagName!="HTML"){if((C.overflowXOffset.left+C.overflowX[0].offsetWidth)-E.pageX<F.scrollSensitivity){C.overflowX[0].scrollLeft=C.overflowX[0].scrollLeft+F.scrollSpeed}if(E.pageX-C.overflowXOffset.left<F.scrollSensitivity){C.overflowX[0].scrollLeft=C.overflowX[0].scrollLeft-F.scrollSpeed}}else{if(E.pageX-B(document).scrollLeft()<F.scrollSensitivity){B(document).scrollLeft(B(document).scrollLeft()-F.scrollSpeed)}if(B(window).width()-(E.pageX-B(document).scrollLeft())<F.scrollSensitivity){B(document).scrollLeft(B(document).scrollLeft()+F.scrollSpeed)}}}})})(jQuery);(function(C){C.effects=C.effects||{};C.extend(C.effects,{save:function(F,G){for(var E=0;E<G.length;E++){if(G[E]!==null){C.data(F[0],"ec.storage."+G[E],F[0].style[G[E]])}}},restore:function(F,G){for(var E=0;E<G.length;E++){if(G[E]!==null){F.css(G[E],C.data(F[0],"ec.storage."+G[E]))}}},setMode:function(E,F){if(F=="toggle"){F=E.is(":hidden")?"show":"hide"}return F},getBaseline:function(F,G){var H,E;switch(F[0]){case"top":H=0;break;case"middle":H=0.5;break;case"bottom":H=1;break;default:H=F[0]/G.height}switch(F[1]){case"left":E=0;break;case"center":E=0.5;break;case"right":E=1;break;default:E=F[1]/G.width}return{x:E,y:H}},createWrapper:function(F){if(F.parent().attr("id")=="fxWrapper"){return F}var E={width:F.outerWidth({margin:true}),height:F.outerHeight({margin:true}),"float":F.css("float")};F.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var I=F.parent();if(F.css("position")=="static"){I.css({position:"relative"});F.css({position:"relative"})}else{var H=parseInt(F.css("top"),10);if(isNaN(H)){H="auto"}var G=parseInt(F.css("left"),10);if(isNaN(H)){G="auto"}I.css({position:F.css("position"),top:H,left:G,zIndex:F.css("z-index")}).show();F.css({position:"relative",top:0,left:0})}I.css(E);return I},removeWrapper:function(E){if(E.parent().attr("id")=="fxWrapper"){return E.parent().replaceWith(E)}return E},setTransition:function(F,G,E,H){H=H||{};C.each(G,function(J,I){unit=F.cssUnit(I);if(unit[0]>0){H[I]=unit[0]*E+unit[1]}});return H},animateClass:function(G,H,J,I){var E=(typeof J=="function"?J:(I?I:null));var F=(typeof J=="object"?J:null);return this.each(function(){var O={};var M=C(this);var N=M.attr("style")||"";if(typeof N=="object"){N=N["cssText"]}if(G.toggle){M.hasClass(G.toggle)?G.remove=G.toggle:G.add=G.toggle}var K=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.addClass(G.add)}if(G.remove){M.removeClass(G.remove)}var L=C.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(G.add){M.removeClass(G.add)}if(G.remove){M.addClass(G.remove)}for(var P in L){if(typeof L[P]!="function"&&L[P]&&P.indexOf("Moz")==-1&&P.indexOf("length")==-1&&L[P]!=K[P]&&(P.match(/color/i)||(!P.match(/color/i)&&!isNaN(parseInt(L[P],10))))&&(K.position!="static"||(K.position=="static"&&!P.match(/left|top|bottom|right/)))){O[P]=L[P]}}M.animate(O,H,F,function(){if(typeof C(this).attr("style")=="object"){C(this).attr("style")["cssText"]="";C(this).attr("style")["cssText"]=N}else{C(this).attr("style",N)}if(G.add){C(this).addClass(G.add)}if(G.remove){C(this).removeClass(G.remove)}if(E){E.apply(this,arguments)}})})}});C.fn.extend({_show:C.fn.show,_hide:C.fn.hide,__toggle:C.fn.toggle,_addClass:C.fn.addClass,_removeClass:C.fn.removeClass,_toggleClass:C.fn.toggleClass,effect:function(E,G,F,H){return C.effects[E]?C.effects[E].call(this,{method:E,options:G||{},duration:F,callback:H}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._show.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="show";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._hide.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="hide";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{var E=arguments[1]||{};E["mode"]="toggle";return this.effect.apply(this,[arguments[0],E,arguments[2]||E.duration,arguments[3]||E.callback])}},addClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{add:F},E,H,G]):this._addClass(F)},removeClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{remove:F},E,H,G]):this._removeClass(F)},toggleClass:function(F,E,H,G){return E?C.effects.animateClass.apply(this,[{toggle:F},E,H,G]):this._toggleClass(F)},morph:function(E,G,F,I,H){return C.effects.animateClass.apply(this,[{add:G,remove:E},F,I,H])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(E){var F=this.css(E),G=[];C.each(["em","px","%","pt"],function(H,I){if(F.indexOf(I)>0){G=[parseFloat(F),I]}});return G}});jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(F,E){jQuery.fx.step[E]=function(G){if(G.state==0){G.start=D(G.elem,E);G.end=B(G.end)}G.elem.style[E]="rgb("+[Math.max(Math.min(parseInt((G.pos*(G.end[0]-G.start[0]))+G.start[0]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[1]-G.start[1]))+G.start[1]),255),0),Math.max(Math.min(parseInt((G.pos*(G.end[2]-G.start[2]))+G.start[2]),255),0)].join(",")+")"}});function B(F){var E;if(F&&F.constructor==Array&&F.length==3){return F}if(E=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(F)){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3])]}if(E=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(F)){return[parseFloat(E[1])*2.55,parseFloat(E[2])*2.55,parseFloat(E[3])*2.55]}if(E=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(F)){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}if(E=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(F)){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}if(E=/rgba\(0, 0, 0, 0\)/.exec(F)){return A["transparent"]}return A[jQuery.trim(F).toLowerCase()]}function D(G,E){var F;do{F=jQuery.curCSS(G,E);if(F!=""&&F!="transparent"||jQuery.nodeName(G,"body")){break}E="backgroundColor"}while(G=G.parentNode);return B(F)}var A={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};jQuery.easing["jswing"]=jQuery.easing["swing"];jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(F,G,E,I,H){return jQuery.easing[jQuery.easing.def](F,G,E,I,H)},easeInQuad:function(F,G,E,I,H){return I*(G/=H)*G+E},easeOutQuad:function(F,G,E,I,H){return -I*(G/=H)*(G-2)+E},easeInOutQuad:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G+E}return -I/2*((--G)*(G-2)-1)+E},easeInCubic:function(F,G,E,I,H){return I*(G/=H)*G*G+E},easeOutCubic:function(F,G,E,I,H){return I*((G=G/H-1)*G*G+1)+E},easeInOutCubic:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G+E}return I/2*((G-=2)*G*G+2)+E},easeInQuart:function(F,G,E,I,H){return I*(G/=H)*G*G*G+E},easeOutQuart:function(F,G,E,I,H){return -I*((G=G/H-1)*G*G*G-1)+E},easeInOutQuart:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G+E}return -I/2*((G-=2)*G*G*G-2)+E},easeInQuint:function(F,G,E,I,H){return I*(G/=H)*G*G*G*G+E},easeOutQuint:function(F,G,E,I,H){return I*((G=G/H-1)*G*G*G*G+1)+E},easeInOutQuint:function(F,G,E,I,H){if((G/=H/2)<1){return I/2*G*G*G*G*G+E}return I/2*((G-=2)*G*G*G*G+2)+E},easeInSine:function(F,G,E,I,H){return -I*Math.cos(G/H*(Math.PI/2))+I+E},easeOutSine:function(F,G,E,I,H){return I*Math.sin(G/H*(Math.PI/2))+E},easeInOutSine:function(F,G,E,I,H){return -I/2*(Math.cos(Math.PI*G/H)-1)+E},easeInExpo:function(F,G,E,I,H){return(G==0)?E:I*Math.pow(2,10*(G/H-1))+E},easeOutExpo:function(F,G,E,I,H){return(G==H)?E+I:I*(-Math.pow(2,-10*G/H)+1)+E},easeInOutExpo:function(F,G,E,I,H){if(G==0){return E}if(G==H){return E+I}if((G/=H/2)<1){return I/2*Math.pow(2,10*(G-1))+E}return I/2*(-Math.pow(2,-10*--G)+2)+E},easeInCirc:function(F,G,E,I,H){return -I*(Math.sqrt(1-(G/=H)*G)-1)+E},easeOutCirc:function(F,G,E,I,H){return I*Math.sqrt(1-(G=G/H-1)*G)+E},easeInOutCirc:function(F,G,E,I,H){if((G/=H/2)<1){return -I/2*(Math.sqrt(1-G*G)-1)+E}return I/2*(Math.sqrt(1-(G-=2)*G)+1)+E},easeInElastic:function(F,H,E,L,K){var I=1.70158;var J=0;var G=L;if(H==0){return E}if((H/=K)==1){return E+L}if(!J){J=K*0.3}if(G<Math.abs(L)){G=L;var I=J/4}else{var I=J/(2*Math.PI)*Math.asin(L/G)}return -(G*Math.pow(2,10*(H-=1))*Math.sin((H*K-I)*(2*Math.PI)/J))+E},easeOutElastic:function(F,H,E,L,K){var I=1.70158;var J=0;var G=L;if(H==0){return E}if((H/=K)==1){return E+L}if(!J){J=K*0.3}if(G<Math.abs(L)){G=L;var I=J/4}else{var I=J/(2*Math.PI)*Math.asin(L/G)}return G*Math.pow(2,-10*H)*Math.sin((H*K-I)*(2*Math.PI)/J)+L+E},easeInOutElastic:function(F,H,E,L,K){var I=1.70158;var J=0;var G=L;if(H==0){return E}if((H/=K/2)==2){return E+L}if(!J){J=K*(0.3*1.5)}if(G<Math.abs(L)){G=L;var I=J/4}else{var I=J/(2*Math.PI)*Math.asin(L/G)}if(H<1){return -0.5*(G*Math.pow(2,10*(H-=1))*Math.sin((H*K-I)*(2*Math.PI)/J))+E}return G*Math.pow(2,-10*(H-=1))*Math.sin((H*K-I)*(2*Math.PI)/J)*0.5+L+E},easeInBack:function(F,G,E,J,I,H){if(H==undefined){H=1.70158}return J*(G/=I)*G*((H+1)*G-H)+E},easeOutBack:function(F,G,E,J,I,H){if(H==undefined){H=1.70158}return J*((G=G/I-1)*G*((H+1)*G+H)+1)+E},easeInOutBack:function(F,G,E,J,I,H){if(H==undefined){H=1.70158}if((G/=I/2)<1){return J/2*(G*G*(((H*=(1.525))+1)*G-H))+E}return J/2*((G-=2)*G*(((H*=(1.525))+1)*G+H)+2)+E},easeInBounce:function(F,G,E,I,H){return I-jQuery.easing.easeOutBounce(F,H-G,0,I,H)+E},easeOutBounce:function(F,G,E,I,H){if((G/=H)<(1/2.75)){return I*(7.5625*G*G)+E}else{if(G<(2/2.75)){return I*(7.5625*(G-=(1.5/2.75))*G+0.75)+E}else{if(G<(2.5/2.75)){return I*(7.5625*(G-=(2.25/2.75))*G+0.9375)+E}else{return I*(7.5625*(G-=(2.625/2.75))*G+0.984375)+E}}}},easeInOutBounce:function(F,G,E,I,H){if(G<H/2){return jQuery.easing.easeInBounce(F,G*2,0,I,H)*0.5+E}return jQuery.easing.easeOutBounce(F,G*2-H,0,I,H)*0.5+I*0.5+E}})})(jQuery);(function(A){A.effects.blind=function(B){return this.queue(function(){var D=A(this),C=["position","top","left"];var H=A.effects.setMode(D,B.options.mode||"hide");var G=B.options.direction||"vertical";A.effects.save(D,C);D.show();var J=A.effects.createWrapper(D).css({overflow:"hidden"});var E=(G=="vertical")?"height":"width";var I=(G=="vertical")?J.height():J.width();if(H=="show"){J.css(E,0)}var F={};F[E]=H=="show"?I:0;J.animate(F,B.duration,B.options.easing,function(){if(H=="hide"){D.hide()}A.effects.restore(D,C);A.effects.removeWrapper(D);if(B.callback){B.callback.apply(D[0],arguments)}D.dequeue()})})}})(jQuery);(function(A){A.effects.bounce=function(B){return this.queue(function(){var E=A(this),K=["position","top","left"];var J=A.effects.setMode(E,B.options.mode||"effect");var M=B.options.direction||"up";var C=B.options.distance||20;var D=B.options.times||5;var G=B.duration||250;if(/show|hide/.test(J)){K.push("opacity")}A.effects.save(E,K);E.show();A.effects.createWrapper(E);var F=(M=="up"||M=="down")?"top":"left";var O=(M=="up"||M=="left")?"pos":"neg";var C=B.options.distance||(F=="top"?E.outerHeight({margin:true})/3:E.outerWidth({margin:true})/3);if(J=="show"){E.css("opacity",0).css(F,O=="pos"?-C:C)}if(J=="hide"){C=C/(D*2)}if(J!="hide"){D--}if(J=="show"){var H={opacity:1};H[F]=(O=="pos"?"+=":"-=")+C;E.animate(H,G/2,B.options.easing);C=C/2;D--}for(var I=0;I<D;I++){var N={},L={};N[F]=(O=="pos"?"-=":"+=")+C;L[F]=(O=="pos"?"+=":"-=")+C;E.animate(N,G/2,B.options.easing).animate(L,G/2,B.options.easing);C=(J=="hide")?C*2:C/2}if(J=="hide"){var H={opacity:0};H[F]=(O=="pos"?"-=":"+=")+C;E.animate(H,G/2,B.options.easing,function(){E.hide();A.effects.restore(E,K);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}})}else{var N={},L={};N[F]=(O=="pos"?"-=":"+=")+C;L[F]=(O=="pos"?"+=":"-=")+C;E.animate(N,G/2,B.options.easing).animate(L,G/2,B.options.easing,function(){A.effects.restore(E,K);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}})}E.queue("fx",function(){E.dequeue()});E.dequeue()})}})(jQuery);(function(A){A.effects.clip=function(B){return this.queue(function(){var D=A(this),C=["position","top","left","width","height"];var H=A.effects.setMode(D,B.options.mode||"hide");var G=B.options.direction||"vertical";A.effects.save(D,C);D.show();A.effects.createWrapper(D).css({overflow:"hidden"});var E={size:(G=="vertical")?"height":"width",position:(G=="vertical")?"top":"left"};var I=(G=="vertical")?D.height():D.width();if(H=="show"){D.css(E.size,0);D.css(E.position,I/2)}var F={};F[E.size]=H=="show"?I:0;F[E.position]=H=="show"?0:I/2;D.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){D.hide()}A.effects.restore(D,C);A.effects.removeWrapper(D);if(B.callback){B.callback.apply(this,arguments)}D.dequeue()}})})}})(jQuery);(function(A){A.effects.drop=function(B){return this.queue(function(){var E=A(this),D=["position","top","left","opacity"];var I=A.effects.setMode(E,B.options.mode||"hide");var H=B.options.direction||"left";A.effects.save(E,D);E.show();A.effects.createWrapper(E);var F=(H=="up"||H=="down")?"top":"left";var C=(H=="up"||H=="left")?"pos":"neg";var J=B.options.distance||(F=="top"?E.outerHeight({margin:true})/2:E.outerWidth({margin:true})/2);if(I=="show"){E.css("opacity",0).css(F,C=="pos"?-J:J)}var G={opacity:I=="show"?1:0};G[F]=(I=="show"?(C=="pos"?"+=":"-="):(C=="pos"?"-=":"+="))+J;E.animate(G,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(I=="hide"){E.hide()}A.effects.restore(E,D);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}E.dequeue()}})})}})(jQuery);(function(A){A.effects.explode=function(B){return this.queue(function(){var I=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;var E=B.options.pieces?Math.round(Math.sqrt(B.options.pieces)):3;B.options.mode=B.options.mode=="toggle"?(A(this).is(":visible")?"hide":"show"):B.options.mode;var H=A(this).show().css("visibility","hidden");var J=H.offset();J.top-=parseInt(H.css("marginTop"))||0;J.left-=parseInt(H.css("marginLeft"))||0;var G=H.outerWidth(true);var C=H.outerHeight(true);for(var F=0;F<I;F++){for(var D=0;D<E;D++){H.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-D*(G/E),top:-F*(C/I)}).parent().addClass("effects-explode").css({position:"absolute",overflow:"hidden",width:G/E,height:C/I,left:J.left+D*(G/E)+(B.options.mode=="show"?(D-Math.floor(E/2))*(G/E):0),top:J.top+F*(C/I)+(B.options.mode=="show"?(F-Math.floor(I/2))*(C/I):0),opacity:B.options.mode=="show"?0:1}).animate({left:J.left+D*(G/E)+(B.options.mode=="show"?0:(D-Math.floor(E/2))*(G/E)),top:J.top+F*(C/I)+(B.options.mode=="show"?0:(F-Math.floor(I/2))*(C/I)),opacity:B.options.mode=="show"?1:0},B.duration||500)}}setTimeout(function(){B.options.mode=="show"?H.css({visibility:"visible"}):H.css({visibility:"visible"}).hide();if(B.callback){B.callback.apply(H[0])}H.dequeue();A(".effects-explode").remove()},B.duration||500)})}})(jQuery);(function(A){A.effects.fold=function(B){return this.queue(function(){var E=A(this),H=["position","top","left"];var G=A.effects.setMode(E,B.options.mode||"hide");var K=B.options.size||15;A.effects.save(E,H);E.show();var C=A.effects.createWrapper(E).css({overflow:"hidden"});var F=(G=="show")?["width","height"]:["height","width"];var D=(G=="show")?[C.width(),C.height()]:[C.height(),C.width()];if(G=="show"){C.css({height:K,width:0})}var J={},I={};J[F[0]]=G=="show"?D[0]:K;I[F[1]]=G=="show"?D[1]:0;C.animate(J,B.duration/2,B.options.easing).animate(I,B.duration/2,B.options.easing,function(){if(G=="hide"){E.hide()}A.effects.restore(E,H);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(E[0],arguments)}E.dequeue()})})}})(jQuery);(function(A){A.effects.highlight=function(B){return this.queue(function(){var E=A(this),D=["backgroundImage","backgroundColor","opacity"];var H=A.effects.setMode(E,B.options.mode||"show");var C=B.options.color||"#ffff99";var G=E.css("backgroundColor");A.effects.save(E,D);E.show();E.css({backgroundImage:"none",backgroundColor:C});var F={backgroundColor:G};if(H=="hide"){F["opacity"]=0}E.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){E.hide()}A.effects.restore(E,D);if(H=="show"&&jQuery.browser.msie){this.style.removeAttribute("filter")}if(B.callback){B.callback.apply(this,arguments)}E.dequeue()}})})}})(jQuery);(function(A){A.effects.pulsate=function(B){return this.queue(function(){var D=A(this);var F=A.effects.setMode(D,B.options.mode||"show");var E=B.options.times||5;if(F=="hide"){E--}if(D.is(":hidden")){D.css("opacity",0);D.show();D.animate({opacity:1},B.duration/2,B.options.easing);E=E-2}for(var C=0;C<E;C++){D.animate({opacity:0},B.duration/2,B.options.easing).animate({opacity:1},B.duration/2,B.options.easing)}if(F=="hide"){D.animate({opacity:0},B.duration/2,B.options.easing,function(){D.hide();if(B.callback){B.callback.apply(this,arguments)}})}else{D.animate({opacity:0},B.duration/2,B.options.easing).animate({opacity:1},B.duration/2,B.options.easing,function(){if(B.callback){B.callback.apply(this,arguments)}})}D.queue("fx",function(){D.dequeue()});D.dequeue()})}})(jQuery);(function(A){A.effects.puff=function(B){return this.queue(function(){var F=A(this);var C=A.extend(true,{},B);var H=A.effects.setMode(F,B.options.mode||"hide");var G=parseInt(B.options.percent)||150;C.fade=true;var E={height:F.height(),width:F.width()};var D=G/100;F.from=(H=="hide")?E:{height:E.height*D,width:E.width*D};C.from=F.from;C.percent=(H=="hide")?G:100;C.mode=H;F.effect("scale",C,B.duration,B.callback);F.dequeue()})};A.effects.scale=function(B){return this.queue(function(){var C=A(this);var K=A.extend(true,{},B);var E=A.effects.setMode(C,B.options.mode||"effect");var G=parseInt(B.options.percent)||(parseInt(B.options.percent)==0?0:(E=="hide"?0:100));var I=B.options.direction||"both";var J=B.options.origin;if(E!="effect"){J=J||["middle","center"];K.restore=true}var D={height:C.height(),width:C.width()};C.from=B.options.from||(E=="show"?{height:0,width:0}:D);var H={y:I!="horizontal"?(G/100):1,x:I!="vertical"?(G/100):1};C.to={height:D.height*H.y,width:D.width*H.x};if(J){var F=A.effects.getBaseline(J,D);C.from.top=(D.height-C.from.height)*F.y;C.from.left=(D.width-C.from.width)*F.x;C.to.top=(D.height-C.to.height)*F.y;C.to.left=(D.width-C.to.width)*F.x}if(B.options.fade){if(E=="show"){C.from.opacity=0;C.to.opacity=1}if(E=="hide"){C.from.opacity=1;C.to.opacity=0}}K.from=C.from;K.to=C.to;K.mode=E;C.effect("size",K,B.duration,B.callback);C.dequeue()})};A.effects.size=function(B){return this.queue(function(){var C=A(this),M=["position","top","left","width","height","overflow","opacity"];var L=["position","overflow","opacity"];var I=["width","height","overflow"];var N=["fontSize"];var J=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var F=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var G=A.effects.setMode(C,B.options.mode||"effect");var H=B.options.restore||false;var E=B.options.scale||"both";var D={height:C.height(),width:C.width()};C.from=B.options.from||D;C.to=B.options.to||D;var K={from:{y:C.from.height/D.height,x:C.from.width/D.width},to:{y:C.to.height/D.height,x:C.to.width/D.width}};if(E=="box"||E=="both"){if(K.from.y!=K.to.y){M=M.concat(J);C.from=A.effects.setTransition(C,J,K.from.y,C.from);C.to=A.effects.setTransition(C,J,K.to.y,C.to)}if(K.from.x!=K.to.x){M=M.concat(F);C.from=A.effects.setTransition(C,F,K.from.x,C.from);C.to=A.effects.setTransition(C,F,K.to.x,C.to)}}if(E=="content"||E=="both"){if(K.from.y!=K.to.y){M=M.concat(N);C.from=A.effects.setTransition(C,N,K.from.y,C.from);C.to=A.effects.setTransition(C,N,K.to.y,C.to)}}A.effects.save(C,H?M:L);C.show();A.effects.createWrapper(C);C.css("overflow","hidden").css(C.from);if(E=="content"||E=="both"){J=J.concat(["marginTop","marginBottom"]).concat(N);F=F.concat(["marginLeft","marginRight"]);I=M.concat(J).concat(F);C.find("*[width]").each(function(){child=A(this);if(H){A.effects.save(child,I)}var O={height:child.height(),width:child.width()};child.from={height:O.height*K.from.y,width:O.width*K.from.x};child.to={height:O.height*K.to.y,width:O.width*K.to.x};if(K.from.y!=K.to.y){child.from=A.effects.setTransition(child,J,K.from.y,child.from);child.to=A.effects.setTransition(child,J,K.to.y,child.to)}if(K.from.x!=K.to.x){child.from=A.effects.setTransition(child,F,K.from.x,child.from);child.to=A.effects.setTransition(child,F,K.to.x,child.to)}child.css(child.from);child.animate(child.to,B.duration,B.options.easing,function(){if(H){A.effects.restore(child,I)}})})}C.animate(C.to,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(G=="hide"){C.hide()}A.effects.restore(C,H?M:L);A.effects.removeWrapper(C);if(B.callback){B.callback.apply(this,arguments)}C.dequeue()}})})}})(jQuery);(function(A){A.effects.shake=function(B){return this.queue(function(){var E=A(this),K=["position","top","left"];var J=A.effects.setMode(E,B.options.mode||"effect");var M=B.options.direction||"left";var C=B.options.distance||20;var D=B.options.times||3;var G=B.duration||B.options.duration||140;A.effects.save(E,K);E.show();A.effects.createWrapper(E);var F=(M=="up"||M=="down")?"top":"left";var O=(M=="up"||M=="left")?"pos":"neg";var H={},N={},L={};H[F]=(O=="pos"?"-=":"+=")+C;N[F]=(O=="pos"?"+=":"-=")+C*2;L[F]=(O=="pos"?"-=":"+=")+C*2;E.animate(H,G,B.options.easing);for(var I=1;I<D;I++){E.animate(N,G,B.options.easing).animate(L,G,B.options.easing)}E.animate(N,G,B.options.easing).animate(H,G/2,B.options.easing,function(){A.effects.restore(E,K);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}});E.queue("fx",function(){E.dequeue()});E.dequeue()})}})(jQuery);(function(A){A.effects.slide=function(B){return this.queue(function(){var E=A(this),D=["position","top","left"];var I=A.effects.setMode(E,B.options.mode||"show");var H=B.options.direction||"left";A.effects.save(E,D);E.show();A.effects.createWrapper(E).css({overflow:"hidden"});var F=(H=="up"||H=="down")?"top":"left";var C=(H=="up"||H=="left")?"pos":"neg";var J=B.options.distance||(F=="top"?E.outerHeight({margin:true}):E.outerWidth({margin:true}));if(I=="show"){E.css(F,C=="pos"?-J:J)}var G={};G[F]=(I=="show"?(C=="pos"?"+=":"-="):(C=="pos"?"-=":"+="))+J;E.animate(G,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(I=="hide"){E.hide()}A.effects.restore(E,D);A.effects.removeWrapper(E);if(B.callback){B.callback.apply(this,arguments)}E.dequeue()}})})}})(jQuery);(function(A){A.effects.transfer=function(B){return this.queue(function(){var E=A(this);var G=A.effects.setMode(E,B.options.mode||"effect");var F=A(B.options.to);var C=E.offset();var D=A('<div class="ui-effects-transfer"></div>').appendTo(document.body);if(B.options.className){D.addClass(B.options.className)}D.addClass(B.options.className);D.css({top:C.top,left:C.left,height:E.outerHeight(true)-parseInt(D.css("borderTopWidth"))-parseInt(D.css("borderBottomWidth")),width:E.outerWidth(true)-parseInt(D.css("borderLeftWidth"))-parseInt(D.css("borderRightWidth")),position:"absolute"});C=F.offset();animation={top:C.top,left:C.left,height:F.outerHeight()-parseInt(D.css("borderTopWidth"))-parseInt(D.css("borderBottomWidth")),width:F.outerWidth()-parseInt(D.css("borderLeftWidth"))-parseInt(D.css("borderRightWidth"))};D.animate(animation,B.duration,B.options.easing,function(){D.remove();if(B.callback){B.callback.apply(E[0],arguments)}E.dequeue()})})}})(jQuery);(function(E){E.widget("ui.accordion",{init:function(){var G=this.options;if(G.navigation){var J=this.element.find("a").filter(G.navigationFilter);if(J.length){if(J.filter(G.header).length){G.active=J}else{G.active=J.parent().parent().prev();J.addClass("current")}}}G.headers=this.element.find(G.header);G.active=C(G.headers,G.active);if(E.browser.msie){this.element.find("a").css("zoom","1")}if(!this.element.hasClass("ui-accordion")){this.element.addClass("ui-accordion");E("<span class='ui-accordion-left'/>").insertBefore(G.headers);E("<span class='ui-accordion-right'/>").appendTo(G.headers);G.headers.addClass("ui-accordion-header").attr("tabindex","0")}var I;if(G.fillSpace){I=this.element.parent().height();G.headers.each(function(){I-=E(this).outerHeight()});var H=0;G.headers.next().each(function(){H=Math.max(H,E(this).innerHeight()-E(this).height())}).height(I-H)}else{if(G.autoHeight){I=0;G.headers.next().each(function(){I=Math.max(I,E(this).outerHeight())}).height(I)}}G.headers.not(G.active||"").next().hide();G.active.parent().andSelf().addClass(G.selectedClass);if(G.event){this.element.bind((G.event)+".accordion",F)}},activate:function(G){F.call(this.element[0],{target:C(this.options.headers,G)[0]})},destroy:function(){this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoHeight){this.options.headers.next().css("height","")}E.removeData(this.element[0],"accordion");this.element.removeClass("ui-accordion").unbind(".accordion")}});function B(H,G){return function(){return H.apply(G,arguments)}}function D(I){if(!E.data(this,"accordion")){return }var G=E.data(this,"accordion");var H=G.options;H.running=I?0:--H.running;if(H.running){return }if(H.clearStyle){H.toShow.add(H.toHide).css({height:"",overflow:""})}E(this).triggerHandler("accordionchange",[H.data],H.change)}function A(G,K,L,J,M){var I=E.data(this,"accordion").options;I.toShow=G;I.toHide=K;I.data=L;var H=B(D,this);I.running=K.size()===0?G.size():K.size();if(I.animated){if(!I.alwaysOpen&&J){E.ui.accordion.animations[I.animated]({toShow:jQuery([]),toHide:K,complete:H,down:M,autoHeight:I.autoHeight})}else{E.ui.accordion.animations[I.animated]({toShow:G,toHide:K,complete:H,down:M,autoHeight:I.autoHeight})}}else{if(!I.alwaysOpen&&J){G.toggle()}else{K.hide();G.show()}H(true)}}function F(L){var J=E.data(this,"accordion").options;if(J.disabled){return false}if(!L.target&&!J.alwaysOpen){J.active.parent().andSelf().toggleClass(J.selectedClass);var I=J.active.next(),M={options:J,newHeader:jQuery([]),oldHeader:J.active,newContent:jQuery([]),oldContent:I},G=(J.active=E([]));A.call(this,G,I,M);return false}var K=E(L.target);if(K.parents(J.header).length){while(!K.is(J.header)){K=K.parent()}}var H=K[0]==J.active[0];if(J.running||(J.alwaysOpen&&H)){return false}if(!K.is(J.header)){return }J.active.parent().andSelf().toggleClass(J.selectedClass);if(!H){K.parent().andSelf().addClass(J.selectedClass)}var G=K.next(),I=J.active.next(),M={options:J,newHeader:K,oldHeader:J.active,newContent:G,oldContent:I},N=J.headers.index(J.active[0])>J.headers.index(K[0]);J.active=H?E([]):K;A.call(this,G,I,M,H,N);return false}function C(H,G){return G!=undefined?typeof G=="number"?H.filter(":eq("+G+")"):H.not(H.not(G)):G===false?E([]):H.filter(":eq(0)")}E.extend(E.ui.accordion,{defaults:{selectedClass:"selected",alwaysOpen:true,animated:"slide",event:"click",header:"a",autoHeight:true,running:0,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(G,I){G=E.extend({easing:"swing",duration:300},G,I);if(!G.toHide.size()){G.toShow.animate({height:"show"},G);return }var H=G.toHide.height(),J=G.toShow.height(),K=J/H;G.toShow.css({height:0,overflow:"hidden"}).show();G.toHide.filter(":hidden").each(G.complete).end().filter(":visible").animate({height:"hide"},{step:function(L){var M=(H-L)*K;if(E.browser.msie||E.browser.opera){M=Math.ceil(M)}G.toShow.height(M)},duration:G.duration,easing:G.easing,complete:function(){if(!G.autoHeight){G.toShow.css("height","auto")}G.complete()}})},bounceslide:function(G){this.slide(G,{easing:G.down?"bounceout":"swing",duration:G.down?1000:200})},easeslide:function(G){this.slide(G,{easing:"easeinout",duration:700})}}});E.fn.activate=function(G){return this.accordion("activate",G)}})(jQuery);(function($){function Datepicker(){this.debug=false;this._nextId=0;this._inst=[];this._curInst=null;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this.regional=[];this.regional[""]={clearText:"Clear",clearStatus:"Erase the current date",closeText:"Close",closeStatus:"Close without change",prevText:"&#x3c;Prev",prevStatus:"Show the previous month",nextText:"Next&#x3e;",nextStatus:"Show the next month",currentText:"Today",currentStatus:"Show the current month",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthStatus:"Show a different month",yearStatus:"Show a different year",weekHeader:"Wk",weekStatus:"Week of the year",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayStatus:"Set DD as first week day",dateStatus:"Select DD, M d",dateFormat:"mm/dd/yy",firstDay:0,initStatus:"Select a date",isRTL:false};this._defaults={showOn:"focus",showAnim:"show",defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,closeAtTop:true,mandatory:false,hideIfNoPrevNext:false,changeMonth:true,changeYear:true,yearRange:"-10:+10",changeFirstDay:true,showOtherMonths:false,showWeeks:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",showStatus:false,statusForDate:this.dateStatus,minDate:null,maxDate:null,speed:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onClose:null,numberOfMonths:1,stepMonths:1,rangeSelect:false,rangeSeparator:" - "};$.extend(this._defaults,this.regional[""]);this._datepickerDiv=$('<div id="ui-datepicker-div"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},_register:function(inst){var id=this._nextId++;this._inst[id]=inst;return id},_getInst:function(id){return this._inst[id]||id},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var instSettings=(inlineSettings?$.extend(settings||{},inlineSettings||{}):settings);if(nodeName=="input"){var inst=(inst&&!inlineSettings?inst:new DatepickerInstance(instSettings,false));this._connectDatepicker(target,inst)}else{if(nodeName=="div"||nodeName=="span"){var inst=new DatepickerInstance(instSettings,true);this._inlineDatepicker(target,inst)}}},_destroyDatepicker:function(target){var nodeName=target.nodeName.toLowerCase();var calId=target._calId;target._calId=null;var $target=$(target);if(nodeName=="input"){$target.siblings(".ui-datepicker-append").replaceWith("").end().siblings(".ui-datepicker-trigger").replaceWith("").end().removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress);var wrapper=$target.parents(".ui-datepicker-wrap");if(wrapper){wrapper.replaceWith(wrapper.html())}}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}if($("input[_calId="+calId+"]").length==0){this._inst[calId]=null}},_enableDatepicker:function(target){target.disabled=false;$(target).siblings("button.ui-datepicker-trigger").each(function(){this.disabled=false}).end().siblings("img.ui-datepicker-trigger").css({opacity:"1.0",cursor:""});this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){target.disabled=true;$(target).siblings("button.ui-datepicker-trigger").each(function(){this.disabled=true}).end().siblings("img.ui-datepicker-trigger").css({opacity:"0.5",cursor:"default"});this._disabledInputs=$.map($.datepicker._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[$.datepicker._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_changeDatepicker:function(target,name,value){var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst=this._getInst(target._calId)){extendRemove(inst._settings,settings);this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){if(inst=this._getInst(target._calId)){inst._setDate(date,endDate);this._updateDatepicker(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target._calId);if(inst){inst._setDateFromField($(target))}return(inst?inst._getDate():null)},_doKeyDown:function(e){var inst=$.datepicker._getInst(this._calId);if($.datepicker._datepickerShowing){switch(e.keyCode){case 9:$.datepicker._hideDatepicker(null,"");break;case 13:$.datepicker._selectDay(inst,inst._selectedMonth,inst._selectedYear,$("td.ui-datepicker-days-cell-over",inst._datepickerDiv)[0]);return false;break;case 27:$.datepicker._hideDatepicker(null,inst._get("speed"));break;case 33:$.datepicker._adjustDate(inst,(e.ctrlKey?-1:-inst._get("stepMonths")),(e.ctrlKey?"Y":"M"));break;case 34:$.datepicker._adjustDate(inst,(e.ctrlKey?+1:+inst._get("stepMonths")),(e.ctrlKey?"Y":"M"));break;case 35:if(e.ctrlKey){$.datepicker._clearDate(inst)}break;case 36:if(e.ctrlKey){$.datepicker._gotoToday(inst)}break;case 37:if(e.ctrlKey){$.datepicker._adjustDate(inst,-1,"D")}break;case 38:if(e.ctrlKey){$.datepicker._adjustDate(inst,-7,"D")}break;case 39:if(e.ctrlKey){$.datepicker._adjustDate(inst,+1,"D")}break;case 40:if(e.ctrlKey){$.datepicker._adjustDate(inst,+7,"D")}break}}else{if(e.keyCode==36&&e.ctrlKey){$.datepicker._showDatepicker(this)}}},_doKeyPress:function(e){var inst=$.datepicker._getInst(this._calId);var chars=$.datepicker._possibleChars(inst._get("dateFormat"));var chr=String.fromCharCode(e.charCode==undefined?e.keyCode:e.charCode);return e.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)},_connectDatepicker:function(target,inst){var input=$(target);if(input.is("."+this.markerClassName)){return }var appendText=inst._get("appendText");var isRTL=inst._get("isRTL");if(appendText){if(isRTL){input.before('<span class="ui-datepicker-append">'+appendText)}else{input.after('<span class="ui-datepicker-append">'+appendText)}}var showOn=inst._get("showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){input.wrap('<span class="ui-datepicker-wrap">');var buttonText=inst._get("buttonText");var buttonImage=inst._get("buttonImage");var trigger=$(inst._get("buttonImageOnly")?$("<img>").addClass("ui-datepicker-trigger").attr({src:buttonImage,alt:buttonText,title:buttonText}):$("<button>").addClass("ui-datepicker-trigger").attr({type:"button"}).html(buttonImage!=""?$("<img>").attr({src:buttonImage,alt:buttonText,title:buttonText}):buttonText));if(isRTL){input.before(trigger)}else{input.after(trigger)}trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst._settings[key]=value}).bind("getData.datepicker",function(event,key){return inst._get(key)});input[0]._calId=inst._id},_inlineDatepicker:function(target,inst){var input=$(target);if(input.is("."+this.markerClassName)){return }input.addClass(this.markerClassName).append(inst._datepickerDiv).bind("setData.datepicker",function(event,key,value){inst._settings[key]=value}).bind("getData.datepicker",function(event,key){return inst._get(key)});input[0]._calId=inst._id;this._updateDatepicker(inst)},_inlineShow:function(inst){var numMonths=inst._getNumberOfMonths();inst._datepickerDiv.width(numMonths[1]*$(".ui-datepicker",inst._datepickerDiv[0]).width())},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){inst=this._dialogInst=new DatepickerInstance({},false);this._dialogInput=$('<input type="text" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);this._dialogInput[0]._calId=inst._id}extendRemove(inst._settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst._settings.onSelect=onSelect;this._inDialog=true;this._datepickerDiv.addClass("ui-datepicker-dialog");this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this._datepickerDiv)}return this},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return }var inst=$.datepicker._getInst(input._calId);var beforeShow=inst._get("beforeShow");extendRemove(inst._settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;inst._setDateFromField(input);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed"});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}inst._datepickerDiv.css("position",($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute"))).css({left:$.datepicker._pos[0]+"px",top:$.datepicker._pos[1]+"px"});$.datepicker._pos=null;inst._rangeStart=null;$.datepicker._updateDatepicker(inst);if(!inst._inline){var speed=inst._get("speed");var postProcess=function(){$.datepicker._datepickerShowing=true;$.datepicker._afterShow(inst)};var showAnim=inst._get("showAnim")||"show";inst._datepickerDiv[showAnim](speed,postProcess);if(speed==""){postProcess()}if(inst._input[0].type!="hidden"){inst._input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){inst._datepickerDiv.empty().append(inst._generateDatepicker());var numMonths=inst._getNumberOfMonths();if(numMonths[0]!=1||numMonths[1]!=1){inst._datepickerDiv.addClass("ui-datepicker-multi")}else{inst._datepickerDiv.removeClass("ui-datepicker-multi")}if(inst._get("isRTL")){inst._datepickerDiv.addClass("ui-datepicker-rtl")}else{inst._datepickerDiv.removeClass("ui-datepicker-rtl")}if(inst._input&&inst._input[0].type!="hidden"){$(inst._input[0]).focus()}},_afterShow:function(inst){var numMonths=inst._getNumberOfMonths();inst._datepickerDiv.width(numMonths[1]*$(".ui-datepicker",inst._datepickerDiv[0])[0].offsetWidth);if($.browser.msie&&parseInt($.browser.version)<7){$("iframe.ui-datepicker-cover").css({width:inst._datepickerDiv.width()+4,height:inst._datepickerDiv.height()+4})}var isFixed=inst._datepickerDiv.css("position")=="fixed";var pos=inst._input?$.datepicker._findPos(inst._input[0]):null;var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=(isFixed?0:document.documentElement.scrollLeft||document.body.scrollLeft);var scrollY=(isFixed?0:document.documentElement.scrollTop||document.body.scrollTop);if((inst._datepickerDiv.offset().left+inst._datepickerDiv.width()-(isFixed&&$.browser.msie?document.documentElement.scrollLeft:0))>(browserWidth+scrollX)){inst._datepickerDiv.css("left",Math.max(scrollX,pos[0]+(inst._input?$(inst._input[0]).width():null)-inst._datepickerDiv.width()-(isFixed&&$.browser.opera?document.documentElement.scrollLeft:0))+"px")}if((inst._datepickerDiv.offset().top+inst._datepickerDiv.height()-(isFixed&&$.browser.msie?document.documentElement.scrollTop:0))>(browserHeight+scrollY)){inst._datepickerDiv.css("top",Math.max(scrollY,pos[1]-(this._inDialog?0:inst._datepickerDiv.height())-(isFixed&&$.browser.opera?document.documentElement.scrollTop:0))+"px")}},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,speed){var inst=this._curInst;if(!inst){return }var rangeSelect=inst._get("rangeSelect");if(rangeSelect&&this._stayOpen){this._selectDate(inst,inst._formatDate(inst._currentDay,inst._currentMonth,inst._currentYear))}this._stayOpen=false;if(this._datepickerShowing){speed=(speed!=null?speed:inst._get("speed"));var showAnim=inst._get("showAnim");inst._datepickerDiv[(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide"))](speed,function(){$.datepicker._tidyDialog(inst)});if(speed==""){this._tidyDialog(inst)}var onClose=inst._get("onClose");if(onClose){onClose.apply((inst._input?inst._input[0]:null),[inst._getDate(),inst])}this._datepickerShowing=false;this._lastInput=null;inst._settings.prompt=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this._datepickerDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst._datepickerDiv.removeClass("ui-datepicker-dialog").unbind(".ui-datepicker");$(".ui-datepicker-prompt",inst._datepickerDiv).remove()},_checkExternalClick:function(event){if(!$.datepicker._curInst){return }var $target=$(event.target);if(($target.parents("#ui-datepicker-div").length==0)&&!$target.hasClass("hasDatepicker")&&!$target.hasClass("ui-datepicker-trigger")&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var inst=this._getInst(id);inst._adjustDate(offset,period);this._updateDatepicker(inst)},_gotoToday:function(id){var date=new Date();var inst=this._getInst(id);inst._selectedDay=date.getDate();inst._drawMonth=inst._selectedMonth=date.getMonth();inst._drawYear=inst._selectedYear=date.getFullYear();this._adjustDate(inst)},_selectMonthYear:function(id,select,period){var inst=this._getInst(id);inst._selectingMonthYear=false;inst[period=="M"?"_drawMonth":"_drawYear"]=select.options[select.selectedIndex].value-0;this._adjustDate(inst)},_clickMonthYear:function(id){var inst=this._getInst(id);if(inst._input&&inst._selectingMonthYear&&!$.browser.msie){inst._input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_changeFirstDay:function(id,day){var inst=this._getInst(id);inst._settings.firstDay=day;this._updateDatepicker(inst)},_selectDay:function(id,month,year,td){if($(td).is(".ui-datepicker-unselectable")){return }var inst=this._getInst(id);var rangeSelect=inst._get("rangeSelect");if(rangeSelect){if(!this._stayOpen){$(".ui-datepicker td").removeClass("ui-datepicker-current-day");$(td).addClass("ui-datepicker-current-day")}this._stayOpen=!this._stayOpen}inst._selectedDay=inst._currentDay=$("a",td).html();inst._selectedMonth=inst._currentMonth=month;inst._selectedYear=inst._currentYear=year;this._selectDate(id,inst._formatDate(inst._currentDay,inst._currentMonth,inst._currentYear));if(this._stayOpen){inst._endDay=inst._endMonth=inst._endYear=null;inst._rangeStart=new Date(inst._currentYear,inst._currentMonth,inst._currentDay);this._updateDatepicker(inst)}else{if(rangeSelect){inst._endDay=inst._currentDay;inst._endMonth=inst._currentMonth;inst._endYear=inst._currentYear;inst._selectedDay=inst._currentDay=inst._rangeStart.getDate();inst._selectedMonth=inst._currentMonth=inst._rangeStart.getMonth();inst._selectedYear=inst._currentYear=inst._rangeStart.getFullYear();inst._rangeStart=null;if(inst._inline){this._updateDatepicker(inst)}}}},_clearDate:function(id){var inst=this._getInst(id);if(inst._get("mandatory")){return }this._stayOpen=false;inst._endDay=inst._endMonth=inst._endYear=inst._rangeStart=null;this._selectDate(inst,"")},_selectDate:function(id,dateStr){var inst=this._getInst(id);dateStr=(dateStr!=null?dateStr:inst._formatDate());if(inst._rangeStart){dateStr=inst._formatDate(inst._rangeStart)+inst._get("rangeSeparator")+dateStr}if(inst._input){inst._input.val(dateStr)}var onSelect=inst._get("onSelect");if(onSelect){onSelect.apply((inst._input?inst._input[0]:null),[dateStr,inst])}else{if(inst._input){inst._input.trigger("change")}}if(inst._inline){this._updateDatepicker(inst)}else{if(!this._stayOpen){this._hideDatepicker(null,inst._get("speed"));this._lastInput=inst._input[0];if(typeof (inst._input[0])!="object"){inst._input[0].focus()}this._lastInput=null}}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate(),(date.getTimezoneOffset()/-60));var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){checkDate.setDate(checkDate.getDate()+3);return $.datepicker.iso8601Week(checkDate)}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},dateStatus:function(date,inst){return $.datepicker.formatDate(inst._get("dateStatus"),date,inst._getFormatConfig())},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var size=(match=="y"?4:2);var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+(value.charAt(iValue++)-0);size--}if(size==(match=="y"?4:2)){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++){size=Math.max(size,names[j].length)}var name="";var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);for(var i=0;i<names.length;i++){if(name==names[i]){return i+1}}size--}throw"Unknown name at position "+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}var date=new Date(year,month-1,day);if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value){return(lookAhead(match)&&value<10?"0":"")+value};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate());break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"m":output+=formatNumber("m",date.getMonth()+1);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d"||"m"||"y":chars+="0123456789";break;case"D"||"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars}});function DatepickerInstance(settings,inline){this._id=$.datepicker._register(this);this._selectedDay=0;this._selectedMonth=0;this._selectedYear=0;this._drawMonth=0;this._drawYear=0;this._input=null;this._inline=inline;this._datepickerDiv=(!inline?$.datepicker._datepickerDiv:$('<div id="ui-datepicker-div-'+this._id+'" class="ui-datepicker-inline">'));this._settings=extendRemove(settings||{});if(inline){this._setDate(this._getDefaultDate())}}$.extend(DatepickerInstance.prototype,{_get:function(name){return this._settings[name]!==undefined?this._settings[name]:$.datepicker._defaults[name]},_setDateFromField:function(input){this._input=$(input);var dateFormat=this._get("dateFormat");var dates=this._input?this._input.val().split(this._get("rangeSeparator")):null;this._endDay=this._endMonth=this._endYear=null;var date=defaultDate=this._getDefaultDate();if(dates.length>0){var settings=this._getFormatConfig();if(dates.length>1){date=$.datepicker.parseDate(dateFormat,dates[1],settings)||defaultDate;this._endDay=date.getDate();this._endMonth=date.getMonth();this._endYear=date.getFullYear()}try{date=$.datepicker.parseDate(dateFormat,dates[0],settings)||defaultDate}catch(e){$.datepicker.log(e);date=defaultDate}}this._selectedDay=date.getDate();this._drawMonth=this._selectedMonth=date.getMonth();this._drawYear=this._selectedYear=date.getFullYear();this._currentDay=(dates[0]?date.getDate():0);this._currentMonth=(dates[0]?date.getMonth():0);this._currentYear=(dates[0]?date.getFullYear():0);this._adjustDate()},_getDefaultDate:function(){var date=this._determineDate("defaultDate",new Date());var minDate=this._getMinMaxDate("min",true);var maxDate=this._getMinMaxDate("max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date},_determineDate:function(name,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var matches=/^([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?$/.exec(offset);if(matches){var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();switch(matches[2]||"d"){case"d":case"D":day+=(matches[1]-0);break;case"w":case"W":day+=(matches[1]*7);break;case"m":case"M":month+=(matches[1]-0);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=(matches[1]-0);day=Math.min(day,getDaysInMonth(year,month));break}date=new Date(year,month,day)}return date};var date=this._get(name);return(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?offsetNumeric(date):date)))},_setDate:function(date,endDate){this._selectedDay=this._currentDay=date.getDate();this._drawMonth=this._selectedMonth=this._currentMonth=date.getMonth();this._drawYear=this._selectedYear=this._currentYear=date.getFullYear();if(this._get("rangeSelect")){if(endDate){this._endDay=endDate.getDate();this._endMonth=endDate.getMonth();this._endYear=endDate.getFullYear()}else{this._endDay=this._currentDay;this._endMonth=this._currentMonth;this._endYear=this._currentYear}}this._adjustDate()},_getDate:function(){var startDate=(!this._currentYear||(this._input&&this._input.val()=="")?null:new Date(this._currentYear,this._currentMonth,this._currentDay));if(this._get("rangeSelect")){return[startDate,(!this._endYear?null:new Date(this._endYear,this._endMonth,this._endDay))]}else{return startDate}},_generateDatepicker:function(){var today=new Date();today=new Date(today.getFullYear(),today.getMonth(),today.getDate());var showStatus=this._get("showStatus");var isRTL=this._get("isRTL");var clear=(this._get("mandatory")?"":'<div class="ui-datepicker-clear"><a onclick="jQuery.datepicker._clearDate('+this._id+');"'+(showStatus?this._addStatus(this._get("clearStatus")||"&#xa0;"):"")+">"+this._get("clearText")+"</a></div>");var controls='<div class="ui-datepicker-control">'+(isRTL?"":clear)+'<div class="ui-datepicker-close"><a onclick="jQuery.datepicker._hideDatepicker();"'+(showStatus?this._addStatus(this._get("closeStatus")||"&#xa0;"):"")+">"+this._get("closeText")+"</a></div>"+(isRTL?clear:"")+"</div>";var prompt=this._get("prompt");var closeAtTop=this._get("closeAtTop");var hideIfNoPrevNext=this._get("hideIfNoPrevNext");var numMonths=this._getNumberOfMonths();var stepMonths=this._get("stepMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var minDate=this._getMinMaxDate("min",true);var maxDate=this._getMinMaxDate("max");var drawMonth=this._drawMonth;var drawYear=this._drawYear;if(maxDate){var maxDraw=new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate());maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(new Date(drawYear,drawMonth,1)>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}var prev='<div class="ui-datepicker-prev">'+(this._canAdjustMonth(-1,drawYear,drawMonth)?'<a onclick="jQuery.datepicker._adjustDate('+this._id+", -"+stepMonths+", 'M');\""+(showStatus?this._addStatus(this._get("prevStatus")||"&#xa0;"):"")+">"+this._get("prevText")+"</a>":(hideIfNoPrevNext?"":"<label>"+this._get("prevText")+"</label>"))+"</div>";var next='<div class="ui-datepicker-next">'+(this._canAdjustMonth(+1,drawYear,drawMonth)?'<a onclick="jQuery.datepicker._adjustDate('+this._id+", +"+stepMonths+", 'M');\""+(showStatus?this._addStatus(this._get("nextStatus")||"&#xa0;"):"")+">"+this._get("nextText")+"</a>":(hideIfNoPrevNext?">":"<label>"+this._get("nextText")+"</label>"))+"</div>";var html=(prompt?'<div class="ui-datepicker-prompt">'+prompt+"</div>":"")+(closeAtTop&&!this._inline?controls:"")+'<div class="ui-datepicker-links">'+(isRTL?next:prev)+(this._isInRange(today)?'<div class="ui-datepicker-current"><a onclick="jQuery.datepicker._gotoToday('+this._id+');"'+(showStatus?this._addStatus(this._get("currentStatus")||"&#xa0;"):"")+">"+this._get("currentText")+"</a></div>":"")+(isRTL?prev:next)+"</div>";var showWeeks=this._get("showWeeks");for(var row=0;row<numMonths[0];row++){for(var col=0;col<numMonths[1];col++){var selectedDate=new Date(drawYear,drawMonth,this._selectedDay);html+='<div class="ui-datepicker-one-month'+(col==0?" ui-datepicker-new-row":"")+'">'+this._generateMonthYearHeader(drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0)+'<table class="ui-datepicker" cellpadding="0" cellspacing="0"><thead><tr class="ui-datepicker-title-row">'+(showWeeks?"<td>"+this._get("weekHeader")+"</td>":"");var firstDay=this._get("firstDay");var changeFirstDay=this._get("changeFirstDay");var dayNames=this._get("dayNames");var dayNamesShort=this._get("dayNamesShort");var dayNamesMin=this._get("dayNamesMin");for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;var status=this._get("dayStatus")||"&#xa0;";status=(status.indexOf("DD")>-1?status.replace(/DD/,dayNames[day]):status.replace(/D/,dayNamesShort[day]));html+="<td"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end-cell"':"")+">"+(!changeFirstDay?"<span":'<a onclick="jQuery.datepicker._changeFirstDay('+this._id+", "+day+');"')+(showStatus?this._addStatus(status):"")+' title="'+dayNames[day]+'">'+dayNamesMin[day]+(changeFirstDay?"</a>":"</span>")+"</td>"}html+="</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==this._selectedYear&&drawMonth==this._selectedMonth){this._selectedDay=Math.min(this._selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var currentDate=(!this._currentDay?new Date(9999,9,9):new Date(this._currentYear,this._currentMonth,this._currentDay));var endDate=this._endDay?new Date(this._endYear,this._endMonth,this._endDay):currentDate;var printDate=new Date(drawYear,drawMonth,1-leadDays);var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var beforeShowDay=this._get("beforeShowDay");var showOtherMonths=this._get("showOtherMonths");var calculateWeek=this._get("calculateWeek")||$.datepicker.iso8601Week;var dateStatus=this._get("statusForDate")||$.datepicker.dateStatus;for(var dRow=0;dRow<numRows;dRow++){html+='<tr class="ui-datepicker-days-row">'+(showWeeks?'<td class="ui-datepicker-week-col">'+calculateWeek(printDate)+"</td>":"");for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((this._input?this._input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);html+='<td class="ui-datepicker-days-cell'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end-cell":"")+(otherMonth?" ui-datepicker-otherMonth":"")+(printDate.getTime()==selectedDate.getTime()&&drawMonth==this._selectedMonth?" ui-datepicker-days-cell-over":"")+(unselectable?" ui-datepicker-unselectable":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-datepicker-current-day":"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+(unselectable?"":" onmouseover=\"jQuery(this).addClass('ui-datepicker-days-cell-over');"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+this._id+"').html('"+(dateStatus.apply((this._input?this._input[0]:null),[printDate,this])||"&#xa0;")+"');")+"\" onmouseout=\"jQuery(this).removeClass('ui-datepicker-days-cell-over');"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+this._id+"').html('&#xa0;');")+'" onclick="jQuery.datepicker._selectDay('+this._id+","+drawMonth+","+drawYear+', this);"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?printDate.getDate():"<a>"+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1)}html+="</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}html+="</tbody></table></div>"}}html+=(showStatus?'<div style="clear: both;"></div><div id="ui-datepicker-status-'+this._id+'" class="ui-datepicker-status">'+(this._get("initStatus")||"&#xa0;")+"</div>":"")+(!closeAtTop&&!this._inline?controls:"")+'<div style="clear: both;"></div>'+($.browser.msie&&parseInt($.browser.version)<7&&!this._inline?'<iframe src="javascript:false;" class="ui-datepicker-cover"></iframe>':"");return html},_generateMonthYearHeader:function(drawMonth,drawYear,minDate,maxDate,selectedDate,secondary){minDate=(this._rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var showStatus=this._get("showStatus");var html='<div class="ui-datepicker-header">';var monthNames=this._get("monthNames");if(secondary||!this._get("changeMonth")){html+=monthNames[drawMonth]+"&#xa0;"}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);html+='<select class="ui-datepicker-new-month" onchange="jQuery.datepicker._selectMonthYear('+this._id+", this, 'M');\" onclick=\"jQuery.datepicker._clickMonthYear("+this._id+');"'+(showStatus?this._addStatus(this._get("monthStatus")||"&#xa0;"):"")+">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){html+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNames[month]+"</option>"}}html+="</select>"}if(secondary||!this._get("changeYear")){html+=drawYear}else{var years=this._get("yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=new Date().getFullYear()+parseInt(years[0],10);endYear=new Date().getFullYear()+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-new-year" onchange="jQuery.datepicker._selectMonthYear('+this._id+", this, 'Y');\" onclick=\"jQuery.datepicker._clickMonthYear("+this._id+');"'+(showStatus?this._addStatus(this._get("yearStatus")||"&#xa0;"):"")+">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}html+="</div>";return html},_addStatus:function(text){return" onmouseover=\"jQuery('#ui-datepicker-status-"+this._id+"').html('"+text+"');\" onmouseout=\"jQuery('#ui-datepicker-status-"+this._id+"').html('&#xa0;');\""},_adjustDate:function(offset,period){var year=this._drawYear+(period=="Y"?offset:0);var month=this._drawMonth+(period=="M"?offset:0);var day=Math.min(this._selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=new Date(year,month,day);var minDate=this._getMinMaxDate("min",true);var maxDate=this._getMinMaxDate("max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);this._selectedDay=date.getDate();this._drawMonth=this._selectedMonth=date.getMonth();this._drawYear=this._selectedYear=date.getFullYear()},_getNumberOfMonths:function(){var numMonths=this._get("numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(minMax,checkRange){var date=this._determineDate(minMax+"Date",null);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return date||(checkRange?this._rangeStart:null)},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(offset,curYear,curMonth){var numMonths=this._getNumberOfMonths();var date=new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1);if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(date)},_isInRange:function(date){var newMinDate=(!this._rangeStart?null:new Date(this._selectedYear,this._selectedMonth,this._selectedDay));newMinDate=(newMinDate&&this._rangeStart<newMinDate?this._rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate("min");var maxDate=this._getMinMaxDate("max");return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(){var shortYearCutoff=this._get("shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get("dayNamesShort"),dayNames:this._get("dayNames"),monthNamesShort:this._get("monthNamesShort"),monthNames:this._get("monthNames")}},_formatDate:function(day,month,year){if(!day){this._currentDay=this._selectedDay;this._currentMonth=this._selectedMonth;this._currentYear=this._selectedYear}var date=(day?(typeof day=="object"?day:new Date(year,month,day)):new Date(this._currentYear,this._currentMonth,this._currentDay));return $.datepicker.formatDate(this._get("dateFormat"),date,this._getFormatConfig())}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null){target[name]=null}}return target}$.fn.datepicker=function(options){var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$(document).ready(function(){$(document.body).append($.datepicker._datepickerDiv).mousedown($.datepicker._checkExternalClick)})})(jQuery);(function(B){var A={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};B.widget("ui.dialog",{init:function(){var K=this,L=this.options,D=typeof L.resizable=="string"?L.resizable:"n,e,s,w,se,sw,ne,nw",E=this.element.addClass("ui-dialog-content").wrap("<div/>").wrap("<div/>"),H=E.parent().addClass("ui-dialog-container").css({position:"relative"}),I=L.title||E.attr("title")||"",C=(this.uiDialogTitlebar=B('<div class="ui-dialog-titlebar"/>')).append('<span class="ui-dialog-title">'+I+"</span>").append('<a href="#" class="ui-dialog-titlebar-close"><span>X</span></a>').prependTo(H),J=(this.uiDialog=H.parent()).appendTo(document.body).hide().addClass("ui-dialog").addClass(L.dialogClass).addClass(E.attr("className")).removeClass("ui-dialog-content").css({position:"absolute",width:L.width,height:L.height,overflow:"hidden",zIndex:L.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(M){if(L.closeOnEscape){var N=27;(M.keyCode&&M.keyCode==N&&K.close())}}).mousedown(function(){K.moveToTop()});this.uiDialogTitlebarClose=B(".ui-dialog-titlebar-close",C).hover(function(){B(this).addClass("ui-dialog-titlebar-close-hover")},function(){B(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function(M){M.stopPropagation()}).click(function(){K.close();return false});var G=false;B.each(L.buttons,function(){return !(G=true)});if(G){var F=B('<div class="ui-dialog-buttonpane"/>').appendTo(J);B.each(L.buttons,function(M,N){B("<button/>").text(M).click(function(){N.apply(K.element[0],arguments)}).appendTo(F)})}if(B.fn.draggable){J.draggable({handle:".ui-dialog-titlebar",start:function(N,M){K.moveToTop();(L.dragStart&&L.dragStart.apply(this,arguments))},drag:L.drag,stop:function(N,M){(L.dragStop&&L.dragStop.apply(this,arguments));B.ui.dialog.overlay.resize()}});(L.draggable||J.draggable("disable"))}if(B.fn.resizable){J.resizable({maxWidth:L.maxWidth,maxHeight:L.maxHeight,minWidth:L.minWidth,minHeight:L.minHeight,start:L.resizeStart,resize:L.resize,handles:D,stop:function(N,M){(L.resizeStop&&L.resizeStop.apply(this,arguments));B.ui.dialog.overlay.resize()}});(L.resizable||J.resizable("disable"))}(L.bgiframe&&B.fn.bgiframe&&J.bgiframe());(L.autoOpen&&this.open())},setData:function(C,D){(A[C]&&this.uiDialog.data(A[C],D));switch(C){case"draggable":this.uiDialog.draggable(D?"enable":"disable");break;case"height":this.uiDialog.height(D);break;case"position":this.position(D);break;case"resizable":(typeof D=="string"&&this.uiDialog.data("handles.resizable",D));this.uiDialog.resizable(D?"enable":"disable");break;case"title":B(".ui-dialog-title",this.uiDialogTitlebar).text(D);break;case"width":this.uiDialog.width(D);break}B.widget.prototype.setData.apply(this,arguments)},position:function(H){var D=B(window),E=B(document),F=E.scrollTop(),C=E.scrollLeft(),G=F;if(B.inArray(H,["center","top","right","bottom","left"])>=0){H=[H=="right"||H=="left"?H:"center",H=="top"||H=="bottom"?H:"middle"]}if(H.constructor!=Array){H=["center","middle"]}if(H[0].constructor==Number){C+=H[0]}else{switch(H[0]){case"left":C+=0;break;case"right":C+=D.width()-this.uiDialog.width();break;default:case"center":C+=(D.width()-this.uiDialog.width())/2}}if(H[1].constructor==Number){F+=H[1]}else{switch(H[1]){case"top":F+=0;break;case"bottom":F+=D.height()-this.uiDialog.height();break;default:case"middle":F+=(D.height()-this.uiDialog.height())/2}}F=Math.max(F,G);this.uiDialog.css({top:F,left:C})},open:function(){this.overlay=this.options.modal?new B.ui.dialog.overlay(this):null;this.uiDialog.appendTo("body");this.position(this.options.position);this.uiDialog.show();this.moveToTop(true);var C=null;var D={options:this.options};this.uiDialogTitlebarClose.focus();this.element.triggerHandler("dialogopen",[C,D],this.options.open)},moveToTop:function(E){if((this.options.modal&&!E)||!this.options.stack){return }var D=this.options.zIndex,C=this.options;B(".ui-dialog:visible").each(function(){D=Math.max(D,parseInt(B(this).css("z-index"),10)||C.zIndex)});(this.overlay&&this.overlay.$el.css("z-index",++D));this.uiDialog.css("z-index",++D)},close:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();var D=null;var C={options:this.options};this.element.triggerHandler("dialogclose",[D,C],this.options.close);B.ui.dialog.overlay.resize()},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().appendTo("body");this.uiDialog.remove()}});B.extend(B.ui.dialog,{defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,draggable:true,height:200,minHeight:100,minWidth:150,modal:false,overlay:{},position:"center",resizable:true,stack:true,width:300,zIndex:1000},overlay:function(C){this.$el=B.ui.dialog.overlay.create(C)}});B.extend(B.ui.dialog.overlay,{instances:[],events:B.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(C){return C+".dialog-overlay"}).join(" "),create:function(D){if(this.instances.length===0){setTimeout(function(){B("a, :input").bind(B.ui.dialog.overlay.events,function(){var F=false;var H=B(this).parents(".ui-dialog");if(H.length){var E=B(".ui-dialog-overlay");if(E.length){var G=parseInt(E.css("z-index"),10);E.each(function(){G=Math.max(G,parseInt(B(this).css("z-index"),10))});F=parseInt(H.css("z-index"),10)>G}else{F=true}}return F})},1);B(document).bind("keydown.dialog-overlay",function(E){var F=27;(E.keyCode&&E.keyCode==F&&D.close())});B(window).bind("resize.dialog-overlay",B.ui.dialog.overlay.resize)}var C=B("<div/>").appendTo(document.body).addClass("ui-dialog-overlay").css(B.extend({borderWidth:0,margin:0,padding:0,position:"absolute",top:0,left:0,width:this.width(),height:this.height()},D.options.overlay));(D.options.bgiframe&&B.fn.bgiframe&&C.bgiframe());this.instances.push(C);return C},destroy:function(C){this.instances.splice(B.inArray(this.instances,C),1);if(this.instances.length===0){B("a, :input").add([document,window]).unbind(".dialog-overlay")}C.remove()},height:function(){if(B.browser.msie&&B.browser.version<7){var D=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var C=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(D<C){return B(window).height()+"px"}else{return D+"px"}}else{return B(document).height()+"px"}},width:function(){if(B.browser.msie&&B.browser.version<7){var C=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var D=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(C<D){return B(window).width()+"px"}else{return C+"px"}}else{return B(document).width()+"px"}},resize:function(){var C=B([]);B.each(B.ui.dialog.overlay.instances,function(){C=C.add(this)});C.css({width:0,height:0}).css({width:B.ui.dialog.overlay.width(),height:B.ui.dialog.overlay.height()})}});B.extend(B.ui.dialog.overlay.prototype,{destroy:function(){B.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(A){A.fn.unwrap=A.fn.unwrap||function(B){return this.each(function(){A(this).parents(B).eq(0).after(this).remove()})};A.widget("ui.slider",{plugins:{},ui:function(B){return{options:this.options,handle:this.currentHandle,value:this.options.axis!="both"||!this.options.axis?Math.round(this.value(null,this.options.axis=="vertical"?"y":"x")):{x:Math.round(this.value(null,"x")),y:Math.round(this.value(null,"y"))},range:this.getRange()}},propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.ui()]);this.element.triggerHandler(C=="slide"?C:"slide"+C,[B,this.ui()],this.options[C])},destroy:function(){this.element.removeClass("ui-slider ui-slider-disabled").removeData("slider").unbind(".slider");this.handle.unwrap("a");this.handle.each(function(){A(this).data("mouse").mouseDestroy()});this.generated&&this.generated.remove()},setData:function(B,C){A.widget.prototype.setData.apply(this,arguments);if(/min|max|steps/.test(B)){this.initBoundaries()}},init:function(){var B=this;this.element.addClass("ui-slider");this.initBoundaries();this.handle=A(this.options.handle,this.element);if(!this.handle.length){B.handle=B.generated=A(B.options.handles||[0]).map(function(){var D=A("<div/>").addClass("ui-slider-handle").appendTo(B.element);if(this.id){D.attr("id",this.id)}return D[0]})}var C=function(D){this.element=A(D);this.element.data("mouse",this);this.options=B.options;this.element.bind("mousedown",function(){if(B.currentHandle){this.blur(B.currentHandle)}B.focus(this,1)});this.mouseInit()};A.extend(C.prototype,A.ui.mouse,{mouseStart:function(D){return B.start.call(B,D,this.element[0])},mouseStop:function(D){return B.stop.call(B,D,this.element[0])},mouseDrag:function(D){return B.drag.call(B,D,this.element[0])},mouseCapture:function(){return true},trigger:function(D){this.mouseDown(D)}});A(this.handle).each(function(){new C(this)}).wrap('<a href="javascript:void(0)" style="cursor:default;"></a>').parent().bind("focus",function(D){B.focus(this.firstChild)}).bind("blur",function(D){B.blur(this.firstChild)}).bind("keydown",function(D){if(!B.options.noKeyboard){B.keydown(D.keyCode,this.firstChild)}});this.element.bind("mousedown.slider",function(D){B.click.apply(B,[D]);B.currentHandle.data("mouse").trigger(D);B.firstValue=B.firstValue+1});A.each(this.options.handles||[],function(D,E){B.moveTo(E.start,D,true)});if(!isNaN(this.options.startValue)){this.moveTo(this.options.startValue,0,true)}this.previousHandle=A(this.handle[0]);if(this.handle.length==2&&this.options.range){this.createRange()}},initBoundaries:function(){var B=this.element[0],C=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};A.extend(C,{axis:C.axis||(B.offsetWidth<B.offsetHeight?"vertical":"horizontal"),max:!isNaN(parseInt(C.max,10))?{x:parseInt(C.max,10),y:parseInt(C.max,10)}:({x:C.max&&C.max.x||100,y:C.max&&C.max.y||100}),min:!isNaN(parseInt(C.min,10))?{x:parseInt(C.min,10),y:parseInt(C.min,10)}:({x:C.min&&C.min.x||0,y:C.min&&C.min.y||0})});C.realMax={x:C.max.x-C.min.x,y:C.max.y-C.min.y};C.stepping={x:C.stepping&&C.stepping.x||parseInt(C.stepping,10)||(C.steps?C.realMax.x/(C.steps.x||parseInt(C.steps,10)||C.realMax.x):0),y:C.stepping&&C.stepping.y||parseInt(C.stepping,10)||(C.steps?C.realMax.y/(C.steps.y||parseInt(C.steps,10)||C.realMax.y):0)}},keydown:function(C,B){if(/(37|38|39|40)/.test(C)){this.moveTo({x:/(37|39)/.test(C)?(C==37?"-":"+")+"="+this.oneStep("x"):0,y:/(38|40)/.test(C)?(C==38?"-":"+")+"="+this.oneStep("y"):0},B)}},focus:function(B,C){this.currentHandle=A(B).addClass("ui-slider-handle-active");if(C){this.currentHandle.parent()[0].focus()}},blur:function(B){A(B).removeClass("ui-slider-handle-active");if(this.currentHandle&&this.currentHandle[0]==B){this.previousHandle=this.currentHandle;this.currentHandle=null}},click:function(C){var D=[C.pageX,C.pageY];var B=false;this.handle.each(function(){if(this==C.target){B=true}});if(B||this.options.disabled||!(this.currentHandle||this.previousHandle)){return }if(!this.currentHandle&&this.previousHandle){this.focus(this.previousHandle,true)}this.offset=this.element.offset();this.moveTo({y:this.convertValue(C.pageY-this.offset.top-this.currentHandle[0].offsetHeight/2,"y"),x:this.convertValue(C.pageX-this.offset.left-this.currentHandle[0].offsetWidth/2,"x")},null,!this.options.distance)},createRange:function(){this.rangeElement=A("<div></div>").addClass("ui-slider-range").css({position:"absolute"}).appendTo(this.element);this.updateRange()},updateRange:function(){var C=this.options.axis=="vertical"?"top":"left";var B=this.options.axis=="vertical"?"height":"width";this.rangeElement.css(C,(parseInt(A(this.handle[0]).css(C),10)||0)+this.handleSize(0,this.options.axis=="vertical"?"y":"x")/2);this.rangeElement.css(B,(parseInt(A(this.handle[1]).css(C),10)||0)-(parseInt(A(this.handle[0]).css(C),10)||0))},getRange:function(){return this.rangeElement?this.convertValue(parseInt(this.rangeElement.css(this.options.axis=="vertical"?"height":"width"),10),this.options.axis=="vertical"?"y":"x"):null},handleIndex:function(){return this.handle.index(this.currentHandle[0])},value:function(D,B){if(this.handle.length==1){this.currentHandle=this.handle}if(!B){B=this.options.axis=="vertical"?"y":"x"}var C=A(D!=undefined&&D!==null?this.handle[D]||D:this.currentHandle);if(C.data("mouse").sliderValue){return parseInt(C.data("mouse").sliderValue[B],10)}else{return parseInt(((parseInt(C.css(B=="x"?"left":"top"),10)/(this.actualSize[B=="x"?"width":"height"]-this.handleSize(D,B)))*this.options.realMax[B])+this.options.min[B],10)}},convertValue:function(C,B){return this.options.min[B]+(C/(this.actualSize[B=="x"?"width":"height"]-this.handleSize(null,B)))*this.options.realMax[B]},translateValue:function(C,B){return((C-this.options.min[B])/this.options.realMax[B])*(this.actualSize[B=="x"?"width":"height"]-this.handleSize(null,B))},translateRange:function(D,B){if(this.rangeElement){if(this.currentHandle[0]==this.handle[0]&&D>=this.translateValue(this.value(1),B)){D=this.translateValue(this.value(1,B)-this.oneStep(B),B)}if(this.currentHandle[0]==this.handle[1]&&D<=this.translateValue(this.value(0),B)){D=this.translateValue(this.value(0,B)+this.oneStep(B),B)}}if(this.options.handles){var C=this.options.handles[this.handleIndex()];if(D<this.translateValue(C.min,B)){D=this.translateValue(C.min,B)}else{if(D>this.translateValue(C.max,B)){D=this.translateValue(C.max,B)}}}return D},translateLimits:function(C,B){if(C>=this.actualSize[B=="x"?"width":"height"]-this.handleSize(null,B)){C=this.actualSize[B=="x"?"width":"height"]-this.handleSize(null,B)}if(C<=0){C=0}return C},handleSize:function(C,B){return A(C!=undefined&&C!==null?this.handle[C]:this.currentHandle)[0]["offset"+(B=="x"?"Width":"Height")]},oneStep:function(B){return this.options.stepping[B]||1},start:function(C,B){var D=this.options;if(D.disabled){return false}this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(!this.currentHandle){this.focus(this.previousHandle,true)}this.offset=this.element.offset();this.handleOffset=this.currentHandle.offset();this.clickOffset={top:C.pageY-this.handleOffset.top,left:C.pageX-this.handleOffset.left};this.firstValue=this.value();this.propagate("start",C);this.drag(C,B);return true},stop:function(B){this.propagate("stop",B);if(this.firstValue!=this.value()){this.propagate("change",B)}this.focus(this.currentHandle,true);return false},drag:function(E,D){var F=this.options;var B={top:E.pageY-this.offset.top-this.clickOffset.top,left:E.pageX-this.offset.left-this.clickOffset.left};if(!this.currentHandle){this.focus(this.previousHandle,true)}B.left=this.translateLimits(B.left,"x");B.top=this.translateLimits(B.top,"y");if(F.stepping.x){var C=this.convertValue(B.left,"x");C=Math.round(C/F.stepping.x)*F.stepping.x;B.left=this.translateValue(C,"x")}if(F.stepping.y){var C=this.convertValue(B.top,"y");C=Math.round(C/F.stepping.y)*F.stepping.y;B.top=this.translateValue(C,"y")}B.left=this.translateRange(B.left,"x");B.top=this.translateRange(B.top,"y");if(F.axis!="vertical"){this.currentHandle.css({left:B.left})}if(F.axis!="horizontal"){this.currentHandle.css({top:B.top})}this.currentHandle.data("mouse").sliderValue={x:Math.round(this.convertValue(B.left,"x"))||0,y:Math.round(this.convertValue(B.top,"y"))||0};if(this.rangeElement){this.updateRange()}this.propagate("slide",E);return false},moveTo:function(F,E,G){var H=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(E==undefined&&!this.currentHandle&&this.handle.length!=1){return false}if(E==undefined&&!this.currentHandle){E=0}if(E!=undefined){this.currentHandle=this.previousHandle=A(this.handle[E]||E)}if(F.x!==undefined&&F.y!==undefined){var B=F.x,I=F.y}else{var B=F,I=F}if(B!==undefined&&B.constructor!=Number){var D=/^\-\=/.test(B),C=/^\+\=/.test(B);if(D||C){B=this.value(null,"x")+parseInt(B.replace(D?"=":"+=",""),10)}else{B=isNaN(parseInt(B,10))?undefined:parseInt(B,10)}}if(I!==undefined&&I.constructor!=Number){var D=/^\-\=/.test(I),C=/^\+\=/.test(I);if(D||C){I=this.value(null,"y")+parseInt(I.replace(D?"=":"+=",""),10)}else{I=isNaN(parseInt(I,10))?undefined:parseInt(I,10)}}if(H.axis!="vertical"&&B!==undefined){if(H.stepping.x){B=Math.round(B/H.stepping.x)*H.stepping.x}B=this.translateValue(B,"x");B=this.translateLimits(B,"x");B=this.translateRange(B,"x");this.currentHandle.css({left:B})}if(H.axis!="horizontal"&&I!==undefined){if(H.stepping.y){I=Math.round(I/H.stepping.y)*H.stepping.y}I=this.translateValue(I,"y");I=this.translateLimits(I,"y");I=this.translateRange(I,"y");this.currentHandle.css({top:I})}if(this.rangeElement){this.updateRange()}this.currentHandle.data("mouse").sliderValue={x:Math.round(this.convertValue(B,"x"))||0,y:Math.round(this.convertValue(I,"y"))||0};if(!G){this.propagate("start",null);this.propagate("stop",null);this.propagate("change",null);this.propagate("slide",null)}}});A.ui.slider.getter="value";A.ui.slider.defaults={handle:".ui-slider-handle",distance:1}})(jQuery);(function(A){A.widget("ui.tabs",{init:function(){this.options.event+=".tabs";this.tabify(true)},setData:function(B,C){if((/^selected/).test(B)){this.select(C)}else{this.options[B]=C;this.tabify()}},length:function(){return this.$tabs.length},tabId:function(B){return B.title&&B.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+A.data(B)},ui:function(C,B){return{options:this.options,tab:C,panel:B}},tabify:function(O){this.$lis=A("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return A("a",this)[0]});this.$panels=A([]);var P=this,D=this.options;this.$tabs.each(function(R,Q){if(Q.hash&&Q.hash.replace("#","")){P.$panels=P.$panels.add(Q.hash)}else{if(A(Q).attr("href")!="#"){A.data(Q,"href.tabs",Q.href);A.data(Q,"load.tabs",Q.href);var T=P.tabId(Q);Q.href="#"+T;var S=A("#"+T);if(!S.length){S=A(D.panelTemplate).attr("id",T).addClass(D.panelClass).insertAfter(P.$panels[R-1]||P.element);S.data("destroy.tabs",true)}P.$panels=P.$panels.add(S)}else{D.disabled.push(R+1)}}});if(O){this.element.addClass(D.navClass);this.$panels.each(function(){var Q=A(this);Q.addClass(D.panelClass)});if(D.selected===undefined){if(location.hash){this.$tabs.each(function(S,Q){if(Q.hash==location.hash){D.selected=S;if(A.browser.msie||A.browser.opera){var R=A(location.hash),T=R.attr("id");R.attr("id","");setTimeout(function(){R.attr("id",T)},500)}scrollTo(0,0);return false}})}else{if(D.cookie){var J=parseInt(A.cookie("ui-tabs"+A.data(P.element)),10);if(J&&P.$tabs[J]){D.selected=J}}else{if(P.$lis.filter("."+D.selectedClass).length){D.selected=P.$lis.index(P.$lis.filter("."+D.selectedClass)[0])}}}}D.selected=D.selected===null||D.selected!==undefined?D.selected:0;D.disabled=A.unique(D.disabled.concat(A.map(this.$lis.filter("."+D.disabledClass),function(R,Q){return P.$lis.index(R)}))).sort();if(A.inArray(D.selected,D.disabled)!=-1){D.disabled.splice(A.inArray(D.selected,D.disabled),1)}this.$panels.addClass(D.hideClass);this.$lis.removeClass(D.selectedClass);if(D.selected!==null){this.$panels.eq(D.selected).show().removeClass(D.hideClass);this.$lis.eq(D.selected).addClass(D.selectedClass);var K=function(){A(P.element).triggerHandler("tabsshow",[P.ui(P.$tabs[D.selected],P.$panels[D.selected])],D.show)};if(A.data(this.$tabs[D.selected],"load.tabs")){this.load(D.selected,K)}else{K()}}A(window).bind("unload",function(){P.$tabs.unbind(".tabs");P.$lis=P.$tabs=P.$panels=null})}for(var G=0,N;N=this.$lis[G];G++){A(N)[A.inArray(G,D.disabled)!=-1&&!A(N).hasClass(D.selectedClass)?"addClass":"removeClass"](D.disabledClass)}if(D.cache===false){this.$tabs.removeData("cache.tabs")}var C,I,B={"min-width":0,duration:1},E="normal";if(D.fx&&D.fx.constructor==Array){C=D.fx[0]||B,I=D.fx[1]||B}else{C=I=D.fx||B}var H={display:"",overflow:"",height:""};if(!A.browser.msie){H.opacity=""}function M(R,Q,S){Q.animate(C,C.duration||E,function(){Q.addClass(D.hideClass).css(H);if(A.browser.msie&&C.opacity){Q[0].style.filter=""}if(S){L(R,S,Q)}})}function L(R,S,Q){if(I===B){S.css("display","block")}S.animate(I,I.duration||E,function(){S.removeClass(D.hideClass).css(H);if(A.browser.msie&&I.opacity){S[0].style.filter=""}A(P.element).triggerHandler("tabsshow",[P.ui(R,S[0])],D.show)})}function F(R,T,Q,S){T.addClass(D.selectedClass).siblings().removeClass(D.selectedClass);M(R,Q,S)}this.$tabs.unbind(".tabs").bind(D.event,function(){var T=A(this).parents("li:eq(0)"),Q=P.$panels.filter(":visible"),S=A(this.hash);if((T.hasClass(D.selectedClass)&&!D.unselect)||T.hasClass(D.disabledClass)||A(this).hasClass(D.loadingClass)||A(P.element).triggerHandler("tabsselect",[P.ui(this,S[0])],D.select)===false){this.blur();return false}P.options.selected=P.$tabs.index(this);if(D.unselect){if(T.hasClass(D.selectedClass)){P.options.selected=null;T.removeClass(D.selectedClass);P.$panels.stop();M(this,Q);this.blur();return false}else{if(!Q.length){P.$panels.stop();var R=this;P.load(P.$tabs.index(this),function(){T.addClass(D.selectedClass).addClass(D.unselectClass);L(R,S)});this.blur();return false}}}if(D.cookie){A.cookie("ui-tabs"+A.data(P.element),P.options.selected,D.cookie)}P.$panels.stop();if(S.length){var R=this;P.load(P.$tabs.index(this),Q.length?function(){F(R,T,Q,S)}:function(){T.addClass(D.selectedClass);L(R,S)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(A.browser.msie){this.blur()}return false});if(!(/^click/).test(D.event)){this.$tabs.bind("click.tabs",function(){return false})}},add:function(E,D,C){if(C==undefined){C=this.$tabs.length}var G=this.options;var I=A(G.tabTemplate.replace(/#\{href\}/g,E).replace(/#\{label\}/g,D));I.data("destroy.tabs",true);var H=E.indexOf("#")==0?E.replace("#",""):this.tabId(A("a:first-child",I)[0]);var F=A("#"+H);if(!F.length){F=A(G.panelTemplate).attr("id",H).addClass(G.hideClass).data("destroy.tabs",true)}F.addClass(G.panelClass);if(C>=this.$lis.length){I.appendTo(this.element);F.appendTo(this.element[0].parentNode)}else{I.insertBefore(this.$lis[C]);F.insertBefore(this.$panels[C])}G.disabled=A.map(G.disabled,function(K,J){return K>=C?++K:K});this.tabify();if(this.$tabs.length==1){I.addClass(G.selectedClass);F.removeClass(G.hideClass);var B=A.data(this.$tabs[0],"load.tabs");if(B){this.load(C,B)}}this.element.triggerHandler("tabsadd",[this.ui(this.$tabs[C],this.$panels[C])],G.add)},remove:function(B){var D=this.options,E=this.$lis.eq(B).remove(),C=this.$panels.eq(B).remove();if(E.hasClass(D.selectedClass)&&this.$tabs.length>1){this.select(B+(B+1<this.$tabs.length?1:-1))}D.disabled=A.map(A.grep(D.disabled,function(G,F){return G!=B}),function(G,F){return G>=B?--G:G});this.tabify();this.element.triggerHandler("tabsremove",[this.ui(E.find("a")[0],C[0])],D.remove)},enable:function(B){var C=this.options;if(A.inArray(B,C.disabled)==-1){return }var D=this.$lis.eq(B).removeClass(C.disabledClass);if(A.browser.safari){D.css("display","inline-block");setTimeout(function(){D.css("display","block")},0)}C.disabled=A.grep(C.disabled,function(F,E){return F!=B});this.element.triggerHandler("tabsenable",[this.ui(this.$tabs[B],this.$panels[B])],C.enable)},disable:function(C){var B=this,D=this.options;if(C!=D.selected){this.$lis.eq(C).addClass(D.disabledClass);D.disabled.push(C);D.disabled.sort();this.element.triggerHandler("tabsdisable",[this.ui(this.$tabs[C],this.$panels[C])],D.disable)}},select:function(B){if(typeof B=="string"){B=this.$tabs.index(this.$tabs.filter("[href$="+B+"]")[0])}this.$tabs.eq(B).trigger(this.options.event)},load:function(G,K){var L=this,D=this.options,E=this.$tabs.eq(G),J=E[0],H=K==undefined||K===false,B=E.data("load.tabs");K=K||function(){};if(!B||!H&&A.data(J,"cache.tabs")){K();return }var M=function(N){var O=A(N),P=O.find("*:last");return P.length&&P||O};var C=function(){L.$tabs.filter("."+D.loadingClass).removeClass(D.loadingClass).each(function(){if(D.spinner){M(this).parent().html(M(this).data("label.tabs"))}});L.xhr=null};if(D.spinner){var I=M(J).html();M(J).wrapInner("<em></em>").find("em").data("label.tabs",I).html(D.spinner)}var F=A.extend({},D.ajaxOptions,{url:B,success:function(O,N){A(J.hash).html(O);C();if(D.cache){A.data(J,"cache.tabs",true)}A(L.element).triggerHandler("tabsload",[L.ui(L.$tabs[G],L.$panels[G])],D.load);D.ajaxOptions.success&&D.ajaxOptions.success(O,N);K()}});if(this.xhr){this.xhr.abort();C()}E.addClass(D.loadingClass);setTimeout(function(){L.xhr=A.ajax(F)},0)},url:function(C,B){this.$tabs.eq(C).removeData("cache.tabs").data("load.tabs",B)},destroy:function(){var B=this.options;this.element.unbind(".tabs").removeClass(B.navClass).removeData("tabs");this.$tabs.each(function(){var C=A.data(this,"href.tabs");if(C){this.href=C}var D=A(this).unbind(".tabs");A.each(["href","load","cache"],function(E,F){D.removeData(F+".tabs")})});this.$lis.add(this.$panels).each(function(){if(A.data(this,"destroy.tabs")){A(this).remove()}else{A(this).removeClass([B.selectedClass,B.unselectClass,B.disabledClass,B.panelClass,B.hideClass].join(" "))}})}});A.ui.tabs.defaults={unselect:false,event:"click",disabled:[],cookie:null,spinner:"Loading&#8230;",cache:false,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:"<div></div>",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};A.ui.tabs.getter="length";A.extend(A.ui.tabs.prototype,{rotation:null,rotate:function(C,F){F=F||false;var B=this,E=this.options.selected;function G(){B.rotation=setInterval(function(){E=++E<B.$tabs.length?E:0;B.select(E)},C)}function D(H){if(!H||H.clientX){clearInterval(B.rotation)}}if(C){G();if(!F){this.$tabs.bind(this.options.event,D)}else{this.$tabs.bind(this.options.event,function(){D();E=B.options.selected;G()})}}else{D();this.$tabs.unbind(this.options.event,D)}}})})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/ui.accordion.min.js b/javascript/libs/jquery/min/ui/ui.accordion.min.js
new file mode 100644
index 0000000..bde3ddb
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/ui.accordion.min.js
@@ -0,0 +1 @@
+(function(E){E.widget("ui.accordion",{init:function(){var G=this.options;if(G.navigation){var J=this.element.find("a").filter(G.navigationFilter);if(J.length){if(J.filter(G.header).length){G.active=J}else{G.active=J.parent().parent().prev();J.addClass("current")}}}G.headers=this.element.find(G.header);G.active=C(G.headers,G.active);if(E.browser.msie){this.element.find("a").css("zoom","1")}if(!this.element.hasClass("ui-accordion")){this.element.addClass("ui-accordion");E("<span class='ui-accordion-left'/>").insertBefore(G.headers);E("<span class='ui-accordion-right'/>").appendTo(G.headers);G.headers.addClass("ui-accordion-header").attr("tabindex","0")}var I;if(G.fillSpace){I=this.element.parent().height();G.headers.each(function(){I-=E(this).outerHeight()});var H=0;G.headers.next().each(function(){H=Math.max(H,E(this).innerHeight()-E(this).height())}).height(I-H)}else{if(G.autoHeight){I=0;G.headers.next().each(function(){I=Math.max(I,E(this).outerHeight())}).height(I)}}G.headers.not(G.active||"").next().hide();G.active.parent().andSelf().addClass(G.selectedClass);if(G.event){this.element.bind((G.event)+".accordion",F)}},activate:function(G){F.call(this.element[0],{target:C(this.options.headers,G)[0]})},destroy:function(){this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoHeight){this.options.headers.next().css("height","")}E.removeData(this.element[0],"accordion");this.element.removeClass("ui-accordion").unbind(".accordion")}});function B(H,G){return function(){return H.apply(G,arguments)}}function D(I){if(!E.data(this,"accordion")){return }var G=E.data(this,"accordion");var H=G.options;H.running=I?0:--H.running;if(H.running){return }if(H.clearStyle){H.toShow.add(H.toHide).css({height:"",overflow:""})}E(this).triggerHandler("accordionchange",[H.data],H.change)}function A(G,K,L,J,M){var I=E.data(this,"accordion").options;I.toShow=G;I.toHide=K;I.data=L;var H=B(D,this);I.running=K.size()===0?G.size():K.size();if(I.animated){if(!I.alwaysOpen&&J){E.ui.accordion.animations[I.animated]({toShow:jQuery([]),toHide:K,complete:H,down:M,autoHeight:I.autoHeight})}else{E.ui.accordion.animations[I.animated]({toShow:G,toHide:K,complete:H,down:M,autoHeight:I.autoHeight})}}else{if(!I.alwaysOpen&&J){G.toggle()}else{K.hide();G.show()}H(true)}}function F(L){var J=E.data(this,"accordion").options;if(J.disabled){return false}if(!L.target&&!J.alwaysOpen){J.active.parent().andSelf().toggleClass(J.selectedClass);var I=J.active.next(),M={options:J,newHeader:jQuery([]),oldHeader:J.active,newContent:jQuery([]),oldContent:I},G=(J.active=E([]));A.call(this,G,I,M);return false}var K=E(L.target);if(K.parents(J.header).length){while(!K.is(J.header)){K=K.parent()}}var H=K[0]==J.active[0];if(J.running||(J.alwaysOpen&&H)){return false}if(!K.is(J.header)){return }J.active.parent().andSelf().toggleClass(J.selectedClass);if(!H){K.parent().andSelf().addClass(J.selectedClass)}var G=K.next(),I=J.active.next(),M={options:J,newHeader:K,oldHeader:J.active,newContent:G,oldContent:I},N=J.headers.index(J.active[0])>J.headers.index(K[0]);J.active=H?E([]):K;A.call(this,G,I,M,H,N);return false}function C(H,G){return G!=undefined?typeof G=="number"?H.filter(":eq("+G+")"):H.not(H.not(G)):G===false?E([]):H.filter(":eq(0)")}E.extend(E.ui.accordion,{defaults:{selectedClass:"selected",alwaysOpen:true,animated:"slide",event:"click",header:"a",autoHeight:true,running:0,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(G,I){G=E.extend({easing:"swing",duration:300},G,I);if(!G.toHide.size()){G.toShow.animate({height:"show"},G);return }var H=G.toHide.height(),J=G.toShow.height(),K=J/H;G.toShow.css({height:0,overflow:"hidden"}).show();G.toHide.filter(":hidden").each(G.complete).end().filter(":visible").animate({height:"hide"},{step:function(L){var M=(H-L)*K;if(E.browser.msie||E.browser.opera){M=Math.ceil(M)}G.toShow.height(M)},duration:G.duration,easing:G.easing,complete:function(){if(!G.autoHeight){G.toShow.css("height","auto")}G.complete()}})},bounceslide:function(G){this.slide(G,{easing:G.down?"bounceout":"swing",duration:G.down?1000:200})},easeslide:function(G){this.slide(G,{easing:"easeinout",duration:700})}}});E.fn.activate=function(G){return this.accordion("activate",G)}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/ui.core.min.js b/javascript/libs/jquery/min/ui/ui.core.min.js
new file mode 100644
index 0000000..d459c86
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/ui.core.min.js
@@ -0,0 +1 @@
+(function(C){C.ui={plugin:{add:function(E,F,H){var G=C.ui[E].prototype;for(var D in H){G.plugins[D]=G.plugins[D]||[];G.plugins[D].push([F,H[D]])}},call:function(D,F,E){var H=D.plugins[F];if(!H){return }for(var G=0;G<H.length;G++){if(D.options[H[G][0]]){H[G][1].apply(D.element,E)}}}},cssCache:{},css:function(D){if(C.ui.cssCache[D]){return C.ui.cssCache[D]}var E=C('<div class="ui-resizable-gen">').addClass(D).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");C.ui.cssCache[D]=!!((!(/auto|default/).test(E.css("cursor"))||(/^[1-9]/).test(E.css("height"))||(/^[1-9]/).test(E.css("width"))||!(/none/).test(E.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(E.css("backgroundColor"))));try{C("body").get(0).removeChild(E.get(0))}catch(F){}return C.ui.cssCache[D]},disableSelection:function(D){D.unselectable="on";D.onselectstart=function(){return false};if(D.style){D.style.MozUserSelect="none"}},enableSelection:function(D){D.unselectable="off";D.onselectstart=function(){return true};if(D.style){D.style.MozUserSelect=""}},hasScroll:function(G,E){var D=/top/.test(E||"top")?"scrollTop":"scrollLeft",F=false;if(G[D]>0){return true}G[D]=1;F=G[D]>0?true:false;G[D]=0;return F}};var B=C.fn.remove;C.fn.remove=function(){C("*",this).add(this).trigger("remove");return B.apply(this,arguments)};function A(E,F,G){var D=C[E][F].getter||[];D=(typeof D=="string"?D.split(/,?\s+/):D);return(C.inArray(G,D)!=-1)}C.widget=function(E,D){var F=E.split(".")[0];E=E.split(".")[1];C.fn[E]=function(J){var H=(typeof J=="string"),I=Array.prototype.slice.call(arguments,1);if(H&&A(F,E,J)){var G=C.data(this[0],E);return(G?G[J].apply(G,I):undefined)}return this.each(function(){var K=C.data(this,E);if(H&&K&&C.isFunction(K[J])){K[J].apply(K,I)}else{if(!H){C.data(this,E,new C[F][E](this,J))}}})};C[F][E]=function(I,H){var G=this;this.widgetName=E;this.widgetBaseClass=F+"-"+E;this.options=C.extend({disabled:false},C[F][E].defaults,H);this.element=C(I).bind("setData."+E,function(L,J,K){return G.setData(J,K)}).bind("getData."+E,function(K,J){return G.getData(J)}).bind("remove",function(){return G.destroy()});this.init()};C[F][E].prototype=C.extend({},C.widget.prototype,D)};C.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName)},getData:function(D){return this.options[D]},setData:function(D,E){this.options[D]=E;if(D=="disabled"){this.element[E?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this.setData("disabled",false)},disable:function(){this.setData("disabled",true)}};C.ui.mouse={mouseInit:function(){var D=this;this.element.bind("mousedown."+this.widgetName,function(E){return D.mouseDown(E)});if(C.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},mouseDestroy:function(){this.element.unbind("."+this.widgetName);(C.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},mouseDown:function(F){(this._mouseStarted&&this.mouseUp(F));this._mouseDownEvent=F;var E=this,G=(F.which==1),D=(typeof this.options.cancel=="string"?C(F.target).is(this.options.cancel):false);if(!G||D||!this.mouseCapture(F)){return true}this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){E._mouseDelayMet=true},this.options.delay)}if(this.mouseDistanceMet(F)&&this.mouseDelayMet(F)){this._mouseStarted=(this.mouseStart(F)!==false);if(!this._mouseStarted){F.preventDefault();return true}}this._mouseMoveDelegate=function(H){return E.mouseMove(H)};this._mouseUpDelegate=function(H){return E.mouseUp(H)};C(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},mouseMove:function(D){if(C.browser.msie&&!D.button){return this.mouseUp(D)}if(this._mouseStarted){this.mouseDrag(D);return false}if(this.mouseDistanceMet(D)&&this.mouseDelayMet(D)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,D)!==false);(this._mouseStarted?this.mouseDrag(D):this.mouseUp(D))}return !this._mouseStarted},mouseUp:function(D){C(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(D)}return false},mouseDistanceMet:function(D){return(Math.max(Math.abs(this._mouseDownEvent.pageX-D.pageX),Math.abs(this._mouseDownEvent.pageY-D.pageY))>=this.options.distance)},mouseDelayMet:function(D){return this._mouseDelayMet},mouseStart:function(D){},mouseDrag:function(D){},mouseStop:function(D){},mouseCapture:function(D){return true}};C.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/ui.datepicker.min.js b/javascript/libs/jquery/min/ui/ui.datepicker.min.js
new file mode 100644
index 0000000..e12cf6a
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/ui.datepicker.min.js
@@ -0,0 +1 @@
+(function($){function Datepicker(){this.debug=false;this._nextId=0;this._inst=[];this._curInst=null;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this.regional=[];this.regional[""]={clearText:"Clear",clearStatus:"Erase the current date",closeText:"Close",closeStatus:"Close without change",prevText:"&#x3c;Prev",prevStatus:"Show the previous month",nextText:"Next&#x3e;",nextStatus:"Show the next month",currentText:"Today",currentStatus:"Show the current month",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthStatus:"Show a different month",yearStatus:"Show a different year",weekHeader:"Wk",weekStatus:"Week of the year",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayStatus:"Set DD as first week day",dateStatus:"Select DD, M d",dateFormat:"mm/dd/yy",firstDay:0,initStatus:"Select a date",isRTL:false};this._defaults={showOn:"focus",showAnim:"show",defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,closeAtTop:true,mandatory:false,hideIfNoPrevNext:false,changeMonth:true,changeYear:true,yearRange:"-10:+10",changeFirstDay:true,showOtherMonths:false,showWeeks:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",showStatus:false,statusForDate:this.dateStatus,minDate:null,maxDate:null,speed:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onClose:null,numberOfMonths:1,stepMonths:1,rangeSelect:false,rangeSeparator:" - "};$.extend(this._defaults,this.regional[""]);this._datepickerDiv=$('<div id="ui-datepicker-div"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},_register:function(inst){var id=this._nextId++;this._inst[id]=inst;return id},_getInst:function(id){return this._inst[id]||id},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var instSettings=(inlineSettings?$.extend(settings||{},inlineSettings||{}):settings);if(nodeName=="input"){var inst=(inst&&!inlineSettings?inst:new DatepickerInstance(instSettings,false));this._connectDatepicker(target,inst)}else{if(nodeName=="div"||nodeName=="span"){var inst=new DatepickerInstance(instSettings,true);this._inlineDatepicker(target,inst)}}},_destroyDatepicker:function(target){var nodeName=target.nodeName.toLowerCase();var calId=target._calId;target._calId=null;var $target=$(target);if(nodeName=="input"){$target.siblings(".ui-datepicker-append").replaceWith("").end().siblings(".ui-datepicker-trigger").replaceWith("").end().removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress);var wrapper=$target.parents(".ui-datepicker-wrap");if(wrapper){wrapper.replaceWith(wrapper.html())}}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}if($("input[_calId="+calId+"]").length==0){this._inst[calId]=null}},_enableDatepicker:function(target){target.disabled=false;$(target).siblings("button.ui-datepicker-trigger").each(function(){this.disabled=false}).end().siblings("img.ui-datepicker-trigger").css({opacity:"1.0",cursor:""});this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){target.disabled=true;$(target).siblings("button.ui-datepicker-trigger").each(function(){this.disabled=true}).end().siblings("img.ui-datepicker-trigger").css({opacity:"0.5",cursor:"default"});this._disabledInputs=$.map($.datepicker._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[$.datepicker._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_changeDatepicker:function(target,name,value){var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst=this._getInst(target._calId)){extendRemove(inst._settings,settings);this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){if(inst=this._getInst(target._calId)){inst._setDate(date,endDate);this._updateDatepicker(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target._calId);if(inst){inst._setDateFromField($(target))}return(inst?inst._getDate():null)},_doKeyDown:function(e){var inst=$.datepicker._getInst(this._calId);if($.datepicker._datepickerShowing){switch(e.keyCode){case 9:$.datepicker._hideDatepicker(null,"");break;case 13:$.datepicker._selectDay(inst,inst._selectedMonth,inst._selectedYear,$("td.ui-datepicker-days-cell-over",inst._datepickerDiv)[0]);return false;break;case 27:$.datepicker._hideDatepicker(null,inst._get("speed"));break;case 33:$.datepicker._adjustDate(inst,(e.ctrlKey?-1:-inst._get("stepMonths")),(e.ctrlKey?"Y":"M"));break;case 34:$.datepicker._adjustDate(inst,(e.ctrlKey?+1:+inst._get("stepMonths")),(e.ctrlKey?"Y":"M"));break;case 35:if(e.ctrlKey){$.datepicker._clearDate(inst)}break;case 36:if(e.ctrlKey){$.datepicker._gotoToday(inst)}break;case 37:if(e.ctrlKey){$.datepicker._adjustDate(inst,-1,"D")}break;case 38:if(e.ctrlKey){$.datepicker._adjustDate(inst,-7,"D")}break;case 39:if(e.ctrlKey){$.datepicker._adjustDate(inst,+1,"D")}break;case 40:if(e.ctrlKey){$.datepicker._adjustDate(inst,+7,"D")}break}}else{if(e.keyCode==36&&e.ctrlKey){$.datepicker._showDatepicker(this)}}},_doKeyPress:function(e){var inst=$.datepicker._getInst(this._calId);var chars=$.datepicker._possibleChars(inst._get("dateFormat"));var chr=String.fromCharCode(e.charCode==undefined?e.keyCode:e.charCode);return e.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)},_connectDatepicker:function(target,inst){var input=$(target);if(input.is("."+this.markerClassName)){return }var appendText=inst._get("appendText");var isRTL=inst._get("isRTL");if(appendText){if(isRTL){input.before('<span class="ui-datepicker-append">'+appendText)}else{input.after('<span class="ui-datepicker-append">'+appendText)}}var showOn=inst._get("showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){input.wrap('<span class="ui-datepicker-wrap">');var buttonText=inst._get("buttonText");var buttonImage=inst._get("buttonImage");var trigger=$(inst._get("buttonImageOnly")?$("<img>").addClass("ui-datepicker-trigger").attr({src:buttonImage,alt:buttonText,title:buttonText}):$("<button>").addClass("ui-datepicker-trigger").attr({type:"button"}).html(buttonImage!=""?$("<img>").attr({src:buttonImage,alt:buttonText,title:buttonText}):buttonText));if(isRTL){input.before(trigger)}else{input.after(trigger)}trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst._settings[key]=value}).bind("getData.datepicker",function(event,key){return inst._get(key)});input[0]._calId=inst._id},_inlineDatepicker:function(target,inst){var input=$(target);if(input.is("."+this.markerClassName)){return }input.addClass(this.markerClassName).append(inst._datepickerDiv).bind("setData.datepicker",function(event,key,value){inst._settings[key]=value}).bind("getData.datepicker",function(event,key){return inst._get(key)});input[0]._calId=inst._id;this._updateDatepicker(inst)},_inlineShow:function(inst){var numMonths=inst._getNumberOfMonths();inst._datepickerDiv.width(numMonths[1]*$(".ui-datepicker",inst._datepickerDiv[0]).width())},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){inst=this._dialogInst=new DatepickerInstance({},false);this._dialogInput=$('<input type="text" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);this._dialogInput[0]._calId=inst._id}extendRemove(inst._settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst._settings.onSelect=onSelect;this._inDialog=true;this._datepickerDiv.addClass("ui-datepicker-dialog");this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this._datepickerDiv)}return this},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return }var inst=$.datepicker._getInst(input._calId);var beforeShow=inst._get("beforeShow");extendRemove(inst._settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;inst._setDateFromField(input);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed"});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}inst._datepickerDiv.css("position",($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute"))).css({left:$.datepicker._pos[0]+"px",top:$.datepicker._pos[1]+"px"});$.datepicker._pos=null;inst._rangeStart=null;$.datepicker._updateDatepicker(inst);if(!inst._inline){var speed=inst._get("speed");var postProcess=function(){$.datepicker._datepickerShowing=true;$.datepicker._afterShow(inst)};var showAnim=inst._get("showAnim")||"show";inst._datepickerDiv[showAnim](speed,postProcess);if(speed==""){postProcess()}if(inst._input[0].type!="hidden"){inst._input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){inst._datepickerDiv.empty().append(inst._generateDatepicker());var numMonths=inst._getNumberOfMonths();if(numMonths[0]!=1||numMonths[1]!=1){inst._datepickerDiv.addClass("ui-datepicker-multi")}else{inst._datepickerDiv.removeClass("ui-datepicker-multi")}if(inst._get("isRTL")){inst._datepickerDiv.addClass("ui-datepicker-rtl")}else{inst._datepickerDiv.removeClass("ui-datepicker-rtl")}if(inst._input&&inst._input[0].type!="hidden"){$(inst._input[0]).focus()}},_afterShow:function(inst){var numMonths=inst._getNumberOfMonths();inst._datepickerDiv.width(numMonths[1]*$(".ui-datepicker",inst._datepickerDiv[0])[0].offsetWidth);if($.browser.msie&&parseInt($.browser.version)<7){$("iframe.ui-datepicker-cover").css({width:inst._datepickerDiv.width()+4,height:inst._datepickerDiv.height()+4})}var isFixed=inst._datepickerDiv.css("position")=="fixed";var pos=inst._input?$.datepicker._findPos(inst._input[0]):null;var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=(isFixed?0:document.documentElement.scrollLeft||document.body.scrollLeft);var scrollY=(isFixed?0:document.documentElement.scrollTop||document.body.scrollTop);if((inst._datepickerDiv.offset().left+inst._datepickerDiv.width()-(isFixed&&$.browser.msie?document.documentElement.scrollLeft:0))>(browserWidth+scrollX)){inst._datepickerDiv.css("left",Math.max(scrollX,pos[0]+(inst._input?$(inst._input[0]).width():null)-inst._datepickerDiv.width()-(isFixed&&$.browser.opera?document.documentElement.scrollLeft:0))+"px")}if((inst._datepickerDiv.offset().top+inst._datepickerDiv.height()-(isFixed&&$.browser.msie?document.documentElement.scrollTop:0))>(browserHeight+scrollY)){inst._datepickerDiv.css("top",Math.max(scrollY,pos[1]-(this._inDialog?0:inst._datepickerDiv.height())-(isFixed&&$.browser.opera?document.documentElement.scrollTop:0))+"px")}},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,speed){var inst=this._curInst;if(!inst){return }var rangeSelect=inst._get("rangeSelect");if(rangeSelect&&this._stayOpen){this._selectDate(inst,inst._formatDate(inst._currentDay,inst._currentMonth,inst._currentYear))}this._stayOpen=false;if(this._datepickerShowing){speed=(speed!=null?speed:inst._get("speed"));var showAnim=inst._get("showAnim");inst._datepickerDiv[(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide"))](speed,function(){$.datepicker._tidyDialog(inst)});if(speed==""){this._tidyDialog(inst)}var onClose=inst._get("onClose");if(onClose){onClose.apply((inst._input?inst._input[0]:null),[inst._getDate(),inst])}this._datepickerShowing=false;this._lastInput=null;inst._settings.prompt=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this._datepickerDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst._datepickerDiv.removeClass("ui-datepicker-dialog").unbind(".ui-datepicker");$(".ui-datepicker-prompt",inst._datepickerDiv).remove()},_checkExternalClick:function(event){if(!$.datepicker._curInst){return }var $target=$(event.target);if(($target.parents("#ui-datepicker-div").length==0)&&!$target.hasClass("hasDatepicker")&&!$target.hasClass("ui-datepicker-trigger")&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var inst=this._getInst(id);inst._adjustDate(offset,period);this._updateDatepicker(inst)},_gotoToday:function(id){var date=new Date();var inst=this._getInst(id);inst._selectedDay=date.getDate();inst._drawMonth=inst._selectedMonth=date.getMonth();inst._drawYear=inst._selectedYear=date.getFullYear();this._adjustDate(inst)},_selectMonthYear:function(id,select,period){var inst=this._getInst(id);inst._selectingMonthYear=false;inst[period=="M"?"_drawMonth":"_drawYear"]=select.options[select.selectedIndex].value-0;this._adjustDate(inst)},_clickMonthYear:function(id){var inst=this._getInst(id);if(inst._input&&inst._selectingMonthYear&&!$.browser.msie){inst._input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_changeFirstDay:function(id,day){var inst=this._getInst(id);inst._settings.firstDay=day;this._updateDatepicker(inst)},_selectDay:function(id,month,year,td){if($(td).is(".ui-datepicker-unselectable")){return }var inst=this._getInst(id);var rangeSelect=inst._get("rangeSelect");if(rangeSelect){if(!this._stayOpen){$(".ui-datepicker td").removeClass("ui-datepicker-current-day");$(td).addClass("ui-datepicker-current-day")}this._stayOpen=!this._stayOpen}inst._selectedDay=inst._currentDay=$("a",td).html();inst._selectedMonth=inst._currentMonth=month;inst._selectedYear=inst._currentYear=year;this._selectDate(id,inst._formatDate(inst._currentDay,inst._currentMonth,inst._currentYear));if(this._stayOpen){inst._endDay=inst._endMonth=inst._endYear=null;inst._rangeStart=new Date(inst._currentYear,inst._currentMonth,inst._currentDay);this._updateDatepicker(inst)}else{if(rangeSelect){inst._endDay=inst._currentDay;inst._endMonth=inst._currentMonth;inst._endYear=inst._currentYear;inst._selectedDay=inst._currentDay=inst._rangeStart.getDate();inst._selectedMonth=inst._currentMonth=inst._rangeStart.getMonth();inst._selectedYear=inst._currentYear=inst._rangeStart.getFullYear();inst._rangeStart=null;if(inst._inline){this._updateDatepicker(inst)}}}},_clearDate:function(id){var inst=this._getInst(id);if(inst._get("mandatory")){return }this._stayOpen=false;inst._endDay=inst._endMonth=inst._endYear=inst._rangeStart=null;this._selectDate(inst,"")},_selectDate:function(id,dateStr){var inst=this._getInst(id);dateStr=(dateStr!=null?dateStr:inst._formatDate());if(inst._rangeStart){dateStr=inst._formatDate(inst._rangeStart)+inst._get("rangeSeparator")+dateStr}if(inst._input){inst._input.val(dateStr)}var onSelect=inst._get("onSelect");if(onSelect){onSelect.apply((inst._input?inst._input[0]:null),[dateStr,inst])}else{if(inst._input){inst._input.trigger("change")}}if(inst._inline){this._updateDatepicker(inst)}else{if(!this._stayOpen){this._hideDatepicker(null,inst._get("speed"));this._lastInput=inst._input[0];if(typeof (inst._input[0])!="object"){inst._input[0].focus()}this._lastInput=null}}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate(),(date.getTimezoneOffset()/-60));var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){checkDate.setDate(checkDate.getDate()+3);return $.datepicker.iso8601Week(checkDate)}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},dateStatus:function(date,inst){return $.datepicker.formatDate(inst._get("dateStatus"),date,inst._getFormatConfig())},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var size=(match=="y"?4:2);var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+(value.charAt(iValue++)-0);size--}if(size==(match=="y"?4:2)){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++){size=Math.max(size,names[j].length)}var name="";var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);for(var i=0;i<names.length;i++){if(name==names[i]){return i+1}}size--}throw"Unknown name at position "+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}var date=new Date(year,month-1,day);if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value){return(lookAhead(match)&&value<10?"0":"")+value};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate());break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"m":output+=formatNumber("m",date.getMonth()+1);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d"||"m"||"y":chars+="0123456789";break;case"D"||"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars}});function DatepickerInstance(settings,inline){this._id=$.datepicker._register(this);this._selectedDay=0;this._selectedMonth=0;this._selectedYear=0;this._drawMonth=0;this._drawYear=0;this._input=null;this._inline=inline;this._datepickerDiv=(!inline?$.datepicker._datepickerDiv:$('<div id="ui-datepicker-div-'+this._id+'" class="ui-datepicker-inline">'));this._settings=extendRemove(settings||{});if(inline){this._setDate(this._getDefaultDate())}}$.extend(DatepickerInstance.prototype,{_get:function(name){return this._settings[name]!==undefined?this._settings[name]:$.datepicker._defaults[name]},_setDateFromField:function(input){this._input=$(input);var dateFormat=this._get("dateFormat");var dates=this._input?this._input.val().split(this._get("rangeSeparator")):null;this._endDay=this._endMonth=this._endYear=null;var date=defaultDate=this._getDefaultDate();if(dates.length>0){var settings=this._getFormatConfig();if(dates.length>1){date=$.datepicker.parseDate(dateFormat,dates[1],settings)||defaultDate;this._endDay=date.getDate();this._endMonth=date.getMonth();this._endYear=date.getFullYear()}try{date=$.datepicker.parseDate(dateFormat,dates[0],settings)||defaultDate}catch(e){$.datepicker.log(e);date=defaultDate}}this._selectedDay=date.getDate();this._drawMonth=this._selectedMonth=date.getMonth();this._drawYear=this._selectedYear=date.getFullYear();this._currentDay=(dates[0]?date.getDate():0);this._currentMonth=(dates[0]?date.getMonth():0);this._currentYear=(dates[0]?date.getFullYear():0);this._adjustDate()},_getDefaultDate:function(){var date=this._determineDate("defaultDate",new Date());var minDate=this._getMinMaxDate("min",true);var maxDate=this._getMinMaxDate("max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date},_determineDate:function(name,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var matches=/^([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?$/.exec(offset);if(matches){var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();switch(matches[2]||"d"){case"d":case"D":day+=(matches[1]-0);break;case"w":case"W":day+=(matches[1]*7);break;case"m":case"M":month+=(matches[1]-0);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=(matches[1]-0);day=Math.min(day,getDaysInMonth(year,month));break}date=new Date(year,month,day)}return date};var date=this._get(name);return(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?offsetNumeric(date):date)))},_setDate:function(date,endDate){this._selectedDay=this._currentDay=date.getDate();this._drawMonth=this._selectedMonth=this._currentMonth=date.getMonth();this._drawYear=this._selectedYear=this._currentYear=date.getFullYear();if(this._get("rangeSelect")){if(endDate){this._endDay=endDate.getDate();this._endMonth=endDate.getMonth();this._endYear=endDate.getFullYear()}else{this._endDay=this._currentDay;this._endMonth=this._currentMonth;this._endYear=this._currentYear}}this._adjustDate()},_getDate:function(){var startDate=(!this._currentYear||(this._input&&this._input.val()=="")?null:new Date(this._currentYear,this._currentMonth,this._currentDay));if(this._get("rangeSelect")){return[startDate,(!this._endYear?null:new Date(this._endYear,this._endMonth,this._endDay))]}else{return startDate}},_generateDatepicker:function(){var today=new Date();today=new Date(today.getFullYear(),today.getMonth(),today.getDate());var showStatus=this._get("showStatus");var isRTL=this._get("isRTL");var clear=(this._get("mandatory")?"":'<div class="ui-datepicker-clear"><a onclick="jQuery.datepicker._clearDate('+this._id+');"'+(showStatus?this._addStatus(this._get("clearStatus")||"&#xa0;"):"")+">"+this._get("clearText")+"</a></div>");var controls='<div class="ui-datepicker-control">'+(isRTL?"":clear)+'<div class="ui-datepicker-close"><a onclick="jQuery.datepicker._hideDatepicker();"'+(showStatus?this._addStatus(this._get("closeStatus")||"&#xa0;"):"")+">"+this._get("closeText")+"</a></div>"+(isRTL?clear:"")+"</div>";var prompt=this._get("prompt");var closeAtTop=this._get("closeAtTop");var hideIfNoPrevNext=this._get("hideIfNoPrevNext");var numMonths=this._getNumberOfMonths();var stepMonths=this._get("stepMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var minDate=this._getMinMaxDate("min",true);var maxDate=this._getMinMaxDate("max");var drawMonth=this._drawMonth;var drawYear=this._drawYear;if(maxDate){var maxDraw=new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate());maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(new Date(drawYear,drawMonth,1)>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}var prev='<div class="ui-datepicker-prev">'+(this._canAdjustMonth(-1,drawYear,drawMonth)?'<a onclick="jQuery.datepicker._adjustDate('+this._id+", -"+stepMonths+", 'M');\""+(showStatus?this._addStatus(this._get("prevStatus")||"&#xa0;"):"")+">"+this._get("prevText")+"</a>":(hideIfNoPrevNext?"":"<label>"+this._get("prevText")+"</label>"))+"</div>";var next='<div class="ui-datepicker-next">'+(this._canAdjustMonth(+1,drawYear,drawMonth)?'<a onclick="jQuery.datepicker._adjustDate('+this._id+", +"+stepMonths+", 'M');\""+(showStatus?this._addStatus(this._get("nextStatus")||"&#xa0;"):"")+">"+this._get("nextText")+"</a>":(hideIfNoPrevNext?">":"<label>"+this._get("nextText")+"</label>"))+"</div>";var html=(prompt?'<div class="ui-datepicker-prompt">'+prompt+"</div>":"")+(closeAtTop&&!this._inline?controls:"")+'<div class="ui-datepicker-links">'+(isRTL?next:prev)+(this._isInRange(today)?'<div class="ui-datepicker-current"><a onclick="jQuery.datepicker._gotoToday('+this._id+');"'+(showStatus?this._addStatus(this._get("currentStatus")||"&#xa0;"):"")+">"+this._get("currentText")+"</a></div>":"")+(isRTL?prev:next)+"</div>";var showWeeks=this._get("showWeeks");for(var row=0;row<numMonths[0];row++){for(var col=0;col<numMonths[1];col++){var selectedDate=new Date(drawYear,drawMonth,this._selectedDay);html+='<div class="ui-datepicker-one-month'+(col==0?" ui-datepicker-new-row":"")+'">'+this._generateMonthYearHeader(drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0)+'<table class="ui-datepicker" cellpadding="0" cellspacing="0"><thead><tr class="ui-datepicker-title-row">'+(showWeeks?"<td>"+this._get("weekHeader")+"</td>":"");var firstDay=this._get("firstDay");var changeFirstDay=this._get("changeFirstDay");var dayNames=this._get("dayNames");var dayNamesShort=this._get("dayNamesShort");var dayNamesMin=this._get("dayNamesMin");for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;var status=this._get("dayStatus")||"&#xa0;";status=(status.indexOf("DD")>-1?status.replace(/DD/,dayNames[day]):status.replace(/D/,dayNamesShort[day]));html+="<td"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end-cell"':"")+">"+(!changeFirstDay?"<span":'<a onclick="jQuery.datepicker._changeFirstDay('+this._id+", "+day+');"')+(showStatus?this._addStatus(status):"")+' title="'+dayNames[day]+'">'+dayNamesMin[day]+(changeFirstDay?"</a>":"</span>")+"</td>"}html+="</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==this._selectedYear&&drawMonth==this._selectedMonth){this._selectedDay=Math.min(this._selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var currentDate=(!this._currentDay?new Date(9999,9,9):new Date(this._currentYear,this._currentMonth,this._currentDay));var endDate=this._endDay?new Date(this._endYear,this._endMonth,this._endDay):currentDate;var printDate=new Date(drawYear,drawMonth,1-leadDays);var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var beforeShowDay=this._get("beforeShowDay");var showOtherMonths=this._get("showOtherMonths");var calculateWeek=this._get("calculateWeek")||$.datepicker.iso8601Week;var dateStatus=this._get("statusForDate")||$.datepicker.dateStatus;for(var dRow=0;dRow<numRows;dRow++){html+='<tr class="ui-datepicker-days-row">'+(showWeeks?'<td class="ui-datepicker-week-col">'+calculateWeek(printDate)+"</td>":"");for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((this._input?this._input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);html+='<td class="ui-datepicker-days-cell'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end-cell":"")+(otherMonth?" ui-datepicker-otherMonth":"")+(printDate.getTime()==selectedDate.getTime()&&drawMonth==this._selectedMonth?" ui-datepicker-days-cell-over":"")+(unselectable?" ui-datepicker-unselectable":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-datepicker-current-day":"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+(unselectable?"":" onmouseover=\"jQuery(this).addClass('ui-datepicker-days-cell-over');"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+this._id+"').html('"+(dateStatus.apply((this._input?this._input[0]:null),[printDate,this])||"&#xa0;")+"');")+"\" onmouseout=\"jQuery(this).removeClass('ui-datepicker-days-cell-over');"+(!showStatus||(otherMonth&&!showOtherMonths)?"":"jQuery('#ui-datepicker-status-"+this._id+"').html('&#xa0;');")+'" onclick="jQuery.datepicker._selectDay('+this._id+","+drawMonth+","+drawYear+', this);"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?printDate.getDate():"<a>"+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1)}html+="</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}html+="</tbody></table></div>"}}html+=(showStatus?'<div style="clear: both;"></div><div id="ui-datepicker-status-'+this._id+'" class="ui-datepicker-status">'+(this._get("initStatus")||"&#xa0;")+"</div>":"")+(!closeAtTop&&!this._inline?controls:"")+'<div style="clear: both;"></div>'+($.browser.msie&&parseInt($.browser.version)<7&&!this._inline?'<iframe src="javascript:false;" class="ui-datepicker-cover"></iframe>':"");return html},_generateMonthYearHeader:function(drawMonth,drawYear,minDate,maxDate,selectedDate,secondary){minDate=(this._rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var showStatus=this._get("showStatus");var html='<div class="ui-datepicker-header">';var monthNames=this._get("monthNames");if(secondary||!this._get("changeMonth")){html+=monthNames[drawMonth]+"&#xa0;"}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);html+='<select class="ui-datepicker-new-month" onchange="jQuery.datepicker._selectMonthYear('+this._id+", this, 'M');\" onclick=\"jQuery.datepicker._clickMonthYear("+this._id+');"'+(showStatus?this._addStatus(this._get("monthStatus")||"&#xa0;"):"")+">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){html+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNames[month]+"</option>"}}html+="</select>"}if(secondary||!this._get("changeYear")){html+=drawYear}else{var years=this._get("yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=new Date().getFullYear()+parseInt(years[0],10);endYear=new Date().getFullYear()+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-new-year" onchange="jQuery.datepicker._selectMonthYear('+this._id+", this, 'Y');\" onclick=\"jQuery.datepicker._clickMonthYear("+this._id+');"'+(showStatus?this._addStatus(this._get("yearStatus")||"&#xa0;"):"")+">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}html+="</div>";return html},_addStatus:function(text){return" onmouseover=\"jQuery('#ui-datepicker-status-"+this._id+"').html('"+text+"');\" onmouseout=\"jQuery('#ui-datepicker-status-"+this._id+"').html('&#xa0;');\""},_adjustDate:function(offset,period){var year=this._drawYear+(period=="Y"?offset:0);var month=this._drawMonth+(period=="M"?offset:0);var day=Math.min(this._selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=new Date(year,month,day);var minDate=this._getMinMaxDate("min",true);var maxDate=this._getMinMaxDate("max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);this._selectedDay=date.getDate();this._drawMonth=this._selectedMonth=date.getMonth();this._drawYear=this._selectedYear=date.getFullYear()},_getNumberOfMonths:function(){var numMonths=this._get("numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(minMax,checkRange){var date=this._determineDate(minMax+"Date",null);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return date||(checkRange?this._rangeStart:null)},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(offset,curYear,curMonth){var numMonths=this._getNumberOfMonths();var date=new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1);if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(date)},_isInRange:function(date){var newMinDate=(!this._rangeStart?null:new Date(this._selectedYear,this._selectedMonth,this._selectedDay));newMinDate=(newMinDate&&this._rangeStart<newMinDate?this._rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate("min");var maxDate=this._getMinMaxDate("max");return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(){var shortYearCutoff=this._get("shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get("dayNamesShort"),dayNames:this._get("dayNames"),monthNamesShort:this._get("monthNamesShort"),monthNames:this._get("monthNames")}},_formatDate:function(day,month,year){if(!day){this._currentDay=this._selectedDay;this._currentMonth=this._selectedMonth;this._currentYear=this._selectedYear}var date=(day?(typeof day=="object"?day:new Date(year,month,day)):new Date(this._currentYear,this._currentMonth,this._currentDay));return $.datepicker.formatDate(this._get("dateFormat"),date,this._getFormatConfig())}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null){target[name]=null}}return target}$.fn.datepicker=function(options){var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$(document).ready(function(){$(document.body).append($.datepicker._datepickerDiv).mousedown($.datepicker._checkExternalClick)})})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/ui.dialog.min.js b/javascript/libs/jquery/min/ui/ui.dialog.min.js
new file mode 100644
index 0000000..bdff85d
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/ui.dialog.min.js
@@ -0,0 +1 @@
+(function(B){var A={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};B.widget("ui.dialog",{init:function(){var K=this,L=this.options,D=typeof L.resizable=="string"?L.resizable:"n,e,s,w,se,sw,ne,nw",E=this.element.addClass("ui-dialog-content").wrap("<div/>").wrap("<div/>"),H=E.parent().addClass("ui-dialog-container").css({position:"relative"}),I=L.title||E.attr("title")||"",C=(this.uiDialogTitlebar=B('<div class="ui-dialog-titlebar"/>')).append('<span class="ui-dialog-title">'+I+"</span>").append('<a href="#" class="ui-dialog-titlebar-close"><span>X</span></a>').prependTo(H),J=(this.uiDialog=H.parent()).appendTo(document.body).hide().addClass("ui-dialog").addClass(L.dialogClass).addClass(E.attr("className")).removeClass("ui-dialog-content").css({position:"absolute",width:L.width,height:L.height,overflow:"hidden",zIndex:L.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(M){if(L.closeOnEscape){var N=27;(M.keyCode&&M.keyCode==N&&K.close())}}).mousedown(function(){K.moveToTop()});this.uiDialogTitlebarClose=B(".ui-dialog-titlebar-close",C).hover(function(){B(this).addClass("ui-dialog-titlebar-close-hover")},function(){B(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function(M){M.stopPropagation()}).click(function(){K.close();return false});var G=false;B.each(L.buttons,function(){return !(G=true)});if(G){var F=B('<div class="ui-dialog-buttonpane"/>').appendTo(J);B.each(L.buttons,function(M,N){B("<button/>").text(M).click(function(){N.apply(K.element[0],arguments)}).appendTo(F)})}if(B.fn.draggable){J.draggable({handle:".ui-dialog-titlebar",start:function(N,M){K.moveToTop();(L.dragStart&&L.dragStart.apply(this,arguments))},drag:L.drag,stop:function(N,M){(L.dragStop&&L.dragStop.apply(this,arguments));B.ui.dialog.overlay.resize()}});(L.draggable||J.draggable("disable"))}if(B.fn.resizable){J.resizable({maxWidth:L.maxWidth,maxHeight:L.maxHeight,minWidth:L.minWidth,minHeight:L.minHeight,start:L.resizeStart,resize:L.resize,handles:D,stop:function(N,M){(L.resizeStop&&L.resizeStop.apply(this,arguments));B.ui.dialog.overlay.resize()}});(L.resizable||J.resizable("disable"))}(L.bgiframe&&B.fn.bgiframe&&J.bgiframe());(L.autoOpen&&this.open())},setData:function(C,D){(A[C]&&this.uiDialog.data(A[C],D));switch(C){case"draggable":this.uiDialog.draggable(D?"enable":"disable");break;case"height":this.uiDialog.height(D);break;case"position":this.position(D);break;case"resizable":(typeof D=="string"&&this.uiDialog.data("handles.resizable",D));this.uiDialog.resizable(D?"enable":"disable");break;case"title":B(".ui-dialog-title",this.uiDialogTitlebar).text(D);break;case"width":this.uiDialog.width(D);break}B.widget.prototype.setData.apply(this,arguments)},position:function(H){var D=B(window),E=B(document),F=E.scrollTop(),C=E.scrollLeft(),G=F;if(B.inArray(H,["center","top","right","bottom","left"])>=0){H=[H=="right"||H=="left"?H:"center",H=="top"||H=="bottom"?H:"middle"]}if(H.constructor!=Array){H=["center","middle"]}if(H[0].constructor==Number){C+=H[0]}else{switch(H[0]){case"left":C+=0;break;case"right":C+=D.width()-this.uiDialog.width();break;default:case"center":C+=(D.width()-this.uiDialog.width())/2}}if(H[1].constructor==Number){F+=H[1]}else{switch(H[1]){case"top":F+=0;break;case"bottom":F+=D.height()-this.uiDialog.height();break;default:case"middle":F+=(D.height()-this.uiDialog.height())/2}}F=Math.max(F,G);this.uiDialog.css({top:F,left:C})},open:function(){this.overlay=this.options.modal?new B.ui.dialog.overlay(this):null;this.uiDialog.appendTo("body");this.position(this.options.position);this.uiDialog.show();this.moveToTop(true);var C=null;var D={options:this.options};this.uiDialogTitlebarClose.focus();this.element.triggerHandler("dialogopen",[C,D],this.options.open)},moveToTop:function(E){if((this.options.modal&&!E)||!this.options.stack){return }var D=this.options.zIndex,C=this.options;B(".ui-dialog:visible").each(function(){D=Math.max(D,parseInt(B(this).css("z-index"),10)||C.zIndex)});(this.overlay&&this.overlay.$el.css("z-index",++D));this.uiDialog.css("z-index",++D)},close:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();var D=null;var C={options:this.options};this.element.triggerHandler("dialogclose",[D,C],this.options.close);B.ui.dialog.overlay.resize()},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().appendTo("body");this.uiDialog.remove()}});B.extend(B.ui.dialog,{defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,draggable:true,height:200,minHeight:100,minWidth:150,modal:false,overlay:{},position:"center",resizable:true,stack:true,width:300,zIndex:1000},overlay:function(C){this.$el=B.ui.dialog.overlay.create(C)}});B.extend(B.ui.dialog.overlay,{instances:[],events:B.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(C){return C+".dialog-overlay"}).join(" "),create:function(D){if(this.instances.length===0){setTimeout(function(){B("a, :input").bind(B.ui.dialog.overlay.events,function(){var F=false;var H=B(this).parents(".ui-dialog");if(H.length){var E=B(".ui-dialog-overlay");if(E.length){var G=parseInt(E.css("z-index"),10);E.each(function(){G=Math.max(G,parseInt(B(this).css("z-index"),10))});F=parseInt(H.css("z-index"),10)>G}else{F=true}}return F})},1);B(document).bind("keydown.dialog-overlay",function(E){var F=27;(E.keyCode&&E.keyCode==F&&D.close())});B(window).bind("resize.dialog-overlay",B.ui.dialog.overlay.resize)}var C=B("<div/>").appendTo(document.body).addClass("ui-dialog-overlay").css(B.extend({borderWidth:0,margin:0,padding:0,position:"absolute",top:0,left:0,width:this.width(),height:this.height()},D.options.overlay));(D.options.bgiframe&&B.fn.bgiframe&&C.bgiframe());this.instances.push(C);return C},destroy:function(C){this.instances.splice(B.inArray(this.instances,C),1);if(this.instances.length===0){B("a, :input").add([document,window]).unbind(".dialog-overlay")}C.remove()},height:function(){if(B.browser.msie&&B.browser.version<7){var D=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var C=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(D<C){return B(window).height()+"px"}else{return D+"px"}}else{return B(document).height()+"px"}},width:function(){if(B.browser.msie&&B.browser.version<7){var C=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var D=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(C<D){return B(window).width()+"px"}else{return C+"px"}}else{return B(document).width()+"px"}},resize:function(){var C=B([]);B.each(B.ui.dialog.overlay.instances,function(){C=C.add(this)});C.css({width:0,height:0}).css({width:B.ui.dialog.overlay.width(),height:B.ui.dialog.overlay.height()})}});B.extend(B.ui.dialog.overlay.prototype,{destroy:function(){B.ui.dialog.overlay.destroy(this.$el)}})})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/ui.draggable.min.js b/javascript/libs/jquery/min/ui/ui.draggable.min.js
new file mode 100644
index 0000000..f4610f0
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/ui.draggable.min.js
@@ -0,0 +1 @@
+(function(A){A.widget("ui.draggable",A.extend(A.ui.mouse,{init:function(){var B=this.options;if(B.helper=="original"&&!(/(relative|absolute|fixed)/).test(this.element.css("position"))){this.element.css("position","relative")}this.element.addClass("ui-draggable");(B.disabled&&this.element.addClass("ui-draggable-disabled"));this.mouseInit()},mouseStart:function(F){var H=this.options;if(this.helper||H.disabled||A(F.target).is(".ui-resizable-handle")){return false}var C=!this.options.handle||!A(this.options.handle,this.element).length?true:false;A(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==F.target){C=true}});if(!C){return false}if(A.ui.ddmanager){A.ui.ddmanager.current=this}this.helper=A.isFunction(H.helper)?A(H.helper.apply(this.element[0],[F])):(H.helper=="clone"?this.element.clone():this.element);if(!this.helper.parents("body").length){this.helper.appendTo((H.appendTo=="parent"?this.element[0].parentNode:H.appendTo))}if(this.helper[0]!=this.element[0]&&!(/(fixed|absolute)/).test(this.helper.css("position"))){this.helper.css("position","absolute")}this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)};this.cssPosition=this.helper.css("position");this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:F.pageX-this.offset.left,top:F.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var B=this.offsetParent.offset();if(this.offsetParent[0]==document.body&&A.browser.mozilla){B={top:0,left:0}}this.offset.parent={top:B.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:B.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};var E=this.element.position();this.offset.relative=this.cssPosition=="relative"?{top:E.top-(parseInt(this.helper.css("top"),10)||0)+this.offsetParent[0].scrollTop,left:E.left-(parseInt(this.helper.css("left"),10)||0)+this.offsetParent[0].scrollLeft}:{top:0,left:0};this.originalPosition=this.generatePosition(F);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(H.cursorAt){if(H.cursorAt.left!=undefined){this.offset.click.left=H.cursorAt.left+this.margins.left}if(H.cursorAt.right!=undefined){this.offset.click.left=this.helperProportions.width-H.cursorAt.right+this.margins.left}if(H.cursorAt.top!=undefined){this.offset.click.top=H.cursorAt.top+this.margins.top}if(H.cursorAt.bottom!=undefined){this.offset.click.top=this.helperProportions.height-H.cursorAt.bottom+this.margins.top}}if(H.containment){if(H.containment=="parent"){H.containment=this.helper[0].parentNode}if(H.containment=="document"||H.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,A(H.containment=="document"?document:window).width()-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(A(H.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(H.containment)){var D=A(H.containment)[0];var G=A(H.containment).offset();this.containment=[G.left+(parseInt(A(D).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left,G.top+(parseInt(A(D).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top,G.left+Math.max(D.scrollWidth,D.offsetWidth)-(parseInt(A(D).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),G.top+Math.max(D.scrollHeight,D.offsetHeight)-(parseInt(A(D).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}}this.propagate("start",F);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(A.ui.ddmanager&&!H.dropBehaviour){A.ui.ddmanager.prepareOffsets(this,F)}this.helper.addClass("ui-draggable-dragging");this.mouseDrag(F);return true},convertPositionTo:function(C,D){if(!D){D=this.position}var B=C=="absolute"?1:-1;return{top:(D.top+this.offset.relative.top*B+this.offset.parent.top*B-(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop)*B+(this.cssPosition=="fixed"?this.offsetParent[0].scrollTop:0)*B+this.margins.top*B),left:(D.left+this.offset.relative.left*B+this.offset.parent.left*B-(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)*B+(this.cssPosition=="fixed"?this.offsetParent[0].scrollLeft:0)*B+this.margins.left*B)}},generatePosition:function(E){var F=this.options;var B={top:(E.pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollTop)-(this.cssPosition=="fixed"?this.offsetParent[0].scrollTop:0)),left:(E.pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"||(this.cssPosition=="absolute"&&this.offsetParent[0]==document.body)?0:this.offsetParent[0].scrollLeft)-(this.cssPosition=="fixed"?this.offsetParent[0].scrollLeft:0))};if(!this.originalPosition){return B}if(this.containment){if(B.left<this.containment[0]){B.left=this.containment[0]}if(B.top<this.containment[1]){B.top=this.containment[1]}if(B.left>this.containment[2]){B.left=this.containment[2]}if(B.top>this.containment[3]){B.top=this.containment[3]}}if(F.grid){var D=this.originalPosition.top+Math.round((B.top-this.originalPosition.top)/F.grid[1])*F.grid[1];B.top=this.containment?(!(D<this.containment[1]||D>this.containment[3])?D:(!(D<this.containment[1])?D-F.grid[1]:D+F.grid[1])):D;var C=this.originalPosition.left+Math.round((B.left-this.originalPosition.left)/F.grid[0])*F.grid[0];B.left=this.containment?(!(C<this.containment[0]||C>this.containment[2])?C:(!(C<this.containment[0])?C-F.grid[0]:C+F.grid[0])):C}return B},mouseDrag:function(B){this.position=this.generatePosition(B);this.positionAbs=this.convertPositionTo("absolute");this.position=this.propagate("drag",B)||this.position;if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(A.ui.ddmanager){A.ui.ddmanager.drag(this,B)}return false},mouseStop:function(C){if(A.ui.ddmanager&&!this.options.dropBehaviour){A.ui.ddmanager.drop(this,C)}if(this.options.revert){var B=this;A(this.helper).animate(this.originalPosition,parseInt(this.options.revert,10)||500,function(){B.propagate("stop",C);B.clear()})}else{this.propagate("stop",C);this.clear()}return false},clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.options.helper!="original"&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},plugins:{},uiHash:function(B){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,options:this.options}},propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.uiHash()]);return this.element.triggerHandler(C=="drag"?C:"drag"+C,[B,this.uiHash()],this.options[C])},destroy:function(){if(!this.element.data("draggable")){return }this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable");this.mouseDestroy()}}));A.extend(A.ui.draggable,{defaults:{appendTo:"parent",axis:false,cancel:":input,button",delay:0,distance:0,helper:"original"}});A.ui.plugin.add("draggable","cursor",{start:function(D,C){var B=A("body");if(B.css("cursor")){C.options._cursor=B.css("cursor")}B.css("cursor",C.options.cursor)},stop:function(C,B){if(B.options._cursor){A("body").css("cursor",B.options._cursor)}}});A.ui.plugin.add("draggable","zIndex",{start:function(D,C){var B=A(C.helper);if(B.css("zIndex")){C.options._zIndex=B.css("zIndex")}B.css("zIndex",C.options.zIndex)},stop:function(C,B){if(B.options._zIndex){A(B.helper).css("zIndex",B.options._zIndex)}}});A.ui.plugin.add("draggable","opacity",{start:function(D,C){var B=A(C.helper);if(B.css("opacity")){C.options._opacity=B.css("opacity")}B.css("opacity",C.options.opacity)},stop:function(C,B){if(B.options._opacity){A(B.helper).css("opacity",B.options._opacity)}}});A.ui.plugin.add("draggable","iframeFix",{start:function(C,B){A(B.options.iframeFix===true?"iframe":B.options.iframeFix).each(function(){A('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(A(this).offset()).appendTo("body")})},stop:function(C,B){A("div.DragDropIframeFix").each(function(){this.parentNode.removeChild(this)})}});A.ui.plugin.add("draggable","scroll",{start:function(D,C){var E=C.options;var B=A(this).data("draggable");E.scrollSensitivity=E.scrollSensitivity||20;E.scrollSpeed=E.scrollSpeed||20;B.overflowY=function(F){do{if(/auto|scroll/.test(F.css("overflow"))||(/auto|scroll/).test(F.css("overflow-y"))){return F}F=F.parent()}while(F[0].parentNode);return A(document)}(this);B.overflowX=function(F){do{if(/auto|scroll/.test(F.css("overflow"))||(/auto|scroll/).test(F.css("overflow-x"))){return F}F=F.parent()}while(F[0].parentNode);return A(document)}(this);if(B.overflowY[0]!=document&&B.overflowY[0].tagName!="HTML"){B.overflowYOffset=B.overflowY.offset()}if(B.overflowX[0]!=document&&B.overflowX[0].tagName!="HTML"){B.overflowXOffset=B.overflowX.offset()}},drag:function(D,C){var E=C.options;var B=A(this).data("draggable");if(B.overflowY[0]!=document&&B.overflowY[0].tagName!="HTML"){if((B.overflowYOffset.top+B.overflowY[0].offsetHeight)-D.pageY<E.scrollSensitivity){B.overflowY[0].scrollTop=B.overflowY[0].scrollTop+E.scrollSpeed}if(D.pageY-B.overflowYOffset.top<E.scrollSensitivity){B.overflowY[0].scrollTop=B.overflowY[0].scrollTop-E.scrollSpeed}}else{if(D.pageY-A(document).scrollTop()<E.scrollSensitivity){A(document).scrollTop(A(document).scrollTop()-E.scrollSpeed)}if(A(window).height()-(D.pageY-A(document).scrollTop())<E.scrollSensitivity){A(document).scrollTop(A(document).scrollTop()+E.scrollSpeed)}}if(B.overflowX[0]!=document&&B.overflowX[0].tagName!="HTML"){if((B.overflowXOffset.left+B.overflowX[0].offsetWidth)-D.pageX<E.scrollSensitivity){B.overflowX[0].scrollLeft=B.overflowX[0].scrollLeft+E.scrollSpeed}if(D.pageX-B.overflowXOffset.left<E.scrollSensitivity){B.overflowX[0].scrollLeft=B.overflowX[0].scrollLeft-E.scrollSpeed}}else{if(D.pageX-A(document).scrollLeft()<E.scrollSensitivity){A(document).scrollLeft(A(document).scrollLeft()-E.scrollSpeed)}if(A(window).width()-(D.pageX-A(document).scrollLeft())<E.scrollSensitivity){A(document).scrollLeft(A(document).scrollLeft()+E.scrollSpeed)}}}});A.ui.plugin.add("draggable","snap",{start:function(D,C){var B=A(this).data("draggable");B.snapElements=[];A(C.options.snap===true?".ui-draggable":C.options.snap).each(function(){var F=A(this);var E=F.offset();if(this!=B.element[0]){B.snapElements.push({item:this,width:F.outerWidth(),height:F.outerHeight(),top:E.top,left:E.left})}})},drag:function(J,N){var I=A(this).data("draggable");var L=N.options.snapTolerance||20;var D=N.absolutePosition.left,C=D+I.helperProportions.width,P=N.absolutePosition.top,O=P+I.helperProportions.height;for(var H=I.snapElements.length-1;H>=0;H--){var E=I.snapElements[H].left,B=E+I.snapElements[H].width,R=I.snapElements[H].top,M=R+I.snapElements[H].height;if(!((E-L<D&&D<B+L&&R-L<P&&P<M+L)||(E-L<D&&D<B+L&&R-L<O&&O<M+L)||(E-L<C&&C<B+L&&R-L<P&&P<M+L)||(E-L<C&&C<B+L&&R-L<O&&O<M+L))){continue}if(N.options.snapMode!="inner"){var K=Math.abs(R-O)<=20;var Q=Math.abs(M-P)<=20;var G=Math.abs(E-C)<=20;var F=Math.abs(B-D)<=20;if(K){N.position.top=I.convertPositionTo("relative",{top:R-I.helperProportions.height,left:0}).top}if(Q){N.position.top=I.convertPositionTo("relative",{top:M,left:0}).top}if(G){N.position.left=I.convertPositionTo("relative",{top:0,left:E-I.helperProportions.width}).left}if(F){N.position.left=I.convertPositionTo("relative",{top:0,left:B}).left}}if(N.options.snapMode!="outer"){var K=Math.abs(R-P)<=20;var Q=Math.abs(M-O)<=20;var G=Math.abs(E-D)<=20;var F=Math.abs(B-C)<=20;if(K){N.position.top=I.convertPositionTo("relative",{top:R,left:0}).top}if(Q){N.position.top=I.convertPositionTo("relative",{top:M-I.helperProportions.height,left:0}).top}if(G){N.position.left=I.convertPositionTo("relative",{top:0,left:E}).left}if(F){N.position.left=I.convertPositionTo("relative",{top:0,left:B-I.helperProportions.width}).left}}}}});A.ui.plugin.add("draggable","connectToSortable",{start:function(D,C){var B=A(this).data("draggable");B.sortables=[];A(C.options.connectToSortable).each(function(){if(A.data(this,"sortable")){var E=A.data(this,"sortable");B.sortables.push({instance:E,shouldRevert:E.options.revert});E.refresh();E.propagate("activate",D,B)}})},stop:function(D,C){var B=A(this).data("draggable");A.each(B.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;B.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance.mouseStop(D);this.instance.element.triggerHandler("sortreceive",[D,A.extend(this.instance.ui(),{sender:B.element})],this.instance.options["receive"]);this.instance.options.helper=this.instance.options._helper}else{this.instance.propagate("deactivate",D,B)}})},drag:function(F,E){var D=A(this).data("draggable"),B=this;var C=function(K){var H=K.left,J=H+K.width,I=K.top,G=I+K.height;return(H<(this.positionAbs.left+this.offset.click.left)&&(this.positionAbs.left+this.offset.click.left)<J&&I<(this.positionAbs.top+this.offset.click.top)&&(this.positionAbs.top+this.offset.click.top)<G)};A.each(D.sortables,function(G){if(C.call(D,this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=A(B).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return E.helper[0]};F.target=this.instance.currentItem[0];this.instance.mouseCapture(F,true,true);this.instance.mouseStart(F,true,true);this.instance.offset.click.top=D.offset.click.top;this.instance.offset.click.left=D.offset.click.left;this.instance.offset.parent.left-=D.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=D.offset.parent.top-this.instance.offset.parent.top;D.propagate("toSortable",F)}if(this.instance.currentItem){this.instance.mouseDrag(F)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance.mouseStop(F,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder.remove();D.propagate("fromSortable",F)}}})}});A.ui.plugin.add("draggable","stack",{start:function(D,B){var C=A.makeArray(A(B.options.stack.group)).sort(function(F,E){return(parseInt(A(F).css("zIndex"),10)||B.options.stack.min)-(parseInt(A(E).css("zIndex"),10)||B.options.stack.min)});A(C).each(function(E){this.style.zIndex=B.options.stack.min+E});this[0].style.zIndex=B.options.stack.min+C.length}})})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/ui.droppable.min.js b/javascript/libs/jquery/min/ui/ui.droppable.min.js
new file mode 100644
index 0000000..7354e22
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/ui.droppable.min.js
@@ -0,0 +1 @@
+(function(A){A.widget("ui.droppable",{init:function(){this.element.addClass("ui-droppable");this.isover=0;this.isout=1;var C=this.options,B=C.accept;C=A.extend(C,{accept:C.accept&&C.accept.constructor==Function?C.accept:function(D){return A(D).is(B)}});this.proportions={width:this.element.outerWidth(),height:this.element.outerHeight()};A.ui.ddmanager.droppables.push(this)},plugins:{},ui:function(B){return{draggable:(B.currentItem||B.element),helper:B.helper,position:B.position,absolutePosition:B.positionAbs,options:this.options,element:this.element}},destroy:function(){var B=A.ui.ddmanager.droppables;for(var C=0;C<B.length;C++){if(B[C]==this){B.splice(C,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable")},over:function(C){var B=A.ui.ddmanager.current;if(!B||(B.currentItem||B.element)[0]==this.element[0]){return }if(this.options.accept.call(this.element,(B.currentItem||B.element))){A.ui.plugin.call(this,"over",[C,this.ui(B)]);this.element.triggerHandler("dropover",[C,this.ui(B)],this.options.over)}},out:function(C){var B=A.ui.ddmanager.current;if(!B||(B.currentItem||B.element)[0]==this.element[0]){return }if(this.options.accept.call(this.element,(B.currentItem||B.element))){A.ui.plugin.call(this,"out",[C,this.ui(B)]);this.element.triggerHandler("dropout",[C,this.ui(B)],this.options.out)}},drop:function(D,C){var B=C||A.ui.ddmanager.current;if(!B||(B.currentItem||B.element)[0]==this.element[0]){return false}var E=false;this.element.find(".ui-droppable").not(".ui-draggable-dragging").each(function(){var F=A.data(this,"droppable");if(F.options.greedy&&A.ui.intersect(B,A.extend(F,{offset:F.element.offset()}),F.options.tolerance)){E=true;return false}});if(E){return false}if(this.options.accept.call(this.element,(B.currentItem||B.element))){A.ui.plugin.call(this,"drop",[D,this.ui(B)]);this.element.triggerHandler("drop",[D,this.ui(B)],this.options.drop);return true}return false},activate:function(C){var B=A.ui.ddmanager.current;A.ui.plugin.call(this,"activate",[C,this.ui(B)]);if(B){this.element.triggerHandler("dropactivate",[C,this.ui(B)],this.options.activate)}},deactivate:function(C){var B=A.ui.ddmanager.current;A.ui.plugin.call(this,"deactivate",[C,this.ui(B)]);if(B){this.element.triggerHandler("dropdeactivate",[C,this.ui(B)],this.options.deactivate)}}});A.extend(A.ui.droppable,{defaults:{disabled:false,tolerance:"intersect"}});A.ui.intersect=function(L,F,J){if(!F.offset){return false}var D=(L.positionAbs||L.position.absolute).left,C=D+L.helperProportions.width,I=(L.positionAbs||L.position.absolute).top,H=I+L.helperProportions.height;var E=F.offset.left,B=E+F.proportions.width,K=F.offset.top,G=K+F.proportions.height;switch(J){case"fit":return(E<D&&C<B&&K<I&&H<G);break;case"intersect":return(E<D+(L.helperProportions.width/2)&&C-(L.helperProportions.width/2)<B&&K<I+(L.helperProportions.height/2)&&H-(L.helperProportions.height/2)<G);break;case"pointer":return(E<((L.positionAbs||L.position.absolute).left+(L.clickOffset||L.offset.click).left)&&((L.positionAbs||L.position.absolute).left+(L.clickOffset||L.offset.click).left)<B&&K<((L.positionAbs||L.position.absolute).top+(L.clickOffset||L.offset.click).top)&&((L.positionAbs||L.position.absolute).top+(L.clickOffset||L.offset.click).top)<G);break;case"touch":return((I>=K&&I<=G)||(H>=K&&H<=G)||(I<K&&H>G))&&((D>=E&&D<=B)||(C>=E&&C<=B)||(D<E&&C>B));break;default:return false;break}};A.ui.ddmanager={current:null,droppables:[],prepareOffsets:function(D,F){var B=A.ui.ddmanager.droppables;var E=F?F.type:null;for(var C=0;C<B.length;C++){if(B[C].options.disabled||(D&&!B[C].options.accept.call(B[C].element,(D.currentItem||D.element)))){continue}B[C].visible=B[C].element.is(":visible");if(!B[C].visible){continue}B[C].offset=B[C].element.offset();B[C].proportions={width:B[C].element.outerWidth(),height:B[C].element.outerHeight()};if(E=="dragstart"||E=="sortactivate"){B[C].activate.call(B[C],F)}}},drop:function(B,C){var D=false;A.each(A.ui.ddmanager.droppables,function(){if(!this.options){return }if(!this.options.disabled&&this.visible&&A.ui.intersect(B,this,this.options.tolerance)){D=this.drop.call(this,C)}if(!this.options.disabled&&this.visible&&this.options.accept.call(this.element,(B.currentItem||B.element))){this.isout=1;this.isover=0;this.deactivate.call(this,C)}});return D},drag:function(B,C){if(B.options.refreshPositions){A.ui.ddmanager.prepareOffsets(B,C)}A.each(A.ui.ddmanager.droppables,function(){if(this.disabled||this.greedyChild||!this.visible){return }var E=A.ui.intersect(B,this,this.options.tolerance);var G=!E&&this.isover==1?"isout":(E&&this.isover==0?"isover":null);if(!G){return }var F;if(this.options.greedy){var D=this.element.parents(".ui-droppable:eq(0)");if(D.length){F=A.data(D[0],"droppable");F.greedyChild=(G=="isover"?1:0)}}if(F&&G=="isover"){F["isover"]=0;F["isout"]=1;F.out.call(F,C)}this[G]=1;this[G=="isout"?"isover":"isout"]=0;this[G=="isover"?"over":"out"].call(this,C);if(F&&G=="isout"){F["isout"]=0;F["isover"]=1;F.over.call(F,C)}})}};A.ui.plugin.add("droppable","activeClass",{activate:function(C,B){A(this).addClass(B.options.activeClass)},deactivate:function(C,B){A(this).removeClass(B.options.activeClass)},drop:function(C,B){A(this).removeClass(B.options.activeClass)}});A.ui.plugin.add("droppable","hoverClass",{over:function(C,B){A(this).addClass(B.options.hoverClass)},out:function(C,B){A(this).removeClass(B.options.hoverClass)},drop:function(C,B){A(this).removeClass(B.options.hoverClass)}})})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/ui.resizable.min.js b/javascript/libs/jquery/min/ui/ui.resizable.min.js
new file mode 100644
index 0000000..5989379
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/ui.resizable.min.js
@@ -0,0 +1 @@
+(function(A){A.widget("ui.resizable",A.extend(A.ui.mouse,{init:function(){var M=this,N=this.options;var Q=this.element.css("position");this.element.addClass("ui-resizable").css({position:/static/.test(Q)?"relative":Q});A.extend(N,{_aspectRatio:!!(N.aspectRatio),proxy:N.proxy||N.ghost||N.animate?N.proxy||"proxy":null,knobHandles:N.knobHandles===true?"ui-resizable-knob-handle":N.knobHandles});var H="1px solid #DEDEDE";N.defaultTheme={"ui-resizable":{display:"block"},"ui-resizable-handle":{position:"absolute",background:"#F2F2F2",fontSize:"0.1px"},"ui-resizable-n":{cursor:"n-resize",height:"4px",left:"0px",right:"0px",borderTop:H},"ui-resizable-s":{cursor:"s-resize",height:"4px",left:"0px",right:"0px",borderBottom:H},"ui-resizable-e":{cursor:"e-resize",width:"4px",top:"0px",bottom:"0px",borderRight:H},"ui-resizable-w":{cursor:"w-resize",width:"4px",top:"0px",bottom:"0px",borderLeft:H},"ui-resizable-se":{cursor:"se-resize",width:"4px",height:"4px",borderRight:H,borderBottom:H},"ui-resizable-sw":{cursor:"sw-resize",width:"4px",height:"4px",borderBottom:H,borderLeft:H},"ui-resizable-ne":{cursor:"ne-resize",width:"4px",height:"4px",borderRight:H,borderTop:H},"ui-resizable-nw":{cursor:"nw-resize",width:"4px",height:"4px",borderLeft:H,borderTop:H}};N.knobTheme={"ui-resizable-handle":{background:"#F2F2F2",border:"1px solid #808080",height:"8px",width:"8px"},"ui-resizable-n":{cursor:"n-resize",top:"0px",left:"45%"},"ui-resizable-s":{cursor:"s-resize",bottom:"0px",left:"45%"},"ui-resizable-e":{cursor:"e-resize",right:"0px",top:"45%"},"ui-resizable-w":{cursor:"w-resize",left:"0px",top:"45%"},"ui-resizable-se":{cursor:"se-resize",right:"0px",bottom:"0px"},"ui-resizable-sw":{cursor:"sw-resize",left:"0px",bottom:"0px"},"ui-resizable-nw":{cursor:"nw-resize",left:"0px",top:"0px"},"ui-resizable-ne":{cursor:"ne-resize",right:"0px",top:"0px"}};N._nodeName=this.element[0].nodeName;if(N._nodeName.match(/canvas|textarea|input|select|button|img/i)){var B=this.element;if(/relative/.test(B.css("position"))&&A.browser.opera){B.css({position:"relative",top:"auto",left:"auto"})}B.wrap(A('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:B.css("position"),width:B.outerWidth(),height:B.outerHeight(),top:B.css("top"),left:B.css("left")}));var J=this.element;this.element=this.element.parent();this.element.data("resizable",this);this.element.css({marginLeft:J.css("marginLeft"),marginTop:J.css("marginTop"),marginRight:J.css("marginRight"),marginBottom:J.css("marginBottom")});J.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});if(A.browser.safari&&N.preventDefault){J.css("resize","none")}N.proportionallyResize=J.css({position:"static",zoom:1,display:"block"});this.element.css({margin:J.css("margin")});this._proportionallyResize()}if(!N.handles){N.handles=!A(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}}if(N.handles.constructor==String){N.zIndex=N.zIndex||1000;if(N.handles=="all"){N.handles="n,e,s,w,se,sw,ne,nw"}var O=N.handles.split(",");N.handles={};var G={handle:"position: absolute; display: none; overflow:hidden;",n:"top: 0pt; width:100%;",e:"right: 0pt; height:100%;",s:"bottom: 0pt; width:100%;",w:"left: 0pt; height:100%;",se:"bottom: 0pt; right: 0px;",sw:"bottom: 0pt; left: 0px;",ne:"top: 0pt; right: 0px;",nw:"top: 0pt; left: 0px;"};for(var R=0;R<O.length;R++){var S=A.trim(O[R]),L=N.defaultTheme,F="ui-resizable-"+S,C=!A.ui.css(F)&&!N.knobHandles,P=A.ui.css("ui-resizable-knob-handle"),T=A.extend(L[F],L["ui-resizable-handle"]),D=A.extend(N.knobTheme[F],!P?N.knobTheme["ui-resizable-handle"]:{});var K=/sw|se|ne|nw/.test(S)?{zIndex:++N.zIndex}:{};var I=(C?G[S]:""),E=A(['<div class="ui-resizable-handle ',F,'" style="',I,G.handle,'"></div>'].join("")).css(K);N.handles[S]=".ui-resizable-"+S;this.element.append(E.css(C?T:{}).css(N.knobHandles?D:{}).addClass(N.knobHandles?"ui-resizable-knob-handle":"").addClass(N.knobHandles))}if(N.knobHandles){this.element.addClass("ui-resizable-knob").css(!A.ui.css("ui-resizable-knob")?{}:{})}}this._renderAxis=function(Y){Y=Y||this.element;for(var V in N.handles){if(N.handles[V].constructor==String){N.handles[V]=A(N.handles[V],this.element).show()}if(N.transparent){N.handles[V].css({opacity:0})}if(this.element.is(".ui-wrapper")&&N._nodeName.match(/textarea|input|select|button/i)){var W=A(N.handles[V],this.element),X=0;X=/sw|ne|nw|se|n|s/.test(V)?W.outerHeight():W.outerWidth();var U=["padding",/ne|nw|n/.test(V)?"Top":/se|sw|s/.test(V)?"Bottom":/^e$/.test(V)?"Right":"Left"].join("");if(!N.transparent){Y.css(U,X)}this._proportionallyResize()}if(!A(N.handles[V]).length){continue}}};this._renderAxis(this.element);N._handles=A(".ui-resizable-handle",M.element);if(N.disableSelection){N._handles.each(function(U,V){A.ui.disableSelection(V)})}N._handles.mouseover(function(){if(!N.resizing){if(this.className){var U=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}M.axis=N.axis=U&&U[1]?U[1]:"se"}});if(N.autohide){N._handles.hide();A(M.element).addClass("ui-resizable-autohide").hover(function(){A(this).removeClass("ui-resizable-autohide");N._handles.show()},function(){if(!N.resizing){A(this).addClass("ui-resizable-autohide");N._handles.hide()}})}this.mouseInit()},plugins:{},ui:function(){return{axis:this.options.axis,options:this.options}},propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.ui()]);this.element.triggerHandler(C=="resize"?C:["resize",C].join(""),[B,this.ui()],this.options[C])},destroy:function(){var D=this.element,C=D.children(".ui-resizable").get(0);this.mouseDestroy();var B=function(E){A(E).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};B(D);if(D.is(".ui-wrapper")&&C){D.parent().append(A(C).css({position:D.css("position"),width:D.outerWidth(),height:D.outerHeight(),top:D.css("top"),left:D.css("left")})).end().remove();B(C)}},mouseStart:function(K){if(this.options.disabled){return false}var J=false;for(var H in this.options.handles){if(A(this.options.handles[H])[0]==K.target){J=true}}if(!J){return false}var C=this.options,B=this.element.position(),D=this.element,I=function(O){return parseInt(O,10)||0},G=A.browser.msie&&A.browser.version<7;C.resizing=true;C.documentScroll={top:A(document).scrollTop(),left:A(document).scrollLeft()};if(D.is(".ui-draggable")||(/absolute/).test(D.css("position"))){var M=A.browser.msie&&!C.containment&&(/absolute/).test(D.css("position"))&&!(/relative/).test(D.parent().css("position"));var L=M?C.documentScroll.top:0,F=M?C.documentScroll.left:0;D.css({position:"absolute",top:(B.top+L),left:(B.left+F)})}if(A.browser.opera&&/relative/.test(D.css("position"))){D.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var N=I(this.helper.css("left")),E=I(this.helper.css("top"));this.offset=this.helper.offset();this.position={left:N,top:E};this.size=C.proxy||G?{width:D.outerWidth(),height:D.outerHeight()}:{width:D.width(),height:D.height()};this.originalSize=C.proxy||G?{width:D.outerWidth(),height:D.outerHeight()}:{width:D.width(),height:D.height()};this.originalPosition={left:N,top:E};this.sizeDiff={width:D.outerWidth()-D.width(),height:D.outerHeight()-D.height()};this.originalMousePosition={left:K.pageX,top:K.pageY};C.aspectRatio=(typeof C.aspectRatio=="number")?C.aspectRatio:((this.originalSize.height/this.originalSize.width)||1);if(C.preserveCursor){A("body").css("cursor",this.axis+"-resize")}this.propagate("start",K);return true},mouseDrag:function(I){var D=this.helper,C=this.options,J={},M=this,F=this.originalMousePosition,K=this.axis;var N=(I.pageX-F.left)||0,L=(I.pageY-F.top)||0;var E=this._change[K];if(!E){return false}var H=E.apply(this,[I,N,L]),G=A.browser.msie&&A.browser.version<7,B=this.sizeDiff;if(C._aspectRatio||I.shiftKey){H=this._updateRatio(H,I)}H=this._respectSize(H,I);this.propagate("resize",I);D.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!C.proxy&&C.proportionallyResize){this._proportionallyResize()}this._updateCache(H);return false},mouseStop:function(I){this.options.resizing=false;var E=this.options,H=function(M){return parseInt(M,10)||0},K=this;if(E.proxy){var D=E.proportionallyResize,B=D&&(/textarea/i).test(D.get(0).nodeName),C=B&&A.ui.hasScroll(D.get(0),"left")?0:K.sizeDiff.height,G=B?0:K.sizeDiff.width;var L={width:(K.size.width-G),height:(K.size.height-C)},F=(parseInt(K.element.css("left"),10)+(K.position.left-K.originalPosition.left))||null,J=(parseInt(K.element.css("top"),10)+(K.position.top-K.originalPosition.top))||null;if(!E.animate){this.element.css(A.extend(L,{top:J,left:F}))}if(E.proxy&&!E.animate){this._proportionallyResize()}}if(E.preserveCursor){A("body").css("cursor","auto")}this.propagate("stop",I);if(E.proxy){this.helper.remove()}return false},_updateCache:function(B){var C=this.options;this.offset=this.helper.offset();if(B.left){this.position.left=B.left}if(B.top){this.position.top=B.top}if(B.height){this.size.height=B.height}if(B.width){this.size.width=B.width}},_updateRatio:function(D,E){var F=this.options,G=this.position,C=this.size,B=this.axis;if(D.height){D.width=(C.height/F.aspectRatio)}else{if(D.width){D.height=(C.width*F.aspectRatio)}}if(B=="sw"){D.left=G.left+(C.width-D.width);D.top=null}if(B=="nw"){D.top=G.top+(C.height-D.height);D.left=G.left+(C.width-D.width)}return D},_respectSize:function(H,I){var F=this.helper,E=this.options,N=E._aspectRatio||I.shiftKey,M=this.axis,P=H.width&&E.maxWidth&&E.maxWidth<H.width,J=H.height&&E.maxHeight&&E.maxHeight<H.height,D=H.width&&E.minWidth&&E.minWidth>H.width,O=H.height&&E.minHeight&&E.minHeight>H.height;if(D){H.width=E.minWidth}if(O){H.height=E.minHeight}if(P){H.width=E.maxWidth}if(J){H.height=E.maxHeight}var C=this.originalPosition.left+this.originalSize.width,L=this.position.top+this.size.height;var G=/sw|nw|w/.test(M),B=/nw|ne|n/.test(M);if(D&&G){H.left=C-E.minWidth}if(P&&G){H.left=C-E.maxWidth}if(O&&B){H.top=L-E.minHeight}if(J&&B){H.top=L-E.maxHeight}var K=!H.width&&!H.height;if(K&&!H.left&&H.top){H.top=null}else{if(K&&!H.top&&H.left){H.left=null}}return H},_proportionallyResize:function(){var F=this.options;if(!F.proportionallyResize){return }var D=F.proportionallyResize,C=this.helper||this.element;if(!F.borderDif){var B=[D.css("borderTopWidth"),D.css("borderRightWidth"),D.css("borderBottomWidth"),D.css("borderLeftWidth")],E=[D.css("paddingTop"),D.css("paddingRight"),D.css("paddingBottom"),D.css("paddingLeft")];F.borderDif=A.map(B,function(G,I){var H=parseInt(G,10)||0,J=parseInt(E[I],10)||0;return H+J})}D.css({height:(C.height()-F.borderDif[0]-F.borderDif[2])+"px",width:(C.width()-F.borderDif[1]-F.borderDif[3])+"px"})},_renderProxy:function(){var C=this.element,F=this.options;this.elementOffset=C.offset();if(F.proxy){this.helper=this.helper||A('<div style="overflow:hidden;"></div>');var B=A.browser.msie&&A.browser.version<7,D=(B?1:0),E=(B?2:-1);this.helper.addClass(F.proxy).css({width:C.outerWidth()+E,height:C.outerHeight()+E,position:"absolute",left:this.elementOffset.left-D+"px",top:this.elementOffset.top-D+"px",zIndex:++F.zIndex});this.helper.appendTo("body");if(F.disableSelection){A.ui.disableSelection(this.helper.get(0))}}else{this.helper=C}},_change:{e:function(D,C,B){return{width:this.originalSize.width+C}},w:function(F,C,B){var G=this.options,D=this.originalSize,E=this.originalPosition;return{left:E.left+C,width:D.width-C}},n:function(F,C,B){var G=this.options,D=this.originalSize,E=this.originalPosition;return{top:E.top+B,height:D.height-B}},s:function(D,C,B){return{height:this.originalSize.height+B}},se:function(D,C,B){return A.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[D,C,B]))},sw:function(D,C,B){return A.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[D,C,B]))},ne:function(D,C,B){return A.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[D,C,B]))},nw:function(D,C,B){return A.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[D,C,B]))}}}));A.extend(A.ui.resizable,{defaults:{cancel:":input,button",distance:0,delay:0,preventDefault:true,transparent:false,minWidth:10,minHeight:10,aspectRatio:false,disableSelection:true,preserveCursor:true,autohide:false,knobHandles:false}});A.ui.plugin.add("resizable","containment",{start:function(I,K){var E=K.options,M=A(this).data("resizable"),G=M.element;var C=E.containment,F=(C instanceof A)?C.get(0):(/parent/.test(C))?G.parent().get(0):C;if(!F){return }M.containerElement=A(F);if(/document/.test(C)||C==document){M.containerOffset={left:0,top:0};M.containerPosition={left:0,top:0};M.parentData={element:A(document),left:0,top:0,width:A(document).width(),height:A(document).height()||document.body.parentNode.scrollHeight}}else{M.containerOffset=A(F).offset();M.containerPosition=A(F).position();M.containerSize={height:A(F).innerHeight(),width:A(F).innerWidth()};var J=M.containerOffset,B=M.containerSize.height,H=M.containerSize.width,D=(A.ui.hasScroll(F,"left")?F.scrollWidth:H),L=(A.ui.hasScroll(F)?F.scrollHeight:B);M.parentData={element:F,left:J.left,top:J.top,width:D,height:L}}},resize:function(H,K){var E=K.options,N=A(this).data("resizable"),C=N.containerSize,J=N.containerOffset,G=N.size,I=N.position,L=E._aspectRatio||H.shiftKey,B={top:0,left:0},D=N.containerElement;if(/static/.test(D.css("position"))){B=N.containerPosition}if(I.left<(E.proxy?J.left:B.left)){N.size.width=N.size.width+(E.proxy?(N.position.left-J.left):(N.position.left-B.left));if(L){N.size.height=N.size.width*E.aspectRatio}N.position.left=E.proxy?J.left:B.left}if(I.top<(E.proxy?J.top:0)){N.size.height=N.size.height+(E.proxy?(N.position.top-J.top):N.position.top);if(L){N.size.width=N.size.height/E.aspectRatio}N.position.top=E.proxy?J.top:0}var F=(E.proxy?N.offset.left-J.left:(N.position.left-B.left))+N.sizeDiff.width,M=(E.proxy?N.offset.top-J.top:N.position.top)+N.sizeDiff.height;if(F+N.size.width>=N.parentData.width){N.size.width=N.parentData.width-F;if(L){N.size.height=N.size.width*E.aspectRatio}}if(M+N.size.height>=N.parentData.height){N.size.height=N.parentData.height-M;if(L){N.size.width=N.size.height/E.aspectRatio}}},stop:function(G,J){var C=J.options,L=A(this).data("resizable"),H=L.position,I=L.containerOffset,B=L.containerPosition,D=L.containerElement;var E=A(L.helper),M=E.offset(),K=E.innerWidth(),F=E.innerHeight();if(C.proxy&&!C.animate&&/relative/.test(D.css("position"))){A(this).css({left:(M.left-I.left),top:(M.top-I.top),width:K,height:F})}if(C.proxy&&!C.animate&&/static/.test(D.css("position"))){A(this).css({left:B.left+(M.left-I.left),top:B.top+(M.top-I.top),width:K,height:F})}}});A.ui.plugin.add("resizable","grid",{resize:function(H,J){var D=J.options,L=A(this).data("resizable"),G=L.size,E=L.originalSize,F=L.originalPosition,K=L.axis,I=D._aspectRatio||H.shiftKey;D.grid=typeof D.grid=="number"?[D.grid,D.grid]:D.grid;var C=Math.round((G.width-E.width)/(D.grid[0]||1))*(D.grid[0]||1),B=Math.round((G.height-E.height)/(D.grid[1]||1))*(D.grid[1]||1);if(/^(se|s|e)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B}else{if(/^(ne)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B;L.position.top=F.top-B}else{if(/^(sw)$/.test(K)){L.size.width=E.width+C;L.size.height=E.height+B;L.position.left=F.left-C}else{L.size.width=E.width+C;L.size.height=E.height+B;L.position.top=F.top-B;L.position.left=F.left-C}}}}});A.ui.plugin.add("resizable","animate",{stop:function(I,K){var F=K.options,L=A(this).data("resizable");var E=F.proportionallyResize,B=E&&(/textarea/i).test(E.get(0).nodeName),C=B&&A.ui.hasScroll(E.get(0),"left")?0:L.sizeDiff.height,H=B?0:L.sizeDiff.width;var D={width:(L.size.width-H),height:(L.size.height-C)},G=(parseInt(L.element.css("left"),10)+(L.position.left-L.originalPosition.left))||null,J=(parseInt(L.element.css("top"),10)+(L.position.top-L.originalPosition.top))||null;L.element.animate(A.extend(D,J&&G?{top:J,left:G}:{}),{duration:F.animateDuration||"slow",easing:F.animateEasing||"swing",step:function(){var M={width:parseInt(L.element.css("width"),10),height:parseInt(L.element.css("height"),10),top:parseInt(L.element.css("top"),10),left:parseInt(L.element.css("left"),10)};if(E){E.css({width:M.width,height:M.height})}L._updateCache(M);L.propagate("animate",I)}})}});A.ui.plugin.add("resizable","ghost",{start:function(E,D){var F=D.options,B=A(this).data("resizable"),G=F.proportionallyResize,C=B.size;if(!G){B.ghost=B.element.clone()}else{B.ghost=G.clone()}B.ghost.css({opacity:0.25,display:"block",position:"relative",height:C.height,width:C.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof F.ghost=="string"?F.ghost:"");B.ghost.appendTo(B.helper)},resize:function(D,C){var E=C.options,B=A(this).data("resizable"),F=E.proportionallyResize;if(B.ghost){B.ghost.css({position:"relative",height:B.size.height,width:B.size.width})}},stop:function(D,C){var E=C.options,B=A(this).data("resizable"),F=E.proportionallyResize;if(B.ghost&&B.helper){B.helper.get(0).removeChild(B.ghost.get(0))}}});A.ui.plugin.add("resizable","alsoResize",{start:function(E,C){var F=C.options,B=A(this).data("resizable"),D=function(G){A(G).each(function(){A(this).data("resizable-alsoresize",{width:parseInt(A(this).width(),10),height:parseInt(A(this).height(),10),left:parseInt(A(this).css("left"),10),top:parseInt(A(this).css("top"),10)})})};if(typeof (F.alsoResize)=="object"){A.each(F.alsoResize,function(G,H){D(G)})}else{D(F.alsoResize)}},resize:function(F,E){var G=E.options,C=A(this).data("resizable"),D=C.originalSize,I=C.originalPosition;var H={height:(C.size.height-D.height)||0,width:(C.size.width-D.width)||0,top:(C.position.top-I.top)||0,left:(C.position.left-I.left)||0},B=function(J,K){A(J).each(function(){var N=A(this).data("resizable-alsoresize"),M={},L=K&&K.length?K:["width","height","top","left"];A.each(L||["width","height","top","left"],function(O,Q){var P=(N[Q]||0)+(H[Q]||0);if(P&&P>=0){M[Q]=P||null}});A(this).css(M)})};if(typeof (G.alsoResize)=="object"){A.each(G.alsoResize,function(J,K){B(J,K)})}else{B(G.alsoResize)}},stop:function(C,B){A(this).removeData("resizable-alsoresize-start")}})})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/ui.selectable.min.js b/javascript/libs/jquery/min/ui/ui.selectable.min.js
new file mode 100644
index 0000000..6df79a2
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/ui.selectable.min.js
@@ -0,0 +1 @@
+(function(A){A.widget("ui.selectable",A.extend(A.ui.mouse,{init:function(){var B=this;this.element.addClass("ui-selectable");this.dragged=false;var C;this.refresh=function(){C=A(B.options.filter,B.element[0]);C.each(function(){var D=A(this);var E=D.offset();A.data(this,"selectable-item",{element:this,$element:D,left:E.left,top:E.top,right:E.left+D.width(),bottom:E.top+D.height(),startselected:false,selected:D.hasClass("ui-selected"),selecting:D.hasClass("ui-selecting"),unselecting:D.hasClass("ui-unselecting")})})};this.refresh();this.selectees=C.addClass("ui-selectee");this.mouseInit();this.helper=A(document.createElement("div")).css({border:"1px dotted black"})},toggle:function(){if(this.options.disabled){this.enable()}else{this.disable()}},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this.mouseDestroy()},mouseStart:function(E){var C=this;this.opos=[E.pageX,E.pageY];if(this.options.disabled){return }var D=this.options;this.selectees=A(D.filter,this.element[0]);this.element.triggerHandler("selectablestart",[E,{"selectable":this.element[0],"options":D}],D.start);A("body").append(this.helper);this.helper.css({"z-index":100,"position":"absolute","left":E.clientX,"top":E.clientY,"width":0,"height":0});if(D.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var F=A.data(this,"selectable-item");F.startselected=true;if(!E.ctrlKey){F.$element.removeClass("ui-selected");F.selected=false;F.$element.addClass("ui-unselecting");F.unselecting=true;C.element.triggerHandler("selectableunselecting",[E,{selectable:C.element[0],unselecting:F.element,options:D}],D.unselecting)}});var B=false;A(E.target).parents().andSelf().each(function(){if(A.data(this,"selectable-item")){B=true}});return this.options.keyboard?!B:true},mouseDrag:function(I){var C=this;this.dragged=true;if(this.options.disabled){return }var E=this.options;var D=this.opos[0],H=this.opos[1],B=I.pageX,G=I.pageY;if(D>B){var F=B;B=D;D=F}if(H>G){var F=G;G=H;H=F}this.helper.css({left:D,top:H,width:B-D,height:G-H});this.selectees.each(function(){var J=A.data(this,"selectable-item");if(!J||J.element==C.element[0]){return }var K=false;if(E.tolerance=="touch"){K=(!(J.left>B||J.right<D||J.top>G||J.bottom<H))}else{if(E.tolerance=="fit"){K=(J.left>D&&J.right<B&&J.top>H&&J.bottom<G)}}if(K){if(J.selected){J.$element.removeClass("ui-selected");J.selected=false}if(J.unselecting){J.$element.removeClass("ui-unselecting");J.unselecting=false}if(!J.selecting){J.$element.addClass("ui-selecting");J.selecting=true;C.element.triggerHandler("selectableselecting",[I,{selectable:C.element[0],selecting:J.element,options:E}],E.selecting)}}else{if(J.selecting){if(I.ctrlKey&&J.startselected){J.$element.removeClass("ui-selecting");J.selecting=false;J.$element.addClass("ui-selected");J.selected=true}else{J.$element.removeClass("ui-selecting");J.selecting=false;if(J.startselected){J.$element.addClass("ui-unselecting");J.unselecting=true}C.element.triggerHandler("selectableunselecting",[I,{selectable:C.element[0],unselecting:J.element,options:E}],E.unselecting)}}if(J.selected){if(!I.ctrlKey&&!J.startselected){J.$element.removeClass("ui-selected");J.selected=false;J.$element.addClass("ui-unselecting");J.unselecting=true;C.element.triggerHandler("selectableunselecting",[I,{selectable:C.element[0],unselecting:J.element,options:E}],E.unselecting)}}}});return false},mouseStop:function(D){var B=this;this.dragged=false;var C=this.options;A(".ui-unselecting",this.element[0]).each(function(){var E=A.data(this,"selectable-item");E.$element.removeClass("ui-unselecting");E.unselecting=false;E.startselected=false;B.element.triggerHandler("selectableunselected",[D,{selectable:B.element[0],unselected:E.element,options:C}],C.unselected)});A(".ui-selecting",this.element[0]).each(function(){var E=A.data(this,"selectable-item");E.$element.removeClass("ui-selecting").addClass("ui-selected");E.selecting=false;E.selected=true;E.startselected=true;B.element.triggerHandler("selectableselected",[D,{selectable:B.element[0],selected:E.element,options:C}],C.selected)});this.element.triggerHandler("selectablestop",[D,{selectable:B.element[0],options:this.options}],this.options.stop);this.helper.remove();return false}}));A.extend(A.ui.selectable,{defaults:{distance:0,delay:0,cancel:":input,button",appendTo:"body",autoRefresh:true,filter:"*",tolerance:"touch"}})})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/ui.slider.min.js b/javascript/libs/jquery/min/ui/ui.slider.min.js
new file mode 100644
index 0000000..2186a0d
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/ui.slider.min.js
@@ -0,0 +1 @@
+(function(A){A.fn.unwrap=A.fn.unwrap||function(B){return this.each(function(){A(this).parents(B).eq(0).after(this).remove()})};A.widget("ui.slider",{plugins:{},ui:function(B){return{options:this.options,handle:this.currentHandle,value:this.options.axis!="both"||!this.options.axis?Math.round(this.value(null,this.options.axis=="vertical"?"y":"x")):{x:Math.round(this.value(null,"x")),y:Math.round(this.value(null,"y"))},range:this.getRange()}},propagate:function(C,B){A.ui.plugin.call(this,C,[B,this.ui()]);this.element.triggerHandler(C=="slide"?C:"slide"+C,[B,this.ui()],this.options[C])},destroy:function(){this.element.removeClass("ui-slider ui-slider-disabled").removeData("slider").unbind(".slider");this.handle.unwrap("a");this.handle.each(function(){A(this).data("mouse").mouseDestroy()});this.generated&&this.generated.remove()},setData:function(B,C){A.widget.prototype.setData.apply(this,arguments);if(/min|max|steps/.test(B)){this.initBoundaries()}},init:function(){var B=this;this.element.addClass("ui-slider");this.initBoundaries();this.handle=A(this.options.handle,this.element);if(!this.handle.length){B.handle=B.generated=A(B.options.handles||[0]).map(function(){var D=A("<div/>").addClass("ui-slider-handle").appendTo(B.element);if(this.id){D.attr("id",this.id)}return D[0]})}var C=function(D){this.element=A(D);this.element.data("mouse",this);this.options=B.options;this.element.bind("mousedown",function(){if(B.currentHandle){this.blur(B.currentHandle)}B.focus(this,1)});this.mouseInit()};A.extend(C.prototype,A.ui.mouse,{mouseStart:function(D){return B.start.call(B,D,this.element[0])},mouseStop:function(D){return B.stop.call(B,D,this.element[0])},mouseDrag:function(D){return B.drag.call(B,D,this.element[0])},mouseCapture:function(){return true},trigger:function(D){this.mouseDown(D)}});A(this.handle).each(function(){new C(this)}).wrap('<a href="javascript:void(0)" style="cursor:default;"></a>').parent().bind("focus",function(D){B.focus(this.firstChild)}).bind("blur",function(D){B.blur(this.firstChild)}).bind("keydown",function(D){if(!B.options.noKeyboard){B.keydown(D.keyCode,this.firstChild)}});this.element.bind("mousedown.slider",function(D){B.click.apply(B,[D]);B.currentHandle.data("mouse").trigger(D);B.firstValue=B.firstValue+1});A.each(this.options.handles||[],function(D,E){B.moveTo(E.start,D,true)});if(!isNaN(this.options.startValue)){this.moveTo(this.options.startValue,0,true)}this.previousHandle=A(this.handle[0]);if(this.handle.length==2&&this.options.range){this.createRange()}},initBoundaries:function(){var B=this.element[0],C=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};A.extend(C,{axis:C.axis||(B.offsetWidth<B.offsetHeight?"vertical":"horizontal"),max:!isNaN(parseInt(C.max,10))?{x:parseInt(C.max,10),y:parseInt(C.max,10)}:({x:C.max&&C.max.x||100,y:C.max&&C.max.y||100}),min:!isNaN(parseInt(C.min,10))?{x:parseInt(C.min,10),y:parseInt(C.min,10)}:({x:C.min&&C.min.x||0,y:C.min&&C.min.y||0})});C.realMax={x:C.max.x-C.min.x,y:C.max.y-C.min.y};C.stepping={x:C.stepping&&C.stepping.x||parseInt(C.stepping,10)||(C.steps?C.realMax.x/(C.steps.x||parseInt(C.steps,10)||C.realMax.x):0),y:C.stepping&&C.stepping.y||parseInt(C.stepping,10)||(C.steps?C.realMax.y/(C.steps.y||parseInt(C.steps,10)||C.realMax.y):0)}},keydown:function(C,B){if(/(37|38|39|40)/.test(C)){this.moveTo({x:/(37|39)/.test(C)?(C==37?"-":"+")+"="+this.oneStep("x"):0,y:/(38|40)/.test(C)?(C==38?"-":"+")+"="+this.oneStep("y"):0},B)}},focus:function(B,C){this.currentHandle=A(B).addClass("ui-slider-handle-active");if(C){this.currentHandle.parent()[0].focus()}},blur:function(B){A(B).removeClass("ui-slider-handle-active");if(this.currentHandle&&this.currentHandle[0]==B){this.previousHandle=this.currentHandle;this.currentHandle=null}},click:function(C){var D=[C.pageX,C.pageY];var B=false;this.handle.each(function(){if(this==C.target){B=true}});if(B||this.options.disabled||!(this.currentHandle||this.previousHandle)){return }if(!this.currentHandle&&this.previousHandle){this.focus(this.previousHandle,true)}this.offset=this.element.offset();this.moveTo({y:this.convertValue(C.pageY-this.offset.top-this.currentHandle[0].offsetHeight/2,"y"),x:this.convertValue(C.pageX-this.offset.left-this.currentHandle[0].offsetWidth/2,"x")},null,!this.options.distance)},createRange:function(){this.rangeElement=A("<div></div>").addClass("ui-slider-range").css({position:"absolute"}).appendTo(this.element);this.updateRange()},updateRange:function(){var C=this.options.axis=="vertical"?"top":"left";var B=this.options.axis=="vertical"?"height":"width";this.rangeElement.css(C,(parseInt(A(this.handle[0]).css(C),10)||0)+this.handleSize(0,this.options.axis=="vertical"?"y":"x")/2);this.rangeElement.css(B,(parseInt(A(this.handle[1]).css(C),10)||0)-(parseInt(A(this.handle[0]).css(C),10)||0))},getRange:function(){return this.rangeElement?this.convertValue(parseInt(this.rangeElement.css(this.options.axis=="vertical"?"height":"width"),10),this.options.axis=="vertical"?"y":"x"):null},handleIndex:function(){return this.handle.index(this.currentHandle[0])},value:function(D,B){if(this.handle.length==1){this.currentHandle=this.handle}if(!B){B=this.options.axis=="vertical"?"y":"x"}var C=A(D!=undefined&&D!==null?this.handle[D]||D:this.currentHandle);if(C.data("mouse").sliderValue){return parseInt(C.data("mouse").sliderValue[B],10)}else{return parseInt(((parseInt(C.css(B=="x"?"left":"top"),10)/(this.actualSize[B=="x"?"width":"height"]-this.handleSize(D,B)))*this.options.realMax[B])+this.options.min[B],10)}},convertValue:function(C,B){return this.options.min[B]+(C/(this.actualSize[B=="x"?"width":"height"]-this.handleSize(null,B)))*this.options.realMax[B]},translateValue:function(C,B){return((C-this.options.min[B])/this.options.realMax[B])*(this.actualSize[B=="x"?"width":"height"]-this.handleSize(null,B))},translateRange:function(D,B){if(this.rangeElement){if(this.currentHandle[0]==this.handle[0]&&D>=this.translateValue(this.value(1),B)){D=this.translateValue(this.value(1,B)-this.oneStep(B),B)}if(this.currentHandle[0]==this.handle[1]&&D<=this.translateValue(this.value(0),B)){D=this.translateValue(this.value(0,B)+this.oneStep(B),B)}}if(this.options.handles){var C=this.options.handles[this.handleIndex()];if(D<this.translateValue(C.min,B)){D=this.translateValue(C.min,B)}else{if(D>this.translateValue(C.max,B)){D=this.translateValue(C.max,B)}}}return D},translateLimits:function(C,B){if(C>=this.actualSize[B=="x"?"width":"height"]-this.handleSize(null,B)){C=this.actualSize[B=="x"?"width":"height"]-this.handleSize(null,B)}if(C<=0){C=0}return C},handleSize:function(C,B){return A(C!=undefined&&C!==null?this.handle[C]:this.currentHandle)[0]["offset"+(B=="x"?"Width":"Height")]},oneStep:function(B){return this.options.stepping[B]||1},start:function(C,B){var D=this.options;if(D.disabled){return false}this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(!this.currentHandle){this.focus(this.previousHandle,true)}this.offset=this.element.offset();this.handleOffset=this.currentHandle.offset();this.clickOffset={top:C.pageY-this.handleOffset.top,left:C.pageX-this.handleOffset.left};this.firstValue=this.value();this.propagate("start",C);this.drag(C,B);return true},stop:function(B){this.propagate("stop",B);if(this.firstValue!=this.value()){this.propagate("change",B)}this.focus(this.currentHandle,true);return false},drag:function(E,D){var F=this.options;var B={top:E.pageY-this.offset.top-this.clickOffset.top,left:E.pageX-this.offset.left-this.clickOffset.left};if(!this.currentHandle){this.focus(this.previousHandle,true)}B.left=this.translateLimits(B.left,"x");B.top=this.translateLimits(B.top,"y");if(F.stepping.x){var C=this.convertValue(B.left,"x");C=Math.round(C/F.stepping.x)*F.stepping.x;B.left=this.translateValue(C,"x")}if(F.stepping.y){var C=this.convertValue(B.top,"y");C=Math.round(C/F.stepping.y)*F.stepping.y;B.top=this.translateValue(C,"y")}B.left=this.translateRange(B.left,"x");B.top=this.translateRange(B.top,"y");if(F.axis!="vertical"){this.currentHandle.css({left:B.left})}if(F.axis!="horizontal"){this.currentHandle.css({top:B.top})}this.currentHandle.data("mouse").sliderValue={x:Math.round(this.convertValue(B.left,"x"))||0,y:Math.round(this.convertValue(B.top,"y"))||0};if(this.rangeElement){this.updateRange()}this.propagate("slide",E);return false},moveTo:function(F,E,G){var H=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(E==undefined&&!this.currentHandle&&this.handle.length!=1){return false}if(E==undefined&&!this.currentHandle){E=0}if(E!=undefined){this.currentHandle=this.previousHandle=A(this.handle[E]||E)}if(F.x!==undefined&&F.y!==undefined){var B=F.x,I=F.y}else{var B=F,I=F}if(B!==undefined&&B.constructor!=Number){var D=/^\-\=/.test(B),C=/^\+\=/.test(B);if(D||C){B=this.value(null,"x")+parseInt(B.replace(D?"=":"+=",""),10)}else{B=isNaN(parseInt(B,10))?undefined:parseInt(B,10)}}if(I!==undefined&&I.constructor!=Number){var D=/^\-\=/.test(I),C=/^\+\=/.test(I);if(D||C){I=this.value(null,"y")+parseInt(I.replace(D?"=":"+=",""),10)}else{I=isNaN(parseInt(I,10))?undefined:parseInt(I,10)}}if(H.axis!="vertical"&&B!==undefined){if(H.stepping.x){B=Math.round(B/H.stepping.x)*H.stepping.x}B=this.translateValue(B,"x");B=this.translateLimits(B,"x");B=this.translateRange(B,"x");this.currentHandle.css({left:B})}if(H.axis!="horizontal"&&I!==undefined){if(H.stepping.y){I=Math.round(I/H.stepping.y)*H.stepping.y}I=this.translateValue(I,"y");I=this.translateLimits(I,"y");I=this.translateRange(I,"y");this.currentHandle.css({top:I})}if(this.rangeElement){this.updateRange()}this.currentHandle.data("mouse").sliderValue={x:Math.round(this.convertValue(B,"x"))||0,y:Math.round(this.convertValue(I,"y"))||0};if(!G){this.propagate("start",null);this.propagate("stop",null);this.propagate("change",null);this.propagate("slide",null)}}});A.ui.slider.getter="value";A.ui.slider.defaults={handle:".ui-slider-handle",distance:1}})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/ui.sortable.min.js b/javascript/libs/jquery/min/ui/ui.sortable.min.js
new file mode 100644
index 0000000..3c1b771
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/ui.sortable.min.js
@@ -0,0 +1 @@
+(function(B){function A(E,D){var C=B.browser.safari&&B.browser.version<522;if(E.contains&&!C){return E.contains(D)}if(E.compareDocumentPosition){return !!(E.compareDocumentPosition(D)&16)}while(D=D.parentNode){if(D==E){return true}}return false}B.widget("ui.sortable",B.extend(B.ui.mouse,{init:function(){var C=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;if(!(/(relative|absolute|fixed)/).test(this.element.css("position"))){this.element.css("position","relative")}this.offset=this.element.offset();this.mouseInit()},plugins:{},ui:function(C){return{helper:(C||this)["helper"],placeholder:(C||this)["placeholder"]||B([]),position:(C||this)["position"],absolutePosition:(C||this)["positionAbs"],options:this.options,element:this.element,item:(C||this)["currentItem"],sender:C?C.element:null}},propagate:function(F,E,C,D){B.ui.plugin.call(this,F,[E,this.ui(C)]);if(!D){this.element.triggerHandler(F=="sort"?F:"sort"+F,[E,this.ui(C)],this.options[F])}},serialize:function(E){var C=(B.isFunction(this.options.items)?this.options.items.call(this.element):B(this.options.items,this.element)).not(".ui-sortable-helper");var D=[];E=E||{};C.each(function(){var F=(B(this).attr(E.attribute||"id")||"").match(E.expression||(/(.+)[-=_](.+)/));if(F){D.push((E.key||F[1])+"[]="+(E.key?F[1]:F[2]))}});return D.join("&")},toArray:function(C){var D=(B.isFunction(this.options.items)?this.options.items.call(this.element):B(this.options.items,this.element)).not(".ui-sortable-helper");var E=[];D.each(function(){E.push(B(this).attr(C||"id"))});return E},intersectsWith:function(J){var E=this.positionAbs.left,D=E+this.helperProportions.width,I=this.positionAbs.top,H=I+this.helperProportions.height;var F=J.left,C=F+J.width,K=J.top,G=K+J.height;if(this.options.tolerance=="pointer"||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?"width":"height"]>J[this.floating?"width":"height"])){return(I+this.offset.click.top>K&&I+this.offset.click.top<G&&E+this.offset.click.left>F&&E+this.offset.click.left<C)}else{return(F<E+(this.helperProportions.width/2)&&D-(this.helperProportions.width/2)<C&&K<I+(this.helperProportions.height/2)&&H-(this.helperProportions.height/2)<G)}},intersectsWithEdge:function(J){var E=this.positionAbs.left,D=E+this.helperProportions.width,I=this.positionAbs.top,H=I+this.helperProportions.height;var F=J.left,C=F+J.width,K=J.top,G=K+J.height;if(this.options.tolerance=="pointer"||(this.options.tolerance=="guess"&&this.helperProportions[this.floating?"width":"height"]>J[this.floating?"width":"height"])){if(!(I+this.offset.click.top>K&&I+this.offset.click.top<G&&E+this.offset.click.left>F&&E+this.offset.click.left<C)){return false}if(this.floating){if(E+this.offset.click.left>F&&E+this.offset.click.left<F+J.width/2){return 2}if(E+this.offset.click.left>F+J.width/2&&E+this.offset.click.left<C){return 1}}else{if(I+this.offset.click.top>K&&I+this.offset.click.top<K+J.height/2){return 2}if(I+this.offset.click.top>K+J.height/2&&I+this.offset.click.top<G){return 1}}}else{if(!(F<E+(this.helperProportions.width/2)&&D-(this.helperProportions.width/2)<C&&K<I+(this.helperProportions.height/2)&&H-(this.helperProportions.height/2)<G)){return false}if(this.floating){if(D>F&&E<F){return 2}if(E<C&&D>C){return 1}}else{if(H>K&&I<K){return 1}if(I<G&&H>G){return 2}}}return false},refresh:function(){this.refreshItems();this.refreshPositions()},refreshItems:function(){this.items=[];this.containers=[this];var C=this.items;var E=[B.isFunction(this.options.items)?this.options.items.call(this.element):B(this.options.items,this.element)];if(this.options.connectWith){for(var F=this.options.connectWith.length-1;F>=0;F--){var H=B(this.options.connectWith[F]);for(var D=H.length-1;D>=0;D--){var G=B.data(H[D],"sortable");if(G&&!G.options.disabled){E.push(B.isFunction(G.options.items)?G.options.items.call(G.element):B(G.options.items,G.element));this.containers.push(G)}}}}for(var F=E.length-1;F>=0;F--){E[F].each(function(){B.data(this,"sortable-item",true);C.push({item:B(this),width:0,height:0,left:0,top:0})})}},refreshPositions:function(C){for(var E=this.items.length-1;E>=0;E--){var D=this.items[E].item;if(!C){this.items[E].width=(this.options.toleranceElement?B(this.options.toleranceElement,D):D).outerWidth()}if(!C){this.items[E].height=(this.options.toleranceElement?B(this.options.toleranceElement,D):D).outerHeight()}var F=(this.options.toleranceElement?B(this.options.toleranceElement,D):D).offset();this.items[E].left=F.left;this.items[E].top=F.top}for(var E=this.containers.length-1;E>=0;E--){var F=this.containers[E].element.offset();this.containers[E].containerCache.left=F.left;this.containers[E].containerCache.top=F.top;this.containers[E].containerCache.width=this.containers[E].element.outerWidth();this.containers[E].containerCache.height=this.containers[E].element.outerHeight()}},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this.mouseDestroy();for(var C=this.items.length-1;C>=0;C--){this.items[C].item.removeData("sortable-item")}},createPlaceholder:function(E){var C=E||this,F=C.options;if(F.placeholder.constructor==String){var D=F.placeholder;F.placeholder={element:function(){return B("<div></div>").addClass(D)[0]},update:function(G,H){H.css(G.offset()).css({width:G.outerWidth(),height:G.outerHeight()})}}}C.placeholder=B(F.placeholder.element.call(C.element,C.currentItem)).appendTo("body").css({position:"absolute"});F.placeholder.update.call(C.element,C.currentItem,C.placeholder)},contactContainers:function(F){for(var D=this.containers.length-1;D>=0;D--){if(this.intersectsWith(this.containers[D].containerCache)){if(!this.containers[D].containerCache.over){if(this.currentContainer!=this.containers[D]){var I=10000;var H=null;var E=this.positionAbs[this.containers[D].floating?"left":"top"];for(var C=this.items.length-1;C>=0;C--){if(!A(this.containers[D].element[0],this.items[C].item[0])){continue}var G=this.items[C][this.containers[D].floating?"left":"top"];if(Math.abs(G-E)<I){I=Math.abs(G-E);H=this.items[C]}}if(!H&&!this.options.dropOnEmpty){continue}if(this.placeholder){this.placeholder.remove()}if(this.containers[D].options.placeholder){this.containers[D].createPlaceholder(this)}else{this.placeholder=null}H?this.rearrange(F,H):this.rearrange(F,null,this.containers[D].element);this.propagate("change",F);this.containers[D].propagate("change",F,this);this.currentContainer=this.containers[D]}this.containers[D].propagate("over",F,this);this.containers[D].containerCache.over=1}}else{if(this.containers[D].containerCache.over){this.containers[D].propagate("out",F,this);this.containers[D].containerCache.over=0}}}},mouseCapture:function(F,E){if(this.options.disabled||this.options.type=="static"){return false}var D=null,C=B(F.target).parents().each(function(){if(B.data(this,"sortable-item")){D=B(this);return false}});if(B.data(F.target,"sortable-item")){D=B(F.target)}if(!D){return false}if(this.options.handle&&!E){var G=false;B(this.options.handle,D).find("*").andSelf().each(function(){if(this==F.target){G=true}});if(!G){return false}}this.currentItem=D;return true},mouseStart:function(H,F,C){var J=this.options;this.currentContainer=this;this.refresh();this.helper=typeof J.helper=="function"?B(J.helper.apply(this.element[0],[H,this.currentItem])):this.currentItem.clone();if(!this.helper.parents("body").length){this.helper.appendTo((J.appendTo!="parent"?J.appendTo:this.currentItem[0].parentNode))}this.helper.css({position:"absolute",clear:"both"}).addClass("ui-sortable-helper");this.margins={left:(parseInt(this.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)};this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.offset.click={left:H.pageX-this.offset.left,top:H.pageY-this.offset.top};this.offsetParent=this.helper.offsetParent();var D=this.offsetParent.offset();this.offset.parent={top:D.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:D.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};this.originalPosition=this.generatePosition(H);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(J.cursorAt){if(J.cursorAt.left!=undefined){this.offset.click.left=J.cursorAt.left}if(J.cursorAt.right!=undefined){this.offset.click.left=this.helperProportions.width-J.cursorAt.right}if(J.cursorAt.top!=undefined){this.offset.click.top=J.cursorAt.top}if(J.cursorAt.bottom!=undefined){this.offset.click.top=this.helperProportions.height-J.cursorAt.bottom}}this.domPosition=this.currentItem.prev()[0];if(J.containment){if(J.containment=="parent"){J.containment=this.helper[0].parentNode}if(J.containment=="document"||J.containment=="window"){this.containment=[0-this.offset.parent.left,0-this.offset.parent.top,B(J.containment=="document"?document:window).width()-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(B(J.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(J.containment)){var G=B(J.containment)[0];var I=B(J.containment).offset();this.containment=[I.left+(parseInt(B(G).css("borderLeftWidth"),10)||0)-this.offset.parent.left,I.top+(parseInt(B(G).css("borderTopWidth"),10)||0)-this.offset.parent.top,I.left+Math.max(G.scrollWidth,G.offsetWidth)-(parseInt(B(G).css("borderLeftWidth"),10)||0)-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.currentItem.css("marginRight"),10)||0),I.top+Math.max(G.scrollHeight,G.offsetHeight)-(parseInt(B(G).css("borderTopWidth"),10)||0)-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.currentItem.css("marginBottom"),10)||0)]}}if(J.placeholder){this.createPlaceholder()}this.propagate("start",H);this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};if(this.options.placeholder!="clone"){this.currentItem.css("visibility","hidden")}if(!C){for(var E=this.containers.length-1;E>=0;E--){this.containers[E].propagate("activate",H,this)}}if(B.ui.ddmanager){B.ui.ddmanager.current=this}if(B.ui.ddmanager&&!J.dropBehaviour){B.ui.ddmanager.prepareOffsets(this,H)}this.dragging=true;this.mouseDrag(H);return true},convertPositionTo:function(D,E){if(!E){E=this.position}var C=D=="absolute"?1:-1;return{top:(E.top+this.offset.parent.top*C-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)*C+this.margins.top*C),left:(E.left+this.offset.parent.left*C-(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft)*C+this.margins.left*C)}},generatePosition:function(F){var G=this.options;var C={top:(F.pageY-this.offset.click.top-this.offset.parent.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)),left:(F.pageX-this.offset.click.left-this.offset.parent.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft))};if(!this.originalPosition){return C}if(this.containment){if(C.left<this.containment[0]){C.left=this.containment[0]}if(C.top<this.containment[1]){C.top=this.containment[1]}if(C.left>this.containment[2]){C.left=this.containment[2]}if(C.top>this.containment[3]){C.top=this.containment[3]}}if(G.grid){var E=this.originalPosition.top+Math.round((C.top-this.originalPosition.top)/G.grid[1])*G.grid[1];C.top=this.containment?(!(E<this.containment[1]||E>this.containment[3])?E:(!(E<this.containment[1])?E-G.grid[1]:E+G.grid[1])):E;var D=this.originalPosition.left+Math.round((C.left-this.originalPosition.left)/G.grid[0])*G.grid[0];C.left=this.containment?(!(D<this.containment[0]||D>this.containment[2])?D:(!(D<this.containment[0])?D-G.grid[0]:D+G.grid[0])):D}return C},mouseDrag:function(D){this.position=this.generatePosition(D);this.positionAbs=this.convertPositionTo("absolute");for(var C=this.items.length-1;C>=0;C--){var E=this.intersectsWithEdge(this.items[C]);if(!E){continue}if(this.items[C].item[0]!=this.currentItem[0]&&this.currentItem[E==1?"next":"prev"]()[0]!=this.items[C].item[0]&&!A(this.currentItem[0],this.items[C].item[0])&&(this.options.type=="semi-dynamic"?!A(this.element[0],this.items[C].item[0]):true)){this.direction=E==1?"down":"up";this.rearrange(D,this.items[C]);this.propagate("change",D);break}}this.contactContainers(D);this.propagate("sort",D);if(!this.options.axis||this.options.axis=="x"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis=="y"){this.helper[0].style.top=this.position.top+"px"}if(B.ui.ddmanager){B.ui.ddmanager.drag(this,D)}return false},mouseStop:function(E,D){if(B.ui.ddmanager&&!this.options.dropBehaviour){B.ui.ddmanager.drop(this,E)}if(this.options.revert){var C=this;var F=C.currentItem.offset();if(C.placeholder){C.placeholder.animate({opacity:"hide"},(parseInt(this.options.revert,10)||500)-50)}B(this.helper).animate({left:F.left-this.offset.parent.left-C.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:F.top-this.offset.parent.top-C.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){C.propagate("stop",E,null,D);C.clear(E)})}else{this.propagate("stop",E,null,D);this.clear(E,D)}return false},clear:function(E,D){if(this.domPosition!=this.currentItem.prev().not(".ui-sortable-helper")[0]){this.propagate("update",E,null,D)}if(!A(this.element[0],this.currentItem[0])){if(this.domPosition==this.currentItem.prev().not(".ui-sortable-helper")[0]){this.propagate("update",E,null,D)}this.propagate("remove",E,null,D);for(var C=this.containers.length-1;C>=0;C--){if(A(this.containers[C].element[0],this.currentItem[0])){this.containers[C].propagate("update",E,this,D);this.containers[C].propagate("receive",E,this,D)}}}for(var C=this.containers.length-1;C>=0;C--){this.containers[C].propagate("deactivate",E,this,D);if(this.containers[C].containerCache.over){this.containers[C].propagate("out",E,this);this.containers[C].containerCache.over=0}}this.dragging=false;if(this.cancelHelperRemoval){return false}B(this.currentItem).css("visibility","");if(this.placeholder){this.placeholder.remove()}this.helper.remove();return true},rearrange:function(E,D,C){C?C.append(this.currentItem):D.item[this.direction=="down"?"before":"after"](this.currentItem);this.refreshPositions(true);if(this.options.placeholder){this.options.placeholder.update.call(this.element,this.currentItem,this.placeholder)}}}));B.extend(B.ui.sortable,{getter:"serialize toArray",defaults:{tolerance:"guess",distance:0,delay:0,cancel:":input,button",items:"> *",zIndex:1000,dropOnEmpty:true,appendTo:"parent"}});B.ui.plugin.add("sortable","cursor",{start:function(E,D){var C=B("body");if(C.css("cursor")){D.options._cursor=C.css("cursor")}C.css("cursor",D.options.cursor)},stop:function(D,C){if(C.options._cursor){B("body").css("cursor",C.options._cursor)}}});B.ui.plugin.add("sortable","zIndex",{start:function(E,D){var C=D.helper;if(C.css("zIndex")){D.options._zIndex=C.css("zIndex")}C.css("zIndex",D.options.zIndex)},stop:function(D,C){if(C.options._zIndex){B(C.helper).css("zIndex",C.options._zIndex)}}});B.ui.plugin.add("sortable","opacity",{start:function(E,D){var C=D.helper;if(C.css("opacity")){D.options._opacity=C.css("opacity")}C.css("opacity",D.options.opacity)},stop:function(D,C){if(C.options._opacity){B(C.helper).css("opacity",C.options._opacity)}}});B.ui.plugin.add("sortable","scroll",{start:function(E,D){var F=D.options;var C=B(this).data("sortable");F.scrollSensitivity=F.scrollSensitivity||20;F.scrollSpeed=F.scrollSpeed||20;C.overflowY=function(G){do{if(/auto|scroll/.test(G.css("overflow"))||(/auto|scroll/).test(G.css("overflow-y"))){return G}G=G.parent()}while(G[0].parentNode);return B(document)}(C.currentItem);C.overflowX=function(G){do{if(/auto|scroll/.test(G.css("overflow"))||(/auto|scroll/).test(G.css("overflow-x"))){return G}G=G.parent()}while(G[0].parentNode);return B(document)}(C.currentItem);if(C.overflowY[0]!=document&&C.overflowY[0].tagName!="HTML"){C.overflowYOffset=C.overflowY.offset()}if(C.overflowX[0]!=document&&C.overflowX[0].tagName!="HTML"){C.overflowXOffset=C.overflowX.offset()}},sort:function(E,D){var F=D.options;var C=B(this).data("sortable");if(C.overflowY[0]!=document&&C.overflowY[0].tagName!="HTML"){if((C.overflowYOffset.top+C.overflowY[0].offsetHeight)-E.pageY<F.scrollSensitivity){C.overflowY[0].scrollTop=C.overflowY[0].scrollTop+F.scrollSpeed}if(E.pageY-C.overflowYOffset.top<F.scrollSensitivity){C.overflowY[0].scrollTop=C.overflowY[0].scrollTop-F.scrollSpeed}}else{if(E.pageY-B(document).scrollTop()<F.scrollSensitivity){B(document).scrollTop(B(document).scrollTop()-F.scrollSpeed)}if(B(window).height()-(E.pageY-B(document).scrollTop())<F.scrollSensitivity){B(document).scrollTop(B(document).scrollTop()+F.scrollSpeed)}}if(C.overflowX[0]!=document&&C.overflowX[0].tagName!="HTML"){if((C.overflowXOffset.left+C.overflowX[0].offsetWidth)-E.pageX<F.scrollSensitivity){C.overflowX[0].scrollLeft=C.overflowX[0].scrollLeft+F.scrollSpeed}if(E.pageX-C.overflowXOffset.left<F.scrollSensitivity){C.overflowX[0].scrollLeft=C.overflowX[0].scrollLeft-F.scrollSpeed}}else{if(E.pageX-B(document).scrollLeft()<F.scrollSensitivity){B(document).scrollLeft(B(document).scrollLeft()-F.scrollSpeed)}if(B(window).width()-(E.pageX-B(document).scrollLeft())<F.scrollSensitivity){B(document).scrollLeft(B(document).scrollLeft()+F.scrollSpeed)}}}})})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/min/ui/ui.tabs.min.js b/javascript/libs/jquery/min/ui/ui.tabs.min.js
new file mode 100644
index 0000000..7da7f50
--- /dev/null
+++ b/javascript/libs/jquery/min/ui/ui.tabs.min.js
@@ -0,0 +1 @@
+(function(A){A.widget("ui.tabs",{init:function(){this.options.event+=".tabs";this.tabify(true)},setData:function(B,C){if((/^selected/).test(B)){this.select(C)}else{this.options[B]=C;this.tabify()}},length:function(){return this.$tabs.length},tabId:function(B){return B.title&&B.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+A.data(B)},ui:function(C,B){return{options:this.options,tab:C,panel:B}},tabify:function(O){this.$lis=A("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return A("a",this)[0]});this.$panels=A([]);var P=this,D=this.options;this.$tabs.each(function(R,Q){if(Q.hash&&Q.hash.replace("#","")){P.$panels=P.$panels.add(Q.hash)}else{if(A(Q).attr("href")!="#"){A.data(Q,"href.tabs",Q.href);A.data(Q,"load.tabs",Q.href);var T=P.tabId(Q);Q.href="#"+T;var S=A("#"+T);if(!S.length){S=A(D.panelTemplate).attr("id",T).addClass(D.panelClass).insertAfter(P.$panels[R-1]||P.element);S.data("destroy.tabs",true)}P.$panels=P.$panels.add(S)}else{D.disabled.push(R+1)}}});if(O){this.element.addClass(D.navClass);this.$panels.each(function(){var Q=A(this);Q.addClass(D.panelClass)});if(D.selected===undefined){if(location.hash){this.$tabs.each(function(S,Q){if(Q.hash==location.hash){D.selected=S;if(A.browser.msie||A.browser.opera){var R=A(location.hash),T=R.attr("id");R.attr("id","");setTimeout(function(){R.attr("id",T)},500)}scrollTo(0,0);return false}})}else{if(D.cookie){var J=parseInt(A.cookie("ui-tabs"+A.data(P.element)),10);if(J&&P.$tabs[J]){D.selected=J}}else{if(P.$lis.filter("."+D.selectedClass).length){D.selected=P.$lis.index(P.$lis.filter("."+D.selectedClass)[0])}}}}D.selected=D.selected===null||D.selected!==undefined?D.selected:0;D.disabled=A.unique(D.disabled.concat(A.map(this.$lis.filter("."+D.disabledClass),function(R,Q){return P.$lis.index(R)}))).sort();if(A.inArray(D.selected,D.disabled)!=-1){D.disabled.splice(A.inArray(D.selected,D.disabled),1)}this.$panels.addClass(D.hideClass);this.$lis.removeClass(D.selectedClass);if(D.selected!==null){this.$panels.eq(D.selected).show().removeClass(D.hideClass);this.$lis.eq(D.selected).addClass(D.selectedClass);var K=function(){A(P.element).triggerHandler("tabsshow",[P.ui(P.$tabs[D.selected],P.$panels[D.selected])],D.show)};if(A.data(this.$tabs[D.selected],"load.tabs")){this.load(D.selected,K)}else{K()}}A(window).bind("unload",function(){P.$tabs.unbind(".tabs");P.$lis=P.$tabs=P.$panels=null})}for(var G=0,N;N=this.$lis[G];G++){A(N)[A.inArray(G,D.disabled)!=-1&&!A(N).hasClass(D.selectedClass)?"addClass":"removeClass"](D.disabledClass)}if(D.cache===false){this.$tabs.removeData("cache.tabs")}var C,I,B={"min-width":0,duration:1},E="normal";if(D.fx&&D.fx.constructor==Array){C=D.fx[0]||B,I=D.fx[1]||B}else{C=I=D.fx||B}var H={display:"",overflow:"",height:""};if(!A.browser.msie){H.opacity=""}function M(R,Q,S){Q.animate(C,C.duration||E,function(){Q.addClass(D.hideClass).css(H);if(A.browser.msie&&C.opacity){Q[0].style.filter=""}if(S){L(R,S,Q)}})}function L(R,S,Q){if(I===B){S.css("display","block")}S.animate(I,I.duration||E,function(){S.removeClass(D.hideClass).css(H);if(A.browser.msie&&I.opacity){S[0].style.filter=""}A(P.element).triggerHandler("tabsshow",[P.ui(R,S[0])],D.show)})}function F(R,T,Q,S){T.addClass(D.selectedClass).siblings().removeClass(D.selectedClass);M(R,Q,S)}this.$tabs.unbind(".tabs").bind(D.event,function(){var T=A(this).parents("li:eq(0)"),Q=P.$panels.filter(":visible"),S=A(this.hash);if((T.hasClass(D.selectedClass)&&!D.unselect)||T.hasClass(D.disabledClass)||A(this).hasClass(D.loadingClass)||A(P.element).triggerHandler("tabsselect",[P.ui(this,S[0])],D.select)===false){this.blur();return false}P.options.selected=P.$tabs.index(this);if(D.unselect){if(T.hasClass(D.selectedClass)){P.options.selected=null;T.removeClass(D.selectedClass);P.$panels.stop();M(this,Q);this.blur();return false}else{if(!Q.length){P.$panels.stop();var R=this;P.load(P.$tabs.index(this),function(){T.addClass(D.selectedClass).addClass(D.unselectClass);L(R,S)});this.blur();return false}}}if(D.cookie){A.cookie("ui-tabs"+A.data(P.element),P.options.selected,D.cookie)}P.$panels.stop();if(S.length){var R=this;P.load(P.$tabs.index(this),Q.length?function(){F(R,T,Q,S)}:function(){T.addClass(D.selectedClass);L(R,S)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(A.browser.msie){this.blur()}return false});if(!(/^click/).test(D.event)){this.$tabs.bind("click.tabs",function(){return false})}},add:function(E,D,C){if(C==undefined){C=this.$tabs.length}var G=this.options;var I=A(G.tabTemplate.replace(/#\{href\}/g,E).replace(/#\{label\}/g,D));I.data("destroy.tabs",true);var H=E.indexOf("#")==0?E.replace("#",""):this.tabId(A("a:first-child",I)[0]);var F=A("#"+H);if(!F.length){F=A(G.panelTemplate).attr("id",H).addClass(G.hideClass).data("destroy.tabs",true)}F.addClass(G.panelClass);if(C>=this.$lis.length){I.appendTo(this.element);F.appendTo(this.element[0].parentNode)}else{I.insertBefore(this.$lis[C]);F.insertBefore(this.$panels[C])}G.disabled=A.map(G.disabled,function(K,J){return K>=C?++K:K});this.tabify();if(this.$tabs.length==1){I.addClass(G.selectedClass);F.removeClass(G.hideClass);var B=A.data(this.$tabs[0],"load.tabs");if(B){this.load(C,B)}}this.element.triggerHandler("tabsadd",[this.ui(this.$tabs[C],this.$panels[C])],G.add)},remove:function(B){var D=this.options,E=this.$lis.eq(B).remove(),C=this.$panels.eq(B).remove();if(E.hasClass(D.selectedClass)&&this.$tabs.length>1){this.select(B+(B+1<this.$tabs.length?1:-1))}D.disabled=A.map(A.grep(D.disabled,function(G,F){return G!=B}),function(G,F){return G>=B?--G:G});this.tabify();this.element.triggerHandler("tabsremove",[this.ui(E.find("a")[0],C[0])],D.remove)},enable:function(B){var C=this.options;if(A.inArray(B,C.disabled)==-1){return }var D=this.$lis.eq(B).removeClass(C.disabledClass);if(A.browser.safari){D.css("display","inline-block");setTimeout(function(){D.css("display","block")},0)}C.disabled=A.grep(C.disabled,function(F,E){return F!=B});this.element.triggerHandler("tabsenable",[this.ui(this.$tabs[B],this.$panels[B])],C.enable)},disable:function(C){var B=this,D=this.options;if(C!=D.selected){this.$lis.eq(C).addClass(D.disabledClass);D.disabled.push(C);D.disabled.sort();this.element.triggerHandler("tabsdisable",[this.ui(this.$tabs[C],this.$panels[C])],D.disable)}},select:function(B){if(typeof B=="string"){B=this.$tabs.index(this.$tabs.filter("[href$="+B+"]")[0])}this.$tabs.eq(B).trigger(this.options.event)},load:function(G,K){var L=this,D=this.options,E=this.$tabs.eq(G),J=E[0],H=K==undefined||K===false,B=E.data("load.tabs");K=K||function(){};if(!B||!H&&A.data(J,"cache.tabs")){K();return }var M=function(N){var O=A(N),P=O.find("*:last");return P.length&&P||O};var C=function(){L.$tabs.filter("."+D.loadingClass).removeClass(D.loadingClass).each(function(){if(D.spinner){M(this).parent().html(M(this).data("label.tabs"))}});L.xhr=null};if(D.spinner){var I=M(J).html();M(J).wrapInner("<em></em>").find("em").data("label.tabs",I).html(D.spinner)}var F=A.extend({},D.ajaxOptions,{url:B,success:function(O,N){A(J.hash).html(O);C();if(D.cache){A.data(J,"cache.tabs",true)}A(L.element).triggerHandler("tabsload",[L.ui(L.$tabs[G],L.$panels[G])],D.load);D.ajaxOptions.success&&D.ajaxOptions.success(O,N);K()}});if(this.xhr){this.xhr.abort();C()}E.addClass(D.loadingClass);setTimeout(function(){L.xhr=A.ajax(F)},0)},url:function(C,B){this.$tabs.eq(C).removeData("cache.tabs").data("load.tabs",B)},destroy:function(){var B=this.options;this.element.unbind(".tabs").removeClass(B.navClass).removeData("tabs");this.$tabs.each(function(){var C=A.data(this,"href.tabs");if(C){this.href=C}var D=A(this).unbind(".tabs");A.each(["href","load","cache"],function(E,F){D.removeData(F+".tabs")})});this.$lis.add(this.$panels).each(function(){if(A.data(this,"destroy.tabs")){A(this).remove()}else{A(this).removeClass([B.selectedClass,B.unselectClass,B.disabledClass,B.panelClass,B.hideClass].join(" "))}})}});A.ui.tabs.defaults={unselect:false,event:"click",disabled:[],cookie:null,spinner:"Loading&#8230;",cache:false,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:"<div></div>",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};A.ui.tabs.getter="length";A.extend(A.ui.tabs.prototype,{rotation:null,rotate:function(C,F){F=F||false;var B=this,E=this.options.selected;function G(){B.rotation=setInterval(function(){E=++E<B.$tabs.length?E:0;B.select(E)},C)}function D(H){if(!H||H.clientX){clearInterval(B.rotation)}}if(C){G();if(!F){this.$tabs.bind(this.options.event,D)}else{this.$tabs.bind(this.options.event,function(){D();E=B.options.selected;G()})}}else{D();this.$tabs.unbind(this.options.event,D)}}})})(jQuery) \ No newline at end of file
diff --git a/javascript/libs/jquery/packed/interface.js b/javascript/libs/jquery/packed/interface.js
new file mode 100644
index 0000000..d069216
--- /dev/null
+++ b/javascript/libs/jquery/packed/interface.js
@@ -0,0 +1,12 @@
+/**
+ * Interface Elements for jQuery
+ *
+ * http://interface.eyecon.ro
+ *
+ * Copyright (c) 2006 Stefan Petre
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ *
+ */
+ 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}('k.f2={2r:u(M){E q.1E(u(){if(!M.aR||!M.aZ)E;D el=q;el.2l={aq:M.aq||cO,aR:M.aR,aZ:M.aZ,8e:M.8e||\'fV\',aJ:M.aJ||\'fV\',2Y:M.2Y&&2g M.2Y==\'u\'?M.2Y:I,3i:M.2Y&&2g M.3i==\'u\'?M.3i:I,7U:M.7U&&2g M.7U==\'u\'?M.7U:I,as:k(M.aR,q),8f:k(M.aZ,q),H:M.H||8J,67:M.67||0};el.2l.8f.2G().B(\'W\',\'9R\').eq(0).B({W:el.2l.aq+\'U\',19:\'2B\'}).2T();el.2l.as.1E(u(2N){q.7X=2N}).gC(u(){k(q).2R(el.2l.aJ)},u(){k(q).4i(el.2l.aJ)}).1J(\'5h\',u(e){if(el.2l.67==q.7X)E;el.2l.as.eq(el.2l.67).4i(el.2l.8e).2T().eq(q.7X).2R(el.2l.8e).2T();el.2l.8f.eq(el.2l.67).5w({W:0},el.2l.H,u(){q.14.19=\'1o\';if(el.2l.3i){el.2l.3i.1D(el,[q])}}).2T().eq(q.7X).1Y().5w({W:el.2l.aq},el.2l.H,u(){q.14.19=\'2B\';if(el.2l.2Y){el.2l.2Y.1D(el,[q])}}).2T();if(el.2l.7U){el.2l.7U.1D(el,[q,el.2l.8f.K(q.7X),el.2l.as.K(el.2l.67),el.2l.8f.K(el.2l.67)])}el.2l.67=q.7X}).eq(0).2R(el.2l.8e).2T();k(q).B(\'W\',k(q).B(\'W\')).B(\'2U\',\'2K\')})}};k.fn.gN=k.f2.2r;k.aA={2r:u(M){E q.1E(u(){D el=q;D 7E=2*18.2Q/f1;D an=2*18.2Q;if(k(el).B(\'Y\')!=\'2s\'&&k(el).B(\'Y\')!=\'1P\'){k(el).B(\'Y\',\'2s\')}el.1l={1R:k(M.1R,q),2F:M.2F,6q:M.6q,aD:M.aD,an:an,1N:k.1a.2o(q),Y:k.1a.3w(q),26:18.2Q/2,bi:M.bi,8p:M.6r,6r:[],aG:I,7E:2*18.2Q/f1};el.1l.fB=(el.1l.1N.w-el.1l.2F)/2;el.1l.7D=(el.1l.1N.h-el.1l.6q-el.1l.6q*el.1l.8p)/2;el.1l.2D=2*18.2Q/el.1l.1R.1N();el.1l.ba=el.1l.1N.w/2;el.1l.b9=el.1l.1N.h/2-el.1l.6q*el.1l.8p;D ak=1h.3F(\'22\');k(ak).B({Y:\'1P\',3I:1,Q:0,O:0});k(el).1S(ak);el.1l.1R.1E(u(2N){a6=k(\'1T\',q).K(0);W=T(el.1l.6q*el.1l.8p);if(k.3a.4t){3E=1h.3F(\'1T\');k(3E).B(\'Y\',\'1P\');3E.2J=a6.2J;3E.14.5E=\'gE 9n:9w.9y.cC(1G=60, 14=1, gB=0, gA=0, gv=0, gF=0)\'}P{3E=1h.3F(\'3E\');if(3E.fD){4L=3E.fD("2d");3E.14.Y=\'1P\';3E.14.W=W+\'U\';3E.14.Z=el.1l.2F+\'U\';3E.W=W;3E.Z=el.1l.2F;4L.gu();4L.gO(0,W);4L.gk(1,-1);4L.gp(a6,0,0,el.1l.2F,W);4L.6H();4L.gm="gG-4l";D ap=4L.hy(0,0,0,W);ap.fs(1,"fr(1V, 1V, 1V, 1)");ap.fs(0,"fr(1V, 1V, 1V, 0.6)");4L.hx=ap;if(hA.hB.3J(\'hw\')!=-1){4L.hv()}P{4L.hu(0,0,el.1l.2F,W)}}}el.1l.6r[2N]=3E;k(ak).1S(3E)}).1J(\'9z\',u(e){el.1l.aG=1b;el.1l.H=el.1l.7E*0.1*el.1l.H/18.3S(el.1l.H);E I}).1J(\'8B\',u(e){el.1l.aG=I;E I});k.aA.7T(el);el.1l.H=el.1l.7E*0.2;el.1l.ht=1X.6V(u(){el.1l.26+=el.1l.H;if(el.1l.26>an)el.1l.26=0;k.aA.7T(el)},20);k(el).1J(\'8B\',u(){el.1l.H=el.1l.7E*0.2*el.1l.H/18.3S(el.1l.H)}).1J(\'3D\',u(e){if(el.1l.aG==I){1s=k.1a.4a(e);fz=el.1l.1N.w-1s.x+el.1l.Y.x;el.1l.H=el.1l.bi*el.1l.7E*(el.1l.1N.w/2-fz)/(el.1l.1N.w/2)}})})},7T:u(el){el.1l.1R.1E(u(2N){b8=el.1l.26+2N*el.1l.2D;x=el.1l.fB*18.5H(b8);y=el.1l.7D*18.83(b8);f9=T(2a*(el.1l.7D+y)/(2*el.1l.7D));fk=(el.1l.7D+y)/(2*el.1l.7D);Z=T((el.1l.2F-el.1l.aD)*fk+el.1l.aD);W=T(Z*el.1l.6q/el.1l.2F);q.14.Q=el.1l.b9+y-W/2+"U";q.14.O=el.1l.ba+x-Z/2+"U";q.14.Z=Z+"U";q.14.W=W+"U";q.14.3I=f9;el.1l.6r[2N].14.Q=T(el.1l.b9+y+W-1-W/2)+"U";el.1l.6r[2N].14.O=T(el.1l.ba+x-Z/2)+"U";el.1l.6r[2N].14.Z=Z+"U";el.1l.6r[2N].14.W=T(W*el.1l.8p)+"U"})}};k.fn.hI=k.aA.2r;k.23({G:{c8:u(p,n,1W,1H,1m){E((-18.5H(p*18.2Q)/2)+0.5)*1H+1W},hK:u(p,n,1W,1H,1m){E 1H*(n/=1m)*n*n+1W},fl:u(p,n,1W,1H,1m){E-1H*((n=n/1m-1)*n*n*n-1)+1W},hm:u(p,n,1W,1H,1m){if((n/=1m/2)<1)E 1H/2*n*n*n*n+1W;E-1H/2*((n-=2)*n*n*n-2)+1W},8l:u(p,n,1W,1H,1m){if((n/=1m)<(1/2.75)){E 1H*(7.aB*n*n)+1W}P if(n<(2/2.75)){E 1H*(7.aB*(n-=(1.5/2.75))*n+.75)+1W}P if(n<(2.5/2.75)){E 1H*(7.aB*(n-=(2.25/2.75))*n+.gY)+1W}P{E 1H*(7.aB*(n-=(2.h2/2.75))*n+.gX)+1W}},cr:u(p,n,1W,1H,1m){if(k.G.8l)E 1H-k.G.8l(p,1m-n,0,1H,1m)+1W;E 1W+1H},gW:u(p,n,1W,1H,1m){if(k.G.cr&&k.G.8l)if(n<1m/2)E k.G.cr(p,n*2,0,1H,1m)*.5+1W;E k.G.8l(p,n*2-1m,0,1H,1m)*.5+1H*.5+1W;E 1W+1H},gQ:u(p,n,1W,1H,1m){D a,s;if(n==0)E 1W;if((n/=1m)==1)E 1W+1H;a=1H*0.3;p=1m*.3;if(a<18.3S(1H)){a=1H;s=p/4}P{s=p/(2*18.2Q)*18.cb(1H/a)}E-(a*18.6b(2,10*(n-=1))*18.83((n*1m-s)*(2*18.2Q)/p))+1W},gT:u(p,n,1W,1H,1m){D a,s;if(n==0)E 1W;if((n/=1m/2)==2)E 1W+1H;a=1H*0.3;p=1m*.3;if(a<18.3S(1H)){a=1H;s=p/4}P{s=p/(2*18.2Q)*18.cb(1H/a)}E a*18.6b(2,-10*n)*18.83((n*1m-s)*(2*18.2Q)/p)+1H+1W},gV:u(p,n,1W,1H,1m){D a,s;if(n==0)E 1W;if((n/=1m/2)==2)E 1W+1H;a=1H*0.3;p=1m*.3;if(a<18.3S(1H)){a=1H;s=p/4}P{s=p/(2*18.2Q)*18.cb(1H/a)}if(n<1){E-.5*(a*18.6b(2,10*(n-=1))*18.83((n*1m-s)*(2*18.2Q)/p))+1W}E a*18.6b(2,-10*(n-=1))*18.83((n*1m-s)*(2*18.2Q)/p)*.5+1H+1W}}});k.6n={2r:u(M){E q.1E(u(){D el=q;el.1F={1R:k(M.1R,q),1Z:k(M.1Z,q),1M:k.1a.3w(q),2F:M.2F,ax:M.ax,7Y:M.7Y,ge:M.ge,51:M.51,6x:M.6x};k.6n.aH(el,0);k(1X).1J(\'gU\',u(){el.1F.1M=k.1a.3w(el);k.6n.aH(el,0);k.6n.7T(el)});k.6n.7T(el);el.1F.1R.1J(\'9z\',u(){k(el.1F.ax,q).K(0).14.19=\'2B\'}).1J(\'8B\',u(){k(el.1F.ax,q).K(0).14.19=\'1o\'});k(1h).1J(\'3D\',u(e){D 1s=k.1a.4a(e);D 5s=0;if(el.1F.51&&el.1F.51==\'cv\')D aI=1s.x-el.1F.1M.x-(el.4c-el.1F.2F*el.1F.1R.1N())/2-el.1F.2F/2;P if(el.1F.51&&el.1F.51==\'2L\')D aI=1s.x-el.1F.1M.x-el.4c+el.1F.2F*el.1F.1R.1N();P D aI=1s.x-el.1F.1M.x;D fP=18.6b(1s.y-el.1F.1M.y-el.5W/2,2);el.1F.1R.1E(u(2N){45=18.ez(18.6b(aI-2N*el.1F.2F,2)+fP);45-=el.1F.2F/2;45=45<0?0:45;45=45>el.1F.7Y?el.1F.7Y:45;45=el.1F.7Y-45;bB=el.1F.6x*45/el.1F.7Y;q.14.Z=el.1F.2F+bB+\'U\';q.14.O=el.1F.2F*2N+5s+\'U\';5s+=bB});k.6n.aH(el,5s)})})},aH:u(el,5s){if(el.1F.51)if(el.1F.51==\'cv\')el.1F.1Z.K(0).14.O=(el.4c-el.1F.2F*el.1F.1R.1N())/2-5s/2+\'U\';P if(el.1F.51==\'O\')el.1F.1Z.K(0).14.O=-5s/el.1F.1R.1N()+\'U\';P if(el.1F.51==\'2L\')el.1F.1Z.K(0).14.O=(el.4c-el.1F.2F*el.1F.1R.1N())-5s/2+\'U\';el.1F.1Z.K(0).14.Z=el.1F.2F*el.1F.1R.1N()+5s+\'U\'},7T:u(el){el.1F.1R.1E(u(2N){q.14.Z=el.1F.2F+\'U\';q.14.O=el.1F.2F*2N+\'U\'})}};k.fn.hi=k.6n.2r;k.N={1c:S,8R:S,3A:S,2I:S,4y:S,cl:S,1d:S,2h:S,1R:S,5o:u(){k.N.8R.5o();if(k.N.3A){k.N.3A.2G()}},4w:u(){k.N.1R=S;k.N.2h=S;k.N.4y=k.N.1d.2y;if(k.N.1c.B(\'19\')==\'2B\'){if(k.N.1d.1f.fx){3m(k.N.1d.1f.fx.1u){1e\'c6\':k.N.1c.7a(k.N.1d.1f.fx.1m,k.N.5o);1r;1e\'1z\':k.N.1c.fq(k.N.1d.1f.fx.1m,k.N.5o);1r;1e\'a7\':k.N.1c.g3(k.N.1d.1f.fx.1m,k.N.5o);1r}}P{k.N.1c.2G()}if(k.N.1d.1f.3i)k.N.1d.1f.3i.1D(k.N.1d,[k.N.1c,k.N.3A])}P{k.N.5o()}1X.bH(k.N.2I)},dQ:u(){D 1d=k.N.1d;D 4d=k.N.aY(1d);if(1d&&4d.3o!=k.N.4y&&4d.3o.1g>=1d.1f.aL){k.N.4y=4d.3o;k.N.cl=4d.3o;81={2n:k(1d).1p(\'hj\')||\'2n\',2y:4d.3o};k.hl({1u:\'hk\',81:k.hf(81),he:u(fZ){1d.1f.4e=k(\'3o\',fZ);1N=1d.1f.4e.1N();if(1N>0){D 5p=\'\';1d.1f.4e.1E(u(2N){5p+=\'<8P 4I="\'+k(\'2y\',q).3g()+\'" 8K="\'+2N+\'" 14="9b: ad;">\'+k(\'3g\',q).3g()+\'</8P>\'});if(1d.1f.aU){D 3M=k(\'2y\',1d.1f.4e.K(0)).3g();1d.2y=4d.3j+3M+1d.1f.3N+4d.66;k.N.6J(1d,4d.3o.1g!=3M.1g?(4d.3j.1g+4d.3o.1g):3M.1g,4d.3o.1g!=3M.1g?(4d.3j.1g+3M.1g):3M.1g)}if(1N>0){k.N.cj(1d,5p)}P{k.N.4w()}}P{k.N.4w()}},5N:1d.1f.aN})}},cj:u(1d,5p){k.N.8R.3x(5p);k.N.1R=k(\'8P\',k.N.8R.K(0));k.N.1R.9z(k.N.di).1J(\'5h\',k.N.dj);D Y=k.1a.3w(1d);D 1N=k.1a.2o(1d);k.N.1c.B(\'Q\',Y.y+1N.hb+\'U\').B(\'O\',Y.x+\'U\').2R(1d.1f.aM);if(k.N.3A){k.N.3A.B(\'19\',\'2B\').B(\'Q\',Y.y+1N.hb+\'U\').B(\'O\',Y.x+\'U\').B(\'Z\',k.N.1c.B(\'Z\')).B(\'W\',k.N.1c.B(\'W\'))}k.N.2h=0;k.N.1R.K(0).3l=1d.1f.7H;k.N.8Q(1d,1d.1f.4e.K(0),\'7J\');if(k.N.1c.B(\'19\')==\'1o\'){if(1d.1f.bV){D cp=k.1a.aT(1d,1b);D cm=k.1a.6U(1d,1b);k.N.1c.B(\'Z\',1d.4c-(k.dF?(cp.l+cp.r+cm.l+cm.r):0)+\'U\')}if(1d.1f.fx){3m(1d.1f.fx.1u){1e\'c6\':k.N.1c.7f(1d.1f.fx.1m);1r;1e\'1z\':k.N.1c.fo(1d.1f.fx.1m);1r;1e\'a7\':k.N.1c.gb(1d.1f.fx.1m);1r}}P{k.N.1c.1Y()}if(k.N.1d.1f.2Y)k.N.1d.1f.2Y.1D(k.N.1d,[k.N.1c,k.N.3A])}},dO:u(){D 1d=q;if(1d.1f.4e){k.N.4y=1d.2y;k.N.cl=1d.2y;D 5p=\'\';1d.1f.4e.1E(u(2N){2y=k(\'2y\',q).3g().6c();fY=1d.2y.6c();if(2y.3J(fY)==0){5p+=\'<8P 4I="\'+k(\'2y\',q).3g()+\'" 8K="\'+2N+\'" 14="9b: ad;">\'+k(\'3g\',q).3g()+\'</8P>\'}});if(5p!=\'\'){k.N.cj(1d,5p);q.1f.9x=1b;E}}1d.1f.4e=S;q.1f.9x=I},6J:u(2n,26,2T){if(2n.b1){D 6t=2n.b1();6t.hp(1b);6t.dI("ck",26);6t.ha("ck",-2T+26);6t.8C()}P if(2n.aF){2n.aF(26,2T)}P{if(2n.5q){2n.5q=26;2n.dN=2T}}2n.6K()},f0:u(2n){if(2n.5q)E 2n.5q;P if(2n.b1){D 6t=1h.6J.dZ();D eX=6t.h9();E 0-eX.dI(\'ck\',-h6)}},aY:u(2n){D 4P={2y:2n.2y,3j:\'\',66:\'\',3o:\'\'};if(2n.1f.aQ){D 8N=I;D 5q=k.N.f0(2n)||0;D 4T=4P.2y.7C(2n.1f.3N);24(D i=0;i<4T.1g;i++){if((4P.3j.1g+4T[i].1g>=5q||5q==0)&&!8N){if(4P.3j.1g<=5q)4P.3o=4T[i];P 4P.66+=4T[i]+(4T[i]!=\'\'?2n.1f.3N:\'\');8N=1b}P if(8N){4P.66+=4T[i]+(4T[i]!=\'\'?2n.1f.3N:\'\')}if(!8N){4P.3j+=4T[i]+(4T.1g>1?2n.1f.3N:\'\')}}}P{4P.3o=4P.2y}E 4P},bU:u(e){1X.bH(k.N.2I);D 1d=k.N.aY(q);D 3K=e.7L||e.7K||-1;if(/13|27|35|36|38|40|9/.48(3K)&&k.N.1R){if(1X.2k){1X.2k.bT=1b;1X.2k.c0=I}P{e.aP();e.aW()}if(k.N.2h!=S)k.N.1R.K(k.N.2h||0).3l=\'\';P k.N.2h=-1;3m(3K){1e 9:1e 13:if(k.N.2h==-1)k.N.2h=0;D 2h=k.N.1R.K(k.N.2h||0);D 3M=2h.5C(\'4I\');q.2y=1d.3j+3M+q.1f.3N+1d.66;k.N.4y=1d.3o;k.N.6J(q,1d.3j.1g+3M.1g+q.1f.3N.1g,1d.3j.1g+3M.1g+q.1f.3N.1g);k.N.4w();if(q.1f.68){4u=T(2h.5C(\'8K\'))||0;k.N.8Q(q,q.1f.4e.K(4u),\'68\')}if(q.7W)q.7W(I);E 3K!=13;1r;1e 27:q.2y=1d.3j+k.N.4y+q.1f.3N+1d.66;q.1f.4e=S;k.N.4w();if(q.7W)q.7W(I);E I;1r;1e 35:k.N.2h=k.N.1R.1N()-1;1r;1e 36:k.N.2h=0;1r;1e 38:k.N.2h--;if(k.N.2h<0)k.N.2h=k.N.1R.1N()-1;1r;1e 40:k.N.2h++;if(k.N.2h==k.N.1R.1N())k.N.2h=0;1r}k.N.8Q(q,q.1f.4e.K(k.N.2h||0),\'7J\');k.N.1R.K(k.N.2h||0).3l=q.1f.7H;if(k.N.1R.K(k.N.2h||0).7W)k.N.1R.K(k.N.2h||0).7W(I);if(q.1f.aU){D aK=k.N.1R.K(k.N.2h||0).5C(\'4I\');q.2y=1d.3j+aK+q.1f.3N+1d.66;if(k.N.4y.1g!=aK.1g)k.N.6J(q,1d.3j.1g+k.N.4y.1g,1d.3j.1g+aK.1g)}E I}k.N.dO.1D(q);if(q.1f.9x==I){if(1d.3o!=k.N.4y&&1d.3o.1g>=q.1f.aL)k.N.2I=1X.9T(k.N.dQ,q.1f.54);if(k.N.1R){k.N.4w()}}E 1b},8Q:u(2n,3o,1u){if(2n.1f[1u]){D 81={};ar=3o.f3(\'*\');24(i=0;i<ar.1g;i++){81[ar[i].4Y]=ar[i].7c.h4}2n.1f[1u].1D(2n,[81])}},di:u(e){if(k.N.1R){if(k.N.2h!=S)k.N.1R.K(k.N.2h||0).3l=\'\';k.N.1R.K(k.N.2h||0).3l=\'\';k.N.2h=T(q.5C(\'8K\'))||0;k.N.1R.K(k.N.2h||0).3l=k.N.1d.1f.7H}},dj:u(2k){1X.bH(k.N.2I);2k=2k||k.2k.gS(1X.2k);2k.aP();2k.aW();D 1d=k.N.aY(k.N.1d);D 3M=q.5C(\'4I\');k.N.1d.2y=1d.3j+3M+k.N.1d.1f.3N+1d.66;k.N.4y=q.5C(\'4I\');k.N.6J(k.N.1d,1d.3j.1g+3M.1g+k.N.1d.1f.3N.1g,1d.3j.1g+3M.1g+k.N.1d.1f.3N.1g);k.N.4w();if(k.N.1d.1f.68){4u=T(q.5C(\'8K\'))||0;k.N.8Q(k.N.1d,k.N.1d.1f.4e.K(4u),\'68\')}E I},eJ:u(e){3K=e.7L||e.7K||-1;if(/13|27|35|36|38|40/.48(3K)&&k.N.1R){if(1X.2k){1X.2k.bT=1b;1X.2k.c0=I}P{e.aP();e.aW()}E I}},2r:u(M){if(!M.aN||!k.1a){E}if(!k.N.1c){if(k.3a.4t){k(\'2e\',1h).1S(\'<3A 14="19:1o;Y:1P;5E:9n:9w.9y.cC(1G=0);" id="ds" 2J="ek:I;" ej="0" ep="cD"></3A>\');k.N.3A=k(\'#ds\')}k(\'2e\',1h).1S(\'<22 id="dr" 14="Y: 1P; Q: 0; O: 0; z-cZ: h3; 19: 1o;"><9h 14="6w: 0;8F: 0; h1-14: 1o; z-cZ: h0;">&7k;</9h></22>\');k.N.1c=k(\'#dr\');k.N.8R=k(\'9h\',k.N.1c)}E q.1E(u(){if(q.4Y!=\'ch\'&&q.5C(\'1u\')!=\'3g\')E;q.1f={};q.1f.aN=M.aN;q.1f.aL=18.3S(T(M.aL)||1);q.1f.aM=M.aM?M.aM:\'\';q.1f.7H=M.7H?M.7H:\'\';q.1f.68=M.68&&M.68.1K==2A?M.68:S;q.1f.2Y=M.2Y&&M.2Y.1K==2A?M.2Y:S;q.1f.3i=M.3i&&M.3i.1K==2A?M.3i:S;q.1f.7J=M.7J&&M.7J.1K==2A?M.7J:S;q.1f.bV=M.bV||I;q.1f.aQ=M.aQ||I;q.1f.3N=q.1f.aQ?(M.3N||\', \'):\'\';q.1f.aU=M.aU?1b:I;q.1f.54=18.3S(T(M.54)||aC);if(M.fx&&M.fx.1K==7M){if(!M.fx.1u||!/c6|1z|a7/.48(M.fx.1u)){M.fx.1u=\'1z\'}if(M.fx.1u==\'1z\'&&!k.fx.1z)E;if(M.fx.1u==\'a7\'&&!k.fx.61)E;M.fx.1m=18.3S(T(M.fx.1m)||8J);if(M.fx.1m>q.1f.54){M.fx.1m=q.1f.54-2a}q.1f.fx=M.fx}q.1f.4e=S;q.1f.9x=I;k(q).1p(\'bU\',\'eN\').6K(u(){k.N.1d=q;k.N.4y=q.2y}).dH(k.N.eJ).6y(k.N.bU).5B(u(){k.N.2I=1X.9T(k.N.4w,hM)})})}};k.fn.hR=k.N.2r;k.1y={2I:S,4Q:S,29:S,2D:10,26:u(el,4J,2D,eG){k.1y.4Q=el;k.1y.29=4J;k.1y.2D=T(2D)||10;k.1y.2I=1X.6V(k.1y.eF,T(eG)||40)},eF:u(){24(i=0;i<k.1y.29.1g;i++){if(!k.1y.29[i].2X){k.1y.29[i].2X=k.23(k.1a.7G(k.1y.29[i]),k.1a.74(k.1y.29[i]),k.1a.6z(k.1y.29[i]))}P{k.1y.29[i].2X.t=k.1y.29[i].3d;k.1y.29[i].2X.l=k.1y.29[i].3c}if(k.1y.4Q.A&&k.1y.4Q.A.7q==1b){69={x:k.1y.4Q.A.2v,y:k.1y.4Q.A.2q,1C:k.1y.4Q.A.1B.1C,hb:k.1y.4Q.A.1B.hb}}P{69=k.23(k.1a.7G(k.1y.4Q),k.1a.74(k.1y.4Q))}if(k.1y.29[i].2X.t>0&&k.1y.29[i].2X.y+k.1y.29[i].2X.t>69.y){k.1y.29[i].3d-=k.1y.2D}P if(k.1y.29[i].2X.t<=k.1y.29[i].2X.h&&k.1y.29[i].2X.t+k.1y.29[i].2X.hb<69.y+69.hb){k.1y.29[i].3d+=k.1y.2D}if(k.1y.29[i].2X.l>0&&k.1y.29[i].2X.x+k.1y.29[i].2X.l>69.x){k.1y.29[i].3c-=k.1y.2D}P if(k.1y.29[i].2X.l<=k.1y.29[i].2X.hP&&k.1y.29[i].2X.l+k.1y.29[i].2X.1C<69.x+69.1C){k.1y.29[i].3c+=k.1y.2D}}},8o:u(){1X.5T(k.1y.2I);k.1y.4Q=S;k.1y.29=S;24(i in k.1y.29){k.1y.29[i].2X=S}}};k.11={1c:S,F:S,4U:u(){E q.1E(u(){if(q.9I){q.A.5e.3q(\'5v\',k.11.bN);q.A=S;q.9I=I;if(k.3a.4t){q.bE="eN"}P{q.14.hq=\'\';q.14.e1=\'\';q.14.e7=\'\'}}})},bN:u(e){if(k.11.F!=S){k.11.9A(e);E I}D C=q.3U;k(1h).1J(\'3D\',k.11.bX).1J(\'5P\',k.11.9A);C.A.1s=k.1a.4a(e);C.A.4B=C.A.1s;C.A.7q=I;C.A.ho=q!=q.3U;k.11.F=C;if(C.A.5i&&q!=q.3U){bS=k.1a.3w(C.31);bQ=k.1a.2o(C);bR={x:T(k.B(C,\'O\'))||0,y:T(k.B(C,\'Q\'))||0};dx=C.A.4B.x-bS.x-bQ.1C/2-bR.x;dy=C.A.4B.y-bS.y-bQ.hb/2-bR.y;k.3b.5c(C,[dx,dy])}E k.7n||I},ea:u(e){D C=k.11.F;C.A.7q=1b;D 9G=C.14;C.A.7V=k.B(C,\'19\');C.A.4n=k.B(C,\'Y\');if(!C.A.cz)C.A.cz=C.A.4n;C.A.2c={x:T(k.B(C,\'O\'))||0,y:T(k.B(C,\'Q\'))||0};C.A.9B=0;C.A.ai=0;if(k.3a.4t){D bW=k.1a.6U(C,1b);C.A.9B=bW.l||0;C.A.ai=bW.t||0}C.A.1B=k.23(k.1a.3w(C),k.1a.2o(C));if(C.A.4n!=\'2s\'&&C.A.4n!=\'1P\'){9G.Y=\'2s\'}k.11.1c.5o();D 5g=C.fI(1b);k(5g).B({19:\'2B\',O:\'2P\',Q:\'2P\'});5g.14.5K=\'0\';5g.14.5z=\'0\';5g.14.5k=\'0\';5g.14.5j=\'0\';k.11.1c.1S(5g);D 3Y=k.11.1c.K(0).14;if(C.A.bD){3Y.Z=\'9F\';3Y.W=\'9F\'}P{3Y.W=C.A.1B.hb+\'U\';3Y.Z=C.A.1B.1C+\'U\'}3Y.19=\'2B\';3Y.5K=\'2P\';3Y.5z=\'2P\';3Y.5k=\'2P\';3Y.5j=\'2P\';k.23(C.A.1B,k.1a.2o(5g));if(C.A.2V){if(C.A.2V.O){C.A.2c.x+=C.A.1s.x-C.A.1B.x-C.A.2V.O;C.A.1B.x=C.A.1s.x-C.A.2V.O}if(C.A.2V.Q){C.A.2c.y+=C.A.1s.y-C.A.1B.y-C.A.2V.Q;C.A.1B.y=C.A.1s.y-C.A.2V.Q}if(C.A.2V.2L){C.A.2c.x+=C.A.1s.x-C.A.1B.x-C.A.1B.hb+C.A.2V.2L;C.A.1B.x=C.A.1s.x-C.A.1B.1C+C.A.2V.2L}if(C.A.2V.4D){C.A.2c.y+=C.A.1s.y-C.A.1B.y-C.A.1B.hb+C.A.2V.4D;C.A.1B.y=C.A.1s.y-C.A.1B.hb+C.A.2V.4D}}C.A.2v=C.A.2c.x;C.A.2q=C.A.2c.y;if(C.A.8s||C.A.2p==\'94\'){8U=k.1a.6U(C.31,1b);C.A.1B.x=C.8t+(k.3a.4t?0:k.3a.7I?-8U.l:8U.l);C.A.1B.y=C.8G+(k.3a.4t?0:k.3a.7I?-8U.t:8U.t);k(C.31).1S(k.11.1c.K(0))}if(C.A.2p){k.11.c5(C);C.A.5t.2p=k.11.ce}if(C.A.5i){k.3b.ct(C)}3Y.O=C.A.1B.x-C.A.9B+\'U\';3Y.Q=C.A.1B.y-C.A.ai+\'U\';3Y.Z=C.A.1B.1C+\'U\';3Y.W=C.A.1B.hb+\'U\';k.11.F.A.9E=I;if(C.A.gx){C.A.5t.6a=k.11.c7}if(C.A.3I!=I){k.11.1c.B(\'3I\',C.A.3I)}if(C.A.1G){k.11.1c.B(\'1G\',C.A.1G);if(1X.71){k.11.1c.B(\'5E\',\'8V(1G=\'+C.A.1G*2a+\')\')}}if(C.A.7O){k.11.1c.2R(C.A.7O);k.11.1c.K(0).7c.14.19=\'1o\'}if(C.A.4o)C.A.4o.1D(C,[5g,C.A.2c.x,C.A.2c.y]);if(k.1x&&k.1x.8D>0){k.1x.ed(C)}if(C.A.46==I){9G.19=\'1o\'}E I},c5:u(C){if(C.A.2p.1K==b0){if(C.A.2p==\'94\'){C.A.28=k.23({x:0,y:0},k.1a.2o(C.31));D 8S=k.1a.6U(C.31,1b);C.A.28.w=C.A.28.1C-8S.l-8S.r;C.A.28.h=C.A.28.hb-8S.t-8S.b}P if(C.A.2p==\'1h\'){D bY=k.1a.bm();C.A.28={x:0,y:0,w:bY.w,h:bY.h}}}P if(C.A.2p.1K==7F){C.A.28={x:T(C.A.2p[0])||0,y:T(C.A.2p[1])||0,w:T(C.A.2p[2])||0,h:T(C.A.2p[3])||0}}C.A.28.dx=C.A.28.x-C.A.1B.x;C.A.28.dy=C.A.28.y-C.A.1B.y},9H:u(F){if(F.A.8s||F.A.2p==\'94\'){k(\'2e\',1h).1S(k.11.1c.K(0))}k.11.1c.5o().2G().B(\'1G\',1);if(1X.71){k.11.1c.B(\'5E\',\'8V(1G=2a)\')}},9A:u(e){k(1h).3q(\'3D\',k.11.bX).3q(\'5P\',k.11.9A);if(k.11.F==S){E}D F=k.11.F;k.11.F=S;if(F.A.7q==I){E I}if(F.A.44==1b){k(F).B(\'Y\',F.A.4n)}D 9G=F.14;if(F.5i){k.11.1c.B(\'9b\',\'8j\')}if(F.A.7O){k.11.1c.4i(F.A.7O)}if(F.A.6N==I){if(F.A.fx>0){if(!F.A.1O||F.A.1O==\'4j\'){D x=12 k.fx(F,{1m:F.A.fx},\'O\');x.1L(F.A.2c.x,F.A.8y)}if(!F.A.1O||F.A.1O==\'49\'){D y=12 k.fx(F,{1m:F.A.fx},\'Q\');y.1L(F.A.2c.y,F.A.8v)}}P{if(!F.A.1O||F.A.1O==\'4j\')F.14.O=F.A.8y+\'U\';if(!F.A.1O||F.A.1O==\'49\')F.14.Q=F.A.8v+\'U\'}k.11.9H(F);if(F.A.46==I){k(F).B(\'19\',F.A.7V)}}P if(F.A.fx>0){F.A.9E=1b;D dh=I;if(k.1x&&k.1t&&F.A.44){dh=k.1a.3w(k.1t.1c.K(0))}k.11.1c.5w({O:dh?dh.x:F.A.1B.x,Q:dh?dh.y:F.A.1B.y},F.A.fx,u(){F.A.9E=I;if(F.A.46==I){F.14.19=F.A.7V}k.11.9H(F)})}P{k.11.9H(F);if(F.A.46==I){k(F).B(\'19\',F.A.7V)}}if(k.1x&&k.1x.8D>0){k.1x.eO(F)}if(k.1t&&F.A.44){k.1t.fC(F)}if(F.A.2Z&&(F.A.8y!=F.A.2c.x||F.A.8v!=F.A.2c.y)){F.A.2Z.1D(F,F.A.b3||[0,0,F.A.8y,F.A.8v])}if(F.A.3T)F.A.3T.1D(F);E I},c7:u(x,y,dx,dy){if(dx!=0)dx=T((dx+(q.A.gx*dx/18.3S(dx))/2)/q.A.gx)*q.A.gx;if(dy!=0)dy=T((dy+(q.A.gy*dy/18.3S(dy))/2)/q.A.gy)*q.A.gy;E{dx:dx,dy:dy,x:0,y:0}},ce:u(x,y,dx,dy){dx=18.3L(18.3r(dx,q.A.28.dx),q.A.28.w+q.A.28.dx-q.A.1B.1C);dy=18.3L(18.3r(dy,q.A.28.dy),q.A.28.h+q.A.28.dy-q.A.1B.hb);E{dx:dx,dy:dy,x:0,y:0}},bX:u(e){if(k.11.F==S||k.11.F.A.9E==1b){E}D F=k.11.F;F.A.4B=k.1a.4a(e);if(F.A.7q==I){45=18.ez(18.6b(F.A.1s.x-F.A.4B.x,2)+18.6b(F.A.1s.y-F.A.4B.y,2));if(45<F.A.6M){E}P{k.11.ea(e)}}D dx=F.A.4B.x-F.A.1s.x;D dy=F.A.4B.y-F.A.1s.y;24(D i in F.A.5t){D 3y=F.A.5t[i].1D(F,[F.A.2c.x+dx,F.A.2c.y+dy,dx,dy]);if(3y&&3y.1K==7M){dx=i!=\'7R\'?3y.dx:(3y.x-F.A.2c.x);dy=i!=\'7R\'?3y.dy:(3y.y-F.A.2c.y)}}F.A.2v=F.A.1B.x+dx-F.A.9B;F.A.2q=F.A.1B.y+dy-F.A.ai;if(F.A.5i&&(F.A.3H||F.A.2Z)){k.3b.3H(F,F.A.2v,F.A.2q)}if(F.A.4m)F.A.4m.1D(F,[F.A.2c.x+dx,F.A.2c.y+dy]);if(!F.A.1O||F.A.1O==\'4j\'){F.A.8y=F.A.2c.x+dx;k.11.1c.K(0).14.O=F.A.2v+\'U\'}if(!F.A.1O||F.A.1O==\'49\'){F.A.8v=F.A.2c.y+dy;k.11.1c.K(0).14.Q=F.A.2q+\'U\'}if(k.1x&&k.1x.8D>0){k.1x.al(F)}E I},2r:u(o){if(!k.11.1c){k(\'2e\',1h).1S(\'<22 id="e8"></22>\');k.11.1c=k(\'#e8\');D el=k.11.1c.K(0);D 4J=el.14;4J.Y=\'1P\';4J.19=\'1o\';4J.9b=\'8j\';4J.eu=\'1o\';4J.2U=\'2K\';if(1X.71){el.bE="e4"}P{4J.gi=\'1o\';4J.e7=\'1o\';4J.e1=\'1o\'}}if(!o){o={}}E q.1E(u(){if(q.9I||!k.1a)E;if(1X.71){q.gh=u(){E I};q.gj=u(){E I}}D el=q;D 5e=o.3v?k(q).gf(o.3v):k(q);if(k.3a.4t){5e.1E(u(){q.bE="e4"})}P{5e.B(\'-gI-7R-8C\',\'1o\');5e.B(\'7R-8C\',\'1o\');5e.B(\'-gH-7R-8C\',\'1o\')}q.A={5e:5e,6N:o.6N?1b:I,46:o.46?1b:I,44:o.44?o.44:I,5i:o.5i?o.5i:I,8s:o.8s?o.8s:I,3I:o.3I?T(o.3I)||0:I,1G:o.1G?2m(o.1G):I,fx:T(o.fx)||S,6R:o.6R?o.6R:I,5t:{},1s:{},4o:o.4o&&o.4o.1K==2A?o.4o:I,3T:o.3T&&o.3T.1K==2A?o.3T:I,2Z:o.2Z&&o.2Z.1K==2A?o.2Z:I,1O:/49|4j/.48(o.1O)?o.1O:I,6M:o.6M?T(o.6M)||0:0,2V:o.2V?o.2V:I,bD:o.bD?1b:I,7O:o.7O||I};if(o.5t&&o.5t.1K==2A)q.A.5t.7R=o.5t;if(o.4m&&o.4m.1K==2A)q.A.4m=o.4m;if(o.2p&&((o.2p.1K==b0&&(o.2p==\'94\'||o.2p==\'1h\'))||(o.2p.1K==7F&&o.2p.1g==4))){q.A.2p=o.2p}if(o.2O){q.A.2O=o.2O}if(o.6a){if(2g o.6a==\'gz\'){q.A.gx=T(o.6a)||1;q.A.gy=T(o.6a)||1}P if(o.6a.1g==2){q.A.gx=T(o.6a[0])||1;q.A.gy=T(o.6a[1])||1}}if(o.3H&&o.3H.1K==2A){q.A.3H=o.3H}q.9I=1b;5e.1E(u(){q.3U=el});5e.1J(\'5v\',k.11.bN)})}};k.fn.23({aS:k.11.4U,7t:k.11.2r});k.1x={du:u(5J,5G,7Q,7S){E 5J<=k.11.F.A.2v&&(5J+7Q)>=(k.11.F.A.2v+k.11.F.A.1B.w)&&5G<=k.11.F.A.2q&&(5G+7S)>=(k.11.F.A.2q+k.11.F.A.1B.h)?1b:I},cV:u(5J,5G,7Q,7S){E!(5J>(k.11.F.A.2v+k.11.F.A.1B.w)||(5J+7Q)<k.11.F.A.2v||5G>(k.11.F.A.2q+k.11.F.A.1B.h)||(5G+7S)<k.11.F.A.2q)?1b:I},1s:u(5J,5G,7Q,7S){E 5J<k.11.F.A.4B.x&&(5J+7Q)>k.11.F.A.4B.x&&5G<k.11.F.A.4B.y&&(5G+7S)>k.11.F.A.4B.y?1b:I},5r:I,3Q:{},8D:0,3P:{},ed:u(C){if(k.11.F==S){E}D i;k.1x.3Q={};D bJ=I;24(i in k.1x.3P){if(k.1x.3P[i]!=S){D 1j=k.1x.3P[i].K(0);if(k(k.11.F).is(\'.\'+1j.1i.a)){if(1j.1i.m==I){1j.1i.p=k.23(k.1a.7G(1j),k.1a.74(1j));1j.1i.m=1b}if(1j.1i.ac){k.1x.3P[i].2R(1j.1i.ac)}k.1x.3Q[i]=k.1x.3P[i];if(k.1t&&1j.1i.s&&k.11.F.A.44){1j.1i.el=k(\'.\'+1j.1i.a,1j);C.14.19=\'1o\';k.1t.cT(1j);1j.1i.ay=k.1t.8x(k.1p(1j,\'id\')).7l;C.14.19=C.A.7V;bJ=1b}if(1j.1i.9i){1j.1i.9i.1D(k.1x.3P[i].K(0),[k.11.F])}}}}if(bJ){k.1t.26()}},dS:u(){k.1x.3Q={};24(i in k.1x.3P){if(k.1x.3P[i]!=S){D 1j=k.1x.3P[i].K(0);if(k(k.11.F).is(\'.\'+1j.1i.a)){1j.1i.p=k.23(k.1a.7G(1j),k.1a.74(1j));if(1j.1i.ac){k.1x.3P[i].2R(1j.1i.ac)}k.1x.3Q[i]=k.1x.3P[i];if(k.1t&&1j.1i.s&&k.11.F.A.44){1j.1i.el=k(\'.\'+1j.1i.a,1j);C.14.19=\'1o\';k.1t.cT(1j);C.14.19=C.A.7V}}}}},al:u(e){if(k.11.F==S){E}k.1x.5r=I;D i;D bK=I;D eQ=0;24(i in k.1x.3Q){D 1j=k.1x.3Q[i].K(0);if(k.1x.5r==I&&k.1x[1j.1i.t](1j.1i.p.x,1j.1i.p.y,1j.1i.p.1C,1j.1i.p.hb)){if(1j.1i.hc&&1j.1i.h==I){k.1x.3Q[i].2R(1j.1i.hc)}if(1j.1i.h==I&&1j.1i.7x){bK=1b}1j.1i.h=1b;k.1x.5r=1j;if(k.1t&&1j.1i.s&&k.11.F.A.44){k.1t.1c.K(0).3l=1j.1i.eV;k.1t.al(1j)}eQ++}P if(1j.1i.h==1b){if(1j.1i.7y){1j.1i.7y.1D(1j,[e,k.11.1c.K(0).7c,1j.1i.fx])}if(1j.1i.hc){k.1x.3Q[i].4i(1j.1i.hc)}1j.1i.h=I}}if(k.1t&&!k.1x.5r&&k.11.F.44){k.1t.1c.K(0).14.19=\'1o\'}if(bK){k.1x.5r.1i.7x.1D(k.1x.5r,[e,k.11.1c.K(0).7c])}},eO:u(e){D i;24(i in k.1x.3Q){D 1j=k.1x.3Q[i].K(0);if(1j.1i.ac){k.1x.3Q[i].4i(1j.1i.ac)}if(1j.1i.hc){k.1x.3Q[i].4i(1j.1i.hc)}if(1j.1i.s){k.1t.7s[k.1t.7s.1g]=i}if(1j.1i.9l&&1j.1i.h==1b){1j.1i.h=I;1j.1i.9l.1D(1j,[e,1j.1i.fx])}1j.1i.m=I;1j.1i.h=I}k.1x.3Q={}},4U:u(){E q.1E(u(){if(q.9j){if(q.1i.s){id=k.1p(q,\'id\');k.1t.5L[id]=S;k(\'.\'+q.1i.a,q).aS()}k.1x.3P[\'d\'+q.c2]=S;q.9j=I;q.f=S}})},2r:u(o){E q.1E(u(){if(q.9j==1b||!o.3C||!k.1a||!k.11){E}q.1i={a:o.3C,ac:o.9J||I,hc:o.a5||I,eV:o.58||I,9l:o.gq||o.9l||I,7x:o.7x||o.dC||I,7y:o.7y||o.fO||I,9i:o.9i||I,t:o.6I&&(o.6I==\'du\'||o.6I==\'cV\')?o.6I:\'1s\',fx:o.fx?o.fx:I,m:I,h:I};if(o.cQ==1b&&k.1t){id=k.1p(q,\'id\');k.1t.5L[id]=q.1i.a;q.1i.s=1b;if(o.2Z){q.1i.2Z=o.2Z;q.1i.ay=k.1t.8x(id).7l}}q.9j=1b;q.c2=T(18.6o()*c9);k.1x.3P[\'d\'+q.c2]=k(q);k.1x.8D++})}};k.fn.23({dR:k.1x.4U,do:k.1x.2r});k.gD=k.1x.dS;k.3B={1c:S,8L:u(){3g=q.2y;if(!3g)E;14={dz:k(q).B(\'dz\')||\'\',4A:k(q).B(\'4A\')||\'\',8Z:k(q).B(\'8Z\')||\'\',dP:k(q).B(\'dP\')||\'\',dT:k(q).B(\'dT\')||\'\',dU:k(q).B(\'dU\')||\'\',c3:k(q).B(\'c3\')||\'\',dY:k(q).B(\'dY\')||\'\'};k.3B.1c.B(14);3x=k.3B.dX(3g);3x=3x.4E(12 bb("\\\\n","g"),"<br />");k.3B.1c.3x(\'gL\');ci=k.3B.1c.K(0).4c;k.3B.1c.3x(3x);Z=k.3B.1c.K(0).4c+ci;if(q.6l.2M&&Z>q.6l.2M[0]){Z=q.6l.2M[0]}q.14.Z=Z+\'U\';if(q.4Y==\'cf\'){W=k.3B.1c.K(0).5W+ci;if(q.6l.2M&&W>q.6l.2M[1]){W=q.6l.2M[1]}q.14.W=W+\'U\'}},dX:u(3g){cg={\'&\':\'&gK;\',\'<\':\'&gJ;\',\'>\':\'&gt;\',\'"\':\'&gs;\'};24(i in cg){3g=3g.4E(12 bb(i,\'g\'),cg[i])}E 3g},2r:u(2M){if(k.3B.1c==S){k(\'2e\',1h).1S(\'<22 id="dE" 14="Y: 1P; Q: 0; O: 0; 3n: 2K;"></22>\');k.3B.1c=k(\'#dE\')}E q.1E(u(){if(/cf|ch/.48(q.4Y)){if(q.4Y==\'ch\'){dB=q.5C(\'1u\');if(!/3g|gr/.48(dB)){E}}if(2M&&(2M.1K==bn||(2M.1K==7F&&2M.1g==2))){if(2M.1K==bn)2M=[2M,2M];P{2M[0]=T(2M[0])||8J;2M[1]=T(2M[1])||8J}q.6l={2M:2M}}k(q).5B(k.3B.8L).6y(k.3B.8L).dH(k.3B.8L);k.3B.8L.1D(q)}})}};k.fn.kc=k.3B.2r;k.4K=u(e){if(/^kd$|^ke$|^ka$|^6L$|^k9$|^k5$|^k4$|^k6$|^k7$|^2e$|^k8$|^kf$|^kg$|^kn$|^ko$|^kp$|^kq$/i.48(e.9N))E I;P E 1b};k.fx.a0=u(e,65){D c=e.7c;D cs=c.14;cs.Y=65.Y;cs.5K=65.3G.t;cs.5j=65.3G.l;cs.5k=65.3G.b;cs.5z=65.3G.r;cs.Q=65.Q+\'U\';cs.O=65.O+\'U\';e.31.ew(c,e);e.31.km(e)};k.fx.9P=u(e){if(!k.4K(e))E I;D t=k(e);D es=e.14;D 73=I;if(t.B(\'19\')==\'1o\'){5Y=t.B(\'3n\');t.B(\'3n\',\'2K\').1Y();73=1b}D V={};V.Y=t.B(\'Y\');V.1q=k.1a.2o(e);V.3G=k.1a.cy(e);D co=e.4Z?e.4Z.ei:t.B(\'hU\');V.Q=T(t.B(\'Q\'))||0;V.O=T(t.B(\'O\'))||0;D eo=\'kl\'+T(18.6o()*c9);D 6u=1h.3F(/^1T$|^br$|^kh$|^hr$|^8C$|^kj$|^8T$|^3A$|^kk$|^k3$|^k2$|^9h$|^dl$|^jM$/i.48(e.9N)?\'22\':e.9N);k.1p(6u,\'id\',eo);D jN=k(6u).2R(\'jO\');D 4h=6u.14;D Q=0;D O=0;if(V.Y==\'2s\'||V.Y==\'1P\'){Q=V.Q;O=V.O}4h.Q=Q+\'U\';4h.O=O+\'U\';4h.Y=V.Y!=\'2s\'&&V.Y!=\'1P\'?\'2s\':V.Y;4h.W=V.1q.hb+\'U\';4h.Z=V.1q.1C+\'U\';4h.5K=V.3G.t;4h.5z=V.3G.r;4h.5k=V.3G.b;4h.5j=V.3G.l;4h.2U=\'2K\';if(k.3a.4t){4h.ei=co}P{4h.jK=co}if(k.3a=="4t"){es.5E="8V(1G="+0.ex*2a+")"}es.1G=0.ex;e.31.ew(6u,e);6u.jF(e);es.5K=\'2P\';es.5z=\'2P\';es.5k=\'2P\';es.5j=\'2P\';es.Y=\'1P\';es.eu=\'1o\';es.Q=\'2P\';es.O=\'2P\';if(73){t.2G();es.3n=5Y}E{V:V,3p:k(6u)}};k.fx.8E={jE:[0,1V,1V],jG:[eD,1V,1V],jH:[e6,e6,jI],jP:[0,0,0],ks:[0,0,1V],jY:[dv,42,42],jZ:[0,1V,1V],k0:[0,0,7w],k1:[0,7w,7w],jX:[cn,cn,cn],jS:[0,2a,0],jR:[jT,jU,eb],jV:[7w,0,7w],kr:[85,eb,47],kP:[1V,eA,0],kN:[kO,50,kx],kF:[7w,0,0],kD:[ku,f8,kt],ky:[kH,0,9C],kL:[1V,0,1V],kM:[1V,kJ,0],kv:[0,6C,0],kA:[75,0,kE],kC:[eD,eB,eA],kG:[kI,kB,eB],kw:[e0,1V,1V],kz:[eL,kK,eL],kQ:[9C,9C,9C],jC:[1V,iy,iz],iA:[1V,1V,e0],iB:[0,1V,0],ix:[1V,0,1V],iv:[6C,0,0],iq:[0,0,6C],ip:[6C,6C,0],ir:[1V,dv,0],it:[1V,ah,iu],iC:[6C,0,6C],iD:[1V,0,0],iK:[ah,ah,ah],iL:[1V,1V,1V],iM:[1V,1V,0]};k.fx.6D=u(4x,dm){if(k.fx.8E[4x])E{r:k.fx.8E[4x][0],g:k.fx.8E[4x][1],b:k.fx.8E[4x][2]};P if(2W=/^6Y\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)$/.a4(4x))E{r:T(2W[1]),g:T(2W[2]),b:T(2W[3])};P if(2W=/6Y\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)$/.a4(4x))E{r:2m(2W[1])*2.55,g:2m(2W[2])*2.55,b:2m(2W[3])*2.55};P if(2W=/^#([a-fA-79-9])([a-fA-79-9])([a-fA-79-9])$/.a4(4x))E{r:T("77"+2W[1]+2W[1]),g:T("77"+2W[2]+2W[2]),b:T("77"+2W[3]+2W[3])};P if(2W=/^#([a-fA-79-9]{2})([a-fA-79-9]{2})([a-fA-79-9]{2})$/.a4(4x))E{r:T("77"+2W[1]),g:T("77"+2W[2]),b:T("77"+2W[3])};P E dm==1b?I:{r:1V,g:1V,b:1V}};k.fx.dD={5Q:1,5b:1,5O:1,4S:1,4D:1,4A:1,W:1,O:1,c3:1,iI:1,5k:1,5j:1,5z:1,5K:1,8b:1,6x:1,8c:1,av:1,1G:1,iE:1,iF:1,5n:1,4X:1,5U:1,5M:1,2L:1,jD:1,Q:1,Z:1,3I:1};k.fx.dA={7i:1,iG:1,iH:1,io:1,im:1,4x:1,i2:1};k.fx.8A=[\'i3\',\'i4\',\'i5\',\'i1\'];k.fx.cc={\'cd\':[\'2E\',\'dK\'],\'a8\':[\'2E\',\'bh\'],\'6w\':[\'6w\',\'\'],\'8F\':[\'8F\',\'\']};k.fn.23({5w:u(5X,H,G,J){E q.1w(u(){D a1=k.H(H,G,J);D e=12 k.dM(q,a1,5X)})},c4:u(H,J){E q.1w(u(){D a1=k.H(H,J);D e=12 k.c4(q,a1)})},8o:u(2D){E q.1E(u(){if(q.6d)k.by(q,2D)})},i0:u(2D){E q.1E(u(){if(q.6d)k.by(q,2D);if(q.1w&&q.1w[\'fx\'])q.1w.fx=[]})}});k.23({c4:u(2f,M){D z=q,3t;z.2D=u(){if(k.fQ(M.21))M.21.1D(2f)};z.2I=6V(u(){z.2D()},M.1m);2f.6d=z},G:{c8:u(p,n,1W,1H,1m){E((-18.5H(p*18.2Q)/2)+0.5)*1H+1W}},dM:u(2f,M,5X){D z=q,3t;D y=2f.14;D fR=k.B(2f,"2U");D 72=k.B(2f,"19");D 2j={};z.9O=(12 7g()).7z();M.G=M.G&&k.G[M.G]?M.G:\'c8\';z.ag=u(2w,43){if(k.fx.dD[2w]){if(43==\'1Y\'||43==\'2G\'||43==\'3R\'){if(!2f.6v)2f.6v={};D r=2m(k.6E(2f,2w));2f.6v[2w]=r&&r>-c9?r:(2m(k.B(2f,2w))||0);43=43==\'3R\'?(72==\'1o\'?\'1Y\':\'2G\'):43;M[43]=1b;2j[2w]=43==\'1Y\'?[0,2f.6v[2w]]:[2f.6v[2w],0];if(2w!=\'1G\')y[2w]=2j[2w][0]+(2w!=\'3I\'&&2w!=\'8Z\'?\'U\':\'\');P k.1p(y,"1G",2j[2w][0])}P{2j[2w]=[2m(k.6E(2f,2w)),2m(43)||0]}}P if(k.fx.dA[2w])2j[2w]=[k.fx.6D(k.6E(2f,2w)),k.fx.6D(43)];P if(/^6w$|8F$|2E$|a8$|cd$/i.48(2w)){D m=43.4E(/\\s+/g,\' \').4E(/6Y\\s*\\(\\s*/g,\'6Y(\').4E(/\\s*,\\s*/g,\',\').4E(/\\s*\\)/g,\')\').d5(/([^\\s]+)/g);3m(2w){1e\'6w\':1e\'8F\':1e\'cd\':1e\'a8\':m[3]=m[3]||m[1]||m[0];m[2]=m[2]||m[0];m[1]=m[1]||m[0];24(D i=0;i<k.fx.8A.1g;i++){D 64=k.fx.cc[2w][0]+k.fx.8A[i]+k.fx.cc[2w][1];2j[64]=2w==\'a8\'?[k.fx.6D(k.6E(2f,64)),k.fx.6D(m[i])]:[2m(k.6E(2f,64)),2m(m[i])]}1r;1e\'2E\':24(D i=0;i<m.1g;i++){D bd=2m(m[i]);D a9=!hX(bd)?\'dK\':(!/cu|1o|2K|hY|hZ|i6|i7|ii|ij|ik|il/i.48(m[i])?\'bh\':I);if(a9){24(D j=0;j<k.fx.8A.1g;j++){64=\'2E\'+k.fx.8A[j]+a9;2j[64]=a9==\'bh\'?[k.fx.6D(k.6E(2f,64)),k.fx.6D(m[i])]:[2m(k.6E(2f,64)),bd]}}P{y[\'ie\']=m[i]}}1r}}P{y[2w]=43}E I};24(p in 5X){if(p==\'14\'){D 5f=k.bl(5X[p]);24(7A in 5f){q.ag(7A,5f[7A])}}P if(p==\'3l\'){if(1h.af)24(D i=0;i<1h.af.1g;i++){D 7e=1h.af[i].7e||1h.af[i].i9||S;if(7e){24(D j=0;j<7e.1g;j++){if(7e[j].i8==\'.\'+5X[p]){D 6X=12 bb(\'\\.\'+5X[p]+\' {\');D 5Z=7e[j].14.9X;D 5f=k.bl(5Z.4E(6X,\'\').4E(/}/g,\'\'));24(7A in 5f){q.ag(7A,5f[7A])}}}}}}P{q.ag(p,5X[p])}}y.19=72==\'1o\'?\'2B\':72;y.2U=\'2K\';z.2D=u(){D t=(12 7g()).7z();if(t>M.1m+z.9O){5T(z.2I);z.2I=S;24(p in 2j){if(p=="1G")k.1p(y,"1G",2j[p][1]);P if(2g 2j[p][1]==\'8T\')y[p]=\'6Y(\'+2j[p][1].r+\',\'+2j[p][1].g+\',\'+2j[p][1].b+\')\';P y[p]=2j[p][1]+(p!=\'3I\'&&p!=\'8Z\'?\'U\':\'\')}if(M.2G||M.1Y)24(D p in 2f.6v)if(p=="1G")k.1p(y,p,2f.6v[p]);P y[p]="";y.19=M.2G?\'1o\':(72!=\'1o\'?72:\'2B\');y.2U=fR;2f.6d=S;if(k.fQ(M.21))M.21.1D(2f)}P{D n=t-q.9O;D 8w=n/M.1m;24(p in 2j){if(2g 2j[p][1]==\'8T\'){y[p]=\'6Y(\'+T(k.G[M.G](8w,n,2j[p][0].r,(2j[p][1].r-2j[p][0].r),M.1m))+\',\'+T(k.G[M.G](8w,n,2j[p][0].g,(2j[p][1].g-2j[p][0].g),M.1m))+\',\'+T(k.G[M.G](8w,n,2j[p][0].b,(2j[p][1].b-2j[p][0].b),M.1m))+\')\'}P{D bz=k.G[M.G](8w,n,2j[p][0],(2j[p][1]-2j[p][0]),M.1m);if(p=="1G")k.1p(y,"1G",bz);P y[p]=bz+(p!=\'3I\'&&p!=\'8Z\'?\'U\':\'\')}}}};z.2I=6V(u(){z.2D()},13);2f.6d=z},by:u(2f,2D){if(2D)2f.6d.9O-=iO;P{1X.5T(2f.6d.2I);2f.6d=S;k.2H(2f,"fx")}}});k.bl=u(5Z){D 5f={};if(2g 5Z==\'4V\'){5Z=5Z.6c().7C(\';\');24(D i=0;i<5Z.1g;i++){6X=5Z[i].7C(\':\');if(6X.1g==2){5f[k.g6(6X[0].4E(/\\-(\\w)/g,u(m,c){E c.jo()}))]=k.g6(6X[1])}}}E 5f};k.fn.23({g3:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'4F\',G)})},gb:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'4r\',G)})},jl:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'fJ\',G)})},jk:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'O\',G)})},jg:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'2L\',G)})},jf:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.61(q,H,J,\'fh\',G)})}});k.fx.61=u(e,H,J,2S,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;z.el=k(e);z.1N=k.1a.2o(e);z.G=2g J==\'4V\'?J:G||S;if(!e.4s)e.4s=z.el.B(\'19\');if(2S==\'fJ\'){2S=z.el.B(\'19\')==\'1o\'?\'4r\':\'4F\'}P if(2S==\'fh\'){2S=z.el.B(\'19\')==\'1o\'?\'2L\':\'O\'}z.el.1Y();z.H=H;z.J=2g J==\'u\'?J:S;z.fx=k.fx.9P(e);z.2S=2S;z.21=u(){if(z.J&&z.J.1K==2A){z.J.1D(z.el.K(0))}if(z.2S==\'4r\'||z.2S==\'2L\'){z.el.B(\'19\',z.el.K(0).4s==\'1o\'?\'2B\':z.el.K(0).4s)}P{z.el.2G()}k.fx.a0(z.fx.3p.K(0),z.fx.V);k.2H(z.el.K(0),\'1n\')};3m(z.2S){1e\'4F\':63=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'W\');63.1L(z.fx.V.1q.hb,0);1r;1e\'4r\':z.fx.3p.B(\'W\',\'9R\');z.el.1Y();63=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'W\');63.1L(0,z.fx.V.1q.hb);1r;1e\'O\':63=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'Z\');63.1L(z.fx.V.1q.1C,0);1r;1e\'2L\':z.fx.3p.B(\'Z\',\'9R\');z.el.1Y();63=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'Z\');63.1L(0,z.fx.V.1q.1C);1r}};k.fn.ji=u(5D,J){E q.1w(\'1n\',u(){if(!k.4K(q)){k.2H(q,\'1n\');E I}D e=12 k.fx.f4(q,5D,J);e.bp()})};k.fx.f4=u(e,5D,J){D z=q;z.el=k(e);z.el.1Y();z.J=J;z.5D=T(5D)||40;z.V={};z.V.Y=z.el.B(\'Y\');z.V.Q=T(z.el.B(\'Q\'))||0;z.V.O=T(z.el.B(\'O\'))||0;if(z.V.Y!=\'2s\'&&z.V.Y!=\'1P\'){z.el.B(\'Y\',\'2s\')}z.3V=5;z.5y=1;z.bp=u(){z.5y++;z.e=12 k.fx(z.el.K(0),{1m:jj,21:u(){z.e=12 k.fx(z.el.K(0),{1m:80,21:u(){z.5D=T(z.5D/2);if(z.5y<=z.3V)z.bp();P{z.el.B(\'Y\',z.V.Y).B(\'Q\',z.V.Q+\'U\').B(\'O\',z.V.O+\'U\');k.2H(z.el.K(0),\'1n\');if(z.J&&z.J.1K==2A){z.J.1D(z.el.K(0))}}}},\'Q\');z.e.1L(z.V.Q-z.5D,z.V.Q)}},\'Q\');z.e.1L(z.V.Q,z.V.Q-z.5D)}};k.fn.23({jy:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4r\',\'4l\',G)})},jz:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4r\',\'in\',G)})},jA:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4r\',\'3R\',G)})},jB:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4F\',\'4l\',G)})},jx:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4F\',\'in\',G)})},jw:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'4F\',\'3R\',G)})},js:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'O\',\'4l\',G)})},jt:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'O\',\'in\',G)})},ju:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'O\',\'3R\',G)})},jv:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'2L\',\'4l\',G)})},je:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'2L\',\'in\',G)})},jd:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.4f(q,H,J,\'2L\',\'3R\',G)})}});k.fx.4f=u(e,H,J,2S,1u,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;z.el=k(e);z.G=2g J==\'4V\'?J:G||S;z.V={};z.V.Y=z.el.B(\'Y\');z.V.Q=z.el.B(\'Q\');z.V.O=z.el.B(\'O\');if(!e.4s)e.4s=z.el.B(\'19\');if(1u==\'3R\'){1u=z.el.B(\'19\')==\'1o\'?\'in\':\'4l\'}z.el.1Y();if(z.V.Y!=\'2s\'&&z.V.Y!=\'1P\'){z.el.B(\'Y\',\'2s\')}z.1u=1u;J=2g J==\'u\'?J:S;8H=1;3m(2S){1e\'4F\':z.e=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'Q\');z.62=2m(z.V.Q)||0;z.9K=z.fG;8H=-1;1r;1e\'4r\':z.e=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'Q\');z.62=2m(z.V.Q)||0;z.9K=z.fG;1r;1e\'2L\':z.e=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'O\');z.62=2m(z.V.O)||0;z.9K=z.fy;1r;1e\'O\':z.e=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'O\');z.62=2m(z.V.O)||0;z.9K=z.fy;8H=-1;1r}z.e2=12 k.fx(z.el.K(0),k.H(H,z.G,u(){z.el.B(z.V);if(z.1u==\'4l\'){z.el.B(\'19\',\'1o\')}P z.el.B(\'19\',z.el.K(0).4s==\'1o\'?\'2B\':z.el.K(0).4s);k.2H(z.el.K(0),\'1n\')}),\'1G\');if(1u==\'in\'){z.e.1L(z.62+2a*8H,z.62);z.e2.1L(0,1)}P{z.e.1L(z.62,z.62+2a*8H);z.e2.1L(1,0)}};k.fn.23({j0:u(H,W,J,G){E q.1w(\'1n\',u(){12 k.fx.9L(q,H,W,J,\'fp\',G)})},iW:u(H,W,J,G){E q.1w(\'1n\',u(){12 k.fx.9L(q,H,W,J,\'9M\',G)})},iV:u(H,W,J,G){E q.1w(\'1n\',u(){12 k.fx.9L(q,H,W,J,\'3R\',G)})}});k.fx.9L=u(e,H,W,J,1u,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;z.el=k(e);z.G=2g J==\'4V\'?J:G||S;z.J=2g J==\'u\'?J:S;if(1u==\'3R\'){1u=z.el.B(\'19\')==\'1o\'?\'9M\':\'fp\'}z.H=H;z.W=W&&W.1K==bn?W:20;z.fx=k.fx.9P(e);z.1u=1u;z.21=u(){if(z.J&&z.J.1K==2A){z.J.1D(z.el.K(0))}if(z.1u==\'9M\'){z.el.1Y()}P{z.el.2G()}k.fx.a0(z.fx.3p.K(0),z.fx.V);k.2H(z.el.K(0),\'1n\')};if(z.1u==\'9M\'){z.el.1Y();z.fx.3p.B(\'W\',z.W+\'U\').B(\'Z\',\'9R\');z.ef=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,u(){z.ef=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'W\');z.ef.1L(z.W,z.fx.V.1q.hb)}),\'Z\');z.ef.1L(0,z.fx.V.1q.1C)}P{z.ef=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,u(){z.ef=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G,z.21),\'Z\');z.ef.1L(z.fx.V.1q.1C,0)}),\'W\');z.ef.1L(z.fx.V.1q.hb,z.W)}};k.fn.iR=u(H,4x,J,G){E q.1w(\'fv\',u(){q.6W=k(q).1p("14")||\'\';G=2g J==\'4V\'?J:G||S;J=2g J==\'u\'?J:S;D 9S=k(q).B(\'7i\');D 8I=q.31;7d(9S==\'cu\'&&8I){9S=k(8I).B(\'7i\');8I=8I.31}k(q).B(\'7i\',4x);if(2g q.6W==\'8T\')q.6W=q.6W["9X"];k(q).5w({\'7i\':9S},H,G,u(){k.2H(q,\'fv\');if(2g k(q).1p("14")==\'8T\'){k(q).1p("14")["9X"]="";k(q).1p("14")["9X"]=q.6W}P{k(q).1p("14",q.6W)}if(J)J.1D(q)})})};k.fn.23({iT:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.5m(q,H,J,\'49\',\'6g\',G)})},iU:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.5m(q,H,J,\'4j\',\'6g\',G)})},j1:u(H,J,G){E q.1w(\'1n\',u(){if(k.B(q,\'19\')==\'1o\'){12 k.fx.5m(q,H,J,\'4j\',\'6Z\',G)}P{12 k.fx.5m(q,H,J,\'4j\',\'6g\',G)}})},j2:u(H,J,G){E q.1w(\'1n\',u(){if(k.B(q,\'19\')==\'1o\'){12 k.fx.5m(q,H,J,\'49\',\'6Z\',G)}P{12 k.fx.5m(q,H,J,\'49\',\'6g\',G)}})},j9:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.5m(q,H,J,\'49\',\'6Z\',G)})},ja:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.5m(q,H,J,\'4j\',\'6Z\',G)})}});k.fx.5m=u(e,H,J,2S,1u,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;D 73=I;z.el=k(e);z.G=2g J==\'4V\'?J:G||S;z.J=2g J==\'u\'?J:S;z.1u=1u;z.H=H;z.2i=k.1a.2o(e);z.V={};z.V.Y=z.el.B(\'Y\');z.V.19=z.el.B(\'19\');if(z.V.19==\'1o\'){5Y=z.el.B(\'3n\');z.el.1Y();73=1b}z.V.Q=z.el.B(\'Q\');z.V.O=z.el.B(\'O\');if(73){z.el.2G();z.el.B(\'3n\',5Y)}z.V.Z=z.2i.w+\'U\';z.V.W=z.2i.h+\'U\';z.V.2U=z.el.B(\'2U\');z.2i.Q=T(z.V.Q)||0;z.2i.O=T(z.V.O)||0;if(z.V.Y!=\'2s\'&&z.V.Y!=\'1P\'){z.el.B(\'Y\',\'2s\')}z.el.B(\'2U\',\'2K\').B(\'W\',1u==\'6Z\'&&2S==\'49\'?1:z.2i.h+\'U\').B(\'Z\',1u==\'6Z\'&&2S==\'4j\'?1:z.2i.w+\'U\');z.21=u(){z.el.B(z.V);if(z.1u==\'6g\')z.el.2G();P z.el.1Y();k.2H(z.el.K(0),\'1n\')};3m(2S){1e\'49\':z.eh=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'W\');z.et=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'Q\');if(z.1u==\'6g\'){z.eh.1L(z.2i.h,0);z.et.1L(z.2i.Q,z.2i.Q+z.2i.h/2)}P{z.eh.1L(0,z.2i.h);z.et.1L(z.2i.Q+z.2i.h/2,z.2i.Q)}1r;1e\'4j\':z.eh=12 k.fx(z.el.K(0),k.H(H-15,z.G,J),\'Z\');z.et=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'O\');if(z.1u==\'6g\'){z.eh.1L(z.2i.w,0);z.et.1L(z.2i.O,z.2i.O+z.2i.w/2)}P{z.eh.1L(0,z.2i.w);z.et.1L(z.2i.O+z.2i.w/2,z.2i.O)}1r}};k.fn.bg=u(H,3V,J){E q.1w(\'1n\',u(){if(!k.4K(q)){k.2H(q,\'1n\');E I}D fx=12 k.fx.bg(q,H,3V,J);fx.bf()})};k.fx.bg=u(el,H,3V,J){D z=q;z.3V=3V;z.5y=1;z.el=el;z.H=H;z.J=J;k(z.el).1Y();z.bf=u(){z.5y++;z.e=12 k.fx(z.el,k.H(z.H,u(){z.ef=12 k.fx(z.el,k.H(z.H,u(){if(z.5y<=z.3V)z.bf();P{k.2H(z.el,\'1n\');if(z.J&&z.J.1K==2A){z.J.1D(z.el)}}}),\'1G\');z.ef.1L(0,1)}),\'1G\');z.e.1L(1,0)}};k.fn.23({jb:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.6G(q,H,1,2a,1b,J,\'fa\',G)})},jc:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.6G(q,H,2a,1,1b,J,\'b4\',G)})},j8:u(H,J,G){E q.1w(\'1n\',u(){D G=G||\'fl\';12 k.fx.6G(q,H,2a,f8,1b,J,\'6h\',G)})},6G:u(H,57,30,6H,J,G){E q.1w(\'1n\',u(){12 k.fx.6G(q,H,57,30,6H,J,\'6G\',G)})}});k.fx.6G=u(e,H,57,30,6H,J,1u,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;z.el=k(e);z.57=T(57)||2a;z.30=T(30)||2a;z.G=2g J==\'4V\'?J:G||S;z.J=2g J==\'u\'?J:S;z.1m=k.H(H).1m;z.6H=6H||S;z.2i=k.1a.2o(e);z.V={Z:z.el.B(\'Z\'),W:z.el.B(\'W\'),4A:z.el.B(\'4A\')||\'2a%\',Y:z.el.B(\'Y\'),19:z.el.B(\'19\'),Q:z.el.B(\'Q\'),O:z.el.B(\'O\'),2U:z.el.B(\'2U\'),4S:z.el.B(\'4S\'),5O:z.el.B(\'5O\'),5Q:z.el.B(\'5Q\'),5b:z.el.B(\'5b\'),5M:z.el.B(\'5M\'),5U:z.el.B(\'5U\'),5n:z.el.B(\'5n\'),4X:z.el.B(\'4X\')};z.Z=T(z.V.Z)||e.4c||0;z.W=T(z.V.W)||e.5W||0;z.Q=T(z.V.Q)||0;z.O=T(z.V.O)||0;1q=[\'em\',\'U\',\'j7\',\'%\'];24(i in 1q){if(z.V.4A.3J(1q[i])>0){z.fg=1q[i];z.4A=2m(z.V.4A)}if(z.V.4S.3J(1q[i])>0){z.fc=1q[i];z.bw=2m(z.V.4S)||0}if(z.V.5O.3J(1q[i])>0){z.fe=1q[i];z.bc=2m(z.V.5O)||0}if(z.V.5Q.3J(1q[i])>0){z.fL=1q[i];z.bA=2m(z.V.5Q)||0}if(z.V.5b.3J(1q[i])>0){z.g8=1q[i];z.bt=2m(z.V.5b)||0}if(z.V.5M.3J(1q[i])>0){z.g4=1q[i];z.bx=2m(z.V.5M)||0}if(z.V.5U.3J(1q[i])>0){z.g9=1q[i];z.bv=2m(z.V.5U)||0}if(z.V.5n.3J(1q[i])>0){z.gc=1q[i];z.bj=2m(z.V.5n)||0}if(z.V.4X.3J(1q[i])>0){z.fK=1q[i];z.b7=2m(z.V.4X)||0}}if(z.V.Y!=\'2s\'&&z.V.Y!=\'1P\'){z.el.B(\'Y\',\'2s\')}z.el.B(\'2U\',\'2K\');z.1u=1u;3m(z.1u){1e\'fa\':z.4b=z.Q+z.2i.h/2;z.5a=z.Q;z.4k=z.O+z.2i.w/2;z.59=z.O;1r;1e\'b4\':z.5a=z.Q+z.2i.h/2;z.4b=z.Q;z.59=z.O+z.2i.w/2;z.4k=z.O;1r;1e\'6h\':z.5a=z.Q-z.2i.h/4;z.4b=z.Q;z.59=z.O-z.2i.w/4;z.4k=z.O;1r}z.be=I;z.t=(12 7g).7z();z.4w=u(){5T(z.2I);z.2I=S};z.2D=u(){if(z.be==I){z.el.1Y();z.be=1b}D t=(12 7g).7z();D n=t-z.t;D p=n/z.1m;if(t>=z.1m+z.t){9T(u(){o=1;if(z.1u){t=z.5a;l=z.59;if(z.1u==\'6h\')o=0}z.bs(z.30,l,t,1b,o)},13);z.4w()}P{o=1;if(!k.G||!k.G[z.G]){s=((-18.5H(p*18.2Q)/2)+0.5)*(z.30-z.57)+z.57}P{s=k.G[z.G](p,n,z.57,(z.30-z.57),z.1m)}if(z.1u){if(!k.G||!k.G[z.G]){t=((-18.5H(p*18.2Q)/2)+0.5)*(z.5a-z.4b)+z.4b;l=((-18.5H(p*18.2Q)/2)+0.5)*(z.59-z.4k)+z.4k;if(z.1u==\'6h\')o=((-18.5H(p*18.2Q)/2)+0.5)*(-0.9Y)+0.9Y}P{t=k.G[z.G](p,n,z.4b,(z.5a-z.4b),z.1m);l=k.G[z.G](p,n,z.4k,(z.59-z.4k),z.1m);if(z.1u==\'6h\')o=k.G[z.G](p,n,0.9Y,-0.9Y,z.1m)}}z.bs(s,l,t,I,o)}};z.2I=6V(u(){z.2D()},13);z.bs=u(4q,O,Q,fM,1G){z.el.B(\'W\',z.W*4q/2a+\'U\').B(\'Z\',z.Z*4q/2a+\'U\').B(\'O\',O+\'U\').B(\'Q\',Q+\'U\').B(\'4A\',z.4A*4q/2a+z.fg);if(z.bw)z.el.B(\'4S\',z.bw*4q/2a+z.fc);if(z.bc)z.el.B(\'5O\',z.bc*4q/2a+z.fe);if(z.bA)z.el.B(\'5Q\',z.bA*4q/2a+z.fL);if(z.bt)z.el.B(\'5b\',z.bt*4q/2a+z.g8);if(z.bx)z.el.B(\'5M\',z.bx*4q/2a+z.g4);if(z.bv)z.el.B(\'5U\',z.bv*4q/2a+z.g9);if(z.bj)z.el.B(\'5n\',z.bj*4q/2a+z.gc);if(z.b7)z.el.B(\'4X\',z.b7*4q/2a+z.fK);if(z.1u==\'6h\'){if(1X.71)z.el.K(0).14.5E="8V(1G="+1G*2a+")";z.el.K(0).14.1G=1G}if(fM){if(z.6H){z.el.B(z.V)}if(z.1u==\'b4\'||z.1u==\'6h\'){z.el.B(\'19\',\'1o\');if(z.1u==\'6h\'){if(1X.71)z.el.K(0).14.5E="8V(1G="+2a+")";z.el.K(0).14.1G=1}}P z.el.B(\'19\',\'2B\');if(z.J)z.J.1D(z.el.K(0));k.2H(z.el.K(0),\'1n\')}}};k.fn.23({9U:u(H,1O,G){o=k.H(H);E q.1w(\'1n\',u(){12 k.fx.9U(q,o,1O,G)})},j6:u(H,1O,G){E q.1E(u(){k(\'a[@3h*="#"]\',q).5h(u(e){fW=q.3h.7C(\'#\');k(\'#\'+fW[1]).9U(H,1O,G);E I})})}});k.fx.9U=u(e,o,1O,G){D z=q;z.o=o;z.e=e;z.1O=/fT|gd/.48(1O)?1O:I;z.G=G;p=k.1a.3w(e);s=k.1a.6z();z.4w=u(){5T(z.2I);z.2I=S;k.2H(z.e,\'1n\')};z.t=(12 7g).7z();s.h=s.h>s.ih?(s.h-s.ih):s.h;s.w=s.w>s.iw?(s.w-s.iw):s.w;z.5a=p.y>s.h?s.h:p.y;z.59=p.x>s.w?s.w:p.x;z.4b=s.t;z.4k=s.l;z.2D=u(){D t=(12 7g).7z();D n=t-z.t;D p=n/z.o.1m;if(t>=z.o.1m+z.t){z.4w();9T(u(){z.d3(z.5a,z.59)},13)}P{if(!z.1O||z.1O==\'fT\'){if(!k.G||!k.G[z.G]){9V=((-18.5H(p*18.2Q)/2)+0.5)*(z.5a-z.4b)+z.4b}P{9V=k.G[z.G](p,n,z.4b,(z.5a-z.4b),z.o.1m)}}P{9V=z.4b}if(!z.1O||z.1O==\'gd\'){if(!k.G||!k.G[z.G]){9W=((-18.5H(p*18.2Q)/2)+0.5)*(z.59-z.4k)+z.4k}P{9W=k.G[z.G](p,n,z.4k,(z.59-z.4k),z.o.1m)}}P{9W=z.4k}z.d3(9V,9W)}};z.d3=u(t,l){1X.j4(l,t)};z.2I=6V(u(){z.2D()},13)};k.fn.cY=u(3V,J){E q.1w(\'1n\',u(){if(!k.4K(q)){k.2H(q,\'1n\');E I}D e=12 k.fx.cY(q,3V,J);e.cG()})};k.fx.cY=u(e,3V,J){D z=q;z.el=k(e);z.el.1Y();z.3V=T(3V)||3;z.J=J;z.5y=1;z.V={};z.V.Y=z.el.B(\'Y\');z.V.Q=T(z.el.B(\'Q\'))||0;z.V.O=T(z.el.B(\'O\'))||0;if(z.V.Y!=\'2s\'&&z.V.Y!=\'1P\'){z.el.B(\'Y\',\'2s\')}z.cG=u(){z.5y++;z.e=12 k.fx(z.el.K(0),{1m:60,21:u(){z.e=12 k.fx(z.el.K(0),{1m:60,21:u(){z.e=12 k.fx(e,{1m:60,21:u(){if(z.5y<=z.3V)z.cG();P{z.el.B(\'Y\',z.V.Y).B(\'Q\',z.V.Q+\'U\').B(\'O\',z.V.O+\'U\');k.2H(z.el.K(0),\'1n\');if(z.J&&z.J.1K==2A){z.J.1D(z.el.K(0))}}}},\'O\');z.e.1L(z.V.O-20,z.V.O)}},\'O\');z.e.1L(z.V.O+20,z.V.O-20)}},\'O\');z.e.1L(z.V.O,z.V.O+20)}};k.fn.23({fo:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4F\',\'in\',G)})},fq:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4F\',\'4l\',G)})},iY:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4F\',\'3R\',G)})},iX:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4r\',\'in\',G)})},jr:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4r\',\'4l\',G)})},jq:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'4r\',\'3R\',G)})},jp:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'O\',\'in\',G)})},jn:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'O\',\'4l\',G)})},jm:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'O\',\'3R\',G)})},iP:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'2L\',\'in\',G)})},ic:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'2L\',\'4l\',G)})},ib:u(H,J,G){E q.1w(\'1n\',u(){12 k.fx.1z(q,H,J,\'2L\',\'3R\',G)})}});k.fx.1z=u(e,H,J,2S,1u,G){if(!k.4K(e)){k.2H(e,\'1n\');E I}D z=q;z.el=k(e);z.G=2g J==\'4V\'?J:G||S;z.J=2g J==\'u\'?J:S;if(1u==\'3R\'){1u=z.el.B(\'19\')==\'1o\'?\'in\':\'4l\'}if(!e.4s)e.4s=z.el.B(\'19\');z.el.1Y();z.H=H;z.fx=k.fx.9P(e);z.1u=1u;z.2S=2S;z.21=u(){if(z.1u==\'4l\')z.el.B(\'3n\',\'2K\');k.fx.a0(z.fx.3p.K(0),z.fx.V);if(z.1u==\'in\'){z.el.B(\'19\',z.el.K(0).4s==\'1o\'?\'2B\':z.el.K(0).4s)}P{z.el.B(\'19\',\'1o\');z.el.B(\'3n\',\'dd\')}if(z.J&&z.J.1K==2A){z.J.1D(z.el.K(0))}k.2H(z.el.K(0),\'1n\')};3m(z.2S){1e\'4F\':z.ef=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'Q\');z.7v=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G),\'W\');if(z.1u==\'in\'){z.ef.1L(-z.fx.V.1q.hb,0);z.7v.1L(0,z.fx.V.1q.hb)}P{z.ef.1L(0,-z.fx.V.1q.hb);z.7v.1L(z.fx.V.1q.hb,0)}1r;1e\'4r\':z.ef=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'Q\');if(z.1u==\'in\'){z.ef.1L(z.fx.V.1q.hb,0)}P{z.ef.1L(0,z.fx.V.1q.hb)}1r;1e\'O\':z.ef=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'O\');z.7v=12 k.fx(z.fx.3p.K(0),k.H(z.H,z.G),\'Z\');if(z.1u==\'in\'){z.ef.1L(-z.fx.V.1q.1C,0);z.7v.1L(0,z.fx.V.1q.1C)}P{z.ef.1L(0,-z.fx.V.1q.1C);z.7v.1L(z.fx.V.1q.1C,0)}1r;1e\'2L\':z.ef=12 k.fx(z.el.K(0),k.H(z.H,z.G,z.21),\'O\');if(z.1u==\'in\'){z.ef.1L(z.fx.V.1q.1C,0)}P{z.ef.1L(0,z.fx.V.1q.1C)}1r}};k.3f=S;k.fn.ig=u(o){E q.1w(\'1n\',u(){12 k.fx.dG(q,o)})};k.fx.dG=u(e,o){if(k.3f==S){k(\'2e\',1h).1S(\'<22 id="3f"></22>\');k.3f=k(\'#3f\')}k.3f.B(\'19\',\'2B\').B(\'Y\',\'1P\');D z=q;z.el=k(e);if(!o||!o.30){E}if(o.30.1K==b0&&1h.9e(o.30)){o.30=1h.9e(o.30)}P if(!o.30.dq){E}if(!o.1m){o.1m=g5}z.1m=o.1m;z.30=o.30;z.8r=o.3l;z.21=o.21;if(z.8r){k.3f.2R(z.8r)}z.a3=0;z.a2=0;if(k.dF){z.a3=(T(k.3f.B(\'5b\'))||0)+(T(k.3f.B(\'5O\'))||0)+(T(k.3f.B(\'4X\'))||0)+(T(k.3f.B(\'5U\'))||0);z.a2=(T(k.3f.B(\'4S\'))||0)+(T(k.3f.B(\'5Q\'))||0)+(T(k.3f.B(\'5M\'))||0)+(T(k.3f.B(\'5n\'))||0)}z.26=k.23(k.1a.3w(z.el.K(0)),k.1a.2o(z.el.K(0)));z.2T=k.23(k.1a.3w(z.30),k.1a.2o(z.30));z.26.1C-=z.a3;z.26.hb-=z.a2;z.2T.1C-=z.a3;z.2T.hb-=z.a2;z.J=o.21;k.3f.B(\'Z\',z.26.1C+\'U\').B(\'W\',z.26.hb+\'U\').B(\'Q\',z.26.y+\'U\').B(\'O\',z.26.x+\'U\').5w({Q:z.2T.y,O:z.2T.x,Z:z.2T.1C,W:z.2T.hb},z.1m,u(){if(z.8r)k.3f.4i(z.8r);k.3f.B(\'19\',\'1o\');if(z.21&&z.21.1K==2A){z.21.1D(z.el.K(0),[z.30])}k.2H(z.el.K(0),\'1n\')})};k.1v={M:{2E:10,ec:\'1Q/iJ.eZ\',e3:\'<1T 2J="1Q/6g.da" />\',eW:0.8,d8:\'iN a6\',dc:\'57\',3W:8J},jQ:I,jW:I,6j:S,8m:I,8k:I,d1:u(2k){if(!k.1v.8k||k.1v.8m)E;D 3K=2k.7L||2k.7K||-1;3m(3K){1e 35:if(k.1v.6j)k.1v.26(S,k(\'a[@4I=\'+k.1v.6j+\']:jJ\').K(0));1r;1e 36:if(k.1v.6j)k.1v.26(S,k(\'a[@4I=\'+k.1v.6j+\']:jL\').K(0));1r;1e 37:1e 8:1e 33:1e 80:1e kb:D 9p=k(\'#87\');if(9p.K(0).53!=S){9p.K(0).53.1D(9p.K(0))}1r;1e 38:1r;1e 39:1e 34:1e 32:1e gl:1e 78:D 9k=k(\'#88\');if(9k.K(0).53!=S){9k.K(0).53.1D(9k.K(0))}1r;1e 40:1r;1e 27:k.1v.au();1r}},7q:u(M){if(M)k.23(k.1v.M,M);if(1X.2k){k(\'2e\',1h).1J(\'6y\',k.1v.d1)}P{k(1h).1J(\'6y\',k.1v.d1)}k(\'a\').1E(u(){el=k(q);en=el.1p(\'4I\')||\'\';e9=el.1p(\'3h\')||\'\';ev=/\\.da|\\.gw|\\.8X|\\.eZ|\\.gn/g;if(e9.6c().d5(ev)!=S&&en.6c().3J(\'eU\')==0){el.1J(\'5h\',k.1v.26)}});if(k.3a.4t){3A=1h.3F(\'3A\');k(3A).1p({id:\'cN\',2J:\'ek:I;\',ej:\'cD\',ep:\'cD\'}).B({19:\'1o\',Y:\'1P\',Q:\'0\',O:\'0\',5E:\'9n:9w.9y.cC(1G=0)\'});k(\'2e\').1S(3A)}8n=1h.3F(\'22\');k(8n).1p(\'id\',\'cP\').B({Y:\'1P\',19:\'1o\',Q:\'0\',O:\'0\',1G:0}).1S(1h.8M(\' \')).1J(\'5h\',k.1v.au);6A=1h.3F(\'22\');k(6A).1p(\'id\',\'eK\').B({4X:k.1v.M.2E+\'U\'}).1S(1h.8M(\' \'));cE=1h.3F(\'22\');k(cE).1p(\'id\',\'dg\').B({4X:k.1v.M.2E+\'U\',5n:k.1v.M.2E+\'U\'}).1S(1h.8M(\' \'));cF=1h.3F(\'a\');k(cF).1p({id:\'gg\',3h:\'#\'}).B({Y:\'1P\',2L:k.1v.M.2E+\'U\',Q:\'0\'}).1S(k.1v.M.e3).1J(\'5h\',k.1v.au);7m=1h.3F(\'22\');k(7m).1p(\'id\',\'cM\').B({Y:\'2s\',cA:\'O\',6w:\'0 9F\',3I:1}).1S(6A).1S(cE).1S(cF);2b=1h.3F(\'1T\');2b.2J=k.1v.M.ec;k(2b).1p(\'id\',\'eM\').B({Y:\'1P\'});4G=1h.3F(\'a\');k(4G).1p({id:\'87\',3h:\'#\'}).B({Y:\'1P\',19:\'1o\',2U:\'2K\',ey:\'1o\'}).1S(1h.8M(\' \'));4M=1h.3F(\'a\');k(4M).1p({id:\'88\',3h:\'#\'}).B({Y:\'1P\',2U:\'2K\',ey:\'1o\'}).1S(1h.8M(\' \'));1Z=1h.3F(\'22\');k(1Z).1p(\'id\',\'eE\').B({19:\'1o\',Y:\'2s\',2U:\'2K\',cA:\'O\',6w:\'0 9F\',Q:\'0\',O:\'0\',3I:2}).1S([2b,4G,4M]);6F=1h.3F(\'22\');k(6F).1p(\'id\',\'ao\').B({19:\'1o\',Y:\'1P\',2U:\'2K\',Q:\'0\',O:\'0\',cA:\'cv\',7i:\'cu\',hC:\'0\'}).1S([1Z,7m]);k(\'2e\').1S(8n).1S(6F)},26:u(e,C){el=C?k(C):k(q);9t=el.1p(\'4I\');D 6B,4u,4G,4M;if(9t!=\'eU\'){k.1v.6j=9t;8Y=k(\'a[@4I=\'+9t+\']\');6B=8Y.1N();4u=8Y.cZ(C?C:q);4G=8Y.K(4u-1);4M=8Y.K(4u+1)}89=el.1p(\'3h\');6A=el.1p(\'4g\');3O=k.1a.6z();8n=k(\'#cP\');if(!k.1v.8k){k.1v.8k=1b;if(k.3a.4t){k(\'#cN\').B(\'W\',18.3r(3O.ih,3O.h)+\'U\').B(\'Z\',18.3r(3O.iw,3O.w)+\'U\').1Y()}8n.B(\'W\',18.3r(3O.ih,3O.h)+\'U\').B(\'Z\',18.3r(3O.iw,3O.w)+\'U\').1Y().fX(cO,k.1v.M.eW,u(){k.1v.cw(89,6A,3O,6B,4u,4G,4M)});k(\'#ao\').B(\'Z\',18.3r(3O.iw,3O.w)+\'U\')}P{k(\'#87\').K(0).53=S;k(\'#88\').K(0).53=S;k.1v.cw(89,6A,3O,6B,4u,4G,4M)}E I},cw:u(89,gP,3O,6B,4u,4G,4M){k(\'#cW\').bk();aX=k(\'#87\');aX.2G();aO=k(\'#88\');aO.2G();2b=k(\'#eM\');1Z=k(\'#eE\');6F=k(\'#ao\');7m=k(\'#cM\').B(\'3n\',\'2K\');k(\'#eK\').3x(6A);k.1v.8m=1b;if(6B)k(\'#dg\').3x(k.1v.M.d8+\' \'+(4u+1)+\' \'+k.1v.M.dc+\' \'+6B);if(4G){aX.K(0).53=u(){q.5B();k.1v.26(S,4G);E I}}if(4M){aO.K(0).53=u(){q.5B();k.1v.26(S,4M);E I}}2b.1Y();82=k.1a.2o(1Z.K(0));56=18.3r(82.1C,2b.K(0).Z+k.1v.M.2E*2);6f=18.3r(82.hb,2b.K(0).W+k.1v.M.2E*2);2b.B({O:(56-2b.K(0).Z)/2+\'U\',Q:(6f-2b.K(0).W)/2+\'U\'});1Z.B({Z:56+\'U\',W:6f+\'U\'}).1Y();dw=k.1a.bm();6F.B(\'Q\',3O.t+(dw.h/15)+\'U\');if(6F.B(\'19\')==\'1o\'){6F.1Y().7f(k.1v.M.3W)}6k=12 9s;k(6k).1p(\'id\',\'cW\').1J(\'hJ\',u(){56=6k.Z+k.1v.M.2E*2;6f=6k.W+k.1v.M.2E*2;2b.2G();1Z.5w({W:6f},82.hb!=6f?k.1v.M.3W:1,u(){1Z.5w({Z:56},82.1C!=56?k.1v.M.3W:1,u(){1Z.bG(6k);k(6k).B({Y:\'1P\',O:k.1v.M.2E+\'U\',Q:k.1v.M.2E+\'U\'}).7f(k.1v.M.3W,u(){db=k.1a.2o(7m.K(0));if(4G){aX.B({O:k.1v.M.2E+\'U\',Q:k.1v.M.2E+\'U\',Z:56/2-k.1v.M.2E*3+\'U\',W:6f-k.1v.M.2E*2+\'U\'}).1Y()}if(4M){aO.B({O:56/2+k.1v.M.2E*2+\'U\',Q:k.1v.M.2E+\'U\',Z:56/2-k.1v.M.2E*3+\'U\',W:6f-k.1v.M.2E*2+\'U\'}).1Y()}7m.B({Z:56+\'U\',Q:-db.hb+\'U\',3n:\'dd\'}).5w({Q:-1},k.1v.M.3W,u(){k.1v.8m=I})})})})});6k.2J=89},au:u(){k(\'#cW\').bk();k(\'#ao\').2G();k(\'#cM\').B(\'3n\',\'2K\');k(\'#cP\').fX(cO,0,u(){k(q).2G();if(k.3a.4t){k(\'#cN\').2G()}});k(\'#87\').K(0).53=S;k(\'#88\').K(0).53=S;k.1v.6j=S;k.1v.8k=I;k.1v.8m=I;E I}};k.R={1A:S,41:S,F:S,1s:S,1q:S,Y:S,9a:u(e){k.R.F=(q.d0)?q.d0:q;k.R.1s=k.1a.4a(e);k.R.1q={Z:T(k(k.R.F).B(\'Z\'))||0,W:T(k(k.R.F).B(\'W\'))||0};k.R.Y={Q:T(k(k.R.F).B(\'Q\'))||0,O:T(k(k.R.F).B(\'O\'))||0};k(1h).1J(\'3D\',k.R.cR).1J(\'5P\',k.R.cK);if(2g k.R.F.1k.g2===\'u\'){k.R.F.1k.g2.1D(k.R.F)}E I},cK:u(e){k(1h).3q(\'3D\',k.R.cR).3q(\'5P\',k.R.cK);if(2g k.R.F.1k.fN===\'u\'){k.R.F.1k.fN.1D(k.R.F)}k.R.F=S},cR:u(e){if(!k.R.F){E}1s=k.1a.4a(e);7p=k.R.Y.Q-k.R.1s.y+1s.y;7r=k.R.Y.O-k.R.1s.x+1s.x;7p=18.3r(18.3L(7p,k.R.F.1k.8g-k.R.1q.W),k.R.F.1k.7h);7r=18.3r(18.3L(7r,k.R.F.1k.8h-k.R.1q.Z),k.R.F.1k.70);if(2g k.R.F.1k.4m===\'u\'){D 8a=k.R.F.1k.4m.1D(k.R.F,[7r,7p]);if(2g 8a==\'hh\'&&8a.1g==2){7r=8a[0];7p=8a[1]}}k.R.F.14.Q=7p+\'U\';k.R.F.14.O=7r+\'U\';E I},26:u(e){k(1h).1J(\'3D\',k.R.8j).1J(\'5P\',k.R.8o);k.R.1A=q.1A;k.R.41=q.41;k.R.1s=k.1a.4a(e);k.R.1q={Z:T(k(q.1A).B(\'Z\'))||0,W:T(k(q.1A).B(\'W\'))||0};k.R.Y={Q:T(k(q.1A).B(\'Q\'))||0,O:T(k(q.1A).B(\'O\'))||0};if(k.R.1A.1k.4o){k.R.1A.1k.4o.1D(k.R.1A,[q])}E I},8o:u(){k(1h).3q(\'3D\',k.R.8j).3q(\'5P\',k.R.8o);if(k.R.1A.1k.3T){k.R.1A.1k.3T.1D(k.R.1A,[k.R.41])}k.R.1A=S;k.R.41=S},6i:u(dx,az){E 18.3L(18.3r(k.R.1q.Z+dx*az,k.R.1A.1k.av),k.R.1A.1k.6x)},6m:u(dy,az){E 18.3L(18.3r(k.R.1q.W+dy*az,k.R.1A.1k.8c),k.R.1A.1k.8b)},fb:u(W){E 18.3L(18.3r(W,k.R.1A.1k.8c),k.R.1A.1k.8b)},8j:u(e){if(k.R.1A==S){E}1s=k.1a.4a(e);dx=1s.x-k.R.1s.x;dy=1s.y-k.R.1s.y;1I={Z:k.R.1q.Z,W:k.R.1q.W};2z={Q:k.R.Y.Q,O:k.R.Y.O};3m(k.R.41){1e\'e\':1I.Z=k.R.6i(dx,1);1r;1e\'fj\':1I.Z=k.R.6i(dx,1);1I.W=k.R.6m(dy,1);1r;1e\'w\':1I.Z=k.R.6i(dx,-1);2z.O=k.R.Y.O-1I.Z+k.R.1q.Z;1r;1e\'5F\':1I.Z=k.R.6i(dx,-1);2z.O=k.R.Y.O-1I.Z+k.R.1q.Z;1I.W=k.R.6m(dy,1);1r;1e\'76\':1I.W=k.R.6m(dy,-1);2z.Q=k.R.Y.Q-1I.W+k.R.1q.W;1I.Z=k.R.6i(dx,-1);2z.O=k.R.Y.O-1I.Z+k.R.1q.Z;1r;1e\'n\':1I.W=k.R.6m(dy,-1);2z.Q=k.R.Y.Q-1I.W+k.R.1q.W;1r;1e\'at\':1I.W=k.R.6m(dy,-1);2z.Q=k.R.Y.Q-1I.W+k.R.1q.W;1I.Z=k.R.6i(dx,1);1r;1e\'s\':1I.W=k.R.6m(dy,1);1r}if(k.R.1A.1k.4v){if(k.R.41==\'n\'||k.R.41==\'s\')4p=1I.W*k.R.1A.1k.4v;P 4p=1I.Z;4W=k.R.fb(4p*k.R.1A.1k.4v);4p=4W/k.R.1A.1k.4v;3m(k.R.41){1e\'n\':1e\'76\':1e\'at\':2z.Q+=1I.W-4W;1r}3m(k.R.41){1e\'76\':1e\'w\':1e\'5F\':2z.O+=1I.Z-4p;1r}1I.W=4W;1I.Z=4p}if(2z.Q<k.R.1A.1k.7h){4W=1I.W+2z.Q-k.R.1A.1k.7h;2z.Q=k.R.1A.1k.7h;if(k.R.1A.1k.4v){4p=4W/k.R.1A.1k.4v;3m(k.R.41){1e\'76\':1e\'w\':1e\'5F\':2z.O+=1I.Z-4p;1r}1I.Z=4p}1I.W=4W}if(2z.O<k.R.1A.1k.70){4p=1I.Z+2z.O-k.R.1A.1k.70;2z.O=k.R.1A.1k.70;if(k.R.1A.1k.4v){4W=4p*k.R.1A.1k.4v;3m(k.R.41){1e\'n\':1e\'76\':1e\'at\':2z.Q+=1I.W-4W;1r}1I.W=4W}1I.Z=4p}if(2z.Q+1I.W>k.R.1A.1k.8g){1I.W=k.R.1A.1k.8g-2z.Q;if(k.R.1A.1k.4v){1I.Z=1I.W/k.R.1A.1k.4v}}if(2z.O+1I.Z>k.R.1A.1k.8h){1I.Z=k.R.1A.1k.8h-2z.O;if(k.R.1A.1k.4v){1I.W=1I.Z*k.R.1A.1k.4v}}D 6p=I;if(k.R.1A.1k.f7){6p=k.R.1A.1k.f7.1D(k.R.1A,[1I,2z]);if(6p){if(6p.1q){k.23(1I,6p.1q)}if(6p.Y){k.23(2z,6p.Y)}}}8d=k.R.1A.14;8d.O=2z.O+\'U\';8d.Q=2z.Q+\'U\';8d.Z=1I.Z+\'U\';8d.W=1I.W+\'U\';E I},2r:u(M){if(!M||!M.3Z||M.3Z.1K!=7M){E}E q.1E(u(){D el=q;el.1k=M;el.1k.av=M.av||10;el.1k.8c=M.8c||10;el.1k.6x=M.6x||6P;el.1k.8b=M.8b||6P;el.1k.7h=M.7h||-aC;el.1k.70=M.70||-aC;el.1k.8h=M.8h||6P;el.1k.8g=M.8g||6P;d6=k(el).B(\'Y\');if(!(d6==\'2s\'||d6==\'1P\')){el.14.Y=\'2s\'}fS=/n|at|e|fj|s|5F|w|76/g;24(i in el.1k.3Z){if(i.6c().d5(fS)!=S){if(el.1k.3Z[i].1K==b0){3v=k(el.1k.3Z[i]);if(3v.1N()>0){el.1k.3Z[i]=3v.K(0)}}if(el.1k.3Z[i].4Y){el.1k.3Z[i].1A=el;el.1k.3Z[i].41=i;k(el.1k.3Z[i]).1J(\'5v\',k.R.26)}}}if(el.1k.5S){if(2g el.1k.5S===\'4V\'){aV=k(el.1k.5S);if(aV.1N()>0){aV.1E(u(){q.d0=el});aV.1J(\'5v\',k.R.9a)}}P if(el.1k.5S==1b){k(q).1J(\'5v\',k.R.9a)}}})},4U:u(){E q.1E(u(){D el=q;24(i in el.1k.3Z){el.1k.3Z[i].1A=S;el.1k.3Z[i].41=S;k(el.1k.3Z[i]).3q(\'5v\',k.R.26)}if(el.1k.5S){if(2g el.1k.5S===\'4V\'){3v=k(el.1k.5S);if(3v.1N()>0){3v.3q(\'5v\',k.R.9a)}}P if(el.1k.5S==1b){k(q).3q(\'5v\',k.R.9a)}}el.1k=S})}};k.fn.23({hz:k.R.2r,hs:k.R.4U});k.2C=S;k.7n=I;k.3k=S;k.7o=[];k.9v=u(e){D 3K=e.7L||e.7K||-1;if(3K==17||3K==16){k.7n=1b}};k.9u=u(e){k.7n=I};k.dL=u(e){q.f.1s=k.1a.4a(e);q.f.1M=k.23(k.1a.3w(q),k.1a.2o(q));q.f.3e=k.1a.6z(q);q.f.1s.x-=q.f.1M.x;q.f.1s.y-=q.f.1M.y;k(q).1S(k.2C.K(0));if(q.f.hc)k.2C.2R(q.f.hc).B(\'19\',\'2B\');k.2C.B({19:\'2B\',Z:\'2P\',W:\'2P\'});if(q.f.o){k.2C.B(\'1G\',q.f.o)}k.3k=q;k.96=I;k.7o=[];q.f.el.1E(u(){q.1M={x:q.8t+(q.4Z&&!k.3a.7I?T(q.4Z.5b)||0:0)+(k.3k.3c||0),y:q.8G+(q.4Z&&!k.3a.7I?T(q.4Z.4S)||0:0)+(k.3k.3d||0),1C:q.4c,hb:q.5W};if(q.s==1b){if(k.7n==I){q.s=I;k(q).4i(k.3k.f.7j)}P{k.96=1b;k.7o[k.7o.1g]=k.1p(q,\'id\')}}});k.am.1D(q,[e]);k(1h).1J(\'3D\',k.am).1J(\'5P\',k.cX);E I};k.am=u(e){if(!k.3k)E;k.fd.1D(k.3k,[e])};k.fd=u(e){if(!k.3k)E;D 1s=k.1a.4a(e);D 3e=k.1a.6z(k.3k);1s.x+=3e.l-q.f.3e.l-q.f.1M.x;1s.y+=3e.t-q.f.3e.t-q.f.1M.y;D 93=18.3L(1s.x,q.f.1s.x);D 5F=18.3L(18.3S(1s.x-q.f.1s.x),18.3S(q.f.3e.w-93));D 99=18.3L(1s.y,q.f.1s.y);D 9g=18.3L(18.3S(1s.y-q.f.1s.y),18.3S(q.f.3e.h-99));if(q.3d>0&&1s.y-20<q.3d){D 3X=18.3L(3e.t,10);99-=3X;9g+=3X;q.3d-=3X}P if(q.3d+q.f.1M.h<q.f.3e.h&&1s.y+20>q.3d+q.f.1M.h){D 3X=18.3L(q.f.3e.h-q.3d,10);q.3d+=3X;if(q.3d!=3e.t)9g+=3X}if(q.3c>0&&1s.x-20<q.3c){D 3X=18.3L(3e.l,10);93-=3X;5F+=3X;q.3c-=3X}P if(q.3c+q.f.1M.w<q.f.3e.w&&1s.x+20>q.3c+q.f.1M.w){D 3X=18.3L(q.f.3e.w-q.3c,10);q.3c+=3X;if(q.3c!=3e.l)5F+=3X}k.2C.B({O:93+\'U\',Q:99+\'U\',Z:5F+\'U\',W:9g+\'U\'});k.2C.l=93+q.f.3e.l;k.2C.t=99+q.f.3e.t;k.2C.r=k.2C.l+5F;k.2C.b=k.2C.t+9g;k.96=I;q.f.el.1E(u(){aw=k.7o.3J(k.1p(q,\'id\'));if(!(q.1M.x>k.2C.r||(q.1M.x+q.1M.1C)<k.2C.l||q.1M.y>k.2C.b||(q.1M.y+q.1M.hb)<k.2C.t)){k.96=1b;if(q.s!=1b){q.s=1b;k(q).2R(k.3k.f.7j)}if(aw!=-1){q.s=I;k(q).4i(k.3k.f.7j)}}P if((q.s==1b)&&(aw==-1)){q.s=I;k(q).4i(k.3k.f.7j)}P if((!q.s)&&(k.7n==1b)&&(aw!=-1)){q.s=1b;k(q).2R(k.3k.f.7j)}});E I};k.cX=u(e){if(!k.3k)E;k.g0.1D(k.3k,[e])};k.g0=u(e){k(1h).3q(\'3D\',k.am).3q(\'5P\',k.cX);if(!k.3k)E;k.2C.B(\'19\',\'1o\');if(q.f.hc)k.2C.4i(q.f.hc);k.3k=I;k(\'2e\').1S(k.2C.K(0));if(k.96==1b){if(q.f.98)q.f.98(k.cJ(k.1p(q,\'id\')))}P{if(q.f.9d)q.f.9d(k.cJ(k.1p(q,\'id\')))}k.7o=[]};k.cJ=u(s){D h=\'\';D o=[];if(a=k(\'#\'+s)){a.K(0).f.el.1E(u(){if(q.s==1b){if(h.1g>0){h+=\'&\'}h+=s+\'[]=\'+k.1p(q,\'id\');o[o.1g]=k.1p(q,\'id\')}})}E{7l:h,o:o}};k.fn.gZ=u(o){if(!k.2C){k(\'2e\',1h).1S(\'<22 id="2C"></22>\').1J(\'7B\',k.9v).1J(\'6y\',k.9u);k.2C=k(\'#2C\');k.2C.B({Y:\'1P\',19:\'1o\'});if(1X.2k){k(\'2e\',1h).1J(\'7B\',k.9v).1J(\'6y\',k.9u)}P{k(1h).1J(\'7B\',k.9v).1J(\'6y\',k.9u)}}if(!o){o={}}E q.1E(u(){if(q.eP)E;q.eP=1b;q.f={a:o.3C,o:o.1G?2m(o.1G):I,7j:o.eS?o.eS:I,hc:o.58?o.58:I,98:o.98?o.98:I,9d:o.9d?o.9d:I};q.f.el=k(\'.\'+o.3C);k(q).1J(\'5v\',k.dL).B(\'Y\',\'2s\')})};k.3b={bM:1,eH:u(3t){D 3t=3t;E q.1E(u(){q.4z.6s.1E(u(ab){k.3b.5c(q,3t[ab])})})},K:u(){D 3t=[];q.1E(u(cL){if(q.bI){3t[cL]=[];D C=q;D 1q=k.1a.2o(q);q.4z.6s.1E(u(ab){D x=q.8t;D y=q.8G;92=T(x*2a/(1q.w-q.4c));91=T(y*2a/(1q.h-q.5W));3t[cL][ab]=[92||0,91||0,x||0,y||0]})}});E 3t},ct:u(C){C.A.fu=C.A.28.w-C.A.1B.1C;C.A.fw=C.A.28.h-C.A.1B.hb;if(C.9r.4z.bC){9Z=C.9r.4z.6s.K(C.bF+1);if(9Z){C.A.28.w=(T(k(9Z).B(\'O\'))||0)+C.A.1B.1C;C.A.28.h=(T(k(9Z).B(\'Q\'))||0)+C.A.1B.hb}9Q=C.9r.4z.6s.K(C.bF-1);if(9Q){D cU=T(k(9Q).B(\'O\'))||0;D cH=T(k(9Q).B(\'O\'))||0;C.A.28.x+=cU;C.A.28.y+=cH;C.A.28.w-=cU;C.A.28.h-=cH}}C.A.g7=C.A.28.w-C.A.1B.1C;C.A.eC=C.A.28.h-C.A.1B.hb;if(C.A.2O){C.A.gx=((C.A.28.w-C.A.1B.1C)/C.A.2O)||1;C.A.gy=((C.A.28.h-C.A.1B.hb)/C.A.2O)||1;C.A.fU=C.A.g7/C.A.2O;C.A.fH=C.A.eC/C.A.2O}C.A.28.dx=C.A.28.x-C.A.2c.x;C.A.28.dy=C.A.28.y-C.A.2c.y;k.11.1c.B(\'9b\',\'ad\')},3H:u(C,x,y){if(C.A.2O){fE=T(x/C.A.fU);92=fE*2a/C.A.2O;ft=T(y/C.A.fH);91=ft*2a/C.A.2O}P{92=T(x*2a/C.A.fu);91=T(y*2a/C.A.fw)}C.A.b3=[92||0,91||0,x||0,y||0];if(C.A.3H)C.A.3H.1D(C,C.A.b3)},eI:u(2k){3K=2k.7L||2k.7K||-1;3m(3K){1e 35:k.3b.5c(q.3U,[ae,ae]);1r;1e 36:k.3b.5c(q.3U,[-ae,-ae]);1r;1e 37:k.3b.5c(q.3U,[-q.3U.A.gx||-1,0]);1r;1e 38:k.3b.5c(q.3U,[0,-q.3U.A.gy||-1]);1r;1e 39:k.3b.5c(q.3U,[q.3U.A.gx||1,0]);1r;1e 40:k.11.5c(q.3U,[0,q.3U.A.gy||1]);1r}},5c:u(C,Y){if(!C.A){E}C.A.1B=k.23(k.1a.3w(C),k.1a.2o(C));C.A.2c={x:T(k.B(C,\'O\'))||0,y:T(k.B(C,\'Q\'))||0};C.A.4n=k.B(C,\'Y\');if(C.A.4n!=\'2s\'&&C.A.4n!=\'1P\'){C.14.Y=\'2s\'}k.11.c5(C);k.3b.ct(C);dx=T(Y[0])||0;dy=T(Y[1])||0;2v=C.A.2c.x+dx;2q=C.A.2c.y+dy;if(C.A.2O){3y=k.11.c7.1D(C,[2v,2q,dx,dy]);if(3y.1K==7M){dx=3y.dx;dy=3y.dy}2v=C.A.2c.x+dx;2q=C.A.2c.y+dy}3y=k.11.ce.1D(C,[2v,2q,dx,dy]);if(3y&&3y.1K==7M){dx=3y.dx;dy=3y.dy}2v=C.A.2c.x+dx;2q=C.A.2c.y+dy;if(C.A.5i&&(C.A.3H||C.A.2Z)){k.3b.3H(C,2v,2q)}2v=!C.A.1O||C.A.1O==\'4j\'?2v:C.A.2c.x||0;2q=!C.A.1O||C.A.1O==\'49\'?2q:C.A.2c.y||0;C.14.O=2v+\'U\';C.14.Q=2q+\'U\'},2r:u(o){E q.1E(u(){if(q.bI==1b||!o.3C||!k.1a||!k.11||!k.1x){E}5x=k(o.3C,q);if(5x.1N()==0){E}D 4N={2p:\'94\',5i:1b,3H:o.3H&&o.3H.1K==2A?o.3H:S,2Z:o.2Z&&o.2Z.1K==2A?o.2Z:S,3v:q,1G:o.1G||I};if(o.2O&&T(o.2O)){4N.2O=T(o.2O)||1;4N.2O=4N.2O>0?4N.2O:1}if(5x.1N()==1)5x.7t(4N);P{k(5x.K(0)).7t(4N);4N.3v=S;5x.7t(4N)}5x.7B(k.3b.eI);5x.1p(\'bM\',k.3b.bM++);q.bI=1b;q.4z={};q.4z.er=4N.er;q.4z.2O=4N.2O;q.4z.6s=5x;q.4z.bC=o.bC?1b:I;bZ=q;bZ.4z.6s.1E(u(2N){q.bF=2N;q.9r=bZ});if(o.3t&&o.3t.1K==7F){24(i=o.3t.1g-1;i>=0;i--){if(o.3t[i].1K==7F&&o.3t[i].1g==2){el=q.4z.6s.K(i);if(el.4Y){k.3b.5c(el,o.3t[i])}}}}})}};k.fn.23({hN:k.3b.2r,hS:k.3b.eH,hG:k.3b.K});k.2u={5I:[],eg:u(){q.5B();X=q.31;id=k.1p(X,\'id\');if(k.2u.5I[id]!=S){1X.5T(k.2u.5I[id])}1z=X.L.3u+1;if(X.L.1Q.1g<1z){1z=1}1Q=k(\'1T\',X.L.5u);X.L.3u=1z;if(1Q.1N()>0){1Q.7a(X.L.3W,k.2u.95)}},dp:u(){q.5B();X=q.31;id=k.1p(X,\'id\');if(k.2u.5I[id]!=S){1X.5T(k.2u.5I[id])}1z=X.L.3u-1;1Q=k(\'1T\',X.L.5u);if(1z<1){1z=X.L.1Q.1g}X.L.3u=1z;if(1Q.1N()>0){1Q.7a(X.L.3W,k.2u.95)}},2I:u(c){X=1h.9e(c);if(X.L.6o){1z=X.L.3u;7d(1z==X.L.3u){1z=1+T(18.6o()*X.L.1Q.1g)}}P{1z=X.L.3u+1;if(X.L.1Q.1g<1z){1z=1}}1Q=k(\'1T\',X.L.5u);X.L.3u=1z;if(1Q.1N()>0){1Q.7a(X.L.3W,k.2u.95)}},go:u(o){D X;if(o&&o.1K==7M){if(o.2b){X=1h.9e(o.2b.X);5N=1X.hn.3h.7C("#");o.2b.6S=S;if(5N.1g==2){1z=T(5N[1]);1Y=5N[1].4E(1z,\'\');if(k.1p(X,\'id\')!=1Y){1z=1}}P{1z=1}}if(o.90){o.90.5B();X=o.90.31.31;id=k.1p(X,\'id\');if(k.2u.5I[id]!=S){1X.5T(k.2u.5I[id])}5N=o.90.3h.7C("#");1z=T(5N[1]);1Y=5N[1].4E(1z,\'\');if(k.1p(X,\'id\')!=1Y){1z=1}}if(X.L.1Q.1g<1z||1z<1){1z=1}X.L.3u=1z;52=k.1a.2o(X);dt=k.1a.aT(X);d9=k.1a.6U(X);if(X.L.3z){X.L.3z.o.B(\'19\',\'1o\')}if(X.L.3s){X.L.3s.o.B(\'19\',\'1o\')}if(X.L.2b){y=T(dt.t)+T(d9.t);if(X.L.1U){if(X.L.1U.5A==\'Q\'){y+=X.L.1U.4C.hb}P{52.h-=X.L.1U.4C.hb}}if(X.L.2x){if(X.L.2x&&X.L.2x.6Q==\'Q\'){y+=X.L.2x.4C.hb}P{52.h-=X.L.2x.4C.hb}}if(!X.L.c1){X.L.df=o.2b?o.2b.W:(T(X.L.2b.B(\'W\'))||0);X.L.c1=o.2b?o.2b.Z:(T(X.L.2b.B(\'Z\'))||0)}X.L.2b.B(\'Q\',y+(52.h-X.L.df)/2+\'U\');X.L.2b.B(\'O\',(52.1C-X.L.c1)/2+\'U\');X.L.2b.B(\'19\',\'2B\')}1Q=k(\'1T\',X.L.5u);if(1Q.1N()>0){1Q.7a(X.L.3W,k.2u.95)}P{aj=k(\'a\',X.L.1U.o).K(1z-1);k(aj).2R(X.L.1U.5R);D 1T=12 9s();1T.X=k.1p(X,\'id\');1T.1z=1z-1;1T.2J=X.L.1Q[X.L.3u-1].2J;if(1T.21){1T.6S=S;k.2u.19.1D(1T)}P{1T.6S=k.2u.19}if(X.L.2x){X.L.2x.o.3x(X.L.1Q[1z-1].6L)}}}},95:u(){X=q.31.31;X.L.5u.B(\'19\',\'1o\');if(X.L.1U.5R){aj=k(\'a\',X.L.1U.o).4i(X.L.1U.5R).K(X.L.3u-1);k(aj).2R(X.L.1U.5R)}D 1T=12 9s();1T.X=k.1p(X,\'id\');1T.1z=X.L.3u-1;1T.2J=X.L.1Q[X.L.3u-1].2J;if(1T.21){1T.6S=S;k.2u.19.1D(1T)}P{1T.6S=k.2u.19}if(X.L.2x){X.L.2x.o.3x(X.L.1Q[X.L.3u-1].6L)}},19:u(){X=1h.9e(q.X);if(X.L.3z){X.L.3z.o.B(\'19\',\'1o\')}if(X.L.3s){X.L.3s.o.B(\'19\',\'1o\')}52=k.1a.2o(X);y=0;if(X.L.1U){if(X.L.1U.5A==\'Q\'){y+=X.L.1U.4C.hb}P{52.h-=X.L.1U.4C.hb}}if(X.L.2x){if(X.L.2x&&X.L.2x.6Q==\'Q\'){y+=X.L.2x.4C.hb}P{52.h-=X.L.2x.4C.hb}}hg=k(\'.ca\',X);y=y+(52.h-q.W)/2;x=(52.1C-q.Z)/2;X.L.5u.B(\'Q\',y+\'U\').B(\'O\',x+\'U\').3x(\'<1T 2J="\'+q.2J+\'" />\');X.L.5u.7f(X.L.3W);3s=X.L.3u+1;if(3s>X.L.1Q.1g){3s=1}3z=X.L.3u-1;if(3z<1){3z=X.L.1Q.1g}X.L.3s.o.B(\'19\',\'2B\').B(\'Q\',y+\'U\').B(\'O\',x+2*q.Z/3+\'U\').B(\'Z\',q.Z/3+\'U\').B(\'W\',q.W+\'U\').1p(\'4g\',X.L.1Q[3s-1].6L);X.L.3s.o.K(0).3h=\'#\'+3s+k.1p(X,\'id\');X.L.3z.o.B(\'19\',\'2B\').B(\'Q\',y+\'U\').B(\'O\',x+\'U\').B(\'Z\',q.Z/3+\'U\').B(\'W\',q.W+\'U\').1p(\'4g\',X.L.1Q[3z-1].6L);X.L.3z.o.K(0).3h=\'#\'+3z+k.1p(X,\'id\')},2r:u(o){if(!o||!o.1Z||k.2u.5I[o.1Z])E;D 1Z=k(\'#\'+o.1Z);D el=1Z.K(0);if(el.14.Y!=\'1P\'&&el.14.Y!=\'2s\'){el.14.Y=\'2s\'}el.14.2U=\'2K\';if(1Z.1N()==0)E;el.L={};el.L.1Q=o.1Q?o.1Q:[];el.L.6o=o.6o&&o.6o==1b||I;97=el.f3(\'hL\');24(i=0;i<97.1g;i++){7Z=el.L.1Q.1g;el.L.1Q[7Z]={2J:97[i].2J,6L:97[i].4g||97[i].hD||\'\'}}if(el.L.1Q.1g==0){E}el.L.4n=k.23(k.1a.3w(el),k.1a.2o(el));el.L.b5=k.1a.aT(el);el.L.bu=k.1a.6U(el);t=T(el.L.b5.t)+T(el.L.bu.t);b=T(el.L.b5.b)+T(el.L.bu.b);k(\'1T\',el).bk();el.L.3W=o.3W?o.3W:g5;if(o.5A||o.9f||o.5R){el.L.1U={};1Z.1S(\'<22 6T="g1"></22>\');el.L.1U.o=k(\'.g1\',el);if(o.9f){el.L.1U.9f=o.9f;el.L.1U.o.2R(o.9f)}if(o.5R){el.L.1U.5R=o.5R}el.L.1U.o.B(\'Y\',\'1P\').B(\'Z\',el.L.4n.w+\'U\');if(o.5A&&o.5A==\'Q\'){el.L.1U.5A=\'Q\';el.L.1U.o.B(\'Q\',t+\'U\')}P{el.L.1U.5A=\'4D\';el.L.1U.o.B(\'4D\',b+\'U\')}el.L.1U.aE=o.aE?o.aE:\' \';24(D i=0;i<el.L.1Q.1g;i++){7Z=T(i)+1;el.L.1U.o.1S(\'<a 3h="#\'+7Z+o.1Z+\'" 6T="gR" 4g="\'+el.L.1Q[i].6L+\'">\'+7Z+\'</a>\'+(7Z!=el.L.1Q.1g?el.L.1U.aE:\'\'))}k(\'a\',el.L.1U.o).1J(\'5h\',u(){k.2u.go({90:q})});el.L.1U.4C=k.1a.2o(el.L.1U.o.K(0))}if(o.6Q||o.9c){el.L.2x={};1Z.1S(\'<22 6T="dn">&7k;</22>\');el.L.2x.o=k(\'.dn\',el);if(o.9c){el.L.2x.9c=o.9c;el.L.2x.o.2R(o.9c)}el.L.2x.o.B(\'Y\',\'1P\').B(\'Z\',el.L.4n.w+\'U\');if(o.6Q&&o.6Q==\'Q\'){el.L.2x.6Q=\'Q\';el.L.2x.o.B(\'Q\',(el.L.1U&&el.L.1U.5A==\'Q\'?el.L.1U.4C.hb+t:t)+\'U\')}P{el.L.2x.6Q=\'4D\';el.L.2x.o.B(\'4D\',(el.L.1U&&el.L.1U.5A==\'4D\'?el.L.1U.4C.hb+b:b)+\'U\')}el.L.2x.4C=k.1a.2o(el.L.2x.o.K(0))}if(o.9D){el.L.3s={9D:o.9D};1Z.1S(\'<a 3h="#2\'+o.1Z+\'" 6T="eY">&7k;</a>\');el.L.3s.o=k(\'.eY\',el);el.L.3s.o.B(\'Y\',\'1P\').B(\'19\',\'1o\').B(\'2U\',\'2K\').B(\'4A\',\'eR\').2R(el.L.3s.9D);el.L.3s.o.1J(\'5h\',k.2u.eg)}if(o.9o){el.L.3z={9o:o.9o};1Z.1S(\'<a 3h="#0\'+o.1Z+\'" 6T="ee">&7k;</a>\');el.L.3z.o=k(\'.ee\',el);el.L.3z.o.B(\'Y\',\'1P\').B(\'19\',\'1o\').B(\'2U\',\'2K\').B(\'4A\',\'eR\').2R(el.L.3z.9o);el.L.3z.o.1J(\'5h\',k.2u.dp)}1Z.bG(\'<22 6T="ca"></22>\');el.L.5u=k(\'.ca\',el);el.L.5u.B(\'Y\',\'1P\').B(\'Q\',\'2P\').B(\'O\',\'2P\').B(\'19\',\'1o\');if(o.2b){1Z.bG(\'<22 6T="dW" 14="19: 1o;"><1T 2J="\'+o.2b+\'" /></22>\');el.L.2b=k(\'.dW\',el);el.L.2b.B(\'Y\',\'1P\');D 1T=12 9s();1T.X=o.1Z;1T.2J=o.2b;if(1T.21){1T.6S=S;k.2u.go({2b:1T})}P{1T.6S=u(){k.2u.go({2b:q})}}}P{k.2u.go({1Z:el})}if(o.cS){fi=T(o.cS)*aC}k.2u.5I[o.1Z]=o.cS?1X.6V(\'k.2u.2I(\\\'\'+o.1Z+\'\\\')\',fi):S}};k.X=k.2u.2r;k.1t={7s:[],5L:{},1c:I,7u:S,26:u(){if(k.11.F==S){E}D 4O,3G,c,cs;k.1t.1c.K(0).3l=k.11.F.A.6R;4O=k.1t.1c.K(0).14;4O.19=\'2B\';k.1t.1c.1B=k.23(k.1a.3w(k.1t.1c.K(0)),k.1a.2o(k.1t.1c.K(0)));4O.Z=k.11.F.A.1B.1C+\'U\';4O.W=k.11.F.A.1B.hb+\'U\';3G=k.1a.cy(k.11.F);4O.5K=3G.t;4O.5z=3G.r;4O.5k=3G.b;4O.5j=3G.l;if(k.11.F.A.46==1b){c=k.11.F.fI(1b);cs=c.14;cs.5K=\'2P\';cs.5z=\'2P\';cs.5k=\'2P\';cs.5j=\'2P\';cs.19=\'2B\';k.1t.1c.5o().1S(c)}k(k.11.F).f5(k.1t.1c.K(0));k.11.F.14.19=\'1o\'},fC:u(e){if(!e.A.44&&k.1x.5r.cQ){if(e.A.3T)e.A.3T.1D(F);k(e).B(\'Y\',e.A.cz||e.A.4n);k(e).aS();k(k.1x.5r).f6(e)}k.1t.1c.4i(e.A.6R).3x(\'&7k;\');k.1t.7u=S;D 4O=k.1t.1c.K(0).14;4O.19=\'1o\';k.1t.1c.f5(e);if(e.A.fx>0){k(e).7f(e.A.fx)}k(\'2e\').1S(k.1t.1c.K(0));D 86=[];D 8q=I;24(D i=0;i<k.1t.7s.1g;i++){D 1j=k.1x.3P[k.1t.7s[i]].K(0);D id=k.1p(1j,\'id\');D 8i=k.1t.8x(id);if(1j.1i.ay!=8i.7l){1j.1i.ay=8i.7l;if(8q==I&&1j.1i.2Z){8q=1j.1i.2Z}8i.id=id;86[86.1g]=8i}}k.1t.7s=[];if(8q!=I&&86.1g>0){8q(86)}},al:u(e,o){if(!k.11.F)E;D 6e=I;D i=0;if(e.1i.el.1N()>0){24(i=e.1i.el.1N();i>0;i--){if(e.1i.el.K(i-1)!=k.11.F){if(!e.5V.b2){if((e.1i.el.K(i-1).1M.y+e.1i.el.K(i-1).1M.hb/2)>k.11.F.A.2q){6e=e.1i.el.K(i-1)}P{1r}}P{if((e.1i.el.K(i-1).1M.x+e.1i.el.K(i-1).1M.1C/2)>k.11.F.A.2v&&(e.1i.el.K(i-1).1M.y+e.1i.el.K(i-1).1M.hb/2)>k.11.F.A.2q){6e=e.1i.el.K(i-1)}}}}}if(6e&&k.1t.7u!=6e){k.1t.7u=6e;k(6e).h5(k.1t.1c.K(0))}P if(!6e&&(k.1t.7u!=S||k.1t.1c.K(0).31!=e)){k.1t.7u=S;k(e).1S(k.1t.1c.K(0))}k.1t.1c.K(0).14.19=\'2B\'},cT:u(e){if(k.11.F==S){E}e.1i.el.1E(u(){q.1M=k.23(k.1a.74(q),k.1a.7G(q))})},8x:u(s){D i;D h=\'\';D o={};if(s){if(k.1t.5L[s]){o[s]=[];k(\'#\'+s+\' .\'+k.1t.5L[s]).1E(u(){if(h.1g>0){h+=\'&\'}h+=s+\'[]=\'+k.1p(q,\'id\');o[s][o[s].1g]=k.1p(q,\'id\')})}P{24(a in s){if(k.1t.5L[s[a]]){o[s[a]]=[];k(\'#\'+s[a]+\' .\'+k.1t.5L[s[a]]).1E(u(){if(h.1g>0){h+=\'&\'}h+=s[a]+\'[]=\'+k.1p(q,\'id\');o[s[a]][o[s[a]].1g]=k.1p(q,\'id\')})}}}}P{24(i in k.1t.5L){o[i]=[];k(\'#\'+i+\' .\'+k.1t.5L[i]).1E(u(){if(h.1g>0){h+=\'&\'}h+=i+\'[]=\'+k.1p(q,\'id\');o[i][o[i].1g]=k.1p(q,\'id\')})}}E{7l:h,o:o}},fF:u(e){if(!e.dq){E}E q.1E(u(){if(!q.5V||!k(e).is(\'.\'+q.5V.3C))k(e).2R(q.5V.3C);k(e).7t(q.5V.A)})},4U:u(){E q.1E(u(){k(\'.\'+q.5V.3C).aS();k(q).dR();q.5V=S;q.fm=S})},2r:u(o){if(o.3C&&k.1a&&k.11&&k.1x){if(!k.1t.1c){k(\'2e\',1h).1S(\'<22 id="e5">&7k;</22>\');k.1t.1c=k(\'#e5\');k.1t.1c.K(0).14.19=\'1o\'}q.do({3C:o.3C,9J:o.9J?o.9J:I,a5:o.a5?o.a5:I,58:o.58?o.58:I,7x:o.7x||o.dC,7y:o.7y||o.fO,cQ:1b,2Z:o.2Z||o.ia,fx:o.fx?o.fx:I,46:o.46?1b:I,6I:o.6I?o.6I:\'cV\'});E q.1E(u(){D A={6N:o.6N?1b:I,ff:6P,1G:o.1G?2m(o.1G):I,6R:o.58?o.58:I,fx:o.fx?o.fx:I,44:1b,46:o.46?1b:I,3v:o.3v?o.3v:S,2p:o.2p?o.2p:S,4o:o.4o&&o.4o.1K==2A?o.4o:I,4m:o.4m&&o.4m.1K==2A?o.4m:I,3T:o.3T&&o.3T.1K==2A?o.3T:I,1O:/49|4j/.48(o.1O)?o.1O:I,6M:o.6M?T(o.6M)||0:I,2V:o.2V?o.2V:I};k(\'.\'+o.3C,q).7t(A);q.fm=1b;q.5V={3C:o.3C,6N:o.6N?1b:I,ff:6P,1G:o.1G?2m(o.1G):I,6R:o.58?o.58:I,fx:o.fx?o.fx:I,44:1b,46:o.46?1b:I,3v:o.3v?o.3v:S,2p:o.2p?o.2p:S,b2:o.b2?1b:I,A:A}})}}};k.fn.23({j3:k.1t.2r,f6:k.1t.fF,iS:k.1t.4U});k.iZ=k.1t.8x;k.2t={6O:S,7b:I,9m:S,6K:u(e){k.2t.7b=1b;k.2t.1Y(e,q,1b)},cq:u(e){if(k.2t.6O!=q)E;k.2t.7b=I;k.2t.2G(e,q)},1Y:u(e,el,7b){if(k.2t.6O!=S)E;if(!el){el=q}k.2t.6O=el;1M=k.23(k.1a.3w(el),k.1a.2o(el));8u=k(el);4g=8u.1p(\'4g\');3h=8u.1p(\'3h\');if(4g){k.2t.9m=4g;8u.1p(\'4g\',\'\');k(\'#eT\').3x(4g);if(3h)k(\'#bL\').3x(3h.4E(\'jh://\',\'\'));P k(\'#bL\').3x(\'\');1c=k(\'#8z\');if(el.4H.3l){1c.K(0).3l=el.4H.3l}P{1c.K(0).3l=\'\'}bo=k.1a.2o(1c.K(0));ga=7b&&el.4H.Y==\'bO\'?\'4D\':el.4H.Y;3m(ga){1e\'Q\':2q=1M.y-bo.hb;2v=1M.x;1r;1e\'O\':2q=1M.y;2v=1M.x-bo.1C;1r;1e\'2L\':2q=1M.y;2v=1M.x+1M.1C;1r;1e\'bO\':k(\'2e\').1J(\'3D\',k.2t.3D);1s=k.1a.4a(e);2q=1s.y+15;2v=1s.x+15;1r;ad:2q=1M.y+1M.hb;2v=1M.x;1r}1c.B({Q:2q+\'U\',O:2v+\'U\'});if(el.4H.54==I){1c.1Y()}P{1c.7f(el.4H.54)}if(el.4H.2Y)el.4H.2Y.1D(el);8u.1J(\'8B\',k.2t.2G).1J(\'5B\',k.2t.cq)}},3D:u(e){if(k.2t.6O==S){k(\'2e\').3q(\'3D\',k.2t.3D);E}1s=k.1a.4a(e);k(\'#8z\').B({Q:1s.y+15+\'U\',O:1s.x+15+\'U\'})},2G:u(e,el){if(!el){el=q}if(k.2t.7b!=1b&&k.2t.6O==el){k.2t.6O=S;k(\'#8z\').7a(1);k(el).1p(\'4g\',k.2t.9m).3q(\'8B\',k.2t.2G).3q(\'5B\',k.2t.cq);if(el.4H.3i)el.4H.3i.1D(el);k.2t.9m=S}},2r:u(M){if(!k.2t.1c){k(\'2e\').1S(\'<22 id="8z"><22 id="eT"></22><22 id="bL"></22></22>\');k(\'#8z\').B({Y:\'1P\',3I:6P,19:\'1o\'});k.2t.1c=1b}E q.1E(u(){if(k.1p(q,\'4g\')){q.4H={Y:/Q|4D|O|2L|bO/.48(M.Y)?M.Y:\'4D\',3l:M.3l?M.3l:I,54:M.54?M.54:I,2Y:M.2Y&&M.2Y.1K==2A?M.2Y:I,3i:M.3i&&M.3i.1K==2A?M.3i:I};D el=k(q);el.1J(\'9z\',k.2t.1Y);el.1J(\'6K\',k.2t.6K)}})}};k.fn.hO=k.2t.2r;k.84={bq:u(e){3K=e.7L||e.7K||-1;if(3K==9){if(1X.2k){1X.2k.bT=1b;1X.2k.c0=I}P{e.aP();e.aW()}if(q.b1){1h.6J.dZ().3g="\\t";q.dV=u(){q.6K();q.dV=S}}P if(q.aF){26=q.5q;2T=q.dN;q.2y=q.2y.hd(0,26)+"\\t"+q.2y.h8(2T);q.aF(26+1,26+1);q.6K()}E I}},4U:u(){E q.1E(u(){if(q.7P&&q.7P==1b){k(q).3q(\'7B\',k.84.bq);q.7P=I}})},2r:u(){E q.1E(u(){if(q.4Y==\'cf\'&&(!q.7P||q.7P==I)){k(q).1J(\'7B\',k.84.bq);q.7P=1b}})}};k.fn.23({j5:k.84.2r,hH:k.84.4U});k.1a={3w:u(e){D x=0;D y=0;D es=e.14;D bP=I;if(k(e).B(\'19\')==\'1o\'){D 5Y=es.3n;D 9q=es.Y;bP=1b;es.3n=\'2K\';es.19=\'2B\';es.Y=\'1P\'}D el=e;7d(el){x+=el.8t+(el.4Z&&!k.3a.7I?T(el.4Z.5b)||0:0);y+=el.8G+(el.4Z&&!k.3a.7I?T(el.4Z.4S)||0:0);el=el.dJ}el=e;7d(el&&el.4Y&&el.4Y.6c()!=\'2e\'){x-=el.3c||0;y-=el.3d||0;el=el.31}if(bP==1b){es.19=\'1o\';es.Y=9q;es.3n=5Y}E{x:x,y:y}},7G:u(el){D x=0,y=0;7d(el){x+=el.8t||0;y+=el.8G||0;el=el.dJ}E{x:x,y:y}},2o:u(e){D w=k.B(e,\'Z\');D h=k.B(e,\'W\');D 1C=0;D hb=0;D es=e.14;if(k(e).B(\'19\')!=\'1o\'){1C=e.4c;hb=e.5W}P{D 5Y=es.3n;D 9q=es.Y;es.3n=\'2K\';es.19=\'2B\';es.Y=\'1P\';1C=e.4c;hb=e.5W;es.19=\'1o\';es.Y=9q;es.3n=5Y}E{w:w,h:h,1C:1C,hb:hb}},74:u(el){E{1C:el.4c||0,hb:el.5W||0}},bm:u(e){D h,w,de;if(e){w=e.8W;h=e.8O}P{de=1h.5d;w=1X.d4||aa.d4||(de&&de.8W)||1h.2e.8W;h=1X.cB||aa.cB||(de&&de.8O)||1h.2e.8O}E{w:w,h:h}},6z:u(e){D t=0,l=0,w=0,h=0,iw=0,ih=0;if(e&&e.9N.6c()!=\'2e\'){t=e.3d;l=e.3c;w=e.d7;h=e.d2;iw=0;ih=0}P{if(1h.5d){t=1h.5d.3d;l=1h.5d.3c;w=1h.5d.d7;h=1h.5d.d2}P if(1h.2e){t=1h.2e.3d;l=1h.2e.3c;w=1h.2e.d7;h=1h.2e.d2}iw=aa.d4||1h.5d.8W||1h.2e.8W||0;ih=aa.cB||1h.5d.8O||1h.2e.8O||0}E{t:t,l:l,w:w,h:h,iw:iw,ih:ih}},cy:u(e,7N){D el=k(e);D t=el.B(\'5K\')||\'\';D r=el.B(\'5z\')||\'\';D b=el.B(\'5k\')||\'\';D l=el.B(\'5j\')||\'\';if(7N)E{t:T(t)||0,r:T(r)||0,b:T(b)||0,l:T(l)};P E{t:t,r:r,b:b,l:l}},aT:u(e,7N){D el=k(e);D t=el.B(\'5M\')||\'\';D r=el.B(\'5U\')||\'\';D b=el.B(\'5n\')||\'\';D l=el.B(\'4X\')||\'\';if(7N)E{t:T(t)||0,r:T(r)||0,b:T(b)||0,l:T(l)};P E{t:t,r:r,b:b,l:l}},6U:u(e,7N){D el=k(e);D t=el.B(\'4S\')||\'\';D r=el.B(\'5O\')||\'\';D b=el.B(\'5Q\')||\'\';D l=el.B(\'5b\')||\'\';if(7N)E{t:T(t)||0,r:T(r)||0,b:T(b)||0,l:T(l)||0};P E{t:t,r:r,b:b,l:l}},4a:u(2k){D x=2k.hT||(2k.gM+(1h.5d.3c||1h.2e.3c))||0;D y=2k.ki||(2k.iQ+(1h.5d.3d||1h.2e.3d))||0;E{x:x,y:y}},cI:u(4R,cx){cx(4R);4R=4R.7c;7d(4R){k.1a.cI(4R,cx);4R=4R.hQ}},h7:u(4R){k.1a.cI(4R,u(el){24(D 1p in el){if(2g el[1p]===\'u\'){el[1p]=S}}})},hV:u(el,1O){D 5l=k.1a.6z();D b6=k.1a.2o(el);if(!1O||1O==\'49\')k(el).B({Q:5l.t+((18.3r(5l.h,5l.ih)-5l.t-b6.hb)/2)+\'U\'});if(!1O||1O==\'4j\')k(el).B({O:5l.l+((18.3r(5l.w,5l.iw)-5l.l-b6.1C)/2)+\'U\'})},hW:u(el,dk){D 1Q=k(\'1T[@2J*="8X"]\',el||1h),8X;1Q.1E(u(){8X=q.2J;q.2J=dk;q.14.5E="9n:9w.9y.hE(2J=\'"+8X+"\')"})}};[].3J||(7F.hF.3J=u(v,n){n=(n==S)?0:n;D m=q.1g;24(D i=n;i<m;i++)if(q[i]==v)E i;E-1});',62,1293,'||||||||||||||||||||jQuery||||||this||||function||||||dragCfg|css|elm|var|return|dragged|easing|speed|false|callback|get|ss|options|iAuto|left|else|top|iResize|null|parseInt|px|oldStyle|height|slideshow|position|width||iDrag|new||style||||Math|display|iUtil|true|helper|subject|case|autoCFG|length|document|dropCfg|iEL|resizeOptions|carouselCfg|duration|interfaceFX|none|attr|sizes|break|pointer|iSort|type|ImageBox|queue|iDrop|iAutoscroller|slide|resizeElement|oC|wb|apply|each|fisheyeCfg|opacity|delta|newSizes|bind|constructor|custom|pos|size|axis|absolute|images|items|append|img|slideslinks|255|firstNum|window|show|container||complete|div|extend|for||start||cont|elsToScroll|100|loader|oR||body|elem|typeof|selectedItem|oldP|props|event|accordionCfg|parseFloat|field|getSize|containment|ny|build|relative|iTooltip|islideshow|nx|tp|slideCaption|value|newPosition|Function|block|selectHelper|step|border|itemWidth|hide|dequeue|timer|src|hidden|right|limit|nr|fractions|0px|PI|addClass|direction|end|overflow|cursorAt|result|parentData|onShow|onChange|to|parentNode|||||||||browser|iSlider|scrollLeft|scrollTop|scr|transferHelper|text|href|onHide|pre|selectdrug|className|switch|visibility|item|wrapper|unbind|max|nextslide|values|currentslide|handle|getPosition|html|newCoords|prevslide|iframe|iExpander|accept|mousemove|canvas|createElement|margins|onSlide|zIndex|indexOf|pressedKey|min|valueToAdd|multipleSeparator|pageSize|zones|highlighted|toggle|abs|onStop|dragElem|times|fadeDuration|diff|dhs|handlers||resizeDirection||vp|so|distance|ghosting||test|vertically|getPointer|startTop|offsetWidth|subjectValue|lastSuggestion|DropOutDirectiont|title|wrs|removeClass|horizontally|startLeft|out|onDrag|oP|onStart|nWidth|percent|down|ifxFirstDisplay|msie|iteration|ratio|clear|color|lastValue|slideCfg|fontSize|currentPointer|dimm|bottom|replace|up|prevImage|tooltipCFG|rel|els|fxCheckTag|context|nextImage|params|shs|fieldData|elToScroll|nodeEl|borderTopWidth|chunks|destroy|string|nHeight|paddingLeft|tagName|currentStyle||halign|slidePos|onclick|delay||containerW|from|helperclass|endLeft|endTop|borderLeftWidth|dragmoveBy|documentElement|dhe|newStyles|clonedEl|click|si|marginLeft|marginBottom|clientScroll|OpenClose|paddingBottom|empty|toWrite|selectionStart|overzone|toAdd|onDragModifier|holder|mousedown|animate|toDrag|cnt|marginRight|linksPosition|blur|getAttribute|hight|filter|sw|zoney|cos|slideshows|zonex|marginTop|collected|paddingTop|url|borderRightWidth|mouseup|borderBottomWidth|activeLinkClass|dragHandle|clearInterval|paddingRight|sortCfg|offsetHeight|prop|oldVisibility|styles||BlindDirection|point|fxh|nmp|old|post|currentPanel|onSelect|elementData|grid|pow|toLowerCase|animationHandler|cur|containerH|close|puff|getWidth|currentRel|imageEl|Expander|getHeight|iFisheye|random|newDimensions|itemHeight|reflections|sliders|selRange|wr|orig|margin|maxWidth|keyup|getScroll|captionText|totalImages|128|parseColor|curCSS|outerContainer|Scale|restore|tolerance|selection|focus|caption|snapDistance|revert|current|3000|captionPosition|hpc|onload|class|getBorder|setInterval|oldStyleAttr|rule|rgb|open|minLeft|ActiveXObject|oldDisplay|restoreStyle|getSizeLite||nw|0x||F0|fadeOut|focused|firstChild|while|cssRules|fadeIn|Date|minTop|backgroundColor|sc|nbsp|hash|captionEl|selectKeyHelper|selectCurrent|newTop|init|newLeft|changed|Draggable|inFrontOf|efx|139|onHover|onOut|getTime|np|keydown|split|radiusY|increment|Array|getPositionLite|selectClass|opera|onHighlight|keyCode|charCode|Object|toInteger|frameClass|hasTabsEnabled|zonew|user|zoneh|positionItems|onClick|oD|scrollIntoView|accordionPos|proximity|indic||data|containerSize|sin|iTTabs||ts|ImageBoxPrevImage|ImageBoxNextImage|imageSrc|newPos|maxHeight|minHeight|elS|activeClass|panels|maxBottom|maxRight|ser|move|opened|bounceout|animationInProgress|overlay|stop|reflectionSize|fnc|classname|insideParent|offsetLeft|jEl|nRy|pr|serialize|nRx|tooltipHelper|cssSides|mouseout|select|count|namedColors|padding|offsetTop|directionIncrement|parentEl|400|dir|expand|createTextNode|finishedPre|clientHeight|li|applyOn|content|contBorders|object|parentBorders|alpha|clientWidth|png|gallery|fontWeight|link|yproc|xproc|sx|parent|showImage|selectedone|imgs|onselect|sy|startDrag|cursor|captionClass|onselectstop|getElementById|linksClass|sh|ul|onActivate|isDroppable|nextEl|onDrop|oldTitle|progid|prevslideClass|prevEl|oldPosition|SliderContainer|Image|linkRel|selectKeyUp|selectKeyDown|DXImageTransform|inCache|Microsoft|mouseover|dragstop|diffX|211|nextslideClass|prot|auto|dEs|hidehelper|isDraggable|activeclass|unit|DoFold|unfold|nodeName|startTime|buildWrapper|prev|1px|oldColor|setTimeout|ScrollTo|st|sl|cssText|9999|next|destroyWrapper|opt|diffHeight|diffWidth|exec|hoverclass|image|blind|borderColor|sideEnd|self|key||default|2000|styleSheets|getValues|192|diffY|lnk|reflexions|checkhover|selectcheck|maxRotation|ImageBoxOuterContainer|gradient|panelHeight|childs|headers|ne|hideImage|minWidth|iIndex|itemsText|os|side|iCarousel|5625|1000|itemMinWidth|linksSeparator|setSelectionRange|protectRotation|positionContainer|posx|hoverClass|valToAdd|minchars|helperClass|source|nextImageEl|preventDefault|multiple|headerSelector|DraggableDestroy|getPadding|autofill|handleEl|stopPropagation|prevImageEl|getFieldValues|panelSelector|String|createTextRange|floats|lastSi|shrink|oPad|windowSize|paddingLeftSize|angle|paddingY|paddingX|RegExp|borderRightSize|floatVal|firstStep|pulse|Pulsate|Color|rotationSpeed|paddingBottomSize|remove|parseStyle|getClient|Number|helperSize|bounce|doTab||zoom|borderLeftSize|oBor|paddingRightSize|borderTopSize|paddingTopSize|stopAnim|pValue|borderBottomSize|extraWidth|restricted|autoSize|unselectable|SliderIteration|prepend|clearTimeout|isSlider|oneIsSortable|applyOnHover|tooltipURL|tabindex|draginit|mouse|restoreStyles|sliderSize|sliderPos|parentPos|cancelBubble|autocomplete|inputWidth|oldBorder|dragmove|clnt|sliderEl|returnValue|loaderWidth|idsa|letterSpacing|pause|getContainment|fade|snapToGrid|linear|10000|slideshowHolder|asin|cssSidesEnd|borderWidth|fitToContainer|TEXTAREA|entities|INPUT|spacer|writeItems|character|currentValue|paddings|169|oldFloat|borders|hidefocused|bouncein||modifyContainer|transparent|center|loadImage|func|getMargins|initialPosition|textAlign|innerHeight|Alpha|no|captionImages|closeEl|shake|prevTop|traverseDOM|Selectserialize|stopDrag|slider|ImageBoxCaption|ImageBoxIframe|300|ImageBoxOverlay|sortable|moveDrag|autoplay|measure|prevLeft|intersect|ImageBoxCurrentImage|selectstop|Shake|index|dragEl|keyPressed|scrollHeight|scroll|innerWidth|match|elPosition|scrollWidth|textImage|slideBor|jpg|captionSize|textImageFrom|visible||loaderHeight|ImageBoxCaptionImages||hoverItem|clickItem|emptyGIF||notColor|slideshowCaption|Droppable|goprev|childNodes|autocompleteHelper|autocompleteIframe|slidePad|fit|165|clientSize|||fontFamily|colorCssProps|elType|onhover|cssProps|expanderHelper|boxModel|itransferTo|keypress|moveStart|offsetParent|Width|selectstart|fxe|selectionEnd|checkCache|fontStyle|update|DroppableDestroy|remeasure|fontStretch|fontVariant|onblur|slideshowLoader|htmlEntities|wordSpacing|createRange|224|KhtmlUserSelect||closeHTML|on|sortHelper|245|userSelect|dragHelper|hrefAttr|dragstart|107|loaderSRC|highlight|slideshowPrevslide||gonext||styleFloat|frameborder|javascript|||relAttr|wid|scrolling||onslide|||listStyle|imageTypes|insertBefore|999|textDecoration|sqrt|140|230|maxy|240|ImageBoxContainer|doScroll|interval|set|dragmoveByKey|protect|ImageBoxCaptionText|144|ImageBoxLoader|off|checkdrop|isSelectable|hlt|30px|selectedclass|tooltipTitle|imagebox|shc|overlayOpacity|selRange2|slideshowNextSlide|gif|getSelectionStart|360|iAccordion|getElementsByTagName|iBounce|after|SortableAddItem|onResize|150|itemZIndex|grow|getHeightMinMax|borderTopUnit|selectcheckApply|borderRightUnit|zindex|fontUnit|togglehor|time|se|parte|easeout|isSortable||SlideInUp|fold|SlideOutUp|rgba|addColorStop|yfrac|containerMaxx|interfaceColorFX|containerMaxy||leftUnit|mousex||radiusX|check|getContext|xfrac|addItem|topUnit|fracH|cloneNode|togglever|paddingLeftUnit|borderBottomUnit|finish|onDragStop|onout|posy|isFunction|oldOverflow|directions|vertical|fracW|fakeAccordionClass|parts|fadeTo|inputValue|xml|selectstopApply|slideshowLinks|onDragStart|BlindUp|paddingTopUnit|500|trim|maxx|borderLeftUnit|paddingRightUnit|filteredPosition|BlindDown|paddingBottomUnit|horizontal|valign|find|ImageBoxClose|onselectstart|mozUserSelect|ondragstart|scale|110|globalCompositeOperation|bmp||drawImage|ondrop|password|quot||save|starty|jpeg|||number|startx|finishOpacity|hover|recallDroppables|flipv|finishx|destination|khtml|moz|lt|amp|pW|clientX|Accordion|translate|captiontext|elasticin|slideshowLink|fix|elasticout|resize|elasticboth|bounceboth|984375|9375|Selectable|30002|list|625|30001|nodeValue|before|100000|purgeEvents|substr|duplicate|moveEnd|||substring|success|param|par|array|Fisheye|name|POST|ajax|easeboth|location|fromHandler|collapse|MozUserSelect||ResizableDestroy|rotationTimer|fillRect|fill|WebKit|fillStyle|createLinearGradient|Resizable|navigator|appVersion|lineHeigt|alt|AlphaImageLoader|prototype|SliderGetValues|DisableTabs|Carousel|load|easein|IMG|200|Slider|ToolTip|wh|nextSibling|Autocomplete|SliderSetValues|pageX|float|centerEl|fixPNG|isNaN|dotted|dashed|stopAll|Left|outlineColor|Top|Right|Bottom|solid|double|selectorText|rules|onchange|SlideToggleRight|SlideOutRight||borderStyle||TransferTo||groove|ridge|inset|outset|borderTopColor||borderRightColor|olive|navy|orange||pink|203|maroon||magenta|182|193|lightyellow|lime|purple|red|outlineOffset|outlineWidth|borderBottomColor|borderLeftColor|lineHeight|loading|silver|white|yellow|Showing|100000000|SlideInRight|clientY|Highlight|SortableDestroy|CloseVertically|CloseHorizontally|FoldToggle|UnFold|SlideInDown|SlideToggleUp|SortSerialize|Fold|SwitchHorizontally|SwitchVertically|Sortable|scrollTo|EnableTabs|ScrollToAnchors|pt|Puff|OpenVertically|OpenHorizontally|Grow|Shrink|DropToggleRight|DropInRight|BlindToggleHorizontally|BlindRight|http|Bounce|120|BlindLeft|BlindToggleVertically|SlideToggleLeft|SlideOutLeft|toUpperCase|SlideInLeft|SlideToggleDown|SlideOutDown|DropOutLeft|DropInLeft|DropToggleLeft|DropOutRight|DropToggleUp|DropInUp|DropOutDown|DropInDown|DropToggleDown|DropOutUp|lightpink|textIndent|aqua|appendChild|azure|beige|220|last|cssFloat|first|ol|wrapEl|fxWrapper|black|imageLoaded|darkkhaki|darkgreen|189|183|darkmagenta|firstResize|darkgrey|brown|cyan|darkblue|darkcyan|table|form|col|tfoot|colgroup|th|header|thead|tbody|112|Autoexpand|tr|td|script|frame|input|pageY|textarea|button|w_|removeChild|frameset|option|optgroup|meta|darkolivegreen|blue|122|233|green|lightcyan|204|darkviolet|lightgreen|indigo|216|khaki|darksalmon|130|darkred|lightblue|148|173|215|238|fuchsia|gold|darkorchid|153|darkorange|lightgrey'.split('|'),0,{}))
diff --git a/javascript/libs/jquery/packed/ui/effects.blind.packed.js b/javascript/libs/jquery/packed/ui/effects.blind.packed.js
new file mode 100644
index 0000000..932387c
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.blind.packed.js
@@ -0,0 +1,2 @@
+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}('(3(A){A.2.z=3(B){y d.x(3(){1 D=A(d),C=["w","v","u"];1 H=A.2.t(D,B.6.s||"5");1 G=B.6.r||"8";A.2.q(D,C);D.7();1 J=A.2.p(D).a({o:"n"});1 E=(G=="8")?"c":"b";1 I=(G=="8")?J.c():J.b();4(H=="7"){J.a(E,0)}1 F={};F[E]=H=="7"?I:0;J.m(F,B.l,B.6.k,3(){4(H=="5"){D.5()}A.2.j(D,C);A.2.i(D);4(B.9){B.9.h(D[0],g)}D.f()})})}})(e)',46,46,'|var|effects|function|if|hide|options|show|vertical|callback|css|width|height|this|jQuery|dequeue|arguments|apply|removeWrapper|restore|easing|duration|animate|hidden|overflow|createWrapper|save|direction|mode|setMode|left|top|position|queue|return|blind||||||||||'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.bounce.packed.js b/javascript/libs/jquery/packed/ui/effects.bounce.packed.js
new file mode 100644
index 0000000..e2b7d30
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.bounce.packed.js
@@ -0,0 +1,2 @@
+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}('(a(A){A.8.16=a(B){15 e.m(a(){4 E=A(e),K=["14","i","j"];4 J=A.8.13(E,B.6.12||"11");4 M=B.6.10||"k";4 C=B.6.u||Z;4 D=B.6.Y||5;4 G=B.X||W;7(/h|d/.V(J)){K.U("g")}A.8.T(E,K);E.h();A.8.S(E);4 F=(M=="k"||M=="R")?"i":"j";4 O=(M=="k"||M=="j")?"9":"Q";4 C=B.6.u||(F=="i"?E.P({t:s})/3:E.z({t:s})/3);7(J=="h"){E.r("g",0).r(F,O=="9"?-C:C)}7(J=="d"){C=C/(D*2)}7(J!="d"){D--}7(J=="h"){4 H={g:1};H[F]=(O=="9"?"+=":"-=")+C;E.c(H,G/2,B.6.b);C=C/2;D--}y(4 I=0;I<D;I++){4 N={},L={};N[F]=(O=="9"?"-=":"+=")+C;L[F]=(O=="9"?"+=":"-=")+C;E.c(N,G/2,B.6.b).c(L,G/2,B.6.b);C=(J=="d")?C*2:C/2}7(J=="d"){4 H={g:0};H[F]=(O=="9"?"-=":"+=")+C;E.c(H,G/2,B.6.b,a(){E.d();A.8.q(E,K);A.8.p(E);7(B.f){B.f.o(e,n)}})}x{4 N={},L={};N[F]=(O=="9"?"-=":"+=")+C;L[F]=(O=="9"?"+=":"-=")+C;E.c(N,G/2,B.6.b).c(L,G/2,B.6.b,a(){A.8.q(E,K);A.8.p(E);7(B.f){B.f.o(e,n)}})}E.m("w",a(){E.l()});E.l()})}})(v)',62,69,'||||var||options|if|effects|pos|function|easing|animate|hide|this|callback|opacity|show|top|left|up|dequeue|queue|arguments|apply|removeWrapper|restore|css|true|margin|distance|jQuery|fx|else|for|outerWidth||||||||||||||||outerHeight|neg|down|createWrapper|save|push|test|250|duration|times|20|direction|effect|mode|setMode|position|return|bounce'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.clip.packed.js b/javascript/libs/jquery/packed/ui/effects.clip.packed.js
new file mode 100644
index 0000000..79564b0
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.clip.packed.js
@@ -0,0 +1,2 @@
+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}('(4(A){A.1.M=4(B){L 8.j(4(){3 D=A(8),C=["6","l","k","e","f"];3 H=A.1.K(D,B.b.J||"a");3 G=B.b.z||"7";A.1.y(D,C);D.5();A.1.x(D).d({w:"v"});3 E={c:(G=="7")?"f":"e",6:(G=="7")?"l":"k"};3 I=(G=="7")?D.f():D.e();9(H=="5"){D.d(E.c,0);D.d(E.6,I/2)}3 F={};F[E.c]=H=="5"?I:0;F[E.6]=H=="5"?0:I/2;D.u(F,{j:t,i:B.i,h:B.b.h,s:4(){9(H=="a"){D.a()}A.1.r(D,C);A.1.q(D);9(B.g){B.g.p(8,o)}D.n()}})})}})(m)',49,49,'|effects||var|function|show|position|vertical|this|if|hide|options|size|css|width|height|callback|easing|duration|queue|left|top|jQuery|dequeue|arguments|apply|removeWrapper|restore|complete|false|animate|hidden|overflow|createWrapper|save|direction||||||||||mode|setMode|return|clip'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.core.packed.js b/javascript/libs/jquery/packed/ui/effects.core.packed.js
new file mode 100644
index 0000000..850ba73
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.core.packed.js
@@ -0,0 +1,2 @@
+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}('(b(C){C.r=C.r||{};C.14(C.r,{52:b(F,G){1T(d E=0;E<G.1m;E++){8(G[E]!==U){C.2D(F[0],"2C.2B."+G[E],F[0].Q[G[E]])}}},51:b(F,G){1T(d E=0;E<G.1m;E++){8(G[E]!==U){F.k(G[E],C.2D(F[0],"2C.2B."+G[E]))}}},4Z:b(E,F){8(F=="t"){F=E.4Y(":4X")?"1c":"1r"}6 F},4W:b(F,G){d H,E;2A(F[0]){12"1e":H=0;S;12"4V":H=0.5;S;12"2q":H=1;S;2z:H=F[0]/G.2x}2A(F[1]){12"1f":E=0;S;12"4U":E=0.5;S;12"2p":E=1;S;2z:E=F[1]/G.2y}6{x:E,y:H}},4T:b(F){8(F.1v().W("1V")=="1U"){6 F}d E={2y:F.4S({1X:2w}),2x:F.4R({1X:2w}),"2v":F.k("2v")};F.4Q(\'<2u 1V="1U" Q="4P-4O:2c%;4N:1i;4M:4L;1X:0;4K:0"></2u>\');d I=F.1v();8(F.k("R")=="1R"){I.k({R:"1W"});F.k({R:"1W"})}m{d H=j(F.k("1e"),10);8(1S(H)){H="2t"}d G=j(F.k("1f"),10);8(1S(H)){G="2t"}I.k({R:F.k("R"),1e:H,1f:G,4J:F.k("z-4I")}).1c();F.k({R:"1W",1e:0,1f:0})}I.k(E);6 I},4H:b(E){8(E.1v().W("1V")=="1U"){6 E.1v().4G(E)}6 E},4F:b(F,G,E,H){H=H||{};C.1n(G,b(J,I){1u=F.2g(I);8(1u[0]>0){H[I]=1u[0]*E+1u[1]}});6 H},19:b(G,H,J,I){d E=(1d J=="b"?J:(I?I:U));d F=(1d J=="1P"?J:U);6 e.1n(b(){d O={};d M=C(e);d N=M.W("Q")||"";8(1d N=="1P"){N=N["1O"]}8(G.t){M.4E(G.t)?G.p=G.t:G.q=G.t}d K=C.14({},(1t.1s?1t.1s.2s(e,U):e.2r));8(G.q){M.1b(G.q)}8(G.p){M.1a(G.p)}d L=C.14({},(1t.1s?1t.1s.2s(e,U):e.2r));8(G.q){M.1a(G.q)}8(G.p){M.1b(G.p)}1T(d P 4D L){8(1d L[P]!="b"&&L[P]&&P.1H("4C")==-1&&P.1H("1m")==-1&&L[P]!=K[P]&&(P.1Q(/1G/i)||(!P.1Q(/1G/i)&&!1S(j(L[P],10))))&&(K.R!="1R"||(K.R=="1R"&&!P.1Q(/1f|1e|2q|2p/)))){O[P]=L[P]}}M.4B(O,H,F,b(){8(1d C(e).W("Q")=="1P"){C(e).W("Q")["1O"]="";C(e).W("Q")["1O"]=N}m{C(e).W("Q",N)}8(G.q){C(e).1b(G.q)}8(G.p){C(e).1a(G.p)}8(E){E.l(e,g)}})})}});C.V.14({2o:C.V.1c,2n:C.V.1r,2m:C.V.t,2l:C.V.1b,2k:C.V.1a,2i:C.V.2j,1q:b(E,G,F,H){6 C.r[E]?C.r[E].4A(e,{4z:E,4y:G||{},1p:F,1o:H}):U},1c:b(){8(!g[0]||(g[0].17==1N||/(1M|1L|1K)/.1J(g[0]))){6 e.2o.l(e,g)}m{d E=g[1]||{};E["1I"]="1c";6 e.1q.l(e,[g[0],E,g[2]||E.1p,g[3]||E.1o])}},1r:b(){8(!g[0]||(g[0].17==1N||/(1M|1L|1K)/.1J(g[0]))){6 e.2n.l(e,g)}m{d E=g[1]||{};E["1I"]="1r";6 e.1q.l(e,[g[0],E,g[2]||E.1p,g[3]||E.1o])}},t:b(){8(!g[0]||(g[0].17==1N||/(1M|1L|1K)/.1J(g[0]))||(g[0].17==4x)){6 e.2m.l(e,g)}m{d E=g[1]||{};E["1I"]="t";6 e.1q.l(e,[g[0],E,g[2]||E.1p,g[3]||E.1o])}},1b:b(F,E,H,G){6 E?C.r.19.l(e,[{q:F},E,H,G]):e.2l(F)},1a:b(F,E,H,G){6 E?C.r.19.l(e,[{p:F},E,H,G]):e.2k(F)},2j:b(F,E,H,G){6 E?C.r.19.l(e,[{t:F},E,H,G]):e.2i(F)},2h:b(E,G,F,I,H){6 C.r.19.l(e,[{q:G,p:E},F,I,H])},4w:b(){6 e.2h.l(e,g)},2g:b(E){d F=e.k(E),G=[];C.1n(["4v","4u","%","4t"],b(H,I){8(F.1H(I)>0){G=[1l(F),I]}});6 G}});h.1n(["2e","4s","4r","4q","4p","1G","4o"],b(F,E){h.4n.4m[E]=b(G){8(G.4l==0){G.T=D(G.2f,E);G.18=B(G.18)}G.2f.Q[E]="1C("+[c.1F(c.1E(j((G.1D*(G.18[0]-G.T[0]))+G.T[0]),f),0),c.1F(c.1E(j((G.1D*(G.18[1]-G.T[1]))+G.T[1]),f),0),c.1F(c.1E(j((G.1D*(G.18[2]-G.T[2]))+G.T[2]),f),0)].4k(",")+")"}});b B(F){d E;8(F&&F.17==4j&&F.1m==3){6 F}8(E=/1C\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.15(F)){6[j(E[1]),j(E[2]),j(E[3])]}8(E=/1C\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.15(F)){6[1l(E[1])*2.1B,1l(E[2])*2.1B,1l(E[3])*2.1B]}8(E=/#([a-11-Z-9]{2})([a-11-Z-9]{2})([a-11-Z-9]{2})/.15(F)){6[j(E[1],16),j(E[2],16),j(E[3],16)]}8(E=/#([a-11-Z-9])([a-11-Z-9])([a-11-Z-9])/.15(F)){6[j(E[1]+E[1],16),j(E[2]+E[2],16),j(E[3]+E[3],16)]}8(E=/4i\\(0, 0, 0, 0\\)/.15(F)){6 A["1i"]}6 A[h.4h(F).4g()]}b D(G,E){d F;4f{F=h.4e(G,E);8(F!=""&&F!="1i"||h.4d(G,"4c")){S}E="2e"}4b(G=G.4a);6 B(F)}d A={49:[0,f,f],48:[2a,f,f],46:[2d,2d,45],44:[0,0,0],43:[0,0,f],41:[24,42,42],40:[0,f,f],3Z:[0,0,Y],3Y:[0,Y,Y],3X:[1A,1A,1A],3W:[0,2c,0],3V:[3U,3T,2b],3S:[Y,0,Y],3R:[3Q,2b,47],3P:[f,29,0],3O:[3N,50,3M],3L:[Y,0,0],3K:[3J,3I,3H],3G:[3F,0,1k],3E:[f,0,f],3D:[f,3C,0],3B:[0,o,0],3A:[v,0,3z],3y:[2a,28,29],3x:[3w,3v,28],3u:[26,f,f],3t:[27,3s,27],3r:[1k,1k,1k],3q:[f,3p,3o],3n:[f,f,26],3m:[0,f,0],3l:[f,0,f],3k:[o,0,0],3j:[0,0,o],3i:[o,o,0],3h:[f,24,0],3g:[f,1j,3f],3e:[o,0,o],3d:[o,0,o],3c:[f,0,0],3b:[1j,1j,1j],3a:[f,f,f],39:[f,f,0],1i:[f,f,f]};h.u["38"]=h.u["23"];h.14(h.u,{22:"21",23:b(F,G,E,I,H){6 h.u[h.u.22](F,G,E,I,H)},37:b(F,G,E,I,H){6 I*(G/=H)*G+E},21:b(F,G,E,I,H){6-I*(G/=H)*(G-2)+E},36:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G+E}6-I/2*((--G)*(G-2)-1)+E},35:b(F,G,E,I,H){6 I*(G/=H)*G*G+E},34:b(F,G,E,I,H){6 I*((G=G/H-1)*G*G+1)+E},33:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G*G+E}6 I/2*((G-=2)*G*G+2)+E},32:b(F,G,E,I,H){6 I*(G/=H)*G*G*G+E},31:b(F,G,E,I,H){6-I*((G=G/H-1)*G*G*G-1)+E},30:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G*G*G+E}6-I/2*((G-=2)*G*G*G-2)+E},2Z:b(F,G,E,I,H){6 I*(G/=H)*G*G*G*G+E},2Y:b(F,G,E,I,H){6 I*((G=G/H-1)*G*G*G*G+1)+E},2X:b(F,G,E,I,H){8((G/=H/2)<1){6 I/2*G*G*G*G*G+E}6 I/2*((G-=2)*G*G*G*G+2)+E},2W:b(F,G,E,I,H){6-I*c.20(G/H*(c.n/2))+I+E},2V:b(F,G,E,I,H){6 I*c.13(G/H*(c.n/2))+E},2U:b(F,G,E,I,H){6-I/2*(c.20(c.n*G/H)-1)+E},2T:b(F,G,E,I,H){6(G==0)?E:I*c.w(2,10*(G/H-1))+E},2S:b(F,G,E,I,H){6(G==H)?E+I:I*(-c.w(2,-10*G/H)+1)+E},2R:b(F,G,E,I,H){8(G==0){6 E}8(G==H){6 E+I}8((G/=H/2)<1){6 I/2*c.w(2,10*(G-1))+E}6 I/2*(-c.w(2,-10*--G)+2)+E},2Q:b(F,G,E,I,H){6-I*(c.1h(1-(G/=H)*G)-1)+E},2P:b(F,G,E,I,H){6 I*c.1h(1-(G=G/H-1)*G)+E},2O:b(F,G,E,I,H){8((G/=H/2)<1){6-I/2*(c.1h(1-G*G)-1)+E}6 I/2*(c.1h(1-(G-=2)*G)+1)+E},2N:b(F,H,E,L,K){d I=1.X;d J=0;d G=L;8(H==0){6 E}8((H/=K)==1){6 E+L}8(!J){J=K*0.3}8(G<c.1z(L)){G=L;d I=J/4}m{d I=J/(2*c.n)*c.1y(L/G)}6-(G*c.w(2,10*(H-=1))*c.13((H*K-I)*(2*c.n)/J))+E},2M:b(F,H,E,L,K){d I=1.X;d J=0;d G=L;8(H==0){6 E}8((H/=K)==1){6 E+L}8(!J){J=K*0.3}8(G<c.1z(L)){G=L;d I=J/4}m{d I=J/(2*c.n)*c.1y(L/G)}6 G*c.w(2,-10*H)*c.13((H*K-I)*(2*c.n)/J)+L+E},2L:b(F,H,E,L,K){d I=1.X;d J=0;d G=L;8(H==0){6 E}8((H/=K/2)==2){6 E+L}8(!J){J=K*(0.3*1.5)}8(G<c.1z(L)){G=L;d I=J/4}m{d I=J/(2*c.n)*c.1y(L/G)}8(H<1){6-0.5*(G*c.w(2,10*(H-=1))*c.13((H*K-I)*(2*c.n)/J))+E}6 G*c.w(2,-10*(H-=1))*c.13((H*K-I)*(2*c.n)/J)*0.5+L+E},2K:b(F,G,E,J,I,H){8(H==1x){H=1.X}6 J*(G/=I)*G*((H+1)*G-H)+E},2J:b(F,G,E,J,I,H){8(H==1x){H=1.X}6 J*((G=G/I-1)*G*((H+1)*G+H)+1)+E},2I:b(F,G,E,J,I,H){8(H==1x){H=1.X}8((G/=I/2)<1){6 J/2*(G*G*(((H*=(1.1Z))+1)*G-H))+E}6 J/2*((G-=2)*G*(((H*=(1.1Z))+1)*G+H)+2)+E},1Y:b(F,G,E,I,H){6 I-h.u.1w(F,H-G,0,I,H)+E},1w:b(F,G,E,I,H){8((G/=H)<(1/2.v)){6 I*(7.1g*G*G)+E}m{8(G<(2/2.v)){6 I*(7.1g*(G-=(1.5/2.v))*G+0.v)+E}m{8(G<(2.5/2.v)){6 I*(7.1g*(G-=(2.25/2.v))*G+0.2H)+E}m{6 I*(7.1g*(G-=(2.2G/2.v))*G+0.2F)+E}}}},2E:b(F,G,E,I,H){8(G<H/2){6 h.u.1Y(F,G*2,0,I,H)*0.5+E}6 h.u.1w(F,G*2-H,0,I,H)*0.5+I*0.5+E}})})(h)',62,313,'||||||return||if|||function|Math|var|this|255|arguments|jQuery||parseInt|css|apply|else|PI|128|remove|add|effects||toggle|easing|75|pow||||||||||||||||||||style|position|break|start|null|fn|attr|70158|139|F0||fA|case|sin|extend|exec||constructor|end|animateClass|removeClass|addClass|show|typeof|top|left|5625|sqrt|transparent|192|211|parseFloat|length|each|callback|duration|effect|hide|defaultView|document|unit|parent|easeOutBounce|undefined|asin|abs|169|55|rgb|pos|min|max|color|indexOf|mode|test|fast|normal|slow|Number|cssText|object|match|static|isNaN|for|fxWrapper|id|relative|margin|easeInBounce|525|cos|easeOutQuad|def|swing|165||224|144|230|140|240|107|100|245|backgroundColor|elem|cssUnit|morph|_toggleClass|toggleClass|_removeClass|_addClass|__toggle|_hide|_show|right|bottom|currentStyle|getComputedStyle|auto|div|float|true|height|width|default|switch|storage|ec|data|easeInOutBounce|984375|625|9375|easeInOutBack|easeOutBack|easeInBack|easeInOutElastic|easeOutElastic|easeInElastic|easeInOutCirc|easeOutCirc|easeInCirc|easeInOutExpo|easeOutExpo|easeInExpo|easeInOutSine|easeOutSine|easeInSine|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|easeInOutCubic|easeOutCubic|easeInCubic|easeInOutQuad|easeInQuad|jswing|yellow|white|silver|red|violet|purple|203|pink|orange|olive|navy|maroon|magenta|lime|lightyellow|193|182|lightpink|lightgrey|238|lightgreen|lightcyan|216|173|lightblue|khaki|130|indigo|green|215|gold|fuchsia|148|darkviolet|122|150|233|darksalmon|darkred|204|153|darkorchid|darkorange|85|darkolivegreen|darkmagenta|183|189|darkkhaki|darkgreen|darkgrey|darkcyan|darkblue|cyan|brown||blue|black|220|beige||azure|aqua|parentNode|while|body|nodeName|curCSS|do|toLowerCase|trim|rgba|Array|join|state|step|fx|outlineColor|borderTopColor|borderRightColor|borderLeftColor|borderBottomColor|pt|px|em|switchClass|Function|options|method|call|animate|Moz|in|hasClass|setTransition|replaceWith|removeWrapper|index|zIndex|padding|none|border|background|size|font|wrap|outerHeight|outerWidth|createWrapper|center|middle|getBaseline|hidden|is|setMode||restore|save'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.drop.packed.js b/javascript/libs/jquery/packed/ui/effects.drop.packed.js
new file mode 100644
index 0000000..f3b16d2
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.drop.packed.js
@@ -0,0 +1,2 @@
+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}('(5(A){A.4.S=5(B){R a.i(5(){3 E=A(a),D=["Q","e","9","d"];3 I=A.4.P(E,B.6.O||"c");3 H=B.6.N||"9";A.4.M(E,D);E.8();A.4.L(E);3 F=(H=="m"||H=="K")?"e":"9";3 C=(H=="m"||H=="9")?"7":"z";3 J=B.6.y||(F=="e"?E.x({l:k})/2:E.w({l:k})/2);b(I=="8"){E.j("d",0).j(F,C=="7"?-J:J)}3 G={d:I=="8"?1:0};G[F]=(I=="8"?(C=="7"?"+=":"-="):(C=="7"?"-=":"+="))+J;E.v(G,{i:u,h:B.h,g:B.6.g,t:5(){b(I=="c"){E.c()}A.4.s(E,D);A.4.r(E);b(B.f){B.f.q(a,p)}E.o()}})})}})(n)',55,55,'|||var|effects|function|options|pos|show|left|this|if|hide|opacity|top|callback|easing|duration|queue|css|true|margin|up|jQuery|dequeue|arguments|apply|removeWrapper|restore|complete|false|animate|outerWidth|outerHeight|distance|neg|||||||||||down|createWrapper|save|direction|mode|setMode|position|return|drop'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.explode.packed.js b/javascript/libs/jquery/packed/ui/effects.explode.packed.js
new file mode 100644
index 0000000..af5ce36
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.explode.packed.js
@@ -0,0 +1,2 @@
+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}('(e(A){A.i.h=e(B){16 j.15(e(){8 I=B.4.g?7.x(7.w(B.4.g)):3;8 E=B.4.g?7.x(7.w(B.4.g)):3;B.4.5=B.4.5=="14"?(A(j).13(":c")?"n":"6"):B.4.5;8 H=A(j).6().9("d","p");8 J=H.12();J.a-=v(H.9("11"))||0;J.b-=v(H.9("10"))||0;8 G=H.Z(u);8 C=H.Y(u);t(8 F=0;F<I;F++){t(8 D=0;D<E;D++){H.X().W("V").U("<s></s>").9({r:"q",d:"c",b:-D*(G/E),a:-F*(C/I)}).T().S("i-h").9({r:"q",R:"p",Q:G/E,P:C/I,b:J.b+D*(G/E)+(B.4.5=="6"?(D-7.f(E/2))*(G/E):0),a:J.a+F*(C/I)+(B.4.5=="6"?(F-7.f(I/2))*(C/I):0),o:B.4.5=="6"?0:1}).O({b:J.b+D*(G/E)+(B.4.5=="6"?0:(D-7.f(E/2))*(G/E)),a:J.a+F*(C/I)+(B.4.5=="6"?0:(F-7.f(I/2))*(C/I)),o:B.4.5=="6"?1:0},B.l||k)}}N(e(){B.4.5=="6"?H.9({d:"c"}):H.9({d:"c"}).n();M(B.m){B.m.L(H[0])}H.K();A(".i-h").z()},B.l||k)})}})(y)',62,69,'||||options|mode|show|Math|var|css|top|left|visible|visibility|function|floor|pieces|explode|effects|this|500|duration|callback|hide|opacity|hidden|absolute|position|div|for|true|parseInt|sqrt|round|jQuery|remove|||||||||||dequeue|apply|if|setTimeout|animate|height|width|overflow|addClass|parent|wrap|body|appendTo|clone|outerHeight|outerWidth|marginLeft|marginTop|offset|is|toggle|queue|return'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.fold.packed.js b/javascript/libs/jquery/packed/ui/effects.fold.packed.js
new file mode 100644
index 0000000..93f0a9f
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.fold.packed.js
@@ -0,0 +1,2 @@
+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}('(8(A){A.4.M=8(B){L h.z(8(){3 E=A(h),H=["y","x","w"];3 G=A.4.v(E,B.9.u||"b");3 K=B.9.t||s;A.4.r(E,H);E.5();3 C=A.4.q(E).g({p:"o"});3 F=(G=="5")?["6","7"]:["7","6"];3 D=(G=="5")?[C.6(),C.7()]:[C.7(),C.6()];a(G=="5"){C.g({7:K,6:0})}3 J={},I={};J[F[0]]=G=="5"?D[0]:K;I[F[1]]=G=="5"?D[1]:0;C.f(J,B.e/2,B.9.d).f(I,B.e/2,B.9.d,8(){a(G=="b"){E.b()}A.4.n(E,H);A.4.m(E);a(B.c){B.c.l(E[0],k)}E.j()})})}})(i)',49,49,'|||var|effects|show|width|height|function|options|if|hide|callback|easing|duration|animate|css|this|jQuery|dequeue|arguments|apply|removeWrapper|restore|hidden|overflow|createWrapper|save|15|size|mode|setMode|left|top|position|queue||||||||||||return|fold'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.highlight.packed.js b/javascript/libs/jquery/packed/ui/effects.highlight.packed.js
new file mode 100644
index 0000000..74aff02
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.highlight.packed.js
@@ -0,0 +1,2 @@
+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}('(5(A){A.4.J=5(B){I 2.e(5(){1 E=A(2),D=["g","6","f"];1 H=A.4.z(E,B.9.y||"7");1 C=B.9.x||"#w";1 G=E.h("6");A.4.v(E,D);E.7();E.h({g:"u",6:C});1 F={6:G};3(H=="8"){F["f"]=0}E.t(F,{e:s,d:B.d,c:B.9.c,r:5(){3(H=="8"){E.8()}A.4.q(E,D);3(H=="7"&&a.p.o){2.n.m("l")}3(B.b){B.b.k(2,j)}E.i()}})})}})(a)',46,46,'|var|this|if|effects|function|backgroundColor|show|hide|options|jQuery|callback|easing|duration|queue|opacity|backgroundImage|css|dequeue|arguments|apply|filter|removeAttribute|style|msie|browser|restore|complete|false|animate|none|save|ffff99|color|mode|setMode|||||||||return|highlight'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.pulsate.packed.js b/javascript/libs/jquery/packed/ui/effects.pulsate.packed.js
new file mode 100644
index 0000000..74ba267
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.pulsate.packed.js
@@ -0,0 +1,2 @@
+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}('(7(A){A.n.z=7(B){y d.j(7(){f 3=A(d);f h=A.n.x(3,B.4.w||"m");f c=B.4.v||5;b(h=="g"){c--}b(3.u(":t")){3.s("6",0);3.m();3.a({6:1},B.9/2,B.4.8);c=c-2}r(f C=0;C<c;C++){3.a({6:0},B.9/2,B.4.8).a({6:1},B.9/2,B.4.8)}b(h=="g"){3.a({6:0},B.9/2,B.4.8,7(){3.g();b(B.e){B.e.l(d,k)}})}q{3.a({6:0},B.9/2,B.4.8).a({6:1},B.9/2,B.4.8,7(){b(B.e){B.e.l(d,k)}})}3.j("p",7(){3.i()});3.i()})}})(o)',39,39,'|||D|options||opacity|function|easing|duration|animate|if|E|this|callback|var|hide|F|dequeue|queue|arguments|apply|show|effects|jQuery|fx|else|for|css|hidden|is|times|mode|setMode|return|pulsate|||'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.scale.packed.js b/javascript/libs/jquery/packed/ui/effects.scale.packed.js
new file mode 100644
index 0000000..64194d4
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.scale.packed.js
@@ -0,0 +1,2 @@
+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}('(b(A){A.7.1w=b(B){R d.o(b(){6 F=A(d);6 C=A.10(q,{},B);6 H=A.7.z(F,B.a.k||"f");6 G=S(B.a.r)||1v;C.Z=q;6 E={5:F.5(),4:F.4()};6 D=G/l;F.2=(H=="f")?E:{5:E.5*D,4:E.4*D};C.2=F.2;C.r=(H=="f")?G:l;C.k=H;F.j("w",C,B.h,B.m);F.s()})};A.7.w=b(B){R d.o(b(){6 C=A(d);6 K=A.10(q,{},B);6 E=A.7.z(C,B.a.k||"j");6 G=S(B.a.r)||(S(B.a.r)==0?0:(E=="f"?0:l));6 I=B.a.1u||"i";6 J=B.a.1t;9(E!="j"){J=J||["1s","1r"];K.n=q}6 D={5:C.5(),4:C.4()};C.2=B.a.2||(E=="v"?{5:0,4:0}:D);6 H={y:I!="1q"?(G/l):1,x:I!="1p"?(G/l):1};C.3={5:D.5*H.y,4:D.4*H.x};9(J){6 F=A.7.1o(J,D);C.2.Q=(D.5-C.2.5)*F.y;C.2.P=(D.4-C.2.4)*F.x;C.3.Q=(D.5-C.3.5)*F.y;C.3.P=(D.4-C.3.4)*F.x}9(B.a.Z){9(E=="v"){C.2.g=0;C.3.g=1}9(E=="f"){C.2.g=1;C.3.g=0}}K.2=C.2;K.3=C.3;K.k=E;C.j("Y",K,B.h,B.m);C.s()})};A.7.Y=b(B){R d.o(b(){6 C=A(d),M=["X","Q","P","4","5","p","g"];6 L=["X","p","g"];6 I=["4","5","p"];6 N=["1n"];6 J=["1m","1l","1k","1j"];6 F=["1i","1h","1g","1f"];6 G=A.7.z(C,B.a.k||"j");6 H=B.a.n||T;6 E=B.a.w||"i";6 D={5:C.5(),4:C.4()};C.2=B.a.2||D;C.3=B.a.3||D;6 K={2:{y:C.2.5/D.5,x:C.2.4/D.4},3:{y:C.3.5/D.5,x:C.3.4/D.4}};9(E=="1e"||E=="i"){9(K.2.y!=K.3.y){M=M.e(J);C.2=A.7.c(C,J,K.2.y,C.2);C.3=A.7.c(C,J,K.3.y,C.3)}9(K.2.x!=K.3.x){M=M.e(F);C.2=A.7.c(C,F,K.2.x,C.2);C.3=A.7.c(C,F,K.3.x,C.3)}}9(E=="W"||E=="i"){9(K.2.y!=K.3.y){M=M.e(N);C.2=A.7.c(C,N,K.2.y,C.2);C.3=A.7.c(C,N,K.3.y,C.3)}}A.7.V(C,H?M:L);C.v();A.7.1d(C);C.u("p","1c").u(C.2);9(E=="W"||E=="i"){J=J.e(["1b","1a"]).e(N);F=F.e(["19","18"]);I=M.e(J).e(F);C.17("*[4]").16(b(){8=A(d);9(H){A.7.V(8,I)}6 O={5:8.5(),4:8.4()};8.2={5:O.5*K.2.y,4:O.4*K.2.x};8.3={5:O.5*K.3.y,4:O.4*K.3.x};9(K.2.y!=K.3.y){8.2=A.7.c(8,J,K.2.y,8.2);8.3=A.7.c(8,J,K.3.y,8.3)}9(K.2.x!=K.3.x){8.2=A.7.c(8,F,K.2.x,8.2);8.3=A.7.c(8,F,K.3.x,8.3)}8.u(8.2);8.U(8.3,B.h,B.a.t,b(){9(H){A.7.n(8,I)}})})}C.U(C.3,{o:T,h:B.h,t:B.a.t,15:b(){9(G=="f"){C.f()}A.7.n(C,H?M:L);A.7.14(C);9(B.m){B.m.13(d,12)}C.s()}})})}})(11)',62,95,'||from|to|width|height|var|effects|child|if|options|function|setTransition|this|concat|hide|opacity|duration|both|effect|mode|100|callback|restore|queue|overflow|true|percent|dequeue|easing|css|show|scale|||setMode||||||||||||||||left|top|return|parseInt|false|animate|save|content|position|size|fade|extend|jQuery|arguments|apply|removeWrapper|complete|each|find|marginRight|marginLeft|marginBottom|marginTop|hidden|createWrapper|box|paddingRight|paddingLeft|borderRightWidth|borderLeftWidth|paddingBottom|paddingTop|borderBottomWidth|borderTopWidth|fontSize|getBaseline|vertical|horizontal|center|middle|origin|direction|150|puff'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.shake.packed.js b/javascript/libs/jquery/packed/ui/effects.shake.packed.js
new file mode 100644
index 0000000..bd2a2df
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.shake.packed.js
@@ -0,0 +1,2 @@
+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}('(6(A){A.5.U=6(B){T b.d(6(){4 E=A(b),K=["S","g","a"];4 J=A.5.R(E,B.0.Q||"P");4 M=B.0.z||"a";4 C=B.0.y||x;4 D=B.0.w||3;4 G=B.h||B.0.h||v;A.5.u(E,K);E.t();A.5.s(E);4 F=(M=="f"||M=="r")?"g":"a";4 O=(M=="f"||M=="a")?"9":"q";4 H={},N={},L={};H[F]=(O=="9"?"-=":"+=")+C;N[F]=(O=="9"?"+=":"-=")+C*2;L[F]=(O=="9"?"-=":"+=")+C*2;E.8(H,G,B.0.7);p(4 I=1;I<D;I++){E.8(N,G,B.0.7).8(L,G,B.0.7)}E.8(N,G,B.0.7).8(H,G/2,B.0.7,6(){A.5.o(E,K);A.5.n(E);m(B.e){B.e.l(b,k)}});E.d("j",6(){E.c()});E.c()})}})(i)',57,57,'options||||var|effects|function|easing|animate|pos|left|this|dequeue|queue|callback|up|top|duration|jQuery|fx|arguments|apply|if|removeWrapper|restore|for|neg|down|createWrapper|show|save|140|times|20|distance|direction||||||||||||||||effect|mode|setMode|position|return|shake'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.slide.packed.js b/javascript/libs/jquery/packed/ui/effects.slide.packed.js
new file mode 100644
index 0000000..3fc293f
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.slide.packed.js
@@ -0,0 +1,2 @@
+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}('(2(A){A.1.Q=2(B){P 7.e(2(){0 E=A(7),D=["O","9","6"];0 I=A.1.N(E,B.3.M||"5");0 H=B.3.L||"6";A.1.K(E,D);E.5();A.1.z(E).f({y:"x"});0 F=(H=="i"||H=="w")?"9":"6";0 C=(H=="i"||H=="6")?"4":"v";0 J=B.3.u||(F=="9"?E.t({h:g}):E.s({h:g}));8(I=="5"){E.f(F,C=="4"?-J:J)}0 G={};G[F]=(I=="5"?(C=="4"?"+=":"-="):(C=="4"?"-=":"+="))+J;E.r(G,{e:q,d:B.d,c:B.3.c,p:2(){8(I=="b"){E.b()}A.1.o(E,D);A.1.n(E);8(B.a){B.a.m(7,l)}E.k()}})})}})(j)',53,53,'var|effects|function|options|pos|show|left|this|if|top|callback|hide|easing|duration|queue|css|true|margin|up|jQuery|dequeue|arguments|apply|removeWrapper|restore|complete|false|animate|outerWidth|outerHeight|distance|neg|down|hidden|overflow|createWrapper|||||||||||save|direction|mode|setMode|position|return|slide'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/effects.transfer.packed.js b/javascript/libs/jquery/packed/ui/effects.transfer.packed.js
new file mode 100644
index 0000000..868a648
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/effects.transfer.packed.js
@@ -0,0 +1,2 @@
+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}('(5(A){A.9.p=5(B){S q.R(5(){4 E=A(q);4 G=A.9.Q(E,B.3.P||"O");4 F=A(B.3.N);4 C=E.l();4 D=A(\'<o M="L-9-p"></o>\').K(J.I);b(B.3.8){D.n(B.3.8)}D.n(B.3.8);D.1({7:C.7,6:C.6,k:E.j(m)-2(D.1("i"))-2(D.1("h")),g:E.f(m)-2(D.1("e"))-2(D.1("d")),H:"z"});C=F.l();c={7:C.7,6:C.6,k:F.j()-2(D.1("i"))-2(D.1("h")),g:F.f()-2(D.1("e"))-2(D.1("d"))};D.y(c,B.x,B.3.w,5(){D.v();b(B.a){B.a.u(E[0],t)}E.s()})})}})(r)',55,55,'|css|parseInt|options|var|function|left|top|className|effects|callback|if|animation|borderRightWidth|borderLeftWidth|outerWidth|width|borderBottomWidth|borderTopWidth|outerHeight|height|offset|true|addClass|div|transfer|this|jQuery|dequeue|arguments|apply|remove|easing|duration|animate|absolute||||||||position|body|document|appendTo|ui|class|to|effect|mode|setMode|queue|return'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/jquery.ui.all.packed.js b/javascript/libs/jquery/packed/ui/jquery.ui.all.packed.js
new file mode 100644
index 0000000..09f7dff
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/jquery.ui.all.packed.js
@@ -0,0 +1,2 @@
+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}('(c(C){C.h={2C:{21:c(E,F,H){b G=C.h[E].4E;1N(b D in H){G.67[D]=G.67[D]||[];G.67[D].4F([F,H[D]])}},24:c(D,F,E){b H=D.67[F];if(!H){k}1N(b G=0;G<H.1l;G++){if(D.f[H[G][0]]){H[G][1].1w(D.q,E)}}}},9G:{},p:c(D){if(C.h.9G[D]){k C.h.9G[D]}b E=C(\'<1o 2h="h-1g-kY">\').1j(D).p({14:"23",o:"-fJ",l:"-fJ",5z:"7m"}).2G("1C");C.h.9G[D]=!!((!(/3X|5k/).1v(E.p("2l"))||(/^[1-9]/).1v(E.p("r"))||(/^[1-9]/).1v(E.p("t"))||!(/8s/).1v(E.p("ca"))||!(/7a|eT\\(0, 0, 0, 0\\)/).1v(E.p("7Q"))));bQ{C("1C").5d(0).cw(E.5d(0))}bO(F){}k C.h.9G[D]},8J:c(D){D.5q="fF";D.fI=c(){k 17};if(D.2A){D.2A.fH="8s"}},kX:c(D){D.5q="kW";D.fI=c(){k 1a};if(D.2A){D.2A.fH=""}},9z:c(G,E){b D=/o/.1v(E||"o")?"29":"26",F=17;if(G[D]>0){k 1a}G[D]=1;F=G[D]>0?1a:17;G[D]=0;k F}};b B=C.fn.2d;C.fn.2d=c(){C("*",8).21(8).3P("2d");k B.1w(8,1x)};c A(E,F,G){b D=C[E][F].9H||[];D=(2F D=="4Z"?D.7x(/,?\\s+/):D);k(C.7n(G,D)!=-1)}C.4k=c(E,D){b F=E.7x(".")[0];E=E.7x(".")[1];C.fn[E]=c(J){b H=(2F J=="4Z"),I=8S.4E.dg.24(1x,1);if(H&&A(F,E,J)){b G=C.1k(8[0],E);k(G?G[J].1w(G,I):2u)}k 8.1t(c(){b K=C.1k(8,E);if(H&&K&&C.8H(K[J])){K[J].1w(K,I)}1e{if(!H){C.1k(8,E,1O C[F][E](8,J))}}})};C[F][E]=c(I,H){b G=8;8.7i=E;8.fG=F+"-"+E;8.f=C.1K({1F:17},C[F][E].5f,H);8.q=C(I).2R("52."+E,c(L,J,K){k G.52(J,K)}).2R("9p."+E,c(K,J){k G.9p(J)}).2R("2d",c(){k G.3q()});8.5j()};C[F][E].4E=C.1K({},C.4k.4E,D)};C.4k.4E={5j:c(){},3q:c(){8.q.48(8.7i)},9p:c(D){k 8.f[D]},52:c(D,E){8.f[D]=E;if(D=="1F"){8.q[E?"1j":"1G"](8.fG+"-1F")}},81:c(){8.52("1F",17)},6t:c(){8.52("1F",1a)}};C.h.4m={87:c(){b D=8;8.q.2R("7u."+8.7i,c(E){k D.bb(E)});if(C.1R.3c){8.fE=8.q.2N("5q");8.q.2N("5q","fF")}8.kV=17},88:c(){8.q.3m("."+8.7i);(C.1R.3c&&8.q.2N("5q",8.fE))},bb:c(F){(8.6p&&8.9F(F));8.aX=F;b E=8,G=(F.kU==1),D=(2F 8.f.7R=="4Z"?C(F.1p).is(8.f.7R):17);if(!G||D||!8.8Z(F)){k 1a}8.aW=!8.f.7S;if(!8.aW){8.kT=80(c(){E.aW=1a},8.f.7S)}if(8.cO(F)&&8.cN(F)){8.6p=(8.66(F)!==17);if(!8.6p){F.cA();k 1a}}8.cQ=c(H){k E.fD(H)};8.cP=c(H){k E.9F(H)};C(19).2R("fC."+8.7i,8.cQ).2R("bg."+8.7i,8.cP);k 17},fD:c(D){if(C.1R.3c&&!D.4L){k 8.9F(D)}if(8.6p){8.5l(D);k 17}if(8.cO(D)&&8.cN(D)){8.6p=(8.66(8.aX,D)!==17);(8.6p?8.5l(D):8.9F(D))}k!8.6p},9F:c(D){C(19).3m("fC."+8.7i,8.cQ).3m("bg."+8.7i,8.cP);if(8.6p){8.6p=17;8.65(D)}k 17},cO:c(D){k(1c.22(1c.4h(8.aX.2X-D.2X),1c.4h(8.aX.2Y-D.2Y))>=8.f.4I)},cN:c(D){k 8.aW},66:c(D){},5l:c(D){},65:c(D){},8Z:c(D){k 1a}};C.h.4m.5f={7R:18,4I:1,7S:0}})(1s);(c(A){A.4k("h.1W",A.1K(A.h.4m,{5j:c(){b B=8.f;if(B.1f=="cL"&&!(/(1Z|23|4z)/).1v(8.q.p("14"))){8.q.p("14","1Z")}8.q.1j("h-1W");(B.1F&&8.q.1j("h-1W-1F"));8.87()},66:c(F){b H=8.f;if(8.1f||H.1F||A(F.1p).is(".h-1g-1H")){k 17}b C=!8.f.1H||!A(8.f.1H,8.q).1l?1a:17;A(8.f.1H,8.q).5g("*").7N().1t(c(){if(8==F.1p){C=1a}});if(!C){k 17}if(A.h.2I){A.h.2I.4d=8}8.1f=A.8H(H.1f)?A(H.1f.1w(8.q[0],[F])):(H.1f=="78"?8.q.78():8.q);if(!8.1f.51("1C").1l){8.1f.2G((H.2G=="1n"?8.q[0].3Z:H.2G))}if(8.1f[0]!=8.q[0]&&!(/(4z|23)/).1v(8.1f.p("14"))){8.1f.p("14","23")}8.2V={l:(1b(8.q.p("7O"),10)||0),o:(1b(8.q.p("7P"),10)||0)};8.4D=8.1f.p("14");8.v=8.q.v();8.v={o:8.v.o-8.2V.o,l:8.v.l-8.2V.l};8.v.1z={l:F.2X-8.v.l,o:F.2Y-8.v.o};8.2c=8.1f.2c();b B=8.2c.v();if(8.2c[0]==19.1C&&A.1R.kS){B={o:0,l:0}}8.v.1n={o:B.o+(1b(8.2c.p("5R"),10)||0),l:B.l+(1b(8.2c.p("5Q"),10)||0)};b E=8.q.14();8.v.1Z=8.4D=="1Z"?{o:E.o-(1b(8.1f.p("o"),10)||0)+8.2c[0].29,l:E.l-(1b(8.1f.p("l"),10)||0)+8.2c[0].26}:{o:0,l:0};8.3a=8.8F(F);8.1Q={t:8.1f.2K(),r:8.1f.2B()};if(H.3L){if(H.3L.l!=2u){8.v.1z.l=H.3L.l+8.2V.l}if(H.3L.3f!=2u){8.v.1z.l=8.1Q.t-H.3L.3f+8.2V.l}if(H.3L.o!=2u){8.v.1z.o=H.3L.o+8.2V.o}if(H.3L.3s!=2u){8.v.1z.o=8.1Q.r-H.3L.3s+8.2V.o}}if(H.1r){if(H.1r=="1n"){H.1r=8.1f[0].3Z}if(H.1r=="19"||H.1r=="3d"){8.1r=[0-8.v.1Z.l-8.v.1n.l,0-8.v.1Z.o-8.v.1n.o,A(H.1r=="19"?19:3d).t()-8.v.1Z.l-8.v.1n.l-8.1Q.t-8.2V.l-(1b(8.q.p("76"),10)||0),(A(H.1r=="19"?19:3d).r()||19.1C.3Z.6D)-8.v.1Z.o-8.v.1n.o-8.1Q.r-8.2V.o-(1b(8.q.p("77"),10)||0)]}if(!(/^(19|3d|1n)$/).1v(H.1r)){b D=A(H.1r)[0];b G=A(H.1r).v();8.1r=[G.l+(1b(A(D).p("5Q"),10)||0)-8.v.1Z.l-8.v.1n.l,G.o+(1b(A(D).p("5R"),10)||0)-8.v.1Z.o-8.v.1n.o,G.l+1c.22(D.90,D.5C)-(1b(A(D).p("5Q"),10)||0)-8.v.1Z.l-8.v.1n.l-8.1Q.t-8.2V.l-(1b(8.q.p("76"),10)||0),G.o+1c.22(D.6D,D.5D)-(1b(A(D).p("5R"),10)||0)-8.v.1Z.o-8.v.1n.o-8.1Q.r-8.2V.o-(1b(8.q.p("77"),10)||0)]}}8.1T("2e",F);8.1Q={t:8.1f.2K(),r:8.1f.2B()};if(A.h.2I&&!H.aI){A.h.2I.aJ(8,F)}8.1f.1j("h-1W-9x");8.5l(F);k 1a},5c:c(C,D){if(!D){D=8.14}b B=C=="23"?1:-1;k{o:(D.o+8.v.1Z.o*B+8.v.1n.o*B-(8.4D=="4z"||(8.4D=="23"&&8.2c[0]==19.1C)?0:8.2c[0].29)*B+(8.4D=="4z"?8.2c[0].29:0)*B+8.2V.o*B),l:(D.l+8.v.1Z.l*B+8.v.1n.l*B-(8.4D=="4z"||(8.4D=="23"&&8.2c[0]==19.1C)?0:8.2c[0].26)*B+(8.4D=="4z"?8.2c[0].26:0)*B+8.2V.l*B)}},8F:c(E){b F=8.f;b B={o:(E.2Y-8.v.1z.o-8.v.1Z.o-8.v.1n.o+(8.4D=="4z"||(8.4D=="23"&&8.2c[0]==19.1C)?0:8.2c[0].29)-(8.4D=="4z"?8.2c[0].29:0)),l:(E.2X-8.v.1z.l-8.v.1Z.l-8.v.1n.l+(8.4D=="4z"||(8.4D=="23"&&8.2c[0]==19.1C)?0:8.2c[0].26)-(8.4D=="4z"?8.2c[0].26:0))};if(!8.3a){k B}if(8.1r){if(B.l<8.1r[0]){B.l=8.1r[0]}if(B.o<8.1r[1]){B.o=8.1r[1]}if(B.l>8.1r[2]){B.l=8.1r[2]}if(B.o>8.1r[3]){B.o=8.1r[3]}}if(F.2J){b D=8.3a.o+1c.3C((B.o-8.3a.o)/F.2J[1])*F.2J[1];B.o=8.1r?(!(D<8.1r[1]||D>8.1r[3])?D:(!(D<8.1r[1])?D-F.2J[1]:D+F.2J[1])):D;b C=8.3a.l+1c.3C((B.l-8.3a.l)/F.2J[0])*F.2J[0];B.l=8.1r?(!(C<8.1r[0]||C>8.1r[2])?C:(!(C<8.1r[0])?C-F.2J[0]:C+F.2J[0])):C}k B},5l:c(B){8.14=8.8F(B);8.3z=8.5c("23");8.14=8.1T("3R",B)||8.14;if(!8.f.2r||8.f.2r!="y"){8.1f[0].2A.l=8.14.l+"2L"}if(!8.f.2r||8.f.2r!="x"){8.1f[0].2A.o=8.14.o+"2L"}if(A.h.2I){A.h.2I.3R(8,B)}k 17},65:c(C){if(A.h.2I&&!8.f.aI){A.h.2I.5w(8,C)}if(8.f.7e){b B=8;A(8.1f).1M(8.3a,1b(8.f.7e,10)||86,c(){B.1T("2z",C);B.4P()})}1e{8.1T("2z",C);8.4P()}k 17},4P:c(){8.1f.1G("h-1W-9x");if(8.f.1f!="cL"&&!8.8E){8.1f.2d()}8.1f=18;8.8E=17},67:{},cM:c(B){k{1f:8.1f,14:8.14,9y:8.3z,f:8.f}},1T:c(C,B){A.h.2C.24(8,C,[B,8.cM()]);k 8.q.2y(C=="3R"?C:"3R"+C,[B,8.cM()],8.f[C])},3q:c(){if(!8.q.1k("1W")){k}8.q.48("1W").3m(".1W").1G("h-1W");8.88()}}));A.1K(A.h.1W,{5f:{2G:"1n",2r:17,7R:":1E,4L",7S:0,4I:0,1f:"cL"}});A.h.2C.21("1W","2l",{2e:c(D,C){b B=A("1C");if(B.p("2l")){C.f.8C=B.p("2l")}B.p("2l",C.f.2l)},2z:c(C,B){if(B.f.8C){A("1C").p("2l",B.f.8C)}}});A.h.2C.21("1W","2x",{2e:c(D,C){b B=A(C.1f);if(B.p("2x")){C.f.8B=B.p("2x")}B.p("2x",C.f.2x)},2z:c(C,B){if(B.f.8B){A(B.1f).p("2x",B.f.8B)}}});A.h.2C.21("1W","1L",{2e:c(D,C){b B=A(C.1f);if(B.p("1L")){C.f.8A=B.p("1L")}B.p("1L",C.f.1L)},2z:c(C,B){if(B.f.8A){A(B.1f).p("1L",B.f.8A)}}});A.h.2C.21("1W","aV",{2e:c(C,B){A(B.f.aV===1a?"9Z":B.f.aV).1t(c(){A(\'<1o 2h="h-1W-aV" 2A="aF: #kR;"></1o>\').p({t:8.5C+"2L",r:8.5D+"2L",14:"23",1L:"0.kQ",2x:91}).p(A(8).v()).2G("1C")})},2z:c(C,B){A("1o.kP").1t(c(){8.3Z.cw(8)})}});A.h.2C.21("1W","5V",{2e:c(D,C){b E=C.f;b B=A(8).1k("1W");E.3y=E.3y||20;E.3x=E.3x||20;B.3k=c(F){do{if(/3X|5V/.1v(F.p("2T"))||(/3X|5V/).1v(F.p("2T-y"))){k F}F=F.1n()}5r(F[0].3Z);k A(19)}(8);B.3j=c(F){do{if(/3X|5V/.1v(F.p("2T"))||(/3X|5V/).1v(F.p("2T-x"))){k F}F=F.1n()}5r(F[0].3Z);k A(19)}(8);if(B.3k[0]!=19&&B.3k[0].7c!="7b"){B.8z=B.3k.v()}if(B.3j[0]!=19&&B.3j[0].7c!="7b"){B.8y=B.3j.v()}},3R:c(D,C){b E=C.f;b B=A(8).1k("1W");if(B.3k[0]!=19&&B.3k[0].7c!="7b"){if((B.8z.o+B.3k[0].5D)-D.2Y<E.3y){B.3k[0].29=B.3k[0].29+E.3x}if(D.2Y-B.8z.o<E.3y){B.3k[0].29=B.3k[0].29-E.3x}}1e{if(D.2Y-A(19).29()<E.3y){A(19).29(A(19).29()-E.3x)}if(A(3d).r()-(D.2Y-A(19).29())<E.3y){A(19).29(A(19).29()+E.3x)}}if(B.3j[0]!=19&&B.3j[0].7c!="7b"){if((B.8y.l+B.3j[0].5C)-D.2X<E.3y){B.3j[0].26=B.3j[0].26+E.3x}if(D.2X-B.8y.l<E.3y){B.3j[0].26=B.3j[0].26-E.3x}}1e{if(D.2X-A(19).26()<E.3y){A(19).26(A(19).26()-E.3x)}if(A(3d).t()-(D.2X-A(19).26())<E.3y){A(19).26(A(19).26()+E.3x)}}}});A.h.2C.21("1W","cK",{2e:c(D,C){b B=A(8).1k("1W");B.7Y=[];A(C.f.cK===1a?".h-1W":C.f.cK).1t(c(){b F=A(8);b E=F.v();if(8!=B.q[0]){B.7Y.4F({31:8,t:F.2K(),r:F.2B(),o:E.o,l:E.l})}})},3R:c(J,N){b I=A(8).1k("1W");b L=N.f.kO||20;b D=N.9y.l,C=D+I.1Q.t,P=N.9y.o,O=P+I.1Q.r;1N(b H=I.7Y.1l-1;H>=0;H--){b E=I.7Y[H].l,B=E+I.7Y[H].t,R=I.7Y[H].o,M=R+I.7Y[H].r;if(!((E-L<D&&D<B+L&&R-L<P&&P<M+L)||(E-L<D&&D<B+L&&R-L<O&&O<M+L)||(E-L<C&&C<B+L&&R-L<P&&P<M+L)||(E-L<C&&C<B+L&&R-L<O&&O<M+L))){7U}if(N.f.fB!="kN"){b K=1c.4h(R-O)<=20;b Q=1c.4h(M-P)<=20;b G=1c.4h(E-C)<=20;b F=1c.4h(B-D)<=20;if(K){N.14.o=I.5c("1Z",{o:R-I.1Q.r,l:0}).o}if(Q){N.14.o=I.5c("1Z",{o:M,l:0}).o}if(G){N.14.l=I.5c("1Z",{o:0,l:E-I.1Q.t}).l}if(F){N.14.l=I.5c("1Z",{o:0,l:B}).l}}if(N.f.fB!="kM"){b K=1c.4h(R-P)<=20;b Q=1c.4h(M-O)<=20;b G=1c.4h(E-D)<=20;b F=1c.4h(B-C)<=20;if(K){N.14.o=I.5c("1Z",{o:R,l:0}).o}if(Q){N.14.o=I.5c("1Z",{o:M-I.1Q.r,l:0}).o}if(G){N.14.l=I.5c("1Z",{o:0,l:E}).l}if(F){N.14.l=I.5c("1Z",{o:0,l:B-I.1Q.t}).l}}}}});A.h.2C.21("1W","fz",{2e:c(D,C){b B=A(8).1k("1W");B.aU=[];A(C.f.fz).1t(c(){if(A.1k(8,"2Q")){b E=A.1k(8,"2Q");B.aU.4F({1Y:E,fy:E.f.7e});E.7V();E.1T("5N",D,B)}})},2z:c(D,C){b B=A(8).1k("1W");A.1t(B.aU,c(){if(8.1Y.8O){8.1Y.8O=0;B.8E=1a;8.1Y.8E=17;if(8.fy){8.1Y.f.7e=1a}8.1Y.65(D);8.1Y.q.2y("kL",[D,A.1K(8.1Y.h(),{ff:B.q})],8.1Y.f["fa"]);8.1Y.f.1f=8.1Y.f.cJ}1e{8.1Y.1T("7T",D,B)}})},3R:c(F,E){b D=A(8).1k("1W"),B=8;b C=c(K){b H=K.l,J=H+K.t,I=K.o,G=I+K.r;k(H<(8.3z.l+8.v.1z.l)&&(8.3z.l+8.v.1z.l)<J&&I<(8.3z.o+8.v.1z.o)&&(8.3z.o+8.v.1z.o)<G)};A.1t(D.aU,c(G){if(C.24(D,8.1Y.4V)){if(!8.1Y.8O){8.1Y.8O=1;8.1Y.1V=A(B).78().2G(8.1Y.q).1k("2Q-31",1a);8.1Y.f.cJ=8.1Y.f.1f;8.1Y.f.1f=c(){k E.1f[0]};F.1p=8.1Y.1V[0];8.1Y.8Z(F,1a,1a);8.1Y.66(F,1a,1a);8.1Y.v.1z.o=D.v.1z.o;8.1Y.v.1z.l=D.v.1z.l;8.1Y.v.1n.l-=D.v.1n.l-8.1Y.v.1n.l;8.1Y.v.1n.o-=D.v.1n.o-8.1Y.v.1n.o;D.1T("kK",F)}if(8.1Y.1V){8.1Y.5l(F)}}1e{if(8.1Y.8O){8.1Y.8O=0;8.1Y.8E=1a;8.1Y.f.7e=17;8.1Y.65(F,1a);8.1Y.f.1f=8.1Y.f.cJ;8.1Y.1V.2d();8.1Y.30.2d();D.1T("kJ",F)}}})}});A.h.2C.21("1W","6E",{2e:c(D,B){b C=A.kI(A(B.f.6E.kH)).7l(c(F,E){k(1b(A(F).p("2x"),10)||B.f.6E.2p)-(1b(A(E).p("2x"),10)||B.f.6E.2p)});A(C).1t(c(E){8.2A.2x=B.f.6E.2p+E});8[0].2A.2x=B.f.6E.2p+C.1l}})})(1s);(c(A){A.4k("h.4X",{5j:c(){8.q.1j("h-4X");8.5y=0;8.7h=1;b C=8.f,B=C.5Y;C=A.1K(C,{5Y:C.5Y&&C.5Y.49==f1?C.5Y:c(D){k A(D).is(B)}});8.aT={t:8.q.2K(),r:8.q.2B()};A.h.2I.8N.4F(8)},67:{},h:c(B){k{1W:(B.1V||B.q),1f:B.1f,14:B.14,9y:B.3z,f:8.f,q:8.q}},3q:c(){b B=A.h.2I.8N;1N(b C=0;C<B.1l;C++){if(B[C]==8){B.b6(C,1)}}8.q.1G("h-4X h-4X-1F").48("4X").3m(".4X")},3W:c(C){b B=A.h.2I.4d;if(!B||(B.1V||B.q)[0]==8.q[0]){k}if(8.f.5Y.24(8.q,(B.1V||B.q))){A.h.2C.24(8,"3W",[C,8.h(B)]);8.q.2y("kG",[C,8.h(B)],8.f.3W)}},7d:c(C){b B=A.h.2I.4d;if(!B||(B.1V||B.q)[0]==8.q[0]){k}if(8.f.5Y.24(8.q,(B.1V||B.q))){A.h.2C.24(8,"7d",[C,8.h(B)]);8.q.2y("kF",[C,8.h(B)],8.f.7d)}},5w:c(D,C){b B=C||A.h.2I.4d;if(!B||(B.1V||B.q)[0]==8.q[0]){k 17}b E=17;8.q.5g(".h-4X").74(".h-1W-9x").1t(c(){b F=A.1k(8,"4X");if(F.f.fw&&A.h.8M(B,A.1K(F,{v:F.q.v()}),F.f.5b)){E=1a;k 17}});if(E){k 17}if(8.f.5Y.24(8.q,(B.1V||B.q))){A.h.2C.24(8,"5w",[D,8.h(B)]);8.q.2y("5w",[D,8.h(B)],8.f.5w);k 1a}k 17},5N:c(C){b B=A.h.2I.4d;A.h.2C.24(8,"5N",[C,8.h(B)]);if(B){8.q.2y("kE",[C,8.h(B)],8.f.5N)}},7T:c(C){b B=A.h.2I.4d;A.h.2C.24(8,"7T",[C,8.h(B)]);if(B){8.q.2y("kD",[C,8.h(B)],8.f.7T)}}});A.1K(A.h.4X,{5f:{1F:17,5b:"8M"}});A.h.8M=c(L,F,J){if(!F.v){k 17}b D=(L.3z||L.14.23).l,C=D+L.1Q.t,I=(L.3z||L.14.23).o,H=I+L.1Q.r;b E=F.v.l,B=E+F.aT.t,K=F.v.o,G=K+F.aT.r;5n(J){1y"fk":k(E<D&&C<B&&K<I&&H<G);1A;1y"8M":k(E<D+(L.1Q.t/2)&&C-(L.1Q.t/2)<B&&K<I+(L.1Q.r/2)&&H-(L.1Q.r/2)<G);1A;1y"cq":k(E<((L.3z||L.14.23).l+(L.7r||L.v.1z).l)&&((L.3z||L.14.23).l+(L.7r||L.v.1z).l)<B&&K<((L.3z||L.14.23).o+(L.7r||L.v.1z).o)&&((L.3z||L.14.23).o+(L.7r||L.v.1z).o)<G);1A;1y"cr":k((I>=K&&I<=G)||(H>=K&&H<=G)||(I<K&&H>G))&&((D>=E&&D<=B)||(C>=E&&C<=B)||(D<E&&C>B));1A;5k:k 17;1A}};A.h.2I={4d:18,8N:[],aJ:c(D,F){b B=A.h.2I.8N;b E=F?F.70:18;1N(b C=0;C<B.1l;C++){if(B[C].f.1F||(D&&!B[C].f.5Y.24(B[C].q,(D.1V||D.q)))){7U}B[C].4H=B[C].q.is(":4H");if(!B[C].4H){7U}B[C].v=B[C].q.v();B[C].aT={t:B[C].q.2K(),r:B[C].q.2B()};if(E=="kC"||E=="kB"){B[C].5N.24(B[C],F)}}},5w:c(B,C){b D=17;A.1t(A.h.2I.8N,c(){if(!8.f){k}if(!8.f.1F&&8.4H&&A.h.8M(B,8,8.f.5b)){D=8.5w.24(8,C)}if(!8.f.1F&&8.4H&&8.f.5Y.24(8.q,(B.1V||B.q))){8.7h=1;8.5y=0;8.7T.24(8,C)}});k D},3R:c(B,C){if(B.f.aG){A.h.2I.aJ(B,C)}A.1t(A.h.2I.8N,c(){if(8.1F||8.fv||!8.4H){k}b E=A.h.8M(B,8,8.f.5b);b G=!E&&8.5y==1?"7h":(E&&8.5y==0?"5y":18);if(!G){k}b F;if(8.f.fw){b D=8.q.51(".h-4X:eq(0)");if(D.1l){F=A.1k(D[0],"4X");F.fv=(G=="5y"?1:0)}}if(F&&G=="5y"){F["5y"]=0;F["7h"]=1;F.7d.24(F,C)}8[G]=1;8[G=="7h"?"5y":"7h"]=0;8[G=="5y"?"3W":"7d"].24(8,C);if(F&&G=="7h"){F["7h"]=0;F["5y"]=1;F.3W.24(F,C)}})}};A.h.2C.21("4X","aS",{5N:c(C,B){A(8).1j(B.f.aS)},7T:c(C,B){A(8).1G(B.f.aS)},5w:c(C,B){A(8).1G(B.f.aS)}});A.h.2C.21("4X","aR",{3W:c(C,B){A(8).1j(B.f.aR)},7d:c(C,B){A(8).1G(B.f.aR)},5w:c(C,B){A(8).1G(B.f.aR)}})})(1s);(c(A){A.4k("h.1g",A.1K(A.h.4m,{5j:c(){b M=8,N=8.f;b Q=8.q.p("14");8.q.1j("h-1g").p({14:/6g/.1v(Q)?"1Z":Q});A.1K(N,{9A:!!(N.5x),3l:N.3l||N.4W||N.1M?N.3l||"3l":18,6o:N.6o===1a?"h-1g-9E-1H":N.6o});b H="aL ft #kA";N.fr={"h-1g":{5z:"7m"},"h-1g-1H":{14:"23",aF:"#fu",eC:"0.aL"},"h-1g-n":{2l:"n-2m",r:"5e",l:"2W",3f:"2W",cF:H},"h-1g-s":{2l:"s-2m",r:"5e",l:"2W",3f:"2W",cI:H},"h-1g-e":{2l:"e-2m",t:"5e",o:"2W",3s:"2W",cH:H},"h-1g-w":{2l:"w-2m",t:"5e",o:"2W",3s:"2W",cG:H},"h-1g-3U":{2l:"3U-2m",t:"5e",r:"5e",cH:H,cI:H},"h-1g-3T":{2l:"3T-2m",t:"5e",r:"5e",cI:H,cG:H},"h-1g-41":{2l:"41-2m",t:"5e",r:"5e",cH:H,cF:H},"h-1g-3S":{2l:"3S-2m",t:"5e",r:"5e",cG:H,cF:H}};N.cE={"h-1g-1H":{aF:"#fu",cj:"aL ft #kz",r:"fs",t:"fs"},"h-1g-n":{2l:"n-2m",o:"2W",l:"45%"},"h-1g-s":{2l:"s-2m",3s:"2W",l:"45%"},"h-1g-e":{2l:"e-2m",3f:"2W",o:"45%"},"h-1g-w":{2l:"w-2m",l:"2W",o:"45%"},"h-1g-3U":{2l:"3U-2m",3f:"2W",3s:"2W"},"h-1g-3T":{2l:"3T-2m",l:"2W",3s:"2W"},"h-1g-3S":{2l:"3S-2m",l:"2W",o:"2W"},"h-1g-41":{2l:"41-2m",3f:"2W",o:"2W"}};N.cD=8.q[0].4f;if(N.cD.3o(/ky|aM|1E|4j|4L|9q/i)){b B=8.q;if(/1Z/.1v(B.p("14"))&&A.1R.7p){B.p({14:"1Z",o:"3X",l:"3X"})}B.64(A(\'<1o 2h="h-7L" 2A="2T: 3E;"></1o>\').p({14:B.p("14"),t:B.2K(),r:B.2B(),o:B.p("o"),l:B.p("l")}));b J=8.q;8.q=8.q.1n();8.q.1k("1g",8);8.q.p({7O:J.p("7O"),7P:J.p("7P"),76:J.p("76"),77:J.p("77")});J.p({7O:0,7P:0,76:0,77:0});if(A.1R.b3&&N.cA){J.p("2m","8s")}N.6n=J.p({14:"6g",ev:1,5z:"7m"});8.q.p({4K:J.p("4K")});8.9D()}if(!N.2Z){N.2Z=!A(".h-1g-1H",8.q).1l?"e,s,3U":{n:".h-1g-n",e:".h-1g-e",s:".h-1g-s",w:".h-1g-w",3U:".h-1g-3U",3T:".h-1g-3T",41:".h-1g-41",3S:".h-1g-3S"}}if(N.2Z.49==aj){N.2x=N.2x||91;if(N.2Z=="kx"){N.2Z="n,e,s,w,3U,3T,41,3S"}b O=N.2Z.7x(",");N.2Z={};b G={1H:"14: 23; 5z: 8s; 2T:3E;",n:"o: 7g; t:3e%;",e:"3f: 7g; r:3e%;",s:"3s: 7g; t:3e%;",w:"l: 7g; r:3e%;",3U:"3s: 7g; 3f: 2W;",3T:"3s: 7g; l: 2W;",41:"o: 7g; 3f: 2W;",3S:"o: 7g; l: 2W;"};1N(b R=0;R<O.1l;R++){b S=A.eS(O[R]),L=N.fr,F="h-1g-"+S,C=!A.h.p(F)&&!N.6o,P=A.h.p("h-1g-9E-1H"),T=A.1K(L[F],L["h-1g-1H"]),D=A.1K(N.cE[F],!P?N.cE["h-1g-1H"]:{});b K=/3T|3U|41|3S/.1v(S)?{2x:++N.2x}:{};b I=(C?G[S]:""),E=A([\'<1o 2h="h-1g-1H \',F,\'" 2A="\',I,G.1H,\'"></1o>\'].7k("")).p(K);N.2Z[S]=".h-1g-"+S;8.q.4n(E.p(C?T:{}).p(N.6o?D:{}).1j(N.6o?"h-1g-9E-1H":"").1j(N.6o))}if(N.6o){8.q.1j("h-1g-9E").p(!A.h.p("h-1g-9E")?{}:{})}}8.fq=c(Y){Y=Y||8.q;1N(b V in N.2Z){if(N.2Z[V].49==aj){N.2Z[V]=A(N.2Z[V],8.q).1u()}if(N.7a){N.2Z[V].p({1L:0})}if(8.q.is(".h-7L")&&N.cD.3o(/aM|1E|4j|4L/i)){b W=A(N.2Z[V],8.q),X=0;X=/3T|41|3S|3U|n|s/.1v(V)?W.2B():W.2K();b U=["be",/41|3S|n/.1v(V)?"kw":/3U|3T|s/.1v(V)?"kv":/^e$/.1v(V)?"ku":"kt"].7k("");if(!N.7a){Y.p(U,X)}8.9D()}if(!A(N.2Z[V]).1l){7U}}};8.fq(8.q);N.8L=A(".h-1g-1H",M.q);if(N.8J){N.8L.1t(c(U,V){A.h.8J(V)})}N.8L.ks(c(){if(!N.aQ){if(8.8a){b U=8.8a.3o(/h-1g-(3U|3T|41|3S|n|e|s|w)/i)}M.2r=N.2r=U&&U[1]?U[1]:"3U"}});if(N.9C){N.8L.1B();A(M.q).1j("h-1g-9C").9V(c(){A(8).1G("h-1g-9C");N.8L.1u()},c(){if(!N.aQ){A(8).1j("h-1g-9C");N.8L.1B()}})}8.87()},67:{},h:c(){k{2r:8.f.2r,f:8.f}},1T:c(C,B){A.h.2C.24(8,C,[B,8.h()]);8.q.2y(C=="2m"?C:["2m",C].7k(""),[B,8.h()],8.f[C])},3q:c(){b D=8.q,C=D.kr(".h-1g").5d(0);8.88();b B=c(E){A(E).1G("h-1g h-1g-1F").48("1g").3m(".1g").5g(".h-1g-1H").2d()};B(D);if(D.is(".h-7L")&&C){D.1n().4n(A(C).p({14:D.p("14"),t:D.2K(),r:D.2B(),o:D.p("o"),l:D.p("l")})).4Q().2d();B(C)}},66:c(K){if(8.f.1F){k 17}b J=17;1N(b H in 8.f.2Z){if(A(8.f.2Z[H])[0]==K.1p){J=1a}}if(!J){k 17}b C=8.f,B=8.q.14(),D=8.q,I=c(O){k 1b(O,10)||0},G=A.1R.3c&&A.1R.6C<7;C.aQ=1a;C.cC={o:A(19).29(),l:A(19).26()};if(D.is(".h-1W")||(/23/).1v(D.p("14"))){b M=A.1R.3c&&!C.1r&&(/23/).1v(D.p("14"))&&!(/1Z/).1v(D.1n().p("14"));b L=M?C.cC.o:0,F=M?C.cC.l:0;D.p({14:"23",o:(B.o+L),l:(B.l+F)})}if(A.1R.7p&&/1Z/.1v(D.p("14"))){D.p({14:"1Z",o:"3X",l:"3X"})}8.fl();b N=I(8.1f.p("l")),E=I(8.1f.p("o"));8.v=8.1f.v();8.14={l:N,o:E};8.1q=C.3l||G?{t:D.2K(),r:D.2B()}:{t:D.t(),r:D.r()};8.5W=C.3l||G?{t:D.2K(),r:D.2B()}:{t:D.t(),r:D.r()};8.3a={l:N,o:E};8.7f={t:D.2K()-D.t(),r:D.2B()-D.r()};8.fp={l:K.2X,o:K.2Y};C.5x=(2F C.5x=="8g")?C.5x:((8.5W.r/8.5W.t)||1);if(C.cz){A("1C").p("2l",8.2r+"-2m")}8.1T("2e",K);k 1a},5l:c(I){b D=8.1f,C=8.f,J={},M=8,F=8.fp,K=8.2r;b N=(I.2X-F.l)||0,L=(I.2Y-F.o)||0;b E=8.5X[K];if(!E){k 17}b H=E.1w(8,[I,N,L]),G=A.1R.3c&&A.1R.6C<7,B=8.7f;if(C.9A||I.aN){H=8.fo(H,I)}H=8.fm(H,I);8.1T("2m",I);D.p({o:8.14.o+"2L",l:8.14.l+"2L",t:8.1q.t+"2L",r:8.1q.r+"2L"});if(!C.3l&&C.6n){8.9D()}8.cx(H);k 17},65:c(I){8.f.aQ=17;b E=8.f,H=c(M){k 1b(M,10)||0},K=8;if(E.3l){b D=E.6n,B=D&&(/aM/i).1v(D.5d(0).4f),C=B&&A.h.9z(D.5d(0),"l")?0:K.7f.r,G=B?0:K.7f.t;b L={t:(K.1q.t-G),r:(K.1q.r-C)},F=(1b(K.q.p("l"),10)+(K.14.l-K.3a.l))||18,J=(1b(K.q.p("o"),10)+(K.14.o-K.3a.o))||18;if(!E.1M){8.q.p(A.1K(L,{o:J,l:F}))}if(E.3l&&!E.1M){8.9D()}}if(E.cz){A("1C").p("2l","3X")}8.1T("2z",I);if(E.3l){8.1f.2d()}k 17},cx:c(B){b C=8.f;8.v=8.1f.v();if(B.l){8.14.l=B.l}if(B.o){8.14.o=B.o}if(B.r){8.1q.r=B.r}if(B.t){8.1q.t=B.t}},fo:c(D,E){b F=8.f,G=8.14,C=8.1q,B=8.2r;if(D.r){D.t=(C.r/F.5x)}1e{if(D.t){D.r=(C.t*F.5x)}}if(B=="3T"){D.l=G.l+(C.t-D.t);D.o=18}if(B=="3S"){D.o=G.o+(C.r-D.r);D.l=G.l+(C.t-D.t)}k D},fm:c(H,I){b F=8.1f,E=8.f,N=E.9A||I.aN,M=8.2r,P=H.t&&E.6G&&E.6G<H.t,J=H.r&&E.6F&&E.6F<H.r,D=H.t&&E.5F&&E.5F>H.t,O=H.r&&E.5G&&E.5G>H.r;if(D){H.t=E.5F}if(O){H.r=E.5G}if(P){H.t=E.6G}if(J){H.r=E.6F}b C=8.3a.l+8.5W.t,L=8.14.o+8.1q.r;b G=/3T|3S|w/.1v(M),B=/3S|41|n/.1v(M);if(D&&G){H.l=C-E.5F}if(P&&G){H.l=C-E.6G}if(O&&B){H.o=L-E.5G}if(J&&B){H.o=L-E.6F}b K=!H.t&&!H.r;if(K&&!H.l&&H.o){H.o=18}1e{if(K&&!H.o&&H.l){H.l=18}}k H},9D:c(){b F=8.f;if(!F.6n){k}b D=F.6n,C=8.1f||8.q;if(!F.8K){b B=[D.p("5R"),D.p("aq"),D.p("ar"),D.p("5Q")],E=[D.p("eB"),D.p("ey"),D.p("eA"),D.p("ez")];F.8K=A.61(B,c(G,I){b H=1b(G,10)||0,J=1b(E[I],10)||0;k H+J})}D.p({r:(C.r()-F.8K[0]-F.8K[2])+"2L",t:(C.t()-F.8K[1]-F.8K[3])+"2L"})},fl:c(){b C=8.q,F=8.f;8.cB=C.v();if(F.3l){8.1f=8.1f||A(\'<1o 2A="2T:3E;"></1o>\');b B=A.1R.3c&&A.1R.6C<7,D=(B?1:0),E=(B?2:-1);8.1f.1j(F.3l).p({t:C.2K()+E,r:C.2B()+E,14:"23",l:8.cB.l-D+"2L",o:8.cB.o-D+"2L",2x:++F.2x});8.1f.2G("1C");if(F.8J){A.h.8J(8.1f.5d(0))}}1e{8.1f=C}},5X:{e:c(D,C,B){k{t:8.5W.t+C}},w:c(F,C,B){b G=8.f,D=8.5W,E=8.3a;k{l:E.l+C,t:D.t-C}},n:c(F,C,B){b G=8.f,D=8.5W,E=8.3a;k{o:E.o+B,r:D.r-B}},s:c(D,C,B){k{r:8.5W.r+B}},3U:c(D,C,B){k A.1K(8.5X.s.1w(8,1x),8.5X.e.1w(8,[D,C,B]))},3T:c(D,C,B){k A.1K(8.5X.s.1w(8,1x),8.5X.w.1w(8,[D,C,B]))},41:c(D,C,B){k A.1K(8.5X.n.1w(8,1x),8.5X.e.1w(8,[D,C,B]))},3S:c(D,C,B){k A.1K(8.5X.n.1w(8,1x),8.5X.w.1w(8,[D,C,B]))}}}));A.1K(A.h.1g,{5f:{7R:":1E,4L",4I:0,7S:0,cA:1a,7a:17,5F:10,5G:10,5x:17,8J:1a,cz:1a,9C:17,6o:17}});A.h.2C.21("1g","1r",{2e:c(I,K){b E=K.f,M=A(8).1k("1g"),G=M.q;b C=E.1r,F=(C kq A)?C.5d(0):(/1n/.1v(C))?G.1n().5d(0):C;if(!F){k}M.cy=A(F);if(/19/.1v(C)||C==19){M.9B={l:0,o:0};M.aO={l:0,o:0};M.8I={q:A(19),l:0,o:0,t:A(19).t(),r:A(19).r()||19.1C.3Z.6D}}1e{M.9B=A(F).v();M.aO=A(F).14();M.aP={r:A(F).9n(),t:A(F).ah()};b J=M.9B,B=M.aP.r,H=M.aP.t,D=(A.h.9z(F,"l")?F.90:H),L=(A.h.9z(F)?F.6D:B);M.8I={q:F,l:J.l,o:J.o,t:D,r:L}}},2m:c(H,K){b E=K.f,N=A(8).1k("1g"),C=N.aP,J=N.9B,G=N.1q,I=N.14,L=E.9A||H.aN,B={o:0,l:0},D=N.cy;if(/6g/.1v(D.p("14"))){B=N.aO}if(I.l<(E.3l?J.l:B.l)){N.1q.t=N.1q.t+(E.3l?(N.14.l-J.l):(N.14.l-B.l));if(L){N.1q.r=N.1q.t*E.5x}N.14.l=E.3l?J.l:B.l}if(I.o<(E.3l?J.o:0)){N.1q.r=N.1q.r+(E.3l?(N.14.o-J.o):N.14.o);if(L){N.1q.t=N.1q.r/E.5x}N.14.o=E.3l?J.o:0}b F=(E.3l?N.v.l-J.l:(N.14.l-B.l))+N.7f.t,M=(E.3l?N.v.o-J.o:N.14.o)+N.7f.r;if(F+N.1q.t>=N.8I.t){N.1q.t=N.8I.t-F;if(L){N.1q.r=N.1q.t*E.5x}}if(M+N.1q.r>=N.8I.r){N.1q.r=N.8I.r-M;if(L){N.1q.t=N.1q.r/E.5x}}},2z:c(G,J){b C=J.f,L=A(8).1k("1g"),H=L.14,I=L.9B,B=L.aO,D=L.cy;b E=A(L.1f),M=E.v(),K=E.ah(),F=E.9n();if(C.3l&&!C.1M&&/1Z/.1v(D.p("14"))){A(8).p({l:(M.l-I.l),o:(M.o-I.o),t:K,r:F})}if(C.3l&&!C.1M&&/6g/.1v(D.p("14"))){A(8).p({l:B.l+(M.l-I.l),o:B.o+(M.o-I.o),t:K,r:F})}}});A.h.2C.21("1g","2J",{2m:c(H,J){b D=J.f,L=A(8).1k("1g"),G=L.1q,E=L.5W,F=L.3a,K=L.2r,I=D.9A||H.aN;D.2J=2F D.2J=="8g"?[D.2J,D.2J]:D.2J;b C=1c.3C((G.t-E.t)/(D.2J[0]||1))*(D.2J[0]||1),B=1c.3C((G.r-E.r)/(D.2J[1]||1))*(D.2J[1]||1);if(/^(3U|s|e)$/.1v(K)){L.1q.t=E.t+C;L.1q.r=E.r+B}1e{if(/^(41)$/.1v(K)){L.1q.t=E.t+C;L.1q.r=E.r+B;L.14.o=F.o-B}1e{if(/^(3T)$/.1v(K)){L.1q.t=E.t+C;L.1q.r=E.r+B;L.14.l=F.l-C}1e{L.1q.t=E.t+C;L.1q.r=E.r+B;L.14.o=F.o-B;L.14.l=F.l-C}}}}});A.h.2C.21("1g","1M",{2z:c(I,K){b F=K.f,L=A(8).1k("1g");b E=F.6n,B=E&&(/aM/i).1v(E.5d(0).4f),C=B&&A.h.9z(E.5d(0),"l")?0:L.7f.r,H=B?0:L.7f.t;b D={t:(L.1q.t-H),r:(L.1q.r-C)},G=(1b(L.q.p("l"),10)+(L.14.l-L.3a.l))||18,J=(1b(L.q.p("o"),10)+(L.14.o-L.3a.o))||18;L.q.1M(A.1K(D,J&&G?{o:J,l:G}:{}),{1S:F.kp||"aC",1J:F.ko||"9t",c5:c(){b M={t:1b(L.q.p("t"),10),r:1b(L.q.p("r"),10),o:1b(L.q.p("o"),10),l:1b(L.q.p("l"),10)};if(E){E.p({t:M.t,r:M.r})}L.cx(M);L.1T("1M",I)}})}});A.h.2C.21("1g","4W",{2e:c(E,D){b F=D.f,B=A(8).1k("1g"),G=F.6n,C=B.1q;if(!G){B.4W=B.q.78()}1e{B.4W=G.78()}B.4W.p({1L:0.25,5z:"7m",14:"1Z",r:C.r,t:C.t,4K:0,l:0,o:0}).1j("h-1g-4W").1j(2F F.4W=="4Z"?F.4W:"");B.4W.2G(B.1f)},2m:c(D,C){b E=C.f,B=A(8).1k("1g"),F=E.6n;if(B.4W){B.4W.p({14:"1Z",r:B.1q.r,t:B.1q.t})}},2z:c(D,C){b E=C.f,B=A(8).1k("1g"),F=E.6n;if(B.4W&&B.1f){B.1f.5d(0).cw(B.4W.5d(0))}}});A.h.2C.21("1g","7X",{2e:c(E,C){b F=C.f,B=A(8).1k("1g"),D=c(G){A(G).1t(c(){A(8).1k("1g-cv",{t:1b(A(8).t(),10),r:1b(A(8).r(),10),l:1b(A(8).p("l"),10),o:1b(A(8).p("o"),10)})})};if(2F(F.7X)=="6H"){A.1t(F.7X,c(G,H){D(G)})}1e{D(F.7X)}},2m:c(F,E){b G=E.f,C=A(8).1k("1g"),D=C.5W,I=C.3a;b H={r:(C.1q.r-D.r)||0,t:(C.1q.t-D.t)||0,o:(C.14.o-I.o)||0,l:(C.14.l-I.l)||0},B=c(J,K){A(J).1t(c(){b N=A(8).1k("1g-cv"),M={},L=K&&K.1l?K:["t","r","o","l"];A.1t(L||["t","r","o","l"],c(O,Q){b P=(N[Q]||0)+(H[Q]||0);if(P&&P>=0){M[Q]=P||18}});A(8).p(M)})};if(2F(G.7X)=="6H"){A.1t(G.7X,c(J,K){B(J,K)})}1e{B(G.7X)}},2z:c(C,B){A(8).48("1g-cv-2e")}})})(1s);(c(A){A.4k("h.3p",A.1K(A.h.4m,{5j:c(){b B=8;8.q.1j("h-3p");8.cs=17;b C;8.7V=c(){C=A(B.f.3B,B.q[0]);C.1t(c(){b D=A(8);b E=D.v();A.1k(8,"3p-31",{q:8,$q:D,l:E.l,o:E.o,3f:E.l+D.t(),3s:E.o+D.r(),7W:17,1I:D.4G("h-1I"),4i:D.4G("h-4i"),3A:D.4G("h-3A")})})};8.7V();8.aK=C.1j("h-kn");8.87();8.1f=A(19.km("1o")).p({cj:"aL kl eQ"})},59:c(){if(8.f.1F){8.81()}1e{8.6t()}},3q:c(){8.q.1G("h-3p h-3p-1F").48("3p").3m(".3p");8.88()},66:c(E){b C=8;8.cu=[E.2X,E.2Y];if(8.f.1F){k}b D=8.f;8.aK=A(D.3B,8.q[0]);8.q.2y("kk",[E,{"3p":8.q[0],"f":D}],D.2e);A("1C").4n(8.1f);8.1f.p({"z-3Q":3e,"14":"23","l":E.cR,"o":E.kj,"t":0,"r":0});if(D.fi){8.7V()}8.aK.3B(".h-1I").1t(c(){b F=A.1k(8,"3p-31");F.7W=1a;if(!E.4g){F.$q.1G("h-1I");F.1I=17;F.$q.1j("h-3A");F.3A=1a;C.q.2y("ct",[E,{3p:C.q[0],3A:F.q,f:D}],D.3A)}});b B=17;A(E.1p).51().7N().1t(c(){if(A.1k(8,"3p-31")){B=1a}});k 8.f.ki?!B:1a},5l:c(I){b C=8;8.cs=1a;if(8.f.1F){k}b E=8.f;b D=8.cu[0],H=8.cu[1],B=I.2X,G=I.2Y;if(D>B){b F=B;B=D;D=F}if(H>G){b F=G;G=H;H=F}8.1f.p({l:D,o:H,t:B-D,r:G-H});8.aK.1t(c(){b J=A.1k(8,"3p-31");if(!J||J.q==C.q[0]){k}b K=17;if(E.5b=="cr"){K=(!(J.l>B||J.3f<D||J.o>G||J.3s<H))}1e{if(E.5b=="fk"){K=(J.l>D&&J.3f<B&&J.o>H&&J.3s<G)}}if(K){if(J.1I){J.$q.1G("h-1I");J.1I=17}if(J.3A){J.$q.1G("h-3A");J.3A=17}if(!J.4i){J.$q.1j("h-4i");J.4i=1a;C.q.2y("kh",[I,{3p:C.q[0],4i:J.q,f:E}],E.4i)}}1e{if(J.4i){if(I.4g&&J.7W){J.$q.1G("h-4i");J.4i=17;J.$q.1j("h-1I");J.1I=1a}1e{J.$q.1G("h-4i");J.4i=17;if(J.7W){J.$q.1j("h-3A");J.3A=1a}C.q.2y("ct",[I,{3p:C.q[0],3A:J.q,f:E}],E.3A)}}if(J.1I){if(!I.4g&&!J.7W){J.$q.1G("h-1I");J.1I=17;J.$q.1j("h-3A");J.3A=1a;C.q.2y("ct",[I,{3p:C.q[0],3A:J.q,f:E}],E.3A)}}}});k 17},65:c(D){b B=8;8.cs=17;b C=8.f;A(".h-3A",8.q[0]).1t(c(){b E=A.1k(8,"3p-31");E.$q.1G("h-3A");E.3A=17;E.7W=17;B.q.2y("kg",[D,{3p:B.q[0],fj:E.q,f:C}],C.fj)});A(".h-4i",8.q[0]).1t(c(){b E=A.1k(8,"3p-31");E.$q.1G("h-4i").1j("h-1I");E.4i=17;E.1I=1a;E.7W=1a;B.q.2y("kf",[D,{3p:B.q[0],1I:E.q,f:C}],C.1I)});8.q.2y("ke",[D,{3p:B.q[0],f:8.f}],8.f.2z);8.1f.2d();k 17}}));A.1K(A.h.3p,{5f:{4I:0,7S:0,7R:":1E,4L",2G:"1C",fi:1a,3B:"*",5b:"cr"}})})(1s);(c(B){c A(E,D){b C=B.1R.b3&&B.1R.6C<kd;if(E.fh&&!C){k E.fh(D)}if(E.fg){k!!(E.fg(D)&16)}5r(D=D.3Z){if(D==E){k 1a}}k 17}B.4k("h.2Q",B.1K(B.h.4m,{5j:c(){b C=8.f;8.4V={};8.q.1j("h-2Q");8.7V();8.6m=8.2g.1l?(/l|3f/).1v(8.2g[0].31.p("ck")):17;if(!(/(1Z|23|4z)/).1v(8.q.p("14"))){8.q.p("14","1Z")}8.v=8.q.v();8.87()},67:{},h:c(C){k{1f:(C||8)["1f"],30:(C||8)["30"]||B([]),14:(C||8)["14"],9y:(C||8)["3z"],f:8.f,q:8.q,31:(C||8)["1V"],ff:C?C.q:18}},1T:c(F,E,C,D){B.h.2C.24(8,F,[E,8.h(C)]);if(!D){8.q.2y(F=="7l"?F:"7l"+F,[E,8.h(C)],8.f[F])}},f9:c(E){b C=(B.8H(8.f.2g)?8.f.2g.24(8.q):B(8.f.2g,8.q)).74(".h-2Q-1f");b D=[];E=E||{};C.1t(c(){b F=(B(8).2N(E.kc||"id")||"").3o(E.kb||(/(.+)[-=8U](.+)/));if(F){D.4F((E.5M||F[1])+"[]="+(E.5M?F[1]:F[2]))}});k D.7k("&")},f8:c(C){b D=(B.8H(8.f.2g)?8.f.2g.24(8.q):B(8.f.2g,8.q)).74(".h-2Q-1f");b E=[];D.1t(c(){E.4F(B(8).2N(C||"id"))});k E},fd:c(J){b E=8.3z.l,D=E+8.1Q.t,I=8.3z.o,H=I+8.1Q.r;b F=J.l,C=F+J.t,K=J.o,G=K+J.r;if(8.f.5b=="cq"||(8.f.5b=="cl"&&8.1Q[8.6m?"t":"r"]>J[8.6m?"t":"r"])){k(I+8.v.1z.o>K&&I+8.v.1z.o<G&&E+8.v.1z.l>F&&E+8.v.1z.l<C)}1e{k(F<E+(8.1Q.t/2)&&D-(8.1Q.t/2)<C&&K<I+(8.1Q.r/2)&&H-(8.1Q.r/2)<G)}},fc:c(J){b E=8.3z.l,D=E+8.1Q.t,I=8.3z.o,H=I+8.1Q.r;b F=J.l,C=F+J.t,K=J.o,G=K+J.r;if(8.f.5b=="cq"||(8.f.5b=="cl"&&8.1Q[8.6m?"t":"r"]>J[8.6m?"t":"r"])){if(!(I+8.v.1z.o>K&&I+8.v.1z.o<G&&E+8.v.1z.l>F&&E+8.v.1z.l<C)){k 17}if(8.6m){if(E+8.v.1z.l>F&&E+8.v.1z.l<F+J.t/2){k 2}if(E+8.v.1z.l>F+J.t/2&&E+8.v.1z.l<C){k 1}}1e{if(I+8.v.1z.o>K&&I+8.v.1z.o<K+J.r/2){k 2}if(I+8.v.1z.o>K+J.r/2&&I+8.v.1z.o<G){k 1}}}1e{if(!(F<E+(8.1Q.t/2)&&D-(8.1Q.t/2)<C&&K<I+(8.1Q.r/2)&&H-(8.1Q.r/2)<G)){k 17}if(8.6m){if(D>F&&E<F){k 2}if(E<C&&D>C){k 1}}1e{if(H>K&&I<K){k 1}if(I<G&&H>G){k 2}}}k 17},7V:c(){8.fe();8.aG()},fe:c(){8.2g=[];8.2b=[8];b C=8.2g;b E=[B.8H(8.f.2g)?8.f.2g.24(8.q):B(8.f.2g,8.q)];if(8.f.cp){1N(b F=8.f.cp.1l-1;F>=0;F--){b H=B(8.f.cp[F]);1N(b D=H.1l-1;D>=0;D--){b G=B.1k(H[D],"2Q");if(G&&!G.f.1F){E.4F(B.8H(G.f.2g)?G.f.2g.24(G.q):B(G.f.2g,G.q));8.2b.4F(G)}}}}1N(b F=E.1l-1;F>=0;F--){E[F].1t(c(){B.1k(8,"2Q-31",1a);C.4F({31:B(8),t:0,r:0,l:0,o:0})})}},aG:c(C){1N(b E=8.2g.1l-1;E>=0;E--){b D=8.2g[E].31;if(!C){8.2g[E].t=(8.f.8G?B(8.f.8G,D):D).2K()}if(!C){8.2g[E].r=(8.f.8G?B(8.f.8G,D):D).2B()}b F=(8.f.8G?B(8.f.8G,D):D).v();8.2g[E].l=F.l;8.2g[E].o=F.o}1N(b E=8.2b.1l-1;E>=0;E--){b F=8.2b[E].q.v();8.2b[E].4V.l=F.l;8.2b[E].4V.o=F.o;8.2b[E].4V.t=8.2b[E].q.2K();8.2b[E].4V.r=8.2b[E].q.2B()}},3q:c(){8.q.1G("h-2Q h-2Q-1F").48("2Q").3m(".2Q");8.88();1N(b C=8.2g.1l-1;C>=0;C--){8.2g[C].31.48("2Q-31")}},cn:c(E){b C=E||8,F=C.f;if(F.30.49==aj){b D=F.30;F.30={q:c(){k B("<1o></1o>").1j(D)[0]},8D:c(G,H){H.p(G.v()).p({t:G.2K(),r:G.2B()})}}}C.30=B(F.30.q.24(C.q,C.1V)).2G("1C").p({14:"23"});F.30.8D.24(C.q,C.1V,C.30)},fb:c(F){1N(b D=8.2b.1l-1;D>=0;D--){if(8.fd(8.2b[D].4V)){if(!8.2b[D].4V.3W){if(8.co!=8.2b[D]){b I=ka;b H=18;b E=8.3z[8.2b[D].6m?"l":"o"];1N(b C=8.2g.1l-1;C>=0;C--){if(!A(8.2b[D].q[0],8.2g[C].31[0])){7U}b G=8.2g[C][8.2b[D].6m?"l":"o"];if(1c.4h(G-E)<I){I=1c.4h(G-E);H=8.2g[C]}}if(!H&&!8.f.f7){7U}if(8.30){8.30.2d()}if(8.2b[D].f.30){8.2b[D].cn(8)}1e{8.30=18}H?8.aH(F,H):8.aH(F,18,8.2b[D].q);8.1T("6v",F);8.2b[D].1T("6v",F,8);8.co=8.2b[D]}8.2b[D].1T("3W",F,8);8.2b[D].4V.3W=1}}1e{if(8.2b[D].4V.3W){8.2b[D].1T("7d",F,8);8.2b[D].4V.3W=0}}}},8Z:c(F,E){if(8.f.1F||8.f.70=="6g"){k 17}b D=18,C=B(F.1p).51().1t(c(){if(B.1k(8,"2Q-31")){D=B(8);k 17}});if(B.1k(F.1p,"2Q-31")){D=B(F.1p)}if(!D){k 17}if(8.f.1H&&!E){b G=17;B(8.f.1H,D).5g("*").7N().1t(c(){if(8==F.1p){G=1a}});if(!G){k 17}}8.1V=D;k 1a},66:c(H,F,C){b J=8.f;8.co=8;8.7V();8.1f=2F J.1f=="c"?B(J.1f.1w(8.q[0],[H,8.1V])):8.1V.78();if(!8.1f.51("1C").1l){8.1f.2G((J.2G!="1n"?J.2G:8.1V[0].3Z))}8.1f.p({14:"23",4P:"5m"}).1j("h-2Q-1f");8.2V={l:(1b(8.1V.p("7O"),10)||0),o:(1b(8.1V.p("7P"),10)||0)};8.v=8.1V.v();8.v={o:8.v.o-8.2V.o,l:8.v.l-8.2V.l};8.v.1z={l:H.2X-8.v.l,o:H.2Y-8.v.o};8.2c=8.1f.2c();b D=8.2c.v();8.v.1n={o:D.o+(1b(8.2c.p("5R"),10)||0),l:D.l+(1b(8.2c.p("5Q"),10)||0)};8.3a=8.8F(H);8.1Q={t:8.1f.2K(),r:8.1f.2B()};if(J.3L){if(J.3L.l!=2u){8.v.1z.l=J.3L.l}if(J.3L.3f!=2u){8.v.1z.l=8.1Q.t-J.3L.3f}if(J.3L.o!=2u){8.v.1z.o=J.3L.o}if(J.3L.3s!=2u){8.v.1z.o=8.1Q.r-J.3L.3s}}8.cm=8.1V.6e()[0];if(J.1r){if(J.1r=="1n"){J.1r=8.1f[0].3Z}if(J.1r=="19"||J.1r=="3d"){8.1r=[0-8.v.1n.l,0-8.v.1n.o,B(J.1r=="19"?19:3d).t()-8.v.1n.l-8.1Q.t-8.2V.l-(1b(8.q.p("76"),10)||0),(B(J.1r=="19"?19:3d).r()||19.1C.3Z.6D)-8.v.1n.o-8.1Q.r-8.2V.o-(1b(8.q.p("77"),10)||0)]}if(!(/^(19|3d|1n)$/).1v(J.1r)){b G=B(J.1r)[0];b I=B(J.1r).v();8.1r=[I.l+(1b(B(G).p("5Q"),10)||0)-8.v.1n.l,I.o+(1b(B(G).p("5R"),10)||0)-8.v.1n.o,I.l+1c.22(G.90,G.5C)-(1b(B(G).p("5Q"),10)||0)-8.v.1n.l-8.1Q.t-8.2V.l-(1b(8.1V.p("76"),10)||0),I.o+1c.22(G.6D,G.5D)-(1b(B(G).p("5R"),10)||0)-8.v.1n.o-8.1Q.r-8.2V.o-(1b(8.1V.p("77"),10)||0)]}}if(J.30){8.cn()}8.1T("2e",H);8.1Q={t:8.1f.2K(),r:8.1f.2B()};if(8.f.30!="78"){8.1V.p("8t","3E")}if(!C){1N(b E=8.2b.1l-1;E>=0;E--){8.2b[E].1T("5N",H,8)}}if(B.h.2I){B.h.2I.4d=8}if(B.h.2I&&!J.aI){B.h.2I.aJ(8,H)}8.9x=1a;8.5l(H);k 1a},5c:c(D,E){if(!E){E=8.14}b C=D=="23"?1:-1;k{o:(E.o+8.v.1n.o*C-(8.2c[0]==19.1C?0:8.2c[0].29)*C+8.2V.o*C),l:(E.l+8.v.1n.l*C-(8.2c[0]==19.1C?0:8.2c[0].26)*C+8.2V.l*C)}},8F:c(F){b G=8.f;b C={o:(F.2Y-8.v.1z.o-8.v.1n.o+(8.2c[0]==19.1C?0:8.2c[0].29)),l:(F.2X-8.v.1z.l-8.v.1n.l+(8.2c[0]==19.1C?0:8.2c[0].26))};if(!8.3a){k C}if(8.1r){if(C.l<8.1r[0]){C.l=8.1r[0]}if(C.o<8.1r[1]){C.o=8.1r[1]}if(C.l>8.1r[2]){C.l=8.1r[2]}if(C.o>8.1r[3]){C.o=8.1r[3]}}if(G.2J){b E=8.3a.o+1c.3C((C.o-8.3a.o)/G.2J[1])*G.2J[1];C.o=8.1r?(!(E<8.1r[1]||E>8.1r[3])?E:(!(E<8.1r[1])?E-G.2J[1]:E+G.2J[1])):E;b D=8.3a.l+1c.3C((C.l-8.3a.l)/G.2J[0])*G.2J[0];C.l=8.1r?(!(D<8.1r[0]||D>8.1r[2])?D:(!(D<8.1r[0])?D-G.2J[0]:D+G.2J[0])):D}k C},5l:c(D){8.14=8.8F(D);8.3z=8.5c("23");1N(b C=8.2g.1l-1;C>=0;C--){b E=8.fc(8.2g[C]);if(!E){7U}if(8.2g[C].31[0]!=8.1V[0]&&8.1V[E==1?"4v":"6e"]()[0]!=8.2g[C].31[0]&&!A(8.1V[0],8.2g[C].31[0])&&(8.f.70=="k9-k8"?!A(8.q[0],8.2g[C].31[0]):1a)){8.6k=E==1?"5O":"5T";8.aH(D,8.2g[C]);8.1T("6v",D);1A}}8.fb(D);8.1T("7l",D);if(!8.f.2r||8.f.2r=="x"){8.1f[0].2A.l=8.14.l+"2L"}if(!8.f.2r||8.f.2r=="y"){8.1f[0].2A.o=8.14.o+"2L"}if(B.h.2I){B.h.2I.3R(8,D)}k 17},65:c(E,D){if(B.h.2I&&!8.f.aI){B.h.2I.5w(8,E)}if(8.f.7e){b C=8;b F=C.1V.v();if(C.30){C.30.1M({1L:"1B"},(1b(8.f.7e,10)||86)-50)}B(8.1f).1M({l:F.l-8.v.1n.l-C.2V.l+(8.2c[0]==19.1C?0:8.2c[0].26),o:F.o-8.v.1n.o-C.2V.o+(8.2c[0]==19.1C?0:8.2c[0].29)},1b(8.f.7e,10)||86,c(){C.1T("2z",E,18,D);C.4P(E)})}1e{8.1T("2z",E,18,D);8.4P(E,D)}k 17},4P:c(E,D){if(8.cm!=8.1V.6e().74(".h-2Q-1f")[0]){8.1T("8D",E,18,D)}if(!A(8.q[0],8.1V[0])){if(8.cm==8.1V.6e().74(".h-2Q-1f")[0]){8.1T("8D",E,18,D)}8.1T("2d",E,18,D);1N(b C=8.2b.1l-1;C>=0;C--){if(A(8.2b[C].q[0],8.1V[0])){8.2b[C].1T("8D",E,8,D);8.2b[C].1T("fa",E,8,D)}}}1N(b C=8.2b.1l-1;C>=0;C--){8.2b[C].1T("7T",E,8,D);if(8.2b[C].4V.3W){8.2b[C].1T("7d",E,8);8.2b[C].4V.3W=0}}8.9x=17;if(8.8E){k 17}B(8.1V).p("8t","");if(8.30){8.30.2d()}8.1f.2d();k 1a},aH:c(E,D,C){C?C.4n(8.1V):D.31[8.6k=="5O"?"c0":"9S"](8.1V);8.aG(1a);if(8.f.30){8.f.30.8D.24(8.q,8.1V,8.30)}}}));B.1K(B.h.2Q,{9H:"f9 f8",5f:{5b:"cl",4I:0,7S:0,7R:":1E,4L",2g:"> *",2x:91,f7:1a,2G:"1n"}});B.h.2C.21("2Q","2l",{2e:c(E,D){b C=B("1C");if(C.p("2l")){D.f.8C=C.p("2l")}C.p("2l",D.f.2l)},2z:c(D,C){if(C.f.8C){B("1C").p("2l",C.f.8C)}}});B.h.2C.21("2Q","2x",{2e:c(E,D){b C=D.1f;if(C.p("2x")){D.f.8B=C.p("2x")}C.p("2x",D.f.2x)},2z:c(D,C){if(C.f.8B){B(C.1f).p("2x",C.f.8B)}}});B.h.2C.21("2Q","1L",{2e:c(E,D){b C=D.1f;if(C.p("1L")){D.f.8A=C.p("1L")}C.p("1L",D.f.1L)},2z:c(D,C){if(C.f.8A){B(C.1f).p("1L",C.f.8A)}}});B.h.2C.21("2Q","5V",{2e:c(E,D){b F=D.f;b C=B(8).1k("2Q");F.3y=F.3y||20;F.3x=F.3x||20;C.3k=c(G){do{if(/3X|5V/.1v(G.p("2T"))||(/3X|5V/).1v(G.p("2T-y"))){k G}G=G.1n()}5r(G[0].3Z);k B(19)}(C.1V);C.3j=c(G){do{if(/3X|5V/.1v(G.p("2T"))||(/3X|5V/).1v(G.p("2T-x"))){k G}G=G.1n()}5r(G[0].3Z);k B(19)}(C.1V);if(C.3k[0]!=19&&C.3k[0].7c!="7b"){C.8z=C.3k.v()}if(C.3j[0]!=19&&C.3j[0].7c!="7b"){C.8y=C.3j.v()}},7l:c(E,D){b F=D.f;b C=B(8).1k("2Q");if(C.3k[0]!=19&&C.3k[0].7c!="7b"){if((C.8z.o+C.3k[0].5D)-E.2Y<F.3y){C.3k[0].29=C.3k[0].29+F.3x}if(E.2Y-C.8z.o<F.3y){C.3k[0].29=C.3k[0].29-F.3x}}1e{if(E.2Y-B(19).29()<F.3y){B(19).29(B(19).29()-F.3x)}if(B(3d).r()-(E.2Y-B(19).29())<F.3y){B(19).29(B(19).29()+F.3x)}}if(C.3j[0]!=19&&C.3j[0].7c!="7b"){if((C.8y.l+C.3j[0].5C)-E.2X<F.3y){C.3j[0].26=C.3j[0].26+F.3x}if(E.2X-C.8y.l<F.3y){C.3j[0].26=C.3j[0].26-F.3x}}1e{if(E.2X-B(19).26()<F.3y){B(19).26(B(19).26()-F.3x)}if(B(3d).t()-(E.2X-B(19).26())<F.3y){B(19).26(B(19).26()+F.3x)}}}})})(1s);(c(C){C.1h=C.1h||{};C.1K(C.1h,{5u:c(F,G){1N(b E=0;E<G.1l;E++){if(G[E]!==18){C.1k(F[0],"ec.f6."+G[E],F[0].2A[G[E]])}}},4C:c(F,G){1N(b E=0;E<G.1l;E++){if(G[E]!==18){F.p(G[E],C.1k(F[0],"ec.f6."+G[E]))}}},4B:c(E,F){if(F=="59"){F=E.is(":3E")?"1u":"1B"}k F},eE:c(F,G){b H,E;5n(F[0]){1y"o":H=0;1A;1y"93":H=0.5;1A;1y"3s":H=1;1A;5k:H=F[0]/G.r}5n(F[1]){1y"l":E=0;1A;1y"7y":E=0.5;1A;1y"3f":E=1;1A;5k:E=F[1]/G.t}k{x:E,y:H}},6j:c(F){if(F.1n().2N("id")=="ci"){k F}b E={t:F.2K({4K:1a}),r:F.2B({4K:1a}),"ck":F.p("ck")};F.64(\'<1o id="ci" 2A="k7-1q:3e%;aF:7a;cj:8s;4K:0;be:0"></1o>\');b I=F.1n();if(F.p("14")=="6g"){I.p({14:"1Z"});F.p({14:"1Z"})}1e{b H=1b(F.p("o"),10);if(6x(H)){H="3X"}b G=1b(F.p("l"),10);if(6x(H)){G="3X"}I.p({14:F.p("14"),o:H,l:G,2x:F.p("z-3Q")}).1u();F.p({14:"1Z",o:0,l:0})}I.p(E);k I},5S:c(E){if(E.1n().2N("id")=="ci"){k E.1n().al(E)}k E},5v:c(F,G,E,H){H=H||{};C.1t(G,c(J,I){aE=F.eV(I);if(aE[0]>0){H[I]=aE[0]*E+aE[1]}});k H},9w:c(G,H,J,I){b E=(2F J=="c"?J:(I?I:18));b F=(2F J=="6H"?J:18);k 8.1t(c(){b O={};b M=C(8);b N=M.2N("2A")||"";if(2F N=="6H"){N=N["ch"]}if(G.59){M.4G(G.59)?G.2d=G.59:G.21=G.59}b K=C.1K({},(19.aD?19.aD.f5(8,18):8.f4));if(G.21){M.1j(G.21)}if(G.2d){M.1G(G.2d)}b L=C.1K({},(19.aD?19.aD.f5(8,18):8.f4));if(G.21){M.1G(G.21)}if(G.2d){M.1j(G.2d)}1N(b P in L){if(2F L[P]!="c"&&L[P]&&P.83("k6")==-1&&P.83("1l")==-1&&L[P]!=K[P]&&(P.3o(/aw/i)||(!P.3o(/aw/i)&&!6x(1b(L[P],10))))&&(K.14!="6g"||(K.14=="6g"&&!P.3o(/l|o|3s|3f/)))){O[P]=L[P]}}M.1M(O,H,F,c(){if(2F C(8).2N("2A")=="6H"){C(8).2N("2A")["ch"]="";C(8).2N("2A")["ch"]=N}1e{C(8).2N("2A",N)}if(G.21){C(8).1j(G.21)}if(G.2d){C(8).1G(G.2d)}if(E){E.1w(8,1x)}})})}});C.fn.1K({f3:C.fn.1u,f2:C.fn.1B,f0:C.fn.59,eZ:C.fn.1j,eY:C.fn.1G,eX:C.fn.ap,5a:c(E,G,F,H){k C.1h[E]?C.1h[E].24(8,{k5:E,f:G||{},1S:F,2o:H}):18},1u:c(){if(!1x[0]||(1x[0].49==7q||/(aC|8T|cg)/.1v(1x[0]))){k 8.f3.1w(8,1x)}1e{b E=1x[1]||{};E["2H"]="1u";k 8.5a.1w(8,[1x[0],E,1x[2]||E.1S,1x[3]||E.2o])}},1B:c(){if(!1x[0]||(1x[0].49==7q||/(aC|8T|cg)/.1v(1x[0]))){k 8.f2.1w(8,1x)}1e{b E=1x[1]||{};E["2H"]="1B";k 8.5a.1w(8,[1x[0],E,1x[2]||E.1S,1x[3]||E.2o])}},59:c(){if(!1x[0]||(1x[0].49==7q||/(aC|8T|cg)/.1v(1x[0]))||(1x[0].49==f1)){k 8.f0.1w(8,1x)}1e{b E=1x[1]||{};E["2H"]="59";k 8.5a.1w(8,[1x[0],E,1x[2]||E.1S,1x[3]||E.2o])}},1j:c(F,E,H,G){k E?C.1h.9w.1w(8,[{21:F},E,H,G]):8.eZ(F)},1G:c(F,E,H,G){k E?C.1h.9w.1w(8,[{2d:F},E,H,G]):8.eY(F)},ap:c(F,E,H,G){k E?C.1h.9w.1w(8,[{59:F},E,H,G]):8.eX(F)},eW:c(E,G,F,I,H){k C.1h.9w.1w(8,[{21:G,2d:E},F,I,H])},k4:c(){k 8.eW.1w(8,1x)},eV:c(E){b F=8.p(E),G=[];C.1t(["em","2L","%","k3"],c(H,I){if(F.83(I)>0){G=[aB(F),I]}});k G}});1s.1t(["7Q","k2","k1","k0","jZ","aw","jY"],c(F,E){1s.fx.c5[E]=c(G){if(G.jX==0){G.2e=D(G.eU,E);G.4Q=B(G.4Q)}G.eU.2A[E]="cf("+[1c.22(1c.2p(1b((G.2w*(G.4Q[0]-G.2e[0]))+G.2e[0]),2s),0),1c.22(1c.2p(1b((G.2w*(G.4Q[1]-G.2e[1]))+G.2e[1]),2s),0),1c.22(1c.2p(1b((G.2w*(G.4Q[2]-G.2e[2]))+G.2e[2]),2s),0)].7k(",")+")"}});c B(F){b E;if(F&&F.49==8S&&F.1l==3){k F}if(E=/cf\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)/.8k(F)){k[1b(E[1]),1b(E[2]),1b(E[3])]}if(E=/cf\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)/.8k(F)){k[aB(E[1])*2.55,aB(E[2])*2.55,aB(E[3])*2.55]}if(E=/#([a-fA-8x-9]{2})([a-fA-8x-9]{2})([a-fA-8x-9]{2})/.8k(F)){k[1b(E[1],16),1b(E[2],16),1b(E[3],16)]}if(E=/#([a-fA-8x-9])([a-fA-8x-9])([a-fA-8x-9])/.8k(F)){k[1b(E[1]+E[1],16),1b(E[2]+E[2],16),1b(E[3]+E[3],16)]}if(E=/eT\\(0, 0, 0, 0\\)/.8k(F)){k A["7a"]}k A[1s.eS(F).8n()]}c D(G,E){b F;do{F=1s.jW(G,E);if(F!=""&&F!="7a"||1s.4f(G,"1C")){1A}E="7Q"}5r(G=G.3Z);k B(F)}b A={jV:[0,2s,2s],jU:[eO,2s,2s],jT:[eR,eR,jS],eQ:[0,0,0],jR:[0,0,2s],jQ:[eK,42,42],jP:[0,2s,2s],jO:[0,0,8w],jN:[0,8w,8w],jM:[ce,ce,ce],jL:[0,3e,0],jK:[jJ,jI,eP],jH:[8w,0,8w],jG:[85,eP,47],jF:[2s,c7,0],jE:[jD,50,jC],jB:[8w,0,0],jA:[jz,9T,jy],jx:[jw,0,aA],jv:[2s,0,2s],ju:[2s,jt,0],js:[0,6l,0],jr:[75,0,jq],jp:[eO,eN,c7],jo:[jn,jm,eN],jl:[eL,2s,2s],jk:[eM,jj,eM],ji:[aA,aA,aA],jh:[2s,jg,jf],je:[2s,2s,eL],jd:[0,2s,0],jc:[2s,0,2s],jb:[6l,0,0],ja:[0,0,6l],j9:[6l,6l,0],j8:[2s,eK,0],j7:[2s,az,j6],j5:[6l,0,6l],j4:[6l,0,6l],j3:[2s,0,0],j2:[az,az,az],j1:[2s,2s,2s],j0:[2s,2s,0],7a:[2s,2s,2s]};1s.1J["iZ"]=1s.1J["9t"];1s.1K(1s.1J,{eJ:"eI",9t:c(F,G,E,I,H){k 1s.1J[1s.1J.eJ](F,G,E,I,H)},iY:c(F,G,E,I,H){k I*(G/=H)*G+E},eI:c(F,G,E,I,H){k-I*(G/=H)*(G-2)+E},iX:c(F,G,E,I,H){if((G/=H/2)<1){k I/2*G*G+E}k-I/2*((--G)*(G-2)-1)+E},iW:c(F,G,E,I,H){k I*(G/=H)*G*G+E},iV:c(F,G,E,I,H){k I*((G=G/H-1)*G*G+1)+E},iU:c(F,G,E,I,H){if((G/=H/2)<1){k I/2*G*G*G+E}k I/2*((G-=2)*G*G+2)+E},iT:c(F,G,E,I,H){k I*(G/=H)*G*G*G+E},iS:c(F,G,E,I,H){k-I*((G=G/H-1)*G*G*G-1)+E},iR:c(F,G,E,I,H){if((G/=H/2)<1){k I/2*G*G*G*G+E}k-I/2*((G-=2)*G*G*G-2)+E},iQ:c(F,G,E,I,H){k I*(G/=H)*G*G*G*G+E},iP:c(F,G,E,I,H){k I*((G=G/H-1)*G*G*G*G+1)+E},iO:c(F,G,E,I,H){if((G/=H/2)<1){k I/2*G*G*G*G*G+E}k I/2*((G-=2)*G*G*G*G+2)+E},iN:c(F,G,E,I,H){k-I*1c.eH(G/H*(1c.5U/2))+I+E},iM:c(F,G,E,I,H){k I*1c.9v(G/H*(1c.5U/2))+E},iL:c(F,G,E,I,H){k-I/2*(1c.eH(1c.5U*G/H)-1)+E},iK:c(F,G,E,I,H){k(G==0)?E:I*1c.79(2,10*(G/H-1))+E},iJ:c(F,G,E,I,H){k(G==H)?E+I:I*(-1c.79(2,-10*G/H)+1)+E},iI:c(F,G,E,I,H){if(G==0){k E}if(G==H){k E+I}if((G/=H/2)<1){k I/2*1c.79(2,10*(G-1))+E}k I/2*(-1c.79(2,-10*--G)+2)+E},iH:c(F,G,E,I,H){k-I*(1c.8u(1-(G/=H)*G)-1)+E},iG:c(F,G,E,I,H){k I*1c.8u(1-(G=G/H-1)*G)+E},iF:c(F,G,E,I,H){if((G/=H/2)<1){k-I/2*(1c.8u(1-G*G)-1)+E}k I/2*(1c.8u(1-(G-=2)*G)+1)+E},iE:c(F,H,E,L,K){b I=1.8v;b J=0;b G=L;if(H==0){k E}if((H/=K)==1){k E+L}if(!J){J=K*0.3}if(G<1c.4h(L)){G=L;b I=J/4}1e{b I=J/(2*1c.5U)*1c.cd(L/G)}k-(G*1c.79(2,10*(H-=1))*1c.9v((H*K-I)*(2*1c.5U)/J))+E},iD:c(F,H,E,L,K){b I=1.8v;b J=0;b G=L;if(H==0){k E}if((H/=K)==1){k E+L}if(!J){J=K*0.3}if(G<1c.4h(L)){G=L;b I=J/4}1e{b I=J/(2*1c.5U)*1c.cd(L/G)}k G*1c.79(2,-10*H)*1c.9v((H*K-I)*(2*1c.5U)/J)+L+E},iC:c(F,H,E,L,K){b I=1.8v;b J=0;b G=L;if(H==0){k E}if((H/=K/2)==2){k E+L}if(!J){J=K*(0.3*1.5)}if(G<1c.4h(L)){G=L;b I=J/4}1e{b I=J/(2*1c.5U)*1c.cd(L/G)}if(H<1){k-0.5*(G*1c.79(2,10*(H-=1))*1c.9v((H*K-I)*(2*1c.5U)/J))+E}k G*1c.79(2,-10*(H-=1))*1c.9v((H*K-I)*(2*1c.5U)/J)*0.5+L+E},iB:c(F,G,E,J,I,H){if(H==2u){H=1.8v}k J*(G/=I)*G*((H+1)*G-H)+E},iA:c(F,G,E,J,I,H){if(H==2u){H=1.8v}k J*((G=G/I-1)*G*((H+1)*G+H)+1)+E},iz:c(F,G,E,J,I,H){if(H==2u){H=1.8v}if((G/=I/2)<1){k J/2*(G*G*(((H*=(1.eG))+1)*G-H))+E}k J/2*((G-=2)*G*(((H*=(1.eG))+1)*G+H)+2)+E},eF:c(F,G,E,I,H){k I-1s.1J.cc(F,H-G,0,I,H)+E},cc:c(F,G,E,I,H){if((G/=H)<(1/2.75)){k I*(7.ay*G*G)+E}1e{if(G<(2/2.75)){k I*(7.ay*(G-=(1.5/2.75))*G+0.75)+E}1e{if(G<(2.5/2.75)){k I*(7.ay*(G-=(2.25/2.75))*G+0.iy)+E}1e{k I*(7.ay*(G-=(2.ix/2.75))*G+0.iw)+E}}}},iv:c(F,G,E,I,H){if(G<H/2){k 1s.1J.eF(F,G*2,0,I,H)*0.5+E}k 1s.1J.cc(F,G*2-H,0,I,H)*0.5+I*0.5+E}})})(1s);(c(A){A.1h.iu=c(B){k 8.3i(c(){b D=A(8),C=["14","o","l"];b H=A.1h.4B(D,B.f.2H||"1B");b G=B.f.6k||"3G";A.1h.5u(D,C);D.1u();b J=A.1h.6j(D).p({2T:"3E"});b E=(G=="3G")?"r":"t";b I=(G=="3G")?J.r():J.t();if(H=="1u"){J.p(E,0)}b F={};F[E]=H=="1u"?I:0;J.1M(F,B.1S,B.f.1J,c(){if(H=="1B"){D.1B()}A.1h.4C(D,C);A.1h.5S(D);if(B.2o){B.2o.1w(D[0],1x)}D.3Y()})})}})(1s);(c(A){A.1h.it=c(B){k 8.3i(c(){b E=A(8),K=["14","o","l"];b J=A.1h.4B(E,B.f.2H||"5a");b M=B.f.6k||"5T";b C=B.f.4I||20;b D=B.f.c8||5;b G=B.1S||ir;if(/1u|1B/.1v(J)){K.4F("1L")}A.1h.5u(E,K);E.1u();A.1h.6j(E);b F=(M=="5T"||M=="5O")?"o":"l";b O=(M=="5T"||M=="l")?"2w":"au";b C=B.f.4I||(F=="o"?E.2B({4K:1a})/3:E.2K({4K:1a})/3);if(J=="1u"){E.p("1L",0).p(F,O=="2w"?-C:C)}if(J=="1B"){C=C/(D*2)}if(J!="1B"){D--}if(J=="1u"){b H={1L:1};H[F]=(O=="2w"?"+=":"-=")+C;E.1M(H,G/2,B.f.1J);C=C/2;D--}1N(b I=0;I<D;I++){b N={},L={};N[F]=(O=="2w"?"-=":"+=")+C;L[F]=(O=="2w"?"+=":"-=")+C;E.1M(N,G/2,B.f.1J).1M(L,G/2,B.f.1J);C=(J=="1B")?C*2:C/2}if(J=="1B"){b H={1L:0};H[F]=(O=="2w"?"-=":"+=")+C;E.1M(H,G/2,B.f.1J,c(){E.1B();A.1h.4C(E,K);A.1h.5S(E);if(B.2o){B.2o.1w(8,1x)}})}1e{b N={},L={};N[F]=(O=="2w"?"-=":"+=")+C;L[F]=(O=="2w"?"+=":"-=")+C;E.1M(N,G/2,B.f.1J).1M(L,G/2,B.f.1J,c(){A.1h.4C(E,K);A.1h.5S(E);if(B.2o){B.2o.1w(8,1x)}})}E.3i("fx",c(){E.3Y()});E.3Y()})}})(1s);(c(A){A.1h.iq=c(B){k 8.3i(c(){b D=A(8),C=["14","o","l","t","r"];b H=A.1h.4B(D,B.f.2H||"1B");b G=B.f.6k||"3G";A.1h.5u(D,C);D.1u();A.1h.6j(D).p({2T:"3E"});b E={1q:(G=="3G")?"r":"t",14:(G=="3G")?"o":"l"};b I=(G=="3G")?D.r():D.t();if(H=="1u"){D.p(E.1q,0);D.p(E.14,I/2)}b F={};F[E.1q]=H=="1u"?I:0;F[E.14]=H=="1u"?0:I/2;D.1M(F,{3i:17,1S:B.1S,1J:B.f.1J,5P:c(){if(H=="1B"){D.1B()}A.1h.4C(D,C);A.1h.5S(D);if(B.2o){B.2o.1w(8,1x)}D.3Y()}})})}})(1s);(c(A){A.1h.5w=c(B){k 8.3i(c(){b E=A(8),D=["14","o","l","1L"];b I=A.1h.4B(E,B.f.2H||"1B");b H=B.f.6k||"l";A.1h.5u(E,D);E.1u();A.1h.6j(E);b F=(H=="5T"||H=="5O")?"o":"l";b C=(H=="5T"||H=="l")?"2w":"au";b J=B.f.4I||(F=="o"?E.2B({4K:1a})/2:E.2K({4K:1a})/2);if(I=="1u"){E.p("1L",0).p(F,C=="2w"?-J:J)}b G={1L:I=="1u"?1:0};G[F]=(I=="1u"?(C=="2w"?"+=":"-="):(C=="2w"?"-=":"+="))+J;E.1M(G,{3i:17,1S:B.1S,1J:B.f.1J,5P:c(){if(I=="1B"){E.1B()}A.1h.4C(E,D);A.1h.5S(E);if(B.2o){B.2o.1w(8,1x)}E.3Y()}})})}})(1s);(c(A){A.1h.cb=c(B){k 8.3i(c(){b I=B.f.ax?1c.3C(1c.8u(B.f.ax)):3;b E=B.f.ax?1c.3C(1c.8u(B.f.ax)):3;B.f.2H=B.f.2H=="59"?(A(8).is(":4H")?"1B":"1u"):B.f.2H;b H=A(8).1u().p("8t","3E");b J=H.v();J.o-=1b(H.p("7P"))||0;J.l-=1b(H.p("7O"))||0;b G=H.2K(1a);b C=H.2B(1a);1N(b F=0;F<I;F++){1N(b D=0;D<E;D++){H.78().2G("1C").64("<1o></1o>").p({14:"23",8t:"4H",l:-D*(G/E),o:-F*(C/I)}).1n().1j("1h-cb").p({14:"23",2T:"3E",t:G/E,r:C/I,l:J.l+D*(G/E)+(B.f.2H=="1u"?(D-1c.9h(E/2))*(G/E):0),o:J.o+F*(C/I)+(B.f.2H=="1u"?(F-1c.9h(I/2))*(C/I):0),1L:B.f.2H=="1u"?0:1}).1M({l:J.l+D*(G/E)+(B.f.2H=="1u"?0:(D-1c.9h(E/2))*(G/E)),o:J.o+F*(C/I)+(B.f.2H=="1u"?0:(F-1c.9h(I/2))*(C/I)),1L:B.f.2H=="1u"?1:0},B.1S||86)}}80(c(){B.f.2H=="1u"?H.p({8t:"4H"}):H.p({8t:"4H"}).1B();if(B.2o){B.2o.1w(H[0])}H.3Y();A(".1h-cb").2d()},B.1S||86)})}})(1s);(c(A){A.1h.ip=c(B){k 8.3i(c(){b E=A(8),H=["14","o","l"];b G=A.1h.4B(E,B.f.2H||"1B");b K=B.f.1q||15;A.1h.5u(E,H);E.1u();b C=A.1h.6j(E).p({2T:"3E"});b F=(G=="1u")?["t","r"]:["r","t"];b D=(G=="1u")?[C.t(),C.r()]:[C.r(),C.t()];if(G=="1u"){C.p({r:K,t:0})}b J={},I={};J[F[0]]=G=="1u"?D[0]:K;I[F[1]]=G=="1u"?D[1]:0;C.1M(J,B.1S/2,B.f.1J).1M(I,B.1S/2,B.f.1J,c(){if(G=="1B"){E.1B()}A.1h.4C(E,H);A.1h.5S(E);if(B.2o){B.2o.1w(E[0],1x)}E.3Y()})})}})(1s);(c(A){A.1h.io=c(B){k 8.3i(c(){b E=A(8),D=["ca","7Q","1L"];b H=A.1h.4B(E,B.f.2H||"1u");b C=B.f.aw||"#im";b G=E.p("7Q");A.1h.5u(E,D);E.1u();E.p({ca:"8s",7Q:C});b F={7Q:G};if(H=="1B"){F["1L"]=0}E.1M(F,{3i:17,1S:B.1S,1J:B.f.1J,5P:c(){if(H=="1B"){E.1B()}A.1h.4C(E,D);if(H=="1u"&&1s.1R.3c){8.2A.il("3B")}if(B.2o){B.2o.1w(8,1x)}E.3Y()}})})}})(1s);(c(A){A.1h.ik=c(B){k 8.3i(c(){b D=A(8);b F=A.1h.4B(D,B.f.2H||"1u");b E=B.f.c8||5;if(F=="1B"){E--}if(D.is(":3E")){D.p("1L",0);D.1u();D.1M({1L:1},B.1S/2,B.f.1J);E=E-2}1N(b C=0;C<E;C++){D.1M({1L:0},B.1S/2,B.f.1J).1M({1L:1},B.1S/2,B.f.1J)}if(F=="1B"){D.1M({1L:0},B.1S/2,B.f.1J,c(){D.1B();if(B.2o){B.2o.1w(8,1x)}})}1e{D.1M({1L:0},B.1S/2,B.f.1J).1M({1L:1},B.1S/2,B.f.1J,c(){if(B.2o){B.2o.1w(8,1x)}})}D.3i("fx",c(){D.3Y()});D.3Y()})}})(1s);(c(A){A.1h.ij=c(B){k 8.3i(c(){b F=A(8);b C=A.1K(1a,{},B);b H=A.1h.4B(F,B.f.2H||"1B");b G=1b(B.f.av)||9T;C.eD=1a;b E={r:F.r(),t:F.t()};b D=G/3e;F.1P=(H=="1B")?E:{r:E.r*D,t:E.t*D};C.1P=F.1P;C.av=(H=="1B")?G:3e;C.2H=H;F.5a("c9",C,B.1S,B.2o);F.3Y()})};A.1h.c9=c(B){k 8.3i(c(){b C=A(8);b K=A.1K(1a,{},B);b E=A.1h.4B(C,B.f.2H||"5a");b G=1b(B.f.av)||(1b(B.f.av)==0?0:(E=="1B"?0:3e));b I=B.f.6k||"5m";b J=B.f.ii;if(E!="5a"){J=J||["93","7y"];K.4C=1a}b D={r:C.r(),t:C.t()};C.1P=B.f.1P||(E=="1u"?{r:0,t:0}:D);b H={y:I!="9Q"?(G/3e):1,x:I!="3G"?(G/3e):1};C.1X={r:D.r*H.y,t:D.t*H.x};if(J){b F=A.1h.eE(J,D);C.1P.o=(D.r-C.1P.r)*F.y;C.1P.l=(D.t-C.1P.t)*F.x;C.1X.o=(D.r-C.1X.r)*F.y;C.1X.l=(D.t-C.1X.t)*F.x}if(B.f.eD){if(E=="1u"){C.1P.1L=0;C.1X.1L=1}if(E=="1B"){C.1P.1L=1;C.1X.1L=0}}K.1P=C.1P;K.1X=C.1X;K.2H=E;C.5a("1q",K,B.1S,B.2o);C.3Y()})};A.1h.1q=c(B){k 8.3i(c(){b C=A(8),M=["14","o","l","t","r","2T","1L"];b L=["14","2T","1L"];b I=["t","r","2T"];b N=["eC"];b J=["5R","ar","eB","eA"];b F=["5Q","aq","ez","ey"];b G=A.1h.4B(C,B.f.2H||"5a");b H=B.f.4C||17;b E=B.f.c9||"5m";b D={r:C.r(),t:C.t()};C.1P=B.f.1P||D;C.1X=B.f.1X||D;b K={1P:{y:C.1P.r/D.r,x:C.1P.t/D.t},1X:{y:C.1X.r/D.r,x:C.1X.t/D.t}};if(E=="ih"||E=="5m"){if(K.1P.y!=K.1X.y){M=M.5h(J);C.1P=A.1h.5v(C,J,K.1P.y,C.1P);C.1X=A.1h.5v(C,J,K.1X.y,C.1X)}if(K.1P.x!=K.1X.x){M=M.5h(F);C.1P=A.1h.5v(C,F,K.1P.x,C.1P);C.1X=A.1h.5v(C,F,K.1X.x,C.1X)}}if(E=="92"||E=="5m"){if(K.1P.y!=K.1X.y){M=M.5h(N);C.1P=A.1h.5v(C,N,K.1P.y,C.1P);C.1X=A.1h.5v(C,N,K.1X.y,C.1X)}}A.1h.5u(C,H?M:L);C.1u();A.1h.6j(C);C.p("2T","3E").p(C.1P);if(E=="92"||E=="5m"){J=J.5h(["7P","77"]).5h(N);F=F.5h(["7O","76"]);I=M.5h(J).5h(F);C.5g("*[t]").1t(c(){2S=A(8);if(H){A.1h.5u(2S,I)}b O={r:2S.r(),t:2S.t()};2S.1P={r:O.r*K.1P.y,t:O.t*K.1P.x};2S.1X={r:O.r*K.1X.y,t:O.t*K.1X.x};if(K.1P.y!=K.1X.y){2S.1P=A.1h.5v(2S,J,K.1P.y,2S.1P);2S.1X=A.1h.5v(2S,J,K.1X.y,2S.1X)}if(K.1P.x!=K.1X.x){2S.1P=A.1h.5v(2S,F,K.1P.x,2S.1P);2S.1X=A.1h.5v(2S,F,K.1X.x,2S.1X)}2S.p(2S.1P);2S.1M(2S.1X,B.1S,B.f.1J,c(){if(H){A.1h.4C(2S,I)}})})}C.1M(C.1X,{3i:17,1S:B.1S,1J:B.f.1J,5P:c(){if(G=="1B"){C.1B()}A.1h.4C(C,H?M:L);A.1h.5S(C);if(B.2o){B.2o.1w(8,1x)}C.3Y()}})})}})(1s);(c(A){A.1h.ig=c(B){k 8.3i(c(){b E=A(8),K=["14","o","l"];b J=A.1h.4B(E,B.f.2H||"5a");b M=B.f.6k||"l";b C=B.f.4I||20;b D=B.f.c8||3;b G=B.1S||B.f.1S||c7;A.1h.5u(E,K);E.1u();A.1h.6j(E);b F=(M=="5T"||M=="5O")?"o":"l";b O=(M=="5T"||M=="l")?"2w":"au";b H={},N={},L={};H[F]=(O=="2w"?"-=":"+=")+C;N[F]=(O=="2w"?"+=":"-=")+C*2;L[F]=(O=="2w"?"-=":"+=")+C*2;E.1M(H,G,B.f.1J);1N(b I=1;I<D;I++){E.1M(N,G,B.f.1J).1M(L,G,B.f.1J)}E.1M(N,G,B.f.1J).1M(H,G/2,B.f.1J,c(){A.1h.4C(E,K);A.1h.5S(E);if(B.2o){B.2o.1w(8,1x)}});E.3i("fx",c(){E.3Y()});E.3Y()})}})(1s);(c(A){A.1h.62=c(B){k 8.3i(c(){b E=A(8),D=["14","o","l"];b I=A.1h.4B(E,B.f.2H||"1u");b H=B.f.6k||"l";A.1h.5u(E,D);E.1u();A.1h.6j(E).p({2T:"3E"});b F=(H=="5T"||H=="5O")?"o":"l";b C=(H=="5T"||H=="l")?"2w":"au";b J=B.f.4I||(F=="o"?E.2B({4K:1a}):E.2K({4K:1a}));if(I=="1u"){E.p(F,C=="2w"?-J:J)}b G={};G[F]=(I=="1u"?(C=="2w"?"+=":"-="):(C=="2w"?"-=":"+="))+J;E.1M(G,{3i:17,1S:B.1S,1J:B.f.1J,5P:c(){if(I=="1B"){E.1B()}A.1h.4C(E,D);A.1h.5S(E);if(B.2o){B.2o.1w(8,1x)}E.3Y()}})})}})(1s);(c(A){A.1h.ex=c(B){k 8.3i(c(){b E=A(8);b G=A.1h.4B(E,B.f.2H||"5a");b F=A(B.f.1X);b C=E.v();b D=A(\'<1o 2h="h-1h-ex"></1o>\').2G(19.1C);if(B.f.8a){D.1j(B.f.8a)}D.1j(B.f.8a);D.p({o:C.o,l:C.l,r:E.2B(1a)-1b(D.p("5R"))-1b(D.p("ar")),t:E.2K(1a)-1b(D.p("5Q"))-1b(D.p("aq")),14:"23"});C=F.v();ew={o:C.o,l:C.l,r:F.2B()-1b(D.p("5R"))-1b(D.p("ar")),t:F.2K()-1b(D.p("5Q"))-1b(D.p("aq"))};D.1M(ew,B.1S,B.f.1J,c(){D.2d();if(B.2o){B.2o.1w(E[0],1x)}E.3Y()})})}})(1s);(c(E){E.4k("h.3K",{5j:c(){b G=8.f;if(G.ie){b J=8.q.5g("a").3B(G.eo);if(J.1l){if(J.3B(G.6N).1l){G.3H=J}1e{G.3H=J.1n().1n().6e();J.1j("4d")}}}G.4A=8.q.5g(G.6N);G.3H=C(G.4A,G.3H);if(E.1R.3c){8.q.5g("a").p("ev","1")}if(!8.q.4G("h-3K")){8.q.1j("h-3K");E("<46 2h=\'h-3K-l\'/>").b4(G.4A);E("<46 2h=\'h-3K-3f\'/>").2G(G.4A);G.4A.1j("h-3K-6N").2N("ic","0")}b I;if(G.eu){I=8.q.1n().r();G.4A.1t(c(){I-=E(8).2B()});b H=0;G.4A.4v().1t(c(){H=1c.22(H,E(8).9n()-E(8).r())}).r(I-H)}1e{if(G.73){I=0;G.4A.4v().1t(c(){I=1c.22(I,E(8).2B())}).r(I)}}G.4A.74(G.3H||"").4v().1B();G.3H.1n().7N().1j(G.3n);if(G.3M){8.q.2R((G.3M)+".3K",F)}},5N:c(G){F.24(8.q[0],{1p:C(8.f.4A,G)[0]})},3q:c(){8.f.4A.4v().p("5z","");if(8.f.eu||8.f.73){8.f.4A.4v().p("r","")}E.48(8.q[0],"3K");8.q.1G("h-3K").3m(".3K")}});c B(H,G){k c(){k H.1w(G,1x)}}c D(I){if(!E.1k(8,"3K")){k}b G=E.1k(8,"3K");b H=G.f;H.8r=I?0:--H.8r;if(H.8r){k}if(H.ib){H.6i.21(H.7M).p({r:"",2T:""})}E(8).2y("ia",[H.1k],H.6v)}c A(G,K,L,J,M){b I=E.1k(8,"3K").f;I.6i=G;I.7M=K;I.1k=L;b H=B(D,8);I.8r=K.1q()===0?G.1q():K.1q();if(I.ao){if(!I.9u&&J){E.h.3K.c6[I.ao]({6i:1s([]),7M:K,5P:H,5O:M,73:I.73})}1e{E.h.3K.c6[I.ao]({6i:G,7M:K,5P:H,5O:M,73:I.73})}}1e{if(!I.9u&&J){G.59()}1e{K.1B();G.1u()}H(1a)}}c F(L){b J=E.1k(8,"3K").f;if(J.1F){k 17}if(!L.1p&&!J.9u){J.3H.1n().7N().ap(J.3n);b I=J.3H.4v(),M={f:J,et:1s([]),es:J.3H,er:1s([]),ep:I},G=(J.3H=E([]));A.24(8,G,I,M);k 17}b K=E(L.1p);if(K.51(J.6N).1l){5r(!K.is(J.6N)){K=K.1n()}}b H=K[0]==J.3H[0];if(J.8r||(J.9u&&H)){k 17}if(!K.is(J.6N)){k}J.3H.1n().7N().ap(J.3n);if(!H){K.1n().7N().1j(J.3n)}b G=K.4v(),I=J.3H.4v(),M={f:J,et:K,es:J.3H,er:G,ep:I},N=J.4A.3Q(J.3H[0])>J.4A.3Q(K[0]);J.3H=H?E([]):K;A.24(8,G,I,M,H,N);k 17}c C(H,G){k G!=2u?2F G=="8g"?H.3B(":eq("+G+")"):H.74(H.74(G)):G===17?E([]):H.3B(":eq(0)")}E.1K(E.h.3K,{5f:{3n:"1I",9u:1a,ao:"62",3M:"1z",6N:"a",73:1a,8r:0,eo:c(){k 8.3N.8n()==9N.3N.8n()}},c6:{62:c(G,I){G=E.1K({1J:"9t",1S:d6},G,I);if(!G.7M.1q()){G.6i.1M({r:"1u"},G);k}b H=G.7M.r(),J=G.6i.r(),K=J/H;G.6i.p({r:0,2T:"3E"}).1u();G.7M.3B(":3E").1t(G.5P).4Q().3B(":4H").1M({r:"1B"},{c5:c(L){b M=(H-L)*K;if(E.1R.3c||E.1R.7p){M=1c.dF(M)}G.6i.r(M)},1S:G.1S,1J:G.1J,5P:c(){if(!G.73){G.6i.p("r","3X")}G.5P()}})},i9:c(G){8.62(G,{1J:G.5O?"i8":"9t",1S:G.5O?91:d7})},i7:c(G){8.62(G,{1J:"i6",1S:i5})}}});E.fn.5N=c(G){k 8.3K("5N",G)}})(1s);(c($){c 95(){8.eh=17;8.eg=0;8.ak=[];8.9j=18;8.6h=[];8.7H=17;8.6X=17;8.c4=[];8.c4[""]={dR:"i4",dS:"i3 9r 4d 1d",dP:"en",dQ:"en i2 6v",bF:"&#i1;i0",dO:"9s 9r hZ 2k",bE:"hY&#hX;",dN:"9s 9r 4v 2k",dL:"hW",dM:"9s 9r 4d 2k",4a:["hV","hU","hT","hS","ek","hR","hQ","hP","hO","hN","hM","hL"],5p:["hK","hJ","hI","hH","ek","hG","hF","hE","hD","hC","hB","hA"],dw:"9s a ej 2k",dq:"9s a ej 2a",dK:"hz",hy:"hx hw 9r 2a",4b:["hv","hu","ht","hs","hr","hq","hp"],4q:["ho","hn","hm","hl","hk","hj","hi"],a3:["hh","hg","hf","he","hd","hc","hb"],dJ:"ha a4 as cX a1 2j",7D:"ei a4, M d",7z:"h9/dd/h8",4u:0,dA:"ei a 1d",56:17};8.4w={7K:"3D",6Z:"1u",6S:18,8q:"",71:"...",8p:"",ed:17,98:1a,bH:17,9d:17,dx:1a,dt:1a,ds:"-10:+10",9c:1a,7B:17,9a:17,a2:8.9b,4O:"+10",43:17,dE:8.7D,2E:18,2O:18,4y:"8T",99:18,9o:18,6W:18,9k:18,dm:1,7G:1,5J:17,bR:" - "};$.1K(8.4w,8.c4[""]);8.2n=$(\'<1o id="h-Z-1o"></1o>\')}$.1K(95.4E,{7J:"e1",bN:c(){if(8.eh){h7.bN.1w("",1x)}},dW:c(u){b id=8.eg++;8.ak[id]=u;k id},4e:c(id){k 8.ak[id]||id},h6:c(2f){8b(8.4w,2f||{});k 8},df:c(1p,2f){b 72=18;1N(an in 8.4w){b am=1p.h5("1d:"+an);if(am){72=72||{};bQ{72[an]=h4(am)}bO(h3){72[an]=am}}}b 4f=1p.4f.8n();b c3=(72?$.1K(2f||{},72||{}):2f);if(4f=="1E"){b u=(u&&!72?u:1O 9f(c3,17));8.ee(1p,u)}1e{if(4f=="1o"||4f=="46"){b u=1O 9f(c3,1a);8.ea(1p,u)}}},h2:c(1p){b 4f=1p.4f.8n();b c2=1p.58;1p.58=18;b $1p=$(1p);if(4f=="1E"){$1p.7o(".h-Z-4n").al("").4Q().7o(".h-Z-3P").al("").4Q().1G(8.7J).3m("3D",8.8o).3m("63",8.ai).3m("bf",8.bZ);b 7L=$1p.51(".h-Z-64");if(7L){7L.al(7L.2t())}}1e{if(4f=="1o"||4f=="46"){$1p.1G(8.7J).e6()}}if($("1E[58="+c2+"]").1l==0){8.ak[c2]=18}},h1:c(1p){1p.1F=17;$(1p).7o("4L.h-Z-3P").1t(c(){8.1F=17}).4Q().7o("9q.h-Z-3P").p({1L:"1.0",2l:""});8.6h=$.61(8.6h,c(1D){k(1D==1p?18:1D)})},h0:c(1p){1p.1F=1a;$(1p).7o("4L.h-Z-3P").1t(c(){8.1F=1a}).4Q().7o("9q.h-Z-3P").p({1L:"0.5",2l:"5k"});8.6h=$.61($.Z.6h,c(1D){k(1D==1p?18:1D)});8.6h[$.Z.6h.1l]=1p},e7:c(1p){if(!1p){k 17}1N(b i=0;i<8.6h.1l;i++){if(8.6h[i]==1p){k 1a}}k 17},gZ:c(1p,3V,1D){b 2f=3V||{};if(2F 3V=="4Z"){2f={};2f[3V]=1D}if(u=8.4e(1p.58)){8b(u.5s,2f);8.5L(u)}},gY:c(1p,1d,6b){if(u=8.4e(1p.58)){u.bK(1d,6b);8.5L(u)}},gX:c(1p){b u=8.4e(1p.58);if(u){u.bS($(1p))}k(u?u.bJ():18)},ai:c(e){b u=$.Z.4e(8.58);if($.Z.7H){5n(e.6B){1y 9:$.Z.6R(18,"");1A;1y 13:$.Z.bx(u,u.53,u.5o,$("4t.h-Z-8i-7C-3W",u.2n)[0]);k 17;1A;1y 27:$.Z.6R(18,u.1i("4y"));1A;1y 33:$.Z.4c(u,(e.4g?-1:-u.1i("7G")),(e.4g?"Y":"M"));1A;1y 34:$.Z.4c(u,(e.4g?+1:+u.1i("7G")),(e.4g?"Y":"M"));1A;1y 35:if(e.4g){$.Z.bG(u)}1A;1y 36:if(e.4g){$.Z.bD(u)}1A;1y 37:if(e.4g){$.Z.4c(u,-1,"D")}1A;1y 38:if(e.4g){$.Z.4c(u,-7,"D")}1A;1y 39:if(e.4g){$.Z.4c(u,+1,"D")}1A;1y 40:if(e.4g){$.Z.4c(u,+7,"D")}1A}}1e{if(e.6B==36&&e.4g){$.Z.8o(8)}}},bZ:c(e){b u=$.Z.4e(8.58);b 6f=$.Z.dX(u.1i("7z"));b c1=aj.gW(e.ef==2u?e.6B:e.ef);k e.4g||(c1<" "||!6f||6f.83(c1)>-1)},ee:c(1p,u){b 1E=$(1p);if(1E.is("."+8.7J)){k}b 8q=u.1i("8q");b 56=u.1i("56");if(8q){if(56){1E.c0(\'<46 2h="h-Z-4n">\'+8q)}1e{1E.9S(\'<46 2h="h-Z-4n">\'+8q)}}b 7K=u.1i("7K");if(7K=="3D"||7K=="5m"){1E.3D(8.8o)}if(7K=="4L"||7K=="5m"){1E.64(\'<46 2h="h-Z-64">\');b 71=u.1i("71");b 8p=u.1i("8p");b 3P=$(u.1i("ed")?$("<9q>").1j("h-Z-3P").2N({bv:8p,eb:71,5i:71}):$("<4L>").1j("h-Z-3P").2N({70:"4L"}).2t(8p!=""?$("<9q>").2N({bv:8p,eb:71,5i:71}):71));if(56){1E.c0(3P)}1e{1E.9S(3P)}3P.1z(c(){if($.Z.7H&&$.Z.8m==1p){$.Z.6R()}1e{$.Z.8o(1p)}})}1E.1j(8.7J).63(8.ai).bf(8.bZ).2R("52.Z",c(3M,5M,1D){u.5s[5M]=1D}).2R("9p.Z",c(3M,5M){k u.1i(5M)});1E[0].58=u.3u},ea:c(1p,u){b 1E=$(1p);if(1E.is("."+8.7J)){k}1E.1j(8.7J).4n(u.2n).2R("52.Z",c(3M,5M,1D){u.5s[5M]=1D}).2R("9p.Z",c(3M,5M){k u.1i(5M)});1E[0].58=u.3u;8.5L(u)},gV:c(u){b 3t=u.8e();u.2n.t(3t[1]*$(".h-Z",u.2n[0]).t())},gU:c(1E,e8,6W,2f,2w){b u=8.e9;if(!u){u=8.e9=1O 9f({},17);8.6Y=$(\'<1E 70="94" 1q="1" 2A="14: 23; o: -e2;"/>\');8.6Y.63(8.ai);$("1C").4n(8.6Y);8.6Y[0].58=u.3u}8b(u.5s,2f||{});8.6Y.a5(e8);8.4U=(2w?(2w.1l?2w:[2w.2X,2w.2Y]):18);if(!8.4U){b ae=3d.ah||19.3I.ag||19.1C.ag;b ad=3d.9n||19.3I.af||19.1C.af;b 9m=19.3I.26||19.1C.26;b 9l=19.3I.29||19.1C.29;8.4U=[(ae/2)-3e+9m,(ad/2)-9T+9l]}8.6Y.p("l",8.4U[0]+"2L").p("o",8.4U[1]+"2L");u.5s.6W=6W;8.6X=1a;8.2n.1j("h-Z-1U");8.8o(8.6Y[0]);if($.9i){$.9i(8.2n)}k 8},8o:c(1E){1E=1E.1p||1E;if(1E.4f.8n()!="1E"){1E=$("1E",1E.3Z)[0]}if($.Z.e7(1E)||$.Z.8m==1E){k}b u=$.Z.4e(1E.58);b 9o=u.1i("9o");8b(u.5s,(9o?9o.1w(1E,[1E,u]):{}));$.Z.6R(18,"");$.Z.8m=1E;u.bS(1E);if($.Z.6X){1E.1D=""}if(!$.Z.4U){$.Z.4U=$.Z.bX(1E);$.Z.4U[1]+=1E.5D}b 5t=17;$(1E).51().1t(c(){5t|=$(8).p("14")=="4z"});if(5t&&$.1R.7p){$.Z.4U[0]-=19.3I.26;$.Z.4U[1]-=19.3I.29}u.2n.p("14",($.Z.6X&&$.9i?"6g":(5t?"4z":"23"))).p({l:$.Z.4U[0]+"2L",o:$.Z.4U[1]+"2L"});$.Z.4U=18;u.4r=18;$.Z.5L(u);if(!u.7A){b 4y=u.1i("4y");b bY=c(){$.Z.7H=1a;$.Z.e3(u)};b 6Z=u.1i("6Z")||"1u";u.2n[6Z](4y,bY);if(4y==""){bY()}if(u.2v[0].70!="3E"){u.2v[0].3D()}$.Z.9j=u}},5L:c(u){u.2n.e6().4n(u.dT());b 3t=u.8e();if(3t[0]!=1||3t[1]!=1){u.2n.1j("h-Z-e5")}1e{u.2n.1G("h-Z-e5")}if(u.1i("56")){u.2n.1j("h-Z-e4")}1e{u.2n.1G("h-Z-e4")}if(u.2v&&u.2v[0].70!="3E"){$(u.2v[0]).3D()}},e3:c(u){b 3t=u.8e();u.2n.t(3t[1]*$(".h-Z",u.2n[0])[0].5C);if($.1R.3c&&1b($.1R.6C)<7){$("9Z.h-Z-dz").p({t:u.2n.t()+4,r:u.2n.r()+4})}b 5t=u.2n.p("14")=="4z";b 2w=u.2v?$.Z.bX(u.2v[0]):18;b ae=3d.ah||19.3I.ag||19.1C.ag;b ad=3d.9n||19.3I.af||19.1C.af;b 9m=(5t?0:19.3I.26||19.1C.26);b 9l=(5t?0:19.3I.29||19.1C.29);if((u.2n.v().l+u.2n.t()-(5t&&$.1R.3c?19.3I.26:0))>(ae+9m)){u.2n.p("l",1c.22(9m,2w[0]+(u.2v?$(u.2v[0]).t():18)-u.2n.t()-(5t&&$.1R.7p?19.3I.26:0))+"2L")}if((u.2n.v().o+u.2n.r()-(5t&&$.1R.3c?19.3I.29:0))>(ad+9l)){u.2n.p("o",1c.22(9l,2w[1]-(8.6X?0:u.2n.r())-(5t&&$.1R.7p?19.3I.29:0))+"2L")}},bX:c(7I){5r(7I&&(7I.70=="3E"||7I.gT!=1)){7I=7I.gS}b 14=$(7I).v();k[14.l,14.o]},6R:c(1E,4y){b u=8.9j;if(!u){k}b 5J=u.1i("5J");if(5J&&8.6U){8.ab(u,u.96(u.4o,u.4M,u.4p))}8.6U=17;if(8.7H){4y=(4y!=18?4y:u.1i("4y"));b 6Z=u.1i("6Z");u.2n[(6Z=="gR"?"gQ":(6Z=="gP"?"gO":"1B"))](4y,c(){$.Z.bW(u)});if(4y==""){8.bW(u)}b 9k=u.1i("9k");if(9k){9k.1w((u.2v?u.2v[0]:18),[u.bJ(),u])}8.7H=17;8.8m=18;u.5s.7F=18;if(8.6X){8.6Y.p({14:"23",l:"0",o:"-e2"});if($.9i){$.gN();$("1C").4n(8.2n)}}8.6X=17}8.9j=18},bW:c(u){u.2n.1G("h-Z-1U").3m(".h-Z");$(".h-Z-7F",u.2n).2d()},de:c(3M){if(!$.Z.9j){k}b $1p=$(3M.1p);if(($1p.51("#h-Z-1o").1l==0)&&!$1p.4G("e1")&&!$1p.4G("h-Z-3P")&&$.Z.7H&&!($.Z.6X&&$.9i)){$.Z.6R(18,"")}},4c:c(id,v,6K){b u=8.4e(id);u.4c(v,6K);8.5L(u)},bD:c(id){b 1d=1O 2i();b u=8.4e(id);u.4N=1d.2U();u.6J=u.53=1d.3F();u.6I=u.5o=1d.2M();8.4c(u)},bt:c(id,4j,6K){b u=8.4e(id);u.ac=17;u[6K=="M"?"6J":"6I"]=4j.f[4j.gM].1D-0;8.4c(u)},bs:c(id){b u=8.4e(id);if(u.2v&&u.ac&&!$.1R.3c){u.2v[0].3D()}u.ac=!u.ac},dI:c(id,2j){b u=8.4e(id);u.5s.4u=2j;8.5L(u)},bx:c(id,2k,2a,4t){if($(4t).is(".h-Z-5q")){k}b u=8.4e(id);b 5J=u.1i("5J");if(5J){if(!8.6U){$(".h-Z 4t").1G("h-Z-4d-2j");$(4t).1j("h-Z-4d-2j")}8.6U=!8.6U}u.4N=u.4o=$("a",4t).2t();u.53=u.4M=2k;u.5o=u.4p=2a;8.ab(id,u.96(u.4o,u.4M,u.4p));if(8.6U){u.5H=u.6d=u.5I=18;u.4r=1O 2i(u.4p,u.4M,u.4o);8.5L(u)}1e{if(5J){u.5H=u.4o;u.6d=u.4M;u.5I=u.4p;u.4N=u.4o=u.4r.2U();u.53=u.4M=u.4r.3F();u.5o=u.4p=u.4r.2M();u.4r=18;if(u.7A){8.5L(u)}}}},bG:c(id){b u=8.4e(id);if(u.1i("bH")){k}8.6U=17;u.5H=u.6d=u.5I=u.4r=18;8.ab(u,"")},ab:c(id,6V){b u=8.4e(id);6V=(6V!=18?6V:u.96());if(u.4r){6V=u.96(u.4r)+u.1i("bR")+6V}if(u.2v){u.2v.a5(6V)}b 6W=u.1i("6W");if(6W){6W.1w((u.2v?u.2v[0]:18),[6V,u])}1e{if(u.2v){u.2v.3P("6v")}}if(u.7A){8.5L(u)}1e{if(!8.6U){8.6R(18,u.1i("4y"));8.8m=u.2v[0];if(2F(u.2v[0])!="6H"){u.2v[0].3D()}8.8m=18}}},gL:c(1d){b 2j=1d.8f();k[(2j>0&&2j<6),""]},9b:c(1d){b 4x=1O 2i(1d.2M(),1d.3F(),1d.2U(),(1d.gK()/-60));b 8l=1O 2i(4x.2M(),1-1,4);b 4u=8l.8f()||7;8l.8d(8l.2U()+1-4u);if(4u<4&&4x<8l){4x.8d(4x.2U()-3);k $.Z.9b(4x)}1e{if(4x>1O 2i(4x.2M(),12-1,28)){4u=1O 2i(4x.2M()+1,1-1,4).8f()||7;if(4u>4&&(4x.8f()||7)<4u-3){4x.8d(4x.2U()+3);k $.Z.9b(4x)}}}k 1c.9h(((4x-8l)/gJ)/7)+1},7D:c(1d,u){k $.Z.bo(u.1i("7D"),1d,u.9X())},bP:c(3h,1D,2f){if(3h==18||1D==18){84"dZ 1x"}1D=(2F 1D=="6H"?1D.gI():1D+"");if(1D==""){k 18}b 4O=(2f?2f.4O:18)||8.4w.4O;b 4q=(2f?2f.4q:18)||8.4w.4q;b 4b=(2f?2f.4b:18)||8.4w.4b;b 5p=(2f?2f.5p:18)||8.4w.5p;b 4a=(2f?2f.4a:18)||8.4w.4a;b 2a=-1;b 2k=-1;b 2j=-1;b 4S=17;b 4T=c(3o){b 4R=(2P+1<3h.1l&&3h.3w(2P+1)==3o);if(4R){2P++}k 4R};b a9=c(3o){4T(3o);b 1q=(3o=="y"?4:2);b aa=0;5r(1q>0&&57<1D.1l&&1D.3w(57)>="0"&&1D.3w(57)<="9"){aa=aa*10+(1D.3w(57++)-0);1q--}if(1q==(3o=="y"?4:2)){84"gH 8g at 14 "+57}k aa};b bV=c(3o,a6,a7){b 9g=(4T(3o)?a7:a6);b 1q=0;1N(b j=0;j<9g.1l;j++){1q=1c.22(1q,9g[j].1l)}b 3V="";b e0=57;5r(1q>0&&57<1D.1l){3V+=1D.3w(57++);1N(b i=0;i<9g.1l;i++){if(3V==9g[i]){k i+1}}1q--}84"gG 3V at 14 "+e0};b a8=c(){if(1D.3w(57)!=3h.3w(2P)){84"gF 4S at 14 "+57}57++};b 57=0;1N(b 2P=0;2P<3h.1l;2P++){if(4S){if(3h.3w(2P)=="\'"&&!4T("\'")){4S=17}1e{a8()}}1e{5n(3h.3w(2P)){1y"d":2j=a9("d");1A;1y"D":bV("D",4q,4b);1A;1y"m":2k=a9("m");1A;1y"M":2k=bV("M",5p,4a);1A;1y"y":2a=a9("y");1A;1y"\'":if(4T("\'")){a8()}1e{4S=1a}1A;5k:a8()}}}if(2a<3e){2a+=1O 2i().2M()-1O 2i().2M()%3e+(2a<=4O?0:-3e)}b 1d=1O 2i(2a,2k-1,2j);if(1d.2M()!=2a||1d.3F()+1!=2k||1d.2U()!=2j){84"dZ 1d"}k 1d},bo:c(3h,1d,2f){if(!1d){k""}b 4q=(2f?2f.4q:18)||8.4w.4q;b 4b=(2f?2f.4b:18)||8.4w.4b;b 5p=(2f?2f.5p:18)||8.4w.5p;b 4a=(2f?2f.4a:18)||8.4w.4a;b 4T=c(3o){b 4R=(2P+1<3h.1l&&3h.3w(2P+1)==3o);if(4R){2P++}k 4R};b bU=c(3o,1D){k(4T(3o)&&1D<10?"0":"")+1D};b bT=c(3o,1D,a6,a7){k(4T(3o)?a7[1D]:a6[1D])};b 5K="";b 4S=17;if(1d){1N(b 2P=0;2P<3h.1l;2P++){if(4S){if(3h.3w(2P)=="\'"&&!4T("\'")){4S=17}1e{5K+=3h.3w(2P)}}1e{5n(3h.3w(2P)){1y"d":5K+=bU("d",1d.2U());1A;1y"D":5K+=bT("D",1d.8f(),4q,4b);1A;1y"m":5K+=bU("m",1d.3F()+1);1A;1y"M":5K+=bT("M",1d.3F(),5p,4a);1A;1y"y":5K+=(4T("y")?1d.2M():(1d.dY()%3e<10?"0":"")+1d.dY()%3e);1A;1y"\'":if(4T("\'")){5K+="\'"}1e{4S=1a}1A;5k:5K+=3h.3w(2P)}}}}k 5K},dX:c(3h){b 6f="";b 4S=17;1N(b 2P=0;2P<3h.1l;2P++){if(4S){if(3h.3w(2P)=="\'"&&!4T("\'")){4S=17}1e{6f+=3h.3w(2P)}}1e{5n(3h.3w(2P)){1y"d"||"m"||"y":6f+="gE";1A;1y"D"||"M":k 18;1y"\'":if(4T("\'")){6f+="\'"}1e{4S=1a}1A;5k:6f+=3h.3w(2P)}}}k 6f}});c 9f(2f,82){8.3u=$.Z.dW(8);8.4N=0;8.53=0;8.5o=0;8.6J=0;8.6I=0;8.2v=18;8.7A=82;8.2n=(!82?$.Z.2n:$(\'<1o id="h-Z-1o-\'+8.3u+\'" 2h="h-Z-82">\'));8.5s=8b(2f||{});if(82){8.bK(8.bM())}}$.1K(9f.4E,{1i:c(3V){k 8.5s[3V]!==2u?8.5s[3V]:$.Z.4w[3V]},bS:c(1E){8.2v=$(1E);b 7z=8.1i("7z");b 6T=8.2v?8.2v.a5().7x(8.1i("bR")):18;8.5H=8.6d=8.5I=18;b 1d=6S=8.bM();if(6T.1l>0){b 2f=8.9X();if(6T.1l>1){1d=$.Z.bP(7z,6T[1],2f)||6S;8.5H=1d.2U();8.6d=1d.3F();8.5I=1d.2M()}bQ{1d=$.Z.bP(7z,6T[0],2f)||6S}bO(e){$.Z.bN(e);1d=6S}}8.4N=1d.2U();8.6J=8.53=1d.3F();8.6I=8.5o=1d.2M();8.4o=(6T[0]?1d.2U():0);8.4M=(6T[0]?1d.3F():0);8.4p=(6T[0]?1d.2M():0);8.4c()},bM:c(){b 1d=8.br("6S",1O 2i());b 2E=8.68("2p",1a);b 2O=8.68("22");1d=(2E&&1d<2E?2E:1d);1d=(2O&&1d>2O?2O:1d);k 1d},br:c(3V,6S){b dU=c(v){b 1d=1O 2i();1d.8d(1d.2U()+v);k 1d};b dV=c(v,bL){b 1d=1O 2i();b 4R=/^([+-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?$/.8k(v);if(4R){b 2a=1d.2M();b 2k=1d.3F();b 2j=1d.2U();5n(4R[2]||"d"){1y"d":1y"D":2j+=(4R[1]-0);1A;1y"w":1y"W":2j+=(4R[1]*7);1A;1y"m":1y"M":2k+=(4R[1]-0);2j=1c.2p(2j,bL(2a,2k));1A;1y"y":1y"Y":2a+=(4R[1]-0);2j=1c.2p(2j,bL(2a,2k));1A}1d=1O 2i(2a,2k,2j)}k 1d};b 1d=8.1i(3V);k(1d==18?6S:(2F 1d=="4Z"?dV(1d,8.97):(2F 1d=="8g"?dU(1d):1d)))},bK:c(1d,6b){8.4N=8.4o=1d.2U();8.6J=8.53=8.4M=1d.3F();8.6I=8.5o=8.4p=1d.2M();if(8.1i("5J")){if(6b){8.5H=6b.2U();8.6d=6b.3F();8.5I=6b.2M()}1e{8.5H=8.4o;8.6d=8.4M;8.5I=8.4p}}8.4c()},bJ:c(){b bI=(!8.4p||(8.2v&&8.2v.a5()=="")?18:1O 2i(8.4p,8.4M,8.4o));if(8.1i("5J")){k[bI,(!8.5I?18:1O 2i(8.5I,8.6d,8.5H))]}1e{k bI}},dT:c(){b 6P=1O 2i();6P=1O 2i(6P.2M(),6P.3F(),6P.2U());b 43=8.1i("43");b 56=8.1i("56");b 4P=(8.1i("bH")?"":\'<1o 2h="h-Z-4P"><a 6a="1s.Z.bG(\'+8.3u+\');"\'+(43?8.69(8.1i("dS")||"&#4s;"):"")+">"+8.1i("dR")+"</a></1o>");b bw=\'<1o 2h="h-Z-gD">\'+(56?"":4P)+\'<1o 2h="h-Z-5E"><a 6a="1s.Z.6R();"\'+(43?8.69(8.1i("dQ")||"&#4s;"):"")+">"+8.1i("dP")+"</a></1o>"+(56?4P:"")+"</1o>";b 7F=8.1i("7F");b 98=8.1i("98");b 9d=8.1i("9d");b 3t=8.8e();b 7G=8.1i("7G");b dG=(3t[0]!=1||3t[1]!=1);b 2E=8.68("2p",1a);b 2O=8.68("22");b 3g=8.6J;b 3v=8.6I;if(2O){b 9e=1O 2i(2O.2M(),2O.3F()-3t[1]+1,2O.2U());9e=(2E&&9e<2E?2E:9e);5r(1O 2i(3v,3g,1)>9e){3g--;if(3g<0){3g=11;3v--}}}b 6e=\'<1o 2h="h-Z-6e">\'+(8.bq(-1,3v,3g)?\'<a 6a="1s.Z.4c(\'+8.3u+", -"+7G+", \'M\');\\""+(43?8.69(8.1i("dO")||"&#4s;"):"")+">"+8.1i("bF")+"</a>":(9d?"":"<6r>"+8.1i("bF")+"</6r>"))+"</1o>";b 4v=\'<1o 2h="h-Z-4v">\'+(8.bq(+1,3v,3g)?\'<a 6a="1s.Z.4c(\'+8.3u+", +"+7G+", \'M\');\\""+(43?8.69(8.1i("dN")||"&#4s;"):"")+">"+8.1i("bE")+"</a>":(9d?">":"<6r>"+8.1i("bE")+"</6r>"))+"</1o>";b 2t=(7F?\'<1o 2h="h-Z-7F">\'+7F+"</1o>":"")+(98&&!8.7A?bw:"")+\'<1o 2h="h-Z-gC">\'+(56?4v:6e)+(8.bp(6P)?\'<1o 2h="h-Z-4d"><a 6a="1s.Z.bD(\'+8.3u+\');"\'+(43?8.69(8.1i("dM")||"&#4s;"):"")+">"+8.1i("dL")+"</a></1o>":"")+(56?6e:4v)+"</1o>";b 9a=8.1i("9a");1N(b 7E=0;7E<3t[0];7E++){1N(b 8j=0;8j<3t[1];8j++){b 8h=1O 2i(3v,3g,8.4N);2t+=\'<1o 2h="h-Z-gB-2k\'+(8j==0?" h-Z-1O-7E":"")+\'">\'+8.dy(3g,3v,2E,2O,8h,7E>0||8j>0)+\'<dB 2h="h-Z" gA="0" gz="0"><dH><a0 2h="h-Z-5i-7E">\'+(9a?"<4t>"+8.1i("dK")+"</4t>":"");b 4u=8.1i("4u");b 9c=8.1i("9c");b 4b=8.1i("4b");b 4q=8.1i("4q");b a3=8.1i("a3");1N(b 6c=0;6c<7;6c++){b 2j=(6c+4u)%7;b 54=8.1i("dJ")||"&#4s;";54=(54.83("a4")>-1?54.5A(/a4/,4b[2j]):54.5A(/D/,4q[2j]));2t+="<4t"+((6c+4u+6)%7>=5?\' 2h="h-Z-a1-4Q-7C"\':"")+">"+(!9c?"<46":\'<a 6a="1s.Z.dI(\'+8.3u+", "+2j+\');"\')+(43?8.69(54):"")+\' 5i="\'+4b[2j]+\'">\'+a3[2j]+(9c?"</a>":"</46>")+"</4t>"}2t+="</a0></dH><dC>";b bB=8.97(3v,3g);if(3v==8.5o&&3g==8.53){8.4N=1c.2p(8.4N,bB)}b bC=(8.dj(3v,3g)-4u+7)%7;b by=(!8.4o?1O 2i(gy,9,9):1O 2i(8.4p,8.4M,8.4o));b 6b=8.5H?1O 2i(8.5I,8.6d,8.5H):by;b 44=1O 2i(3v,3g,1-bC);b dD=(dG?6:1c.dF((bC+bB)/7));b 99=8.1i("99");b 7B=8.1i("7B");b a2=8.1i("a2")||$.Z.9b;b 7D=8.1i("dE")||$.Z.7D;1N(b bA=0;bA<dD;bA++){2t+=\'<a0 2h="h-Z-8i-7E">\'+(9a?\'<4t 2h="h-Z-a1-8j">\'+a2(44)+"</4t>":"");1N(b 6c=0;6c<7;6c++){b bz=(99?99.1w((8.2v?8.2v[0]:18),[44]):[1a,""]);b 6O=(44.3F()!=3g);b 5q=6O||!bz[0]||(2E&&44<2E)||(2O&&44>2O);2t+=\'<4t 2h="h-Z-8i-7C\'+((6c+4u+6)%7>=5?" h-Z-a1-4Q-7C":"")+(6O?" h-Z-6O":"")+(44.6Q()==8h.6Q()&&3g==8.53?" h-Z-8i-7C-3W":"")+(5q?" h-Z-5q":"")+(6O&&!7B?"":" "+bz[1]+(44.6Q()>=by.6Q()&&44.6Q()<=6b.6Q()?" h-Z-4d-2j":"")+(44.6Q()==6P.6Q()?" h-Z-6P":""))+\'"\'+(5q?"":" dp=\\"1s(8).1j(\'h-Z-8i-7C-3W\');"+(!43||(6O&&!7B)?"":"1s(\'#h-Z-54-"+8.3u+"\').2t(\'"+(7D.1w((8.2v?8.2v[0]:18),[44,8])||"&#4s;")+"\');")+"\\" dn=\\"1s(8).1G(\'h-Z-8i-7C-3W\');"+(!43||(6O&&!7B)?"":"1s(\'#h-Z-54-"+8.3u+"\').2t(\'&#4s;\');")+\'" 6a="1s.Z.bx(\'+8.3u+","+3g+","+3v+\', 8);"\')+">"+(6O?(7B?44.2U():"&#4s;"):(5q?44.2U():"<a>"+44.2U()+"</a>"))+"</4t>";44.8d(44.2U()+1)}2t+="</a0>"}3g++;if(3g>11){3g=0;3v++}2t+="</dC></dB></1o>"}}2t+=(43?\'<1o 2A="4P: 5m;"></1o><1o id="h-Z-54-\'+8.3u+\'" 2h="h-Z-54">\'+(8.1i("dA")||"&#4s;")+"</1o>":"")+(!98&&!8.7A?bw:"")+\'<1o 2A="4P: 5m;"></1o>\'+($.1R.3c&&1b($.1R.6C)<7&&!8.7A?\'<9Z bv="d3:17;" 2h="h-Z-dz"></9Z>\':"");k 2t},dy:c(3g,3v,2E,2O,8h,bu){2E=(8.4r&&2E&&8h<2E?8h:2E);b 43=8.1i("43");b 2t=\'<1o 2h="h-Z-6N">\';b 4a=8.1i("4a");if(bu||!8.1i("dx")){2t+=4a[3g]+"&#4s;"}1e{b dv=(2E&&2E.2M()==3v);b du=(2O&&2O.2M()==3v);2t+=\'<4j 2h="h-Z-1O-2k" dr="1s.Z.bt(\'+8.3u+", 8, \'M\');\\" 6a=\\"1s.Z.bs("+8.3u+\');"\'+(43?8.69(8.1i("dw")||"&#4s;"):"")+">";1N(b 2k=0;2k<12;2k++){if((!dv||2k>=2E.3F())&&(!du||2k<=2O.3F())){2t+=\'<9Y 1D="\'+2k+\'"\'+(2k==3g?\' 1I="1I"\':"")+">"+4a[2k]+"</9Y>"}}2t+="</4j>"}if(bu||!8.1i("dt")){2t+=3v}1e{b 6M=8.1i("ds").7x(":");b 2a=0;b 6L=0;if(6M.1l!=2){2a=3v-10;6L=3v+10}1e{if(6M[0].3w(0)=="+"||6M[0].3w(0)=="-"){2a=1O 2i().2M()+1b(6M[0],10);6L=1O 2i().2M()+1b(6M[1],10)}1e{2a=1b(6M[0],10);6L=1b(6M[1],10)}}2a=(2E?1c.22(2a,2E.2M()):2a);6L=(2O?1c.2p(6L,2O.2M()):6L);2t+=\'<4j 2h="h-Z-1O-2a" dr="1s.Z.bt(\'+8.3u+", 8, \'Y\');\\" 6a=\\"1s.Z.bs("+8.3u+\');"\'+(43?8.69(8.1i("dq")||"&#4s;"):"")+">";1N(;2a<=6L;2a++){2t+=\'<9Y 1D="\'+2a+\'"\'+(2a==3v?\' 1I="1I"\':"")+">"+2a+"</9Y>"}2t+="</4j>"}2t+="</1o>";k 2t},69:c(94){k" dp=\\"1s(\'#h-Z-54-"+8.3u+"\').2t(\'"+94+"\');\\" dn=\\"1s(\'#h-Z-54-"+8.3u+"\').2t(\'&#4s;\');\\""},4c:c(v,6K){b 2a=8.6I+(6K=="Y"?v:0);b 2k=8.6J+(6K=="M"?v:0);b 2j=1c.2p(8.4N,8.97(2a,2k))+(6K=="D"?v:0);b 1d=1O 2i(2a,2k,2j);b 2E=8.68("2p",1a);b 2O=8.68("22");1d=(2E&&1d<2E?2E:1d);1d=(2O&&1d>2O?2O:1d);8.4N=1d.2U();8.6J=8.53=1d.3F();8.6I=8.5o=1d.2M()},8e:c(){b 3t=8.1i("dm");k(3t==18?[1,1]:(2F 3t=="8g"?[1,3t]:3t))},68:c(dl,dk){b 1d=8.br(dl+"2i",18);if(1d){1d.gx(0);1d.gw(0);1d.gv(0);1d.gu(0)}k 1d||(dk?8.4r:18)},97:c(2a,2k){k 32-1O 2i(2a,2k,32).2U()},dj:c(2a,2k){k 1O 2i(2a,2k,1).8f()},bq:c(v,di,dh){b 3t=8.8e();b 1d=1O 2i(di,dh+(v<0?v:3t[1]),1);if(v<0){1d.8d(8.97(1d.2M(),1d.3F()))}k 8.bp(1d)},bp:c(1d){b 8c=(!8.4r?18:1O 2i(8.5o,8.53,8.4N));8c=(8c&&8.4r<8c?8.4r:8c);b 2E=8c||8.68("2p");b 2O=8.68("22");k((!2E||1d>=2E)&&(!2O||1d<=2O))},9X:c(){b 4O=8.1i("4O");4O=(2F 4O!="4Z"?4O:1O 2i().2M()%3e+1b(4O,10));k{4O:4O,4q:8.1i("4q"),4b:8.1i("4b"),5p:8.1i("5p"),4a:8.1i("4a")}},96:c(2j,2k,2a){if(!2j){8.4o=8.4N;8.4M=8.53;8.4p=8.5o}b 1d=(2j?(2F 2j=="6H"?2j:1O 2i(2a,2k,2j)):1O 2i(8.4p,8.4M,8.4o));k $.Z.bo(8.1i("7z"),1d,8.9X())}});c 8b(1p,9W){$.1K(1p,9W);1N(b 3V in 9W){if(9W[3V]==18){1p[3V]=18}}k 1p}$.fn.Z=c(f){b bn=8S.4E.dg.24(1x,1);if(2F f=="4Z"&&(f=="gt"||f=="2U")){k $.Z["8U"+f+"95"].1w($.Z,[8[0]].5h(bn))}k 8.1t(c(){2F f=="4Z"?$.Z["8U"+f+"95"].1w($.Z,[8].5h(bn)):$.Z.df(8,f)})};$.Z=1O 95();$(19).gs(c(){$(19.1C).4n($.Z.2n).7u($.Z.de)})})(1s);(c(B){b A={bm:"2e.1W",3R:"3R.1W",bl:"2z.1W",6F:"6F.1g",5G:"5G.1g",6G:"6G.1g",5F:"5F.1g",dc:"2e.1g",2m:"3R.1g",bk:"2z.1g"};B.4k("h.1U",{5j:c(){b K=8,L=8.f,D=2F L.1g=="4Z"?L.1g:"n,e,s,w,3U,3T,41,3S",E=8.q.1j("h-1U-92").64("<1o/>").64("<1o/>"),H=E.1n().1j("h-1U-gr").p({14:"1Z"}),I=L.5i||E.2N("5i")||"",C=(8.db=B(\'<1o 2h="h-1U-89"/>\')).4n(\'<46 2h="h-1U-5i">\'+I+"</46>").4n(\'<a 3N="#" 2h="h-1U-89-5E"><46>X</46></a>\').gq(H),J=(8.3J=H.1n()).2G(19.1C).1B().1j("h-1U").1j(L.gp).1j(E.2N("8a")).1G("h-1U-92").p({14:"23",t:L.t,r:L.r,2T:"3E",2x:L.2x}).2N("go",-1).p("gn",0).63(c(M){if(L.d8){b N=27;(M.6B&&M.6B==N&&K.5E())}}).7u(c(){K.9U()});8.da=B(".h-1U-89-5E",C).9V(c(){B(8).1j("h-1U-89-5E-9V")},c(){B(8).1G("h-1U-89-5E-9V")}).7u(c(M){M.gm()}).1z(c(){K.5E();k 17});b G=17;B.1t(L.bi,c(){k!(G=1a)});if(G){b F=B(\'<1o 2h="h-1U-gl"/>\').2G(J);B.1t(L.bi,c(M,N){B("<4L/>").94(M).1z(c(){N.1w(K.q[0],1x)}).2G(F)})}if(B.fn.1W){J.1W({1H:".h-1U-89",2e:c(N,M){K.9U();(L.bm&&L.bm.1w(8,1x))},3R:L.3R,2z:c(N,M){(L.bl&&L.bl.1w(8,1x));B.h.1U.2D.2m()}});(L.1W||J.1W("6t"))}if(B.fn.1g){J.1g({6G:L.6G,6F:L.6F,5F:L.5F,5G:L.5G,2e:L.dc,2m:L.2m,2Z:D,2z:c(N,M){(L.bk&&L.bk.1w(8,1x));B.h.1U.2D.2m()}});(L.1g||J.1g("6t"))}(L.7w&&B.fn.7w&&J.7w());(L.d9&&8.bj())},52:c(C,D){(A[C]&&8.3J.1k(A[C],D));5n(C){1y"1W":8.3J.1W(D?"81":"6t");1A;1y"r":8.3J.r(D);1A;1y"14":8.14(D);1A;1y"1g":(2F D=="4Z"&&8.3J.1k("2Z.1g",D));8.3J.1g(D?"81":"6t");1A;1y"5i":B(".h-1U-5i",8.db).94(D);1A;1y"t":8.3J.t(D);1A}B.4k.4E.52.1w(8,1x)},14:c(H){b D=B(3d),E=B(19),F=E.29(),C=E.26(),G=F;if(B.7n(H,["7y","o","3f","3s","l"])>=0){H=[H=="3f"||H=="l"?H:"7y",H=="o"||H=="3s"?H:"93"]}if(H.49!=8S){H=["7y","93"]}if(H[0].49==7q){C+=H[0]}1e{5n(H[0]){1y"l":C+=0;1A;1y"3f":C+=D.t()-8.3J.t();1A;5k:1y"7y":C+=(D.t()-8.3J.t())/2}}if(H[1].49==7q){F+=H[1]}1e{5n(H[1]){1y"o":F+=0;1A;1y"3s":F+=D.r()-8.3J.r();1A;5k:1y"93":F+=(D.r()-8.3J.r())/2}}F=1c.22(F,G);8.3J.p({o:F,l:C})},bj:c(){8.2D=8.f.bh?1O B.h.1U.2D(8):18;8.3J.2G("1C");8.14(8.f.14);8.3J.1u();8.9U(1a);b C=18;b D={f:8.f};8.da.3D();8.q.2y("gk",[C,D],8.f.bj)},9U:c(E){if((8.f.bh&&!E)||!8.f.6E){k}b D=8.f.2x,C=8.f;B(".h-1U:4H").1t(c(){D=1c.22(D,1b(B(8).p("z-3Q"),10)||C.2x)});(8.2D&&8.2D.$el.p("z-3Q",++D));8.3J.p("z-3Q",++D)},5E:c(){(8.2D&&8.2D.3q());8.3J.1B();b D=18;b C={f:8.f};8.q.2y("gj",[D,C],8.f.5E);B.h.1U.2D.2m()},3q:c(){(8.2D&&8.2D.3q());8.3J.1B();8.q.3m(".1U").48("1U").1G("h-1U-92").1B().2G("1C");8.3J.2d()}});B.1K(B.h.1U,{5f:{d9:1a,7w:17,bi:{},d8:1a,1W:1a,r:d7,5G:3e,5F:9T,bh:17,2D:{},14:"7y",1g:1a,6E:1a,t:d6,2x:91},2D:c(C){8.$el=B.h.1U.2D.d5(C)}});B.1K(B.h.1U.2D,{7v:[],d4:B.61("3D,7u,bg,63,bf,1z".7x(","),c(C){k C+".1U-2D"}).7k(" "),d5:c(D){if(8.7v.1l===0){80(c(){B("a, :1E").2R(B.h.1U.2D.d4,c(){b F=17;b H=B(8).51(".h-1U");if(H.1l){b E=B(".h-1U-2D");if(E.1l){b G=1b(E.p("z-3Q"),10);E.1t(c(){G=1c.22(G,1b(B(8).p("z-3Q"),10))});F=1b(H.p("z-3Q"),10)>G}1e{F=1a}}k F})},1);B(19).2R("63.1U-2D",c(E){b F=27;(E.6B&&E.6B==F&&D.5E())});B(3d).2R("2m.1U-2D",B.h.1U.2D.2m)}b C=B("<1o/>").2G(19.1C).1j("h-1U-2D").p(B.1K({gi:0,4K:0,be:0,14:"23",o:0,l:0,t:8.t(),r:8.r()},D.f.2D));(D.f.7w&&B.fn.7w&&C.7w());8.7v.4F(C);k C},3q:c(C){8.7v.b6(B.7n(8.7v,C),1);if(8.7v.1l===0){B("a, :1E").21([19,3d]).3m(".1U-2D")}C.2d()},r:c(){if(B.1R.3c&&B.1R.6C<7){b D=1c.22(19.3I.6D,19.1C.6D);b C=1c.22(19.3I.5D,19.1C.5D);if(D<C){k B(3d).r()+"2L"}1e{k D+"2L"}}1e{k B(19).r()+"2L"}},t:c(){if(B.1R.3c&&B.1R.6C<7){b C=1c.22(19.3I.90,19.1C.90);b D=1c.22(19.3I.5C,19.1C.5C);if(C<D){k B(3d).t()+"2L"}1e{k C+"2L"}}1e{k B(19).t()+"2L"}},2m:c(){b C=B([]);B.1t(B.h.1U.2D.7v,c(){C=C.21(8)});C.p({t:0,r:0}).p({t:B.h.1U.2D.t(),r:B.h.1U.2D.r()})}});B.1K(B.h.1U.2D.4E,{3q:c(){B.h.1U.2D.3q(8.$el)}})})(1s);(c(A){A.fn.bd=A.fn.bd||c(B){k 8.1t(c(){A(8).51(B).eq(0).9S(8).2d()})};A.4k("h.4l",{67:{},h:c(B){k{f:8.f,1H:8.2q,1D:8.f.2r!="5m"||!8.f.2r?1c.3C(8.1D(18,8.f.2r=="3G"?"y":"x")):{x:1c.3C(8.1D(18,"x")),y:1c.3C(8.1D(18,"y"))},b8:8.d0()}},1T:c(C,B){A.h.2C.24(8,C,[B,8.h()]);8.q.2y(C=="62"?C:"62"+C,[B,8.h()],8.f[C])},3q:c(){8.q.1G("h-4l h-4l-1F").48("4l").3m(".4l");8.1H.bd("a");8.1H.1t(c(){A(8).1k("4m").88()});8.bc&&8.bc.2d()},52:c(B,C){A.4k.4E.52.1w(8,1x);if(/2p|22|7t/.1v(B)){8.b9()}},5j:c(){b B=8;8.q.1j("h-4l");8.b9();8.1H=A(8.f.1H,8.q);if(!8.1H.1l){B.1H=B.bc=A(B.f.2Z||[0]).61(c(){b D=A("<1o/>").1j("h-4l-1H").2G(B.q);if(8.id){D.2N("id",8.id)}k D[0]})}b C=c(D){8.q=A(D);8.q.1k("4m",8);8.f=B.f;8.q.2R("7u",c(){if(B.2q){8.6u(B.2q)}B.3D(8,1)});8.87()};A.1K(C.4E,A.h.4m,{66:c(D){k B.2e.24(B,D,8.q[0])},65:c(D){k B.2z.24(B,D,8.q[0])},5l:c(D){k B.3R.24(B,D,8.q[0])},8Z:c(){k 1a},3P:c(D){8.bb(D)}});A(8.1H).1t(c(){1O C(8)}).64(\'<a 3N="d3:gh(0)" 2A="2l:5k;"></a>\').1n().2R("3D",c(D){B.3D(8.ba)}).2R("6u",c(D){B.6u(8.ba)}).2R("63",c(D){if(!B.f.gg){B.63(D.6B,8.ba)}});8.q.2R("7u.4l",c(D){B.1z.1w(B,[D]);B.2q.1k("4m").3P(D);B.9R=B.9R+1});A.1t(8.f.2Z||[],c(D,E){B.8X(E.2e,D,1a)});if(!6x(8.f.d2)){8.8X(8.f.d2,0,1a)}8.6y=A(8.1H[0]);if(8.1H.1l==2&&8.f.b8){8.d1()}},b9:c(){b B=8.q[0],C=8.f;8.6z={t:8.q.2K(),r:8.q.2B()};A.1K(C,{2r:C.2r||(B.5C<B.5D?"3G":"9Q"),22:!6x(1b(C.22,10))?{x:1b(C.22,10),y:1b(C.22,10)}:({x:C.22&&C.22.x||3e,y:C.22&&C.22.y||3e}),2p:!6x(1b(C.2p,10))?{x:1b(C.2p,10),y:1b(C.2p,10)}:({x:C.2p&&C.2p.x||0,y:C.2p&&C.2p.y||0})});C.6A={x:C.22.x-C.2p.x,y:C.22.y-C.2p.y};C.3r={x:C.3r&&C.3r.x||1b(C.3r,10)||(C.7t?C.6A.x/(C.7t.x||1b(C.7t,10)||C.6A.x):0),y:C.3r&&C.3r.y||1b(C.3r,10)||(C.7t?C.6A.y/(C.7t.y||1b(C.7t,10)||C.6A.y):0)}},63:c(C,B){if(/(37|38|39|40)/.1v(C)){8.8X({x:/(37|39)/.1v(C)?(C==37?"-":"+")+"="+8.8Y("x"):0,y:/(38|40)/.1v(C)?(C==38?"-":"+")+"="+8.8Y("y"):0},B)}},3D:c(B,C){8.2q=A(B).1j("h-4l-1H-3H");if(C){8.2q.1n()[0].3D()}},6u:c(B){A(B).1G("h-4l-1H-3H");if(8.2q&&8.2q[0]==B){8.6y=8.2q;8.2q=18}},1z:c(C){b D=[C.2X,C.2Y];b B=17;8.1H.1t(c(){if(8==C.1p){B=1a}});if(B||8.f.1F||!(8.2q||8.6y)){k}if(!8.2q&&8.6y){8.3D(8.6y,1a)}8.v=8.q.v();8.8X({y:8.5B(C.2Y-8.v.o-8.2q[0].5D/2,"y"),x:8.5B(C.2X-8.v.l-8.2q[0].5C/2,"x")},18,!8.f.4I)},d1:c(){8.6w=A("<1o></1o>").1j("h-4l-b8").p({14:"23"}).2G(8.q);8.9P()},9P:c(){b C=8.f.2r=="3G"?"o":"l";b B=8.f.2r=="3G"?"r":"t";8.6w.p(C,(1b(A(8.1H[0]).p(C),10)||0)+8.7s(0,8.f.2r=="3G"?"y":"x")/2);8.6w.p(B,(1b(A(8.1H[1]).p(C),10)||0)-(1b(A(8.1H[0]).p(C),10)||0))},d0:c(){k 8.6w?8.5B(1b(8.6w.p(8.f.2r=="3G"?"r":"t"),10),8.f.2r=="3G"?"y":"x"):18},cZ:c(){k 8.1H.3Q(8.2q[0])},1D:c(D,B){if(8.1H.1l==1){8.2q=8.1H}if(!B){B=8.f.2r=="3G"?"y":"x"}b C=A(D!=2u&&D!==18?8.1H[D]||D:8.2q);if(C.1k("4m").9O){k 1b(C.1k("4m").9O[B],10)}1e{k 1b(((1b(C.p(B=="x"?"l":"o"),10)/(8.6z[B=="x"?"t":"r"]-8.7s(D,B)))*8.f.6A[B])+8.f.2p[B],10)}},5B:c(C,B){k 8.f.2p[B]+(C/(8.6z[B=="x"?"t":"r"]-8.7s(18,B)))*8.f.6A[B]},4J:c(C,B){k((C-8.f.2p[B])/8.f.6A[B])*(8.6z[B=="x"?"t":"r"]-8.7s(18,B))},8V:c(D,B){if(8.6w){if(8.2q[0]==8.1H[0]&&D>=8.4J(8.1D(1),B)){D=8.4J(8.1D(1,B)-8.8Y(B),B)}if(8.2q[0]==8.1H[1]&&D<=8.4J(8.1D(0),B)){D=8.4J(8.1D(0,B)+8.8Y(B),B)}}if(8.f.2Z){b C=8.f.2Z[8.cZ()];if(D<8.4J(C.2p,B)){D=8.4J(C.2p,B)}1e{if(D>8.4J(C.22,B)){D=8.4J(C.22,B)}}}k D},8W:c(C,B){if(C>=8.6z[B=="x"?"t":"r"]-8.7s(18,B)){C=8.6z[B=="x"?"t":"r"]-8.7s(18,B)}if(C<=0){C=0}k C},7s:c(C,B){k A(C!=2u&&C!==18?8.1H[C]:8.2q)[0]["v"+(B=="x"?"gf":"ge")]},8Y:c(B){k 8.f.3r[B]||1},2e:c(C,B){b D=8.f;if(D.1F){k 17}8.6z={t:8.q.2K(),r:8.q.2B()};if(!8.2q){8.3D(8.6y,1a)}8.v=8.q.v();8.b7=8.2q.v();8.7r={o:C.2Y-8.b7.o,l:C.2X-8.b7.l};8.9R=8.1D();8.1T("2e",C);8.3R(C,B);k 1a},2z:c(B){8.1T("2z",B);if(8.9R!=8.1D()){8.1T("6v",B)}8.3D(8.2q,1a);k 17},3R:c(E,D){b F=8.f;b B={o:E.2Y-8.v.o-8.7r.o,l:E.2X-8.v.l-8.7r.l};if(!8.2q){8.3D(8.6y,1a)}B.l=8.8W(B.l,"x");B.o=8.8W(B.o,"y");if(F.3r.x){b C=8.5B(B.l,"x");C=1c.3C(C/F.3r.x)*F.3r.x;B.l=8.4J(C,"x")}if(F.3r.y){b C=8.5B(B.o,"y");C=1c.3C(C/F.3r.y)*F.3r.y;B.o=8.4J(C,"y")}B.l=8.8V(B.l,"x");B.o=8.8V(B.o,"y");if(F.2r!="3G"){8.2q.p({l:B.l})}if(F.2r!="9Q"){8.2q.p({o:B.o})}8.2q.1k("4m").9O={x:1c.3C(8.5B(B.l,"x"))||0,y:1c.3C(8.5B(B.o,"y"))||0};if(8.6w){8.9P()}8.1T("62",E);k 17},8X:c(F,E,G){b H=8.f;8.6z={t:8.q.2K(),r:8.q.2B()};if(E==2u&&!8.2q&&8.1H.1l!=1){k 17}if(E==2u&&!8.2q){E=0}if(E!=2u){8.2q=8.6y=A(8.1H[E]||E)}if(F.x!==2u&&F.y!==2u){b B=F.x,I=F.y}1e{b B=F,I=F}if(B!==2u&&B.49!=7q){b D=/^\\-\\=/.1v(B),C=/^\\+\\=/.1v(B);if(D||C){B=8.1D(18,"x")+1b(B.5A(D?"=":"+=",""),10)}1e{B=6x(1b(B,10))?2u:1b(B,10)}}if(I!==2u&&I.49!=7q){b D=/^\\-\\=/.1v(I),C=/^\\+\\=/.1v(I);if(D||C){I=8.1D(18,"y")+1b(I.5A(D?"=":"+=",""),10)}1e{I=6x(1b(I,10))?2u:1b(I,10)}}if(H.2r!="3G"&&B!==2u){if(H.3r.x){B=1c.3C(B/H.3r.x)*H.3r.x}B=8.4J(B,"x");B=8.8W(B,"x");B=8.8V(B,"x");8.2q.p({l:B})}if(H.2r!="9Q"&&I!==2u){if(H.3r.y){I=1c.3C(I/H.3r.y)*H.3r.y}I=8.4J(I,"y");I=8.8W(I,"y");I=8.8V(I,"y");8.2q.p({o:I})}if(8.6w){8.9P()}8.2q.1k("4m").9O={x:1c.3C(8.5B(B,"x"))||0,y:1c.3C(8.5B(I,"y"))||0};if(!G){8.1T("2e",18);8.1T("2z",18);8.1T("6v",18);8.1T("62",18)}}});A.h.4l.9H="1D";A.h.4l.5f={1H:".h-4l-1H",4I:1}})(1s);(c(A){A.4k("h.1m",{5j:c(){8.f.3M+=".1m";8.8R(1a)},52:c(B,C){if((/^1I/).1v(B)){8.4j(C)}1e{8.f[B]=C;8.8R()}},1l:c(){k 8.$1m.1l},b5:c(B){k B.5i&&B.5i.5A(/\\s/g,"8U").5A(/[^A-gd-gc-9\\-8U:\\.]/g,"")||8.f.cU+A.1k(B)},h:c(C,B){k{f:8.f,gb:C,cS:B}},8R:c(O){8.$3O=A("9J:ga(a[3N])",8.q);8.$1m=8.$3O.61(c(){k A("a",8)[0]});8.$3b=A([]);b P=8,D=8.f;8.$1m.1t(c(R,Q){if(Q.5Z&&Q.5Z.5A("#","")){P.$3b=P.$3b.21(Q.5Z)}1e{if(A(Q).2N("3N")!="#"){A.1k(Q,"3N.1m",Q.3N);A.1k(Q,"4Y.1m",Q.3N);b T=P.b5(Q);Q.3N="#"+T;b S=A("#"+T);if(!S.1l){S=A(D.b1).2N("id",T).1j(D.8Q).g9(P.$3b[R-1]||P.q);S.1k("3q.1m",1a)}P.$3b=P.$3b.21(S)}1e{D.1F.4F(R+1)}}});if(O){8.q.1j(D.b0);8.$3b.1t(c(){b Q=A(8);Q.1j(D.8Q)});if(D.1I===2u){if(9N.5Z){8.$1m.1t(c(S,Q){if(Q.5Z==9N.5Z){D.1I=S;if(A.1R.3c||A.1R.7p){b R=A(9N.5Z),T=R.2N("id");R.2N("id","");80(c(){R.2N("id",T)},86)}g8(0,0);k 17}})}1e{if(D.7Z){b J=1b(A.7Z("h-1m"+A.1k(P.q)),10);if(J&&P.$1m[J]){D.1I=J}}1e{if(P.$3O.3B("."+D.3n).1l){D.1I=P.$3O.3Q(P.$3O.3B("."+D.3n)[0])}}}}D.1I=D.1I===18||D.1I!==2u?D.1I:0;D.1F=A.g7(D.1F.5h(A.61(8.$3O.3B("."+D.7j),c(R,Q){k P.$3O.3Q(R)}))).7l();if(A.7n(D.1I,D.1F)!=-1){D.1F.b6(A.7n(D.1I,D.1F),1)}8.$3b.1j(D.6q);8.$3O.1G(D.3n);if(D.1I!==18){8.$3b.eq(D.1I).1u().1G(D.6q);8.$3O.eq(D.1I).1j(D.3n);b K=c(){A(P.q).2y("cY",[P.h(P.$1m[D.1I],P.$3b[D.1I])],D.1u)};if(A.1k(8.$1m[D.1I],"4Y.1m")){8.4Y(D.1I,K)}1e{K()}}A(3d).2R("g6",c(){P.$1m.3m(".1m");P.$3O=P.$1m=P.$3b=18})}1N(b G=0,N;N=8.$3O[G];G++){A(N)[A.7n(G,D.1F)!=-1&&!A(N).4G(D.3n)?"1j":"1G"](D.7j)}if(D.6s===17){8.$1m.48("6s.1m")}b C,I,B={"2p-t":0,1S:1},E="8T";if(D.fx&&D.fx.49==8S){C=D.fx[0]||B,I=D.fx[1]||B}1e{C=I=D.fx||B}b H={5z:"",2T:"",r:""};if(!A.1R.3c){H.1L=""}c M(R,Q,S){Q.1M(C,C.1S||E,c(){Q.1j(D.6q).p(H);if(A.1R.3c&&C.1L){Q[0].2A.3B=""}if(S){L(R,S,Q)}})}c L(R,S,Q){if(I===B){S.p("5z","7m")}S.1M(I,I.1S||E,c(){S.1G(D.6q).p(H);if(A.1R.3c&&I.1L){S[0].2A.3B=""}A(P.q).2y("cY",[P.h(R,S[0])],D.1u)})}c F(R,T,Q,S){T.1j(D.3n).7o().1G(D.3n);M(R,Q,S)}8.$1m.3m(".1m").2R(D.3M,c(){b T=A(8).51("9J:eq(0)"),Q=P.$3b.3B(":4H"),S=A(8.5Z);if((T.4G(D.3n)&&!D.9I)||T.4G(D.7j)||A(8).4G(D.8P)||A(P.q).2y("g5",[P.h(8,S[0])],D.4j)===17){8.6u();k 17}P.f.1I=P.$1m.3Q(8);if(D.9I){if(T.4G(D.3n)){P.f.1I=18;T.1G(D.3n);P.$3b.2z();M(8,Q);8.6u();k 17}1e{if(!Q.1l){P.$3b.2z();b R=8;P.4Y(P.$1m.3Q(8),c(){T.1j(D.3n).1j(D.aZ);L(R,S)});8.6u();k 17}}}if(D.7Z){A.7Z("h-1m"+A.1k(P.q),P.f.1I,D.7Z)}P.$3b.2z();if(S.1l){b R=8;P.4Y(P.$1m.3Q(8),Q.1l?c(){F(R,T,Q,S)}:c(){T.1j(D.3n);L(R,S)})}1e{84"1s g4 g3: g2 g1 g0."}if(A.1R.3c){8.6u()}k 17});if(!(/^1z/).1v(D.3M)){8.$1m.2R("1z.1m",c(){k 17})}},21:c(E,D,C){if(C==2u){C=8.$1m.1l}b G=8.f;b I=A(G.cT.5A(/#\\{3N\\}/g,E).5A(/#\\{6r\\}/g,D));I.1k("3q.1m",1a);b H=E.83("#")==0?E.5A("#",""):8.b5(A("a:cX-2S",I)[0]);b F=A("#"+H);if(!F.1l){F=A(G.b1).2N("id",H).1j(G.6q).1k("3q.1m",1a)}F.1j(G.8Q);if(C>=8.$3O.1l){I.2G(8.q);F.2G(8.q[0].3Z)}1e{I.b4(8.$3O[C]);F.b4(8.$3b[C])}G.1F=A.61(G.1F,c(K,J){k K>=C?++K:K});8.8R();if(8.$1m.1l==1){I.1j(G.3n);F.1G(G.6q);b B=A.1k(8.$1m[0],"4Y.1m");if(B){8.4Y(C,B)}}8.q.2y("fZ",[8.h(8.$1m[C],8.$3b[C])],G.21)},2d:c(B){b D=8.f,E=8.$3O.eq(B).2d(),C=8.$3b.eq(B).2d();if(E.4G(D.3n)&&8.$1m.1l>1){8.4j(B+(B+1<8.$1m.1l?1:-1))}D.1F=A.61(A.cW(D.1F,c(G,F){k G!=B}),c(G,F){k G>=B?--G:G});8.8R();8.q.2y("fY",[8.h(E.5g("a")[0],C[0])],D.2d)},81:c(B){b C=8.f;if(A.7n(B,C.1F)==-1){k}b D=8.$3O.eq(B).1G(C.7j);if(A.1R.b3){D.p("5z","82-7m");80(c(){D.p("5z","7m")},0)}C.1F=A.cW(C.1F,c(F,E){k F!=B});8.q.2y("fX",[8.h(8.$1m[B],8.$3b[B])],C.81)},6t:c(C){b B=8,D=8.f;if(C!=D.1I){8.$3O.eq(C).1j(D.7j);D.1F.4F(C);D.1F.7l();8.q.2y("fW",[8.h(8.$1m[C],8.$3b[C])],D.6t)}},4j:c(B){if(2F B=="4Z"){B=8.$1m.3Q(8.$1m.3B("[3N$="+B+"]")[0])}8.$1m.eq(B).3P(8.f.3M)},4Y:c(G,K){b L=8,D=8.f,E=8.$1m.eq(G),J=E[0],H=K==2u||K===17,B=E.1k("4Y.1m");K=K||c(){};if(!B||!H&&A.1k(J,"6s.1m")){K();k}b M=c(N){b O=A(N),P=O.5g("*:fV");k P.1l&&P||O};b C=c(){L.$1m.3B("."+D.8P).1G(D.8P).1t(c(){if(D.9L){M(8).1n().2t(M(8).1k("6r.1m"))}});L.9M=18};if(D.9L){b I=M(J).2t();M(J).fU("<em></em>").5g("em").1k("6r.1m",I).2t(D.9L)}b F=A.1K({},D.9K,{cV:B,b2:c(O,N){A(J.5Z).2t(O);C();if(D.6s){A.1k(J,"6s.1m",1a)}A(L.q).2y("fT",[L.h(L.$1m[G],L.$3b[G])],D.4Y);D.9K.b2&&D.9K.b2(O,N);K()}});if(8.9M){8.9M.fS();C()}E.1j(D.8P);80(c(){L.9M=A.fR(F)},0)},cV:c(C,B){8.$1m.eq(C).48("6s.1m").1k("4Y.1m",B)},3q:c(){b B=8.f;8.q.3m(".1m").1G(B.b0).48("1m");8.$1m.1t(c(){b C=A.1k(8,"3N.1m");if(C){8.3N=C}b D=A(8).3m(".1m");A.1t(["3N","4Y","6s"],c(E,F){D.48(F+".1m")})});8.$3O.21(8.$3b).1t(c(){if(A.1k(8,"3q.1m")){A(8).2d()}1e{A(8).1G([B.3n,B.aZ,B.7j,B.8Q,B.6q].7k(" "))}})}});A.h.1m.5f={9I:17,3M:"1z",1F:[],7Z:18,9L:"fQ&#fP;",6s:17,cU:"h-1m-",9K:{},fx:18,cT:\'<9J><a 3N="#{3N}"><46>#{6r}</46></a></9J>\',b1:"<1o></1o>",b0:"h-1m-fO",3n:"h-1m-1I",aZ:"h-1m-9I",7j:"h-1m-1F",8Q:"h-1m-cS",6q:"h-1m-1B",8P:"h-1m-fN"};A.h.1m.9H="1l";A.1K(A.h.1m.4E,{aY:18,fM:c(C,F){F=F||17;b B=8,E=8.f.1I;c G(){B.aY=fL(c(){E=++E<B.$1m.1l?E:0;B.4j(E)},C)}c D(H){if(!H||H.cR){fK(B.aY)}}if(C){G();if(!F){8.$1m.2R(8.f.3M,D)}1e{8.$1m.2R(8.f.3M,c(){D();E=B.f.1I;G()})}}1e{D();8.$1m.3m(8.f.3M,D)}}})})(1s)',62,1301,'||||||||this|||var|function|||options||ui|||return|left|||top|css|element|height||width|inst|offset||||||||||||||||||||||||||||||datepicker|||||position|||false|null|document|true|parseInt|Math|date|else|helper|resizable|effects|_get|addClass|data|length|tabs|parent|div|target|size|containment|jQuery|each|show|test|apply|arguments|case|click|break|hide|body|value|input|disabled|removeClass|handle|selected|easing|extend|opacity|animate|for|new|from|helperProportions|browser|duration|propagate|dialog|currentItem|draggable|to|instance|relative||add|max|absolute|call||scrollLeft|||scrollTop|year|containers|offsetParent|remove|start|settings|items|class|Date|day|month|cursor|resize|_datepickerDiv|callback|min|currentHandle|axis|255|html|undefined|_input|pos|zIndex|triggerHandler|stop|style|outerHeight|plugin|overlay|minDate|typeof|appendTo|mode|ddmanager|grid|outerWidth|px|getFullYear|attr|maxDate|iFormat|sortable|bind|child|overflow|getDate|margins|0px|pageX|pageY|handles|placeholder|item|||||||||originalPosition|panels|msie|window|100|right|drawMonth|format|queue|overflowX|overflowY|proxy|unbind|selectedClass|match|selectable|destroy|stepping|bottom|numMonths|_id|drawYear|charAt|scrollSpeed|scrollSensitivity|positionAbs|unselecting|filter|round|focus|hidden|getMonth|vertical|active|documentElement|uiDialog|accordion|cursorAt|event|href|lis|trigger|index|drag|nw|sw|se|name|over|auto|dequeue|parentNode||ne||showStatus|printDate||span||removeData|constructor|monthNames|dayNames|_adjustDate|current|_getInst|nodeName|ctrlKey|abs|selecting|select|widget|slider|mouse|append|_currentDay|_currentYear|dayNamesShort|_rangeStart|xa0|td|firstDay|next|_defaults|checkDate|speed|fixed|headers|setMode|restore|cssPosition|prototype|push|hasClass|visible|distance|translateValue|margin|button|_currentMonth|_selectedDay|shortYearCutoff|clear|end|matches|literal|lookAhead|_pos|containerCache|ghost|droppable|load|string||parents|setData|_selectedMonth|status||isRTL|iValue|_calId|toggle|effect|tolerance|convertPositionTo|get|4px|defaults|find|concat|title|init|default|mouseDrag|both|switch|_selectedYear|monthNamesShort|unselectable|while|_settings|isFixed|save|setTransition|drop|aspectRatio|isover|display|replace|convertValue|offsetWidth|offsetHeight|close|minWidth|minHeight|_endDay|_endYear|rangeSelect|output|_updateDatepicker|key|activate|down|complete|borderLeftWidth|borderTopWidth|removeWrapper|up|PI|scroll|originalSize|_change|accept|hash||map|slide|keydown|wrap|mouseStop|mouseStart|plugins|_getMinMaxDate|_addStatus|onclick|endDate|dow|_endMonth|prev|chars|static|_disabledInputs|toShow|createWrapper|direction|128|floating|proportionallyResize|knobHandles|_mouseStarted|hideClass|label|cache|disable|blur|change|rangeElement|isNaN|previousHandle|actualSize|realMax|keyCode|version|scrollHeight|stack|maxHeight|maxWidth|object|_drawYear|_drawMonth|period|endYear|years|header|otherMonth|today|getTime|_hideDatepicker|defaultDate|dates|_stayOpen|dateStr|onSelect|_inDialog|_dialogInput|showAnim|type|buttonText|inlineSettings|autoHeight|not||marginRight|marginBottom|clone|pow|transparent|HTML|tagName|out|revert|sizeDiff|0pt|isout|widgetName|disabledClass|join|sort|block|inArray|siblings|opera|Number|clickOffset|handleSize|steps|mousedown|instances|bgiframe|split|center|dateFormat|_inline|showOtherMonths|cell|dateStatus|row|prompt|stepMonths|_datepickerShowing|obj|markerClassName|showOn|wrapper|toHide|andSelf|marginLeft|marginTop|backgroundColor|cancel|delay|deactivate|continue|refresh|startselected|alsoResize|snapElements|cookie|setTimeout|enable|inline|indexOf|throw||500|mouseInit|mouseDestroy|titlebar|className|extendRemove|newMinDate|setDate|_getNumberOfMonths|getDay|number|selectedDate|days|col|exec|firstMon|_lastInput|toLowerCase|_showDatepicker|buttonImage|appendText|running|none|visibility|sqrt|70158|139|F0|overflowXOffset|overflowYOffset|_opacity|_zIndex|_cursor|update|cancelHelperRemoval|generatePosition|toleranceElement|isFunction|parentData|disableSelection|borderDif|_handles|intersect|droppables|isOver|loadingClass|panelClass|tabify|Array|normal|_|translateRange|translateLimits|moveTo|oneStep|mouseCapture|scrollWidth|1000|content|middle|text|Datepicker|_formatDate|_getDaysInMonth|closeAtTop|beforeShowDay|showWeeks|iso8601Week|changeFirstDay|hideIfNoPrevNext|maxDraw|DatepickerInstance|names|floor|blockUI|_curInst|onClose|scrollY|scrollX|innerHeight|beforeShow|getData|img|the|Show|swing|alwaysOpen|sin|animateClass|dragging|absolutePosition|hasScroll|_aspectRatio|containerOffset|autohide|_proportionallyResize|knob|mouseUp|cssCache|getter|unselect|li|ajaxOptions|spinner|xhr|location|sliderValue|updateRange|horizontal|firstValue|after|150|moveToTop|hover|props|_getFormatConfig|option|iframe|tr|week|calculateWeek|dayNamesMin|DD|val|shortNames|longNames|checkLiteral|getNumber|num|_selectDate|_selectingMonthYear|browserHeight|browserWidth|clientHeight|clientWidth|innerWidth|_doKeyDown|String|_inst|replaceWith|attrValue|attrName|animated|toggleClass|borderRightWidth|borderBottomWidth|||neg|percent|color|pieces|5625|192|211|parseFloat|slow|defaultView|unit|background|refreshPositions|rearrange|dropBehaviour|prepareOffsets|selectees|1px|textarea|shiftKey|containerPosition|containerSize|resizing|hoverClass|activeClass|proportions|sortables|iframeFix|_mouseDelayMet|_mouseDownEvent|rotation|unselectClass|navClass|panelTemplate|success|safari|insertBefore|tabId|splice|handleOffset|range|initBoundaries|firstChild|mouseDown|generated|unwrap|padding|keypress|mouseup|modal|buttons|open|resizeStop|dragStop|dragStart|otherArgs|formatDate|_isInRange|_canAdjustMonth|_determineDate|_clickMonthYear|_selectMonthYear|secondary|src|controls|_selectDay|currentDate|daySettings|dRow|daysInMonth|leadDays|_gotoToday|nextText|prevText|_clearDate|mandatory|startDate|_getDate|_setDate|getDaysInMonth|_getDefaultDate|log|catch|parseDate|try|rangeSeparator|_setDateFromField|formatName|formatNumber|getName|_tidyDialog|_findPos|postProcess|_doKeyPress|before|chr|calId|instSettings|regional|step|animations|140|times|scale|backgroundImage|explode|easeOutBounce|asin|169|rgb|fast|cssText|fxWrapper|border|float|guess|domPosition|createPlaceholder|currentContainer|connectWith|pointer|touch|dragged|selectableunselecting|opos|alsoresize|removeChild|_updateCache|containerElement|preserveCursor|preventDefault|elementOffset|documentScroll|_nodeName|knobTheme|borderTop|borderLeft|borderRight|borderBottom|_helper|snap|original|uiHash|mouseDelayMet|mouseDistanceMet|_mouseUpDelegate|_mouseMoveDelegate|clientX|panel|tabTemplate|idPrefix|url|grep|first|tabsshow|handleIndex|getRange|createRange|startValue|javascript|events|create|300|200|closeOnEscape|autoOpen|uiDialogTitlebarClose|uiDialogTitlebar|resizeStart||_checkExternalClick|_attachDatepicker|slice|curMonth|curYear|_getFirstDayOfMonth|checkRange|minMax|numberOfMonths|onmouseout||onmouseover|yearStatus|onchange|yearRange|changeYear|inMaxYear|inMinYear|monthStatus|changeMonth|_generateMonthYearHeader|cover|initStatus|table|tbody|numRows|statusForDate|ceil|isMultiMonth|thead|_changeFirstDay|dayStatus|weekHeader|currentText|currentStatus|nextStatus|prevStatus|closeText|closeStatus|clearText|clearStatus|_generateDatepicker|offsetNumeric|offsetString|_register|_possibleChars|getYear|Invalid|iInit|hasDatepicker|100px|_afterShow|rtl|multi|empty|_isDisabledDatepicker|dateText|_dialogInst|_inlineDatepicker|alt||buttonImageOnly|_connectDatepicker|charCode|_nextId|debug|Select|different|May|||Close|navigationFilter|oldContent||newContent|oldHeader|newHeader|fillSpace|zoom|animation|transfer|paddingRight|paddingLeft|paddingBottom|paddingTop|fontSize|fade|getBaseline|easeInBounce|525|cos|easeOutQuad|def|165|224|144|230|240|107|black|245|trim|rgba|elem|cssUnit|morph|_toggleClass|_removeClass|_addClass|__toggle|Function|_hide|_show|currentStyle|getComputedStyle|storage|dropOnEmpty|toArray|serialize|receive|contactContainers|intersectsWithEdge|intersectsWith|refreshItems|sender|compareDocumentPosition|contains|autoRefresh|unselected|fit|_renderProxy|_respectSize||_updateRatio|originalMousePosition|_renderAxis|defaultTheme|8px|solid|F2F2F2|greedyChild|greedy||shouldRevert|connectToSortable||snapMode|mousemove|mouseMove|_mouseUnselectable|on|widgetBaseClass|MozUserSelect|onselectstart|5000px|clearInterval|setInterval|rotate|loading|nav|8230|Loading|ajax|abort|tabsload|wrapInner|last|tabsdisable|tabsenable|tabsremove|tabsadd|identifier|fragment|Mismatching|Tabs|UI|tabsselect|unload|unique|scrollTo|insertAfter|has|tab|z0|Za|Height|Width|noKeyboard|void|borderWidth|dialogclose|dialogopen|buttonpane|stopPropagation|outline|tabIndex|dialogClass|prependTo|container|ready|isDisabled|setMilliseconds|setSeconds|setMinutes|setHours|9999|cellspacing|cellpadding|one|links|control|0123456789|Unexpected|Unknown|Missing|toString|86400000|getTimezoneOffset|noWeekends|selectedIndex|unblockUI|fadeOut|fadeIn|slideUp|slideDown|nextSibling|nodeType|_dialogDatepicker|_inlineShow|fromCharCode|_getDateDatepicker|_setDateDatepicker|_changeDatepicker|_disableDatepicker|_enableDatepicker|_destroyDatepicker|err|eval|getAttribute|setDefaults|console|yy|mm|Set|Sa|Fr|Th|We|Tu|Mo|Su|Sat|Fri|Thu|Wed|Tue|Mon|Sun|Saturday|Friday|Thursday|Wednesday|Tuesday|Monday|Sunday|of|Week|weekStatus|Wk|Dec|Nov|Oct|Sep|Aug|Jul|Jun|Apr|Mar|Feb|Jan|December|November|October|September|August|July|June|April|March|February|January|Today|x3e|Next|previous|Prev|x3c|without|Erase|Clear|700|easeinout|easeslide|bounceout|bounceslide|accordionchange|clearStyle|tabindex||navigation||shake|box|origin|puff|pulsate|removeAttribute|ffff99||highlight|fold|clip|250||bounce|blind|easeInOutBounce|984375|625|9375|easeInOutBack|easeOutBack|easeInBack|easeInOutElastic|easeOutElastic|easeInElastic|easeInOutCirc|easeOutCirc|easeInCirc|easeInOutExpo|easeOutExpo|easeInExpo|easeInOutSine|easeOutSine|easeInSine|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|easeInOutCubic|easeOutCubic|easeInCubic|easeInOutQuad|easeInQuad|jswing|yellow|white|silver|red|violet|purple|203|pink|orange|olive|navy|maroon|magenta|lime|lightyellow|193|182|lightpink|lightgrey|238|lightgreen|lightcyan|216|173|lightblue|khaki|130|indigo|green|215|gold|fuchsia|148|darkviolet|122|233|darksalmon|darkred|204|153|darkorchid|darkorange|darkolivegreen|darkmagenta|183|189|darkkhaki|darkgreen|darkgrey|darkcyan|darkblue|cyan|brown|blue|220|beige|azure|aqua|curCSS|state|outlineColor|borderTopColor|borderRightColor|borderLeftColor|borderBottomColor|pt|switchClass|method|Moz|font|dynamic|semi|10000|expression|attribute|522|selectablestop|selectableselected|selectableunselected|selectableselecting|keyboard|clientY|selectablestart|dotted|createElement|selectee|animateEasing|animateDuration|instanceof|children|mouseover|Left|Right|Bottom|Top|all|canvas|808080|DEDEDE|sortactivate|dragstart|dropdeactivate|dropactivate|dropout|dropover|group|makeArray|fromSortable|toSortable|sortreceive|outer|inner|snapTolerance|DragDropIframeFix|001|fff|mozilla|_mouseDelayTimer|which|started|off|enableSelection|gen'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/ui.accordion.packed.js b/javascript/libs/jquery/packed/ui/ui.accordion.packed.js
new file mode 100644
index 0000000..8657cff
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/ui.accordion.packed.js
@@ -0,0 +1,2 @@
+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}('(4(E){E.2h("d.5",{2g:4(){7 G=2.c;3(G.2f){7 J=2.e.14("a").m(G.1d);3(J.12){3(J.m(G.k).12){G.6=J}w{G.6=J.i().i().2e();J.v("2d")}}}G.8=2.e.14(G.k);G.6=C(G.8,G.6);3(E.U.16){2.e.14("a").l("2c","1")}3(!2.e.2b("d-5")){2.e.v("d-5");E("<1q 1p=\'d-5-2a\'/>").29(G.8);E("<1q 1p=\'d-5-28\'/>").27(G.8);G.8.v("d-5-k").26("25","0")}7 I;3(G.1m){I=2.e.i().b();G.8.O(4(){I-=E(2).1n()});7 H=0;G.8.h().O(4(){H=T.1o(H,E(2).24()-E(2).b())}).b(I-H)}w{3(G.g){I=0;G.8.h().O(4(){I=T.1o(I,E(2).1n())}).b(I)}}G.8.10(G.6||"").h().V();G.6.i().R().v(G.t);3(G.Z){2.e.23((G.Z)+".5",F)}},S:4(G){F.11(2.e[0],{13:C(2.c.8,G)[0]})},22:4(){2.c.8.h().l("21","");3(2.c.1m||2.c.g){2.c.8.h().l("b","")}E.20(2.e[0],"5");2.e.1Z("d-5").1Y(".5")}});4 B(H,G){9 4(){9 H.1X(G,1W)}}4 D(I){3(!E.o(2,"5")){9}7 G=E.o(2,"5");7 H=G.c;H.n=I?0:--H.n;3(H.n){9}3(H.1V){H.f.1U(H.j).l({b:"",19:""})}E(2).1T("1S",[H.o],H.1R)}4 A(G,K,L,J,M){7 I=E.o(2,"5").c;I.f=G;I.j=K;I.o=L;7 H=B(D,2);I.n=K.P()===0?G.P():K.P();3(I.Q){3(!I.s&&J){E.d.5.X[I.Q]({f:x([]),j:K,r:H,z:M,g:I.g})}w{E.d.5.X[I.Q]({f:G,j:K,r:H,z:M,g:I.g})}}w{3(!I.s&&J){G.1Q()}w{K.V();G.W()}H(Y)}}4 F(L){7 J=E.o(2,"5").c;3(J.1P){9 u}3(!L.13&&!J.s){J.6.i().R().1k(J.t);7 I=J.6.h(),M={c:J,1j:x([]),1i:J.6,1h:x([]),1g:I},G=(J.6=E([]));A.11(2,G,I,M);9 u}7 K=E(L.13);3(K.1O(J.k).12){1N(!K.1l(J.k)){K=K.i()}}7 H=K[0]==J.6[0];3(J.n||(J.s&&H)){9 u}3(!K.1l(J.k)){9}J.6.i().R().1k(J.t);3(!H){K.i().R().v(J.t)}7 G=K.h(),I=J.6.h(),M={c:J,1j:K,1i:J.6,1h:G,1g:I},N=J.8.1f(J.6[0])>J.8.1f(K[0]);J.6=H?E([]):K;A.11(2,G,I,M,H,N);9 u}4 C(H,G){9 G!=1M?1L G=="1K"?H.m(":1e("+G+")"):H.10(H.10(G)):G===u?E([]):H.m(":1e(0)")}E.1a(E.d.5,{1J:{t:"1I",s:Y,Q:"y",Z:"1H",k:"a",g:Y,n:0,1d:4(){9 2.1c.1b()==1G.1c.1b()}},X:{y:4(G,I){G=E.1a({q:"15",p:1F},G,I);3(!G.j.P()){G.f.17({b:"W"},G);9}7 H=G.j.b(),J=G.f.b(),K=J/H;G.f.l({b:0,19:"18"}).W();G.j.m(":18").O(G.r).1E().m(":1D").17({b:"V"},{1C:4(L){7 M=(H-L)*K;3(E.U.16||E.U.1B){M=T.1A(M)}G.f.b(M)},p:G.p,q:G.q,r:4(){3(!G.g){G.f.l("b","1z")}G.r()}})},1y:4(G){2.y(G,{q:G.z?"1x":"15",p:G.z?1w:1v})},1u:4(G){2.y(G,{q:"1t",p:1s})}}});E.1r.S=4(G){9 2.5("S",G)}})(x)',62,142,'||this|if|function|accordion|active|var|headers|return||height|options|ui|element|toShow|autoHeight|next|parent|toHide|header|css|filter|running|data|duration|easing|complete|alwaysOpen|selectedClass|false|addClass|else|jQuery|slide|down|||||||||||||||each|size|animated|andSelf|activate|Math|browser|hide|show|animations|true|event|not|call|length|target|find|swing|msie|animate|hidden|overflow|extend|toLowerCase|href|navigationFilter|eq|index|oldContent|newContent|oldHeader|newHeader|toggleClass|is|fillSpace|outerHeight|max|class|span|fn|700|easeinout|easeslide|200|1000|bounceout|bounceslide|auto|ceil|opera|step|visible|end|300|location|click|selected|defaults|number|typeof|undefined|while|parents|disabled|toggle|change|accordionchange|triggerHandler|add|clearStyle|arguments|apply|unbind|removeClass|removeData|display|destroy|bind|innerHeight|tabindex|attr|appendTo|right|insertBefore|left|hasClass|zoom|current|prev|navigation|init|widget'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/ui.core.packed.js b/javascript/libs/jquery/packed/ui/ui.core.packed.js
new file mode 100644
index 0000000..5b2c029
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/ui.core.packed.js
@@ -0,0 +1,2 @@
+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}('(3(C){C.8={2t:{1o:3(E,F,H){6 G=C.8[E].m;1v(6 D 2s H){G.u[D]=G.u[D]||[];G.u[D].2r([F,H[D]])}},1n:3(D,F,E){6 H=D.u[F];5(!H){4}1v(6 G=0;G<H.2q;G++){5(D.a[H[G][0]]){H[G][1].r(D.c,E)}}}},n:{},f:3(D){5(C.8.n[D]){4 C.8.n[D]}6 E=C(\'<2p 2o="8-2n-2m">\').1i(D).f({2l:"2k",11:"-1u",2j:"-1u",2i:"2h"}).2g("1t");C.8.n[D]=!!((!(/2f|2e/).h(E.f("2d"))||(/^[1-9]/).h(E.f("2c"))||(/^[1-9]/).h(E.f("2b"))||!(/1r/).h(E.f("2a"))||!(/29|28\\(0, 0, 0, 0\\)/).h(E.f("27"))));26{C("1t").1s(0).25(E.1s(0))}24(F){}4 C.8.n[D]},23:3(D){D.j="1g";D.1q=3(){4 7};5(D.t){D.t.1p="1r"}},22:3(D){D.j="21";D.1q=3(){4 d};5(D.t){D.t.1p=""}},20:3(G,E){6 D=/11/.h(E||"11")?"1Z":"1Y",F=7;5(G[D]>0){4 d}G[D]=1;F=G[D]>0?d:7;G[D]=0;4 F}};6 B=C.Z.q;C.Z.q=3(){C("*",2).1o(2).1X("q");4 B.r(2,1m)};3 A(E,F,G){6 D=C[E][F].1W||[];D=(U D=="T"?D.10(/,?\\s+/):D);4(C.1V(G,D)!=-1)}C.X=3(E,D){6 F=E.10(".")[0];E=E.10(".")[1];C.Z[E]=3(J){6 H=(U J=="T"),I=1U.m.1T.1n(1m,1);5(H&&A(F,E,J)){6 G=C.Y(2[0],E);4(G?G[J].r(G,I):1S)}4 2.1R(3(){6 K=C.Y(2,E);5(H&&K&&C.1Q(K[J])){K[J].r(K,I)}1P{5(!H){C.Y(2,E,1O C[F][E](2,J))}}})};C[F][E]=3(I,H){6 G=2;2.e=E;2.1h=F+"-"+E;2.a=C.1l({k:7},C[F][E].13,H);2.c=C(I).g("l."+E,3(L,J,K){4 G.l(J,K)}).g("W."+E,3(K,J){4 G.W(J)}).g("q",3(){4 G.1j()});2.1k()};C[F][E].m=C.1l({},C.X.m,D)};C.X.m={1k:3(){},1j:3(){2.c.1N(2.e)},W:3(D){4 2.a[D]},l:3(D,E){2.a[D]=E;5(D=="k"){2.c[E?"1i":"1M"](2.1h+"-k")}},1L:3(){2.l("k",7)},1K:3(){2.l("k",d)}};C.8.14={1J:3(){6 D=2;2.c.g("1I."+2.e,3(E){4 D.1e(E)});5(C.S.R){2.1f=2.c.V("j");2.c.V("j","1g")}2.1H=7},1G:3(){2.c.P("."+2.e);(C.S.R&&2.c.V("j",2.1f))},1e:3(F){(2.b&&2.i(F));2.p=F;6 E=2,G=(F.1F==1),D=(U 2.a.w=="T"?C(F.1E).1D(2.a.w):7);5(!G||D||!2.15(F)){4 d}2.o=!2.a.v;5(!2.o){2.1C=1B(3(){E.o=d},2.a.v)}5(2.N(F)&&2.z(F)){2.b=(2.y(F)!==7);5(!2.b){F.1A();4 d}}2.Q=3(H){4 E.1d(H)};2.O=3(H){4 E.i(H)};C(1c).g("1b."+2.e,2.Q).g("1a."+2.e,2.O);4 7},1d:3(D){5(C.S.R&&!D.1z){4 2.i(D)}5(2.b){2.x(D);4 7}5(2.N(D)&&2.z(D)){2.b=(2.y(2.p,D)!==7);(2.b?2.x(D):2.i(D))}4!2.b},i:3(D){C(1c).P("1b."+2.e,2.Q).P("1a."+2.e,2.O);5(2.b){2.b=7;2.16(D)}4 7},N:3(D){4(M.1y(M.18(2.p.19-D.19),M.18(2.p.17-D.17))>=2.a.12)},z:3(D){4 2.o},y:3(D){},x:3(D){},16:3(D){},15:3(D){4 d}};C.8.14.13={w:1x,12:1,v:0}})(1w)',62,154,'||this|function|return|if|var|false|ui||options|_mouseStarted|element|true|widgetName|css|bind|test|mouseUp|unselectable|disabled|setData|prototype|cssCache|_mouseDelayMet|_mouseDownEvent|remove|apply||style|plugins|delay|cancel|mouseDrag|mouseStart|mouseDelayMet|||||||||||||Math|mouseDistanceMet|_mouseUpDelegate|unbind|_mouseMoveDelegate|msie|browser|string|typeof|attr|getData|widget|data|fn|split|top|distance|defaults|mouse|mouseCapture|mouseStop|pageY|abs|pageX|mouseup|mousemove|document|mouseMove|mouseDown|_mouseUnselectable|on|widgetBaseClass|addClass|destroy|init|extend|arguments|call|add|MozUserSelect|onselectstart|none|get|body|5000px|for|jQuery|null|max|button|preventDefault|setTimeout|_mouseDelayTimer|is|target|which|mouseDestroy|started|mousedown|mouseInit|disable|enable|removeClass|removeData|new|else|isFunction|each|undefined|slice|Array|inArray|getter|trigger|scrollLeft|scrollTop|hasScroll|off|enableSelection|disableSelection|catch|removeChild|try|backgroundColor|rgba|transparent|backgroundImage|width|height|cursor|default|auto|appendTo|block|display|left|absolute|position|gen|resizable|class|div|length|push|in|plugin'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/ui.datepicker.packed.js b/javascript/libs/jquery/packed/ui/ui.datepicker.packed.js
new file mode 100644
index 0000000..520fe37
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/ui.datepicker.packed.js
@@ -0,0 +1,2 @@
+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}('(k($){k 3q(){8.6V=H;8.6U=0;8.4u=[];8.3K=o;8.2d=[];8.2Q=H;8.2w=H;8.5w=[];8.5w[""]={6f:"92",6g:"91 3R 3e h",6d:"6Z",6e:"6Z 90 6s",4X:"&#8Z;8Y",6c:"3S 3R 8X B",4W:"8W&#8V;",6b:"3S 3R 3B B",69:"8U",6a:"3S 3R 3e B",1f:["8T","8S","8R","8Q","6Y","8P","8O","8N","8M","8L","8K","8J"],1M:["8I","8H","8G","8F","6Y","8E","8D","8C","8B","8A","8z","8y"],5R:"3S a 6X B",5K:"3S a 6X u",68:"8x",8w:"8v 8u 3R u",1g:["8t","8s","8r","8q","8p","8o","8n"],1l:["8m","8l","8k","8j","8i","8h","8g"],44:["8f","8e","8d","8c","8b","8a","89"],67:"88 46 87 86 42 A",2L:"6W 46, M d",2D:"85/84/83",1p:0,5W:"6W a h",1F:H};8.1q={2W:"2s",2y:"6D",2q:o,3o:"",2B:"...",3n:"",6O:H,3w:1b,4Z:H,3C:H,5S:1b,5O:1b,5N:"-10:+10",3A:1b,2I:H,3y:H,43:8.3z,1x:"+10",1c:H,61:8.2L,I:o,O:o,1t:"82",3x:o,3P:o,2v:o,3L:o,5H:1,2P:1,1W:H,57:" - "};$.3s(8.1q,8.5w[""]);8.C=$(\'<E P="n-f-E"></E>\')}$.3s(3q.4A,{2V:"6u",55:k(){g(8.6V){81.55.2f("",4z)}},6n:k(b){c P=8.6U++;8.4u[P]=b;p P},1i:k(P){p 8.4u[P]||P},80:k(x){2X(8.1q,x||{});p 8},5y:k(q,x){c 2C=o;1e(4x 5B 8.1q){c 4w=q.7Z("h:"+4x);g(4w){2C=2C||{};6l{2C[4x]=7Y(4w)}6k(7X){2C[4x]=4w}}}c 1R=q.1R.5m();c 5v=(2C?$.3s(x||{},2C||{}):x);g(1R=="r"){c b=(b&&!2C?b:t 3F(5v,H));8.6P(q,b)}N{g(1R=="E"||1R=="2N"){c b=t 3F(5v,1b);8.6J(q,b)}}},7W:k(q){c 1R=q.1R.5m();c 5t=q.1I;q.1I=o;c $q=$(q);g(1R=="r"){$q.3p(".n-f-2e").5u("").3f().3p(".n-f-1B").5u("").3f().2K(8.2V).4j("2s",8.3m).4j("5n",8.4q).4j("6K",8.5o);c 4v=$q.5e(".n-f-5q");g(4v){4v.5u(4v.K())}}N{g(1R=="E"||1R=="2N"){$q.2K(8.2V).6C()}}g($("r[1I="+5t+"]").18==0){8.4u[5t]=o}},7V:k(q){q.4t=H;$(q).3p("3Q.n-f-1B").3T(k(){8.4t=H}).3f().3p("4s.n-f-1B").1H({6T:"1.0",6S:""});8.2d=$.6R(8.2d,k(v){p(v==q?o:v)})},7U:k(q){q.4t=1b;$(q).3p("3Q.n-f-1B").3T(k(){8.4t=1b}).3f().3p("4s.n-f-1B").1H({6T:"0.5",6S:"4b"});8.2d=$.6R($.f.2d,k(v){p(v==q?o:v)});8.2d[$.f.2d.18]=q},6E:k(q){g(!q){p H}1e(c i=0;i<8.2d.18;i++){g(8.2d[i]==q){p 1b}}p H},7T:k(q,19,v){c x=19||{};g(1S 19=="3r"){x={};x[19]=v}g(b=8.1i(q.1I)){2X(b.1O,x);8.1Z(b)}},7S:k(q,h,26){g(b=8.1i(q.1I)){b.52(h,26);8.1Z(b)}},7R:k(q){c b=8.1i(q.1I);g(b){b.58($(q))}p(b?b.51():o)},4q:k(e){c b=$.f.1i(8.1I);g($.f.2Q){3E(e.5s){F 9:$.f.2p(o,"");J;F 13:$.f.4P(b,b.1D,b.1L,$("1o.n-f-3d-2J-41",b.C)[0]);p H;J;F 27:$.f.2p(o,b.l("1t"));J;F 33:$.f.1h(b,(e.1J?-1:-b.l("2P")),(e.1J?"Y":"M"));J;F 34:$.f.1h(b,(e.1J?+1:+b.l("2P")),(e.1J?"Y":"M"));J;F 35:g(e.1J){$.f.4Y(b)}J;F 36:g(e.1J){$.f.4V(b)}J;F 37:g(e.1J){$.f.1h(b,-1,"D")}J;F 38:g(e.1J){$.f.1h(b,-7,"D")}J;F 39:g(e.1J){$.f.1h(b,+1,"D")}J;F 40:g(e.1J){$.f.1h(b,+7,"D")}J}}N{g(e.5s==36&&e.1J){$.f.3m(8)}}},5o:k(e){c b=$.f.1i(8.1I);c 2b=$.f.6o(b.l("2D"));c 5r=7Q.7P(e.6Q==6m?e.5s:e.6Q);p e.1J||(5r<" "||!2b||2b.66(5r)>-1)},6P:k(q,b){c r=$(q);g(r.5d("."+8.2V)){p}c 3o=b.l("3o");c 1F=b.l("1F");g(3o){g(1F){r.6M(\'<2N T="n-f-2e">\'+3o)}N{r.6L(\'<2N T="n-f-2e">\'+3o)}}c 2W=b.l("2W");g(2W=="2s"||2W=="3Y"){r.2s(8.3m)}g(2W=="3Q"||2W=="3Y"){r.5q(\'<2N T="n-f-5q">\');c 2B=b.l("2B");c 3n=b.l("3n");c 1B=$(b.l("6O")?$("<4s>").25("n-f-1B").5p({4M:3n,6N:2B,45:2B}):$("<3Q>").25("n-f-1B").5p({3M:"3Q"}).K(3n!=""?$("<4s>").5p({4M:3n,6N:2B,45:2B}):2B));g(1F){r.6M(1B)}N{r.6L(1B)}1B.7O(k(){g($.f.2Q&&$.f.3i==q){$.f.2p()}N{$.f.3m(q)}})}r.25(8.2V).5n(8.4q).6K(8.5o).4r("6I.f",k(3j,2A,v){b.1O[2A]=v}).4r("6H.f",k(3j,2A){p b.l(2A)});r[0].1I=b.Z},6J:k(q,b){c r=$(q);g(r.5d("."+8.2V)){p}r.25(8.2V).2e(b.C).4r("6I.f",k(3j,2A,v){b.1O[2A]=v}).4r("6H.f",k(3j,2A){p b.l(2A)});r[0].1I=b.Z;8.1Z(b)},7N:k(b){c X=b.30();b.C.2z(X[1]*$(".n-f",b.C[0]).2z())},7M:k(r,6F,2v,x,2c){c b=8.6G;g(!b){b=8.6G=t 3F({},H);8.2x=$(\'<r 3M="4H" 1Y="1" 4N="1P: 5g; 2R: -6w;"/>\');8.2x.5n(8.4q);$("1K").2e(8.2x);8.2x[0].1I=b.Z}2X(b.1O,x||{});8.2x.4a(6F);8.1C=(2c?(2c.18?2c:[2c.7L,2c.7K]):o);g(!8.1C){c 4m=4o.6y||R.1u.4p||R.1K.4p;c 4l=4o.6x||R.1u.4n||R.1K.4n;c 3O=R.1u.2U||R.1K.2U;c 3N=R.1u.2T||R.1K.2T;8.1C=[(4m/2)-2F+3O,(4l/2)-7J+3N]}8.2x.1H("3k",8.1C[0]+"3l").1H("2R",8.1C[1]+"3l");b.1O.2v=2v;8.2w=1b;8.C.25("n-f-6v");8.3m(8.2x[0]);g($.3J){$.3J(8.C)}p 8},3m:k(r){r=r.q||r;g(r.1R.5m()!="r"){r=$("r",r.7I)[0]}g($.f.6E(r)||$.f.3i==r){p}c b=$.f.1i(r.1I);c 3P=b.l("3P");2X(b.1O,(3P?3P.2f(r,[r,b]):{}));$.f.2p(o,"");$.f.3i=r;b.58(r);g($.f.2w){r.v=""}g(!$.f.1C){$.f.1C=$.f.5i(r);$.f.1C[1]+=r.7H}c 1Q=H;$(r).5e().3T(k(){1Q|=$(8).1H("1P")=="5k"});g(1Q&&$.1T.5j){$.f.1C[0]-=R.1u.2U;$.f.1C[1]-=R.1u.2T}b.C.1H("1P",($.f.2w&&$.3J?"7G":(1Q?"5k":"5g"))).1H({3k:$.f.1C[0]+"3l",2R:$.f.1C[1]+"3l"});$.f.1C=o;b.1m=o;$.f.1Z(b);g(!b.2H){c 1t=b.l("1t");c 5l=k(){$.f.2Q=1b;$.f.6z(b)};c 2y=b.l("2y")||"6D";b.C[2y](1t,5l);g(1t==""){5l()}g(b.G[0].3M!="5h"){b.G[0].2s()}$.f.3K=b}},1Z:k(b){b.C.6C().2e(b.6h());c X=b.30();g(X[0]!=1||X[1]!=1){b.C.25("n-f-6B")}N{b.C.2K("n-f-6B")}g(b.l("1F")){b.C.25("n-f-6A")}N{b.C.2K("n-f-6A")}g(b.G&&b.G[0].3M!="5h"){$(b.G[0]).2s()}},6z:k(b){c X=b.30();b.C.2z(X[1]*$(".n-f",b.C[0])[0].7F);g($.1T.3v&&2E($.1T.5V)<7){$("4L.n-f-5U").1H({2z:b.C.2z()+4,4k:b.C.4k()+4})}c 1Q=b.C.1H("1P")=="5k";c 2c=b.G?$.f.5i(b.G[0]):o;c 4m=4o.6y||R.1u.4p||R.1K.4p;c 4l=4o.6x||R.1u.4n||R.1K.4n;c 3O=(1Q?0:R.1u.2U||R.1K.2U);c 3N=(1Q?0:R.1u.2T||R.1K.2T);g((b.C.1a().3k+b.C.2z()-(1Q&&$.1T.3v?R.1u.2U:0))>(4m+3O)){b.C.1H("3k",1N.2g(3O,2c[0]+(b.G?$(b.G[0]).2z():o)-b.C.2z()-(1Q&&$.1T.5j?R.1u.2U:0))+"3l")}g((b.C.1a().2R+b.C.4k()-(1Q&&$.1T.3v?R.1u.2T:0))>(4l+3N)){b.C.1H("2R",1N.2g(3N,2c[1]-(8.2w?0:b.C.4k())-(1Q&&$.1T.5j?R.1u.2T:0))+"3l")}},5i:k(2S){49(2S&&(2S.3M=="5h"||2S.7E!=1)){2S=2S.7D}c 1P=$(2S).1a();p[1P.3k,1P.2R]},2p:k(r,1t){c b=8.3K;g(!b){p}c 1W=b.l("1W");g(1W&&8.2t){8.4h(b,b.3t(b.1j,b.1v,b.1k))}8.2t=H;g(8.2Q){1t=(1t!=o?1t:b.l("1t"));c 2y=b.l("2y");b.C[(2y=="7C"?"7B":(2y=="7A"?"7z":"7y"))](1t,k(){$.f.5f(b)});g(1t==""){8.5f(b)}c 3L=b.l("3L");g(3L){3L.2f((b.G?b.G[0]:o),[b.51(),b])}8.2Q=H;8.3i=o;b.1O.2O=o;g(8.2w){8.2x.1H({1P:"5g",3k:"0",2R:"-6w"});g($.3J){$.7x();$("1K").2e(8.C)}}8.2w=H}8.3K=o},5f:k(b){b.C.2K("n-f-6v").4j(".n-f");$(".n-f-2O",b.C).7w()},5x:k(3j){g(!$.f.3K){p}c $q=$(3j.q);g(($q.5e("#n-f-E").18==0)&&!$q.6t("6u")&&!$q.6t("n-f-1B")&&$.f.2Q&&!($.f.2w&&$.3J)){$.f.2p(o,"")}},1h:k(P,1a,2j){c b=8.1i(P);b.1h(1a,2j);8.1Z(b)},4V:k(P){c h=t z();c b=8.1i(P);b.1w=h.S();b.2i=b.1D=h.16();b.2h=b.1L=h.L();8.1h(b)},4J:k(P,2G,2j){c b=8.1i(P);b.4i=H;b[2j=="M"?"2i":"2h"]=2G.20[2G.7v].v-0;8.1h(b)},4I:k(P){c b=8.1i(P);g(b.G&&b.4i&&!$.1T.3v){b.G[0].2s()}b.4i=!b.4i},64:k(P,A){c b=8.1i(P);b.1O.1p=A;8.1Z(b)},4P:k(P,B,u,1o){g($(1o).5d(".n-f-3c")){p}c b=8.1i(P);c 1W=b.l("1W");g(1W){g(!8.2t){$(".n-f 1o").2K("n-f-3e-A");$(1o).25("n-f-3e-A")}8.2t=!8.2t}b.1w=b.1j=$("a",1o).K();b.1D=b.1v=B;b.1L=b.1k=u;8.4h(P,b.3t(b.1j,b.1v,b.1k));g(8.2t){b.1U=b.2a=b.1V=o;b.1m=t z(b.1k,b.1v,b.1j);8.1Z(b)}N{g(1W){b.1U=b.1j;b.2a=b.1v;b.1V=b.1k;b.1w=b.1j=b.1m.S();b.1D=b.1v=b.1m.16();b.1L=b.1k=b.1m.L();b.1m=o;g(b.2H){8.1Z(b)}}}},4Y:k(P){c b=8.1i(P);g(b.l("4Z")){p}8.2t=H;b.1U=b.2a=b.1V=b.1m=o;8.4h(b,"")},4h:k(P,2u){c b=8.1i(P);2u=(2u!=o?2u:b.3t());g(b.1m){2u=b.3t(b.1m)+b.l("57")+2u}g(b.G){b.G.4a(2u)}c 2v=b.l("2v");g(2v){2v.2f((b.G?b.G[0]:o),[2u,b])}N{g(b.G){b.G.1B("6s")}}g(b.2H){8.1Z(b)}N{g(!8.2t){8.2p(o,b.l("1t"));8.3i=b.G[0];g(1S(b.G[0])!="4C"){b.G[0].2s()}8.3i=o}}},7u:k(h){c A=h.31();p[(A>0&&A<6),""]},3z:k(h){c 1s=t z(h.L(),h.16(),h.S(),(h.7t()/-60));c 3h=t z(1s.L(),1-1,4);c 1p=3h.31()||7;3h.2Z(3h.S()+1-1p);g(1p<4&&1s<3h){1s.2Z(1s.S()-3);p $.f.3z(1s)}N{g(1s>t z(1s.L(),12-1,28)){1p=t z(1s.L()+1,1-1,4).31()||7;g(1p>4&&(1s.31()||7)<1p-3){1s.2Z(1s.S()+3);p $.f.3z(1s)}}}p 1N.7s(((1s-3h)/7r)/7)+1},2L:k(h,b){p $.f.4B(b.l("2L"),h,b.3V())},56:k(V,v,x){g(V==o||v==o){3H"6q 4z"}v=(1S v=="4C"?v.7q():v+"");g(v==""){p o}c 1x=(x?x.1x:o)||8.1q.1x;c 1l=(x?x.1l:o)||8.1q.1l;c 1g=(x?x.1g:o)||8.1q.1g;c 1M=(x?x.1M:o)||8.1q.1M;c 1f=(x?x.1f:o)||8.1q.1f;c u=-1;c B=-1;c A=-1;c 1z=H;c 1A=k(1r){c 1y=(Q+1<V.18&&V.15(Q+1)==1r);g(1y){Q++}p 1y};c 4f=k(1r){1A(1r);c 1Y=(1r=="y"?4:2);c 4g=0;49(1Y>0&&1G<v.18&&v.15(1G)>="0"&&v.15(1G)<="9"){4g=4g*10+(v.15(1G++)-0);1Y--}g(1Y==(1r=="y"?4:2)){3H"7p 4G 5c 1P "+1G}p 4g};c 5b=k(1r,4c,4d){c 3I=(1A(1r)?4d:4c);c 1Y=0;1e(c j=0;j<3I.18;j++){1Y=1N.2g(1Y,3I[j].18)}c 19="";c 6r=1G;49(1Y>0&&1G<v.18){19+=v.15(1G++);1e(c i=0;i<3I.18;i++){g(19==3I[i]){p i+1}}1Y--}3H"7o 19 5c 1P "+6r};c 4e=k(){g(v.15(1G)!=V.15(Q)){3H"7n 1z 5c 1P "+1G}1G++};c 1G=0;1e(c Q=0;Q<V.18;Q++){g(1z){g(V.15(Q)=="\'"&&!1A("\'")){1z=H}N{4e()}}N{3E(V.15(Q)){F"d":A=4f("d");J;F"D":5b("D",1l,1g);J;F"m":B=4f("m");J;F"M":B=5b("M",1M,1f);J;F"y":u=4f("y");J;F"\'":g(1A("\'")){4e()}N{1z=1b}J;4b:4e()}}}g(u<2F){u+=t z().L()-t z().L()%2F+(u<=1x?0:-2F)}c h=t z(u,B-1,A);g(h.L()!=u||h.16()+1!=B||h.S()!=A){3H"6q h"}p h},4B:k(V,h,x){g(!h){p""}c 1l=(x?x.1l:o)||8.1q.1l;c 1g=(x?x.1g:o)||8.1q.1g;c 1M=(x?x.1M:o)||8.1q.1M;c 1f=(x?x.1f:o)||8.1q.1f;c 1A=k(1r){c 1y=(Q+1<V.18&&V.15(Q+1)==1r);g(1y){Q++}p 1y};c 5a=k(1r,v){p(1A(1r)&&v<10?"0":"")+v};c 59=k(1r,v,4c,4d){p(1A(1r)?4d[v]:4c[v])};c 1X="";c 1z=H;g(h){1e(c Q=0;Q<V.18;Q++){g(1z){g(V.15(Q)=="\'"&&!1A("\'")){1z=H}N{1X+=V.15(Q)}}N{3E(V.15(Q)){F"d":1X+=5a("d",h.S());J;F"D":1X+=59("D",h.31(),1l,1g);J;F"m":1X+=5a("m",h.16()+1);J;F"M":1X+=59("M",h.16(),1M,1f);J;F"y":1X+=(1A("y")?h.L():(h.6p()%2F<10?"0":"")+h.6p()%2F);J;F"\'":g(1A("\'")){1X+="\'"}N{1z=1b}J;4b:1X+=V.15(Q)}}}}p 1X},6o:k(V){c 2b="";c 1z=H;1e(c Q=0;Q<V.18;Q++){g(1z){g(V.15(Q)=="\'"&&!1A("\'")){1z=H}N{2b+=V.15(Q)}}N{3E(V.15(Q)){F"d"||"m"||"y":2b+="7m";J;F"D"||"M":p o;F"\'":g(1A("\'")){2b+="\'"}N{1z=1b}J;4b:2b+=V.15(Q)}}}p 2b}});k 3F(x,3G){8.Z=$.f.6n(8);8.1w=0;8.1D=0;8.1L=0;8.2i=0;8.2h=0;8.G=o;8.2H=3G;8.C=(!3G?$.f.C:$(\'<E P="n-f-E-\'+8.Z+\'" T="n-f-3G">\'));8.1O=2X(x||{});g(3G){8.52(8.54())}}$.3s(3F.4A,{l:k(19){p 8.1O[19]!==6m?8.1O[19]:$.f.1q[19]},58:k(r){8.G=$(r);c 2D=8.l("2D");c 2r=8.G?8.G.4a().5M(8.l("57")):o;8.1U=8.2a=8.1V=o;c h=2q=8.54();g(2r.18>0){c x=8.3V();g(2r.18>1){h=$.f.56(2D,2r[1],x)||2q;8.1U=h.S();8.2a=h.16();8.1V=h.L()}6l{h=$.f.56(2D,2r[0],x)||2q}6k(e){$.f.55(e);h=2q}}8.1w=h.S();8.2i=8.1D=h.16();8.2h=8.1L=h.L();8.1j=(2r[0]?h.S():0);8.1v=(2r[0]?h.16():0);8.1k=(2r[0]?h.L():0);8.1h()},54:k(){c h=8.4F("2q",t z());c I=8.21("22",1b);c O=8.21("2g");h=(I&&h<I?I:h);h=(O&&h>O?O:h);p h},4F:k(19,2q){c 6i=k(1a){c h=t z();h.2Z(h.S()+1a);p h};c 6j=k(1a,53){c h=t z();c 1y=/^([+-]?[0-9]+)\\s*(d|D|w|W|m|M|y|Y)?$/.7l(1a);g(1y){c u=h.L();c B=h.16();c A=h.S();3E(1y[2]||"d"){F"d":F"D":A+=(1y[1]-0);J;F"w":F"W":A+=(1y[1]*7);J;F"m":F"M":B+=(1y[1]-0);A=1N.22(A,53(u,B));J;F"y":F"Y":u+=(1y[1]-0);A=1N.22(A,53(u,B));J}h=t z(u,B,A)}p h};c h=8.l(19);p(h==o?2q:(1S h=="3r"?6j(h,8.3u):(1S h=="4G"?6i(h):h)))},52:k(h,26){8.1w=8.1j=h.S();8.2i=8.1D=8.1v=h.16();8.2h=8.1L=8.1k=h.L();g(8.l("1W")){g(26){8.1U=26.S();8.2a=26.16();8.1V=26.L()}N{8.1U=8.1j;8.2a=8.1v;8.1V=8.1k}}8.1h()},51:k(){c 50=(!8.1k||(8.G&&8.G.4a()=="")?o:t z(8.1k,8.1v,8.1j));g(8.l("1W")){p[50,(!8.1V?o:t z(8.1V,8.2a,8.1U))]}N{p 50}},6h:k(){c 2n=t z();2n=t z(2n.L(),2n.16(),2n.S());c 1c=8.l("1c");c 1F=8.l("1F");c 3b=(8.l("4Z")?"":\'<E T="n-f-3b"><a 24="17.f.4Y(\'+8.Z+\');"\'+(1c?8.23(8.l("6g")||"&#1n;"):"")+">"+8.l("6f")+"</a></E>");c 4O=\'<E T="n-f-7k">\'+(1F?"":3b)+\'<E T="n-f-7j"><a 24="17.f.2p();"\'+(1c?8.23(8.l("6e")||"&#1n;"):"")+">"+8.l("6d")+"</a></E>"+(1F?3b:"")+"</E>";c 2O=8.l("2O");c 3w=8.l("3w");c 3C=8.l("3C");c X=8.30();c 2P=8.l("2P");c 62=(X[0]!=1||X[1]!=1);c I=8.21("22",1b);c O=8.21("2g");c U=8.2i;c 14=8.2h;g(O){c 3D=t z(O.L(),O.16()-X[1]+1,O.S());3D=(I&&3D<I?I:3D);49(t z(14,U,1)>3D){U--;g(U<0){U=11;14--}}}c 47=\'<E T="n-f-47">\'+(8.4E(-1,14,U)?\'<a 24="17.f.1h(\'+8.Z+", -"+2P+", \'M\');\\""+(1c?8.23(8.l("6c")||"&#1n;"):"")+">"+8.l("4X")+"</a>":(3C?"":"<48>"+8.l("4X")+"</48>"))+"</E>";c 3B=\'<E T="n-f-3B">\'+(8.4E(+1,14,U)?\'<a 24="17.f.1h(\'+8.Z+", +"+2P+", \'M\');\\""+(1c?8.23(8.l("6b")||"&#1n;"):"")+">"+8.l("4W")+"</a>":(3C?">":"<48>"+8.l("4W")+"</48>"))+"</E>";c K=(2O?\'<E T="n-f-2O">\'+2O+"</E>":"")+(3w&&!8.2H?4O:"")+\'<E T="n-f-7i">\'+(1F?3B:47)+(8.4D(2n)?\'<E T="n-f-3e"><a 24="17.f.4V(\'+8.Z+\');"\'+(1c?8.23(8.l("6a")||"&#1n;"):"")+">"+8.l("69")+"</a></E>":"")+(1F?47:3B)+"</E>";c 3y=8.l("3y");1e(c 2M=0;2M<X[0];2M++){1e(c 3g=0;3g<X[1];3g++){c 3a=t z(14,U,8.1w);K+=\'<E T="n-f-7h-B\'+(3g==0?" n-f-t-2M":"")+\'">\'+8.5T(U,14,I,O,3a,2M>0||3g>0)+\'<5X T="n-f" 7g="0" 7f="0"><63><3Z T="n-f-45-2M">\'+(3y?"<1o>"+8.l("68")+"</1o>":"");c 1p=8.l("1p");c 3A=8.l("3A");c 1g=8.l("1g");c 1l=8.l("1l");c 44=8.l("44");1e(c 29=0;29<7;29++){c A=(29+1p)%7;c 1E=8.l("67")||"&#1n;";1E=(1E.66("46")>-1?1E.65(/46/,1g[A]):1E.65(/D/,1l[A]));K+="<1o"+((29+1p+6)%7>=5?\' T="n-f-42-3f-2J"\':"")+">"+(!3A?"<2N":\'<a 24="17.f.64(\'+8.Z+", "+A+\');"\')+(1c?8.23(1E):"")+\' 45="\'+1g[A]+\'">\'+44[A]+(3A?"</a>":"</2N>")+"</1o>"}K+="</3Z></63><5Y>";c 4T=8.3u(14,U);g(14==8.1L&&U==8.1D){8.1w=1N.22(8.1w,4T)}c 4U=(8.5E(14,U)-1p+7)%7;c 4Q=(!8.1j?t z(7e,9,9):t z(8.1k,8.1v,8.1j));c 26=8.1U?t z(8.1V,8.2a,8.1U):4Q;c 1d=t z(14,U,1-4U);c 5Z=(62?6:1N.7d((4U+4T)/7));c 3x=8.l("3x");c 2I=8.l("2I");c 43=8.l("43")||$.f.3z;c 2L=8.l("61")||$.f.2L;1e(c 4S=0;4S<5Z;4S++){K+=\'<3Z T="n-f-3d-2M">\'+(3y?\'<1o T="n-f-42-3g">\'+43(1d)+"</1o>":"");1e(c 29=0;29<7;29++){c 4R=(3x?3x.2f((8.G?8.G[0]:o),[1d]):[1b,""]);c 2m=(1d.16()!=U);c 3c=2m||!4R[0]||(I&&1d<I)||(O&&1d>O);K+=\'<1o T="n-f-3d-2J\'+((29+1p+6)%7>=5?" n-f-42-3f-2J":"")+(2m?" n-f-2m":"")+(1d.2o()==3a.2o()&&U==8.1D?" n-f-3d-2J-41":"")+(3c?" n-f-3c":"")+(2m&&!2I?"":" "+4R[1]+(1d.2o()>=4Q.2o()&&1d.2o()<=26.2o()?" n-f-3e-A":"")+(1d.2o()==2n.2o()?" n-f-2n":""))+\'"\'+(3c?"":" 5J=\\"17(8).25(\'n-f-3d-2J-41\');"+(!1c||(2m&&!2I)?"":"17(\'#n-f-1E-"+8.Z+"\').K(\'"+(2L.2f((8.G?8.G[0]:o),[1d,8])||"&#1n;")+"\');")+"\\" 5I=\\"17(8).2K(\'n-f-3d-2J-41\');"+(!1c||(2m&&!2I)?"":"17(\'#n-f-1E-"+8.Z+"\').K(\'&#1n;\');")+\'" 24="17.f.4P(\'+8.Z+","+U+","+14+\', 8);"\')+">"+(2m?(2I?1d.S():"&#1n;"):(3c?1d.S():"<a>"+1d.S()+"</a>"))+"</1o>";1d.2Z(1d.S()+1)}K+="</3Z>"}U++;g(U>11){U=0;14++}K+="</5Y></5X></E>"}}K+=(1c?\'<E 4N="3b: 3Y;"></E><E P="n-f-1E-\'+8.Z+\'" T="n-f-1E">\'+(8.l("5W")||"&#1n;")+"</E>":"")+(!3w&&!8.2H?4O:"")+\'<E 4N="3b: 3Y;"></E>\'+($.1T.3v&&2E($.1T.5V)<7&&!8.2H?\'<4L 4M="7c:H;" T="n-f-5U"></4L>\':"");p K},5T:k(U,14,I,O,3a,4K){I=(8.1m&&I&&3a<I?3a:I);c 1c=8.l("1c");c K=\'<E T="n-f-7b">\';c 1f=8.l("1f");g(4K||!8.l("5S")){K+=1f[U]+"&#1n;"}N{c 5Q=(I&&I.L()==14);c 5P=(O&&O.L()==14);K+=\'<2G T="n-f-t-B" 5L="17.f.4J(\'+8.Z+", 8, \'M\');\\" 24=\\"17.f.4I("+8.Z+\');"\'+(1c?8.23(8.l("5R")||"&#1n;"):"")+">";1e(c B=0;B<12;B++){g((!5Q||B>=I.16())&&(!5P||B<=O.16())){K+=\'<3W v="\'+B+\'"\'+(B==U?\' 3X="3X"\':"")+">"+1f[B]+"</3W>"}}K+="</2G>"}g(4K||!8.l("5O")){K+=14}N{c 2l=8.l("5N").5M(":");c u=0;c 2k=0;g(2l.18!=2){u=14-10;2k=14+10}N{g(2l[0].15(0)=="+"||2l[0].15(0)=="-"){u=t z().L()+2E(2l[0],10);2k=t z().L()+2E(2l[1],10)}N{u=2E(2l[0],10);2k=2E(2l[1],10)}}u=(I?1N.2g(u,I.L()):u);2k=(O?1N.22(2k,O.L()):2k);K+=\'<2G T="n-f-t-u" 5L="17.f.4J(\'+8.Z+", 8, \'Y\');\\" 24=\\"17.f.4I("+8.Z+\');"\'+(1c?8.23(8.l("5K")||"&#1n;"):"")+">";1e(;u<=2k;u++){K+=\'<3W v="\'+u+\'"\'+(u==14?\' 3X="3X"\':"")+">"+u+"</3W>"}K+="</2G>"}K+="</E>";p K},23:k(4H){p" 5J=\\"17(\'#n-f-1E-"+8.Z+"\').K(\'"+4H+"\');\\" 5I=\\"17(\'#n-f-1E-"+8.Z+"\').K(\'&#1n;\');\\""},1h:k(1a,2j){c u=8.2h+(2j=="Y"?1a:0);c B=8.2i+(2j=="M"?1a:0);c A=1N.22(8.1w,8.3u(u,B))+(2j=="D"?1a:0);c h=t z(u,B,A);c I=8.21("22",1b);c O=8.21("2g");h=(I&&h<I?I:h);h=(O&&h>O?O:h);8.1w=h.S();8.2i=8.1D=h.16();8.2h=8.1L=h.L()},30:k(){c X=8.l("5H");p(X==o?[1,1]:(1S X=="4G"?[1,X]:X))},21:k(5G,5F){c h=8.4F(5G+"z",o);g(h){h.7a(0);h.79(0);h.78(0);h.77(0)}p h||(5F?8.1m:o)},3u:k(u,B){p 32-t z(u,B,32).S()},5E:k(u,B){p t z(u,B,1).31()},4E:k(1a,5D,5C){c X=8.30();c h=t z(5D,5C+(1a<0?1a:X[1]),1);g(1a<0){h.2Z(8.3u(h.L(),h.16()))}p 8.4D(h)},4D:k(h){c 2Y=(!8.1m?o:t z(8.1L,8.1D,8.1w));2Y=(2Y&&8.1m<2Y?8.1m:2Y);c I=2Y||8.21("22");c O=8.21("2g");p((!I||h>=I)&&(!O||h<=O))},3V:k(){c 1x=8.l("1x");1x=(1S 1x!="3r"?1x:t z().L()%2F+2E(1x,10));p{1x:1x,1l:8.l("1l"),1g:8.l("1g"),1M:8.l("1M"),1f:8.l("1f")}},3t:k(A,B,u){g(!A){8.1j=8.1w;8.1v=8.1D;8.1k=8.1L}c h=(A?(1S A=="4C"?A:t z(u,B,A)):t z(8.1k,8.1v,8.1j));p $.f.4B(8.l("2D"),h,8.3V())}});k 2X(q,3U){$.3s(q,3U);1e(c 19 5B 3U){g(3U[19]==o){q[19]=o}}p q}$.76.f=k(20){c 4y=75.4A.74.73(4z,1);g(1S 20=="3r"&&(20=="72"||20=="S")){p $.f["5A"+20+"3q"].2f($.f,[8[0]].5z(4y))}p 8.3T(k(){1S 20=="3r"?$.f["5A"+20+"3q"].2f($.f,[8].5z(4y)):$.f.5y(8,20)})};$.f=t 3q();$(R).71(k(){$(R.1K).2e($.f.C).70($.f.5x)})})(17)',62,561,'||||||||this|||inst|var|||datepicker|if|date|||function|_get||ui|null|return|target|input||new|year|value||settings||Date|day|month|_datepickerDiv||div|case|_input|false|minDate|break|html|getFullYear||else|maxDate|id|iFormat|document|getDate|class|drawMonth|format||numMonths||_id|||||drawYear|charAt|getMonth|jQuery|length|name|offset|true|showStatus|printDate|for|monthNames|dayNames|_adjustDate|_getInst|_currentDay|_currentYear|dayNamesShort|_rangeStart|xa0|td|firstDay|_defaults|match|checkDate|speed|documentElement|_currentMonth|_selectedDay|shortYearCutoff|matches|literal|lookAhead|trigger|_pos|_selectedMonth|status|isRTL|iValue|css|_calId|ctrlKey|body|_selectedYear|monthNamesShort|Math|_settings|position|isFixed|nodeName|typeof|browser|_endDay|_endYear|rangeSelect|output|size|_updateDatepicker|options|_getMinMaxDate|min|_addStatus|onclick|addClass|endDate|||dow|_endMonth|chars|pos|_disabledInputs|append|apply|max|_drawYear|_drawMonth|period|endYear|years|otherMonth|today|getTime|_hideDatepicker|defaultDate|dates|focus|_stayOpen|dateStr|onSelect|_inDialog|_dialogInput|showAnim|width|key|buttonText|inlineSettings|dateFormat|parseInt|100|select|_inline|showOtherMonths|cell|removeClass|dateStatus|row|span|prompt|stepMonths|_datepickerShowing|top|obj|scrollTop|scrollLeft|markerClassName|showOn|extendRemove|newMinDate|setDate|_getNumberOfMonths|getDay|||||||||selectedDate|clear|unselectable|days|current|end|col|firstMon|_lastInput|event|left|px|_showDatepicker|buttonImage|appendText|siblings|Datepicker|string|extend|_formatDate|_getDaysInMonth|msie|closeAtTop|beforeShowDay|showWeeks|iso8601Week|changeFirstDay|next|hideIfNoPrevNext|maxDraw|switch|DatepickerInstance|inline|throw|names|blockUI|_curInst|onClose|type|scrollY|scrollX|beforeShow|button|the|Show|each|props|_getFormatConfig|option|selected|both|tr||over|week|calculateWeek|dayNamesMin|title|DD|prev|label|while|val|default|shortNames|longNames|checkLiteral|getNumber|num|_selectDate|_selectingMonthYear|unbind|height|browserHeight|browserWidth|clientHeight|window|clientWidth|_doKeyDown|bind|img|disabled|_inst|wrapper|attrValue|attrName|otherArgs|arguments|prototype|formatDate|object|_isInRange|_canAdjustMonth|_determineDate|number|text|_clickMonthYear|_selectMonthYear|secondary|iframe|src|style|controls|_selectDay|currentDate|daySettings|dRow|daysInMonth|leadDays|_gotoToday|nextText|prevText|_clearDate|mandatory|startDate|_getDate|_setDate|getDaysInMonth|_getDefaultDate|log|parseDate|rangeSeparator|_setDateFromField|formatName|formatNumber|getName|at|is|parents|_tidyDialog|absolute|hidden|_findPos|opera|fixed|postProcess|toLowerCase|keydown|_doKeyPress|attr|wrap|chr|keyCode|calId|replaceWith|instSettings|regional|_checkExternalClick|_attachDatepicker|concat|_|in|curMonth|curYear|_getFirstDayOfMonth|checkRange|minMax|numberOfMonths|onmouseout|onmouseover|yearStatus|onchange|split|yearRange|changeYear|inMaxYear|inMinYear|monthStatus|changeMonth|_generateMonthYearHeader|cover|version|initStatus|table|tbody|numRows||statusForDate|isMultiMonth|thead|_changeFirstDay|replace|indexOf|dayStatus|weekHeader|currentText|currentStatus|nextStatus|prevStatus|closeText|closeStatus|clearText|clearStatus|_generateDatepicker|offsetNumeric|offsetString|catch|try|undefined|_register|_possibleChars|getYear|Invalid|iInit|change|hasClass|hasDatepicker|dialog|100px|innerHeight|innerWidth|_afterShow|rtl|multi|empty|show|_isDisabledDatepicker|dateText|_dialogInst|getData|setData|_inlineDatepicker|keypress|after|before|alt|buttonImageOnly|_connectDatepicker|charCode|map|cursor|opacity|_nextId|debug|Select|different|May|Close|mousedown|ready|isDisabled|call|slice|Array|fn|setMilliseconds|setSeconds|setMinutes|setHours|header|javascript|ceil|9999|cellspacing|cellpadding|one|links|close|control|exec|0123456789|Unexpected|Unknown|Missing|toString|86400000|floor|getTimezoneOffset|noWeekends|selectedIndex|remove|unblockUI|hide|fadeOut|fadeIn|slideUp|slideDown|nextSibling|nodeType|offsetWidth|static|offsetHeight|parentNode|150|pageY|pageX|_dialogDatepicker|_inlineShow|click|fromCharCode|String|_getDateDatepicker|_setDateDatepicker|_changeDatepicker|_disableDatepicker|_enableDatepicker|_destroyDatepicker|err|eval|getAttribute|setDefaults|console|normal|yy|dd|mm|first|as|Set|Sa|Fr|Th|We|Tu|Mo|Su|Sat|Fri|Thu|Wed|Tue|Mon|Sun|Saturday|Friday|Thursday|Wednesday|Tuesday|Monday|Sunday|of|Week|weekStatus|Wk|Dec|Nov|Oct|Sep|Aug|Jul|Jun|Apr|Mar|Feb|Jan|December|November|October|September|August|July|June|April|March|February|January|Today|x3e|Next|previous|Prev|x3c|without|Erase|Clear'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/ui.dialog.packed.js b/javascript/libs/jquery/packed/ui/ui.dialog.packed.js
new file mode 100644
index 0000000..ec95ed3
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/ui.dialog.packed.js
@@ -0,0 +1,2 @@
+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}('(5(B){9 A={1L:"1o.m",1c:"1c.m",1K:"1n.m",1p:"1p.g",17:"17.g",1q:"1q.g",16:"16.g",2l:"1o.g",p:"1c.g",1J:"1n.g"};B.2d("6.4",{39:5(){9 K=3,L=3.i,D=2k L.g=="2j"?L.g:"n,e,s,w,38,37,36,35",E=3.18.Q("6-4-1A").2o("<12/>").2o("<12/>"),H=E.2m().Q("6-4-34").j({q:"33"}),I=L.1b||E.1N("1b")||"",C=(3.2f=B(\'<12 1r="6-4-V"/>\')).2n(\'<1s 1r="6-4-1b">\'+I+"</1s>").2n(\'<a 32="#" 1r="6-4-V-r"><1s>X</1s></a>\').31(H),J=(3.b=H.2m()).T(h.t).1k().Q("6-4").Q(L.30).Q(E.1N("2Z")).1B("6-4-1A").j({q:"20",d:L.d,c:L.c,2Y:"2X",14:L.14}).1N("2W",-1).j("2V",0).1v(5(M){f(L.25){9 N=27;(M.1i&&M.1i==N&&K.r())}}).1x(5(){K.1l()});3.29=B(".6-4-V-r",C).1M(5(){B(3).Q("6-4-V-r-1M")},5(){B(3).1B("6-4-V-r-1M")}).1x(5(M){M.2U()}).1w(5(){K.r();k 13});9 G=13;B.W(L.1z,5(){k!(G=u)});f(G){9 F=B(\'<12 1r="6-4-2T"/>\').T(J);B.W(L.1z,5(M,N){B("<2S/>").2e(M).1w(5(){N.1a(K.18[0],19)}).T(F)})}f(B.1h.m){J.m({2R:".6-4-V",1o:5(N,M){K.1l();(L.1L&&L.1L.1a(3,19))},1c:L.1c,1n:5(N,M){(L.1K&&L.1K.1a(3,19));B.6.4.8.p()}});(L.m||J.m("1m"))}f(B.1h.g){J.g({1q:L.1q,1p:L.1p,16:L.16,17:L.17,1o:L.2l,p:L.p,2h:D,1n:5(N,M){(L.1J&&L.1J.1a(3,19));B.6.4.8.p()}});(L.g||J.g("1m"))}(L.P&&B.1h.P&&J.P());(L.26&&3.1D())},2c:5(C,D){(A[C]&&3.b.2i(A[C],D));1G(C){l"m":3.b.m(D?"2g":"1m");o;l"c":3.b.c(D);o;l"q":3.q(D);o;l"g":(2k D=="2j"&&3.b.2i("2h.g",D));3.b.g(D?"2g":"1m");o;l"1b":B(".6-4-1b",3.2f).2e(D);o;l"d":3.b.d(D);o}B.2d.1O.2c.1a(3,19)},q:5(H){9 D=B(Y),E=B(h),F=E.2Q(),C=E.2P(),G=F;f(B.1Z(H,["15","11","1I","1F","Z"])>=0){H=[H=="1I"||H=="Z"?H:"15",H=="11"||H=="1F"?H:"1E"]}f(H.1H!=2O){H=["15","1E"]}f(H[0].1H==2b){C+=H[0]}x{1G(H[0]){l"Z":C+=0;o;l"1I":C+=D.d()-3.b.d();o;2a:l"15":C+=(D.d()-3.b.d())/2}}f(H[1].1H==2b){F+=H[1]}x{1G(H[1]){l"11":F+=0;o;l"1F":F+=D.c()-3.b.c();o;2a:l"1E":F+=(D.c()-3.b.c())/2}}F=O.y(F,G);3.b.j({11:F,Z:C})},1D:5(){3.8=3.i.1y?2N B.6.4.8(3):1C;3.b.T("t");3.q(3.i.q);3.b.2M();3.1l(u);9 C=1C;9 D={i:3.i};3.29.23();3.18.28("2L",[C,D],3.i.1D)},1l:5(E){f((3.i.1y&&!E)||!3.i.24){k}9 D=3.i.14,C=3.i;B(".6-4:2K").W(5(){D=O.y(D,1j(B(3).j("z-U"),10)||C.14)});(3.8&&3.8.$1t.j("z-U",++D));3.b.j("z-U",++D)},r:5(){(3.8&&3.8.R());3.b.1k();9 D=1C;9 C={i:3.i};3.18.28("2J",[D,C],3.i.r);B.6.4.8.p()},R:5(){(3.8&&3.8.R());3.b.1k();3.18.1X(".4").2I("4").1B("6-4-1A").1k().T("t");3.b.1W()}});B.1d(B.6.4,{2H:{26:u,P:13,1z:{},25:u,m:u,c:2G,17:2F,16:2E,1y:13,8:{},q:"15",g:u,24:u,d:2D,14:2C},8:5(C){3.$1t=B.6.4.8.22(C)}});B.1d(B.6.4.8,{v:[],21:B.2B("23,1x,2A,1v,2z,1w".2y(","),5(C){k C+".4-8"}).2x(" "),22:5(D){f(3.v.1g===0){2w(5(){B("a, :1Y").1u(B.6.4.8.21,5(){9 F=13;9 H=B(3).2v(".6-4");f(H.1g){9 E=B(".6-4-8");f(E.1g){9 G=1j(E.j("z-U"),10);E.W(5(){G=O.y(G,1j(B(3).j("z-U"),10))});F=1j(H.j("z-U"),10)>G}x{F=u}}k F})},1);B(h).1u("1v.4-8",5(E){9 F=27;(E.1i&&E.1i==F&&D.r())});B(Y).1u("p.4-8",B.6.4.8.p)}9 C=B("<12/>").T(h.t).Q("6-4-8").j(B.1d({2u:0,2t:0,2s:0,q:"20",11:0,Z:0,d:3.d(),c:3.c()},D.i.8));(D.i.P&&B.1h.P&&C.P());3.v.2r(C);k C},R:5(C){3.v.2q(B.1Z(3.v,C),1);f(3.v.1g===0){B("a, :1Y").1P([h,Y]).1X(".4-8")}C.1W()},c:5(){f(B.1f.1T&&B.1f.1S<7){9 D=O.y(h.1e.1V,h.t.1V);9 C=O.y(h.1e.1U,h.t.1U);f(D<C){k B(Y).c()+"S"}x{k D+"S"}}x{k B(h).c()+"S"}},d:5(){f(B.1f.1T&&B.1f.1S<7){9 C=O.y(h.1e.1R,h.t.1R);9 D=O.y(h.1e.1Q,h.t.1Q);f(C<D){k B(Y).d()+"S"}x{k C+"S"}}x{k B(h).d()+"S"}},p:5(){9 C=B([]);B.W(B.6.4.8.v,5(){C=C.1P(3)});C.j({d:0,c:0}).j({d:B.6.4.8.d(),c:B.6.4.8.c()})}});B.1d(B.6.4.8.1O,{R:5(){B.6.4.8.R(3.$1t)}})})(2p)',62,196,'|||this|dialog|function|ui||overlay|var||uiDialog|height|width||if|resizable|document|options|css|return|case|draggable||break|resize|position|close||body|true|instances||else|max||||||||||||||||Math|bgiframe|addClass|destroy|px|appendTo|index|titlebar|each||window|left||top|div|false|zIndex|center|minWidth|minHeight|element|arguments|apply|title|drag|extend|documentElement|browser|length|fn|keyCode|parseInt|hide|moveToTop|disable|stop|start|maxHeight|maxWidth|class|span|el|bind|keydown|click|mousedown|modal|buttons|content|removeClass|null|open|middle|bottom|switch|constructor|right|resizeStop|dragStop|dragStart|hover|attr|prototype|add|offsetWidth|scrollWidth|version|msie|offsetHeight|scrollHeight|remove|unbind|input|inArray|absolute|events|create|focus|stack|closeOnEscape|autoOpen||triggerHandler|uiDialogTitlebarClose|default|Number|setData|widget|text|uiDialogTitlebar|enable|handles|data|string|typeof|resizeStart|parent|append|wrap|jQuery|splice|push|padding|margin|borderWidth|parents|setTimeout|join|split|keypress|mouseup|map|1000|300|150|100|200|defaults|removeData|dialogclose|visible|dialogopen|show|new|Array|scrollLeft|scrollTop|handle|button|buttonpane|stopPropagation|outline|tabIndex|hidden|overflow|className|dialogClass|prependTo|href|relative|container|nw|ne|sw|se|init'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/ui.draggable.packed.js b/javascript/libs/jquery/packed/ui/ui.draggable.packed.js
new file mode 100644
index 0000000..50bb392
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/ui.draggable.packed.js
@@ -0,0 +1,2 @@
+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}('(b(A){A.3x("g.i",A.1T(A.g.3w,{3v:b(){a B=4.9;7(B.d=="27"&&!(/(l|13|14)/).1i(4.j.e("m"))){4.j.e("m","l")}4.j.2b("g-i");(B.2e&&4.j.2b("g-i-2e"));4.3u()},2f:b(F){a H=4.9;7(4.d||H.2e||A(F.1Q).3t(".g-3s-1L")){o 18}a C=!4.9.1L||!A(4.9.1L,4.j).1A?t:18;A(4.9.1L,4.j).3r("*").3q().1b(b(){7(4==F.1Q){C=t}});7(!C){o 18}7(A.g.1e){A.g.1e.3p=4}4.d=A.3o(H.d)?A(H.d.3n(4.j[0],[F])):(H.d=="1S"?4.j.1S():4.j);7(!4.d.3m("12").1A){4.d.1n((H.1n=="k"?4.j[0].1s:H.1n))}7(4.d[0]!=4.j[0]&&!(/(14|13)/).1i(4.d.e("m"))){4.d.e("m","13")}4.S={6:(p(4.j.e("3l"),10)||0),5:(p(4.j.e("3k"),10)||0)};4.z=4.d.e("m");4.8=4.j.8();4.8={5:4.8.5-4.S.5,6:4.8.6-4.S.6};4.8.q={6:F.1p-4.8.6,5:F.1r-4.8.5};4.n=4.d.n();a B=4.n.8();7(4.n[0]==f.12&&A.3j.3i){B={5:0,6:0}}4.8.k={5:B.5+(p(4.n.e("2c"),10)||0),6:B.6+(p(4.n.e("2d"),10)||0)};a E=4.j.m();4.8.l=4.z=="l"?{5:E.5-(p(4.d.e("5"),10)||0)+4.n[0].s,6:E.6-(p(4.d.e("6"),10)||0)+4.n[0].r}:{5:0,6:0};4.1k=4.2a(F);4.w={v:4.d.1W(),u:4.d.1V()};7(H.1a){7(H.1a.6!=1K){4.8.q.6=H.1a.6+4.S.6}7(H.1a.2y!=1K){4.8.q.6=4.w.v-H.1a.2y+4.S.6}7(H.1a.5!=1K){4.8.q.5=H.1a.5+4.S.5}7(H.1a.2x!=1K){4.8.q.5=4.w.u-H.1a.2x+4.S.5}}7(H.h){7(H.h=="k"){H.h=4.d[0].1s}7(H.h=="f"||H.h=="1q"){4.h=[0-4.8.l.6-4.8.k.6,0-4.8.l.5-4.8.k.5,A(H.h=="f"?f:1q).v()-4.8.l.6-4.8.k.6-4.w.v-4.S.6-(p(4.j.e("2w"),10)||0),(A(H.h=="f"?f:1q).u()||f.12.1s.2u)-4.8.l.5-4.8.k.5-4.w.u-4.S.5-(p(4.j.e("2t"),10)||0)]}7(!(/^(f|1q|k)$/).1i(H.h)){a D=A(H.h)[0];a G=A(H.h).8();4.h=[G.6+(p(A(D).e("2d"),10)||0)-4.8.l.6-4.8.k.6,G.5+(p(A(D).e("2c"),10)||0)-4.8.l.5-4.8.k.5,G.6+T.2v(D.3h,D.1Z)-(p(A(D).e("2d"),10)||0)-4.8.l.6-4.8.k.6-4.w.v-4.S.6-(p(4.j.e("2w"),10)||0),G.5+T.2v(D.2u,D.22)-(p(A(D).e("2c"),10)||0)-4.8.l.5-4.8.k.5-4.w.u-4.S.5-(p(4.j.e("2t"),10)||0)]}}4.17("15",F);4.w={v:4.d.1W(),u:4.d.1V()};7(A.g.1e&&!H.2r){A.g.1e.3g(4,F)}4.d.2b("g-i-2q");4.1P(F);o t},Y:b(C,D){7(!D){D=4.m}a B=C=="13"?1:-1;o{5:(D.5+4.8.l.5*B+4.8.k.5*B-(4.z=="14"||(4.z=="13"&&4.n[0]==f.12)?0:4.n[0].s)*B+(4.z=="14"?4.n[0].s:0)*B+4.S.5*B),6:(D.6+4.8.l.6*B+4.8.k.6*B-(4.z=="14"||(4.z=="13"&&4.n[0]==f.12)?0:4.n[0].r)*B+(4.z=="14"?4.n[0].r:0)*B+4.S.6*B)}},2a:b(E){a F=4.9;a B={5:(E.1r-4.8.q.5-4.8.l.5-4.8.k.5+(4.z=="14"||(4.z=="13"&&4.n[0]==f.12)?0:4.n[0].s)-(4.z=="14"?4.n[0].s:0)),6:(E.1p-4.8.q.6-4.8.l.6-4.8.k.6+(4.z=="14"||(4.z=="13"&&4.n[0]==f.12)?0:4.n[0].r)-(4.z=="14"?4.n[0].r:0))};7(!4.1k){o B}7(4.h){7(B.6<4.h[0]){B.6=4.h[0]}7(B.5<4.h[1]){B.5=4.h[1]}7(B.6>4.h[2]){B.6=4.h[2]}7(B.5>4.h[3]){B.5=4.h[3]}}7(F.19){a D=4.1k.5+T.2s((B.5-4.1k.5)/F.19[1])*F.19[1];B.5=4.h?(!(D<4.h[1]||D>4.h[3])?D:(!(D<4.h[1])?D-F.19[1]:D+F.19[1])):D;a C=4.1k.6+T.2s((B.6-4.1k.6)/F.19[0])*F.19[0];B.6=4.h?(!(C<4.h[0]||C>4.h[2])?C:(!(C<4.h[0])?C-F.19[0]:C+F.19[0])):C}o B},1P:b(B){4.m=4.2a(B);4.1o=4.Y("13");4.m=4.17("1f",B)||4.m;7(!4.9.1z||4.9.1z!="y"){4.d[0].1u.6=4.m.6+"1I"}7(!4.9.1z||4.9.1z!="x"){4.d[0].1u.5=4.m.5+"1I"}7(A.g.1e){A.g.1e.1f(4,B)}o 18},1O:b(C){7(A.g.1e&&!4.9.2r){A.g.1e.3f(4,C)}7(4.9.1v){a B=4;A(4.d).3e(4.1k,p(4.9.1v,10)||3d,b(){B.17("1g",C);B.29()})}1x{4.17("1g",C);4.29()}o 18},29:b(){4.d.2p("g-i-2q");7(4.9.d!="27"&&!4.1w){4.d.1M()}4.d=3c;4.1w=18},3b:{},28:b(B){o{d:4.d,m:4.m,1U:4.1o,9:4.9}},17:b(C,B){A.g.16.2h(4,C,[B,4.28()]);o 4.j.2i(C=="1f"?C:"1f"+C,[B,4.28()],4.9[C])},3a:b(){7(!4.j.V("i")){o}4.j.39("i").38(".i").2p("g-i");4.37()}}));A.1T(A.g.i,{36:{1n:"k",1z:18,35:":34,33",32:0,31:0,d:"27"}});A.g.16.1c("i","1t",{15:b(D,C){a B=A("12");7(B.e("1t")){C.9.26=B.e("1t")}B.e("1t",C.9.1t)},1g:b(C,B){7(B.9.26){A("12").e("1t",B.9.26)}}});A.g.16.1c("i","U",{15:b(D,C){a B=A(C.d);7(B.e("U")){C.9.25=B.e("U")}B.e("U",C.9.U)},1g:b(C,B){7(B.9.25){A(B.d).e("U",B.9.25)}}});A.g.16.1c("i","1j",{15:b(D,C){a B=A(C.d);7(B.e("1j")){C.9.24=B.e("1j")}B.e("1j",C.9.1j)},1g:b(C,B){7(B.9.24){A(B.d).e("1j",B.9.24)}}});A.g.16.1c("i","1J",{15:b(C,B){A(B.9.1J===t?"30":B.9.1J).1b(b(){A(\'<23 2Z="g-i-1J" 1u="2Y: #2X;"></23>\').e({v:4.1Z+"1I",u:4.22+"1I",m:"13",1j:"0.2W",U:2V}).e(A(4).8()).1n("12")})},1g:b(C,B){A("23.2U").1b(b(){4.1s.2T(4)})}});A.g.16.1c("i","1y",{15:b(D,C){a E=C.9;a B=A(4).V("i");E.11=E.11||20;E.Z=E.Z||20;B.X=b(F){2o{7(/1H|1y/.1i(F.e("1G"))||(/1H|1y/).1i(F.e("1G-y"))){o F}F=F.k()}2n(F[0].1s);o A(f)}(4);B.W=b(F){2o{7(/1H|1y/.1i(F.e("1G"))||(/1H|1y/).1i(F.e("1G-x"))){o F}F=F.k()}2n(F[0].1s);o A(f)}(4);7(B.X[0]!=f&&B.X[0].1F!="1E"){B.21=B.X.8()}7(B.W[0]!=f&&B.W[0].1F!="1E"){B.1Y=B.W.8()}},1f:b(D,C){a E=C.9;a B=A(4).V("i");7(B.X[0]!=f&&B.X[0].1F!="1E"){7((B.21.5+B.X[0].22)-D.1r<E.11){B.X[0].s=B.X[0].s+E.Z}7(D.1r-B.21.5<E.11){B.X[0].s=B.X[0].s-E.Z}}1x{7(D.1r-A(f).s()<E.11){A(f).s(A(f).s()-E.Z)}7(A(1q).u()-(D.1r-A(f).s())<E.11){A(f).s(A(f).s()+E.Z)}}7(B.W[0]!=f&&B.W[0].1F!="1E"){7((B.1Y.6+B.W[0].1Z)-D.1p<E.11){B.W[0].r=B.W[0].r+E.Z}7(D.1p-B.1Y.6<E.11){B.W[0].r=B.W[0].r-E.Z}}1x{7(D.1p-A(f).r()<E.11){A(f).r(A(f).r()-E.Z)}7(A(1q).v()-(D.1p-A(f).r())<E.11){A(f).r(A(f).r()+E.Z)}}}});A.g.16.1c("i","1X",{15:b(D,C){a B=A(4).V("i");B.1h=[];A(C.9.1X===t?".g-i":C.9.1X).1b(b(){a F=A(4);a E=F.8();7(4!=B.j[0]){B.1h.2k({2g:4,v:F.1W(),u:F.1V(),5:E.5,6:E.6})}})},1f:b(J,N){a I=A(4).V("i");a L=N.9.2S||20;a D=N.1U.6,C=D+I.w.v,P=N.1U.5,O=P+I.w.u;2R(a H=I.1h.1A-1;H>=0;H--){a E=I.1h[H].6,B=E+I.1h[H].v,R=I.1h[H].5,M=R+I.1h[H].u;7(!((E-L<D&&D<B+L&&R-L<P&&P<M+L)||(E-L<D&&D<B+L&&R-L<O&&O<M+L)||(E-L<C&&C<B+L&&R-L<P&&P<M+L)||(E-L<C&&C<B+L&&R-L<O&&O<M+L))){2Q}7(N.9.2m!="2P"){a K=T.1d(R-O)<=20;a Q=T.1d(M-P)<=20;a G=T.1d(E-C)<=20;a F=T.1d(B-D)<=20;7(K){N.m.5=I.Y("l",{5:R-I.w.u,6:0}).5}7(Q){N.m.5=I.Y("l",{5:M,6:0}).5}7(G){N.m.6=I.Y("l",{5:0,6:E-I.w.v}).6}7(F){N.m.6=I.Y("l",{5:0,6:B}).6}}7(N.9.2m!="2O"){a K=T.1d(R-P)<=20;a Q=T.1d(M-O)<=20;a G=T.1d(E-D)<=20;a F=T.1d(B-C)<=20;7(K){N.m.5=I.Y("l",{5:R,6:0}).5}7(Q){N.m.5=I.Y("l",{5:M-I.w.u,6:0}).5}7(G){N.m.6=I.Y("l",{5:0,6:E}).6}7(F){N.m.6=I.Y("l",{5:0,6:B-I.w.v}).6}}}}});A.g.16.1c("i","2l",{15:b(D,C){a B=A(4).V("i");B.1D=[];A(C.9.2l).1b(b(){7(A.V(4,"1R")){a E=A.V(4,"1R");B.1D.2k({c:E,2j:E.9.1v});E.2N();E.17("2M",D,B)}})},1g:b(D,C){a B=A(4).V("i");A.1b(B.1D,b(){7(4.c.1m){4.c.1m=0;B.1w=t;4.c.1w=18;7(4.2j){4.c.9.1v=t}4.c.1O(D);4.c.j.2i("2L",[D,A.1T(4.c.g(),{2K:B.j})],4.c.9["2J"]);4.c.9.d=4.c.9.1N}1x{4.c.17("2I",D,B)}})},1f:b(F,E){a D=A(4).V("i"),B=4;a C=b(K){a H=K.6,J=H+K.v,I=K.5,G=I+K.u;o(H<(4.1o.6+4.8.q.6)&&(4.1o.6+4.8.q.6)<J&&I<(4.1o.5+4.8.q.5)&&(4.1o.5+4.8.q.5)<G)};A.1b(D.1D,b(G){7(C.2h(D,4.c.2H)){7(!4.c.1m){4.c.1m=1;4.c.1C=A(B).1S().1n(4.c.j).V("1R-2g",t);4.c.9.1N=4.c.9.d;4.c.9.d=b(){o E.d[0]};F.1Q=4.c.1C[0];4.c.2G(F,t,t);4.c.2f(F,t,t);4.c.8.q.5=D.8.q.5;4.c.8.q.6=D.8.q.6;4.c.8.k.6-=D.8.k.6-4.c.8.k.6;4.c.8.k.5-=D.8.k.5-4.c.8.k.5;D.17("2F",F)}7(4.c.1C){4.c.1P(F)}}1x{7(4.c.1m){4.c.1m=0;4.c.1w=t;4.c.9.1v=18;4.c.1O(F,t);4.c.9.d=4.c.9.1N;4.c.1C.1M();4.c.2E.1M();D.17("2D",F)}}})}});A.g.16.1c("i","1l",{15:b(D,B){a C=A.2C(A(B.9.1l.2B)).2A(b(F,E){o(p(A(F).e("U"),10)||B.9.1l.1B)-(p(A(E).e("U"),10)||B.9.1l.1B)});A(C).1b(b(E){4.1u.U=B.9.1l.1B+E});4[0].1u.U=B.9.1l.1B+C.1A}})})(2z)',62,220,'||||this|top|left|if|offset|options|var|function|instance|helper|css|document|ui|containment|draggable|element|parent|relative|position|offsetParent|return|parseInt|click|scrollLeft|scrollTop|true|height|width|helperProportions|||cssPosition|||||||||||||||||||margins|Math|zIndex|data|overflowX|overflowY|convertPositionTo|scrollSpeed||scrollSensitivity|body|absolute|fixed|start|plugin|propagate|false|grid|cursorAt|each|add|abs|ddmanager|drag|stop|snapElements|test|opacity|originalPosition|stack|isOver|appendTo|positionAbs|pageX|window|pageY|parentNode|cursor|style|revert|cancelHelperRemoval|else|scroll|axis|length|min|currentItem|sortables|HTML|tagName|overflow|auto|px|iframeFix|undefined|handle|remove|_helper|mouseStop|mouseDrag|target|sortable|clone|extend|absolutePosition|outerHeight|outerWidth|snap|overflowXOffset|offsetWidth||overflowYOffset|offsetHeight|div|_opacity|_zIndex|_cursor|original|uiHash|clear|generatePosition|addClass|borderTopWidth|borderLeftWidth|disabled|mouseStart|item|call|triggerHandler|shouldRevert|push|connectToSortable|snapMode|while|do|removeClass|dragging|dropBehaviour|round|marginBottom|scrollHeight|max|marginRight|bottom|right|jQuery|sort|group|makeArray|fromSortable|placeholder|toSortable|mouseCapture|containerCache|deactivate|receive|sender|sortreceive|activate|refresh|outer|inner|continue|for|snapTolerance|removeChild|DragDropIframeFix|1000|001|fff|background|class|iframe|distance|delay|button|input|cancel|defaults|mouseDestroy|unbind|removeData|destroy|plugins|null|500|animate|drop|prepareOffsets|scrollWidth|mozilla|browser|marginTop|marginLeft|parents|apply|isFunction|current|andSelf|find|resizable|is|mouseInit|init|mouse|widget'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/ui.droppable.packed.js b/javascript/libs/jquery/packed/ui/ui.droppable.packed.js
new file mode 100644
index 0000000..d512ba6
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/ui.droppable.packed.js
@@ -0,0 +1,2 @@
+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}('(8(A){A.1M("4.c",{1L:8(){3.5.Z("4-c");3.e=0;3.k=1;9 C=3.6,B=C.g;C=A.13(C,{g:C.g&&C.g.1K==1J?C.g:8(D){a A(D).1c(B)}});3.V={v:3.5.1a(),u:3.5.19()};A.4.d.t.1I(3)},1H:{},4:8(B){a{1f:(B.h||B.5),1g:B.1g,l:B.l,1G:B.n,6:3.6,5:3.5}},1F:8(){9 B=A.4.d.t;1d(9 C=0;C<B.10;C++){7(B[C]==3){B.1E(C,1)}}3.5.N("4-c 4-c-s").1D("c").1C(".c")},p:8(C){9 B=A.4.d.w;7(!B||(B.h||B.5)[0]==3.5[0]){a}7(3.6.g.b(3.5,(B.h||B.5))){A.4.m.b(3,"p",[C,3.4(B)]);3.5.R("1B",[C,3.4(B)],3.6.p)}},o:8(C){9 B=A.4.d.w;7(!B||(B.h||B.5)[0]==3.5[0]){a}7(3.6.g.b(3.5,(B.h||B.5))){A.4.m.b(3,"o",[C,3.4(B)]);3.5.R("1A",[C,3.4(B)],3.6.o)}},j:8(D,C){9 B=C||A.4.d.w;7(!B||(B.h||B.5)[0]==3.5[0]){a i}9 E=i;3.5.1z(".4-c").1y(".4-1f-1x").12(8(){9 F=A.16(3,"c");7(F.6.17&&A.4.q(B,A.13(F,{f:F.5.f()}),F.6.U)){E=1e;a i}});7(E){a i}7(3.6.g.b(3.5,(B.h||B.5))){A.4.m.b(3,"j",[D,3.4(B)]);3.5.R("j",[D,3.4(B)],3.6.j);a 1e}a i},P:8(C){9 B=A.4.d.w;A.4.m.b(3,"P",[C,3.4(B)]);7(B){3.5.R("1w",[C,3.4(B)],3.6.P)}},O:8(C){9 B=A.4.d.w;A.4.m.b(3,"O",[C,3.4(B)]);7(B){3.5.R("1v",[C,3.4(B)],3.6.O)}}});A.13(A.4.c,{1u:{s:i,U:"q"}});A.4.q=8(L,F,J){7(!F.f){a i}9 D=(L.n||L.l.y).z,C=D+L.M.v,I=(L.n||L.l.y).x,H=I+L.M.u;9 E=F.f.z,B=E+F.V.v,K=F.f.x,G=K+F.V.u;1t(J){W"1s":a(E<D&&C<B&&K<I&&H<G);Q;W"q":a(E<D+(L.M.v/2)&&C-(L.M.v/2)<B&&K<I+(L.M.u/2)&&H-(L.M.u/2)<G);Q;W"1r":a(E<((L.n||L.l.y).z+(L.Y||L.f.X).z)&&((L.n||L.l.y).z+(L.Y||L.f.X).z)<B&&K<((L.n||L.l.y).x+(L.Y||L.f.X).x)&&((L.n||L.l.y).x+(L.Y||L.f.X).x)<G);Q;W"1q":a((I>=K&&I<=G)||(H>=K&&H<=G)||(I<K&&H>G))&&((D>=E&&D<=B)||(C>=E&&C<=B)||(D<E&&C>B));Q;1p:a i;Q}};A.4.d={w:11,t:[],18:8(D,F){9 B=A.4.d.t;9 E=F?F.1o:11;1d(9 C=0;C<B.10;C++){7(B[C].6.s||(D&&!B[C].6.g.b(B[C].5,(D.h||D.5)))){1b}B[C].r=B[C].5.1c(":r");7(!B[C].r){1b}B[C].f=B[C].5.f();B[C].V={v:B[C].5.1a(),u:B[C].5.19()};7(E=="1n"||E=="1m"){B[C].P.b(B[C],F)}}},j:8(B,C){9 D=i;A.12(A.4.d.t,8(){7(!3.6){a}7(!3.6.s&&3.r&&A.4.q(B,3,3.6.U)){D=3.j.b(3,C)}7(!3.6.s&&3.r&&3.6.g.b(3.5,(B.h||B.5))){3.k=1;3.e=0;3.O.b(3,C)}});a D},1l:8(B,C){7(B.6.1k){A.4.d.18(B,C)}A.12(A.4.d.t,8(){7(3.s||3.15||!3.r){a}9 E=A.4.q(B,3,3.6.U);9 G=!E&&3.e==1?"k":(E&&3.e==0?"e":11);7(!G){a}9 F;7(3.6.17){9 D=3.5.1j(".4-c:1i(0)");7(D.10){F=A.16(D[0],"c");F.15=(G=="e"?1:0)}}7(F&&G=="e"){F["e"]=0;F["k"]=1;F.o.b(F,C)}3[G]=1;3[G=="k"?"e":"k"]=0;3[G=="e"?"p":"o"].b(3,C);7(F&&G=="k"){F["k"]=0;F["e"]=1;F.p.b(F,C)}})}};A.4.m.14("c","T",{P:8(C,B){A(3).Z(B.6.T)},O:8(C,B){A(3).N(B.6.T)},j:8(C,B){A(3).N(B.6.T)}});A.4.m.14("c","S",{p:8(C,B){A(3).Z(B.6.S)},o:8(C,B){A(3).N(B.6.S)},j:8(C,B){A(3).N(B.6.S)}})})(1h)',62,111,'|||this|ui|element|options|if|function|var|return|call|droppable|ddmanager|isover|offset|accept|currentItem|false|drop|isout|position|plugin|positionAbs|out|over|intersect|visible|disabled|droppables|height|width|current|top|absolute|left|||||||||||||helperProportions|removeClass|deactivate|activate|break|triggerHandler|hoverClass|activeClass|tolerance|proportions|case|click|clickOffset|addClass|length|null|each|extend|add|greedyChild|data|greedy|prepareOffsets|outerHeight|outerWidth|continue|is|for|true|draggable|helper|jQuery|eq|parents|refreshPositions|drag|sortactivate|dragstart|type|default|touch|pointer|fit|switch|defaults|dropdeactivate|dropactivate|dragging|not|find|dropout|dropover|unbind|removeData|splice|destroy|absolutePosition|plugins|push|Function|constructor|init|widget'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/ui.resizable.packed.js b/javascript/libs/jquery/packed/ui/ui.resizable.packed.js
new file mode 100644
index 0000000..93ba150
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/ui.resizable.packed.js
@@ -0,0 +1,2 @@
+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(A){A.4q("b.c",A.16(A.b.4p,{4o:h(){f M=4,N=4.l;f Q=4.k.d("g");4.k.1j("b-c").d({g:/21/.p(Q)?"1i":Q});A.16(N,{1M:!!(N.17),q:N.q||N.13||N.1o?N.q||"q":1g,1m:N.1m===1w?"b-c-1V-14":N.1m});f H="2F 3i #4n";N.3f={"b-c":{1X:"2e"},"b-c-14":{g:"1D",3k:"#3j",4m:"0.2F"},"b-c-n":{u:"n-m",8:"15",5:"o",1t:"o",2G:H},"b-c-s":{u:"s-m",8:"15",5:"o",1t:"o",2J:H},"b-c-e":{u:"e-m",6:"15",9:"o",1u:"o",2I:H},"b-c-w":{u:"w-m",6:"15",9:"o",1u:"o",2H:H},"b-c-z":{u:"z-m",6:"15",8:"15",2I:H,2J:H},"b-c-y":{u:"y-m",6:"15",8:"15",2J:H,2H:H},"b-c-11":{u:"11-m",6:"15",8:"15",2I:H,2G:H},"b-c-Z":{u:"Z-m",6:"15",8:"15",2H:H,2G:H}};N.2A={"b-c-14":{3k:"#3j",4l:"2F 3i #4k",8:"3h",6:"3h"},"b-c-n":{u:"n-m",9:"o",5:"45%"},"b-c-s":{u:"s-m",1u:"o",5:"45%"},"b-c-e":{u:"e-m",1t:"o",9:"45%"},"b-c-w":{u:"w-m",5:"o",9:"45%"},"b-c-z":{u:"z-m",1t:"o",1u:"o"},"b-c-y":{u:"y-m",5:"o",1u:"o"},"b-c-Z":{u:"Z-m",5:"o",9:"o"},"b-c-11":{u:"11-m",1t:"o",9:"o"}};N.2z=4.k[0].2g;a(N.2z.2y(/4j|1Z|2m|3b|2l|4i/i)){f B=4.k;a(/1i/.p(B.d("g"))&&A.1f.32){B.d({g:"1i",9:"1U",5:"1U"})}B.4h(A(\'<1E 3e="b-2w" 2r="2q: 2p;"></1E>\').d({g:B.d("g"),6:B.1y(),8:B.1x(),9:B.d("9"),5:B.d("5")}));f J=4.k;4.k=4.k.1O();4.k.12("c",4);4.k.d({2E:J.d("2E"),2D:J.d("2D"),2C:J.d("2C"),2B:J.d("2B")});J.d({2E:0,2D:0,2C:0,2B:0});a(A.1f.4g&&N.2V){J.d("m","3g")}N.1h=J.d({g:"21",4f:1,1X:"2e"});4.k.d({2d:J.d("2d")});4.1T()}a(!N.v){N.v=!A(".b-c-14",4.k).1W?"e,s,z":{n:".b-c-n",e:".b-c-e",s:".b-c-s",w:".b-c-w",z:".b-c-z",y:".b-c-y",11:".b-c-11",Z:".b-c-Z"}}a(N.v.3d==3c){N.1C=N.1C||4e;a(N.v=="4d"){N.v="n,e,s,w,z,y,11,Z"}f O=N.v.4c(",");N.v={};f G={14:"g: 1D; 1X: 3g; 2q:2p;",n:"9: 1s; 6:2b%;",e:"1t: 1s; 8:2b%;",s:"1u: 1s; 6:2b%;",w:"5: 1s; 8:2b%;",z:"1u: 1s; 1t: o;",y:"1u: 1s; 5: o;",11:"9: 1s; 1t: o;",Z:"9: 1s; 5: o;"};2v(f R=0;R<O.1W;R++){f S=A.4b(O[R]),L=N.3f,F="b-c-"+S,C=!A.b.d(F)&&!N.1m,P=A.b.d("b-c-1V-14"),T=A.16(L[F],L["b-c-14"]),D=A.16(N.2A[F],!P?N.2A["b-c-14"]:{});f K=/y|z|11|Z/.p(S)?{1C:++N.1C}:{};f I=(C?G[S]:""),E=A([\'<1E 3e="b-c-14 \',F,\'" 2r="\',I,G.14,\'"></1E>\'].2x("")).d(K);N.v[S]=".b-c-"+S;4.k.35(E.d(C?T:{}).d(N.1m?D:{}).1j(N.1m?"b-c-1V-14":"").1j(N.1m))}a(N.1m){4.k.1j("b-c-1V").d(!A.b.d("b-c-1V")?{}:{})}}4.3a=h(Y){Y=Y||4.k;2v(f V 33 N.v){a(N.v[V].3d==3c){N.v[V]=A(N.v[V],4.k).38()}a(N.2k){N.v[V].d({2N:0})}a(4.k.2u(".b-2w")&&N.2z.2y(/1Z|2m|3b|2l/i)){f W=A(N.v[V],4.k),X=0;X=/y|11|Z|z|n|s/.p(V)?W.1x():W.1y();f U=["4a",/11|Z|n/.p(V)?"49":/z|y|s/.p(V)?"48":/^e$/.p(V)?"47":"46"].2x("");a(!N.2k){Y.d(U,X)}4.1T()}a(!A(N.v[V]).1W){44}}};4.3a(4.k);N.1G=A(".b-c-14",M.k);a(N.1Q){N.1G.1z(h(U,V){A.b.1Q(V)})}N.1G.43(h(){a(!N.2a){a(4.39){f U=4.39.2y(/b-c-(z|y|11|Z|n|e|s|w)/i)}M.1k=N.1k=U&&U[1]?U[1]:"z"}});a(N.1P){N.1G.37();A(M.k).1j("b-c-1P").42(h(){A(4).36("b-c-1P");N.1G.38()},h(){a(!N.2a){A(4).1j("b-c-1P");N.1G.37()}})}4.41()},40:{},b:h(){r{1k:4.l.1k,l:4.l}},1L:h(C,B){A.b.1A.3Z(4,C,[B,4.b()]);4.k.3Y(C=="m"?C:["m",C].2x(""),[B,4.b()],4.l[C])},3X:h(){f D=4.k,C=D.3W(".b-c").1c(0);4.3V();f B=h(E){A(E).36("b-c b-c-34").2K("c").3U(".c").3T(".b-c-14").2s()};B(D);a(D.2u(".b-2w")&&C){D.1O().35(A(C).d({g:D.d("g"),6:D.1y(),8:D.1x(),9:D.d("9"),5:D.d("5")})).3S().2s();B(C)}},3R:h(K){a(4.l.34){r 18}f J=18;2v(f H 33 4.l.v){a(A(4.l.v[H])[0]==K.3Q){J=1w}}a(!J){r 18}f C=4.l,B=4.k.g(),D=4.k,I=h(O){r x(O,10)||0},G=A.1f.27&&A.1f.2o<7;C.2a=1w;C.2t={9:A(1q).3P(),5:A(1q).3O()};a(D.2u(".b-3N")||(/1D/).p(D.d("g"))){f M=A.1f.27&&!C.2i&&(/1D/).p(D.d("g"))&&!(/1i/).p(D.1O().d("g"));f L=M?C.2t.9:0,F=M?C.2t.5:0;D.d({g:"1D",9:(B.9+L),5:(B.5+F)})}a(A.1f.32&&/1i/.p(D.d("g"))){D.d({g:"1i",9:"1U",5:"1U"})}4.2W();f N=I(4.t.d("5")),E=I(4.t.d("9"));4.1l=4.t.1l();4.g={5:N,9:E};4.j=C.q||G?{6:D.1y(),8:D.1x()}:{6:D.6(),8:D.8()};4.1b=C.q||G?{6:D.1y(),8:D.1x()}:{6:D.6(),8:D.8()};4.1a={5:N,9:E};4.1p={6:D.1y()-D.6(),8:D.1x()-D.8()};4.31={5:K.30,9:K.2Z};C.17=(1J C.17=="2R")?C.17:((4.1b.8/4.1b.6)||1);a(C.2j){A("24").d("u",4.1k+"-m")}4.1L("1H",K);r 1w},3M:h(I){f D=4.t,C=4.l,J={},M=4,F=4.31,K=4.1k;f N=(I.30-F.5)||0,L=(I.2Z-F.9)||0;f E=4.1e[K];a(!E){r 18}f H=E.1n(4,[I,N,L]),G=A.1f.27&&A.1f.2o<7,B=4.1p;a(C.1M||I.20){H=4.2Y(H,I)}H=4.2X(H,I);4.1L("m",I);D.d({9:4.g.9+"1r",5:4.g.5+"1r",6:4.j.6+"1r",8:4.j.8+"1r"});a(!C.q&&C.1h){4.1T()}4.2f(H);r 18},3L:h(I){4.l.2a=18;f E=4.l,H=h(M){r x(M,10)||0},K=4;a(E.q){f D=E.1h,B=D&&(/1Z/i).p(D.1c(0).2g),C=B&&A.b.1Y(D.1c(0),"5")?0:K.1p.8,G=B?0:K.1p.6;f L={6:(K.j.6-G),8:(K.j.8-C)},F=(x(K.k.d("5"),10)+(K.g.5-K.1a.5))||1g,J=(x(K.k.d("9"),10)+(K.g.9-K.1a.9))||1g;a(!E.1o){4.k.d(A.16(L,{9:J,5:F}))}a(E.q&&!E.1o){4.1T()}}a(E.2j){A("24").d("u","1U")}4.1L("1I",I);a(E.q){4.t.2s()}r 18},2f:h(B){f C=4.l;4.1l=4.t.1l();a(B.5){4.g.5=B.5}a(B.9){4.g.9=B.9}a(B.8){4.j.8=B.8}a(B.6){4.j.6=B.6}},2Y:h(D,E){f F=4.l,G=4.g,C=4.j,B=4.1k;a(D.8){D.6=(C.8/F.17)}19{a(D.6){D.8=(C.6*F.17)}}a(B=="y"){D.5=G.5+(C.6-D.6);D.9=1g}a(B=="Z"){D.9=G.9+(C.8-D.8);D.5=G.5+(C.6-D.6)}r D},2X:h(H,I){f F=4.t,E=4.l,N=E.1M||I.20,M=4.1k,P=H.6&&E.29&&E.29<H.6,J=H.8&&E.28&&E.28<H.8,D=H.6&&E.1S&&E.1S>H.6,O=H.8&&E.1R&&E.1R>H.8;a(D){H.6=E.1S}a(O){H.8=E.1R}a(P){H.6=E.29}a(J){H.8=E.28}f C=4.1a.5+4.1b.6,L=4.g.9+4.j.8;f G=/y|Z|w/.p(M),B=/Z|11|n/.p(M);a(D&&G){H.5=C-E.1S}a(P&&G){H.5=C-E.29}a(O&&B){H.9=L-E.1R}a(J&&B){H.9=L-E.28}f K=!H.6&&!H.8;a(K&&!H.5&&H.9){H.9=1g}19{a(K&&!H.9&&H.5){H.5=1g}}r H},1T:h(){f F=4.l;a(!F.1h){r}f D=F.1h,C=4.t||4.k;a(!F.1F){f B=[D.d("3K"),D.d("3J"),D.d("3I"),D.d("3H")],E=[D.d("3G"),D.d("3F"),D.d("3E"),D.d("3D")];F.1F=A.3C(B,h(G,I){f H=x(G,10)||0,J=x(E[I],10)||0;r H+J})}D.d({8:(C.8()-F.1F[0]-F.1F[2])+"1r",6:(C.6()-F.1F[1]-F.1F[3])+"1r"})},2W:h(){f C=4.k,F=4.l;4.2n=C.1l();a(F.q){4.t=4.t||A(\'<1E 2r="2q:2p;"></1E>\');f B=A.1f.27&&A.1f.2o<7,D=(B?1:0),E=(B?2:-1);4.t.1j(F.q).d({6:C.1y()+E,8:C.1x()+E,g:"1D",5:4.2n.5-D+"1r",9:4.2n.9-D+"1r",1C:++F.1C});4.t.2M("24");a(F.1Q){A.b.1Q(4.t.1c(0))}}19{4.t=C}},1e:{e:h(D,C,B){r{6:4.1b.6+C}},w:h(F,C,B){f G=4.l,D=4.1b,E=4.1a;r{5:E.5+C,6:D.6-C}},n:h(F,C,B){f G=4.l,D=4.1b,E=4.1a;r{9:E.9+B,8:D.8-B}},s:h(D,C,B){r{8:4.1b.8+B}},z:h(D,C,B){r A.16(4.1e.s.1n(4,26),4.1e.e.1n(4,[D,C,B]))},y:h(D,C,B){r A.16(4.1e.s.1n(4,26),4.1e.w.1n(4,[D,C,B]))},11:h(D,C,B){r A.16(4.1e.n.1n(4,26),4.1e.e.1n(4,[D,C,B]))},Z:h(D,C,B){r A.16(4.1e.n.1n(4,26),4.1e.w.1n(4,[D,C,B]))}}}));A.16(A.b.c,{3B:{3A:":2m,2l",3z:0,3y:0,2V:1w,2k:18,1S:10,1R:10,17:18,1Q:1w,2j:1w,1P:18,1m:18}});A.b.1A.1K("c","2i",{1H:h(I,K){f E=K.l,M=A(4).12("c"),G=M.k;f C=E.2i,F=(C 3x A)?C.1c(0):(/1O/.p(C))?G.1O().1c(0):C;a(!F){r}M.2h=A(F);a(/1q/.p(C)||C==1q){M.1N={5:0,9:0};M.22={5:0,9:0};M.1B={k:A(1q),5:0,9:0,6:A(1q).6(),8:A(1q).8()||1q.24.3w.2U}}19{M.1N=A(F).1l();M.22=A(F).g();M.23={8:A(F).2S(),6:A(F).2T()};f J=M.1N,B=M.23.8,H=M.23.6,D=(A.b.1Y(F,"5")?F.3v:H),L=(A.b.1Y(F)?F.2U:B);M.1B={k:F,5:J.5,9:J.9,6:D,8:L}}},m:h(H,K){f E=K.l,N=A(4).12("c"),C=N.23,J=N.1N,G=N.j,I=N.g,L=E.1M||H.20,B={9:0,5:0},D=N.2h;a(/21/.p(D.d("g"))){B=N.22}a(I.5<(E.q?J.5:B.5)){N.j.6=N.j.6+(E.q?(N.g.5-J.5):(N.g.5-B.5));a(L){N.j.8=N.j.6*E.17}N.g.5=E.q?J.5:B.5}a(I.9<(E.q?J.9:0)){N.j.8=N.j.8+(E.q?(N.g.9-J.9):N.g.9);a(L){N.j.6=N.j.8/E.17}N.g.9=E.q?J.9:0}f F=(E.q?N.1l.5-J.5:(N.g.5-B.5))+N.1p.6,M=(E.q?N.1l.9-J.9:N.g.9)+N.1p.8;a(F+N.j.6>=N.1B.6){N.j.6=N.1B.6-F;a(L){N.j.8=N.j.6*E.17}}a(M+N.j.8>=N.1B.8){N.j.8=N.1B.8-M;a(L){N.j.6=N.j.8/E.17}}},1I:h(G,J){f C=J.l,L=A(4).12("c"),H=L.g,I=L.1N,B=L.22,D=L.2h;f E=A(L.t),M=E.1l(),K=E.2T(),F=E.2S();a(C.q&&!C.1o&&/1i/.p(D.d("g"))){A(4).d({5:(M.5-I.5),9:(M.9-I.9),6:K,8:F})}a(C.q&&!C.1o&&/21/.p(D.d("g"))){A(4).d({5:B.5+(M.5-I.5),9:B.9+(M.9-I.9),6:K,8:F})}}});A.b.1A.1K("c","1d",{m:h(H,J){f D=J.l,L=A(4).12("c"),G=L.j,E=L.1b,F=L.1a,K=L.1k,I=D.1M||H.20;D.1d=1J D.1d=="2R"?[D.1d,D.1d]:D.1d;f C=2Q.2P((G.6-E.6)/(D.1d[0]||1))*(D.1d[0]||1),B=2Q.2P((G.8-E.8)/(D.1d[1]||1))*(D.1d[1]||1);a(/^(z|s|e)$/.p(K)){L.j.6=E.6+C;L.j.8=E.8+B}19{a(/^(11)$/.p(K)){L.j.6=E.6+C;L.j.8=E.8+B;L.g.9=F.9-B}19{a(/^(y)$/.p(K)){L.j.6=E.6+C;L.j.8=E.8+B;L.g.5=F.5-C}19{L.j.6=E.6+C;L.j.8=E.8+B;L.g.9=F.9-B;L.g.5=F.5-C}}}}});A.b.1A.1K("c","1o",{1I:h(I,K){f F=K.l,L=A(4).12("c");f E=F.1h,B=E&&(/1Z/i).p(E.1c(0).2g),C=B&&A.b.1Y(E.1c(0),"5")?0:L.1p.8,H=B?0:L.1p.6;f D={6:(L.j.6-H),8:(L.j.8-C)},G=(x(L.k.d("5"),10)+(L.g.5-L.1a.5))||1g,J=(x(L.k.d("9"),10)+(L.g.9-L.1a.9))||1g;L.k.1o(A.16(D,J&&G?{9:J,5:G}:{}),{3u:F.3t||"3s",3r:F.3q||"3p",3o:h(){f M={6:x(L.k.d("6"),10),8:x(L.k.d("8"),10),9:x(L.k.d("9"),10),5:x(L.k.d("5"),10)};a(E){E.d({6:M.6,8:M.8})}L.2f(M);L.1L("1o",I)}})}});A.b.1A.1K("c","13",{1H:h(E,D){f F=D.l,B=A(4).12("c"),G=F.1h,C=B.j;a(!G){B.13=B.k.2O()}19{B.13=G.2O()}B.13.d({2N:0.25,1X:"2e",g:"1i",8:C.8,6:C.6,2d:0,5:0,9:0}).1j("b-c-13").1j(1J F.13=="3n"?F.13:"");B.13.2M(B.t)},m:h(D,C){f E=C.l,B=A(4).12("c"),F=E.1h;a(B.13){B.13.d({g:"1i",8:B.j.8,6:B.j.6})}},1I:h(D,C){f E=C.l,B=A(4).12("c"),F=E.1h;a(B.13&&B.t){B.t.1c(0).3m(B.13.1c(0))}}});A.b.1A.1K("c","1v",{1H:h(E,C){f F=C.l,B=A(4).12("c"),D=h(G){A(G).1z(h(){A(4).12("c-2c",{6:x(A(4).6(),10),8:x(A(4).8(),10),5:x(A(4).d("5"),10),9:x(A(4).d("9"),10)})})};a(1J(F.1v)=="2L"){A.1z(F.1v,h(G,H){D(G)})}19{D(F.1v)}},m:h(F,E){f G=E.l,C=A(4).12("c"),D=C.1b,I=C.1a;f H={8:(C.j.8-D.8)||0,6:(C.j.6-D.6)||0,9:(C.g.9-I.9)||0,5:(C.g.5-I.5)||0},B=h(J,K){A(J).1z(h(){f N=A(4).12("c-2c"),M={},L=K&&K.1W?K:["6","8","9","5"];A.1z(L||["6","8","9","5"],h(O,Q){f P=(N[Q]||0)+(H[Q]||0);a(P&&P>=0){M[Q]=P||1g}});A(4).d(M)})};a(1J(G.1v)=="2L"){A.1z(G.1v,h(J,K){B(J,K)})}19{B(G.1v)}},1I:h(C,B){A(4).2K("c-2c-1H")}})})(3l)',62,275,'||||this|left|width||height|top|if|ui|resizable|css||var|position|function||size|element|options|resize||0px|test|proxy|return||helper|cursor|handles||parseInt|sw|se||||||||||||||||||||||||||nw||ne|data|ghost|handle|4px|extend|aspectRatio|false|else|originalPosition|originalSize|get|grid|_change|browser|null|proportionallyResize|relative|addClass|axis|offset|knobHandles|apply|animate|sizeDiff|document|px|0pt|right|bottom|alsoResize|true|outerHeight|outerWidth|each|plugin|parentData|zIndex|absolute|div|borderDif|_handles|start|stop|typeof|add|propagate|_aspectRatio|containerOffset|parent|autohide|disableSelection|minHeight|minWidth|_proportionallyResize|auto|knob|length|display|hasScroll|textarea|shiftKey|static|containerPosition|containerSize|body||arguments|msie|maxHeight|maxWidth|resizing|100|alsoresize|margin|block|_updateCache|nodeName|containerElement|containment|preserveCursor|transparent|button|input|elementOffset|version|hidden|overflow|style|remove|documentScroll|is|for|wrapper|join|match|_nodeName|knobTheme|marginBottom|marginRight|marginTop|marginLeft|1px|borderTop|borderLeft|borderRight|borderBottom|removeData|object|appendTo|opacity|clone|round|Math|number|innerHeight|innerWidth|scrollHeight|preventDefault|_renderProxy|_respectSize|_updateRatio|pageY|pageX|originalMousePosition|opera|in|disabled|append|removeClass|hide|show|className|_renderAxis|select|String|constructor|class|defaultTheme|none|8px|solid|F2F2F2|background|jQuery|removeChild|string|step|swing|animateEasing|easing|slow|animateDuration|duration|scrollWidth|parentNode|instanceof|delay|distance|cancel|defaults|map|paddingLeft|paddingBottom|paddingRight|paddingTop|borderLeftWidth|borderBottomWidth|borderRightWidth|borderTopWidth|mouseStop|mouseDrag|draggable|scrollLeft|scrollTop|target|mouseStart|end|find|unbind|mouseDestroy|children|destroy|triggerHandler|call|plugins|mouseInit|hover|mouseover|continue||Left|Right|Bottom|Top|padding|trim|split|all|1000|zoom|safari|wrap|img|canvas|808080|border|fontSize|DEDEDE|init|mouse|widget'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/ui.selectable.packed.js b/javascript/libs/jquery/packed/ui/ui.selectable.packed.js
new file mode 100644
index 0000000..3f0da2c
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/ui.selectable.packed.js
@@ -0,0 +1,2 @@
+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}('(d(A){A.1N("4.5",A.V(A.4.1M,{1L:d(){8 B=2;2.3.h("4-5");2.v=b;8 C;2.Q=d(){C=A(B.9.q,B.3[0]);C.o(d(){8 D=A(2);8 E=D.1K();A.n(2,"5-m",{3:2,$3:D,k:E.k,j:E.j,L:E.k+D.N(),y:E.j+D.M(),i:b,a:D.R("4-a"),c:D.R("4-c"),6:D.R("4-6")})})};2.Q();2.s=C.h("4-1J");2.1I();2.p=A(1H.1G("1F")).O({1E:"1D 1C 1B"})},1A:d(){7(2.9.t){2.1z()}r{2.1y()}},1x:d(){2.3.f("4-5 4-5-t").1w("5").1v(".5");2.1u()},1t:d(E){8 C=2;2.P=[E.Y,E.X];7(2.9.t){l}8 D=2.9;2.s=A(D.q,2.3[0]);2.3.g("1s",[E,{"5":2.3[0],"9":D}],D.1r);A("U").1q(2.p);2.p.O({"z-1p":1o,"1n":"1m","k":E.1l,"j":E.1k,"N":0,"M":0});7(D.T){2.Q()}2.s.q(".4-a").o(d(){8 F=A.n(2,"5-m");F.i=e;7(!E.x){F.$3.f("4-a");F.a=b;F.$3.h("4-6");F.6=e;C.3.g("w",[E,{5:C.3[0],6:F.3,9:D}],D.6)}});8 B=b;A(E.1j).1i().1h().o(d(){7(A.n(2,"5-m")){B=e}});l 2.9.1g?!B:e},1f:d(I){8 C=2;2.v=e;7(2.9.t){l}8 E=2.9;8 D=2.P[0],H=2.P[1],B=I.Y,G=I.X;7(D>B){8 F=B;B=D;D=F}7(H>G){8 F=G;G=H;H=F}2.p.O({k:D,j:H,N:B-D,M:G-H});2.s.o(d(){8 J=A.n(2,"5-m");7(!J||J.3==C.3[0]){l}8 K=b;7(E.u=="S"){K=(!(J.k>B||J.L<D||J.j>G||J.y<H))}r{7(E.u=="1e"){K=(J.k>D&&J.L<B&&J.j>H&&J.y<G)}}7(K){7(J.a){J.$3.f("4-a");J.a=b}7(J.6){J.$3.f("4-6");J.6=b}7(!J.c){J.$3.h("4-c");J.c=e;C.3.g("1d",[I,{5:C.3[0],c:J.3,9:E}],E.c)}}r{7(J.c){7(I.x&&J.i){J.$3.f("4-c");J.c=b;J.$3.h("4-a");J.a=e}r{J.$3.f("4-c");J.c=b;7(J.i){J.$3.h("4-6");J.6=e}C.3.g("w",[I,{5:C.3[0],6:J.3,9:E}],E.6)}}7(J.a){7(!I.x&&!J.i){J.$3.f("4-a");J.a=b;J.$3.h("4-6");J.6=e;C.3.g("w",[I,{5:C.3[0],6:J.3,9:E}],E.6)}}}});l b},1c:d(D){8 B=2;2.v=b;8 C=2.9;A(".4-6",2.3[0]).o(d(){8 E=A.n(2,"5-m");E.$3.f("4-6");E.6=b;E.i=b;B.3.g("1b",[D,{5:B.3[0],W:E.3,9:C}],C.W)});A(".4-c",2.3[0]).o(d(){8 E=A.n(2,"5-m");E.$3.f("4-c").h("4-a");E.c=b;E.a=e;E.i=e;B.3.g("1a",[D,{5:B.3[0],a:E.3,9:C}],C.a)});2.3.g("19",[D,{5:B.3[0],9:2.9}],2.9.18);2.p.17();l b}}));A.V(A.4.5,{16:{15:0,14:0,13:":12,11",10:"U",T:e,q:"*",u:"S"}})})(Z)',62,112,'||this|element|ui|selectable|unselecting|if|var|options|selected|false|selecting|function|true|removeClass|triggerHandler|addClass|startselected|top|left|return|item|data|each|helper|filter|else|selectees|disabled|tolerance|dragged|selectableunselecting|ctrlKey|bottom|||||||||||||right|height|width|css|opos|refresh|hasClass|touch|autoRefresh|body|extend|unselected|pageY|pageX|jQuery|appendTo|button|input|cancel|delay|distance|defaults|remove|stop|selectablestop|selectableselected|selectableunselected|mouseStop|selectableselecting|fit|mouseDrag|keyboard|andSelf|parents|target|clientY|clientX|absolute|position|100|index|append|start|selectablestart|mouseStart|mouseDestroy|unbind|removeData|destroy|disable|enable|toggle|black|dotted|1px|border|div|createElement|document|mouseInit|selectee|offset|init|mouse|widget'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/ui.slider.packed.js b/javascript/libs/jquery/packed/ui/ui.slider.packed.js
new file mode 100644
index 0000000..8f7e3fb
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/ui.slider.packed.js
@@ -0,0 +1,2 @@
+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}('(5(A){A.20.1y=A.20.1y||5(B){b 3.14(5(){A(3).2E(B).2D(0).2C(3).1Z()})};A.1Y("i.l",{2B:{},i:5(B){b{6:3.6,8:3.7,m:3.6.k!="2A"||!3.6.k?s.r(3.m(f,3.6.k=="u"?"y":"x")):{x:s.r(3.m(f,"x")),y:s.r(3.m(f,"y"))},1p:3.1F()}},J:5(C,B){A.i.2z.1h(3,C,[B,3.i()]);3.c.2y(C=="16"?C:"16"+C,[B,3.i()],3.6[C])},2x:5(){3.c.1M("i-l i-l-1o").2w("l").2v(".l");3.8.1y("a");3.8.14(5(){A(3).S("M").2u()});3.1x&&3.1x.1Z()},1X:5(B,C){A.1Y.1W.1X.1U(3,2t);4(/j|p|U/.O(B)){3.1u()}},2s:5(){e B=3;3.c.1f("i-l");3.1u();3.8=A(3.6.8,3.c);4(!3.8.1a){B.8=B.1x=A(B.6.1e||[0]).2r(5(){e D=A("<1q/>").1f("i-l-8").1G(B.c);4(3.1w){D.2q("1w",3.1w)}b D[0]})}e C=5(D){3.c=A(D);3.c.S("M",3);3.6=B.6;3.c.15("1V",5(){4(B.7){3.1g(B.7)}B.L(3,1)});3.2p()};A.1R(C.1W,A.i.M,{2o:5(D){b B.V.1h(B,D,3.c[0])},2n:5(D){b B.17.1h(B,D,3.c[0])},2m:5(D){b B.1m.1h(B,D,3.c[0])},2l:5(){b K},1T:5(D){3.2k(D)}});A(3.8).14(5(){2j C(3)}).2i(\'<a 2h="2g:2f(0)" 2e="2d:2c;"></a>\').1N().15("L",5(D){B.L(3.1v)}).15("1g",5(D){B.1g(3.1v)}).15("1t",5(D){4(!B.6.2b){B.1t(D.2a,3.1v)}});3.c.15("1V.l",5(D){B.1K.1U(B,[D]);B.7.S("M").1T(D);B.1d=B.1d+1});A.14(3.6.1e||[],5(D,E){B.12(E.V,D,K)});4(!Y(3.6.1S)){3.12(3.6.1S,0,K)}3.P=A(3.8[0]);4(3.8.1a==2&&3.6.1p){3.1H()}},1u:5(){e B=3.c[0],C=3.6;3.Q={w:3.c.1k(),v:3.c.1j()};A.1R(C,{k:C.k||(B.1I<B.1J?"u":"1i"),p:!Y(9(C.p,10))?{x:9(C.p,10),y:9(C.p,10)}:({x:C.p&&C.p.x||1Q,y:C.p&&C.p.y||1Q}),j:!Y(9(C.j,10))?{x:9(C.j,10),y:9(C.j,10)}:({x:C.j&&C.j.x||0,y:C.j&&C.j.y||0})});C.R={x:C.p.x-C.j.x,y:C.p.y-C.j.y};C.d={x:C.d&&C.d.x||9(C.d,10)||(C.U?C.R.x/(C.U.x||9(C.U,10)||C.R.x):0),y:C.d&&C.d.y||9(C.d,10)||(C.U?C.R.y/(C.U.y||9(C.U,10)||C.R.y):0)}},1t:5(C,B){4(/(1s|1r|1P|1O)/.O(C)){3.12({x:/(1s|1P)/.O(C)?(C==1s?"-":"+")+"="+3.13("x"):0,y:/(1r|1O)/.O(C)?(C==1r?"-":"+")+"="+3.13("y"):0},B)}},L:5(B,C){3.7=A(B).1f("i-l-8-1L");4(C){3.7.1N()[0].L()}},1g:5(B){A(B).1M("i-l-8-1L");4(3.7&&3.7[0]==B){3.P=3.7;3.7=f}},1K:5(C){e D=[C.1b,C.1c];e B=11;3.8.14(5(){4(3==C.29){B=K}});4(B||3.6.1o||!(3.7||3.P)){b}4(!3.7&&3.P){3.L(3.P,K)}3.z=3.c.z();3.12({y:3.t(C.1c-3.z.g-3.7[0].1J/2,"y"),x:3.t(C.1b-3.z.h-3.7[0].1I/2,"x")},f,!3.6.1z)},1H:5(){3.N=A("<1q></1q>").1f("i-l-1p").q({28:"27"}).1G(3.c);3.19()},19:5(){e C=3.6.k=="u"?"g":"h";e B=3.6.k=="u"?"v":"w";3.N.q(C,(9(A(3.8[0]).q(C),10)||0)+3.T(0,3.6.k=="u"?"y":"x")/2);3.N.q(B,(9(A(3.8[1]).q(C),10)||0)-(9(A(3.8[0]).q(C),10)||0))},1F:5(){b 3.N?3.t(9(3.N.q(3.6.k=="u"?"v":"w"),10),3.6.k=="u"?"y":"x"):f},1E:5(){b 3.8.26(3.7[0])},m:5(D,B){4(3.8.1a==1){3.7=3.8}4(!B){B=3.6.k=="u"?"y":"x"}e C=A(D!=o&&D!==f?3.8[D]||D:3.7);4(C.S("M").18){b 9(C.S("M").18[B],10)}Z{b 9(((9(C.q(B=="x"?"h":"g"),10)/(3.Q[B=="x"?"w":"v"]-3.T(D,B)))*3.6.R[B])+3.6.j[B],10)}},t:5(C,B){b 3.6.j[B]+(C/(3.Q[B=="x"?"w":"v"]-3.T(f,B)))*3.6.R[B]},n:5(C,B){b((C-3.6.j[B])/3.6.R[B])*(3.Q[B=="x"?"w":"v"]-3.T(f,B))},W:5(D,B){4(3.N){4(3.7[0]==3.8[0]&&D>=3.n(3.m(1),B)){D=3.n(3.m(1,B)-3.13(B),B)}4(3.7[0]==3.8[1]&&D<=3.n(3.m(0),B)){D=3.n(3.m(0,B)+3.13(B),B)}}4(3.6.1e){e C=3.6.1e[3.1E()];4(D<3.n(C.j,B)){D=3.n(C.j,B)}Z{4(D>3.n(C.p,B)){D=3.n(C.p,B)}}}b D},X:5(C,B){4(C>=3.Q[B=="x"?"w":"v"]-3.T(f,B)){C=3.Q[B=="x"?"w":"v"]-3.T(f,B)}4(C<=0){C=0}b C},T:5(C,B){b A(C!=o&&C!==f?3.8[C]:3.7)[0]["z"+(B=="x"?"25":"24")]},13:5(B){b 3.6.d[B]||1},V:5(C,B){e D=3.6;4(D.1o){b 11}3.Q={w:3.c.1k(),v:3.c.1j()};4(!3.7){3.L(3.P,K)}3.z=3.c.z();3.1n=3.7.z();3.1l={g:C.1c-3.1n.g,h:C.1b-3.1n.h};3.1d=3.m();3.J("V",C);3.1m(C,B);b K},17:5(B){3.J("17",B);4(3.1d!=3.m()){3.J("1A",B)}3.L(3.7,K);b 11},1m:5(E,D){e F=3.6;e B={g:E.1c-3.z.g-3.1l.g,h:E.1b-3.z.h-3.1l.h};4(!3.7){3.L(3.P,K)}B.h=3.X(B.h,"x");B.g=3.X(B.g,"y");4(F.d.x){e C=3.t(B.h,"x");C=s.r(C/F.d.x)*F.d.x;B.h=3.n(C,"x")}4(F.d.y){e C=3.t(B.g,"y");C=s.r(C/F.d.y)*F.d.y;B.g=3.n(C,"y")}B.h=3.W(B.h,"x");B.g=3.W(B.g,"y");4(F.k!="u"){3.7.q({h:B.h})}4(F.k!="1i"){3.7.q({g:B.g})}3.7.S("M").18={x:s.r(3.t(B.h,"x"))||0,y:s.r(3.t(B.g,"y"))||0};4(3.N){3.19()}3.J("16",E);b 11},12:5(F,E,G){e H=3.6;3.Q={w:3.c.1k(),v:3.c.1j()};4(E==o&&!3.7&&3.8.1a!=1){b 11}4(E==o&&!3.7){E=0}4(E!=o){3.7=3.P=A(3.8[E]||E)}4(F.x!==o&&F.y!==o){e B=F.x,I=F.y}Z{e B=F,I=F}4(B!==o&&B.1D!=1C){e D=/^\\-\\=/.O(B),C=/^\\+\\=/.O(B);4(D||C){B=3.m(f,"x")+9(B.1B(D?"=":"+=",""),10)}Z{B=Y(9(B,10))?o:9(B,10)}}4(I!==o&&I.1D!=1C){e D=/^\\-\\=/.O(I),C=/^\\+\\=/.O(I);4(D||C){I=3.m(f,"y")+9(I.1B(D?"=":"+=",""),10)}Z{I=Y(9(I,10))?o:9(I,10)}}4(H.k!="u"&&B!==o){4(H.d.x){B=s.r(B/H.d.x)*H.d.x}B=3.n(B,"x");B=3.X(B,"x");B=3.W(B,"x");3.7.q({h:B})}4(H.k!="1i"&&I!==o){4(H.d.y){I=s.r(I/H.d.y)*H.d.y}I=3.n(I,"y");I=3.X(I,"y");I=3.W(I,"y");3.7.q({g:I})}4(3.N){3.19()}3.7.S("M").18={x:s.r(3.t(B,"x"))||0,y:s.r(3.t(I,"y"))||0};4(!G){3.J("V",f);3.J("17",f);3.J("1A",f);3.J("16",f)}}});A.i.l.23="m";A.i.l.22={8:".i-l-8",1z:1}})(21)',62,165,'|||this|if|function|options|currentHandle|handle|parseInt||return|element|stepping|var|null|top|left|ui|min|axis|slider|value|translateValue|undefined|max|css|round|Math|convertValue|vertical|height|width|||offset||||||||||propagate|true|focus|mouse|rangeElement|test|previousHandle|actualSize|realMax|data|handleSize|steps|start|translateRange|translateLimits|isNaN|else||false|moveTo|oneStep|each|bind|slide|stop|sliderValue|updateRange|length|pageX|pageY|firstValue|handles|addClass|blur|call|horizontal|outerHeight|outerWidth|clickOffset|drag|handleOffset|disabled|range|div|38|37|keydown|initBoundaries|firstChild|id|generated|unwrap|distance|change|replace|Number|constructor|handleIndex|getRange|appendTo|createRange|offsetWidth|offsetHeight|click|active|removeClass|parent|40|39|100|extend|startValue|trigger|apply|mousedown|prototype|setData|widget|remove|fn|jQuery|defaults|getter|Height|Width|index|absolute|position|target|keyCode|noKeyboard|default|cursor|style|void|javascript|href|wrap|new|mouseDown|mouseCapture|mouseDrag|mouseStop|mouseStart|mouseInit|attr|map|init|arguments|mouseDestroy|unbind|removeData|destroy|triggerHandler|plugin|both|plugins|after|eq|parents'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/ui.sortable.packed.js b/javascript/libs/jquery/packed/ui/ui.sortable.packed.js
new file mode 100644
index 0000000..f898512
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/ui.sortable.packed.js
@@ -0,0 +1,2 @@
+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}('(b(B){b A(E,D){9 C=B.2Q.3T&&B.2Q.3S<3R;5(E.2P&&!C){c E.2P(D)}5(E.2O){c!!(E.2O(D)&16)}1O(D=D.1g){5(D==E){c W}}c w}B.3Q("k.o",B.2f(B.k.3P,{3O:b(){9 C=4.6;4.O={};4.g.24("k-o");4.25();4.13=4.f.z?(/7|23/).17(4.f[0].v.e("3N")):w;5(!(/(2N|1s|3M)/).17(4.g.e("Y"))){4.g.e("Y","2N")}4.a=4.g.a();4.3L()},3K:{},k:b(C){c{l:(C||4)["l"],q:(C||4)["q"]||B([]),Y:(C||4)["Y"],3J:(C||4)["1b"],6:4.6,g:4.g,v:(C||4)["j"],3I:C?C.g:X}},t:b(F,E,C,D){B.k.1o.14(4,F,[E,4.k(C)]);5(!D){4.g.3H(F=="1z"?F:"1z"+F,[E,4.k(C)],4.6[F])}},2e:b(E){9 C=(B.1L(4.6.f)?4.6.f.14(4.g):B(4.6.f,4.g)).1F(".k-o-l");9 D=[];E=E||{};C.1v(b(){9 F=(B(4).2L(E.3G||"2K")||"").3F(E.3E||(/(.+)[-=3D](.+)/));5(F){D.1w((E.2M||F[1])+"[]="+(E.2M?F[1]:F[2]))}});c D.3C("&")},2d:b(C){9 D=(B.1L(4.6.f)?4.6.f.14(4.g):B(4.6.f,4.g)).1F(".k-o-l");9 E=[];D.1v(b(){E.1w(B(4).2L(C||"2K"))});c E},2F:b(J){9 E=4.1b.7,D=E+4.r.m,I=4.1b.8,H=I+4.r.n;9 F=J.7,C=F+J.m,K=J.8,G=K+J.n;5(4.6.1r=="2J"||(4.6.1r=="1S"&&4.r[4.13?"m":"n"]>J[4.13?"m":"n"])){c(I+4.a.p.8>K&&I+4.a.p.8<G&&E+4.a.p.7>F&&E+4.a.p.7<C)}Z{c(F<E+(4.r.m/2)&&D-(4.r.m/2)<C&&K<I+(4.r.n/2)&&H-(4.r.n/2)<G)}},2s:b(J){9 E=4.1b.7,D=E+4.r.m,I=4.1b.8,H=I+4.r.n;9 F=J.7,C=F+J.m,K=J.8,G=K+J.n;5(4.6.1r=="2J"||(4.6.1r=="1S"&&4.r[4.13?"m":"n"]>J[4.13?"m":"n"])){5(!(I+4.a.p.8>K&&I+4.a.p.8<G&&E+4.a.p.7>F&&E+4.a.p.7<C)){c w}5(4.13){5(E+4.a.p.7>F&&E+4.a.p.7<F+J.m/2){c 2}5(E+4.a.p.7>F+J.m/2&&E+4.a.p.7<C){c 1}}Z{5(I+4.a.p.8>K&&I+4.a.p.8<K+J.n/2){c 2}5(I+4.a.p.8>K+J.n/2&&I+4.a.p.8<G){c 1}}}Z{5(!(F<E+(4.r.m/2)&&D-(4.r.m/2)<C&&K<I+(4.r.n/2)&&H-(4.r.n/2)<G)){c w}5(4.13){5(D>F&&E<F){c 2}5(E<C&&D>C){c 1}}Z{5(H>K&&I<K){c 1}5(I<G&&H>G){c 2}}}c w},25:b(){4.2I();4.1T()},2I:b(){4.f=[];4.d=[4];9 C=4.f;9 E=[B.1L(4.6.f)?4.6.f.14(4.g):B(4.6.f,4.g)];5(4.6.28){P(9 F=4.6.28.z-1;F>=0;F--){9 H=B(4.6.28[F]);P(9 D=H.z-1;D>=0;D--){9 G=B.1f(H[D],"o");5(G&&!G.6.27){E.1w(B.1L(G.6.f)?G.6.f.14(G.g):B(G.6.f,G.g));4.d.1w(G)}}}}P(9 F=E.z-1;F>=0;F--){E[F].1v(b(){B.1f(4,"o-v",W);C.1w({v:B(4),m:0,n:0,7:0,8:0})})}},1T:b(C){P(9 E=4.f.z-1;E>=0;E--){9 D=4.f[E].v;5(!C){4.f[E].m=(4.6.1l?B(4.6.1l,D):D).1u()}5(!C){4.f[E].n=(4.6.1l?B(4.6.1l,D):D).1t()}9 F=(4.6.1l?B(4.6.1l,D):D).a();4.f[E].7=F.7;4.f[E].8=F.8}P(9 E=4.d.z-1;E>=0;E--){9 F=4.d[E].g.a();4.d[E].O.7=F.7;4.d[E].O.8=F.8;4.d[E].O.m=4.d[E].g.1u();4.d[E].O.n=4.d[E].g.1t()}},3B:b(){4.g.3A("k-o k-o-27").2H("o").3z(".o");4.3y();P(9 C=4.f.z-1;C>=0;C--){4.f[C].v.2H("o-v")}},1Z:b(E){9 C=E||4,F=C.6;5(F.q.3x==3w){9 D=F.q;F.q={g:b(){c B("<2G></2G>").24(D)[0]},1i:b(G,H){H.e(G.a()).e({m:G.1u(),n:G.1t()})}}}C.q=B(F.q.g.14(C.g,C.j)).1q("S").e({Y:"1s"});F.q.1i.14(C.g,C.j,C.q)},2q:b(F){P(9 D=4.d.z-1;D>=0;D--){5(4.2F(4.d[D].O)){5(!4.d[D].O.1a){5(4.26!=4.d[D]){9 I=3v;9 H=X;9 E=4.1b[4.d[D].13?"7":"8"];P(9 C=4.f.z-1;C>=0;C--){5(!A(4.d[D].g[0],4.f[C].v[0])){1X}9 G=4.f[C][4.d[D].13?"7":"8"];5(1k.2E(G-E)<I){I=1k.2E(G-E);H=4.f[C]}}5(!H&&!4.6.2c){1X}5(4.q){4.q.1E()}5(4.d[D].6.q){4.d[D].1Z(4)}Z{4.q=X}H?4.1D(F,H):4.1D(F,X,4.d[D].g);4.t("1W",F);4.d[D].t("1W",F,4);4.26=4.d[D]}4.d[D].t("1a",F,4);4.d[D].O.1a=1}}Z{5(4.d[D].O.1a){4.d[D].t("2k",F,4);4.d[D].O.1a=0}}}},3u:b(F,E){5(4.6.27||4.6.2r=="3t"){c w}9 D=X,C=B(F.1K).2C().1v(b(){5(B.1f(4,"o-v")){D=B(4);c w}});5(B.1f(F.1K,"o-v")){D=B(F.1K)}5(!D){c w}5(4.6.2D&&!E){9 G=w;B(4.6.2D,D).3s("*").3r().1v(b(){5(4==F.1K){G=W}});5(!G){c w}}4.j=D;c W},3q:b(H,F,C){9 J=4.6;4.26=4;4.25();4.l=3p J.l=="b"?B(J.l.3o(4.g[0],[H,4.j])):4.j.2w();5(!4.l.2C("S").z){4.l.1q((J.1q!="s"?J.1q:4.j[0].1g))}4.l.e({Y:"1s",1H:"3n"}).24("k-o-l");4.T={7:(L(4.j.e("3m"),10)||0),8:(L(4.j.e("3l"),10)||0)};4.a=4.j.a();4.a={8:4.a.8-4.T.8,7:4.a.7-4.T.7};4.a.p={7:H.1c-4.a.7,8:H.1e-4.a.8};4.u=4.l.u();9 D=4.u.a();4.a.s={8:D.8+(L(4.u.e("21"),10)||0),7:D.7+(L(4.u.e("22"),10)||0)};4.1j=4.1Y(H);4.r={m:4.l.1u(),n:4.l.1t()};5(J.12){5(J.12.7!=1J){4.a.p.7=J.12.7}5(J.12.23!=1J){4.a.p.7=4.r.m-J.12.23}5(J.12.8!=1J){4.a.p.8=J.12.8}5(J.12.2B!=1J){4.a.p.8=4.r.n-J.12.2B}}4.1U=4.j.1G()[0];5(J.i){5(J.i=="s"){J.i=4.l[0].1g}5(J.i=="h"||J.i=="1d"){4.i=[0-4.a.s.7,0-4.a.s.8,B(J.i=="h"?h:1d).m()-4.a.s.7-4.r.m-4.T.7-(L(4.g.e("2A"),10)||0),(B(J.i=="h"?h:1d).n()||h.S.1g.2y)-4.a.s.8-4.r.n-4.T.8-(L(4.g.e("2x"),10)||0)]}5(!(/^(h|1d|s)$/).17(J.i)){9 G=B(J.i)[0];9 I=B(J.i).a();4.i=[I.7+(L(B(G).e("22"),10)||0)-4.a.s.7,I.8+(L(B(G).e("21"),10)||0)-4.a.s.8,I.7+1k.2z(G.3k,G.29)-(L(B(G).e("22"),10)||0)-4.a.s.7-4.r.m-4.T.7-(L(4.j.e("2A"),10)||0),I.8+1k.2z(G.2y,G.2a)-(L(B(G).e("21"),10)||0)-4.a.s.8-4.r.n-4.T.8-(L(4.j.e("2x"),10)||0)]}}5(J.q){4.1Z()}4.t("1n",H);4.r={m:4.l.1u(),n:4.l.1t()};5(4.6.q!="2w"){4.j.e("2i","3j")}5(!C){P(9 E=4.d.z-1;E>=0;E--){4.d[E].t("3i",H,4)}}5(B.k.15){B.k.15.3h=4}5(B.k.15&&!J.2n){B.k.15.3g(4,H)}4.2j=W;4.2u(H);c W},2t:b(D,E){5(!E){E=4.Y}9 C=D=="1s"?1:-1;c{8:(E.8+4.a.s.8*C-(4.u[0]==h.S?0:4.u[0].N)*C+4.T.8*C),7:(E.7+4.a.s.7*C-(4.u[0]==h.S?0:4.u[0].M)*C+4.T.7*C)}},1Y:b(F){9 G=4.6;9 C={8:(F.1e-4.a.p.8-4.a.s.8+(4.u[0]==h.S?0:4.u[0].N)),7:(F.1c-4.a.p.7-4.a.s.7+(4.u[0]==h.S?0:4.u[0].M))};5(!4.1j){c C}5(4.i){5(C.7<4.i[0]){C.7=4.i[0]}5(C.8<4.i[1]){C.8=4.i[1]}5(C.7>4.i[2]){C.7=4.i[2]}5(C.8>4.i[3]){C.8=4.i[3]}}5(G.11){9 E=4.1j.8+1k.2v((C.8-4.1j.8)/G.11[1])*G.11[1];C.8=4.i?(!(E<4.i[1]||E>4.i[3])?E:(!(E<4.i[1])?E-G.11[1]:E+G.11[1])):E;9 D=4.1j.7+1k.2v((C.7-4.1j.7)/G.11[0])*G.11[0];C.7=4.i?(!(D<4.i[0]||D>4.i[2])?D:(!(D<4.i[0])?D-G.11[0]:D+G.11[0])):D}c C},2u:b(D){4.Y=4.1Y(D);4.1b=4.2t("1s");P(9 C=4.f.z-1;C>=0;C--){9 E=4.2s(4.f[C]);5(!E){1X}5(4.f[C].v[0]!=4.j[0]&&4.j[E==1?"3f":"1G"]()[0]!=4.f[C].v[0]&&!A(4.j[0],4.f[C].v[0])&&(4.6.2r=="3e-3d"?!A(4.g[0],4.f[C].v[0]):W)){4.2h=E==1?"2g":"3c";4.1D(D,4.f[C]);4.t("1W",D);3b}}4.2q(D);4.t("1z",D);5(!4.6.1I||4.6.1I=="x"){4.l[0].2p.7=4.Y.7+"2o"}5(!4.6.1I||4.6.1I=="y"){4.l[0].2p.8=4.Y.8+"2o"}5(B.k.15){B.k.15.3a(4,D)}c w},39:b(E,D){5(B.k.15&&!4.6.2n){B.k.15.38(4,E)}5(4.6.1V){9 C=4;9 F=C.j.a();5(C.q){C.q.2m({18:"37"},(L(4.6.1V,10)||2l)-36)}B(4.l).2m({7:F.7-4.a.s.7-C.T.7+(4.u[0]==h.S?0:4.u[0].M),8:F.8-4.a.s.8-C.T.8+(4.u[0]==h.S?0:4.u[0].N)},L(4.6.1V,10)||2l,b(){C.t("1p",E,X,D);C.1H(E)})}Z{4.t("1p",E,X,D);4.1H(E,D)}c w},1H:b(E,D){5(4.1U!=4.j.1G().1F(".k-o-l")[0]){4.t("1i",E,X,D)}5(!A(4.g[0],4.j[0])){5(4.1U==4.j.1G().1F(".k-o-l")[0]){4.t("1i",E,X,D)}4.t("1E",E,X,D);P(9 C=4.d.z-1;C>=0;C--){5(A(4.d[C].g[0],4.j[0])){4.d[C].t("1i",E,4,D);4.d[C].t("35",E,4,D)}}}P(9 C=4.d.z-1;C>=0;C--){4.d[C].t("34",E,4,D);5(4.d[C].O.1a){4.d[C].t("2k",E,4);4.d[C].O.1a=0}}4.2j=w;5(4.33){c w}B(4.j).e("2i","");5(4.q){4.q.1E()}4.l.1E();c W},1D:b(E,D,C){C?C.32(4.j):D.v[4.2h=="2g"?"31":"30"](4.j);4.1T(W);5(4.6.q){4.6.q.1i.14(4.g,4.j,4.q)}}}));B.2f(B.k.o,{2Z:"2e 2d",2Y:{1r:"1S",2X:0,2W:0,2V:":2U,2T",f:"> *",19:2S,2c:W,1q:"s"}});B.k.1o.1C("o","1h",{1n:b(E,D){9 C=B("S");5(C.e("1h")){D.6.1R=C.e("1h")}C.e("1h",D.6.1h)},1p:b(D,C){5(C.6.1R){B("S").e("1h",C.6.1R)}}});B.k.1o.1C("o","19",{1n:b(E,D){9 C=D.l;5(C.e("19")){D.6.1Q=C.e("19")}C.e("19",D.6.19)},1p:b(D,C){5(C.6.1Q){B(C.l).e("19",C.6.1Q)}}});B.k.1o.1C("o","18",{1n:b(E,D){9 C=D.l;5(C.e("18")){D.6.1P=C.e("18")}C.e("18",D.6.18)},1p:b(D,C){5(C.6.1P){B(C.l).e("18",C.6.1P)}}});B.k.1o.1C("o","1m",{1n:b(E,D){9 F=D.6;9 C=B(4).1f("o");F.V=F.V||20;F.U=F.U||20;C.R=b(G){2b{5(/1B|1m/.17(G.e("1A"))||(/1B|1m/).17(G.e("1A-y"))){c G}G=G.s()}1O(G[0].1g);c B(h)}(C.j);C.Q=b(G){2b{5(/1B|1m/.17(G.e("1A"))||(/1B|1m/).17(G.e("1A-x"))){c G}G=G.s()}1O(G[0].1g);c B(h)}(C.j);5(C.R[0]!=h&&C.R[0].1y!="1x"){C.1N=C.R.a()}5(C.Q[0]!=h&&C.Q[0].1y!="1x"){C.1M=C.Q.a()}},1z:b(E,D){9 F=D.6;9 C=B(4).1f("o");5(C.R[0]!=h&&C.R[0].1y!="1x"){5((C.1N.8+C.R[0].2a)-E.1e<F.V){C.R[0].N=C.R[0].N+F.U}5(E.1e-C.1N.8<F.V){C.R[0].N=C.R[0].N-F.U}}Z{5(E.1e-B(h).N()<F.V){B(h).N(B(h).N()-F.U)}5(B(1d).n()-(E.1e-B(h).N())<F.V){B(h).N(B(h).N()+F.U)}}5(C.Q[0]!=h&&C.Q[0].1y!="1x"){5((C.1M.7+C.Q[0].29)-E.1c<F.V){C.Q[0].M=C.Q[0].M+F.U}5(E.1c-C.1M.7<F.V){C.Q[0].M=C.Q[0].M-F.U}}Z{5(E.1c-B(h).M()<F.V){B(h).M(B(h).M()-F.U)}5(B(1d).m()-(E.1c-B(h).M())<F.V){B(h).M(B(h).M()+F.U)}}}})})(2R)',62,242,'||||this|if|options|left|top|var|offset|function|return|containers|css|items|element|document|containment|currentItem|ui|helper|width|height|sortable|click|placeholder|helperProportions|parent|propagate|offsetParent|item|false|||length||||||||||||parseInt|scrollLeft|scrollTop|containerCache|for|overflowX|overflowY|body|margins|scrollSpeed|scrollSensitivity|true|null|position|else||grid|cursorAt|floating|call|ddmanager||test|opacity|zIndex|over|positionAbs|pageX|window|pageY|data|parentNode|cursor|update|originalPosition|Math|toleranceElement|scroll|start|plugin|stop|appendTo|tolerance|absolute|outerHeight|outerWidth|each|push|HTML|tagName|sort|overflow|auto|add|rearrange|remove|not|prev|clear|axis|undefined|target|isFunction|overflowXOffset|overflowYOffset|while|_opacity|_zIndex|_cursor|guess|refreshPositions|domPosition|revert|change|continue|generatePosition|createPlaceholder||borderTopWidth|borderLeftWidth|right|addClass|refresh|currentContainer|disabled|connectWith|offsetWidth|offsetHeight|do|dropOnEmpty|toArray|serialize|extend|down|direction|visibility|dragging|out|500|animate|dropBehaviour|px|style|contactContainers|type|intersectsWithEdge|convertPositionTo|mouseDrag|round|clone|marginBottom|scrollHeight|max|marginRight|bottom|parents|handle|abs|intersectsWith|div|removeData|refreshItems|pointer|id|attr|key|relative|compareDocumentPosition|contains|browser|jQuery|1000|button|input|cancel|delay|distance|defaults|getter|after|before|append|cancelHelperRemoval|deactivate|receive|50|hide|drop|mouseStop|drag|break|up|dynamic|semi|next|prepareOffsets|current|activate|hidden|scrollWidth|marginTop|marginLeft|both|apply|typeof|mouseStart|andSelf|find|static|mouseCapture|10000|String|constructor|mouseDestroy|unbind|removeClass|destroy|join|_|expression|match|attribute|triggerHandler|sender|absolutePosition|plugins|mouseInit|fixed|float|init|mouse|widget|522|version|safari'.split('|'),0,{}))
+
diff --git a/javascript/libs/jquery/packed/ui/ui.tabs.packed.js b/javascript/libs/jquery/packed/ui/ui.tabs.packed.js
new file mode 100644
index 0000000..9055ecb
--- /dev/null
+++ b/javascript/libs/jquery/packed/ui/ui.tabs.packed.js
@@ -0,0 +1,2 @@
+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}('(4(A){A.39("8.3",{38:4(){2.c.u+=".3";2.1e(1c)},37:4(B,C){5((/^7/).1Z(B)){2.16(C)}m{2.c[B]=C;2.1e()}},i:4(){f 2.$3.i},1E:4(B){f B.24&&B.24.13(/\\s/g,"23").13(/[^A-36-35-9\\-23:\\.]/g,"")||2.c.1Q+A.e(B)},8:4(C,B){f{c:2.c,34:C,1M:B}},1e:4(O){2.$h=A("1i:33(a[n])",2.k);2.$3=2.$h.1s(4(){f A("a",2)[0]});2.$b=A([]);6 P=2,D=2.c;2.$3.V(4(R,Q){5(Q.t&&Q.t.13("#","")){P.$b=P.$b.1b(Q.t)}m{5(A(Q).12("n")!="#"){A.e(Q,"n.3",Q.n);A.e(Q,"p.3",Q.n);6 T=P.1E(Q);Q.n="#"+T;6 S=A("#"+T);5(!S.i){S=A(D.1x).12("1f",T).l(D.18).32(P.$b[R-1]||P.k);S.e("1a.3",1c)}P.$b=P.$b.1b(S)}m{D.d.1U(R+1)}}});5(O){2.k.l(D.1w);2.$b.V(4(){6 Q=A(2);Q.l(D.18)});5(D.7===1p){5(1J.t){2.$3.V(4(S,Q){5(Q.t==1J.t){D.7=S;5(A.W.1g||A.W.31){6 R=A(1J.t),T=R.12("1f");R.12("1f","");1z(4(){R.12("1f",T)},30)}2Z(0,0);f o}})}m{5(D.Y){6 J=2Y(A.Y("8-3"+A.e(P.k)),10);5(J&&P.$3[J]){D.7=J}}m{5(P.$h.z("."+D.j).i){D.7=P.$h.Z(P.$h.z("."+D.j)[0])}}}}D.7=D.7===v||D.7!==1p?D.7:0;D.d=A.2X(D.d.2W(A.1s(2.$h.z("."+D.U),4(R,Q){f P.$h.Z(R)}))).1T();5(A.1r(D.7,D.d)!=-1){D.d.2V(A.1r(D.7,D.d),1)}2.$b.l(D.w);2.$h.q(D.j);5(D.7!==v){2.$b.r(D.7).1G().q(D.w);2.$h.r(D.7).l(D.j);6 K=4(){A(P.k).y("20",[P.8(P.$3[D.7],P.$b[D.7])],D.1G)};5(A.e(2.$3[D.7],"p.3")){2.p(D.7,K)}m{K()}}A(2U).15("2T",4(){P.$3.14(".3");P.$h=P.$3=P.$b=v})}2S(6 G=0,N;N=2.$h[G];G++){A(N)[A.1r(G,D.d)!=-1&&!A(N).11(D.j)?"l":"q"](D.U)}5(D.x===o){2.$3.1m("x.3")}6 C,I,B={"2R-2Q":0,1I:1},E="2P";5(D.X&&D.X.2O==2N){C=D.X[0]||B,I=D.X[1]||B}m{C=I=D.X||B}6 H={1q:"",2M:"",2L:""};5(!A.W.1g){H.1H=""}4 M(R,Q,S){Q.22(C,C.1I||E,4(){Q.l(D.w).1d(H);5(A.W.1g&&C.1H){Q[0].21.z=""}5(S){L(R,S,Q)}})}4 L(R,S,Q){5(I===B){S.1d("1q","1D")}S.22(I,I.1I||E,4(){S.q(D.w).1d(H);5(A.W.1g&&I.1H){S[0].21.z=""}A(P.k).y("20",[P.8(R,S[0])],D.1G)})}4 F(R,T,Q,S){T.l(D.j).2K().q(D.j);M(R,Q,S)}2.$3.14(".3").15(D.u,4(){6 T=A(2).2J("1i:r(0)"),Q=P.$b.z(":2I"),S=A(2.t);5((T.11(D.j)&&!D.1h)||T.11(D.U)||A(2).11(D.17)||A(P.k).y("2H",[P.8(2,S[0])],D.16)===o){2.1t();f o}P.c.7=P.$3.Z(2);5(D.1h){5(T.11(D.j)){P.c.7=v;T.q(D.j);P.$b.1F();M(2,Q);2.1t();f o}m{5(!Q.i){P.$b.1F();6 R=2;P.p(P.$3.Z(2),4(){T.l(D.j).l(D.1v);L(R,S)});2.1t();f o}}}5(D.Y){A.Y("8-3"+A.e(P.k),P.c.7,D.Y)}P.$b.1F();5(S.i){6 R=2;P.p(P.$3.Z(2),Q.i?4(){F(R,T,Q,S)}:4(){T.l(D.j);L(R,S)})}m{2G"1K 2F 2E: 2D 2C 2B."}5(A.W.1g){2.1t()}f o});5(!(/^1y/).1Z(D.u)){2.$3.15("1y.3",4(){f o})}},1b:4(E,D,C){5(C==1p){C=2.$3.i}6 G=2.c;6 I=A(G.1P.13(/#\\{n\\}/g,E).13(/#\\{1j\\}/g,D));I.e("1a.3",1c);6 H=E.2A("#")==0?E.13("#",""):2.1E(A("a:2z-2y",I)[0]);6 F=A("#"+H);5(!F.i){F=A(G.1x).12("1f",H).l(G.w).e("1a.3",1c)}F.l(G.18);5(C>=2.$h.i){I.1Y(2.k);F.1Y(2.k[0].2x)}m{I.1X(2.$h[C]);F.1X(2.$b[C])}G.d=A.1s(G.d,4(K,J){f K>=C?++K:K});2.1e();5(2.$3.i==1){I.l(G.j);F.q(G.w);6 B=A.e(2.$3[0],"p.3");5(B){2.p(C,B)}}2.k.y("2w",[2.8(2.$3[C],2.$b[C])],G.1b)},19:4(B){6 D=2.c,E=2.$h.r(B).19(),C=2.$b.r(B).19();5(E.11(D.j)&&2.$3.i>1){2.16(B+(B+1<2.$3.i?1:-1))}D.d=A.1s(A.1W(D.d,4(G,F){f G!=B}),4(G,F){f G>=B?--G:G});2.1e();2.k.y("2v",[2.8(E.1C("a")[0],C[0])],D.19)},1V:4(B){6 C=2.c;5(A.1r(B,C.d)==-1){f}6 D=2.$h.r(B).q(C.U);5(A.W.2u){D.1d("1q","2t-1D");1z(4(){D.1d("1q","1D")},0)}C.d=A.1W(C.d,4(F,E){f F!=B});2.k.y("2s",[2.8(2.$3[B],2.$b[B])],C.1V)},1S:4(C){6 B=2,D=2.c;5(C!=D.7){2.$h.r(C).l(D.U);D.d.1U(C);D.d.1T();2.k.y("2r",[2.8(2.$3[C],2.$b[C])],D.1S)}},16:4(B){5(2q B=="2p"){B=2.$3.Z(2.$3.z("[n$="+B+"]")[0])}2.$3.r(B).2o(2.c.u)},p:4(G,K){6 L=2,D=2.c,E=2.$3.r(G),J=E[0],H=K==1p||K===o,B=E.e("p.3");K=K||4(){};5(!B||!H&&A.e(J,"x.3")){K();f}6 M=4(N){6 O=A(N),P=O.1C("*:2n");f P.i&&P||O};6 C=4(){L.$3.z("."+D.17).q(D.17).V(4(){5(D.1l){M(2).2m().1o(M(2).e("1j.3"))}});L.1n=v};5(D.1l){6 I=M(J).1o();M(J).2l("<1B></1B>").1C("1B").e("1j.3",I).1o(D.1l)}6 F=A.1L({},D.1k,{1R:B,1A:4(O,N){A(J.t).1o(O);C();5(D.x){A.e(J,"x.3",1c)}A(L.k).y("2k",[L.8(L.$3[G],L.$b[G])],D.p);D.1k.1A&&D.1k.1A(O,N);K()}});5(2.1n){2.1n.2j();C()}E.l(D.17);1z(4(){L.1n=A.2i(F)},0)},1R:4(C,B){2.$3.r(C).1m("x.3").e("p.3",B)},1a:4(){6 B=2.c;2.k.14(".3").q(B.1w).1m("3");2.$3.V(4(){6 C=A.e(2,"n.3");5(C){2.n=C}6 D=A(2).14(".3");A.V(["n","p","x"],4(E,F){D.1m(F+".3")})});2.$h.1b(2.$b).V(4(){5(A.e(2,"1a.3")){A(2).19()}m{A(2).q([B.j,B.1v,B.U,B.18,B.w].2h(" "))}})}});A.8.3.2g={1h:o,u:"1y",d:[],Y:v,1l:"2f&#2e;",x:o,1Q:"8-3-",1k:{},X:v,1P:\'<1i><a n="#{n}"><1O>#{1j}</1O></a></1i>\',1x:"<1N></1N>",1w:"8-3-2d",j:"8-3-7",1v:"8-3-1h",U:"8-3-d",18:"8-3-1M",w:"8-3-2c",17:"8-3-2b"};A.8.3.2a="i";A.1L(A.8.3.29,{1u:v,28:4(C,F){F=F||o;6 B=2,E=2.c.7;4 G(){B.1u=27(4(){E=++E<B.$3.i?E:0;B.16(E)},C)}4 D(H){5(!H||H.26){25(B.1u)}}5(C){G();5(!F){2.$3.15(2.c.u,D)}m{2.$3.15(2.c.u,4(){D();E=B.c.7;G()})}}m{D();2.$3.14(2.c.u,D)}}})})(1K)',62,196,'||this|tabs|function|if|var|selected|ui|||panels|options|disabled|data|return||lis|length|selectedClass|element|addClass|else|href|false|load|removeClass|eq||hash|event|null|hideClass|cache|triggerHandler|filter|||||||||||||||||||||disabledClass|each|browser|fx|cookie|index||hasClass|attr|replace|unbind|bind|select|loadingClass|panelClass|remove|destroy|add|true|css|tabify|id|msie|unselect|li|label|ajaxOptions|spinner|removeData|xhr|html|undefined|display|inArray|map|blur|rotation|unselectClass|navClass|panelTemplate|click|setTimeout|success|em|find|block|tabId|stop|show|opacity|duration|location|jQuery|extend|panel|div|span|tabTemplate|idPrefix|url|disable|sort|push|enable|grep|insertBefore|appendTo|test|tabsshow|style|animate|_|title|clearInterval|clientX|setInterval|rotate|prototype|getter|loading|hide|nav|8230|Loading|defaults|join|ajax|abort|tabsload|wrapInner|parent|last|trigger|string|typeof|tabsdisable|tabsenable|inline|safari|tabsremove|tabsadd|parentNode|child|first|indexOf|identifier|fragment|Mismatching|Tabs|UI|throw|tabsselect|visible|parents|siblings|height|overflow|Array|constructor|normal|width|min|for|unload|window|splice|concat|unique|parseInt|scrollTo|500|opera|insertAfter|has|tab|z0|Za|setData|init|widget'.split('|'),0,{}))
+