(function(A){A.extend(A.fn,{validate:function(B){if(!this.length){B&&B.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return }var C=A.data(this[0],"validator");if(C){return C}C=new A.validator(B,this[0]);A.data(this[0],"validator",C);if(C.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){C.cancelSubmit=true});this.submit(function(D){if(C.settings.debug){D.preventDefault()}function E(){if(C.settings.submitHandler){C.settings.submitHandler.call(C,C.currentForm);return false}return true}if(C.cancelSubmit){C.cancelSubmit=false;return E()}if(C.form()){if(C.pendingRequest){C.formSubmitted=true;return false}return E()}else{C.focusInvalid();return false}})}return C},valid:function(){if(A(this[0]).is("form")){return this.validate().form()}else{var C=false;var B=A(this[0].form).validate();this.each(function(){C|=B.element(this)});return C}},removeAttrs:function(D){var B={},C=this;A.each(D.split(/\s/),function(E,F){B[F]=C.attr(F);C.removeAttr(F)});return B},rules:function(E,B){var G=this[0];if(E){var D=A.data(G.form,"validator").settings;var I=D.rules;var J=A.validator.staticRules(G);switch(E){case"add":A.extend(J,A.validator.normalizeRule(B));I[G.name]=J;if(B.messages){D.messages[G.name]=A.extend(D.messages[G.name],B.messages)}break;case"remove":if(!B){delete I[G.name];return J}var H={};A.each(B.split(/\s/),function(K,L){H[L]=J[L];delete J[L]});return H}}var F=A.validator.normalizeRules(A.extend({},A.validator.metadataRules(G),A.validator.classRules(G),A.validator.attributeRules(G),A.validator.staticRules(G)),G);if(F.required){var C=F.required;delete F.required;F=A.extend({required:C},F)}return F}});A.extend(A.expr[":"],{blank:function(B){return !A.trim(B.value)},filled:function(B){return !!A.trim(B.value)},unchecked:function(B){return !B.checked}});A.format=function(B,C){if(arguments.length==1){return function(){var D=A.makeArray(arguments);D.unshift(B);return A.format.apply(this,D)}}if(arguments.length>2&&C.constructor!=Array){C=A.makeArray(arguments).slice(1)}if(C.constructor!=Array){C=[C]}A.each(C,function(D,E){B=B.replace(new RegExp("\\{"+D+"\\}","g"),E)});return B};A.validator=function(B,C){A.validator.messages.required=A.translate(A.validator.messages.required);this.settings=A.extend({},A.validator.defaults,B);this.currentForm=C;this.init()};A.extend(A.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",errorElement:"label",focusInvalid:true,errorContainer:A([]),errorLabelContainer:A([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(B){this.lastActive=B;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,B,this.settings.errorClass);this.errorsFor(B).hide()}},onfocusout:function(B){if(!this.checkable(B)&&(B.name in this.submitted||!this.optional(B))){this.element(B)}},onkeyup:function(B){if(B.name in this.submitted||B==this.lastElement){this.element(B)}},onclick:function(B){if(B.name in this.submitted){this.element(B)}},highlight:function(C,B){A(C).addClass(B)},unhighlight:function(C,B){A(C).removeClass(B)}},setDefaults:function(B){A.extend(A.validator.defaults,B)},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 number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:A.format("Please enter no more than {0} characters."),minlength:A.format("Please enter at least {0} characters."),rangelength:A.format("Please enter a value between {0} and {1} characters long."),range:A.format("Please enter a value between {0} and {1}."),max:A.format("Please enter a value less than or equal to {0}."),min:A.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=A(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||A(this.currentForm);this.containers=A(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var B=(this.groups={});A.each(this.settings.groups,function(E,F){A.each(F.split(/\s/),function(H,G){B[G]=E})});var D=this.settings.rules;A.each(D,function(E,F){D[E]=A.validator.normalizeRule(F)});function C(F){var E=A.data(this[0].form,"validator");E.settings["on"+F.type]&&E.settings["on"+F.type].call(E,this[0])}A(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",C).delegate("click",":radio, :checkbox",C);if(this.settings.invalidHandler){A(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)}},form:function(){this.checkForm();A.extend(this.submitted,this.errorMap);this.invalid=A.extend({},this.errorMap);if(!this.valid()){A(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var B=0,C=(this.currentElements=this.elements());C[B];B++){this.check(C[B])}return this.valid()},element:function(C){C=this.clean(C);this.lastElement=C;this.prepareElement(C);this.currentElements=A(C);var B=this.check(C);if(B){delete this.invalid[C.name]}else{this.invalid[C.name]=true}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return B},showErrors:function(C){if(C){A.extend(this.errorMap,C);this.errorList=[];for(var B in C){this.errorList.push({message:C[B],element:this.findByName(B)[0]})}this.successList=A.grep(this.successList,function(D){return !(D.name in C)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(A.fn.resetForm){A(this.currentForm).resetForm()}this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(D){var C=0;for(var B in D){C++}return C},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{A(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()}catch(B){}}},findLastActive:function(){var B=this.lastActive;return B&&A.grep(this.errorList,function(C){return C.element.name==B.name}).length==1&&B},elements:function(){var C=this,B={};return A([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [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 B||!C.objectLength(A(this).rules())){return false}B[this.name]=true;return true})},clean:function(B){return A(B)[0]},errors:function(){return A(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=A([]);this.toHide=A([]);this.formSubmitted=false;this.currentElements=A([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(B){this.reset();this.toHide=this.errorsFor(B)},check:function(C){C=this.clean(C);if(this.checkable(C)){C=this.findByName(C.name)[0]}var G=A(C).rules();var D=false;for(method in G){var F={method:method,parameters:G[method]};try{var B=A.validator.methods[method].call(this,C.value.replace(/\r/g,""),C,F.parameters);if(B=="dependency-mismatch"){D=true;continue}D=false;if(B=="pending"){this.toHide=this.toHide.not(this.errorsFor(C));return }if(!B){this.formatAndAdd(C,F);return false}}catch(E){this.settings.debug&&window.console&&console.log("exception occured when checking element "+C.id+", check the '"+F.method+"' method");throw E}}if(D){return }if(this.objectLength(G)){this.successList.push(C)}return true},customMetaMessage:function(B,D){if(!A.metadata){return }var C=this.settings.meta?A(B).metadata()[this.settings.meta]:A(B).metadata();return C&&C.messages&&C.messages[D]},customMessage:function(C,D){var B=this.settings.messages[C];return B&&(B.constructor==String?B:B[D])},findDefined:function(){for(var B=0;B<arguments.length;B++){if(arguments[B]!==undefined){return arguments[B]}}return undefined},defaultMessage:function(B,C){return this.findDefined(this.customMessage(B.name,C),this.customMetaMessage(B,C),!this.settings.ignoreTitle&&B.title||undefined,A.validator.messages[C],"<strong>Warning: No message defined for "+B.name+"</strong>")},formatAndAdd:function(B,D){var C=this.defaultMessage(B,D.method);if(typeof C=="function"){C=C.call(this,D.parameters,B)}this.errorList.push({message:C,element:B});this.errorMap[B.name]=C;this.submitted[B.name]=C},addWrapper:function(B){if(this.settings.wrapper){B=B.add(B.parents(this.settings.wrapper))}return B},defaultShowErrors:function(){for(var C=0;this.errorList[C];C++){var B=this.errorList[C];this.settings.highlight&&this.settings.highlight.call(this,B.element,this.settings.errorClass);this.showLabel(B.element,B.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(var C=0;this.successList[C];C++){this.showLabel(this.successList[C])}}if(this.settings.unhighlight){for(var C=0,D=this.validElements();D[C];C++){this.settings.unhighlight.call(this,D[C],this.settings.errorClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return A(this.errorList).map(function(){return this.element})},showLabel:function(C,D){var B=this.errorsFor(C);if(B.length){B.removeClass().addClass(this.settings.errorClass);B.attr("generated")&&B.html(D)}else{B=A("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(C),generated:true}).addClass(this.settings.errorClass).html(D||"");if(this.settings.wrapper){B=B.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}if(!this.labelContainer.append(B).length){this.settings.errorPlacement?this.settings.errorPlacement(B,A(C)):B.insertAfter(C)}}if(!D&&this.settings.success){B.text("");typeof this.settings.success=="string"?B.addClass(this.settings.success):this.settings.success(B)}this.toShow=this.toShow.add(B)},errorsFor:function(B){return this.errors().filter("[for='"+this.idOrName(B)+"']")},idOrName:function(B){return this.groups[B.name]||(this.checkable(B)?B.name:B.id||B.name)},checkable:function(B){return/radio|checkbox/i.test(B.type)},findByName:function(B){var C=this.currentForm;return A(document.getElementsByName(B)).map(function(D,E){return E.form==C&&E.name==B&&E||null})},getLength:function(C,B){switch(B.nodeName.toLowerCase()){case"select":return A("option:selected",B).length;case"input":if(this.checkable(B)){return this.findByName(B.name).filter(":checked").length}}return C.length},depend:function(C,B){return this.dependTypes[typeof C]?this.dependTypes[typeof C](C,B):true},dependTypes:{"boolean":function(C,B){return C},string:function(C,B){return !!A(C,B.form).length},"function":function(C,B){return C(B)}},optional:function(B){return !A.validator.methods.required.call(this,A.trim(B.value),B)&&"dependency-mismatch"},startRequest:function(B){if(!this.pending[B.name]){this.pendingRequest++;this.pending[B.name]=true}},stopRequest:function(B,C){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[B.name];if(C&&this.pendingRequest==0&&this.formSubmitted&&this.form()){A(this.currentForm).submit()}else{if(!C&&this.pendingRequest==0&&this.formSubmitted){A(this.currentForm).triggerHandler("invalid-form",[this])}}},previousValue:function(B){return A.data(B,"previousValue")||A.data(B,"previousValue",previous={old:null,valid:true,message:this.defaultMessage(B,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(B,C){B.constructor==String?this.classRuleSettings[B]=C:A.extend(this.classRuleSettings,B)},classRules:function(C){var D={};var B=A(C).attr("class");B&&A.each(B.split(" "),function(){if(this in A.validator.classRuleSettings){A.extend(D,A.validator.classRuleSettings[this])}});return D},attributeRules:function(C){var E={};var B=A(C);for(method in A.validator.methods){var D=B.attr(method);if(D){E[method]=D}}if(E.maxlength&&/-1|2147483647|524288/.test(E.maxlength)){delete E.maxlength}return E},metadataRules:function(B){if(!A.metadata){return{}}var C=A.data(B.form,"validator").settings.meta;return C?A(B).metadata()[C]:A(B).metadata()},staticRules:function(C){var D={};var B=A.data(C.form,"validator");if(B.settings.rules){D=A.validator.normalizeRule(B.settings.rules[C.name])||{}}return D},normalizeRules:function(C,B){A.each(C,function(F,E){if(E===false){delete C[F];return }if(E.param||E.depends){var D=true;switch(typeof E.depends){case"string":D=!!A(E.depends,B.form).length;break;case"function":D=E.depends.call(B,B);break}if(D){C[F]=E.param!==undefined?E.param:true}else{delete C[F]}}});A.each(C,function(D,E){C[D]=A.isFunction(E)?E(B):E});A.each(["minlength","maxlength","min","max"],function(){if(C[this]){C[this]=Number(C[this])}});A.each(["rangelength","range"],function(){if(C[this]){C[this]=[Number(C[this][0]),Number(C[this][1])]}});if(A.validator.autoCreateRanges){if(C.min&&C.max){C.range=[C.min,C.max];delete C.min;delete C.max}if(C.minlength&&C.maxlength){C.rangelength=[C.minlength,C.maxlength];delete C.minlength;delete C.maxlength}}if(C.messages){delete C.messages}return C},normalizeRule:function(C){if(typeof C=="string"){var B={};A.each(C.split(/\s/),function(){B[this]=true});C=B}return C},addMethod:function(B,D,C){A.validator.methods[B]=D;A.validator.messages[B]=C;if(D.length<3){A.validator.addClassRules(B,A.validator.normalizeRule(B))}},methods:{required:function(D,C,E){if(!this.depend(E,C)){return"dependency-mismatch"}switch(C.nodeName.toLowerCase()){case"select":var B=A("option:selected",C);return B.length>0&&(C.type=="select-multiple"||(A.browser.msie&&!(B[0].attributes.value.specified)?B[0].text:B[0].value).length>0);case"input":if(this.checkable(C)){return this.getLength(D,C)>0}default:return A.trim(D).length>0}},remote:function(F,C,G){if(this.optional(C)){return"dependency-mismatch"}var D=this.previousValue(C);if(!this.settings.messages[C.name]){this.settings.messages[C.name]={}}this.settings.messages[C.name].remote=typeof D.message=="function"?D.message(F):D.message;G=typeof G=="string"&&{url:G}||G;if(D.old!==F){D.old=F;var B=this;this.startRequest(C);var E={};E[C.name]=F;A.ajax(A.extend(true,{url:G,mode:"abort",port:"validate"+C.name,dataType:"json",data:E,success:function(I){if(I){var H=B.formSubmitted;B.prepareElement(C);B.formSubmitted=H;B.successList.push(C);B.showErrors()}else{var J={};J[C.name]=I||B.defaultMessage(C,"remote");B.showErrors(J)}D.valid=I;B.stopRequest(C,I)}},G));return"pending"}else{if(this.pending[C.name]){return"pending"}}return D.valid},minlength:function(C,B,D){return this.optional(B)||this.getLength(A.trim(C),B)>=D},maxlength:function(C,B,D){return this.optional(B)||this.getLength(A.trim(C),B)<=D},rangelength:function(D,B,E){var C=this.getLength(A.trim(D),B);return this.optional(B)||(C>=E[0]&&C<=E[1])},min:function(C,B,D){return this.optional(B)||C>=D},max:function(C,B,D){return this.optional(B)||C<=D},range:function(C,B,D){return this.optional(B)||(C>=D[0]&&C<=D[1])},email:function(C,B){return this.optional(B)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(C)},url:function(C,B){return(this.optional(B)||/^.*\..*$/i.test(C))&&(C.substring(0,7)!="http://")},date:function(C,B){return this.optional(B)||!/Invalid|NaN/.test(new Date(C))},dateISO:function(C,B){return this.optional(B)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(C)},dateDE:function(C,B){return this.optional(B)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(C)},number:function(C,B){return this.optional(B)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(C)},numberDE:function(C,B){return this.optional(B)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(C)},digits:function(C,B){return this.optional(B)||/^\d+$/.test(C)},creditcard:function(F,C){if(this.optional(C)){return"dependency-mismatch"}if(/[^0-9-]+/.test(F)){return false}var G=0,E=0,B=false;F=F.replace(/\D/g,"");for(n=F.length-1;n>=0;n--){var D=F.charAt(n);var E=parseInt(D,10);if(B){if((E*=2)>9){E-=9}}G+=E;B=!B}return(G%10)==0},accept:function(C,B,D){D=typeof D=="string"?D:"png|jpe?g|gif";return this.optional(B)||C.match(new RegExp(".("+D+")$","i"))},equalTo:function(C,B,D){return C==A(D).val()}}})})(jQuery);(function(C){var B=C.ajax;var A={};C.ajax=function(E){E=C.extend(E,C.extend({},C.ajaxSettings,E));var D=E.port;if(E.mode=="abort"){if(A[D]){A[D].abort()}return(A[D]=B.apply(this,arguments))}return B.apply(this,arguments)}})(jQuery);(function(A){A.each({focus:"focusin",blur:"focusout"},function(C,B){A.event.special[B]={setup:function(){if(A.browser.msie){return false}this.addEventListener(C,A.event.special[B].handler,true)},teardown:function(){if(A.browser.msie){return false}this.removeEventListener(C,A.event.special[B].handler,true)},handler:function(D){arguments[0]=A.event.fix(D);arguments[0].type=B;return A.event.handle.apply(this,arguments)}}});A.extend(A.fn,{delegate:function(D,C,B){return this.bind(D,function(E){var F=A(E.target);if(F.is(C)){return B.apply(F,arguments)}})},triggerEvent:function(B,C){return this.triggerHandler(B,[A.event.fix({type:B,target:C})])}})})(jQuery);jQuery(document).ready(wrapH1);function wrapH1(){var C=document.getElementsByTagName("h1");var A=C.length;for(var B=0;B<A;B++){if(C[B].getAttribute("class")==null){jQuery("h1:nth("+B+")").after('<div class= "dot"></div>')}}};var filter_search_o=new Array();var filter_search_i=0;var filter_search_name=null;function checkboxVal(B,A){var C="";B.find("input[name="+A+"]").each(function(){if(jQuery(this).attr("checked")==true){C+=jQuery(this).val()+","}});return C.substring(0,C.length-1)}function radioVal(B,A){var C="";B.find("input[name="+A+"]").each(function(){if(jQuery(this).attr("checked")==true){C=jQuery(this).val()}});return C}function checkEqual(D,C){var A=C.split(",");for(var B=0;B<A.length;B++){if(D==A[B]){return true}}return false}function cleanName(B){var A=B;A=A.replace(/\[/gi,"zzz");A=A.replace(/\]/gi,"xxx");A=A.replace(/-/gi,"ccc");return A}filter_search.prototype.self=null;filter_search.prototype.parent=null;filter_search.prototype.option=null;filter_search.prototype.type=null;filter_search.prototype.hiding=function(data){var name=cleanName(this.self.attr("name"));eval("var data = data."+name);if(typeof (data)!="undefined"){data=data.split(",");if("select"==this.type){var select=this.self.val();var html="";for(var m=0;m<this.option.length;m++){var has=false;for(var n=0;n<data.length;n++){if(checkEqual(data[n],this.option[m].value)){has=true;break}}var sel="";if(has&&this.option[m].value==select){sel=' selected="selected"'}var disable="";if(!has&&this.option[m].value!=""){disable=' disabled="disabled"'}html+='<option value="'+this.option[m].value+'"'+sel+disable+">"+this.option[m].text+"</option>"}this.self.html(html);if(html==""){this.self.attr("disabled","disabled")}}else{if("checkbox"==this.type||"radio"==this.type){this.parent.find("input[name="+this.self.attr("name")+"]").each(function(){jQuery(this).removeAttr("disabled");var check=false;for(var m=0;m<data.length;m++){if(checkEqual(data[m],jQuery(this).val())){check=true;break}}if(check==false){jQuery(this).attr("disabled","disabled")}})}}}};function filter_search(self,parent,type){this.self=self;this.parent=parent;this.type=type;var option=new Array();if("select"==type){var i=0;self.find("option").each(function(){option[i++]={value:jQuery(this).val(),text:jQuery(this).text()}})}this.option=option;var ref=this;this.self.change(function(){var data=new Object();data.name=ref.parent.attr("name");data.L=ref.parent.find("input[name=L]").val();if(typeof (data.L)=="undefined"){data.L=TAT_LLL}ref.parent.find("select").each(function(){var name=cleanName(jQuery(this).attr("name"));eval("data."+name+'="'+jQuery(this).val()+'"')});ref.parent.find("input[type=checkbox]").each(function(){var n=cleanName(jQuery(this).attr("name"));eval("var check = data."+n);if(typeof (check)=="undefined"){eval("data."+n+'="'+checkboxVal(ref.parent,n)+'"')}});ref.parent.find("input[type=radio]").each(function(){var n=cleanName(jQuery(this).attr("name"));eval("var check = data."+n);if(typeof (check)=="undefined"){eval("data."+n+'="'+radioVal(ref.parent,n)+'"')}});filter_search_name=ref.self.attr("name");jQuery.getJSON("/fileadmin/scripts/filter_search_mod.php",data,function(data){for(var i=0;i<filter_search_i;i++){var name=cleanName(filter_search_o[i].self.attr("name"));if(data.form==filter_search_o[i].parent.attr("name")&&typeof (eval("data."+name))!="undefined"){filter_search_o[i].hiding(data)}}})})}jQuery(document).ready(function(){if(jQuery.browser.version<8&&$.browser.msie){$("option[disabled]").attr("style","color:#CCCCCC;");$("select").change(function(){if(this.options[this.selectedIndex].disabled){if(this.options.length==0){this.selectedIndex=-1}else{this.selectedIndex--}$(this).trigger("change")}});$("select").each(function(C){if(this.options[this.selectedIndex].disabled){this.onchange()}})}var B=new Array();jQuery("form[name$=___]").each(function(){B[B.length]=filter_search_i;var C=jQuery(this);C.find("select").each(function(){filter_search_o[filter_search_i++]=new filter_search(jQuery(this),C,"select")});C.find("input[type=checkbox]").each(function(){var E=false;for(var D=0;D<filter_search_o.length;D++){if(filter_search_o[D].name==jQuery(this).attr.name&&filter_search_o[D].type=="checkbox"){E==true;break}}if(E==false){filter_search_o[filter_search_i++]=new filter_search(jQuery(this),C,"checkbox")}});C.find("input[type=radio]").each(function(){var E=false;for(var D=0;D<filter_search_o.length;D++){if(filter_search_o[D].name==jQuery(this).attr.name&&filter_search_o[D].type=="radio"){E==true;break}}if(E==false){filter_search_o[filter_search_i++]=new filter_search(jQuery(this),C,"radio")}})});for(var A=0;A<B.length;A++){if(typeof (filter_search_o[B[A]])!="undefined"){filter_search_o[B[A]].self.change()}}});var tat_savebox={URLEncode:function(G){var F="";var B=0;G=G.toString();var D=/(^[a-zA-Z0-9_.]*)/;while(B<G.length){var A=D.exec(G.substr(B));if(A!=null&&A.length>1&&A[1]!=""){F+=A[1];B+=A[1].length}else{if(G[B]==" "){F+="+"}else{var E=G.charCodeAt(B);var C=E.toString(16);F+="%"+(C.length<2?"0":"")+C.toUpperCase()}B++}}return F},URLDecode:function(C){var E=C;var A,B;var D=/(%[^%]{2})/;while((m=D.exec(E))!=null&&m.length>1&&m[1]!=""){b=parseInt(m[1].substr(1),16);B=String.fromCharCode(b);E=E.replace(m[1],B)}return E},init:function(){jQuery("body").append('<div id="savebox" style="position:absolute; top:0px; left:0px; font-family:Georgia,\'Times New Roman\',Times,serif; font-size:15px; font-weight:normal; align:left"></div>');this.reset()},reset:function(){jQuery("#savebox").html('<div class="background" style="position:absolute; top:0px; left:0px; width:'+jQuery(document).width()+"px; height:"+jQuery(document).height()+'px; z-index:15; background-color:black"></div>');jQuery("#savebox .background").fadeTo("fast",0.5);jQuery("#savebox").hide()},bookmark:function(A){this.box("<b>"+A+jQuery.translate("</b> has been saved to your Bookmarks.<br /><br />Find all your saved pages in your My Account &gt; My Preferences."),false)},search:function(C,B,A){if(A==""){keywordMes=""}else{keywordMes=", "+jQuery.translate("Keyword")+" &quot;"+A+"&quot;"}this.box(jQuery.translate("Your Search  below  has been saved to your Saved Searches.")+"<br /><b>"+C+": </b>"+B+keywordMes+"<br /><br />"+jQuery.translate("Find all your saved searches in your My Account &gt; My Preferences."),false)},box:function(B,A){this.customBox(B,(A==false?jQuery.translate("Success"):jQuery.translate("We're Sorry!")))},customBox:function(B,C){var A="fixed";if(jQuery.browser.msie&&jQuery.browser.version.substr(0,1)<7){A="absolute"}jQuery("#savebox").append('<div style="position:'+A+"; top:150px; left:"+(jQuery(document).width()-468)/2+'px; z-index:16"><table width="468" border="0" cellspacing="0" cellpadding="0"><tr><td style="background-color:#005dad; padding:10px"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr style="height:24px"><td align="left" valign="top" class="subjectin-white">'+C+'!</td><td valign="top" align="right"><img src="fileadmin/templates/images/close1.gif" style="cursor: pointer" width="13" height="13" onclick="tat_savebox.reset()" alt="X" /></td></tr></table><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td style="background-color:#FFFFFF; padding:12px" align="left">'+B+'<br /><br /></td></tr><tr><td style="background-color:#FFFFFF; padding-bottom:12px" align="center"><img src="fileadmin/templates/images/done.gif" style="cursor: pointer" width="56" height="27" alt="Done" onclick="tat_savebox.reset()" /></td></tr></table></td></tr></table></div>');jQuery("#savebox").show()},fail:function(){this.box(jQuery.translate("You must be logged-in to use this feature!"),true)},saveBookmark:function(){var C="";var E=document.cookie;if(E.length>0){var F=E.indexOf("fe_typo_user=");var B=E.length;if(F!=-1){F=F+("fe_typo_user=").length;B=E.indexOf(";",F);if(B==-1){B=E.indexOf("&",F);if(B==-1){B=E.length}}C=jQuery.trim(unescape(E.substring(F,B)))}}if(C!=""){var D=document.title;var A={t:"bookmark",title:D,url:this.URLEncode(document.location),sid:C};jQuery.get("fileadmin/scripts/common.php",A,function(G){if(G=="1"){tat_savebox.bookmark(D)}else{tat_savebox.box(jQuery.translate("Failed to bookmark this page. Please contacts administrator."),true)}})}else{this.box(jQuery.translate("Please enables cookie before use this feature."),true)}}};jQuery(document).ready(function(){tat_savebox.init()});function realValue(B){for(var A=0;A<B.length;A++){if(("???"<=B[A]&&B[A]<="???")||("a"<=B[A]&&B[A]<="z")||("A"<=B[A]&&B[A]<="Z")){if(A==0){break}else{B=B[A]+B;break}}}return B}function sortSelect(B){var L=new Array();var D=new Array();var M=new Array();var A=new Array();var I=0;jQuery(B).each(function(){jQuery(this).find("option").each(function(){L[I]=jQuery(this).attr("class")!=""?' class="'+jQuery(this).attr("class")+'"':"";D[I]=jQuery(this).text();if(D[I]==""){return }M[I]=jQuery(this).attr("value");if(M[I]==""||M[I]=="0"){A[I]=""}else{A[I]=realValue(D[I])}I++})});var J="";var K=null;var E=null;var C=jQuery(B).val();for(var H=0;H<I;H++){var G=0;for(var F=1;F<A.length;F++){if(A[G]>A[F]){G=F}}if(K!=D[G]||E!=M[G]){K=D[G];E=M[G];J+="<option"+L[G]+' value="'+M[G]+'"';if(C==M[G]){J+=' selected="selected"'}J+=">"+D[G]+"</option>"}L.splice(G,1);D.splice(G,1);M.splice(G,1);A.splice(G,1)}jQuery(B).html(J)}jQuery(document).ready(function(){sortSelect("select[name=FE\\[fe_users\\]\\[static_info_country\\]]");sortSelect("select[name=tx_cwtfeedit_pi1\\[static_info_country\\]]");sortSelect("select[name=tx_cwtfeedit_pi1\\[tx_usrtravels_nationality\\]]");sortSelect("select[name=tx_cwtfeedit_pi1\\[language\\]]");sortSelect("#tx-srfeuserregister-pi1-tx_usrtravels_nationality");sortSelect("#tx-srfeuserregister-pi1-language");sortSelect("#tx-srfeuserregister-pi1-tx_usrtravels_newsletter_lang")});jQuery.fn.datepicker=function(){};jQuery.fn.datepicker=function(A){this.datepick({dateFormat:"yy-mm-dd",yearRange:"1920:2020",showOn:"focus",buttonImageOnly:false,buttonImage:""})};(function(C){var E="datepick";function D(){this._uuid=new Date().getTime();this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this.regional=[];this.regional[""]={clearText:"Clear",clearStatus:"Erase the current date",closeText:"Close",closeStatus:"Close without change",prevText:"&#x3c;Prev",prevStatus:"Show the previous month",prevBigText:"&#x3c;&#x3c;",prevBigStatus:"Show the previous year",nextText:"Next&#x3e;",nextStatus:"Show the next month",nextBigText:"&#x3e;&#x3e;",nextBigStatus:"Show the next year",currentText:"Today",currentStatus:"Show the current month",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthStatus:"Show a different month",yearStatus:"Show a different year",weekHeader:"Wk",weekStatus:"Week of the year",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayStatus:"Set DD as first week day",dateStatus:"Select DD, M d",dateFormat:"mm/dd/yy",firstDay:0,initStatus:"Select a date",isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={useThemeRoller:false,showOn:"focus",showAnim:"show",showOptions:{},duration:"normal",buttonText:"...",buttonImage:"",buttonImageOnly:false,alignment:"bottom",autoSize:false,defaultDate:null,showDefault:false,appendText:"",closeAtTop:true,mandatory:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,showBigPrevNext:false,stepMonths:1,stepBigMonths:12,gotoCurrent:false,changeMonth:true,changeYear:true,yearRange:"-10:+10",changeFirstDay:false,showOtherMonths:false,selectOtherMonths:false,highlightWeek:false,showWeeks:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",showStatus:false,statusForDate:this.dateStatus,minDate:null,maxDate:null,numberOfMonths:1,showCurrentAtPos:0,rangeSelect:false,rangeSeparator:" - ",multiSelect:0,multiSeparator:",",beforeShow:null,beforeShowDay:null,onChangeMonthYear:null,onHover:null,onSelect:null,onClose:null,altField:"",altFormat:"",constrainInput:true};C.extend(this._defaults,this.regional[""]);this.dpDiv=C('<div style="display: none;"></div>')}C.extend(D.prototype,{version:"3.7.0",markerClassName:"hasDatepick",_mainDivId:["datepick-div","ui-datepicker-div"],_mainDivClass:["","ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"],_inlineClass:["datepick-inline","ui-datepicker-inline ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"],_multiClass:["datepick-multi","ui-datepicker-multi"],_rtlClass:["datepick-rtl","ui-datepicker-rtl"],_appendClass:["datepick-append","ui-datepicker-append"],_triggerClass:["datepick-trigger","ui-datepicker-trigger"],_dialogClass:["datepick-dialog","ui-datepicker-dialog"],_promptClass:["datepick-prompt","ui-datepicker-prompt"],_disableClass:["datepick-disabled","ui-datepicker-disabled"],_controlClass:["datepick-control","ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all"],_clearClass:["datepick-clear","ui-datepicker-clear"],_closeClass:["datepick-close","ui-datepicker-close"],_linksClass:["datepick-links","ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all"],_prevClass:["datepick-prev","ui-datepicker-prev"],_nextClass:["datepick-next","ui-datepicker-next"],_currentClass:["datepick-current","ui-datepicker-current"],_oneMonthClass:["datepick-one-month","ui-datepicker-group"],_newRowClass:["datepick-new-row","ui-datepicker-row-break"],_monthYearClass:["datepick-header","ui-datepicker-header ui-widget-header ui-helper-clearfix ui-corner-all"],_monthSelectClass:["datepick-new-month","ui-datepicker-month"],_monthClass:["","ui-datepicker-month"],_yearSelectClass:["datepick-new-year","ui-datepicker-year"],_yearClass:["","ui-datepicker-year"],_tableClass:["datepick","ui-datepicker-calendar"],_tableHeaderClass:["datepick-title-row",""],_weekColClass:["datepick-week-col","ui-datepicker-week-col"],_weekRowClass:["datepick-days-row",""],_weekendClass:["datepick-week-end-cell","ui-datepicker-week-end"],_dayClass:["datepick-days-cell",""],_otherMonthClass:["datepick-other-month","ui-datepicker-other-month"],_todayClass:["datepick-today","ui-state-highlight"],_selectableClass:["","ui-state-default"],_unselectableClass:["datepick-unselectable","ui-datepicker-unselectable ui-state-disabled"],_selectedClass:["datepick-current-day","ui-state-active"],_dayOverClass:["datepick-days-cell-over","ui-state-hover"],_weekOverClass:["datepick-week-over","ui-state-hover"],_statusClass:["datepick-status","ui-datepicker-status"],_statusId:["datepick-status-","ui-datepicker-status-"],_coverClass:["datepick-cover","ui-datepicker-cover"],setDefaults:function(F){B(this._defaults,F||{});return this},_attachDatepick:function(I,G){if(!I.id){I.id="dp"+(++this._uuid)}var J=I.nodeName.toLowerCase();var H=this._newInst(C(I),(J=="div"||J=="span"));var F=(C.fn.metadata?C(I).metadata():{});H.settings=C.extend({},G||{},F||{});if(H.inline){H.dpDiv.addClass(this._inlineClass[this._get(H,"useThemeRoller")?1:0]);this._inlineDatepick(I,H)}else{this._connectDatepick(I,H)}},_newInst:function(G,F){var H=G[0].id.replace(/([:\[\]\.\$])/g,"\\\\$1");return{id:H,input:G,cursorDate:this._daylightSavingAdjust(new Date()),drawMonth:0,drawYear:0,dates:[],inline:F,dpDiv:(!F?this.dpDiv:C("<div></div>")),siblings:C([])}},_connectDatepick:function(K,J){var L=C(K);if(L.hasClass(this.markerClassName)){return }var I=this._get(J,"appendText");var F=this._get(J,"isRTL");var P=this._get(J,"useThemeRoller")?1:0;if(I){var G=C('<span class="'+this._appendClass[P]+'">'+I+"</span>");L[F?"before":"after"](G);J.siblings=J.siblings.add(G)}var N=this._get(J,"showOn");if(N=="focus"||N=="both"){L.focus(this._showDatepick)}if(N=="button"||N=="both"){var M=this._get(J,"buttonText");var O=this._get(J,"buttonImage");var H=C(this._get(J,"buttonImageOnly")?C("<img/>").addClass(this._triggerClass[P]).attr({src:O,alt:M,title:M}):C('<button type="button"></button>').addClass(this._triggerClass[P]).html(O==""?M:C("<img/>").attr({src:O,alt:M,title:M})));L[F?"before":"after"](H);J.siblings=J.siblings.add(H);H.click(function(){if(C.datepick._datepickerShowing&&C.datepick._lastInput==K){C.datepick._hideDatepick()}else{C.datepick._showDatepick(K)}return false})}L.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp);if(this._get(J,"showDefault")&&!J.input.val()){J.dates=[this._getDefaultDate(J)];this._showDate(J)}this._autoSize(J);C.data(K,E,J)},_autoSize:function(I){if(this._get(I,"autoSize")&&!I.inline){var H=new Date(2009,12-1,20);var F=this._get(I,"dateFormat");if(F.match(/[DM]/)){var G=function(M){var J=0;var K=0;for(var L=0;L<M.length;L++){if(M[L].length>J){J=M[L].length;K=L}}return K};H.setMonth(G(this._get(I,(F.match(/MM/)?"monthNames":"monthNamesShort"))));H.setDate(G(this._get(I,(F.match(/DD/)?"dayNames":"dayNamesShort")))+20-H.getDay())}I.input.attr("size",this._formatDate(I,H).length)}},_inlineDatepick:function(G,F){var H=C(G);if(H.hasClass(this.markerClassName)){return }H.addClass(this.markerClassName);C.data(G,E,F);F.drawMonth=F.cursorDate.getMonth();F.drawYear=F.cursorDate.getFullYear();C("body").append(F.dpDiv);this._updateDatepick(F);F.dpDiv.width(this._getNumberOfMonths(F)[1]*C("."+this._oneMonthClass[this._get(F,"useThemeRoller")?1:0],F.dpDiv)[0].offsetWidth);H.append(F.dpDiv);this._updateAlternate(F)},_dialogDatepick:function(L,G,J,H,K){var I=this._dialogInst;if(!I){var F="dp"+(++this._uuid);this._dialogInput=C('<input type="text" id="'+F+'" style="position: absolute; width: 1px; z-index: -1"/>');this._dialogInput.keydown(this._doKeyDown);C("body").append(this._dialogInput);I=this._dialogInst=this._newInst(this._dialogInput,false);I.settings={};C.data(this._dialogInput[0],E,I)}B(I.settings,H||{});G=(G&&G.constructor==Date?this._formatDate(I,G):G);this._dialogInput.val(G);this._pos=(K?(A(K)?K:[K.pageX,K.pageY]):null);if(!this._pos){var N=document.documentElement.scrollLeft||document.body.scrollLeft;var M=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(document.documentElement.clientWidth/2)-100+N,(document.documentElement.clientHeight/2)-150+M]}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");I.settings.onSelect=J;this._inDialog=true;this.dpDiv.addClass(this._dialogClass[this._get(I,"useThemeRoller")?1:0]);this._showDatepick(this._dialogInput[0]);if(C.blockUI){C.blockUI(this.dpDiv)}C.data(this._dialogInput[0],E,I)},_destroyDatepick:function(H){var F=C(H);if(!F.hasClass(this.markerClassName)){return }var G=C.data(H,E);C.removeData(H,E);if(G.inline){F.removeClass(this.markerClassName).empty()}else{C(G.siblings).remove();F.removeClass(this.markerClassName).unbind("focus",this._showDatepick).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}},_enableDatepick:function(I){var F=C(I);if(!F.hasClass(this.markerClassName)){return }var H=C.data(I,E);var G=this._get(H,"useThemeRoller")?1:0;if(H.inline){F.children("."+this._disableClass[G]).remove().end().find("select").attr("disabled","")}else{I.disabled=false;H.siblings.filter("button."+this._triggerClass[G]).each(function(){this.disabled=false}).end().filter("img."+this._triggerClass[G]).css({opacity:"1.0",cursor:""})}this._disabledInputs=C.map(this._disabledInputs,function(J){return(J==I?null:J)})},_disableDatepick:function(J){var F=C(J);if(!F.hasClass(this.markerClassName)){return }var H=C.data(J,E);var G=this._get(H,"useThemeRoller")?1:0;if(H.inline){var I=F.children("."+this._inlineClass[G]);var L=I.offset();var K={left:0,top:0};I.parents().each(function(){if(C(this).css("position")=="relative"){K=C(this).offset();return false}});F.prepend('<div class="'+this._disableClass[G]+'" style="width: '+I.width()+"px; height: "+I.height()+"px; left: "+(L.left-K.left)+"px; top: "+(L.top-K.top)+'px;"></div>').find("select").attr("disabled","disabled")}else{J.disabled=true;H.siblings.filter("button."+this._triggerClass[G]).each(function(){this.disabled=true}).end().filter("img."+this._triggerClass[G]).css({opacity:"0.5",cursor:"default"})}this._disabledInputs=C.map(this._disabledInputs,function(M){return(M==J?null:M)});this._disabledInputs.push(J)},_isDisabledDatepick:function(F){return(!F?false:C.inArray(F,this._disabledInputs)>-1)},_getInst:function(G){try{return C.data(G,E)}catch(F){throw"Missing instance data for this datepicker"}},_optionDatepick:function(L,F,J){var I=this._getInst(L);if(arguments.length==2&&typeof F=="string"){return(F=="defaults"?C.extend({},C.datepick._defaults):(I?(F=="all"?C.extend({},I.settings):this._get(I,F)):null))}var H=F||{};if(typeof F=="string"){H={};H[F]=J}if(I){if(this._curInst==I){this._hideDatepick(null)}var K=this._getDateDatepick(L);B(I.settings,H);this._autoSize(I);B(I,{dates:[]});var M=(!K||A(K));if(A(K)){for(var G=0;G<K.length;G++){if(K[G]){M=false;break}}}if(!M){this._setDateDatepick(L,K)}if(I.inline){C(L).children("div").removeClass(this._inlineClass.join(" ")).addClass(this._inlineClass[this._get(I,"useThemeRoller")?1:0])}this._updateDatepick(I)}},_changeDatepick:function(H,F,G){this._optionDatepick(H,F,G)},_refreshDatepick:function(G){var F=this._getInst(G);if(F){this._updateDatepick(F)}},_setDateDatepick:function(I,F,H){var G=this._getInst(I);if(G){this._setDate(G,F,H);this._updateDatepick(G);this._updateAlternate(G)}},_getDateDatepick:function(G){var F=this._getInst(G);if(F&&!F.inline){this._setDateFromField(F)}return(F?this._getDate(F):null)},_doKeyDown:function(H){var J=C.datepick._getInst(H.target);J.keyEvent=true;var K=true;var F=C.datepick._get(J,"isRTL");var G=C.datepick._get(J,"useThemeRoller")?1:0;if(C.datepick._datepickerShowing){switch(H.keyCode){case 9:C.datepick._hideDatepick(null,"");break;case 13:var I=C("td."+C.datepick._dayOverClass[G],J.dpDiv);if(I.length==0){I=C("td."+C.datepick._selectedClass[G]+":first",J.dpDiv)}if(I[0]){C.datepick._selectDay(I[0],H.target,J.cursorDate.getTime())}else{C.datepick._hideDatepick(null,C.datepick._get(J,"duration"))}break;case 27:C.datepick._hideDatepick(null,C.datepick._get(J,"duration"));break;case 33:C.datepick._adjustDate(H.target,(H.ctrlKey?-C.datepick._get(J,"stepBigMonths"):-C.datepick._get(J,"stepMonths")),"M");break;case 34:C.datepick._adjustDate(H.target,(H.ctrlKey?+C.datepick._get(J,"stepBigMonths"):+C.datepick._get(J,"stepMonths")),"M");break;case 35:if(H.ctrlKey||H.metaKey){C.datepick._clearDate(H.target)}K=H.ctrlKey||H.metaKey;break;case 36:if(H.ctrlKey||H.metaKey){C.datepick._gotoToday(H.target)}K=H.ctrlKey||H.metaKey;break;case 37:if(H.ctrlKey||H.metaKey){C.datepick._adjustDate(H.target,(F?+1:-1),"D")}K=H.ctrlKey||H.metaKey;if(H.originalEvent.altKey){C.datepick._adjustDate(H.target,(H.ctrlKey?-C.datepick._get(J,"stepBigMonths"):-C.datepick._get(J,"stepMonths")),"M")}break;case 38:if(H.ctrlKey||H.metaKey){C.datepick._adjustDate(H.target,-7,"D")}K=H.ctrlKey||H.metaKey;break;case 39:if(H.ctrlKey||H.metaKey){C.datepick._adjustDate(H.target,(F?-1:+1),"D")}K=H.ctrlKey||H.metaKey;if(H.originalEvent.altKey){C.datepick._adjustDate(H.target,(H.ctrlKey?+C.datepick._get(J,"stepBigMonths"):+C.datepick._get(J,"stepMonths")),"M")}break;case 40:if(H.ctrlKey||H.metaKey){C.datepick._adjustDate(H.target,+7,"D")}K=H.ctrlKey||H.metaKey;break;default:K=false}}else{if(H.keyCode==36&&H.ctrlKey){C.datepick._showDatepick(this)}else{K=false}}if(K){H.preventDefault();H.stopPropagation()}J.ctrlKey=(H.keyCode<48);return !K},_doKeyPress:function(H){var I=C.datepick._getInst(H.target);if(C.datepick._get(I,"constrainInput")){var G=C.datepick._possibleChars(I);var F=String.fromCharCode(H.keyCode||H.charCode);return I.ctrlKey||(F<" "||!G||G.indexOf(F)>-1)}},_doKeyUp:function(H){var I=C.datepick._getInst(H.target);if(I.input.val()!=I.lastVal){try{var K=(C.datepick._get(I,"rangeSelect")?C.datepick._get(I,"rangeSeparator"):(C.datepick._get(I,"multiSelect")?C.datepick._get(I,"multiSeparator"):""));var J=(I.input?I.input.val():"");J=(K?J.split(K):[J]);var G=true;for(var F=0;F<J.length;F++){if(!C.datepick.parseDate(C.datepick._get(I,"dateFormat"),J[F],C.datepick._getFormatConfig(I))){G=false;break}}if(G){C.datepick._setDateFromField(I);C.datepick._updateAlternate(I);C.datepick._updateDatepick(I)}}catch(H){}}return true},_possibleChars:function(J){var F=C.datepick._get(J,"dateFormat");var I=(C.datepick._get(J,"rangeSelect")?C.datepick._get(J,"rangeSeparator"):(C.datepick._get(J,"multiSelect")?C.datepick._get(J,"multiSeparator"):""));var G=false;for(var H=0;H<F.length;H++){if(G){if(F.charAt(H)=="'"&&!lookAhead("'")){G=false}else{I+=F.charAt(H)}}else{switch(F.charAt(H)){case"d":case"m":case"y":case"@":I+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){I+="'"}else{G=true}break;default:I+=F.charAt(H)}}}return I},_doMouseOver:function(L,K,J){var I=C.datepick._getInst(C("#"+K)[0]);var H=C.datepick._get(I,"useThemeRoller")?1:0;C(L).parents("tbody").find("td").removeClass(C.datepick._dayOverClass[H]).end().end().addClass(C.datepick._dayOverClass[H]);if(C.datepick._get(I,"highlightWeek")){C(L).parent().parent().find("tr").removeClass(C.datepick._weekOverClass[H]).end().end().addClass(C.datepick._weekOverClass[H])}if(C(L).text()){var G=new Date(J);if(C.datepick._get(I,"showStatus")){var F=(C.datepick._get(I,"statusForDate").apply((I.input?I.input[0]:null),[G,I])||C.datepick._get(I,"initStatus"));C("#"+C.datepick._statusId[H]+K).html(F)}if(C.datepick._get(I,"onHover")){C.datepick._doHover(L,"#"+K,G.getFullYear(),G.getMonth())}}},_doMouseOut:function(I,H){var G=C.datepick._getInst(C("#"+H)[0]);var F=C.datepick._get(G,"useThemeRoller")?1:0;C(I).removeClass(C.datepick._dayOverClass[F]).removeClass(C.datepick._weekOverClass[F]);if(C.datepick._get(G,"showStatus")){C("#"+C.datepick._statusId[F]+H).html(C.datepick._get(G,"initStatus"))}if(C.datepick._get(G,"onHover")){C.datepick._doHover(I,"#"+H)}},_doHover:function(M,L,H,K){var I=this._getInst(C(L)[0]);var G=C.datepick._get(I,"useThemeRoller")?1:0;if(C(M).hasClass(this._unselectableClass[G])){return }var J=this._get(I,"onHover");var F=(H?this._daylightSavingAdjust(new Date(H,K,C(M).text())):null);J.apply((I.input?I.input[0]:null),[(F?this._formatDate(I,F):""),F,I])},_showDatepick:function(M){M=M.target||M;if(C.datepick._isDisabledDatepick(M)||C.datepick._lastInput==M){return }var L=C.datepick._getInst(M);var I=C.datepick._get(L,"beforeShow");var N=C.datepick._get(L,"useThemeRoller")?1:0;B(L.settings,(I?I.apply(M,[M,L]):{}));C.datepick._hideDatepick(null,"");C.datepick._lastInput=M;C.datepick._setDateFromField(L);if(C.datepick._inDialog){M.value=""}if(!C.datepick._pos){C.datepick._pos=C.datepick._findPos(M);C.datepick._pos[1]+=M.offsetHeight}var H=false;C(M).parents().each(function(){H|=C(this).css("position")=="fixed";return !H});if(H&&C.browser.opera){C.datepick._pos[0]-=document.documentElement.scrollLeft;C.datepick._pos[1]-=document.documentElement.scrollTop}var K={left:C.datepick._pos[0],top:C.datepick._pos[1]};C.datepick._pos=null;L.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});C.datepick._updateDatepick(L);L.dpDiv.width(C.datepick._getNumberOfMonths(L)[1]*C("."+C.datepick._oneMonthClass[N],L.dpDiv).width());K=C.datepick._checkOffset(L,K,H);L.dpDiv.css({position:(C.datepick._inDialog&&C.blockUI?"static":(H?"fixed":"absolute")),display:"none",left:K.left+"px",top:K.top+"px"});if(!L.inline){var F=C.datepick._get(L,"showAnim")||"show";var J=C.datepick._get(L,"duration");var G=function(){C.datepick._datepickerShowing=true;var O=C.datepick._getBorders(L.dpDiv);L.dpDiv.find("iframe."+C.datepick._coverClass[N]).css({left:-O[0],top:-O[1],width:L.dpDiv.outerWidth(),height:L.dpDiv.outerHeight()})};if(C.effects&&C.effects[F]){L.dpDiv.show(F,C.datepick._get(L,"showOptions"),J,G)}else{L.dpDiv[F](J,G)}if(J==""){G()}if(L.input[0].type!="hidden"){L.input.focus()}C.datepick._curInst=L}},_updateDatepick:function(H){var I=this._getBorders(H.dpDiv);var G=this._get(H,"useThemeRoller")?1:0;H.dpDiv.empty().append(this._generateHTML(H)).find("iframe."+this._coverClass[G]).css({left:-I[0],top:-I[1],width:H.dpDiv.outerWidth(),height:H.dpDiv.outerHeight()});var F=this._getNumberOfMonths(H);if(!H.inline){H.dpDiv.attr("id",this._mainDivId[G])}H.dpDiv.removeClass(this._mainDivClass[1-G]).addClass(this._mainDivClass[G]).removeClass(this._multiClass.join(" ")).addClass(F[0]!=1||F[1]!=1?this._multiClass[G]:"").removeClass(this._rtlClass.join(" ")).addClass(this._get(H,"isRTL")?this._rtlClass[G]:"");if(H.input&&H.input[0].type!="hidden"&&H==C.datepick._curInst){C(H.input).focus()}},_getBorders:function(F){var G=function(I){var H=(C.browser.msie?1:0);return{thin:1+H,medium:3+H,thick:5+H}[I]||I};return[parseFloat(G(F.css("border-left-width"))),parseFloat(G(F.css("border-top-width")))]},_checkOffset:function(K,J,H){var O=this._get(K,"alignment");var G=this._get(K,"isRTL");var P=K.input?this._findPos(K.input[0]):null;var U=document.documentElement.clientWidth;var L=document.documentElement.clientHeight;if(U==0){return J}var T=document.documentElement.scrollLeft||document.body.scrollLeft;var S=document.documentElement.scrollTop||document.body.scrollTop;var N=P[1]-(this._inDialog?0:K.dpDiv.outerHeight())-(H&&C.browser.opera?document.documentElement.scrollTop:0);var R=J.top;var Q=J.left;var M=P[0]+(K.input?K.input.outerWidth():0)-K.dpDiv.outerWidth()-(H&&C.browser.opera?document.documentElement.scrollLeft:0);var I=(J.left+K.dpDiv.outerWidth()-T)>U;var F=(J.top+K.dpDiv.outerHeight()-S)>L;if(O=="topLeft"){J={left:Q,top:N}}else{if(O=="topRight"){J={left:M,top:N}}else{if(O=="bottomLeft"){J={left:Q,top:R}}else{if(O=="bottomRight"){J={left:M,top:R}}else{if(O=="top"){J={left:(G||I?M:Q),top:N}}else{J={left:(G||I?M:Q),top:(F?N:R)}}}}}}J.left=Math.max((H?0:T),J.left-(H?T:0));J.top=Math.max((H?0:S),J.top-(H?S:0));return J},_findPos:function(G){while(G&&(G.type=="hidden"||G.nodeType!=1)){G=G.nextSibling}var F=C(G).offset();return[F.left,F.top]},_hideDatepick:function(I,L){var K=this._curInst;if(!K||(I&&K!=C.data(I,E))){return false}var H=this._get(K,"rangeSelect");if(H&&K.stayOpen){this._updateInput("#"+K.id)}K.stayOpen=false;if(this._datepickerShowing){L=(L!=null?L:this._get(K,"duration"));var G=this._get(K,"showAnim");var J=function(){C.datepick._tidyDialog(K)};if(L!=""&&C.effects&&C.effects[G]){K.dpDiv.hide(G,C.datepick._get(K,"showOptions"),L,J)}else{K.dpDiv[(L==""?"hide":(G=="slideDown"?"slideUp":(G=="fadeIn"?"fadeOut":"hide")))](L,J)}if(L==""){this._tidyDialog(K)}var F=this._get(K,"onClose");if(F){F.apply((K.input?K.input[0]:null),[(K.input?K.input.val():""),this._getDate(K),K])}this._datepickerShowing=false;this._lastInput=null;K.settings.prompt=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});this.dpDiv.removeClass(this._dialogClass[this._get(K,"useThemeRoller")?1:0]);if(C.blockUI){C.unblockUI();C("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null;return false},_tidyDialog:function(G){var F=this._get(G,"useThemeRoller")?1:0;G.dpDiv.removeClass(this._dialogClass[F]).unbind(".datepick");C("."+this._promptClass[F],G.dpDiv).remove()},_checkExternalClick:function(H){if(!C.datepick._curInst){return }var F=C(H.target);var G=C.datepick._get(C.datepick._curInst,"useThemeRoller")?1:0;if(!F.parents().andSelf().is("#"+C.datepick._mainDivId[G])&&!F.hasClass(C.datepick.markerClassName)&&!F.parents().andSelf().hasClass(C.datepick._triggerClass[G])&&C.datepick._datepickerShowing&&!(C.datepick._inDialog&&C.blockUI)){C.datepick._hideDatepick(null,"")}},_adjustDate:function(I,H,G){var F=this._getInst(C(I)[0]);this._adjustInstDate(F,H+(G=="M"?this._get(F,"showCurrentAtPos"):0),G);this._updateDatepick(F);return false},_gotoToday:function(H){var G=C(H);var F=this._getInst(G[0]);if(this._get(F,"gotoCurrent")&&F.dates[0]){F.cursorDate=new Date(F.dates[0].getTime())}else{F.cursorDate=this._daylightSavingAdjust(new Date())}F.drawMonth=F.cursorDate.getMonth();F.drawYear=F.cursorDate.getFullYear();this._notifyChange(F);this._adjustDate(G);return false},_selectMonthYear:function(K,F,J){var I=C(K);var H=this._getInst(I[0]);H.selectingMonthYear=false;var G=parseInt(F.options[F.selectedIndex].value,10);H["selected"+(J=="M"?"Month":"Year")]=H["draw"+(J=="M"?"Month":"Year")]=G;H.cursorDate.setDate(Math.min(H.cursorDate.getDate(),C.datepick._getDaysInMonth(H.drawYear,H.drawMonth)));H.cursorDate["set"+(J=="M"?"Month":"FullYear")](G);this._notifyChange(H);this._adjustDate(I)},_clickMonthYear:function(G){var F=this._getInst(C(G)[0]);if(F.input&&F.selectingMonthYear&&!C.browser.msie){F.input.focus()}F.selectingMonthYear=!F.selectingMonthYear},_changeFirstDay:function(H,F){var G=this._getInst(C(H)[0]);G.settings.firstDay=F;this._updateDatepick(G);return false},_selectDay:function(I,F,L){var K=this._getInst(C(F)[0]);var O=this._get(K,"useThemeRoller")?1:0;if(C(I).hasClass(this._unselectableClass[O])){return false}var N=this._get(K,"rangeSelect");var G=this._get(K,"multiSelect");if(N){K.stayOpen=!K.stayOpen}else{if(G){K.stayOpen=true}}if(K.stayOpen){C(".datepick td",K.dpDiv).removeClass(this._selectedClass[O]);C(I).addClass(this._selectedClass[O])}K.cursorDate=this._daylightSavingAdjust(new Date(L));var H=new Date(K.cursorDate.getTime());if(N&&!K.stayOpen){K.dates[1]=H}else{if(G){var M=-1;for(var J=0;J<K.dates.length;J++){if(K.dates[J]&&H.getTime()==K.dates[J].getTime()){M=J;break}}if(M>-1){K.dates.splice(M,1)}else{if(K.dates.length<G){if(K.dates[0]){K.dates.push(H)}else{K.dates=[H]}K.stayOpen=(K.dates.length!=G)}}}else{K.dates=[H]}}this._updateInput(F);if(K.stayOpen){this._updateDatepick(K)}else{if((N||G)&&K.inline){this._updateDatepick(K)}}return false},_clearDate:function(H){var G=C(H);var F=this._getInst(G[0]);if(this._get(F,"mandatory")){return false}F.stayOpen=false;F.dates=(this._get(F,"showDefault")?[this._getDefaultDate(F)]:[]);this._updateInput(G);return false},_updateInput:function(I){var H=this._getInst(C(I)[0]);var F=this._showDate(H);this._updateAlternate(H);var G=this._get(H,"onSelect");if(G){G.apply((H.input?H.input[0]:null),[F,this._getDate(H),H])}else{if(H.input){H.input.trigger("change")}}if(H.inline){this._updateDatepick(H)}else{if(!H.stayOpen){this._hideDatepick(null,this._get(H,"duration"));this._lastInput=H.input[0];if(typeof (H.input[0])!="object"){H.input.focus()}this._lastInput=null}}return false},_showDate:function(H){var F="";if(H.input){F=(H.dates.length==0?"":this._formatDate(H,H.dates[0]));if(F){if(this._get(H,"rangeSelect")){F+=this._get(H,"rangeSeparator")+this._formatDate(H,H.dates[1]||H.dates[0])}else{if(this._get(H,"multiSelect")){for(var G=1;G<H.dates.length;G++){F+=this._get(H,"multiSeparator")+this._formatDate(H,H.dates[G])}}}}H.input.val(F)}return F},_updateAlternate:function(K){var G=this._get(K,"altField");if(G){var J=this._get(K,"altFormat")||this._get(K,"dateFormat");var I=this._getFormatConfig(K);var F=this.formatDate(J,K.dates[0],I);if(F&&this._get(K,"rangeSelect")){F+=this._get(K,"rangeSeparator")+this.formatDate(J,K.dates[1]||K.dates[0],I)}else{if(this._get(K,"multiSelect")){for(var H=1;H<K.dates.length;H++){F+=this._get(K,"multiSeparator")+this.formatDate(J,K.dates[H],I)}}}C(G).val(F)}},noWeekends:function(F){return[(F.getDay()||7)<6,""]},iso8601Week:function(F){var H=new Date(F.getTime());H.setDate(H.getDate()+4-(H.getDay()||7));var G=H.getTime();H.setMonth(0);H.setDate(1);return Math.floor(Math.round((G-H)/86400000)/7)+1},dateStatus:function(F,G){return C.datepick.formatDate(C.datepick._get(G,"dateStatus"),F,C.datepick._getFormatConfig(G))},parseDate:function(U,O,V){if(U==null||O==null){throw"Invalid arguments"}O=(typeof O=="object"?O.toString():O+"");if(O==""){return null}V=V||{};var G=V.shortYearCutoff||this._defaults.shortYearCutoff;G=(typeof G!="string"?G:new Date().getFullYear()%100+parseInt(G,10));var M=V.dayNamesShort||this._defaults.dayNamesShort;var X=V.dayNames||this._defaults.dayNames;var F=V.monthNamesShort||this._defaults.monthNamesShort;var I=V.monthNames||this._defaults.monthNames;var J=-1;var Y=-1;var S=-1;var K=-1;var R=false;var N=function(a){var b=(H+1<U.length&&U.charAt(H+1)==a);if(b){H++}return b};var Z=function(b){N(b);var c=(b=="@"?14:(b=="!"?20:(b=="y"?4:(b=="o"?3:2))));var d=new RegExp("^\\d{1,"+c+"}");var a=O.substring(T).match(d);if(!a){throw"Missing number at position "+T}T+=a[0].length;return parseInt(a[0],10)};var L=function(a,c,e){var d=(N(a)?e:c);for(var b=0;b<d.length;b++){if(O.substr(T,d[b].length)==d[b]){T+=d[b].length;return b+1}}throw"Unknown name at position "+T};var Q=function(){if(O.charAt(T)!=U.charAt(H)){throw"Unexpected literal at position "+T}T++};var T=0;for(var H=0;H<U.length;H++){if(R){if(U.charAt(H)=="'"&&!N("'")){R=false}else{Q()}}else{switch(U.charAt(H)){case"d":S=Z("d");break;case"D":L("D",M,X);break;case"o":K=Z("o");break;case"w":Z("w");break;case"m":Y=Z("m");break;case"M":Y=L("M",F,I);break;case"y":J=Z("y");break;case"@":var W=new Date(Z("@"));J=W.getFullYear();Y=W.getMonth()+1;S=W.getDate();break;case"!":var W=new Date((Z("!")-this._ticksTo1970)/10000);J=W.getFullYear();Y=W.getMonth()+1;S=W.getDate();break;case"'":if(N("'")){Q()}else{R=true}break;default:Q()}}}if(T<O.length){throw"Additional text found at end"}if(J==-1){J=new Date().getFullYear()}else{if(J<100){J+=(G==-1?1900:new Date().getFullYear()-new Date().getFullYear()%100-(J<=G?0:100))}}if(K>-1){Y=1;S=K;do{var P=this._getDaysInMonth(J,Y-1);if(S<=P){break}Y++;S-=P}while(true)}var W=this._daylightSavingAdjust(new Date(J,Y-1,S));if(W.getFullYear()!=J||W.getMonth()+1!=Y||W.getDate()!=S){throw"Invalid date"}return W},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),formatDate:function(P,J,K){if(!J){return""}K=K||{};var S=K.dayNamesShort||this._defaults.dayNamesShort;var G=K.dayNames||this._defaults.dayNames;var N=K.monthNamesShort||this._defaults.monthNamesShort;var L=K.monthNames||this._defaults.monthNames;var H=K.calculateWeek||this._defaults.calculateWeek;var Q=function(T){var U=(R+1<P.length&&P.charAt(R+1)==T);if(U){R++}return U};var F=function(V,W,T){var U=""+W;if(Q(V)){while(U.length<T){U="0"+U}}return U};var M=function(T,V,U,W){return(Q(T)?W[V]:U[V])};var I="";var O=false;if(J){for(var R=0;R<P.length;R++){if(O){if(P.charAt(R)=="'"&&!Q("'")){O=false}else{I+=P.charAt(R)}}else{switch(P.charAt(R)){case"d":I+=F("d",J.getDate(),2);break;case"D":I+=M("D",J.getDay(),S,G);break;case"o":I+=F("o",(J.getTime()-new Date(J.getFullYear(),0,0).getTime())/86400000,3);break;case"w":I+=F("w",H(J),2);break;case"m":I+=F("m",J.getMonth()+1,2);break;case"M":I+=M("M",J.getMonth(),N,L);break;case"y":I+=(Q("y")?J.getFullYear():(J.getFullYear()%100<10?"0":"")+J.getFullYear()%100);break;case"@":I+=J.getTime();break;case"!":I+=J.getTime()*10000+this._ticksTo1970;break;case"'":if(Q("'")){I+="'"}else{O=true}break;default:I+=P.charAt(R)}}}}return I},_get:function(G,F){return G.settings[F]!==undefined?G.settings[F]:this._defaults[F]},_setDateFromField:function(K){var F=this._get(K,"dateFormat");var G=this._get(K,"rangeSelect");var M=this._get(K,"multiSelect");K.lastVal=(K.input?K.input.val():"");var L=K.lastVal;L=(G?L.split(this._get(K,"rangeSeparator")):(M?L.split(this._get(K,"multiSeparator")):[L]));K.dates=[];var I=this._getFormatConfig(K);for(var H=0;H<L.length;H++){try{K.dates[H]=this.parseDate(F,L[H],I)}catch(J){K.dates[H]=null}}for(var H=K.dates.length-1;H>=0;H--){if(!K.dates[H]){K.dates.splice(H,1)}}if(G&&K.dates.length<2){K.dates[1]=K.dates[0]}if(M&&K.dates.length>M){K.dates.splice(M,K.dates.length)}K.cursorDate=new Date((K.dates[0]||this._getDefaultDate(K)).getTime());K.drawMonth=K.cursorDate.getMonth();K.drawYear=K.cursorDate.getFullYear();this._adjustInstDate(K)},_getDefaultDate:function(F){return this._restrictMinMax(F,this._determineDate(F,this._get(F,"defaultDate"),new Date()))},_determineDate:function(I,F,J){var H=function(L){var K=new Date();K.setDate(K.getDate()+L);return K};var G=function(R){try{return C.datepick.parseDate(C.datepick._get(I,"dateFormat"),R,C.datepick._getFormatConfig(I))}catch(Q){}var L=(R.toLowerCase().match(/^c/)?C.datepick._getDate(I):null)||new Date();var M=L.getFullYear();var P=L.getMonth();var K=L.getDate();var O=/([+-]?[0-9]+)\s*(d|w|m|y)?/g;var N=O.exec(R.toLowerCase());while(N){switch(N[2]||"d"){case"d":K+=parseInt(N[1],10);break;case"w":K+=parseInt(N[1],10)*7;break;case"m":P+=parseInt(N[1],10);K=Math.min(K,C.datepick._getDaysInMonth(M,P));break;case"y":M+=parseInt(N[1],10);K=Math.min(K,C.datepick._getDaysInMonth(M,P));break}N=O.exec(R.toLowerCase())}return new Date(M,P,K)};F=(F==null?J:(typeof F=="string"?G(F):(typeof F=="number"?(isNaN(F)||F==Infinity||F==-Infinity?J:H(F)):F)));F=(F&&(F.toString()=="Invalid Date"||F.toString()=="NaN")?J:F);if(F){F.setHours(0);F.setMinutes(0);F.setSeconds(0);F.setMilliseconds(0)}return this._daylightSavingAdjust(F)},_daylightSavingAdjust:function(F){if(!F){return null}F.setHours(F.getHours()>12?F.getHours()+2:0);return F},_setDate:function(K,H,L){H=(!H?[]:(A(H)?H:[H]));if(L){H.push(L)}var F=(H.length==0);var G=K.cursorDate.getMonth();var J=K.cursorDate.getFullYear();K.dates=[this._restrictMinMax(K,this._determineDate(K,H[0],new Date()))];K.cursorDate=new Date(K.dates[0].getTime());K.drawMonth=K.cursorDate.getMonth();K.drawYear=K.cursorDate.getFullYear();if(this._get(K,"rangeSelect")){K.dates[1]=(H.length<1?K.dates[0]:this._restrictMinMax(K,this._determineDate(K,H[1],null)))}else{if(this._get(K,"multiSelect")){for(var I=1;I<H.length;I++){K.dates[I]=this._restrictMinMax(K,this._determineDate(K,H[I],null))}}}if(G!=K.cursorDate.getMonth()||J!=K.cursorDate.getFullYear()){this._notifyChange(K)}this._adjustInstDate(K);this._showDate(K)},_getDate:function(G){var F=(G.input&&G.input.val()==""?null:G.dates[0]);if(this._get(G,"rangeSelect")){return(F?[G.dates[0],G.dates[1]||G.dates[0]]:[null,null])}else{if(this._get(G,"multiSelect")){return G.dates.slice(0,G.dates.length)}else{return F}}},_generateHTML:function(AB){var a=new Date();a=this._daylightSavingAdjust(new Date(a.getFullYear(),a.getMonth(),a.getDate()));var W=this._get(AB,"showStatus");var X=this._get(AB,"initStatus")||"&#xa0;";var AJ=this._get(AB,"isRTL");var T=this._get(AB,"useThemeRoller")?1:0;var AD=(this._get(AB,"mandatory")?"":'<div class="'+this._clearClass[T]+'"><a href="javascript:void(0)" onclick="jQuery.datepick._clearDate(\'#'+AB.id+"');\""+this._addStatus(T,W,AB.id,this._get(AB,"clearStatus"),X)+">"+this._get(AB,"clearText")+"</a></div>");var q='<div class="'+this._controlClass[T]+'">'+(AJ?"":AD)+'<div class="'+this._closeClass[T]+'"><a href="javascript:void(0)" onclick="jQuery.datepick._hideDatepick();"'+this._addStatus(T,W,AB.id,this._get(AB,"closeStatus"),X)+">"+this._get(AB,"closeText")+"</a></div>"+(AJ?AD:"")+"</div>";var AK=this._get(AB,"prompt");var g=this._get(AB,"closeAtTop");var w=this._get(AB,"hideIfNoPrevNext");var f=this._get(AB,"navigationAsDateFormat");var AP=this._get(AB,"showBigPrevNext");var U=this._getNumberOfMonths(AB);var L=this._get(AB,"showCurrentAtPos");var j=this._get(AB,"stepMonths");var AQ=this._get(AB,"stepBigMonths");var d=(U[0]!=1||U[1]!=1);var M=this._getMinMaxDate(AB,"min",true);var V=this._getMinMaxDate(AB,"max");var G=AB.drawMonth-L;var x=AB.drawYear;if(G<0){G+=12;x--}if(V){var Z=this._daylightSavingAdjust(new Date(V.getFullYear(),V.getMonth()-(U[0]*U[1])+1,V.getDate()));Z=(M&&Z<M?M:Z);while(this._daylightSavingAdjust(new Date(x,G,1))>Z){G--;if(G<0){G=11;x--}}}AB.drawMonth=G;AB.drawYear=x;var Y=this._get(AB,"prevText");Y=(!f?Y:this.formatDate(Y,this._daylightSavingAdjust(new Date(x,G-j,1)),this._getFormatConfig(AB)));var k=(AP?this._get(AB,"prevBigText"):"");k=(!f?k:this.formatDate(k,this._daylightSavingAdjust(new Date(x,G-AQ,1)),this._getFormatConfig(AB)));var v='<div class="'+this._prevClass[T]+'">'+(this._canAdjustMonth(AB,-1,x,G)?(AP?'<a href="javascript:void(0)" onclick="jQuery.datepick._adjustDate(\'#'+AB.id+"', -"+AQ+", 'M');\""+this._addStatus(T,W,AB.id,this._get(AB,"prevBigStatus"),X)+">"+k+"</a>":"")+'<a href="javascript:void(0)" onclick="jQuery.datepick._adjustDate(\'#'+AB.id+"', -"+j+", 'M');\""+this._addStatus(T,W,AB.id,this._get(AB,"prevStatus"),X)+">"+Y+"</a>":(w?"&#xa0;":(AP?"<label>"+k+"</label>":"")+"<label>"+Y+"</label>"))+"</div>";var l=this._get(AB,"nextText");l=(!f?l:this.formatDate(l,this._daylightSavingAdjust(new Date(x,G+j,1)),this._getFormatConfig(AB)));var AM=(AP?this._get(AB,"nextBigText"):"");AM=(!f?AM:this.formatDate(AM,this._daylightSavingAdjust(new Date(x,G+AQ,1)),this._getFormatConfig(AB)));var J='<div class="'+this._nextClass[T]+'">'+(this._canAdjustMonth(AB,+1,x,G)?'<a href="javascript:void(0)" onclick="jQuery.datepick._adjustDate(\'#'+AB.id+"', +"+j+", 'M');\""+this._addStatus(T,W,AB.id,this._get(AB,"nextStatus"),X)+">"+l+"</a>"+(AP?'<a href="javascript:void(0)" onclick="jQuery.datepick._adjustDate(\'#'+AB.id+"', +"+AQ+", 'M');\""+this._addStatus(T,W,AB.id,this._get(AB,"nextBigStatus"),X)+">"+AM+"</a>":""):(w?"&#xa0;":"<label>"+l+"</label>"+(AP?"<label>"+AM+"</label>":"")))+"</div>";var AG=this._get(AB,"currentText");var AA=(this._get(AB,"gotoCurrent")&&AB.dates[0]?AB.dates[0]:a);AG=(!f?AG:this.formatDate(AG,AA,this._getFormatConfig(AB)));var t=(g&&!AB.inline?q:"")+'<div class="'+this._linksClass[T]+'">'+(AJ?J:v)+'<div class="'+this._currentClass[T]+'">'+(this._isInRange(AB,AA)?'<a href="javascript:void(0)" onclick="jQuery.datepick._gotoToday(\'#'+AB.id+"');\""+this._addStatus(T,W,AB.id,this._get(AB,"currentStatus"),X)+">"+AG+"</a>":(w?"&#xa0;":"<label>"+AG+"</label>"))+"</div>"+(AJ?v:J)+"</div>"+(AK?'<div class="'+this._promptClass[T]+'"><span>'+AK+"</span></div>":"");var h=parseInt(this._get(AB,"firstDay"),10);h=(isNaN(h)?0:h);var AI=this._get(AB,"changeFirstDay");var Q=this._get(AB,"dayNames");var s=this._get(AB,"dayNamesShort");var R=this._get(AB,"dayNamesMin");var P=this._get(AB,"monthNames");var AF=this._get(AB,"beforeShowDay");var N=this._get(AB,"showOtherMonths");var c=this._get(AB,"selectOtherMonths");var AC=this._get(AB,"showWeeks");var H=this._get(AB,"calculateWeek")||this.iso8601Week;var AR=this._get(AB,"weekStatus");var y=(W?this._get(AB,"dayStatus")||X:"");var p=this._get(AB,"statusForDate")||this.dateStatus;var AH=this._getDefaultDate(AB);for(var b=0;b<U[0];b++){for(var O=0;O<U[1];O++){var m=this._daylightSavingAdjust(new Date(x,G,AB.cursorDate.getDate()));t+='<div class="'+this._oneMonthClass[T]+(O==0&&!T?" "+this._newRowClass[T]:"")+'">'+this._generateMonthYearHeader(AB,G,x,M,V,m,b>0||O>0,T,W,X,P)+'<table class="'+this._tableClass[T]+'" cellpadding="0" cellspacing="0"><thead><tr class="'+this._tableHeaderClass[T]+'">'+(AC?"<th"+this._addStatus(T,W,AB.id,AR,X)+">"+this._get(AB,"weekHeader")+"</th>":"");for(var AO=0;AO<7;AO++){var o=(AO+h)%7;var u=(!W||!AI?"":y.replace(/DD/,Q[o]).replace(/D/,s[o]));t+="<th"+((AO+h+6)%7<5?"":' class="'+this._weekendClass[T]+'"')+">"+(!AI?"<span"+this._addStatus(T,W,AB.id,Q[o],X):'<a href="javascript:void(0)" onclick="jQuery.datepick._changeFirstDay(\'#'+AB.id+"', "+o+');"'+this._addStatus(T,W,AB.id,u,X))+' title="'+Q[o]+'">'+R[o]+(AI?"</a>":"</span>")+"</th>"}t+="</tr></thead><tbody>";var K=this._getDaysInMonth(x,G);if(x==AB.cursorDate.getFullYear()&&G==AB.cursorDate.getMonth()){AB.cursorDate.setDate(Math.min(AB.cursorDate.getDate(),K))}var e=(this._getFirstDayOfMonth(x,G)-h+7)%7;var z=(d?6:Math.ceil((e+K)/7));var AE=this._daylightSavingAdjust(new Date(x,G,1-e));for(var I=0;I<z;I++){t+='<tr class="'+this._weekRowClass[T]+'">'+(AC?'<td class="'+this._weekColClass[T]+'"'+this._addStatus(T,W,AB.id,AR,X)+">"+H(AE)+"</td>":"");for(var AO=0;AO<7;AO++){var AL=(AF?AF.apply((AB.input?AB.input[0]:null),[AE]):[true,""]);var n=(AE.getMonth()!=G);var S=(n&&!c)||!AL[0]||(M&&AE<M)||(V&&AE>V);var r=(this._get(AB,"rangeSelect")&&AB.dates[0]&&AE.getTime()>=AB.dates[0].getTime()&&AE.getTime()<=(AB.dates[1]||AB.dates[0]).getTime());for(var AN=0;AN<AB.dates.length;AN++){r=r||(AB.dates[AN]&&AE.getTime()==AB.dates[AN].getTime())}var F=n&&!N;t+='<td class="'+this._dayClass[T]+((AO+h+6)%7>=5?" "+this._weekendClass[T]:"")+(n?" "+this._otherMonthClass[T]:"")+((AE.getTime()==m.getTime()&&G==AB.cursorDate.getMonth()&&AB.keyEvent)||(AH.getTime()==AE.getTime()&&AH.getTime()==m.getTime())?" "+C.datepick._dayOverClass[T]:"")+(S?" "+this._unselectableClass[T]:" "+this._selectableClass[T])+(F?"":" "+AL[1]+(r?" "+this._selectedClass[T]:"")+(AE.getTime()==a.getTime()?" "+this._todayClass[T]:""))+'"'+(!F&&AL[2]?' title="'+AL[2]+'"':"")+(S?"":" onmouseover=\"jQuery.datepick._doMouseOver(this,'"+AB.id+"',"+AE.getTime()+')" onmouseout="jQuery.datepick._doMouseOut(this,\''+AB.id+"')\" onclick=\"jQuery.datepick._selectDay(this,'#"+AB.id+"',"+AE.getTime()+')"')+">"+(F?"&#xa0;":(S?AE.getDate():"<a>"+AE.getDate()+"</a>"))+"</td>";AE.setDate(AE.getDate()+1);AE=this._daylightSavingAdjust(AE)}t+="</tr>"}G++;if(G>11){G=0;x++}t+="</tbody></table></div>"}if(T){t+='<div class="'+this._newRowClass[T]+'"></div>'}}t+=(W?'<div style="clear: both;"></div><div id="'+this._statusId[T]+AB.id+'" class="'+this._statusClass[T]+'">'+X+"</div>":"")+(!g&&!AB.inline?q:"")+'<div style="clear: both;"></div>'+(C.browser.msie&&parseInt(C.browser.version,10)<7&&!AB.inline?'<iframe src="javascript:false;" class="'+this._coverClass[T]+'"></iframe>':"");AB.keyEvent=false;return t},_generateMonthYearHeader:function(J,H,T,K,R,L,U,G,O,N,P){var W=this._daylightSavingAdjust(new Date(T,H,1));K=(K&&W<K?W:K);var I=this._get(J,"changeMonth");var a=this._get(J,"changeYear");var b=this._get(J,"showMonthAfterYear");var Q='<div class="'+this._monthYearClass[G]+'">';var X="";if(U||!I){X+='<span class="'+this._monthClass[G]+'">'+P[H]+"</span>"}else{var Y=(K&&K.getFullYear()==T);var F=(R&&R.getFullYear()==T);X+='<select class="'+this._monthSelectClass[G]+'" onchange="jQuery.datepick._selectMonthYear(\'#'+J.id+"', this, 'M');\" onclick=\"jQuery.datepick._clickMonthYear('#"+J.id+"');\""+this._addStatus(G,O,J.id,this._get(J,"monthStatus"),N)+">";for(var Z=0;Z<12;Z++){if((!Y||Z>=K.getMonth())&&(!F||Z<=R.getMonth())){X+='<option value="'+Z+'"'+(Z==H?' selected="selected"':"")+">"+P[Z]+"</option>"}}X+="</select>"}if(!b){Q+=X+(U||!I||!a?"&#xa0;":"")}if(U||!a){Q+='<span class="'+this._yearClass[G]+'">'+T+"</span>"}else{var V=this._get(J,"yearRange").split(":");var S=0;var M=0;if(V.length!=2){S=T-10;M=T+10}else{if(V[0].charAt(0)=="+"||V[0].charAt(0)=="-"){S=T+parseInt(V[0],10);M=T+parseInt(V[1],10)}else{S=parseInt(V[0],10);M=parseInt(V[1],10)}}S=(K?Math.max(S,K.getFullYear()):S);M=(R?Math.min(M,R.getFullYear()):M);Q+='<select class="'+this._yearSelectClass[G]+'" onchange="jQuery.datepick._selectMonthYear(\'#'+J.id+"', this, 'Y');\" onclick=\"jQuery.datepick._clickMonthYear('#"+J.id+"');\""+this._addStatus(G,O,J.id,this._get(J,"yearStatus"),N)+">";for(;S<=M;S++){Q+='<option value="'+S+'"'+(S==T?' selected="selected"':"")+">"+S+"</option>"}Q+="</select>"}Q+=this._get(J,"yearSuffix");if(b){Q+=(U||!I||!a?"&#xa0;":"")+X}Q+="</div>";return Q},_addStatus:function(G,I,J,H,F){return(I?" onmouseover=\"jQuery('#"+this._statusId[G]+J+"').html('"+(H||F)+"');\" onmouseout=\"jQuery('#"+this._statusId[G]+J+"').html('"+F+"');\"":"")},_adjustInstDate:function(I,L,K){var F=I.drawYear+"/"+I.drawMonth;var H=I.drawYear+(K=="Y"?L:0);var J=I.drawMonth+(K=="M"?L:0);var G=Math.min(I.cursorDate.getDate(),this._getDaysInMonth(H,J))+(K=="D"?L:0);I.cursorDate=this._restrictMinMax(I,this._daylightSavingAdjust(new Date(H,J,G)));I.drawMonth=I.cursorDate.getMonth();I.drawYear=I.cursorDate.getFullYear();if(F!=I.drawYear+"/"+I.drawMonth){this._notifyChange(I)}},_restrictMinMax:function(H,F){var G=this._getMinMaxDate(H,"min",true);var I=this._getMinMaxDate(H,"max");F=(G&&F<G?new Date(G.getTime()):F);F=(I&&F>I?new Date(I.getTime()):F);return F},_notifyChange:function(G){var F=this._get(G,"onChangeMonthYear");if(F){F.apply((G.input?G.input[0]:null),[G.cursorDate.getFullYear(),G.cursorDate.getMonth()+1,this._daylightSavingAdjust(new Date(G.cursorDate.getFullYear(),G.cursorDate.getMonth(),1)),G])}},_getNumberOfMonths:function(G){var F=this._get(G,"numberOfMonths");return(F==null?[1,1]:(typeof F=="number"?[1,F]:F))},_getMinMaxDate:function(I,G,F){var H=this._determineDate(I,this._get(I,G+"Date"),null);var J=this._getRangeMin(I);return(F&&J&&(!H||J>H)?J:H)},_getRangeMin:function(F){return(this._get(F,"rangeSelect")&&F.dates[0]&&!F.dates[1]?F.dates[0]:null)},_getDaysInMonth:function(F,G){return 32-new Date(F,G,32).getDate()},_getFirstDayOfMonth:function(F,G){return new Date(F,G,1).getDay()},_canAdjustMonth:function(I,K,H,J){var F=this._getNumberOfMonths(I);var G=this._daylightSavingAdjust(new Date(H,J+(K<0?K:F[0]*F[1]),1));if(K<0){G.setDate(this._getDaysInMonth(G.getFullYear(),G.getMonth()))}return this._isInRange(I,G)},_isInRange:function(H,F){var G=this._getRangeMin(H)||this._getMinMaxDate(H,"min");var I=this._getMinMaxDate(H,"max");return((!G||F>=G)&&(!I||F<=I))},_getFormatConfig:function(F){return{shortYearCutoff:this._get(F,"shortYearCutoff"),dayNamesShort:this._get(F,"dayNamesShort"),dayNames:this._get(F,"dayNames"),monthNamesShort:this._get(F,"monthNamesShort"),monthNames:this._get(F,"monthNames")}},_formatDate:function(I,H,J,F){if(!H){I.dates[0]=new Date(I.cursorDate.getTime())}var G=(H?(typeof H=="object"?H:this._daylightSavingAdjust(new Date(H,J,F))):I.dates[0]);return this.formatDate(this._get(I,"dateFormat"),G,this._getFormatConfig(I))}});function B(H,G){C.extend(H,G);for(var F in G){if(G[F]==null||G[F]==undefined){H[F]=G[F]}}return H}function A(F){return(F&&F.constructor==Array)}C.fn.datepick=function(G){var F=Array.prototype.slice.call(arguments,1);if(typeof G=="string"&&(G=="isDisabled"||G=="getDate"||G=="settings")){return C.datepick["_"+G+"Datepick"].apply(C.datepick,[this[0]].concat(F))}if(G=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return C.datepick["_"+G+"Datepick"].apply(C.datepick,[this[0]].concat(F))}return this.each(function(){typeof G=="string"?C.datepick["_"+G+"Datepick"].apply(C.datepick,[this].concat(F)):C.datepick._attachDatepick(this,G)})};C.datepick=new D();C(function(){C(document).mousedown(C.datepick._checkExternalClick).find("body").append(C.datepick.dpDiv)})})(jQuery);function saveURL(B,D,G,A,E,H,F,C){if(E=="saved_search"){jQuery("#saveSearchMess").html('<img src="fileadmin/img/loading.gif" width="37" height="28" />');jQuery("#saveSearchLink").attr("href","javascript:alert('"+H+"')");jQuery("#saveSearchImg").attr("src",F);path_ajax="fileadmin/scripts/searchResult/ajax/save_this_search.php"}(function(I){I.ajax({async:false,url:path_ajax,type:"GET",data:"user_id="+B+"&url="+D+"&language="+G+"&save_table="+E+"&table_name="+A+"&keyword="+C,cache:false,success:function(J){display=J.split(",");tat_savebox.search(display[0],display[1],display[2]);I("#saveSearchMess").html("")}})})(jQuery)};(function(A){A.fn.lightBox=function(P){P=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,fixedNavigation:false,imageLoading:"fileadmin/scripts/javascript/images/lightbox-ico-loading.gif",imageBtnPrev:"fileadmin/scripts/javascript/images/lightbox-btn-prev.gif",imageBtnNext:"fileadmin/scripts/javascript/images/lightbox-btn-next.gif",imageBtnClose:"fileadmin/scripts/javascript/images/lightbox-btn-close.gif",imageBlank:"fileadmin/scripts/javascript/images/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},P);var I=this;function R(){O(this,I);return false}function O(V,U){A("embed, object, select").css({visibility:"hidden"});C();P.imageArray.length=0;P.activeImage=0;if(U.length==1){P.imageArray.push(new Array(V.getAttribute("href"),V.getAttribute("title")))}else{for(var T=0;T<U.length;T++){P.imageArray.push(new Array(U[T].getAttribute("href"),U[T].getAttribute("title")))}}while(P.imageArray[P.activeImage][0]!=V.getAttribute("href")){P.activeImage++}L()}function C(){A("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+P.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+P.imageBtnClose+'"></a></div></div></div></div>');var T=F();A("#jquery-overlay").css({backgroundColor:P.overlayBgColor,opacity:P.overlayOpacity,width:T[0],height:T[1]}).fadeIn();var U=H();A("#jquery-lightbox").css({top:U[1]+(T[3]/10),left:U[0]}).show();A("#jquery-overlay,#jquery-lightbox").click(function(){B()});A("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){B();return false});A(window).resize(function(){var V=F();A("#jquery-overlay").css({width:V[0],height:V[1]});var W=H();A("#jquery-lightbox").css({top:W[1]+(V[3]/10),left:W[0]})})}function L(){A("#lightbox-loading").show();if(P.fixedNavigation){A("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}else{A("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}var T=new Image();T.onload=function(){A("#lightbox-image").attr("src",P.imageArray[P.activeImage][0]);J(T.width,T.height);T.onload=function(){}};T.src=P.imageArray[P.activeImage][0]}function J(W,Z){var T=A("#lightbox-container-image-box").width();var Y=A("#lightbox-container-image-box").height();var X=(W+(P.containerBorderSize*2));var V=(Z+(P.containerBorderSize*2));var U=T-X;var a=Y-V;A("#lightbox-container-image-box").animate({width:X,height:V},P.containerResizeSpeed,function(){G()});if((U==0)&&(a==0)){if(A.browser.msie){N(250)}else{N(100)}}A("#lightbox-container-image-data-box").css({width:W});A("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:Z+(P.containerBorderSize*2)})}function G(){A("#lightbox-loading").hide();A("#lightbox-image").fadeIn(function(){K();S()});Q()}function K(){A("#lightbox-container-image-data-box").slideDown("fast");A("#lightbox-image-details-caption").hide();if(P.imageArray[P.activeImage][1]){A("#lightbox-image-details-caption").html(P.imageArray[P.activeImage][1]).show()}if(P.imageArray.length>1){A("#lightbox-image-details-currentNumber").html(P.txtImage+" "+(P.activeImage+1)+" "+P.txtOf+" "+P.imageArray.length).show()}}function S(){A("#lightbox-nav").show();A("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+P.imageBlank+") no-repeat"});if(P.activeImage!=0){if(P.fixedNavigation){A("#lightbox-nav-btnPrev").css({background:"url("+P.imageBtnPrev+") left 15% no-repeat"}).unbind().bind("click",function(){P.activeImage=P.activeImage-1;L();return false})}else{A("#lightbox-nav-btnPrev").unbind().hover(function(){A(this).css({background:"url("+P.imageBtnPrev+") left 15% no-repeat"})},function(){A(this).css({background:"transparent url("+P.imageBlank+") no-repeat"})}).show().bind("click",function(){P.activeImage=P.activeImage-1;L();return false})}}if(P.activeImage!=(P.imageArray.length-1)){if(P.fixedNavigation){A("#lightbox-nav-btnNext").css({background:"url("+P.imageBtnNext+") right 15% no-repeat"}).unbind().bind("click",function(){P.activeImage=P.activeImage+1;L();return false})}else{A("#lightbox-nav-btnNext").unbind().hover(function(){A(this).css({background:"url("+P.imageBtnNext+") right 15% no-repeat"})},function(){A(this).css({background:"transparent url("+P.imageBlank+") no-repeat"})}).show().bind("click",function(){P.activeImage=P.activeImage+1;L();return false})}}M()}function M(){A(document).keydown(function(T){D(T)})}function E(){A(document).unbind()}function D(T){if(T==null){keycode=event.keyCode;escapeKey=27}else{keycode=T.keyCode;escapeKey=T.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();if((key==P.keyToClose)||(key=="x")||(keycode==escapeKey)){B()}if((key==P.keyToPrev)||(keycode==37)){if(P.activeImage!=0){P.activeImage=P.activeImage-1;L();E()}}if((key==P.keyToNext)||(keycode==39)){if(P.activeImage!=(P.imageArray.length-1)){P.activeImage=P.activeImage+1;L();E()}}}function Q(){if((P.imageArray.length-1)>P.activeImage){objNext=new Image();objNext.src=P.imageArray[P.activeImage+1][0]}if(P.activeImage>0){objPrev=new Image();objPrev.src=P.imageArray[P.activeImage-1][0]}}function B(){A("#jquery-lightbox").remove();A("#jquery-overlay").fadeOut(function(){A("#jquery-overlay").remove()});A("embed, object, select").css({visibility:"visible"})}function F(){var V,T;if(window.innerHeight&&window.scrollMaxY){V=window.innerWidth+window.scrollMaxX;T=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){V=document.body.scrollWidth;T=document.body.scrollHeight}else{V=document.body.offsetWidth;T=document.body.offsetHeight}}var U,W;if(self.innerHeight){if(document.documentElement.clientWidth){U=document.documentElement.clientWidth}else{U=self.innerWidth}W=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){U=document.documentElement.clientWidth;W=document.documentElement.clientHeight}else{if(document.body){U=document.body.clientWidth;W=document.body.clientHeight}}}if(T<W){pageHeight=W}else{pageHeight=T}if(V<U){pageWidth=V}else{pageWidth=U}arrayPageSize=new Array(pageWidth,pageHeight,U,W);return arrayPageSize}function H(){var U,T;if(self.pageYOffset){T=self.pageYOffset;U=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){T=document.documentElement.scrollTop;U=document.documentElement.scrollLeft}else{if(document.body){T=document.body.scrollTop;U=document.body.scrollLeft}}}arrayPageScroll=new Array(U,T);return arrayPageScroll}function N(V){var U=new Date();T=null;do{var T=new Date()}while(T-U<V)}return this.unbind("click").click(R)}})(jQuery);function addLoadEvent(a){var b=window.onload;if(typeof window.onload!="function"){window.onload=a}else{window.onload=function(){if(b){b()}a()}}}function insertAddthis(){var a=document.getElementsByTagName("HEAD")[0];var b=document.createElement("script");b.type="text/javascript";b.src="http://s7.addthis.com/js/250/addthis_widget.js";a.appendChild(b)}insertAddthis();
