/*
 * jQuery UI Widget 1.8.16
 *
 * Copyright 2011, 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/Widget
 */
(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(f){for(var g=0,h;(h=f[g])!=null;g++){try{b(h).triggerHandler("remove")}catch(j){}}c(f)}}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(function(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(g){}})}}return a.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],k;f=f.split(".")[1];k=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][k]=function(l){return !!b.data(l,f)};b[g]=b[g]||{};b[g][f]=function(l,m){if(arguments.length){this._createWidget(l,m)}};var j=new h();j.options=b.extend(true,{},j.options);b[g][f].prototype=b.extend(true,j,{namespace:g,widgetName:f,widgetEventPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:k},e);b.widget.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(j){var g=typeof j==="string",h=Array.prototype.slice.call(arguments,1),k=this;j=!g&&h.length?b.extend.apply(null,[true,j].concat(h)):j;if(g&&j.charAt(0)==="_"){return k}if(g){this.each(function(){var l=b.data(this,f),m=l&&b.isFunction(l[j])?l[j].apply(l,h):l;if(m!==l&&m!==d){k=m;return false}})}else{this.each(function(){var l=b.data(this,f);if(l){l.option(j||{})._init()}else{b.data(this,f,new e(j,this))}})}return k}};b.Widget=function(e,f){if(arguments.length){this._createWidget(e,f)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,g){b.data(g,this.widgetName,this);this.element=b(g);this.options=b.extend(true,{},this.options,this._getCreateOptions(),f);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_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(f,g){var e=f;if(arguments.length===0){return b.extend({},this.options)}if(typeof f==="string"){if(g===d){return this.options[f]}e={};e[f]=g}this._setOptions(e);return this},_setOptions:function(f){var e=this;b.each(f,function(g,h){e._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;if(e==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(f,g,h){var k=this.options[f];g=b.Event(g);g.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();h=h||{};if(g.originalEvent){for(var e=b.event.props.length,j;e;){j=b.event.props[--e];g[j]=g.originalEvent[j]}}this.element.trigger(g,h);return !(b.isFunction(k)&&k.call(this.element[0],g,h)===false||g.isDefaultPrevented())}}})(jQuery);
/*
 * jQuery UI Mouse 1.8.16
 *
 * Copyright 2011, 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/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(b,c){var a=false;b(document).mouseup(function(d){a=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(e){return d._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(true===b.data(e.target,d.widgetName+".preventClickEvent")){b.removeData(e.target,d.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(f){if(a){return}(this._mouseStarted&&this._mouseUp(f));this._mouseDownEvent=f;var e=this,g=(f.which==1),d=(typeof this.options.cancel=="string"&&f.target.nodeName?b(f.target).closest(this.options.cancel).length:false);if(!g||d||!this._mouseCapture(f)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(f)&&this._mouseDelayMet(f)){this._mouseStarted=(this._mouseStart(f)!==false);if(!this._mouseStarted){f.preventDefault();return true}}if(true===b.data(f.target,this.widgetName+".preventClickEvent")){b.removeData(f.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(h){return e._mouseMove(h)};this._mouseUpDelegate=function(h){return e._mouseUp(h)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);f.preventDefault();a=true;return true},_mouseMove:function(d){if(b.browser.msie&&!(document.documentMode>=9)&&!d.button){return this._mouseUp(d)}if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,d)!==false);(this._mouseStarted?this._mouseDrag(d):this._mouseUp(d))}return !this._mouseStarted},_mouseUp:function(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(d.target==this._mouseDownEvent.target){b.data(d.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return(Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance)},_mouseDelayMet:function(d){return this.mouseDelayMet},_mouseStart:function(d){},_mouseDrag:function(d){},_mouseStop:function(d){},_mouseCapture:function(d){return true}})})(jQuery);(function(b,c){var a=5;b.widget("ui.slider",b.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var e=this,k=this.options,j=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),h="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",d=(k.values&&k.values.length)||1,g=[];this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(k.disabled?" ui-slider-disabled ui-disabled":""));this.range=b([]);if(k.range){if(k.range===true){if(!k.values){k.values=[this._valueMin(),this._valueMin()]}if(k.values.length&&k.values.length!==2){k.values=[k.values[0],k.values[0]]}}this.range=b("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+((k.range==="min"||k.range==="max")?" ui-slider-range-"+k.range:""))}for(var f=j.length;f<d;f+=1){g.push(h)}this.handles=j.add(b(g.join("")).appendTo(e.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(l){l.preventDefault()}).hover(function(){if(!k.disabled){b(this).addClass("ui-state-hover")}},function(){b(this).removeClass("ui-state-hover")}).focus(function(){if(!k.disabled){b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}else{b(this).blur()}}).blur(function(){b(this).removeClass("ui-state-focus")});this.handles.each(function(l){b(this).data("index.ui-slider-handle",l)});this.handles.keydown(function(q){var n=true,m=b(this).data("index.ui-slider-handle"),r,o,l,p;if(e.options.disabled){return}switch(q.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.PAGE_UP:case b.ui.keyCode.PAGE_DOWN:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:n=false;if(!e._keySliding){e._keySliding=true;b(this).addClass("ui-state-active");r=e._start(q,m);if(r===false){return}}break}p=e.options.step;if(e.options.values&&e.options.values.length){o=l=e.values(m)}else{o=l=e.value()}switch(q.keyCode){case b.ui.keyCode.HOME:l=e._valueMin();break;case b.ui.keyCode.END:l=e._valueMax();break;case b.ui.keyCode.PAGE_UP:l=e._trimAlignValue(o+((e._valueMax()-e._valueMin())/a));break;case b.ui.keyCode.PAGE_DOWN:l=e._trimAlignValue(o-((e._valueMax()-e._valueMin())/a));break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(o===e._valueMax()){return}l=e._trimAlignValue(o+p);break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(o===e._valueMin()){return}l=e._trimAlignValue(o-p);break}e._slide(q,m,l);return n}).keyup(function(m){var l=b(this).data("index.ui-slider-handle");if(e._keySliding){e._keySliding=false;e._stop(m,l);e._change(m,l);b(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(f){var g=this.options,k,m,e,h,p,l,n,j,d;if(g.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();k={x:f.pageX,y:f.pageY};m=this._normValueFromMouse(k);e=this._valueMax()-this._valueMin()+1;p=this;this.handles.each(function(o){var q=Math.abs(m-p.values(o));if(e>q){e=q;h=b(this);l=o}});if(g.range===true&&this.values(1)===g.min){l+=1;h=b(this.handles[l])}n=this._start(f,l);if(n===false){return false}this._mouseSliding=true;p._handleIndex=l;h.addClass("ui-state-active").focus();j=h.offset();d=!b(f.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=d?{left:0,top:0}:{left:f.pageX-j.left-(h.width()/2),top:f.pageY-j.top-(h.height()/2)-(parseInt(h.css("borderTopWidth"),10)||0)-(parseInt(h.css("borderBottomWidth"),10)||0)+(parseInt(h.css("marginTop"),10)||0)};if(!this.handles.hasClass("ui-state-hover")){this._slide(f,l,m)}this._animateOff=true;return true},_mouseStart:function(d){return true},_mouseDrag:function(f){var d={x:f.pageX,y:f.pageY},e=this._normValueFromMouse(d);this._slide(f,this._handleIndex,e);return false},_mouseStop:function(d){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(d,this._handleIndex);this._change(d,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal"},_normValueFromMouse:function(e){var d,h,g,f,j;if(this.orientation==="horizontal"){d=this.elementSize.width;h=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;h=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}g=(h/d);if(g>1){g=1}if(g<0){g=0}if(this.orientation==="vertical"){g=1-g}f=this._valueMax()-this._valueMin();j=this._valueMin()+g*f;return this._trimAlignValue(j)},_start:function(f,e){var d={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(e);d.values=this.values()}return this._trigger("start",f,d)},_slide:function(h,g,f){var d,e,j;if(this.options.values&&this.options.values.length){d=this.values(g?0:1);if((this.options.values.length===2&&this.options.range===true)&&((g===0&&f>d)||(g===1&&f<d))){f=d}if(f!==this.values(g)){e=this.values();e[g]=f;j=this._trigger("slide",h,{handle:this.handles[g],value:f,values:e});d=this.values(g?0:1);if(j!==false){this.values(g,f,true)}}}else{if(f!==this.value()){j=this._trigger("slide",h,{handle:this.handles[g],value:f});if(j!==false){this.value(f)}}}},_stop:function(f,e){var d={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(e);d.values=this.values()}this._trigger("stop",f,d)},_change:function(f,e){if(!this._keySliding&&!this._mouseSliding){var d={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(e);d.values=this.values()}this._trigger("change",f,d)}},value:function(d){if(arguments.length){this.options.value=this._trimAlignValue(d);this._refreshValue();this._change(null,0);return}return this._value()},values:function(e,h){var g,d,f;if(arguments.length>1){this.options.values[e]=this._trimAlignValue(h);this._refreshValue();this._change(null,e);return}if(arguments.length){if(b.isArray(arguments[0])){g=this.options.values;d=arguments[0];for(f=0;f<g.length;f+=1){g[f]=this._trimAlignValue(d[f]);this._change(null,f)}this._refreshValue()}else{if(this.options.values&&this.options.values.length){return this._values(e)}else{return this.value()}}}else{return this._values()}},_setOption:function(e,f){var d,g=0;if(b.isArray(this.options.values)){g=this.options.values.length}b.Widget.prototype._setOption.apply(this,arguments);switch(e){case"disabled":if(f){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.propAttr("disabled",true);this.element.addClass("ui-disabled")}else{this.handles.propAttr("disabled",false);this.element.removeClass("ui-disabled")}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(d=0;d<g;d+=1){this._change(null,d)}this._animateOff=false;break}},_value:function(){var d=this.options.value;d=this._trimAlignValue(d);return d},_values:function(d){var g,f,e;if(arguments.length){g=this.options.values[d];g=this._trimAlignValue(g);return g}else{f=this.options.values.slice();for(e=0;e<f.length;e+=1){f[e]=this._trimAlignValue(f[e])}return f}},_trimAlignValue:function(g){if(g<=this._valueMin()){return this._valueMin()}if(g>=this._valueMax()){return this._valueMax()}var d=(this.options.step>0)?this.options.step:1,f=(g-this._valueMin())%d,e=g-f;if(Math.abs(f)*2>=d){e+=(f>0)?d:(-d)}return parseFloat(e.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var g=this.options.range,f=this.options,n=this,e=(!this._animateOff)?f.animate:false,h,d={},j,l,k,m;if(this.options.values&&this.options.values.length){this.handles.each(function(p,o){h=(n.values(p)-n._valueMin())/(n._valueMax()-n._valueMin())*100;d[n.orientation==="horizontal"?"left":"bottom"]=h+"%";b(this).stop(1,1)[e?"animate":"css"](d,f.animate);if(n.options.range===true){if(n.orientation==="horizontal"){if(p===0){n.range.stop(1,1)[e?"animate":"css"]({left:h+"%"},f.animate)}if(p===1){n.range[e?"animate":"css"]({width:(h-j)+"%"},{queue:false,duration:f.animate})}}else{if(p===0){n.range.stop(1,1)[e?"animate":"css"]({bottom:(h)+"%"},f.animate)}if(p===1){n.range[e?"animate":"css"]({height:(h-j)+"%"},{queue:false,duration:f.animate})}}}j=h})}else{l=this.value();k=this._valueMin();m=this._valueMax();h=(m!==k)?(l-k)/(m-k)*100:0;d[n.orientation==="horizontal"?"left":"bottom"]=h+"%";this.handle.stop(1,1)[e?"animate":"css"](d,f.animate);if(g==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[e?"animate":"css"]({width:h+"%"},f.animate)}if(g==="max"&&this.orientation==="horizontal"){this.range[e?"animate":"css"]({width:(100-h)+"%"},{queue:false,duration:f.animate})}if(g==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[e?"animate":"css"]({height:h+"%"},f.animate)}if(g==="max"&&this.orientation==="vertical"){this.range[e?"animate":"css"]({height:(100-h)+"%"},{queue:false,duration:f.animate})}}}});b.extend(b.ui.slider,{version:"1.8.16"})}(jQuery));jQuery.effects||(function(h,e){h.effects={};h.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(o,n){h.fx.step[n]=function(p){if(!p.colorInit){p.start=m(p.elem,n);p.end=k(p.end);p.colorInit=true}p.elem.style[n]="rgb("+Math.max(Math.min(parseInt((p.pos*(p.end[0]-p.start[0]))+p.start[0],10),255),0)+","+Math.max(Math.min(parseInt((p.pos*(p.end[1]-p.start[1]))+p.start[1],10),255),0)+","+Math.max(Math.min(parseInt((p.pos*(p.end[2]-p.start[2]))+p.start[2],10),255),0)+")"}});function k(o){var n;if(o&&o.constructor==Array&&o.length==3){return o}if(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(o)){return[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)]}if(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(o)){return[parseFloat(n[1])*2.55,parseFloat(n[2])*2.55,parseFloat(n[3])*2.55]}if(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(o)){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}if(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(o)){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}if(n=/rgba\(0, 0, 0, 0\)/.exec(o)){return a.transparent}return a[h.trim(o).toLowerCase()]}function m(p,n){var o;do{o=h.curCSS(p,n);if(o!=""&&o!="transparent"||h.nodeName(p,"body")){break}n="backgroundColor"}while(p=p.parentNode);return k(o)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};var f=["add","remove","toggle"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function g(){var q=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,r={},o,p;if(q&&q.length&&q[0]&&q[q[0]]){var n=q.length;while(n--){o=q[n];if(typeof q[o]=="string"){p=o.replace(/\-(\w)/g,function(s,t){return t.toUpperCase()});r[p]=q[o]}}}else{for(o in q){if(typeof q[o]==="string"){r[o]=q[o]}}}return r}function b(o){var n,p;for(n in o){p=o[n];if(p==null||h.isFunction(p)||n in c||(/scrollbar/).test(n)||(!(/color/i).test(n)&&isNaN(parseFloat(p)))){delete o[n]}}return o}function j(n,p){var q={_:0},o;for(o in p){if(n[o]!=p[o]){q[o]=p[o]}}return q}h.effects.animateClass=function(n,o,q,p){if(h.isFunction(q)){p=q;q=null}return this.queue(function(){var u=h(this),r=u.attr("style")||" ",v=b(g.call(this)),t,s=u.attr("class");h.each(f,function(w,x){if(n[x]){u[x+"Class"](n[x])}});t=b(g.call(this));u.attr("class",s);u.animate(j(v,t),{queue:false,duration:o,easing:q,complete:function(){h.each(f,function(w,x){if(n[x]){u[x+"Class"](n[x])}});if(typeof u.attr("style")=="object"){u.attr("style").cssText="";u.attr("style").cssText=r}else{u.attr("style",r)}if(p){p.apply(this,arguments)}h.dequeue(this)}})})};h.fn.extend({_addClass:h.fn.addClass,addClass:function(o,n,q,p){return n?h.effects.animateClass.apply(this,[{add:o},n,q,p]):this._addClass(o)},_removeClass:h.fn.removeClass,removeClass:function(o,n,q,p){return n?h.effects.animateClass.apply(this,[{remove:o},n,q,p]):this._removeClass(o)},_toggleClass:h.fn.toggleClass,toggleClass:function(p,o,n,r,q){if(typeof o=="boolean"||o===e){if(!n){return this._toggleClass(p,o)}else{return h.effects.animateClass.apply(this,[(o?{add:p}:{remove:p}),n,r,q])}}else{return h.effects.animateClass.apply(this,[{toggle:p},o,n,r])}},switchClass:function(n,p,o,r,q){return h.effects.animateClass.apply(this,[{add:p,remove:n},o,r,q])}});h.extend(h.effects,{version:"1.8.16",save:function(o,p){for(var n=0;n<p.length;n++){if(p[n]!==null){o.data("ec.storage."+p[n],o[0].style[p[n]])}}},restore:function(o,p){for(var n=0;n<p.length;n++){if(p[n]!==null){o.css(p[n],o.data("ec.storage."+p[n]))}}},setMode:function(n,o){if(o=="toggle"){o=n.is(":hidden")?"show":"hide"}return o},getBaseline:function(o,p){var q,n;switch(o[0]){case"top":q=0;break;case"middle":q=0.5;break;case"bottom":q=1;break;default:q=o[0]/p.height}switch(o[1]){case"left":n=0;break;case"center":n=0.5;break;case"right":n=1;break;default:n=o[1]/p.width}return{x:n,y:q}},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper")){return n.parent()}var o={width:n.outerWidth(true),height:n.outerHeight(true),"float":n.css("float")},q=h("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),p=document.activeElement;n.wrap(q);if(n[0]===p||h.contains(n[0],p)){h(p).focus()}q=n.parent();if(n.css("position")=="static"){q.css({position:"relative"});n.css({position:"relative"})}else{h.extend(o,{position:n.css("position"),zIndex:n.css("z-index")});h.each(["top","left","bottom","right"],function(r,s){o[s]=n.css(s);if(isNaN(parseInt(o[s],10))){o[s]="auto"}});n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return q.css(o).show()},removeWrapper:function(n){var o,p=document.activeElement;if(n.parent().is(".ui-effects-wrapper")){o=n.parent().replaceWith(n);if(n[0]===p||h.contains(n[0],p)){h(p).focus()}return o}return n},setTransition:function(o,q,n,p){p=p||{};h.each(q,function(s,r){unit=o.cssUnit(r);if(unit[0]>0){p[r]=unit[0]*n+unit[1]}});return p}});function d(o,n,p,q){if(typeof o=="object"){q=n;p=null;n=o;o=n.effect}if(h.isFunction(n)){q=n;p=null;n={}}if(typeof n=="number"||h.fx.speeds[n]){q=p;p=n;n={}}if(h.isFunction(p)){q=p;p=null}n=n||{};p=p||n.duration;p=h.fx.off?0:typeof p=="number"?p:p in h.fx.speeds?h.fx.speeds[p]:h.fx.speeds._default;q=q||n.complete;return[o,n,p,q]}function l(n){if(!n||typeof n==="number"||h.fx.speeds[n]){return true}if(typeof n==="string"&&!h.effects[n]){return true}return false}h.fn.extend({effect:function(q,p,s,u){var o=d.apply(this,arguments),r={options:o[1],duration:o[2],callback:o[3]},t=r.options.mode,n=h.effects[q];if(h.fx.off||!n){if(t){return this[t](r.duration,r.callback)}else{return this.each(function(){if(r.callback){r.callback.call(this)}})}}return n.call(this,r)},_show:h.fn.show,show:function(o){if(l(o)){return this._show.apply(this,arguments)}else{var n=d.apply(this,arguments);n[1].mode="show";return this.effect.apply(this,n)}},_hide:h.fn.hide,hide:function(o){if(l(o)){return this._hide.apply(this,arguments)}else{var n=d.apply(this,arguments);n[1].mode="hide";return this.effect.apply(this,n)}},__toggle:h.fn.toggle,toggle:function(o){if(l(o)||typeof o==="boolean"||h.isFunction(o)){return this.__toggle.apply(this,arguments)}else{var n=d.apply(this,arguments);n[1].mode="toggle";return this.effect.apply(this,n)}},cssUnit:function(n){var o=this.css(n),p=[];h.each(["em","px","%","pt"],function(q,r){if(o.indexOf(r)>0){p=[parseFloat(o),r]}});return p}});h.easing.jswing=h.easing.swing;h.extend(h.easing,{def:"easeOutQuad",swing:function(o,p,n,r,q){return h.easing[h.easing.def](o,p,n,r,q)},easeInQuad:function(o,p,n,r,q){return r*(p/=q)*p+n},easeOutQuad:function(o,p,n,r,q){return -r*(p/=q)*(p-2)+n},easeInOutQuad:function(o,p,n,r,q){if((p/=q/2)<1){return r/2*p*p+n}return -r/2*((--p)*(p-2)-1)+n},easeInCubic:function(o,p,n,r,q){return r*(p/=q)*p*p+n},easeOutCubic:function(o,p,n,r,q){return r*((p=p/q-1)*p*p+1)+n},easeInOutCubic:function(o,p,n,r,q){if((p/=q/2)<1){return r/2*p*p*p+n}return r/2*((p-=2)*p*p+2)+n},easeInQuart:function(o,p,n,r,q){return r*(p/=q)*p*p*p+n},easeOutQuart:function(o,p,n,r,q){return -r*((p=p/q-1)*p*p*p-1)+n},easeInOutQuart:function(o,p,n,r,q){if((p/=q/2)<1){return r/2*p*p*p*p+n}return -r/2*((p-=2)*p*p*p-2)+n},easeInQuint:function(o,p,n,r,q){return r*(p/=q)*p*p*p*p+n},easeOutQuint:function(o,p,n,r,q){return r*((p=p/q-1)*p*p*p*p+1)+n},easeInOutQuint:function(o,p,n,r,q){if((p/=q/2)<1){return r/2*p*p*p*p*p+n}return r/2*((p-=2)*p*p*p*p+2)+n},easeInSine:function(o,p,n,r,q){return -r*Math.cos(p/q*(Math.PI/2))+r+n},easeOutSine:function(o,p,n,r,q){return r*Math.sin(p/q*(Math.PI/2))+n},easeInOutSine:function(o,p,n,r,q){return -r/2*(Math.cos(Math.PI*p/q)-1)+n},easeInExpo:function(o,p,n,r,q){return(p==0)?n:r*Math.pow(2,10*(p/q-1))+n},easeOutExpo:function(o,p,n,r,q){return(p==q)?n+r:r*(-Math.pow(2,-10*p/q)+1)+n},easeInOutExpo:function(o,p,n,r,q){if(p==0){return n}if(p==q){return n+r}if((p/=q/2)<1){return r/2*Math.pow(2,10*(p-1))+n}return r/2*(-Math.pow(2,-10*--p)+2)+n},easeInCirc:function(o,p,n,r,q){return -r*(Math.sqrt(1-(p/=q)*p)-1)+n},easeOutCirc:function(o,p,n,r,q){return r*Math.sqrt(1-(p=p/q-1)*p)+n},easeInOutCirc:function(o,p,n,r,q){if((p/=q/2)<1){return -r/2*(Math.sqrt(1-p*p)-1)+n}return r/2*(Math.sqrt(1-(p-=2)*p)+1)+n},easeInElastic:function(o,r,n,y,w){var u=1.70158;var v=0;var q=y;if(r==0){return n}if((r/=w)==1){return n+y}if(!v){v=w*0.3}if(q<Math.abs(y)){q=y;var u=v/4}else{var u=v/(2*Math.PI)*Math.asin(y/q)}return -(q*Math.pow(2,10*(r-=1))*Math.sin((r*w-u)*(2*Math.PI)/v))+n},easeOutElastic:function(o,r,n,y,w){var u=1.70158;var v=0;var q=y;if(r==0){return n}if((r/=w)==1){return n+y}if(!v){v=w*0.3}if(q<Math.abs(y)){q=y;var u=v/4}else{var u=v/(2*Math.PI)*Math.asin(y/q)}return q*Math.pow(2,-10*r)*Math.sin((r*w-u)*(2*Math.PI)/v)+y+n},easeInOutElastic:function(o,r,n,y,w){var u=1.70158;var v=0;var q=y;if(r==0){return n}if((r/=w/2)==2){return n+y}if(!v){v=w*(0.3*1.5)}if(q<Math.abs(y)){q=y;var u=v/4}else{var u=v/(2*Math.PI)*Math.asin(y/q)}if(r<1){return -0.5*(q*Math.pow(2,10*(r-=1))*Math.sin((r*w-u)*(2*Math.PI)/v))+n}return q*Math.pow(2,-10*(r-=1))*Math.sin((r*w-u)*(2*Math.PI)/v)*0.5+y+n},easeInBack:function(o,p,n,u,r,q){if(q==e){q=1.70158}return u*(p/=r)*p*((q+1)*p-q)+n},easeOutBack:function(o,p,n,u,r,q){if(q==e){q=1.70158}return u*((p=p/r-1)*p*((q+1)*p+q)+1)+n},easeInOutBack:function(o,p,n,u,r,q){if(q==e){q=1.70158}if((p/=r/2)<1){return u/2*(p*p*(((q*=(1.525))+1)*p-q))+n}return u/2*((p-=2)*p*(((q*=(1.525))+1)*p+q)+2)+n},easeInBounce:function(o,p,n,r,q){return r-h.easing.easeOutBounce(o,q-p,0,r,q)+n},easeOutBounce:function(o,p,n,r,q){if((p/=q)<(1/2.75)){return r*(7.5625*p*p)+n}else{if(p<(2/2.75)){return r*(7.5625*(p-=(1.5/2.75))*p+0.75)+n}else{if(p<(2.5/2.75)){return r*(7.5625*(p-=(2.25/2.75))*p+0.9375)+n}else{return r*(7.5625*(p-=(2.625/2.75))*p+0.984375)+n}}}},easeInOutBounce:function(o,p,n,r,q){if(p<q/2){return h.easing.easeInBounce(o,p*2,0,r,q)*0.5+n}return h.easing.easeOutBounce(o,p*2-q,0,r,q)*0.5+r*0.5+n}})})(jQuery);(function(a,b){a.effects.slide=function(c){return this.queue(function(){var f=a(this),e=["position","top","bottom","left","right"];var k=a.effects.setMode(f,c.options.mode||"show");var j=c.options.direction||"left";a.effects.save(f,e);f.show();a.effects.createWrapper(f).css({overflow:"hidden"});var g=(j=="up"||j=="down")?"top":"left";var d=(j=="up"||j=="left")?"pos":"neg";var l=c.options.distance||(g=="top"?f.outerHeight({margin:true}):f.outerWidth({margin:true}));if(k=="show"){f.css(g,d=="pos"?(isNaN(l)?"-"+l:-l):l)}var h={};h[g]=(k=="show"?(d=="pos"?"+=":"-="):(d=="pos"?"-=":"+="))+l;f.animate(h,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(k=="hide"){f.hide()}a.effects.restore(f,e);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}f.dequeue()}})})}})(jQuery);(function(a){a.fn.addOption=function(){var c=arguments;if(c.length==0){return this}var g=true;var b=false;if(typeof c[0]=="object"){b=true;var e=c[0]}if(c.length>=2){if(typeof c[1]=="boolean"){g=c[1]}else{if(typeof c[2]=="boolean"){g=c[2]}}if(!b){var d=c[0];var f=c[1]}}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}if(b){for(var j in e){a(this).addOption(j,e[j],g)}}else{var k=document.createElement("option");k.value=d;k.text=f;var j;var l=false;var m=this.options;var h=m.length;for(j=0;j<h;j++){if(m[j].value==k.value){l=true;break}}if(j<h&&!l){j=h}this.options[j]=k;if(g){m[j].selected=true}}});return this};a.fn.ajaxAddOption=function(d,f,b,e,c){if(typeof d!="string"){return this}if(typeof f!="object"){f={}}if(typeof b!="boolean"){b=true}this.each(function(){var g=this;a.getJSON(d,f,function(h){a(g).addOption(h,b);if(typeof e=="function"){if(typeof c=="object"){e.apply(g,c)}else{e.call(g)}}})});return this};a.fn.removeOption=function(){var b=arguments;if(b.length==0){return this}var d=typeof b[0];if(d=="string"){var c=b[0]}else{if(d=="object"||d=="function"){var c=b[0]}else{if(d=="number"){var e=b[0]}else{return this}}}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}if(c){var h=this.options;var f=h.length;for(var g=f-1;g>=0;g--){if(c.constructor==RegExp){if(h[g].value.match(c)){h[g]=null}}else{if(h[g].value==c){h[g]=null}}}}else{this.remove(g)}});return this};a.fn.sortOptions=function(c){var b=typeof c=="undefined"?true:c;this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}var f=this.options;var d=f.length;var g=[];for(var e=0;e<d;e++){g[e]={v:f[e].value,t:f[e].text}}g.sort(function(j,h){o1t=j.t.toLowerCase();o2t=h.t.toLowerCase();if(o1t==o2t){return 0}if(b){return o1t<o2t?-1:1}else{return o1t>o2t?-1:1}});for(var e=0;e<d;e++){f[e].text=g[e].t;f[e].value=g[e].v}});return this};a.fn.selectOptions=function(e,b){var d=e;var f=typeof e;var g=b||false;if(f!="string"&&f!="function"&&f!="object"){return this}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}var j=this.options;var c=j.length;for(var h=0;h<c;h++){if(d.constructor==RegExp){if(j[h].value.match(d)){j[h].selected=true}else{if(g){j[h].selected=false}}}else{if(j[h].value==d){j[h].selected=true}else{if(g){j[h].selected=false}}}}});return this};a.fn.copyOptions=function(d,c){var b=c||"selected";if(a(d).size()==0){return this}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}var g=this.options;var e=g.length;for(var f=0;f<e;f++){if(b=="all"||(b=="selected"&&g[f].selected)){a(d).addOption(g[f].value,g[f].text)}}});return this};a.fn.containsOption=function(e,c){var d=false;var b=e;var f=typeof e;var g=typeof c;if(f!="string"&&f!="function"&&f!="object"){return g=="function"?this:d}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}if(d&&g!="function"){return false}var k=this.options;var h=k.length;for(var j=0;j<h;j++){if(b.constructor==RegExp){if(k[j].value.match(b)){d=true;if(g=="function"){c.call(k[j])}}}else{if(k[j].value==b){d=true;if(g=="function"){c.call(k[j])}}}}});return g=="function"?this:d}})(jQuery);(function(a){a.fn.extend({autocomplete:function(b,c){var d=typeof b=="string";c=a.extend({},a.Autocompleter.defaults,{url:d?b:null,data:d?null:b,delay:d?a.Autocompleter.defaults.delay:10,max:c&&!c.scroll?10:150},c);c.highlight=c.highlight||function(e){return e};c.formatMatch=c.formatMatch||c.formatItem;return this.each(function(){new a.Autocompleter(this,c)})},result:function(b){return this.bind("result",b)},search:function(b){return this.trigger("search",[b])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(b){return this.trigger("setOptions",[b])},unautocomplete:function(){return this.trigger("unautocomplete")}});a.Autocompleter=function(m,g){var c={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var b=a(m).attr("autocomplete","off").addClass(g.inputClass);var k;var q="";var n=a.Autocompleter.Cache(g);var e=0;var v;var y={mouseDownOnSelect:false};var s=a.Autocompleter.Select(g,m,d,y);var x;a.browser.opera&&a(m.form).bind("submit.autocomplete",function(){if(x){x=false;return false}});b.bind((a.browser.opera?"keypress":"keydown")+".autocomplete",function(z){e=1;v=z.keyCode;switch(z.keyCode){case c.UP:z.preventDefault();if(s.visible()){s.prev()}else{u(0,true)}break;case c.DOWN:z.preventDefault();if(s.visible()){s.next()}else{u(0,true)}break;case c.PAGEUP:z.preventDefault();if(s.visible()){s.pageUp()}else{u(0,true)}break;case c.PAGEDOWN:z.preventDefault();if(s.visible()){s.pageDown()}else{u(0,true)}break;case g.multiple&&a.trim(g.multipleSeparator)==","&&c.COMMA:case c.TAB:case c.RETURN:if(d()){z.preventDefault();x=true;return false}break;case c.ESC:s.hide();break;default:clearTimeout(k);k=setTimeout(u,g.delay);break}}).focus(function(){e++}).blur(function(){e=0;if(!y.mouseDownOnSelect){t()}}).click(function(){if(e++>1&&!s.visible()){u(0,true)}}).bind("search",function(){var z=(arguments.length>1)?arguments[1]:null;function A(E,D){var B;if(D&&D.length){for(var C=0;C<D.length;C++){if(D[C].result.toLowerCase()==E.toLowerCase()){B=D[C];break}}}if(typeof z=="function"){z(B)}else{b.trigger("result",B&&[B.data,B.value])}}a.each(h(b.val()),function(B,C){f(C,A,A)})}).bind("flushCache",function(){n.flush()}).bind("setOptions",function(){a.extend(g,arguments[1]);if("data" in arguments[1]){n.populate()}}).bind("unautocomplete",function(){s.unbind();b.unbind();a(m.form).unbind(".autocomplete")});function d(){var C=s.selected();if(!C){return false}var z=C.result;q=z;if(g.multiple){var F=h(b.val());if(F.length>1){var B=g.multipleSeparator.length;var E=a(m).selection().start;var D,A=0;a.each(F,function(G,H){A+=H.length;if(E<=A){D=G;return false}A+=B});F[D]=z;z=F.join(g.multipleSeparator)}z+=g.multipleSeparator}b.val(z);w();b.trigger("result",[C.data,C.value]);return true}function u(B,A){if(v==c.DEL){s.hide();return}var z=b.val();if(!A&&z==q){return}q=z;z=j(z);if(z.length>=g.minChars){b.addClass(g.loadingClass);if(!g.matchCase){z=z.toLowerCase()}f(z,l,w)}else{o();s.hide()}}function h(z){if(!z){return[""]}if(!g.multiple){return[a.trim(z)]}return a.map(z.split(g.multipleSeparator),function(A){return a.trim(z).length?a.trim(A):null})}function j(z){if(!g.multiple){return z}var B=h(z);if(B.length==1){return B[0]}var A=a(m).selection().start;if(A==z.length){B=h(z)}else{B=h(z.replace(z.substring(A),""))}return B[B.length-1]}function r(z,A){if(g.autoFill&&(j(b.val()).toLowerCase()==z.toLowerCase())&&v!=c.BACKSPACE){b.val(b.val()+A.substring(j(q).length));a(m).selection(q.length,q.length+A.length)}}function t(){clearTimeout(k);k=setTimeout(w,200)}function w(){var z=s.visible();s.hide();clearTimeout(k);o();if(g.mustMatch){b.search(function(A){if(!A){if(g.multiple){var B=h(b.val()).slice(0,-1);b.val(B.join(g.multipleSeparator)+(B.length?g.multipleSeparator:""))}else{b.val("");b.trigger("result",null)}}})}}function l(A,z){if(z&&z.length&&e){o();s.display(z,A);r(A,s.firstItemValue());s.show()}else{w()}}function f(A,C,z){if(!g.matchCase){A=A.toLowerCase()}var B=n.load(A);if(B&&B.length){C(A,B)}else{if((typeof g.url=="string")&&(g.url.length>0)){var D={timestamp:+new Date()};a.each(g.extraParams,function(E,F){D[E]=typeof F=="function"?F():F});a.ajax({mode:"abort",port:"autocomplete"+m.name,dataType:g.dataType,url:g.url,data:a.extend({q:j(A),limit:g.max},D),complete:function(G,E,I){var H=G.responseText;var F=g.parse&&g.parse(H)||p(H);n.add(A,F);C(A,F)},success:function(F){var E=g.parse&&g.parse(F)||p(F);n.add(A,E);C(A,E)}})}else{s.emptyList();z(A)}}}function p(C){var z=[];var B=C.split("\n");for(var A=0;A<B.length;A++){var D=a.trim(B[A]);if(D){D=D.split("|");z[z.length]={data:D,value:D[0],result:g.formatResult&&g.formatResult(D,D[0])||D[0]}}}return z}function o(){b.removeClass(g.loadingClass)}};a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(b){return b[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(c,b){return c.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180,dataType:"html"};a.Autocompleter.Cache=function(c){var f={};var d=0;function h(l,k){if(!c.matchCase){l=l.toLowerCase()}var j=l.indexOf(k);if(c.matchContains=="word"){j=l.toLowerCase().search("\\b"+k.toLowerCase())}if(j==-1){return false}return j==0||c.matchContains}function g(k,j){if(d>c.cacheLength){b()}if(!f[k]){d++}f[k]=j}function e(){if(!c.data){return false}var k={},j=0;if(!c.url){c.cacheLength=1}k[""]=[];for(var m=0,l=c.data.length;m<l;m++){var p=c.data[m];p=(typeof p=="string")?[p]:p;var o=c.formatMatch(p,m+1,c.data.length);if(o===false){continue}var n=o.charAt(0).toLowerCase();if(!k[n]){k[n]=[]}var q={value:o,data:p,result:c.formatResult&&c.formatResult(p)||o};k[n].push(q);if(j++<c.max){k[""].push(q)}}a.each(k,function(r,s){c.cacheLength++;g(r,s)})}setTimeout(e,25);function b(){f={};d=0}return{flush:b,add:g,populate:e,load:function(n){if(!c.cacheLength||!d){return null}if(!c.url&&c.matchContains){var m=[];for(var j in f){if(j.length>0){var o=f[j];a.each(o,function(p,k){if(h(k.value,n)){m.push(k)}})}}return m}else{if(f[n]){return f[n]}else{if(c.matchSubset){for(var l=n.length-1;l>=c.minChars;l--){var o=f[n.substr(0,l)];if(o){var m=[];a.each(o,function(p,k){if(h(k.value,n)){m[m.length]=k}});return m}}}}}return null}}};a.Autocompleter.Select=function(e,k,m,q){var j={ACTIVE:"ac_over",GROUP:"ac_group"};var l,f=-1,s,n="",t=true,c,p;function o(){if(!t){return}c=a("<div/>").hide().addClass(e.resultsClass).css("position","absolute").appendTo(document.body);p=a("<ul/>").appendTo(c).mouseover(function(v){var u=r(v);if(u.nodeName&&u.nodeName.toUpperCase()=="LI"){if(a(u).hasClass(j.GROUP)){return false}f=a("li",p).removeClass(j.ACTIVE).index(u);a(u).addClass(j.ACTIVE)}}).click(function(u){var v=a(r(u));if(!v.hasClass(j.GROUP)){v.addClass(j.ACTIVE);m()}k.focus();return false}).mousedown(function(){q.mouseDownOnSelect=true}).mouseup(function(){q.mouseDownOnSelect=false});if(e.width>0){c.css("width",e.width)}t=false}function r(v){var u=v.target;while(u&&u.tagName!="LI"){u=u.parentNode}if(!u){return[]}return u}function h(v){l.slice(f,f+1).removeClass(j.ACTIVE);var w=f;do{g(v);var y=l.slice(f,f+1)}while(f!=w&&y.hasClass(j.GROUP));y.addClass(j.ACTIVE);if(e.scroll){var x=0;l.slice(0,f).each(function(){x+=this.offsetHeight});if((x+y[0].offsetHeight-p.scrollTop())>p[0].clientHeight){p.scrollTop(x+y[0].offsetHeight-p.innerHeight())}else{if(x<p.scrollTop()){if(f>0){var u=l.slice(f-1,f);if(u.hasClass(j.GROUP)){x-=u[0].offsetHeight}}p.scrollTop(x)}}}}function g(u){f+=u;if(f<0){f=l.size()-1}else{if(f>=l.size()){f=0}}}function b(u){return e.max&&e.max<u?e.max:u}function d(){p.empty();var v=b(s.length);for(var w=0;w<v;w++){if(!s[w]){continue}var y=e.formatItem(s[w].data,w+1,v,s[w].value,n);if(y===false){continue}var x="item";if(typeof y=="object"){x=y.type;y=y.formatted}var u;if(x=="group"){u=a("<li/>").html(y).addClass(j.GROUP).appendTo(p)[0]}else{u=a("<li/>").html(e.highlight(y,n)).addClass(w%2==0?"ac_even":"ac_odd").appendTo(p)[0]}a.data(u,"ac_data",s[w])}l=p.find("li");if(e.selectFirst){f=0;while(l.slice(f,f+1).hasClass(j.GROUP)){g(1)}l.slice(f,f+1).addClass(j.ACTIVE)}if(a.fn.bgiframe){p.bgiframe()}}return{display:function(v,u){o();s=v;n=u;d()},next:function(){h(1)},prev:function(){h(-1)},pageUp:function(){if(f!=0&&f-8<0){h(-f)}else{h(-8)}},pageDown:function(){if(f!=l.size()-1&&f+8>l.size()){h(l.size()-1-f)}else{h(8)}},hide:function(){c&&c.hide();l&&l.removeClass(j.ACTIVE);f=-1},visible:function(){return c&&c.is(":visible")},current:function(){return this.visible()&&(l.filter("."+j.ACTIVE)[0]||e.selectFirst&&l[0])},show:function(){var w=a(k).offset();c.css({width:typeof e.width=="string"||e.width>0?e.width:a(k).width(),top:w.top+k.offsetHeight,left:w.left}).show();if(e.scroll){p.scrollTop(0);p.css({maxHeight:e.scrollHeight,overflow:"auto"});if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var u=0;l.each(function(){u+=this.offsetHeight});var v=u>e.scrollHeight;p.css("height",v?e.scrollHeight:u);if(!v){l.width(p.width()-parseInt(l.css("padding-left"))-parseInt(l.css("padding-right")))}}}},selected:function(){var u=l&&l.filter("."+j.ACTIVE).removeClass(j.ACTIVE);return u&&u.length&&a.data(u[0],"ac_data")},firstItemValue:function(){for(var u=0;u<l.length;++u){if(!a(l[u]).hasClass(j.GROUP)){return a.data(l[u],"ac_data").value}}return""},emptyList:function(){p&&p.empty()},unbind:function(){c&&c.remove()}}};a.fn.selection=function(j,b){if(j!==undefined){return this.each(function(){if(this.createTextRange){var k=this.createTextRange();if(b===undefined||j==b){k.move("character",j);k.select()}else{k.collapse(true);k.moveStart("character",j);k.moveEnd("character",b);k.select()}}else{if(this.setSelectionRange){this.setSelectionRange(j,b)}else{if(this.selectionStart){this.selectionStart=j;this.selectionEnd=b}}}})}var g=this[0];if(g.createTextRange){var c=document.selection.createRange(),h=g.value,f="<->",d=c.text.length;c.text=f;var e=g.value.indexOf(f);g.value=h;this.selection(e,e+d);return{start:e,end:e+d}}else{if(g.selectionStart!==undefined){return{start:g.selectionStart,end:g.selectionEnd}}}}})(jQuery);(function(a){a.fn.helpLayer=function(c,e,d){var b={headline:c,text:e,hideSelects:d};return this.each(function(){var f=a(this);f.bind("mouseover",{me:f},function(n){var p=n.data.me;if(a("#"+p.attr("id")+"_help").length==0){var h=a('<div class="helpLayer"></div>');h.attr("id",p.attr("id")+"_help");var g=a('<span class="cornerLeftTop"></span>');var t=a('<span class="cornerRightTop"></span>');var j=a('<span class="pointer"></span>');var s=a('<span class="cornerLeftBottom"></span>');var r=a('<span class="cornerRightBottom"></span>');var m=a('<p class="content"></p>');m.html("<strong>"+b.headline+"</strong><br /><br />"+e);t.append(j);g.append(t);h.append(g);h.append(m);h.append(s);h.append(r);var q=p.position();a("body").append(h);var o=0;var l=0;if(a.browser.msie){o=60;l=52}else{o=45;l=42}h.css("left",(q.left-h.width()+l)+"px");h.css("top",(q.top+o)+"px")}if(b.hideSelects!=undefined){for(var k=0;k<b.hideSelects.length;++k){b.hideSelects[k].css("visibility","hidden")}}a("#"+p.attr("id")+"_help").show()});f.bind("mouseout",{me:f},function(h){if(b.hideSelects!=undefined){for(var g=0;g<b.hideSelects.length;++g){b.hideSelects[g].css("visibility","visible")}}a("#"+f.attr("id")+"_help").hide()})})}})($);(function(b){var a=function(d){try{}catch(c){}};b.PeriodicalUpdater=function(f,r,p){var h=jQuery.extend(true,{url:f,cache:false,method:"GET",data:"",minTimeout:1000,maxTimeout:8000,multiplier:2,maxCalls:0,autoStop:0},r);var k=h.minTimeout;var m=h.maxCalls;var d=h.autoStop;var q=0;var j=0;var c=function(){if(h.multiplier>1){k=k*h.multiplier;if(k>h.maxTimeout){k=h.maxTimeout}}};var o=jQuery.extend(true,{},h);if(h.type&&!o.dataType){o.dataType=h.type}if(h.sendData){o.data=h.sendData}o.type=h.method;o.ifModified=true;function e(){var s=jQuery.extend(true,{},o);if(typeof(r.data)=="function"){s.data=r.data();if(s.data){if(typeof(s.data)=="number"){s.data=s.data.toString()}}}if(m==0){b.ajax(s)}else{if(m>0&&q<m){b.ajax(s);q++}}}var n=null;var g=null;o.success=function(s){a("Successful run! (In 'success')");n=s;k=h.minTimeout};o.complete=function(t,s){a("Status of call: "+s+" (In 'complete')");if(m==-1){return}if(s=="success"||s=="notmodified"){var u=b.trim(t.responseText);if(u=="STOP_AJAX_CALLS"){m=-1;return}if(g==u){if(d>0){j++;if(j==d){m=-1;return}}c()}else{j=0;k=h.minTimeout;g=u;if(n==null){n=u}if(o.dataType=="json"){n=JSON.parse(n)}if(h.success){h.success(n)}if(p){p(n)}}}n=null;setTimeout(e,k)};o.error=function(s,t){a("Error message: "+t+" (In 'error')");if(t=="notmodified"){c()}else{g=null;k=h.minTimeout}if(h.error){h.error(s,t)}};b(function(){e()});var l={stop:function(){m=-1;return}};return l}})(jQuery);(function(){var h=document,m=window;function b(d){if(typeof d=="string"){d=h.getElementById(d)}return d}function e(r,q,d){if(m.addEventListener){r.addEventListener(q,d,false)}else{if(m.attachEvent){var s=function(){d.call(r,m.event)};r.attachEvent("on"+q,s)}}}var c=function(){var d=h.createElement("div");return function(q){d.innerHTML=q;var r=d.childNodes[0];d.removeChild(r);return r}}();function f(q,d){return q.className.match(new RegExp("(\\s|^)"+d+"(\\s|$)"))}function g(q,d){if(!f(q,d)){q.className+=" "+d}}function n(r,d){var q=new RegExp("(\\s|^)"+d+"(\\s|$)");r.className=r.className.replace(q," ")}if(document.documentElement.getBoundingClientRect){var o=function(d){var u=d.getBoundingClientRect(),y=d.ownerDocument,v=y.body,q=y.documentElement,t=q.clientTop||v.clientTop||0,w=q.clientLeft||v.clientLeft||0,z=1;if(v.getBoundingClientRect){var s=v.getBoundingClientRect();z=(s.right-s.left)/v.clientWidth}if(z>1){t=0;w=0}var x=u.top/z+(window.pageYOffset||q&&q.scrollTop/z||v.scrollTop/z)-t,r=u.left/z+(window.pageXOffset||q&&q.scrollLeft/z||v.scrollLeft/z)-w;return{top:x,left:r}}}else{var o=function(d){if(m.jQuery){return jQuery(d).offset()}var r=0,q=0;do{r+=d.offsetTop||0;q+=d.offsetLeft||0}while(d=d.offsetParent);return{left:q,top:r}}}function a(r){var t,q,s,d;var u=o(r);t=u.left;s=u.top;q=t+r.offsetWidth;d=s+r.offsetHeight;return{left:t,right:q,top:s,bottom:d}}function k(s){if(!s.pageX&&s.clientX){var r=1;var d=document.body;if(d.getBoundingClientRect){var q=d.getBoundingClientRect();r=(q.right-q.left)/d.clientWidth}return{x:s.clientX/r+h.body.scrollLeft+h.documentElement.scrollLeft,y:s.clientY/r+h.body.scrollTop+h.documentElement.scrollTop}}return{x:s.pageX,y:s.pageY}}var j=function(){var d=0;return function(){return"ValumsAjaxUpload"+d++}}();function p(d){return d.replace(/.*(\/|\\)/,"")}function l(d){return(/[.]/.exec(d))?/[^.]+$/.exec(d.toLowerCase()):""}Ajax_upload=AjaxUpload=function(r,d){if(r.jquery){r=r[0]}else{if(typeof r=="string"&&/^#.*/.test(r)){r=r.slice(1)}}r=b(r);this._input=null;this._button=r;this._disabled=false;this._submitting=false;this._justClicked=false;this._parentDialog=h.body;if(window.jQuery&&jQuery.ui&&jQuery.ui.dialog){var s=jQuery(this._button).parents(".ui-dialog");if(s.length){this._parentDialog=s[0]}}this._settings={action:"upload.php",name:"userfile",data:{},autoSubmit:true,responseType:false,onChange:function(t,u){},onSubmit:function(t,u){},onComplete:function(u,t){}};for(var q in d){this._settings[q]=d[q]}this._createInput();this._rerouteClicks()};AjaxUpload.prototype={setData:function(d){this._settings.data=d},disable:function(){this._disabled=true},enable:function(){this._disabled=false},destroy:function(){if(this._input){if(this._input.parentNode){this._input.parentNode.removeChild(this._input)}this._input=null}},_createInput:function(){var q=this;var d=h.createElement("input");d.setAttribute("type","file");d.setAttribute("name",this._settings.name);var s={position:"absolute",margin:"-5px 0 0 -175px",padding:0,width:"220px",height:"30px",fontSize:"14px",opacity:0,cursor:"pointer",display:"none",zIndex:1};for(var r in s){d.style[r]=s[r]}if(!(d.style.opacity==="0")){d.style.filter="alpha(opacity=0)"}this._parentDialog.appendChild(d);e(d,"change",function(){var t=p(this.value);if(q._settings.onChange.call(q,t,l(t))==false){return}if(q._settings.autoSubmit){q.submit()}d.style.display="none"});e(d,"click",function(){q.justClicked=true});this._input=d},_rerouteClicks:function(){var q=this;var r,d={top:0,left:0},s=false;e(q._button,"mouseover",function(t){if(!q._input||s){return}s=true;r=a(q._button);if(q._parentDialog!=h.body){d=o(q._parentDialog)}});e(q._button,"mouseout",function(t){if(!q._input||s){return}q.input.style.display="none"});e(document,"mousemove",function(u){var t=q._input;if(!t||!s){return}if(q._disabled){n(q._button,"hover");t.style.display="none";return}var v=k(u);if((v.x>=r.left)&&(v.x<=r.right)&&(v.y>=r.top)&&(v.y<=r.bottom)){t.style.top=v.y-d.top+"px";t.style.left=v.x-d.left+"px";t.style.display="block";g(q._button,"hover")}else{s=false;if(!q.justClicked){t.style.display="none"}n(q._button,"hover")}})},_createIframe:function(){var q=j();var d=c('<iframe src="javascript:false;" name="'+q+'" />');d.id=q;d.style.display="none";h.body.appendChild(d);return d},submit:function(){var d=this,s=this._settings;if(this._input.value===""){return}var q=p(this._input.value);if(!(s.onSubmit.call(this,q,l(q))==false)){var r=this._createIframe();var u=this._createForm(r);u.appendChild(this._input);u.submit();h.body.removeChild(u);u=null;this._input=null;this._createInput();var t=false;e(r,"load",function(x){if(r.src=="javascript:'%3Chtml%3E%3C/html%3E';"||r.src=="javascript:'<html></html>';"){if(t){setTimeout(function(){h.body.removeChild(r)},0)}return}var w=r.contentDocument?r.contentDocument:frames[r.id].document;if(w.readyState&&w.readyState!="complete"){return}if(w.body&&w.body.innerHTML=="false"){return}var v;if(w.XMLDocument){v=w.XMLDocument}else{if(w.body){v=w.body.innerHTML;if(s.responseType&&s.responseType.toLowerCase()=="json"){if(w.body.firstChild&&w.body.firstChild.nodeName.toUpperCase()=="PRE"){v=w.body.firstChild.firstChild.nodeValue}if(v){v=window["eval"]("("+v+")")}else{v={}}}}else{var v=w}}s.onComplete.call(d,q,v);t=true;r.src="javascript:'<html></html>';"})}else{h.body.removeChild(this._input);this._input=null;this._createInput()}},_createForm:function(r){var q=this._settings;var s=c('<form method="post" enctype="multipart/form-data"></form>');s.style.display="none";s.action=q.action;s.target=r.name;h.body.appendChild(s);for(var t in q.data){var d=h.createElement("input");d.type="hidden";d.name=t;d.value=q.data[t];s.appendChild(d)}return s}}})();ajax_upload={uploader:{},id:null,status:null,error:null,url:null,filter:null,layer:null,content:{},init:function(a){$("body").append('<div id="c24Uploadfilter" style="display: none; position: absolute; width: 1px; height: 1px; background: #000000; z-index: 0; left: 0; top: 0;"></div>');$("body").append('<div class="c24Frame" id="c24UploadLayer"></div>');this.filter=$("#c24Uploadfilter");this.layer=$("#c24UploadLayer");this.url=a},add:function(b,c,a){var d=new AjaxUpload("btn_select_"+a,{action:b,name:c,autoSubmit:false,onChange:function(e,f){if(e!=""){ajax_upload.change_button_state(this._settings.container,"upload");$("#"+this._settings.container).html(e)}},onSubmit:function(e,f){if(!(f&&/^(jpg|png|jpeg|gif|pdf|doc|xls|docx|xlsx|ppt|pptx)$/.test(f))){ajax_upload.show_error_info();$("#"+this._settings.container).html("&nbsp;");ajax_upload.change_button_state(this._settings.container,"select");return false}ajax_upload.show_upload_info("Datei wird hochgeladen...")},onComplete:function(f,e){if($("status",e).text()=="OK"){ajax_upload.hide();$("#"+this._settings.container).html($("data",e).text());ajax_upload.change_button_state(this._settings.container,"delete")}else{ajax_upload.hide();$("#"+this._settings.container).html("&nbsp;");ajax_upload.change_button_state(this._settings.container,"select")}},container:a});this.uploader[a]=d},show_upload_info:function(a){$("#c24UploadMessage").text(a);this.show_message_box("status")},show_error_info:function(){this.show_message_box("file_format")},show_message_box:function(c){if(!this.content[c]){this.content[c]=$("#"+c).html();$("#"+c).remove()}this.filter.css({opacity:0.2,width:$(document).width(),height:$(document).height()});this.filter.bgiframe();this.filter.show();var a=$(document).width()-350;var b=$(document).scrollTop();if(b==0){b+=200}else{b+=100}this.layer.css({top:b+"px",left:a/2});this.layer.html(this.content[c]);this.layer.bgiframe();this.layer.show()},hide:function(){this.layer.hide();this.filter.hide()},delete_upload:function(a){jQuery.get(this.url,{field:a,action:"delete"});$("#"+a).html("&nbsp;");this.change_button_state(a,"select");return false},change_button_state:function(b,a){if(a=="select"){$("#btn_select_"+b).show();$("#btn_upload_"+b).hide();$("#btn_delete_"+b).hide()}else{if(a=="upload"){$("#btn_select_"+b).hide();$("#btn_upload_"+b).show();$("#btn_delete_"+b).hide()}else{$("#btn_select_"+b).hide();$("#btn_upload_"+b).hide();$("#btn_delete_"+b).show()}}},submit:function(a){this.uploader[a].submit();return false}};c24_slider={draft:0.02,slider:[],add:function(a){this.slider.push(a)},register:function(){$.each(this.slider,function(c,d){var a={animate:false,delay:0,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null,type:"linear",max_value_callback:""};var b=$.extend(a,d);$("#"+d.id).slider(b)})},max_value_default_callback:function(){return 1000},startup_input_to_slider:function(b,c){var a=(100*b)/c/100;return Math.log(a*Math.pow(Math.E,(100*this.draft))-a+1)/this.draft},calculate_slider_to_input:function(b,d){var c=b.slider("option","max_value_callback");var a=((Math.pow(Math.E,(d*this.draft))-1)/(Math.pow(Math.E,(100*this.draft))-1))*100;return Math.round(c.call(this)/100*a)},calculate_input_to_slider:function(b,d){var c=b.slider("option","max_value_callback");var a=(100*d)/c.call(this)/100;return Math.log(a*Math.pow(Math.E,(100*this.draft))-a+1)/this.draft},slider_button_handle:{sliding:false,sliding_timeout:100,sliding_step:1,sliding_source:null,sliding_slider:null,sliding_type:"",sliding_runs:0,start:function(b,a){this.sliding=true;this.sliding_type=a;this.sliding_slider=$("#slider_"+b);this.sliding_source=$("#resultform input[name="+b+"]");this.slide()},stop:function(){this.sliding=false;this.sliding_timeout=100;this.sliding_step=1;this.sliding_source=null;this.sliding_slider=null;this.sliding_type="";this.sliding_runs=0},slide:function(){if(this.sliding!=true){return}this.sliding_runs++;if(this.sliding_runs%5==0){this.sliding_step=this.sliding_step*2}var c=this.sliding_slider.slider("option","type");var b=this.sliding_slider.slider("option","min");var a=this.sliding_slider.slider("option","max");if(c=="interval"){b=c24_slider.calculate_slider_to_input(this.sliding_slider,b);a=c24_slider.calculate_slider_to_input(this.sliding_slider,a)}var d=0;if(this.sliding_type=="plus"){d=parseInt(this.sliding_source.val());if(d+this.sliding_step<=a){this.sliding_source.val(d+this.sliding_step);this.sliding_source.trigger("change")}else{this.sliding_source.val(a);this.sliding_source.trigger("change");this.stop();return}}else{d=parseInt(this.sliding_source.val());if(d-this.sliding_step>=b){this.sliding_source.val(d-this.sliding_step);this.sliding_source.trigger("change")}else{this.sliding_source.val(b);this.sliding_source.trigger("change");this.stop();return}}setTimeout("c24_slider.slider_button_handle.slide()",this.sliding_timeout)}}};c24_slider_expert={profile_user_defined:function(a){if(a=="extend"||a=="normal"||a=="short"){$("#profile").val("user-defined")}else{$("#resultform input[name=profile]").attr("checked",false);$("#profile_user-defined").attr("checked",true);this.fill_profile_info(5,profile_data["user-defined"],true)}},register_user_defined:function(a){if(a=="expert"){$("#resultform input[name!=profile][name!=prepaid][name!=n_tmobile][name!=n_vodafone][name!=n_eplus][name!=n_o2], #resultform select[name!=downstream][name!=export_format][name!=prepaid][name!=maxvariations][name!=microsim]").change(function(){c24_slider_expert.profile_user_defined("expert")})}else{if(a=="extend"||a=="normal"||a=="short"){$("#resultform input[name!=microsim][name!=providerSelection][name!=prepaid][name!=n_tmobile][name!=n_vodafone][name!=n_eplus][name!=n_o2], #resultform select[name!=downstream][name!=export_format][id!=profile][name!=prepaid][name!=maxvariations]").change(function(){c24_slider_expert.profile_user_defined("extend")})}}},fill_profile_info:function(b,g,a){for(var j in g){var f=$("#resultform input[name="+j+"], #resultform select[name="+j+"]");if(f.size()>0||(j=="m_mobile"&&a==true)){if(g[j]==null){var h=0;if(f.size()>0){h=f.val()}if(j=="m_mobile"&&a==true){h=parseInt($m_tmobile.val());h+=parseInt($m_vodafone.val());h+=parseInt($m_eplus.val());h+=parseInt($m_o2.val());h+=parseInt($m_pinternal.val())}$("#profile_"+j).html(h)}else{if(f.attr("type")=="checkbox"){if(g[j]=="yes"){f.attr("checked",true)}else{f.attr("checked",false)}}else{if(f.attr("type")=="radio"){f.attr("checked",false);$("#"+j+"_"+g[j]).attr("checked",true)}else{f.val(g[j]);var e=$("#slider_"+j);if(e.size()>0){var c=e.slider("option","type");if(c=="linear"){e.slider("option","value",g[j])}else{e.slider("option","value",c24_slider.calculate_input_to_slider(e,g[j]))}}if($("#profile_"+j).size()>0){$("#profile_"+j).html(g[j])}}}}}}if(b!=null){$(".array_selector").hide();$("#arrow_"+b).show()}}};$.rs.overlay=(function(){var a=null;function b(){this.overlay=null;this.overlayActive=false;this.currentLayer=null;this.currentLayerOptions={};this.currentLayerContainer={};this.options={};this.selects=[];this.setOptions=function(c){this.options=c||{}};this.create=function(){this.overlay=$('<div id="'+(Math.random()*100)+'" class="c24Overlay"></div>').appendTo("body");if(typeof(this.options.onClick)=="function"){this.overlay.bind("click",function(c){$.rs.overlay.getInstance().options.onClick.call(this)})}$(window).resize(function(c){if($.rs.overlay.getInstance().overlayActive){$.rs.overlay.getInstance().fitLayers()}});$(document).bind("keydown",function(c){if(c.which==27){if($.rs.overlay.getInstance().overlayActive){$.rs.overlay.getInstance().hide()}if(typeof($.rs.overlay.getInstance().options.onEsc)=="function"){$.rs.overlay.getInstance().options.onEsc.call(this)}}});$(window).scroll(function(c){if($.rs.overlay.getInstance().overlayActive){$.rs.overlay.getInstance().fitLayers()}})};this.show=function(c){if(this.overlay==null){this.create()}if(!this.overlayActive){if(this.currentLayer){this.selects=$("select not:(.c24OverlayLayerSelect)")}else{this.selects=$("select")}this.selects.css("visibility","hidden");this.overlay.css({opacity:0.2,width:$(document).width(),height:$(document).height()}).show();this.overlayActive=true}if(c){this.currentLayerOptions=c;if(!this.currentLayer){this.currentLayer=$('<div id="'+this.overlay.attr("id")+'-layer" class="c24OverlayLayer" style="display: none; z-index: 10001; background-color: #fff; position: absolute;" />').appendTo($("body"))}if(c.css){if(c.css.width){this.currentLayer.width(c.css.width)}if(c.css.height){this.currentLayer.height(c.css.height)}}if(c.id){if(this.currentLayerContainer[c.id]){this.currentLayer.html(this.currentLayerContainer[c.id])}else{var d=$("#c24OverlayLayer"+c.id);if(d.size()==0){throw new Error("Requested layer c24OverlayLayer"+c.id+" not found in DOM")}this.currentLayerContainer[c.id]='<div class="c24Frame">'+d.html()+"</div>";d.empty()}this.currentLayer.html(this.currentLayerContainer[c.id])}this.fitLayers();this.currentLayer.show()}};this.hide=function(){if(this.overlay){this.overlay.hide();this.selects.css("visibility","visible")}if(this.currentLayer){this.currentLayer.hide();this.currentLayer.empty()}this.overlayActive=false};this.fitLayers=function(){if(this.overlay){this.overlay.css({width:$(document).width(),height:$(document).height()})}if(this.currentLayer){var e=$(document).scrollTop();var d=$(document).scrollLeft();var f=e+(this.currentLayerOptions.top||(($(window).height()-this.currentLayer.height())/2));var c=d+(this.currentLayerOptions.left||(($(window).width()-this.currentLayer.width())/2));this.currentLayer.css("top",f);this.currentLayer.css("left",c)}}}return new function(){this.getInstance=function(){if(a==null){a=new b()}return a}}})();(function(a){a.fn.passwordStrength=function(h){var g=a(this);g.bind("change",{elm:g,options:h},function(k){c(k.data.elm,k.data.options)}).bind("keyup",{elm:g,options:h},function(k){c(k.data.elm,k.data.options)});h.email.bind("change",{elm:g,options:h},function(k){c(k.data.elm,k.data.options)}).bind("keyup",{elm:g,options:h},function(k){c(k.data.elm,k.data.options)});var c=function(n,z){var F=n.val();if(F.length<6){e(0);return}if(z.email.val().length>0&&F.length>=6){var B=z.email.val();if(B.toLowerCase()==F.toLowerCase()){e(1);return}if(F.toLowerCase().indexOf(B.toLowerCase())!=-1){e(1);return}var m=B.indexOf("@");var A=B.substring(0,m);var E=B.substring((m+1),B.length);F=F.replace(new RegExp(A,"g"),"");F=F.replace(new RegExp(E,"g"),"")}var x=["1","2","3","4","5","6","7","8","9","0","","q","w","e","r","t","z","u","i","o","p","??","","a","s","d","f","g","h","j","k","l","??","??","","y","x","c","v","b","n","m","","Q","W","E","R","T","Z","U","I","O","P","??","","A","S","D","F","G","H","J","K","L","??","??","","Y","X","C","V","B","N","M"];var v=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];var r=F.length;var y=Math.max(b(F,x),b(F,v));var s=(F.match(/[a-z]+/)==null?false:true);var q=(F.match(/[A-Z]+/)==null?false:true);var C=(F.match(/[0-9]+/)==null?false:true);var w=(F.match(/[\_\^\??\!\"\??\$\%\&\/\(\)\=\?\\\{\[\]\}\*\+\~\#\,\.\;\:\|\<\>]+/)==null?false:true);var l=d(F);var u=(F!=F.replace(/([a-z0-9])\1{3,}/ig,"$1$1$1"));var k=j(F);var t=(r>=6&&y<3&&l>=3);var p=t&&(r>=8&&l>=3&&(q||s)&&(C||w)&&!u&&!k);var D=p&&(r>=8&&((q&&s&&C)||(C&&(q||s)&&w)));if(D==true){e(4)}else{if(p==true){e(3)}else{if(t==true){e(2)}else{e(1)}}}};var f=[{text:"Zu kurz",color:"red",multiplier:0},{text:"Zu schwach",color:"red",multiplier:1},{text:"Ausreichend",color:"orange",multiplier:2},{text:"Stark",color:"#0077b3",multiplier:3},{text:"Sehr stark",color:"green",multiplier:4}];var e=function(l){var k=f[l];h.indicatorText.html(k.text);h.indicatorBar.find("div").css({width:(parseInt(h.indicatorBar.width())/4)*k.multiplier+"px","background-color":k.color})};var j=function(k){return(k.indexOf("1q2w3")==0||k.indexOf("q2w3")==0||k.indexOf("qaws")==0||k.indexOf("awse")==0||k.indexOf("aysx")==0||k.indexOf("ysxd")==0)};var d=function(k){var l=[];for(i=0;i<k.length;i++){if(l.indexOf(k.charAt(i))==-1){l.push(k.charAt(i))}}return l.length};var b=function(q,r){var o=-2;var l=-2;var n=0;var p=0;var m=0;while(m<q.length){var k=r.indexOf(q.charAt(m));if(o==-2||k==l+1||k==l){l=k;if(o==-2){o=k}m++}else{if(o>-2){p=(l+1)-o;if(p>=2&&n<p){n=p}}o=-2}}if(o>-2){p=(l+1)-o;if(p>=2&&n<p){n=p}}return n};c(g,h)}})(jQuery);var callback={layer_content:null,layer_width:null,sender:null,post_url:"",current_countdown:6,filter:null,show:function(d,a){$layer=$("#c24CallbackLayer");$layer.html(this.layer_content);$("#tariffversion_id").val(d);$("#variation").val(a);this.filter.css({opacity:0.2,width:$(document).width(),height:$(document).height()});this.filter.bgiframe();this.filter.show();var b=$(document).width()-this.layer_width;var c=$(document).scrollTop();if(c==0){c+=200}else{c+=100}$layer.css({top:c+"px",left:b/2});$layer.bgiframe();$layer.show();$("#phone").focus()},hide:function(){$("#c24CallbackLayer").hide();this.filter.hide();this.sender=null},init:function(c,b){this.layer_id=c;this.post_url=b;var a=$("#"+this.layer_id);this.layer_width=a.width();this.layer_content=a.html();a.html("");$("body").append('<div class="c24Frame" id="c24CallbackLayer"></div>');$("body").append('<div id="c24Callbackfilter" style="display: none; position: absolute; width: 1px; height: 1px; background: #000000; z-index: 10; left: 0; top: 0;"></div>');this.filter=$("#c24Callbackfilter");this.filter.click(function(){callback.hide()})},toggle:function(b,c,a){if(this.sender==b){this.hide()}else{this.show(c,a);this.sender=b}return false},post_data:function(){var d=$("#phone").val();var e=$("#name").val();var a=$("#callback_email").val();var c=$("#tariffversion_id").val();var b=$("#variation").val();$.get(this.post_url,{phone:d,name:e,callback_email:a,tariffversion_id:c,variation:b,x:"y"},function(f,g){if(g=="success"){$layer.html(f)}});return false},countdown_handler:function(){if(this.current_countdown==0){this.hide();this.current_countdown=6;return}this.current_countdown--;$("#countdown").html(this.current_countdown);window.setTimeout("callback.countdown_handler()",1000)}};
