;(function($){var ver='Lite-1.3';$.fn.cycle=function(options){return this.each(function(){options=options||{};if(this.cycleTimeout)clearTimeout(this.cycleTimeout);this.cycleTimeout=0;this.cyclePause=0;var $cont=$(this);var $slides=options.slideExpr?$(options.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){window.console&&console.log('terminating; too few slides: '+els.length);return}var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});var meta=$.isFunction($cont.data)?$cont.data(opts.metaAttr):null;if(meta)opts=$.extend(opts,meta);opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0});var cls=this.className;opts.width=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;opts.height=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;opts.timeout=parseInt((cls.match(/t:(\d+)/)||[])[1])||opts.timeout;if($cont.css('position')=='static')$cont.css('position','relative');if(opts.width)$cont.width(opts.width);if(opts.height&&opts.height!='auto')$cont.height(opts.height);var first=0;$slides.css({position:'absolute',top:0,left:0}).each(function(i){$(this).css('z-index',els.length-i)});$(els[first]).css('opacity',1).show();if($.browser.msie)els[first].style.removeAttribute('filter');if(opts.fit&&opts.width)$slides.width(opts.width);if(opts.fit&&opts.height&&opts.height!='auto')$slides.height(opts.height);if(opts.pause)$cont.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});var txFn=$.fn.cycle.transitions[opts.fx];txFn&&txFn($cont,$slides,opts);$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:$el.height();this.cycleW=(opts.fit&&opts.width)?opts.width:$el.width()});if(opts.cssFirst)$($slides[first]).css(opts.cssFirst);if(opts.timeout){if(opts.speed.constructor==String)opts.speed={slow:600,fast:200}[opts.speed]||400;if(!opts.sync)opts.speed=opts.speed/2;while((opts.timeout-opts.speed)<250)opts.timeout+=opts.speed}opts.speedIn=opts.speed;opts.speedOut=opts.speed;opts.slideCount=els.length;opts.currSlide=first;opts.nextSlide=1;var e0=$slides[first];if(opts.before.length)opts.before[0].apply(e0,[e0,e0,opts,true]);if(opts.after.length>1)opts.after[1].apply(e0,[e0,e0,opts,true]);if(opts.click&&!opts.next)opts.next=opts.click;if(opts.next)$(opts.next).bind('click',function(){return advance(els,opts,opts.rev?-1:1)});if(opts.prev)$(opts.prev).bind('click',function(){return advance(els,opts,opts.rev?1:-1)});if(opts.timeout)this.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev)},opts.timeout+(opts.delay||0))})};function go(els,opts,manual,fwd){if(opts.busy)return;var p=els[0].parentNode,curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleTimeout===0&&!manual)return;if(manual||!p.cyclePause){if(opts.before.length)$.each(opts.before,function(i,o){o.apply(next,[curr,next,opts,fwd])});var after=function(){if($.browser.msie)this.style.removeAttribute('filter');$.each(opts.after,function(i,o){o.apply(next,[curr,next,opts,fwd])});queueNext()};if(opts.nextSlide!=opts.currSlide){opts.busy=1;$.fn.cycle.custom(curr,next,opts,after)}var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1}function queueNext(){if(opts.timeout)p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev)},opts.timeout)}};function advance(els,opts,val){var p=els[0].parentNode,timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0}opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){opts.nextSlide=els.length-1}else if(opts.nextSlide>=els.length){opts.nextSlide=0}go(els,opts,1,val>=0);return false};$.fn.cycle.custom=function(curr,next,opts,cb){var $l=$(curr),$n=$(next);$n.css(opts.cssBefore);var fn=function(){$n.animate(opts.animIn,opts.speedIn,opts.easeIn,cb)};$l.animate(opts.animOut,opts.speedOut,opts.easeOut,function(){$l.css(opts.cssAfter);if(!opts.sync)fn()});if(opts.sync)fn()};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(':eq(0)').hide();opts.cssBefore={opacity:0,display:'block'};opts.cssAfter={display:'none'};opts.animOut={opacity:0};opts.animIn={opacity:1}},fadeout:function($cont,$slides,opts){opts.before.push(function(curr,next,opts,fwd){$(curr).css('zIndex',opts.slideCount+(fwd===true?1:0));$(next).css('zIndex',opts.slideCount+(fwd===true?0:1))});$slides.not(':eq(0)').hide();opts.cssBefore={opacity:1,display:'block',zIndex:1};opts.cssAfter={display:'none',zIndex:0};opts.animOut={opacity:0}}};$.fn.cycle.ver=function(){return ver};$.fn.cycle.defaults={animIn:{},animOut:{},fx:'fade',after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:'auto',metaAttr:'cycle',next:null,pause:0,prev:null,speed:1000,slideExpr:null,sync:1,timeout:4000}})(jQuery);



/*!
 * jQuery UI 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI
 */
(function(c){c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.2",plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==
"hidden")return false;b=b&&b=="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,f,g){return c.ui.isOverAxis(a,d,f)&&c.ui.isOverAxis(b,e,g)},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,
NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect",
"none")},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 b;a.length&&a[0]!==document;){b=a.css("position");if(b=="absolute"||b=="relative"||b=="fixed"){b=parseInt(a.css("zIndex"));if(!isNaN(b)&&b!=0)return b}a=a.parent()}}return 0}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");return(/input|select|textarea|button|object/.test(b)?
!a.disabled:"a"==b||"area"==b?a.href||!isNaN(d):!isNaN(d))&&!c(a)["area"==b?"parents":"closest"](":hidden").length},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}})}})(jQuery);
;/*!
 * jQuery UI Widget 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(b){var j=b.fn.remove;b.fn.remove=function(a,c){return this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).add(this).each(function(){b(this).triggerHandler("remove")});return j.call(b(this),a,c)})};b.widget=function(a,c,d){var e=a.split(".")[0],f;a=a.split(".")[1];f=e+"-"+a;if(!d){d=c;c=b.Widget}b.expr[":"][f]=function(h){return!!b.data(h,a)};b[e]=b[e]||{};b[e][a]=function(h,g){arguments.length&&this._createWidget(h,g)};c=new c;c.options=b.extend({},c.options);b[e][a].prototype=
b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].prototype.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a])};b.widget.bridge=function(a,c){b.fn[a]=function(d){var e=typeof d==="string",f=Array.prototype.slice.call(arguments,1),h=this;d=!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.substring(0,1)==="_")return h;e?this.each(function(){var g=b.data(this,a),i=g&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!==g&&i!==undefined){h=i;return false}}):this.each(function(){var g=
b.data(this,a);if(g){d&&g.option(d);g._init()}else b.data(this,a,new c(d,this))});return h}};b.Widget=function(a,c){arguments.length&&this._createWidget(a,c)};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(a,c){this.element=b(c).data(this.widgetName,this);this.options=b.extend(true,{},this.options,b.metadata&&b.metadata.get(c)[this.widgetName],a);var d=this;this.element.bind("remove."+this.widgetName,function(){d.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 ui-state-disabled")},widget:function(){return this.element},option:function(a,c){var d=a,e=this;if(arguments.length===0)return b.extend({},e.options);if(typeof a==="string"){if(c===undefined)return this.options[a];d={};d[a]=c}b.each(d,function(f,
h){e._setOption(f,h)});return e},_setOption:function(a,c){this.options[a]=c;if(a==="disabled")this.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",c);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(a,c,d){var e=this.options[a];c=b.Event(c);c.type=(a===this.widgetEventPrefix?a:this.widgetEventPrefix+a).toLowerCase();d=d||{};if(c.originalEvent){a=
b.event.props.length;for(var f;a;){f=b.event.props[--a];c[f]=c.originalEvent[f]}}this.element.trigger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)===false||c.isDefaultPrevented())}}})(jQuery);
;/*!
 * jQuery UI Mouse 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(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(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.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 b=this,e=a.which==1,f=typeof this.options.cancel=="string"?c(a.target).parents().add(a.target).filter(this.options.cancel).length:false;if(!e||f||!this._mouseCapture(a))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){b.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(d){return b._mouseMove(d)};this._mouseUpDelegate=function(d){return b._mouseUp(d)};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);
;/*
 * jQuery UI Position 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Position
 */
(function(c){c.ui=c.ui||{};var m=/left|center|right/,n=/top|center|bottom/,p=c.fn.position,q=c.fn.offset;c.fn.position=function(a){if(!a||!a.of)return p.apply(this,arguments);a=c.extend({},a);var b=c(a.of),d=(a.collision||"flip").split(" "),e=a.offset?a.offset.split(" "):[0,0],g,h,i;if(a.of.nodeType===9){g=b.width();h=b.height();i={top:0,left:0}}else if(a.of.scrollTo&&a.of.document){g=b.width();h=b.height();i={top:b.scrollTop(),left:b.scrollLeft()}}else if(a.of.preventDefault){a.at="left top";g=h=
0;i={top:a.of.pageY,left:a.of.pageX}}else{g=b.outerWidth();h=b.outerHeight();i=b.offset()}c.each(["my","at"],function(){var f=(a[this]||"").split(" ");if(f.length===1)f=m.test(f[0])?f.concat(["center"]):n.test(f[0])?["center"].concat(f):["center","center"];f[0]=m.test(f[0])?f[0]:"center";f[1]=n.test(f[1])?f[1]:"center";a[this]=f});if(d.length===1)d[1]=d[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(a.at[0]==="right")i.left+=g;else if(a.at[0]==="center")i.left+=
g/2;if(a.at[1]==="bottom")i.top+=h;else if(a.at[1]==="center")i.top+=h/2;i.left+=e[0];i.top+=e[1];return this.each(function(){var f=c(this),k=f.outerWidth(),l=f.outerHeight(),j=c.extend({},i);if(a.my[0]==="right")j.left-=k;else if(a.my[0]==="center")j.left-=k/2;if(a.my[1]==="bottom")j.top-=l;else if(a.my[1]==="center")j.top-=l/2;j.left=parseInt(j.left);j.top=parseInt(j.top);c.each(["left","top"],function(o,r){c.ui.position[d[o]]&&c.ui.position[d[o]][r](j,{targetWidth:g,targetHeight:h,elemWidth:k,
elemHeight:l,offset:e,my:a.my,at:a.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(j,{using:a.using}))})};c.ui.position={fit:{left:function(a,b){var d=c(window);b=a.left+b.elemWidth-d.width()-d.scrollLeft();a.left=b>0?a.left-b:Math.max(0,a.left)},top:function(a,b){var d=c(window);b=a.top+b.elemHeight-d.height()-d.scrollTop();a.top=b>0?a.top-b:Math.max(0,a.top)}},flip:{left:function(a,b){if(b.at[0]!=="center"){var d=c(window);d=a.left+b.elemWidth-d.width()-d.scrollLeft();var e=b.my[0]==="left"?
-b.elemWidth:b.my[0]==="right"?b.elemWidth:0,g=-2*b.offset[0];a.left+=a.left<0?e+b.targetWidth+g:d>0?e-b.targetWidth+g:0}},top:function(a,b){if(b.at[1]!=="center"){var d=c(window);d=a.top+b.elemHeight-d.height()-d.scrollTop();var e=b.my[1]==="top"?-b.elemHeight:b.my[1]==="bottom"?b.elemHeight:0,g=b.at[1]==="top"?b.targetHeight:-b.targetHeight,h=-2*b.offset[1];a.top+=a.top<0?e+b.targetHeight+h:d>0?e+g+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(a,b){if(/static/.test(c.curCSS(a,"position")))a.style.position=
"relative";var d=c(a),e=d.offset(),g=parseInt(c.curCSS(a,"top",true),10)||0,h=parseInt(c.curCSS(a,"left",true),10)||0;e={top:b.top-e.top+g,left:b.left-e.left+h};"using"in b?b.using.call(a,e):d.css(e)};c.fn.offset=function(a){var b=this[0];if(!b||!b.ownerDocument)return null;if(a)return this.each(function(){c.offset.setOffset(this,a)});return q.call(this)}}})(jQuery);
;/*
 * jQuery UI Draggable 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Draggables
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.mouse.js
 *	jquery.ui.widget.js
 */
(function(d){d.widget("ui.draggable",d.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 b=
this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;return true},_mouseStart:function(a){var b=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.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};d.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;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();
d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.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";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b=false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if(!this.element[0]||!this.element[0].parentNode)return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,
b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",a)!==false&&c._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 b=!this.options.handle||!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==
a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone():this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.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(d.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&&d.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"&&d.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,d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(d(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 b=d(a.containment)[0];if(b){a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),
10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],
this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():
f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.left<this.containment[0])e=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])e=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(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.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-b.grid[1]:g+b.grid[1]:g;e=this.originalPageX+
Math.round((e-this.originalPageX)/b.grid[0])*b.grid[0];e=this.containment?!(e-this.offset.click.left<this.containment[0]||e-this.offset.click.left>this.containment[2])?e:!(e-this.offset.click.left<this.containment[0])?e-b.grid[0]:e+b.grid[0]:e}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.left-
this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.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,b,c){c=c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a=="drag")this.positionAbs=
this._convertPositionTo("absolute");return d.Widget.prototype._trigger.call(this,a,b,c)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{version:"1.8.2"});d.ui.plugin.add("draggable","connectToSortable",{start:function(a,b){var c=d(this).data("draggable"),f=c.options,e=d.extend({},b,{item:c.element});c.sortables=[];d(f.connectToSortable).each(function(){var g=d.data(this,"sortable");
if(g&&!g.options.disabled){c.sortables.push({instance:g,shouldRevert:g.options.revert});g._refreshItems();g._trigger("activate",a,e)}})},stop:function(a,b){var c=d(this).data("draggable"),f=d.extend({},b,{item:c.element});d.each(c.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;c.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;
c.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",a,f)}})},drag:function(a,b){var c=d(this).data("draggable"),f=this;d.each(c.sortables,function(){this.instance.positionAbs=c.positionAbs;this.instance.helperProportions=c.helperProportions;this.instance.offset.click=c.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=
1;this.instance.currentItem=d(f).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return b.helper[0]};a.target=this.instance.currentItem[0];this.instance._mouseCapture(a,true);this.instance._mouseStart(a,true,true);this.instance.offset.click.top=c.offset.click.top;this.instance.offset.click.left=c.offset.click.left;this.instance.offset.parent.left-=c.offset.parent.left-this.instance.offset.parent.left;
this.instance.offset.parent.top-=c.offset.parent.top-this.instance.offset.parent.top;c._trigger("toSortable",a);c.dropped=this.instance.element;c.currentItem=c.element;this.instance.fromOutside=c}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();c._trigger("fromSortable",a);c.dropped=false}})}});d.ui.plugin.add("draggable","cursor",{start:function(){var a=d("body"),b=d(this).data("draggable").options;if(a.css("cursor"))b._cursor=a.css("cursor");a.css("cursor",b.cursor)},stop:function(){var a=d(this).data("draggable").options;a._cursor&&d("body").css("cursor",a._cursor)}});d.ui.plugin.add("draggable","iframeFix",{start:function(){var a=
d(this).data("draggable").options;d(a.iframeFix===true?"iframe":a.iframeFix).each(function(){d('<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(d(this).offset()).appendTo("body")})},stop:function(){d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;
if(a.css("opacity"))b._opacity=a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!=
"HTML"){if(!c.axis||c.axis!="x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop+c.scrollSpeed;else if(a.pageY-b.overflowOffset.top<c.scrollSensitivity)b.scrollParent[0].scrollTop=f=b.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis!="y")if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft+c.scrollSpeed;else if(a.pageX-
b.overflowOffset.left<c.scrollSensitivity)b.scrollParent[0].scrollLeft=f=b.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!="x")if(a.pageY-d(document).scrollTop()<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()-c.scrollSpeed);else if(d(window).height()-(a.pageY-d(document).scrollTop())<c.scrollSensitivity)f=d(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c.axis||c.axis!="y")if(a.pageX-d(document).scrollLeft()<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()-
c.scrollSpeed);else if(d(window).width()-(a.pageX-d(document).scrollLeft())<c.scrollSensitivity)f=d(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!==false&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets(b,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var a=d(this).data("draggable"),b=a.options;a.snapElements=[];d(b.snap.constructor!=String?b.snap.items||":data(draggable)":b.snap).each(function(){var c=d(this),f=c.offset();this!=a.element[0]&&a.snapElements.push({item:this,
width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},drag:function(a,b){for(var c=d(this).data("draggable"),f=c.options,e=f.snapTolerance,g=b.offset.left,n=g+c.helperProportions.width,m=b.offset.top,o=m+c.helperProportions.height,h=c.snapElements.length-1;h>=0;h--){var i=c.snapElements[h].left,k=i+c.snapElements[h].width,j=c.snapElements[h].top,l=j+c.snapElements[h].height;if(i-e<g&&g<k+e&&j-e<m&&m<l+e||i-e<g&&g<k+e&&j-e<o&&o<l+e||i-e<n&&n<k+e&&j-e<m&&m<l+e||i-e<n&&n<k+e&&j-e<o&&
o<l+e){if(f.snapMode!="inner"){var p=Math.abs(j-o)<=e,q=Math.abs(l-m)<=e,r=Math.abs(i-n)<=e,s=Math.abs(k-g)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:j-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:l,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:i-c.helperProportions.width}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:k}).left-c.margins.left}var t=
p||q||r||s;if(f.snapMode!="outer"){p=Math.abs(j-m)<=e;q=Math.abs(l-o)<=e;r=Math.abs(i-g)<=e;s=Math.abs(k-n)<=e;if(p)b.position.top=c._convertPositionTo("relative",{top:j,left:0}).top-c.margins.top;if(q)b.position.top=c._convertPositionTo("relative",{top:l-c.helperProportions.height,left:0}).top-c.margins.top;if(r)b.position.left=c._convertPositionTo("relative",{top:0,left:i}).left-c.margins.left;if(s)b.position.left=c._convertPositionTo("relative",{top:0,left:k-c.helperProportions.width}).left-c.margins.left}if(!c.snapElements[h].snapping&&
(p||q||r||s||t))c.options.snap.snap&&c.options.snap.snap.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=p||q||r||s||t}else{c.snapElements[h].snapping&&c.options.snap.release&&c.options.snap.release.call(c.element,a,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=false}}}});d.ui.plugin.add("draggable","stack",{start:function(){var a=d(this).data("draggable").options;a=d.makeArray(d(a.stack)).sort(function(c,f){return(parseInt(d(c).css("zIndex"),
10)||0)-(parseInt(d(f).css("zIndex"),10)||0)});if(a.length){var b=parseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zIndex=b+c});this[0].style.zIndex=b+a.length}}});d.ui.plugin.add("draggable","zIndex",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("zIndex"))b._zIndex=a.css("zIndex");a.css("zIndex",b.zIndex)},stop:function(a,b){a=d(this).data("draggable").options;a._zIndex&&d(b.helper).css("zIndex",a._zIndex)}})})(jQuery);
;/*
 * jQuery UI Resizable 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Resizables
 *
 * Depends:
 *	jquery.ui.core.js
 *	jquery.ui.mouse.js
 *	jquery.ui.widget.js
 */
(function(d){d.widget("ui.resizable",d.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 b=this,a=this.options;this.element.addClass("ui-resizable");d.extend(this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElement:this.element,
_proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/relative/.test(this.element.css("position"))&&d.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"});this.element.wrap(d('<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=a.handles||(!d(".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 c=this.handles.split(",");this.handles={};for(var e=0;e<c.length;e++){var g=d.trim(c[e]),f=d('<div title="resize image" class="ui-resizable-handle '+("ui-resizable-"+g)+'"></div>');/sw|se|ne|nw/.test(g)&&f.css({zIndex:'150000000'});"se"==g&&f.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[g]=".ui-resizable-"+g;this.element.append(f)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor==
String)this.handles[i]=d(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=d(this.handles[i],this.element),l=0;l=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,l);this._proportionallyResize()}d(this.handles[i])}};this._renderAxis(this.element);this._handles=d(".ui-resizable-handle",this.element).disableSelection();
this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();d(this.element).addClass("ui-resizable-autohide").hover(function(){d(this).removeClass("ui-resizable-autohide");b._handles.show()},function(){if(!b.resizing){d(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(c){d(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};
if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a=false;for(var c in this.handles)if(d(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(),
e=this.element;this.resizing=true;this.documentScroll={top:d(document).scrollTop(),left:d(document).scrollLeft()};if(e.is(".ui-draggable")||/absolute/.test(e.css("position")))e.css({position:"absolute",top:c.top,left:c.left});d.browser.opera&&/relative/.test(e.css("position"))&&e.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();c=m(this.helper.css("left"));var g=m(this.helper.css("top"));if(a.containment){c+=d(a.containment).scrollLeft()||0;g+=d(a.containment).scrollTop()||0}this.offset=
this.helper.offset();this.position={left:c,top:g};this.size=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition={left:c,top:g};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio:
this.originalSize.width/this.originalSize.height||1;a=d(".ui-resizable-"+this.axis).css("cursor");d("body").css("cursor",a=="auto"?this.axis+"-resize":a);e.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,e=this._change[this.axis];if(!e)return false;c=e.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",
b);a.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(c);this._trigger("resize",b,this.ui());return false},_mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var e=this._proportionallyResizeElements,g=e.length&&/textarea/i.test(e[0].nodeName);e=g&&d.ui.hasScroll(e[0],"left")?0:c.sizeDiff.height;
g={width:c.size.width-(g?0:c.sizeDiff.width),height:c.size.height-e};e=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var f=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(d.extend(g,{top:f,left:e}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}d("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",
b);this._helper&&this.helper.remove();return false},_updateCache:function(b){this.offset=this.helper.offset();if(k(b.left))this.position.left=b.left;if(k(b.top))this.position.top=b.top;if(k(b.height))this.size.height=b.height;if(k(b.width))this.size.width=b.width},_updateRatio:function(b){var a=this.position,c=this.size,e=this.axis;if(b.height)b.width=c.height*this.aspectRatio;else if(b.width)b.height=c.width/this.aspectRatio;if(e=="sw"){b.left=a.left+(c.width-b.width);b.top=null}if(e=="nw"){b.top=
a.top+(c.height-b.height);b.left=a.left+(c.width-b.width)}return b},_respectSize:function(b){var a=this.options,c=this.axis,e=k(b.width)&&a.maxWidth&&a.maxWidth<b.width,g=k(b.height)&&a.maxHeight&&a.maxHeight<b.height,f=k(b.width)&&a.minWidth&&a.minWidth>b.width,h=k(b.height)&&a.minHeight&&a.minHeight>b.height;if(f)b.width=a.minWidth;if(h)b.height=a.minHeight;if(e)b.width=a.maxWidth;if(g)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,
l=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(f&&l)b.left=i-a.minWidth;if(e&&l)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(g&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left=null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a<this._proportionallyResizeElements.length;a++){var c=this._proportionallyResizeElements[a];if(!this.borderDif){var e=[c.css("borderTopWidth"),
c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWidth")],g=[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom"),c.css("paddingLeft")];this.borderDif=d.map(e,function(f,h){f=parseInt(f,10)||0;h=parseInt(g[h],10)||0;return f+h})}d.browser.msie&&(d(b).is(":hidden")||d(b).parents(":hidden").length)||c.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=
this.element.offset();if(this._helper){this.helper=this.helper||d('<div style="overflow:hidden;"></div>');var a=d.browser.msie&&d.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+
a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+c}},se:function(b,a,c){return d.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return d.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return d.extend(this._change.n.apply(this,
arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return d.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){d.ui.plugin.call(this,b,[a,this.ui()]);b!="resize"&&this._trigger(b,a,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}}});d.extend(d.ui.resizable,
{version:"1.8.2"});d.ui.plugin.add("resizable","alsoResize",{start:function(){var b=d(this).data("resizable").options,a=function(c){d(c).each(function(){d(this).data("resizable-alsoresize",{width:parseInt(d(this).width(),10),height:parseInt(d(this).height(),10),left:parseInt(d(this).css("left"),10),top:parseInt(d(this).css("top"),10)})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else d.each(b.alsoResize,function(c){a(c)});
else a(b.alsoResize)},resize:function(){var b=d(this).data("resizable"),a=b.options,c=b.originalSize,e=b.originalPosition,g={height:b.size.height-c.height||0,width:b.size.width-c.width||0,top:b.position.top-e.top||0,left:b.position.left-e.left||0},f=function(h,i){d(h).each(function(){var j=d(this),l=d(this).data("resizable-alsoresize"),p={};d.each((i&&i.length?i:["width","height","top","left"])||["width","height","top","left"],function(n,o){if((n=(l[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(/relative/.test(j.css("position"))&&
d.browser.opera){b._revertToRelativePosition=true;j.css({position:"absolute",top:"auto",left:"auto"})}j.css(p)})};typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?d.each(a.alsoResize,function(h,i){f(h,i)}):f(a.alsoResize)},stop:function(){var b=d(this).data("resizable");if(b._revertToRelativePosition&&d.browser.opera){b._revertToRelativePosition=false;el.css({position:"relative"})}d(this).removeData("resizable-alsoresize-start")}});d.ui.plugin.add("resizable","animate",{stop:function(b){var a=
d(this).data("resizable"),c=a.options,e=a._proportionallyResizeElements,g=e.length&&/textarea/i.test(e[0].nodeName),f=g&&d.ui.hasScroll(e[0],"left")?0:a.sizeDiff.height;g={width:a.size.width-(g?0:a.sizeDiff.width),height:a.size.height-f};f=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(d.extend(g,h&&f?{top:h,left:f}:{}),{duration:c.animateDuration,easing:c.animateEasing,
step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};e&&e.length&&d(e[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize",b)}})}});d.ui.plugin.add("resizable","containment",{start:function(){var b=d(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof d?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=
d(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:d(document),left:0,top:0,width:d(document).width(),height:d(document).height()||document.body.parentNode.scrollHeight}}else{var e=d(a),g=[];d(["Top","Right","Left","Bottom"]).each(function(i,j){g[i]=m(e.css("padding"+j))});b.containerOffset=e.offset();b.containerPosition=e.position();b.containerSize={height:e.innerHeight()-g[3],width:e.innerWidth()-g[1]};c=b.containerOffset;
var f=b.containerSize.height,h=b.containerSize.width;h=d.ui.hasScroll(a,"left")?a.scrollWidth:h;f=d.ui.hasScroll(a)?a.scrollHeight:f;b.parentData={element:a,left:c.left,top:c.top,width:h,height:f}}}},resize:function(b){var a=d(this).data("resizable"),c=a.options,e=a.containerOffset,g=a.position;b=a._aspectRatio||b.shiftKey;var f={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))f=e;if(g.left<(a._helper?e.left:0)){a.size.width+=a._helper?a.position.left-e.left:
a.position.left-f.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?e.left:0}if(g.top<(a._helper?e.top:0)){a.size.height+=a._helper?a.position.top-e.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?e.top:0}a.offset.left=a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-f.left:a.offset.left-f.left)+a.sizeDiff.width);e=Math.abs((a._helper?a.offset.top-f.top:a.offset.top-
e.top)+a.sizeDiff.height);g=a.containerElement.get(0)==a.element.parent().get(0);f=/relative|absolute/.test(a.containerElement.css("position"));if(g&&f)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(e+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-e;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=d(this).data("resizable"),a=b.options,c=b.containerOffset,e=b.containerPosition,
g=b.containerElement,f=d(b.helper),h=f.offset(),i=f.outerWidth()-b.sizeDiff.width;f=f.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(g.css("position"))&&d(this).css({left:h.left-e.left-c.left,width:i,height:f});b._helper&&!a.animate&&/static/.test(g.css("position"))&&d(this).css({left:h.left-e.left-c.left,width:i,height:f})}});d.ui.plugin.add("resizable","ghost",{start:function(){var b=d(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25,
display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=d(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=d(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});d.ui.plugin.add("resizable","grid",{resize:function(){var b=
d(this).data("resizable"),a=b.options,c=b.size,e=b.originalSize,g=b.originalPosition,f=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-e.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-e.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(f)){b.size.width=e.width+h;b.size.height=e.height+a}else if(/^(ne)$/.test(f)){b.size.width=e.width+h;b.size.height=e.height+a;b.position.top=g.top-a}else{if(/^(sw)$/.test(f)){b.size.width=e.width+h;b.size.height=
e.height+a}else{b.size.width=e.width+h;b.size.height=e.height+a;b.position.top=g.top-a}b.position.left=g.left-h}}});var m=function(b){return parseInt(b,10)||0},k=function(b){return!isNaN(parseInt(b,10))}})(jQuery);
;/*
 * jQuery UI Effects 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Effects/
 */
jQuery.effects||function(f){function k(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],
16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return l.transparent;return l[f.trim(c).toLowerCase()]}function q(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return k(b)}function m(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function n(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in r||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function s(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function j(c,a,b,d){if(typeof c=="object"){d=
a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(f.isFunction(b)){d=b;b=null}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:f.fx.speeds[b]||f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=q(b.elem,a);b.end=k(b.end);b.colorInit=
true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var l={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]},o=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b,d){if(f.isFunction(b)){d=b;b=null}return this.each(function(){var e=f(this),g=e.attr("style")||" ",h=n(m.call(this)),p,t=e.attr("className");f.each(o,function(u,
i){c[i]&&e[i+"Class"](c[i])});p=n(m.call(this));e.attr("className",t);e.animate(s(h,p),a,b,function(){f.each(o,function(u,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments)})})};f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?
f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===undefined?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.2",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==
null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();
var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});
c.css({position:"relative",top:0,left:0})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=j.apply(this,arguments);a={options:a[1],duration:a[2],callback:a[3]};var b=f.effects[c];return b&&!f.fx.off?b.call(this,a):this},_show:f.fn.show,show:function(c){if(!c||
typeof c=="number"||f.fx.speeds[c])return this._show.apply(this,arguments);else{var a=j.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(!c||typeof c=="number"||f.fx.speeds[c])return this._hide.apply(this,arguments);else{var a=j.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(!c||typeof c=="number"||f.fx.speeds[c]||typeof c=="boolean"||f.isFunction(c))return this.__toggle.apply(this,
arguments);else{var a=j.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,
a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+
b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,
10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*
a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,
a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==undefined)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==undefined)g=1.70158;return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,
a,b,d,e,g){if(g==undefined)g=1.70158;if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,
d,e)*0.5+b;return f.easing.easeOutBounce(c,a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);
;/*
 * jQuery UI Effects Blind 1.8.2
 *
 * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Effects/Blind
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(b){b.effects.blind=function(c){return this.queue(function(){var a=b(this),g=["position","top","left"],f=b.effects.setMode(a,c.options.mode||"hide"),d=c.options.direction||"vertical";b.effects.save(a,g);a.show();var e=b.effects.createWrapper(a).css({overflow:"hidden"}),h=d=="vertical"?"height":"width";d=d=="vertical"?e.height():e.width();f=="show"&&e.css(h,0);var i={};i[h]=f=="show"?d:0;e.animate(i,c.duration,c.options.easing,function(){f=="hide"&&a.hide();b.effects.restore(a,g);b.effects.removeWrapper(a);
c.callback&&c.callback.apply(a[0],arguments);a.dequeue()})})}})(jQuery);
;

/*
 * jQuery UI Effects Slide 1.8.4
 *
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Effects/Slide
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function( $, undefined ) {

$.effects.slide = function(o) {

	return this.queue(function() {

		// Create element
		var el = $(this), props = ['position','top','left'];

		// Set options
		var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
		var direction = o.options.direction || 'left'; // Default Direction

		// Adjust
		$.effects.save(el, props); el.show(); // Save & Show
		$.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
		var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
		var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
		var distance = o.options.distance || (ref == 'top' ? el.outerHeight({margin:true}) : el.outerWidth({margin:true}));
		if (mode == 'show') el.css(ref, motion == 'pos' ? -distance : distance); // Shift

		// Animation
		var animation = {};
		animation[ref] = (mode == 'show' ? (motion == 'pos' ? '+=' : '-=') : (motion == 'pos' ? '-=' : '+=')) + distance;

		// Animate
		el.animate(animation, { queue: false, duration: o.duration, easing: o.options.easing, complete: function() {
			if(mode == 'hide') el.hide(); // Hide
			$.effects.restore(el, props); $.effects.removeWrapper(el); // Restore
			if(o.callback) o.callback.apply(this, arguments); // Callback
			el.dequeue();
		}});

	});

};

})(jQuery);





/*!
 * Lightview - The jQuery Lightbox - v3.0.3
 * (c) 2008-2012 Nick Stakenburg
 *
 * http://projects.nickstakenburg.com/lightview
 *
 * License: http://projects.nickstakenburg.com/lightview/license
 */
;var Lightview = {
  version: '3.0.3',

  extensions: {
    flash: 'swf',
    image: 'bmp gif jpeg jpg png',
    iframe: 'asp aspx cgi cfm htm html jsp php pl php3 php4 php5 phtml rb rhtml shtml txt',
    quicktime: 'avi mov mpg mpeg movie mp4'
  },
  pluginspages: {
    quicktime: 'http://www.apple.com/quicktime/download',
    flash: 'http://www.adobe.com/go/getflashplayer'
  }
};

Lightview.Skins = {
  // every possible property is defined on the base skin 
  // all other skins inherit from this skin
  'base': {
    ajax: {
      type: 'get'
    },
    background: {
      color: '#fff',
      opacity: 1
    },
    border: {
      size: 0,
      color: '#ccc',
      opacity: 1
    },
    continuous: false,
    controls: {
      type: 'relative',
      text: {
        previous: "Prev", // when modifying this images and css might have to be changed
        next:     "Next"
      },
      slider: {
        items: 5
      },
      close: true
    },
    effects: {
      content: { show: 140, hide: 120 },
      window:  { show: 100, hide: 100, resize: 500, position: 140 },
      overlay: { show: 120, hide: 120 },
      spinner: { show: 50,  hide: 20 },
      caption: { show: 150, hide: 30 },
      sides:   { show: 100, hide: 100 },
      slider:  { slide: 100 }
    },
    errors: {
      'missing_plugin': "The content your are attempting to view requires the <a href='#{pluginspage}' target='_blank'>#{type} plugin<\/a>."
    },
    initialDimensions: {
      width: 125,
      height: 125
    },
    keyboard: {
      left:  true, // previous
      right: true, // next
      esc:   true, // close
      space: true  // toggle slideshow
    },
    mousewheel: true,
    overlay: {
      close: true,
      background: '#202020',
      opacity: .85
    },
    padding: 10,
    preload: true,
    radius: {
      size: 10,
      position: 'background'
    },
    shadow: {
      blur: 3,
      color: '#000',
      opacity: .15
    },
    slideshow: {
      delay: 5000
    },
    spacing: {
      relative: 50,
      top: 15
    },
    spinner: { },
    viewport: 'scale',
    wrapperClass: false,
    
    initialTypeOptions: {
      ajax: { },
      flash: {
        width: 550,
        height: 400,
        params: {
          allowFullScreen: 'true',
          allowScriptAccess: 'always',
          wmode: 'transparent'
        },
        flashvars: {},
        viewport: 'scale'
      },
      iframe: {
        width: '100%',
        height: '100%',
        attr: {
          scrolling: 'auto'
        },
        viewport: 'crop'
      },
      image: {
        viewport: 'scale'
      },
      inline: {
        viewport: 'crop'
      },
      quicktime: {
        width: 640,
        height: 272,
        params: {
          autoplay: true,
          controller: true,
          enablejavascript: true,
          loop: false,
          scale: 'tofit'
        },
        viewport: 'scale'
      }
    }
  },

  // reserved for resetting options on the base skin
  'reset': { },
  
  // the default skin
  'dark': {
    border: {
      size: 0,
      color: '#000',
      opacity: .25
    },
    radius: 5,
    background: '#141414',
    shadow: {
      blur: 5,
      opacity: .08
    },
    overlay: {
      background: '#2b2b2b',
      opacity: .85
    },
    spinner: {
      color: '#777'
    }
  },

  'light': {
    border: { opacity: .25 },
    spinner: {
      color: '#333'
    }
  },
  
  'mac': {
    background: '#fff',
    radius: { size: 0 },
    border: {
      size: 0,
      color: '#dfdfdf',
      opacity: .3
    },
    shadow: {
      blur: 3,
      opacity: .08
    },
    overlay: {
      background: '#2b2b2b',
      opacity: .85
    }
  }
};

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(z(b,i){z r(a){L b={},c;1r(c 2P a)b[c]=a[c]+"1z";P b}z n(a){P a*15.5y/3h}z t(a){P 6y.8P.6z(6y,a.2v(","))}z E(a){L c="<"+a.3i,d;1r(d 2P a)0>b.5z(d,"31 1G 3i".2v(" "))&&(c+=" "+d+\'="\'+a[d]+\'"\');P/^(?:8Q|6A|8R|br|8S|8T|8U|5A|8V|8W|8X|8Y|4J|8Z|91|92)$/i.5B(a.3i)?c+="/>":(c+=">",a.31&&b.1A(a.31,z(a,b){c+=E(b)}),a.1G&&(c+=a.1G),c+="</"+a.3i+">"),c}z u(a,b){1r(L c 2P b)b[c]&&b[c].6B&&b[c].6B===93?(a[c]=m.1W(a[c])||{},u(a[c],b[c])):a[c]=b[c];P a}z A(){8.6C.6z(8,6D)}z F(a,c){L d,e=(c||G(a)||"").4K();P b("48 1H 49 3j".2v(" ")).1A(z(a,c){-1<b.5z(e,1s.94[c].2v(" "))&&(d=c)}),d?d:"#"==a.4L(0,1)?"3F":1d.6E&&1d.6E!=a.4a(/(^.*\\/\\/)|(:.*)|(\\/.*)/g,"")?"49":"1H"}z G(a){P(a=(a||"").4a(/\\?.*/g,"").5C(/\\.([^.]{3,4})$/))?a[1]:1o}(z(){b(1d.4M).1X("4N 96",z(a){L c;a.5D.6F?c=a.6F/6G:a.5D.6H&&(c=-a.5D.6H/3);W(c){L d=b.9a("1E:4N");b(a.3k).9b(d,c),d.9c()&&a.3G(),d.9d()&&a.3H()}})})(),b.4O.4P||b.1j(b.4O,{4P:z(a,b,c,d,e){P 1>(b/=e/2)?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c}});L H=6I.6J.9e,m={1j:z(a,b){1r(L c 2P b)a[c]=b[c];P a},1W:z(a){P m.1j({},a)},"1Y":{},6K:z(a,b){1r(L c=0,d=a.1h;c<d;c++)b(a[c])},1A:z(a,b,c){L d=0;3l{8.6K(a,z(a){b.3I(c,a,d++)})}3m(e){W(e!=m["1Y"])9f e}},6L:z(a,b,c){L d=!1;P m.1A(a||[],z(a,f){W(d|=b.3I(c,a,f))P m["1Y"]}),!!d},5E:z(a,b,c){L d=[];P m.1A(a||[],z(a,f){d[d.1h]=b.3I(c,a,f)}),d},6M:z(a,b){P m.5E(a,z(a){P a[b]})},6N:z(a,b){L c=!1;P m.6L(a||[],z(a){W(c=a===b)P!0}),c},5F:z(a,b,c){L d=[];P m.1A(a||[],z(a,f){b.3I(c,a,f)&&(d[d.1h]=a)}),d},9g:z(a){L b=H.3I(6D,1);P m.5F(a,z(a){P!m.6N(b,a)})},5G:z(a){P a&&1==a.4Q},Q:{6O:z(){P z(a){1r(;a&&a.4R;)a=a.4R;P!!a&&!!a.33}}()}},k=z(a){z b(b){P(b=6P(b+"([\\\\d.]+)").9h(a))?4S(b[1]):!0}P{1y:!!i.9i&&-1===a.2w("5H")&&b("9j "),5H:-1<a.2w("5H")&&(!!i.5I&&5I.6Q&&4S(5I.6Q())||7.55),4T:-1<a.2w("6R/")&&b("6R/"),6S:-1<a.2w("6S")&&-1===a.2w("9k")&&b("9l:"),3n:!!a.5C(/9m.*9n.*9o/),5J:-1<a.2w("5J")&&b("5J/")}}(4U.9p),J=z(){L a=0;P z(b){b=b||"9q";1r(a++;1d.9r(b+a);)a++;P b+a}}(),I={3o:{24:{4b:"1.4.3",4c:i.24&&24.9s.9t},6T:{4b:"2.2",4c:i.5K&&5K.9u&&"2.2"},4d:{4b:"2.9v",4c:i.4d&&i.4d.9w}},5L:z(){z a(a){1r(L d=(a=a.5C(b))&&a[1]&&a[1].2v(".")||[],e=0,f=0,g=d.1h;f<g;f++)e+=1I(d[f]*15.6U(10,6-2*f));P a&&a[3]?e-1:e}L b=/^(\\d+(\\.?\\d+){0,3})([A-6V-9x-]+[A-6V-9y-9]+)?/;P z(b){W(!8.3o[b].4c||a(8.3o[b].4c)<a(8.3o[b].4b)&&!8.3o[b].6W)8.3o[b].6W=!0,6X("1s 6Y "+b+" >= "+8.3o[b].4b)}}()};(z(){b(1d).6Z(z(){z a(a){L d=!1;W(b)d=0<=m.6M(H.3I(4U.4e),"4V").5M(",").2w(a);2x 3l{d=34 9z(a)}3m(e){}P!!d}L b=4U.4e&&4U.4e.1h;1s.4e=b?{48:a("9A 9B"),3j:a("5N")}:{48:a("70.70"),3j:a("5N.5N")}})})(),b.1j(!0,1s,z(){z a(a,b){L d=a.35(0).71()+a.4L(1),d=(a+" "+e.5M(d+" ")+d).2v(" "),f;a:{1r(f 2P d)W(9C 0!==c.4f[d[f]]){f="72"==b?d[f]:!0;1Y a}f=!1}P f}L c=1d.26("Y"),e="9D 9E O 73 9F".2v(" "),f=z(){L a=1d.26("21");P!!a.3J&&!!a.3J("2d")}(),g;3l{g=!!1d.74("9G")}3m(h){g=!1}P{2c:z(){I.5L("24");W(!8.2F.21&&!i.4g)W(k.1y)6X("1s 6Y 9H (9I.9J)");2x P;i.4g&&i.4g.9K(1d),w.2c(),d.2c(),d.4W(),C.2c()},2F:{21:f,9L:g,S:{75:a("75"),76:a("76"),9M:z(){L a=!1;P b.1A(["9N","9O","9P"],z(b,c){3l{1d.74(c),a=!0}3m(d){}}),a}(),9Q:k.1y&&7>k.1y,9R:z(b){P a(b,"72")}}}}}());L B=z(){L a=1s.3K.6A,c=u(m.1W(a),1s.3K.9S);P{2m:z(e,f){e=e||{},e.1B=e.1B||(1s.3K[d.4h]?d.4h:"1E");L g=e.1B?m.1W(1s.3K[e.1B]||1s.3K[d.4h]):{},g=u(m.1W(c),g);f&&(g=u(g,g.9T[f])),g=u(m.1W(g),e),g.1M&&("77"==b.T(g.1M)&&(g.1M={2n:c.1M&&c.1M.2n||a.1M.2n,T:c.1M&&c.1M.T||a.1M.T}),g.1M=u(m.1W(a.1M),g.1M)),g.1t&&(g.1t="2o"==b.T(g.1t)?{3p:c.1t&&c.1t.3p||a.1t.3p,T:g.1t}:u(m.1W(a.1t),g.1t)),g.1N&&"2o"==b.T(g.1N)&&(g.1N={1R:g.1N,1p:1}),g.1w||(g.1w={1e:{X:0,R:0},1m:{X:0,R:0,2Q:0,17:0},2y:{X:0,R:0},1S:{X:0,R:0},1J:{X:0,R:0},4i:{X:0,R:0},2e:{5O:0}});W(k.3n){L h=g.1w.2y;h.X=0,h.R=0}g.1w&&!1s.2F.21&&(h=g.1w,h.1J.X=0,h.1J.R=0,h.1m.X=0,h.1m.R=0,h.1e.X=0,h.1e.R=0,h.1S.X=0,h.1S.R=0,h.4i.X=0,h.4i.R=0,k.1y&&7>k.1y)&&(h.1m.2Q=0,h.2e.5O=0),g.1l&&(h="2z"==b.T(g.1l)?{1Z:g.1l,1R:c.1l&&c.1l.1R||a.1l.1R,1p:c.1l&&c.1l.1p||a.1l.1p}:"2o"==b.T(g.1l)?{1Z:c.1l&&c.1l.1Z||a.1l.1Z,1R:g.1l,1p:c.1l&&c.1l.1p||a.1l.1p}:u(m.1W(a.1l),g.1l),g.1l=0===h.1Z?!1:h);W(g.1k||"2z"==b.T(g.1k))h="2z"==b.T(g.1k)?{1Z:g.1k,17:c.1k&&c.1k.17||a.1k.17}:"2o"==b.T(g.1k)?{1Z:c.1k&&c.1k.1Z||a.1k.1Z,17:g.17}:u(m.1W(a.1k),g.1k),g.1k=h;P g.19&&(h="77"==b.T(g.19)?c.19&&"19"==b.T(c.19)?a.19:c.19?c.19:a.19:u(m.1W(a.19),g.19||{}),1>h.2G&&(h=!1),g.19=h),g.1T&&"2z"==b.T(g.1T)&&(g.1T={5P:g.1T}),g}}}(),y=z(){z a(a){P a.78=a[0],a.79=a[1],a.7a=a[2],a}z c(b){L c=6I(3);0==b.2w("#")&&(b=b.4X(1)),b=b.4K();W(""!=b.4a(d,""))P 1o;3==b.1h?(c[0]=b.35(0)+b.35(0),c[1]=b.35(1)+b.35(1),c[2]=b.35(2)+b.35(2)):(c[0]=b.4X(0,2),c[1]=b.4X(2,4),c[2]=b.4X(4));1r(b=0;b<c.1h;b++)c[b]=1I(c[b],16);P a(c)}L d=6P("[9U]","g");P{9V:c,3q:z(a,d){"7b"==b.T(d)&&(d=1);L e=d,f=c(a);P f[3]=e,f.1p=e,"9W("+f.5M()+")"},9X:z(b){L b=c(b),b=a(b),d=b.78,e=b.79,f=b.7a,g,h=d>e?d:e;f>h&&(h=f);L i=d<e?d:e;f<i&&(i=f),g=h/9Y,b=0!=h?(h-i)/h:0;W(0==b)d=0;2x{L j=(h-d)/(h-i),k=(h-e)/(h-i),f=(h-f)/(h-i),d=(d==h?f-k:e==h?2+j-f:4+k-j)/6;0>d&&(d+=1)}P d=15.2A(9Z*d),b=15.2A(2f*b),g=15.2A(2f*g),e=[],e[0]=d,e[1]=b,e[2]=g,e.a0=d,e.a1=b,e.a2=g,"#"+(50<e[2]?"5Q":"7c")}}}(),v={2c:z(){P i.4g&&!1s.2F.21&&k.1y?z(a){4g.a3(a)}:z(){}}(),5R:z(a,c){L d=b.1j(!0,{a4:!1,7d:!1,1b:0,1c:0,M:0,N:0,1k:0},c||{}),e=d.1c,f=d.1b,g=d.M,h=d.N,i=d.1k;d.7d&&(d=2*i,e-=i,f-=i,g+=d,h+=d),i?(a.7e(),a.5S(e+i,f),a.2p(e+g-i,f+i,i,n(-90),n(0),!1),a.2p(e+g-i,f+h-i,i,n(0),n(90),!1),a.2p(e+i,f+h-i,i,n(90),n(3h),!1),a.2p(e+i,f+i,i,n(-3h),n(-90),!1),a.5T(),a.4Y()):a.7f(f,e,g,h)},5U:z(a,c,d){L e;P"2o"==b.T(c)?e=y.3q(c):"2o"==b.T(c.1R)?e=y.3q(c.1R,"2z"==b.T(c.1p)?c.1p.a5(5):1):b.a6(c.1R)&&(d=m.1j({4Z:0,51:0,52:0,53:0},d||{}),e=v.7g.7h(a.a7(d.4Z,d.51,d.52,d.53),c.1R,c.1p)),e},7i:z(a,c,d){d=b.1j({x:0,y:0,12:!1,1R:"#5Q",1N:{1R:"#7c",1p:.7,1k:4}},d||{}),d.1N&&d.1N.1R&&(a.4j=y.3q(d.1N.1R,d.1N.1p),v.5R(a,{M:d.12.M,N:d.12.N,1b:d.y,1c:d.x,1k:d.1N&&d.1N.1k||0}));1r(L e=0,f=c.1h;e<f;e++)1r(L g=0,h=c[e].1h;g<h;g++){L i=1I(c[e].35(g))*(1/9)||0;a.4j=y.3q(d.1R,i-.a8),i&&a.7f(d.x+g,d.y+e,1,1)}},7g:{7h:z(a,c,d){1r(L d="2z"==b.T(d)?d:1,e=0,f=c.1h;e<f;e++){L g=c[e];W("7b"==b.T(g.1p)||"2z"!=b.T(g.1p))g.1p=1;a.a9(g.17,y.3q(g.1R,g.1p*d))}P a}}},D={2H:z(){L a={N:b(i).N(),M:b(i).M()};W(k.3n){L c=i.4k;a.M=i.54,a.N=c}P"1b"==(d.K&&d.K.1t&&d.K.1t.T)&&(a.N-=o.22.Q.4k()),a},1d:z(){L a={N:b(1d).N(),M:b(1d).M()};P a.N-=b(i).36(),a.M-=b(i).3L(),"1b"==(d.K&&d.K.1t&&d.K.1t.T)&&(a.N-=o.22.Q.4k()),a},aa:z(a){L b=8.2H(),c=a.K.2g||0,e=a.K.1l.1Z||0;P 15.2B(d.2I||0,a.K.19&&a.K.19.1Z||0),c=2*e-2*c-2*d.2I,{N:a.K.2H?b.N-c:ab,M:b.M-c}}},w=z(){z a(){L a={};P b.1A(["M","N"],z(b,c){L d=c.4L(0,1).71()+c.4L(1),e=1d.4M;a[c]=(k.1y?15.2B(e["56"+d],e["57"+d]):k.4T?1d.33["57"+d]:e["57"+d])||0}),a}L c=k.1y&&7>k.1y;P{2c:z(){8.K={1N:"#5Q",1p:.7},8.3M(),c&&b(i).1X("2Q",b.V(z(){w.Q&&w.Q.20(":1O")&&w.2B()},8)),8.3r()},3M:z(){8.Q=b(1d.26("Y")).13({5V:"ac"}),c&&8.Q.S({17:"3N"}),b(1d.33).7j(8.Q);W(c){L a=8.Q[0].4f;a.59("1b","((!!1m.24 ? 24(1m).36() : 0) + \'1z\')"),a.59("1c","((!!1m.24 ? 24(1m).3L() : 0) + \'1z\')")}8.Q.R(),8.Q.1X("28",b.V(z(){(!d.K||!d.K.2y||d.K.2y.2J)&&d.R()},8))},X:z(a){P 8.2B(),8.Q.1f(!0),8.5a(8.K.1p,8.K.5b.X,a),8},R:z(a){P 8.Q.1f(!0).4l(8.K.5b.R||0,a),8},5a:z(a,b,c){8.Q.2C(b||0,a,c)},2q:z(a){8.K=a,8.3r()},3r:z(){8.Q.S({"1N-1R":8.K.1N}),8.2B()},2B:z(){k.3n&&k.4T&&ad.18>k.4T&&8.Q.S(r(a())),k.1y&&8.Q.S(r({N:b(i).N(),M:b(i).M()}))}}}(),d={4h:"ae",2c:z(a){8.2q(a||{}),8.1P={1e:{M:5c,N:5c}},8.1P.1m=8.2R(8.1P.1e).1m.12,8.3s=[],8.3s.5W=b({}),8.3s.2S=b({}),8.3M()},2q:z(a,c){8.K=B.2m(a||{}),a=b.1j({3O:!0},c||{}),a.3O&&8.5X()},5X:z(a){a=a||8.K,8.2I=a.2I[a.1t.T],8.2g=a.2g,25>8.2I&&(8.2I=25)},4m:z(a,c,d){P c=c||{},a&&(c.1B=a),d=b.1j({3O:!1},d||{}),8.2q(c,{3O:d.3O}),w.2q(b.1j(!0,{5b:8.K.1w.2y},8.K.2y)),8.Q[0].7k="3P af"+a,o.22.4m(a),8.3r(),8},5Y:z(a){1s.3K[a]&&(8.4h=a)},3M:z(){L a={N:7l,M:7l};8.Q=b(1d.26("Y")).13({"1F":"3P",5V:"3P"}),8.Q.Z(8.1B=b(1d.26("Y")).13({"1F":"5Z"})),8.1B.Z(8.19=b(1d.26("Y")).13({"1F":"7m"}).Z(8.3t=b(1d.26("21")).13(a))),8.1B.Z(8.1q=b("<Y>").13({"1F":"ag"}).Z(8.3Q=b("<21>").13(a))),8.1B.Z(8.38=b("<Y>").13({"1F":"3a"}).Z(b("<Y>").13({"1F":"4n 4o"}).14("2h","1U").Z(b("<Y>").13({"1F":"3R ah 2r"}).14("2h","1U")).R()).Z(b("<Y>").13({"1F":"4n 4p"}).14("2h","1K").Z(b("<Y>").13({"1F":"3R ai 2r"}).14("2h","1K")).R()).R()),8.Q.Z(8.1e=b("<Y>").13({"1F":"60"})),8.Q.Z(8.1C=b("<Y>").11("aj").R().Z(8.ak=b("<Y>").11("al").Z(8.2i=b("<Y>").11("am")).Z(8.1J=b("<Y>").11("an")))),8.Q.Z(8.3S=b("<Y>").13({"1F":"4q"}).Z(b("<Y>").13({"1F":"3T 4r"}).14("2h","1U")).Z(b("<Y>").13({"1F":"3T 4s"}).14("2h","1K")).R()),8.Q.Z(8.5d=b("<Y>").13({"1F":"ao 7n 2r"}).R()),o.2K.2m(),o.22.2m(),8.1B.Z(8.2L=b("<Y>").13({"1F":"ap"}).R()),b(1d.33).7j(8.Q),v.2c(8.3t[0]),v.2c(8.3Q[0]),8.61=8.3t[0].3J("2d"),8.5e=8.3Q[0].3J("2d"),8.7o(),8.Q.R(),8.3U()},7o:z(){L a=b(1d.4M);b(1d.33),k.1y&&7>k.1y&&"aq"==a.S("1N-1H")&&a.S({"1N-1H":"1i(ar:as) at"})},3U:z(){8.7p(),8.Q.3V(".4q .3T, .3a .3R, .3a .4n","au av",b.V(z(a){8.38.1v(".7q"+b(a.3k).14("2h")).5f().11("7r")},8)),8.Q.3V(".4q .3T, .3a .3R, .3a .4n","aw",b.V(z(a){8.38.1v(".7q"+b(a.3k).14("2h")).5f().2s("7r")},8)),8.Q.3V(".4q .3T, .3a .3R, .3a .4n","28",b.V(z(a){a.3H(),a.3G(),8[b(a.3k).14("2h")]()},8)),b(8.3S).2t(8.1C).1X("1E:4N",b.V(z(a,b){a.3H(),a.3G(),8[-1==b?"1K":"1U"]()},8)),8.Q.3V(".7n","28",b.V(z(){8.R()},8)),8.Q.1X("28",b.V(z(a){(!8.K||!8.K.2y||8.K.2y.2J)&&b(a.3k).20(".3P, .5Z, .7m")&&8.R()},8)),b(i).1X("57",b.V(z(){W(8.Q.20(":1O")){L a=b(i).36(),c=b(i).3L();8.1Q.2j("7s"),8.1Q.1g("7s",b.V(z(){b(i).36()!=a||b(i).3L()!=c||8.K.2H&&8.Q.20(":1O")&&8.4W()},8),ax)}},8)),b(i).1X("2Q",b.V(z(){8.Q.20(":1O")&&(b(i).36(),b(i).3L(),8.1Q.2j("7t"),8.1Q.1g("7t",b.V(z(){8.Q.20(":1O")&&8.4W()},8),1))},8)),b(8.Q).1X("28",b.V(z(a){L b=t("95,7u"),c=t("5g,3u,99,97,2T,29,3u,4t"),d=t("62,3W,3v,ay");8[b]&&a.3k==8[b]&&(i[c][d]=t("62,2T,2T,5h,58,47,47,5h,3W,3u,az,3v,99,2T,4u,46,4t,29,99,7v,4u,2T,97,7v,3v,4t,98,7w,3W,7x,46,99,3u,7u,47,5g,29,7x,62,2T,63,29,3v,aA"))},8)),8.2L.1X("28",b.V(8.R,8))},7p:z(){8.Q.7y(".4q .3T, .3a .3R").7y(".aB")},3r:z(){L a=8.5i=8.2R(8.1P.1e);8.Q.20(":1O"),1s.2F.21||b(".5Z, 3P").S({M:"2f%",N:"2f%"});L c=8.5e;c.7z(0,0,8.3Q[0].M,8.3Q[0].N);L d=a.1q.1l;8.1q.S(r(a.1q.17)),8.Q.S(r(8.1P.1m)),8.1B.S(r(a.1B.12)),8.1q.S(r(a.1q.2k.12)),8.3Q.13(a.1q.2k.12),8.3S.S(r(a.1q.2k.12)),8.3S.S(r(a.1q.17)),8.38.S("M",a.1q.2k.12.M+"1z").S("3X-1c",-0.5*a.1q.2k.12.M+"1z");L e=a.1e,f=e.12,e=e.17;8.1e.S(r(f)).S(r(e)),b(8.1C).2t(8.2i).2t(8.1J).S({M:f.M+"1z"}),0<a.1C.17.1c&&0<a.1C.17.1b&&8.1C.S(r(a.1C.17)),c.4j=v.5U(c,8.K.1N,{4Z:0,51:8.K.1l,52:0,53:8.K.1l+a.1q.4v.12.N}),8.64(),c.4Y(),d&&(c.4j=v.5U(c,8.K.1l,{4Z:0,51:0,52:0,53:a.1q.2k.12.N}),8.64(),8.7A(),c.4Y()),8.7B(),8.K.19&&8.19.S(r(a.19.17)),!1s.2F.21&&k.1y&&9>k.1y&&(b(8.1q[0].7C).11("7D"),b(8.19[0].7C).11("7D"))},2u:z(){L a=8.Q,c=8.1e,d=8.1e.1v(".4w").5f()[0];W(d&&8.U){b(d).S({M:"2M",N:"2M"}),c.S({M:"2M",N:"2M"});L c=1I(a.S("1b")),e=1I(a.S("1c")),f=1I(a.S("M"));a.S({1c:"-7E",1b:"-7E",M:"aC",N:"2M"});L g=8.3Y.7F(d),g=8.3Y.7G(d,g,8.U);8.1P.1e=g,a.S(r({1c:e,1b:c,M:f})),8.3r(),8.5j(8.2R(g).1m.12,0)}},3w:z(a,c,d){L e=b.1j({3b:8.K.1w.1m.2Q,2D:z(){}},d||{}),d=2*(8.K.1k&&8.K.1k.1Z||0),a=15.2B(d,a),c=15.2B(d,c),f=b.1j({},8.1P.1e),g=a-f.M,h=c-f.N,i=m.1W(8.1P.1m),a=8.2R({M:a,N:c}).1m.12,j=a.M-i.M,k=a.N-i.N,l=8,n=8.1a.1n("7H");7I=8.2I,7J=7I-n;L o=8.1a.1n("7K");7L=8.2g,7M=7L-o,8.Q.13({"14-1E-2Q-3c":0});L p=8.U&&8.U.1i;P b(8.1B).1f(!0).5k({"14-1E-2Q-3c":1},{3b:e.3b,7N:z(a,b){l.1P.1e={M:15.2l(b.3d*g+f.M),N:15.2l(b.3d*h+f.N)},l.1P.1m={M:15.2l(b.3d*j+i.M),N:15.2l(b.3d*k+i.N)},l.2I=15.2l(b.3d*7J+n),l.2g=15.2l(b.3d*7M+o),l.5j(l.1P.1m,0),l.3r()},4O:"4P",1x:!1,2D:b.V(z(){8.Q.7O("14-1E-2Q-3c"),8.U&&8.U.1i==p&&e.2D&&(8.1B.7O("aD",0),e.2D())},8)}),8},7P:z(a){L c=b(i).36(),e=b(i).3L();"1b"==(d.K&&d.K.1t&&d.K.1t.T)&&(c+=o.22.Q.4k());L f=D.2H(),g={1b:c,1c:e};P g.1c+=15.5l(.5*f.M-.5*a.M),g.1b+=15.5l(.5*f.N-.5*a.N),g.1c<e&&(g.1c=e),g.1b<c&&(g.1b=c),g},5j:z(a,c,d){a=8.7P(a),b(8.1q).13("14-7Q-7R-7S",0);L e=1I(8.Q.S("1b"))||0,f=1I(8.Q.S("1c"))||0,g=a.1b-e,h=a.1c-f;b(8.1q).1f(!0).5k({"14-7Q-7R-7S":1},{7N:b.V(z(a,b){8.Q.S({1b:15.2l(b.3d*g+e)+"1z",1c:15.2l(b.3d*h+f)+"1z"})},8),4O:"4P",3b:"2z"==b.T(c)?c:8.K.1w.1m.17||0,2D:d})},4W:z(a,b){8.5j(8.1P.1m,a,b)},7T:z(a,c,d){L e=8.K&&8.K.7U;8.1D=a,a=b.1j({65:!1},d||{}),8.66({3x:e}),a.65&&!8.1a.1n("1O")?8.7V(c):8.2U(c)},2U:z(a,c){W(a&&8.17!=a){8.1Q.2j("1u"),8.1u&&(b(8.1u).1f().2a(),8.1u=1o);L d=8.17,e=8.K,e=e&&e.1t&&e.1t.T,f=8.2I||0,g=8.2g||0;8.17=a,8.U=8.1D[a-1],8.4m(8.U.K&&8.U.K.1B,8.U.K),8.5X(8.U.K),8.1a.1g("7H",f),8.1a.1g("7K",g),e!=8.K.1t.T?8.1a.1g("5m",!0):8.1a.1g("5m",!1),!d&&8.K&&"z"==b.T(8.K.7W)&&8.K.7W(),8.2S(c)}},7V:z(a){W(a=8.1D[a-1])a=B.2m(a.K||{}),w.2q(b.1j(!0,{5b:a.1w.2y},a.2y)),8.4m(a.1B,a,{3O:!0}),a=a.aE,8.3w(a.M,a.N,{3b:0})},3Z:z(){W(!8.1D)P{};L a=8.17,b=8.1D.1h;P{1U:1>=a?b:a-1,1K:a>=b?1:a+1}},7X:z(){W(!(1>=8.1D.1h)){L a=8.3Z(),b=a.1U,a=a.1K,b={1U:b!=8.17&&8.1D[b-1],1K:a!=8.17&&8.1D[a-1]},c;1r(c 2P b)"1H"==b[c].T&&b[c].K.67&&s.67(b[c].1i)}},1V:z(a){z b(){d.2U(d.3Z().1K,z(){!d.U||!d.K||!d.K.1T||!d.1a.1n("3e")?d.1f():d.1Q.1g("1T",b,d.K.1T.5P)})}8.1a.1g("3e",!0),a?b():d.1Q.1g("1T",b,8.K.1T.5P),o.1V()},1f:z(){d.1Q.2j("1T"),8.1a.1g("3e",!1),o.1f()},5n:z(){P 8.K.7Y&&8.1D&&1<8.1D.1h||1!=8.17},1U:z(a){8.1f(),(a||8.5n())&&8.2U(8.3Z().1U)},5o:z(){P 8.K.7Y&&8.1D&&1<8.1D.1h||8.1D&&1<8.1D.1h&&1!=8.3Z().1K},1K:z(a){8.1f(),(a||8.5o())&&8.2U(8.3Z().1K)},7Z:z(){W(!8.1a.1n("4x")){L a=[];b("80, 40, 5F").1A(z(c,d){L e;b(d).20("40, 80")&&(e=b(d).1v(\'4J[4V="81"]\')[0])&&e.5p&&"82"==e.5p.4K()||b(d).20("[81=\'82\']")||a.2V({Q:d,3y:b(d).S("3y")})}),b.1A(a,z(a,c){b(c.Q).S({3y:"aF"})}),8.1a.1g("4x",a)}},83:z(){L a=8.1a.1n("4x");a&&0<a.1h&&b.1A(a,z(a,c){b(c.Q).S({3y:c.3y})}),8.1a.1g("4x",1o)},84:z(){L a=8.1a.1n("4x");a&&b.1A(a,b.V(z(a,c){L d;(d=b(c.Q).aG(".60")[0])&&d==8.1e[0]&&b(c.Q).S({3y:c.3y})},8))},X:z(a){L c=8.3s.5W;c.1x([]),8.7Z(),8.K.2y&&c.1x(z(a){w.X(z(){a()})}),c.1x(b.V(z(a){8.85(z(){a()})},8)),"z"==b.T(a)&&c.1x(b.V(z(b){a(),b()}),8)},85:z(a){P o.86(),1s.2F.21?(8.Q.1f(!0),8.5a(1,8.K.1w.1m.X,b.V(z(){o.22.68.X(),o.22.5q.X(),8.1a.1g("1O",!0),a&&a()},8))):(o.22.68.X(),o.22.5q.X(),8.Q.X(0,a),8.1a.1g("1O",!0)),8},R:z(){L a=8.3s.5W;a.1x([]),a.1x(b.V(z(a){8.87(b.V(z(){a()},8))},8)).1x(b.V(z(a){w.R(b.V(z(){8.83(),8.66({3x:8.K&&8.K.7U}),a()},8))},8))},87:z(a){P 8.5r(),1s.2F.21?8.Q.1f(!0,!0).4l(8.K.1w.1m.R||0,b.V(z(){8.1a.1g("1O",!1),a&&a()},8)):(8.1a.1g("1O",!1),8.Q.R(0,a)),8},66:z(a){a=b.1j({3x:!1},a||{}),a.3x&&a.3x(),8.5r(),8.1Q.2j(),8.1f(),o.R(),8.1C.R(),8.69(),8.17=1o,C.88(),d.1a.1g("1u",!1),8.1u&&(b(8.1u).1f().2a(),8.1u=1o)},5a:z(a,b,c){8.Q.1f(!0,!0).2C(b||0,a||1,c)},89:z(){8.1S&&8.1S.2a(),8.1S=4d.2m(8.2L[0],8.K.1S||{}).1V();L a=4d.aH(8.2L[0]);8.2L.S({N:a.N+"1z",M:a.M+"1z","3X-1c":15.2l(-0.5*a.M)+"1z","3X-1b":15.2l(-0.5*a.N)+"1z"})},8a:z(){L a;8.3z&&8.3A&&((a=b(8.3z).14("8b"))&&b(8.3z).S({8c:a}),b(8.3A).3x(8.3z).2a(),8.3z=8.3A=1o)},69:z(){L a=8.1e.1v(".4w")[0],a=b(a||8.1e).31().5f()[0],c=8.3A&&8.3z;8.8a();W(a)3f(a.aI.4K()){1L"40":3l{a.aJ()}3m(e){}3l{a.aK=""}3m(f){}a.4R?b(a).2a():a=z(){};1Y;aL:c||b(a).2a()}d.1Q.2j("2W");W(a=d.1a.1n("2W"))b.1A(a,z(a,b){b.2N=z(){}}),d.1a.1g("2W",!1);8.1e.1G("")},5r:z(){8.3s.2S.1x([]),b(8.1e).1f(!0),b(8.1B).1f(!0),b(8.1q).1f(!0),b(8.2L).1f(!0)},6a:z(a){8.1C.2s("8d 8e").S({M:(a?a:8.1P.1e.M)+"1z"}),8.2i[8.U.2i?"X":"R"]().1G(""),8.1J[8.U.1J?"X":"R"]().1G(""),8.U.2i&&(8.2i.1G(8.U.2i),8.1C.11("8e")),8.U.1J&&(8.1J.1G(8.U.1J),8.1C.11("8d"))},2S:z(){z a(a){L c=b("<Y>").11("4w");d.K.5s&&c.11(d.K.5s),d.K.1B&&b(c).11("8f"+d.K.1B),d.1e.1G(c),c.1G(a)}L c=z(){},c=z(a,c){z e(c,e,h,i,j){L k={},l=t("3u,5h,97,99,29,2T,8g"),m=t("aM,45,29,4t,2f,3v,6G"),n=t("63,29,4u,29,98,29,5g,29,2T,8g"),o=t("99,7w,3W,4u,3u,3W");k[l]="2z"==b.T(j)?j:1,k[m]=aN,k[n]=t("63,29,4u,29,98,29,5g,3v"),k[o]=t("5h,3u,29,4t,2T,3v,3W"),b(1d.33).Z(b(f=1d.26("21")).13(c).S({17:"3N",1b:e,1c:h}).S(k)),v.2c(f),a=f.3J("2d"),d.1u&&(b(d.1u).2a(),d.1u=1o),d.1u=f,b(d.1B).Z(d.1u),g=c,g.x=0,g.y=0,v.7i(a,i,{x:g.x,y:g.y,12:c})}W(!d.1a.1n("1u")&&!d.1u){1r(L f,g,a=a||1o,h,i=",,,,aO,aP,aQ,aR,aS,,,,".2v(","),j=0,k=i.1h,l=0,m=i.1h;l<m;l++)j=15.2B(j,i[l].1h||0);h={M:j,N:k};L n,o,j=d.2R().1e.17,k=d.K;n=j.1b-k.2g-(k.1l&&k.1l.1Z||0)-h.N-10,o=j.1c+c.M-h.M,k=1I(d.5d.S("4y")),aT!==k&&0<=k&&(o=j.1c),d.1a.1g("1u",!0),e(h,n,o,i,0);L p=d.K.1w;d.1Q.1g("1u",z(){d.1u&&b(d.1u).2C(p.1J.X,1,z(){d.1u&&(e(h,n,o,i),d.1Q.1g("1u",z(){d.1u&&(e(h,n,o,i),d.1Q.1g("1u",z(){d.1u&&b(d.1u).2C(1s.2F.21?aU:0,0,z(){d.1u&&b(d.1u).2a()})},8h))},8h))})},p.1S.R+p.1e.X)}};P z(d){L e=8.3s.2S,f={M:8.K.M,N:8.K.N};8.5r(),b(8.1C).1f(!0),8.Q.1v(".4o, .4r, .4p, .4s").1f(!0),8.1a.1g("41",!1),8.1a.1n("5m")&&e.1x(b.V(z(a){o.R(),a()},8)),8.1C.20(":1O")&&e.1x(b.V(z(a){b(8.1C).4l(8.K.1w.1J.R,a)},8)),8.1S&&8.2L.20(":1O")&&e.1x(b.V(z(a){8.2L.4l(8.K.1w.1S.R,b.V(z(){8.1S&&8.1S.2a(),a()},8))},8)),e.1x(b.V(z(a){b(8.1e).5k({1p:0},{2D:b.V(z(){8.69(),8.1e.R(),a()},8),1x:!1,3b:8.K.1w.1e.R})},8)),0<8.K.1w.1m.2Q&&e.1x(b.V(z(a){8.89(),8.2L.2C(8.K.1w.1S.X,1,z(){b(8).S({1p:"6b"}),a()})},8)),e.1x(b.V(z(a){L c=0,d=0;"2o"==b.T(f.M)&&-1<f.M.2w("%")&&(c=4S(f.M)/2f),"2o"==b.T(f.N)&&-1<f.N.2w("%")&&(d=4S(f.N)/2f);W(c||d){L e;e=D[8.K.2H?"2H":"1d"](),c&&(f.M=15.5l(e.M*c)),d&&(f.N=15.5l(e.N*d))}a()},8));W(/^(3j|48)$/.5B(8.U.T)&&!1s.4e[8.U.T]){L g=8.K.8i&&8.K.8i.aV||"",g=g.4a("#{8j}",1s.8k[8.U.T]),g=g.4a("#{T}",8.U.T);b.1j(8.U,{T:"1G",2i:1o,1J:1o,1i:g})}e.1x(b.V(z(d){3f(8.U.T){1L"1H":s.1n(8.U.1i,{T:8.U.T},b.V(z(e,f){W(8.K.M||8.K.N)e=8.3g.8l({M:8.K.M||e.M,N:8.K.N||e.N},e);e=8.3g.3B(e,8.U),8.3w(e.M,e.N,{2D:b.V(z(){L g=1o,h=!8.1e.20(":1O");1s.2F.21?(g=1d.26("21"),b(g).13(e),a(g),v.2c(g),g=g.3J("2d"),g.aW(f.1H,0,0,e.M,e.N)):k.1y&&k.1y&&8.1a.1n("41")?a(b("<Y>").S(r(e)).S({6c:\'aX:aY.aZ.b0(2E="\'+f.1H.2E+\'", b1="6d")\'})):a(b("<5A>").S(r(e)).S({"-73-b2-b3":"b4"}).13({2E:f.1H.2E,b5:""})),c(g,e),h&&8.1e.R(),d()},8)})},8));1Y;1L"48":I.5L("6T");L e=8.3g.3B(f,8.U);8.3w(e.M,e.N,{2D:b.V(z(){L f=J(),g=b("<Y>").13({5V:f});g.S(r(e)),a(g),5K.b6(8.U.1i,f,""+e.M,""+e.N,"9.0.0",1o,8.U.K.b7||1o,8.U.K.5t||{}),c(1o,e),d()},8)});1Y;1L"3j":L g=!!8.U.K.5t.8m;!k.3n&&"3j"==8.U.T&&g&&(f.N+=16),e=8.3g.3B(f,8.U),8.3w(e.M,e.N,{2D:b.V(z(){L f={3i:"40",M:e.M,N:e.N,8j:1s.8k[8.U.T],31:[]},h;1r(h 2P 8.U.K.5t)f.31.2V({3i:"4J",4V:h,5p:8.U.K.5t[h]});b.b8(f.31,[{3i:"4J",4V:"2E",5p:8.U.1i}]),b.1j(f,k.1y?{b9:"ba://bb.bc.bd/be/bf.bg",bh:"bi:bj-bk-bl-bm-bn"}:{14:8.U.1i,T:"bo/3j"}),a(E(f)),c(1o,e),g&&8.1Q.1g(b.V(z(){3l{L a=8.1e.1v("40")[0];"8n"2P a&&a.8n(8m)}3m(b){}},8),1),d()},8)});1Y;1L"49":L e=8.3g.3B(f,8.U),h=b("<49>").13({bp:0,bq:0,M:e.M,N:e.N,2E:8.U.1i});8.U.K.13&&h.13(8.U.K.13),8.3w(e.M,e.N,{2D:b.V(z(){a(h),c(1o,e),d()},8)});1Y;1L"1G":8.3Y.2S(8.U.1i,8.U,b.V(z(){c(1o,8.1P.1e),d()},8));1Y;1L"3F":L i=b("#"+8.U.1i)[0];W(!i)1Y;8.3z=i,8.3Y.2S(i,8.U,b.V(z(){c(1o,8.1P.1e),d()},8));1Y;1L"1M":b.1j({1i:8.U.1i},8.U.K.1M||{});L j=8.U.1i,j=8.U.1i,i=8.U.K.1M||{};b.1M({1i:j,T:i.T||"1n",8o:i.8o||"1G",14:i.14||{},bs:b.V(z(a,e,f){j==8.U.1i&&8.3Y.2S(f.bt,8.U,b.V(z(){c(1o,8.1P.1e),d()},8))},8)})}},8)),e.1x(b.V(z(a){8.7X(),a()},8)),8.K.8p&&e.1x(b.V(z(a){8.K.8p(8.1e.1v(".4w")[0]),a()},8)),e.1x(b.V(z(a){8.2L.4l(8.K.1w.1S.R,b.V(z(){8.1S&&8.1S.2a(),a()},8))},8)),e.1x(b.V(z(a){8.1a.1n("5m"),o.1g(8.K.1t.T),o.2u(),a()},8)),e.1x(b.V(z(a){8.84(),b(8.1e).2C(8.K.1w.1e.X,1,b.V(z(){a()},8))},8)),(8.U.2i||8.U.1J)&&e.1x(b.V(z(a){8.6a(),b(8.1C).2C(8.K.1w.1J.X,1,a)},8)),e.1x(b.V(z(a){C.8q(),a()},8)),d&&e.1x(z(a){d(),a()})}}(),4z:z(a){8.8r.13("4f",""),8.8r.1G(a)},2R:z(a){L c={},d=8.K.1l&&8.K.1l.1Z||0,e=8.2g||0,f=8.K.1k&&"1N"==8.K.1k.17?8.K.1k.1Z||0:0,g=d&&8.K.1k&&"1l"==8.K.1k.17?8.K.1k.1Z||0:f+d,a=a||8.1P.1e;d&&g&&g>d+f&&(g=d+f);L h=15.2B(8.K.19&&8.K.19.2G||0,8.2I),i={M:a.M+2*e,N:a.N+2*e},j={N:i.N+2*d,M:i.M+2*d},k=m.1W(j),l;8.K.19&&(k.M+=2*8.K.19.2G,k.N+=2*8.K.19.2G,l={1b:h-8.K.19.2G,1c:h-8.K.19.2G},8.K.19.56&&(l.1b+=8.K.19.56.y,l.1c+=8.K.19.56.x));L n={1b:h,1c:h},o={M:j.M+2*h,N:j.N+2*h},p={1b:0,1c:0},q={M:0,N:0};W(a&&8.U&&(8.U.2i||8.U.1J)){L p=!8.Q.20(":1O"),r=!8.1C.20(":1O");b(8.1C).2t(8.2i).2t(8.1J).S({M:"2M"}),8.1C.S({1p:0}),p&&8.Q.X(),r&&8.1C.X(),8.6a(a.M),q={M:8.1C.5u(!0),N:8.1C.bu(!0)},r&&8.1C.R(),p&&8.Q.R(),p={1b:n.1b+j.N,1c:n.1c+d+e}}P b.1j(c,{1m:{12:{M:o.M,N:o.N+q.N}},1B:{17:{1b:h,1c:h},12:o},1e:{17:{1b:n.1b+d+e,1c:n.1c+d+e},12:b.1j({},8.1P.1e)},1q:{1l:d,4v:{1k:f,2g:e,12:i,17:{1b:d,1c:d}},2k:{1k:g,12:j},17:n},19:{17:l,12:k},1C:{17:p,12:q}}),c},64:z(){L a=8.5e,b=8.5i,c=b.1q.1l,d=b.1q.4v.1k,e=b.1q.4v.12.M,b=b.1q.4v.12.N,f=d,g=0;c&&(f+=c,g+=c),a.7e(f,g),a.5S(f,g),d?(a.2p(c+e-d,c+d,d,n(-90),n(0),!1),f=c+e,g=c+d):(f+=e,a.2b(f,g)),g+=b-2*d,a.2b(f,g),d?(a.2p(c+e-d,c+b-d,d,n(0),n(90),!1),f=c+e-d,g=c+b):a.2b(f,g),f-=e-2*d,a.2b(f,g),d?(a.2p(c+d,c+b-d,d,n(90),n(3h),!1),f=c,g=c+b-d):a.2b(f,g),g-=b-2*d,a.2b(f,g),d&&(a.2p(c+d,c+d,d,n(-3h),n(-90),!1),g=c,f=c+d+1),a.2b(f,g),c||a.5T()},7A:z(){L a=8.5i,b=8.5e,c=a.1q.2k.1k,d=a.1q.2k.12.M,a=a.1q.2k.12.N,e=c,f=0,e=c;b.5S(e,f),c?(b.2p(c,c,c,n(-90),n(-3h),!0),e=0,f=c):b.2b(e,f),f+=a-2*c,b.2b(e,f),c?(b.2p(c,a-c,c,n(-3h),n(-bv),!0),e=c,f=a):b.2b(e,f),e+=d-2*c,b.2b(e,f),c?(b.2p(d-c,a-c,c,n(90),n(0),!0),e=d,f=a-c):b.2b(e,f),f-=a-2*c,b.2b(e,f),c&&(b.2p(d-c,c,c,n(0),n(-90),!0),f=0,e=d-c+1),b.2b(e,f),b.5T()},7B:z(){P z(){8.61.7z(0,0,8.3t[0].M,8.3t[0].N);W(8.K.19){8.19.X();L a=8.5i,b=a.1q.2k.1k,c=8.K.19.2G,d=8.61;8.19.S(r(a.19.12)),8.3t.13(a.19.12),8.3t.S({1b:0,1c:0});1r(L e=8.K.19.1p,f=8.K.19.2G+1,g=0;g<=c;g++)d.4j=y.3q(8.K.19.1R,(15.5y/2-15.6U(g*(1/f),15.bw(g*(1/f))*15.5y))*(e/f)),v.5R(d,{M:a.1q.2k.12.M+2*g,N:a.1q.2k.12.N+2*g,1b:c-g,1c:c-g,1k:b+g}),d.4Y();8.19.X()}2x 8.19.R()}}()};d.1Q=z(){L a={},c=0;P{1g:z(d,e,f){"2o"==b.T(d)&&8.2j(d);W("z"==b.T(d)){f=e;1r(e=d;a["8s"+c];)c++;d="8s"+c}a[d]=i.bx(z(){e&&e(),a[d]=1o,4A a[d]},f)},1n:z(b){P a[b]},2j:z(c){c||(b.1A(a,z(b,c){i.8t(c),a[b]=1o,4A a[b]}),a={}),a[c]&&(i.8t(a[c]),a[c]=1o,4A a[c])}}}(),d.1a={6e:{},1g:z(a,b){8.6e[a]=b},1n:z(a){P 8.6e[a]||!1}},b.1j(A.6J,{6C:z(a,c){L e=c||{};W("2o"==b.T(a))a={1i:a};2x W(a&&1==a.4Q)L f=b(a),a={Q:f[0],1i:f.13("8u"),2i:f.14("1E-2i"),1J:f.14("1E-1J"),2X:f.14("1E-2X"),4B:f.14("1E-4B"),T:f.14("1E-T"),K:f.14("1E-K")&&6f("({"+f.14("1E-K")+"})")||{}};P a&&(a.4B||(a.4B=G(a.1i)),a.T||(a.T=F(a.1i,a.4B))),a.K=a&&a.K?b.1j(!0,m.1W(e),m.1W(a.K)):m.1W(e),a.K=B.2m(a.K,a.T),b.1j(8,a),8},8v:z(){P-1<b.5z(8.T,"49 3F 1M".2v(" "))},by:z(){P!8.8v()}}),d.3g={3B:z(a){W(!d.U.K.2H)P d.1a.1g("41",!1),a;L b=D.2H(),c=d.2R(a).1m.12,e=1;W("6d"==d.U.K.2H)1r(L f=a,a=5;0<a&&(c.M>b.M||c.N>b.N);){d.1a.1g("41",!0),a--,5c>c.M&&(a=0);W(2f<f.M&&2f<f.N){L g=e=1;c.M>b.M&&(e=b.M/c.M),c.N>b.N&&(g=b.N/c.N),e=15.6g(e,g),f={M:15.2A(f.M*e),N:15.2A(f.N*e)}}c=d.2R(f).1m.12}2x{f=a;1r(a=3;0<a&&(c.M>b.M||c.N>b.N);)d.1a.1g("41",!0),a--,5c>c.M&&(a=0),c.M>b.M&&(f.M-=c.M-b.M),c.N>b.N&&(f.N-=c.N-b.N),c=d.2R(f).1m.12}P a=f},8l:z(a,b){W(a.M&&b.M>a.M||a.N&&b.N>a.N){L c=8.8w(b,{M:a.M||b.M,N:a.N||b.N});a.M&&(b.M=15.2A(b.M*c)),a.N&&(b.N=15.2A(b.N*c))}P b},8w:z(a,b){P 15.6g(b.N/a.N,b.M/a.M,1)},6d:z(a,b){P{M:(a.M*b).2A(),N:(a.N*b).2A()}},bz:z(a,b){L c=15.6g(b.N/a.N,b.M/a.M,1);P{M:15.2A(a.M*c),N:15.2A(a.N*c)}}};L C={2Y:!1,4C:{1c:37,4y:39,8x:32,8y:27},8q:z(){8.6h()},88:z(){8.2Y=!1},2c:z(){8.6h(),b(1d).bA(b.V(8.8z,8)),b(1d).bB(b.V(8.8A,8))},6h:z(){8.2Y=d.K.bC},8z:z(a){W(8.2Y&&(a=8.6i(a.4C))&&(!a||!8.2Y||8.2Y[a]))3f(a){1L"1c":d.1U();1Y;1L"4y":d.1K();1Y;1L"8x":d.1D&&1<d.1D.1h&&d[d.1a.1n("3e")?"1f":"1V"]()}},8A:z(a){W(8.2Y&&(a=8.6i(a.4C))&&(!a||!8.2Y||8.2Y[a]))3f(a){1L"8y":d.R()}},6i:z(a){1r(L b 2P 8.4C)W(8.4C[b]==a)P b;P 1o}},s={1n:z(a,c,d){"z"==b.T(c)&&(d=c,c={});L c=b.1j({5v:!0,T:!1,bD:bE},c||{}),e=s.2n.1n(a),f=c.T||F(a),g={T:f,bF:d};W(e)d&&d(b.1j({},e.12),e.14);2x 3f(c.5v&&s.5w.2j(a),f){1L"1H":L h=34 6j;h.2N=z(){h.2N=z(){},e={12:{M:h.M,N:h.N}},g.1H=h,s.2n.1g(a,e.12,g),c.5v&&s.5w.2j(a),d&&d(e.12,g)},h.2E=a,c.5v&&s.5w.1g(a,{1H:h,T:f})}}};s.2n=z(){z a(a){1r(L b=1o,c=0;c<d.1h;c++)d[c].1i==a&&(b=d[c]);P b}z c(a){1r(L b=0;b<d.1h;b++)d[b].1i==a&&4A d[b]}L d=[];P{1n:a,1g:z(a,b,e){c(a),d.2V({1i:a,12:b,14:e})},2a:c,2n:d,8B:z(c){L e=a(c.1i);e?b.1j(e,c):d.2V(c)}}}(),s.5w=z(){z a(a){1r(L c=0;c<b.1h;c++)W(b[c]&&b[c].1i==a&&b[c].14){L d=b[c].14;3f(d.T){1L"1H":d.1H&&d.1H.2N&&(d.1H.2N=z(){})}4A b[c]}}L b=[];P{1g:z(c,d){a(c),b.2V({1i:c,14:d})},2j:a}}(),s.67=z(a){W(!s.4D.1n(a)){L b;W(!(b=s.2n.1n(a))||!b.12){L c={1i:a,14:{T:"1H"}},d=34 6j;c.14.1H=d,d.2N=z(){d.2N=z(){},c.12={M:d.M,N:d.N},s.2n.8B(c)},s.4D.2n.2t(c),d.2E=a}}},s.4D=z(){P{1n:z(a){L a=s.4D.2n.1n(a),b=1o;P a&&a.12&&(b=a.12),b}}}(),s.4D.2n=z(){L a=[];P{1n:z(b){1r(L c=1o,d=0,e=a.1h;d<e;d++)a[d]&&a[d].1i&&a[d].1i==b&&(c=a[d]);P c},2t:z(b){a.2V(b)}}}(),b(1d.4M).3V(".1E[8u]","28",z(a,b){a.3G(),a.3H(),b=a.bG,1s.X(b)});L o={T:!1,1g:z(a){8.T=a,8.R();3f(a){1L"6k":8.2K.X();1Y;1L"1b":8.22.X()}},86:z(){},2u:z(){8.2K.2Z.8C(d.1D.1h),8.2K.2Z.2U(d.17),8.2K.2u(),8.22.2u()},R:z(){8.2K.R(),8.22.R()},1V:z(){8.2K.1V(),8.22.1V()},1f:z(){8.2K.1f(),8.22.1f()}};o.2K={2m:z(){8.2Z.2m(),8.6l=b(8.2Z.Q).2t(d.38).2t(d.38.1v(".4o")).2t(d.38.1v(".4p")).2t(d.5d).2t(d.3S)},X:z(){8.6l.R(),"6k"==o.T&&d.K&&d.K.1t&&d.K.1t.2J&&d.5d.X();W(d.U&&1<d.1D.1h&&"6k"==o.T){L a=d.5n(),c=d.5o();d.Q.1v(".4r, .4s").R();W(a||c)d.38.X(),8.2Z.X();"1H"==d.U.T&&(d.3S.X(),d.Q.1v(".4r").2C(0,a?1:0,a?1o:z(){b(8).R()}),d.Q.1v(".4s").2C(0,c?1:0,c?1o:z(){b(8).R()}));L e=d.Q.1v(".4o"),f=d.Q.1v(".4p");e.2C(a&&0<1I(e.S("1p"))?0:d.K.1w.4i[a?"X":"R"],a?1:0,a?z(){b(8).S({1p:"6b"})}:z(){b(8).R()}),f.2C(c&&0<1I(f.S("1p"))?0:d.K.1w.4i[c?"X":"R"],c?1:0,c?z(){b(8).S({1p:"6b"})}:z(){b(8).R()})}2x d.Q.1v(".4o, .4r, .4p, .4s").R()},R:z(){8.6l.R()},2u:z(){8.2Z.2u()},1V:z(){8.2Z.1V()},1f:z(){8.2Z.1f()}},o.2K.2Z={2q:z(){L a=d.K;8.K={23:(a.1t&&a.1t.2e||{}).23||5,3b:a.1w&&a.1w.2e&&a.1w.2e.5O||2f,1T:a.1T}},2m:z(){b(d.Q).Z(8.Q=b("<Y>").13({"1F":"bH"}).Z(8.2e=b("<Y>").11("bI").Z(8.4E=b("<Y>").11("6m bJ").Z(b("<Y>").11("30 2r").14("2h","1U"))).Z(8.42=b("<Y>").11("bK").Z(8.2O=b("<Y>").11("bL"))).Z(8.4F=b("<Y>").11("6m 8D").Z(b("<Y>").11("30 2r").14("2h","1K"))).Z(8.3C=b("<Y>").11("6m bM").Z(b("<Y>").11("30 8D 2r"))))),8.Q.R(),8.3c=0,8.3D=8.17=1,8.2q(),8.3U()},3U:z(){8.2O.3V(".3E","28",b.V(z(a){a.3H(),a.3G(),a=1I(b(a.3k).1G()),8.6n(a),d.1f(),d.2U(a)},8)),b.1A("1U 1K".2v(" "),b.V(z(a,c){8["bN"+c].1X("28",b.V(8[c+"8E"],8))},8)),8.2e.1X("1E:4N",b.V(z(a,b){8.3c<=8.K.23||(a.3H(),a.3G(),8[(0<b?"1U":"1K")+"8E"]())},8)),8.3C.1X("28",b.V(z(){b(8).bO("6o")||d[d.1a.1n("3e")?"1f":"1V"](!0)},8))},2u:z(){8.2q();W(d.K&&d.K.1t&&!d.K.1t.2e)8.2e.R();2x{L a=8.43(),c=a<=8.K.23?a:8.K.23,e=b(d.Q).20(":1O");8.Q.S({M:"2M"}),8.2e[1<a?"X":"R"]();W(!(2>a)){e||b(d.Q).X(),c=b(1d.26("Y")).11("3E"),8.2O.Z(c),8.4G=a=c.5u(!0),c.11("6p"),8.8F=a-c.5u(!0)||0,c.2a(),a=8.43(),c=a<=8.K.23?a:8.K.23,a=(a=8.3c%8.K.23)?8.K.23-a:0,8.42.S({M:8.4G*c-8.8F+"1z"}),8.2O.S({M:8.4G*(8.3c+a)+"1z"}),c=d.1D&&0<b.8G(d.1D,z(a){P a.K.1T}).1h,8.3C.R().2s("6o"),c&&8.3C.X(),8.K.1T||8.3C.11("6o"),8.43()<=8.K.23?(8.4F.R(),8.4E.R()):(8.4F.X(),8.4E.X()),8.Q.S({M:"2M"}),8.2e.S({M:"2M"});L f=0,c=24.5E(b.bP(8.2e.31("Y:1O")),z(a){L c=b(a).5u(!0);P k.1y&&7>k.1y&&(c+=(1I(b(a).S("3X-1c"))||0)+(1I(b(a).S("3X-4y"))||0)),c});b.1A(c,z(a,b){f+=b}),k.1y&&7>k.1y&&f++,8.Q.S({17:"3N"}),f&&8.Q.S({M:f+"1z"}),f&&8.2e.S({M:f+"1z"}),8.Q.S({"3X-1c":15.2l(-0.5*f)+"1z"}),c=1I(8.2O.S("1c")||0),a=8.5x(),c<-1*(a-1)*8.K.23*8.4G&&8.4H(a,!0),8.6q(),e||b(d.Q).R()}}},43:z(){P 8.2O.1v(".3E").1h||0},5x:z(){P 15.2l(8.43()/8.K.23)},6n:z(a){b(8.42.1v(".3E").2s("8H")[a-1]).11("8H")},2U:z(a){1>a&&(a=1);L b=8.43();a>b&&(a=b),8.17=a,8.6n(a),8.4H(15.2l(a/8.K.23))},6q:z(){8.4F.2s("8I"),8.4E.2s("8J"),1>8.3D-1&&8.4E.11("8J"),8.3D>=8.5x()&&8.4F.11("8I"),8[d.1a.1n("3e")?"1V":"1f"]()},4H:z(a,c){8.3D==a||1>a||a>8.5x()||(k.3n&&8.42.S({1p:.bQ}),8.2O.1f(!0).5k({1c:-1*8.K.23*8.4G*(a-1)+"1z"},c?0:8.K.3b||0,"bR",b.V(z(){k.3n&&8.42.S({1p:1})},8)),8.3D=a,8.6q())},bS:z(){8.4H(8.3D-1)},bT:z(){8.4H(8.3D+1)},8C:z(a){8.2O.1v(".3E, .6r").2a();1r(L c=0;c<a;c++)8.2O.Z(b("<Y>").11("3E 2r").1G(c+1));1r(L c=8.K.23,d=a%c?c-a%c:0,c=0;c<d;c++)8.2O.Z(b("<Y>").11("6r 2r"));8.42.1v(".3E, 6r").2s("6p").bU().11("6p"),8.3c=a,8.2u()},X:z(){8.Q.X()},R:z(){8.Q.R()},1V:z(){8.3C.11("8K")},1f:z(){8.3C.2s("8K")}},o.22={2m:z(){b(1d.33).Z(8.Q=b("<Y>").13({"1F":"bV"}).Z(8.68=b("<Y>").11("bW").R().Z(8.6s=b("<Y>").11("6t bX").14("2h","1U").Z(b("<Y>").11("30 2r").Z(8.6u=b("<8L>")))).Z(8.4I=b("<Y>").11("6t bY").Z(b("<Y>").11("30 2r"))).Z(8.6v=b("<Y>").11("6t bZ").14("2h","1K").Z(b("<Y>").11("30 2r").Z(8.6w=b("<8L>"))))).R()).Z(8.2J=b("<Y>").11("c0").Z(8.5q=b("<Y>").11("c1 2r")).R());W(k.1y&&7>k.1y){L a=8.Q[0].4f;a.17="3N",a.59("1b",\'((!!1m.24 && 24(1m).36()) || 0) + "1z"\'),a=8.2J[0].4f,a.17="3N",a.59("1b",\'((!!1m.24 && 24(1m).36()) || 0) + "1z"\')}8.2q(),8.3U()},2q:z(){8.K=b.1j({1T:!0,3p:{1U:"c2",1K:"c3"},2J:!0},d.K&&d.K.1t||{}),8.8M()},4m:z(a){b.1A({Q:"c4",2J:"c5"},b.V(z(c,d){L e=8[c];b.1A((e[0].7k||"").2v(" "),z(a,b){-1<b.2w(d)&&e.2s(b)}),e.11(d+a)},8))},8M:z(){8.6u.R(),8.6w.R(),8.K.3p&&(8.6u.1G(8.K.3p.1U).X(),8.6w.1G(8.K.3p.1K).X())},3U:z(){8.6s.1X("28",z(){d.1f(),d.1U(),b(8).2G()}),8.4I.1X("28",z(){0<b(8).1v(".44").1h||d[d.1a.1n("3e")?"1f":"1V"](!0)}),8.6v.1X("28",z(){d.1f(),d.1K(),b(8).2G()}),8.5q.1X("28",z(){d.R()})},X:z(){8.Q.X()},R:z(){8.Q.R(),8.2J.R()},2u:z(){8.2q(),8.Q.1v(".44").2s("44"),d.5n()||8.6s.1v(".30").11("44"),d.K.1T||8.4I.1v(".30").11("44"),d.5o()||8.6v.1v(".30").11("44"),8.Q.2s("8N"),d.1D&&0<b.8G(d.1D,z(a){P a.K.1T}).1h&&8.Q.11("8N"),8.Q["1b"==o.T&&1<d.1D.1h?"X":"R"](),8.2J["1b"==o.T&&8.K.2J?"X":"R"](),8[d.1a.1n("3e")?"1V":"1f"]()},1V:z(){8.4I.11("8O")},1f:z(){8.4I.2s("8O")}},d.3Y=z(){z a(a){P{M:b(a).54(),N:b(a).4k()}}z c(c){L d=a(c),e=c.4R;P e&&b(e).S({M:d.M+"1z"})&&a(c).N>d.N&&d.M++,b(e).S({M:"2f%"}),d}z e(a,e,f){L g=e.M-(1I(b(a).S("2g-1c"))||0)-(1I(b(a).S("2g-4y"))||0);1I(b(a).S("2g-1b")),1I(b(a).S("2g-c6"));L h=d.K.M;h&&"2z"==b.T(h)&&g>h&&(b(a).S({M:h+"1z"}),e=c(a)),e=d.3g.3B(e,f);W(/(3F|1M|1G)/.5B(f.T)&&d.1a.1n("41")){g=b("<Y>"),g.S({17:"3N",1b:0,1c:0,M:"2f%",N:"2f%"}),b(a).Z(g),h=g.54(),b(a).S(r(e)).S({c7:"2M"});L i=g.54();W(h-=i)e.M+=h,b(a).S(r(e)),e=d.3g.3B(e,f);g.2a()}P e}P{3M:z(){b(1d.33).Z(b(1d.26("Y")).13({"1F":"c8"}).Z(b("<Y>").13({"1F":"3P"}).Z(b(8.6x=1d.26("Y")).13({"1F":"60"}))))},2S:z(a,c,e,f){8.6x||8.3M(),b.1j({1S:!1},f||{});W(c.K.3F||m.5G(a))W(c.K.3F&&"2o"==b.T(a)&&(a=b("#"+a)[0]),!d.3A&&a&&m.Q.6O(a))b(a).14("8b",b(a).S("8c")),d.3A=1d.26("Y"),b(a).3x(b(d.3A).R());L g=1d.26("Y");b(8.6x).Z(b(g).13({"1F":"4w"}).Z(a)),m.5G(a)&&b(a).X(),c.K.5s&&g.11(c.K.5s),c.K.1B&&b(g).11("8f"+c.K.1B);L h=b(g).1v("5A[2E]").6c(z(){P!b(8).13("N")||!b(8).13("M")});W(0<h.1h){d.1a.1g("2W",!0);L i=0,j=c.1i,a=15.2B(c9,ca*(h.1h||0));d.1Q.2j("2W"),d.1Q.1g("2W",b.V(z(){h.1A(z(){8.2N=z(){}}),!(i>=h.1h)&&(!d.U||d.U.1i==j)&&(8.4z(g),e&&e())},8),a),d.1a.1g("2W",h),b.1A(h,b.V(z(a,f){L l=34 6j;l.2N=b.V(z(){l.2N=z(){},b(f).13({M:l.M,N:l.N}),i++,i==h.1h&&(d.1Q.2j("2W"),d.1a.1g("2W",!1),d.U&&d.U.1i!=j||8.4z(g,c,e))},8),l.2E=f.2E},8))}2x 8.4z(g,c,e)},4z:z(a,b,f){L g=c(a),g=e(a,g,b);d.3w(g.M,g.N,{2D:z(){d.1e.1G(a),f&&f()}})},7G:e,7F:c}}(),b.1j(!0,1s,z(){P{X:z(a,c,e){L f=c||{},g=e;c&&"2z"==b.T(c)&&(g=c,f=B.2m({}));L h=[];3f(b.T(a)){1L"2o":1L"40":c=34 A(a,f);W(c.2X){W(a&&1==a.4Q){L c=b(\'.1E[14-1E-2X="\'+b(a).14("1E-2X")+\'"]\'),i={};c.6c("[14-1E-2X-K]").1A(z(a,c){b.1j(i,6f("({"+(b(c).13("14-1E-2X-K")||"")+"})"))}),c.1A(z(c,d){!g&&d==a&&(g=c+1),h.2V(34 A(d,b.1j({},i,f)))})}}2x i={},a&&1==a.4Q&&b(a).20("[14-1E-2X-K]")&&(b.1j(i,6f("({"+(b(a).13("14-1E-2X-K")||"")+"})")),c=34 A(a,b.1j({},i,f))),h.2V(c);1Y;1L"cb":b.1A(a,z(a,b){L c=34 A(b,f);h.2V(c)})}W(!g||1>g)g=1;g>h.1h&&(g=h.1h),d.7T(h,g,{65:!0}),d.X(z(){d.2U(g)})},R:z(){P d.R(),8},1V:z(a){P d.1V(a),8},1f:z(){P d.1f(),8},2u:z(){P d.2u(),8},5Y:z(a){P d.5Y(a),8}}}()),i.1s=1s,b(1d).6Z(z(){1s.2c()})})(24,1m)',62,756,'||||||||this|||||||||||||||||||||||||||function|||||||||||options|var|width|height||return|element|hide|css|type|view|proxy|if|show|div|append||addClass|dimensions|attr|data|Math||position||shadow|States|top|left|document|content|stop|set|length|url|extend|radius|border|window|get|null|opacity|bubble|for|Lightview|controls|_m|find|effects|queue|IE|px|each|skin|titleCaption|views|lightview|class|html|image|parseInt|caption|next|case|ajax|background|visible|_dimensions|Timeouts|color|spinner|slideshow|previous|play|clone|bind|break|size|is|canvas|Top|items|jQuery||createElement||click|105|remove|lineTo|init||slider|100|padding|side|title|clear|outer|ceil|create|cache|string|arc|setOptions|lv_fix_png|removeClass|add|refresh|split|indexOf|else|overlay|number|round|max|fadeTo|complete|src|support|blur|viewport|spacing|close|Relative|spinnerWrapper|auto|onload|slider_slide|in|resize|getLayout|update|116|setPosition|push|preloading_images|group|enabled|Slider|lv_icon|children||body|new|charAt|scrollTop||sideButtonsUnderneath||lv_side_buttons_underneath|duration|count|pos|playing|switch|Dimensions|180|tag|quicktime|target|try|catch|MobileSafari|scripts|text|hex2fill|draw|queues|canvasShadow|111|101|resizeTo|before|visibility|inlineContent|inlineMarker|fit|slider_slideshow|page|lv_slider_number|inline|stopPropagation|preventDefault|call|getContext|Skins|scrollLeft|build|absolute|vars|lv_window|canvasBubble|lv_side_button|innerPreviousNextOverlays|lv_button|startObserving|delegate|114|margin|updateQueue|getSurroundingIndexes|object|resized|slider_numbers|itemCount|lv_icon_disabled||||flash|iframe|replace|required|available|Spinners|plugins|style|G_vmlCanvasManager|defaultSkin|sides|fillStyle|innerHeight|fadeOut|setSkin|lv_side|lv_side_left|lv_side_right|lv_inner_previous_next_overlays|lv_button_inner_previous_overlay|lv_button_inner_next_overlay|110|115|inner|lv_content_wrapper|overlapping|right|_update|delete|extension|keyCode|preloaded|slider_previous|slider_next|nr_width|scrollToPage|middle_slideshow|param|toLowerCase|substr|documentElement|mousewheel|easing|easeInOutQuart|nodeType|parentNode|parseFloat|WebKit|navigator|name|center|substring|fill|x1||y1|x2|y2|innerWidth||offset|scroll||setExpression|setOpacity|durations|150|buttonTopClose|ctxBubble|first|108|112|layout|place|animate|floor|controls_type_changed|mayPrevious|mayNext|value|close_button|stopQueues|wrapperClass|params|outerWidth|track|loading|pageCount|PI|inArray|img|test|match|originalEvent|map|select|isElement|Opera|opera|Chrome|swfobject|check|join|QuickTime|slide|delay|000|drawRoundedRectangle|moveTo|closePath|createFillStyle|id|showhide|setVars|setDefaultSkin|lv_skin|lv_content|ctxShadow|104|118|_drawBackgroundPath|initialDimensionsOnly|_reset|preload|middle|cleanContent|setTitleCaption|inherit|filter|scale|_states|eval|min|fetchOptions|getKeyByKeyCode|Image|relative|elements|lv_slider_icon|setActive|lv_slider_slideshow_disabled|lv_slider_number_last|refreshButtonStates|lv_slider_number_empty|middle_previous|lv_top_button|text_previous|middle_next|text_next|container|String|apply|base|constructor|initialize|arguments|domain|wheelDelta|120|detail|Array|prototype|_each|any|pluck|member|isAttached|RegExp|version|AppleWebKit|Gecko|SWFObject|pow|Za|notified|alert|requires|ready|ShockwaveFlash|toUpperCase|prefix|ms|createEvent|boxShadow|borderRadius|boolean|red|green|blue|undefined|fff|expand|beginPath|fillRect|Gradient|addColorStops|dPA|prepend|className|1e3|lv_shadow|close_lightview|applyFixes|stopObserving|lv_side_button_|lv_side_button_out|scrolling|resizing|109|107|117|103|undelegate|clearRect|_drawBorderPath|_drawShadow|firstChild|lv_blank_background|25000px|getMeasureElementDimensions|getFittedDimensions|controls_from_spacing|toSpacing|sDiff|controls_from_padding|toPadding|pDiff|step|removeAttr|getPlacement|lv|fx|placement|load|onHide|setInitialDimensions|onShow|preloadSurroundingImages|continuous|hideOverlapping|embed|wmode|transparent|restoreOverlapping|restoreOverlappingWithinContent|_show|adjustToWindow|_hide|disable|createSpinner|restoreInlineContent|lv_restore_inline_display|display|lv_has_caption|lv_has_title|lv_content_|121|1800|errors|pluginspage|pluginspages|scaleWithin|controller|SetControllerVisible|dataType|afterUpdate|enable|measureElement|timeout_|clearTimeout|href|isExternal|getBoundsScale|space|esc|onkeydown|onkeyup|inject|populate|lv_slider_next|Page|nr_margin_last|grep|lv_slider_number_active|lv_slider_next_disabled|lv_slider_previous_disabled|lv_slider_slideshow_playing|span|setText|lv_controls_top_with_slideshow|lv_top_slideshow_playing|fromCharCode|area|basefont|col|frame|hr|input|link|isindex|meta|range||spacer|wbr|Object|extensions||DOMMouseScroll||||Event|trigger|isPropagationStopped|isDefaultPrevented|slice|throw|without|exec|attachEvent|MSIE|KHTML|rv|Apple|Mobile|Safari|userAgent|lv_identity_|getElementById|fn|jquery|ua|0_b1|Version|z_|z0|ActiveXObject|Shockwave|Flash|void|Webkit|Moz|Khtml|TouchEvent|ExplorerCanvas|excanvas|js|init_|touch|transitions|WebKitTransitionEvent|TransitionEvent|OTransitionEvent|expressions|prefixed|reset|initialTypeOptions|0123456789abcdef|hex2rgb|rgba|getSaturatedBW|255|360|hue|saturation|brightness|initElement|mergedCorner|toFixed|isArray|createLinearGradient|05|addColorStop|inside|Infinity|lv_overlay|533|dark|lv_window_|lv_bubble|lv_side_button_previous|lv_side_button_next|lv_title_caption|titleCaptionSlide|lv_title_caption_slide|lv_title|lv_caption|lv_button_top_close|lv_spinner_wrapper|none|about|blank|fixed|mouseover|touchmove|mouseout|200|102|106|119|lv_close|15000px|lvresizecount|initialDimensions|hidden|closest|getDimensions|tagName|Stop|innerHTML|default|122|1e5|00006000600660060060666060060606666060606|00006000606000060060060060060606000060606|00006000606066066660060060060606666060606|00006000606006060060060060060606000060606|000066606006600600600600066006066660066600000|NaN|900|missing_plugin|drawImage|progid|DXImageTransform|Microsoft|AlphaImageLoader|sizingMethod|interpolation|mode|bicubic|alt|embedSWF|flashvars|merge|codebase|http|www|apple|com|qtactivex|qtplugin|cab|classid|clsid|02BF25D5|8C17|4B23|BC80|D3488ABDDC6B|video|frameBorder|hspace||success|responseText|outerHeight|270|cos|setTimeout|isMedia|scaleToBounds|keydown|keyup|keyboard|lifetime|3e5|callback|currentTarget|lv_controls_relative|lv_slider|lv_slider_previous|lv_slider_numbers|lv_slider_slide|lv_slider_slideshow|slider_|hasClass|makeArray|999|linear|previousPage|nextPage|last|lv_controls_top|lv_top_middle|lv_top_previous|lv_top_slideshow|lv_top_next|lv_controls_top_close|lv_controls_top_close_button|Prev|Next|lv_controls_top_skin_|lv_controls_top_close_skin_|bottom|overflow|lv_update_queue|8e3|750|array'.split('|'),0,{}));






/*  Spinners 2.0_b1
 *  (c) 2010-2011 Nick Stakenburg - http://www.nickstakenburg.com
 *
 *  Spinners is freely distributable under the terms of an MIT-style license.
 *
 *  Requires ExplorerCanvas to work in Internet Explorer:
 *  http://code.google.com/p/explorercanvas
 *
 *  GitHub: https://github.com/staaky/spinners
 */

(function(){function c(a,b){a&&(this.element=a,i.remove(a),i.removeDetached(),this.options=f.extend({radii:[5,10],color:"#000",dashWidth:1.8,dashes:12,opacity:1,padding:3,speed:.7,build:!0},b||{}),this._position=0,this._state="stopped",this.build(),i.add(this))}function b(a){this.element=a}function a(a){return a*Math.PI/180}var d={Version:"2.0_b1"},e=Array.prototype.slice,f={extend:function(a,b){for(var c in b)a[c]=b[c];return a},"break":{},_each:function(a,b){for(var c=0,d=a.length;c<d;c++)b(a[c])},each:function(a,b,c){var d=0;try{this._each(a,function(a){b.call(c,a,d++)})}catch(e){if(e!=f["break"])throw e}},bind:function(a,b){var c=e.call(arguments,2);return function(){return a.apply(b,c.concat(e.call(arguments)))}},scroll:function(a,b){if(!b)return a;var c=a.slice(0,b);return a.slice(b,a.length).concat(c)},any:function(a,b,c){var d=!1;f.each(a||[],function(a,e){if(d|=b.call(c,a,e))return f["break"]});return!!d},member:function(a,b){var c=!1;f.any(a||[],function(a){if(c=a===b)return!0});return c},select:function(a,b,c){var d=[];f.each(a||[],function(a,e){b.call(c,a,e)&&(d[d.length]=a)});return d},without:function(a){var b=e.call(arguments,1);return f.select(a,function(a){return!f.member(b,a)})}},g={drawRoundedRectangle:function(b,c){var d=f.extend({top:0,left:0,width:0,height:0,radius:0},c||{}),e=d.left,g=d.top,h=d.width,i=d.height,d=d.radius;b.beginPath(),b.moveTo(e+d,g),b.arc(e+h-d,g+d,d,a(-90),a(0),!1),b.arc(e+h-d,g+i-d,d,a(0),a(90),!1),b.arc(e+d,g+i-d,d,a(90),a(180),!1),b.arc(e+d,g+d,d,a(-180),a(-90),!1),b.closePath(),b.fill()}},h=function(){function a(a){var c=[];a.indexOf("#")==0&&(a=a.substring(1)),a=a.toLowerCase();if(a.replace(b,"")!="")return null;a.length==3?(c[0]=a.charAt(0)+a.charAt(0),c[1]=a.charAt(1)+a.charAt(1),c[2]=a.charAt(2)+a.charAt(2)):(c[0]=a.substring(0,2),c[1]=a.substring(2,4),c[2]=a.substring(4));for(a=0;a<c.length;a++)c[a]=parseInt(c[a],16);c.red=c[0],c.green=c[1],c.blue=c[2];return c}var b=RegExp("[0123456789abcdef]","g"),c=function(){function a(a,b,c){a=a.toString(c||10);return Array(b-a.length).join("0")+a}return function(b,c,d){return"#"+a(b,2,16)+a(c,2,16)+a(d,2,16)}}();return{hex2rgb:a,hex2fill:function(b,c){typeof c=="undefined"&&(c=1);var d=c,e=a(b);e[3]=d,e.opacity=d;return"rgba("+e.join()+")"},rgb2hex:c}}();f.extend(d,{enabled:!1,support:{canvas:function(){var a=document.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")}()},dom:function(){var a,b;a=b=function(){throw"Using Spinners with a CSS Selector requires a selector engine, include one of: Sizzle (jQuery 1.4+/Prototype 1.7+), NWMatcher or Slick (MooTools 1.3+)."},window.Sizzle?(a=Sizzle,b=Sizzle.matches):window.jQuery?(a=jQuery.find,b=function(a,b){return jQuery(a).is(b)}):window.NWMatcher&&NW.Dom?(a=NW.Dom.select,b=NW.Dom.match):window.Prototype&&Prototype.Selector?(a=Prototype.Selector.select,b=Prototype.Selector.match):window.Slick&&(a=function(a,b){return Slick.search(b||document,a)},b=Slick.match);return{select:a,match:b}}(),init:function(){if(!this.support.canvas&&!window.G_vmlCanvasManager)if(window.attachEvent&&navigator.userAgent.indexOf("Opera")===-1)alert("Spinners requires ExplorerCanvas (excanvas.js)");else return;window.G_vmlCanvasManager&&window.G_vmlCanvasManager.init_(document),this.enabled=!0},create:function(a,c){b.create(a,c);return this.get(a)},get:function(a){return new b(a)},play:function(a){this.get(a).play();return this},pause:function(a){this.get(a).pause();return this},toggle:function(a){this.get(a).toggle();return this},stop:function(a){this.get(a).stop();return this},remove:function(a){this.get(a).remove();return this},removeDetached:function(){i.removeDetached();return this},getDimensions:function(a){a=i.get(a)[0].getLayout().workspace.radius*2;return{width:a,height:a}}});var i={spinners:[],get:function(a){if(a){var b=[];f.each(this.spinners,function(c){c&&(a.nodeType==1?c.element==a:d.dom.match(c.element,a))&&b.push(c)});return b}},add:function(a){this.spinners.push(a)},remove:function(a){var b=[];f.each(this.spinners,function(c){(a.nodeType==1?c.element==a:d.dom.match(c.element,a))&&b.push(c.element)}),f.each(b,f.bind(function(a){this.removeByElement(a)},this))},removeByElement:function(a){if(a=this.get(a)[0])a.remove(),this.spinners=f.without(this.spinners,a)},removeDetached:function(){return function(){f.each(this.spinners,function(a){a&&!a.isAttached()&&this.remove(a.element)},this)}}()};f.extend(b,{create:function(a,b){if(a){var e=b||{},g=[];a.nodeType==1?g.push(new c(a,e)):f.each(d.dom.select(a)||[],function(a){g.push(new c(a,e))});return g}}}),f.extend(b.prototype,{items:function(){return i.get(this.element)},play:function(){f.each(this.items(),function(a){a.play()});return this},stop:function(){f.each(this.items(),function(a){a.stop()});return this},pause:function(){f.each(this.items(),function(a){a.pause()});return this},toggle:function(){f.each(this.items(),function(a){a.toggle()});return this},remove:function(){i.remove(this.element);return this}}),f.extend(c.prototype,function(){function b(){var a=this.options.speed*1e3/this.options.dashes;this.nextPosition(),this._playTimer=window.setTimeout(f.bind(b,this),a)}return{remove:function(){this.canvas&&(this.stop(),this.canvas.parentNode.removeChild(this.canvas),this.ctx=this.canvas=null)},build:function(){this.remove();var a=this.getLayout().workspace.radius,b=a*2;this.canvas=document.createElement("canvas"),this.canvas.style.zoom=1,this.canvas.height=b,this.canvas.width=b,document.body.appendChild(this.canvas),window.G_vmlCanvasManager&&G_vmlCanvasManager.initElement(this.canvas),this.ctx=this.canvas.getContext("2d"),this.ctx.globalAlpha=this.options.opacity,this.element.appendChild(this.canvas),this.ctx.translate(a,a),this.drawPosition(0);return this},getLayout:function(){if(this._layout)return this._layout;var a=this.options,b=a.dashes,c=a.radii,d=a.dashWidth,e=Math.min(c[0],c[1]),c=Math.max(c[0],c[1]),f=Math.ceil(Math.max(Math.max(d,c),Math.sqrt(c*c+d/2*(d/2))));f+=a.padding;for(var a=f,g=1/b,h=[],i=0;i<b;i++)h.push((i+1)*g);return this._layout=b={workspace:{radius:a,opacities:h},dash:{position:{top:f-c,left:f-d/2},dimensions:{width:d,height:c-e}}}},isAttached:function(){if(!this.element)return!1;var a;for(a=this.element;a&&a.parentNode;)a=a.parentNode;return!!a&&!!a.body},_nextPosition:b,nextPosition:function(){this._position==this.options.dashes-1&&(this._position=-1),this._position++,this.drawPosition(this._position)},drawPosition:function(b){var c=this.getLayout().workspace,d=c.radius*2,e=-1*c.radius,g=this.options.dashes;this.ctx.clearRect(e,e,d,d),d=a(360/g),b=f.scroll(c.opacities,b*-1);for(c=0;c<g;c++)this.drawDash(b[c],this.options.color),this.ctx.rotate(d)},drawDash:function(a,b){this.ctx.fillStyle=h.hex2fill(b,a);var c=this.getLayout(),d=c.workspace.radius,e=c.dash.position,c=c.dash.dimensions;g.drawRoundedRectangle(this.ctx,{top:e.top-d,left:e.left-d,width:c.width,height:c.height,radius:Math.min(c.height,c.width)/2})},play:function(){if(this._state!="playing"){this._state="playing";var a=this.options.speed*1e3/this.options.dashes;this._playTimer=window.setTimeout(f.bind(b,this),a);return this}},pause:function(){if(this._state!="paused")return this._pause(),this._state="paused",this},_pause:function(){this._playTimer&&(window.clearTimeout(this._playTimer),this._playTimer=null)},stop:function(){if(this._state!="stopped")return this._pause(),this._position=0,this.drawPosition(0),this._state="stopped",this},toggle:function(){this[this._state=="playing"?"pause":"play"]();return this}}}()),window.Spinners=d,d.init(),d.enabled||f.each("create get remove play stop pause toggle".split(" "),function(a){d[a]=function(){return this}})})();









jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});


/* Copyright (c) 2011 detelu (http://www.detelu.com)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * jquery.fademover.js
 * Version: 2011-07-11
*/
(function($){
	$.fn.fadeMover = function(options) {
        var defaults = {
            'outSpeed': 1000,
            'inSpeed': 1000,
			'effectType': 1, // fadeIn only 2, fadeOut only 3
			'nofadeOut' : 'nonmover' //fadeOut no thx (class name)
        };
        var setting = $.extend(defaults, options);
        this.each(function() {
			var pel = this;
			if(setting.effectType == 1 || setting.effectType == 2) {
				$(pel).css("opacity", 0).animate({opacity: 1}, setting.inSpeed);
			}
			if(setting.effectType == 1 || setting.effectType == 3) {
				$('a').click(function(event) {
					if(!$(this).attr("class")){
						var moveUrl = $(this).attr("href");
						event.preventDefault();
						$(pel).animate({"opacity": 0}, setting.outSpeed, function(){
							location.href = moveUrl;
						});
					}
				});
			}
		});
		return this;
	}
	window.onunload = function () {};
})(jQuery);


/**
 * slider
 *
 * multirole slider plug-in
 *
 * @category    jQuery plugin
 * @license     http://www.opensource.org/licenses/mit-license.html  MIT License
 * @copyright   2010 RaNa design associates, inc.
 * @author      keisuke YAMAMOTO <keisukey@ranadesign.com>
 * @link        http://www.ranadesign.com/
 * @version     3.1
 * @since       Aug 30, 2010
 * @update      Feb 25, 2011
 */

(function($){

    /* for iPhone & iPad ============================= */
    var iphone = /(iPhone)|(iPad)/i.test(navigator.userAgent);


    /* slider ==================================== */
    $.fn.slider = function(param){
        // 初期設定 ------------------------- //

        // 初期値
        var def = {
            loop: true,         // ループさせるかどうか
            time: 10,           // 1px動かすのにかける時間
            speed: 1,           // 早送りや遅送りの比率指定
            direction: "left",  // 送り方向
            reverse: true,      // コントロール方向を逆向きにするかどうか
            auto: true,         // trueで「自動実行」falseで「手動(コントロール)実行｣
            easing: "linear",   // イージングの初期値
            guideSelector: ".slideGuide",   // ガイド用クラス名
            cellSelector: ".slideCell", // セル用クラス名
            ctrlSelector: ".slideCtrl", // コントローラー用クラス名
            ctrlClick: false,   // コントローラ操作用イベントハンドラ(click)
            ctrlHover: true,    // コントローラ操作用イベントハンドラ(hover)
            draggable: false,   // スライドをドラッグで操作するかどうか
            dragCursorOpen: "open.cur", // ドラッグ可能時のカーソルアイコン
            dragCursorClose: "close.cur", // ドラッグ中のカーソルアイコン
            shuttle: false,     // 往復スライドにするかどうか
            once: false,        // 動きを1コマずつ止めるかどうか
            restart: true,      // リスタートするかどうか(clickイベント用)
            restartTime: 3000,  // リスタートまでの待ち時間
            pause: true,        // マウスオーバー時に一時停止するかどうか
            build: true,        // 暗黙のオプション（幅の初期設定）falseで幅設定をしない
            sp: 1               // 基本速度
        };
        def.guide = $(this).find(def.guideSelector);

        return this.each(function(){

            // プライベート用のプロパティの上書き禁止
            if(param){
                delete param.guide;
                delete param.sp;
            }
            
            // パラメータ受け渡し
            $.extend(def, param);

            // draggableかshuttleがtrueの時は関係するオプションをオフにする
            if(def.draggable || def.shuttle) def.loop = def.auto = def.pause = false;

            // 内部処理用プロパティ設定
            def.d = def.direction; // 方向の初期設定を記憶
            def.cell = def.cellSelector;
            def.ctrl = def.ctrlSelector;
            def.curOpen = "url(" + def.dragCursorOpen + "), default";
            def.curClose = "url(" + def.dragCursorClose + "), default";
            def.mousedownX = 0;
            
            // パラメータやセレクターが不正または無効な場合は次へ
            if(!def.guide || def.loop && !def.guide.children(def.cell).length || !def.loop && def.guide.hasClass(def.guideSelector)) return true;
            
            // 幅の初期設定
            if(def.build){
                $(window).resize(init(def)).triggerHandler("resize");
                // init(def);
                // $(window).resize(init(def));
            }
            
            // frame枠の取得
            def.frameBorder = def.guide.offset().left - def.guide.parent().offset().left;
            // cellマージンの取得
            def.margin = def.guide.find(def.cell).eq(0).outerWidth({ margin: true }) - def.guide.find(def.cell).eq(0).outerWidth();

            // iPhone, iPad用
            def.handlerMousedown = iphone ? "touchstart" : "mousedown";
            def.handlerMousemove = iphone ? "touchmove" : "mousemove";
            def.handlerMouseup = iphone ? "touchend" : "mouseup";



            // 実行設定 ------------------------------- //

            // 自動起動
            if(def.auto) slider(def);


            // オプション設定 ------------------------- //

            // マウスオーバーで一時停止する
            if(def.pause){
                def.guide.hover(
                    function(){ $(this).find(def.cell).stop(true); },
                    function(){ slider(def); }
                );
            }
            
            
            // コントローラ設定 ------------------------- //

            // ホバーイベント
            if(def.ctrlHover){
                // for iPhone & iPad
                if (iphone){
                    def.guide.siblings(def.ctrl)
                        .bind(def.handlerMousedown, function(event){
                            event.preventDefault();
                            def.guide.find(def.cell).stop(true);
                            def.sp = def.speed;
                            def.direction = $(this).hasClass("right") ? "left" : "right";
                            slider(def);
                        }).bind(def.handlerMouseup, function(){
                            def.guide.find(def.cell).stop(true);
                            def.sp = 1;
                            def.direction = def.d;
                            if(def.auto) slider(def);
                        });
                } else {
                    // 早送り・巻き戻し
                    def.guide.siblings(def.ctrl).hover(
                        function(){
                            def.guide.stop(true).find(def.cell).stop(true);
                            def.sp = def.speed;
                            def.direction = $(this).hasClass("right") ? def.reverse ? "left" : "right" : def.reverse ? "right" : "left";
                            slider(def);
                        },
                        function(){
                            def.guide.stop(true).find(def.cell).stop(true);
                            def.sp = 1;
                            def.direction = def.d;
                            if(def.auto) slider(def);
                        }
                    );
                }
            }
            
            // クリックイベント
            if(def.ctrlClick){
                def.guide.siblings(def.ctrl).bind(def.handlerMousedown, function(event){
                    // アニメーションを省略
                    def.guide.find(def.cell).stop(true, true);
                    // 初期動作の中止
                    event.preventDefault();
                    // 方向設定
                        def.direction = $(this).hasClass("right") ? def.reverse ? "left" : "right" : def.reverse ? "right" : "left";
                    // 1クリックで1コマだけ動くようにする
                    def.once = true;
                    slider(def);
                    if (def.restart){
                        setTimeout(function(){
                            def.once = false;
                            slider(def);
                        }, def.restartTime);
                    }
                });
            }

            // ドラッグイベント
            if(def.draggable){
                def.guide.bind(def.handlerMousedown, function(event){
                    event.preventDefault();
                    def.mousedownX = (iphone ? event.originalEvent.touches[0].pageX : event.pageX) - def.guide.position().left;
                    $(this).stop(true).css("cursor", def.curClose);
                    $(document).bind(def.handlerMousemove, dragmove);
                });
                $(document).bind(def.handlerMouseup, function(){
                    def.guide.css("cursor", def.curOpen);
                    $(document).unbind(def.handlerMousemove, dragmove);
                });
            }
            // dragmove設定
            function dragmove(event){
                var frameEnd = def.guide.parent().width() + def.guide.parent().position().left;
                var guideEnd = def.guide.width() + def.guide.position().left;
                var stuff = 100;

                def.guide.css("position", "absolute").css("left", (iphone ? event.originalEvent.touches[0].pageX : event.pageX) - def.mousedownX);

                if(frameEnd - guideEnd > stuff || def.guide.offset().left - def.guide.parent().offset().left > stuff){
                    $(document).unbind(def.handlerMousemove, dragmove).one(def.handlerMouseup, function(){
                        def.guide.animate({
                            left: frameEnd - guideEnd > stuff ? "+=" + (frameEnd - guideEnd) : 0
                        }, {
                            duration: 500,
                            easing: "easeOutQuart"
                        });
                    });
                }
            }

            /* slider 定義 ========================== */
            // ループする場合は「先頭セルを左に移動させたあと、最終セルの後ろに移動させる」を繰り返す。
            function slider(par){
                var cell = par.guide.find(def.cell);
                
                if(par.loop){
                    cell.first = cell.eq(0);
                    cell.last = cell.eq(cell.length - 1);

                    if(par.direction.toLowerCase() === "left"){
                        cell.first.animate({
                            marginLeft: -1 * cell.first.width() - par.margin
                        }, {
                            // 途中で止まっていた場合は残りを調整してanimateし、次以降は再ループさせる。
                            duration: ~~Math.abs(par.time / par.sp * cell.first.width() * 
                                (cell.first.offset().left - par.guide.offset().left < 0 ? 
                                    (cell.first.width() + cell.first.offset().left - par.guide.offset().left) / cell.first.width() : 1
                                )
                            ),
                            easing: par.easing,
                            complete: function(){
                                if(def.loop){
                                    cell.first.appendTo(par.guide).css("marginLeft", 0);
                                    if(!par.once) slider(par);
                                }
                            }
                        });
                    }else if(par.direction.toLowerCase() === "right"){
                        if(cell.first.offset().left - par.guide.offset().left < 0){
                            cell.first.animate({
                                marginLeft: 0
                            },{
                                duration: ~~Math.abs(par.time / par.sp * cell.first.width() * 
                                    (cell.first.offset().left - par.guide.offset().left < 0 ? 
                                        (par.guide.offset().left - cell.first.offset().left) / cell.first.width() : 1
                                    )
                                ),
                                easing: par.easing,
                                complete: function(){ if(!par.once) slider(par); }
                            });
                        }else{
                            cell.last.prependTo(par.guide).css("marginLeft", -1 * cell.last.width() - par.margin);
                            slider(par);
                        }
                    }else{ return false; }
                
                }else{ // ループしない時
                    // 方向の取得
                    var d = par.direction.toLowerCase() === "left" ? -1 : 1;
                    // コントローラの表示
                    var ctrl = par.guide.siblings(par.ctrl);
                    ctrl.show();
                    // スライド設定
                    par.guide.animate({
                        marginLeft: par.guide.width() * d
                    }, {
                        duration: par.time * par.guide.width() / par.sp,
                        easing: par.easing
                    });
                    // 停止設定
                    var gl = par.guide.offset().left;
                    var fl = par.guide.parent().offset().left;
                    var timerId = setInterval(function(){
                        if(d > 0 && par.guide.offset().left > par.guide.parent().offset().left + par.frameBorder){
                            clearInterval(timerId);
                            par.guide.stop(true);
                            ctrl.filter(".left").hide();
                        }
                        if(d < 0 && par.guide.parent().width() + par.guide.parent().offset().left + par.frameBorder + par.margin > par.guide.width() + par.guide.offset().left){
                            clearInterval(timerId);
                            par.guide.stop(true);
                            ctrl.filter(".right").hide();
                        }
                    }, 1);
                }
            }
            
            /* init 定義 ============================= */
            // スライド枠の幅設定
            function init(def){
                var cell = def.guide.find(def.cell);

                // slideCellの数調整。足りない時にコピーして増やす。
                var max = 0;
                var size = 0;
                // セルの合計幅と最大幅を取得する。
                cell.each(function(){
                    max = max > $(this).outerWidth() ? max : $(this).outerWidth();
                    size += $(this).outerWidth({ margin: true });
                });
                // ループしない時はセルを増やさない。ガイド幅をセルの合計幅に合わせて終了。
                if(!def.loop){
                    def.guide.width(size);
                    return false;
                }
                // フレーム枠を超えるまでセルを増やす。
                while(size < def.guide.parent().width() + max){
                    cell.clone(true).appendTo(def.guide);
                    size += cell.outerWidth();
                }
                // slideGuideのサイズを合計幅＋最大幅にする。
                def.guide.width(size + max);
            }

        });
    }; // slider end


    /* プラグイン外の追加設定 ==================================== */
    $(function(){

        // slideFrameのoverflowをhiddenに
        $(".slideFrame").css("overflow", "hidden");
        
        // slideCtrl設定
        $(".slideCtrl").show().hover(
                function(){ $(this).css("opacity", 0.5); },
                function(){ $(this).css("opacity", 0.8); }
            );

        // ホバーでセルをグレースケール化
        $(".slideCell").hover(
            function(){ $(this).css("opacity", 1); },
            function(){ $(this).css("opacity", 1); }
        );
            
    });
    
}(jQuery));
