jQuery.ui||function(c){c.ui={version:"1.8",plugin:{add:function(a,d,e){a=c.ui[a].prototype;for(var b in e){a.plugins[b]=a.plugins[b]||[];a.plugins[b].push([d,e[b]])}},call:function(a,d,e){if((d=a.plugins[d])&&a.element[0].parentNode)for(var b=0;b<d.length;b++)a.options[d[b][0]]&&d[b][1].apply(a.element,e)}},contains:function(a,d){return document.compareDocumentPosition?a.compareDocumentPosition(d)&16:a!==d&&a.contains(d)},hasScroll:function(a,d){if(c(a).css("overflow")=="hidden")return false;var e=
d&&d=="left"?"scrollLeft":"scrollTop",b=false;if(a[e]>0)return true;a[e]=1;b=a[e]>0;a[e]=0;return b},isOverAxis:function(a,d,e){return a>d&&a<d+e},isOver:function(a,d,e,b,f,g){return c.ui.isOverAxis(a,e,f)&&c.ui.isOverAxis(d,b,g)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,
SHIFT:16,SPACE:32,TAB:9,UP:38}};c.fn.extend({_focus:c.fn.focus,focus:function(a,d){return typeof a==="number"?this.each(function(){var e=this;setTimeout(function(){c(e).focus();d&&d.call(e)},a)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var a;
a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||
!a.length?c(document):a},zIndex:function(a){if(a!==undefined)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var d;a.length&&a[0]!==document;){d=a.css("position");if(d=="absolute"||d=="relative"||d=="fixed"){d=parseInt(a.css("zIndex"));if(!isNaN(d)&&d!=0)return d}a=a.parent()}}return 0}});c.extend(c.expr[":"],{data:function(a,d,e){return!!c.data(a,e[3])},focusable:function(a){var d=a.nodeName.toLowerCase(),e=c.attr(a,"tabindex");return(/input|select|textarea|button|object/.test(d)?!a.disabled:
"a"==d||"area"==d?a.href||!isNaN(e):!isNaN(e))&&!c(a)["area"==d?"parents":"closest"](":hidden").length},tabbable:function(a){var d=c.attr(a,"tabindex");return(isNaN(d)||d>=0)&&c(a).is(":focusable")}})}(jQuery);
(function(c){var a=c.fn.remove;c.fn.remove=function(d,e){return this.each(function(){if(!e)if(!d||c.filter(d,[this]).length)c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return a.call(c(this),d,e)})};c.widget=function(d,e,b){var f=d.split(".")[0],g;d=d.split(".")[1];g=f+"-"+d;if(!b){b=e;e=c.Widget}c.expr[":"][g]=function(i){return!!c.data(i,d)};c[f]=c[f]||{};c[f][d]=function(i,l){arguments.length&&this._createWidget(i,l)};e=new e;e.options=c.extend({},e.options);c[f][d].prototype=
c.extend(true,e,{namespace:f,widgetName:d,widgetEventPrefix:c[f][d].prototype.widgetEventPrefix||d,widgetBaseClass:g},b);c.widget.bridge(d,c[f][d])};c.widget.bridge=function(d,e){c.fn[d]=function(b){var f=typeof b==="string",g=Array.prototype.slice.call(arguments,1),i=this;b=!f&&g.length?c.extend.apply(null,[true,b].concat(g)):b;if(f&&b.substring(0,1)==="_")return i;f?this.each(function(){var l=c.data(this,d),j=l&&c.isFunction(l[b])?l[b].apply(l,g):l;if(j!==l&&j!==undefined){i=j;return false}}):this.each(function(){var l=
c.data(this,d);if(l){b&&l.option(b);l._init()}else c.data(this,d,new e(b,this))});return i}};c.Widget=function(d,e){arguments.length&&this._createWidget(d,e)};c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(d,e){this.element=c(e).data(this.widgetName,this);this.options=c.extend(true,{},this.options,c.metadata&&c.metadata.get(e)[this.widgetName],d);var b=this;this.element.bind("remove."+this.widgetName,function(){b.destroy()});this._create();
this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled")},widget:function(){return this.element},option:function(d,e){var b=d,f=this;if(arguments.length===0)return c.extend({},f.options);if(typeof d==="string"){if(e===undefined)return this.options[d];b={};b[d]=e}c.each(b,
function(g,i){f._setOption(g,i)});return f},_setOption:function(d,e){this.options[d]=e;if(d==="disabled")this.widget()[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",e);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(d,e,b){var f=this.options[d];e=c.Event(e);e.type=(d===this.widgetEventPrefix?d:this.widgetEventPrefix+d).toLowerCase();
b=b||{};if(e.originalEvent){d=c.event.props.length;for(var g;d;){g=c.event.props[--d];e[g]=e.originalEvent[g]}}this.element.trigger(e,b);return!(c.isFunction(f)&&f.call(this.element[0],e,b)===false||e.isDefaultPrevented())}}})(jQuery);
(function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(d){return a._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(a._preventClickEvent){a._preventClickEvent=false;d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=a.originalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&
this._mouseUp(a);this._mouseDownEvent=a;var d=this,e=a.which==1,b=typeof this.options.cancel=="string"?c(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!e||b||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true},this.options.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=this._mouseStart(a)!==false;if(!this._mouseStarted){a.preventDefault();
return true}}this._mouseMoveDelegate=function(f){return d._mouseMove(f)};this._mouseUpDelegate=function(f){return d._mouseUp(f)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.browser.safari||a.preventDefault();return a.originalEvent.mouseHandled=true}},_mouseMove:function(a){if(c.browser.msie&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&
this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=a.target==this._mouseDownEvent.target;this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-
a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);
(function(c){c.ui=c.ui||{};var a=/left|center|right/,d=/top|center|bottom/,e=c.fn.position,b=c.fn.offset;c.fn.position=function(f){if(!f||!f.of)return e.apply(this,arguments);f=c.extend({},f);var g=c(f.of),i=(f.collision||"flip").split(" "),l=f.offset?f.offset.split(" "):[0,0],j,h,k;if(f.of.nodeType===9){j=g.width();h=g.height();k={top:0,left:0}}else if(f.of.scrollTo&&f.of.document){j=g.width();h=g.height();k={top:g.scrollTop(),left:g.scrollLeft()}}else if(f.of.preventDefault){f.at="left top";j=h=
0;k={top:f.of.pageY,left:f.of.pageX}}else{j=g.outerWidth();h=g.outerHeight();k=g.offset()}c.each(["my","at"],function(){var m=(f[this]||"").split(" ");if(m.length===1)m=a.test(m[0])?m.concat(["center"]):d.test(m[0])?["center"].concat(m):["center","center"];m[0]=a.test(m[0])?m[0]:"center";m[1]=d.test(m[1])?m[1]:"center";f[this]=m});if(i.length===1)i[1]=i[0];l[0]=parseInt(l[0],10)||0;if(l.length===1)l[1]=l[0];l[1]=parseInt(l[1],10)||0;if(f.at[0]==="right")k.left+=j;else if(f.at[0]==="center")k.left+=
j/2;if(f.at[1]==="bottom")k.top+=h;else if(f.at[1]==="center")k.top+=h/2;k.left+=l[0];k.top+=l[1];return this.each(function(){var m=c(this),n=m.outerWidth(),o=m.outerHeight(),p=c.extend({},k);if(f.my[0]==="right")p.left-=n;else if(f.my[0]==="center")p.left-=n/2;if(f.my[1]==="bottom")p.top-=o;else if(f.my[1]==="center")p.top-=o/2;c.each(["left","top"],function(q,r){c.ui.position[i[q]]&&c.ui.position[i[q]][r](p,{targetWidth:j,targetHeight:h,elemWidth:n,elemHeight:o,offset:l,my:f.my,at:f.at})});c.fn.bgiframe&&
m.bgiframe();m.offset(c.extend(p,{using:f.using}))})};c.ui.position={fit:{left:function(f,g){var i=c(window);i=f.left+g.elemWidth-i.width()-i.scrollLeft();f.left=i>0?f.left-i:Math.max(0,f.left)},top:function(f,g){var i=c(window);i=f.top+g.elemHeight-i.height()-i.scrollTop();f.top=i>0?f.top-i:Math.max(0,f.top)}},flip:{left:function(f,g){if(g.at[0]!=="center"){var i=c(window);i=f.left+g.elemWidth-i.width()-i.scrollLeft();var l=g.my[0]==="left"?-g.elemWidth:g.my[0]==="right"?g.elemWidth:0,j=-2*g.offset[0];
f.left+=f.left<0?l+g.targetWidth+j:i>0?l-g.targetWidth+j:0}},top:function(f,g){if(g.at[1]!=="center"){var i=c(window);i=f.top+g.elemHeight-i.height()-i.scrollTop();var l=g.my[1]==="top"?-g.elemHeight:g.my[1]==="bottom"?g.elemHeight:0,j=g.at[1]==="top"?g.targetHeight:-g.targetHeight,h=-2*g.offset[1];f.top+=f.top<0?l+g.targetHeight+h:i>0?l+j+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(f,g){if(/static/.test(c.curCSS(f,"position")))f.style.position="relative";var i=c(f),l=i.offset(),j=
parseInt(c.curCSS(f,"top",true),10)||0,h=parseInt(c.curCSS(f,"left",true),10)||0;l={top:g.top-l.top+j,left:g.left-l.left+h};"using"in g?g.using.call(f,l):i.css(l)};c.fn.offset=function(f){var g=this[0];if(!g||!g.ownerDocument)return null;if(f)return this.each(function(){c.offset.setOffset(this,f)});return b.call(this)}}})(jQuery);
(function(c){c.widget("ui.draggable",c.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper==
"original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var d=
this.options;if(this.helper||d.disabled||c(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;return true},_mouseStart:function(a){var d=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(c.ui.ddmanager)c.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-
this.margins.top,left:this.offset.left-this.margins.left};c.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);d.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();
c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,d){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!d){var e=this._uiHash();if(this._trigger("drag",a,e)===false){this._mouseUp({});return false}this.position=e.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";c.ui.ddmanager&&c.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var d=false;if(c.ui.ddmanager&&!this.options.dropBehaviour)d=c.ui.ddmanager.drop(this,a);if(this.dropped){d=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===true||c.isFunction(this.options.revert)&&this.options.revert.call(this.element,
d)){var e=this;c(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){e._trigger("stop",a)!==false&&e._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var d=!this.options.handle||!c(this.options.handle,this.element).length?true:false;c(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
a.target)d=true});return d},_createHelper:function(a){var d=this.options;a=c.isFunction(d.helper)?c(d.helper.apply(this.element[0],[a])):d.helper=="clone"?this.element.clone():this.element;a.parents("body").length||a.appendTo(d.appendTo=="parent"?this.element[0].parentNode:d.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(c.isArray(a))a={left:+a[0],top:+a[1]||
0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],
this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&c.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-
(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment==
"parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,c(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(c(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&
a.containment.constructor!=Array){var d=c(a.containment)[0];if(d){a=c(a.containment).offset();var e=c(d).css("overflow")!="hidden";this.containment=[a.left+(parseInt(c(d).css("borderLeftWidth"),10)||0)+(parseInt(c(d).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(c(d).css("borderTopWidth"),10)||0)+(parseInt(c(d).css("paddingTop"),10)||0)-this.margins.top,a.left+(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c(d).css("borderLeftWidth"),10)||0)-(parseInt(c(d).css("paddingRight"),
10)||0)-this.helperProportions.width-this.margins.left,a.top+(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c(d).css("borderTopWidth"),10)||0)-(parseInt(c(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,d){if(!d)d=this.position;var e=a=="absolute"?1:-1,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(b[0].tagName);return{top:d.top+this.offset.relative.top*e+this.offset.parent.top*e-(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:b.scrollTop())*e),left:d.left+this.offset.relative.left*e+this.offset.parent.left*e-(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
f?0:b.scrollLeft())*e)}},_generatePosition:function(a){var d=this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(e[0].tagName),f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+
this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(d.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/d.grid[1])*d.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-d.grid[1]:g+d.grid[1]:g;f=this.originalPageX+
Math.round((f-this.originalPageX)/d.grid[0])*d.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-d.grid[0]:f+d.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:e.scrollTop()),left:f-this.offset.click.left-
this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&c.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():b?0:e.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,d,e){e=e||this._uiHash();c.ui.plugin.call(this,a,[d,e]);if(a=="drag")this.positionAbs=
this._convertPositionTo("absolute");return c.Widget.prototype._trigger.call(this,a,d,e)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});c.extend(c.ui.draggable,{version:"1.8"});c.ui.plugin.add("draggable","connectToSortable",{start:function(a,d){var e=c(this).data("draggable"),b=e.options,f=c.extend({},d,{item:e.element});e.sortables=[];c(b.connectToSortable).each(function(){var g=c.data(this,"sortable");
if(g&&!g.options.disabled){e.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",a,f)}})},stop:function(a,d){var e=c(this).data("draggable"),b=c.extend({},d,{item:e.element});c.each(e.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;e.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert)this.instance.options.revert=true;this.instance._mouseStop(a);this.instance.options.helper=this.instance.options._helper;
e.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",a,b)}})},drag:function(a,d){var e=c(this).data("draggable"),b=this;c.each(e.sortables,function(){this.instance.positionAbs=e.positionAbs;this.instance.helperProportions=e.helperProportions;this.instance.offset.click=e.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=
1;this.instance.currentItem=c(b).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=e.offset.click.top;this.instance.offset.click.left=e.offset.click.left;this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top;e._trigger("toSortable",a);e.dropped=this.instance.element;e.currentItem=e.element;this.instance.fromOutside=e}this.instance.currentItem&&this.instance._mouseDrag(a)}else if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",a,this.instance._uiHash(this.instance));this.instance._mouseStop(a,true);this.instance.options.helper=
this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();e._trigger("fromSortable",a);e.dropped=false}})}});c.ui.plugin.add("draggable","cursor",{start:function(){var a=c("body"),d=c(this).data("draggable").options;if(a.css("cursor"))d._cursor=a.css("cursor");a.css("cursor",d.cursor)},stop:function(){var a=c(this).data("draggable").options;a._cursor&&c("body").css("cursor",a._cursor)}});c.ui.plugin.add("draggable","iframeFix",{start:function(){var a=
c(this).data("draggable").options;c(a.iframeFix===true?"iframe":a.iframeFix).each(function(){c('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(c(this).offset()).appendTo("body")})},stop:function(){c("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});c.ui.plugin.add("draggable","opacity",{start:function(a,d){var e=c(d.helper),
b=c(this).data("draggable").options;if(e.css("opacity"))b._opacity=e.css("opacity");e.css("opacity",b.opacity)},stop:function(a,d){var e=c(this).data("draggable").options;e._opacity&&c(d.helper).css("opacity",e._opacity)}});c.ui.plugin.add("draggable","scroll",{start:function(){var a=c(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var d=c(this).data("draggable"),e=d.options,b=false;if(d.scrollParent[0]!=
document&&d.scrollParent[0].tagName!="HTML"){if(!e.axis||e.axis!="x")if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-a.pageY<e.scrollSensitivity)d.scrollParent[0].scrollTop=b=d.scrollParent[0].scrollTop+e.scrollSpeed;else if(a.pageY-d.overflowOffset.top<e.scrollSensitivity)d.scrollParent[0].scrollTop=b=d.scrollParent[0].scrollTop-e.scrollSpeed;if(!e.axis||e.axis!="y")if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-a.pageX<e.scrollSensitivity)d.scrollParent[0].scrollLeft=b=d.scrollParent[0].scrollLeft+
e.scrollSpeed;else if(a.pageX-d.overflowOffset.left<e.scrollSensitivity)d.scrollParent[0].scrollLeft=b=d.scrollParent[0].scrollLeft-e.scrollSpeed}else{if(!e.axis||e.axis!="x")if(a.pageY-c(document).scrollTop()<e.scrollSensitivity)b=c(document).scrollTop(c(document).scrollTop()-e.scrollSpeed);else if(c(window).height()-(a.pageY-c(document).scrollTop())<e.scrollSensitivity)b=c(document).scrollTop(c(document).scrollTop()+e.scrollSpeed);if(!e.axis||e.axis!="y")if(a.pageX-c(document).scrollLeft()<e.scrollSensitivity)b=
c(document).scrollLeft(c(document).scrollLeft()-e.scrollSpeed);else if(c(window).width()-(a.pageX-c(document).scrollLeft())<e.scrollSensitivity)b=c(document).scrollLeft(c(document).scrollLeft()+e.scrollSpeed)}b!==false&&c.ui.ddmanager&&!e.dropBehaviour&&c.ui.ddmanager.prepareOffsets(d,a)}});c.ui.plugin.add("draggable","snap",{start:function(){var a=c(this).data("draggable"),d=a.options;a.snapElements=[];c(d.snap.constructor!=String?d.snap.items||":data(draggable)":d.snap).each(function(){var e=c(this),
b=e.offset();this!=a.element[0]&&a.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:b.top,left:b.left})})},drag:function(a,d){for(var e=c(this).data("draggable"),b=e.options,f=b.snapTolerance,g=d.offset.left,i=g+e.helperProportions.width,l=d.offset.top,j=l+e.helperProportions.height,h=e.snapElements.length-1;h>=0;h--){var k=e.snapElements[h].left,m=k+e.snapElements[h].width,n=e.snapElements[h].top,o=n+e.snapElements[h].height;if(k-f<g&&g<m+f&&n-f<l&&l<o+f||k-f<g&&g<m+f&&
n-f<j&&j<o+f||k-f<i&&i<m+f&&n-f<l&&l<o+f||k-f<i&&i<m+f&&n-f<j&&j<o+f){if(b.snapMode!="inner"){var p=Math.abs(n-j)<=f,q=Math.abs(o-l)<=f,r=Math.abs(k-i)<=f,s=Math.abs(m-g)<=f;if(p)d.position.top=e._convertPositionTo("relative",{top:n-e.helperProportions.height,left:0}).top-e.margins.top;if(q)d.position.top=e._convertPositionTo("relative",{top:o,left:0}).top-e.margins.top;if(r)d.position.left=e._convertPositionTo("relative",{top:0,left:k-e.helperProportions.width}).left-e.margins.left;if(s)d.position.left=
e._convertPositionTo("relative",{top:0,left:m}).left-e.margins.left}var u=p||q||r||s;if(b.snapMode!="outer"){p=Math.abs(n-l)<=f;q=Math.abs(o-j)<=f;r=Math.abs(k-g)<=f;s=Math.abs(m-i)<=f;if(p)d.position.top=e._convertPositionTo("relative",{top:n,left:0}).top-e.margins.top;if(q)d.position.top=e._convertPositionTo("relative",{top:o-e.helperProportions.height,left:0}).top-e.margins.top;if(r)d.position.left=e._convertPositionTo("relative",{top:0,left:k}).left-e.margins.left;if(s)d.position.left=e._convertPositionTo("relative",
{top:0,left:m-e.helperProportions.width}).left-e.margins.left}if(!e.snapElements[h].snapping&&(p||q||r||s||u))e.options.snap.snap&&e.options.snap.snap.call(e.element,a,c.extend(e._uiHash(),{snapItem:e.snapElements[h].item}));e.snapElements[h].snapping=p||q||r||s||u}else{e.snapElements[h].snapping&&e.options.snap.release&&e.options.snap.release.call(e.element,a,c.extend(e._uiHash(),{snapItem:e.snapElements[h].item}));e.snapElements[h].snapping=false}}}});c.ui.plugin.add("draggable","stack",{start:function(){var a=
c(this).data("draggable").options;a=c.makeArray(c(a.stack)).sort(function(e,b){return(parseInt(c(e).css("zIndex"),10)||0)-(parseInt(c(b).css("zIndex"),10)||0)});if(a.length){var d=parseInt(a[0].style.zIndex)||0;c(a).each(function(e){this.style.zIndex=d+e});this[0].style.zIndex=d+a.length}}});c.ui.plugin.add("draggable","zIndex",{start:function(a,d){var e=c(d.helper),b=c(this).data("draggable").options;if(e.css("zIndex"))b._zIndex=e.css("zIndex");e.css("zIndex",b.zIndex)},stop:function(a,d){var e=
c(this).data("draggable").options;e._zIndex&&c(d.helper).css("zIndex",e._zIndex)}})})(jQuery);
(function(c){c.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var a=this.options,d=a.accept;this.isover=0;this.isout=1;this.accept=c.isFunction(d)?d:function(e){return e.is(d)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};c.ui.ddmanager.droppables[a.scope]=c.ui.ddmanager.droppables[a.scope]||[];c.ui.ddmanager.droppables[a.scope].push(this);
a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var a=c.ui.ddmanager.droppables[this.options.scope],d=0;d<a.length;d++)a[d]==this&&a.splice(d,1);this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(a,d){if(a=="accept")this.accept=c.isFunction(d)?d:function(e){return e.is(d)};c.Widget.prototype._setOption.apply(this,arguments)},_activate:function(a){var d=c.ui.ddmanager.current;this.options.activeClass&&
this.element.addClass(this.options.activeClass);d&&this._trigger("activate",a,this.ui(d))},_deactivate:function(a){var d=c.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);d&&this._trigger("deactivate",a,this.ui(d))},_over:function(a){var d=c.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);
this._trigger("over",a,this.ui(d))}},_out:function(a){var d=c.ui.ddmanager.current;if(!(!d||(d.currentItem||d.element)[0]==this.element[0]))if(this.accept.call(this.element[0],d.currentItem||d.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",a,this.ui(d))}},_drop:function(a,d){var e=d||c.ui.ddmanager.current;if(!e||(e.currentItem||e.element)[0]==this.element[0])return false;var b=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var f=
c.data(this,"droppable");if(f.options.greedy&&!f.options.disabled&&f.options.scope==e.options.scope&&f.accept.call(f.element[0],e.currentItem||e.element)&&c.ui.intersect(e,c.extend(f,{offset:f.element.offset()}),f.options.tolerance)){b=true;return false}});if(b)return false;if(this.accept.call(this.element[0],e.currentItem||e.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",
a,this.ui(e));return this.element}return false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}});c.extend(c.ui.droppable,{version:"1.8"});c.ui.intersect=function(a,d,e){if(!d.offset)return false;var b=(a.positionAbs||a.position.absolute).left,f=b+a.helperProportions.width,g=(a.positionAbs||a.position.absolute).top,i=g+a.helperProportions.height,l=d.offset.left,j=l+d.proportions.width,h=d.offset.top,k=h+d.proportions.height;switch(e){case "fit":return l<
b&&f<j&&h<g&&i<k;case "intersect":return l<b+a.helperProportions.width/2&&f-a.helperProportions.width/2<j&&h<g+a.helperProportions.height/2&&i-a.helperProportions.height/2<k;case "pointer":return c.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.offset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset||a.offset.click).left,h,l,d.proportions.height,d.proportions.width);case "touch":return(g>=h&&g<=k||i>=h&&i<=k||g<h&&i>k)&&(b>=l&&b<=j||f>=l&&f<=j||b<l&&f>j);default:return false}};
c.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(a,d){var e=c.ui.ddmanager.droppables[a.options.scope]||[],b=d?d.type:null,f=(a.currentItem||a.element).find(":data(droppable)").andSelf(),g=0;a:for(;g<e.length;g++)if(!(e[g].options.disabled||a&&!e[g].accept.call(e[g].element[0],a.currentItem||a.element))){for(var i=0;i<f.length;i++)if(f[i]==e[g].element[0]){e[g].proportions.height=0;continue a}e[g].visible=e[g].element.css("display")!="none";if(e[g].visible){e[g].offset=
e[g].element.offset();e[g].proportions={width:e[g].element[0].offsetWidth,height:e[g].element[0].offsetHeight};b=="mousedown"&&e[g]._activate.call(e[g],d)}}},drop:function(a,d){var e=false;c.each(c.ui.ddmanager.droppables[a.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&c.ui.intersect(a,this,this.options.tolerance))e=e||this._drop.call(this,d);if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],a.currentItem||a.element)){this.isout=1;
this.isover=0;this._deactivate.call(this,d)}}});return e},drag:function(a,d){a.options.refreshPositions&&c.ui.ddmanager.prepareOffsets(a,d);c.each(c.ui.ddmanager.droppables[a.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var e=c.ui.intersect(a,this,this.options.tolerance);if(e=!e&&this.isover==1?"isout":e&&this.isover==0?"isover":null){var b;if(this.options.greedy){var f=this.element.parents(":data(droppable):eq(0)");if(f.length){b=c.data(f[0],"droppable");
b.greedyChild=e=="isover"?1:0}}if(b&&e=="isover"){b.isover=0;b.isout=1;b._out.call(b,d)}this[e]=1;this[e=="isout"?"isover":"isout"]=0;this[e=="isover"?"_over":"_out"].call(this,d);if(b&&e=="isout"){b.isout=0;b.isover=1;b._over.call(b,d)}}}})}}})(jQuery);
(function(c){c.widget("ui.resizable",c.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var e=this,b=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!b.aspectRatio,aspectRatio:b.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:b.helper||b.ghost||b.animate?b.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&c.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(c('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),
top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=
this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=b.handles||(!c(".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(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var f=this.handles.split(",");this.handles={};for(var g=0;g<f.length;g++){var i=c.trim(f[g]),l=c('<div class="ui-resizable-handle '+("ui-resizable-"+i)+'"></div>');/sw|se|ne|nw/.test(i)&&l.css({zIndex:++b.zIndex});"se"==i&&l.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[i]=".ui-resizable-"+i;this.element.append(l)}}this._renderAxis=function(j){j=j||this.element;for(var h in this.handles){if(this.handles[h].constructor==
String)this.handles[h]=c(this.handles[h],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var k=c(this.handles[h],this.element),m=0;m=/sw|ne|nw|se|n|s/.test(h)?k.outerHeight():k.outerWidth();k=["padding",/ne|nw|n/.test(h)?"Top":/se|sw|s/.test(h)?"Bottom":/^e$/.test(h)?"Right":"Left"].join("");j.css(k,m);this._proportionallyResize()}c(this.handles[h])}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!e.resizing){if(this.className)var j=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);e.axis=j&&j[1]?j[1]:"se"}});if(b.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");e._handles.show()},function(){if(!e.resizing){c(this).addClass("ui-resizable-autohide");e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(f){c(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){e(this.element);var b=this.element;b.after(this.originalElement.css({position:b.css("position"),width:b.outerWidth(),height:b.outerHeight(),top:b.css("top"),left:b.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(e){var b=false,f;for(f in this.handles)if(c(this.handles[f])[0]==e.target)b=true;return!this.options.disabled&&b},_mouseStart:function(e){var b=this.options,f=this.element.position(),
g=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(g.is(".ui-draggable")||/absolute/.test(g.css("position")))g.css({position:"absolute",top:f.top,left:f.left});c.browser.opera&&/relative/.test(g.css("position"))&&g.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();f=a(this.helper.css("left"));var i=a(this.helper.css("top"));if(b.containment){f+=c(b.containment).scrollLeft()||0;i+=c(b.containment).scrollTop()||0}this.offset=
this.helper.offset();this.position={left:f,top:i};this.size=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalSize=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()};this.originalPosition={left:f,top:i};this.sizeDiff={width:g.outerWidth()-g.width(),height:g.outerHeight()-g.height()};this.originalMousePosition={left:e.pageX,top:e.pageY};this.aspectRatio=typeof b.aspectRatio=="number"?b.aspectRatio:
this.originalSize.width/this.originalSize.height||1;b=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",b=="auto"?this.axis+"-resize":b);g.addClass("ui-resizable-resizing");this._propagate("start",e);return true},_mouseDrag:function(e){var b=this.helper,f=this.originalMousePosition,g=this._change[this.axis];if(!g)return false;f=g.apply(this,[e,e.pageX-f.left||0,e.pageY-f.top||0]);if(this._aspectRatio||e.shiftKey)f=this._updateRatio(f,e);f=this._respectSize(f,e);this._propagate("resize",
e);b.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(f);this._trigger("resize",e,this.ui());return false},_mouseStop:function(e){this.resizing=false;var b=this.options;if(this._helper){var f=this._proportionallyResizeElements,g=f.length&&/textarea/i.test(f[0].nodeName);f=g&&c.ui.hasScroll(f[0],"left")?0:this.sizeDiff.height;
g={width:this.size.width-(g?0:this.sizeDiff.width),height:this.size.height-f};f=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null;var i=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null;b.animate||this.element.css(c.extend(g,{top:i,left:f}));this.helper.height(this.size.height);this.helper.width(this.size.width);this._helper&&!b.animate&&this._proportionallyResize()}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");
this._propagate("stop",e);this._helper&&this.helper.remove();return false},_updateCache:function(e){this.offset=this.helper.offset();if(d(e.left))this.position.left=e.left;if(d(e.top))this.position.top=e.top;if(d(e.height))this.size.height=e.height;if(d(e.width))this.size.width=e.width},_updateRatio:function(e){var b=this.position,f=this.size,g=this.axis;if(e.height)e.width=f.height*this.aspectRatio;else if(e.width)e.height=f.width/this.aspectRatio;if(g=="sw"){e.left=b.left+(f.width-e.width);e.top=
null}if(g=="nw"){e.top=b.top+(f.height-e.height);e.left=b.left+(f.width-e.width)}return e},_respectSize:function(e){var b=this.options,f=this.axis,g=d(e.width)&&b.maxWidth&&b.maxWidth<e.width,i=d(e.height)&&b.maxHeight&&b.maxHeight<e.height,l=d(e.width)&&b.minWidth&&b.minWidth>e.width,j=d(e.height)&&b.minHeight&&b.minHeight>e.height;if(l)e.width=b.minWidth;if(j)e.height=b.minHeight;if(g)e.width=b.maxWidth;if(i)e.height=b.maxHeight;var h=this.originalPosition.left+this.originalSize.width,k=this.position.top+
this.size.height,m=/sw|nw|w/.test(f);f=/nw|ne|n/.test(f);if(l&&m)e.left=h-b.minWidth;if(g&&m)e.left=h-b.maxWidth;if(j&&f)e.top=k-b.minHeight;if(i&&f)e.top=k-b.maxHeight;if((b=!e.width&&!e.height)&&!e.left&&e.top)e.top=null;else if(b&&!e.top&&e.left)e.left=null;return e},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e=this.helper||this.element,b=0;b<this._proportionallyResizeElements.length;b++){var f=this._proportionallyResizeElements[b];if(!this.borderDif){var g=
[f.css("borderTopWidth"),f.css("borderRightWidth"),f.css("borderBottomWidth"),f.css("borderLeftWidth")],i=[f.css("paddingTop"),f.css("paddingRight"),f.css("paddingBottom"),f.css("paddingLeft")];this.borderDif=c.map(g,function(l,j){var h=parseInt(l,10)||0,k=parseInt(i[j],10)||0;return h+k})}c.browser.msie&&(c(e).is(":hidden")||c(e).parents(":hidden").length)||f.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var e=
this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var b=c.browser.msie&&c.browser.version<7,f=b?1:0;b=b?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+b,height:this.element.outerHeight()+b,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(e,
b){return{width:this.originalSize.width+b}},w:function(e,b){return{left:this.originalPosition.left+b,width:this.originalSize.width-b}},n:function(e,b,f){return{top:this.originalPosition.top+f,height:this.originalSize.height-f}},s:function(e,b,f){return{height:this.originalSize.height+f}},se:function(e,b,f){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,b,f]))},sw:function(e,b,f){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,b,
f]))},ne:function(e,b,f){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,b,f]))},nw:function(e,b,f){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,b,f]))}},_propagate:function(e,b){c.ui.plugin.call(this,e,[b,this.ui()]);e!="resize"&&this._trigger(e,b,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,
originalPosition:this.originalPosition}}});c.extend(c.ui.resizable,{version:"1.8"});c.ui.plugin.add("resizable","alsoResize",{start:function(){var e=c(this).data("resizable").options,b=function(f){c(f).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)})})};if(typeof e.alsoResize=="object"&&!e.alsoResize.parentNode)if(e.alsoResize.length){e.alsoResize=
e.alsoResize[0];b(e.alsoResize)}else c.each(e.alsoResize,function(f){b(f)});else b(e.alsoResize)},resize:function(){var e=c(this).data("resizable"),b=e.options,f=e.originalSize,g=e.originalPosition,i={height:e.size.height-f.height||0,width:e.size.width-f.width||0,top:e.position.top-g.top||0,left:e.position.left-g.left||0},l=function(j,h){c(j).each(function(){var k=c(this),m=c(this).data("resizable-alsoresize"),n={};c.each((h&&h.length?h:["width","height","top","left"])||["width","height","top","left"],
function(o,p){var q=(m[p]||0)+(i[p]||0);if(q&&q>=0)n[p]=q||null});if(/relative/.test(k.css("position"))&&c.browser.opera){e._revertToRelativePosition=true;k.css({position:"absolute",top:"auto",left:"auto"})}k.css(n)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?c.each(b.alsoResize,function(j,h){l(j,h)}):l(b.alsoResize)},stop:function(){var e=c(this).data("resizable");if(e._revertToRelativePosition&&c.browser.opera){e._revertToRelativePosition=false;el.css({position:"relative"})}c(this).removeData("resizable-alsoresize-start")}});
c.ui.plugin.add("resizable","animate",{stop:function(e){var b=c(this).data("resizable"),f=b.options,g=b._proportionallyResizeElements,i=g.length&&/textarea/i.test(g[0].nodeName),l=i&&c.ui.hasScroll(g[0],"left")?0:b.sizeDiff.height;i={width:b.size.width-(i?0:b.sizeDiff.width),height:b.size.height-l};l=parseInt(b.element.css("left"),10)+(b.position.left-b.originalPosition.left)||null;var j=parseInt(b.element.css("top"),10)+(b.position.top-b.originalPosition.top)||null;b.element.animate(c.extend(i,j&&
l?{top:j,left:l}:{}),{duration:f.animateDuration,easing:f.animateEasing,step:function(){var h={width:parseInt(b.element.css("width"),10),height:parseInt(b.element.css("height"),10),top:parseInt(b.element.css("top"),10),left:parseInt(b.element.css("left"),10)};g&&g.length&&c(g[0]).css({width:h.width,height:h.height});b._updateCache(h);b._propagate("resize",e)}})}});c.ui.plugin.add("resizable","containment",{start:function(){var e=c(this).data("resizable"),b=e.element,f=e.options.containment;if(b=f instanceof
c?f.get(0):/parent/.test(f)?b.parent().get(0):f){e.containerElement=c(b);if(/document/.test(f)||f==document){e.containerOffset={left:0,top:0};e.containerPosition={left:0,top:0};e.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var g=c(b),i=[];c(["Top","Right","Left","Bottom"]).each(function(h,k){i[h]=a(g.css("padding"+k))});e.containerOffset=g.offset();e.containerPosition=g.position();e.containerSize={height:g.innerHeight()-
i[3],width:g.innerWidth()-i[1]};f=e.containerOffset;var l=e.containerSize.height,j=e.containerSize.width;j=c.ui.hasScroll(b,"left")?b.scrollWidth:j;l=c.ui.hasScroll(b)?b.scrollHeight:l;e.parentData={element:b,left:f.left,top:f.top,width:j,height:l}}}},resize:function(e){var b=c(this).data("resizable"),f=b.options,g=b.containerOffset,i=b.position;e=b._aspectRatio||e.shiftKey;var l={top:0,left:0},j=b.containerElement;if(j[0]!=document&&/static/.test(j.css("position")))l=g;if(i.left<(b._helper?g.left:
0)){b.size.width+=b._helper?b.position.left-g.left:b.position.left-l.left;if(e)b.size.height=b.size.width/f.aspectRatio;b.position.left=f.helper?g.left:0}if(i.top<(b._helper?g.top:0)){b.size.height+=b._helper?b.position.top-g.top:b.position.top;if(e)b.size.width=b.size.height*f.aspectRatio;b.position.top=b._helper?g.top:0}b.offset.left=b.parentData.left+b.position.left;b.offset.top=b.parentData.top+b.position.top;f=Math.abs((b._helper?b.offset.left-l.left:b.offset.left-l.left)+b.sizeDiff.width);g=
Math.abs((b._helper?b.offset.top-l.top:b.offset.top-g.top)+b.sizeDiff.height);i=b.containerElement.get(0)==b.element.parent().get(0);l=/relative|absolute/.test(b.containerElement.css("position"));if(i&&l)f-=b.parentData.left;if(f+b.size.width>=b.parentData.width){b.size.width=b.parentData.width-f;if(e)b.size.height=b.size.width/b.aspectRatio}if(g+b.size.height>=b.parentData.height){b.size.height=b.parentData.height-g;if(e)b.size.width=b.size.height*b.aspectRatio}},stop:function(){var e=c(this).data("resizable"),
b=e.options,f=e.containerOffset,g=e.containerPosition,i=e.containerElement,l=c(e.helper),j=l.offset(),h=l.outerWidth()-e.sizeDiff.width;l=l.outerHeight()-e.sizeDiff.height;e._helper&&!b.animate&&/relative/.test(i.css("position"))&&c(this).css({left:j.left-g.left-f.left,width:h,height:l});e._helper&&!b.animate&&/static/.test(i.css("position"))&&c(this).css({left:j.left-g.left-f.left,width:h,height:l})}});c.ui.plugin.add("resizable","ghost",{start:function(){var e=c(this).data("resizable"),b=e.options,
f=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof b.ghost=="string"?b.ghost:"");e.ghost.appendTo(e.helper)},resize:function(){var e=c(this).data("resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=c(this).data("resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}});
c.ui.plugin.add("resizable","grid",{resize:function(){var e=c(this).data("resizable"),b=e.options,f=e.size,g=e.originalSize,i=e.originalPosition,l=e.axis;b.grid=typeof b.grid=="number"?[b.grid,b.grid]:b.grid;var j=Math.round((f.width-g.width)/(b.grid[0]||1))*(b.grid[0]||1);b=Math.round((f.height-g.height)/(b.grid[1]||1))*(b.grid[1]||1);if(/^(se|s|e)$/.test(l)){e.size.width=g.width+j;e.size.height=g.height+b}else if(/^(ne)$/.test(l)){e.size.width=g.width+j;e.size.height=g.height+b;e.position.top=i.top-
b}else{if(/^(sw)$/.test(l)){e.size.width=g.width+j;e.size.height=g.height+b}else{e.size.width=g.width+j;e.size.height=g.height+b;e.position.top=i.top-b}e.position.left=i.left-j}}});var a=function(e){return parseInt(e,10)||0},d=function(e){return!isNaN(parseInt(e,10))}})(jQuery);
(function(c){c.widget("ui.selectable",c.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var a=this;this.element.addClass("ui-selectable");this.dragged=false;var d;this.refresh=function(){d=c(a.options.filter,a.element[0]);d.each(function(){var e=c(this),b=e.offset();c.data(this,"selectable-item",{element:this,$element:e,left:b.left,top:b.top,right:b.left+e.outerWidth(),bottom:b.top+e.outerHeight(),startselected:false,selected:e.hasClass("ui-selected"),
selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})};this.refresh();this.selectees=d.addClass("ui-selectee");this._mouseInit();this.helper=c(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},
_mouseStart:function(a){var d=this;this.opos=[a.pageX,a.pageY];if(!this.options.disabled){var e=this.options;this.selectees=c(e.filter,this.element[0]);this._trigger("start",a);c(e.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:a.clientX,top:a.clientY,width:0,height:0});e.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var b=c.data(this,"selectable-item");b.startselected=true;if(!a.metaKey){b.$element.removeClass("ui-selected");
b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;d._trigger("unselecting",a,{unselecting:b.element})}});c(a.target).parents().andSelf().each(function(){var b=c.data(this,"selectable-item");if(b){b.$element.removeClass("ui-unselecting").addClass("ui-selecting");b.unselecting=false;b.selecting=true;b.selected=true;d._trigger("selecting",a,{selecting:b.element});return false}})}},_mouseDrag:function(a){var d=this;this.dragged=true;if(!this.options.disabled){var e=this.options,
b=this.opos[0],f=this.opos[1],g=a.pageX,i=a.pageY;if(b>g){var l=g;g=b;b=l}if(f>i){l=i;i=f;f=l}this.helper.css({left:b,top:f,width:g-b,height:i-f});this.selectees.each(function(){var j=c.data(this,"selectable-item");if(!(!j||j.element==d.element[0])){var h=false;if(e.tolerance=="touch")h=!(j.left>g||j.right<b||j.top>i||j.bottom<f);else if(e.tolerance=="fit")h=j.left>b&&j.right<g&&j.top>f&&j.bottom<i;if(h){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;d._trigger("selecting",a,{selecting:j.element})}}else{if(j.selecting)if(a.metaKey&&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}d._trigger("unselecting",a,{unselecting:j.element})}if(j.selected)if(!a.metaKey&&
!j.startselected){j.$element.removeClass("ui-selected");j.selected=false;j.$element.addClass("ui-unselecting");j.unselecting=true;d._trigger("unselecting",a,{unselecting:j.element})}}}});return false}},_mouseStop:function(a){var d=this;this.dragged=false;c(".ui-unselecting",this.element[0]).each(function(){var e=c.data(this,"selectable-item");e.$element.removeClass("ui-unselecting");e.unselecting=false;e.startselected=false;d._trigger("unselected",a,{unselected:e.element})});c(".ui-selecting",this.element[0]).each(function(){var e=
c.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=false;e.selected=true;e.startselected=true;d._trigger("selected",a,{selected:e.element})});this._trigger("stop",a);this.helper.remove();return false}});c.extend(c.ui.selectable,{version:"1.8"})})(jQuery);
(function(c){c.widget("ui.sortable",c.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");
this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_mouseCapture:function(a,d){if(this.reverting)return false;if(this.options.disabled||this.options.type==
"static")return false;this._refreshItems(a);var e=null,b=this;c(a.target).parents().each(function(){if(c.data(this,"sortable-item")==b){e=c(this);return false}});if(c.data(a.target,"sortable-item")==b)e=c(a.target);if(!e)return false;if(this.options.handle&&!d){var f=false;c(this.options.handle,e).find("*").andSelf().each(function(){if(this==a.target)f=true});if(!f)return false}this.currentItem=e;this._removeCurrentsFromItems();return true},_mouseStart:function(a,d,e){d=this.options;this.currentContainer=
this;this.refreshPositions();this.helper=this._createHelper(a);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");c.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});
this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();if(d.cursor){if(c("body").css("cursor"))this._storedCursor=c("body").css("cursor");c("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity"))this._storedOpacity=
this.helper.css("opacity");this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex"))this._storedZIndex=this.helper.css("zIndex");this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML")this.overflowOffset=this.scrollParent.offset();this._trigger("start",a,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!e)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",a,this._uiHash(this));
if(c.ui.ddmanager)c.ui.ddmanager.current=this;c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,a);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(a);return true},_mouseDrag:function(a){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs)this.lastPositionAbs=this.positionAbs;if(this.options.scroll){var d=this.options,e=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!=
"HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-a.pageY<d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop+d.scrollSpeed;else if(a.pageY-this.overflowOffset.top<d.scrollSensitivity)this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop-d.scrollSpeed;if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-a.pageX<d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft+d.scrollSpeed;else if(a.pageX-this.overflowOffset.left<
d.scrollSensitivity)this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft-d.scrollSpeed}else{if(a.pageY-c(document).scrollTop()<d.scrollSensitivity)e=c(document).scrollTop(c(document).scrollTop()-d.scrollSpeed);else if(c(window).height()-(a.pageY-c(document).scrollTop())<d.scrollSensitivity)e=c(document).scrollTop(c(document).scrollTop()+d.scrollSpeed);if(a.pageX-c(document).scrollLeft()<d.scrollSensitivity)e=c(document).scrollLeft(c(document).scrollLeft()-d.scrollSpeed);else if(c(window).width()-
(a.pageX-c(document).scrollLeft())<d.scrollSensitivity)e=c(document).scrollLeft(c(document).scrollLeft()+d.scrollSpeed)}e!==false&&c.ui.ddmanager&&!d.dropBehaviour&&c.ui.ddmanager.prepareOffsets(this,a)}this.positionAbs=this._convertPositionTo("absolute");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";for(d=this.items.length-1;d>=0;d--){e=this.items[d];var b=
e.item[0],f=this._intersectsWithPointer(e);if(f)if(b!=this.currentItem[0]&&this.placeholder[f==1?"next":"prev"]()[0]!=b&&!c.ui.contains(this.placeholder[0],b)&&(this.options.type=="semi-dynamic"?!c.ui.contains(this.element[0],b):true)){this.direction=f==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e))this._rearrange(a,e);else break;this._trigger("change",a,this._uiHash());break}}this._contactContainers(a);c.ui.ddmanager&&c.ui.ddmanager.drag(this,a);this._trigger("sort",
a,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(a,d){if(a){c.ui.ddmanager&&!this.options.dropBehaviour&&c.ui.ddmanager.drop(this,a);if(this.options.revert){var e=this,b=e.placeholder.offset();e.reverting=true;c(this.helper).animate({left:b.left-this.offset.parent.left-e.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.parent.top-e.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},
parseInt(this.options.revert,10)||500,function(){e._clear(a)})}else this._clear(a,d);return false}},cancel:function(){if(this.dragging){this._mouseUp();this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var a=this.containers.length-1;a>=0;a--){this.containers[a]._trigger("deactivate",null,this._uiHash(this));if(this.containers[a].containerCache.over){this.containers[a]._trigger("out",null,this._uiHash(this));this.containers[a].containerCache.over=
0}}}this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();c.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?c(this.domPosition.prev).after(this.currentItem):c(this.domPosition.parent).prepend(this.currentItem);return this},serialize:function(a){var d=this._getItemsAsjQuery(a&&a.connected),e=[];a=a||{};c(d).each(function(){var b=
(c(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.+)[-=_](.+)/);if(b)e.push((a.key||b[1]+"[]")+"="+(a.key&&a.expression?b[1]:b[2]))});return e.join("&")},toArray:function(a){var d=this._getItemsAsjQuery(a&&a.connected),e=[];a=a||{};d.each(function(){e.push(c(a.item||this).attr(a.attribute||"id")||"")});return e},_intersectsWith:function(a){var d=this.positionAbs.left,e=d+this.helperProportions.width,b=this.positionAbs.top,f=b+this.helperProportions.height,g=a.left,i=g+a.width,l=
a.top,j=l+a.height,h=this.offset.click.top,k=this.offset.click.left;h=b+h>l&&b+h<j&&d+k>g&&d+k<i;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?h:g<d+this.helperProportions.width/2&&e-this.helperProportions.width/2<i&&l<b+this.helperProportions.height/2&&f-this.helperProportions.height/2<j},_intersectsWithPointer:function(a){var d=c.ui.isOverAxis(this.positionAbs.top+
this.offset.click.top,a.top,a.height);a=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left,a.width);d=d&&a;a=this._getDragVerticalDirection();var e=this._getDragHorizontalDirection();if(!d)return false;return this.floating?e&&e=="right"||a=="down"?2:1:a&&(a=="down"?2:1)},_intersectsWithSides:function(a){var d=c.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height/2,a.height);a=c.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.left+a.width/2,a.width);
var e=this._getDragVerticalDirection(),b=this._getDragHorizontalDirection();return this.floating&&b?b=="right"&&a||b=="left"&&!a:e&&(e=="down"&&d||e=="up"&&!d)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);this.refreshPositions();return this},_connectWith:function(){var a=
this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(a){var d=[],e=[],b=this._connectWith();if(b&&a)for(a=b.length-1;a>=0;a--)for(var f=c(b[a]),g=f.length-1;g>=0;g--){var i=c.data(f[g],"sortable");if(i&&i!=this&&!i.options.disabled)e.push([c.isFunction(i.options.items)?i.options.items.call(i.element):c(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}e.push([c.isFunction(this.options.items)?this.options.items.call(this.element,
null,{options:this.options,item:this.currentItem}):c(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=e.length-1;a>=0;a--)e[a][0].each(function(){d.push(this)});return c(d)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),d=0;d<this.items.length;d++)for(var e=0;e<a.length;e++)a[e]==this.items[d].item[0]&&this.items.splice(d,1)},_refreshItems:function(a){this.items=[];this.containers=[this];var d=this.items,
e=[[c.isFunction(this.options.items)?this.options.items.call(this.element[0],a,{item:this.currentItem}):c(this.options.items,this.element),this]],b=this._connectWith();if(b)for(var f=b.length-1;f>=0;f--)for(var g=c(b[f]),i=g.length-1;i>=0;i--){var l=c.data(g[i],"sortable");if(l&&l!=this&&!l.options.disabled){e.push([c.isFunction(l.options.items)?l.options.items.call(l.element[0],a,{item:this.currentItem}):c(l.options.items,l.element),l]);this.containers.push(l)}}for(f=e.length-1;f>=0;f--){a=e[f][1];
b=e[f][0];i=0;for(g=b.length;i<g;i++){l=c(b[i]);l.data("sortable-item",a);d.push({item:l,instance:a,width:0,height:0,left:0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&this.helper)this.offset.parent=this._getParentOffset();for(var d=this.items.length-1;d>=0;d--){var e=this.items[d],b=this.options.toleranceElement?c(this.options.toleranceElement,e.item):e.item;if(!a){e.width=b.outerWidth();e.height=b.outerHeight()}b=b.offset();e.left=b.left;e.top=b.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);
else for(d=this.containers.length-1;d>=0;d--){b=this.containers[d].element.offset();this.containers[d].containerCache.left=b.left;this.containers[d].containerCache.top=b.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}return this},_createPlaceholder:function(a){var d=a||this,e=d.options;if(!e.placeholder||e.placeholder.constructor==String){var b=e.placeholder;e.placeholder={element:function(){var f=
c(document.createElement(d.currentItem[0].nodeName)).addClass(b||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!b)f.style.visibility="hidden";return f},update:function(f,g){if(!(b&&!e.forcePlaceholderSize)){g.height()||g.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));g.width()||g.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||
0,10))}}}}d.placeholder=c(e.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);e.placeholder.update(d,d.placeholder)},_contactContainers:function(a){for(var d=null,e=null,b=this.containers.length-1;b>=0;b--)if(!c.ui.contains(this.currentItem[0],this.containers[b].element[0]))if(this._intersectsWith(this.containers[b].containerCache)){if(!(d&&c.ui.contains(this.containers[b].element[0],d.element[0]))){d=this.containers[b];e=b}}else if(this.containers[b].containerCache.over){this.containers[b]._trigger("out",
a,this._uiHash(this));this.containers[b].containerCache.over=0}if(d)if(this.containers.length===1){this.containers[e]._trigger("over",a,this._uiHash(this));this.containers[e].containerCache.over=1}else if(this.currentContainer!=this.containers[e]){d=1E4;b=null;for(var f=this.positionAbs[this.containers[e].floating?"left":"top"],g=this.items.length-1;g>=0;g--)if(c.ui.contains(this.containers[e].element[0],this.items[g].item[0])){var i=this.items[g][this.containers[e].floating?"left":"top"];if(Math.abs(i-
f)<d){d=Math.abs(i-f);b=this.items[g]}}if(b||this.options.dropOnEmpty){this.currentContainer=this.containers[e];b?this._rearrange(a,b,null,true):this._rearrange(a,null,this.containers[e].element,true);this._trigger("change",a,this._uiHash());this.containers[e]._trigger("change",a,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[e]._trigger("over",a,this._uiHash(this));this.containers[e].containerCache.over=1}}},_createHelper:function(a){var d=
this.options;a=c.isFunction(d.helper)?c(d.helper.apply(this.element[0],[a,this.currentItem])):d.helper=="clone"?this.currentItem.clone():this.currentItem;a.parents("body").length||c(d.appendTo!="parent"?d.appendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]==this.currentItem[0])this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")};if(a[0].style.width==
""||d.forceHelperSize)a.width(this.currentItem.width());if(a[0].style.height==""||d.forceHelperSize)a.height(this.currentItem.height());return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(c.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=
this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&c.browser.msie)a=
{top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),
10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,c(a.containment=="document"?
document:window).width()-this.helperProportions.width-this.margins.left,(c(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)){var d=c(a.containment)[0];a=c(a.containment).offset();var e=c(d).css("overflow")!="hidden";this.containment=[a.left+(parseInt(c(d).css("borderLeftWidth"),10)||0)+(parseInt(c(d).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(c(d).css("borderTopWidth"),
10)||0)+(parseInt(c(d).css("paddingTop"),10)||0)-this.margins.top,a.left+(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(c(d).css("borderLeftWidth"),10)||0)-(parseInt(c(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,a.top+(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(c(d).css("borderTopWidth"),10)||0)-(parseInt(c(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(a,d){if(!d)d=
this.position;var e=a=="absolute"?1:-1,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(b[0].tagName);return{top:d.top+this.offset.relative.top*e+this.offset.parent.top*e-(c.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:b.scrollTop())*e),left:d.left+this.offset.relative.left*e+this.offset.parent.left*e-(c.browser.safari&&
this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:b.scrollLeft())*e)}},_generatePosition:function(a){var d=this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&c.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,b=/(html|body)/i.test(e[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]))this.offset.relative=this._getRelativeOffset();
var f=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])f=this.containment[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containment[1])g=this.containment[1]+this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[2])f=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g=this.containment[3]+this.offset.click.top}if(d.grid){g=this.originalPageY+Math.round((g-
this.originalPageY)/d.grid[1])*d.grid[1];g=this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.containment[1])?g-d.grid[1]:g+d.grid[1]:g;f=this.originalPageX+Math.round((f-this.originalPageX)/d.grid[0])*d.grid[0];f=this.containment?!(f-this.offset.click.left<this.containment[0]||f-this.offset.click.left>this.containment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-d.grid[0]:f+d.grid[0]:f}}return{top:g-
this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():b?0:e.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(c.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():b?0:e.scrollLeft())}},_rearrange:function(a,d,e,b){e?e[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],
this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var f=this,g=this.counter;window.setTimeout(function(){g==f.counter&&f.refreshPositions(!b)},0)},_clear:function(a,d){this.reverting=false;var e=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var b in this._storedCSS)if(this._storedCSS[b]=="auto"||this._storedCSS[b]=="static")this._storedCSS[b]=
"";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!d&&e.push(function(f){this._trigger("receive",f,this._uiHash(this.fromOutside))});if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!d)e.push(function(f){this._trigger("update",f,this._uiHash())});if(!c.ui.contains(this.element[0],this.currentItem[0])){d||e.push(function(f){this._trigger("remove",
f,this._uiHash())});for(b=this.containers.length-1;b>=0;b--)if(c.ui.contains(this.containers[b].element[0],this.currentItem[0])&&!d){e.push(function(f){return function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.containers[b]));e.push(function(f){return function(g){f._trigger("update",g,this._uiHash(this))}}.call(this,this.containers[b]))}}for(b=this.containers.length-1;b>=0;b--){d||e.push(function(f){return function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,
this.containers[b]));if(this.containers[b].containerCache.over){e.push(function(f){return function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.containers[b]));this.containers[b].containerCache.over=0}}this._storedCursor&&c("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex);this.dragging=false;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",
a,this._uiHash());for(b=0;b<e.length;b++)e[b].call(this,a);this._trigger("stop",a,this._uiHash())}return false}d||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(b=0;b<e.length;b++)e[b].call(this,a);this._trigger("stop",a,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){c.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},
_uiHash:function(a){var d=a||this;return{helper:d.helper,placeholder:d.placeholder||c([]),position:d.position,originalPosition:d.originalPosition,offset:d.positionAbs,item:d.currentItem,sender:a?a.element:null}}});c.extend(c.ui.sortable,{version:"1.8"})})(jQuery);
(function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},_create:function(){var a=this.options,d=this;this.running=0;this.element.addClass("ui-accordion ui-widget ui-helper-reset");
this.element[0].nodeName=="UL"&&this.element.children("li").addClass("ui-accordion-li-fix");this.headers=this.element.find(a.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c(this).removeClass("ui-state-focus")});
this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(a.navigation){var e=this.element.find("a").filter(a.navigationFilter);if(e.length){var b=e.closest(".ui-accordion-header");this.active=b.length?b:e.closest(".ui-accordion-content").prev()}}this.active=this._findActive(this.active||a.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");
this._createIcons();c.browser.msie&&this.element.find("a").css("zoom","1");this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(f){return d._keydown(f)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();this.active.length?this.active.attr("aria-expanded","true").attr("tabIndex","0"):this.headers.eq(0).attr("tabIndex","0");c.browser.safari||this.headers.find("a").attr("tabIndex",
"-1");a.event&&this.headers.bind(a.event+".accordion",function(f){d._clickHandler.call(d,f,this);f.preventDefault()})},_createIcons:function(){var a=this.options;if(a.icons){c("<span/>").addClass("ui-icon "+a.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},
destroy:function(){var a=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this._destroyIcons();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");
if(a.autoHeight||a.fillHeight)d.css("height","");return this},_setOption:function(a,d){c.Widget.prototype._setOption.apply(this,arguments);a=="active"&&this.activate(d);if(a=="icons"){this._destroyIcons();d&&this._createIcons()}},_keydown:function(a){var d=c.ui.keyCode;if(!(this.options.disabled||a.altKey||a.ctrlKey)){var e=this.headers.length,b=this.headers.index(a.target),f=false;switch(a.keyCode){case d.RIGHT:case d.DOWN:f=this.headers[(b+1)%e];break;case d.LEFT:case d.UP:f=this.headers[(b-1+e)%
e];break;case d.SPACE:case d.ENTER:this._clickHandler({target:a.target},a.target);a.preventDefault()}if(f){c(a.target).attr("tabIndex","-1");c(f).attr("tabIndex","0");f.focus();return false}return true}},resize:function(){var a=this.options,d;if(a.fillSpace){if(c.browser.msie){var e=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();c.browser.msie&&this.element.parent().css("overflow",e);this.headers.each(function(){d-=c(this).outerHeight(true)});
this.headers.next().each(function(){c(this).height(Math.max(0,d-c(this).innerHeight()+c(this).height()))}).css("overflow","auto")}else if(a.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,c(this).height())}).height(d)}return this},activate:function(a){this.options.active=a;a=this._findActive(a)[0];this._clickHandler({target:a},a);return this},_findActive:function(a){return a?typeof a=="number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.headers.not(a)):a===false?c([]):
this.headers.filter(":eq(0)")},_clickHandler:function(a,d){var e=this.options;if(!e.disabled)if(a.target){var b=c(a.currentTarget||d),f=b[0]==this.active[0];e.active=e.collapsible&&f?false:c(".ui-accordion-header",this.element).index(b);if(!(this.running||!e.collapsible&&f)){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);if(!f){b.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(e.icons.header).addClass(e.icons.headerSelected);
b.next().addClass("ui-accordion-content-active")}l=b.next();g=this.active.next();i={options:e,newHeader:f&&e.collapsible?c([]):b,oldHeader:this.active,newContent:f&&e.collapsible?c([]):l,oldContent:g};e=this.headers.index(this.active[0])>this.headers.index(b[0]);this.active=f?c([]):b;this._toggle(l,g,i,f,e)}}else if(e.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header);
this.active.next().addClass("ui-accordion-content-active");var g=this.active.next(),i={options:e,newHeader:c([]),oldHeader:e.active,newContent:c([]),oldContent:g},l=this.active=c([]);this._toggle(l,g,i)}},_toggle:function(a,d,e,b,f){var g=this.options,i=this;this.toShow=a;this.toHide=d;this.data=e;var l=function(){if(i)return i._completed.apply(i,arguments)};this._trigger("changestart",null,this.data);this.running=d.size()===0?a.size():d.size();if(g.animated){e={};e=g.collapsible&&b?{toShow:c([]),
toHide:d,complete:l,down:f,autoHeight:g.autoHeight||g.fillSpace}:{toShow:a,toHide:d,complete:l,down:f,autoHeight:g.autoHeight||g.fillSpace};if(!g.proxied)g.proxied=g.animated;if(!g.proxiedDuration)g.proxiedDuration=g.duration;g.animated=c.isFunction(g.proxied)?g.proxied(e):g.proxied;g.duration=c.isFunction(g.proxiedDuration)?g.proxiedDuration(e):g.proxiedDuration;b=c.ui.accordion.animations;var j=g.duration,h=g.animated;if(h&&!b[h]&&!c.easing[h])h="slide";b[h]||(b[h]=function(k){this.slide(k,{easing:h,
duration:j||700})});b[h](e)}else{if(g.collapsible&&b)a.toggle();else{d.hide();a.show()}l(true)}d.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();a.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(a){var d=this.options;this.running=a?0:--this.running;if(!this.running){d.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");this._trigger("change",null,this.data)}}});c.extend(c.ui.accordion,
{version:"1.8",animations:{slide:function(a,d){a=c.extend({easing:"swing",duration:300},a,d);if(a.toHide.size())if(a.toShow.size()){var e=a.toShow.css("overflow"),b=0,f={},g={},i,l=a.toShow;i=l[0].style.width;l.width(parseInt(l.parent().width(),10)-parseInt(l.css("paddingLeft"),10)-parseInt(l.css("paddingRight"),10)-(parseInt(l.css("borderLeftWidth"),10)||0)-(parseInt(l.css("borderRightWidth"),10)||0));c.each(["height","paddingTop","paddingBottom"],function(j,h){g[h]="hide";var k=(""+c.css(a.toShow[0],
h)).match(/^([\d+-.]+)(.*)$/);f[h]={value:k[1],unit:k[2]||"px"}});a.toShow.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").each(a.complete).end().filter(":visible").animate(g,{step:function(j,h){if(h.prop=="height")b=h.end-h.start===0?0:(h.now-h.start)/(h.end-h.start);a.toShow[0].style[h.prop]=b*f[h.prop].value+f[h.prop].unit},duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.toShow.css("height","");a.toShow.css("width",i);a.toShow.css({overflow:e});a.complete()}})}else a.toHide.animate({height:"hide"},
a);else a.toShow.animate({height:"show"},a)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(jQuery);
(function(c){c.widget("ui.autocomplete",{options:{minLength:1,delay:300},_create:function(){var a=this,d=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(e){var b=c.ui.keyCode;switch(e.keyCode){case b.PAGE_UP:a._move("previousPage",e);break;case b.PAGE_DOWN:a._move("nextPage",e);break;case b.UP:a._move("previous",e);e.preventDefault();
break;case b.DOWN:a._move("next",e);e.preventDefault();break;case b.ENTER:a.menu.active&&e.preventDefault();case b.TAB:if(!a.menu.active)break;a.menu.select();break;case b.ESCAPE:a.element.val(a.term);a.close(e);break;case b.SHIFT:case b.CONTROL:case 18:break;default:clearTimeout(a.searching);a.searching=setTimeout(function(){a.search(null,e)},a.options.delay)}}).bind("focus.autocomplete",function(){a.previous=a.element.val()}).bind("blur.autocomplete",function(e){clearTimeout(a.searching);a.closing=
setTimeout(function(){a.close(e)},150)});this._initSource();this.response=function(){return a._response.apply(a,arguments)};this.menu=c("<ul></ul>").addClass("ui-autocomplete").appendTo("body",d).menu({focus:function(e,b){var f=b.item.data("item.autocomplete");false!==a._trigger("focus",null,{item:f})&&a.element.val(f.value)},selected:function(e,b){var f=b.item.data("item.autocomplete");false!==a._trigger("select",e,{item:f})&&a.element.val(f.value);a.close(e);a.previous=a.element.val();a.element[0]!==
d.activeElement&&a.element.focus()},blur:function(){a.menu.element.is(":visible")&&a.element.val(a.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");c.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input ui-widget ui-widget-content").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();c.Widget.prototype.destroy.call(this)},_setOption:function(a){c.Widget.prototype._setOption.apply(this,
arguments);a==="source"&&this._initSource()},_initSource:function(){var a,d;if(c.isArray(this.options.source)){a=this.options.source;this.source=function(e,b){var f=RegExp(c.ui.autocomplete.escapeRegex(e.term),"i");b(c.grep(a,function(g){return f.test(g.label||g.value||g)}))}}else if(typeof this.options.source==="string"){d=this.options.source;this.source=function(e,b){c.getJSON(d,e,b)}}else this.source=this.options.source},search:function(a,d){a=a!=null?a:this.element.val();if(a.length<this.options.minLength)return this.close(d);
clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(a)},_search:function(a){this.term=this.element.addClass("ui-autocomplete-loading").val();this.source({term:a},this.response)},_response:function(a){if(a.length){a=this._normalize(a);this._suggest(a);this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this._trigger("close",a);this.menu.element.hide();
this.menu.deactivate()}this.previous!==this.element.val()&&this._trigger("change",a)},_normalize:function(a){if(a.length&&a[0].label&&a[0].value)return a;return c.map(a,function(d){if(typeof d==="string")return{label:d,value:d};return c.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(a){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1),e;this._renderMenu(d,a);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position({my:"left top",at:"left bottom",
of:this.element,collision:"none"});a=d.width("").width();e=this.element.width();d.width(Math.max(a,e))},_renderMenu:function(a,d){var e=this;c.each(d,function(b,f){e._renderItem(a,f)})},_renderItem:function(a,d){return c("<li></li>").data("item.autocomplete",d).append("<a>"+d.label+"</a>").appendTo(a)},_move:function(a,d){if(this.menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.deactivate()}else this.menu[a]();
else this.search(null,d)},widget:function(){return this.menu.element}});c.extend(c.ui.autocomplete,{escapeRegex:function(a){return a.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")}})})(jQuery);
(function(c){c.widget("ui.menu",{_create:function(){var a=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(d){d.preventDefault();a.select()});this.refresh()},refresh:function(){var a=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(){a.activate(c(this).parent())}).mouseleave(function(){a.deactivate()})},
activate:function(a){this.deactivate();if(this.hasScroll()){var d=a.offset().top-this.element.offset().top,e=this.element.attr("scrollTop"),b=this.element.height();if(d<0)this.element.attr("scrollTop",e+d);else d>b&&this.element.attr("scrollTop",e+d-b+a.height())}this.active=a.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",null,{item:a})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
this._trigger("blur");this.active=null}},next:function(){this.move("next","li:first")},previous:function(){this.move("prev","li:last")},first:function(){return this.active&&!this.active.prev().length},last:function(){return this.active&&!this.active.next().length},move:function(a,d){if(this.active){var e=this.active[a]();e.length?this.activate(e):this.activate(this.element.children(d))}else this.activate(this.element.children(d))},nextPage:function(){if(this.hasScroll())if(!this.active||this.last())this.activate(this.element.children(":first"));
else{var a=this.active.offset().top,d=this.element.height(),e=this.element.children("li").filter(function(){var b=c(this).offset().top-a-d+c(this).height();return b<10&&b>-10});e.length||(e=this.element.children(":last"));this.activate(e)}else this.activate(this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(){if(this.hasScroll())if(!this.active||this.first())this.activate(this.element.children(":last"));else{var a=this.active.offset().top,d=this.element.height();
result=this.element.children("li").filter(function(){var e=c(this).offset().top-a+d-c(this).height();return e<10&&e>-10});result.length||(result=this.element.children(":first"));this.activate(result)}else this.activate(this.element.children(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(){this._trigger("selected",null,{item:this.active})}})})(jQuery);
(function(c){c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");var a=this,d=a.options,e=d.title||a.originalTitle||"&#160;",b=c.ui.dialog.getTitleId(a.element),f=(a.uiDialog=c("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
d.dialogClass).css({zIndex:d.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(l){if(d.closeOnEscape&&l.keyCode&&l.keyCode===c.ui.keyCode.ESCAPE){a.close(l);l.preventDefault()}}).attr({role:"dialog","aria-labelledby":b}).mousedown(function(l){a.moveToTop(false,l)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(f);var g=(a.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(f),
i=c('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).click(function(l){a.close(l);return false}).appendTo(g);(a.uiDialogTitlebarCloseText=c("<span></span>")).addClass("ui-icon ui-icon-closethick").text(d.closeText).appendTo(i);c("<span></span>").addClass("ui-dialog-title").attr("id",
b).html(e).prependTo(g);if(c.isFunction(d.beforeclose)&&!c.isFunction(d.beforeClose))d.beforeClose=d.beforeclose;g.find("*").add(g).disableSelection();d.draggable&&c.fn.draggable&&a._makeDraggable();d.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(d.buttons);a._isOpen=false;c.fn.bgiframe&&f.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(a){var d=this,e;if(false!==d._trigger("beforeClose",a)){d.overlay&&d.overlay.destroy();d.uiDialog.unbind("keypress.ui-dialog");d._isOpen=false;if(d.options.hide)d.uiDialog.hide(d.options.hide,function(){d._trigger("close",a)});else{d.uiDialog.hide();d._trigger("close",a)}c.ui.dialog.overlay.resize();if(d.options.modal){e=0;c(".ui-dialog").each(function(){if(this!==
d.uiDialog[0])e=Math.max(e,c(this).css("z-index"))});c.ui.dialog.maxZ=e}return d}},isOpen:function(){return this._isOpen},moveToTop:function(a,d){var e=this.options;if(e.modal&&!a||!e.stack&&!e.modal)return this._trigger("focus",d);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(this.overlay){c.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}e={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};c.ui.dialog.maxZ+=
1;this.uiDialog.css("z-index",c.ui.dialog.maxZ);this.element.attr(e);this._trigger("focus",d);return this},open:function(){if(!this._isOpen){var a=this.options,d=this.uiDialog;this.overlay=a.modal?new c.ui.dialog.overlay(this):null;d.next().length&&d.appendTo("body");this._size();this._position(a.position);d.show(a.show);this.moveToTop(true);a.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var b=c(":tabbable",this),f=b.filter(":first");b=b.filter(":last");if(e.target===
b[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target===f[0]&&e.shiftKey){b.focus(1);return false}}});c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();this._trigger("open");this._isOpen=true;return this}},_createButtons:function(a){var d=this,e=false,b=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");d.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&
a!==null&&c.each(a,function(){return!(e=true)});if(e){c.each(a,function(f,g){var i=c('<button type="button"></button>').text(f).click(function(){g.apply(d.element[0],arguments)}).appendTo(b);c.fn.button&&i.button()});b.appendTo(d.uiDialog)}},_makeDraggable:function(){function a(g){return{position:g.position,offset:g.offset}}var d=this,e=d.options,b=c(document),f;d.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(g,
i){f=e.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");d._trigger("dragStart",g,a(i))},drag:function(g,i){d._trigger("drag",g,a(i))},stop:function(g,i){e.position=[i.position.left-b.scrollLeft(),i.position.top-b.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(f);d._trigger("dragStop",g,a(i));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function d(g){return{originalPosition:g.originalPosition,originalSize:g.originalSize,
position:g.position,size:g.size}}a=a===undefined?this.options.resizable:a;var e=this,b=e.options,f=e.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";e.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:e.element,maxWidth:b.maxWidth,maxHeight:b.maxHeight,minWidth:b.minWidth,minHeight:e._minHeight(),handles:a,start:function(g,i){c(this).addClass("ui-dialog-resizing");e._trigger("resizeStart",g,d(i))},resize:function(g,i){e._trigger("resize",g,d(i))},
stop:function(g,i){c(this).removeClass("ui-dialog-resizing");b.height=c(this).height();b.width=c(this).width();e._trigger("resizeStop",g,d(i));c.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var d=[],e=[0,0];a=a||c.ui.dialog.prototype.options.position;if(typeof a==="string"||typeof a==="object"&&
"0"in a){d=a.split?a.split(" "):[a[0],a[1]];if(d.length===1)d[1]=d[0];c.each(["left","top"],function(b,f){if(+d[b]===d[b]){e[b]=d[b];d[b]=f}})}else if(typeof a==="object"){if("left"in a){d[0]="left";e[0]=a.left}else if("right"in a){d[0]="right";e[0]=-a.right}if("top"in a){d[1]="top";e[1]=a.top}else if("bottom"in a){d[1]="bottom";e[1]=-a.bottom}}(a=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position({my:d.join(" "),at:d.join(" "),offset:e.join(" "),of:window,
collision:"fit",using:function(b){var f=c(this).css(b).offset().top;f<0&&c(this).css("top",b.top-f)}});a||this.uiDialog.hide()},_setOption:function(a,d){var e=this.uiDialog,b=e.is(":data(resizable)"),f=false;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":this._createButtons(d);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+d);break;case "dialogClass":e.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+d);break;case "disabled":d?
e.addClass("ui-dialog-disabled"):e.removeClass("ui-dialog-disabled");break;case "draggable":d?this._makeDraggable():e.draggable("destroy");break;case "height":f=true;break;case "maxHeight":b&&e.resizable("option","maxHeight",d);f=true;break;case "maxWidth":b&&e.resizable("option","maxWidth",d);f=true;break;case "minHeight":b&&e.resizable("option","minHeight",d);f=true;break;case "minWidth":b&&e.resizable("option","minWidth",d);f=true;break;case "position":this._position(d);break;case "resizable":b&&
!d&&e.resizable("destroy");b&&typeof d==="string"&&e.resizable("option","handles",d);!b&&d!==false&&this._makeResizable(d);break;case "title":c(".ui-dialog-title",this.uiDialogTitlebar).html(""+(d||"&#160;"));break;case "width":f=true}c.Widget.prototype._setOption.apply(this,arguments);f&&this._size()},_size:function(){var a=this.options,d;this.element.css("width","auto").hide();d=this.uiDialog.css({height:"auto",width:a.width}).height();this.element.css(a.height==="auto"?{minHeight:Math.max(a.minHeight-
d,0),height:"auto"}:{minHeight:0,height:Math.max(a.height-d,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),
function(a){return a+".dialog-overlay"}).join(" "),create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(e){return c(e.target).zIndex()>=c.ui.dialog.overlay.maxZ})},1);c(document).bind("keydown.dialog-overlay",function(e){if(a.options.closeOnEscape&&e.keyCode&&e.keyCode===c.ui.keyCode.ESCAPE){a.close(e);e.preventDefault()}});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=
(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});c.fn.bgiframe&&d.bgiframe();this.instances.push(d);return d},destroy:function(a){this.oldInstances.push(this.instances.splice(c.inArray(a,this.instances),1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,
d;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a<d?c(window).height()+"px":a+"px"}else return c(document).height()+"px"},width:function(){var a,d;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);d=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return a<
d?c(window).width()+"px":a+"px"}else return c(document).width()+"px"},resize:function(){var a=c([]);c.each(c.ui.dialog.overlay.instances,function(){a=a.add(this)});a.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);
(function(c){function a(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass=
"ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",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"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",
"Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",
minDate:null,maxDate:null,duration:"_default",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};c.extend(this._defaults,this.regional[""]);this.dpDiv=c('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}function d(b,f){c.extend(b,
f);for(var g in f)if(f[g]==null||f[g]==undefined)b[g]=f[g];return b}c.extend(c.ui,{datepicker:{version:"1.8"}});var e=(new Date).getTime();c.extend(a.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(b){d(this._defaults,b||{});return this},_attachDatepicker:function(b,f){var g=null,i;for(i in this._defaults){var l=b.getAttribute("date:"+i);if(l){g=g||{};try{g[i]=eval(l)}catch(j){g[i]=
l}}}i=b.nodeName.toLowerCase();l=i=="div"||i=="span";if(!b.id)b.id="dp"+ ++this.uuid;var h=this._newInst(c(b),l);h.settings=c.extend({},f||{},g||{});if(i=="input")this._connectDatepicker(b,h);else l&&this._inlineDatepicker(b,h)},_newInst:function(b,f){return{id:b[0].id.replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:f,dpDiv:!f?this.dpDiv:c('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},
_connectDatepicker:function(b,f){var g=c(b);f.append=c([]);f.trigger=c([]);if(!g.hasClass(this.markerClassName)){this._attachments(g,f);g.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(i,l,j){f.settings[l]=j}).bind("getData.datepicker",function(i,l){return this._get(f,l)});this._autoSize(f);c.data(b,"datepicker",f)}},_attachments:function(b,f){var g=this._get(f,"appendText"),i=this._get(f,"isRTL");f.append&&
f.append.remove();if(g){f.append=c('<span class="'+this._appendClass+'">'+g+"</span>");b[i?"before":"after"](f.append)}b.unbind("focus",this._showDatepicker);f.trigger&&f.trigger.remove();g=this._get(f,"showOn");if(g=="focus"||g=="both")b.focus(this._showDatepicker);if(g=="button"||g=="both"){g=this._get(f,"buttonText");var l=this._get(f,"buttonImage");f.trigger=c(this._get(f,"buttonImageOnly")?c("<img/>").addClass(this._triggerClass).attr({src:l,alt:g,title:g}):c('<button type="button"></button>').addClass(this._triggerClass).html(l==
""?g:c("<img/>").attr({src:l,alt:g,title:g})));b[i?"before":"after"](f.trigger);f.trigger.click(function(){c.datepicker._datepickerShowing&&c.datepicker._lastInput==b[0]?c.datepicker._hideDatepicker():c.datepicker._showDatepicker(b[0]);return false})}},_autoSize:function(b){if(this._get(b,"autoSize")&&!b.inline){var f=new Date(2009,11,20),g=this._get(b,"dateFormat");if(g.match(/[DM]/)){var i=function(l){for(var j=0,h=0,k=0;k<l.length;k++)if(l[k].length>j){j=l[k].length;h=k}return h};f.setMonth(i(this._get(b,
g.match(/MM/)?"monthNames":"monthNamesShort")));f.setDate(i(this._get(b,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())}b.input.attr("size",this._formatDate(b,f).length)}},_inlineDatepicker:function(b,f){var g=c(b);if(!g.hasClass(this.markerClassName)){g.addClass(this.markerClassName).append(f.dpDiv).bind("setData.datepicker",function(i,l,j){f.settings[l]=j}).bind("getData.datepicker",function(i,l){return this._get(f,l)});c.data(b,"datepicker",f);this._setDate(f,this._getDefaultDate(f),
true);this._updateDatepicker(f);this._updateAlternate(f)}},_dialogDatepicker:function(b,f,g,i,l){b=this._dialogInst;if(!b){b="dp"+ ++this.uuid;this._dialogInput=c('<input type="text" id="'+b+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);c("body").append(this._dialogInput);b=this._dialogInst=this._newInst(this._dialogInput,false);b.settings={};c.data(this._dialogInput[0],"datepicker",b)}d(b.settings,i||{});f=f&&f.constructor==Date?
this._formatDate(b,f):f;this._dialogInput.val(f);this._pos=l?l.length?l:[l.pageX,l.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");b.settings.onSelect=g;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);
c.blockUI&&c.blockUI(this.dpDiv);c.data(this._dialogInput[0],"datepicker",b);return this},_destroyDatepicker:function(b){var f=c(b),g=c.data(b,"datepicker");if(f.hasClass(this.markerClassName)){var i=b.nodeName.toLowerCase();c.removeData(b,"datepicker");if(i=="input"){g.append.remove();g.trigger.remove();f.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(i=="div"||i=="span")f.removeClass(this.markerClassName).empty()}},
_enableDatepicker:function(b){var f=c(b),g=c.data(b,"datepicker");if(f.hasClass(this.markerClassName)){var i=b.nodeName.toLowerCase();if(i=="input"){b.disabled=false;g.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(i=="div"||i=="span")f.children("."+this._inlineClass).children().removeClass("ui-state-disabled");this._disabledInputs=c.map(this._disabledInputs,function(l){return l==b?null:l})}},_disableDatepicker:function(b){var f=
c(b),g=c.data(b,"datepicker");if(f.hasClass(this.markerClassName)){var i=b.nodeName.toLowerCase();if(i=="input"){b.disabled=true;g.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else if(i=="div"||i=="span")f.children("."+this._inlineClass).children().addClass("ui-state-disabled");this._disabledInputs=c.map(this._disabledInputs,function(l){return l==b?null:l});this._disabledInputs[this._disabledInputs.length]=b}},_isDisabledDatepicker:function(b){if(!b)return false;
for(var f=0;f<this._disabledInputs.length;f++)if(this._disabledInputs[f]==b)return true;return false},_getInst:function(b){try{return c.data(b,"datepicker")}catch(f){throw"Missing instance data for this datepicker";}},_optionDatepicker:function(b,f,g){var i=this._getInst(b);if(arguments.length==2&&typeof f=="string")return f=="defaults"?c.extend({},c.datepicker._defaults):i?f=="all"?c.extend({},i.settings):this._get(i,f):null;var l=f||{};if(typeof f=="string"){l={};l[f]=g}if(i){this._curInst==i&&
this._hideDatepicker();var j=this._getDateDatepicker(b,true);d(i.settings,l);this._attachments(c(b),i);this._autoSize(i);this._setDateDatepicker(b,j);this._updateDatepicker(i)}},_changeDatepicker:function(b,f,g){this._optionDatepicker(b,f,g)},_refreshDatepicker:function(b){(b=this._getInst(b))&&this._updateDatepicker(b)},_setDateDatepicker:function(b,f){var g=this._getInst(b);if(g){this._setDate(g,f);this._updateDatepicker(g);this._updateAlternate(g)}},_getDateDatepicker:function(b,f){var g=this._getInst(b);
g&&!g.inline&&this._setDateFromField(g,f);return g?this._getDate(g):null},_doKeyDown:function(b){var f=c.datepicker._getInst(b.target),g=true,i=f.dpDiv.is(".ui-datepicker-rtl");f._keyEvent=true;if(c.datepicker._datepickerShowing)switch(b.keyCode){case 9:c.datepicker._hideDatepicker();g=false;break;case 13:g=c("td."+c.datepicker._dayOverClass,f.dpDiv).add(c("td."+c.datepicker._currentClass,f.dpDiv));g[0]?c.datepicker._selectDay(b.target,f.selectedMonth,f.selectedYear,g[0]):c.datepicker._hideDatepicker();
return false;case 27:c.datepicker._hideDatepicker();break;case 33:c.datepicker._adjustDate(b.target,b.ctrlKey?-c.datepicker._get(f,"stepBigMonths"):-c.datepicker._get(f,"stepMonths"),"M");break;case 34:c.datepicker._adjustDate(b.target,b.ctrlKey?+c.datepicker._get(f,"stepBigMonths"):+c.datepicker._get(f,"stepMonths"),"M");break;case 35:if(b.ctrlKey||b.metaKey)c.datepicker._clearDate(b.target);g=b.ctrlKey||b.metaKey;break;case 36:if(b.ctrlKey||b.metaKey)c.datepicker._gotoToday(b.target);g=b.ctrlKey||
b.metaKey;break;case 37:if(b.ctrlKey||b.metaKey)c.datepicker._adjustDate(b.target,i?+1:-1,"D");g=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)c.datepicker._adjustDate(b.target,b.ctrlKey?-c.datepicker._get(f,"stepBigMonths"):-c.datepicker._get(f,"stepMonths"),"M");break;case 38:if(b.ctrlKey||b.metaKey)c.datepicker._adjustDate(b.target,-7,"D");g=b.ctrlKey||b.metaKey;break;case 39:if(b.ctrlKey||b.metaKey)c.datepicker._adjustDate(b.target,i?-1:+1,"D");g=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey)c.datepicker._adjustDate(b.target,
b.ctrlKey?+c.datepicker._get(f,"stepBigMonths"):+c.datepicker._get(f,"stepMonths"),"M");break;case 40:if(b.ctrlKey||b.metaKey)c.datepicker._adjustDate(b.target,+7,"D");g=b.ctrlKey||b.metaKey;break;default:g=false}else if(b.keyCode==36&&b.ctrlKey)c.datepicker._showDatepicker(this);else g=false;if(g){b.preventDefault();b.stopPropagation()}},_doKeyPress:function(b){var f=c.datepicker._getInst(b.target);if(c.datepicker._get(f,"constrainInput")){f=c.datepicker._possibleChars(c.datepicker._get(f,"dateFormat"));
var g=String.fromCharCode(b.charCode==undefined?b.keyCode:b.charCode);return b.ctrlKey||g<" "||!f||f.indexOf(g)>-1}},_doKeyUp:function(b){b=c.datepicker._getInst(b.target);if(b.input.val()!=b.lastVal)try{if(c.datepicker.parseDate(c.datepicker._get(b,"dateFormat"),b.input?b.input.val():null,c.datepicker._getFormatConfig(b))){c.datepicker._setDateFromField(b);c.datepicker._updateAlternate(b);c.datepicker._updateDatepicker(b)}}catch(f){c.datepicker.log(f)}return true},_showDatepicker:function(b){b=b.target||
b;if(b.nodeName.toLowerCase()!="input")b=c("input",b.parentNode)[0];if(!(c.datepicker._isDisabledDatepicker(b)||c.datepicker._lastInput==b)){var f=c.datepicker._getInst(b);c.datepicker._curInst&&c.datepicker._curInst!=f&&c.datepicker._curInst.dpDiv.stop(true,true);var g=c.datepicker._get(f,"beforeShow");d(f.settings,g?g.apply(b,[b,f]):{});f.lastVal=null;c.datepicker._lastInput=b;c.datepicker._setDateFromField(f);if(c.datepicker._inDialog)b.value="";if(!c.datepicker._pos){c.datepicker._pos=c.datepicker._findPos(b);
c.datepicker._pos[1]+=b.offsetHeight}var i=false;c(b).parents().each(function(){i|=c(this).css("position")=="fixed";return!i});if(i&&c.browser.opera){c.datepicker._pos[0]-=document.documentElement.scrollLeft;c.datepicker._pos[1]-=document.documentElement.scrollTop}g={left:c.datepicker._pos[0],top:c.datepicker._pos[1]};c.datepicker._pos=null;f.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});c.datepicker._updateDatepicker(f);g=c.datepicker._checkOffset(f,g,i);f.dpDiv.css({position:c.datepicker._inDialog&&
c.blockUI?"static":i?"fixed":"absolute",display:"none",left:g.left+"px",top:g.top+"px"});if(!f.inline){g=c.datepicker._get(f,"showAnim");var l=c.datepicker._get(f,"duration"),j=function(){c.datepicker._datepickerShowing=true;var h=c.datepicker._getBorders(f.dpDiv);f.dpDiv.find("iframe.ui-datepicker-cover").css({left:-h[0],top:-h[1],width:f.dpDiv.outerWidth(),height:f.dpDiv.outerHeight()})};f.dpDiv.zIndex(c(b).zIndex()+1);c.effects&&c.effects[g]?f.dpDiv.show(g,c.datepicker._get(f,"showOptions"),l,
j):f.dpDiv[g||"show"](g?l:null,j);if(!g||!l)j();f.input.is(":visible")&&!f.input.is(":disabled")&&f.input.focus();c.datepicker._curInst=f}}},_updateDatepicker:function(b){var f=this,g=c.datepicker._getBorders(b.dpDiv);b.dpDiv.empty().append(this._generateHTML(b)).find("iframe.ui-datepicker-cover").css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){c(this).removeClass("ui-state-hover");
this.className.indexOf("ui-datepicker-prev")!=-1&&c(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&c(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!f._isDisabledDatepicker(b.inline?b.dpDiv.parent()[0]:b.input[0])){c(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");c(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&c(this).addClass("ui-datepicker-prev-hover");
this.className.indexOf("ui-datepicker-next")!=-1&&c(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();g=this._getNumberOfMonths(b);var i=g[1];i>1?b.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",17*i+"em"):b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");b.dpDiv[(g[0]!=1||g[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");
b==c.datepicker._curInst&&c.datepicker._datepickerShowing&&b.input&&b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus()},_getBorders:function(b){var f=function(g){return{thin:1,medium:2,thick:3}[g]||g};return[parseFloat(f(b.css("border-left-width"))),parseFloat(f(b.css("border-top-width")))]},_checkOffset:function(b,f,g){var i=b.dpDiv.outerWidth(),l=b.dpDiv.outerHeight(),j=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,k=document.documentElement.clientWidth+c(document).scrollLeft(),
m=document.documentElement.clientHeight+c(document).scrollTop();f.left-=this._get(b,"isRTL")?i-j:0;f.left-=g&&f.left==b.input.offset().left?c(document).scrollLeft():0;f.top-=g&&f.top==b.input.offset().top+h?c(document).scrollTop():0;f.left-=Math.min(f.left,f.left+i>k&&k>i?Math.abs(f.left+i-k):0);f.top-=Math.min(f.top,f.top+l>m&&m>l?Math.abs(l+h):0);return f},_findPos:function(b){for(var f=this._get(this._getInst(b),"isRTL");b&&(b.type=="hidden"||b.nodeType!=1);)b=b[f?"previousSibling":"nextSibling"];
b=c(b).offset();return[b.left,b.top]},_hideDatepicker:function(b){var f=this._curInst;if(!(!f||b&&f!=c.data(b,"datepicker")))if(this._datepickerShowing){b=this._get(f,"showAnim");var g=this._get(f,"duration"),i=function(){c.datepicker._tidyDialog(f);this._curInst=null};c.effects&&c.effects[b]?f.dpDiv.hide(b,c.datepicker._get(f,"showOptions"),g,i):f.dpDiv[b=="slideDown"?"slideUp":b=="fadeIn"?"fadeOut":"hide"](b?g:null,i);b||i();if(b=this._get(f,"onClose"))b.apply(f.input?f.input[0]:null,[f.input?f.input.val():
"",f]);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(c.blockUI){c.unblockUI();c("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(b){b.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(c.datepicker._curInst){b=c(b.target);b[0].id!=c.datepicker._mainDivId&&b.parents("#"+c.datepicker._mainDivId).length==0&&!b.hasClass(c.datepicker.markerClassName)&&
!b.hasClass(c.datepicker._triggerClass)&&c.datepicker._datepickerShowing&&!(c.datepicker._inDialog&&c.blockUI)&&c.datepicker._hideDatepicker()}},_adjustDate:function(b,f,g){b=c(b);var i=this._getInst(b[0]);if(!this._isDisabledDatepicker(b[0])){this._adjustInstDate(i,f+(g=="M"?this._get(i,"showCurrentAtPos"):0),g);this._updateDatepicker(i)}},_gotoToday:function(b){b=c(b);var f=this._getInst(b[0]);if(this._get(f,"gotoCurrent")&&f.currentDay){f.selectedDay=f.currentDay;f.drawMonth=f.selectedMonth=f.currentMonth;
f.drawYear=f.selectedYear=f.currentYear}else{var g=new Date;f.selectedDay=g.getDate();f.drawMonth=f.selectedMonth=g.getMonth();f.drawYear=f.selectedYear=g.getFullYear()}this._notifyChange(f);this._adjustDate(b)},_selectMonthYear:function(b,f,g){b=c(b);var i=this._getInst(b[0]);i._selectingMonthYear=false;i["selected"+(g=="M"?"Month":"Year")]=i["draw"+(g=="M"?"Month":"Year")]=parseInt(f.options[f.selectedIndex].value,10);this._notifyChange(i);this._adjustDate(b)},_clickMonthYear:function(b){b=this._getInst(c(b)[0]);
b.input&&b._selectingMonthYear&&!c.browser.msie&&b.input.focus();b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(b,f,g,i){var l=c(b);if(!(c(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(l[0]))){l=this._getInst(l[0]);l.selectedDay=l.currentDay=c("a",i).html();l.selectedMonth=l.currentMonth=f;l.selectedYear=l.currentYear=g;this._selectDate(b,this._formatDate(l,l.currentDay,l.currentMonth,l.currentYear))}},_clearDate:function(b){b=c(b);this._getInst(b[0]);this._selectDate(b,
"")},_selectDate:function(b,f){var g=this._getInst(c(b)[0]);f=f!=null?f:this._formatDate(g);g.input&&g.input.val(f);this._updateAlternate(g);var i=this._get(g,"onSelect");if(i)i.apply(g.input?g.input[0]:null,[f,g]);else g.input&&g.input.trigger("change");if(g.inline)this._updateDatepicker(g);else{this._hideDatepicker();this._lastInput=g.input[0];typeof g.input[0]!="object"&&g.input.focus();this._lastInput=null}},_updateAlternate:function(b){var f=this._get(b,"altField");if(f){var g=this._get(b,"altFormat")||
this._get(b,"dateFormat"),i=this._getDate(b),l=this.formatDate(g,i,this._getFormatConfig(b));c(f).each(function(){c(this).val(l)})}},noWeekends:function(b){b=b.getDay();return[b>0&&b<6,""]},iso8601Week:function(b){b=new Date(b.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var f=b.getTime();b.setMonth(0);b.setDate(1);return Math.floor(Math.round((f-b)/864E5)/7)+1},parseDate:function(b,f,g){if(b==null||f==null)throw"Invalid arguments";f=typeof f=="object"?f.toString():f+"";if(f=="")return null;
for(var i=(g?g.shortYearCutoff:null)||this._defaults.shortYearCutoff,l=(g?g.dayNamesShort:null)||this._defaults.dayNamesShort,j=(g?g.dayNames:null)||this._defaults.dayNames,h=(g?g.monthNamesShort:null)||this._defaults.monthNamesShort,k=(g?g.monthNames:null)||this._defaults.monthNames,m=g=-1,n=-1,o=-1,p=false,q=function(v){(v=B+1<b.length&&b.charAt(B+1)==v)&&B++;return v},r=function(v){q(v);v=RegExp("^\\d{1,"+(v=="@"?14:v=="!"?20:v=="y"?4:v=="o"?3:2)+"}");v=f.substring(w).match(v);if(!v)throw"Missing number at position "+
w;w+=v[0].length;return parseInt(v[0],10)},s=function(v,t,A){v=q(v)?A:t;for(t=0;t<v.length;t++)if(f.substr(w,v[t].length)==v[t]){w+=v[t].length;return t+1}throw"Unknown name at position "+w;},u=function(){if(f.charAt(w)!=b.charAt(B))throw"Unexpected literal at position "+w;w++},w=0,B=0;B<b.length;B++)if(p)if(b.charAt(B)=="'"&&!q("'"))p=false;else u();else switch(b.charAt(B)){case "d":n=r("d");break;case "D":s("D",l,j);break;case "o":o=r("o");break;case "m":m=r("m");break;case "M":m=s("M",h,k);break;
case "y":g=r("y");break;case "@":var y=new Date(r("@"));g=y.getFullYear();m=y.getMonth()+1;n=y.getDate();break;case "!":y=new Date((r("!")-this._ticksTo1970)/1E4);g=y.getFullYear();m=y.getMonth()+1;n=y.getDate();break;case "'":if(q("'"))u();else p=true;break;default:u()}if(g==-1)g=(new Date).getFullYear();else if(g<100)g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=i?0:-100);if(o>-1){m=1;n=o;do{i=this._getDaysInMonth(g,m-1);if(n<=i)break;m++;n-=i}while(1)}y=this._daylightSavingAdjust(new Date(g,
m-1,n));if(y.getFullYear()!=g||y.getMonth()+1!=m||y.getDate()!=n)throw"Invalid date";return y},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(b,f,g){if(!f)return"";var i=(g?g.dayNamesShort:null)||this._defaults.dayNamesShort,l=(g?
g.dayNames:null)||this._defaults.dayNames,j=(g?g.monthNamesShort:null)||this._defaults.monthNamesShort;g=(g?g.monthNames:null)||this._defaults.monthNames;var h=function(q){(q=p+1<b.length&&b.charAt(p+1)==q)&&p++;return q},k=function(q,r,s){r=""+r;if(h(q))for(;r.length<s;)r="0"+r;return r},m=function(q,r,s,u){return h(q)?u[r]:s[r]},n="",o=false;if(f)for(var p=0;p<b.length;p++)if(o)if(b.charAt(p)=="'"&&!h("'"))o=false;else n+=b.charAt(p);else switch(b.charAt(p)){case "d":n+=k("d",f.getDate(),2);break;
case "D":n+=m("D",f.getDay(),i,l);break;case "o":n+=k("o",(f.getTime()-(new Date(f.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":n+=k("m",f.getMonth()+1,2);break;case "M":n+=m("M",f.getMonth(),j,g);break;case "y":n+=h("y")?f.getFullYear():(f.getYear()%100<10?"0":"")+f.getYear()%100;break;case "@":n+=f.getTime();break;case "!":n+=f.getTime()*1E4+this._ticksTo1970;break;case "'":if(h("'"))n+="'";else o=true;break;default:n+=b.charAt(p)}return n},_possibleChars:function(b){for(var f="",g=false,
i=function(j){(j=l+1<b.length&&b.charAt(l+1)==j)&&l++;return j},l=0;l<b.length;l++)if(g)if(b.charAt(l)=="'"&&!i("'"))g=false;else f+=b.charAt(l);else switch(b.charAt(l)){case "d":case "m":case "y":case "@":f+="0123456789";break;case "D":case "M":return null;case "'":if(i("'"))f+="'";else g=true;break;default:f+=b.charAt(l)}return f},_get:function(b,f){return b.settings[f]!==undefined?b.settings[f]:this._defaults[f]},_setDateFromField:function(b,f){if(b.input.val()!=b.lastVal){var g=this._get(b,"dateFormat"),
i=b.lastVal=b.input?b.input.val():null,l,j;l=j=this._getDefaultDate(b);var h=this._getFormatConfig(b);try{l=this.parseDate(g,i,h)||j}catch(k){this.log(k);i=f?"":i}b.selectedDay=l.getDate();b.drawMonth=b.selectedMonth=l.getMonth();b.drawYear=b.selectedYear=l.getFullYear();b.currentDay=i?l.getDate():0;b.currentMonth=i?l.getMonth():0;b.currentYear=i?l.getFullYear():0;this._adjustInstDate(b)}},_getDefaultDate:function(b){return this._restrictMinMax(b,this._determineDate(b,this._get(b,"defaultDate"),new Date))},
_determineDate:function(b,f,g){var i=function(j){var h=new Date;h.setDate(h.getDate()+j);return h},l=function(j){try{return c.datepicker.parseDate(c.datepicker._get(b,"dateFormat"),j,c.datepicker._getFormatConfig(b))}catch(h){}var k=(j.toLowerCase().match(/^c/)?c.datepicker._getDate(b):null)||new Date,m=k.getFullYear(),n=k.getMonth();k=k.getDate();for(var o=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,p=o.exec(j);p;){switch(p[2]||"d"){case "d":case "D":k+=parseInt(p[1],10);break;case "w":case "W":k+=parseInt(p[1],
10)*7;break;case "m":case "M":n+=parseInt(p[1],10);k=Math.min(k,c.datepicker._getDaysInMonth(m,n));break;case "y":case "Y":m+=parseInt(p[1],10);k=Math.min(k,c.datepicker._getDaysInMonth(m,n))}p=o.exec(j)}return new Date(m,n,k)};if(f=(f=f==null?g:typeof f=="string"?l(f):typeof f=="number"?isNaN(f)?g:i(f):f)&&f.toString()=="Invalid Date"?g:f){f.setHours(0);f.setMinutes(0);f.setSeconds(0);f.setMilliseconds(0)}return this._daylightSavingAdjust(f)},_daylightSavingAdjust:function(b){if(!b)return null;b.setHours(b.getHours()>
12?b.getHours()+2:0);return b},_setDate:function(b,f,g){var i=!f,l=b.selectedMonth,j=b.selectedYear;f=this._restrictMinMax(b,this._determineDate(b,f,new Date));b.selectedDay=b.currentDay=f.getDate();b.drawMonth=b.selectedMonth=b.currentMonth=f.getMonth();b.drawYear=b.selectedYear=b.currentYear=f.getFullYear();if((l!=b.selectedMonth||j!=b.selectedYear)&&!g)this._notifyChange(b);this._adjustInstDate(b);if(b.input)b.input.val(i?"":this._formatDate(b))},_getDate:function(b){return!b.currentYear||b.input&&
b.input.val()==""?null:this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay))},_generateHTML:function(b){var f=new Date;f=this._daylightSavingAdjust(new Date(f.getFullYear(),f.getMonth(),f.getDate()));var g=this._get(b,"isRTL"),i=this._get(b,"showButtonPanel"),l=this._get(b,"hideIfNoPrevNext"),j=this._get(b,"navigationAsDateFormat"),h=this._getNumberOfMonths(b),k=this._get(b,"showCurrentAtPos"),m=this._get(b,"stepMonths"),n=h[0]!=1||h[1]!=1,o=this._daylightSavingAdjust(!b.currentDay?
new Date(9999,9,9):new Date(b.currentYear,b.currentMonth,b.currentDay)),p=this._getMinMaxDate(b,"min"),q=this._getMinMaxDate(b,"max");k=b.drawMonth-k;var r=b.drawYear;if(k<0){k+=12;r--}if(q){var s=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth()-h[0]*h[1]+1,q.getDate()));for(s=p&&s<p?p:s;this._daylightSavingAdjust(new Date(r,k,1))>s;){k--;if(k<0){k=11;r--}}}b.drawMonth=k;b.drawYear=r;s=this._get(b,"prevText");s=!j?s:this.formatDate(s,this._daylightSavingAdjust(new Date(r,k-m,1)),this._getFormatConfig(b));
s=this._canAdjustMonth(b,-1,r,k)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+e+".datepicker._adjustDate('#"+b.id+"', -"+m+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"e":"w")+'">'+s+"</span></a>":l?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"e":"w")+'">'+s+"</span></a>";var u=this._get(b,"nextText");u=!j?u:this.formatDate(u,this._daylightSavingAdjust(new Date(r,
k+m,1)),this._getFormatConfig(b));l=this._canAdjustMonth(b,+1,r,k)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+e+".datepicker._adjustDate('#"+b.id+"', +"+m+", 'M');\" title=\""+u+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"w":"e")+'">'+u+"</span></a>":l?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+u+'"><span class="ui-icon ui-icon-circle-triangle-'+(g?"w":"e")+'">'+u+"</span></a>";m=this._get(b,"currentText");u=this._get(b,"gotoCurrent")&&
b.currentDay?o:f;m=!j?m:this.formatDate(m,u,this._getFormatConfig(b));j=!b.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+e+'.datepicker._hideDatepicker();">'+this._get(b,"closeText")+"</button>":"";i=i?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(g?j:"")+(this._isInRange(b,u)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+
e+".datepicker._gotoToday('#"+b.id+"');\">"+m+"</button>":"")+(g?"":j)+"</div>":"";j=parseInt(this._get(b,"firstDay"),10);j=isNaN(j)?0:j;m=this._get(b,"showWeek");u=this._get(b,"dayNames");this._get(b,"dayNamesShort");var w=this._get(b,"dayNamesMin"),B=this._get(b,"monthNames"),y=this._get(b,"monthNamesShort"),v=this._get(b,"beforeShowDay"),t=this._get(b,"showOtherMonths"),A=this._get(b,"selectOtherMonths");this._get(b,"calculateWeek");for(var F=this._getDefaultDate(b),C="",H=0;H<h[0];H++){for(var L=
"",I=0;I<h[1];I++){var M=this._daylightSavingAdjust(new Date(r,k,b.selectedDay)),z=" ui-corner-all",D="";if(n){D+='<div class="ui-datepicker-group';if(h[1]>1)switch(I){case 0:D+=" ui-datepicker-group-first";z=" ui-corner-"+(g?"right":"left");break;case h[1]-1:D+=" ui-datepicker-group-last";z=" ui-corner-"+(g?"left":"right");break;default:D+=" ui-datepicker-group-middle";z=""}D+='">'}D+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+z+'">'+(/all|left/.test(z)&&H==0?g?l:s:"")+
(/all|right/.test(z)&&H==0?g?s:l:"")+this._generateMonthYearHeader(b,k,r,p,q,H>0||I>0,B,y)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var E=m?'<th class="ui-datepicker-week-col">'+this._get(b,"weekHeader")+"</th>":"";for(z=0;z<7;z++){var x=(z+j)%7;E+="<th"+((z+j+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+u[x]+'">'+w[x]+"</span></th>"}D+=E+"</tr></thead><tbody>";E=this._getDaysInMonth(r,k);if(r==b.selectedYear&&k==b.selectedMonth)b.selectedDay=Math.min(b.selectedDay,
E);z=(this._getFirstDayOfMonth(r,k)-j+7)%7;E=n?6:Math.ceil((z+E)/7);x=this._daylightSavingAdjust(new Date(r,k,1-z));for(var N=0;N<E;N++){D+="<tr>";var O=!m?"":'<td class="ui-datepicker-week-col">'+this._get(b,"calculateWeek")(x)+"</td>";for(z=0;z<7;z++){var J=v?v.apply(b.input?b.input[0]:null,[x]):[true,""],G=x.getMonth()!=k,K=G&&!A||!J[0]||p&&x<p||q&&x>q;O+='<td class="'+((z+j+6)%7>=5?" ui-datepicker-week-end":"")+(G?" ui-datepicker-other-month":"")+(x.getTime()==M.getTime()&&k==b.selectedMonth&&
b._keyEvent||F.getTime()==x.getTime()&&F.getTime()==M.getTime()?" "+this._dayOverClass:"")+(K?" "+this._unselectableClass+" ui-state-disabled":"")+(G&&!t?"":" "+J[1]+(x.getTime()==o.getTime()?" "+this._currentClass:"")+(x.getTime()==f.getTime()?" ui-datepicker-today":""))+'"'+((!G||t)&&J[2]?' title="'+J[2]+'"':"")+(K?"":' onclick="DP_jQuery_'+e+".datepicker._selectDay('#"+b.id+"',"+x.getMonth()+","+x.getFullYear()+', this);return false;"')+">"+(G&&!t?"&#xa0;":K?'<span class="ui-state-default">'+x.getDate()+
"</span>":'<a class="ui-state-default'+(x.getTime()==f.getTime()?" ui-state-highlight":"")+(x.getTime()==o.getTime()?" ui-state-active":"")+(G?" ui-priority-secondary":"")+'" href="#">'+x.getDate()+"</a>")+"</td>";x.setDate(x.getDate()+1);x=this._daylightSavingAdjust(x)}D+=O+"</tr>"}k++;if(k>11){k=0;r++}D+="</tbody></table>"+(n?"</div>"+(h[0]>0&&I==h[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");L+=D}C+=L}C+=i+(c.browser.msie&&parseInt(c.browser.version,10)<7&&!b.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':
"");b._keyEvent=false;return C},_generateMonthYearHeader:function(b,f,g,i,l,j,h,k){var m=this._get(b,"changeMonth"),n=this._get(b,"changeYear"),o=this._get(b,"showMonthAfterYear"),p='<div class="ui-datepicker-title">',q="";if(j||!m)q+='<span class="ui-datepicker-month">'+h[f]+"</span>";else{h=i&&i.getFullYear()==g;var r=l&&l.getFullYear()==g;q+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+e+".datepicker._selectMonthYear('#"+b.id+"', this, 'M');\" onclick=\"DP_jQuery_"+e+".datepicker._clickMonthYear('#"+
b.id+"');\">";for(var s=0;s<12;s++)if((!h||s>=i.getMonth())&&(!r||s<=l.getMonth()))q+='<option value="'+s+'"'+(s==f?' selected="selected"':"")+">"+k[s]+"</option>";q+="</select>"}o||(p+=q+(j||!(m&&n)?"&#xa0;":""));if(j||!n)p+='<span class="ui-datepicker-year">'+g+"</span>";else{k=this._get(b,"yearRange").split(":");var u=(new Date).getFullYear();h=function(w){w=w.match(/c[+-].*/)?g+parseInt(w.substring(1),10):w.match(/[+-].*/)?u+parseInt(w,10):parseInt(w,10);return isNaN(w)?u:w};f=h(k[0]);k=Math.max(f,
h(k[1]||""));f=i?Math.max(f,i.getFullYear()):f;k=l?Math.min(k,l.getFullYear()):k;for(p+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+e+".datepicker._selectMonthYear('#"+b.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+e+".datepicker._clickMonthYear('#"+b.id+"');\">";f<=k;f++)p+='<option value="'+f+'"'+(f==g?' selected="selected"':"")+">"+f+"</option>";p+="</select>"}p+=this._get(b,"yearSuffix");if(o)p+=(j||!(m&&n)?"&#xa0;":"")+q;p+="</div>";return p},_adjustInstDate:function(b,f,g){var i=
b.drawYear+(g=="Y"?f:0),l=b.drawMonth+(g=="M"?f:0);f=Math.min(b.selectedDay,this._getDaysInMonth(i,l))+(g=="D"?f:0);i=this._restrictMinMax(b,this._daylightSavingAdjust(new Date(i,l,f)));b.selectedDay=i.getDate();b.drawMonth=b.selectedMonth=i.getMonth();b.drawYear=b.selectedYear=i.getFullYear();if(g=="M"||g=="Y")this._notifyChange(b)},_restrictMinMax:function(b,f){var g=this._getMinMaxDate(b,"min"),i=this._getMinMaxDate(b,"max");f=g&&f<g?g:f;return f=i&&f>i?i:f},_notifyChange:function(b){var f=this._get(b,
"onChangeMonthYear");if(f)f.apply(b.input?b.input[0]:null,[b.selectedYear,b.selectedMonth+1,b])},_getNumberOfMonths:function(b){b=this._get(b,"numberOfMonths");return b==null?[1,1]:typeof b=="number"?[1,b]:b},_getMinMaxDate:function(b,f){return this._determineDate(b,this._get(b,f+"Date"),null)},_getDaysInMonth:function(b,f){return 32-(new Date(b,f,32)).getDate()},_getFirstDayOfMonth:function(b,f){return(new Date(b,f,1)).getDay()},_canAdjustMonth:function(b,f,g,i){var l=this._getNumberOfMonths(b);
g=this._daylightSavingAdjust(new Date(g,i+(f<0?f:l[0]*l[1]),1));f<0&&g.setDate(this._getDaysInMonth(g.getFullYear(),g.getMonth()));return this._isInRange(b,g)},_isInRange:function(b,f){var g=this._getMinMaxDate(b,"min"),i=this._getMinMaxDate(b,"max");return(!g||f.getTime()>=g.getTime())&&(!i||f.getTime()<=i.getTime())},_getFormatConfig:function(b){var f=this._get(b,"shortYearCutoff");f=typeof f!="string"?f:(new Date).getFullYear()%100+parseInt(f,10);return{shortYearCutoff:f,dayNamesShort:this._get(b,
"dayNamesShort"),dayNames:this._get(b,"dayNames"),monthNamesShort:this._get(b,"monthNamesShort"),monthNames:this._get(b,"monthNames")}},_formatDate:function(b,f,g,i){if(!f){b.currentDay=b.selectedDay;b.currentMonth=b.selectedMonth;b.currentYear=b.selectedYear}f=f?typeof f=="object"?f:this._daylightSavingAdjust(new Date(i,g,f)):this._daylightSavingAdjust(new Date(b.currentYear,b.currentMonth,b.currentDay));return this.formatDate(this._get(b,"dateFormat"),f,this._getFormatConfig(b))}});c.fn.datepicker=
function(b){if(!c.datepicker.initialized){c(document).mousedown(c.datepicker._checkExternalClick).find("body").append(c.datepicker.dpDiv);c.datepicker.initialized=true}var f=Array.prototype.slice.call(arguments,1);if(typeof b=="string"&&(b=="isDisabled"||b=="getDate"||b=="widget"))return c.datepicker["_"+b+"Datepicker"].apply(c.datepicker,[this[0]].concat(f));if(b=="option"&&arguments.length==2&&typeof arguments[1]=="string")return c.datepicker["_"+b+"Datepicker"].apply(c.datepicker,[this[0]].concat(f));
return this.each(function(){typeof b=="string"?c.datepicker["_"+b+"Datepicker"].apply(c.datepicker,[this].concat(f)):c.datepicker._attachDatepicker(this,b)})};c.datepicker=new a;c.datepicker.initialized=false;c.datepicker.uuid=(new Date).getTime();c.datepicker.version="1.8";window["DP_jQuery_"+e]=c})(jQuery);
jQuery.effects||function(c){function a(j){var h;if(j&&j.constructor==Array&&j.length==3)return j;if(h=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(j))return[parseInt(h[1],10),parseInt(h[2],10),parseInt(h[3],10)];if(h=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(j))return[parseFloat(h[1])*2.55,parseFloat(h[2])*2.55,parseFloat(h[3])*2.55];if(h=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(j))return[parseInt(h[1],
16),parseInt(h[2],16),parseInt(h[3],16)];if(h=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(j))return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(j))return g.transparent;return g[c.trim(j).toLowerCase()]}function d(){var j=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,h={},k,m;if(j&&j.length&&j[0]&&j[j[0]])for(var n=j.length;n--;){k=j[n];if(typeof j[k]=="string"){m=k.replace(/\-(\w)/g,function(o,p){return p.toUpperCase()});
h[m]=j[k]}}else for(k in j)if(typeof j[k]==="string")h[k]=j[k];return h}function e(j){var h,k;for(h in j){k=j[h];if(k==null||c.isFunction(k)||h in l||/scrollbar/.test(h)||!/color/i.test(h)&&isNaN(parseFloat(k)))delete j[h]}return j}function b(j,h){var k={_:0},m;for(m in h)if(j[m]!=h[m])k[m]=h[m];return k}function f(j,h,k,m){if(typeof j=="object"){m=h;k=null;h=j;j=h.effect}if(c.isFunction(h)){m=h;k=null;h={}}if(c.isFunction(k)){m=k;k=null}if(typeof h=="number"||c.fx.speeds[h]){m=k;k=h;h={}}h=h||{};
k=k||h.duration;k=c.fx.off?0:typeof k=="number"?k:c.fx.speeds[k]||c.fx.speeds._default;m=m||h.complete;return[j,h,k,m]}c.effects={};c.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(j,h){c.fx.step[h]=function(k){if(!k.colorInit){var m;m=k.elem;var n=h,o;do{o=c.curCSS(m,n);if(o!=""&&o!="transparent"||c.nodeName(m,"body"))break;n="backgroundColor"}while(m=m.parentNode);m=a(o);k.start=m;k.end=a(k.end);k.colorInit=true}k.elem.style[h]=
"rgb("+Math.max(Math.min(parseInt(k.pos*(k.end[0]-k.start[0])+k.start[0],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[1]-k.start[1])+k.start[1],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[2]-k.start[2])+k.start[2],10),255),0)+")"}});var g={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]},i=["add","remove","toggle"],l={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};c.effects.animateClass=function(j,h,k,m){if(c.isFunction(k)){m=k;k=null}return this.each(function(){var n=c(this),o=n.attr("style")||" ",p=e(d.call(this)),q,r=n.attr("className");c.each(i,function(s,u){j[u]&&n[u+"Class"](j[u])});
q=e(d.call(this));n.attr("className",r);n.animate(b(p,q),h,k,function(){c.each(i,function(s,u){j[u]&&n[u+"Class"](j[u])});if(typeof n.attr("style")=="object"){n.attr("style").cssText="";n.attr("style").cssText=o}else n.attr("style",o);m&&m.apply(this,arguments)})})};c.fn.extend({_addClass:c.fn.addClass,addClass:function(j,h,k,m){return h?c.effects.animateClass.apply(this,[{add:j},h,k,m]):this._addClass(j)},_removeClass:c.fn.removeClass,removeClass:function(j,h,k,m){return h?c.effects.animateClass.apply(this,
[{remove:j},h,k,m]):this._removeClass(j)},_toggleClass:c.fn.toggleClass,toggleClass:function(j,h,k,m,n){return typeof h=="boolean"||h===undefined?k?c.effects.animateClass.apply(this,[h?{add:j}:{remove:j},k,m,n]):this._toggleClass(j,h):c.effects.animateClass.apply(this,[{toggle:j},h,k,m])},switchClass:function(j,h,k,m,n){return c.effects.animateClass.apply(this,[{add:h,remove:j},k,m,n])}});c.extend(c.effects,{version:"1.8",save:function(j,h){for(var k=0;k<h.length;k++)h[k]!==null&&j.data("ec.storage."+
h[k],j[0].style[h[k]])},restore:function(j,h){for(var k=0;k<h.length;k++)h[k]!==null&&j.css(h[k],j.data("ec.storage."+h[k]))},setMode:function(j,h){if(h=="toggle")h=j.is(":hidden")?"show":"hide";return h},getBaseline:function(j,h){var k,m;switch(j[0]){case "top":k=0;break;case "middle":k=0.5;break;case "bottom":k=1;break;default:k=j[0]/h.height}switch(j[1]){case "left":m=0;break;case "center":m=0.5;break;case "right":m=1;break;default:m=j[1]/h.width}return{x:m,y:k}},createWrapper:function(j){if(j.parent().is(".ui-effects-wrapper"))return j.parent();
var h={width:j.outerWidth(true),height:j.outerHeight(true),"float":j.css("float")},k=c("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});j.wrap(k);k=j.parent();if(j.css("position")=="static"){k.css({position:"relative"});j.css({position:"relative"})}else{c.extend(h,{position:j.css("position"),zIndex:j.css("z-index")});c.each(["top","left","bottom","right"],function(m,n){h[n]=j.css(n);if(isNaN(parseInt(h[n],10)))h[n]="auto"});
j.css({position:"relative",top:0,left:0})}return k.css(h).show()},removeWrapper:function(j){if(j.parent().is(".ui-effects-wrapper"))return j.parent().replaceWith(j);return j},setTransition:function(j,h,k,m){m=m||{};c.each(h,function(n,o){unit=j.cssUnit(o);if(unit[0]>0)m[o]=unit[0]*k+unit[1]});return m}});c.fn.extend({effect:function(j){var h=f.apply(this,arguments);h={options:h[1],duration:h[2],callback:h[3]};var k=c.effects[j];return k&&!c.fx.off?k.call(this,h):this},_show:c.fn.show,show:function(j){if(!j||
typeof j=="number"||c.fx.speeds[j])return this._show.apply(this,arguments);else{var h=f.apply(this,arguments);h[1].mode="show";return this.effect.apply(this,h)}},_hide:c.fn.hide,hide:function(j){if(!j||typeof j=="number"||c.fx.speeds[j])return this._hide.apply(this,arguments);else{var h=f.apply(this,arguments);h[1].mode="hide";return this.effect.apply(this,h)}},__toggle:c.fn.toggle,toggle:function(j){if(!j||typeof j=="number"||c.fx.speeds[j]||typeof j=="boolean"||c.isFunction(j))return this.__toggle.apply(this,
arguments);else{var h=f.apply(this,arguments);h[1].mode="toggle";return this.effect.apply(this,h)}},cssUnit:function(j){var h=this.css(j),k=[];c.each(["em","px","%","pt"],function(m,n){if(h.indexOf(n)>0)k=[parseFloat(h),n]});return k}});c.easing.jswing=c.easing.swing;c.extend(c.easing,{def:"easeOutQuad",swing:function(j,h,k,m,n){return c.easing[c.easing.def](j,h,k,m,n)},easeInQuad:function(j,h,k,m,n){return m*(h/=n)*h+k},easeOutQuad:function(j,h,k,m,n){return-m*(h/=n)*(h-2)+k},easeInOutQuad:function(j,
h,k,m,n){if((h/=n/2)<1)return m/2*h*h+k;return-m/2*(--h*(h-2)-1)+k},easeInCubic:function(j,h,k,m,n){return m*(h/=n)*h*h+k},easeOutCubic:function(j,h,k,m,n){return m*((h=h/n-1)*h*h+1)+k},easeInOutCubic:function(j,h,k,m,n){if((h/=n/2)<1)return m/2*h*h*h+k;return m/2*((h-=2)*h*h+2)+k},easeInQuart:function(j,h,k,m,n){return m*(h/=n)*h*h*h+k},easeOutQuart:function(j,h,k,m,n){return-m*((h=h/n-1)*h*h*h-1)+k},easeInOutQuart:function(j,h,k,m,n){if((h/=n/2)<1)return m/2*h*h*h*h+k;return-m/2*((h-=2)*h*h*h-2)+
k},easeInQuint:function(j,h,k,m,n){return m*(h/=n)*h*h*h*h+k},easeOutQuint:function(j,h,k,m,n){return m*((h=h/n-1)*h*h*h*h+1)+k},easeInOutQuint:function(j,h,k,m,n){if((h/=n/2)<1)return m/2*h*h*h*h*h+k;return m/2*((h-=2)*h*h*h*h+2)+k},easeInSine:function(j,h,k,m,n){return-m*Math.cos(h/n*(Math.PI/2))+m+k},easeOutSine:function(j,h,k,m,n){return m*Math.sin(h/n*(Math.PI/2))+k},easeInOutSine:function(j,h,k,m,n){return-m/2*(Math.cos(Math.PI*h/n)-1)+k},easeInExpo:function(j,h,k,m,n){return h==0?k:m*Math.pow(2,
10*(h/n-1))+k},easeOutExpo:function(j,h,k,m,n){return h==n?k+m:m*(-Math.pow(2,-10*h/n)+1)+k},easeInOutExpo:function(j,h,k,m,n){if(h==0)return k;if(h==n)return k+m;if((h/=n/2)<1)return m/2*Math.pow(2,10*(h-1))+k;return m/2*(-Math.pow(2,-10*--h)+2)+k},easeInCirc:function(j,h,k,m,n){return-m*(Math.sqrt(1-(h/=n)*h)-1)+k},easeOutCirc:function(j,h,k,m,n){return m*Math.sqrt(1-(h=h/n-1)*h)+k},easeInOutCirc:function(j,h,k,m,n){if((h/=n/2)<1)return-m/2*(Math.sqrt(1-h*h)-1)+k;return m/2*(Math.sqrt(1-(h-=2)*
h)+1)+k},easeInElastic:function(j,h,k,m,n){j=1.70158;var o=0,p=m;if(h==0)return k;if((h/=n)==1)return k+m;o||(o=n*0.3);if(p<Math.abs(m)){p=m;j=o/4}else j=o/(2*Math.PI)*Math.asin(m/p);return-(p*Math.pow(2,10*(h-=1))*Math.sin((h*n-j)*2*Math.PI/o))+k},easeOutElastic:function(j,h,k,m,n){j=1.70158;var o=0,p=m;if(h==0)return k;if((h/=n)==1)return k+m;o||(o=n*0.3);if(p<Math.abs(m)){p=m;j=o/4}else j=o/(2*Math.PI)*Math.asin(m/p);return p*Math.pow(2,-10*h)*Math.sin((h*n-j)*2*Math.PI/o)+m+k},easeInOutElastic:function(j,
h,k,m,n){j=1.70158;var o=0,p=m;if(h==0)return k;if((h/=n/2)==2)return k+m;o||(o=n*0.3*1.5);if(p<Math.abs(m)){p=m;j=o/4}else j=o/(2*Math.PI)*Math.asin(m/p);if(h<1)return-0.5*p*Math.pow(2,10*(h-=1))*Math.sin((h*n-j)*2*Math.PI/o)+k;return p*Math.pow(2,-10*(h-=1))*Math.sin((h*n-j)*2*Math.PI/o)*0.5+m+k},easeInBack:function(j,h,k,m,n,o){if(o==undefined)o=1.70158;return m*(h/=n)*h*((o+1)*h-o)+k},easeOutBack:function(j,h,k,m,n,o){if(o==undefined)o=1.70158;return m*((h=h/n-1)*h*((o+1)*h+o)+1)+k},easeInOutBack:function(j,
h,k,m,n,o){if(o==undefined)o=1.70158;if((h/=n/2)<1)return m/2*h*h*(((o*=1.525)+1)*h-o)+k;return m/2*((h-=2)*h*(((o*=1.525)+1)*h+o)+2)+k},easeInBounce:function(j,h,k,m,n){return m-c.easing.easeOutBounce(j,n-h,0,m,n)+k},easeOutBounce:function(j,h,k,m,n){return(h/=n)<1/2.75?m*7.5625*h*h+k:h<2/2.75?m*(7.5625*(h-=1.5/2.75)*h+0.75)+k:h<2.5/2.75?m*(7.5625*(h-=2.25/2.75)*h+0.9375)+k:m*(7.5625*(h-=2.625/2.75)*h+0.984375)+k},easeInOutBounce:function(j,h,k,m,n){if(h<n/2)return c.easing.easeInBounce(j,h*2,0,
m,n)*0.5+k;return c.easing.easeOutBounce(j,h*2-n,0,m,n)*0.5+m*0.5+k}})}(jQuery);
(function(c){c.effects.blind=function(a){return this.queue(function(){var d=c(this),e=["position","top","left"],b=c.effects.setMode(d,a.options.mode||"hide"),f=a.options.direction||"vertical";c.effects.save(d,e);d.show();var g=c.effects.createWrapper(d).css({overflow:"hidden"}),i=f=="vertical"?"height":"width";f=f=="vertical"?g.height():g.width();b=="show"&&g.css(i,0);var l={};l[i]=b=="show"?f:0;g.animate(l,a.duration,a.options.easing,function(){b=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);
a.callback&&a.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
(function(c){c.effects.bounce=function(a){return this.queue(function(){var d=c(this),e=["position","top","left"],b=c.effects.setMode(d,a.options.mode||"effect"),f=a.options.direction||"up",g=a.options.distance||20,i=a.options.times||5,l=a.duration||250;/show|hide/.test(b)&&e.push("opacity");c.effects.save(d,e);d.show();c.effects.createWrapper(d);var j=f=="up"||f=="down"?"top":"left";f=f=="up"||f=="left"?"pos":"neg";g=a.options.distance||(j=="top"?d.outerHeight({margin:true})/3:d.outerWidth({margin:true})/
3);if(b=="show")d.css("opacity",0).css(j,f=="pos"?-g:g);if(b=="hide")g/=i*2;b!="hide"&&i--;if(b=="show"){var h={opacity:1};h[j]=(f=="pos"?"+=":"-=")+g;d.animate(h,l/2,a.options.easing);g/=2;i--}for(h=0;h<i;h++){var k={},m={};k[j]=(f=="pos"?"-=":"+=")+g;m[j]=(f=="pos"?"+=":"-=")+g;d.animate(k,l/2,a.options.easing).animate(m,l/2,a.options.easing);g=b=="hide"?g*2:g/2}if(b=="hide"){h={opacity:0};h[j]=(f=="pos"?"-=":"+=")+g;d.animate(h,l/2,a.options.easing,function(){d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);
a.callback&&a.callback.apply(this,arguments)})}else{k={};m={};k[j]=(f=="pos"?"-=":"+=")+g;m[j]=(f=="pos"?"+=":"-=")+g;d.animate(k,l/2,a.options.easing).animate(m,l/2,a.options.easing,function(){c.effects.restore(d,e);c.effects.removeWrapper(d);a.callback&&a.callback.apply(this,arguments)})}d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
(function(c){c.effects.clip=function(a){return this.queue(function(){var d=c(this),e=["position","top","left","height","width"],b=c.effects.setMode(d,a.options.mode||"hide"),f=a.options.direction||"vertical";c.effects.save(d,e);d.show();var g=c.effects.createWrapper(d).css({overflow:"hidden"});g=d[0].tagName=="IMG"?g:d;var i={size:f=="vertical"?"height":"width",position:f=="vertical"?"top":"left"};f=f=="vertical"?g.height():g.width();if(b=="show"){g.css(i.size,0);g.css(i.position,f/2)}var l={};l[i.size]=
b=="show"?f:0;l[i.position]=b=="show"?0:f/2;g.animate(l,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){b=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);a.callback&&a.callback.apply(d[0],arguments);d.dequeue()}})})}})(jQuery);
(function(c){c.effects.drop=function(a){return this.queue(function(){var d=c(this),e=["position","top","left","opacity"],b=c.effects.setMode(d,a.options.mode||"hide"),f=a.options.direction||"left";c.effects.save(d,e);d.show();c.effects.createWrapper(d);var g=f=="up"||f=="down"?"top":"left";f=f=="up"||f=="left"?"pos":"neg";var i=a.options.distance||(g=="top"?d.outerHeight({margin:true})/2:d.outerWidth({margin:true})/2);if(b=="show")d.css("opacity",0).css(g,f=="pos"?-i:i);var l={opacity:b=="show"?1:
0};l[g]=(b=="show"?f=="pos"?"+=":"-=":f=="pos"?"-=":"+=")+i;d.animate(l,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){b=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);a.callback&&a.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(c){c.effects.explode=function(a){return this.queue(function(){var d=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3,e=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3;a.options.mode=a.options.mode=="toggle"?c(this).is(":visible")?"hide":"show":a.options.mode;var b=c(this).show().css("visibility","hidden"),f=b.offset();f.top-=parseInt(b.css("marginTop"),10)||0;f.left-=parseInt(b.css("marginLeft"),10)||0;for(var g=b.outerWidth(true),i=b.outerHeight(true),l=0;l<d;l++)for(var j=
0;j<e;j++)b.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-j*(g/e),top:-l*(i/d)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/e,height:i/d,left:f.left+j*(g/e)+(a.options.mode=="show"?(j-Math.floor(e/2))*(g/e):0),top:f.top+l*(i/d)+(a.options.mode=="show"?(l-Math.floor(d/2))*(i/d):0),opacity:a.options.mode=="show"?0:1}).animate({left:f.left+j*(g/e)+(a.options.mode=="show"?0:(j-Math.floor(e/2))*(g/e)),top:f.top+
l*(i/d)+(a.options.mode=="show"?0:(l-Math.floor(d/2))*(i/d)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();c("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery);
(function(c){c.effects.fold=function(a){return this.queue(function(){var d=c(this),e=["position","top","left"],b=c.effects.setMode(d,a.options.mode||"hide"),f=a.options.size||15,g=!!a.options.horizFirst,i=a.duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(d,e);d.show();var l=c.effects.createWrapper(d).css({overflow:"hidden"}),j=b=="show"!=g,h=j?["width","height"]:["height","width"];j=j?[l.width(),l.height()]:[l.height(),l.width()];var k=/([0-9]+)%/.exec(f);if(k)f=parseInt(k[1],10)/100*
j[b=="hide"?0:1];if(b=="show")l.css(g?{height:0,width:f}:{height:f,width:0});g={};k={};g[h[0]]=b=="show"?j[0]:f;k[h[1]]=b=="show"?j[1]:0;l.animate(g,i,a.options.easing).animate(k,i,a.options.easing,function(){b=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);a.callback&&a.callback.apply(d[0],arguments);d.dequeue()})})}})(jQuery);
(function(c){c.effects.highlight=function(a){return this.queue(function(){var d=c(this),e=["backgroundImage","backgroundColor","opacity"],b=c.effects.setMode(d,a.options.mode||"show"),f={backgroundColor:d.css("backgroundColor")};if(b=="hide")f.opacity=0;c.effects.save(d,e);d.show().css({backgroundImage:"none",backgroundColor:a.options.color||"#ffff99"}).animate(f,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){b=="hide"&&d.hide();c.effects.restore(d,e);b=="show"&&!c.support.opacity&&
this.style.removeAttribute("filter");a.callback&&a.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(c){c.effects.pulsate=function(a){return this.queue(function(){var d=c(this),e=c.effects.setMode(d,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:c.fx.speeds._default/2;isVisible=d.is(":visible");animateTo=0;if(!isVisible){d.css("opacity",0).show();animateTo=1}if(e=="hide"&&isVisible||e=="show"&&!isVisible)times--;for(e=0;e<times;e++){d.animate({opacity:animateTo},duration,a.options.easing);animateTo=(animateTo+1)%2}d.animate({opacity:animateTo},duration,
a.options.easing,function(){animateTo==0&&d.hide();a.callback&&a.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()}).dequeue()})}})(jQuery);
(function(c){c.effects.puff=function(a){return this.queue(function(){var d=c(this),e=c.effects.setMode(d,a.options.mode||"hide"),b=parseInt(a.options.percent,10)||150,f=b/100,g={height:d.height(),width:d.width()};c.extend(a.options,{fade:true,mode:e,percent:e=="hide"?b:100,from:e=="hide"?g:{height:g.height*f,width:g.width*f}});d.effect("scale",a.options,a.duration,a.callback);d.dequeue()})};c.effects.scale=function(a){return this.queue(function(){var d=c(this),e=c.extend(true,{},a.options),b=c.effects.setMode(d,
a.options.mode||"effect"),f=parseInt(a.options.percent,10)||(parseInt(a.options.percent,10)==0?0:b=="hide"?0:100),g=a.options.direction||"both",i=a.options.origin;if(b!="effect"){e.origin=i||["middle","center"];e.restore=true}i={height:d.height(),width:d.width()};d.from=a.options.from||(b=="show"?{height:0,width:0}:i);f={y:g!="horizontal"?f/100:1,x:g!="vertical"?f/100:1};d.to={height:i.height*f.y,width:i.width*f.x};if(a.options.fade){if(b=="show"){d.from.opacity=0;d.to.opacity=1}if(b=="hide"){d.from.opacity=
1;d.to.opacity=0}}e.from=d.from;e.to=d.to;e.mode=b;d.effect("size",e,a.duration,a.callback);d.dequeue()})};c.effects.size=function(a){return this.queue(function(){var d=c(this),e=["position","top","left","width","height","overflow","opacity"],b=["position","top","left","overflow","opacity"],f=["width","height","overflow"],g=["fontSize"],i=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],j=c.effects.setMode(d,
a.options.mode||"effect"),h=a.options.restore||false,k=a.options.scale||"both",m=a.options.origin,n={height:d.height(),width:d.width()};d.from=a.options.from||n;d.to=a.options.to||n;if(m){m=c.effects.getBaseline(m,n);d.from.top=(n.height-d.from.height)*m.y;d.from.left=(n.width-d.from.width)*m.x;d.to.top=(n.height-d.to.height)*m.y;d.to.left=(n.width-d.to.width)*m.x}var o={from:{y:d.from.height/n.height,x:d.from.width/n.width},to:{y:d.to.height/n.height,x:d.to.width/n.width}};if(k=="box"||k=="both"){if(o.from.y!=
o.to.y){e=e.concat(i);d.from=c.effects.setTransition(d,i,o.from.y,d.from);d.to=c.effects.setTransition(d,i,o.to.y,d.to)}if(o.from.x!=o.to.x){e=e.concat(l);d.from=c.effects.setTransition(d,l,o.from.x,d.from);d.to=c.effects.setTransition(d,l,o.to.x,d.to)}}if(k=="content"||k=="both")if(o.from.y!=o.to.y){e=e.concat(g);d.from=c.effects.setTransition(d,g,o.from.y,d.from);d.to=c.effects.setTransition(d,g,o.to.y,d.to)}c.effects.save(d,h?e:b);d.show();c.effects.createWrapper(d);d.css("overflow","hidden").css(d.from);
if(k=="content"||k=="both"){i=i.concat(["marginTop","marginBottom"]).concat(g);l=l.concat(["marginLeft","marginRight"]);f=e.concat(i).concat(l);d.find("*[width]").each(function(){child=c(this);h&&c.effects.save(child,f);var p={height:child.height(),width:child.width()};child.from={height:p.height*o.from.y,width:p.width*o.from.x};child.to={height:p.height*o.to.y,width:p.width*o.to.x};if(o.from.y!=o.to.y){child.from=c.effects.setTransition(child,i,o.from.y,child.from);child.to=c.effects.setTransition(child,
i,o.to.y,child.to)}if(o.from.x!=o.to.x){child.from=c.effects.setTransition(child,l,o.from.x,child.from);child.to=c.effects.setTransition(child,l,o.to.x,child.to)}child.css(child.from);child.animate(child.to,a.duration,a.options.easing,function(){h&&c.effects.restore(child,f)})})}d.animate(d.to,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){d.to.opacity===0&&d.css("opacity",d.from.opacity);j=="hide"&&d.hide();c.effects.restore(d,h?e:b);c.effects.removeWrapper(d);a.callback&&
a.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(c){c.effects.shake=function(a){return this.queue(function(){var d=c(this),e=["position","top","left"];c.effects.setMode(d,a.options.mode||"effect");var b=a.options.direction||"left",f=a.options.distance||20,g=a.options.times||3,i=a.duration||a.options.duration||140;c.effects.save(d,e);d.show();c.effects.createWrapper(d);var l=b=="up"||b=="down"?"top":"left",j=b=="up"||b=="left"?"pos":"neg";b={};var h={},k={};b[l]=(j=="pos"?"-=":"+=")+f;h[l]=(j=="pos"?"+=":"-=")+f*2;k[l]=(j=="pos"?"-=":"+=")+
f*2;d.animate(b,i,a.options.easing);for(f=1;f<g;f++)d.animate(h,i,a.options.easing).animate(k,i,a.options.easing);d.animate(h,i,a.options.easing).animate(b,i/2,a.options.easing,function(){c.effects.restore(d,e);c.effects.removeWrapper(d);a.callback&&a.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()});d.dequeue()})}})(jQuery);
(function(c){c.effects.slide=function(a){return this.queue(function(){var d=c(this),e=["position","top","left"],b=c.effects.setMode(d,a.options.mode||"show"),f=a.options.direction||"left";c.effects.save(d,e);d.show();c.effects.createWrapper(d).css({overflow:"hidden"});var g=f=="up"||f=="down"?"top":"left";f=f=="up"||f=="left"?"pos":"neg";var i=a.options.distance||(g=="top"?d.outerHeight({margin:true}):d.outerWidth({margin:true}));if(b=="show")d.css(g,f=="pos"?-i:i);var l={};l[g]=(b=="show"?f=="pos"?
"+=":"-=":f=="pos"?"-=":"+=")+i;d.animate(l,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){b=="hide"&&d.hide();c.effects.restore(d,e);c.effects.removeWrapper(d);a.callback&&a.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);
(function(c){c.effects.transfer=function(a){return this.queue(function(){var d=c(this),e=c(a.options.to),b=e.offset();e={top:b.top,left:b.left,height:e.innerHeight(),width:e.innerWidth()};b=d.offset();var f=c('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(a.options.className).css({top:b.top,left:b.left,height:d.innerHeight(),width:d.innerWidth(),position:"absolute"}).animate(e,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(d[0],arguments);
d.dequeue()})})}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(c,a,d,e,b){return jQuery.easing[jQuery.easing.def](c,a,d,e,b)},easeInQuad:function(c,a,d,e,b){return e*(a/=b)*a+d},easeOutQuad:function(c,a,d,e,b){return-e*(a/=b)*(a-2)+d},easeInOutQuad:function(c,a,d,e,b){if((a/=b/2)<1)return e/2*a*a+d;return-e/2*(--a*(a-2)-1)+d},easeInCubic:function(c,a,d,e,b){return e*(a/=b)*a*a+d},easeOutCubic:function(c,a,d,e,b){return e*((a=a/b-1)*a*a+1)+d},easeInOutCubic:function(c,a,d,e,b){if((a/=b/2)<1)return e/
2*a*a*a+d;return e/2*((a-=2)*a*a+2)+d},easeInQuart:function(c,a,d,e,b){return e*(a/=b)*a*a*a+d},easeOutQuart:function(c,a,d,e,b){return-e*((a=a/b-1)*a*a*a-1)+d},easeInOutQuart:function(c,a,d,e,b){if((a/=b/2)<1)return e/2*a*a*a*a+d;return-e/2*((a-=2)*a*a*a-2)+d},easeInQuint:function(c,a,d,e,b){return e*(a/=b)*a*a*a*a+d},easeOutQuint:function(c,a,d,e,b){return e*((a=a/b-1)*a*a*a*a+1)+d},easeInOutQuint:function(c,a,d,e,b){if((a/=b/2)<1)return e/2*a*a*a*a*a+d;return e/2*((a-=2)*a*a*a*a+2)+d},easeInSine:function(c,
a,d,e,b){return-e*Math.cos(a/b*(Math.PI/2))+e+d},easeOutSine:function(c,a,d,e,b){return e*Math.sin(a/b*(Math.PI/2))+d},easeInOutSine:function(c,a,d,e,b){return-e/2*(Math.cos(Math.PI*a/b)-1)+d},easeInExpo:function(c,a,d,e,b){return a==0?d:e*Math.pow(2,10*(a/b-1))+d},easeOutExpo:function(c,a,d,e,b){return a==b?d+e:e*(-Math.pow(2,-10*a/b)+1)+d},easeInOutExpo:function(c,a,d,e,b){if(a==0)return d;if(a==b)return d+e;if((a/=b/2)<1)return e/2*Math.pow(2,10*(a-1))+d;return e/2*(-Math.pow(2,-10*--a)+2)+d},
easeInCirc:function(c,a,d,e,b){return-e*(Math.sqrt(1-(a/=b)*a)-1)+d},easeOutCirc:function(c,a,d,e,b){return e*Math.sqrt(1-(a=a/b-1)*a)+d},easeInOutCirc:function(c,a,d,e,b){if((a/=b/2)<1)return-e/2*(Math.sqrt(1-a*a)-1)+d;return e/2*(Math.sqrt(1-(a-=2)*a)+1)+d},easeInElastic:function(c,a,d,e,b){c=1.70158;var f=0,g=e;if(a==0)return d;if((a/=b)==1)return d+e;f||(f=b*0.3);if(g<Math.abs(e)){g=e;c=f/4}else c=f/(2*Math.PI)*Math.asin(e/g);return-(g*Math.pow(2,10*(a-=1))*Math.sin((a*b-c)*2*Math.PI/f))+d},easeOutElastic:function(c,
a,d,e,b){c=1.70158;var f=0,g=e;if(a==0)return d;if((a/=b)==1)return d+e;f||(f=b*0.3);if(g<Math.abs(e)){g=e;c=f/4}else c=f/(2*Math.PI)*Math.asin(e/g);return g*Math.pow(2,-10*a)*Math.sin((a*b-c)*2*Math.PI/f)+e+d},easeInOutElastic:function(c,a,d,e,b){c=1.70158;var f=0,g=e;if(a==0)return d;if((a/=b/2)==2)return d+e;f||(f=b*0.3*1.5);if(g<Math.abs(e)){g=e;c=f/4}else c=f/(2*Math.PI)*Math.asin(e/g);if(a<1)return-0.5*g*Math.pow(2,10*(a-=1))*Math.sin((a*b-c)*2*Math.PI/f)+d;return g*Math.pow(2,-10*(a-=1))*Math.sin((a*
b-c)*2*Math.PI/f)*0.5+e+d},easeInBack:function(c,a,d,e,b,f){if(f==undefined)f=1.70158;return e*(a/=b)*a*((f+1)*a-f)+d},easeOutBack:function(c,a,d,e,b,f){if(f==undefined)f=1.70158;return e*((a=a/b-1)*a*((f+1)*a+f)+1)+d},easeInOutBack:function(c,a,d,e,b,f){if(f==undefined)f=1.70158;if((a/=b/2)<1)return e/2*a*a*(((f*=1.525)+1)*a-f)+d;return e/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+d},easeInBounce:function(c,a,d,e,b){return e-jQuery.easing.easeOutBounce(c,b-a,0,e,b)+d},easeOutBounce:function(c,a,d,e,b){return(a/=
b)<1/2.75?e*7.5625*a*a+d:a<2/2.75?e*(7.5625*(a-=1.5/2.75)*a+0.75)+d:a<2.5/2.75?e*(7.5625*(a-=2.25/2.75)*a+0.9375)+d:e*(7.5625*(a-=2.625/2.75)*a+0.984375)+d},easeInOutBounce:function(c,a,d,e,b){if(a<b/2)return jQuery.easing.easeInBounce(c,a*2,0,e,b)*0.5+d;return jQuery.easing.easeOutBounce(c,a*2-b,0,e,b)*0.5+e*0.5+d}});
(function(c){c.fn.lavaLamp=function(a){function d(e){e=parseInt(e);return isNaN(e)?0:e}a=c.extend({target:"li",fx:"swing",speed:500,click:function(){return true},startItem:"",autoReturn:true,returnDelay:0,setOnClick:true,homeTop:0,homeLeft:0,homeWidth:0,homeHeight:0,returnHome:false,autoResize:false,returnCallback:function(){return true}},a||{});a.autoResize&&c(window).resize(function(){c(a.target+".selectedLava").trigger("mouseenter")});return this.each(function(){function e(o){o||(o=g);a.returnCallback();
i.stop().animate({left:o.position().left,top:o.position().top,width:o.outerWidth()-h,height:o.outerHeight()-k},a.speed,a.fx)}c(this).css("position")=="static"&&c(this).css("position","relative");if(a.homeTop||a.homeLeft){var b=c("<"+a.target+' class="homeLava"></'+a.target+">").css({left:a.homeLeft,top:a.homeTop,width:a.homeWidth,height:a.homeHeight,position:"absolute"});c(this).prepend(b)}var f=location.pathname+location.search+location.hash,g,i,l=c(a.target+"[class!=noLava]",this),j,h=0,k=0;g=c(a.target+
".selectedLava",this);if(a.startItem!="")g=l.eq(a.startItem);if((a.homeTop||a.homeLeft)&&g.length<1)g=b;if(g.length<1){var m=0,n;l.each(function(){var o=$("a:first",this).attr("href");if(f.indexOf(o)>-1&&o.length>m){n=$(this);m=o.length}});if(m>0)g=n}if(g.length<1)g=l.eq(0);g=c(g.eq(0).addClass("selectedLava"));l.bind("mouseenter",function(){if(j){clearTimeout(j);j=null}e(c(this))}).click(function(o){if(a.setOnClick){g.removeClass("selectedLava");g=c(this).addClass("selectedLava")}return a.click.apply(this,
[o,this])});i=c('<li class="backLava"><div class="leftLava"></div><div class="bottomLava"></div><div class="cornerLava"></div></li>').css("position","absolute").prependTo(this);h=d(i.css("borderLeftWidth"))+d(i.css("borderRightWidth"))+d(i.css("paddingLeft"))+d(i.css("paddingRight"));k=d(i.css("borderTopWidth"))+d(i.css("borderBottomWidth"))+d(i.css("paddingTop"))+d(i.css("paddingBottom"));a.homeTop||a.homeLeft?i.css({left:a.homeLeft,top:a.homeTop,width:a.homeWidth,height:a.homeHeight}):i.css({left:g.position().left,
top:g.position().top,width:g.outerWidth()-h,height:g.outerHeight()-k});c(this).bind("mouseleave",function(){var o=null;if(a.returnHome)o=b;else if(!a.autoReturn)return true;if(a.returnDelay){j&&clearTimeout(j);j=setTimeout(function(){e(o)},a.returnDelay)}else e(o);return true})})}})(jQuery);
(function(c){function a(h){h=parseInt(h).toString(16);return h.length<2?"0"+h:h}function d(h){for(;h&&h.nodeName.toLowerCase()!="html";h=h.parentNode){var k=c.css(h,"backgroundColor");if(k!="rgba(0, 0, 0, 0)"){if(k.indexOf("rgb")>=0){h=k.match(/\d+/g);return"#"+a(h[0])+a(h[1])+a(h[2])}if(k&&k!="transparent")return k}}return"#ffffff"}function e(h,k,m){switch(h){case "round":return Math.round(m*(1-Math.cos(Math.asin(k/m))));case "cool":return Math.round(m*(1+Math.cos(Math.asin(k/m))));case "sharp":return Math.round(m*
(1-Math.cos(Math.acos(k/m))));case "bite":return Math.round(m*Math.cos(Math.asin((m-k-1)/m)));case "slide":return Math.round(m*Math.atan2(k,m/k));case "jut":return Math.round(m*Math.atan2(m,m-k-1));case "curl":return Math.round(m*Math.atan(k));case "tear":return Math.round(m*Math.cos(k));case "wicked":return Math.round(m*Math.tan(k));case "long":return Math.round(m*Math.sqrt(k));case "sculpt":return Math.round(m*Math.log(m-k-1,m));case "dogfold":case "dog":return k&1?k+1:m;case "dog2":return k&2?
k+1:m;case "dog3":return k&3?k+1:m;case "fray":return k%2*m;case "notch":return m;case "bevelfold":case "bevel":return k+1}}var b=document.createElement("div").style,f=b.MozBorderRadius!==undefined,g=b.WebkitBorderRadius!==undefined,i=b.borderRadius!==undefined||b.BorderRadius!==undefined;b=document.documentMode||0;var l=c.browser.msie&&(c.browser.version<8&&!b||b<8),j=c.browser.msie&&function(){var h=document.createElement("div");try{h.style.setExpression("width","0+0");h.style.removeExpression("width")}catch(k){return false}return true}();
c.fn.corner=function(h){if(this.length==0){if(!c.isReady&&this.selector){var k=this.selector,m=this.context;c(function(){c(k,m).corner(h)})}return this}return this.each(function(){var n=c(this),o=[n.attr(c.fn.corner.defaults.metaAttr)||"",h||""].join(" ").toLowerCase(),p=/keep/.test(o),q=(o.match(/cc:(#[0-9a-f]+)/)||[])[1],r=(o.match(/sc:(#[0-9a-f]+)/)||[])[1],s=parseInt((o.match(/(\d+)px/)||[])[1])||10,u=(o.match(/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/)||
["round"])[0],w=/dogfold|bevelfold/.test(o),B={T:0,B:1};o={TL:/top|tl|left/.test(o),TR:/top|tr|right/.test(o),BL:/bottom|bl|left/.test(o),BR:/bottom|br|right/.test(o)};if(!o.TL&&!o.TR&&!o.BL&&!o.BR)o={TL:1,TR:1,BL:1,BR:1};if(c.fn.corner.defaults.useNative&&u=="round"&&(i||f||g)&&!q&&!r){if(o.TL)n.css(i?"border-top-left-radius":f?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",s+"px");if(o.TR)n.css(i?"border-top-right-radius":f?"-moz-border-radius-topright":"-webkit-border-top-right-radius",
s+"px");if(o.BL)n.css(i?"border-bottom-left-radius":f?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",s+"px");if(o.BR)n.css(i?"border-bottom-right-radius":f?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",s+"px")}else{n=document.createElement("div");c(n).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:r||"transparent",borderStyle:"solid"});r={T:parseInt(c.css(this,"paddingTop"))||0,R:parseInt(c.css(this,"paddingRight"))||
0,B:parseInt(c.css(this,"paddingBottom"))||0,L:parseInt(c.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined)this.style.zoom=1;if(!p)this.style.border="none";n.style.borderColor=q||d(this.parentNode);p=c(this).outerHeight();for(var y in B)if((q=B[y])&&(o.BL||o.BR)||!q&&(o.TL||o.TR)){n.style.borderStyle="none "+(o[y+"R"]?"solid":"none")+" none "+(o[y+"L"]?"solid":"none");var v=document.createElement("div");c(v).addClass("jquery-corner");var t=v.style;q?this.appendChild(v):this.insertBefore(v,
this.firstChild);if(q&&p!="auto"){if(c.css(this,"position")=="static")this.style.position="relative";t.position="absolute";t.bottom=t.left=t.padding=t.margin="0";if(j)t.setExpression("width","this.parentNode.offsetWidth");else t.width="100%"}else if(!q&&c.browser.msie){if(c.css(this,"position")=="static")this.style.position="relative";t.position="absolute";t.top=t.left=t.right=t.padding=t.margin="0";if(j){var A=(parseInt(c.css(this,"borderLeftWidth"))||0)+(parseInt(c.css(this,"borderRightWidth"))||
0);t.setExpression("width","this.parentNode.offsetWidth - "+A+'+ "px"')}else t.width="100%"}else{t.position="relative";t.margin=!q?"-"+r.T+"px -"+r.R+"px "+(r.T-s)+"px -"+r.L+"px":r.B-s+"px -"+r.R+"px -"+r.B+"px -"+r.L+"px"}for(t=0;t<s;t++){A=Math.max(0,e(u,t,s));var F=n.cloneNode(false);F.style.borderWidth="0 "+(o[y+"R"]?A:0)+"px 0 "+(o[y+"L"]?A:0)+"px";q?v.appendChild(F):v.insertBefore(F,v.firstChild)}if(w&&c.support.boxModel)if(!(q&&l))for(var C in o)if(o[C])if(!(q&&(C=="TL"||C=="TR")))if(!(!q&&
(C=="BL"||C=="BR"))){t={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:n.style.borderColor};A=c("<div/>").css(t).css({width:s+"px",height:"1px"});switch(C){case "TL":A.css({bottom:0,left:0});break;case "TR":A.css({bottom:0,right:0});break;case "BL":A.css({top:0,left:0});break;case "BR":A.css({top:0,right:0})}v.appendChild(A[0]);t=c("<div/>").css(t).css({top:0,bottom:0,width:"1px",height:s+"px"});switch(C){case "TL":t.css({left:s});break;case "TR":t.css({right:s});
break;case "BL":t.css({left:s});break;case "BR":t.css({right:s})}v.appendChild(t[0])}}}})};c.fn.uncorner=function(){if(i||f||g)this.css(i?"border-radius":f?"-moz-border-radius":"-webkit-border-radius",0);c("div.jquery-corner",this).remove();return this};c.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);
(function(c){function a(){var g=c(this),i=b||g.attr("title"),l=g.closest("form");if(!i||i.length==0)throw"jQuery.watermark() Error: Watermarked elements must at least have a title attribute if no watermarked text is provided to the method.";if(!g.is("textarea, input[type=text]"))throw"jQuery.watermark() Error: Watermarked elements must be a form field that accepts text input.";l.data("inputs")?l.data("inputs").push(g):l.data("inputs",[g]);l.data("submit")||l.submit(function(){l.data("inputs").each(function(){this.data("w")&&
this.val("")});return true}).data("submit",true);g.attr("title","").data("text",i).data("w",true).blur(d).focus(e).bind("drop",e).css("color",f).val(i)}function d(){var g=c(this);g.val().length==0&&!g.data("w")&&g.data("w",true).css("color",f).val(g.data("text"))}function e(g){var i=c(this);g=g.originalEvent&&g.originalEvent.dataTransfer?g.originalEvent.dataTransfer.getData("Text"):"";i.data("w")&&i.data("w",false).css("color","").val(g)}var b,f="#AAA";c.fn.watermark=function(g){b=g;return this.each(a)}})(jQuery);
(function(c){c.fn.borderRadiusSupport=function(){var a=document.createElement("div"),d={moz:false,webkit:false,css3:false,any:false};a=this[0]||a;if(a===undefined)return d;if(a.style===undefined)return d;d.moz=a.style.MozBorderRadius!==undefined;d.webkit=a.style.webkitBorderRadius!==undefined;d.css3=a.style.borderRadius!==undefined;if(d.css3||d.webkit||d.moz)d.any=true;return d}})(jQuery);
(function(c){c.fn.autoResize=function(a){var d=c.extend({onResize:function(){},animate:true,animateDuration:150,animateCallback:function(){},extraSpace:20,limit:1E3},a);this.filter("textarea").each(function(){var e=c(this).css({resize:"none","overflow-y":"hidden"}),b=e.height(),f=function(){var l={};c.each(["height","width","lineHeight","textDecoration","letterSpacing"],function(j,h){l[h]=e.css(h)});return e.clone().removeAttr("id").removeAttr("name").css({position:"absolute",top:0,left:-9999}).css(l).attr("tabIndex",
"-1").insertBefore(e)}(),g=null,i=function(){f.height(0).val(c(this).val()).scrollTop(1E4);var l=Math.max(f.scrollTop(),b)+d.extraSpace,j=c(this).add(f);if(g!==l){g=l;if(l>=d.limit)c(this).css("overflow-y","");else{d.onResize.call(this);d.animate&&e.css("display")==="block"?j.stop().animate({height:l},d.animateDuration,d.animateCallback):j.height(l)}}};e.unbind(".dynSiz").bind("keyup.dynSiz",i).bind("keydown.dynSiz",i).bind("change.dynSiz",i)});return this}})(jQuery);
var Mustache=function(){var c=function(){};c.prototype={otag:"{{",ctag:"}}",pragmas:{},buffer:[],pragmas_implemented:{"IMPLICIT-ITERATOR":true},render:function(a,d,e,b){if(a.indexOf(this.otag)==-1)if(b)return a;else{this.send(a);return}if(!b)this.buffer=[];a=this.render_pragmas(a);a=this.render_section(a,d,e);if(b)return this.render_tags(a,d,e,b);this.render_tags(a,d,e,b)},send:function(a){a!=""&&this.buffer.push(a)},render_pragmas:function(a){if(a.indexOf(this.otag+"%")==-1)return a;var d=this;return a.replace(RegExp(this.otag+
"%([\\w_-]+) ?([\\w]+=[\\w]+)?"+this.ctag),function(e,b,f){if(!d.pragmas_implemented[b])throw{message:"This implementation of mustache doesn't understand the '"+b+"' pragma"};d.pragmas[b]={};if(f){e=f.split("=");d.pragmas[b][e[0]]=e[1]}return""})},render_partial:function(a,d,e){if(!e||!e[a])throw{message:"unknown_partial '"+a+"'"};if(typeof d[a]!="object")return e[a];return this.render(e[a],d[a],e,true)},render_section:function(a,d,e){if(a.indexOf(this.otag+"#")==-1)return a;var b=this;return a.replace(RegExp(this.otag+
"\\#(.+)"+this.ctag+"\\s*([\\s\\S]+?)"+this.otag+"\\/\\1"+this.ctag+"\\s*","mg"),function(f,g,i){f=b.find(g,d);return b.is_array(f)?b.map(f,function(l){return b.render(i,b.merge(d,b.create_context(l)),e,true)}).join(""):f?b.render(i,d,e,true):""})},render_tags:function(a,d,e,b){var f=this,g=function(){return RegExp(f.otag+"(=|!|>|\\{|%)?([^/#]+?)\\1?"+f.ctag+"+","g")},i=g();a=a.split("\n");for(var l=0;l<a.length;l++){a[l]=a[l].replace(i,function(j,h,k){switch(h){case "!":return j;case "=":f.set_delimiters(k);
i=g();return"";case ">":return f.render_partial(k,d,e);case "{":return f.find(k,d);default:return f.escape(f.find(k,d))}},this);b||this.send(a[l])}if(b)return a.join("\n")},set_delimiters:function(a){a=a.split(" ");this.otag=this.escape_regex(a[0]);this.ctag=this.escape_regex(a[1])},escape_regex:function(a){if(!arguments.callee.sRE)arguments.callee.sRE=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","g");return a.replace(arguments.callee.sRE,"\\$1")},find:function(a,d){a=this.trim(a);
if(typeof d[a]==="function")return d[a].apply(d);if(d[a]!==undefined)return d[a];return""},escape:function(a){return(a==null?"":a).toString().replace(/[&"<>\\]/g,function(d){switch(d){case "&":return"&amp;";case "\\":return"\\\\";case '"':return'"';case "<":return"&lt;";case ">":return"&gt;";default:return d}})},merge:function(a,d){var e={},b;for(b in a)if(a.hasOwnProperty(b))e[b]=a[b];for(b in d)if(d.hasOwnProperty(b))e[b]=d[b];return e},create_context:function(a){if(this.is_object(a))return a;else if(this.pragmas["IMPLICIT-ITERATOR"]){var d=
{};d[this.pragmas["IMPLICIT-ITERATOR"].iterator||"."]=a;return d}},is_object:function(a){return a&&typeof a=="object"},is_array:function(a){return Object.prototype.toString.call(a)==="[object Array]"},trim:function(a){return a.replace(/^\s*|\s*$/g,"")},map:function(a,d){if(typeof a.map=="function")return a.map(d);else{for(var e=[],b=a.length,f=0;f<b;f++)e.push(d(a[f]));return e}}};return{name:"mustache.js",version:"0.2.3",to_html:function(a,d,e,b){var f=new c;if(b)f.send=b;f.render(a,d,e);if(!b)return f.buffer.join("\n")}}}();
__dnn_bodyscroll=function(){var c=document.forms[0];if(__dnn_ClientAPIEnabled()&&__dnn_m_bPageLoaded)if(c&&c.ScrollTop)c.ScrollTop.value=document.documentElement.scrollTop?document.documentElement.scrollTop:dnn.dom.getByTagName("body")[0].scrollTop};
(function(c){c(function(){function a(f){c("ul[class~="+f+"]").show()}var d=c(".submenucontent").detach();c("#submenu").empty().append(d);var e=c("#topMenu ul > li.selectedLava").text();c("#homeLink").click(function(){location.href="/"});a(e);c("a[href="+location.href+"]",c("#submenu ul[class~="+e+"]")).css("color","#d7e46e");c("#topMenu > ul.menu").lavaLamp({speed:100,autoReturn:false});c(":not(#topMenu > *, #submenu > *)").mouseover(function(){var f=c("#topMenu").data("timerHandle");f!=null&&window.clearTimeout(f);
f=window.setTimeout(function(){c("#topMenu ul > li.selectedLava").mouseenter();c(".submenucontent").hide();a(e)},5E3);c("#topMenu").data("timerHandle",f)});c("#topMenu  .topNav").mouseover(function(){var f=c(this).text();c(".submenucontent").hide();a(f)});c("#quickLinks > a").click(function(f){f.preventDefault();f=c("#quickLinks").data("timerHandle");f!==null&&window.clearTimeout(f);f={left:0,top:""};var g=c("#quickLinksItems").outerHeight(),i=c("#footer").position().top;f.top=i-g;c("#quickLinksItems").css({top:f.top,
left:f.left});c("#quickLinksItems").toggle();f=window.setTimeout(function(){c("#quickLinksItems").fadeOut()},5E3);c("#quickLinks").data("timerHandle",f)});if(!c().borderRadiusSupport().any){c("#search, #topMenu > ul").corner("keep");c(".top_rounded").corner("top");c(".maincontent").corner("keep");c("div#inner, #quickLinksItemsInner").corner("8px").parent().css("padding","1px").corner("round 10px");c(".rounded").corner("keep");c("#footer").corner("top cc:#78777A");c("#submenu").corner("bottom cc:#666666");
c(".submenucontent").corner("bl cc:#666666");c("div#tutorialHeader").corner("top 20px");c(".topicContainer, .containerVideoWrapper").corner()}c("#googleSearchBox").watermark();c("textarea.EditBox").css("overflow-y","");if(navigator.platform=="Win32"||navigator.platform=="MacPPC"||navigator.platform=="MacIntel"||navigator.platform=="Linux i686")c("#footer").css("position","fixed");var b=c(".x_techTipPlayer");b.length>0&&DevCentral.LoadScript("TechTipMediaPlayer-min.js",null,function(){c(b).each(function(f,
g){var i=c("a",g).attr("alt");techTipPlayer.appendPlayer(g,i)})})})})(jQuery);
