(function(b){var a=b.fn.remove;b.fn.remove=function(){b("*",this).add(this).triggerHandler("remove");return a.apply(this,arguments)};function c(h){function e(j){var i=j.style;return(i.display!="none"&&i.visibility!="hidden")}var g=e(h);(g&&b.each(b.dir(h,"parentNode"),function(){return(g=e(this))}));return g}b.extend(b.expr[":"],{data:function(g,e,h){return b.data(g,h[3])},tabbable:function(h,g,i){var e=h.nodeName.toLowerCase();return(h.tabIndex>=0&&(("a"==e&&h.href)||(/input|select|textarea|button/.test(e)&&"hidden"!=h.type&&!h.disabled))&&c(h))}});b.keyCode={BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38};function d(g,k,e,h){function i(l){var m=b[g][k][l]||[];return(typeof m=="string"?m.split(/,?\s+/):m)}var j=i("getter");if(h.length==1&&typeof h[0]=="string"){j=j.concat(i("getterSetter"))}return(b.inArray(e,j)!=-1)}b.widget=function(h,g){var e=h.split(".")[0];h=h.split(".")[1];b.fn[h]=function(i){var k=(typeof i=="string"),j=Array.prototype.slice.call(arguments,1);if(k&&i.substring(0,1)=="_"){return this}if(k&&d(e,h,i,j)){var l=b.data(this[0],h);return(l?l[i].apply(l,j):undefined)}return this.each(function(){var m=b.data(this,h);(!m&&!k&&b.data(this,h,new b[e][h](this,i)));(m&&k&&b.isFunction(m[i])&&m[i].apply(m,j))})};b[e][h]=function(j,i){var k=this;this.widgetName=h;this.widgetEventPrefix=b[e][h].eventPrefix||h;this.widgetBaseClass=e+"-"+h;this.options=b.extend({},b.widget.defaults,b[e][h].defaults,b.metadata&&b.metadata.get(j)[h],i);this.element=b(j).bind("setData."+h,function(n,m,l){return k._setData(m,l)}).bind("getData."+h,function(l,m){return k._getData(m)}).bind("remove",function(){return k.destroy()});this._init()};b[e][h].prototype=b.extend({},b.widget.prototype,g);b[e][h].getterSetter="option"};b.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName)},option:function(g,e){var h=g,i=this;if(typeof g=="string"){if(e===undefined){return this._getData(g)}h={};h[g]=e}b.each(h,function(k,j){i._setData(k,j)})},_getData:function(e){return this.options[e]},_setData:function(g,e){this.options[g]=e;if(g=="disabled"){this.element[e?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(h,e,g){var i=(h==this.widgetEventPrefix?h:this.widgetEventPrefix+h);e=e||b.event.fix({type:i,target:this.element[0]});return this.element.triggerHandler(i,[e,g],this.options[h])}};b.widget.defaults={disabled:false};b.ui={plugin:{add:function(i,j,e){var g=b.ui[i].prototype;for(var h in e){g.plugins[h]=g.plugins[h]||[];g.plugins[h].push([j,e[h]])}},call:function(j,h,i){var e=j.plugins[h];if(!e){return}for(var g=0;g<e.length;g++){if(j.options[e[g][0]]){e[g][1].apply(j.element,i)}}}},cssCache:{},css:function(h){if(b.ui.cssCache[h]){return b.ui.cssCache[h]}var g=b('<div class="ui-gen">').addClass(h).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");b.ui.cssCache[h]=!!((!(/auto|default/).test(g.css("cursor"))||(/^[1-9]/).test(g.css("height"))||(/^[1-9]/).test(g.css("width"))||!(/none/).test(g.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(g.css("backgroundColor"))));try{b("body").get(0).removeChild(g.get(0))}catch(e){}return b.ui.cssCache[h]},disableSelection:function(e){return b(e).attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},enableSelection:function(e){return b(e).attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},hasScroll:function(e,i){if(b(e).css("overflow")=="hidden"){return false}var g=(i&&i=="left")?"scrollLeft":"scrollTop",h=false;if(e[g]>0){return true}e[g]=1;h=(e[g]>0);e[g]=0;return h}};b.ui.mouse={_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(g){return e._mouseDown(g)});if(b.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(b.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(g){(this._mouseStarted&&this._mouseUp(g));this._mouseDownEvent=g;var i=this,e=(g.which==1),h=(typeof this.options.cancel=="string"?b(g.target).parents().add(g.target).filter(this.options.cancel).length:false);if(!e||h||!this._mouseCapture(g)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(g)&&this._mouseDelayMet(g)){this._mouseStarted=(this._mouseStart(g)!==false);if(!this._mouseStarted){g.preventDefault();return true}}this._mouseMoveDelegate=function(j){return i._mouseMove(j)};this._mouseUpDelegate=function(j){return i._mouseUp(j)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},_mouseMove:function(e){if(b.browser.msie&&!e.button){return this._mouseUp(e)}if(this._mouseStarted){this._mouseDrag(e);return false}if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,e)!==false);(this._mouseStarted?this._mouseDrag(e):this._mouseUp(e))}return !this._mouseStarted},_mouseUp:function(e){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._mouseStop(e)}return false},_mouseDistanceMet:function(e){return(Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance)},_mouseDelayMet:function(e){return this.mouseDelayMet},_mouseStart:function(e){},_mouseDrag:function(e){},_mouseStop:function(e){},_mouseCapture:function(e){return true}};b.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(c){c.effects=c.effects||{};c.extend(c.effects,{save:function(g,e){for(var h=0;h<e.length;h++){if(e[h]!==null){c.data(g[0],"ec.storage."+e[h],g[0].style[e[h]])}}},restore:function(g,e){for(var h=0;h<e.length;h++){if(e[h]!==null){g.css(e[h],c.data(g[0],"ec.storage."+e[h]))}}},setMode:function(g,e){if(e=="toggle"){e=g.is(":hidden")?"show":"hide"}return e},getBaseline:function(g,h){var e,i;switch(g[0]){case"top":e=0;break;case"middle":e=0.5;break;case"bottom":e=1;break;default:e=g[0]/h.height}switch(g[1]){case"left":i=0;break;case"center":i=0.5;break;case"right":i=1;break;default:i=g[1]/h.width}return{x:i,y:e}},createWrapper:function(i){if(i.parent().attr("id")=="fxWrapper"){return i}var j={width:i.outerWidth({margin:true}),height:i.outerHeight({margin:true}),"float":i.css("float")};i.wrap('<div id="fxWrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var e=i.parent();if(i.css("position")=="static"){e.css({position:"relative"});i.css({position:"relative"})}else{var g=i.css("top");if(isNaN(parseInt(g))){g="auto"}var h=i.css("left");if(isNaN(parseInt(h))){h="auto"}e.css({position:i.css("position"),top:g,left:h,zIndex:i.css("z-index")}).show();i.css({position:"relative",top:0,left:0})}e.css(j);return e},removeWrapper:function(e){if(e.parent().attr("id")=="fxWrapper"){return e.parent().replaceWith(e)}return e},setTransition:function(h,g,i,e){e=e||{};c.each(g,function(j,k){unit=h.cssUnit(k);if(unit[0]>0){e[k]=unit[0]*i+unit[1]}});return e},animateClass:function(i,e,g,h){var k=(typeof g=="function"?g:(h?h:null));var j=(typeof g=="object"?g:null);return this.each(function(){var o={};var q=c(this);var p=q.attr("style")||"";if(typeof p=="object"){p=p.cssText}if(i.toggle){q.hasClass(i.toggle)?i.remove=i.toggle:i.add=i.toggle}var m=c.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(i.add){q.addClass(i.add)}if(i.remove){q.removeClass(i.remove)}var l=c.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(i.add){q.removeClass(i.add)}if(i.remove){q.addClass(i.remove)}for(var n in l){if(typeof l[n]!="function"&&l[n]&&n.indexOf("Moz")==-1&&n.indexOf("length")==-1&&l[n]!=m[n]&&(n.match(/color/i)||(!n.match(/color/i)&&!isNaN(parseInt(l[n],10))))&&(m.position!="static"||(m.position=="static"&&!n.match(/left|top|bottom|right/)))){o[n]=l[n]}}q.animate(o,e,j,function(){if(typeof c(this).attr("style")=="object"){c(this).attr("style")["cssText"]="";c(this).attr("style")["cssText"]=p}else{c(this).attr("style",p)}if(i.add){c(this).addClass(i.add)}if(i.remove){c(this).removeClass(i.remove)}if(k){k.apply(this,arguments)}})})}});c.fn.extend({_show:c.fn.show,_hide:c.fn.hide,__toggle:c.fn.toggle,_addClass:c.fn.addClass,_removeClass:c.fn.removeClass,_toggleClass:c.fn.toggleClass,effect:function(i,e,h,g){return c.effects[i]?c.effects[i].call(this,{method:i,options:e||{},duration:h,callback:g}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._show.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="show";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))){return this._hide.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="hide";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="toggle";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},addClass:function(e,i,g,h){return i?c.effects.animateClass.apply(this,[{add:e},i,g,h]):this._addClass(e)},removeClass:function(e,i,g,h){return i?c.effects.animateClass.apply(this,[{remove:e},i,g,h]):this._removeClass(e)},toggleClass:function(e,i,g,h){return i?c.effects.animateClass.apply(this,[{toggle:e},i,g,h]):this._toggleClass(e)},morph:function(i,e,j,g,h){return c.effects.animateClass.apply(this,[{add:e,remove:i},j,g,h])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(h){var g=this.css(h),e=[];c.each(["em","px","%","pt"],function(j,i){if(g.indexOf(i)>0){e=[parseFloat(g),i]}});return e}});jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(e,g){jQuery.fx.step[g]=function(h){if(h.state==0){h.start=b(h.elem,g);h.end=a(h.end)}h.elem.style[g]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0]),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1]),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2]),255),0)].join(",")+")"}});function a(g){var e;if(g&&g.constructor==Array&&g.length==3){return g}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(g)){return d.transparent}return d[jQuery.trim(g).toLowerCase()]}function b(e,h){var g;do{g=jQuery.curCSS(e,h);if(g!=""&&g!="transparent"||jQuery.nodeName(e,"body")){break}h="backgroundColor"}while(e=e.parentNode);return a(g)}var d={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(i,h,j,e,g){return jQuery.easing[jQuery.easing.def](i,h,j,e,g)},easeInQuad:function(i,h,j,e,g){return e*(h/=g)*h+j},easeOutQuad:function(i,h,j,e,g){return -e*(h/=g)*(h-2)+j},easeInOutQuad:function(i,h,j,e,g){if((h/=g/2)<1){return e/2*h*h+j}return -e/2*((--h)*(h-2)-1)+j},easeInCubic:function(i,h,j,e,g){return e*(h/=g)*h*h+j},easeOutCubic:function(i,h,j,e,g){return e*((h=h/g-1)*h*h+1)+j},easeInOutCubic:function(i,h,j,e,g){if((h/=g/2)<1){return e/2*h*h*h+j}return e/2*((h-=2)*h*h+2)+j},easeInQuart:function(i,h,j,e,g){return e*(h/=g)*h*h*h+j},easeOutQuart:function(i,h,j,e,g){return -e*((h=h/g-1)*h*h*h-1)+j},easeInOutQuart:function(i,h,j,e,g){if((h/=g/2)<1){return e/2*h*h*h*h+j}return -e/2*((h-=2)*h*h*h-2)+j},easeInQuint:function(i,h,j,e,g){return e*(h/=g)*h*h*h*h+j},easeOutQuint:function(i,h,j,e,g){return e*((h=h/g-1)*h*h*h*h+1)+j},easeInOutQuint:function(i,h,j,e,g){if((h/=g/2)<1){return e/2*h*h*h*h*h+j}return e/2*((h-=2)*h*h*h*h+2)+j},easeInSine:function(i,h,j,e,g){return -e*Math.cos(h/g*(Math.PI/2))+e+j},easeOutSine:function(i,h,j,e,g){return e*Math.sin(h/g*(Math.PI/2))+j},easeInOutSine:function(i,h,j,e,g){return -e/2*(Math.cos(Math.PI*h/g)-1)+j},easeInExpo:function(i,h,j,e,g){return(h==0)?j:e*Math.pow(2,10*(h/g-1))+j},easeOutExpo:function(i,h,j,e,g){return(h==g)?j+e:e*(-Math.pow(2,-10*h/g)+1)+j},easeInOutExpo:function(i,h,j,e,g){if(h==0){return j}if(h==g){return j+e}if((h/=g/2)<1){return e/2*Math.pow(2,10*(h-1))+j}return e/2*(-Math.pow(2,-10*--h)+2)+j},easeInCirc:function(i,h,j,e,g){return -e*(Math.sqrt(1-(h/=g)*h)-1)+j},easeOutCirc:function(i,h,j,e,g){return e*Math.sqrt(1-(h=h/g-1)*h)+j},easeInOutCirc:function(i,h,j,e,g){if((h/=g/2)<1){return -e/2*(Math.sqrt(1-h*h)-1)+j}return e/2*(Math.sqrt(1-(h-=2)*h)+1)+j},easeInElastic:function(l,j,m,e,g){var i=1.70158;var h=0;var k=e;if(j==0){return m}if((j/=g)==1){return m+e}if(!h){h=g*0.3}if(k<Math.abs(e)){k=e;var i=h/4}else{var i=h/(2*Math.PI)*Math.asin(e/k)}return -(k*Math.pow(2,10*(j-=1))*Math.sin((j*g-i)*(2*Math.PI)/h))+m},easeOutElastic:function(l,j,m,e,g){var i=1.70158;var h=0;var k=e;if(j==0){return m}if((j/=g)==1){return m+e}if(!h){h=g*0.3}if(k<Math.abs(e)){k=e;var i=h/4}else{var i=h/(2*Math.PI)*Math.asin(e/k)}return k*Math.pow(2,-10*j)*Math.sin((j*g-i)*(2*Math.PI)/h)+e+m},easeInOutElastic:function(l,j,m,e,g){var i=1.70158;var h=0;var k=e;if(j==0){return m}if((j/=g/2)==2){return m+e}if(!h){h=g*(0.3*1.5)}if(k<Math.abs(e)){k=e;var i=h/4}else{var i=h/(2*Math.PI)*Math.asin(e/k)}if(j<1){return -0.5*(k*Math.pow(2,10*(j-=1))*Math.sin((j*g-i)*(2*Math.PI)/h))+m}return k*Math.pow(2,-10*(j-=1))*Math.sin((j*g-i)*(2*Math.PI)/h)*0.5+e+m},easeInBack:function(j,i,k,e,g,h){if(h==undefined){h=1.70158}return e*(i/=g)*i*((h+1)*i-h)+k},easeOutBack:function(j,i,k,e,g,h){if(h==undefined){h=1.70158}return e*((i=i/g-1)*i*((h+1)*i+h)+1)+k},easeInOutBack:function(j,i,k,e,g,h){if(h==undefined){h=1.70158}if((i/=g/2)<1){return e/2*(i*i*(((h*=(1.525))+1)*i-h))+k}return e/2*((i-=2)*i*(((h*=(1.525))+1)*i+h)+2)+k},easeInBounce:function(i,h,j,e,g){return e-jQuery.easing.easeOutBounce(i,g-h,0,e,g)+j},easeOutBounce:function(i,h,j,e,g){if((h/=g)<(1/2.75)){return e*(7.5625*h*h)+j}else{if(h<(2/2.75)){return e*(7.5625*(h-=(1.5/2.75))*h+0.75)+j}else{if(h<(2.5/2.75)){return e*(7.5625*(h-=(2.25/2.75))*h+0.9375)+j}else{return e*(7.5625*(h-=(2.625/2.75))*h+0.984375)+j}}}},easeInOutBounce:function(i,h,j,e,g){if(h<g/2){return jQuery.easing.easeInBounce(i,h*2,0,e,g)*0.5+j}return jQuery.easing.easeOutBounce(i,h*2-g,0,e,g)*0.5+e*0.5+j}})})(jQuery);(function(a){a.effects.blind=function(b){return this.queue(function(){var j=a(this),k=["position","top","left"];var g=a.effects.setMode(j,b.options.mode||"hide");var c=b.options.direction||"vertical";a.effects.save(j,k);j.show();var d=a.effects.createWrapper(j).css({overflow:"hidden"});var i=(c=="vertical")?"height":"width";var e=(c=="vertical")?d.height():d.width();if(g=="show"){d.css(i,0)}var h={};h[i]=g=="show"?e:0;d.animate(h,b.duration,b.options.easing,function(){if(g=="hide"){j.hide()}a.effects.restore(j,k);a.effects.removeWrapper(j);if(b.callback){b.callback.apply(j[0],arguments)}j.dequeue()})})}})(jQuery);(function(a){a.effects.bounce=function(b){return this.queue(function(){var p=a(this),j=["position","top","left"];var k=a.effects.setMode(p,b.options.mode||"effect");var e=b.options.direction||"up";var c=b.options.distance||20;var d=b.options.times||5;var n=b.duration||250;if(/show|hide/.test(k)){j.push("opacity")}a.effects.save(p,j);p.show();a.effects.createWrapper(p);var o=(e=="up"||e=="down")?"top":"left";var h=(e=="up"||e=="left")?"pos":"neg";var c=b.options.distance||(o=="top"?p.outerHeight({margin:true})/3:p.outerWidth({margin:true})/3);if(k=="show"){p.css("opacity",0).css(o,h=="pos"?-c:c)}if(k=="hide"){c=c/(d*2)}if(k!="hide"){d--}if(k=="show"){var m={opacity:1};m[o]=(h=="pos"?"+=":"-=")+c;p.animate(m,n/2,b.options.easing);c=c/2;d--}for(var l=0;l<d;l++){var g={},i={};g[o]=(h=="pos"?"-=":"+=")+c;i[o]=(h=="pos"?"+=":"-=")+c;p.animate(g,n/2,b.options.easing).animate(i,n/2,b.options.easing);c=(k=="hide")?c*2:c/2}if(k=="hide"){var m={opacity:0};m[o]=(h=="pos"?"-=":"+=")+c;p.animate(m,n/2,b.options.easing,function(){p.hide();a.effects.restore(p,j);a.effects.removeWrapper(p);if(b.callback){b.callback.apply(this,arguments)}})}else{var g={},i={};g[o]=(h=="pos"?"-=":"+=")+c;i[o]=(h=="pos"?"+=":"-=")+c;p.animate(g,n/2,b.options.easing).animate(i,n/2,b.options.easing,function(){a.effects.restore(p,j);a.effects.removeWrapper(p);if(b.callback){b.callback.apply(this,arguments)}})}p.queue("fx",function(){p.dequeue()});p.dequeue()})}})(jQuery);(function(a){a.effects.clip=function(b){return this.queue(function(){var l=a(this),g=["position","top","left","height","width"];var i=a.effects.setMode(l,b.options.mode||"hide");var e=b.options.direction||"vertical";a.effects.save(l,g);l.show();var c=a.effects.createWrapper(l).css({overflow:"hidden"});var h=l[0].tagName=="IMG"?c:l;var k={size:(e=="vertical")?"height":"width",position:(e=="vertical")?"top":"left"};var d=(e=="vertical")?h.height():h.width();if(i=="show"){h.css(k.size,0);h.css(k.position,d/2)}var j={};j[k.size]=i=="show"?d:0;j[k.position]=i=="show"?0:d/2;h.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(i=="hide"){l.hide()}a.effects.restore(l,g);a.effects.removeWrapper(l);if(b.callback){b.callback.apply(l[0],arguments)}l.dequeue()}})})}})(jQuery);(function(a){a.effects.drop=function(b){return this.queue(function(){var j=a(this),k=["position","top","left","opacity"];var e=a.effects.setMode(j,b.options.mode||"hide");var c=b.options.direction||"left";a.effects.save(j,k);j.show();a.effects.createWrapper(j);var h=(c=="up"||c=="down")?"top":"left";var i=(c=="up"||c=="left")?"pos":"neg";var d=b.options.distance||(h=="top"?j.outerHeight({margin:true})/2:j.outerWidth({margin:true})/2);if(e=="show"){j.css("opacity",0).css(h,i=="pos"?-d:d)}var g={opacity:e=="show"?1:0};g[h]=(e=="show"?(i=="pos"?"+=":"-="):(i=="pos"?"-=":"+="))+d;j.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(e=="hide"){j.hide()}a.effects.restore(j,k);a.effects.removeWrapper(j);if(b.callback){b.callback.apply(this,arguments)}j.dequeue()}})})}})(jQuery);(function(a){a.effects.explode=function(b){return this.queue(function(){var d=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;var j=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?(a(this).is(":visible")?"hide":"show"):b.options.mode;var g=a(this).show().css("visibility","hidden");var c=g.offset();c.top-=parseInt(g.css("marginTop"))||0;c.left-=parseInt(g.css("marginLeft"))||0;var h=g.outerWidth(true);var e=g.outerHeight(true);for(var i=0;i<d;i++){for(var k=0;k<j;k++){g.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-k*(h/j),top:-i*(e/d)}).parent().addClass("effects-explode").css({position:"absolute",overflow:"hidden",width:h/j,height:e/d,left:c.left+k*(h/j)+(b.options.mode=="show"?(k-Math.floor(j/2))*(h/j):0),top:c.top+i*(e/d)+(b.options.mode=="show"?(i-Math.floor(d/2))*(e/d):0),opacity:b.options.mode=="show"?0:1}).animate({left:c.left+k*(h/j)+(b.options.mode=="show"?0:(k-Math.floor(j/2))*(h/j)),top:c.top+i*(e/d)+(b.options.mode=="show"?0:(i-Math.floor(d/2))*(e/d)),opacity:b.options.mode=="show"?1:0},b.duration||500)}}setTimeout(function(){b.options.mode=="show"?g.css({visibility:"visible"}):g.css({visibility:"visible"}).hide();if(b.callback){b.callback.apply(g[0])}g.dequeue();a(".effects-explode").remove()},b.duration||500)})}})(jQuery);(function(a){a.effects.fold=function(b){return this.queue(function(){var n=a(this),j=["position","top","left"];var k=a.effects.setMode(n,b.options.mode||"hide");var e=b.options.size||15;var g=!(!b.options.horizFirst);a.effects.save(n,j);n.show();var c=a.effects.createWrapper(n).css({overflow:"hidden"});var l=((k=="show")!=g);var m=l?["width","height"]:["height","width"];var d=l?[c.width(),c.height()]:[c.height(),c.width()];var o=/([0-9]+)%/.exec(e);if(o){e=parseInt(o[1])/100*d[k=="hide"?0:1]}if(k=="show"){c.css(g?{height:0,width:e}:{height:e,width:0})}var h={},i={};h[m[0]]=k=="show"?d[0]:e;i[m[1]]=k=="show"?d[1]:0;c.animate(h,b.duration/2,b.options.easing).animate(i,b.duration/2,b.options.easing,function(){if(k=="hide"){n.hide()}a.effects.restore(n,j);a.effects.removeWrapper(n);if(b.callback){b.callback.apply(n[0],arguments)}n.dequeue()})})}})(jQuery);(function(a){a.effects.highlight=function(b){return this.queue(function(){var g=a(this),h=["backgroundImage","backgroundColor","opacity"];var c=a.effects.setMode(g,b.options.mode||"show");var i=b.options.color||"#ffff99";var d=g.css("backgroundColor");a.effects.save(g,h);g.show();g.css({backgroundImage:"none",backgroundColor:i});var e={backgroundColor:d};if(c=="hide"){e.opacity=0}g.animate(e,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(c=="hide"){g.hide()}a.effects.restore(g,h);if(c=="show"&&jQuery.browser.msie){this.style.removeAttribute("filter")}if(b.callback){b.callback.apply(this,arguments)}g.dequeue()}})})}})(jQuery);(function(a){a.effects.pulsate=function(b){return this.queue(function(){var e=a(this);var c=a.effects.setMode(e,b.options.mode||"show");var d=b.options.times||5;if(c=="hide"){d--}if(e.is(":hidden")){e.css("opacity",0);e.show();e.animate({opacity:1},b.duration/2,b.options.easing);d=d-2}for(var g=0;g<d;g++){e.animate({opacity:0},b.duration/2,b.options.easing).animate({opacity:1},b.duration/2,b.options.easing)}if(c=="hide"){e.animate({opacity:0},b.duration/2,b.options.easing,function(){e.hide();if(b.callback){b.callback.apply(this,arguments)}})}else{e.animate({opacity:0},b.duration/2,b.options.easing).animate({opacity:1},b.duration/2,b.options.easing,function(){if(b.callback){b.callback.apply(this,arguments)}})}e.queue("fx",function(){e.dequeue()});e.dequeue()})}})(jQuery);(function(a){a.effects.puff=function(b){return this.queue(function(){var d=a(this);var e=a.extend(true,{},b.options);var c=a.effects.setMode(d,b.options.mode||"hide");var i=parseInt(b.options.percent)||150;e.fade=true;var g={height:d.height(),width:d.width()};var h=i/100;d.from=(c=="hide")?g:{height:g.height*h,width:g.width*h};e.from=d.from;e.percent=(c=="hide")?i:100;e.mode=c;d.effect("scale",e,b.duration,b.callback);d.dequeue()})};a.effects.scale=function(b){return this.queue(function(){var e=a(this);var h=a.extend(true,{},b.options);var d=a.effects.setMode(e,b.options.mode||"effect");var k=parseInt(b.options.percent)||(parseInt(b.options.percent)==0?0:(d=="hide"?0:100));var c=b.options.direction||"both";var g=b.options.origin;if(d!="effect"){h.origin=g||["middle","center"];h.restore=true}var i={height:e.height(),width:e.width()};e.from=b.options.from||(d=="show"?{height:0,width:0}:i);var j={y:c!="horizontal"?(k/100):1,x:c!="vertical"?(k/100):1};e.to={height:i.height*j.y,width:i.width*j.x};if(b.options.fade){if(d=="show"){e.from.opacity=0;e.to.opacity=1}if(d=="hide"){e.from.opacity=1;e.to.opacity=0}}h.from=e.from;h.to=e.to;h.mode=d;e.effect("size",h,b.duration,b.callback);e.dequeue()})};a.effects.size=function(b){return this.queue(function(){var n=a(this),h=["position","top","left","width","height","overflow","opacity"];var c=["position","top","left","overflow","opacity"];var p=["width","height","overflow"];var g=["fontSize"];var q=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var k=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var j=a.effects.setMode(n,b.options.mode||"effect");var i=b.options.restore||false;var l=b.options.scale||"both";var e=b.options.origin;var m={height:n.height(),width:n.width()};n.from=b.options.from||m;n.to=b.options.to||m;if(e){var o=a.effects.getBaseline(e,m);n.from.top=(m.height-n.from.height)*o.y;n.from.left=(m.width-n.from.width)*o.x;n.to.top=(m.height-n.to.height)*o.y;n.to.left=(m.width-n.to.width)*o.x}var d={from:{y:n.from.height/m.height,x:n.from.width/m.width},to:{y:n.to.height/m.height,x:n.to.width/m.width}};if(l=="box"||l=="both"){if(d.from.y!=d.to.y){h=h.concat(q);n.from=a.effects.setTransition(n,q,d.from.y,n.from);n.to=a.effects.setTransition(n,q,d.to.y,n.to)}if(d.from.x!=d.to.x){h=h.concat(k);n.from=a.effects.setTransition(n,k,d.from.x,n.from);n.to=a.effects.setTransition(n,k,d.to.x,n.to)}}if(l=="content"||l=="both"){if(d.from.y!=d.to.y){h=h.concat(g);n.from=a.effects.setTransition(n,g,d.from.y,n.from);n.to=a.effects.setTransition(n,g,d.to.y,n.to)}}a.effects.save(n,i?h:c);n.show();a.effects.createWrapper(n);n.css("overflow","hidden").css(n.from);if(l=="content"||l=="both"){q=q.concat(["marginTop","marginBottom"]).concat(g);k=k.concat(["marginLeft","marginRight"]);p=h.concat(q).concat(k);n.find("*[width]").each(function(){child=a(this);if(i){a.effects.save(child,p)}var r={height:child.height(),width:child.width()};child.from={height:r.height*d.from.y,width:r.width*d.from.x};child.to={height:r.height*d.to.y,width:r.width*d.to.x};if(d.from.y!=d.to.y){child.from=a.effects.setTransition(child,q,d.from.y,child.from);child.to=a.effects.setTransition(child,q,d.to.y,child.to)}if(d.from.x!=d.to.x){child.from=a.effects.setTransition(child,k,d.from.x,child.from);child.to=a.effects.setTransition(child,k,d.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){if(i){a.effects.restore(child,p)}})})}n.animate(n.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(j=="hide"){n.hide()}a.effects.restore(n,i?h:c);a.effects.removeWrapper(n);if(b.callback){b.callback.apply(this,arguments)}n.dequeue()}})})}})(jQuery);(function(a){a.effects.shake=function(b){return this.queue(function(){var p=a(this),j=["position","top","left"];var k=a.effects.setMode(p,b.options.mode||"effect");var e=b.options.direction||"left";var c=b.options.distance||20;var d=b.options.times||3;var n=b.duration||b.options.duration||140;a.effects.save(p,j);p.show();a.effects.createWrapper(p);var o=(e=="up"||e=="down")?"top":"left";var h=(e=="up"||e=="left")?"pos":"neg";var m={},g={},i={};m[o]=(h=="pos"?"-=":"+=")+c;g[o]=(h=="pos"?"+=":"-=")+c*2;i[o]=(h=="pos"?"-=":"+=")+c*2;p.animate(m,n,b.options.easing);for(var l=1;l<d;l++){p.animate(g,n,b.options.easing).animate(i,n,b.options.easing)}p.animate(g,n,b.options.easing).animate(m,n/2,b.options.easing,function(){a.effects.restore(p,j);a.effects.removeWrapper(p);if(b.callback){b.callback.apply(this,arguments)}});p.queue("fx",function(){p.dequeue()});p.dequeue()})}})(jQuery);(function(a){a.effects.slide=function(b){return this.queue(function(){var j=a(this),k=["position","top","left"];var e=a.effects.setMode(j,b.options.mode||"show");var c=b.options.direction||"left";a.effects.save(j,k);j.show();a.effects.createWrapper(j).css({overflow:"hidden"});var h=(c=="up"||c=="down")?"top":"left";var i=(c=="up"||c=="left")?"pos":"neg";var d=b.options.distance||(h=="top"?j.outerHeight({margin:true}):j.outerWidth({margin:true}));if(e=="show"){j.css(h,i=="pos"?-d:d)}var g={};g[h]=(e=="show"?(i=="pos"?"+=":"-="):(i=="pos"?"-=":"+="))+d;j.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(e=="hide"){j.hide()}a.effects.restore(j,k);a.effects.removeWrapper(j);if(b.callback){b.callback.apply(this,arguments)}j.dequeue()}})})}})(jQuery);(function(a){a.effects.transfer=function(b){return this.queue(function(){var e=a(this);var d=a.effects.setMode(e,b.options.mode||"effect");var c=a(b.options.to);var h=e.offset();var g=a('<div class="ui-effects-transfer"></div>').appendTo(document.body);if(b.options.className){g.addClass(b.options.className)}g.addClass(b.options.className);g.css({top:h.top,left:h.left,height:e.outerHeight()-parseInt(g.css("borderTopWidth"))-parseInt(g.css("borderBottomWidth")),width:e.outerWidth()-parseInt(g.css("borderLeftWidth"))-parseInt(g.css("borderRightWidth")),position:"absolute"});h=c.offset();animation={top:h.top,left:h.left,height:c.outerHeight()-parseInt(g.css("borderTopWidth"))-parseInt(g.css("borderBottomWidth")),width:c.outerWidth()-parseInt(g.css("borderLeftWidth"))-parseInt(g.css("borderRightWidth"))};g.animate(animation,b.duration,b.options.easing,function(){g.remove();if(b.callback){b.callback.apply(e[0],arguments)}e.dequeue()})})}})(jQuery);var GB_DONE=false;var GB_HEIGHT=400;var GB_WIDTH=400;var GB_callback=null;function GB_show(b,c,a,d,e){GB_HEIGHT=a||400;GB_WIDTH=d||400;if(!GB_DONE){$(document.body).append("<div id='GB_overlay'></div><div id='GB_window' style='background:url(/img/bg/shine.png) transparent;'><div id='GB_titlebar' style='width:600px;'><div id='GB_caption' style='float:left;color:black;font-family:helvetica;font-size:14px;font-weight:bolder;'></div><div id=\"GB_closewindow\" style=\"float:right;background:#fd6;font-weight: bolder;cursor:pointer;height:20px;width:120px;vertical-align:bottom;padding-top:3px;\" align=\"center\">CERRAR<img src=\"/img/tango/system-log-out.png\"/></div></div></div>");$("#GB_closewindow").click(GB_hide);$("#GB_overlay").click(GB_hide);$(window).resize(GB_position);GB_DONE=true}$("#GB_frame").remove();$("#GB_window").append("<iframe id='GB_frame' src='"+c+"' style='border-top:2px solid orange'></iframe>");$("#GB_caption").html(b);$("#GB_overlay").show();GB_position();if(GB_ANIMATION){$("#GB_window").slideDown("slow")}else{$("#GB_window").show()}GB_callback=e}function GB_hide(){$("#GB_window,#GB_overlay").hide();if(GB_callback){GB_callback()}}function GB_position(){var b=document.documentElement;var a=self.innerWidth||(b&&b.clientWidth)||document.body.clientWidth;$("#GB_window").css({width:GB_WIDTH+"px",height:GB_HEIGHT-12+"px",left:((a-GB_WIDTH)/2)+"px"});$("#GB_frame").css("height",GB_HEIGHT-12+"px")}(function(a){a.jGrowl=function(b,c){if(a("#jGrowl").size()==0){a('<div id="jGrowl"></div>').addClass(a.jGrowl.defaults.position).appendTo("body")}a("#jGrowl").jGrowl(b,c)};a.fn.jGrowl=function(b,d){if(a.isFunction(this.each)){var c=arguments;return this.each(function(){var e=this;if(a(this).data("jGrowl.instance")==undefined){a(this).data("jGrowl.instance",new a.fn.jGrowl());a(this).data("jGrowl.instance").startup(this)}if(a.isFunction(a(this).data("jGrowl.instance")[b])){a(this).data("jGrowl.instance")[b].apply(a(this).data("jGrowl.instance"),a.makeArray(c).slice(1))}else{a(this).data("jGrowl.instance").notification(b,d)}})}};a.extend(a.fn.jGrowl.prototype,{defaults:{header:"",sticky:false,position:"top-right",glue:"after",theme:"default",corners:"10px",check:500,life:3000,speed:"normal",easing:"swing",closer:true,log:function(c,b,d){},beforeOpen:function(c,b,d){},open:function(c,b,d){},beforeClose:function(c,b,d){},close:function(c,b,d){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},element:null,interval:null,notification:function(c,e){var b=this;var e=a.extend({},this.defaults,e);e.log.apply(this.element,[this.element,c,e]);var d=a('<div class="jGrowl-notification"><div class="close">&times;</div><div class="header">'+e.header+'</div><div class="message">'+c+"</div></div>").data("jGrowl",e).addClass(e.theme).children("div.close").bind("click.jGrowl",function(){a(this).unbind("click.jGrowl").parent().trigger("jGrowl.beforeClose").animate(e.animateClose,e.speed,e.easing,function(){a(this).trigger("jGrowl.close").remove()})}).parent();(e.glue=="after")?a("div.jGrowl-notification:last",this.element).after(d):a("div.jGrowl-notification:first",this.element).before(d);a(d).bind("mouseover.jGrowl",function(){a(this).data("jGrowl").pause=true}).bind("mouseout.jGrowl",function(){a(this).data("jGrowl").pause=false}).bind("jGrowl.beforeOpen",function(){e.beforeOpen.apply(b.element,[b.element,c,e])}).bind("jGrowl.open",function(){e.open.apply(b.element,[b.element,c,e])}).bind("jGrowl.beforeClose",function(){e.beforeClose.apply(b.element,[b.element,c,e])}).bind("jGrowl.close",function(){e.close.apply(b.element,[b.element,c,e])}).trigger("jGrowl.beforeOpen").animate(e.animateOpen,e.speed,e.easing,function(){a(this).data("jGrowl").created=new Date()}).trigger("jGrowl.open");if(a.fn.corner!=undefined){a(d).corner(e.corners)}if(a("div.jGrowl-notification:parent",this.element).size()>1&&a("div.jGrowl-closer",this.element).size()==0&&this.defaults.closer!=false){a('<div class="jGrowl-closer">[ close all ]</div>').addClass(this.defaults.theme).appendTo(this.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){a(this).siblings().children("div.close").trigger("click.jGrowl");if(a.isFunction(b.defaults.closer)){b.defaults.closer.apply(a(this).parent()[0],[a(this).parent()[0]])}})}},update:function(){a(this.element).find("div.jGrowl-notification:parent").each(function(){if(a(this).data("jGrowl")!=undefined&&a(this).data("jGrowl").created!=undefined&&(a(this).data("jGrowl").created.getTime()+a(this).data("jGrowl").life)<(new Date()).getTime()&&a(this).data("jGrowl").sticky!=true&&(a(this).data("jGrowl").pause==undefined||a(this).data("jGrowl").pause!=true)){a(this).children("div.close").trigger("click.jGrowl")}});if(a(this.element).find("div.jGrowl-notification:parent").size()<2){a(this.element).find("div.jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){a(this).remove()})}},startup:function(b){this.element=a(b).addClass("jGrowl").append('<div class="jGrowl-notification"></div>');this.interval=setInterval(function(){jQuery(b).data("jGrowl.instance").update()},this.defaults.check);if(a.browser.msie&&parseInt(a.browser.version)<7){a(this.element).addClass("ie6")}},shutdown:function(){a(this.element).removeClass("jGrowl").find("div.jGrowl-notification").remove();clearInterval(this.interval)}});a.jGrowl.defaults=a.fn.jGrowl.prototype.defaults})(jQuery);(function(a){a.superfish={};a.superfish.o=[];a.superfish.op={};a.superfish.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",delay:800,animation:{opacity:"show"},speed:"normal",oldJquery:false,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};a.fn.superfish=function(i){var e="sfbreadcrumb",g=function(){var j=a(this),k=c(j);h(k,true);clearTimeout(k.sfTimer);j.showSuperfishUl().siblings().hideSuperfishUl()},d=function(){var j=a(this),l=c(j);var k=h(l,true);clearTimeout(l.sfTimer);if(!j.is("."+e)){l.sfTimer=setTimeout(function(){j.hideSuperfishUl();if(k.$path.length){g.call(k.$path)}},k.delay)}},c=function(j){return j.parents("ul.superfish:first")[0]},h=function(j,k){j=k?j:c(j);return a.superfish.op=a.superfish.o[j.serial]},b=function(){return a.superfish.op.oldJquery?"li[ul]":"li:has(ul)"};return this.each(function(){var j=this.serial=a.superfish.o.length;var l=a.extend({},a.superfish.defaults,i);l.$path=a("li."+l.pathClass,this).each(function(){a(this).addClass(l.hoverClass+" "+e).filter(b()).removeClass(l.pathClass)});a.superfish.o[j]=a.superfish.op=l;a(b(),this)[(a.fn.hoverIntent&&!l.disableHI)?"hoverIntent":"hover"](g,d).not("."+e).hideSuperfishUl();var k=a("a",this);k.each(function(m){var n=k.eq(m).parents("li");k.eq(m).focus(function(){g.call(n)}).blur(function(){d.call(n)})});l.onInit.call(this)}).addClass("superfish")};a.fn.extend({hideSuperfishUl:function(){var c=a.superfish.op,b=a("li."+c.hoverClass,this).add(this).removeClass(c.hoverClass).find(">ul").hide().css("visibility","hidden");c.onHide.call(b);return this},showSuperfishUl:function(){var c=a.superfish.op,b=this.addClass(c.hoverClass).find(">ul:hidden").css("visibility","visible");c.onBeforeShow.call(b);b.animate(c.animation,c.speed,function(){c.onShow.call(this)});return this}});a(window).unload(function(){a("ul.superfish").each(function(){a("li",this).unbind("mouseover","mouseout","mouseenter","mouseleave")})})})(jQuery);(function(e){e.tooltip={defaults:{"class":"tooltip",css:{},event:"mouseover",smart:false,track:true,offset:{x:12,y:18}},setup:function(g){e.extend(e.tooltip.defaults,g)}};var d=function(g,h){var p=this;var l="";g=e(g);if(e.metadata){h=e.extend({},h,g.metadata().tooltip)}if(h.smart){if(!h.title){h.title=g.attr("title")}if(!h.text){h.text=g.attr("alt")}if(!h.href){h.href=g.attr("href")}}var l="";if(h.title){l+='<div class="title">'+h.title+"</div>"}if(h.text){l+='<div class="text">'+h.text+"</div>"}if(h.href){l+='<div class="url">'+h.href+"</div>"}if(l==""){delete this;return}g.removeAttr("title").removeAttr("alt");e.data(g,"tooltip",p);p.dst=h.dst;g.bind(h.event+".tooltip",n).bind("mouseout.tooltip",k).bind("focus.tooltip",n).bind("blur.tooltip",k).bind("click.tooltip",m);function i(){if(p.timein){clearTimeout(p.timein);delete p.timein}if(p.timeout){clearTimeout(p.timeout);delete p.timeout}}function n(q){i();if(p.st==k){return}p.st=n;if(!p.dst){p.dst=e("<div>").appendTo(document.body).css({visibility:"hidden"})}p.ev=q;p.timein=setTimeout(o,h["in"]||0)}function o(){i();if(!p.dst){return}p.dst.addClass(h["class"]).css(h.css).html(l);if(h.duration>0){p.timein=setTimeout(m,h.duration)}if(h.track){p.dst.css({position:"absolute",visibility:"visible"});g.bind("mousemove.tooltip",j);e("body").bind("click.tooltip",m)}p.w=p.dst.width();p.h=p.dst.height();if(h.onshow){h.onshow.apply(p.dst)}if(h.track){j()}}function k(){i();if(p.st!=n){return}p.timeout=setTimeout(m,h.out||0)}function m(){i();e("body").unbind(".tooltip");e("src").unbind("mousemove.tooltip");if(!p.dst){return}p.dst.empty();if(h.onhide){h.onhide.apply(p.dst)}if(p.dst!=h.dst){p.dst.remove();delete p.dst}}function j(r){if(!r){r=p.ev}else{p.ev=r}if(!p.dst){return}var s={x:r.pageX+h.offset.x,y:r.pageY+h.offset.y,w:p.w,h:p.h};w=window;var q={x:w.scrollX,y:w.scrollY,w:w.innerWidth-20,h:w.innerHeight-20};if(s.x+s.w>q.x+q.w){s.x=q.x+q.w-s.w}if(s.y+s.h>q.y+q.h){s.y=r.pageY-s.h-h.offset.y}if(s.x<q.x){s.x=q.x}if(s.y<q.y){s.y=q.y}p.dst.css({top:s.y,left:s.x})}};function b(){return this.each(function(){t=e.data(this,"tooltip");if(t){e.extend(t.opt,opt)}return this})}function a(){return;this.unbind(".tooltip").removeData("tooltip")}function c(g){a.apply(this);g=e.extend({},e.tooltip.defaults,g);return this.each(function(){new d(this,g)})}e.fn.tooltip=function(g,h){if(!h&&(typeof g!="string")){h=g;g="create"}return(f=({setup:b,remove:a,create:c})[g])&&f.apply(this,[h])}})(jQuery);