function nyroModalDebug(n,t){t.full&&t.bg?(t.bg.prepend(n+"<br />"+tmpDebug),tmpDebug=""):tmpDebug+=n+"<br />"}function startListening(n,t,i){n.addEventListener?n.addEventListener(t,i,!1):n.attachEvent&&n.attachEvent("on"+t,i)}function trackMailto(n){var t=n.srcElement?n.srcElement.href:this.href,i=t.substring(7),r=document.location.pathname;ga("send","event","Mailto",i,r)}function trackOutFileLinks(n){for(var t=n.srcElement?n.srcElement:this,i,r;t.tagName!="A";)t=t.parentNode;i=t.pathname.charAt(0)=="/"?t.pathname:"/"+t.pathname;t.search&&t.pathname.indexOf(t.search)==-1&&(i+=t.search);var u="",f="",e=document.location.pathname;t.hostname!=location.host?(u="Outbound",f=t.hostname+i):i.match(/\.(doc|xls|ppt|pdf|xls|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3|rss|vcf|ashx)($|\&|\?)/)?(r=i.match(/([^\/]*\.(doc|xls|ppt|pdf|xls|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3|rss|vcf|ashx))(?:$|\&|\?)/),u=r[2].toUpperCase()=="ASHX"?"File | PDF":"File | "+r[2].toUpperCase(),f=r[1]):i.match(/\.(eps|jpg|png|svg|gif|jpeg)($|\&|\?)/)&&(r=i.match(/([^\/]*\.(eps|jpg|png|svg|gif|jpeg))(?:$|\&|\?)/),u="Image",f=r[1]);ga("send","event",u,f,e)}var JSON,tmpDebug,fstq,docCookies,hrefs,l,path,isDoc;if(function(n){n.extend(n.fn,{validate:function(t){if(!this.length){t&&t.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var i=n.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(t){i.settings.submitHandler&&(i.submitButton=t.target);n(t.target).hasClass("cancel")&&(i.cancelSubmit=!0)}),this.submit(function(t){function r(){var r;return i.settings.submitHandler?(i.submitButton&&(r=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(i.submitButton.value).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&r.remove(),!1):!0}return(i.settings.debug&&t.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){if(n(this[0]).is("form"))return this.validate().form();var t=!0,i=n(this[0].form).validate();return this.each(function(){t&=i.element(this)}),t},removeAttrs:function(t){var i={},r=this;return n.each(t.split(/\s/),function(n,t){i[t]=r.attr(t);r.removeAttr(t)}),i},rules:function(t,i){var r=this[0],o,u,h;if(t){var e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r);switch(t){case"add":n.extend(f,n.validator.normalizeRule(i));s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(o={},n.each(i.split(/\s/),function(n,t){o[t]=f[t];delete f[t]}),o):(delete s[r.name],f)}}return u=n.validator.normalizeRules(n.extend({},n.validator.metadataRules(r),n.validator.classRules(r),n.validator.attributeRules(r),n.validator.staticRules(r)),r),u.required&&(h=u.required,delete u.required,u=n.extend({required:h},u)),u}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+t.value)},filled:function(t){return!!n.trim(""+t.value)},unchecked:function(n){return!n.checked}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return arguments.length===1?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),i)}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(n)).hide())},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(n,t){(t.which!==9||this.elementValue(n)!=="")&&(n.name in this.submitted||n===this.lastActive)&&this.element(n)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},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).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function r(t){var i=n.data(this[0].form,"validator"),r="on"+t.type.replace(/^validate/,"");i.settings[r]&&i.settings[r].call(i,this[0],t)}var i,t;this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();i=this.groups={};n.each(this.settings.groups,function(t,r){n.each(r.split(/\s/),function(n,r){i[r]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",r).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",r);this.settings.invalidHandler&&n(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){t=this.validationTargetFor(this.clean(t));this.lastElement=t;this.prepareElement(t);this.currentElements=n(t);var i=this.check(t)!==!1;return i?delete this.invalid[t.name]:this.invalid[t.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(t){if(t){n.extend(this.errorMap,t);this.errorList=[];for(var i in t)this.errorList.push({message:t[i],element:this.findByName(i)[0]});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t=0;for(var i in n)t++;return t},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{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&n.grep(this.errorList,function(n){return n.element.name===t.name}).length===1&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return(!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!t.objectLength(n(this).rules()))?!1:(i[this.name]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.replace(" ",".");return n(this.settings.errorElement+"."+t,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([]);this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var r=n(t).attr("type"),i=n(t).val();return r==="radio"||r==="checkbox"?n('input[name="'+n(t).attr("name")+'"]:checked').val():typeof i=="string"?i.replace(/\r/g,""):i},check:function(t){var r,u;t=this.validationTargetFor(this.clean(t));var f=n(t).rules(),e=!1,s=this.elementValue(t),i;for(r in f){u={method:r,parameters:f[r]};try{if(i=n.validator.methods[r].call(this,s,t,u.parameters),i==="dependency-mismatch"){e=!0;continue}if(e=!1,i==="pending"){this.toHide=this.toHide.not(this.errorsFor(t));return}if(!i)return this.formatAndAdd(t,u),!1}catch(o){this.settings.debug&&window.console&&console.log("exception occured when checking element "+t.id+", check the '"+u.method+"' method",o);throw o;}}if(!e)return this.objectLength(f)&&this.successList.push(t),!0},customMetaMessage:function(t,i){if(n.metadata){var r=this.settings.meta?n(t).metadata()[this.settings.meta]:n(t).metadata();return r&&r.messages&&r.messages[i]}},customDataMessage:function(t,i){return n(t).data("msg-"+i.toLowerCase())||t.attributes&&n(t).attr("data-msg-"+i.toLowerCase())},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==undefined)return arguments[n];return undefined},defaultMessage:function(t,i){return this.findDefined(this.customMessage(t.name,i),this.customDataMessage(t,i),this.customMetaMessage(t,i),!this.settings.ignoreTitle&&t.title||undefined,n.validator.messages[i],"<strong>Warning: No message defined for "+t.name+"<\/strong>")},formatAndAdd:function(t,i){var r=this.defaultMessage(t,i.method),u=/\$?\{(\d+)\}/g;typeof r=="function"?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters));this.errorList.push({message:r,element:t});this.errorMap[t.name]=r;this.submitted[t.name]=r},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);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 n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var r=this.errorsFor(t);r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.attr("generated")&&r.html(i)):(r=n("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(t),generated:!0}).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(r=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(r).length||(this.settings.errorPlacement?this.settings.errorPlacement(r,n(t)):r.insertAfter(t)));!i&&this.settings.success&&(r.text(""),typeof this.settings.success=="string"?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var i=this.idOrName(t);return this.errors().filter(function(){return n(this).attr("for")===i})},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(n){return this.checkable(n)&&(n=this.findByName(n.name).not(this.settings.ignore)[0]),n},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find('[name="'+t+'"]')},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(n){this.pending[n.name]||(this.pendingRequest++,this.pending[n.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];i&&this.pendingRequest===0&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&this.pendingRequest===0&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},attributeRules:function(t){var u={},f=n(t),r,i;for(r in n.validator.methods)r==="required"?(i=f.get(0).getAttribute(r),i===""&&(i=!0),i=!!i):i=f.attr(r),i?u[r]=i:f[0].getAttribute("type")===r&&(u[r]=!0);return u.maxlength&&/-1|2147483647|524288/.test(u.maxlength)&&delete u.maxlength,u},metadataRules:function(t){if(!n.metadata)return{};var i=n.data(t.form,"validator").settings.meta;return i?n(t).metadata()[i]:n(t).metadata()},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1){delete t[r];return}if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=u.param!==undefined?u.param:!0:delete t[r]}}),n.each(t,function(r,u){t[r]=n.isFunction(u)?u(i):u}),n.each(["minlength","maxlength","min","max"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){t[this]&&(t[this]=[Number(t[this][0]),Number(t[this][1])])}),n.validator.autoCreateRanges&&(t.min&&t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength&&t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t.messages&&delete t.messages,t},normalizeRule:function(t){if(typeof t=="string"){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=r!==undefined?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if(i.nodeName.toLowerCase()==="select"){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:n.trim(t).length>0},remote:function(t,i,r){var f,u,e;return this.optional(i)?"dependency-mismatch":(f=this.previousValue(i),this.settings.messages[i.name]||(this.settings.messages[i.name]={}),f.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=f.message,r=typeof r=="string"&&{url:r}||r,this.pending[i.name])?"pending":f.old===t?f.valid:(f.old=t,u=this,this.startRequest(i),e={},e[i.name]=t,n.ajax(n.extend(!0,{url:r,mode:"abort",port:"validate"+i.name,dataType:"json",data:e,success:function(r){var e,h,s,o;u.settings.messages[i.name].remote=f.originalMessage;e=r===!0||r==="true";e?(h=u.formSubmitted,u.prepareElement(i),u.formSubmitted=h,u.successList.push(i),delete u.invalid[i.name],u.showErrors()):(s={},o=r||u.defaultMessage(i,"remote"),s[i.name]=f.message=n.isFunction(o)?o(t):o,u.invalid[i.name]=!0,u.showErrors(s));f.valid=e;u.stopRequest(i,e)}},r)),"pending")},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u<=r},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(n.trim(t),i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},email:function(n,t){return this.optional(t)||/^((([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(n)},url:function(n,t){return this.optional(t)||/^(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.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n))},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(n)},number:function(n,t){return this.optional(t)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},creditcard:function(n,t){var r,e;if(this.optional(t))return"dependency-mismatch";if(/[^0-9 \-]+/.test(n))return!1;var f=0,i=0,u=!1;for(n=n.replace(/\D/g,""),r=n.length-1;r>=0;r--)e=n.charAt(r),i=parseInt(e,10),u&&(i*=2)>9&&(i-=9),f+=i,u=!u;return f%10==0},equalTo:function(t,i,r){var u=n(r);return this.settings.onfocusout&&u.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){n(i).valid()}),t===u.val()}}});n.format=n.validator.format}(jQuery),function(n){var t={},i;n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;n.mode==="abort"&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return f==="abort"?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments)):i.apply(this,arguments)})}(jQuery),function(n){jQuery.event.special.focusin||jQuery.event.special.focusout||!document.addEventListener||n.each({focus:"focusin",blur:"focusout"},function(t,i){function r(t){return t=n.event.fix(t),t.type=i,n.event.handle.call(this,t)}n.event.special[i]={setup:function(){this.addEventListener(t,r,!0)},teardown:function(){this.removeEventListener(t,r,!0)},handler:function(t){var r=arguments;return r[0]=n.event.fix(t),r[0].type=i,n.event.handle.apply(this,r)}}});n.extend(n.fn,{validateDelegate:function(t,i,r){return this.bind(i,function(i){var u=n(i.target);if(u.is(t))return r.apply(u,arguments)})}})}(jQuery),JSON||(JSON={}),function(){"use strict";function i(n){return n<10?"0"+n:n}function o(n){return e.lastIndex=0,e.test(n)?'"'+n.replace(e,function(n){var t=s[n];return typeof t=="string"?t:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function u(i,f){var s,l,h,a,v=n,c,e=f[i];e&&typeof e=="object"&&typeof e.toJSON=="function"&&(e=e.toJSON(i));typeof t=="function"&&(e=t.call(f,i,e));switch(typeof e){case"string":return o(e);case"number":return isFinite(e)?String(e):"null";case"boolean":case"null":return String(e);case"object":if(!e)return"null";if(n+=r,c=[],Object.prototype.toString.apply(e)==="[object Array]"){for(a=e.length,s=0;s<a;s+=1)c[s]=u(s,e)||"null";return h=c.length===0?"[]":n?"[\n"+n+c.join(",\n"+n)+"\n"+v+"]":"["+c.join(",")+"]",n=v,h}if(t&&typeof t=="object")for(a=t.length,s=0;s<a;s+=1)typeof t[s]=="string"&&(l=t[s],h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));else for(l in e)Object.prototype.hasOwnProperty.call(e,l)&&(h=u(l,e),h&&c.push(o(l)+(n?": ":":")+h));return h=c.length===0?"{}":n?"{\n"+n+c.join(",\n"+n)+"\n"+v+"}":"{"+c.join(",")+"}",n=v,h}}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var f=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n,r,s={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},t;typeof JSON.stringify!="function"&&(JSON.stringify=function(i,f,e){var o;if(n="",r="",typeof e=="number")for(o=0;o<e;o+=1)r+=" ";else typeof e=="string"&&(r=e);if(t=f,f&&typeof f!="function"&&(typeof f!="object"||typeof f.length!="number"))throw new Error("JSON.stringify");return u("",{"":i})});typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(n,t){var r,u,i=n[t];if(i&&typeof i=="object")for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=walk(i,r),u!==undefined?i[r]=u:delete i[r]);return reviver.call(n,t,i)}var j;if(text=String(text),f.lastIndex=0,f.test(text)&&(text=text.replace(f,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse");})}(),function(n){function r(){for(t&&n.isFunction(t.callback)&&t.callback.apply(this),t=null;pcb=u.shift();)n.isFunction(pcb.callback)&&pcb.callback.apply(this);i.length>0&&n.include()}function f(t,i){for(var f=!1,r=t.url,u;r.charAt(0)===".";)r=r.substr(1,r.length-1);return u=t.type?t.type:e(r),u=u!=="js"&&u!=="css"?i.type:u,u==="js"?n("script").each(function(n,t){if(t.src.indexOf(r)!==-1)return f=!0,!1}):u==="css"&&n("link").each(function(n,t){if(t.href.indexOf(r)!==-1)return f=!0,!1}),f}function o(u,o,s){var c=n.extend({},n.include.defaults,s),a,h,l,v,y;return u&&(u=n.isArray(u)?u:[u],n.each(u,function(n,t){i.push({url:t.url?t.url:t,type:t.type?t.type:null,callback:n===u.length-1?o:null,opts:c})})),t===null&&i.length&&(t=i.shift(),c=t.opts,a=n("head")[0],h=t.type?t.type:e(t.url),h=h!=="js"&&h!=="css"?c.type:h,h==="js"?(l=n("<script/>").attr("type","text/javascript").attr("language","javascript").attr("src",t.url),n.browser.msie?l.bind("readystatechange",function(){(this.readyState==="loaded"||this.readyState==="complete")&&r()}):l.bind("load",function(){r()}),a.appendChild(l[0])):h==="css"&&(v=n("<link/>").attr("type","text/css").attr("rel","stylesheet").attr("href",t.url),n.browser.msie&&v.bind("readystatechange",function(){(this.readyState==="loaded"||this.readyState==="complete")&&r()}),a.appendChild(v[0]),n.browser.msie||(y=setInterval(function(){(f({url:t.url,type:t.type}),c)&&(clearInterval(y),r())},c.interval)))),this}function s(i,r,e,o){var s=[],c=n.extend({},n.include.defaults,o),h;return i=n.isArray(i)?i:[i],n.each(i,function(n,t){var i={url:t.url?t.url:t,type:t.type?t.type:null};f(i,c)||s.push(i)}),s.length?n.include(s,r,c):e&&n.isFunction(r)&&(t?(h=!1,n.each(i,function(n,i){if(t.url===i.url)return u.push({url:i.url,callback:r}),h=!0,!1}),h||r.apply(this)):r.apply(this)),this}function e(n){var t=n.substring(0,n.indexOf("?")!==-1?n.indexOf("?"):n.length);return t.substring(t.lastIndexOf(".")+1)}var i=[],t=null,u=[];n.extend({include:o});n.extend(n.include,{defaults:{interval:100,type:"js"},once:s})}(jQuery),function(n){function o(i,r,f,o){var s={data:o||(r?r.data:{}),_wrap:r?r._wrap:null,tmpl:null,parent:r||null,nodes:[],calls:d,nest:g,wrap:nt,html:tt,update:it};return i&&n.extend(s,i,{nodes:[],parent:r}),f&&(s.tmpl=f,s._ctnt=s._ctnt||s.tmpl(n,s),s.key=++e,(h.length?u:t)[e]=s),s}function s(t,i,u){var f,e=u?n.map(u,function(n){return typeof n=="string"?t.key?n.replace(/(<\w+)(?=[\s>])(?![^>]*_tmplitem)([^>]*)/g,"$1 "+r+'="'+t.key+'" $2'):n:s(n,t,n._ctnt)}):t;return i?e:(e=e.join(""),e.replace(/^\s*([^<\s][^<]*)?(<[\w\W]+>)([^>]*[^>\s])?\s*$/,function(t,i,r,u){f=n(r).get();b(f);i&&(f=c(i).concat(f));u&&(f=f.concat(c(u)))}),f?f:c(e))}function c(t){var i=document.createElement("div");return i.innerHTML=t,n.makeArray(i.childNodes)}function p(t){return new Function("jQuery","$item","var $=jQuery,call,_=[],$data=$item.data;with($data){_.push('"+n.trim(t).replace(/([\\'])/g,"\\$1").replace(/[\r\t\n]/g," ").replace(/\$\{([^\}]*)\}/g,"{{= $1}}").replace(/\{\{(\/?)(\w+|.)(?:\(((?:[^\}]|\}(?!\}))*?)?\))?(?:\s+(.*?)?)?(\(((?:[^\}]|\}(?!\}))*?)\))?\s*\}\}/g,function(t,i,r,u,f,e,o){var h=n.tmpl.tag[r],c,s,a;if(!h)throw"Template command not found: "+r;return c=h._default||[],e&&!/\w$/.test(f)&&(f+=e,e=""),f?(f=l(f),o=o?","+l(o)+")":e?")":"",s=e?f.indexOf(".")>-1?f+e:"("+f+").call($item"+o:f,a=e?s:"(typeof("+f+")==='function'?("+f+").call($item):("+f+"))"):a=s=c.$1||"null",u=l(u),"');"+h[i?"close":"open"].split("$notnull_1").join(f?"typeof("+f+")!=='undefined' && ("+f+")!=null":"true").split("$1a").join(a).split("$1").join(s).split("$2").join(u?u.replace(/\s*([^\(]+)\s*(\((.*?)\))?/g,function(n,t,i,r){return r=r?","+r+")":i?")":"",r?"("+t+").call($item"+r:n}):c.$2||"")+"_.push('"})+"');}return _;")}function w(t,i){t._wrap=s(t,!0,n.isArray(i)?i:[v.test(i)?i:n(i).html()]).join("")}function l(n){return n?n.replace(/\\'/g,"'").replace(/\\\\/g,"\\"):null}function k(n){var t=document.createElement("div");return t.appendChild(n.cloneNode(!0)),t.innerHTML}function b(f){function p(f){function p(n){n=n+a;s=v[n]=v[n]||o(s,t[s.parent.key+a]||s.parent,null,!0)}var y,h=f,c,s,l;if(l=f.getAttribute(r)){while(h.parentNode&&(h=h.parentNode).nodeType===1&&!(y=h.getAttribute(r)));y!==l&&(h=h.parentNode?h.nodeType===11?0:h.getAttribute(r)||0:0,(s=t[l])||(s=u[l],s=o(s,t[h]||u[h],null,!0),s.key=++e,t[e]=s),i&&p(l));f.removeAttribute(r)}else i&&(s=n.data(f,"tmplItem"))&&(p(s.key),t[s.key]=s,h=n.data(f.parentNode,"tmplItem"),h=h?h.key:0);if(s){for(c=s;c&&c.key!=h;)c.nodes.push(f),c=c.parent;delete s._ctnt;delete s._wrap;n.data(f,"tmplItem",s)}}for(var a="_"+i,c,l,v={},h,s=0,y=f.length;s<y;s++)if((c=f[s]).nodeType===1){for(l=c.getElementsByTagName("*"),h=l.length-1;h>=0;h--)p(l[h]);p(c)}}function d(n,t,i,r){if(!n)return h.pop();h.push({_:n,tmpl:t,item:this,data:i,options:r})}function g(t,i,r){return n.tmpl(n.template(t),i,r,this)}function nt(t,i){var r=t.options||{};return r.wrapped=i,n.tmpl(n.template(t.tmpl),t.data,r,t.item)}function tt(t,i){var r=this._wrap;return n.map(n(n.isArray(r)?r.join(""):r).filter(t||"*"),function(n){return i?n.innerText||n.textContent:n.outerHTML||k(n)})}function it(){var t=this.nodes;n.tmpl(null,null,null,this).insertBefore(t[0]);n(t).remove()}var a=n.fn.domManip,r="_tmplitem",v=/^[^<]*(<[\w\W]+>)[^>]*$|\{\{\! /,t={},u={},f,y={key:0,data:{}},e=0,i=0,h=[];n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(r,u){n.fn[r]=function(e){var o=[],h=n(e),c,s,a,v,l=this.length===1&&this[0].parentNode;if(f=t||{},l&&l.nodeType===11&&l.childNodes.length===1&&h.length===1)h[u](this[0]),o=this;else{for(s=0,a=h.length;s<a;s++)i=s,c=(s>0?this.clone(!0):this).get(),n.fn[u].apply(n(h[s]),c),o=o.concat(c);i=0;o=this.pushStack(o,r,h.selector)}return v=f,f=null,n.tmpl.complete(v),o}});n.fn.extend({tmpl:function(t,i,r){return n.tmpl(this[0],t,i,r)},tmplItem:function(){return n.tmplItem(this[0])},template:function(t){return n.template(t,this[0])},domManip:function(r,u,e){if(r[0]&&r[0].nodeType){for(var o=n.makeArray(arguments),s=r.length,h=0,c;h<s&&!(c=n.data(r[h++],"tmplItem")););s>1&&(o[0]=[n.makeArray(r)]);c&&i&&(o[2]=function(t){n.tmpl.afterManip(this,t,e)});a.apply(this,o)}else a.apply(this,arguments);return i=0,f||n.tmpl.complete(t),this}});n.extend({tmpl:function(i,r,f,e){var h,c=!e;if(c)e=y,i=n.template[i]||n.template(null,i),u={};else if(!i)return i=e.tmpl,t[e.key]=e,e.nodes=[],e.wrapped&&w(e,e.wrapped),n(s(e,null,e.tmpl(n,e)));return i?(typeof r=="function"&&(r=r.call(e||{})),f&&f.wrapped&&w(f,f.wrapped),h=n.isArray(r)?n.map(r,function(n){return n?o(f,e,i,n):null}):[o(f,e,i,r)],c?n(s(e,null,h)):h):[]},tmplItem:function(t){var i;for(t instanceof n&&(t=t[0]);t&&t.nodeType===1&&!(i=n.data(t,"tmplItem"))&&(t=t.parentNode););return i||y},template:function(t,i){return i?(typeof i=="string"?i=p(i):i instanceof n&&(i=i[0]||{}),i.nodeType&&(i=n.data(i,"tmpl")||n.data(i,"tmpl",p(i.innerHTML))),typeof t=="string"?n.template[t]=i:i):t?typeof t!="string"?n.template(null,t):n.template[t]||n.template(null,v.test(t)?t:n(t)):null},encode:function(n){return(""+n).split("<").join("&lt;").split(">").join("&gt;").split('"').join("&#34;").split("'").join("&#39;")}});n.extend(n.tmpl,{tag:{tmpl:{_default:{$2:"null"},open:"if($notnull_1){_=_.concat($item.nest($1,$2));}"},wrap:{_default:{$2:"null"},open:"$item.calls(_,$1,$2);_=[];",close:"call=$item.calls();_=call._.concat($item.wrap(call,_));"},each:{_default:{$2:"$index, $value"},open:"if($notnull_1){$.each($1a,function($2){with(this){",close:"}});}"},"if":{open:"if(($notnull_1) && $1a){",close:"}"},"else":{_default:{$1:"true"},open:"}else if(($notnull_1) && $1a){"},html:{open:"if($notnull_1){_.push($1a);}"},"=":{_default:{$1:"$data"},open:"if($notnull_1){_.push($.encode($1a));}"},"!":{open:""}},complete:function(){t={}},afterManip:function(t,r,u){var f=r.nodeType===11?n.makeArray(r.childNodes):r.nodeType===1?[r]:[];u.call(t,r);b(f);i++}})}(jQuery),function(n){var l,i,t,r,u,f,s,e,h,a,o,c;if(l=document.namespaces,has_canvas=!!document.createElement("canvas").getContext,!(has_canvas||l)){n.fn.maphilight=function(){return this};return}has_canvas?(s=function(n,t){t<=1&&(n.style.opacity=t,window.setTimeout(s,10,n,t+.1,10))},e=function(n){return Math.max(0,Math.min(parseInt(n,16),255))},h=function(n,t){return"rgba("+e(n.substr(0,2))+","+e(n.substr(2,2))+","+e(n.substr(4,2))+","+t+")"},i=function(t){var i=n('<canvas style="width:'+t.width+"px;height:"+t.height+'px;"><\/canvas>').get(0);return i.getContext("2d").clearRect(0,0,i.width,i.height),i},t=function(n,t,i,r){var f,u=n.getContext("2d");if(u.beginPath(),t=="rect")u.rect(i[0],i[1],i[2]-i[0],i[3]-i[1]);else if(t=="poly")for(u.moveTo(i[0],i[1]),f=2;f<i.length;f+=2)u.lineTo(i[f],i[f+1]);else t=="circ"&&u.arc(i[0],i[1],i[2],0,Math.PI*2,!1);u.closePath();r.fill&&(u.fillStyle=h(r.fillColor,r.fillOpacity),u.fill());r.stroke&&(u.strokeStyle=h(r.strokeColor,r.strokeOpacity),u.lineWidth=r.strokeWidth,u.stroke());r.fade&&s(n,0)},r=function(n){n.getContext("2d").clearRect(0,0,n.width,n.height)}):(i=function(t){return n('<var style="zoom:1;overflow:hidden;display:block;width:'+t.width+"px;height:"+t.height+'px;"><\/var>').get(0)},t=function(t,i,r,u,f){var s,o,h,e;s='<v:fill color="#'+u.fillColor+'" opacity="'+(u.fill?u.fillOpacity:0)+'" />';o=u.stroke?'strokeweight="'+u.strokeWidth+'" stroked="t" strokecolor="#'+u.strokeColor+'"':'stroked="f"';h='<v:stroke opacity="'+u.strokeOpacity+'"/>';i=="rect"?e=n('<v:rect name="'+f+'" filled="t" '+o+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+r[0]+"px;top:"+r[1]+"px;width:"+(r[2]-r[0])+"px;height:"+(r[3]-r[1])+'px;"><\/v:rect>'):i=="poly"?e=n('<v:shape name="'+f+'" filled="t" '+o+' coordorigin="0,0" coordsize="'+t.width+","+t.height+'" path="m '+r[0]+","+r[1]+" l "+r.join(",")+' x e" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+t.width+"px;height:"+t.height+'px;"><\/v:shape>'):i=="circ"&&(e=n('<v:oval name="'+f+'" filled="t" '+o+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+(r[0]-r[2])+"px;top:"+(r[1]-r[2])+"px;width:"+r[2]*2+"px;height:"+r[2]*2+'px;"><\/v:oval>'));e.get(0).innerHTML=s+h;n(t).append(e)},r=function(t){n(t).find("[name=highlighted]").remove()});u=function(n){for(var i=n.getAttribute("coords").split(","),t=0;t<i.length;t++)i[t]=parseFloat(i[t]);return[n.getAttribute("shape").toLowerCase().substr(0,4),i]};o=function(t,i){var r=n(t);return n.extend({},i,n.metadata?r.metadata():!1,r.data("maphilight"))};a=function(n){return n.complete?typeof n.naturalWidth!="undefined"&&n.naturalWidth==0?!1:!0:!1};f={position:"absolute",left:0,top:0,padding:0,border:0};c=!1;n.fn.maphilight=function(e){if(e=n.extend({},n.fn.maphilight.defaults,e),n.browser.msie&&!c){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var s=document.createStyleSheet();n.each(["shape","rect","oval","circ","fill","stroke","imagedata","group","textbox"],function(){s.addRule("v\\:"+this,"behavior: url(#default#VML); antialias:true")});c=!0}return this.each(function(){var s,y,l,v,h,c,p,w,b;if(s=n(this),!a(this))return window.setTimeout(function(){s.maphilight(e)},200);(l=n.extend({},e,n.metadata?s.metadata():!1,s.data("maphilight")),w=s.get(0).getAttribute("usemap"),v=n('map[name="'+w.substr(1)+'"]'),s.is("img")&&w&&v.size()>0)&&(s.hasClass("maphilighted")&&(b=s.parent(),s.insertBefore(b),b.remove(),n(v).unbind(".maphilight").find("area[coords]").unbind(".maphilight")),y=n("<div><\/div>").css({display:"block",background:"url("+this.src+")",position:"relative",padding:0,width:this.width,height:this.height}),l.wrapClass&&(l.wrapClass===!0?y.addClass(n(this).attr("class")):y.addClass(l.wrapClass)),s.before(y).css("opacity",0).css(f).remove(),n.browser.msie&&s.css("filter","Alpha(opacity=0)"),y.append(s),h=i(this),n(h).css(f),h.height=this.height,h.width=this.width,p=function(){var r,i,f;i=o(this,l);i.neverOn||i.alwaysOn||(r=u(this),t(h,r[0],r[1],i,"highlighted"),i.groupBy&&n(this).attr(i.groupBy)&&(f=this,v.find("area["+i.groupBy+"="+n(this).attr(i.groupBy)+"]").each(function(){var n,i;this!=f&&(n=o(this,l),n.neverOn||n.alwaysOn||(i=u(this),t(h,i[0],i[1],n,"highlighted")))})))},n(v).bind("alwaysOn.maphilight",function(){c&&r(c);has_canvas||n(h).empty();n(v).find("area[coords]").each(function(){var r,e;e=o(this,l);e.alwaysOn&&(!c&&has_canvas&&(c=i(s.get()),n(c).css(f),c.width=s.width(),c.height=s.height(),s.before(c)),r=u(this),has_canvas?t(c,r[0],r[1],e,""):t(h,r[0],r[1],e,""))})}),l.alwaysOn?n(v).find("area[coords]").each(p):n(v).find("area[coords]").trigger("alwaysOn.maphilight").bind("mouseover.maphilight",p).bind("mouseout.maphilight",function(){r(h)}),s.before(h),s.addClass("maphilighted"))})};n.fn.maphilight.defaults={fill:!0,fillColor:"000000",fillOpacity:.2,stroke:!0,strokeColor:"ff0000",strokeOpacity:1,strokeWidth:1,fade:!0,alwaysOn:!1,neverOn:!1,groupBy:!1,wrapClass:!0}}(jQuery),function(n){var t=function(t){var i=null,r=n("#"+t),u=n("input[name="+t+"]");return r.length?i=r:u!=undefined&&(i=u),i};n.fn.autotab_magic=function(t){for(var r,u,i=0;i<this.length;i++)r=i+1,u=i-1,i>0&&r<this.length?n(this[i]).autotab({target:n(this[r]),previous:n(this[u])}):i>0?n(this[i]).autotab({previous:n(this[u])}):n(this[i]).autotab({target:n(this[r])}),(t!=null&&isNaN(t)&&t==n(this[i]).attr("id")||!isNaN(t)&&t==i)&&n(this[i]).focus();return this};n.fn.autotab_filter=function(t){var i={format:"all",uppercase:!1,lowercase:!1,nospace:!1,pattern:null},r;for(typeof t=="string"||typeof t=="function"?i.format=t:n.extend(i,t),r=0;r<this.length;r++)n(this[r]).bind("keyup",function(){var n=this.value,t;switch(i.format){case"text":t=new RegExp("[0-9]+","g");n=n.replace(t,"");break;case"alpha":t=new RegExp("[^a-zA-Z]+","g");n=n.replace(t,"");break;case"number":case"numeric":t=new RegExp("[^0-9]+","g");n=n.replace(t,"");break;case"alphanumeric":t=new RegExp("[^0-9a-zA-Z]+","g");n=n.replace(t,"");break;case"custom":t=new RegExp(i.pattern,"g");n=n.replace(t,"");break;case"all":default:typeof i.format=="function"&&(n=i.format(n))}i.nospace&&(t=new RegExp("[ ]+","g"),n=n.replace(t,""));i.uppercase&&(n=n.toUpperCase());i.lowercase&&(n=n.toLowerCase());n!=this.value&&(this.value=n)})};n.fn.autotab=function(i){var r={format:"all",maxlength:2147483647,uppercase:!1,lowercase:!1,nospace:!1,target:null,previous:null,pattern:null},u;return n.extend(r,i),typeof r.target=="string"&&(r.target=t(r.target)),typeof r.previous=="string"&&(r.previous=t(r.previous)),u=n(this).attr("maxlength"),r.maxlength==2147483647&&u!=2147483647?r.maxlength=u:r.maxlength>0?n(this).attr("maxlength",r.maxlength):r.target=null,r.format!="all"&&n(this).autotab_filter(r),n(this).bind("keydown",function(n){n.which==8&&this.value.length==0&&r.previous&&r.previous.focus().val(r.previous.val())}).bind("keyup",function(t){var i;t.which!=8&&(i=n(this).val(),n.inArray(t.which,[8,9,16,17,18,19,20,27,33,34,35,36,37,38,39,40,45,46,144,145])==-1&&i.length==r.maxlength&&r.target&&r.target.focus())})}}(jQuery),function(n){function t(t){var i=n.extend({},n.watermark.defaults,t);return this.each(function(){var t=n(this);t.val()===""&&t.val(i.text)&&n(this).addClass(i.blurCssClass);t.focus(function(){n(this).val()===i.text&&n(this).val("")&&n(this).removeClass(i.blurCssClass)});t.blur(function(){n(this).val()===""&&n(this).val(i.text)&&n(this).addClass(i.blurCssClass)})})}n.fn.extend({watermark:t});n.extend({watermark:{defaults:{text:null,blurCssClass:"watermark"}}})}(jQuery),function(n){function l(i){t.parent||(t.parent=n('<div id="'+i.id+'">'+i.arrow+'<div class="body"><\/div><\/div>').appendTo(document.body).hide(),n.fn.bgiframe&&t.parent.bgiframe(),t.title=n("h3",t.parent),t.body=n("div.body",t.parent),t.url=n("div.url",t.parent))}function i(t){return n.data(t,"tooltip13")}function a(t){i(this).delay?f=setTimeout(h,i(this).delay):h();s=!!i(this).track;n(document.body).bind("mousemove",u);u(t)}function v(){var u,e,f,s;if(!n.tooltip13.blocked&&this!=r&&(this.tooltipText||i(this).bodyHandler)){if(r=this,o=this.tooltipText,i(this).bodyHandler)t.title.hide(),u=i(this).bodyHandler.call(this),u.nodeType||u.jquery?t.body.empty().append(u):t.body.html(u),t.body.show();else if(i(this).showBody){for(e=o.split(i(this).showBody),t.title.html(e.shift()).show(),t.body.empty(),f=0;s=e[f];f++)f>0&&t.body.append("<br/>"),t.body.append(s);t.body.hideWhenEmpty()}else t.title.html(o).show(),t.body.hide();i(this).showURL&&n(this).url()?t.url.html(n(this).url().replace("http://","")).show():t.url.hide();t.parent.addClass(i(this).extraClass);i(this).fixPNG&&t.parent.fixPNG();a.apply(this,arguments)}}function h(){f=null;e&&n.fn.bgiframe||!i(r).fade?t.parent.show():t.parent.is(":animated")?t.parent.stop().show().fadeTo(i(r).fade,r.tOpacity):t.parent.is(":visible")?t.parent.fadeTo(i(r).fade,r.tOpacity):t.parent.fadeIn(i(r).fade);u()}function u(f){var e,h,l,c,o;if(!n.tooltip13.blocked&&(!f||f.target.tagName!="OPTION")){if(!s&&t.parent.is(":visible")&&n(document.body).unbind("mousemove",u),r==null){n(document.body).unbind("mousemove",u);return}t.parent.removeClass("viewport-right").removeClass("viewport-bottom");e=t.parent[0].offsetLeft;h=t.parent[0].offsetTop;f&&(e=f.pageX+i(r).left,h=f.pageY+i(r).top,l="auto",i(r).positionLeft&&(l=n(window).width()-e,e="auto"),t.parent.css({left:e,right:l,top:h}));c=y();o=t.parent[0];c.x+c.cx<o.offsetLeft+o.offsetWidth&&(e-=o.offsetWidth+20+i(r).left,t.parent.css({left:e+"px"}).addClass("viewport-right"));c.y+c.cy<o.offsetTop+o.offsetHeight&&(h-=o.offsetHeight+20+i(r).top,t.parent.css({top:h+"px"}).addClass("viewport-bottom"))}}function y(){return{x:n(window).scrollLeft(),y:n(window).scrollTop(),cx:n(window).width(),cy:n(window).height()}}function c(){function o(){t.parent.removeClass(u.extraClass).hide().css("opacity","")}if(!n.tooltip13.blocked){f&&clearTimeout(f);r=null;var u=i(this);e&&n.fn.bgiframe||!u.fade?o():t.parent.is(":animated")?t.parent.stop().fadeTo(u.fade,0,o):t.parent.stop().fadeOut(u.fade,o);i(this).fixPNG&&t.parent.unfixPNG()}}var t={},r,o,f,e=n.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),s=!1;n.tooltip13={blocked:!1,defaults:{delay:200,fade:!1,showURL:!0,extraClass:"",top:15,left:15,id:"tooltip13",arrow:'<img class="info-bulle-image" width="20" heigth="20" src="/Ressource/Image/Globale/infobulle-coin.gif" />'},block:function(){n.tooltip13.blocked=!n.tooltip13.blocked}};n.fn.extend({tooltip13:function(i){return i=n.extend({},n.tooltip13.defaults,i),l(i),this.each(function(){n.data(this,"tooltip13",i);this.tOpacity=t.parent.css("opacity");this.tooltipText=this.title;n(this).removeAttr("title");this.alt=""}).mouseover(v).mouseout(c).click(c)},fixPNG:e?function(){return this.each(function(){var t=n(this).css("backgroundImage");t.match(/^url\(["']?(.*\.png)["']?\)$/i)&&(t=RegExp.$1,n(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+t+"')"}).each(function(){var t=n(this).css("position");t!="absolute"&&t!="relative"&&n(this).css("position","relative")}))})}:function(){return this},unfixPNG:e?function(){return this.each(function(){n(this).css({filter:"",backgroundImage:""})})}:function(){return this},hideWhenEmpty:function(){return this.each(function(){n(this)[n(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}})}(jQuery),jQuery(function(n){function b(f){var b,e,k,h,nt,v;if(!i.loadingShown&&!i.transition&&!i.anim)if(r("processModal"),i.started=!0,ct=n.extend(!0,{},f),ii(f),i.full||(i.blockerVars=i.blocker=null),i.error=!1,i.closing=!1,i.dataReady=!1,i.scripts=[],i.fichiersCss=[],t.type=fi(),t.forceType&&(t.content||(t.from=!0),t.type=t.forceType,t.forceType=null),n.isFunction(t.processHandler)&&t.processHandler(t),b=t.from,e=t.url,o.width=t.width,o.height=t.height,t.type=="swf"&&(u({overflow:"visible"},"cssOpt","content"),t.content='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+t.width+'" height="'+t.height+'"><param name="movie" value="'+e+'"><\/param>',k="",n.each(t.swf,function(n,i){t.content+='<param name="'+n+'" value="'+i+'"><\/param>';k+=" "+n+'="'+i+'"'}),t.content+='<embed src="'+e+'" type="application/x-shockwave-flash" width="'+t.width+'" height="'+t.height+'"'+k+"><\/embed><\/object>"),b)if(h=n(b).blur(),t.type=="form")v=n(b).serializeArray(),v.push({name:t.formIndicator,value:1}),t.selector&&v.push({name:t.selIndicator,value:t.selector.substring(1)}),l(),n.ajax(n.extend({},t.ajax,{url:e,data:v,type:h.attr("method")?h.attr("method"):"get",success:ot,error:c})),r("Form Ajax Load: "+h.attr("action"));else if(t.type=="formData")y(),h.attr("target","nyroModalIframe"),h.attr("action",e),h.prepend('<input type="hidden" name="'+t.formIndicator+'" value="1" />'),t.selector&&h.prepend('<input type="hidden" name="'+t.selIndicator+'" value="'+t.selector.substring(1)+'" />'),i.tmp.html('<iframe frameborder="0" hspace="0" name="nyroModalIframe" src="javascript:\'\';"><\/iframe>'),n("iframe",i.tmp).css({width:t.width,height:t.height}).error(c).load(oi),r("Form Data Load: "+h.attr("action")),l(),a();else if(t.type=="image")r("Image Load: "+e),nt=h.attr("title")||t.defaultImgAlt,y(),i.tmp.html('<img id="nyroModalImg" />').find("img").attr("alt",nt),i.tmp.css({lineHeight:0}),n("img",i.tmp).error(c).load(function(){r("Image Loaded: "+this.src);n(this).unbind("load");var t=i.tmp.width(),f=i.tmp.height();i.tmp.css({lineHeight:""});s.width=t;s.height=f;u({width:t,height:f,imgWidth:t,imgHeight:f});o.width=t;o.height=f;u({overflow:"visible"},"cssOpt","content");i.dataReady=!0;(i.loadingShown||i.transition)&&a()}).attr("src",e),l();else if(t.type=="iframeForm")y(),i.tmp.html('<iframe frameborder="0" hspace="0" src="javascript:\'\';" name="nyroModalIframe" id="nyroModalIframe"><\/iframe>'),r("Iframe Form Load: "+e),n("iframe",i.tmp).eq(0).css({width:"100%",height:n.support.boxModel?"99%":"100%"}).load(gt),i.dataReady=!0,l();else if(t.type=="iframe")y(),i.tmp.html('<iframe frameborder="0" hspace="0" src="javascript:\'\';" name="nyroModalIframe" id="nyroModalIframe"><\/iframe>'),r("Iframe Load: "+e),n("iframe",i.tmp).eq(0).css({width:"100%",height:n.support.boxModel?"99%":"100%"}).load(gt),i.dataReady=!0,l();else if(t.type){r("Content: "+t.type);y();i.tmp.html(t.content);var d=i.tmp.width(),g=i.tmp.height(),p=n(t.type);p.length&&(u({type:"div"}),d=p.width(),g=p.height(),w&&(tt=w),w=p,i.tmp.append(p.contents()));o.width=d;o.height=g;u({width:d,height:g});i.tmp.html()?i.dataReady=!0:c();i.ready?ut():l()}else r("Ajax Load: "+e),u({type:"ajax"}),v=t.ajax.data||{},t.selector&&(typeof v=="string"?v+="&"+t.selIndicator+"="+t.selector.substring(1):v[t.selIndicator]=t.selector.substring(1)),l(),n.ajax(n.extend(!0,t.ajax,{url:e,success:function(r){var r=ci(r),u=function(){ot(r)};n.isFunction(t.surContenuTelecharger)?t.surContenuTelecharger.apply(this,[i.fichiersCss,i.scripts,u]):ot(r)},error:c,data:v}));else t.content&&(r("Content: "+t.type),u({type:"manual"}),y(),i.tmp.html(n("<div/>").html(t.content).contents()),i.tmp.html()?i.dataReady=!0:c(),l())}function ii(i){r("setDefaultCurrentSettings");t=n.extend(!0,{},n.fn.nyroModal.settings,i);ft()}function u(r,u,f){i.started?u&&f?n.extend(!0,t[u][f],r):u?n.extend(!0,t[u],r):(i.animContent&&("width"in r&&(i.resizing||(r.setWidth=r.width,nt=!0),delete r.width),"height"in r&&(i.resizing||(r.setHeight=r.height,nt=!0),delete r.height)),n.extend(!0,t,r)):u&&f?n.extend(!0,n.fn.nyroModal.settings[u][f],r):u?n.extend(!0,n.fn.nyroModal.settings[u],r):n.extend(!0,n.fn.nyroModal.settings,r)}function at(){p&&!i.blocker?document.documentElement?(t.marginScrollLeft=document.documentElement.scrollLeft,t.marginScrollTop=document.documentElement.scrollTop):(t.marginScrollLeft=document.body.scrollLeft,t.marginScrollTop=document.body.scrollTop):(t.marginScrollLeft=0,t.marginScrollTop=0)}function ft(){at();t.marginLeft=-(t.width+t.borderW)/2;t.marginTop=-(t.height+t.borderH)/2;i.blocker||(t.marginLeft+=t.marginScrollLeft,t.marginTop+=t.marginScrollTop)}function et(){at();var n=g(i.loading);t.marginTopLoading=-(i.loading.height()+n.h.border+n.h.padding)/2;t.marginLeftLoading=-(i.loading.width()+n.w.border+n.w.padding)/2;i.blocker||(t.marginLeftLoading+=t.marginScrollLeft,t.marginTopLoading+=t.marginScrollTop)}function vt(){var r=n("h1#nyroModalTitle",i.contentWrapper);r.length?r.text(t.title):i.contentWrapper.prepend('<h1 id="nyroModalTitle">'+t.title+"<\/h1>")}function y(){var y,w,e,o;if(r("initModal"),!i.full){t.debug&&u({color:"white"},"cssOpt","bg");var c={zIndex:t.zIndexStart,position:"fixed",top:0,left:0,width:"100%",height:"100%"},l=h,a="";if(t.blocker){i.blocker=l=n(t.blocker);var s=i.blocker.offset(),e=i.blocker.outerWidth(),o=i.blocker.outerHeight();p&&u({height:"100%",width:"100%",top:0,left:0},"cssOpt","bg");i.blockerVars={top:s.top,left:s.left,width:e,height:o};y=/msie/.test(v)?0:f(h.get(0),"borderTopWidth");w=/msie/.test(v)?0:f(h.get(0),"borderLeftWidth");c={position:"absolute",top:s.top+y,left:s.left+w,width:e,height:o}}else p&&(h.css({marginLeft:0,marginRight:0}),e=h.width(),o=n(window).height()+"px",n(window).height()>=h.outerHeight()?o=h.outerHeight()+"px":e+=20,e+="px",h.css({width:e,height:o,position:"static",overflow:"hidden"}),n("html").css({overflow:"hidden"}),u({cssOpt:{bg:{position:"absolute",zIndex:t.zIndexStart+1,height:"110%",width:"110%",top:t.marginScrollTop+"px",left:t.marginScrollLeft+"px"},wrapper:{zIndex:t.zIndexStart+2},loading:{zIndex:t.zIndexStart+3}}}),a=n('<iframe id="nyroModalIframeHideIe" src="javascript:\'\';"><\/iframe>').css(n.extend({},t.cssOpt.bg,{opacity:0,zIndex:50,border:"none"})));l.append(n('<div id="nyroModalFull"><div id="nyroModalBg"><\/div><div id="nyroModalWrapper"><div id="nyroModalContent"><\/div><\/div><div id="nyrModalTmp"><\/div><div id="nyroModalLoading"><\/div><\/div>').hide());i.full=n("#nyroModalFull").css(c).show();i.bg=n("#nyroModalBg").css(n.extend({backgroundColor:t.bgColor},t.cssOpt.bg)).before(a);i.bg.bind("click.nyroModal",ui);i.loading=n("#nyroModalLoading").css(t.cssOpt.loading).hide();i.contentWrapper=n("#nyroModalWrapper").css(t.cssOpt.wrapper).hide();i.content=n("#nyroModalContent");i.tmp=n("#nyrModalTmp").hide();n.isFunction(n.fn.mousewheel)&&i.content.mousewheel(function(n,t){var r=i.content.get(0);(t>0&&r.scrollTop==0||t<0&&r.scrollHeight-r.scrollTop==r.clientHeight)&&(n.preventDefault(),n.stopPropagation())});n(document).bind("keydown.nyroModal",yt);i.content.css({width:"auto",height:"auto"});i.contentWrapper.css({width:"auto",height:"auto"});!t.blocker&&t.windowResize&&n(window).bind("resize.nyroModal",function(){window.clearTimeout(lt);lt=window.setTimeout(ri,200)})}}function ri(){n.nyroModalSettings(o)}function l(){r("showModal");i.ready?(i.anim=!0,i.transition=!0,t.showTransition(i,t,function(){ut();i.anim=!1;a()})):(y(),i.anim=!0,t.showBackground(i,t,hi))}function ui(){t.modal||k()}function yt(r){if(r.keyCode==27)t.modal||k();else if(t.gallery&&i.ready&&i.dataReady&&!i.anim&&!i.transition){if(r.keyCode==39||r.keyCode==40)return r.preventDefault(),n.nyroModalNext(),!1;if(r.keyCode==37||r.keyCode==38)return r.preventDefault(),n.nyroModalPrev(),!1}}function fi(){var i=t.from,r,e,h,o,c,f,s;if(i&&i.nodeName){if(e=n(i),r=e.attr(i.nodeName.toLowerCase()=="form"?"action":"href"),r||(r=location.href.substring(window.location.host.length+7)),t.url=r,e.attr("rev")=="modal"&&(t.modal=!0),t.title=e.attr("title"),i&&i.rel&&i.rel.toLowerCase()!="nofollow"&&(h=i.rel.indexOf(" "),t.gallery=h>0?i.rel.substr(0,h):i.rel),f=pt(r,i),f)return f;if(wt(r))return"swf";if(o=!1,(i.target&&i.target.toLowerCase()=="_blank"||i.hostname&&i.hostname.replace(/:\d*$/,"")!=window.location.hostname.replace(/:\d*$/,""))&&(o=!0),i.nodeName.toLowerCase()=="form")return o?"iframeForm":(u(bt(r)),e.attr("enctype")=="multipart/form-data")?"formData":"form";if(o)return"iframe"}else{if(r=t.url,t.content||(t.from=!0),!r)return null;if(wt(r))return"swf";if(c=new RegExp("^http://|https://","g"),r.match(c))return"iframe"}return(f=pt(r,i),f)?f:(s=bt(r),u(s),s.url?void 0:s.selector)}function pt(n){var i=new RegExp(t.regexImg,"i");if(i.test(n))return"image"}function wt(n){var t=new RegExp("[^.].(swf)s*$","i");return t.test(n)}function bt(t){var i={url:null,selector:null};if(t){var r=ti(t),f=ti(window.location.href),e=window.location.href.substring(0,window.location.href.length-f.length),u=t.substring(0,t.length-r.length);u==e||u==n("base").attr("href")?i.selector=r:(i.url=u,i.selector=r)}return i}function c(){(r("loadingError"),i.error=!0,i.ready)&&(n.isFunction(t.handleError)&&t.handleError(i,t),i.loading.addClass(t.errorClass).html(t.contentError),n(t.closeSelector,i.loading).unbind("click.nyroModal").bind("click.nyroModal",k),et(),i.loading.css({marginTop:t.marginTopLoading+"px",marginLeft:t.marginLeftLoading+"px"}))}function kt(){(r("fillContent"),i.tmp.html())&&(i.content.html(i.tmp.contents()),i.tmp.empty(),ei(),t.type=="iframeForm"&&n(t.from).attr("target","nyroModalIframe").data("nyroModalprocessing",1).submit().attr("target","_blank").removeData("nyroModalprocessing"),t.modal||i.wrapper.prepend(t.closeButton),n.isFunction(t.endFillContent)&&t.endFillContent(i,t),n(t.closeSelector,i.contentWrapper).unbind("click.nyroModal").bind("click.nyroModal",k),n(t.openSelector,i.contentWrapper).nyroModal(it()))}function it(){return ct}function ei(){var o,c,s,u,h,f;r("wrapContent");o=n(t.wrap[t.type]);i.content.append(o.children().remove());i.contentWrapper.wrapInner(o);t.gallery&&(i.content.append(t.galleryLinks),e.links=n('[rel="'+t.gallery+'"], [rel^="'+t.gallery+' "]'),e.index=e.links.index(t.from),t.galleryCounts&&n.isFunction(t.galleryCounts)&&t.galleryCounts(e.index+1,e.links.length,i,t),c=it(),s=rt(-1),s?(u=n(".nyroModalPrev",i.contentWrapper).attr("href",s.attr("href")).click(function(t){return t.preventDefault(),n.nyroModalPrev(),!1}),p&&t.type=="swf"&&u.before(n('<iframe id="nyroModalIframeHideIeGalleryPrev" src="javascript:\'\';"><\/iframe>').css({position:u.css("position"),top:u.css("top"),left:u.css("left"),width:u.width(),height:u.height(),opacity:0,border:"none"}))):n(".nyroModalPrev",i.contentWrapper).remove(),h=rt(1),h?(f=n(".nyroModalNext",i.contentWrapper).attr("href",h.attr("href")).click(function(t){return t.preventDefault(),n.nyroModalNext(),!1}),p&&t.type=="swf"&&f.before(n('<iframe id="nyroModalIframeHideIeGalleryNext" src="javascript:\'\';"><\/iframe>').css(n.extend({},{position:f.css("position"),top:f.css("top"),left:f.css("left"),width:f.width(),height:f.height(),opacity:0,border:"none"})))):n(".nyroModalNext",i.contentWrapper).remove());dt()}function rt(n){if(t.gallery){t.ltr||(n*=-1);var i=e.index+n;if(i>=0&&i<e.links.length)return e.links.eq(i);if(t.galleryLoop)return i<0?e.links.eq(e.links.length-1):e.links.eq(0)}return!1}function dt(f){var e,l,a,c,it;r("calculateSize");i.wrapper=i.contentWrapper.children("div:first");s.width=!1;s.height=!1;!0||t.windowResizing||(o.width=t.width,o.height=t.height);!t.autoSizable||t.width&&t.height||(i.contentWrapper.css({opacity:0,width:"auto",height:"auto"}).show(),e={width:"auto",height:"auto"},t.width?e.width=t.width:t.type=="iframe"&&(e.width=t.minWidth),t.height?e.height=t.height:t.type=="iframe"&&(e.height=t.minHeight),i.content.css(e),t.width||(t.width=i.content.outerWidth(!0),s.width=!0),t.height||(t.height=i.content.outerHeight(!0),s.height=!0),i.contentWrapper.css({opacity:1}),f||i.contentWrapper.hide());t.type!="image"&&t.type!="swf"&&(t.width=Math.max(t.width,t.minWidth),t.height=Math.max(t.height,t.minHeight));var v=g(i.contentWrapper),y=g(i.wrapper),h=g(i.content),e={content:{width:t.width,height:t.height},wrapper2:{width:t.width+h.w.total,height:t.height+h.h.total},wrapper:{width:t.width+h.w.total+y.w.total,height:t.height+h.h.total+y.h.total}};if(t.resizable&&(l=i.blockerVars?i.blockerVars.height:n(window).height()-v.h.border-(e.wrapper.height-t.height),a=i.blockerVars?i.blockerVars.width:n(window).width()-v.w.border-(e.wrapper.width-t.width),l-=t.padding*2,a-=t.padding*2,e.content.height>l||e.content.width>a)){if(t.type=="image"||t.type=="swf"){var b=t.imgWidth?t.imgWidth:t.width,k=t.imgHeight?t.imgHeight:t.height,p=e.content.width-b,w=e.content.height-k;w<0&&(w=0);p<0&&(p=0);var d=l-w,nt=a-p,tt=Math.min(d/k,nt/b);nt=Math.floor(b*tt);d=Math.floor(k*tt);e.content.height=d+w;e.content.width=nt+p}else e.content.height=Math.min(e.content.height,l),e.content.width=Math.min(e.content.width,a);e.wrapper2={width:e.content.width+h.w.total,height:e.content.height+h.h.total};e.wrapper={width:e.content.width+h.w.total+y.w.total,height:e.content.height+h.h.total+y.h.total}}t.type=="swf"?n("object, embed",i.content).attr("width",e.content.width).attr("height",e.content.height):t.type=="image"&&n("img",i.content).css({width:e.content.width,height:e.content.height});i.content.css(n.extend({},e.content,t.cssOpt.content));i.wrapper.css(n.extend({},e.wrapper2,t.cssOpt.wrapper2));f||i.contentWrapper.css(n.extend({},e.wrapper,t.cssOpt.wrapper));t.type=="image"&&t.addImageDivTitle&&(n("img",i.content).removeAttr("alt"),c=n("div",i.content),t.title!=t.defaultImgAlt&&t.title?(c.length==0&&(c=n("<div>"+t.title+"<\/div>"),i.content.append(c)),t.setWidthImgTitle&&(it=g(c),c.css({width:e.content.width+h.w.padding-it.w.total+"px"}))):(c.length=0)&&c.remove());t.title&&vt();e.wrapper.borderW=v.w.border;e.wrapper.borderH=v.h.border;u(e.wrapper);ft();n.isFunction(t.surDimensionCalculer)&&t.surDimensionCalculer.apply(this,[e.content.width,e.content.height,h.w.inner,h.h.inner])}function k(u){return r("removeModal"),u&&u.preventDefault(),i.full&&i.ready&&(n(document).unbind("keydown.nyroModal"),t.blocker||n(window).unbind("resize.nyroModal"),i.ready=!1,i.anim=!0,i.closing=!0,i.loadingShown||i.transition?t.hideLoading(i,t,function(){i.loading.hide();i.loadingShown=!1;i.transition=!1;t.hideBackground(i,t,st)}):(d&&i.content.css({position:""}),i.wrapper.css({overflow:"hidden"}),i.content.css({overflow:"hidden"}),n("iframe",i.content).hide(),n.isFunction(t.beforeHideContent)?t.beforeHideContent(i,t,function(){t.hideContent(i,t,function(){ut();t.hideBackground(i,t,st)})}):t.hideContent(i,t,function(){ut();t.hideBackground(i,t,st)}))),u?!1:void 0}function a(){r("showContentOrLoading");i.ready&&!i.anim&&(i.dataReady?i.tmp.html()&&(i.anim=!0,i.transition?(kt(),i.animContent=!0,t.hideTransition(i,t,function(){i.loading.hide();i.transition=!1;i.loadingShown=!1;ni()})):t.hideLoading(i,t,function(){i.loading.hide();i.loadingShown=!1;kt();et();ft();i.animContent=!0;t.showContent(i,t,ni)})):i.loadingShown||i.transition||(i.anim=!0,i.loadingShown=!0,i.error?c():i.loading.html(t.contentLoading),n(t.closeSelector,i.loading).unbind("click.nyroModal").bind("click.nyroModal",k),et(),t.showLoading(i,t,function(){i.anim=!1;a()})))}function ot(u){if(r("AjaxLoaded: "+this.url),t.selector){var f={},e=0;u=u.replace(/\r\n/gi,"nyroModalLN").replace(/<script(.|\s)*?\/script>/gi,function(n){return f[e]=n,'<pre style="display: none" class=nyroModalScript rel="'+e+++'"><\/pre>'});u=n("<div>"+u+"<\/div>").find(t.selector).html().replace(/<pre style="display: none;?" class="?nyroModalScript"? rel="(.?)"><\/pre>/gi,function(n,t){return f[t]}).replace(/nyroModalLN/gi,"\r\n")}i.tmp.html(u);i.tmp.html()?(i.dataReady=!0,a()):c()}function oi(){var u,f,e;r("formDataLoaded");u=n(t.from);u.attr("action",u.attr("action")+t.selector);u.attr("target","");n("input[name="+t.formIndicator+"]",t.from).remove();f=i.tmp.children("iframe");e=f.unbind("load").contents().find(t.selector||"body").not("script[src]");f.attr("src","about:blank");i.tmp.html(e.html());i.tmp.html()?(i.dataReady=!0,a()):c()}function gt(){var f,r,u;if(window.location.hostname&&t.url.indexOf(window.location.hostname)>-1||t.url.indexOf("http://")){if(f=n("iframe",i.full).contents(),r={},t.titleFromIframe&&(r.title=f.find("title").text(),!r.title))try{r.title=f.find("title").html()}catch(e){}u=f.find("body");!t.height&&u.height()&&(r.height=u.height());!t.width&&u.width()&&(r.width=u.width());n.extend(o,r);n.nyroModalSettings(r)}}function si(n,t,i,r){t>1&&(r.title+=(r.title?" - ":"")+n+"/"+t)}function ut(){r("endHideContent");i.anim=!1;tt?(tt.append(i.content.contents()),tt=null):w&&(w.append(i.content.contents()),w=null);i.content.empty();e={};i.contentWrapper.hide().children().remove().empty().attr("style","").hide();(i.closing||i.transition)&&i.contentWrapper.hide();i.contentWrapper.css(t.cssOpt.wrapper).append(i.content);a()}function st(){r("endRemove");n(document).unbind("keydown",yt);i.anim=!1;i.full.remove();i.full=null;p&&(h.css({height:"",width:"",position:"",overflow:"",marginLeft:"",marginRight:""}),n("html").css({overflow:""}));n.isFunction(t.endRemove)&&t.endRemove(i,t)}function hi(){r("endBackground");i.ready=!0;i.anim=!1;a()}function ni(){r("endShowContent");i.anim=!1;i.animContent=!1;i.contentWrapper.css({opacity:""});d=/mozilla/.test(v)&&!/(compatible|webkit)/.test(v)&&parseFloat(ht)<1.9&&t.type!="image";d&&i.content.css({position:"fixed"});t.type=="iframe"&&i.content.find("iframe").attr("src",t.url);n.isFunction(t.endShowContent)&&t.endShowContent(i,t);nt&&(nt=!1,n.nyroModalSettings({width:t.setWidth,height:t.setHeight}),delete t.setWidth,delete t.setHeight);s.width&&u({width:null});s.height&&u({height:null})}function ti(n){if(typeof n=="string"){var t=n.indexOf("#");if(t>-1)return n.substring(t)}return""}function ci(t){if(typeof t=="string"){t=t.replace(/<\/?(html|head|body)([^>]*)>/gi,"");var r=[];n.each(n.clean({0:t},this.ownerDocument),function(){n.nodeName(this,"script")?i.scripts.push(this):n.nodeName(this,"link")?i.fichiersCss.push(this):r.push(this)})}return r}function g(n){n=n.get(0);var t={h:{margin:f(n,"marginTop")+f(n,"marginBottom"),border:f(n,"borderTopWidth")+f(n,"borderBottomWidth"),padding:f(n,"paddingTop")+f(n,"paddingBottom")},w:{margin:f(n,"marginLeft")+f(n,"marginRight"),border:f(n,"borderLeftWidth")+f(n,"borderRightWidth"),padding:f(n,"paddingLeft")+f(n,"paddingRight")}};return t.h.outer=t.h.margin+t.h.border,t.w.outer=t.w.margin+t.w.border,t.h.inner=t.h.padding+t.h.border,t.w.inner=t.w.padding+t.w.border,t.h.total=t.h.outer+t.h.padding,t.w.total=t.w.outer+t.w.padding,t}function f(t,i){var r=parseInt(n.css(t,i,!0));return isNaN(r)&&(r=0),r}function r(r){(n.fn.nyroModal.settings.debug||t&&t.debug)&&nyroModalDebug(r,i,t||{})}function li(n,t,i){n.bg.css({opacity:0}).fadeTo(500,.75,i)}function ai(n,t,i){n.bg.fadeOut(300,i)}function vi(n,t,i){n.loading.css({marginTop:t.marginTopLoading+"px",marginLeft:t.marginLeftLoading+"px",opacity:0}).show().animate({opacity:1},{complete:i,duration:400})}function yi(n,t,i){i()}function pi(n,t,i){n.loading.css({marginTop:t.marginTopLoading+"px",marginLeft:t.marginLeftLoading+"px"}).show().animate({width:t.width+"px",height:t.height+"px",marginTop:t.marginTop+"px",marginLeft:t.marginLeft+"px"},{duration:350,complete:function(){n.contentWrapper.css({width:t.width+"px",height:t.height+"px",marginTop:t.marginTop+"px",marginLeft:t.marginLeft+"px"}).show();n.loading.fadeOut(200,i)}})}function wi(n,t,i){n.contentWrapper.animate({height:"50px",width:"50px",marginTop:-(25+t.borderH)/2+t.marginScrollTop+"px",marginLeft:-(25+t.borderW)/2+t.marginScrollLeft+"px"},{duration:350,complete:function(){n.contentWrapper.hide();i()}})}function bi(n,t,i){n.loading.css({marginTop:n.contentWrapper.css("marginTop"),marginLeft:n.contentWrapper.css("marginLeft"),height:n.contentWrapper.css("height"),width:n.contentWrapper.css("width"),opacity:0}).show().fadeTo(400,1,function(){n.contentWrapper.hide();i()})}function ki(n,t,i){n.contentWrapper.hide().css({width:t.width+"px",height:t.height+"px",marginLeft:t.marginLeft+"px",marginTop:t.marginTop+"px",opacity:1});n.loading.animate({width:t.width+"px",height:t.height+"px",marginLeft:t.marginLeft+"px",marginTop:t.marginTop+"px"},{complete:function(){n.contentWrapper.show();n.loading.fadeOut(400,function(){n.loading.hide();i()})},duration:350})}function di(n,t,i){n.contentWrapper.animate({width:t.width+"px",height:t.height+"px",marginLeft:t.marginLeft+"px",marginTop:t.marginTop+"px"},{complete:i,duration:400})}function gi(t,i,r){n.fx.step.backgroundColor?t.bg.animate({backgroundColor:i.bgColor},{complete:r,duration:400}):(t.bg.css({backgroundColor:i.bgColor}),r())}var v=navigator.userAgent.toLowerCase(),ht=(v.match(/.+(?:rv|webkit|khtml|opera|msie)[\/: ]([\d.]+)/)||[0,"0"])[1],p=/msie/.test(v)&&!/opera/.test(v)&&parseInt(ht)<7&&(!window.XMLHttpRequest||typeof XMLHttpRequest=="function"),h=n("body"),t,ct,nt=!1,e={},d=!1,w,tt,i={started:!1,ready:!1,dataReady:!1,anim:!1,animContent:!1,loadingShown:!1,transition:!1,resizing:!1,closing:!1,error:!1,blocker:null,blockerVars:null,full:null,bg:null,loading:null,tmp:null,content:null,wrapper:null,contentWrapper:null,scripts:[],fichierCss:[]},s={width:!1,height:!1,windowResizing:!1},o={width:null,height:null,windowResizing:!0},lt;n.fn.nyroModal=function(t){return this?this.each(function(){var i=n(this);this.nodeName.toLowerCase()=="form"?i.unbind("submit.nyroModal").bind("submit.nyroModal",function(r){return r.isDefaultPrevented()?!1:i.data("nyroModalprocessing")?!0:this.enctype=="multipart/form-data"?(b(n.extend(t,{from:this})),!0):(r.preventDefault(),b(n.extend(t,{from:this})),!1)}):i.unbind("click.nyroModal").bind("click.nyroModal",function(i){return i.isDefaultPrevented()?!1:(i.preventDefault(),b(n.extend(t,{from:this})),!1)})}):!1};n.fn.nyroModalManual=function(t){return this.length||b(t),this.each(function(){b(n.extend(t,{from:this}))})};n.nyroModalManual=function(n){b(n)};n.nyroModalSettings=function(r,f,e){u(r,f,e);!f&&i.started&&(i.bg&&r.bgColor&&t.updateBgColor(i,t,function(){}),i.contentWrapper&&r.title&&vt(),!i.error&&(r.windowResizing||!i.resizing&&("width"in r&&r.width==t.width||"height"in r&&r.height==t.height))&&(i.resizing=!0,i.contentWrapper&&dt(!0),i.contentWrapper&&i.contentWrapper.is(":visible")&&!i.animContent&&(d&&i.content.css({position:""}),t.resize(i,t,function(){t.windowResizing=!1;i.resizing=!1;d&&i.content.css({position:"fixed"});n.isFunction(t.endResize)&&t.endResize(i,t)}))))};n.nyroModalRemove=function(){k()};n.nyroModalNext=function(){var n=rt(1);return n?n.nyroModalManual(it()):!1};n.nyroModalPrev=function(){var n=rt(-1);return n?n.nyroModalManual(it()):!1};n.fn.nyroModal.settings={debug:!1,blocker:!1,windowResize:!0,modal:!1,type:"",forceType:null,from:"",hash:"",processHandler:null,selIndicator:"nyroModalSel",formIndicator:"nyroModal",content:null,bgColor:"#000000",ajax:{},swf:{wmode:"transparent"},width:null,height:null,minWidth:400,minHeight:300,resizable:!0,autoSizable:!0,padding:25,regexImg:"[^.].(jpg|jpeg|png|tiff|gif|bmp)s*$",addImageDivTitle:!1,defaultImgAlt:"Image",setWidthImgTitle:!0,ltr:!0,gallery:null,galleryLinks:'<a href="#" class="nyroModalPrev">Prev<\/a><a href="#"  class="nyroModalNext">Next<\/a>',galleryCounts:si,galleryLoop:!1,zIndexStart:100,cssOpt:{bg:{position:"absolute",overflow:"hidden",top:0,left:0,height:"100%",width:"100%"},wrapper:{position:"absolute",top:"50%",left:"50%"},wrapper2:{},content:{},loading:{position:"absolute",top:"50%",left:"50%",marginTop:"-50px",marginLeft:"-50px"}},wrap:{div:'<div class="wrapper"><\/div>',ajax:'<div class="wrapper"><\/div>',form:'<div class="wrapper"><\/div>',formData:'<div class="wrapper"><\/div>',image:'<div class="wrapperImg"><\/div>',swf:'<div class="wrapperSwf"><\/div>',iframe:'<div class="wrapperIframe"><\/div>',iframeForm:'<div class="wrapperIframe"><\/div>',manual:'<div class="wrapper"><\/div>'},closeButton:'<a href="#" class="nyroModalClose" id="closeBut" title="close">Close<\/a>',title:null,titleFromIframe:!0,openSelector:".nyroModal",closeSelector:".nyroModalClose",contentLoading:'<a href="#" class="nyroModalClose">Cancel<\/a>',errorClass:"error",contentError:'The requested content cannot be loaded.<br />Please try again later.<br /><a href="#" class="nyroModalClose">Close<\/a>',handleError:null,showBackground:li,hideBackground:ai,endFillContent:null,showContent:pi,endShowContent:null,beforeHideContent:null,hideContent:wi,showTransition:bi,hideTransition:ki,showLoading:vi,hideLoading:yi,resize:di,endResize:null,updateBgColor:gi,endRemove:null,surContenuTelecharger:null,surDimensionCalculer:null};n(n.fn.nyroModal.settings.openSelector).nyroModal()}),tmpDebug="",function(n){function r(r,f,e){var s=n.extend({},n.fieldswatcher.defaults,e),o;f&&f.length>0&&(o=[],n(f).each(function(n,t){o.push(i(t))}),u(r,f,o,s),t=!0,n("body").data("field-watcher-"+r+"-warn",!0),n("body").data("field-watcher-"+r+"-text",s.text))}function u(t,r,u){n(window).bind("beforeunload",function(){var f=!1,e=n("body").data("field-watcher-"+t+"-warn"),o=n("body").data("field-watcher-"+t+"-text");if(e&&(n(r).each(function(n,t){var r=i(t);if(u[n]!==r)return f=!0,!1}),f))return o})}function f(t,i){n("body").data("field-watcher-"+t+"-warn",i)}function e(t,i){n("body").data("field-watcher-"+t+"-text",i)}function i(t){var i="",r;return n.isFunction(t)?i=t.call():(r=n(t),i=r.length>0?r.val():""),i}function o(){return t}var t=!1;n.extend({fieldswatcher:r});n.extend(n.fieldswatcher,{defaults:{text:""},isActive:o,warn:f,text:e})}(jQuery),!function(n,t,i){!function(n){"use strict";"function"==typeof define&&define.amd?define(["jquery"],n):jQuery&&!jQuery.fn.qtip&&n(jQuery)}(function(r){"use strict";function gt(n,t,i,f){this.id=i;this.target=n;this.tooltip=s;this.elements={target:n};this._id=o+"-"+i;this.timers={img:{}};this.options=t;this.plugins={};this.cache={event:{},target:r(),disabled:u,attr:f,onTooltip:u,lastClass:""};this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=u}function tt(n){return n===s||"object"!==r.type(n)}function si(n){return!(r.isFunction(n)||n&&n.attr||n.length||"object"===r.type(n)&&(n.jquery||n.then))}function at(n){var t,e,i,o;return tt(n)?u:(tt(n.metadata)&&(n.metadata={type:n.metadata}),"content"in n&&(t=n.content,tt(t)||t.jquery||t.done?t=n.content={text:e=si(t)?u:t}:e=t.text,"ajax"in t&&(i=t.ajax,o=i&&i.once!==u,delete t.ajax,t.text=function(n,t){var u=e||r(this).attr(t.options.content.attr)||"Loading...",f=r.ajax(r.extend({},i,{context:t})).then(i.success,s,i.error).then(function(n){return n&&o&&t.set("content.text",n),n},function(n,i,r){t.destroyed||0===n.status||t.set("content.text",i+": "+r)});return o?u:(t.set("content.text",u),f)}),"title"in t&&(r.isPlainObject(t.title)&&(t.button=t.title.button,t.title=t.title.text),si(t.title||u)&&(t.title=u))),"position"in n&&tt(n.position)&&(n.position={my:n.position,at:n.position}),"show"in n&&tt(n.show)&&(n.show=n.show.jquery?{target:n.show}:n.show===f?{ready:f}:{event:n.show}),"hide"in n&&tt(n.hide)&&(n.hide=n.hide.jquery?{target:n.hide}:{event:n.hide}),"style"in n&&tt(n.style)&&(n.style={classes:n.style}),r.each(h,function(){this.sanitize&&this.sanitize(n)}),n)}function hi(n,t){for(var u,f=0,i=n,r=t.split(".");i=i[r[f++]];)f<r.length&&(u=i);return[u||n,r.pop()]}function nr(n,t){var i,r,u;for(i in this.checks)for(r in this.checks[i])(u=new RegExp(r,"i").exec(n))&&(t.push(u),("builtin"===i||this.plugins[i])&&this.checks[i][r].apply(this.plugins[i]||this,t))}function vt(n){return er.concat("").join(n?"-"+n+" ":" ")}function yt(n,t){return t>0?setTimeout(r.proxy(n,this),t):void n.call(this)}function tr(n){this.tooltip.hasClass(a)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=yt.call(this,function(){this.toggle(f,n)},this.options.show.delay))}function ir(n){if(!this.tooltip.hasClass(a)&&!this.destroyed){var t=r(n.relatedTarget),i=t.closest(ut)[0]===this.tooltip[0],f=t[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==t[0]&&"mouse"===this.options.position.target&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(n.type)&&(i||f))try{n.preventDefault();n.stopImmediatePropagation()}catch(e){}else this.timers.hide=yt.call(this,function(){this.toggle(u,n)},this.options.hide.delay,this)}}function ni(n){!this.tooltip.hasClass(a)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=yt.call(this,function(){this.hide(n)},this.options.hide.inactive))}function ci(n){this.rendered&&this.tooltip[0].offsetWidth>0&&this.reposition(n)}function li(n,i,u){r(t.body).delegate(n,(i.split?i:i.join("."+o+" "))+"."+o,function(){var n=c.api[r.attr(this,wt)];n&&!n.disabled&&u.apply(n,arguments)})}function rr(n,i,e){var y,l,v,h,b,k=r(t.body),p=n[0]===t?k:n,w=n.metadata?n.metadata(e.metadata):s,g="html5"===e.metadata.type&&w?w[e.metadata.name]:s,a=n.data(e.metadata.name||"qtipopts");try{a="string"==typeof a?r.parseJSON(a):a}catch(tt){}if(h=r.extend(f,{},c.defaults,e,"object"==typeof a?at(a):s,at(g||w)),l=h.position,h.id=i,"boolean"==typeof h.content.text){if(v=n.attr(h.content.attr),h.content.attr===u||!v)return u;h.content.text=v}if(l.container.length||(l.container=k),l.target===u&&(l.target=p),h.show.target===u&&(h.show.target=p),h.show.solo===f&&(h.show.solo=l.container.closest("body")),h.hide.target===u&&(h.hide.target=p),h.position.viewport===f&&(h.position.viewport=l.container),l.container=l.container.eq(0),l.at=new d(l.at,f),l.my=new d(l.my),n.data(o))if(h.overwrite)n.qtip("destroy",!0);else if(h.overwrite===u)return u;return n.attr(ii,i),h.suppress&&(b=n.attr("title"))&&n.removeAttr("title").attr(nt,b).attr("title",""),y=new gt(n,h,i,!!v),n.data(o,y),y}function st(n){return n.charAt(0).toUpperCase()+n.slice(1)}function ur(n,t){var r,u,f=t.charAt(0).toUpperCase()+t.slice(1),e=(t+" "+sr.join(f+" ")+f).split(" "),o=0;if(ei[t])return n.css(ei[t]);for(;r=e[o++];)if((u=n.css(r))!==i)return ei[t]=r,u}function rt(n,t){return Math.ceil(parseFloat(ur(n,t)))}function ai(n,t){this._ns="tip";this.options=t;this.offset=t.offset;this.size=[t.width,t.height];this.init(this.qtip=n)}var c,e,d,vi,pt,f=!0,u=!1,s=null,p="x",v="y",ht="width",ti="height",b="top",w="left",g="bottom",k="right",l="center",fr="flipinvert",it="shift",h={},o="qtip",ii="data-hasqtip",wt="data-qtip-id",er=["ui-widget","ui-tooltip"],ut="."+o,yi="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),pi=o+"-fixed",ri=o+"-default",bt=o+"-focus",or=o+"-hover",a=o+"-disabled",ft="_replacedByqTip",nt="oldtitle",y={ie:function(){for(var n=4,i=t.createElement("div");(i.innerHTML="<!--[if gt IE "+n+"]><i><\/i><![endif]-->")&&i.getElementsByTagName("i")[0];n+=1);return n>4?n:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||u},wi,bi,ct,oi;e=gt.prototype;e._when=function(n){return r.when.apply(r,n)};e.render=function(n){if(this.rendered||this.destroyed)return this;var w,i=this,t=this.options,s=this.cache,y=this.elements,p=t.content.text,l=t.content.title,b=t.content.button,e=t.position,v=("."+this._id+" ",[]);return r.attr(this.target[0],"aria-describedby",this._id),s.posClass=this._createPosClass((this.position={my:e.my,at:e.at}).my),this.tooltip=y.tooltip=w=r("<div/>",{id:this._id,"class":[o,ri,t.style.classes,s.posClass].join(" "),width:t.style.width||"",height:t.style.height||"",tracking:"mouse"===e.target&&e.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":u,"aria-describedby":this._id+"-content","aria-hidden":f}).toggleClass(a,this.disabled).attr(wt,this.id).data(o,this).appendTo(e.container).append(y.content=r("<div />",{"class":o+"-content",id:this._id+"-content","aria-atomic":f})),this.rendered=-1,this.positioning=f,l&&(this._createTitle(),r.isFunction(l)||v.push(this._updateTitle(l,u))),b&&this._createButton(),r.isFunction(p)||v.push(this._updateContent(p,u)),this.rendered=f,this._setWidget(),r.each(h,function(n){var t;"render"===this.initialize&&(t=this(i))&&(i.plugins[n]=t)}),this._unassignEvents(),this._assignEvents(),this._when(v).then(function(){i._trigger("render");i.positioning=u;i.hiddenDuringWait||!t.show.ready&&!n||i.toggle(f,s.event,u);i.hiddenDuringWait=u}),c.api[this.id]=this,this};e.destroy=function(n){function t(){if(!this.destroyed){this.destroyed=f;var t,n=this.target,i=n.attr(nt);this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove();r.each(this.plugins,function(){this.destroy&&this.destroy()});for(t in this.timers)clearTimeout(this.timers[t]);n.removeData(o).removeAttr(wt).removeAttr(ii).removeAttr("aria-describedby");this.options.suppress&&i&&n.attr("title",i).removeAttr(nt);this._unassignEvents();this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=s;delete c.api[this.id]}}return this.destroyed?this.target:(n===f&&"hide"!==this.triggering||!this.rendered?t.call(this):(this.tooltip.one("tooltiphidden",r.proxy(t,this)),!this.triggering&&this.hide()),this.target)};vi=e.checks={builtin:{"^id$":function(n,t,i,e){var s=i===f?c.nextid:i,h=o+"-"+s;s!==u&&s.length>0&&!r("#"+h).length?(this._id=h,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):n[t]=e},"^prerender":function(n,t,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(n,t,i){this._updateContent(i)},"^content.attr$":function(n,t,i,r){this.options.content.text===this.target.attr(r)&&this._updateContent(this.target.attr(i))},"^content.title$":function(n,t,i){return i?(i&&!this.elements.title&&this._createTitle(),void this._updateTitle(i)):this._removeTitle()},"^content.button$":function(n,t,i){this._updateButton(i)},"^content.title.(text|button)$":function(n,t,i){this.set("content."+t,i)},"^position.(my|at)$":function(n,t,i){"string"==typeof i&&(this.position[t]=n[t]=new d(i,"at"===t))},"^position.container$":function(n,t,i){this.rendered&&this.tooltip.appendTo(i)},"^show.ready$":function(n,t,i){i&&(!this.rendered&&this.render(f)||this.toggle(f))},"^style.classes$":function(n,t,i,r){this.rendered&&this.tooltip.removeClass(r).addClass(i)},"^style.(width|height)":function(n,t,i){this.rendered&&this.tooltip.css(t,i)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(n,t,i){this.rendered&&this.tooltip.toggleClass(ri,!!i)},"^events.(render|show|move|hide|focus|blur)$":function(n,t,i){this.rendered&&this.tooltip[(r.isFunction(i)?"":"un")+"bind"]("tooltip"+t,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var n=this.options.position;this.tooltip.attr("tracking","mouse"===n.target&&n.adjust.mouse);this._unassignEvents();this._assignEvents()}}}};e.get=function(n){if(this.destroyed)return this;var i=hi(this.options,n.toLowerCase()),t=i[0][i[1]];return t.precedance?t.string():t};wi=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i;bi=/^prerender|show\.ready/i;e.set=function(n,t){if(this.destroyed)return this;var o,h=this.rendered,i=u,e=this.options;return this.checks,"string"==typeof n?(o=n,n={},n[o]=t):n=r.extend({},n),r.each(n,function(t,u){if(h&&bi.test(t))return void delete n[t];var o,f=hi(e,t.toLowerCase());o=f[0][f[1]];f[0][f[1]]=u&&u.nodeType?r(u):u;i=wi.test(t)||i;n[t]=[f[0],f[1],u,o]}),at(e),this.positioning=f,r.each(n,r.proxy(nr,this)),this.positioning=u,this.rendered&&this.tooltip[0].offsetWidth>0&&i&&this.reposition("mouse"===e.position.target?s:this.cache.event),this};e._update=function(n,t){var i=this,e=this.cache;return this.rendered&&n?(r.isFunction(n)&&(n=n.call(this.elements.target,e.event,this)||""),r.isFunction(n.then)?(e.waiting=f,n.then(function(n){return e.waiting=u,i._update(n,t)},s,function(n){return i._update(n,t)})):n===u||!n&&""!==n?u:(n.jquery&&n.length>0?t.empty().append(n.css({display:"block",visibility:"visible"})):t.html(n),this._waitForContent(t).then(function(n){i.rendered&&i.tooltip[0].offsetWidth>0&&i.reposition(e.event,!n.length)}))):u};e._waitForContent=function(n){var t=this.cache;return t.waiting=f,(r.fn.imagesLoaded?n.imagesLoaded():r.Deferred().resolve([])).done(function(){t.waiting=u}).promise()};e._updateContent=function(n,t){this._update(n,this.elements.content,t)};e._updateTitle=function(n,t){this._update(n,this.elements.title,t)===u&&this._removeTitle(u)};e._createTitle=function(){var n=this.elements,t=this._id+"-title";n.titlebar&&this._removeTitle();n.titlebar=r("<div />",{"class":o+"-titlebar "+(this.options.style.widget?vt("header"):"")}).append(n.title=r("<div />",{id:t,"class":o+"-title","aria-atomic":f})).insertBefore(n.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(n){r(this).toggleClass("ui-state-active ui-state-focus","down"===n.type.substr(-4))}).delegate(".qtip-close","mouseover mouseout",function(n){r(this).toggleClass("ui-state-hover","mouseover"===n.type)});this.options.content.button&&this._createButton()};e._removeTitle=function(n){var t=this.elements;t.title&&(t.titlebar.remove(),t.titlebar=t.title=t.button=s,n!==u&&this.reposition())};e._createPosClass=function(n){return o+"-pos-"+(n||this.options.position.my).abbrev()};e.reposition=function(i,e){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=f;var a,v,ut,at,c=this.cache,d=this.tooltip,p=this.options.position,o=p.target,et=p.my,nt=p.at,ot=p.viewport,ht=p.container,ft=p.adjust,vt=ft.method.split(" "),ct=d.outerWidth(u),lt=d.outerHeight(u),tt=0,it=0,yt=d.css("position"),s={left:0,top:0},wt=d[0].offsetWidth>0,bt=i&&"scroll"===i.type,st=r(n),pt=ht[0].ownerDocument,rt=this.mouse;if(r.isArray(o)&&2===o.length)nt={x:w,y:b},s={left:o[0],top:o[1]};else if("mouse"===o)nt={x:w,y:b},(!ft.mouse||this.options.hide.distance)&&c.origin&&c.origin.pageX?i=c.origin:!i||i&&("resize"===i.type||"scroll"===i.type)?i=c.event:rt&&rt.pageX&&(i=rt),"static"!==yt&&(s=ht.offset()),pt.body.offsetWidth!==(n.innerWidth||pt.documentElement.clientWidth)&&(v=r(t.body).offset()),s={left:i.pageX-s.left+(v&&v.left||0),top:i.pageY-s.top+(v&&v.top||0)},ft.mouse&&bt&&rt&&(s.left-=(rt.scrollX||0)-st.scrollLeft(),s.top-=(rt.scrollY||0)-st.scrollTop());else{if("event"===o?i&&i.target&&"scroll"!==i.type&&"resize"!==i.type?c.target=r(i.target):i.target||(c.target=this.elements.target):"event"!==o&&(c.target=r(o.jquery?o:this.elements.target)),o=c.target,o=r(o).eq(0),0===o.length)return this;o[0]===t||o[0]===n?(tt=y.iOS?n.innerWidth:o.width(),it=y.iOS?n.innerHeight:o.height(),o[0]===n&&(s={top:(ot||o).scrollTop(),left:(ot||o).scrollLeft()})):h.imagemap&&o.is("area")?a=h.imagemap(this,o,nt,h.viewport?vt:u):h.svg&&o&&o[0].ownerSVGElement?a=h.svg(this,o,nt,h.viewport?vt:u):(tt=o.outerWidth(u),it=o.outerHeight(u),s=o.offset());a&&(tt=a.width,it=a.height,v=a.offset,s=a.position);s=this.reposition.offset(o,s,ht);(y.iOS>3.1&&y.iOS<4.1||y.iOS>=4.3&&y.iOS<4.33||!y.iOS&&"fixed"===yt)&&(s.left-=st.scrollLeft(),s.top-=st.scrollTop());(!a||a&&a.adjustable!==u)&&(s.left+=nt.x===k?tt:nt.x===l?tt/2:0,s.top+=nt.y===g?it:nt.y===l?it/2:0)}return s.left+=ft.x+(et.x===k?-ct:et.x===l?-ct/2:0),s.top+=ft.y+(et.y===g?-lt:et.y===l?-lt/2:0),h.viewport?(ut=s.adjusted=h.viewport(this,s,p,tt,it,ct,lt),v&&ut.left&&(s.left+=v.left),v&&ut.top&&(s.top+=v.top),ut.my&&(this.position.my=ut.my)):s.adjusted={left:0,top:0},c.posClass!==(at=this._createPosClass(this.position.my))&&d.removeClass(c.posClass).addClass(c.posClass=at),this._trigger("move",[s,ot.elem||ot],i)?(delete s.adjusted,e===u||!wt||isNaN(s.left)||isNaN(s.top)||"mouse"===o||!r.isFunction(p.effect)?d.css(s):r.isFunction(p.effect)&&(p.effect.call(d,this,r.extend({},s)),d.queue(function(n){r(this).css({opacity:"",height:""});y.ie&&this.style.removeAttribute("filter");n()})),this.positioning=u,this):this};e.reposition.offset=function(n,i,u){function s(n,t){i.left+=t*n.scrollLeft();i.top+=t*n.scrollTop()}if(!u[0])return i;var o,h,e,c,l=r(n[0].ownerDocument),a=!!y.ie&&"CSS1Compat"!==t.compatMode,f=u[0];do"static"!==(h=r.css(f,"position"))&&("fixed"===h?(e=f.getBoundingClientRect(),s(l,-1)):(e=r(f).position(),e.left+=parseFloat(r.css(f,"borderLeftWidth"))||0,e.top+=parseFloat(r.css(f,"borderTopWidth"))||0),i.left-=e.left+(parseFloat(r.css(f,"marginLeft"))||0),i.top-=e.top+(parseFloat(r.css(f,"marginTop"))||0),o||"hidden"===(c=r.css(f,"overflow"))||"visible"===c||(o=r(f)));while(f=f.offsetParent);return o&&(o[0]!==l[0]||a)&&s(o,1),i};ct=(d=e.reposition.Corner=function(n,t){n=(""+n).replace(/([A-Z])/," $1").replace(/middle/gi,l).toLowerCase();this.x=(n.match(/left|right/i)||n.match(/center/)||["inherit"])[0].toLowerCase();this.y=(n.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.forceY=!!t;var i=n.charAt(0);this.precedance="t"===i||"b"===i?v:p}).prototype;ct.invert=function(n,t){this[n]=this[n]===w?k:this[n]===k?w:t||this[n]};ct.string=function(n){var t=this.x,i=this.y,r=t!==i?"center"===t||"center"!==i&&(this.precedance===v||this.forceY)?[i,t]:[t,i]:[t];return n!==!1?r.join(" "):r};ct.abbrev=function(){var n=this.string(!1);return n[0].charAt(0)+(n[1]&&n[1].charAt(0)||"")};ct.clone=function(){return new d(this.string(),this.forceY)};e.toggle=function(n,i){var c=this.cache,b=this.options,e=this.tooltip;if(i){if(/over|enter/.test(i.type)&&c.event&&/out|leave/.test(c.event.type)&&b.show.target.add(i.target).length===b.show.target.length&&e.has(i.relatedTarget).length)return this;c.event=r.event.fix(i)}if(this.waiting&&!n&&(this.hiddenDuringWait=f),!this.rendered)return n?this.render(1):this;if(this.destroyed||this.disabled)return this;var v,p,l,w=n?"show":"hide",h=this.options[w],k=(this.options[n?"hide":"show"],this.options.position),a=this.options.content,d=this.tooltip.css("width"),g=this.tooltip.is(":visible"),nt=n||1===h.target.length,tt=!i||h.target.length<2||c.target[0]===i.target;return(typeof n).search("boolean|number")&&(n=!g),v=!e.is(":animated")&&g===n&&tt,p=v?s:!!this._trigger(w,[90]),this.destroyed?this:(p!==u&&n&&this.focus(i),!p||v?this:(r.attr(e[0],"aria-hidden",!n),n?(this.mouse&&(c.origin=r.event.fix(this.mouse)),r.isFunction(a.text)&&this._updateContent(a.text,u),r.isFunction(a.title)&&this._updateTitle(a.title,u),!pt&&"mouse"===k.target&&k.adjust.mouse&&(r(t).bind("mousemove."+o,this._storeMouse),pt=f),d||e.css("width",e.outerWidth(u)),this.reposition(i,arguments[2]),d||e.css("width",""),h.solo&&("string"==typeof h.solo?r(h.solo):r(ut,h.solo)).not(e).not(h.target).qtip("hide",r.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete c.origin,pt&&!r(ut+'[tracking="true"]:visible',h.solo).not(e).length&&(r(t).unbind("mousemove."+o),pt=u),this.blur(i)),l=r.proxy(function(){n?(y.ie&&e[0].style.removeAttribute("filter"),e.css("overflow",""),"string"==typeof h.autofocus&&r(this.options.show.autofocus,e).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):e.css({display:"",visibility:"",opacity:"",left:"",top:""});this._trigger(n?"visible":"hidden")},this),h.effect===u||nt===u?(e[w](),l()):r.isFunction(h.effect)?(e.stop(1,1),h.effect.call(e,this),e.queue("fx",function(n){l();n()})):e.fadeTo(90,n?1:0,l),n&&h.target.trigger("qtip-"+this.id+"-inactive"),this))};e.show=function(n){return this.toggle(f,n)};e.hide=function(n){return this.toggle(u,n)};e.focus=function(n){if(!this.rendered||this.destroyed)return this;var t=r(ut),i=this.tooltip,f=parseInt(i[0].style.zIndex,10),u=c.zindex+t.length;return i.hasClass(bt)||this._trigger("focus",[u],n)&&(f!==u&&(t.each(function(){this.style.zIndex>f&&(this.style.zIndex=this.style.zIndex-1)}),t.filter("."+bt).qtip("blur",n)),i.addClass(bt)[0].style.zIndex=u),this};e.blur=function(n){return!this.rendered||this.destroyed?this:(this.tooltip.removeClass(bt),this._trigger("blur",[this.tooltip.css("zIndex")],n),this)};e.disable=function(n){return this.destroyed?this:("toggle"===n?n=!(this.rendered?this.tooltip.hasClass(a):this.disabled):"boolean"!=typeof n&&(n=f),this.rendered&&this.tooltip.toggleClass(a,n).attr("aria-disabled",n),this.disabled=!!n,this)};e.enable=function(){return this.disable(u)};e._createButton=function(){var e=this,n=this.elements,i=n.tooltip,t=this.options.content.button,s="string"==typeof t,f=s?t:"Close tooltip";n.button&&n.button.remove();n.button=t.jquery?t:r("<a />",{"class":"qtip-close "+(this.options.style.widget?"":o+"-icon"),title:f,"aria-label":f}).prepend(r("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"}));n.button.appendTo(n.titlebar||i).attr("role","button").click(function(n){return i.hasClass(a)||e.hide(n),u})};e._updateButton=function(n){if(!this.rendered)return u;var t=this.elements.button;n?this._createButton():t.remove()};e._setWidget=function(){var t=this.options.style.widget,n=this.elements,i=n.tooltip,r=i.hasClass(a);i.removeClass(a);a=t?"ui-state-disabled":"qtip-disabled";i.toggleClass(a,r);i.toggleClass("ui-helper-reset "+vt(),t).toggleClass(ri,this.options.style.def&&!t);n.content&&n.content.toggleClass(vt("content"),t);n.titlebar&&n.titlebar.toggleClass(vt("header"),t);n.button&&n.button.toggleClass(o+"-icon",!t)};e._storeMouse=function(n){return(this.mouse=r.event.fix(n)).type="mousemove",this};e._bind=function(n,t,i,u,f){if(n&&i&&t.length){var e="."+this._id+(u?"-"+u:"");return r(n).bind((t.split?t:t.join(e+" "))+e,r.proxy(i,f||this)),this}};e._unbind=function(n,t){return n&&r(n).unbind("."+this._id+(t?"-"+t:"")),this};e._trigger=function(n,t,i){var f=r.Event("tooltip"+n);return f.originalEvent=i&&r.extend({},i)||this.cache.event||s,this.triggering=n,this.tooltip.trigger(f,[this].concat(t||[])),this.triggering=u,!f.isDefaultPrevented()};e._bindEvents=function(n,t,i,u,f,e){var o=i.filter(u).add(u.filter(i)),s=[];o.length&&(r.each(t,function(t,i){var u=r.inArray(i,n);u>-1&&s.push(n.splice(u,1)[0])}),s.length&&(this._bind(o,s,function(n){var t=this.rendered?this.tooltip[0].offsetWidth>0:!1;(t?e:f).call(this,n)}),i=i.not(o),u=u.not(o)));this._bind(i,n,f);this._bind(u,t,e)};e._assignInitialEvents=function(n){function i(n){return this.disabled||this.destroyed?u:(this.cache.event=n&&r.event.fix(n),this.cache.target=n&&r(n.target),clearTimeout(this.timers.show),void(this.timers.show=yt.call(this,function(){this.render("object"==typeof n||t.show.ready)},t.prerender?0:t.show.delay)))}var t=this.options,e=t.show.target,s=t.hide.target,h=t.show.event?r.trim(""+t.show.event).split(" "):[],o=t.hide.event?r.trim(""+t.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy");/mouse(over|enter)/i.test(t.show.event)&&!/mouse(out|leave)/i.test(t.hide.event)&&o.push("mouseleave");this._bind(e,"mousemove",function(n){this._storeMouse(n);this.cache.onTarget=f});this._bindEvents(h,o,e,s,i,function(){return this.timers?void clearTimeout(this.timers.show):u});(t.show.ready||t.prerender)&&i.call(this,n)};e._assignEvents=function(){var y=this,i=this.options,f=i.position,e=this.tooltip,s=i.show.target,o=i.hide.target,p=f.container,h=f.viewport,l=r(t),v=(r(t.body),r(n)),w=i.show.event?r.trim(""+i.show.event).split(" "):[],b=i.hide.event?r.trim(""+i.hide.event).split(" "):[];r.each(i.events,function(n,t){y._bind(e,"toggle"===n?["tooltipshow","tooltiphide"]:["tooltip"+n],t,null,e)});/mouse(out|leave)/i.test(i.hide.event)&&"window"===i.hide.leave&&this._bind(l,["mouseout","blur"],function(n){/select|option/.test(n.target.nodeName)||n.relatedTarget||this.hide(n)});i.hide.fixed?o=o.add(e.addClass(pi)):/mouse(over|enter)/i.test(i.show.event)&&this._bind(o,"mouseleave",function(){clearTimeout(this.timers.show)});(""+i.hide.event).indexOf("unfocus")>-1&&this._bind(p.closest("html"),["mousedown","touchstart"],function(n){var t=r(n.target),i=this.rendered&&!this.tooltip.hasClass(a)&&this.tooltip[0].offsetWidth>0,u=t.parents(ut).filter(this.tooltip[0]).length>0;t[0]===this.target[0]||t[0]===this.tooltip[0]||u||this.target.has(t[0]).length||!i||this.hide(n)});"number"==typeof i.hide.inactive&&(this._bind(s,"qtip-"+this.id+"-inactive",ni,"inactive"),this._bind(o.add(e),c.inactiveEvents,ni));this._bindEvents(w,b,s,o,tr,ir);this._bind(s.add(e),"mousemove",function(n){if("number"==typeof i.hide.distance){var t=this.cache.origin||{},r=this.options.hide.distance,u=Math.abs;(u(n.pageX-t.pageX)>=r||u(n.pageY-t.pageY)>=r)&&this.hide(n)}this._storeMouse(n)});"mouse"===f.target&&f.adjust.mouse&&(i.hide.event&&this._bind(s,["mouseenter","mouseleave"],function(n){return this.cache?void(this.cache.onTarget="mouseenter"===n.type):u}),this._bind(l,"mousemove",function(n){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(a)&&this.tooltip[0].offsetWidth>0&&this.reposition(n)}));(f.adjust.resize||h.length)&&this._bind(r.event.special.resize?h:v,"resize",ci);f.adjust.scroll&&this._bind(v.add(f.container),"scroll",ci)};e._unassignEvents=function(){var u=this.options,f=u.show.target,e=u.hide.target,i=r.grep([this.elements.target[0],this.rendered&&this.tooltip[0],u.position.container[0],u.position.viewport[0],u.position.container.closest("html")[0],n,t],function(n){return"object"==typeof n});f&&f.toArray&&(i=i.concat(f.toArray()));e&&e.toArray&&(i=i.concat(e.toArray()));this._unbind(i)._unbind(i,"destroy")._unbind(i,"inactive")};r(function(){li(ut,["mouseenter","mouseleave"],function(n){var u="mouseenter"===n.type,i=r(n.currentTarget),f=r(n.relatedTarget||n.target),t=this.options;u?(this.focus(n),i.hasClass(pi)&&!i.hasClass(a)&&clearTimeout(this.timers.hide)):"mouse"===t.position.target&&t.position.adjust.mouse&&t.hide.event&&t.show.target&&!f.closest(t.show.target[0]).length&&this.hide(n);i.toggleClass(or,u)});li("["+wt+"]",yi,ni)});c=r.fn.qtip=function(n,t,e){var a=(""+n).toLowerCase(),y=s,p=r.makeArray(arguments).slice(1),v=p[p.length-1],l=this[0]?r.data(this[0],o):s;return!arguments.length&&l||"api"===a?l:"string"==typeof n?(this.each(function(){var n=r.data(this,o);if(!n)return f;if(v&&v.timeStamp&&(n.cache.event=v),t&&("option"===a||"options"===a)){if(e===i&&!r.isPlainObject(t))return y=n.get(t),u;n.set(t,e)}else n[a]&&n[a].apply(n,p)}),y!==s?y:this):"object"!=typeof n&&arguments.length?void 0:(l=at(r.extend(f,{},n)),this.each(function(n){var i,t;return t=r.isArray(l.id)?l.id[n]:l.id,t=!t||t===u||t.length<1||c.api[t]?c.nextid++:t,i=rr(r(this),t,l),i===u?f:(c.api[t]=i,r.each(h,function(){"initialize"===this.initialize&&this(i)}),void i._assignInitialEvents(v))}))};r.qtip=gt;c.api={};r.each({attr:function(n,t){if(this.length){var u=this[0],f="title",i=r.data(u,"qtip");if(n===f&&i&&"object"==typeof i&&i.options.suppress)return arguments.length<2?r.attr(u,nt):(i&&i.options.content.attr===f&&i.cache.attr&&i.set("content.text",t),this.attr(nt,t))}return r.fn["attr"+ft].apply(this,arguments)},clone:function(n){var t=(r([]),r.fn["clone"+ft].apply(this,arguments));return n||t.filter("["+nt+"]").attr("title",function(){return r.attr(this,nt)}).removeAttr(nt),t}},function(n,t){if(!t||r.fn[n+ft])return f;var i=r.fn[n+ft]=r.fn[n];r.fn[n]=function(){return t.apply(this,arguments)||i.apply(this,arguments)}});r.ui||(r["cleanData"+ft]=r.cleanData,r.cleanData=function(n){for(var t,i=0;(t=r(n[i])).length;i++)if(t.attr(ii))try{t.triggerHandler("removeqtip")}catch(u){}r["cleanData"+ft].apply(this,arguments)});c.version="2.2.1";c.nextid=0;c.inactiveEvents=yi;c.zindex=15e3;c.defaults={prerender:u,id:u,overwrite:f,suppress:f,content:{text:f,attr:"title",title:u,button:u},position:{my:"top left",at:"bottom right",target:u,container:u,viewport:u,adjust:{x:0,y:0,mouse:f,scroll:f,resize:f,method:"flipinvert flipinvert"},effect:function(n,t){r(this).animate(t,{duration:200,queue:u})}},show:{target:u,event:"mouseenter",effect:f,delay:90,solo:u,ready:u,autofocus:u},hide:{target:u,event:"mouseleave",effect:f,delay:0,fixed:u,inactive:u,leave:"window",distance:u},style:{classes:"",widget:u,width:u,height:u,def:f},events:{render:s,move:s,show:s,hide:s,toggle:s,visible:s,hidden:s,focus:s,blur:s}};var ui,fi="margin",kt="border",lt="color",et="background-color",ki="transparent",di=" !important",dt=!!t.createElement("canvas").getContext,gi=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,ei={},sr=["Webkit","O","Moz","ms"];if(dt)var hr=n.devicePixelRatio||1,cr=function(){var n=t.createElement("canvas").getContext("2d");return n.backingStorePixelRatio||n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||1}(),ot=hr/cr;else oi=function(n,t,i){return"<qtipvml:"+n+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(t||"")+' style="behavior: url(#default#VML); '+(i||"")+'" />'};r.extend(ai.prototype,{init:function(n){var t,i;i=this.element=n.elements.tip=r("<div />",{"class":o+"-tip"}).prependTo(n.tooltip);dt?(t=r("<canvas />").appendTo(this.element)[0].getContext("2d"),t.lineJoin="miter",t.miterLimit=1e5,t.save()):(t=oi("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(t+t),n._bind(r("*",i).add(i),["click","mousedown"],function(n){n.stopPropagation()},this._ns));n._bind(n.tooltip,"tooltipmove",this.reposition,this._ns,this);this.create()},_swapDimensions:function(){this.size[0]=this.options.height;this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width;this.size[1]=this.options.height},_useTitle:function(n){var t=this.qtip.elements.titlebar;return t&&(n.y===b||n.y===l&&this.element.position().top+this.size[1]/2+this.options.offset<t.outerHeight(f))},_parseCorner:function(n){var t=this.qtip.options.position.my;return n===u||t===u?n=u:n===f?n=new d(t.string()):n.string||(n=new d(n),n.fixed=f),n},_parseWidth:function(n,t,i){var r=this.qtip.elements,u=kt+st(t)+"Width";return(i?rt(i,u):rt(r.content,u)||rt(this._useTitle(n)&&r.titlebar||r.content,u)||rt(r.tooltip,u))||0},_parseRadius:function(n){var t=this.qtip.elements,i=kt+st(n.y)+st(n.x)+"Radius";return y.ie<9?0:rt(this._useTitle(n)&&t.titlebar||t.content,i)||rt(t.tooltip,i)||0},_invalidColour:function(n,t,i){var r=n.css(t);return!r||i&&r===n.css(i)||gi.test(r)?u:r},_parseColours:function(n){var i=this.qtip.elements,u=this.element.css("cssText",""),f=kt+st(n[n.precedance])+st(lt),o=this._useTitle(n)&&i.titlebar||i.content,t=this._invalidColour,e=[];return e[0]=t(u,et)||t(o,et)||t(i.content,et)||t(i.tooltip,et)||u.css(et),e[1]=t(u,f,lt)||t(o,f,lt)||t(i.content,f,lt)||t(i.tooltip,f,lt)||i.tooltip.css(f),r("*",u).add(u).css("cssText",et+":"+ki+di+";"+kt+":0"+di+";"),e},_calculateSize:function(n){var o,f,e,s=n.precedance===v,h=this.options.width,r=this.options.height,c="c"===n.abbrev(),l=(s?h:r)*(c?.5:1),i=Math.pow,a=Math.round,u=Math.sqrt(i(l,2)+i(r,2)),t=[this.border/l*u,this.border/r*u];return t[2]=Math.sqrt(i(t[0],2)-i(this.border,2)),t[3]=Math.sqrt(i(t[1],2)-i(this.border,2)),o=u+t[2]+t[3]+(c?0:t[0]),f=o/u,e=[a(f*h),a(f*r)],s?e:e.reverse()},_calculateTip:function(n,t,i){i=i||1;t=t||this.size;var r=t[0]*i,u=t[1]*i,e=Math.ceil(r/2),o=Math.ceil(u/2),f={br:[0,0,r,u,r,0],bl:[0,0,r,0,0,u],tr:[0,u,r,0,r,u],tl:[0,0,0,u,r,u],tc:[0,u,e,0,r,u],bc:[0,0,r,0,e,u],rc:[0,0,r,o,0,u],lc:[r,0,r,u,0,o]};return f.lt=f.br,f.rt=f.bl,f.lb=f.tr,f.rb=f.tl,f[n.abbrev()]},_drawCoords:function(n,t){n.beginPath();n.moveTo(t[0],t[1]);n.lineTo(t[2],t[3]);n.lineTo(t[4],t[5]);n.closePath()},create:function(){var n=this.corner=(dt||y.ie)&&this._parseCorner(this.options.corner);return(this.enabled=!!this.corner&&"c"!==this.corner.abbrev())&&(this.qtip.cache.corner=n.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(t,i){if(!this.enabled)return this;var a,ft,h,c,et,nt,o,s,ct=this.qtip.elements,st=this.element,it=st.children(),rt=this.options,tt=this.size,e=rt.mimic,ut=Math.round;t||(t=this.qtip.cache.corner||this.corner);e===u?e=t:(e=new d(e),e.precedance=t.precedance,"inherit"===e.x?e.x=t.x:"inherit"===e.y?e.y=t.y:e.x===e.y&&(e[t.precedance]=t[t.precedance]));ft=e.precedance;t.precedance===p?this._swapDimensions():this._resetDimensions();a=this.color=this._parseColours(t);a[1]!==ki?(s=this.border=this._parseWidth(t,t[t.precedance]),rt.border&&1>s&&!gi.test(a[1])&&(a[0]=a[1]),this.border=s=rt.border!==f?rt.border:s):this.border=s=0;o=this.size=this._calculateSize(t);st.css({width:o[0],height:o[1],lineHeight:o[1]+"px"});nt=t.precedance===v?[ut(e.x===w?s:e.x===k?o[0]-tt[0]-s:(o[0]-tt[0])/2),ut(e.y===b?o[1]-tt[1]:0)]:[ut(e.x===w?o[0]-tt[0]:0),ut(e.y===b?s:e.y===g?o[1]-tt[1]-s:(o[1]-tt[1])/2)];dt?(h=it[0].getContext("2d"),h.restore(),h.save(),h.clearRect(0,0,6e3,6e3),c=this._calculateTip(e,tt,ot),et=this._calculateTip(e,this.size,ot),it.attr(ht,o[0]*ot).attr(ti,o[1]*ot),it.css(ht,o[0]).css(ti,o[1]),this._drawCoords(h,et),h.fillStyle=a[1],h.fill(),h.translate(nt[0]*ot,nt[1]*ot),this._drawCoords(h,c),h.fillStyle=a[0],h.fill()):(c=this._calculateTip(e),c="m"+c[0]+","+c[1]+" l"+c[2]+","+c[3]+" "+c[4]+","+c[5]+" xe",nt[2]=s&&/^(r|b)/i.test(t.string())?8===y.ie?2:1:0,it.css({coordsize:o[0]+s+" "+(o[1]+s),antialias:""+(e.string().indexOf(l)>-1),left:nt[0]-nt[2]*Number(ft===p),top:nt[1]-nt[2]*Number(ft===v),width:o[0]+s,height:o[1]+s}).each(function(n){var t=r(this);t[t.prop?"prop":"attr"]({coordsize:o[0]+s+" "+(o[1]+s),path:c,fillcolor:a[0],filled:!!n,stroked:!n}).toggle(!(!s&&!n));n||t.html(oi("stroke",'weight="'+2*s+'px" color="'+a[1]+'" miterlimit="1000" joinstyle="miter"'))}));n.opera&&setTimeout(function(){ct.tip.css({display:"inline-block",visibility:"visible"})},1);i!==u&&this.calculate(t,o)},calculate:function(n,t){if(!this.enabled)return u;var i,o,e=this,s=this.qtip.elements,c=this.element,h=this.options.offset,f=(s.tooltip.hasClass("ui-widget"),{});return n=n||this.corner,i=n.precedance,t=t||this._calculateSize(n),o=[n.x,n.y],i===p&&o.reverse(),r.each(o,function(r,u){var o,a,c;u===l?(o=i===v?w:b,f[o]="50%",f[fi+"-"+o]=-Math.round(t[i===v?0:1]/2)+h):(o=e._parseWidth(n,u,s.tooltip),a=e._parseWidth(n,u,s.content),c=e._parseRadius(n),f[u]=Math.max(-e.border,r?a:h+(c>o?c:-o)))}),f[n[i]]-=t[i===p?0:1],c.css({margin:"",top:"",bottom:"",left:"",right:""}).css(f),f},reposition:function(n,t,r){function rt(n,t,i,r,u){n===it&&s.precedance===t&&h[r]&&s[i]!==l?s.precedance=s.precedance===p?v:p:n!==it&&h[r]&&(s[t]=s[t]===l?h[r]>0?r:u:s[t]===r?u:r)}function ut(n,t,f){s[n]===l?tt[fi+"-"+t]=o[n]=e[fi+"-"+t]-h[t]:(a=e[f]!==i?[h[t],-e[t]]:[-h[t],e[t]],(o[n]=Math.max(a[0],a[1]))>a[0]&&(r[t]-=h[t],o[t]=u),tt[e[f]!==i?f:t]=o[n])}if(this.enabled){var e,a,c=t.cache,s=this.corner.clone(),h=r.adjusted,y=t.options.position.adjust.method.split(" "),d=y[0],nt=y[1]||y[0],o={left:u,top:u,x:0,y:0},tt={};this.corner.fixed!==f&&(rt(d,p,v,w,k),rt(nt,v,p,b,g),(s.string()!==c.corner.string()||c.cornerTop!==h.top||c.cornerLeft!==h.left)&&this.update(s,u));e=this.calculate(s);e.right!==i&&(e.left=-e.right);e.bottom!==i&&(e.top=-e.bottom);e.user=this.offset;(o.left=d===it&&!!h.left)&&ut(p,w,k);(o.top=nt===it&&!!h.top)&&ut(v,b,g);this.element.css(tt).toggle(!(o.x&&o.y||s.x===l&&o.y||s.y===l&&o.x));r.left-=e.left.charAt?e.user:d!==it||o.top||!o.left&&!o.top?e.left+this.border:0;r.top-=e.top.charAt?e.user:nt!==it||o.left||!o.left&&!o.top?e.top+this.border:0;c.cornerLeft=h.left;c.cornerTop=h.top;c.corner=s.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns);this.qtip.elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}});ui=h.tip=function(n){return new ai(n,n.options.style.tip)};ui.initialize="render";ui.sanitize=function(n){if(n.style&&"tip"in n.style){var t=n.style.tip;"object"!=typeof t&&(t=n.style.tip={corner:t});/string|boolean/i.test(typeof t.corner)||(t.corner=f)}};vi.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create();this.qtip.reposition()},"^style.tip.(height|width)$":function(n){this.size=[n.width,n.height];this.update();this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}};r.extend(f,c.defaults,{style:{tip:{corner:f,mimic:u,width:6,height:6,border:f,offset:0}}});h.viewport=function(i,r,f,e,o,s,h){function at(n,t,i,u,f,e,o,s,h){var v=r[f],c=y[n],k=bt[n],rt=i===it,g=c===f?h:c===e?-h:-h/2,ut=k===f?s:k===e?-s:-s/2,tt=ot[f]+nt[f]-(vt?0:d[f]),b=tt-v,w=v+h-(o===ht?ft:et)-tt,p=g-(y.precedance===n||c===y[t]?ut:0)-(k===l?s/2:0);return rt?(p=(c===f?1:-1)*g,r[f]+=b>0?b:w>0?-w:0,r[f]=Math.max(-d[f]+nt[f],v-p,Math.min(Math.max(-d[f]+nt[f]+(o===ht?ft:et),v+p),r[f],"center"===c?v-g:1e9))):(u*=i===fr?2:0,b>0&&(c!==f||w>0)?(r[f]-=p+u,a.invert(n,f)):w>0&&(c!==e||b>0)&&(r[f]-=(c===l?-p:p)+u,a.invert(n,e)),r[f]<ot&&-r[f]>w&&(r[f]=v,a=y.clone())),r[f]-v}var ut,a,d,vt,ft,et,ot,nt,yt=f.target,wt=i.elements.tooltip,y=f.my,bt=f.at,tt=f.adjust,st=tt.method.split(" "),ct=st[0],lt=st[1]||st[0],c=f.viewport,pt=f.container,rt=(i.cache,{left:0,top:0});return c.jquery&&yt[0]!==n&&yt[0]!==t.body&&"none"!==tt.method?(d=pt.offset()||rt,vt="static"===pt.css("position"),ut="fixed"===wt.css("position"),ft=c[0]===n?c.width():c.outerWidth(u),et=c[0]===n?c.height():c.outerHeight(u),ot={left:ut?0:c.scrollLeft(),top:ut?0:c.scrollTop()},nt=c.offset()||rt,("shift"!==ct||"shift"!==lt)&&(a=y.clone()),rt={left:"none"!==ct?at(p,v,ct,tt.x,w,k,ht,e,s):0,top:"none"!==lt?at(v,p,lt,tt.y,b,g,ti,o,h):0,my:a}):rt};h.polys={polygon:function(n,t){for(var r,h,c,i={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:u},f=0,e=[],o=1,s=1,a=0,v=0,f=n.length;f--;)r=[parseInt(n[--f],10),parseInt(n[f+1],10)],r[0]>i.position.right&&(i.position.right=r[0]),r[0]<i.position.left&&(i.position.left=r[0]),r[1]>i.position.bottom&&(i.position.bottom=r[1]),r[1]<i.position.top&&(i.position.top=r[1]),e.push(r);if(h=i.width=Math.abs(i.position.right-i.position.left),c=i.height=Math.abs(i.position.bottom-i.position.top),"c"===t.abbrev())i.position={left:i.position.left+i.width/2,top:i.position.top+i.height/2};else{for(;h>0&&c>0&&o>0&&s>0;)for(h=Math.floor(h/2),c=Math.floor(c/2),t.x===w?o=h:t.x===k?o=i.width-h:o+=Math.floor(h/2),t.y===b?s=c:t.y===g?s=i.height-c:s+=Math.floor(c/2),f=e.length;f--&&!(e.length<2);)a=e[f][0]-i.position.left,v=e[f][1]-i.position.top,(t.x===w&&a>=o||t.x===k&&o>=a||t.x===l&&(o>a||a>i.width-o)||t.y===b&&v>=s||t.y===g&&s>=v||t.y===l&&(s>v||v>i.height-s))&&e.splice(f,1);i.position={left:e[0][0],top:e[0][1]}}return i},rect:function(n,t,i,r){return{width:Math.abs(i-n),height:Math.abs(r-t),position:{left:Math.min(n,i),top:Math.min(t,r)}}},_angles:{tc:1.5,tr:7/4,tl:5/4,bc:.5,br:.25,bl:.75,rc:2,lc:1,c:0},ellipse:function(n,t,i,r,f){var e=h.polys._angles[f.abbrev()],o=0===e?0:i*Math.cos(e*Math.PI),s=r*Math.sin(e*Math.PI);return{width:2*i-Math.abs(o),height:2*r-Math.abs(s),position:{left:n+o,top:t+s},adjustable:u}},circle:function(n,t,i,r){return h.polys.ellipse(n,t,i,i,r)}};h.svg=function(n,i,f){for(var a,b,p,k,w,v,s,o,c,e=(r(t),i[0]),y=r(e.ownerSVGElement),l=e.ownerDocument,d=(parseInt(i.css("stroke-width"),10)||0)/2;!e.getBBox;)e=e.parentNode;if(!e.getBBox||!e.parentNode)return u;switch(e.nodeName){case"ellipse":case"circle":o=h.polys.ellipse(e.cx.baseVal.value,e.cy.baseVal.value,(e.rx||e.r).baseVal.value+d,(e.ry||e.r).baseVal.value+d,f);break;case"line":case"polygon":case"polyline":for(s=e.points||[{x:e.x1.baseVal.value,y:e.y1.baseVal.value},{x:e.x2.baseVal.value,y:e.y2.baseVal.value}],o=[],v=-1,k=s.numberOfItems||s.length;++v<k;)w=s.getItem?s.getItem(v):s[v],o.push.apply(o,[w.x,w.y]);o=h.polys.polygon(o,f);break;default:o=e.getBBox();o={width:o.width,height:o.height,position:{left:o.x,top:o.y}}}return c=o.position,y=y[0],y.createSVGPoint&&(b=e.getScreenCTM(),s=y.createSVGPoint(),s.x=c.left,s.y=c.top,p=s.matrixTransform(b),c.left=p.x,c.top=p.y),l!==t&&"mouse"!==n.position.target&&(a=r((l.defaultView||l.parentWindow).frameElement).offset(),a&&(c.left+=a.left,c.top+=a.top)),l=r(l),c.left+=l.scrollLeft(),c.top+=l.scrollTop(),o}})}(window,document),fstq=fstq||{},String.prototype.format=function(){var n=arguments;return this.replace(/\{(\d+)\}/g,function(t,i){return n[i]})},String.prototype.formaterTelephone=function(){var t,f;if(this.length>9){var i=[3,3,4],r="({0})-{1}-{2}",n=["","",""],e=this.slice(0),u=0;for(this.length>10&&(r="{0}-{1}-{2}-{3}",i=[1,3,3,4],n=["","","",""]),t=0;t<i.length;t++)f=i[t],n[t]=e.slice(u,u+f),u+=f;return this.length>10?r.format(n[0],n[1],n[2],n[3]):r.format(n[0],n[1],n[2])}return this},Array.prototype.remove=function(n,t){var i=this.slice((t||n)+1||this.length);return this.length=n<0?this.length+n:n,this.push.apply(this,i)},Number.prototype.toMoney=function(n,t,i){var u=this,e=isNaN(n)?2:Math.abs(n),s=t||",",o=typeof i=="undefined"?".":i,h=u<0?"-":"",f=parseInt(u=Math.abs(u).toFixed(e))+"",r=(r=f.length)>3?r%3:0;return h+(r?f.substr(0,r)+o:"")+f.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+o)+(e?s+Math.abs(u-f).toFixed(e).slice(2):"")},String.prototype.lpad=function(n,t){for(var i=this;i.length<t;)i=n+i;return i},String.prototype.rpad=function(n,t){for(var i=this;i.length<t;)i=i+n;return i},function(n){function o(i){t=n.extend(!0,{},fstq.global.defaults,i);fstq.global.langueSitecore=n("body").attr("data-langue");fstq.global.texteErreurFenetreModale=t.texteErreurFenetreModale;fstq.global.jetonCourriel=t.jetonCourriel;fstq.global.jetonAdhesion=t.jetonAdhesion;fstq.global.regExCourriel=t.regExCourriel;s();e();n("input, textarea").placeholder();n("#boutonRechercheRapide").off("keydown").off("click").on("click",function(t){return t.preventDefault(),t.stopPropagation(),f(n(".recherche .rechercher").val()),!1});n("#rechercheRapide").off("keydown").on("keydown",function(t){t.keyCode=="13"&&(t.preventDefault(),t.stopPropagation(),f(n(this).val()))});n(".bouton-mon-compte-en-ligne").click(function(t){t.preventDefault();n(".ouvrir-session").slideToggle("fast");n(this).toggleClass("active")});n(".ouvrir-session a").mousedown(function(){fstq.googleAnalytics.traquerEvenement({categorie:"Accès au compte",action:n(this).attr("data-ga-action"),label:window.location.href})});n(".btn-ouvrir-session").on("mousedown",function(){fstq.googleAnalytics.traquerEvenement({categorie:"Cotiser",action:"Ouvrir une session",label:n(".ga-action").data("ga-action")})});n("a.ouvrir-parler-conseiller").click(function(n){n.preventDefault();fstq.fenetreModale.formulaireCourrielAppelezMoiMaintenant.ouvrir(t.saisirNAP=="1"?!0:!1,{estRL:t.estRL})});u();fstq.global.initialiserTooltip(n("span.info-bulle, a.info-bulle"))}function s(){var t=n("div#entete"),i=n("div#pied-de-page");n("li.compte-en-ligne",t).hover(function(){n("div#boite-ressources-externe-entete-conteneur",t).show()},function(){n("div#boite-ressources-externe-entete-conteneur",t).hide()});n("li.compte-en-ligne",i).hover(function(){n("div#boite-ressources-externe-pied-de-page-conteneur",i).show()},function(){n("div#boite-ressources-externe-pied-de-page-conteneur",i).hide()})}function u(){n(".contenu-riche a").filter(function(){var t=n(this).attr("href");if(!t)return!1;var r=window.location.hostname,i=t?t.split("/"):null,u=i[0]==="~",f=i[0]==="#",e=t.toLowerCase().indexOf(r)>=0,o=n(this).find("img").length!==0;return t&&!u&&!e&&i&&i[0]!==""&&!f&&!o}).addClass("external").attr("target","_blank")}function h(n){var i,t;if(arguments.length<=1)return n;for(i=arguments.length-2,t=0;t<=i;t++)n=n.replace(new RegExp("\\{"+t+"\\}","gi"),arguments[t+1]);return n}function c(n,t){return l(a(n,t),t)}function l(n,t){return t=t||"\\s",n.replace(new RegExp("^["+t+"]+","g"),"")}function a(n,t){return t=t||"\\s",n.replace(new RegExp("["+t+"]+$","g"),"")}function v(t,i){i&&(t+="?"+n.param(i));window.location.href=t}function y(t,i){i&&(t+="#"+n.param(i));window.location.href=t}function p(){var arguments={},i=window.location.href.indexOf("?")+1==0?!1:!0,t,n;if(i)for(t=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n<t.length;n++)hach=t[n].split("="),arguments[hach[0]]=hach[1];return arguments}function f(n){var i={q:n};y(t.pageRecherche,i)}function w(n,t,i,r){var u=Math.round(screen.width/2)-Math.round(i/2),f=Math.round(screen.height/2)-Math.round(r/2);window.open(n,t,"left="+(u>0?u.toString():"0")+",top="+(f>0?f.toString():"0")+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width="+i+",height="+r)}function e(){n(".target-blank").on("click",function(t){t.preventDefault();window.open(n(this).attr("href"))})}function b(t,u){i=(new Date).getTime()+t*6e4;r||(setInterval(function(){(new Date).getTime()>i&&(n.fieldswatcher.warn("parametres",!1),fstq.global.naviguer(u+"?raison=ExpirationSession"))},1e4),r=!0)}function k(t,i){t.each(function(){var t=n(this).attr("data-infobulle-html")!==undefined&&n(this).attr("data-infobulle-html")!==""?n(n(this).attr("data-infobulle-html")).html():n(this).attr("data-infobulle");n(this).qtip({content:{text:t},style:{classes:"qtip-fonds "+(i!==null&&i!==undefined?i:""),def:!1,tip:{offset:0}},position:{my:"top right",at:"bottom center",target:n(this),adjust:{container:n("window"),method:"shift none"}}})})}var t=null,i=null,r=!1;n(".telephone input[type=number]").keydown(function(t){n.inArray(t.keyCode,[46,8,9,27,13,110])!==-1||t.keyCode==65&&t.ctrlKey===!0||t.keyCode>=35&&t.keyCode<=39||(t.shiftKey||t.keyCode<48||t.keyCode>57)&&(t.keyCode<96||t.keyCode>105)&&t.preventDefault()}).focus(function(){n(this).removeClass("erreur")});var d=function(n){return n>=48&&n<=57||n>=96&&n<=105},g=function(n){switch(n){case 8:case 9:case 13:case 27:case 35:case 36:case 37:case 38:case 39:case 40:case 45:case 46:return!0;default:return!1}},nt=function(n){switch(n){case 67:case 86:case 88:return!0;default:return!1}},tt=function(n){return n.ctrlKey&&nt(n.which)?!0:!1},it=function(n){var t=new RegExp(fstq.global.regExCourriel);return n==""||t.test(n)&&/^.*[A-Za-z0-9].*@/.test(n)};fstq.global=n.extend(fstq.global?fstq.global:{},{defaults:{pageRecherche:null,texteErreurFenetreModale:"",jetonCourriel:""},initialiser:o,format:h,trim:c,recupererArgumentsUrl:p,session:{ajouter:function(t,i){n("body").data(t,i)},recuperer:function(t){return n("body").data(t)}},postback:function(n){__doPostBack(n,"")},naviguer:v,texteErreurFenetreModale:"",calculateurMontantAnnuelMaximum:5001,jetonCourriel:"",jetonAdhesion:"",ouvrirPopup:w,filtrerLienExterne:u,initialiserTarget:e,initialiserTooltip:k,redirigerSurExpirationSession:b,estCaractereNumerique:d,estCaractereNavigation:g,estCopierColler:tt,validerCourriel:it})}(jQuery),docCookies={getItem:function(n){return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setItem:function(n,t,i,r,u,f){if(!n||/^(?:expires|max\-age|path|domain|secure)$/i.test(n))return!1;var e="";if(i)switch(i.constructor){case Number:e=i===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+i;break;case String:e="; expires="+i;break;case Date:e="; expires="+i.toUTCString()}return document.cookie=encodeURIComponent(n)+"="+encodeURIComponent(t)+e+(u?"; domain="+u:"")+(r?"; path="+r:"")+(f?"; secure":""),!0},removeItem:function(n,t,i){return!n||!this.hasItem(n)?!1:(document.cookie=encodeURIComponent(n)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(i?"; domain="+i:"")+(t?"; path="+t:""),!0)},hasItem:function(n){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var n=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=0;t<n.length;t++)n[t]=decodeURIComponent(n[t]);return n}},function(n,t){t.accordeon=t.accordeon||function(){var i=null,r=function(){n(".liste-elements").find(".element-texte").slideUp(800);n(".boite").removeClass("selection");n(".liste-elements").find(".action").removeClass("retrecir").addClass("agrandir")},u=function(){var t=n(this.parentElement),u=t.find(".action");u.hasClass("agrandir")?(r(),u.addClass("retrecir").removeClass("agrandir"),t.find(".boite").addClass("selection"),t.find(".element-texte").slideDown(800,function(){i.apresAffichage&&i.apresAffichage()})):r()};return{defauts:{apresAffichage:null},initialiser:function(r){i=n.extend(!0,{},t.accordeon.defaults,r);n(".boite").on("click",u)}}}()}(jQuery,fstq),function(n){fstq.changementAdresse=fstq.changementAdresse||{defaults:{changementAdresseNouvelleAdresseDateDebut:new Date,traquer:!0,itemIdFormulaire:"",service:"/Service/Outil/Courriel/FormulaireChangementAdresse.ashx",lienPolitiqueConfidentialite:null,messages:{erreur:{telephone1Invalide:"",telephone2Invalide:"",telephone3Invalide:"",courrielInvalide:"",numeroCiviqueInvalide:"",appartementInvalide:"",codePostalInvalide:"",nouveauTelephone1Invalide:"",nouveauTelephone2Invalide:"",nouveauTelephone3Invalide:"",posteTelephoniqueInvalide:"",nouvelleAdresseDateDebutInvalide:"",nomRequis:"",prenomRequis:"",telephone1Requis:"",telephone2Requis:"",telephone3Requis:"",posteTelephoniqueRequis:"",courrielRequis:"",napRequis:"",numeroCiviqueRequis:"",rueRequis:"",villeRequis:"",provinceRequis:"",nouvelleAdresseDateDebutRequis:"",dateInvalide:""}},data:{nom:"",prenom:"",nap:"",telephone1:"",telephone2:"",telephone3:""}},_validations:{validation1:null,parametresCommuns:function(t){return{onkeyup:!1,errorClass:"erreur",success:function(i){n(i).attr({title:""});t.validation1.numberOfInvalids()===0&&n("#changement-adresse-erreurs").hide()},errorPlacement:function(t,i){n(i).attr({title:t.html()})},highlight:function(t,i){n(t).addClass(i)},unhighlight:function(t,i){n(t).removeClass(i)}}}},_enChargement:!1,_initialiserValidation:function(){var t=this.defaults,r=n("div#changement-adresse"),i=this._validations.parametresCommuns(this._validations);this._validations.validation1=n("form").validate(n.extend(!0,{},i,{rules:{nom:{required:!0},prenom:{required:!0},telephone1:{required:!0,minlength:3,min:0,max:999},telephone2:{required:!0,minlength:3,min:0,max:999},telephone3:{required:!0,minlength:4,min:0,max:9999},courriel:{required:!0,email:!0},nap:{required:!0},numeroCivique:{required:!0,minlength:1,min:1},rue:{required:!0},appartement:{required:!1},ville:{required:!0},province:{required:!0},codePostal:{required:!0},nouveauTelephone1:{required:!1,minlength:3,min:0,max:999},nouveauTelephone2:{required:!1,minlength:3,min:0,max:999},nouveauTelephone3:{required:!1,minlength:4,min:0,max:9999},nouveauTelephoneMobile1:{required:!1,minlength:3,min:0,max:999},nouveauTelephoneMobile2:{required:!1,minlength:3,min:0,max:999},nouveauTelephoneMobile3:{required:!1,minlength:4,min:0,max:9999},nouveauTelephoneTravail1:{required:!1,minlength:3,min:0,max:999},nouveauTelephoneTravail2:{required:!1,minlength:3,min:0,max:999},nouveauTelephoneTravail3:{required:!1,minlength:4,min:0,max:9999},nouveauTelephoneTravailPoste:{required:!1,minlength:0,min:0,max:999999}},messages:{nom:{required:t.messages.erreur.nomRequis},prenom:{required:t.messages.erreur.prenomRequis},telephone1:{required:t.messages.erreur.telephone1Requis,minlength:t.messages.erreur.telephone1Invalide,min:t.messages.erreur.telephone1Invalide,max:t.messages.erreur.telephone1Invalide},telephone2:{required:t.messages.erreur.telephone2Requis,minlength:t.messages.erreur.telephone2Invalide,min:t.messages.erreur.telephone2Invalide,max:t.messages.erreur.telephone2Invalide},telephone3:{required:t.messages.erreur.telephone3Requis,minlength:t.messages.erreur.telephone3Invalide,min:t.messages.erreur.telephone3Invalide,max:t.messages.erreur.telephone3Invalide},courriel:{required:t.messages.erreur.courrielRequis,email:t.messages.erreur.courrielInvalide},nap:{required:t.messages.erreur.napRequis},numeroCivique:{required:t.messages.erreur.numeroCiviqueRequis,minlength:t.messages.erreur.numeroCiviqueInvalide,min:t.messages.erreur.numeroCiviqueInvalide},rue:{required:t.messages.erreur.rueRequis},appartement:{min:t.messages.erreur.appartementInvalide},ville:{required:t.messages.erreur.villeRequis},province:{required:t.messages.erreur.provinceRequis},codePostal:{required:t.messages.erreur.codePostalInvalide},nouveauTelephone1:{required:t.messages.erreur.telephone1Requis,minlength:t.messages.erreur.telephone1Invalide,min:t.messages.erreur.telephone1Invalide,max:t.messages.erreur.telephone1Invalide},nouveauTelephone2:{required:t.messages.erreur.telephone2Requis,minlength:t.messages.erreur.telephone2Invalide,min:t.messages.erreur.telephone2Invalide,max:t.messages.erreur.telephone2Invalide},nouveauTelephone3:{required:t.messages.erreur.telephone3Requis,minlength:t.messages.erreur.telephone3Invalide,min:t.messages.erreur.telephone3Invalide,max:t.messages.erreur.telephone3Invalide},nouveauTelephoneMobile1:{minlength:t.messages.erreur.telephone1Invalide,min:t.messages.erreur.telephone1Invalide,max:t.messages.erreur.telephone1Invalide},nouveauTelephoneMobile2:{minlength:t.messages.erreur.telephone2Invalide,min:t.messages.erreur.telephone2Invalide,max:t.messages.erreur.telephone2Invalide},nouveauTelephoneMobile3:{minlength:t.messages.erreur.telephone3Invalide,min:t.messages.erreur.telephone3Invalide,max:t.messages.erreur.telephone3Invalide},nouveauTelephoneTravail1:{minlength:t.messages.erreur.telephone1Invalide,min:t.messages.erreur.telephone1Invalide,max:t.messages.erreur.telephone1Invalide},nouveauTelephoneTravail2:{minlength:t.messages.erreur.telephone2Invalide,min:t.messages.erreur.telephone2Invalide,max:t.messages.erreur.telephone2Invalide},nouveauTelephoneTravail3:{minlength:t.messages.erreur.telephone3Invalide,min:t.messages.erreur.telephone3Invalide,max:t.messages.erreur.telephone3Invalide},nouveauTelephoneTravailPoste:{minlength:t.messages.erreur.posteTelephoniqueInvalide,min:t.messages.erreur.posteTelephoniqueInvalide,max:t.messages.erreur.posteTelephoniqueInvalide}}}))},_remplirFormulaire:function(){var t=this.defaults.data;n("input#changement-adresse-prenom").val(t.prenom);n("input#changement-adresse-nom").val(t.nom);n("input#changement-adresse-telephone1").val(t.telephone1);n("input#changement-adresse-telephone2").val(t.telephone2);n("input#changement-adresse-telephone3").val(t.telephone3);n("input#changement-adresse-courriel").val(t.courriel);n("input#changement-adresse-nap").val(t.nap)},_envoyer:function(){var t=this,f,i,r,u;t._enChargement||(f=this._validations.validation1.form(),f?(n("#changement-adresse-erreur-inconnue").hide(),n("#changement-adresse-erreurs").hide(),t._enChargement=!0,i="",i=n("select#changement-adresse-province").is(":visible")?n("select#changement-adresse-province option:selected").text():n("#changement-adresse-province-autre").val(),u="",n("select#changement-adresse-ville").is(":visible")?(u=n("select#changement-adresse-ville option:selected").val(),r=n("select#changement-adresse-ville option:selected").text()):r=n("input#changement-adresse-ville-autre").val(),n.ajax({type:"POST",url:t.defaults.service,dataType:"json",data:JSON.stringify({itemIdFormulaire:t.defaults.itemIdFormulaire,prenom:n("input#changement-adresse-prenom").val(),nom:n("input#changement-adresse-nom").val(),telephone1:n("input#changement-adresse-telephone1").val(),telephone2:n("input#changement-adresse-telephone2").val(),telephone3:n("input#changement-adresse-telephone3").val(),courriel:n("input#changement-adresse-courriel").val(),nap:n("input#changement-adresse-nap").val(),numeroCivique:n("input#changement-adresse-numero-civique").val(),rue:n("input#changement-adresse-rue").val(),appartement:n("input#changement-adresse-appartement").val(),ville:r,codeVille:u,adresseSupplementaire:n("input#changement-adresse-adresse-supplementaire").val(),pays:n("select#changement-adresse-pays option:selected").text(),province:i,codePostal:n("input#changement-adresse-code-postal").val(),nouveauTelephone1:n("input#changement-adresse-nouveau-telephone1").val(),nouveauTelephone2:n("input#changement-adresse-nouveau-telephone2").val(),nouveauTelephone3:n("input#changement-adresse-nouveau-telephone3").val(),nouveauTelephoneMobile1:n("input#changement-adresse-nouveau-telephone-mobile1").val(),nouveauTelephoneMobile2:n("input#changement-adresse-nouveau-telephone-mobile2").val(),nouveauTelephoneMobile3:n("input#changement-adresse-nouveau-telephone-mobile3").val(),nouveauTelephoneTravail1:n("input#changement-adresse-nouveau-telephone-travail1").val(),nouveauTelephoneTravail2:n("input#changement-adresse-nouveau-telephone-travail2").val(),nouveauTelephoneTravail3:n("input#changement-adresse-nouveau-telephone-travail3").val(),nouveauTelephoneTravailPoste:n("input#changement-adresse-nouveau-telephone-travail-poste").val(),nouvelleAdresseDateDebut:n("input#changement-adresse-nouvelle-adresse-date-debut").val(),jeton:fstq.global.jetonCourriel}),success:function(t){t?(fstq.googleAnalytics.traquerFormulaire({identifiant:"contact-changement-adresse",type:"confirm"}),n("#changement-adresse").hide(),n("#changement-adresse-succes").show(),n("html,body").animate({scrollTop:n("#titre-page").offset?n("#titre-page").offset().top:200},"1000")):(n("#changement-adresse-erreurs").hide(),n("#changement-adresse-erreur-inconnue").show())},error:function(){n("#changement-adresse-erreurs").hide();n("#changement-adresse-erreur-inconnue").show()},complete:function(){t._enChargement=!1}})):(n("#changement-adresse-erreur-inconnue").hide(),n("#changement-adresse-erreurs").show(),n("html,body").animate({scrollTop:n("#changement-adresse-erreurs").offset().top},"1000")))},initialiser:function(t){var i=this,r;i.defaults=n.extend(!0,{},i.defaults,t);i.defaults.changementAdresseNouvelleAdresseDateDebut.setDate(i.defaults.changementAdresseNouvelleAdresseDateDebut.getDate()+1);i.defaults.traquer&&fstq.googleAnalytics.traquerFormulaire({identifiant:"contact-changement-adresse",type:"form"});r=n("div#changement-adresse");n("input#changement-adresse-telephone1, input#changement-adresse-telephone2, input#changement-adresse-telephone3",r).autotab_magic();n("input#changement-adresse-nouveau-telephone1, input#changement-adresse-nouveau-telephone2, input#changement-adresse-nouveau-telephone3",r).autotab_magic();n("input#changement-adresse-nouveau-telephone-mobile1, input#changement-adresse-nouveau-telephone-mobile2, input#changement-adresse-nouveau-telephone-mobile3",r).autotab_magic();n("input#changement-adresse-nouveau-telephone-travail1, input#changement-adresse-nouveau-telephone-travail2, input#changement-adresse-nouveau-telephone-travail3, input#changement-adresse-nouveau-telephone-travail-poste",r).autotab_magic();i._initialiserValidation();i._remplirFormulaire();n("div.boutons .bouton-action-principal, div.boutons .btn-jaune",r).click(function(n){n.preventDefault();i._envoyer()});n("#changement-adresse input, #changement-adresse select").on("keydown",function(n){n.keyCode===13&&(n.preventDefault(),i._envoyer())})}}}(jQuery),function(n){fstq.formulaireCourrielGeneral=fstq.formulaireCourrielGeneral||{defaults:{traquer:!0,itemIdFormulaire:null,itemId:null,modal:!0,service:"/Service/Outil/Courriel/FormulaireCourriel.ashx",formulaire:"div.formulaire form",saisirNap:";",saisirEntreprise:"",messages:{erreur:{telephone1Invalide:"",telephone2Invalide:"",telephone3Invalide:"",courrielInvalide:"",prenomRequis:"",nomRequis:"",telephone1Requis:"",telephone2Requis:"",telephone3Requis:"",courrielRequis:"",sujetRequis:"",napInvalide:""}},data:{nom:"",prenom:"",nap:"",telephone1:"",telephone2:"",telephone3:""}},_validations:{formulaire:null},_enChargement:!1,_defilerHaut:function(t,i){n("html,body").animate({scrollTop:n(t).offset().top},i)},_initialiserValidation:function(){var i=this,t=i.defaults.messages.erreur;jQuery.validator.addMethod("valeurNonEgaleA",function(n,t,i){return this.optional(t)?!0:i!==n});i._validations.formulaire=n("#form1").validate({onkeyup:!1,onclick:!1,rules:{nom:{required:!0},prenom:{required:!0},telephone1:{required:!0,minlength:3,min:0,max:999},telephone2:{required:!0,minlength:3,min:0,max:999},telephone3:{required:!0,minlength:4,min:0,max:9999},courriel:{required:!0,email:!0},sujets:{valeurNonEgaleA:"-"},texte:{required:!0}},messages:{nom:{required:t.nomRequis},prenom:{required:t.prenomRequis},telephone1:{required:t.telephone1Requis,minlength:t.telephone1Invalide,min:t.telephone1Invalide,max:t.telephone1Invalide},telephone2:{required:t.telephone2Requis,minlength:t.telephone2Invalide,min:t.telephone2Invalide,max:t.telephone2Invalide},telephone3:{required:t.telephone3Requis,minlength:t.telephone3Invalide,min:t.telephone3Invalide,max:t.telephone3Invalide},courriel:{required:t.courrielRequis,email:t.courrielInvalide},sujets:{valeurNonEgaleA:t.sujetRequis},nap:{number:t.napInvalide},texte:{required:t.messageRequis}},errorClass:"erreur",success:function(t){n(t).attr({title:""});i._validations.formulaire.numberOfInvalids()===0&&n("#ecrivez-nous-erreurs").hide()},errorPlacement:function(t,i){n(i).attr({title:t.html()})}})},_remplirFormulaire:function(){var t=this.defaults.data;n("input#courriel-general-prenom").val(t.prenom);n("input#courriel-general-nom").val(t.nom);n("input#courriel-general-numero1").val(t.telephone1);n("input#courriel-general-numero2").val(t.telephone2);n("input#courriel-general-numero3").val(t.telephone3);n("input#courriel-general-courriel").val(t.courriel);n("input#courriel-general-nap").val(t.nap);this.defaults.saisirEntreprise.length===0&&n(".saisir-entreprise").hide();this.defaults.saisirNap.length===0&&n(".saisir-nap").hide()},_envoyer:function(){var t=this;t._enChargement||(t._validations.formulaire.form()?typeof t._jeton=="undefined"?grecaptcha.execute():(t._enChargement=!0,n.ajax({type:"POST",url:t.defaults.service,contentType:"application/json; charset=UTF-8",dataType:"json",data:JSON.stringify({prenom:n("input#courriel-general-prenom").val(),nom:n("input#courriel-general-nom").val(),courriel:n("input#courriel-general-courriel").val(),telephone1:n("input#courriel-general-numero1").val(),telephone2:n("input#courriel-general-numero2").val(),telephone3:n("input#courriel-general-numero3").val(),poste:n("input#courriel-general-poste").val(),estActionnaire:n("input#courriel-general-nap").val().length>0?!0:!1,nap:n("input#courriel-general-nap").length>0?n("input#courriel-general-nap").val():"",message:n("textarea#courriel-general-message").val(),entreprise:n("input#courriel-general-entreprise").val(),noEntreprise:n("input#courriel-general-no-reference-entreprise").val(),sujetCourriel:n("#courriel-general-sujets").val(),itemID:t.defaults.itemId,itemIdFormulaire:t.defaults.itemIdFormulaire,jeton:fstq.global.jetonCourriel,jetonReCaptcha:t._jeton}),success:function(i){i?(fstq.googleAnalytics.traquerFormulaire({identifiant:"contact-par-courriel",type:"confirm"}),n("div#courriel-general").hide(),n("div#courriel-general-erreurs").hide(),n("div#courriel-general-erreur-inconnue").hide(),n("div#courriel-general-succes").show(),t._defilerHaut("#courriel-general-succes","1000")):(n("div#courriel-general-erreurs").hide(),n("div#courriel-general-erreur-inconnue").show(),t._defilerHaut("div#courriel-general-erreur-inconnue","1000"))},error:function(){n("div#courriel-general-erreurs").hide();n("div#courriel-general-erreur-inconnue").show();t._defilerHaut("div#courriel-general-inconnue","1000")},complete:function(){t._enChargement=!1}})):(n("div#courriel-general-erreur-inconnue").hide(),n("div#courriel-general-erreurs").show(),t._defilerHaut("div#courriel-general-erreurs","1000")))},initialiser:function(t){var i=this,r=n("#courriel-general");i.defaults=n.extend(!0,{},i.defaults,t);i.defaults.traquer&&fstq.googleAnalytics.traquerFormulaire({identifiant:"contact-par-courriel",type:"form"});i._initialiserValidation();i._remplirFormulaire();n(".soumettre .bouton-action-principal, .soumettre .btn-jaune",r).click(function(n){n.preventDefault();i._envoyer()});n("#courriel-general input, #courriel-general select").on("keydown",function(n){n.keyCode===13&&(n.preventDefault(),i._envoyer())});n("#courriel-general-radio-non").on("change",function(){n(this).is(":checked")&&(n("#courriel-general-nap").val(""),n(".actionnaire-fonds").slideUp())});n("#courriel-general-radio-oui").on("change",function(){n(this).is(":checked")&&n(".actionnaire-fonds").slideDown()})},onSubmit:function(n){var t=this;t._jeton=n;t._envoyer()}}}(jQuery),function(n){function i(i){var u=n(this),f=u.data("caroussel");f==null&&(u.data("caroussel",{premierChargement:!0,page:1,indexSelectionne:-1,opts:n.extend(!0,{},fstq.caroussel.defauts,i)}),f=u.data("caroussel"),r(u),t(u),u.caroussel_selectionner(f.indexSelectionne),f.premierChargement=!1)}function r(t){var i=t.data("caroussel");i.opts.json.Selection!=null?n.each(i.opts.json.Items,function(n,t){t.Id==i.opts.json.Selection&&(i.page=parseInt(n/i.opts.nbMax)+1,i.indexSelectionne=n)}):i.opts.selectionObligatoire?(i.page=1,i.indexSelectionne=0):(i.page=1,i.indexSelectionne=-1)}function u(t,i){var r,u,f;t>-1&&(r=i.data("caroussel"),n.template(r.opts.selecteurs.gabaritDetail,n(r.opts.selecteurs.gabaritDetail).html()),(r.indexSelectionne!=t||r.premierChargement||r.opts.permettreDoubleClique)&&(u=r.opts.json.Items[t],u!=null&&(f=n.tmpl(r.opts.selecteurs.gabaritDetail,u),n(r.opts.selecteurs.detail).html(f),n(r.opts.selecteurs.vignette+" .caroussel-vignette").removeClass("caroussel-vignette-selectionnee"),r.opts.json.Selection=u.Id,r.indexSelectionne=t,r.indexSelectionne>-1&&n(r.opts.selecteurs.vignette+" #"+r.opts.json.Selection).addClass("caroussel-vignette-selectionnee"),n(r.opts.selecteurs.detail).scrollTop(0))))}function f(){var i=n(this),t=i.data("caroussel");n(t.opts.selecteurs.vignette+" .caroussel-vignette").removeClass("caroussel-vignette-selectionnee");t.indexSelectionne=-1}function t(t){var i=t.data("caroussel"),r,u;for(n.template(i.opts.selecteurs.gabaritVignette,n(i.opts.selecteurs.gabaritVignette).html()),n(i.opts.selecteurs.vignette+" .caroussel-vignette").remove(),r=(i.page-1)*i.opts.nbMax,n.each(i.opts.json.Items,function(t,u){if(t>=r&&t<r+i.opts.nbMax){u.Index=t;var f=n.tmpl(i.opts.selecteurs.gabaritVignette,u);n(i.opts.selecteurs.vignette).append(f)}}),u=n(i.opts.selecteurs.vignette+" .caroussel-vignette").length;u<i.opts.nbMax;u++)n(i.opts.selecteurs.vignette).append('<div class="caroussel-vignette caroussel-vignette-vide"><\/div>');n(i.opts.selecteurs.precedent).toggleClass("caroussel-inactif",i.page==1);n(i.opts.selecteurs.suivant).toggleClass("caroussel-inactif",i.page*i.opts.nbMax>=i.opts.json.Total);i.opts.largeurVignette!=null&&n(i.opts.selecteurs.vignette+" .caroussel-vignette").width(i.opts.largeurVignette);i.indexSelectionne>-1&&n(i.opts.selecteurs.vignette+" #"+i.opts.json.Selection).addClass("caroussel-vignette-selectionnee")}function e(){var t=n(this),i=t.data("caroussel");return i.opts.nbMax}function o(){var t=n(this),i=t.data("caroussel");return i.page}function s(){var r=n(this),t=r.data("caroussel"),u=t.opts.json.Selection,i=null;return n.each(t.opts.json.Items,function(n,t){if(t.Id==u)return i=t,!1}),i}function h(t){var i=n(this),r=i.data("caroussel");return r.opts.json.Items[t]}function c(){var r=n(this),i=r.data("caroussel");i.page>1&&(i.page=i.page-1,t(r))}function l(t){var i=n(this),r=i.data("caroussel");r.opts.largeurVignette=t}function a(){var r=n(this),i=r.data("caroussel");i.page*i.opts.nbMax<i.opts.json.Total&&(i.page=i.page+1,t(r))}function v(n,i){var r=i.data("caroussel");r.page=n;t(i)}n.fn.extend({caroussel:i,caroussel_suivant:a,caroussel_precedent:c,caroussel_nbMax:e,caroussel_pageCourante:o,caroussel_deselectionner:f,caroussel_recupererItem:h,caroussel_recupererSelectionItem:s,caroussel_modifierLargeurVignette:l,caroussel_selectionner:function(t){u(t,n(this))},caroussel_rafraichir:function(){t(n(this))},caroussel_total:function(){var t=n(this).data("caroussel");return t.opts.json.Total},caroussel_page:function(t){v(t,n(this))}});fstq.caroussel=n.extend(fstq.caroussel?fstq.caroussel:{},{defauts:{json:null,nbMax:4,largeurVignette:null,permettreDoubleClique:!1,selectionObligatoire:!0,selecteurs:{precedent:"#caroussel-precedent",suivant:"#caroussel-suivant",detail:"#caroussel-detail",vignette:"#caroussel-vignettes",gabaritDetail:"#caroussel-gabarit-detail",gabaritVignette:"#caroussel-gabarit-vignette"}}})}(jQuery),function(n,t){t.accordeonFaq=t.accordeonFaq||function(){function r(){n(".liste-elements").find(".element-texte").slideUp("slow");n(".boite").removeClass("selection");n(".liste-elements").find(".action").removeClass("retrecir").addClass("agrandir")}function u(){n(".question").removeClass("selection-question").removeClass("retrecir-question").addClass("agrandir-question").siblings(".reponse").slideUp("slow")}function f(n,t){var u=n.find(".action");u.hasClass("agrandir")?(r(),u.addClass("retrecir").removeClass("agrandir"),n.find(".boite").addClass("selection"),n.find(".element-texte").slideDown("slow",function(){i.apresAffichage&&i.apresAffichage()})):t||r()}function e(n){n.hasClass("agrandir-question")?(u(),n.addClass("retrecir-question").addClass("selection-question").removeClass("agrandir-question").siblings(".reponse").slideDown("slow",function(){i.apresAffichageQuestion&&i.apresAffichageQuestion()})):u()}var i=null;return{defauts:{apresAffichage:null,apresAffichageQuestion:null},initialiser:function(r){i=n.extend(!0,{},t.accordeonFaq.defaults,r);n(".boite").on("click",function(){f(n(this.parentElement))});n(".question").on("click",function(){e(n(this))})},agrandirTheme:function(n){f(n,!0)},agrandirQuestion:e}}();t.faq=t.faq||function(){function i(){var f=location.hash,i=n(f),e,u;f&&i&&(e=i.parents(".theme"),u=i.find(".question"),r(u),t.accordeonFaq.agrandirTheme(e),t.accordeonFaq.agrandirQuestion(u))}function r(n){var i=n.parents(".theme"),r=i.find(".boite .element-titre");t.googleAnalytics.traquerEvenement({categorie:"FAQ",action:r.text(),label:n.text()})}return{defauts:{apresAffichage:null},initialiser:function(){n(window).on("hashchange",function(){i()});n(document).ready(function(){i()});n(".question").on("click",function(){n(this).hasClass("retrecir-question")&&r(n(this))})}}}()}(jQuery,fstq),function(n){fstq.affichageTuile=fstq.affichageTuile||{defauts:{tuileGroupe:"",transitionTemps:300},_testerParametreURL:function(){var t=null,i;document.location.hash.search(/\/groupe-\d+-tuile-\d+/)===1?t=document.location.hash:document.location.hash.search(/\/idtuile-/)===1&&(i=document.location.hash.split("-"),t=n("[data-identifiant="+i[1]+"]").attr("href"));t&&this._ouvrirOngletSpecifique(t.split("-"))},_ouvrirOngletSpecifique:function(t){if(t.length){var i=t[1],r=t[3];n("#groupe-"+i).length&&n("#groupe-"+i).tabs({active:r})}},_animerDefilement:function(t){var i=t.split("-"),r=i[0]+"-"+i[1];n("html, body").animate({scrollTop:n(r).offset().top},500)},_initialiserAffichage:function(){var t=this;n(t.defauts.tuileGroupe).tabs({collapsible:!0,active:!1,show:{effect:"slideDown",duration:this.defauts.transitionTemps},hide:{effect:"slideUp",duration:this.defauts.transitionTemps},beforeActivate:function(n,t){t.newPanel.selector!==""&&(window.location.hash="/"+t.newPanel.selector.replace("#",""))},activate:function(n,i){i.newPanel.selector!==""&&t._animerDefilement(i.newPanel.selector)}})},_masquerTuileTous:function(){n(this.defauts.tuileGroupe).tabs("option","active",!1)},initialiser:function(t){var i=this;this.defauts=n.extend(this.defauts,t,!0);this._initialiserAffichage();this._testerParametreURL();n(i.defauts.tuileGroupe).on("click",function(){i._masquerTuileTous()})}}}(jQuery),function(n,t){var i=new RegExp(/[^0-9]/g);t.champNumerique=t.champNumerique||{initialiser:function(r){n(r).on("keydown",function(n){return t.global.estCaractereNumerique(n.which)&&!n.shiftKey||t.global.estCaractereNavigation(n.which)||t.global.estCopierColler(n)?!0:!1});n(r).on("input keyup mouseup change",function(t){var r=n(t.target);i.test(r.val())&&r.val(r.val().replace(i,""))})}};n.fn.champNumerique=function(){t.champNumerique.initialiser(this)}}(jQuery,fstq),function(n){function t(t){opts=n.extend(!0,{},fstq.menuBasculateur.defauts,t);opts.elementOuvert!==null&&opts.elementOuvert.parents("."+opts.contenuClasseCss).show();n("."+opts.enteteClasseCss,opts.elementConteneur).click(function(t){t.preventDefault();n(this).next("."+opts.contenuClasseCss).toggle()})}fstq.menuBasculateur=n.extend(fstq.menuBasculateur?fstq.menuBasculateur:{},{defauts:{elementConteneur:null,elementOuvert:null,enteteClasseCss:"menu-basculateur-entete",contenuClasseCss:"menu-basculateur-contenu"},initialiser:t})}(jQuery),function(n){function c(t){n.nyroModalSettings({closeButton:!1,windowResize:!1,resizable:!1,padding:0,zIndexStart:1e3,contentError:fstq.global.texteErreurFenetreModale,hideContent:function(n,t,i){n.contentWrapper.hide();i()},hideBackground:function(n,t,i){n.bg.hide();i()},surDimensionCalculer:function(){r&&l()},surContenuTelecharger:v,endFillContent:function(){i("surContenuCharger");l()},endShowContent:function(){r=!0;var u=n("div#fenetre"),t=n("input:enabled:visible, textarea:enabled:visible, select:enabled:visible",u).not(n("input#fenetre-focus-default")).first();t.length>0?t.focus():n("input#fenetre-focus-default")&&n("input#fenetre-focus-default").is(":active")&&n("input#fenetre-focus-default").is(":visible")&&n("input#fenetre-focus-default").focus();fstq.global.filtrerLienExterne();i("surContenuAfficher")}});n("a#fenetre-bouton-fermer").on("click.fenetreModale",function(n){n.preventDefault();e()});n(document).bind("keydown.fenetreModale",function(n){r&&n.keyCode===27&&(n.preventDefault(),e())});f=!0;n.isFunction(t)&&t.apply(this)}function v(t,i,r){var u=[];n.each(t,function(n,t){u.push({url:t.href,type:"css"})});n.each(i,function(n,t){u.push({url:t.src,type:"js"})});n.include.once(u,r,!0)}function y(u){r&&(i("surTransition"),o());t=n.extend(!0,{},fstq.fenetreModale.defaults,u);var e=function(){n.nyroModalManual({ajax:{type:"GET",url:"/recuperercontrole.aspx",data:n.param(n.extend({},{chemin:t.chemin,sc_lang:fstq.global.langueSitecore},t.arguments)),dataType:"html"},width:s(t.largeur,t.largeurMin),height:h(t.hauteur,t.hauteurMin)})};f?e.apply(this):c(e)}function p(u){r&&(i("surTransition"),o());t=n.extend(!0,{},fstq.fenetreModale.defaults,u);var e=function(){n.nyroModalManual({content:t.contenu,width:s(t.largeur,t.largeurMin),height:h(t.hauteur,t.hauteurMin),endFillContent:function(n,i){t.surFenetreRemplie&&t.surFenetreRemplie(n,i)}})};f?e.apply(this):c(e)}function e(){i("surAvantFermeture");n.nyroModalRemove();i("surApresFermeture");o();r=!1}function l(){var f=n("div#fenetre > div.contenu-conteneur"),r=n("div#nyroModalContent"),h=r.attr("style").split(";"),u=parseInt(r.css("width")),e=parseInt(r.css("height")),o=e-t.statique.hauteurConteneurTitre-t.statique.margeEntreContenuEtTitre,s;f.width(u);f.height(o);s={conteneurNyroPrincipal:{largeur:n("div#nyroModalWrapper").width(),hauteur:n("div#nyroModalWrapper").height()},conteneurNyro:{largeur:u,hauteur:e},conteneurContenu:{largeur:u,hauteur:o}};i("surRedimensionner",[s])}function w(n,t,i){a(n,t)===-1&&u[n].push({id:t,fct:i})}function b(n,t){var i=a(n,t);i!==-1&&u[n].remove(i)}function o(){n.each(u,function(n){u[n]=[]})}function a(t,i){var r=-1;return n.each(u[t],function(n,t){if(t.id===i)return r=n,!1}),r}function i(t,i){n.each(u[t],function(t,r){n.isFunction(r.fct)&&(i&&i.length>0?r.fct.apply(this,i):r.fct.apply(this))})}function s(i,r){return Math.max(Math.min(i,n(window).width()-2*(t.statique.padding+t.statique.bordure)),r)}function h(i,r){return Math.max(Math.min(i,n(window).height()-2*(t.statique.padding+t.statique.bordure)-t.statique.margeEntreContenuEtTitre),r)}var t=null,f=!1,r=!1,u={surRedimensionner:[],surContenuCharger:[],surContenuAfficher:[],surTransition:[],surAvantFermeture:[],surApresFermeture:[],resultatCalculateur:[]};fstq.fenetreModale=n.extend(fstq.fenetreModale?fstq.fenetreModale:{},{defaults:{chemin:"",largeur:null,hauteur:null,largeurMin:null,hauteurMin:null,arguments:null,statique:{bordure:1,padding:20,hauteurConteneurTitre:44,margeEntreContenuEtTitre:20}},ouvrir:y,ouvrirContenu:p,fermer:e,inscrireEvenement:w,desinscrireEvenement:b,redimensionner:function(t,i,r,u){n.nyroModalSettings({width:s(t,r),height:h(i,u)})},video:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/VideoFenetreModale.ascx",largeur:690,hauteur:780,largeurMin:690,hauteurMin:540,arguments:n})}},formulaireCourrielAmi:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/FormulaireCourrielAmiFenetreModale.ascx",largeur:300,hauteur:510,largeurMin:300,hauteurMin:475,arguments:n})}},postuler:{ouvrir:function(n,t){var i=410;n&&(i+=240);fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/PostulerFenetreModale.ascx",largeur:i,hauteur:480,largeurMin:690,hauteurMin:475,arguments:t})},redimensionnerMessage:function(){fstq.fenetreModale.redimensionner(660,300,660,300)}},image:{ouvrir:function(n,t,i){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/ImageFenetreModale.ascx",largeur:n,hauteur:t,largeurMin:690,hauteurMin:475,arguments:i})}},message:{ouvrir:function(n,t,i){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/MessageFenetreModale.ascx",largeur:n,hauteur:t,largeurMin:50,hauteurMin:50,arguments:i})}},messageAvertissementMcel:{ouvrir:function(n,t,i){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/Mcel/MessageAvertissementFenetreModale.ascx",largeur:n,hauteur:t,largeurMin:50,hauteurMin:50,arguments:i})}},messageErreurMcel:{ouvrir:function(n,t,i){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/Mcel/MessageErreurFenetreModale.ascx",largeur:n,hauteur:t,largeurMin:50,hauteurMin:50,arguments:i})}},messageAvecBoutons:{ouvrir:function(n,t,i,r,u){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/MessageAvecBoutonsFenetreModale.ascx",largeur:n,hauteur:t,largeurMin:50,hauteurMin:50,arguments:i,boutonA:r,boutonB:u})},recupererBoutonA:function(){return t.boutonA},recupererBoutonB:function(){return t.boutonB}},mobileMessageAvecBoutons:{ouvrir:function(n,t,i,r,u){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/Mobile/FenetreModaleCorrespondance.ascx",largeur:n,hauteur:t,largeurMin:50,hauteurMin:50,arguments:i,boutonA:r,boutonB:u})},recupererBoutonA:function(){return t.boutonA},recupererBoutonB:function(){return t.boutonB}},groupeDirection:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/GroupeDirectionFenetreModale.ascx",largeur:690,hauteur:780,largeurMin:690,hauteurMin:475,arguments:n})}},expert:{ouvrir:function(n){n.estFiche=!1;fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/ExpertFenetreModale.ascx",largeur:750,hauteur:780,largeurMin:750,hauteurMin:475,arguments:n})},ouvrirFiche:function(n){n.estFiche=!0;fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/ExpertFenetreModale.ascx",largeur:690,hauteur:450,largeurMin:690,hauteurMin:450,arguments:n})}},equipe:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/EquipeFenetreModale.ascx",largeur:750,hauteur:780,largeurMin:750,hauteurMin:475,arguments:n})}},financementRealise:{ouvrir:function(n){n.estFiche=!1;fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/FinancementRealiseFenetreModale.ascx",largeur:690,hauteur:650,largeurMin:690,hauteurMin:475,arguments:n})},ouvrirFiche:function(n){n.estFiche=!0;fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/FinancementRealiseFenetreModale.ascx",largeur:690,hauteur:450,largeurMin:690,hauteurMin:450,arguments:n})},ouvrirListe:function(n){n.estFiche=!1;fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/FinancementRealiseListeFenetreModale.ascx",largeur:906,hauteur:665,largeurMin:690,hauteurMin:665,arguments:n})}},realisation:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/RealisationFenetreModale.ascx",largeur:690,hauteur:600,largeurMin:690,hauteurMin:475,arguments:n})}},inscriptionListeEnvoi:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/InscriptionListeEnvoiFenetreModale.ascx",largeur:450,hauteur:380,largeurMin:450,hauteurMin:375,arguments:n})},redimensionnerMessage:function(){fstq.fenetreModale.redimensionner(660,300,660,300)}},contactEcrivezNous:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/EcrivezNousFenetreModale.ascx",largeur:600,hauteur:200,largeurMin:600,hauteurMin:200,arguments:n})}},contactChangementAdresse:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/ChangementAdresseFenetreModale.ascx",largeur:600,hauteur:300,largeurMin:450,hauteurMin:375,arguments:n})}},adhesionConfirmerAnnulation:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/Adhesion/ConfirmerAnnulationFenetreModale.ascx",largeur:500,hauteur:150,largeurMin:500,hauteurMin:150,arguments:n})}},adhesionAvertissementCotisation:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/Adhesion/AvertissementCotisationFenetreModale.ascx",largeur:500,hauteur:100,largeurMin:500,hauteurMin:100,arguments:n})}},adhesionOuvrirUnCompte:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/Adhesion/OuvrirUnCompte.ascx",largeur:700,hauteur:330,largeurMin:700,hauteurMin:330,arguments:n})}},formulaireSondage:{ouvrir:function(n){fstq.fenetreModale.ouvrir({chemin:"~/Controle/FenetreModale/FormulaireSondageFenetreModale.ascx",largeur:600,hauteur:370,largeurMin:600,hauteurMin:370,arguments:n})}}})}(jQuery),function(n){fstq.sujet=n.extend(fstq.sujet?fstq.sujet:{},{initialiser:function(){n("div#sujets div.sous-sujets div.basculateur").click(function(){if(n(this).toggleClass("ouvert").next().slideToggle("fast"),n(this).hasClass("ouvert")){var t=n(this).find(".item-sous-titre").text(),i=n(this).text().replace(t,"");fstq.googleAnalytics.traquerEvenement({categorie:"Lien Déroulant",action:i,label:n("h1#titre-page").text()})}})}})}(jQuery),function(n){function r(r){t=n.extend(!0,{},fstq.fiche.defaults,r);n("div#fiche a.courriel-btn-ouvrir").click(function(n){n.preventDefault();fstq.global.session.ajouter("formulaire-souscrire-ami-methode",t.methode);fstq.global.session.ajouter("formulaire-souscrire-ami-parametres",{itemId:t.itemId});window.location="mailto:?subject=Fonds de solidarité FTQ - "+t.titre+"&body="+t.corps});n("div#fiche a.facebook-btn-ouvrir").click(function(n){n.preventDefault();i(t.urlPartages.facebook,"Facebook")});n("div#fiche a.twitter-btn-ouvrir").click(function(n){n.preventDefault();i(t.urlPartages.twitter,"Twitter")});n("div#fiche a.linkedin-btn-ouvrir").click(function(n){n.preventDefault();i(t.urlPartages.linkedin,"LinkedIn")})}function i(t,i){window.open(t,i,"height=450, width=550, top="+(n(window).height()/2-275)+", left="+(n(window).width()/2-225)+", toolbar=0, location=0, menubar=0, directories=0, scrollbars=0")}var t=null;fstq.fiche=n.extend(fstq.fiche?fstq.fiche:{},{defaults:{itemId:null,methode:null,urlPartages:{facebook:null,twitter:null,linkedin:null}},initialiser:r})}(jQuery),function(n){function i(i){t=n.extend(!0,{},fstq.contactezNousPage.defaults,i)}var t=null;fstq.contactezNousPage=n.extend(fstq.contactezNousPage?fstq.contactezNousPage:{},{defaults:{itemId:null,saisirEntreprise:"0",saisirNAP:"0",estRL:!1},initialiser:i})}(jQuery),function(n){function r(r){t=n.extend(!0,{},fstq.listeCommunique.defaults,r);var u=n("div#liste-communique");n("select#liste-communique-mois").focus();n("a.bouton-rechercher",u).click(function(n){n.preventDefault();i()});n("#liste-communique input, #liste-communique select").on("keydown",function(n){n.keyCode===13&&(n.preventDefault(),i())})}function i(){var i=n("input#liste-communique-contenu").val(),r={annee:n("select#liste-communique-annee").val(),mois:n("select#liste-communique-mois").val(),region:n("select#liste-communique-region").val(),secteur:n("select#liste-communique-secteur").val(),contenu:i};fstq.global.naviguer(t.lien,r)}var t=null;fstq.listeCommunique=n.extend(fstq.listeCommunique?fstq.listeCommunique:{},{defaults:{lien:null},initialiser:r})}(jQuery),function(n){function r(r){t=n.extend(!0,{},fstq.listeNouvelle.defaults,r);var u=n("div#liste-nouvelle");n("select#liste-nouvelle-mois").focus();n("a.bouton-rechercher",u).click(function(n){n.preventDefault();i()});n("#liste-nouvelle input, #liste-nouvelle select").on("keydown",function(n){n.keyCode===13&&(n.preventDefault(),i())});n("a.btn-ouvrir-video").click(function(t){t.preventDefault();fstq.fenetreModale.video.ouvrir({videoId:n(this).attr("videoId")})})}function i(){var i=n("input#liste-nouvelle-contenu").val(),r={annee:n("select#liste-nouvelle-annee").val(),mois:n("select#liste-nouvelle-mois").val(),contenu:i};fstq.global.naviguer(t.lien,r)}var t=null;fstq.listeNouvelle=n.extend(fstq.listeNouvelle?fstq.listeNouvelle:{},{defaults:{lien:null},initialiser:r})}(jQuery),function(n){function r(r){t=n.extend(!0,{},fstq.listePoste.defaults,r);var u=n("div#liste-poste");n("select#liste-poste-type").focus();n("a.bouton-rechercher",u).click(function(n){n.preventDefault();i()});n("#liste-poste input, #liste-poste select").on("keydown",function(n){n.keyCode===13&&(n.preventDefault(),i())})}function i(){fstq.global.naviguer(t.lien,{domaine:n("select#liste-poste-type :selected").val()})}var t=null;fstq.listePoste=n.extend(fstq.listePoste?fstq.listePoste:{},{defaults:{lien:null},initialiser:r})}(jQuery),function(n){function r(r){t=n.extend(!0,{},fstq.listeExperts.defaults,r);var u=n(t.formulaire);n("a.bouton-rechercher",u).click(function(n){n.preventDefault();i()});n(t.formulaire+" input, "+t.formulaire+" select").on("keydown",function(n){n.keyCode===13&&(n.preventDefault(),i())})}function i(){var i=n("input#liste-expert-recherche-nom").val(),r={rechercheNom:i!==t.texteRechercher?i:"",rechercheRegion:n("select#liste-expert-recherche-region").val(),rechercheSecteur:n("select#liste-expert-recherche-secteur").val(),rechercheItem:n("select#liste-expert-recherche-item").val()};fstq.global.naviguer(t.lien,r)}function u(){var arguments=fstq.global.recupererArgumentsUrl(),n=arguments.rechercheSecteur?arguments.rechercheSecteur+"|":"all|";n+=arguments.rechercheRegion&&n?arguments.rechercheRegion+"|":"all|";n+=arguments.rechercheItem&&n?arguments.rechercheItem+"|":"all|";n+=arguments.rechercheNom&&n?arguments.rechercheNom:"all";fstq.googleAnalytics.traquerRecherche({motClef:n,categorie:"experts"})}var t=null;fstq.listeExperts=n.extend(fstq.listeExperts?fstq.listeExperts:{},{defaults:{formulaire:"",lien:null,texteRechercher:""},initialiser:r,traquerElementRecherche:u})}(jQuery),function(n){function i(i){t=n.extend(!0,{},fstq.inscriptionConcours.defaults,i);var u=n("div.concours");n(".concours a.bouton-soumettre").click(function(t){t.preventDefault();n("#form1").valid()&&r()});jQuery.validator.addMethod("numeroReference",function(){var t=new RegExp("^[0-9]{3}$|^[0-9]{5}$","g");return t.test(n("#numeroreference",u).val())?!0:!1});validationFormulaire=n("#form1").validate({errorClass:"erreur",success:function(){validationFormulaire.numberOfInvalids()===0&&n(".concours-erreurs",u).hide()},invalidHandler:function(i,r){var f=r.numberOfInvalids();f>0&&(n(".concours-erreurs",u).html(t.messages.erreur.messageErreurSaisie),n(".concours-erreurs",u).show())},rules:{courriel:{required:!0,email:!0},numeroreference:{required:!0,numeroReference:!0}},errorPlacement:function(t,i){n(i).attr({title:t.html()})},highlight:function(t,i){n(t).addClass(i)},unhighlight:function(t,i){n(t).removeClass(i)}})}function r(){var t=n("div.concours");n.ajax({type:"GET",url:"/Service/Outil/Courriel/EnvoieCourrielService.svc/InscriptionConcours",dataType:"json",data:n.param({couleur:n("input[name=couleur]:checked").val(),prenom:n("input#prenom").val(),nom:n("input#nom").val(),entreprise:n("input#entreprise").val(),numeroReference:n("input#numeroreference").val(),courriel:n("input#courriel").val(),consentement:n("input#consentement").attr("checked")==!0?"Oui":"Non",jeton:fstq.global.jetonCourriel}),success:function(i){i?(n(".formulaire",t).hide(),n(".resultat",t).show()):(n(".formulaire").hide(),n(".resultat").show())},error:function(){}})}var t=null;fstq.inscriptionConcours=n.extend(fstq.inscriptionConcours?fstq.inscriptionConcours:{},{defaults:{messages:{erreur:{messageErreurSaisie:""}}},initialiser:i})}(jQuery),function(n){function r(r){t=n.extend(!0,{},fstq.listeFinancements.defaults,r);var u=n("div#liste-financement");n("a.bouton-rechercher",u).click(function(n){n.preventDefault();i()});n("#liste-financement input, #liste-financement select").on("keydown",function(n){n.keyCode===13&&(n.preventDefault(),i())});n(".ouvrir-detail",u).click(function(t){t.preventDefault();fstq.fenetreModale.financementRealise.ouvrirFiche({financementId:n(this).parents(".financement").attr("financementId"),afficherLienRepertoire:!1})});n(".ouvrir-liste",u).click(function(n){n.preventDefault();var t=fstq.global.recupererArgumentsUrl();fstq.fenetreModale.financementRealise.ouvrirListe(t)})}function i(){var i=n("input#liste-financement-recherche-nom").val(),r={rechercheNom:i!==t.texteRechercher?i:"",rechercheSecteur:n("select#liste-financement-secteur").val(),rechercheRegion:n("select#liste-financement-region").val(),page:n("#page").val()};fstq.global.naviguer(t.lien,r)}function u(){var arguments=fstq.global.recupererArgumentsUrl(),n=arguments.rechercheSecteur?arguments.rechercheSecteur+"|":"all|";n+=arguments.rechercheRegion&&n?arguments.rechercheRegion+"|":"all|";n+=arguments.rechercheNom&&n?arguments.rechercheNom:"all";fstq.googleAnalytics.traquerRecherche({motClef:n,categorie:"financements"})}var t=null;fstq.listeFinancements=n.extend(fstq.listeFinancements?fstq.listeFinancements:{},{defaults:{lien:null},initialiser:r,traquerElementRecherche:u})}(jQuery),function(n){fstq.dateListeDeroulante=fstq.dateListeDeroulante||{defauts:{selecteurChamps:"",limiteAnnee:70,defautAnnee:"",defautJour:"",defautMois:"",indexAnnee:"Annnée",indexJour:"Jour",indexMois:"Mois",dateFormat:"yy-mm-dd",labelsMois:["01","02","03","04","05","06","07","08","09","10","11","12"],dateFin:new Date,dateDebut:new Date},dateCourante:new Date,idListeJours:"champ-jour",idListeMois:"champ-mois",idListeAnnee:"champ-annee",prefixList:"-liste",_estDateParDefaut:function(n,t){return n==t?"selected = 'true'":""},_determinerDateDebut:function(){var n=new Date,i=new Date,r=new Date,t=new Date;i.setMonth(0);i.setDate(60);n.setMonth(11);n.setFullYear(n.getFullYear()-this.defauts.limiteAnnee);t.setFullYear(t.getFullYear()-18);this.defauts.dateDebut=n;this.defauts.dateFin=t},_recupererNombreJoursDansMois:function(n,t){var i=31;return n==4||n==6||n==9||n==11?i=30:n==2&&(i=t%4==0?29:28),i},_construireEnteteListe:function(n,t){var i=t?"selected = 'true'":"",r="<option value=''"+i+">"+n+"<\/option>";return r+"<option value=''><\/option>"},_estDansEcartDatesAutorises:function(n,t,i){var r=this,u=!0,e=r.defauts.dateFin.getFullYear(),f=r.defauts.dateFin.getMonth(),o=r.defauts.dateFin.getDate(),s=r.defauts.dateDebut.getFullYear(),h=r.defauts.dateDebut.getMonth(),c=r.defauts.dateDebut.getDate();return n==e&&(t>=f&&i>o||t>f)&&(u=!1),u},_construireListeJours:function(){for(var r,u,f,o,t=this,s=t.defauts.defautMois||t.dateCourante.getMonth()+1,h=t._recupererNombreJoursDansMois(s,t.dateCourante.getFullYear())+1,e=t._construireEnteteListe(t.defauts.indexJour,t._estDateParDefaut("",t.defauts.defautJour)),i=1;i<h;i++)r=i,r.toString().length<2&&(r="0"+r),t._estDansEcartDatesAutorises(t.dateCourante.getFullYear(),t.dateCourante.getMonth(),i)&&(e+="<option value='"+i+"'"+t._estDateParDefaut(i,t.defauts.defautJour)+">"+r+"<\/option>");u=t.idListeJours+t.prefixList;n("#"+u).hide().empty();n("#"+u).show().html(e);f=n(".ie7 #"+u+", .ie8 #"+u).parent();o=f.html();f.empty();f.html(o)},_construireListeMois:function(){for(var u,e,t=this,f=t._construireEnteteListe(t.defauts.indexMois,t._estDateParDefaut("",t.defauts.defautMois)),r=t.idListeMois+t.prefixList,i=0;i<12;i++)t._estDansEcartDatesAutorises(n("#champ-annee-liste").val(),i,"")&&(f+="<option value='"+i+"'"+t._estDateParDefaut(t.defauts.labelsMois[i],t.defauts.defautMois)+">"+t.defauts.labelsMois[i]+"<\/option>");n("#"+r).hide().empty();n("#"+r).show().html(f);u=n(".ie7 #"+r+", .ie8 #"+r).parent();e=u.html();u.empty();u.html(e)},_changerDate:function(n){var i=this,r=i.dateCourante.getDate(),u=i.dateCourante.getMonth()+1,f=i.dateCourante.getFullYear(),t=i.defauts.dateFormat;t.indexOf("DD")>-1&&r.toString().length<2&&(r="0"+r);t.indexOf("MM")>-1&&u.toString().length<2&&(u="0"+u);t=i.defauts.dateFormat.toLowerCase();t=t.replace("dd",r);t=t.replace("mm",u);t=t.replace("yy",f);n.val(t)},_construireListeDeroulante:function(){var t=this,i=n(t.defauts.selecteurChamps);t._determinerDateDebut();i.change();i.each(function(){function f(){t.defauts.defautAnnee=n("#champ-annee-liste").val();t.defauts.defautJour=n("#champ-jour-liste").val();t.defauts.defautMois=parseFloat(n("#champ-mois-liste").val())+1}i.html();var r=i.attr("id")+"-dates",e=i.val(),u=t.defauts.dateFormat.indexOf("/")>-1?"/":"-";(function(){var n;if(e.length>0){var f=t.defauts.dateFormat.split(u),i=e.split(u),r=new Date;for(n=0;n<i.length;n++)f[n].toLowerCase().indexOf("d")>-1?r.setDate(i[n]):f[n].toLowerCase().indexOf("m")>-1?r.setMonth(i[n]):f[n].toLowerCase().indexOf("y")>-1&&r.setYear(i[n]);t.dateCourante=r}})(),function(){var e=t.defauts.dateFormat.split(u),f;for(i.replaceWith("<div id='"+r+"' class='dates_container'><\/div>"),f=0;f<e.length;f++)e[f].toLowerCase().indexOf("d")>-1?(n("#"+r).append("<div id='"+t.idListeJours+"' class='day_container champ-date inline-block petit-input'>"),n("#"+t.idListeJours).append("<select id='"+t.idListeJours+t.prefixList+"' name='"+t.idListeJours+t.prefixList+"' class='list'><\/select>"),n("#"+r).append("<\/div>")):e[f].toLowerCase().indexOf("m")>-1?(n("#"+r).append("<div id='"+t.idListeMois+"' class='month_container champ-date inline-block petit-input'>"),n("#"+t.idListeMois).append("<select id='"+t.idListeMois+t.prefixList+"' name='"+t.idListeMois+t.prefixList+"' class='list'><\/select>"),n("#"+r).append("<\/div>")):e[f].toLowerCase().indexOf("y")>-1&&(n("#"+r).append("<div id='"+t.idListeAnnee+"' class='year_container champ-date inline-block petit-input'>"),n("#"+t.idListeAnnee).append("<select id='"+t.idListeAnnee+t.prefixList+"' name='"+t.idListeAnnee+t.prefixList+"' class='list'><\/select>"),n("#"+r).append("<\/div>"));n("#"+r).append(i);i.hide()}();t._construireListeMois();t._construireListeJours(),function(){for(var r=t._construireEnteteListe(t.defauts.indexAnnee,t._estDateParDefaut("",t.defauts.defautAnnee)),i=parseInt(t.defauts.dateFin.getFullYear());i>=parseInt(t.defauts.dateDebut.getFullYear());i--)r+="<option value='"+i+"'"+t._estDateParDefaut(i,t.defauts.defautAnnee)+">"+i+"<\/option>";n("#"+t.idListeAnnee+t.prefixList).hide().empty();n("#"+t.idListeAnnee+t.prefixList).show().html(r)}(),function(){n("#"+t.idListeJours+t.prefixList).change(function(){t.dateCourante.setDate(n("#"+t.idListeJours+t.prefixList).val());f();t._changerDate(i)});n("#"+t.idListeMois+t.prefixList).change(function(){t.dateCourante.setMonth(n("#"+t.idListeMois+t.prefixList).val());f();t._construireListeJours();t._changerDate(i)});n("#"+t.idListeAnnee+t.prefixList).change(function(){t.dateCourante.setFullYear(n("#"+t.idListeAnnee+t.prefixList).val());f();t._construireListeMois();t._construireListeJours();t._changerDate(i)})}()})},recupererDate:function(){var u=new Date,t=n("#champ-annee-liste option:selected").text(),i=n("#champ-mois-liste option:selected").text(),r=n("#champ-jour-liste option:selected").text(),f=u.getFullYear()-parseInt(t,10);return{complete:t+i+r,completeAvecTiret:t+"-"+i+"-"+r,annee:parseInt(t,10),mois:parseInt(i,10),jour:parseInt(r,10),age:f}},initialiser:function(t){this.defauts=n.extend(this.defauts,t.defauts);this._construireListeDeroulante()}}}(jQuery),document.getElementsByTagName)for(hrefs=document.getElementsByTagName("a"),l=0;l<hrefs.length;l++)try{hrefs[l].protocol=="mailto:"?startListening(hrefs[l],"click",trackMailto):hrefs[l].hostname==location.host?(path=hrefs[l].pathname+hrefs[l].search,isDoc=path.match(/\.(?:doc|eps|jpg|png|gif|jpeg|svg|xls|ppt|pdf|xls|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3|rss|vcf|ashx)($|\&|\?)/),isDoc&&startListening(hrefs[l],"click",trackOutFileLinks)):!hrefs[l].href.match(/^javascript:/)&&hrefs[l].href&&startListening(hrefs[l],"click",trackOutFileLinks)}catch(e){continue}(function(n,t,i){function h(n){var t={},r=/^jQuery\d+$/;return i.each(n.attributes,function(n,i){i.specified&&!r.test(i.name)&&(t[i.name]=i.value)}),t}function f(){var n=i(this);n.val()===n.attr("placeholder")&&n.hasClass("placeholder")&&(n.data("placeholder-password")?n.hide().next().show().focus().attr("id",n.removeAttr("id").data("placeholder-id")):n.val("").removeClass("placeholder"))}function s(){var t,n=i(this),u=n,r=this.id;if(n.val()===""){if(n.is(":password")){if(!n.data("placeholder-textinput")){try{t=n.clone().attr({type:"text"})}catch(e){t=i("<input>").attr(i.extend(h(this),{type:"text"}))}t.removeAttr("name").data("placeholder-password",!0).data("placeholder-id",r).bind("focus.placeholder",f);n.data("placeholder-textinput",t).data("placeholder-id",r).before(t)}n=n.removeAttr("id").hide().prev().attr("id",r).show()}n.addClass("placeholder").val(n.attr("placeholder"))}else n.removeClass("placeholder")}var u="placeholder"in t.createElement("input"),e="placeholder"in t.createElement("textarea"),o=i.fn,r;u&&e?(r=o.placeholder=function(){return this},r.input=r.textarea=!0):(r=o.placeholder=function(){return this.filter((u?"textarea":":input")+"[placeholder]").not(".placeholder").bind("focus.placeholder",f).bind("blur.placeholder",s).trigger("blur.placeholder").end()},r.input=u,r.textarea=e,i(function(){i(t).delegate("form","submit.placeholder",function(){var n=i(".placeholder",this).each(f);setTimeout(function(){n.each(s)},10)})}),i(n).bind("unload.placeholder",function(){i(".placeholder").val("")}))})(this,document,jQuery),function(n,t){function u(){n("#lnkEnvoyerFormulaire").click()}function f(u){i=n.extend(!0,{},fstq.adhesionPrelevements.defaults,u);fstq.googleAnalytics.traquerFormulaire({identifiant:"gestion-des-insatisfactions",type:"form"});var f=new r(i.langue);t.applyBindings(f);n("#telephone-1, #telephone-2, #telephone-3, #telephone-poste").autotab_magic().autotab_filter("numeric");n("form").validate({groups:{telephone:"telephone1 telephone2 telephone3"},errorPlacement:function(n,t){return t.is(":radio")?n.insertAfter(t.siblings(":last")):n.text().indexOf("required")==-1&&(t.attr("name")==="courriel"||t.attr("name")==="courriel-confirmation")?n.insertAfter(t):t.attr("name")==="nap"&&n.text().indexOf("required")==-1&&n.insertAfter(t.siblings(":last")),!0},showErrors:function(t){n.each(t,function(i){var r=t[i];(i=="courriel"||i=="courriel-confirmation")&&r.indexOf("required")!=-1&&n("#"+i).siblings("label").remove()});this.defaultShowErrors()},onkeyup:function(t){var i=n(t).attr("name");i==="nap"||i==="courriel"||i==="courriel-confirmation"||jQuery.validator.defaults.onkeyup.apply(this,arguments)}});n("#prenom").rules("add",{required:!0});n("#nom").rules("add",{required:!0});n("#courriel").rules("add",{required:!0,courrielValide:!0,messages:{courrielValide:i.formatCourriel}});n("#courriel-confirmation").rules("add",{required:!0,courrielValide:!0,confirmationCourriel:!0,messages:{courrielValide:i.formatCourriel,confirmationCourriel:i.confirmationCourriel}});n("#adresse-postale-1").rules("add",{required:!0});n("#ville").rules("add",{required:!0});n("#province").rules("add",{required:!0});n("#code-postal").rules("add",{required:!0});n("#nap").rules("add",{required:!0,validationNap:!0,messages:{validationNap:i.napInvalide}});n("#message").rules("add",{required:!0});n('input[name="radio-type-plaignant"]').rules("add",{required:!0});n('input[name="radio-titre"]').rules("add",{required:!0,messages:{required:i.titreRequis}});n('input[name="radio-communication"]').rules("add",{required:!0,messages:{required:i.modeCommRequis}});jQuery.validator.addMethod("confirmationCourriel",function(t){var i=n("#courriel").val();return i.length>0&&i!=t?!1:!0});jQuery.validator.addMethod("validationNap",function(){return f.validerNap().done(function(){}).fail(function(){n("form").validate().showErrors({nap:i.napInvalide})}),!0});jQuery.validator.addMethod("courrielValide",function(n){return fstq.global.validerCourriel(n)})}var i,r=function(r){var u=this;u.validationNapPromise=n.Deferred();u.estEntrepris=t.observable(!1);u.estActionnaire=t.observable(!1);u.estValide=t.observable(!0);u.estNapValidation=t.observable(!1);u.estNapValide=t.observable(!1);u.estSoumission=t.observable(!1);u.estSoumis=t.observable(!1);u.estSucces=t.observable(!1);u.estErreur=t.observable(!1);u.actionnaire=t.observable("");u.typePlaignant=t.observable("");u.titre=t.observable("");u.entreprise=t.observable("");u.prenom=t.observable("");u.nom=t.observable("");u.courriel=t.observable("");u.telephone1=t.observable("");u.telephone2=t.observable("");u.telephone3=t.observable("");u.posteTelephone=t.observable("");u.adressePostale1=t.observable("");u.adressePostale2=t.observable("");u.ville=t.observable("");u.provincePays=t.observable("");u.codePostal=t.observable("");u.nap=t.observable("");u.message=t.observable("");u.communication=t.observable("");u.langue=t.observable(r);u.jetonReCaptcha=t.observable("");u.peutEnvoyer=t.computed(function(){return u.estValide()&&u.estNapValide()});u.actionnaire.subscribe(function(){u.estEntrepris(!0)});u.typePlaignant.subscribe(function(n){u.estEntrepris(!0);u.estActionnaire(n===i.codePlaignantEpargnant)});u.validerFormulaire=function(){u.estValide(n("form").valid())};u.recupererFormulairePlainte=function(){return{prenom:u.prenom,typePlaignant:u.typePlaignant,titre:u.titre,nom:u.nom,courriel:u.courriel,entreprise:u.entreprise,telephone1:u.telephone1,telephone2:u.telephone2,telephone3:u.telephone3,adressPostale1:u.adressePostale1,adressPostale2:u.adressePostale2,ville:u.ville,provincePays:u.provincePays,codePostal:u.codePostal,nap:u.nap,message:u.message,communication:u.communication,posteTelephone:u.posteTelephone,langue:u.langue,jetonReCaptcha:u.jetonReCaptcha}};u.envoyerFormulaire=function(){if(u.estSoumission(!0),u.validerFormulaire(),u.estValide())if(grecaptcha.getResponse()==="")u.estSoumission(!1),grecaptcha.execute();else if(u.jetonReCaptcha(grecaptcha.getResponse()),u.estActionnaire())u.validationNapPromise.done(function(){return u.soumettrePlainte(),!0}).fail(function(){u.estSoumission(!1)});else return u.nap(""),u.soumettrePlainte(),!0;else window.scrollTo(0,0);return!1};u.soumettrePlainte=function(){let n=u.recupererFormulairePlainte();this.servicePlainte("FormulerPlainte",n).done(function(){fstq.googleAnalytics.traquerFormulaire({identifiant:"gestion-des-insatisfactions",type:"confirm"});u.estSucces(!0)}).fail(function(){u.estErreur(!0)}).always(function(){u.estSoumis(!0);u.estSoumission(!1)})};u.validerNap=function(){var t=n.Deferred();return u.estNapValidation(!0),u.estActionnaire()?u.servicePlainte("NapEstValide",{nap:u.nap()}).done(function(){u.estNapValide(!0);t.resolve()}).fail(function(){u.estNapValide(!1);t.reject()}).always(function(){u.estNapValidation(!1)}):t.resolve(),u.validationNapPromise=t.promise(),u.validationNapPromise};u.servicePlainte=function(t,i){var r=n.Deferred();return n.ajax({type:"POST",url:"/api/plaintes/"+t,dataType:"json",data:i}).done(function(n){n==200||n==201?r.resolve():r.reject()}).fail(function(){r.reject()}),r.promise()}};fstq.formulairePlainte=n.extend(fstq.formulairePlainte?fstq.formulairePlainte:{},{initialiser:f,onSubmit:u})}(jQuery,ko),function(n){function i(i){var f=n.extend(!0,{},fstq.methodesValidation.defaultsAdhesionPrelevements,i);jQuery.validator.addMethod("auMoinsUnChoix",function(){return n(".categorie-cotisation:not(.inactif) input:checked").length>0});jQuery.validator.addMethod("montantMin",function(t,i,r){if(!f.fonctionElementEstVisible(n(i)))return!0;var u=parseFloat(t.replace(",","."));return t.length==0||u>=r});jQuery.validator.addMethod("montantMax",function(t,i,r){if(!f.fonctionElementEstVisible(n(i)))return!0;var u=parseFloat(t.replace(",","."));return t.length==0||u<=r});jQuery.validator.addMethod("multiRequired",function(t,i){var u=n(i).parents(".multi").find("input"),r=!1;return u.each(function(){n(this).val()!=""&&(r=!0)}),r});jQuery.validator.addMethod("dateValide",function(n,i){var r=t(i);return u(r)});jQuery.validator.addMethod("dateFuture",function(n,i){var r=t(i);return r.diffAnnee<0?!0:r.diffAnnee==0&&r.diffMois<0?!0:r.diffAnnee==0&&r.diffMois==0&&r.diffJour<=0?!0:!1});jQuery.validator.addMethod("dateMinimum",function(i,r,u){if(!f.fonctionElementEstVisible(n(r)))return!0;var e=t(r),o=u.split("-"),s=new Date(o[0],o[1]-1,o[2]),h=new Date(e.annee,e.mois,e.jour);return s.getTime()<=h.getTime()});jQuery.validator.addMethod("dateMaximum",function(i,r,u){if(!f.fonctionElementEstVisible(n(r)))return!0;var e=t(r),o=u.split("-"),s=new Date(o[0],o[1]-1,o[2]),h=new Date(e.annee,e.mois,e.jour);return s.getTime()>=h.getTime()});jQuery.validator.addMethod("dateRespecteJourDeLaSemaine",function(i,r){var u=t(r),e=new Date(u.annee,u.mois,u.jour);return n(f.selecteurJourDeLaSemaine+" option:selected").val()==e.getDay()-1});jQuery.validator.addMethod("dateRespecteJourDuMoisLorsqueFrequenceBimensuelle",function(n,i){var u=t(i),r=new Date(u.annee,u.mois,u.jour),f=!1,e;return r.getMonth()==1?(e=r.getFullYear(),f=new Date(e,1,29).getDate()==29?r.getDate()==15||r.getDate()==29:r.getDate()==15||r.getDate()==28):f=r.getDate()==15||r.getDate()==30,f});jQuery.validator.addMethod("selectRequired",function(t,i){return r(n(i))});jQuery.validator.addMethod("folioValide",function(n,t){return f.fonctionFolioEstValide(t)});jQuery.validator.addMethod("unSeulFolio",function(t,i){$compte=n(i).parents(f.selecteurCompte);var r=$compte.find(f.selecteurCompteFolio1)[0],u=$compte.find(f.selecteurCompteFolio2)[0];return!(f.fonctionFolioEstValide(r)&&f.fonctionFolioEstValide(u))});jQuery.validator.addMethod("customMinLength",function(t,i,r){return f.fonctionInstitutionEstSelectionnee(n(i).parents(f.selecteurChoixInsititution))?t.length>=r:!0});jQuery.validator.addMethod("transitValide",function(t,i){if(!f.fonctionInstitutionEstSelectionnee(n(i).parents(f.selecteurChoixInsititution)))return!0;return t.length>=5&&!n(i).hasClass("erreur-champ")})}function r(n){return $valeur=n.find("option:selected"),$valeur.val()!=$valeur.text()}function t(t){var i=new Date,r=n(t).parents(".date"),u=r.find(".annee input").val(),f=r.find(".mois input").val(),e=r.find(".jour input").val(),c=u+f+e,o=+u,l=i.getFullYear(),s=f-1,a=i.getMonth(),h=+e,v=i.getDate(),y=l-o,p=a-s,w=v-h;return{chaine:c,annee:o,mois:s,jour:h,diffAnnee:y,diffMois:p,diffJour:w}}function u(n){if(n.chaine.length!==8||n.annee<1900||n.mois<0||n.mois>11||n.jour<1||n.jour>31)return!1;var i=new Date(n.annee,n.mois,n.jour).getTime(),t=new Date;return(t.setTime(i),t.getFullYear()!==n.annee||t.getMonth()!==n.mois||t.getDate()!==n.jour)?!1:!0}function f(t){jQuery.validator.addMethod("montantMin",function(i,r,u){if(!t.fonctionElementEstVisible(n(r)))return!0;var f=parseFloat(i.replace(",","."));return i.length==0||f>=u});jQuery.validator.addMethod("montantMax",function(i,r,u){if(!t.fonctionElementEstVisible(n(r)))return!0;var f=parseFloat(i.replace(",","."));return i.length==0||f<=u})}function e(t){var i=function(t){var i=[];return n(".champs-"+t+" input").each(function(t,r){i.push(n(r).val())}),i},u=function(t){var i=n(".champs-"+t+" .folio-ex").attr("foliomasque");return i==null?[]:i.split("-")},r=function(t){var i=0;return n(t).each(function(){n.trim(this).length>0&&i++}),i};jQuery.validator.addMethod("validerPartieFolio",function(f,e){var s=n(e);if(!t.fonctionElementEstVisible(s))return!0;var c=!1,l=s.attr("name").split("-")[0],h=s.attr("name").split("-")[1],o=i(l),a=u(l);return o.length==a.length&&h<o.length&&n.trim(o[h]).length==n.trim(a[h]).length&&(c=!0),c||r(o)==0});jQuery.validator.addMethod("folioRequis",function(u,f){if(!t.fonctionElementEstVisible(n(f)))return!0;var e=r(i("folio1")),o=r(i("folio2"));return e>0||o>0});jQuery.validator.addMethod("folioUnSeul",function(u,f){if(!t.fonctionElementEstVisible(n(f)))return!0;var e=r(i("folio1")),o=r(i("folio2"));return!(e>0&&o>0)})}function o(n,t,i){var r=n[i];return r!=null?r.indexOf(t)!=-1:!1}function s(n){var t=0;for(var i in n)t++;return t}function h(){n.validator.addMethod("regexp",function(n,t,i){return this.optional(t)||n.match(i)})}function c(t){var i=n.extend(!0,{},fstq.methodesValidation.defaultCreerValidation,t);return validation=n("form").validate({errorClass:"erreur-message",highlight:function(t){if(n(t).addClass("erreur-champ"),n(t).attr("type")=="radio"||n(t).attr("type")=="checkbox"){var i=n(t).attr("name"),r="input[name="+i+"]";n(r).each(function(t,i){var r="label[for="+i.id+"]";n(r).addClass("erreur-champ")})}},unhighlight:function(t){if(n(t).removeClass("erreur-champ"),n(t).attr("type")=="radio"||n(t).attr("type")=="checkbox"){var i=n(t).attr("name");n("input[name="+i+"]").each(function(t,i){n("label[for="+i.id+"]").removeClass("erreur-champ")})}n(".erreur-champ").length==0&&n("#prelevement-erreurs li").length==0&&n("#prelevement-erreurs").slideUp("fast")},onkeyup:function(n){var t=jQuery(n).attr("name");this.settings.rules[t]&&this.settings.rules[t].onkeyup!==!1&&jQuery.validator.defaults.onkeyup.apply(this,arguments)},onfocusout:function(n){var t=jQuery(n).attr("name");this.settings.rules[t]&&this.settings.rules[t].onfocusout!==!1&&jQuery.validator.defaults.onfocusout.apply(this,arguments)},focusInvalid:!1,wrapper:"div",groups:i.fonctionRecupererGroupes(),errorPlacement:i.fonctionPositionnerErreur,showErrors:function(t){var c=0,u,r;for(u in t){if(r=t[u],r!=null){var f=n("input[name='"+u+"']"),e=f.attr("id")||f.attr("name"),h=n('.erreur-message-wrapper:has(label[for="'+e+'"])').parent("div");r.indexOf("REQUIRED")!=-1?h.find(".erreur-message-wrapper").each(function(){$label=n(this).find("label");var t=f.attr("name").replace(/\$/g,"_");($label.text().indexOf("REQUIRED")!=-1||$label.attr("for")!=null&&$label.attr("for").indexOf(e)!=-1||o(i.fonctionRecupererGroupes(),e,$label.attr("for")))&&n(this).remove()}):h.find(".erreur-message-wrapper").not(".transit-erreur").each(function(){r.indexOf(n(this).find("label").text())!=-1&&n(this).remove()})}c++}i.fonctionTentativeSoumission()&&(s(this.invalid)>0?fstq.mcel.gestionErreur.afficherErreur(i.codeErreurFormulaire):fstq.mcel.gestionErreur.cacherErreur(i.codeErreurFormulaire));this.defaultShowErrors()}})}fstq.methodesValidation=n.extend(fstq.methodesValidation?fstq.methodesValidation:{},{initialiserAdhesionPrelevements:i,defaultsAdhesionPrelevements:{fonctionElementEstVisible:null,fonctionFolioEstValide:null,fonctionInstitutionEstSelectionnee:null,selecteurChoixInsititution:".choix-institution",selecteurCompte:".compte",selecteurCompteFolio1:".folio1 input",selecteurCompteFolio2:".folio2 input",selecteurJourDeLaSemaine:"#jour-pba select"},ajouterMontantMinMax:f,ajouterFolioValide:e,ajouterMethodeRegExp:h,creerValidation:c,defaultCreerValidation:{fonctionRecupererGroupes:null,fonctionPositionnerErreur:null,fonctionTentativeSoumission:null,codeErreurFormulaire:"ErreurFormulaire"}})}(jQuery),function(n){function r(r){i=n.extend(!0,{},fstq.mcel.gestionErreur.defaults,r);t=n(".boite-message-erreur")}function u(n){if(t!=null){var r=t.find("li[data-erreur="+n+"]");r.length==0&&(message=i.messages[n],t.find("ul").append('<li data-erreur="'+n+'">'+message+"<\/li>"),t.show())}}function f(n){if(t!=null){var i=t.find("li[data-erreur="+n+"]");i.length>0&&(i.remove(),t.find("li").length==0&&t.hide())}}var i=null,t;fstq.mcel=fstq.mcel||{};fstq.mcel.gestionErreur=n.extend(fstq.mcel.gestionErreur?fstq.mcel.gestionErreur:{},{initialiser:r,afficherErreur:u,cacherErreur:f,defaults:{messages:{}}})}(jQuery),function(n){"use strict";function t(n){return(n||"").toLowerCase()}var i="2.1.6";n.fn.cycle=function(i){var r;return this.length===0&&!n.isReady?(r={s:this.selector,c:this.context},n.fn.cycle.log("requeuing slideshow (dom not ready)"),n(function(){n(r.s,r.c).cycle(i)}),this):this.each(function(){var f,r,h,o,u=n(this),s=n.fn.cycle.log,e;if(!u.data("cycle.opts")){(u.data("cycle-log")===!1||i&&i.log===!1||r&&r.log===!1)&&(s=n.noop);s("--c2 init--");f=u.data();for(e in f)f.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(o=f[e],h=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),s(h+":",o,"("+typeof o+")"),f[h]=o);r=n.extend({},n.fn.cycle.defaults,f,i||{});r.timeoutId=0;r.paused=r.paused||!1;r.container=u;r._maxZ=r.maxZ;r.API=n.extend({_container:u},n.fn.cycle.API);r.API.log=s;r.API.trigger=function(n,t){return r.container.trigger(n,t),r.API};u.data("cycle.opts",r);u.data("cycle.API",r.API);r.API.trigger("cycle-bootstrap",[r,r.API]);r.API.addInitialSlides();r.API.preInitSlideshow();r.slides.length&&r.API.initSlideshow()}})};n.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var t=this.opts(),i=t.slides;t.slideCount=0;t.slides=n();i=i.jquery?i:t.container.find(i);t.random&&i.sort(function(){return Math.random()-.5});t.API.add(i)},preInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-pre-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.preInit)&&i.preInit(t);t._preInitialized=!0},postInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-post-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.postInit)&&i.postInit(t)},initSlideshow:function(){var t=this.opts(),r=t.container,i;t.API.calcFirstSlide();t.container.css("position")=="static"&&t.container.css("position","relative");n(t.slides[t.currSlide]).css({opacity:1,display:"block",visibility:"visible"});t.API.stackSlides(t.slides[t.currSlide],t.slides[t.nextSlide],!t.reverse);t.pauseOnHover&&(t.pauseOnHover!==!0&&(r=n(t.pauseOnHover)),r.hover(function(){t.API.pause(!0)},function(){t.API.resume(!0)}));t.timeout&&(i=t.API.getSlideOpts(t.currSlide),t.API.queueTransition(i,i.timeout+t.delay));t._initialized=!0;t.API.updateView(!0);t.API.trigger("cycle-initialized",[t]);t.API.postInitSlideshow()},pause:function(t){var i=this.opts(),r=i.API.getSlideOpts(),u=i.hoverPaused||i.paused;t?i.hoverPaused=!0:i.paused=!0;u||(i.container.addClass("cycle-paused"),i.API.trigger("cycle-paused",[i]).log("cycle-paused"),r.timeout&&(clearTimeout(i.timeoutId),i.timeoutId=0,i._remainingTimeout-=n.now()-i._lastQueue,(i._remainingTimeout<0||isNaN(i._remainingTimeout))&&(i._remainingTimeout=undefined)))},resume:function(n){var t=this.opts(),i=!t.hoverPaused&&!t.paused;n?t.hoverPaused=!1:t.paused=!1;i||(t.container.removeClass("cycle-paused"),t.slides.filter(":animated").length===0&&t.API.queueTransition(t.API.getSlideOpts(),t._remainingTimeout),t.API.trigger("cycle-resumed",[t,t._remainingTimeout]).log("cycle-resumed"))},add:function(t,i){var r=this.opts(),e=r.slideCount,u=!1,f;n.type(t)=="string"&&(t=n.trim(t));n(t).each(function(){var u,t=n(this);i?r.container.prepend(t):r.container.append(t);r.slideCount++;u=r.API.buildSlideOpts(t);r.slides=i?n(t).add(r.slides):r.slides.add(t);r.API.initSlide(u,t,--r._maxZ);t.data("cycle.opts",u);r.API.trigger("cycle-slide-added",[r,u,t])});r.API.updateView(!0);u=r._preInitialized&&e<2&&r.slideCount>=1;u&&(r._initialized?r.timeout&&(f=r.slides.length,r.nextSlide=r.reverse?f-1:1,r.timeoutId||r.API.queueTransition(r)):r.API.initSlideshow())},calcFirstSlide:function(){var n=this.opts(),t;t=parseInt(n.startingSlide||0,10);(t>=n.slides.length||t<0)&&(t=0);n.currSlide=t;n.reverse?(n.nextSlide=t-1,n.nextSlide<0&&(n.nextSlide=n.slides.length-1)):(n.nextSlide=t+1,n.nextSlide==n.slides.length&&(n.nextSlide=0))},calcNextSlide:function(){var n=this.opts(),t;n.reverse?(t=n.nextSlide-1<0,n.nextSlide=t?n.slideCount-1:n.nextSlide-1,n.currSlide=t?0:n.nextSlide+1):(t=n.nextSlide+1==n.slides.length,n.nextSlide=t?0:n.nextSlide+1,n.currSlide=t?n.slides.length-1:n.nextSlide-1)},calcTx:function(t,i){var r=t,u;return r._tempFx?u=n.fn.cycle.transitions[r._tempFx]:i&&r.manualFx&&(u=n.fn.cycle.transitions[r.manualFx]),u||(u=n.fn.cycle.transitions[r.fx]),r._tempFx=null,this.opts()._tempFx=null,u||(u=n.fn.cycle.transitions.fade,r.API.log('Transition "'+r.fx+'" not found.  Using fade.')),u},prepareTx:function(n,t){var i=this.opts(),o,f,e,r,u;if(i.slideCount<2){i.timeoutId=0;return}(n&&(!i.busy||i.manualTrump)&&(i.API.stopTransition(),i.busy=!1,clearTimeout(i.timeoutId),i.timeoutId=0),i.busy)||(i.timeoutId!==0||n)&&(f=i.slides[i.currSlide],e=i.slides[i.nextSlide],r=i.API.getSlideOpts(i.nextSlide),u=i.API.calcTx(r,n),i._tx=u,n&&r.manualSpeed!==undefined&&(r.speed=r.manualSpeed),i.nextSlide!=i.currSlide&&(n||!i.paused&&!i.hoverPaused&&i.timeout)?(i.API.trigger("cycle-before",[r,f,e,t]),u.before&&u.before(r,f,e,t),o=function(){(i.busy=!1,i.container.data("cycle.opts"))&&(u.after&&u.after(r,f,e,t),i.API.trigger("cycle-after",[r,f,e,t]),i.API.queueTransition(r),i.API.updateView(!0))},i.busy=!0,u.transition?u.transition(r,f,e,t,o):i.API.doTransition(r,f,e,t,o),i.API.calcNextSlide(),i.API.updateView()):i.API.queueTransition(r))},doTransition:function(t,i,r,u,f){var e=t,o=n(i),s=n(r),h=function(){s.animate(e.animIn||{opacity:1},e.speed,e.easeIn||e.easing,f)};s.css(e.cssBefore||{});o.animate(e.animOut||{},e.speed,e.easeOut||e.easing,function(){o.css(e.cssAfter||{});e.sync||h()});e.sync&&h()},queueTransition:function(t,i){var r=this.opts(),u=i!==undefined?i:t.timeout;if(r.nextSlide===0&&--r.loop==0){r.API.log("terminating; loop=0");r.timeout=0;u?setTimeout(function(){r.API.trigger("cycle-finished",[r])},u):r.API.trigger("cycle-finished",[r]);r.nextSlide=r.currSlide;return}if(r.continueAuto!==undefined&&(r.continueAuto===!1||n.isFunction(r.continueAuto)&&r.continueAuto()===!1)){r.API.log("terminating automatic transitions");r.timeout=0;r.timeoutId&&clearTimeout(r.timeoutId);return}u&&(r._lastQueue=n.now(),i===undefined&&(r._remainingTimeout=t.timeout),r.paused||r.hoverPaused||(r.timeoutId=setTimeout(function(){r.API.prepareTx(!1,!r.reverse)},u)))},stopTransition:function(){var n=this.opts();n.slides.filter(":animated").length&&(n.slides.stop(!1,!0),n.API.trigger("cycle-transition-stopped",[n]));n._tx&&n._tx.stopTransition&&n._tx.stopTransition(n)},advanceSlide:function(n){var t=this.opts();return clearTimeout(t.timeoutId),t.timeoutId=0,t.nextSlide=t.currSlide+n,t.nextSlide<0?t.nextSlide=t.slides.length-1:t.nextSlide>=t.slides.length&&(t.nextSlide=0),t.API.prepareTx(!0,n>=0),!1},buildSlideOpts:function(i){var u=this.opts(),f,o,r=i.data()||{};for(var e in r)r.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(f=r[e],o=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),u.API.log("["+(u.slideCount-1)+"]",o+":",f,"("+typeof f+")"),r[o]=f);r=n.extend({},n.fn.cycle.defaults,u,r);r.slideNum=u.slideCount;try{delete r.API;delete r.slideCount;delete r.currSlide;delete r.nextSlide;delete r.slides}catch(s){}return r},getSlideOpts:function(t){var i=this.opts(),r,u;return t===undefined&&(t=i.currSlide),r=i.slides[t],u=n(r).data("cycle.opts"),n.extend({},i,u)},initSlide:function(t,i,r){var u=this.opts();i.css(t.slideCss||{});r>0&&i.css("zIndex",r);isNaN(t.speed)&&(t.speed=n.fx.speeds[t.speed]||n.fx.speeds._default);t.sync||(t.speed=t.speed/2);i.addClass(u.slideClass)},updateView:function(n,t){var i=this.opts(),r,u;i._initialized&&((r=i.API.getSlideOpts(),u=i.slides[i.currSlide],!n&&t!==!0&&(i.API.trigger("cycle-update-view-before",[i,r,u]),i.updateView<0))||(i.slideActiveClass&&i.slides.removeClass(i.slideActiveClass).eq(i.currSlide).addClass(i.slideActiveClass),n&&i.hideNonActive&&i.slides.filter(":not(."+i.slideActiveClass+")").css("visibility","hidden"),i.updateView===0&&setTimeout(function(){i.API.trigger("cycle-update-view",[i,r,u,n])},r.speed/(i.sync?2:1)),i.updateView!==0&&i.API.trigger("cycle-update-view",[i,r,u,n]),n&&i.API.trigger("cycle-update-view-after",[i,r,u])))},getComponent:function(t){var r=this.opts(),i=r[t];return typeof i=="string"?/^\s*[\>|\+|~]/.test(i)?r.container.find(i):n(i):i.jquery?i:n(i)},stackSlides:function(t,i,r){var u=this.opts(),f,e,o;if(t||(t=u.slides[u.currSlide],i=u.slides[u.nextSlide],r=!u.reverse),n(t).css("zIndex",u.maxZ),e=u.maxZ-2,o=u.slideCount,r){for(f=u.currSlide+1;f<o;f++)n(u.slides[f]).css("zIndex",e--);for(f=0;f<u.currSlide;f++)n(u.slides[f]).css("zIndex",e--)}else{for(f=u.currSlide-1;f>=0;f--)n(u.slides[f]).css("zIndex",e--);for(f=o-1;f>u.currSlide;f--)n(u.slides[f]).css("zIndex",e--)}n(i).css("zIndex",u.maxZ-1)},getSlideIndex:function(n){return this.opts().slides.index(n)}};n.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))};n.fn.cycle.version=function(){return"Cycle2: "+i};n.fn.cycle.transitions={custom:{},none:{before:function(n,t,i,r){n.API.stackSlides(i,t,r);n.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:0,visibility:"visible",display:"block"});t.animIn={opacity:1};t.animOut={opacity:0}}},fadeout:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:1,visibility:"visible",display:"block"});t.animOut={opacity:0}}},scrollHorz:{before:function(n,t,i,r){n.API.stackSlides(t,i,r);var u=n.container.css("overflow","hidden").width();n.cssBefore={left:r?u:-u,top:0,opacity:1,visibility:"visible",display:"block"};n.cssAfter={zIndex:n._maxZ-2,left:0};n.animIn={left:0};n.animOut={left:r?-u:u}}}};n.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:undefined,manualSpeed:undefined,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0};n(document).ready(function(){n(n.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),function(n){"use strict";function t(t,i){var f,o,e,r=i.autoHeight;if(r=="container")o=n(i.slides[i.currSlide]).outerHeight(),i.container.height(o);else if(i._autoHeightRatio)i.container.height(i.container.width()/i._autoHeightRatio);else if(r==="calc"||n.type(r)=="number"&&r>=0){if(e=r==="calc"?u(t,i):r>=i.slides.length?0:r,e==i._sentinelIndex)return;i._sentinelIndex=e;i._sentinel&&i._sentinel.remove();f=n(i.slides[e].cloneNode(!0));f.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel");f.css({position:"static",visibility:"hidden",display:"block"}).prependTo(i.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active");f.find("*").css("visibility","hidden");i._sentinel=f}}function u(t,i){var r=0,u=-1;return i.slides.each(function(t){var i=n(this).height();i>u&&(u=i,r=t)}),r}function i(t,i,r,u){var f=n(u).outerHeight();i.container.animate({height:f},i.autoHeightSpeed,i.autoHeightEasing)}function r(u,f){f._autoHeightOnResize&&(n(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null);f.container.off("cycle-slide-added cycle-slide-removed",t);f.container.off("cycle-destroyed",r);f.container.off("cycle-before",i);f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}n.extend(n.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null});n(document).on("cycle-initialized",function(u,f){function c(){t(u,f)}var o=f.autoHeight,s=n.type(o),h=null,e;if(s==="string"||s==="number"){f.container.on("cycle-slide-added cycle-slide-removed",t);f.container.on("cycle-destroyed",r);if(o=="container")f.container.on("cycle-before",i);else s==="string"&&/\d+\:\d+/.test(o)&&(e=o.match(/(\d+)\:(\d+)/),e=e[1]/e[2],f._autoHeightRatio=e);if(s!=="number"){f._autoHeightOnResize=function(){clearTimeout(h);h=setTimeout(c,50)};n(window).on("resize orientationchange",f._autoHeightOnResize)}setTimeout(c,30)}})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}<\/div><div>{{desc}}<\/div>",captionModule:"caption"});n(document).on("cycle-update-view",function(t,i,r,u){if(i.captionModule==="caption")n.each(["caption","overlay"],function(){var t=this,f=r[t+"Template"],n=i.API.getComponent(t);n.length&&f?(n.html(i.API.tmpl(f,r,i,u)),n.show()):n.hide()})});n(document).on("cycle-destroyed",function(t,i){var r;n.each(["caption","overlay"],function(){var n=this,t=i[n+"Template"];i[n]&&t&&(r=i.API.getComponent("caption"),r.empty())})})}(jQuery),function(n){"use strict";var t=n.fn.cycle;n.fn.cycle=function(i){var r,f,u,e=n.makeArray(arguments);return n.type(i)=="number"?this.cycle("goto",i):n.type(i)=="string"?this.each(function(){var o;if(r=i,u=n(this).data("cycle.opts"),u===undefined){t.log('slideshow must be initialized before sending commands; "'+r+'" ignored');return}if(r=r=="goto"?"jump":r,f=u.API[r],n.isFunction(f))return o=n.makeArray(e),o.shift(),f.apply(u.API,o);t.log("unknown command: ",r)}):t.apply(this,arguments)};n.extend(n.fn.cycle,t);n.extend(t.API,{next:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&((t=n.reverse?-1:1,n.allowWrap===!1&&n.currSlide+t>=n.slideCount)||(n.API.advanceSlide(t),n.API.trigger("cycle-next",[n]).log("cycle-next")))},prev:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&((t=n.reverse?1:-1,n.allowWrap===!1&&n.currSlide+t<0)||(n.API.advanceSlide(t),n.API.trigger("cycle-prev",[n]).log("cycle-prev")))},destroy:function(){this.stop();var t=this.opts(),i=n.isFunction(n._data)?n._data:n.noop;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stop();t.API.trigger("cycle-destroyed",[t]).log("cycle-destroyed");t.container.removeData();i(t.container[0],"parsedAttrs",!1);t.retainStylesOnDestroy||(t.container.removeAttr("style"),t.slides.removeAttr("style"),t.slides.removeClass(t.slideActiveClass));t.slides.each(function(){var r=n(this);r.removeData();r.removeClass(t.slideClass);i(this,"parsedAttrs",!1)})},jump:function(n,t){var u,i=this.opts(),r;if(!i.busy||i.manualTrump){if(r=parseInt(n,10),isNaN(r)||r<0||r>=i.slides.length){i.API.log("goto: invalid slide index: "+r);return}if(r==i.currSlide){i.API.log("goto: skipping, already on slide",r);return}i.nextSlide=r;clearTimeout(i.timeoutId);i.timeoutId=0;i.API.log("goto: ",r," (zero-index)");u=i.currSlide<i.nextSlide;i._tempFx=t;i.API.prepareTx(!0,u)}},stop:function(){var t=this.opts(),i=t.container;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stopTransition();t.pauseOnHover&&(t.pauseOnHover!==!0&&(i=n(t.pauseOnHover)),i.off("mouseenter mouseleave"));t.API.trigger("cycle-stopped",[t]).log("cycle-stopped")},reinit:function(){var n=this.opts();n.API.destroy();n.container.cycle()},remove:function(t){for(var i=this.opts(),r,u,e=[],o=1,f=0;f<i.slides.length;f++)r=i.slides[f],f==t?u=r:(e.push(r),n(r).data("cycle.opts").slideNum=o,o++);u&&(i.slides=n(e),i.slideCount--,n(u).remove(),t==i.currSlide?i.API.advanceSlide(1):t<i.currSlide?i.currSlide--:i.currSlide++,i.API.trigger("cycle-slide-removed",[i,t,u]).log("cycle-slide-removed"),i.API.updateView())}});n(document).on("click.cycle","[data-cycle-cmd]",function(t){t.preventDefault();var i=n(this),r=i.data("cycle-cmd"),u=i.data("cycle-context")||".cycle-slideshow";n(u).cycle(r,i.data("cycle-arg"))})}(jQuery),function(n){"use strict";function t(t,i){var r;if(t._hashFence){t._hashFence=!1;return}r=window.location.hash.substring(1);t.slides.each(function(u){if(n(this).data("cycle-hash")==r){if(i===!0)t.startingSlide=u;else{var f=t.currSlide<u;t.nextSlide=u;t.API.prepareTx(!0,f)}return!1}})}n(document).on("cycle-pre-initialize",function(i,r){t(r,!0);r._onHashChange=function(){t(r,!1)};n(window).on("hashchange",r._onHashChange)});n(document).on("cycle-update-view",function(n,t,i){i.hash&&"#"+i.hash!=window.location.hash&&(t._hashFence=!0,window.location.hash=i.hash)});n(document).on("cycle-destroyed",function(t,i){i._onHashChange&&n(window).off("hashchange",i._onHashChange)})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{loader:!1});n(document).on("cycle-bootstrap",function(t,i){function u(t,u){function s(t){var o;i.loader=="wait"?(e.push(t),f===0&&(e.sort(h),r.apply(i.API,[e,u]),i.container.removeClass("cycle-loading"))):(o=n(i.slides[i.currSlide]),r.apply(i.API,[t,u]),o.show(),i.container.removeClass("cycle-loading"))}function h(n,t){return n.data("index")-t.data("index")}var e=[],o,f;if(n.type(t)=="string")t=n.trim(t);else if(n.type(t)==="array")for(o=0;o<t.length;o++)t[o]=n(t[o])[0];(t=n(t),f=t.length,f)&&(t.css("visibility","hidden").appendTo("body").each(function(t){function l(){--c==0&&(--f,s(o))}var c=0,o=n(this),h=o.is("img")?o:o.find("img");if(o.data("index",t),h=h.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),!h.length){--f;e.push(o);return}c=h.length;h.each(function(){if(this.complete)l();else n(this).load(function(){l()}).on("error",function(){--c==0&&(i.API.log("slide skipped; img not loaded:",this.src),--f==0&&i.loader=="wait"&&r.apply(i.API,[e,u]))})})}),f&&i.container.addClass("cycle-loading"))}var r;i.loader&&(r=i.API.add,i.API.add=u)})}(jQuery),function(n){"use strict";function t(t,i,r){var u,f=t.API.getComponent("pager");f.each(function(){var f=n(this),e;i.pagerTemplate?(e=t.API.tmpl(i.pagerTemplate,i,t,r[0]),u=n(e).appendTo(f)):u=f.children().eq(t.slideCount-1);u.on(t.pagerEvent,function(n){t.pagerEventBubble||n.preventDefault();t.API.page(f,n.currentTarget)})})}function i(n,t){var i=this.opts();if(!i.busy||i.manualTrump){var u=n.children().index(t),r=u,f=i.currSlide<r;i.currSlide!=r&&(i.nextSlide=r,i._tempFx=i.pagerFx,i.API.prepareTx(!0,f),i.API.trigger("cycle-pager-activated",[i,n,t]))}}n.extend(n.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:undefined,pagerTemplate:"<span>&bull;<\/span>"});n(document).on("cycle-bootstrap",function(n,i,r){r.buildPagerLink=t});n(document).on("cycle-slide-added",function(n,t,r,u){t.pager&&(t.API.buildPagerLink(t,r,u),t.API.page=i)});n(document).on("cycle-slide-removed",function(t,i,r){if(i.pager){var u=i.API.getComponent("pager");u.each(function(){var t=n(this);n(t.children()[r]).remove()})}});n(document).on("cycle-update-view",function(t,i){var r;i.pager&&(r=i.API.getComponent("pager"),r.each(function(){n(this).children().removeClass(i.pagerActiveClass).eq(i.currSlide).addClass(i.pagerActiveClass)}))});n(document).on("cycle-destroyed",function(n,t){var i=t.API.getComponent("pager");i&&(i.children().off(t.pagerEvent),t.pagerTemplate&&i.empty())})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1});n(document).on("cycle-initialized",function(n,t){t.API.getComponent("next").on(t.nextEvent,function(n){n.preventDefault();t.API.next()});t.API.getComponent("prev").on(t.prevEvent,function(n){n.preventDefault();t.API.prev()});if(t.swipe){var i=t.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",r=t.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";t.container.on(i,function(){t._tempFx=t.swipeFx;t.API.next()});t.container.on(r,function(){t._tempFx=t.swipeFx;t.API.prev()})}});n(document).on("cycle-update-view",function(n,t){if(!t.allowWrap){var i=t.disabledClass,r=t.API.getComponent("next"),u=t.API.getComponent("prev"),f=t._prevBoundry||0,e=t._nextBoundry!==undefined?t._nextBoundry:t.slideCount-1;t.currSlide==e?r.addClass(i).prop("disabled",!0):r.removeClass(i).prop("disabled",!1);t.currSlide===f?u.addClass(i).prop("disabled",!0):u.removeClass(i).prop("disabled",!1)}});n(document).on("cycle-destroyed",function(n,t){t.API.getComponent("prev").off(t.nextEvent);t.API.getComponent("next").off(t.prevEvent);t.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{progressive:!1});n(document).on("cycle-pre-initialize",function(t,i){if(i.progressive){var u=i.API,f=u.next,s=u.prev,e=u.prepareTx,h=n.type(i.progressive),r,o;if(h=="array")r=i.progressive;else if(n.isFunction(i.progressive))r=i.progressive(i);else if(h=="string"){if(o=n(i.progressive),r=n.trim(o.html()),!r)return;if(/^(\[)/.test(r))try{r=n.parseJSON(r)}catch(c){u.log("error parsing progressive slides",c);return}else r=r.split(new RegExp(o.data("cycle-split")||"\n")),r[r.length-1]||r.pop()}e&&(u.prepareTx=function(n,t){var f,u;if(n||r.length===0){e.apply(i.API,[n,t]);return}if(t&&i.currSlide==i.slideCount-1){u=r[0];r=r.slice(1);i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.API.advanceSlide(1)},50)});i.API.add(u)}else if(t||i.currSlide!==0)e.apply(i.API,[n,t]);else{f=r.length-1;u=r[f];r=r.slice(0,f);i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.currSlide=1;t.API.advanceSlide(-1)},50)});i.API.add(u,!0)}});f&&(u.next=function(){var n=this.opts(),t;if(r.length&&n.currSlide==n.slideCount-1){t=r[0];r=r.slice(1);n.container.one("cycle-slide-added",function(n,t){f.apply(t.API);t.container.removeClass("cycle-loading")});n.container.addClass("cycle-loading");n.API.add(t)}else f.apply(n.API)});s&&(u.prev=function(){var n=this.opts(),t,i;if(r.length&&n.currSlide===0){t=r.length-1;i=r[t];r=r.slice(0,t);n.container.one("cycle-slide-added",function(n,t){t.currSlide=1;t.API.advanceSlide(-1);t.container.removeClass("cycle-loading")});n.container.addClass("cycle-loading");n.API.add(i,!0)}else s.apply(n.API)})}})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"});n.extend(n.fn.cycle.API,{tmpl:function(t,i){var u=new RegExp(i.tmplRegex||n.fn.cycle.defaults.tmplRegex,"g"),r=n.makeArray(arguments);return r.shift(),t.replace(u,function(t,i){for(var o,f,u,s=i.split("."),e=0;e<r.length;e++)if(f=r[e],f){if(s.length>1)for(u=f,o=0;o<s.length;o++)f=u,u=u[s[o]]||i;else u=f[i];if(n.isFunction(u))return u.apply(f,r);if(u!==undefined&&u!==null&&u!=i)return u}return i})}})}(jQuery)