// --- file[jquery.jail.min.js] ---

/*!
*  JqueryAsynchImageLoader (JAIL) : plugin for jQuery
*
* Developed by
* Sebastiano Armeli-Battana (@sebarmeli) - http://www.sebastianoarmelibattana.com
* Dual licensed under the MIT or GPL Version 3 licenses.
* @version 0.9
*/
(function($){var $window=$(window);$.fn.asynchImageLoader=$.fn.jail=function(options){options=$.extend({timeout:10,effect:false,speed:400,selector:null,offset:0,event:"load+scroll",callback:jQuery.noop,callbackAfterEachImage:jQuery.noop,placeholder:false},options);var images=this;$.jail.initialStack=this;this.data("triggerEl",(options.selector)?$(options.selector):$window);if(options.placeholder!==false){images.each(function(){$(this).attr("src",options.placeholder);});}if(/^load/.test(options.event)){$.asynchImageLoader.later.call(this,options);}else{$.asynchImageLoader.onEvent.call(this,options,images);}return this;};$.asynchImageLoader=$.jail={_purgeStack:function(stack){var i=0;while(true){if(i===stack.length){break;}else{if(stack[i].getAttribute("data-href")){i++;}else{stack.splice(i,1);}}}},_loadOnEvent:function(e){var $img=$(this),options=e.data.options,images=e.data.images;$.asynchImageLoader._loadImage(options,$img);$img.unbind(options.event,$.asynchImageLoader._loadOnEvent);$.asynchImageLoader._purgeStack(images);if(!!options.callback){$.asynchImageLoader._purgeStack($.jail.initialStack);$.asynchImageLoader._launchCallback($.jail.initialStack,options);}},_bufferedEventListener:function(e){var images=e.data.images,options=e.data.options,triggerEl=images.data("triggerEl");clearTimeout(images.data("poller"));images.data("poller",setTimeout(function(){images.each(function _imageLoader(){$.asynchImageLoader._loadImageIfVisible(options,this,triggerEl);});$.asynchImageLoader._purgeStack(images);if(!!options.callback){$.asynchImageLoader._purgeStack($.jail.initialStack);$.asynchImageLoader._launchCallback($.jail.initialStack,options);}},options.timeout));},onEvent:function(options,images){images=images||this;if(options.event==="scroll"||options.selector){var triggerEl=images.data("triggerEl");if(images.length>0){triggerEl.bind(options.event,{images:images,options:options},$.asynchImageLoader._bufferedEventListener);if(options.event==="scroll"||!options.selector){$window.resize({images:images,options:options},$.asynchImageLoader._bufferedEventListener);}return;}else{if(!!triggerEl){triggerEl.unbind(options.event,$.asynchImageLoader._bufferedEventListener);}}}else{images.bind(options.event,{options:options,images:images},$.asynchImageLoader._loadOnEvent);}},later:function(options){var images=this;if(options.event==="load"){images.each(function(){$.asynchImageLoader._loadImageIfVisible(options,this,images.data("triggerEl"));});}$.asynchImageLoader._purgeStack(images);$.asynchImageLoader._launchCallback(images,options);setTimeout(function(){if(options.event==="load"){images.each(function(){$.asynchImageLoader._loadImage(options,$(this));});}else{images.each(function(){$.asynchImageLoader._loadImageIfVisible(options,this,images.data("triggerEl"));});}$.asynchImageLoader._purgeStack(images);$.asynchImageLoader._launchCallback(images,options);if(options.event==="load+scroll"){options.event="scroll";$.asynchImageLoader.onEvent(options,images);}},options.timeout);},_launchCallback:function(images,options){if(images.length===0&&!$.jail.isCallback){options.callback.call(this,options);$.jail.isCallback=true;}},_loadImageIfVisible:function(options,image,triggerEl){var $img=$(image),container=(options.event==="scroll"?triggerEl:$window);if($.asynchImageLoader._isInTheScreen(container,$img,options.offset)){$.asynchImageLoader._loadImage(options,$img);}},_isInTheScreen:function($ct,$img,optionOffset){var is_ct_window=$ct[0]===window,ct_offset=(is_ct_window?{top:0,left:0}:$ct.offset()),ct_top=ct_offset.top+(is_ct_window?$ct.scrollTop():0),ct_left=ct_offset.left+(is_ct_window?$ct.scrollLeft():0),ct_right=ct_left+$ct.width(),ct_bottom=ct_top+$ct.height(),img_offset=$img.offset(),img_width=$img.width(),img_height=$img.height();return(ct_top-optionOffset)<=(img_offset.top+img_height)&&(ct_bottom+optionOffset)>=img_offset.top&&(ct_left-optionOffset)<=(img_offset.left+img_width)&&(ct_right+optionOffset)>=img_offset.left;},_loadImage:function(options,$img){$img.hide();$img.attr("src",$img.attr("data-href"));$img.removeAttr("data-href");if(options.effect){if(options.speed){$img[options.effect](options.speed);}else{$img[options.effect]();}}else{$img.show();}options.callbackAfterEachImage.call(this,options);}};}(jQuery));

// --- file[jquery.validationengine-fr.min.js] ---

(function(a){a.fn.validationEngineLanguage=function(){};a.validationEngineLanguage={newLang:function(){a.validationEngineLanguage.allRules={required:{regex:"none",alertText:"* Ce champs est requis",alertTextCheckboxMultiple:"* Choisir une option",alertTextCheckboxe:"* Cette option est requise"},minSize:{regex:"none",alertText:"* Minimum ",alertText2:" caracteres requis"},groupRequired:{regex:"none",alertText:"* Vous devez remplir un des champs suivant"},maxSize:{regex:"none",alertText:"* Maximum ",alertText2:" caracteres requis"},min:{regex:"none",alertText:"* Valeur minimum requise "},max:{regex:"none",alertText:"* Valeur maximum requise "},past:{regex:"none",alertText:"* Date antérieure au "},future:{regex:"none",alertText:"* Date postérieure au "},maxCheckbox:{regex:"none",alertText:"* Nombre max de choix excédé"},minCheckbox:{regex:"none",alertText:"* Veuillez choisir ",alertText2:" options"},equals:{regex:"none",alertText:"* Votre champs n'est pas identique"},phone:{regex:/^([\+][0-9]{1,3}[ \.\-])?([\(]{1}[0-9]{2,6}[\)])?([0-9 \.\-\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,alertText:"* Numéro de téléphone invalide"},email:{regex:/^((([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,alertText:"* Adresse email invalide"},integer:{regex:/^[\-\+]?\d+$/,alertText:"* Nombre entier invalide"},number:{regex:/^[\-\+]?(([0-9]+)([\.,]([0-9]+))?|([\.,]([0-9]+))?)$/,alertText:"* Nombre flottant invalide"},date:{regex:/^(0[1-9]|[1-2][0-9]|3[0-1])[/](0[1-9]|1[0-2])[/][0-9]{4}$/,alertText:"* Date invalide, format JJ/MM/AAAA requis"},ipv4:{regex:/^((([01]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))[.]){3}(([0-1]?[0-9]{1,2})|(2[0-4][0-9])|(25[0-5]))$/,alertText:"* Adresse IP invalide"},url:{regex:/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([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])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,alertText:"* URL invalide"},onlyNumberSp:{regex:/^[0-9\ ]+$/,alertText:"* Seules les chiffres sont acceptées"},onlyLetterSp:{regex:/^[a-zA-Z\ \']+$/,alertText:"* Seules les lettres sont acceptées"},onlyLetterNumber:{regex:/^[0-9a-zA-Z]+$/,alertText:"* Aucun caractère spécial n'est accepté"},ajaxUserCall:{url:"ajaxValidateFieldUser",extraData:"name=eric",alertTextLoad:"* Chargement, veuillez attendre",alertText:"* Ce nom est déjà pris"},ajaxNameCall:{url:"ajaxValidateFieldName",alertText:"* Ce nom est déjà pris",alertTextOk:"*Ce nom est disponible",alertTextLoad:"* Chargement, veuillez attendre"},validate2fields:{alertText:"Veuillez taper le mot HELLO"},onlyNumeric:{regex:/^[0-9\ \.\,]+$/,alertText:"* Nombres seulement acceptés"}}}};a.validationEngineLanguage.newLang()})(jQuery);

// --- file[jquery.validationengine.min.js] ---

(function(b){var a={init:function(d){var c=this;if(!c.data("jqv")||c.data("jqv")==null){a._saveOptions(c,d);b(".formError").live("click",function(){b(this).fadeOut(150,function(){b(this).remove()})})}},attach:function(d){var b=this,c;if(d)c=a._saveOptions(b,d);else c=b.data("jqv");var e=b.find("[data-validation-engine*=validate]")?"data-validation-engine":"class";if(!c.binded){if(c.bindMethod=="bind"){b.find("[class*=validate]:not([type=checkbox])").not("[type=radio]").not(".datepicker").bind(c.validationEventTrigger,a._onFieldEvent);b.find("[class*=validate][type=checkbox],[class*=validate][type=radio]").bind("click",a._onFieldEvent);b.find("[class*=validate][class*=datepicker]").bind(c.validationEventTrigger,{delay:300},a._onFieldEvent);b.bind("submit",a._onSubmitEvent)}else if(c.bindMethod=="live"){b.find("[class*=validate]:not([type=checkbox])").not(".datepicker").live(c.validationEventTrigger,a._onFieldEvent);b.find("[class*=validate][type=checkbox]").live("click",a._onFieldEvent);b.find("[class*=validate][class*=datepicker]").live(c.validationEventTrigger,{delay:300},a._onFieldEvent);b.live("submit",a._onSubmitEvent)}c.binded=true}},detach:function(){var b=this,c=b.data("jqv");if(c.binded){b.find("[class*=validate]").not("[type=checkbox]").unbind(c.validationEventTrigger,a._onFieldEvent);b.find("[class*=validate][type=checkbox],[class*=validate][type=radio]").unbind("click",a._onFieldEvent);b.unbind("submit",a.onAjaxFormComplete);b.find("[class*=validate]").not("[type=checkbox]").die(c.validationEventTrigger,a._onFieldEvent);b.find("[class*=validate][type=checkbox]").die("click",a._onFieldEvent);b.die("submit",a.onAjaxFormComplete);b.removeData("jqv")}},validate:function(){return a._validateFields(this)},validateField:function(d){var c=b(this).data("jqv");return a._validateField(b(d),c)},validateform:function(){return a._onSubmitEvent.call(this)},updatePromptsPosition:function(){var c=this.closest("form"),d=c.data("jqv");c.find("[class*=validate]").not(":hidden").not(":disabled").each(function(){var e=b(this),c=a._getPrompt(e),f=b(c).find(".formErrorContent").html();c&&a._updatePrompt(e,b(c),f,undefined,false,d)})},showPrompt:function(d,g,c,e){var f=this.closest("form"),b=f.data("jqv");if(!b)b=a._saveOptions(this,b);if(c)b.promptPosition=c;b.showArrow=e==true;a._showPrompt(this,d,g,false,b)},hidePrompt:function(){var c="."+a._getClassName(b(this).attr("id"))+"formError";b(c).fadeTo("fast",.3,function(){b(this).remove()})},hide:function(){var a;if(b(this).is("form"))a="parentForm"+b(this).attr("id");else a=b(this).attr("id")+"formError";b("."+a).fadeTo("fast",.3,function(){b(this).remove()})},hideAll:function(){b(".formError").fadeTo("fast",.3,function(){b(this).remove()})},_onFieldEvent:function(c){var d=b(this),f=d.closest("form"),e=f.data("jqv");window.setTimeout(function(){a._validateField(d,e)},c.data?c.data.delay:0)},_onSubmitEvent:function(){var d=b(this),c=d.data("jqv"),e=a._validateFields(d,true);if(e&&c.ajaxFormValidation){a._validateFormWithAjax(d,c);return false}if(c.onValidationComplete){c.onValidationComplete(d,e);return false}return e},_checkAjaxStatus:function(c){var a=true;b.each(c.ajaxValidCache,function(c,b){if(!b){a=false;return false}});return a},_validateFields:function(e,n){var d=e.data("jqv"),h=false;e.trigger("jqv.form.validating");e.find("[class*=validate]").not(":hidden").not(":disabled").each(function(){var c=b(this);h|=a._validateField(c,d,n)});e.trigger("jqv.form.result",[h]);if(h){if(d.scroll){for(var c=Number.MAX_VALUE,i=0,j=b(".formError:not('.greenPopup')"),f=0;f<j.length;f++){var k=b(j[f]).offset().top;if(k<c){c=k;i=b(j[f]).offset().left}}if(!d.isOverflown)b("html:not(:animated),body:not(:animated)").animate({scrollTop:c,scrollLeft:i},1100);else{var g=b(d.overflownDIV),l=g.scrollTop(),m=-parseInt(g.offset().top);c+=l+m-5;var o=b(d.overflownDIV+":not(:animated)");o.animate({scrollTop:c},1100);b("html:not(:animated),body:not(:animated)").animate({scrollTop:g.offset().top,scrollLeft:i},1100)}}return false}return true},_validateFormWithAjax:function(d,c){var e=d.serialize(),f=c.ajaxFormValidationURL?c.ajaxFormValidationURL:d.attr("action");b.ajax({type:"GET",url:f,cache:false,dataType:"json",data:e,form:d,methods:a,options:c,beforeSend:function(){return c.onBeforeAjaxFormValidation(d,c)},error:function(c,b){a._ajaxError(c,b)},success:function(g){if(g!==true){for(var k=false,j=0;j<g.length;j++){var i=g[j],l=i[0],f=b(b("#"+l)[0]);if(f.length==1){var e=i[2];if(i[1]==true)if(e==""||!e)a._closePrompt(f);else{if(c.allrules[e]){var h=c.allrules[e].alertTextOk;if(h)e=h}a._showPrompt(f,e,"pass",false,c,true)}else{k|=true;if(c.allrules[e]){var h=c.allrules[e].alertText;if(h)e=h}a._showPrompt(f,e,"",false,c,true)}}}c.onAjaxFormComplete(!k,d,g,c)}else c.onAjaxFormComplete(true,d,"",c)}})},_validateField:function(c,d,l){!c.attr("id")&&b.error("jQueryValidate: an ID attribute is required for this field: "+c.attr("name")+" class:"+c.attr("class"));var p=c.attr("class"),o=/validate\[(.*)\]/.exec(p);if(!o)return false;var r=o[1],f=r.split(/\[|,|\]/),m=false,h=c.attr("name"),i="",k=false;d.isError=false;d.showArrow=true;for(var e=0;e<f.length;e++){var g=undefined;switch(f[e]){case"required":k=true;g=a._required(c,f,e,d);break;case"custom":g=a._customRegex(c,f,e,d);break;case"groupRequired":var q="[class*="+f[e+1]+"]",n=c.closest("form").find(q).eq(0);if(n[0]!=c[0]){a._validateField(n,d,l);d.showArrow=true;continue}g=a._groupRequired(c,f,e,d);if(g)k=true;d.showArrow=false;break;case"ajax":if(!l){a._ajax(c,f,e,d);m=true}break;case"minSize":g=a._minSize(c,f,e,d);break;case"maxSize":g=a._maxSize(c,f,e,d);break;case"min":g=a._min(c,f,e,d);break;case"max":g=a._max(c,f,e,d);break;case"past":g=a._past(c,f,e,d);break;case"future":g=a._future(c,f,e,d);break;case"dateRange":g=a._dateRange(c,f,e,d);c=b(b("input[name='"+h+"']"));break;case"dateTimeRange":g=a._dateTimeRange(c,f,e,d);c=b(b("input[name='"+h+"']"));break;case"maxCheckbox":g=a._maxCheckbox(c,f,e,d);c=b(b("input[name='"+h+"']"));break;case"minCheckbox":g=a._minCheckbox(c,f,e,d);c=b(b("input[name='"+h+"']"));break;case"equals":g=a._equals(c,f,e,d);break;case"funcCall":g=a._funcCall(c,f,e,d)}if(g!==undefined){i+=g+"<br/>";d.isError=true}}if(!k)if(c.val()=="")d.isError=false;var j=c.attr("type");if((j=="radio"||j=="checkbox")&&b("input[name='"+h+"']").size()>1){c=b(b("input[name='"+h+"'][type!=hidden]:first"));d.showArrow=false}if(j=="text"&&b("input[name='"+h+"']").size()>1){c=b(b("input[name='"+h+"'][type!=hidden]:first"));d.showArrow=false}if(d.isError)a._showPrompt(c,i,"",false,d);else!m&&a._closePrompt(c);c.trigger("jqv.field.result",[c,d.isError,i]);return d.isError},_required:function(c,d,e,a){switch(c.attr("type")){case"text":case"password":case"textarea":case"file":default:if(!c.val())return a.allrules[d[e]].alertText;break;case"radio":case"checkbox":var f=c.attr("name");if(b("input[name='"+f+"']:checked").size()==0)return b("input[name='"+f+"']").size()==1?a.allrules[d[e]].alertTextCheckboxe:a.allrules[d[e]].alertTextCheckboxMultiple;break;case"dateTimeRange":case"dateRange":var f=c.attr("name"),g=b("input[name='"+f+"']");if(!g[0].val()||!g[1].val())return a.allrules[d[e]].alertTextDateRange;break;case"select-one":if(!c.val())return a.allrules[d[e]].alertText;break;case"select-multiple":if(!c.find("option:selected").val())return a.allrules[d[e]].alertText}},_groupRequired:function(h,c,d,f){var g="[class*="+c[d+1]+"]",e=false;h.closest("form").find(g).each(function(){if(!a._required(b(this),c,d,f)){e=true;return false}});if(!e)return f.allrules[c[d]].alertText},_customRegex:function(f,g,h,b){var a=g[h+1],c=b.allrules[a];if(!c){alert("jqv:custom rule not found "+a);return}var d=c.regex;if(!d){alert("jqv:custom regex not found "+a);return}var e=new RegExp(d);if(!e.test(f.val()))return b.allrules[a].alertText},_funcCall:function(f,a,c,e){var d=a[c+1],b=window[d];if(typeof b=="function")return b(f,a,c,e)},_equals:function(d,e,f,c){var a=e[f+1];if(d.val()!=b("#"+a).val())return c.allrules.equals.alertText},_maxSize:function(d,e,g,c){var b=e[g+1],f=d.val().length;if(f>b){var a=c.allrules.maxSize;return a.alertText+b+a.alertText2}},_minSize:function(d,e,g,c){var b=e[g+1],f=d.val().length;if(f<b){var a=c.allrules.minSize;return a.alertText+b+a.alertText2}},_min:function(d,e,g,c){var b=parseFloat(e[g+1]),f=parseFloat(d.val());if(f<b){var a=c.allrules.min;return a.alertText2?a.alertText+b+a.alertText2:a.alertText+b}},_max:function(d,e,g,c){var b=parseFloat(e[g+1]),f=parseFloat(d.val());if(f>b){var a=c.allrules.max;return a.alertText2?a.alertText+b+a.alertText2:a.alertText+b}},_past:function(f,g,i,e){var d=g[i+1],c=d.toLowerCase()=="now"?new Date:a._parseDate(d),h=a._parseDate(f.val());if(h<c){var b=e.allrules.past;return b.alertText2?b.alertText+a._dateToString(c)+b.alertText2:b.alertText+a._dateToString(c)}},_future:function(f,g,i,e){var d=g[i+1],c=d.toLowerCase()=="now"?new Date:a._parseDate(d),h=a._parseDate(f.val());if(h>c){var b=e.allrules.future;return b.alertText2?b.alertText+a._dateToString(c)+b.alertText2:b.alertText+a._dateToString(c)}},_isDate:function(b){var a=new RegExp(/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(?:(?:0?[1-9]|1[0-2])(\/|-)(?:0?[1-9]|1\d|2[0-8]))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^(0?2(\/|-)29)(\/|-)(?:(?:0[48]00|[13579][26]00|[2468][048]00)|(?:\d\d)?(?:0[48]|[2468][048]|[13579][26]))$/);return a.test(b)?true:false},_isDateTime:function(b){var a=new RegExp(/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1}$|^(?:(?:(?:0?[13578]|1[02])(\/|-)31)|(?:(?:0?[1,3-9]|1[0-2])(\/|-)(?:29|30)))(\/|-)(?:[1-9]\d\d\d|\d[1-9]\d\d|\d\d[1-9]\d|\d\d\d[1-9])$|^((1[012]|0?[1-9]){1}\/(0?[1-9]|[12][0-9]|3[01]){1}\/\d{2,4}\s+(1[012]|0?[1-9]){1}:(0?[1-5]|[0-6][0-9]){1}:(0?[0-6]|[0-6][0-9]){1}\s+(am|pm|AM|PM){1})$/);return a.test(b)?true:false},_dateCompare:function(a,b){return new Date(a.toString())<new Date(b.toString())},_dateRange:function(f){var c=f.attr("name");if(b("input[name='"+c+"']").length==2){var d=b("input[name='"+c+"']")[0].value,e=b("input[name='"+c+"']")[1].value;if(a._isDate(d)&&a._isDate(e)){if(!a._dateCompare(d,e))return"* Invalid Date Range"}else return"* Invalid Date Range"}else return"* Invalid Date Range"},_dateTimeRange:function(f){var c=f.attr("name");if(b("input[name='"+c+"']").length==2){var d=b("input[name='"+c+"']")[0].value,e=b("input[name='"+c+"']")[1].value;if(a._isDateTime(d)&&a._isDateTime(e)){if(!a._dateCompare(d,e))return"* Invalid Date Time Range"}else return"* Invalid Date Time Range"}else return"* Invalid Date Time Range"},_maxCheckbox:function(f,g,h,a){var c=g[h+1],d=f.attr("name"),e=b("input[name='"+d+"']:checked").size();if(e>c){a.showArrow=false;return a.allrules.maxCheckbox.alertText2?a.allrules.maxCheckbox.alertText+" "+c+" "+a.allrules.maxCheckbox.alertText2:a.allrules.maxCheckbox.alertText}},_minCheckbox:function(f,g,h,a){var c=g[h+1],d=f.attr("name"),e=b("input[name='"+d+"']:checked").size();if(e<c){a.showArrow=false;return a.allrules.minCheckbox.alertText+" "+c+" "+a.allrules.minCheckbox.alertText2}},_ajax:function(f,o,g,c){var l=o[g+1],d=c.allrules[l],h=d.extraData,e=d.extraDataDynamic;if(!h)h="";if(e){for(var j=[],k=String(e).split(","),g=0;g<k.length;g++){var i=k[g];if(b(i).length){var m=f.closest("form").find(i).val(),n=i.replace("#","")+"="+escape(m);j.push(n)}}e=j.join("&")}else e="";!c.isError&&b.ajax({type:"GET",url:d.url,cache:false,dataType:"json",data:"fieldId="+f.attr("id")+"&fieldValue="+f.val()+"&extraData="+h+"&"+e,field:f,rule:d,methods:a,options:c,beforeSend:function(){var b=d.alertTextLoad;b&&a._showPrompt(f,b,"load",true,c)},error:function(c,b){a._ajaxError(c,b)},success:function(i){var f=i[0],g=b(b("#"+f)[0]);if(g.length==1){var j=i[1],e=i[2];if(!j){c.ajaxValidCache[f]=false;c.isError=true;if(e){if(c.allrules[e]){var h=c.allrules[e].alertText;if(h)e=h}}else e=d.alertText;a._showPrompt(g,e,"",true,c)}else{if(c.ajaxValidCache[f]!==undefined)c.ajaxValidCache[f]=true;if(e){if(c.allrules[e]){var h=c.allrules[e].alertTextOk;if(h)e=h}}else e=d.alertTextOk;if(e)a._showPrompt(g,e,"pass",true,c);else a._closePrompt(g)}}}})},_ajaxError:function(b,a){if(b.status==0&&a==null)alert("The page is not served from a server! ajax call failed");else typeof console!="undefined"&&console.log("Ajax error: "+b.status+" "+a)},_dateToString:function(a){return a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate()},_parseDate:function(b){var a=b.split("-");if(a==b)a=b.split("/");return new Date(a[0],a[1]-1,a[2])},_showPrompt:function(c,d,g,f,e,h){var b=a._getPrompt(c);if(h)b=false;if(b)a._updatePrompt(c,b,d,g,f,e);else a._buildPrompt(c,d,g,f,e)},_buildPrompt:function(d,h,j,i,e){var c=b("<div>");c.addClass(a._getClassName(d.attr("id"))+"formError");d.is(":input")&&c.addClass("parentForm"+a._getClassName(d.parents("form").attr("id")));c.addClass("formError");switch(j){case"pass":c.addClass("greenPopup");break;case"load":c.addClass("blackPopup")}i&&c.addClass("ajaxed");var k=b("<div>").addClass("formErrorContent").html(h).appendTo(c);if(e.showArrow){var f=b("<div>").addClass("formErrorArrow");switch(e.promptPosition){case"bottomLeft":case"bottomRight":c.find(".formErrorContent").before(f);f.addClass("formErrorArrowBottom").html('<div class="line1"><!-- --></div><div class="line2"><!-- --></div><div class="line3"><!-- --></div><div class="line4"><!-- --></div><div class="line5"><!-- --></div><div class="line6"><!-- --></div><div class="line7"><!-- --></div><div class="line8"><!-- --></div><div class="line9"><!-- --></div><div class="line10"><!-- --></div>');break;case"topLeft":case"topRight":f.html('<div class="line10"><!-- --></div><div class="line9"><!-- --></div><div class="line8"><!-- --></div><div class="line7"><!-- --></div><div class="line6"><!-- --></div><div class="line5"><!-- --></div><div class="line4"><!-- --></div><div class="line3"><!-- --></div><div class="line2"><!-- --></div><div class="line1"><!-- --></div>');c.append(f)}}if(e.isOverflown)d.before(c);else b("body").append(c);var g=a._calculatePosition(d,c,e);c.css({top:g.callerTopPosition,left:g.callerleftPosition,marginTop:g.marginTopSize,opacity:0});return c.animate({opacity:.87})},_updatePrompt:function(h,b,e,c,g,f){if(b){if(c=="pass")b.addClass("greenPopup");else b.removeClass("greenPopup");if(c=="load")b.addClass("blackPopup");else b.removeClass("blackPopup");if(g)b.addClass("ajaxed");else b.removeClass("ajaxed");b.find(".formErrorContent").html(e);var d=a._calculatePosition(h,b,f);b.animate({top:d.callerTopPosition,marginTop:d.marginTopSize})}},_closePrompt:function(c){var b=a._getPrompt(c);b&&b.fadeTo("fast",0,function(){b.remove()})},closePrompt:function(b){return a._closePrompt(b)},_getPrompt:function(e){var d=e.attr("id").replace(":","_")+"formError",c=b("."+a._escapeExpression(d))[0];if(c)return b(c)},_escapeExpression:function(a){return a.replace(/([#;&,\.\+\*\~':"\!\^$\[\]\(\)=>\|])/g,"\\$1")},_calculatePosition:function(d,j,h){var a,b,e,c=d.width(),f=j.height(),g=h.isOverflown;if(g){a=b=0;e=-f}else{var i=d.offset();a=i.top;b=i.left;e=0}switch(h.promptPosition){default:case"topRight":if(g)b+=c-30;else{b+=c-30;a+=-f-2}break;case"topLeft":a+=-f-10;break;case"centerRight":b+=c+13;break;case"bottomLeft":a=a+d.height()+15;break;case"bottomRight":b+=c-30;a+=d.height()+5}return{callerTopPosition:a+"px",callerleftPosition:b+"px",marginTopSize:e+"px"}},_saveOptions:function(e,d){if(b.validationEngineLanguage)var c=b.validationEngineLanguage.allRules;else b.error("jQuery.validationEngine rules are not loaded, plz add localization files to the page");b.validationEngine.defaults.allrules=c;var a=b.extend({},b.validationEngine.defaults,d);e.data("jqv",a);return a},_getClassName:function(a){return a.replace(":","_").replace(".","_")}};b.fn.validationEngine=function(c){var d=b(this);if(!d[0])return false;if(typeof c=="string"&&c.charAt(0)!="_"&&a[c]){c!="showPrompt"&&c!="hidePrompt"&&c!="hide"&&c!="hideAll"&&a.init.apply(d);return a[c].apply(d,Array.prototype.slice.call(arguments,1))}else if(typeof c=="object"||!c){a.init.apply(d,arguments);return a.attach.apply(d)}else b.error("Method "+c+" does not exist in jQuery.validationEngine")};b.validationEngine={defaults:{validationEventTrigger:"blur",scroll:true,promptPosition:"topRight",bindMethod:"bind",inlineAjax:false,ajaxFormValidation:false,ajaxFormValidationURL:false,onAjaxFormComplete:b.noop,onBeforeAjaxFormValidation:b.noop,onValidationComplete:false,isOverflown:false,overflownDIV:"",binded:false,showArrow:true,isError:false,ajaxValidCache:{}}}})(jQuery);

// --- file[jquery.cookie.min.js] ---

jQuery.cookie=function(d,b,a){if(arguments.length>1&&(b===null||typeof b!=="object")){a=jQuery.extend({},a);if(b===null)a.expires=-1;if(typeof a.expires==="number"){var g=a.expires,e=a.expires=new Date;e.setDate(e.getDate()+g)}return document.cookie=[encodeURIComponent(d),"=",a.raw?String(b):encodeURIComponent(String(b)),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}a=b||{};var c,f=a.raw?function(a){return a}:decodeURIComponent;return(c=(new RegExp("(?:^|; )"+encodeURIComponent(d)+"=([^;]*)")).exec(document.cookie))?f(c[1]):null};

// --- file[jquery.bbq.min.js] ---

﻿
/*
 * jQuery BBQ: Back Button & Query Library - v1.3pre - 8/26/2010
 * http://benalman.com/projects/jquery-bbq-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($,r){var h,n=Array.prototype.slice,t=decodeURIComponent,a=$.param,j,c,m,y,b=$.bbq=$.bbq||{},s,x,k,e=$.event.special,d="hashchange",B="querystring",F="fragment",z="elemUrlAttr",l="href",w="src",p=/^.*\?|#.*$/g,u,H,g,i,C,E={};function G(I){return typeof I==="string"}function D(J){var I=n.call(arguments,1);return function(){return J.apply(this,I.concat(n.call(arguments)))}}function o(I){return I.replace(H,"$2")}function q(I){return I.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(K,P,I,L,J){var R,O,N,Q,M;if(L!==h){N=I.match(K?H:/^([^#?]*)\??([^#]*)(#?.*)/);M=N[3]||"";if(J===2&&G(L)){O=L.replace(K?u:p,"")}else{Q=m(N[2]);L=G(L)?m[K?F:B](L):L;O=J===2?L:J===1?$.extend({},L,Q):$.extend({},Q,L);O=j(O);if(K){O=O.replace(g,t)}}R=N[1]+(K?C:O||!N[1]?"?":"")+O+M}else{R=P(I!==h?I:location.href)}return R}a[B]=D(f,0,q);a[F]=c=D(f,1,o);a.sorted=j=function(J,K){var I=[],L={};$.each(a(J,K).split("&"),function(P,M){var O=M.replace(/(?:%5B|=).*$/,""),N=L[O];if(!N){N=L[O]=[];I.push(O)}N.push(M)});return $.map(I.sort(),function(M){return L[M]}).join("&")};c.noEscape=function(J){J=J||"";var I=$.map(J.split(""),encodeURIComponent);g=new RegExp(I.join("|"),"g")};c.noEscape(",/");c.ajaxCrawlable=function(I){if(I!==h){if(I){u=/^.*(?:#!|#)/;H=/^([^#]*)(?:#!|#)?(.*)$/;C="#!"}else{u=/^.*#/;H=/^([^#]*)#?(.*)$/;C="#"}i=!!I}return i};c.ajaxCrawlable(0);$.deparam=m=function(L,I){var K={},J={"true":!0,"false":!1,"null":null};$.each(L.replace(/\+/g," ").split("&"),function(O,T){var N=T.split("="),S=t(N[0]),M,R=K,P=0,U=S.split("]["),Q=U.length-1;if(/\[/.test(U[0])&&/\]$/.test(U[Q])){U[Q]=U[Q].replace(/\]$/,"");U=U.shift().split("[").concat(U);Q=U.length-1}else{Q=0}if(N.length===2){M=t(N[1]);if(I){M=M&&!isNaN(M)?+M:M==="undefined"?h:J[M]!==h?J[M]:M}if(Q){for(;P<=Q;P++){S=U[P]===""?R.length:U[P];R=R[S]=P<Q?R[S]||(U[P+1]&&isNaN(U[P+1])?{}:[]):M}}else{if($.isArray(K[S])){K[S].push(M)}else{if(K[S]!==h){K[S]=[K[S],M]}else{K[S]=M}}}}else{if(S){K[S]=I?h:""}}});return K};function A(K,I,J){if(I===h||typeof I==="boolean"){J=I;I=a[K?F:B]()}else{I=G(I)?I.replace(K?u:p,""):I}return m(I,J)}m[B]=D(A,0);m[F]=y=D(A,1);$[z]||($[z]=function(I){return $.extend(E,I)})({a:l,base:l,iframe:w,img:w,input:w,form:"action",link:l,script:w});k=$[z];function v(L,J,K,I){if(!G(K)&&typeof K!=="object"){I=K;K=J;J=h}return this.each(function(){var O=$(this),M=J||k()[(this.nodeName||"").toLowerCase()]||"",N=M&&O.attr(M)||"";O.attr(M,a[L](N,K,I))})}$.fn[B]=D(v,B);$.fn[F]=D(v,F);b.pushState=s=function(L,I){if(G(L)&&/^#/.test(L)&&I===h){I=2}var K=L!==h,J=c(location.href,K?L:{},K?I:2);location.href=J};b.getState=x=function(I,J){return I===h||typeof I==="boolean"?y(I):y(J)[I]};b.removeState=function(I){var J={};if(I!==h){J=x();$.each($.isArray(I)?I:arguments,function(L,K){delete J[K]})}s(J,2)};e[d]=$.extend(e[d],{add:function(I){var K;function J(M){var L=M[F]=c();M.getState=function(N,O){return N===h||typeof N==="boolean"?m(L,N):m(L,O)[N]};K.apply(this,arguments)}if($.isFunction(I)){K=I;return J}else{K=I.handler;I.handler=J}}})})(jQuery,this);
/*
 * jQuery hashchange event - v1.3 - 7/21/2010
 * http://benalman.com/projects/jquery-hashchange-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function($,e,b){var c="hashchange",h=document,f,g=$.event.special,i=h.documentMode,d="on"+c in e&&(i===b||i>7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write('<script>document.domain="'+t+'"<\/script>');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);
