var ppcIE="Microsoft Internet Explorer"==navigator.appName||"Netscape"==navigator.appName&&5==parseInt(navigator.appVersion),ppcNN6="Netscape"==navigator.appName&&5==parseInt(navigator.appVersion),ppcNN="Netscape"==navigator.appName&&document.layers,posX=4,posY=4,now=new Date,eventWindow;function today(){var e="",t=new Date,r=t.getDate(),a=t.getMonth();return++a<10&&(e+="0"),e+=a+"-",r<10&&(e+="0"),e+=r+"-"+(t.getFullYear()+"").substring(2,4)}function getPos(e){var t=$("#"+e).offset();posX=t.left,posY=t.top}function fn_chg_color(e,t){fn_chk_color(e,t)}function fn_chk_color(e,t){if(0==t.length)return!0;for(i=0;i
Please change your Account name.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.username.select(),e.username.focus(),!1}return!0}function isName(e){return""==e.username.value?($.Zebra_Dialog("The Account Name is blank.

Please enter your Account name.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.username.focus(),!1):checkChangeMemberLogon(e)}function isEmail(e){var t=e.email.value;return""==t?($.Zebra_Dialog("The Email Address is blank.

Please enter your email address.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.email.focus(),!1):-1!=t.indexOf("@",0)&&-1!=t.indexOf(".",0)||($.Zebra_Dialog("Please enter a valid email address.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.email.select(),e.email.focus(),!1)}function isLocation(e){return""!=e.member_location_desc.value||($.Zebra_Dialog("Please enter a valid location.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.member_phys_address.focus(),!1)}function checkPassword(e){var t=e.password.value,r=e.confirmpw.value;if(""==e.password.value)return $.Zebra_Dialog("The Password field is blank.

Please enter your password.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.password.focus(),!1;if(""==e.confirmpw.value)return $.Zebra_Dialog("The Re-Enter Password field is blank.

Please enter your password again in the Re-Enter Password field.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.confirmpw.focus(),!1;if(t!=r)return $.Zebra_Dialog("The Passwords you entered do not match.

Please check your entries.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.password.select(),e.password.focus(),!1;if(t.length<6)return $.Zebra_Dialog("Please enter a password that is at least 6 characters long.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.password.select(),e.password.focus(),!1;for(var a=0;a
Please change your password.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.password.select(),e.password.focus(),!1}return!0}function checkChangePassword(e){var t=e.password.value,r=e.newpassword.value,a=e.confirmpw.value;if(""==t)return $.Zebra_Dialog("The Password field is blank.

Please enter your password.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.password.focus(),!1;if(""==a)return $.Zebra_Dialog("The Confirm Password field is blank.

Please enter your password again in the Confirm Password field.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.confirmpw.focus(),!1;if(r!=a)return $.Zebra_Dialog("The Passwords you entered do not match.

Please check your entries.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.newpassword.select(),e.newpassword.focus(),!1;if(r.length<6)return $.Zebra_Dialog("Please enter a password that is at least 6 characters long.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.password.select(),e.password.focus(),!1;for(var o=0;o
Please change your password.",{type:"error",overlay_opacity:.5,title:"Validation Error"}),e.newpassword.select(),e.newpassword.focus(),!1}return!0}function checkAgree(e){return!!e.agree.checked||($.Zebra_Dialog("Please indicate that you accept the Terms of Service",{type:"warning",overlay_opacity:.5,title:"Message"}),e.agree.focus(),!1)}function EditEvent(t,r,e,a){null!=e&&"N"!=e?$.Zebra_Dialog("This is a repeating event. Do you want to edit the series, or just this occurrence?",{type:"question",overlay_opacity:.5,title:"Edit Repeating Event",buttons:["Edit the Series","Edit this Occurrence"],onClose:function(e){"Edit the Series"==e?window.location.href="/elsie?DAM=EventEditor&event_id="+t+"&public_event="+r:"Edit this Occurrence"==e&&(window.location.href="/elsie?DAM=EventEditor&event_id="+t+"&public_event="+r+"&occur=Y&odate="+a)}}):window.location.href="/elsie?DAM=EventEditor&event_id="+t+"&public_event="+r}function getRestaurants(e){window.open("http://www.usrg.com/script/nearzip.asp?ZIP="+e,"localendar","width=800,height=500,scrollbars=yes,resizable=yes").focus()}function trim(e){var t=0;for(t=0;t").attr("value",-1).text("-- Please select --")),i=0;i").attr("value",i).text(e.results[i].formatted_address));else geoData=null;null==geoData?$("#"+r+"_location_none").show():1==geoData.results.length?(storeLatLong({value:"0"},t),$("#"+r+"_location_valid").show()):1("+$("#"+r+"_location_desc").val()+")"),$("#"+r+"_location_valid").show()}}function addTask(){window.location.href="/elsie?DAM=EventEditor"}function deleteTask(t){$.Zebra_Dialog('Are you sure you want to delete entry\n"'+taskList[t].title+'" ?',{type:"question",overlay_opacity:.5,title:"Delete Task?",buttons:["Delete","Cancel"],onClose:function(e){"Delete"==e&&(window.location.href="/elsie?DAM=TaskEditor&task_id="+taskList[t].tId+"&action=D")}})}function editTask(e){window.location.href="/elsie?DAM=TaskEditor&task_id="+e} jQuery.extend({easing:{easein:function(n,t,e,u,r){return u*(t/=r)*t+e},easeinout:function(n,t,e,u,r){if(t=0&&("a"==e&&a.href||/input|select|textarea|button/.test(e)&&"hidden"!=a.type&&!a.disabled)&&c(a)}});a.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};a.widget=function(b,c){var e=b.split(".")[0];b=b.split(".")[1];a.fn[b]=function(c){var f=typeof c=="string",g=Array.prototype.slice.call(arguments,1);if(f&&c.substring(0,1)=="_"){return this}if(f&&d(e,b,c,g)){var h=a.data(this[0],b);return h?h[c].apply(h,g):undefined}return this.each(function(){var d=a.data(this,b);!d&&!f&&a.data(this,b,new a[e][b](this,c));d&&f&&a.isFunction(d[c])&&d[c].apply(d,g)})};a[e][b]=function(c,d){var f=this;this.widgetName=b;this.widgetEventPrefix=a[e][b].eventPrefix||b;this.widgetBaseClass=e+"-"+b;this.options=a.extend({},a.widget.defaults,a[e][b].defaults,a.metadata&&a.metadata.get(c)[b],d);this.element=a(c).bind("setData."+b,function(a,b,c){return f._setData(b,c)}).bind("getData."+b,function(a,b){return f._getData(b)}).bind("remove",function(){return f.destroy()});this._init()};a[e][b].prototype=a.extend({},a.widget.prototype,c);a[e][b].getterSetter="option"};a.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName)},option:function(b,c){var d=b,e=this;if(typeof b=="string"){if(c===undefined){return this._getData(b)}d={};d[b]=c}a.each(d,function(a,b){e._setData(a,b)})},_getData:function(a){return this.options[a]},_setData:function(a,b){this.options[a]=b;if(a=="disabled"){this.element[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(b,c,d){var e=b==this.widgetEventPrefix?b:this.widgetEventPrefix+b;c=c||a.event.fix({type:e,target:this.element[0]});return this.element.triggerHandler(e,[c,d],this.options[b])}};a.widget.defaults={disabled:false};a.ui={plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d){e.plugins[f]=e.plugins[f]||[];e.plugins[f].push([c,d[f]])}},call:function(a,b,c){var d=a.plugins[b];if(!d){return}for(var e=0;e').addClass(b).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");a.ui.cssCache[b]=!!(!/auto|default/.test(c.css("cursor"))||/^[1-9]/.test(c.css("height"))||/^[1-9]/.test(c.css("width"))||!/none/.test(c.css("backgroundImage"))||!/transparent|rgba\(0, 0, 0, 0\)/.test(c.css("backgroundColor")));try{a("body").get(0).removeChild(c.get(0))}catch(d){}return a.ui.cssCache[b]},disableSelection:function(b){return a(b).attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},enableSelection:function(b){return a(b).attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},hasScroll:function(b,c){if(a(b).css("overflow")=="hidden"){return false}var d=c&&c=="left"?"scrollLeft":"scrollTop",e=false;if(b[d]>0){return true}b[d]=1;e=b[d]>0;b[d]=0;return e}};a.ui.mouse={_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)});if(a.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);a.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(b){this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var c=this,d=b.which==1,e=typeof this.options.cancel=="string"?a(b.target).parents().add(b.target).filter(this.options.cancel).length:false;if(!d||e||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(a){return c._mouseMove(a)};this._mouseUpDelegate=function(a){return c._mouseUp(a)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);return false},_mouseMove:function(b){if(a.browser.msie&&!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return false}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false;this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)}return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._mouseStop(b)}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(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true}};a.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(a){function f(b,c){return c?typeof c=="number"?b.filter(":eq("+c+")"):b.not(b.not(c)):c===false?a([]):b.filter(":eq(0)")}function e(b){var c=a.data(this,"accordion").options;if(c.disabled){return false}if(!b.target&&!c.alwaysOpen){c.active.parent().andSelf().toggleClass(c.selectedClass);var e=c.active.next(),f={options:c,newHeader:jQuery([]),oldHeader:c.active,newContent:jQuery([]),oldContent:e},g=c.active=a([]);d.call(this,g,e,f);return false}var h=a(b.target);h=a(h.parents(c.header)[0]||h);var i=h[0]==c.active[0];if(c.running||c.alwaysOpen&&i){return false}if(!h.is(c.header)){return}c.active.parent().andSelf().toggleClass(c.selectedClass);if(!i){h.parent().andSelf().addClass(c.selectedClass)}var g=h.next(),e=c.active.next(),f={options:c,newHeader:i&&!c.alwaysOpen?a([]):h,oldHeader:c.active,newContent:i&&!c.alwaysOpen?a([]):g,oldContent:e},j=c.headers.index(c.active[0])>c.headers.index(h[0]);c.active=i?a([]):h;d.call(this,g,e,f,i,j);return false}function d(d,e,f,g,h){var i=a.data(this,"accordion").options;i.toShow=d;i.toHide=e;i.data=f;var j=b(c,this);a.data(this,"accordion")._trigger("changestart",null,i.data);i.running=e.size()===0?d.size():e.size();if(i.animated){if(!i.alwaysOpen&&g){a.ui.accordion.animations[i.animated]({toShow:jQuery([]),toHide:e,complete:j,down:h,autoHeight:i.autoHeight})}else{a.ui.accordion.animations[i.animated]({toShow:d,toHide:e,complete:j,down:h,autoHeight:i.autoHeight})}}else{if(!i.alwaysOpen&&g){d.toggle()}else{e.hide();d.show()}j(true)}}function c(b){if(!a.data(this,"accordion")){return}var c=a.data(this,"accordion");var d=c.options;d.running=b?0:--d.running;if(d.running){return}if(d.clearStyle){d.toShow.add(d.toHide).css({height:"",overflow:""})}c._trigger("change",null,d.data)}function b(a,b){return function(){return a.apply(b,arguments)}}a.widget("ui.accordion",{_init:function(){var b=this.options;if(b.navigation){var c=this.element.find("a").filter(b.navigationFilter);if(c.length){if(c.filter(b.header).length){b.active=c}else{b.active=c.parent().parent().prev();c.addClass("current")}}}b.headers=this.element.find(b.header);b.active=f(b.headers,b.active);if(a.browser.msie){this.element.find("a").css("zoom","1")}if(!this.element.hasClass("ui-accordion")){this.element.addClass("ui-accordion");a('').insertBefore(b.headers);a('').appendTo(b.headers);b.headers.addClass("ui-accordion-header").attr("tabindex","0")}var d;if(b.fillSpace){d=this.element.parent().height();b.headers.each(function(){d-=a(this).outerHeight()});var g=0;b.headers.next().each(function(){g=Math.max(g,a(this).innerHeight()-a(this).height())}).height(d-g)}else if(b.autoHeight){d=0;b.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}b.headers.not(b.active||"").next().hide();b.active.parent().andSelf().addClass(b.selectedClass);if(b.event){this.element.bind(b.event+".accordion",e)}},activate:function(a){e.call(this.element[0],{target:f(this.options.headers,a)[0]})},destroy:function(){this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoHeight){this.options.headers.next().css("height","")}a.removeData(this.element[0],"accordion");this.element.removeClass("ui-accordion").unbind(".accordion")}});a.extend(a.ui.accordion,{defaults:{selectedClass:"selected",alwaysOpen:true,animated:"slide",event:"click",header:"a",autoHeight:true,running:0,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(b,c){b=a.extend({easing:"swing",duration:300},b,c);if(!b.toHide.size()){b.toShow.animate({height:"show"},b);return}var d=b.toHide.height(),e=b.toShow.height(),f=e/d;b.toShow.css({height:0,overflow:"hidden"}).show();b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate({height:"hide"},{step:function(c){var e=(d-c)*f;if(a.browser.msie||a.browser.opera){e=Math.ceil(e)}b.toShow.height(e)},duration:b.duration,easing:b.easing,complete:function(){if(!b.autoHeight){b.toShow.css("height","auto")}b.complete()}})},bounceslide:function(a){this.slide(a,{easing:a.down?"bounceout":"swing",duration:a.down?1e3:200})},easeslide:function(a){this.slide(a,{easing:"easeinout",duration:700})}}})})(jQuery);(function(a){a.widget("ui.autocomplete",{_init:function(){a.extend(this.options,{delay:this.options.url?a.Autocompleter.defaults.delay:10,max:!this.options.scroll?10:150,highlight:this.options.highlight||function(a){return a},formatMatch:this.options.formatMatch||this.options.formatItem});new a.Autocompleter(this.element[0],this.options)},result:function(a){return this.element.bind("result",a)},search:function(a){return this.element.trigger("search",[a])},flushCache:function(){return this.element.trigger("flushCache")},setData:function(a,b){return this.element.trigger("setOptions",[{key:b}])},destroy:function(){return this.element.trigger("unautocomplete")}});a.Autocompleter=function(b,c){function x(){e.removeClass(c.loadingClass)}function w(b){var d=[];var e=b.split("\n");for(var f=0;f0){var i={timestamp:+(new Date)};a.each(c.extraParams,function(a,b){i[a]=typeof b=="function"?b():b});a.ajax({mode:"abort",port:"autocomplete"+b.name,dataType:c.dataType,url:c.url,data:a.extend({q:q(d),limit:c.max},i),success:function(a){var b=c.parse&&c.parse(a)||w(a);h.add(d,b);e(d,b)}})}else if(c.source&&typeof c.source=="function"){var j=c.source(d);var k=c.parse?c.parse(j):j;h.add(d,k);e(d,k)}else{l.emptyList();f(d)}}function u(a,b){if(b&&b.length&&i){x();l.display(b,a);r(a,b[0].value);l.show()}else{t()}}function t(){var d=l.visible();l.hide();clearTimeout(f);x();if(c.mustMatch){e.autocomplete("search",function(a){if(!a){if(c.multiple){var b=p(e.val()).slice(0,-1);e.val(b.join(c.multipleSeparator)+(b.length?c.multipleSeparator:""))}else e.val("")}})}if(d)a.Autocompleter.Selection(b,b.value.length,b.value.length)}function s(){clearTimeout(f);f=setTimeout(t,200)}function r(f,h){if(c.autoFill&&q(e.val()).toLowerCase()==f.toLowerCase()&&j!=d.BACKSPACE){e.val(e.val()+h.substring(q(g).length));a.Autocompleter.Selection(b,g.length,g.length+h.length)}}function q(a){if(!c.multiple)return a;var b=p(a);return b[b.length-1]}function p(b){if(!b){return[""]}var d=b.split(c.multipleSeparator);var e=[];a.each(d,function(b,c){if(a.trim(c))e[b]=a.trim(c)});return e}function o(a,b){if(j==d.DEL){l.hide();return}var f=e.val();if(!b&&f==g)return;g=f;f=q(f);if(f.length>=c.minChars){e.addClass(c.loadingClass);if(!c.matchCase)f=f.toLowerCase();v(f,u,t)}else{x();l.hide()}}function n(){var a=l.selected();if(!a)return false;var b=a.result;g=b;if(c.multiple){var d=p(e.val());if(d.length>1){b=d.slice(0,d.length-1).join(c.multipleSeparator)+c.multipleSeparator+b}b+=c.multipleSeparator}e.val(b);t();e.trigger("result",[a.data,a.value]);return true}var d={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var e=a(b).attr("autocomplete","off").addClass(c.inputClass);if(c.result)e.bind("result.autocomplete",c.result);var f;var g="";var h=a.Autocompleter.Cache(c);var i=0;var j;var k={mouseDownOnSelect:false};var l=a.Autocompleter.Select(c,b,n,k);var m;a.browser.opera&&a(b.form).bind("submit.autocomplete",function(){if(m){m=false;return false}});e.bind((a.browser.opera?"keypress":"keydown")+".autocomplete",function(b){j=b.keyCode;switch(b.keyCode){case d.UP:b.preventDefault();if(l.visible()){l.prev()}else{o(0,true)}break;case d.DOWN:b.preventDefault();if(l.visible()){l.next()}else{o(0,true)}break;case d.PAGEUP:b.preventDefault();if(l.visible()){l.pageUp()}else{o(0,true)}break;case d.PAGEDOWN:b.preventDefault();if(l.visible()){l.pageDown()}else{o(0,true)}break;case c.multiple&&a.trim(c.multipleSeparator)==","&&d.COMMA:case d.TAB:case d.RETURN:if(n()){b.preventDefault();m=true;return false}break;case d.ESC:l.hide();break;default:clearTimeout(f);f=setTimeout(o,c.delay);break}}).focus(function(){i++}).blur(function(){i=0;if(!k.mouseDownOnSelect){s()}}).click(function(){if(i++>1&&!l.visible()){o(0,true)}}).bind("search",function(){function c(a,c){var d;if(c&&c.length){for(var f=0;f1?arguments[1]:null;a.each(p(e.val()),function(a,b){v(b,c,c)})}).bind("flushCache",function(){h.flush()}).bind("setOptions",function(){a.extend(c,arguments[1]);if("data"in arguments[1])h.populate()}).bind("unautocomplete",function(){l.unbind();e.unbind();a(b.form).unbind(".autocomplete")});};a.Autocompleter.defaults={inputClass:"ui-autocomplete-input",resultsClass:"ui-autocomplete-results",loadingClass:"ui-autocomplete-loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(a){return a[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(a,b){return a.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"$1")},scroll:true,scrollHeight:180};a.extend(a.ui.autocomplete,{defaults:a.Autocompleter.defaults});a.Autocompleter.Cache=function(b){function h(){c={};d=0}function g(){if(!b.data)return false;var c={},d=0;if(!b.url)b.cacheLength=1;c[""]=[];for(var e=0,g=b.data.length;eb.cacheLength){h()}if(!c[a]){d++}c[a]=e}function e(a,c){if(!b.matchCase)a=a.toLowerCase();var d=a.indexOf(c);if(d==-1)return false;return d==0||b.matchContains}var c={};var d=0;setTimeout(g,25);return{flush:h,add:f,populate:g,load:function(f){if(!b.cacheLength||!d)return null;if(!b.url&&b.matchContains){var g=[];for(var h in c){if(h.length>0){var i=c[h];a.each(i,function(a,b){if(e(b.value,f)){g.push(b)}})}}return g}else if(c[f]){return c[f]}else if(b.matchSubset){for(var j=f.length-1;j>=b.minChars;j--){var i=c[f.substr(0,j)];if(i){var g=[];a.each(i,function(a,b){if(e(b.value,f)){g[g.length]=b}});return g}}}return null}}};a.Autocompleter.Select=function(b,c,d,e){function s(){m.empty();var c=r(i.length);for(var d=0;d").html(b.highlight(e,j)).addClass(d%2==0?"ui-autocomplete-even":"ui-autocomplete-odd").appendTo(m)[0];a.data(k,"ui-autocomplete-data",i[d])}g=m.find("li");if(b.selectFirst){g.slice(0,1).addClass(f.ACTIVE);h=0}if(a.fn.bgiframe)m.bgiframe()}function r(a){return b.max&&b.max=g.size()){h=0}}function p(a){g.slice(h,h+1).removeClass(f.ACTIVE);q(a);var c=g.slice(h,h+1).addClass(f.ACTIVE);if(b.scroll){var d=0;g.slice(0,h).each(function(){d+=this.offsetHeight});if(d+c[0].offsetHeight-m.scrollTop()>m[0].clientHeight){m.scrollTop(d+c[0].offsetHeight-m.innerHeight())}else if(d").hide().addClass(b.resultsClass).css("position","absolute").appendTo(document.body);m=a("
    ").appendTo(l).mouseover(function(b){if(o(b).nodeName&&o(b).nodeName.toUpperCase()=="LI"){h=a("li",m).removeClass(f.ACTIVE).index(o(b));a(o(b)).addClass(f.ACTIVE)}}).click(function(b){a(o(b)).addClass(f.ACTIVE);d();c.focus();return false}).mousedown(function(){e.mouseDownOnSelect=true}).mouseup(function(){e.mouseDownOnSelect=false});if(b.width>0)l.css("width",b.width);k=false}var f={ACTIVE:"ui-autocomplete-over"};var g,h=-1,i,j="",k=true,l,m;return{display:function(a,b){n();i=a;j=b;s()},next:function(){p(1)},prev:function(){p(-1)},pageUp:function(){if(h!=0&&h-8<0){p(-h)}else{p(-8)}},pageDown:function(){if(h!=g.size()-1&&h+8>g.size()){p(g.size()-1-h)}else{p(8)}},hide:function(){l&&l.hide();g&&g.removeClass(f.ACTIVE);h=-1;a(c).triggerHandler("autocompletehide",[{},{options:b}],b["hide"])},visible:function(){return l&&l.is(":visible")},current:function(){return this.visible()&&(g.filter("."+f.ACTIVE)[0]||b.selectFirst&&g[0])},show:function(){var d=a(c).offset();l.css({width:typeof b.width=="string"||b.width>0?b.width:a(c).width(),top:d.top+c.offsetHeight,left:d.left}).show();if(b.scroll){m.scrollTop(0);m.css({maxHeight:b.scrollHeight,overflow:"auto"});if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var e=0;g.each(function(){e+=this.offsetHeight});var f=e>b.scrollHeight;m.css("height",f?b.scrollHeight:e);if(!f){g.width(m.width()-parseInt(g.css("padding-left"))-parseInt(g.css("padding-right")))}}}a(c).triggerHandler("autocompleteshow",[{},{options:b}],b["show"])},selected:function(){var b=g&&g.filter("."+f.ACTIVE).removeClass(f.ACTIVE);return b&&b.length&&a.data(b[0],"ui-autocomplete-data")},emptyList:function(){m&&m.empty()},unbind:function(){l&&l.remove()}}};a.Autocompleter.Selection=function(a,b,c){if(a.createTextRange){var d=a.createTextRange();d.collapse(true);d.moveStart("character",b);d.moveEnd("character",c);d.select()}else if(a.setSelectionRange){a.setSelectionRange(b,c)}else{if(a.selectionStart){a.selectionStart=b;a.selectionEnd=c}}a.focus()}})(jQuery);(function(a){a.widget("ui.tabs",{_init:function(){this.options.event+=".tabs";this._tabify(true)},_setData:function(a,b){if(/^selected/.test(a))this.select(b);else{this.options[a]=b;this._tabify()}},length:function(){return this.$tabs.length},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+a.data(b)},ui:function(a,b){return{options:this.options,tab:a,panel:b,index:this.$tabs.index(a)}},_tabify:function(b){function p(a,b,c,e){b.addClass(d.selectedClass).siblings().removeClass(d.selectedClass);n(a,c,e)}function o(b,e,f){if(j===k)e.css("display","block");e.animate(j,j.duration||l,function(){e.removeClass(d.hideClass).css(m);if(a.browser.msie&&j.opacity)e[0].style.filter="";c._trigger("show",null,c.ui(b,e[0]))})}function n(a,b,c){b.hide();o(a,c,b)}this.$lis=a("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return a("a",this)[0]});this.$panels=a([]);var c=this,d=this.options;this.$tabs.each(function(b,e){if(e.hash&&e.hash.replace("#",""))c.$panels=c.$panels.add(e.hash);else if(a(e).attr("href")!="#"){a.data(e,"href.tabs",e.href);a.data(e,"load.tabs",e.href);var f=c._tabId(e);e.href="#"+f;var g=a("#"+f);if(!g.length){g=a(d.panelTemplate).attr("id",f).addClass(d.panelClass).insertAfter(c.$panels[b-1]||c.element);g.data("destroy.tabs",true)}c.$panels=c.$panels.add(g)}else d.disabled.push(b+1)});if(b){this.element.addClass(d.navClass);this.$panels.each(function(){var b=a(this);b.addClass(d.panelClass)});if(d.selected===undefined){if(location.hash){this.$tabs.each(function(b,c){if(c.hash==location.hash){d.selected=b;if(a.browser.msie||a.browser.opera){var e=a(location.hash),f=e.attr("id");e.attr("id","");setTimeout(function(){e.attr("id",f)},500)}scrollTo(0,0);return false}})}else if(d.cookie){var e=parseInt(a.cookie("ui-tabs-"+a.data(c.element[0])),10);if(e&&c.$tabs[e])d.selected=e}else if(c.$lis.filter("."+d.selectedClass).length)d.selected=c.$lis.index(c.$lis.filter("."+d.selectedClass)[0])}d.selected=d.selected===null||d.selected!==undefined?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.$lis.filter("."+d.disabledClass),function(a,b){return c.$lis.index(a)}))).sort();if(a.inArray(d.selected,d.disabled)!=-1)d.disabled.splice(a.inArray(d.selected,d.disabled),1);this.$panels.addClass(d.hideClass);this.$lis.removeClass(d.selectedClass);if(d.selected!==null){this.$panels.eq(d.selected).show().removeClass(d.hideClass);this.$lis.eq(d.selected).addClass(d.selectedClass);var f=function(){c._trigger("show",null,c.ui(c.$tabs[d.selected],c.$panels[d.selected]))};if(a.data(this.$tabs[d.selected],"load.tabs"))this.load(d.selected,f);else f()}a(window).bind("unload",function(){c.$tabs.unbind(".tabs");c.$lis=c.$tabs=c.$panels=null})}else d.selected=this.$lis.index(this.$lis.filter("."+d.selectedClass)[0]);if(d.cookie)a.cookie("ui-tabs-"+a.data(c.element[0]),d.selected,d.cookie);for(var g=0,h;h=this.$lis[g];g++)a(h)[a.inArray(g,d.disabled)!=-1&&!a(h).hasClass(d.selectedClass)?"addClass":"removeClass"](d.disabledClass);if(d.cache===false)this.$tabs.removeData("cache.tabs");var i,j,k={"min-width":0,duration:1},l="normal";if(d.fx&&d.fx.constructor==Array)i=d.fx[0]||k,j=d.fx[1]||k;else i=j=d.fx||k;var m={display:"",overflow:"",height:""};if(!a.browser.msie)m.opacity="";this.$tabs.unbind(".tabs").bind(d.event,function(){var b=a(this).parents("li:eq(0)"),e=c.$panels.filter(":visible"),f=a(this.hash);if(b.hasClass(d.selectedClass)&&!d.unselect||b.hasClass(d.disabledClass)||a(this).hasClass(d.loadingClass)||c._trigger("select",null,c.ui(this,f[0]))===false){this.blur();return false}c.options.selected=c.$tabs.index(this);if(d.unselect){if(b.hasClass(d.selectedClass)){c.options.selected=null;b.removeClass(d.selectedClass);c.$panels.stop();n(this,e);this.blur();return false}else if(!e.length){c.$panels.stop();var g=this;c.load(c.$tabs.index(this),function(){b.addClass(d.selectedClass).addClass(d.unselectClass);o(g,f)});this.blur();return false}}if(d.cookie)a.cookie("ui-tabs-"+a.data(c.element[0]),c.options.selected,d.cookie);c.$panels.stop();if(f.length){var g=this;c.load(c.$tabs.index(this),e.length?function(){p(g,b,e,f)}:function(){b.addClass(d.selectedClass);o(g,f)})}else throw"jQuery UI Tabs: Mismatching fragment identifier.";if(a.browser.msie)this.blur();return false});if(!/^click/.test(d.event))this.$tabs.bind("click.tabs",function(){return false})},add:function(b,c,d){if(d==undefined)d=this.$tabs.length;var e=this.options;var f=a(e.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,c));f.data("destroy.tabs",true);var g=b.indexOf("#")==0?b.replace("#",""):this._tabId(a("a:first-child",f)[0]);var h=a("#"+g);if(!h.length){h=a(e.panelTemplate).attr("id",g).addClass(e.hideClass).data("destroy.tabs",true)}h.addClass(e.panelClass);if(d>=this.$lis.length){f.appendTo(this.element);h.appendTo(this.element[0].parentNode)}else{f.insertBefore(this.$lis[d]);h.insertBefore(this.$panels[d])}e.disabled=a.map(e.disabled,function(a,b){return a>=d?++a:a});this._tabify();if(this.$tabs.length==1){f.addClass(e.selectedClass);h.removeClass(e.hideClass);var i=a.data(this.$tabs[0],"load.tabs");if(i)this.load(d,i)}this._trigger("add",null,this.ui(this.$tabs[d],this.$panels[d]))},remove:function(b){var c=this.options,d=this.$lis.eq(b).remove(),e=this.$panels.eq(b).remove();if(d.hasClass(c.selectedClass)&&this.$tabs.length>1)this.select(b+(b+1=b?--a:a});this._tabify();this._trigger("remove",null,this.ui(d.find("a")[0],e[0]))},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1)return;var d=this.$lis.eq(b).removeClass(c.disabledClass);if(a.browser.safari){d.css("display","inline-block");setTimeout(function(){d.css("display","block")},0)}c.disabled=a.grep(c.disabled,function(a,c){return a!=b});this._trigger("enable",null,this.ui(this.$tabs[b],this.$panels[b]))},disable:function(a){var b=this,c=this.options;if(a!=c.selected){this.$lis.eq(a).addClass(c.disabledClass);c.disabled.push(a);c.disabled.sort();this._trigger("disable",null,this.ui(this.$tabs[a],this.$panels[a]))}},select:function(a){if(typeof a=="string")a=this.$tabs.index(this.$tabs.filter("[href$="+a+"]")[0]);this.$tabs.eq(a).trigger(this.options.event)},load:function(b,c){var d=this,e=this.options,f=this.$tabs.eq(b),g=f[0],h=c==undefined||c===false,i=f.data("load.tabs");c=c||function(){};if(!i||!h&&a.data(g,"cache.tabs")){c();return}var j=function(b){var c=a(b),d=c.find("*:last");return d.length&&d.is(":not(img)")&&d||c};var k=function(){d.$tabs.filter("."+e.loadingClass).removeClass(e.loadingClass).each(function(){if(e.spinner)j(this).parent().html(j(this).data("label.tabs"))});d.xhr=null};if(e.spinner){var l=j(g).html();j(g).wrapInner("").find("em").data("label.tabs",l).html(e.spinner)}var m=a.extend({},e.ajaxOptions,{url:i,success:function(f,h){a(g.hash).html(f);k();if(e.cache)a.data(g,"cache.tabs",true);d._trigger("load",null,d.ui(d.$tabs[b],d.$panels[b]));e.ajaxOptions.success&&e.ajaxOptions.success(f,h);c()}});if(this.xhr){this.xhr.abort();k()}f.addClass(e.loadingClass);setTimeout(function(){d.xhr=a.ajax(m)},0)},url:function(a,b){this.$tabs.eq(a).removeData("cache.tabs").data("load.tabs",b)},destroy:function(){var b=this.options;this.element.unbind(".tabs").removeClass(b.navClass).removeData("tabs");this.$tabs.each(function(){var b=a.data(this,"href.tabs");if(b)this.href=b;var c=a(this).unbind(".tabs");a.each(["href","load","cache"],function(a,b){c.removeData(b+".tabs")})});this.$lis.add(this.$panels).each(function(){if(a.data(this,"destroy.tabs"))a(this).remove();else a(this).removeClass([b.selectedClass,b.unselectClass,b.disabledClass,b.panelClass,b.hideClass].join(" "))})}});a.ui.tabs.defaults={unselect:false,event:"click",disabled:[],cookie:null,spinner:"Loading…",cache:false,idPrefix:"ui-tabs-",ajaxOptions:{},fx:null,tabTemplate:"",panelTemplate:"
    ",navClass:"ui-tabs-nav",selectedClass:"ui-tabs-selected",unselectClass:"ui-tabs-unselect",disabledClass:"ui-tabs-disabled",panelClass:"ui-tabs-panel",hideClass:"ui-tabs-hide",loadingClass:"ui-tabs-loading"};a.ui.tabs.getter="length";a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(a,b){function f(a){if(!a||a.clientX){clearInterval(c.rotation)}}function e(){c.rotation=setInterval(function(){d=++dthis.pp.left-d.distance&&c[0]this.pp.top-d.distance&&c[1] *"}})})(jQuery);(function(a){function c(a,c){var d;do{d=jQuery.curCSS(a,c);if(d!=""&&d!="transparent"||jQuery.nodeName(a,"body"))break;c="backgroundColor"}while(a=a.parentNode);return b(d)}function b(a){var b;if(a&&a.constructor==Array&&a.length==3)return a;if(b=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(a))return[parseInt(b[1]),parseInt(b[2]),parseInt(b[3])];if(b=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(a))return[parseFloat(b[1])*2.55,parseFloat(b[2])*2.55,parseFloat(b[3])*2.55];if(b=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))return[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)];if(b=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(a))return[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)];if(b=/rgba\(0, 0, 0, 0\)/.exec(a))return d["transparent"];return d[jQuery.trim(a).toLowerCase()]}a.effects=a.effects||{};a.extend(a.effects,{save:function(b,c){for(var d=0;d');var c=a.parent();if(a.css("position")=="static"){c.css({position:"relative"});a.css({position:"relative"})}else{var d=a.css("top");if(isNaN(parseInt(d)))d="auto";var e=a.css("left");if(isNaN(parseInt(e)))e="auto";c.css({position:a.css("position"),top:d,left:e,zIndex:a.css("z-index")}).show();a.css({position:"relative",top:0,left:0})}c.css(b);return c},removeWrapper:function(a){if(a.parent().attr("id")=="fxWrapper")return a.parent().replaceWith(a);return a},setTransition:function(b,c,d,e){e=e||{};a.each(c,function(a,c){unit=b.cssUnit(c);if(unit[0]>0)e[c]=unit[0]*d+unit[1]});return e},animateClass:function(b,c,d,e){var f=typeof d=="function"?d:e?e:null;var g=typeof d=="object"?d:null;return this.each(function(){var d={};var e=a(this);var h=e.attr("style")||"";if(typeof h=="object")h=h["cssText"];if(b.toggle){e.hasClass(b.toggle)?b.remove=b.toggle:b.add=b.toggle}var i=a.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);if(b.add)e.addClass(b.add);if(b.remove)e.removeClass(b.remove);var j=a.extend({},document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle);if(b.add)e.removeClass(b.add);if(b.remove)e.addClass(b.remove);for(var k in j){if(typeof j[k]!="function"&&j[k]&&k.indexOf("Moz")==-1&&k.indexOf("length")==-1&&j[k]!=i[k]&&(k.match(/color/i)||!k.match(/color/i)&&!isNaN(parseInt(j[k],10)))&&(i.position!="static"||i.position=="static"&&!k.match(/left|top|bottom|right/)))d[k]=j[k]}e.animate(d,c,g,function(){if(typeof a(this).attr("style")=="object"){a(this).attr("style")["cssText"]="";a(this).attr("style")["cssText"]=h}else a(this).attr("style",h);if(b.add)a(this).addClass(b.add);if(b.remove)a(this).removeClass(b.remove);if(f)f.apply(this,arguments)})})}});a.fn.extend({_show:a.fn.show,_hide:a.fn.hide,__toggle:a.fn.toggle,_addClass:a.fn.addClass,_removeClass:a.fn.removeClass,_toggleClass:a.fn.toggleClass,effect:function(b,c,d,e){return a.effects[b]?a.effects[b].call(this,{method:b,options:c||{},duration:d,callback:e}):null},show:function(){if(!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))return this._show.apply(this,arguments);else{var a=arguments[1]||{};a["mode"]="show";return this.effect.apply(this,[arguments[0],a,arguments[2]||a.duration,arguments[3]||a.callback])}},hide:function(){if(!arguments[0]||arguments[0].constructor==Number||/(slow|normal|fast)/.test(arguments[0]))return this._hide.apply(this,arguments);else{var a=arguments[1]||{};a["mode"]="hide";return this.effect.apply(this,[arguments[0],a,arguments[2]||a.duration,arguments[3]||a.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 a=arguments[1]||{};a["mode"]="toggle";return this.effect.apply(this,[arguments[0],a,arguments[2]||a.duration,arguments[3]||a.callback])}},addClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{add:b},c,d,e]):this._addClass(b)},removeClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{remove:b},c,d,e]):this._removeClass(b)},toggleClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{toggle:b},c,d,e]):this._toggleClass(b)},morph:function(b,c,d,e,f){return a.effects.animateClass.apply(this,[{add:c,remove:b},d,e,f])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(b){var c=this.css(b),d=[];a.each(["em","px","%","pt"],function(a,b){if(c.indexOf(b)>0)d=[parseFloat(c),b]});return d}});jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(a,d){jQuery.fx.step[d]=function(a){if(a.state==0){a.start=c(a.elem,d);a.end=b(a.end)}a.elem.style[d]="rgb("+[Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2]),255),0)].join(",")+")"}});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(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b+c;return-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b+c;return d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b+c;return-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){if((b/=e/2)<1)return d/2*b*b*b*b*b+c;return d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){if(b==0)return c;if(b==e)return c+d;if((b/=e/2)<1)return d/2*Math.pow(2,10*(b-1))+c;return d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){if((b/=e/2)<1)return-d/2*(Math.sqrt(1-b*b)-1)+c;return d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158;var g=0;var h=d;if(b==0)return c;if((b/=e)==1)return c+d;if(!g)g=e*.3;if(h").css({position:"absolute",visibility:"visible",left:-j*(g/d),top:-i*(h/c)}).parent().addClass("effects-explode").css({position:"absolute",overflow:"hidden",width:g/d,height:h/c,left:f.left+j*(g/d)+(b.options.mode=="show"?(j-Math.floor(d/2))*(g/d):0),top:f.top+i*(h/c)+(b.options.mode=="show"?(i-Math.floor(c/2))*(h/c):0),opacity:b.options.mode=="show"?0:1}).animate({left:f.left+j*(g/d)+(b.options.mode=="show"?0:(j-Math.floor(d/2))*(g/d)),top:f.top+i*(h/c)+(b.options.mode=="show"?0:(i-Math.floor(c/2))*(h/c)),opacity:b.options.mode=="show"?1:0},b.duration||500)}}setTimeout(function(){b.options.mode=="show"?e.css({visibility:"visible"}):e.css({visibility:"visible"}).hide();if(b.callback)b.callback.apply(e[0]);e.dequeue();a(".effects-explode").remove()},b.duration||500)})}})(jQuery);(function(a){a.effects.fold=function(b){return this.queue(function(){var c=a(this),d=["position","top","left"];var e=a.effects.setMode(c,b.options.mode||"hide");var f=b.options.size||15;var g=!!b.options.horizFirst;a.effects.save(c,d);c.show();var h=a.effects.createWrapper(c).css({overflow:"hidden"});var i=e=="show"!=g;var j=i?["width","height"]:["height","width"];var k=i?[h.width(),h.height()]:[h.height(),h.width()];var l=/([0-9]+)%/.exec(f);if(l)f=parseInt(l[1])/100*k[e=="hide"?0:1];if(e=="show")h.css(g?{height:0,width:f}:{height:f,width:0});var m={},n={};m[j[0]]=e=="show"?k[0]:f;n[j[1]]=e=="show"?k[1]:0;h.animate(m,b.duration/2,b.options.easing).animate(n,b.duration/2,b.options.easing,function(){if(e=="hide")c.hide();a.effects.restore(c,d);a.effects.removeWrapper(c);if(b.callback)b.callback.apply(c[0],arguments);c.dequeue()})})}})(jQuery);(function(a){a.effects.highlight=function(b){return this.queue(function(){var c=a(this),d=["backgroundImage","backgroundColor","opacity"];var e=a.effects.setMode(c,b.options.mode||"show");var f=b.options.color||"#ffff99";var g=c.css("backgroundColor");a.effects.save(c,d);c.show();c.css({backgroundImage:"none",backgroundColor:f});var h={backgroundColor:g};if(e=="hide")h["opacity"]=0;c.animate(h,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(e=="hide")c.hide();a.effects.restore(c,d);if(e=="show"&&jQuery.browser.msie)this.style.removeAttribute("filter");if(b.callback)b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.pulsate=function(b){return this.queue(function(){var c=a(this);var d=a.effects.setMode(c,b.options.mode||"show");var e=b.options.times||5;if(d=="hide")e--;if(c.is(":hidden")){c.css("opacity",0);c.show();c.animate({opacity:1},b.duration/2,b.options.easing);e=e-2}for(var f=0;f').appendTo(document.body);if(b.options.className)g.addClass(b.options.className);g.addClass(b.options.className);g.css({top:f.top,left:f.left,height:c.outerHeight()-parseInt(g.css("borderTopWidth"))-parseInt(g.css("borderBottomWidth")),width:c.outerWidth()-parseInt(g.css("borderLeftWidth"))-parseInt(g.css("borderRightWidth")),position:"absolute"});f=e.offset();animation={top:f.top,left:f.left,height:e.outerHeight()-parseInt(g.css("borderTopWidth"))-parseInt(g.css("borderBottomWidth")),width:e.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(c[0],arguments);c.dequeue()})})}})(jQuery) !function(p){var m=p.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);function y(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments,""))}function x(e,n,t,i){if(!n.busy){var s=n.container,o=e[n.currSlide],c=e[n.nextSlide];if(0!==s.cycleTimeout||t)if(t||s.cyclePause||!(n.autostop&&--n.countdown<=0||n.nowrap&&!n.random&&n.nextSlide=e.length){if(t.nowrap)return!1;t.nextSlide=0}return t.prevNextClick&&"function"==typeof t.prevNextClick&&t.prevNextClick(0=h.elements.length?void y("invalid slide index: "+e):(h.nextSlide=e,this.cycleTimeout&&(clearTimeout(this.cycleTimeout),this.cycleTimeout=0),void x(h.elements,h,1,e>=h.currSlide)):void y("options not found, can not advance slide")}this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=0,this.cyclePause=0;var i=p(this),s=h.slideExpr?p(h.slideExpr,this):i.children(),o=s.get();if(o.length<2)y("terminating; too few slides: "+o.length);else{var c=p.extend({},p.fn.cycle.defaults,h||{},p.metadata?i.metadata():p.meta?i.data():{});c.autostop&&(c.countdown=c.autostopCount||o.length),i.data("cycle.opts",c),c.container=this,c.elements=o,c.before=c.before?[c.before]:[],c.after=c.after?[c.after]:[],c.after.unshift(function(){c.busy=0}),c.continuous&&c.after.push(function(){x(o,c,0,!c.rev)}),m&&c.cleartype&&!c.cleartypeNoBg&&I(s);var t=this.className;if(c.width=parseInt((t.match(/w:(\d+)/)||[])[1])||c.width,c.height=parseInt((t.match(/h:(\d+)/)||[])[1])||c.height,c.timeout=parseInt((t.match(/t:(\d+)/)||[])[1])||c.timeout,"static"==i.css("position")&&i.css("position","relative"),c.width&&i.width(c.width),c.height&&"auto"!=c.height&&i.height(c.height),c.random){c.randomMap=[];for(var n=0;n=o.length&&(c.startingSlide=0);var r=c.startingSlide||0;s.css({position:"absolute",top:0,left:0}).hide().each(function(e){var t=r?r<=e?o.length-(e-r):r-e:o.length-e;p(this).css("z-index",t)}),p(o[r]).css("opacity",1).show(),p.browser.msie&&o[r].style.removeAttribute("filter"),c.fit&&c.width&&s.width(c.width),c.fit&&c.height&&"auto"!=c.height&&s.height(c.height),c.pause&&i.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});var l=p.fn.cycle.transitions[c.fx];if(p.isFunction(l)?l(i,s,c):"custom"!=c.fx&&y("unknown transition: "+c.fx),s.each(function(){var e=p(this);this.cycleH=c.fit&&c.height?c.height:e.height(),this.cycleW=c.fit&&c.width?c.width:e.width()}),c.cssBefore=c.cssBefore||{},c.animIn=c.animIn||{},c.animOut=c.animOut||{},s.not(":eq("+r+")").css(c.cssBefore),c.cssFirst&&p(s[r]).css(c.cssFirst),c.timeout)for(c.speed.constructor==String&&(c.speed={slow:600,fast:200}[c.speed]||400),c.sync||(c.speed=c.speed/2);c.timeout-c.speed<250;)c.timeout+=c.speed;c.easing&&(c.easeIn=c.easeOut=c.easing),c.speedIn||(c.speedIn=c.speed),c.speedOut||(c.speedOut=c.speed),c.slideCount=o.length,c.currSlide=r,c.random?(c.nextSlide=c.currSlide,++c.randomIndex==o.length&&(c.randomIndex=0),c.nextSlide=c.randomMap[c.randomIndex]):c.nextSlide=c.startingSlide>=o.length-1?0:c.startingSlide+1;var f,a,d,u=s[r];c.before.length&&c.before[0].apply(u,[u,u,c,!0]),1'+(n+1)+"");0==o.parents("body").length&&o.appendTo(t),o.bind(s.pagerEvent,function(){s.nextSlide=n;var e=s.container,t=e.cycleTimeout;return t&&(clearTimeout(t),e.cycleTimeout=0),"function"==typeof s.pagerClick&&s.pagerClick(s.nextSlide,i[s.nextSlide]),x(i,s,1,s.currSlide