/* jquery.accordion.1.6_min.js */
(function(B){B.ui=B.ui||{};B.fn.extend({accordion:function(H,I){var G=Array.prototype.slice.call(arguments,1);
return this.each(function(){if(typeof H=="string"){var J=B.data(this,"ui-accordion");
J[H].apply(J,G);}else{if(!B(this).is(".ui-accordion")){B.data(this,"ui-accordion",new B.ui.accordion(this,H));
}}});},activate:function(G){return this.accordion("activate",G);}});B.ui.accordion=function(I,K){this.options=K=B.extend({},B.ui.accordion.defaults,K);
this.element=I;B(I).addClass("ui-accordion");if(K.navigation){var H=B(I).find("a").filter(K.navigationFilter);
if(H.length){if(H.filter(K.header).length){K.active=H;}else{K.active=H.parent().parent().prev();
H.addClass("current");}}}K.headers=B(I).find(K.header);K.active=F(K.headers,K.active);
if(K.fillSpace){var G=B(I).parent().height();K.headers.each(function(){G-=B(this).outerHeight();
});var J=0;K.headers.next().each(function(){J=Math.max(J,B(this).innerHeight()-B(this).height());
}).height(G-J);}else{if(K.autoheight){var G=0;K.headers.next().each(function(){G=Math.max(G,B(this).outerHeight());
}).height(G);}}K.headers.not(K.active||"").next().hide();K.active.parent().andSelf().addClass(K.selectedClass);
if(K.event){B(I).bind((K.event)+".ui-accordion",D);}};B.ui.accordion.prototype={activate:function(G){D.call(this.element,{target:F(this.options.headers,G)[0]});
},enable:function(){this.options.disabled=false;},disable:function(){this.options.disabled=true;
},destroy:function(){this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoheight){this.options.headers.next().css("height","");
}B.removeData(this.element,"ui-accordion");B(this.element).removeClass("ui-accordion").unbind(".ui-accordion");
}};function E(H,G){return function(){return H.apply(G,arguments);};}function C(I){if(!B.data(this,"ui-accordion")){return;
}var G=B.data(this,"ui-accordion");var H=G.options;H.running=I?0:--H.running;if(H.running){return;
}if(H.clearStyle){H.toShow.add(H.toHide).css({height:"",overflow:""});}B(this).triggerHandler("change.ui-accordion",[H.data],H.change);
}function A(K,H,M,J,I){var L=B.data(this,"ui-accordion").options;L.toShow=K;L.toHide=H;
L.data=M;var G=E(C,this);L.running=H.size()==0?K.size():H.size();if(L.animated){if(!L.alwaysOpen&&J){B.ui.accordion.animations[L.animated]({toShow:jQuery([]),toHide:H,complete:G,down:I,autoheight:L.autoheight});
}else{B.ui.accordion.animations[L.animated]({toShow:K,toHide:H,complete:G,down:I,autoheight:L.autoheight});
}}else{if(!L.alwaysOpen&&J){K.toggle();}else{H.hide();K.show();}G(true);}}function D(I){var G=B.data(this,"ui-accordion").options;
if(G.disabled){return false;}if(!I.target&&!G.alwaysOpen){G.active.parent().andSelf().toggleClass(G.selectedClass);
var N=G.active.next(),J={instance:this,options:G,newHeader:jQuery([]),oldHeader:G.active,newContent:jQuery([]),oldContent:N},H=G.active=B([]);
A.call(this,H,N,J);return false;}var K=B(I.target);if(K.parents(G.header).length){while(!K.is(G.header)){K=K.parent();
}}var L=K[0]==G.active[0];if(G.running||(G.alwaysOpen&&L)){return false;}if(!K.is(G.header)){return;
}G.active.parent().andSelf().toggleClass(G.selectedClass);if(!L){K.parent().andSelf().addClass(G.selectedClass);
}var H=K.next(),N=G.active.next(),J={instance:this,options:G,newHeader:K,oldHeader:G.active,newContent:H,oldContent:N},M=G.headers.index(G.active[0])>G.headers.index(K[0]);
G.active=L?B([]):K;A.call(this,H,N,J,L,M);return false;}function F(H,G){return G!=undefined?typeof G=="number"?H.filter(":eq("+G+")"):H.not(H.not(G)):G===false?B([]):H.filter(":eq(0)");
}B.extend(B.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(I,G){I=B.extend({easing:"swing",duration:300},I,G);
if(!I.toHide.size()){I.toShow.animate({height:"show"},I);return;}var K=I.toHide.height(),H=I.toShow.height(),J=H/K;
I.toShow.css({height:0,overflow:"hidden"}).show();I.toHide.filter(":hidden").each(I.complete).end().filter(":visible").animate({height:"hide"},{step:function(M){var L=(K-M)*J;
if(B.browser.msie||B.browser.opera){L=Math.ceil(L);}I.toShow.height(L);},duration:I.duration,easing:I.easing,complete:function(){if(!I.autoheight){I.toShow.css("height","auto");
}I.complete();}});},bounceslide:function(G){this.slide(G,{easing:G.down?"bounceout":"swing",duration:G.down?1000:200});
},easeslide:function(G){this.slide(G,{easing:"easeinout",duration:700});}}});})(jQuery);

/* jquery.dimensions_min.js */
(function(A){A.dimensions={version:"@VERSION"};A.each(["Height","Width"],function(D,C){A.fn["inner"+C]=function(){if(!this[0]){return;
}var E=C=="Height"?"Top":"Left",F=C=="Height"?"Bottom":"Right";return this[C.toLowerCase()]()+B(this,"padding"+E)+B(this,"padding"+F);
};A.fn["outer"+C]=function(G){if(!this[0]){return;}var E=C=="Height"?"Top":"Left",F=C=="Height"?"Bottom":"Right";
G=A.extend({margin:false},G||{});return this[C.toLowerCase()]()+B(this,"border"+E+"Width")+B(this,"border"+F+"Width")+B(this,"padding"+E)+B(this,"padding"+F)+(G.margin?(B(this,"margin"+E)+B(this,"margin"+F)):0);
};});A.each(["Left","Top"],function(D,C){A.fn["scroll"+C]=function(E){if(!this[0]){return;
}return E!=undefined?this.each(function(){this==window||this==document?window.scrollTo(C=="Left"?E:A(window)["scrollLeft"](),C=="Top"?E:A(window)["scrollTop"]()):this["scroll"+C]=E;
}):this[0]==window||this[0]==document?self[(C=="Left"?"pageXOffset":"pageYOffset")]||A.boxModel&&document.documentElement["scroll"+C]||document.body["scroll"+C]:this[0]["scroll"+C];
};});A.fn.extend({position:function(){var G=0,E=0,F=this[0],H,C,I,D;if(F){I=this.offsetParent();
H=this.offset();C=I.offset();H.top-=B(F,"marginTop");H.left-=B(F,"marginLeft");C.top+=B(I,"borderTopWidth");
C.left+=B(I,"borderLeftWidth");D={top:H.top-C.top,left:H.left-C.left};}return D;},offsetParent:function(){var C=this[0].offsetParent;
while(C&&(!/^body|html$/i.test(C.tagName)&&A.css(C,"position")=="static")){C=C.offsetParent;
}return A(C);}});var B=function(C,D){return parseInt(A.css(C.jquery?C[0]:C,D))||0;
};})(jQuery);

/* jquery.form_min.js */
(function($){$.fn.ajaxSubmit=function(options){if(typeof options=="function"){options={success:options};
}options=$.extend({url:this.attr("action")||window.location,type:this.attr("method")||"GET"},options||{});
var veto={};$.event.trigger("form.pre.serialize",[this,options,veto]);if(veto.veto){return this;
}var a=this.formToArray(options.semantic);if(options.data){for(var n in options.data){a.push({name:n,value:options.data[n]});
}}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){return this;
}$.event.trigger("form.submit.validate",[a,this,options,veto]);if(veto.veto){return this;
}var q=$.param(a);if(options.type.toUpperCase()=="GET"){options.url+=(options.url.indexOf("?")>=0?"&":"?")+q;
options.data=null;}else{options.data=q;}var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm();
});}if(options.clearForm){callbacks.push(function(){$form.clearForm();});}if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};
callbacks.push(function(data){if(this.evalScripts){$(options.target).attr("innerHTML",data).evalScripts().each(oldSuccess,arguments);
}else{$(options.target).html(data).each(oldSuccess,arguments);}});}else{if(options.success){callbacks.push(options.success);
}}options.success=function(data,status){for(var i=0,max=callbacks.length;i<max;i++){callbacks[i](data,status,$form);
}};var files=$("input:file",this).fieldValue();var found=false;for(var j=0;j<files.length;
j++){if(files[j]){found=true;}}if(options.iframe||found){fileUpload();}else{$.ajax(options);
}$.event.trigger("form.submit.notify",[this,options]);return this;function fileUpload(){var form=$form[0];
var opts=$.extend({},$.ajaxSettings,options);var id="jqFormIO"+$.fn.ajaxSubmit.counter++;
var $io=$('<iframe id="'+id+'" name="'+id+'" />');var io=$io[0];var op8=$.browser.opera&&window.opera.version()<9;
if($.browser.msie||op8){io.src='javascript:false;document.write("");';}$io.css({position:"absolute",top:"-1000px",left:"-1000px"});
var xhr={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}};
var g=opts.global;if(g&&!$.active++){$.event.trigger("ajaxStart");}if(g){$.event.trigger("ajaxSend",[xhr,opts]);
}var cbInvoked=0;var timedOut=0;setTimeout(function(){$io.appendTo("body");io.attachEvent?io.attachEvent("onload",cb):io.addEventListener("load",cb,false);
var encAttr=form.encoding?"encoding":"enctype";var t=$form.attr("target");$form.attr({target:id,method:"POST",action:opts.url});
form[encAttr]="multipart/form-data";if(opts.timeout){setTimeout(function(){timedOut=true;
cb();},opts.timeout);}form.submit();$form.attr("target",t);},10);function cb(){if(cbInvoked++){return;
}io.detachEvent?io.detachEvent("onload",cb):io.removeEventListener("load",cb,false);
var ok=true;try{if(timedOut){throw"timeout";}var data,doc;doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;
xhr.responseText=doc.body?doc.body.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;
if(opts.dataType=="json"||opts.dataType=="script"){var ta=doc.getElementsByTagName("textarea")[0];
data=ta?ta.value:xhr.responseText;if(opts.dataType=="json"){eval("data = "+data);
}else{$.globalEval(data);}}else{if(opts.dataType=="xml"){data=xhr.responseXML;if(!data&&xhr.responseText!=null){data=toXml(xhr.responseText);
}}else{data=xhr.responseText;}}}catch(e){ok=false;$.handleError(opts,xhr,"error",e);
}if(ok){opts.success(data,"success");if(g){$.event.trigger("ajaxSuccess",[xhr,opts]);
}}if(g){$.event.trigger("ajaxComplete",[xhr,opts]);}if(g&&!--$.active){$.event.trigger("ajaxStop");
}if(opts.complete){opts.complete(xhr,ok?"success":"error");}setTimeout(function(){$io.remove();
xhr.responseXML=null;},100);}function toXml(s,doc){if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");
doc.async="false";doc.loadXML(s);}else{doc=(new DOMParser()).parseFromString(s,"text/xml");
}return(doc&&doc.documentElement&&doc.documentElement.tagName!="parsererror")?doc:null;
}}};$.fn.ajaxSubmit.counter=0;$.fn.ajaxForm=function(options){return this.ajaxFormUnbind().submit(submitHandler).each(function(){this.formPluginId=$.fn.ajaxForm.counter++;
$.fn.ajaxForm.optionHash[this.formPluginId]=options;$(":submit,input:image",this).click(clickHandler);
});};$.fn.ajaxForm.counter=1;$.fn.ajaxForm.optionHash={};function clickHandler(e){var $form=this.form;
$form.clk=this;if(this.type=="image"){if(e.offsetX!=undefined){$form.clk_x=e.offsetX;
$form.clk_y=e.offsetY;}else{if(typeof $.fn.offset=="function"){var offset=$(this).offset();
$form.clk_x=e.pageX-offset.left;$form.clk_y=e.pageY-offset.top;}else{$form.clk_x=e.pageX-this.offsetLeft;
$form.clk_y=e.pageY-this.offsetTop;}}}setTimeout(function(){$form.clk=$form.clk_x=$form.clk_y=null;
},10);}function submitHandler(){var id=this.formPluginId;var options=$.fn.ajaxForm.optionHash[id];
$(this).ajaxSubmit(options);return false;}$.fn.ajaxFormUnbind=function(){this.unbind("submit",submitHandler);
return this.each(function(){$(":submit,input:image",this).unbind("click",clickHandler);
});};$.fn.formToArray=function(semantic){var a=[];if(this.length==0){return a;}var form=this[0];
var els=semantic?form.getElementsByTagName("*"):form.elements;if(!els){return a;}for(var i=0,max=els.length;
i<max;i++){var el=els[i];var n=el.name;if(!n){continue;}if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y});
}continue;}var v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(var j=0,jmax=v.length;
j<jmax;j++){a.push({name:n,value:v[j]});}}else{if(v!==null&&typeof v!="undefined"){a.push({name:n,value:v});
}}}if(!semantic&&form.clk){var inputs=form.getElementsByTagName("input");for(var i=0,max=inputs.length;
i<max;i++){var input=inputs[i];var n=input.name;if(n&&!input.disabled&&input.type=="image"&&form.clk==input){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y});
}}}return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));
};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;
if(!n){return;}var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;
i<max;i++){a.push({name:n,value:v[i]});}}else{if(v!==null&&typeof v!="undefined"){a.push({name:this.name,value:v});
}}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;
i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=="undefined"||(v.constructor==Array&&!v.length)){continue;
}v.constructor==Array?$.merge(val,v):val.push(v);}return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();
if(typeof successful=="undefined"){successful=true;}if(successful&&(!n||el.disabled||t=="reset"||t=="button"||(t=="checkbox"||t=="radio")&&!el.checked||(t=="submit"||t=="image")&&el.form&&el.form.clk!=el||tag=="select"&&el.selectedIndex==-1)){return null;
}if(tag=="select"){var index=el.selectedIndex;if(index<0){return null;}var a=[],ops=el.options;
var one=(t=="select-one");var max=(one?index+1:ops.length);for(var i=(one?index:0);
i<max;i++){var op=ops[i];if(op.selected){var v=$.browser.msie&&!(op.attributes["value"].specified)?op.text:op.value;
if(one){return v;}a.push(v);}}return a;}return el.value;};$.fn.clearForm=function(){return this.each(function(){$("input,select,textarea",this).clearFields();
});};$.fn.clearFields=$.fn.clearInputs=function(){return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();
if(t=="text"||t=="password"||tag=="textarea"){this.value="";}else{if(t=="checkbox"||t=="radio"){this.checked=false;
}else{if(tag=="select"){this.selectedIndex=-1;}}}});};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset();
}});};})(jQuery);

/* jquery.maskedinput-1.0_min.js */
(function(B){function D(F){var G={begin:0,end:0};if(F.setSelectionRange){G.begin=F.selectionStart;
G.end=F.selectionEnd;}else{if(document.selection&&document.selection.createRange){var E=document.selection.createRange();
G.begin=0-E.duplicate().moveStart("character",-100000);G.end=G.begin+E.text.length;
}}return G;}function A(F,G){if(F.setSelectionRange){F.focus();F.setSelectionRange(G,G);
}else{if(F.createTextRange){var E=F.createTextRange();E.collapse(true);E.moveEnd("character",G);
E.moveStart("character",G);E.select();}}}var C={"9":"[0-9]","a":"[A-Za-z]","*":"[A-Za-z0-9]"};
B.mask={addPlaceholder:function(F,E){C[F]=E;}};B.fn.mask=function(G,F){F=B.extend({placeholder:"_",completed:null},F);
var I="^";for(var H=0;H<G.length;H++){I+=(C[G.charAt(H)]||("\\"+G.charAt(H)));}I+="$";
var E=new RegExp(I);return this.each(function(){var O=B(this);var L=new Array(G.length);
var K=new Array(G.length);for(var J=0;J<G.length;J++){K[J]=C[G.charAt(J)]==null;L[J]=K[J]?G.charAt(J):F.placeholder;
}O.focus(function(){N();P();A(this,0);});O.blur(N);if(B.browser.msie){this.onpaste=function(){setTimeout(N,0);
};}else{if(B.browser.mozilla){this.addEventListener("input",N,false);}}var M=false;
O.keydown(function(S){var R=D(this);var T=S.keyCode;M=(T<16||(T>16&&T<32)||(T>32&&T<41));
if((R.begin-R.end)!=0&&(!M||T==8||T==46)){Q(R.begin,R.end);}if(T==8){while(R.begin-->=0){if(!K[R.begin]){L[R.begin]=F.placeholder;
if(B.browser.opera){P(R.begin);A(this,R.begin+1);}else{P();A(this,R.begin);}return false;
}}}else{if(T==46){Q(R.begin,R.begin+1);P();A(this,R.begin);return false;}else{if(T==27){Q(0,G.length);
P();A(this,0);return false;}}}});O.keypress(function(V){if(M){M=false;return;}V=V||window.event;
var W=V.charCode||V.keyCode||V.which;var T=D(this);var U=T.begin;if(V.ctrlKey||V.altKey){return true;
}else{if((W>=41&&W<=122)||W==32||W>186){while(T.begin<G.length){var X=C[G.charAt(T.begin)];
var S;if(X){var R=new RegExp(X);S=String.fromCharCode(W).match(R);}else{T.begin+=1;
T.end=T.begin;U+=1;continue;}if(S){L[T.begin]=String.fromCharCode(W);}else{return false;
}while(++U<G.length){if(!K[U]){break;}}break;}}else{return false;}}P();if(F.completed&&U>=L.length){F.completed.call(O);
}else{A(this,U);}return false;});function Q(R,S){for(var T=R;T<S;T++){if(!K[T]){L[T]=F.placeholder;
}}}function P(S){var R="";for(var T=0;T<G.length;T++){R+=L[T];if(T==S){R+=F.placeholder;
}}O.val(R);return R;}function N(){var T=O.val();var R=0;for(var U=0;U<G.length;U++){if(!K[U]){while(R++<T.length){var V=new RegExp(C[G.charAt(U)]);
if(T.charAt(R-1).match(V)){L[U]=T.charAt(R-1);break;}}}}var S=P();if(!S.match(E)){O.val("");
Q(0,G.length);}}});};})(jQuery);

/* jquery.metadata_min.js */
(function($){$.meta={type:"class",name:"metadata",setType:function(type,name){this.type=type;
this.name=name;},cre:/({.*})/,single:"metadata"};var setArray=$.fn.setArray;$.fn.setArray=function(arr){return setArray.apply(this,arguments).each(function(){if(this.metaDone||this.nodeType==9||$.isXMLDoc(this)){return;
}var data="{}";if($.meta.type=="class"){var m=$.meta.cre.exec(this.className);if(m){data=m[1];
}}else{if($.meta.type=="elem"){if(!this.getElementsByTagName){return;}var e=this.getElementsByTagName($.meta.name);
if(e.length){data=$.trim(e[0].innerHTML);}}else{if(this.getAttribute!=undefined){var attr=this.getAttribute($.meta.name);
if(attr){data=attr;}}}}if(!/^{/.test(data)){data="{"+data+"}";}eval("data = "+data);
if($.meta.single){this[$.meta.single]=data;}else{$.extend(this,data);}this.metaDone=true;
});};$.fn.data=function(){return this[0][$.meta.single];};})(jQuery);

/* jquery.validate_min.js */
jQuery.extend(jQuery.fn,{validate:function(B){var A=new jQuery.validator(B,this[0]);
if(A.settings.onsubmit){this.find("input.cancel:submit").click(function(){A.cancelSubmit=true;
});this.submit(function(C){if(A.settings.debug){C.preventDefault();}function D(){if(A.settings.submitHandler){A.settings.submitHandler.call(A,A.currentForm);
return false;}return true;}if(A.cancelSubmit){A.cancelSubmit=false;return D();}if(A.form()){if(this.pendingRequest){this.submitted=true;
return false;}return D();}else{A.focusInvalid();return false;}});}return A;},push:function(A){return this.setArray(jQuery.merge(this.get(),A));
}});jQuery.extend(jQuery.expr[":"],{blank:"!jQuery.trim(a.value)",filled:"!!jQuery.trim(a.value)",unchecked:"!a.checked"});
String.format=function(B,A){if(arguments.length==1){return function(){var C=jQuery.makeArray(arguments);
C.unshift(B);return String.format.apply(this,C);};}if(arguments.length>2&&A.constructor!=Array){A=jQuery.makeArray(arguments).slice(1);
}if(A.constructor!=Array){A=[A];}jQuery.each(A,function(D,C){B=B.replace(new RegExp("\\{"+D+"\\}","g"),C);
});return B;};jQuery.validator=function(B,A){this.settings=jQuery.extend({},jQuery.validator.defaults,B);
this.currentForm=A;this.labelContainer=this.settings.errorLabelContainer;this.errorContext=this.labelContainer.length&&this.labelContainer||jQuery(A);
this.containers=this.settings.errorContainer.add(this.settings.errorLabelContainer);
this.submitted={};this.valueCache={};this.pendingRequest=0;this.invalid={};this.reset();
this.refresh();};jQuery.extend(jQuery.validator,{defaults:{messages:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:jQuery([]),errorLabelContainer:jQuery([]),onsubmit:true,ignore:[],onblur:function(A){if(!this.checkable(A)&&(A.name in this.submitted||!this.optional(A))){this.element(A);
}},onkeyup:function(A){if(A.name in this.submitted||A==this.lastElement){this.element(A);
}},onclick:function(A){if(A.name in this.submitted){this.element(A);}}},setDefaults:function(A){jQuery.extend(jQuery.validator.defaults,A);
},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxLength:String.format("Please enter a value no longer than {0} characters."),minLength:String.format("Please enter a value of at least {0} characters."),rangeLength:String.format("Please enter a value between {0} and {1} characters long."),rangeValue:String.format("Please enter a value between {0} and {1}."),maxValue:String.format("Please enter a value less than or equal to {0}."),minValue:String.format("Please enter a value greater than or equal to {0}.")},prototype:{form:function(){this.prepareForm();
for(var A=0;this.elements[A];A++){this.check(this.elements[A]);}jQuery.extend(this.submitted,this.errorMap);
this.invalid=jQuery.extend({},this.errorMap);this.settings.invalidHandler&&this.settings.invalidHandler.call(this);
this.showErrors();return this.valid();},element:function(B){B=this.clean(B);this.lastElement=B;
this.prepareElement(B);var A=this.check(B);if(A){delete this.invalid[B.name];}else{this.invalid[B.name]=true;
}this.showErrors();return A;},showErrors:function(A){if(A){jQuery.extend(this.errorMap,A);
for(name in A){this.errorList.push({message:A[name],element:jQuery("[@name='"+name+"']:first",this.currentForm)[0]});
}this.successList=jQuery.grep(this.successList,function(B){return !(B.name in A);
});}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors();
},resetForm:function(){if(jQuery.fn.resetForm){jQuery(this.currentForm).resetForm();
}this.prepareForm();this.hideErrors();this.elements.removeClass(this.settings.errorClass);
},numberOfInvalids:function(){var A=0;for(i in this.invalid){A++;}return A;},hideErrors:function(){this.addWrapper(this.toHide).hide();
},valid:function(){return this.size()==0;},size:function(){return this.errorList.length;
},focusInvalid:function(){if(this.settings.focusInvalid){try{jQuery(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus();
}catch(A){}}},findLastActive:function(){var A=this.lastActive;return A&&jQuery.grep(this.errorList,function(B){return B.element.name==A.name;
}).length==1&&A;},refresh:function(B){var C=this;C.rulesCache={};function A(){C.lastActive=this;
if(C.settings.focusCleanup&&!C.blockFocusCleanup){jQuery(this).removeClass(C.settings.errorClass);
C.errorsFor(this).hide();}}if(B){$(B).each(function(){if(C.elements.index(this)>-1){C.elements.add(this);
}C.rulesCache[this.name]=C.rules(this);}).focus(A);}this.elements=jQuery(this.currentForm).find("input, select, textarea, button").not(":submit, :reset, :button").not("[@disabled]").not(this.settings.ignore).filter(function(){!this.name&&C.settings.debug&&window.console&&console.error("%o has no name assigned",this);
if(this.name in C.rulesCache||!C.rules(this).length){return false;}C.rulesCache[this.name]=C.rules(this);
return true;});this.elements.focus(A);C.settings.onblur&&C.elements.blur(function(){C.settings.onblur.call(C,this);
});C.settings.onkeyup&&C.elements.keyup(function(){C.settings.onkeyup.call(C,this);
});if(C.settings.onclick){var D=jQuery([]);C.elements.each(function(){if(C.checkable(this)){D.push(C.checkableGroup(this));
}});C.settings.onclick&&D.click(function(){C.settings.onclick.call(C,this);});}},clean:function(A){return jQuery(A)[0];
},errors:function(){return jQuery(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext);
},reset:function(A){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=jQuery([]);
this.toHide=jQuery([]);},prepareForm:function(){this.reset();this.toHide=this.errors().push(this.containers);
},prepareElement:function(A){this.reset();this.toHide=this.errorsFor(this.clean(A));
},check:function(D){D=this.clean(D);jQuery(D).removeClass(this.settings.errorClass);
var C=this.rulesCache[D.name];for(var B=0;C[B];B++){var F=C[B];try{var A=jQuery.validator.methods[F.method].call(this,jQuery.trim(D.value),D,F.parameters);
if(A===-1){break;}if(!A){jQuery(D).addClass(this.settings.errorClass);this.formatAndAdd(F,D);
return false;}}catch(E){this.settings.debug&&window.console&&console.error("exception occured when checking element "+D.id+", check the '"+F.method+"' method");
throw E;}}if(C.length&&this.settings.success){this.successList.push(D);}return true;
},configuredMessage:function(C,B){var A=this.settings.messages[C];return A&&(A.constructor==String?A:A[B]);
},defaultMessage:function(B,A){return this.configuredMessage(B.name,A)||B.title||jQuery.validator.messages[A]||"<strong>Warning: No message defined for "+B.name+"</strong>";
},formatAndAdd:function(C,B){var A=this.defaultMessage(B,C.method);if(typeof A=="function"){A=A.call(this,C.parameters,B);
}this.errorList.push({message:A,element:B});this.errorMap[B.name]=A;this.submitted[B.name]=A;
},addWrapper:function(A){if(this.settings.wrapper){A.push(A.parents(this.settings.wrapper));
}return A;},defaultShowErrors:function(){for(var A=0;this.errorList[A];A++){var B=this.errorList[A];
this.showLabel(B.element,B.message);}if(this.errorList.length){this.toShow.push(this.containers);
}for(var A=0;this.successList[A];A++){this.showLabel(this.successList[A]);}this.toHide=this.toHide.not(this.toShow);
this.hideErrors();this.addWrapper(this.toShow).show();},showLabel:function(C,B){var A=this.errorsFor(C);
if(A.length){A.removeClass().addClass(this.settings.errorClass);if(this.settings.overrideErrors||A.attr("generated")){A.html(B);
}}else{A=jQuery("<"+this.settings.errorElement+"></"+this.settings.errorElement+">").attr({"for":this.idOrName(C),generated:true}).addClass(this.settings.errorClass).html(B||"");
if(this.settings.wrapper){A=A.hide().show().wrap("<"+this.settings.wrapper+">").parent();
}if(!this.labelContainer.append(A).length){this.settings.errorPlacement?this.settings.errorPlacement(A,jQuery(C)):A.insertAfter(C);
}}if(!B&&this.settings.success){A.text("");typeof this.settings.success=="string"?A.addClass(this.settings.success):this.settings.success(A);
}this.toShow.push(A);},errorsFor:function(A){return this.errors().filter("[@for='"+this.idOrName(A)+"']");
},idOrName:function(A){return this.checkable(A)?A.name:A.id||A.name;},rules:function(C){var D=this.data(C);
if(!D){return[];}var B=[];if(typeof D=="string"){var A={};A[D]=true;D=A;}jQuery.each(D,function(F,E){B[B.length]={method:F,parameters:E};
});return B;},data:function(A){return this.settings.rules?this.settings.rules[A.name]:this.settings.meta?jQuery(A).data()[this.settings.meta]:jQuery(A).data();
},checkable:function(A){return/radio|checkbox/i.test(A.type);},checkableGroup:function(A){return jQuery(A.form||document).find('[@name="'+A.name+'"]');
},getLength:function(A,B){switch(B.nodeName.toLowerCase()){case"select":return jQuery("option:selected",B).length;
case"input":if(this.checkable(B)){return this.checkableGroup(B).filter(":checked").length;
}}return A.length;},depend:function(A,B){if(this.settings.subformRequired){if(this.settings.subformRequired(jQuery(B))){return false;
}}return this.dependTypes[typeof A]?this.dependTypes[typeof A](A,B):true;},dependTypes:{"boolean":function(A,B){return A;
},"string":function(A,B){return !!jQuery(A,B.form).length;},"function":function(A,B){return A(B);
}},optional:function(A){return !jQuery.validator.methods.required.call(this,jQuery.trim(A.value),A);
},startRequest:function(){this.pendingRequest++;},stopRequest:function(A){this.pendingRequest--;
if(A&&this.pendingRequest==0&&this.submitted&&this.form()){jQuery(this.currentForm).submit();
}}},methods:{required:function(A,C,B){if(!this.depend(B,C)){return -1;}switch(C.nodeName.toLowerCase()){case"select":var D=jQuery("option:selected",C);
return D.length>0&&(C.type=="select-multiple"||(jQuery.browser.msie&&!(D[0].attributes["value"].specified)?D[0].text:D[0].value).length>0);
case"input":if(this.checkable(C)){return this.getLength(A,C)>0;}default:return A.length>0;
}},remote:function(A,D,B){if(this.optional(D)){return true;}var E=this.valueCache[D.name];
if(!E){this.valueCache[D.name]=E={old:null,valid:true,message:this.defaultMessage(D,"remote")};
}this.settings.messages[D.name].remote=typeof E.message=="function"?E.message(A):E.message;
if(E.old!==A){E.old=A;var C=this;this.startRequest();jQuery.ajax({url:B,mode:"abort",port:"validate",dataType:"json",data:{value:A},success:function(F){if(!F){var G={};
G[D.name]=C.defaultMessage(D,"remote");C.showErrors(G);}E.valid=F;C.stopRequest(F);
}});return true;}return E.valid;},minLength:function(A,C,B){return this.optional(C)||this.getLength(A,C)>=B;
},maxLength:function(A,C,B){return this.optional(C)||this.getLength(A,C)<=B;},rangeLength:function(A,C,B){var D=this.getLength(A,C);
return this.optional(C)||(D>=B[0]&&D<=B[1]);},minValue:function(A,C,B){return this.optional(C)||A>=B;
},maxValue:function(A,C,B){return this.optional(C)||A<=B;},rangeValue:function(A,C,B){return this.optional(C)||(A>=B[0]&&A<=B[1]);
},email:function(A,B){return this.optional(B)||/^[\w-+\.]+@([\w-]+\.)+[\w-]{2,4}$/i.test(A);
},url:function(A,B){return this.optional(B)||/^(https?|ftp):\/\/[A-Z0-9](\.?[A-Z0-9ÄÜÖ][A-Z0-9_\-ÄÜÖ]*)*(\/([A-Z0-9ÄÜÖ][A-Z0-9_\-\.ÄÜÖ]*)?)*(\?([A-Z0-9ÄÜÖ][A-Z0-9_\-\.%\+=&ÄÜÖ]*)?)?$/i.test(A);
},date:function(A,B){return this.optional(B)||!/Invalid|NaN/.test(new Date(A));},dateISO:function(A,B){return this.optional(B)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(A);
},dateDE:function(A,B){return this.optional(B)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(A);
},number:function(A,B){return this.optional(B)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(A);
},numberDE:function(A,B){return this.optional(B)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(A);
},digits:function(A,B){return this.optional(B)||/^\d+$/.test(A);},creditcard:function(A,C){if(this.optional(C)){return true;
}var D=0,B=0,F=false;A=A.replace(/\D/g,"");for(n=A.length-1;n>=0;n--){var E=A.charAt(n);
var B=parseInt(E,10);if(F){if((B*=2)>9){B-=9;}}D+=B;F=!F;}return(D%10)==0;},accept:function(A,C,B){B=typeof B=="string"?B:"png|jpe?g|gif";
return this.optional(C)||A.match(new RegExp(".("+B+")$"));},equalTo:function(A,C,B){return A==jQuery(B).val();
}},addMethod:function(A,B,C){jQuery.validator.methods[A]=B;jQuery.validator.messages[A]=C;
}});





