/* * Cache JS (UTF-8) * Généré le 18/07/2018 17:50:21 */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement){cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"":"")+""),cl.close()}d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border"){for(;e=0===c})}function S(a){return !a||!a.parentNode||a.parentNode.nodeType===11}function K(){return !0}function J(){return !1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b])){continue}if(b!=="toJSON"){return !1}}return !0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?+d:j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else{d=b}}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a){return this}if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2]){return f.find(a)}this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return !d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a)){return f.ready(a)}a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0){return}A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete"){return setTimeout(e.ready,1)}if(c.addEventListener){c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1)}else{if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a!=null&&a==a.window},isNumeric:function(a){return !isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a)){return !1}try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf")){return !1}}catch(c){return !1}var d;for(d in a){}return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a){return !1}return !0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b){return null}b=e.trim(b);if(a.JSON&&a.JSON.parse){return a.JSON.parse(b)}if(n.test(b.replace(o,"@").replace(p,"]").replace(q,""))){return(new Function("return "+b))()}e.error("Invalid JSON: "+b)},parseXML:function(c){if(typeof c!="string"||!c){return null}var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a){if(c.apply(a[f],d)===!1){break}}}else{for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k){for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
a",d=p.getElementsByTagName("*"),e=p.getElementsByTagName("a")[0];if(!d||!d.length||!e){return{}}g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=p.getElementsByTagName("input")[0],b={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:p.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,pixelMargin:!0},f.boxModel=b.boxModel=c.compatMode==="CSS1Compat",i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete p.test}catch(r){b.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){b.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),i.setAttribute("name","t"),p.appendChild(i),j=c.createDocumentFragment(),j.appendChild(p.lastChild),b.checkClone=j.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,j.removeChild(i),j.appendChild(p);if(p.attachEvent){for(n in {submit:1,change:1,focusin:1}){m="on"+n,o=m in p,o||(p.setAttribute(m,"return;"),o=typeof p[m]=="function"),b[n+"Bubbles"]=o}}j.removeChild(p),j=g=h=p=i=null,f(function(){var d,e,g,h,i,j,l,m,n,q,r,s,t,u=c.getElementsByTagName("body")[0];!u||(m=1,t="padding:0;margin:0;border:",r="position:absolute;top:0;left:0;width:1px;height:1px;",s=t+"0;visibility:hidden;",n="style='"+r+t+"5px solid #000;",q="
",d=c.createElement("div"),d.style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:"+m+"px",u.insertBefore(d,u.firstChild),p=c.createElement("div"),d.appendChild(p),p.innerHTML="
t
",k=p.getElementsByTagName("td"),o=k[0].offsetHeight===0,k[0].style.display="",k[1].style.display="none",b.reliableHiddenOffsets=o&&k[0].offsetHeight===0,a.getComputedStyle&&(p.innerHTML="",l=c.createElement("div"),l.style.width="0",l.style.marginRight="0",p.style.width="2px",p.appendChild(l),b.reliableMarginRight=(parseInt((a.getComputedStyle(l,null)||{marginRight:0}).marginRight,10)||0)===0),typeof p.style.zoom!="undefined"&&(p.innerHTML="",p.style.width=p.style.padding="1px",p.style.border=0,p.style.overflow="hidden",p.style.display="inline",p.style.zoom=1,b.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.style.overflow="visible",p.innerHTML="
",b.shrinkWrapBlocks=p.offsetWidth!==3),p.style.cssText=r+s,p.innerHTML=q,e=p.firstChild,g=e.firstChild,i=e.nextSibling.firstChild.firstChild,j={doesNotAddBorder:g.offsetTop!==5,doesAddBorderForTableAndCells:i.offsetTop===5},g.style.position="fixed",g.style.top="20px",j.fixedPosition=g.offsetTop===20||g.offsetTop===15,g.style.position=g.style.top="",e.style.overflow="hidden",e.style.position="relative",j.subtractsBorderForOverflowNotVisible=g.offsetTop===-5,j.doesNotIncludeMarginInBodyOffset=u.offsetTop!==m,a.getComputedStyle&&(p.style.marginTop="1%",b.pixelMargin=(a.getComputedStyle(p,null)||{marginTop:0}).marginTop!=="1%"),typeof d.style.zoom!="undefined"&&(d.style.zoom=1),u.removeChild(d),l=p=d=null,f.extend(b,j))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return !!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b){return}n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function"){e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c)}g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c]){return g.events}k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k]){return}if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e1,null,!1)},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){var d=2;typeof a!="string"&&(c=a,a="fx",d--);if(arguments.length1)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,f.prop,a,b,arguments.length>1)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a)){return this.each(function(b){f(this).addClass(a.call(this,b,this.className))})}if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c-1){return !0}}return !1},val:function(a){var c,d,e,g=this[0];if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.type]||f.valHooks[this.nodeName.toLowerCase()];if(!c||!("set" in c)||c.set(this,h,"value")===b){this.value=h}}})}if(g){c=f.valHooks[g.type]||f.valHooks[g.nodeName.toLowerCase()];if(c&&"get" in c&&(d=c.get(g,"value"))!==b){return d}d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return !b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0){return null}c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn){return f(a)[c](d)}if(typeof a.getAttribute=="undefined"){return f.prop(a,c,d)}i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set" in h&&i&&(g=h.set(a,d,c))!==b){return g}a.setAttribute(c,""+d);return d}if(h&&"get" in h&&i&&(g=h.get(a,c))!==null){return g}g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h,i=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;i=0}}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/(?:^|\s)hover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler,g=p.selector),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h]){return}c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j){j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0)}return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1){return}r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode){r.push([m,s]),n=m}n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&j.push({elem:this,matches:d.slice(e)});for(k=0;k0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9){return[]}if(!b||typeof b!="string"){return e}var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b)){if(w.length===2&&o.relative[w[0]]){j=y(w[0]+w[1],d,f)}else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length){b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}}}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length){q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}}else{k=w=[]}}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]"){if(!u){e.push.apply(e,k)}else{if(d&&d.nodeType===1){for(t=0;k[t]!=null;t++){k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t])}}else{for(t=0;k[t]!=null;t++){k[t]&&k[t].nodeType===1&&e.push(j[t])}}}}else{s(k,e)}l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h){for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a){return[]}for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1))}return !1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else{a[2]&&m.error(a[0])}a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not"){if((a.exec(b[3])||"").length>1||/^\w/.test(b[3])){b[3]=m(b[3],null,null,c)}else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return !1}}else{if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0])){return !0}}return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return !!a.firstChild},empty:function(a){return !a.firstChild},has:function(a,b,c){return !!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f){return f(a,c,b,d)}if(e==="contains"){return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0}if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f){return f(a,c,b,d)}}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match){o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q))}o.match.globalPOS=p;var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length=="number"){for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++){c[e].nodeType===1&&d.push(c[e])}c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1]){return s(e.getElementsByTagName(b),f)}if(h[2]&&o.find.CLASS&&e.getElementsByClassName){return s(e.getElementsByClassName(h[2]),f)}}if(e.nodeType===9){if(b==="body"&&e.body){return s([e.body],f)}if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode){return s([],f)}if(i.id===h[3]){return s([i],f)}}try{return s(e.querySelectorAll(b),f)}catch(j){}}else{if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p){return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}}catch(r){}finally{l||k.removeAttribute("id")}}}}return a(b,e,f,g)};for(var e in a){m[e]=a[e]}b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a)){try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11){return f}}}catch(g){}}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1){return}o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c){return b.getElementsByClassName(a[1])}},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return !!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return !1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a)){f+=d[0],a=a.replace(o.match.PSEUDO,"")}a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0){for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11){break}}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a){return this[0]&&this[0].parentNode?this.prevAll().length:-1}if(typeof a=="string"){return f.inArray(this[0],f(a))}return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d))){g.nodeType===1&&e.push(g),g=g[c]}return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c]){if(a.nodeType===1&&++e===b){break}}return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling){a.nodeType===1&&a!==b&&c.push(a)}return c}});var V="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/]","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){return f.access(this,function(a){return a===b?f.text(this):this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))},null,a,arguments.length)},wrapAll:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapAll(a.call(this,b))})}if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1){a=a.firstChild}return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapInner(a.call(this,b))})}return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)})}if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})}if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++){if(!a||f.filter(a,[d]).length){!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d)}}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild){b.removeChild(b.firstChild)}}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){return f.access(this,function(a){var c=this[0]||{},d=0,e=this.length;if(a===b){return c.nodeType===1?c.innerHTML.replace(W,""):null}if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(;d1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g){e[g]&&bk(d[g],e[g])}}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g){bj(d[g],e[g])}}}d=e=null;return h},clean:function(a,b,d,e){var g,h,i,j=[];b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);for(var k=0,l;(l=a[k])!=null;k++){typeof l=="number"&&(l+="");if(!l){continue}if(typeof l=="string"){if(!_.test(l)){l=b.createTextNode(l)}else{l=l.replace(Y,"<$1>");var m=(Z.exec(l)||["",""])[1].toLowerCase(),n=bg[m]||bg._default,o=n[0],p=b.createElement("div"),q=bh.childNodes,r;b===c?bh.appendChild(p):U(b).appendChild(p),p.innerHTML=n[1]+l+n[2];while(o--){p=p.lastChild}if(!f.support.tbody){var s=$.test(l),t=m==="table"&&!s?p.firstChild&&p.firstChild.childNodes:n[1]===""&&!s?p.childNodes:[];for(i=t.length-1;i>=0;--i){f.nodeName(t[i],"tbody")&&!t[i].childNodes.length&&t[i].parentNode.removeChild(t[i])}}!f.support.leadingWhitespace&&X.test(l)&&p.insertBefore(b.createTextNode(X.exec(l)[0]),p.firstChild),l=p.childNodes,p&&(p.parentNode.removeChild(p),q.length>0&&(r=q[q.length-1],r&&r.parentNode&&r.parentNode.removeChild(r)))}}var u;if(!f.support.appendChecked){if(l[0]&&typeof(u=l.length)=="number"){for(i=0;i1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get" in k&&(g=k.get(a,!1,e))!==b){return g}return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d)){return}h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set" in k)||(d=k.set(a,d))!==b){try{j[c]=d}catch(l){}}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get" in g&&(e=g.get(a,!0,d))!==b){return e}if(by){return by(a,c)}},swap:function(a,b,c){var d={},e,f;for(f in b){d[f]=a.style[f],a.style[f]=b[f]}e=c.call(a);for(f in b){a.style[f]=d[f]}return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c){return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})}},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter){return}}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return !f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++){f[a+bx[d]+b]=e[d]||e[d-2]||e[0]}return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/)<[^<]*)*<\/script>/gi,bN=/^(?:select|textarea)/i,bO=/\s+/,bP=/([?&])_=[^&]*/,bQ=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bR=f.fn.load,bS={},bT={},bU,bV,bW=["*/"]+["*"];try{bU=e.href}catch(bX){bU=c.createElement("a"),bU.href="",bU=bU.href}bV=bQ.exec(bU.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bR){return bR.apply(this,arguments)}if(!this.length){return this}var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bM,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bN.test(this.nodeName)||bH.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bE,"\r\n")}}):{name:b.name,value:c.replace(bE,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b$(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b$(a,b);return a},ajaxSettings:{url:bU,isLocal:bI.test(bV[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bY(bS),ajaxTransport:bY(bT),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?ca(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified")){f.lastModified[k]=y}if(z=v.getResponseHeader("Etag")){f.etag[k]=z}}if(a===304){w="notmodified",o=!0}else{try{r=cb(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}}else{u=w;if(!w||a){w="error",a<0&&(a=0)}}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bG.exec(n)){o[c[1].toLowerCase()]=c[2]}}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2){for(b in a){j[b]=[j[b],a[b]]}}else{b=a[v.status],v.then(b,b)}}return this},d.url=((a||d.url)+"").replace(bF,"").replace(bK,bV[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bO),d.crossDomain==null&&(r=bQ.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bV[1]&&r[2]==bV[2]&&(r[3]||(r[1]==="http:"?80:443))==(bV[3]||(bV[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bZ(bS,d,c,v);if(s===2){return !1}t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bJ.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bL.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bP,"$1_="+x);d.url=y+(y===d.url?(bL.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bW+"; q=0.01":""):d.accepts["*"]);for(u in d.headers){v.setRequestHeader(u,d.headers[u])}if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return !1}for(u in {success:1,error:1,complete:1}){v[u](d[u])}p=bZ(bT,d,c,v);if(!p){w(-1,"No Transport")}else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2){w(-1,z)}else{throw z}}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a)){f.each(a,function(){e(this.name,this.value)})}else{for(var g in a){b_(g,a[g],c,e)}}return d.join("&").replace(bC,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cc=f.now(),cd=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cc++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=typeof b.data=="string"&&/^application\/x\-www\-form\-urlencoded/.test(b.contentType);if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(cd.test(b.url)||e&&cd.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(cd,l),b.url===j&&(e&&(k=k.replace(cd,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState)){d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")}},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var ce=a.ActiveXObject?function(){for(var a in cg){cg[a](0,1)}}:!1,cf=0,cg;f.ajaxSettings.xhr=a.ActiveXObject?function(){return !this.isLocal&&ch()||ci()}:ch,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials" in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields){for(j in c.xhrFields){h[j]=c.xhrFields[j]}}c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e){h.setRequestHeader(j,e[j])}}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,ce&&delete cg[i]);if(e){h.readyState!==4&&h.abort()}else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n);try{m.text=h.responseText}catch(a){}try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cf,ce&&(cg||(cg={},f(a).unload(ce)),cg[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cj={},ck,cl,cm=/^(?:toggle|show|hide)$/,cn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,co,cp=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cq;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0){return this.animate(ct("show",3),a,b,c)}for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties){i.animatedProperties[b]!==!0&&(g=!1)}if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show){for(b in i.animatedProperties){f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0)}}d=i.complete,d&&(i.complete=!1,d.call(h))}return !1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return !0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using" in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0]){return null}var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static"){a=a.offsetParent}return a})}}),f.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,c){var d=/Y/.test(c);f.fn[a]=function(e){return f.access(this,function(a,e,g){var h=cy(a);if(g===b){return h?c in h?h[c]:f.support.boxModel&&h.document.documentElement[e]||h.document.body[e]:a[e]}h?h.scrollTo(d?f(h).scrollLeft():g,d?g:f(h).scrollTop()):a[e]=g},a,e,arguments.length,null)}}),f.each({Height:"height",Width:"width"},function(a,c){var d="client"+a,e="scroll"+a,g="offset"+a;f.fn["inner"+a]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,c,"padding")):this[c]():null},f.fn["outer"+a]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,c,a?"margin":"border")):this[c]():null},f.fn[c]=function(a){return f.access(this,function(a,c,h){var i,j,k,l;if(f.isWindow(a)){i=a.document,j=i.documentElement[d];return f.support.boxModel&&j||i.body&&i.body[d]||j}if(a.nodeType===9){i=a.documentElement;if(i[d]>=i[e]){return i[d]}return Math.max(a.body[e],i[e],a.body[g],i[g])}if(h===b){k=f.css(a,c),l=parseFloat(k);return f.isNumeric(l)?l:k}f(a).css(c,h)},c,a,arguments.length,null)}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);(function(M,o,aa){var N={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:"98%",minWidth:"250",height:false,initialHeight:"450",innerHeight:false,maxHeight:"98%",minHeight:"170",scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,video:false,fastIframe:true,photo:false,href:false,title:false,rel:false,opacity:0.5,preloading:true,current:"image {current} sur {total}",previous:"précédent",next:"suivant",close:"Fermer",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:false,returnFocus:true,reposition:true,loop:true,slideshow:true,slideshowAuto:false,slideshowSpeed:2500,slideshowStart:"Démarrer le diaporama",slideshowStop:"Arrêter le diaporama",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true,top:false,bottom:false,left:false,right:false,fixed:false,data:undefined},A="colorbox",W="cbox",u=W+"Element",Z=W+"_open",f=W+"_load",Y=W+"_complete",x=W+"_cleanup",ag=W+"_closed",k=W+"_purge",y=!M.support.opacity&&!M.support.style,aj=y&&!aa.XMLHttpRequest,ae=W+"_IE6",T,ak,al,e,K,s,c,S,d,ad,Q,m,j,r,w,ab,v,V,C,E,ai,am,p,h,b,z,L,q,G,ac,P,D,O,ah="div",af;function J(an,aq,ap){var ao=o.createElement(an);if(aq){ao.id=W+aq}if(ap){ao.style.cssText=ap}return M(ao)}function H(ao){var an=d.length,ap=(L+ao)%an;return(ap<0)?an+ap:ap}function R(an,ao){return Math.round((/%/.test(an)?((ao==="x"?n():U())/100):1)*parseInt(an,10))}function F(an){return ai.photo||/\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i.test(an)}function n(){return aa.innerWidth||ad.width()}function U(){return aa.innerHeight||ad.height()}function X(){var an,ao=M.data(z,A);if(ao==null){ai=M.extend({},N);if(console&&console.log){console.log("Error: cboxElement missing settings object")}}else{ai=M.extend({},ao)}for(an in ai){if(M.isFunction(ai[an])&&an.slice(0,2)!=="on"){ai[an]=ai[an].call(z)}}ai.rel=ai.rel||z.rel||"nofollow";ai.href=ai.href||M(z).attr("href");ai.title=ai.title||z.title;if(typeof ai.href==="string"){ai.href=M.trim(ai.href)}}function I(an,ao){M.event.trigger(an);if(ao){ao.call(z)}}function a(aq){arrayRelated=new Array();arrayToRemove=new Array();var ao=d.index(aq);arrayRelated.push(aq.toString());for(var ap=0;ap0){for(indexRemove in arrayToRemove){d.splice(arrayToRemove[indexRemove],1)}}ao=d.index(aq);return ao}function B(){var ao,aq=W+"Slideshow_",ar="click."+W,at,ap,an;if(ai.slideshow&&d[1]){at=function(){ab.text(ai.slideshowStop).unbind(ar).bind(Y,function(){if(ai.loop||d[L+1]){ao=setTimeout(O.next,ai.slideshowSpeed)}}).bind(f,function(){clearTimeout(ao)}).one(ar+" "+x,ap);ak.removeClass(aq+"off").addClass(aq+"on");ao=setTimeout(O.next,ai.slideshowSpeed)};ap=function(){clearTimeout(ao);ab.text(ai.slideshowStart).unbind([Y,f,x,ar].join(" ")).one(ar,function(){O.next();at()});ak.removeClass(aq+"on").addClass(aq+"off")};if(ai.slideshowAuto){at()}else{ap()}}else{ak.removeClass(aq+"off "+aq+"on")}}function g(an){if(!P){z=an;X();d=M(z);L=0;if(ai.rel!=="nofollow"){d=M("."+u).filter(function(){var ap=M.data(this,A),ao;if(ap){ao=ap.rel||this.rel}return(ao===ai.rel)});if(d.length>1){L=a(z)}else{L=d.index(z)}if(L===-1){d=d.add(z);L=d.length-1}}if(!G){G=ac=true;ak.show();if(ai.returnFocus){M(z).blur().one(ag,function(){M(this).focus()})}T.css({opacity:+ai.opacity,cursor:ai.overlayClose?"pointer":"auto"}).show();ai.w=R(ai.initialWidth,"x");ai.h=R(ai.initialHeight,"y");O.position();if(aj){ad.bind("resize."+ae+" scroll."+ae,function(){T.css({width:n(),height:U(),top:ad.scrollTop(),left:ad.scrollLeft()})}).trigger("resize."+ae)}I(Z,ai.onOpen);E.add(r).hide();C.html(ai.close).show()}O.load(true)}}function t(){if(!ak&&o.body){af=false;ad=M(aa);ak=J(ah).attr({id:A,"class":y?W+(aj?"IE6":"IE"):""}).hide();T=J(ah,"Overlay",aj?"position:absolute":"").hide();j=J(ah,"LoadingOverlay").add(J(ah,"LoadingGraphic"));al=J(ah,"Wrapper");e=J(ah,"Content").append(Q=J(ah,"LoadedContent","width:0; height:0; overflow:hidden"),r=J(ah,"Title"),w=J(ah,"Current"),v=J(ah,"Next"),V=J(ah,"Previous"),ab=J(ah,"Slideshow").bind(Z,B),C=J(ah,"Close"));al.append(J(ah).append(J(ah,"TopLeft"),K=J(ah,"TopCenter"),J(ah,"TopRight")),J(ah,false,"clear:left").append(s=J(ah,"MiddleLeft"),e,c=J(ah,"MiddleRight")),J(ah,false,"clear:left").append(J(ah,"BottomLeft"),S=J(ah,"BottomCenter"),J(ah,"BottomRight"))).find("div div").css({"float":"left"});m=J(ah,false,"position:absolute; width:9999px; visibility:hidden; display:none");E=v.add(V).add(w).add(ab);M(o.body).append(T,ak.append(al,m))}}function l(){if(ak){if(!af){af=true;am=K.height()+S.height()+e.outerHeight(true)-e.height();p=s.width()+c.width()+e.outerWidth(true)-e.width();h=Q.outerHeight(true);b=Q.outerWidth(true);ak.css({"padding-bottom":am,"padding-right":p});v.click(function(){O.next()});V.click(function(){O.prev()});C.click(function(){O.close()});T.click(function(){if(ai.overlayClose){O.close()}});M(o).bind("keydown."+W,function(ao){var an=ao.keyCode;if(G&&ai.escKey&&an===27){ao.preventDefault();O.close()}if(G&&ai.arrowKey&&d[1]){if(an===37){ao.preventDefault();V.click()}else{if(an===39){ao.preventDefault();v.click()}}}});M("."+u,o).live("click",function(an){if(!(an.which>1||an.shiftKey||an.altKey||an.metaKey)){an.preventDefault();g(this)}})}return true}return false}if(M.colorbox){return}M(t);O=M.fn[A]=M[A]=function(an,ap){var ao=this;an=an||{};t();if(l()){if(!ao[0]){if(ao.selector){return ao}ao=M("");an.open=true}if(ap){an.onComplete=ap}ao.each(function(){M.data(this,A,M.extend({},M.data(this,A)||N,an))}).addClass(u);if((M.isFunction(an.open)&&an.open.call(ao))||an.open){g(ao[0])}}return ao};O.position=function(ap,ar){var au,aw=0,ao=0,at=ak.offset(),an,aq;ad.unbind("resize."+W);ak.css({top:-90000,left:-90000});an=ad.scrollTop();aq=ad.scrollLeft();if(ai.fixed&&!aj){at.top-=an;at.left-=aq;ak.css({position:"fixed"})}else{aw=an;ao=aq;ak.css({position:"absolute"})}if(ai.right!==false){ao+=Math.max(n()-ai.w-b-p-R(ai.right,"x"),0)}else{if(ai.left!==false){ao+=R(ai.left,"x")}else{ao+=Math.round(Math.max(n()-ai.w-b-p,0)/2)}}if(ai.bottom!==false){aw+=Math.max(U()-ai.h-h-am-R(ai.bottom,"y"),0)}else{if(ai.top!==false){aw+=R(ai.top,"y")}else{aw+=Math.round(Math.max(U()-ai.h-h-am,0)/2)}}ak.css({top:at.top,left:at.left});ap=(ak.width()===ai.w+b&&ak.height()===ai.h+h)?0:ap||0;al[0].style.width=al[0].style.height="9999px";function av(ax){K[0].style.width=S[0].style.width=e[0].style.width=ax.style.width;e[0].style.height=s[0].style.height=c[0].style.height=ax.style.height}au={width:ai.w+b,height:ai.h+h,top:aw,left:ao};if(ap===0){ak.css(au)}ak.dequeue().animate(au,{duration:ap,complete:function(){av(this);ac=false;al[0].style.width=(ai.w+b+p)+"px";al[0].style.height=(ai.h+h+am)+"px";if(ai.reposition){setTimeout(function(){ad.bind("resize."+W,O.position)},1)}if(ar){ar()}},step:function(){av(this)}})};O.resize=function(an){if(G){an=an||{};if(an.width){ai.w=R(an.width,"x")-b-p}if(an.innerWidth){ai.w=R(an.innerWidth,"x")}Q.css({width:ai.w});if(an.height){ai.h=R(an.height,"y")-h-am}if(an.innerHeight){ai.h=R(an.innerHeight,"y")}if(!an.innerHeight&&!an.height){Q.css({height:"auto"});ai.h=Q.height()}Q.css({height:ai.h});O.position(ai.transition==="none"?0:ai.speed)}};O.prep=function(ao){if(!G){return}var ar,ap=ai.transition==="none"?0:ai.speed;Q.remove();Q=J(ah,"LoadedContent").append(ao);function an(){ai.w=ai.w||Q.width();if(ai.minWidth&&ai.w1){if(typeof ai.current==="string"){w.html(ai.current.replace("{current}",L+1).replace("{total}",aB)).show()}v[(ai.loop||L")[0];ar.name=W+(+new Date());if(y){ar.allowtransparency="true"}M(ar).appendTo(Q)});an(" ")}else{if(ai.iframe){an(" ")}else{if(ai.html){an(ai.html)}else{if(F(ao)){M(q=new Image()).addClass(W+"Photo").error(function(){ai.title=false;an(J(ah,"Error").html(ai.imgError))}).load(function(){var ar;q.onload=null;if(ai.scalePhotos){aq=function(){q.height-=q.height*ar;q.width-=q.width*ar};if(ai.mw&&q.width>ai.mw){ar=(q.width-ai.mw)/q.width;aq()}if(ai.mh&&q.height>ai.mh){ar=(q.height-ai.mh)/q.height;aq()}}if(ai.h||ai.minHeight){q.style.marginTop=Math.max((ai.h||ai.minHeight)-q.height,0)/2+"px"}if(d[1]&&(ai.loop||d[L+1])){q.style.cursor="pointer";q.onclick=function(){O.next()}}if(y){q.style.msInterpolationMode="bicubic"}setTimeout(function(){an(q)},1)});setTimeout(function(){q.src=ao},1)}else{if(ao){m.load(ao,ai.data,function(at,ar,au){an(ar==="error"?J(ah,"Error").html(ai.xhrError):M(this).contents())})}}}}}}};O.next=function(){if(!ac&&d[1]&&(ai.loop||d[L+1])){L=H(1);O.load()}};O.prev=function(){if(!ac&&d[1]&&(ai.loop||L)){L=H(-1);O.load()}};O.close=function(){if(G&&!P){P=true;G=false;I(x,ai.onCleanup);ad.unbind("."+W+" ."+ae);T.fadeTo(200,0);ak.stop().fadeTo(300,0,function(){ak.add(T).css({opacity:1,cursor:"auto"}).hide();I(k);Q.remove();setTimeout(function(){P=false;I(ag,ai.onClosed)},1)})}};O.remove=function(){M([]).add(ak).add(T).remove();ak=null;M("."+u).removeData(A).removeClass(u).die()};O.element=function(){return M(z)};O.settings=N}(jQuery,document,this));(function(c){function b(){this._defaults={pickerClass:"",showOnFocus:true,showTrigger:null,showAnim:"show",showOptions:{},showSpeed:"normal",popupContainer:null,alignment:"bottom",fixedWeeks:false,firstDay:0,calculateWeek:this.iso8601Week,monthsToShow:1,monthsOffset:0,monthsToStep:1,monthsToJump:12,useMouseWheel:false,changeMonth:true,yearRange:"c-10:c+10",shortYearCutoff:"+10",showOtherMonths:false,selectOtherMonths:false,defaultDate:null,selectDefaultDate:false,minDate:null,maxDate:null,dateFormat:"mm/dd/yyyy",autoSize:false,rangeSelect:false,rangeSeparator:" - ",multiSelect:0,multiSeparator:",",onDate:null,onShow:null,onChangeMonthYear:null,onSelect:null,onClose:null,altField:null,altFormat:null,constrainInput:true,commandsAsDateFormat:false,commands:this.commands};this.regional={"":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yyyy",firstDay:0,renderer:this.defaultRenderer,prevText:"<Prev",prevStatus:"Show the previous month",prevJumpText:"<<",prevJumpStatus:"Show the previous year",nextText:"Next>",nextStatus:"Show the next month",nextJumpText:">>",nextJumpStatus:"Show the next year",currentText:"Current",currentStatus:"Show the current month",todayText:"Today",todayStatus:"Show today's month",clearText:"Clear",clearStatus:"Clear all the dates",closeText:"Close",closeStatus:"Close the datepicker",yearStatus:"Change the year",monthStatus:"Change the month",weekText:"Wk",weekStatus:"Week of the year",dayStatus:"Select DD, M d, yyyy",defaultStatus:"Select a date",isRTL:false}};c.extend(this._defaults,this.regional[""]);this._disabled=[]}c.extend(b.prototype,{dataName:"datepick",markerClass:"hasDatepick",_popupClass:"datepick-popup",_triggerClass:"datepick-trigger",_disableClass:"datepick-disable",_coverClass:"datepick-cover",_monthYearClass:"datepick-month-year",_curMonthClass:"datepick-month-",_anyYearClass:"datepick-any-year",_curDoWClass:"datepick-dow-",commands:{prev:{text:"prevText",status:"prevStatus",keystroke:{keyCode:33},enabled:function(e){var d=e.curMinDate();return(!d||c.datepick.add(c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(e.drawDate),1-e.get("monthsToStep"),"m"),e),1),-1,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),-d.get("monthsToStep"),"m"),d),1)},action:function(d){c.datepick.changeMonth(this,-d.get("monthsToStep"))}},prevJump:{text:"prevJumpText",status:"prevJumpStatus",keystroke:{keyCode:33,ctrlKey:true},enabled:function(e){var d=e.curMinDate();return(!d||c.datepick.add(c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(e.drawDate),1-e.get("monthsToJump"),"m"),e),1),-1,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),-d.get("monthsToJump"),"m"),d),1)},action:function(d){c.datepick.changeMonth(this,-d.get("monthsToJump"))}},next:{text:"nextText",status:"nextStatus",keystroke:{keyCode:34},enabled:function(d){var e=d.get("maxDate");return(!e||c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),d.get("monthsToStep"),"m"),d),1).getTime()<=e.getTime())},date:function(d){return c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),d.get("monthsToStep"),"m"),d),1)},action:function(d){c.datepick.changeMonth(this,d.get("monthsToStep"))}},nextJump:{text:"nextJumpText",status:"nextJumpStatus",keystroke:{keyCode:34,ctrlKey:true},enabled:function(d){var e=d.get("maxDate");return(!e||c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),d.get("monthsToJump"),"m"),d),1).getTime()<=e.getTime())},date:function(d){return c.datepick.day(c.datepick._applyMonthsOffset(c.datepick.add(c.datepick.newDate(d.drawDate),d.get("monthsToJump"),"m"),d),1)},action:function(d){c.datepick.changeMonth(this,d.get("monthsToJump"))}},current:{text:"currentText",status:"currentStatus",keystroke:{keyCode:36,ctrlKey:true},enabled:function(f){var e=f.curMinDate();var g=f.get("maxDate");var d=f.selectedDates[0]||c.datepick.today();return(!e||d.getTime()>=e.getTime())&&(!g||d.getTime()<=g.getTime())},date:function(d){return d.selectedDates[0]||c.datepick.today()},action:function(e){var d=e.selectedDates[0]||c.datepick.today();c.datepick.showMonth(this,d.getFullYear(),d.getMonth()+1)}},today:{text:"todayText",status:"todayStatus",keystroke:{keyCode:36,ctrlKey:true},enabled:function(e){var d=e.curMinDate();var f=e.get("maxDate");return(!d||c.datepick.today().getTime()>=d.getTime())&&(!f||c.datepick.today().getTime()<=f.getTime())},date:function(d){return c.datepick.today()},action:function(d){c.datepick.showMonth(this)}},clear:{text:"clearText",status:"clearStatus",keystroke:{keyCode:35,ctrlKey:true},enabled:function(d){return true},date:function(d){return null},action:function(d){c.datepick.clear(this)}},close:{text:"closeText",status:"closeStatus",keystroke:{keyCode:27},enabled:function(d){return true},date:function(d){return null},action:function(d){c.datepick.hide(this)}},prevWeek:{text:"prevWeekText",status:"prevWeekStatus",keystroke:{keyCode:38,ctrlKey:true},enabled:function(e){var d=e.curMinDate();return(!d||c.datepick.add(c.datepick.newDate(e.drawDate),-7,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),-7,"d")},action:function(d){c.datepick.changeDay(this,-7)}},prevDay:{text:"prevDayText",status:"prevDayStatus",keystroke:{keyCode:37,ctrlKey:true},enabled:function(e){var d=e.curMinDate();return(!d||c.datepick.add(c.datepick.newDate(e.drawDate),-1,"d").getTime()>=d.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),-1,"d")},action:function(d){c.datepick.changeDay(this,-1)}},nextDay:{text:"nextDayText",status:"nextDayStatus",keystroke:{keyCode:39,ctrlKey:true},enabled:function(d){var e=d.get("maxDate");return(!e||c.datepick.add(c.datepick.newDate(d.drawDate),1,"d").getTime()<=e.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),1,"d")},action:function(d){c.datepick.changeDay(this,1)}},nextWeek:{text:"nextWeekText",status:"nextWeekStatus",keystroke:{keyCode:40,ctrlKey:true},enabled:function(d){var e=d.get("maxDate");return(!e||c.datepick.add(c.datepick.newDate(d.drawDate),7,"d").getTime()<=e.getTime())},date:function(d){return c.datepick.add(c.datepick.newDate(d.drawDate),7,"d")},action:function(d){c.datepick.changeDay(this,7)}}},defaultRenderer:{picker:'
{link:prev}{link:today}{link:next}
{months}{popup:start}
{link:clear}{link:close}
{popup:end}
',monthRow:'
{months}
',month:'
{monthHeader}
{weekHeader}{weeks}
',weekHeader:"{days}",dayHeader:"{day}",week:"{days}",day:"{day}",monthSelector:".datepick-month",daySelector:"td",rtlClass:"datepick-rtl",multiClass:"datepick-multi",defaultClass:"",selectedClass:"datepick-selected",highlightedClass:"datepick-highlight",todayClass:"datepick-today",otherMonthClass:"datepick-other-month",weekendClass:"datepick-weekend",commandClass:"datepick-cmd",commandButtonClass:"",commandLinkClass:"",disabledClass:"datepick-disabled"},setDefaults:function(d){c.extend(this._defaults,d||{});return this},_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),_msPerDay:24*60*60*1000,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(p,h,j){if(typeof p!="string"){j=h;h=p;p=""}if(!h){return""}p=p||this._defaults.dateFormat;j=j||{};var r=j.dayNamesShort||this._defaults.dayNamesShort;var e=j.dayNames||this._defaults.dayNames;var n=j.monthNamesShort||this._defaults.monthNamesShort;var k=j.monthNames||this._defaults.monthNames;var f=j.calculateWeek||this._defaults.calculateWeek;var l=function(s,t){var u=1;while(q+u1};var d=function(u,w,s,v){var t=""+w;if(l(u,v)){while(t.length1};var A=function(D,F){var B=h(D,F);var E=[2,3,B?4:2,11,20]["oy@!".indexOf(D)+1];var G=new RegExp("^-?\\d{1,"+E+"}");var C=n.substring(s).match(G);if(!C){throw"Missing number at position {0}".replace(/\{0\}/,s)}s+=C[0].length;return parseInt(C[0],10)};var l=function(B,D,G,E){var F=(h(B,E)?G:D);for(var C=0;C-1){z=1;r=k;for(var o=this.daysInMonth(j,z);r>o;o=this.daysInMonth(j,z)){z++;r-=o}}var x=this.newDate(j,z,r);if(x.getFullYear()!=j||x.getMonth()+1!=z||x.getDate()!=r){throw"Invalid date"}return x},determineDate:function(f,j,e,d,h){if(e&&typeof e!="object"){h=d;d=e;e=null}if(typeof d!="string"){h=d;d=""}var g=function(o){try{return c.datepick.parseDate(d,o,h)}catch(n){}o=o.toLowerCase();var k=(o.match(/^c/)&&e?c.datepick.newDate(e):null)||c.datepick.today();var m=/([+-]?[0-9]+)\s*(d|w|m|y)?/g;var l=m.exec(o);while(l){k=c.datepick.add(k,parseInt(l[1],10),l[2]||"d");l=m.exec(o)}return k};j=(j?c.datepick.newDate(j):null);f=(f==null?j:(typeof f=="string"?g(f):(typeof f=="number"?(isNaN(f)||f==Infinity||f==-Infinity?j:c.datepick.add(c.datepick.today(),f,"d")):c.datepick.newDate(f))));return f},daysInMonth:function(d,e){e=(d.getFullYear?d.getMonth()+1:e);d=(d.getFullYear?d.getFullYear():d);return this.newDate(d,e+1,0).getDate()},dayOfYear:function(g,h,d){var f=(g.getFullYear?g:this.newDate(g,h,d));var e=this.newDate(f.getFullYear(),1,1);return Math.floor((f.getTime()-e.getTime())/this._msPerDay)+1},iso8601Week:function(e,g,d){var h=(e.getFullYear?new Date(e.getTime()):this.newDate(e,g,d));h.setDate(h.getDate()+4-(h.getDay()||7));var f=h.getTime();h.setMonth(0,1);return Math.floor(Math.round((f-h)/86400000)/7)+1},today:function(){return this._normaliseDate(new Date())},newDate:function(e,f,d){return(!e?null:(e.getFullYear?this._normaliseDate(new Date(e.getTime())):new Date(e,f-1,d,12)))},_normaliseDate:function(d){if(d){d.setHours(12,0,0,0)}return d},year:function(d,e){d.setFullYear(e);return this._normaliseDate(d)},month:function(d,e){d.setMonth(e-1);return this._normaliseDate(d)},day:function(e,d){e.setDate(d);return this._normaliseDate(e)},add:function(d,e,h){if(h=="d"||h=="w"){this._normaliseDate(d);d.setDate(d.getDate()+e*(h=="w"?7:1))}else{var f=d.getFullYear()+(h=="y"?e:0);var g=d.getMonth()+(h=="m"?e:0);d.setTime(c.datepick.newDate(f,g+1,Math.min(d.getDate(),this.daysInMonth(f,g+1))).getTime())}return d},_applyMonthsOffset:function(d,e){var f=e.get("monthsOffset");if(c.isFunction(f)){f=f.apply(e.target[0],[d])}return c.datepick.add(d,-f,"m")},_attachPicker:function(g,e){g=c(g);if(g.hasClass(this.markerClass)){return}g.addClass(this.markerClass);var f={target:g,selectedDates:[],drawDate:null,pickingRange:false,inline:(c.inArray(g[0].nodeName.toLowerCase(),["div","span"])>-1),get:function(h){var j=this.settings[h]!==undefined?this.settings[h]:c.datepick._defaults[h];if(c.inArray(h,["defaultDate","minDate","maxDate"])>-1){j=c.datepick.determineDate(j,null,this.selectedDates[0],this.get("dateFormat"),f.getConfig())}return j},curMinDate:function(){return(this.pickingRange?this.selectedDates[0]:this.get("minDate"))},getConfig:function(){return{dayNamesShort:this.get("dayNamesShort"),dayNames:this.get("dayNames"),monthNamesShort:this.get("monthNamesShort"),monthNames:this.get("monthNames"),calculateWeek:this.get("calculateWeek"),shortYearCutoff:this.get("shortYearCutoff")}}};c.data(g[0],this.dataName,f);var d=(c.fn.metadata?g.metadata():{});f.settings=c.extend({},e||{},d||{});if(f.inline){f.drawDate=c.datepick._checkMinMax(c.datepick.newDate(f.selectedDates[0]||f.get("defaultDate")||c.datepick.today()),f);f.prevDate=c.datepick.newDate(f.drawDate);this._update(g[0]);if(c.fn.mousewheel&&f.settings.useMouseWheel){g.mousewheel(this._doMouseWheel)}}else{this._attachments(g,f);g.bind("keydown."+this.dataName,this._keyDown).bind("keypress."+this.dataName,this._keyPress).bind("keyup."+this.dataName,this._keyUp);if(g.attr("disabled")){this.disable(g[0])}}},options:function(f,d){var e=c.data(f,this.dataName);return(e?(d?(d=="all"?e.settings:e.settings[d]):c.datepick._defaults):{})},option:function(j,e,g){j=c(j);if(!j.hasClass(this.markerClass)){return}e=e||{};if(typeof e=="string"){var d=e;e={};e[d]=g}var f=c.data(j[0],this.dataName);var h=f.selectedDates;a(f.settings,e);this.setDate(j[0],h,null,false,true);f.pickingRange=false;f.drawDate=c.datepick.newDate(this._checkMinMax((e.defaultDate?f.get("defaultDate"):f.drawDate)||f.get("defaultDate")||c.datepick.today(),f));if(!f.inline){this._attachments(j,f)}if(f.inline||f.div){this._update(j[0])}},_attachments:function(g,e){g.unbind("focus."+this.dataName);if(e.get("showOnFocus")){g.bind("focus."+this.dataName,this.show)}if(e.trigger){e.trigger.remove()}var d=e.get("showTrigger");e.trigger=(!d?c([]):c(d).clone().removeAttr("id").addClass(this._triggerClass)[e.get("isRTL")?"insertBefore":"insertAfter"](g).click(function(){if(!c.datepick.isDisabled(g[0])){c.datepick[c.datepick.curInst==e?"hide":"show"](g[0])}}));this._autoSize(g,e);var f=this._extractDates(e,g.val());if(f){this.setDate(g[0],f,null,true)}if(e.get("selectDefaultDate")&&e.get("defaultDate")&&e.selectedDates.length==0){this.setDate(g[0],c.datepick.newDate(e.get("defaultDate")||c.datepick.today()))}},_autoSize:function(h,g){if(g.get("autoSize")&&!g.inline){var f=c.datepick.newDate(2009,10,20);var d=g.get("dateFormat");if(d.match(/[DM]/)){var e=function(m){var j=0;var k=0;for(var l=0;lj){j=m[l].length;k=l}}return k};f.setMonth(e(g.get(d.match(/MM/)?"monthNames":"monthNamesShort")));f.setDate(e(g.get(d.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())}g.target.attr("size",c.datepick.formatDate(d,f,g.getConfig()).length)}},destroy:function(e){e=c(e);if(!e.hasClass(this.markerClass)){return}var d=c.data(e[0],this.dataName);if(d.trigger){d.trigger.remove()}e.removeClass(this.markerClass).empty().unbind("."+this.dataName);if(d.inline&&c.fn.mousewheel){e.unmousewheel()}if(!d.inline&&d.get("autoSize")){e.removeAttr("size")}c.removeData(e[0],this.dataName)},multipleEvents:function(e){var d=arguments;return function(f){for(var g=0;g').find("button,select").attr("disabled","disabled").end().find("a").removeAttr("href")}else{g.disabled=true;e.trigger.filter("button."+this._triggerClass).attr("disabled","disabled").end().filter("img."+this._triggerClass).css({opacity:"0.5",cursor:"default"})}this._disabled=c.map(this._disabled,function(l){return(l==g?null:l)});this._disabled.push(g)},isDisabled:function(d){return(d&&c.inArray(d,this._disabled)>-1)},show:function(k){k=k.target||k;var j=c.data(k,c.datepick.dataName);if(c.datepick.curInst==j){return}if(c.datepick.curInst){c.datepick.hide(c.datepick.curInst,true)}if(j){j.lastVal=null;j.selectedDates=c.datepick._extractDates(j,c(k).val());j.pickingRange=false;j.drawDate=c.datepick._checkMinMax(c.datepick.newDate(j.selectedDates[0]||j.get("defaultDate")||c.datepick.today()),j);j.prevDate=c.datepick.newDate(j.drawDate);c.datepick.curInst=j;c.datepick._update(k,true);var l=c.datepick._checkOffset(j);j.div.css({left:l.left,top:l.top});var d=j.get("showAnim");var f=j.get("showSpeed");f=(f=="normal"&&c.ui&&c.ui.version>="1.8"?"_default":f);var h=function(){var n=j.div.find("."+c.datepick._coverClass);if(n.length){var m=c.datepick._getBorders(j.div);n.css({left:-m[0],top:-m[1],width:j.div.outerWidth()+m[0],height:j.div.outerHeight()+m[1]})}};if(c.effects&&c.effects[d]){var g=j.div.data();for(var e in g){if(e.match(/^ec\.storage\./)){g[e]=j._mainDiv.css(e.replace(/ec\.storage\./,""))}}j.div.data(g).show(d,j.get("showOptions"),f,h)}else{j.div[d||"show"]((d?f:""),h)}if(!d){h()}}},_extractDates:function(m,p){if(p==m.lastVal){return}m.lastVal=p;var f=m.get("dateFormat");var g=m.get("multiSelect");var o=m.get("rangeSelect");p=p.split(g?m.get("multiSeparator"):(o?m.get("rangeSeparator"):"\x00"));var d=[];for(var l=0;l").addClass(this._popupClass).css({display:(f?"none":"static"),position:"absolute",left:g.offset().left,top:g.offset().top+g.outerHeight()}).appendTo(c(e.get("popupContainer")||"body"));if(c.fn.mousewheel){e.div.mousewheel(this._doMouseWheel)}}e.div.html(this._generateContent(g[0],e))}}}},_updateInput:function(k,e){var j=c.data(k,this.dataName);if(j){var m="";var f="";var n=(j.get("multiSelect")?j.get("multiSeparator"):j.get("rangeSeparator"));var d=j.get("dateFormat");var g=j.get("altFormat")||d;for(var h=0;h0?n:"")+c.datepick.formatDate(d,j.selectedDates[h],j.getConfig()));f+=(h>0?n:"")+c.datepick.formatDate(g,j.selectedDates[h],j.getConfig())}if(!j.inline&&!e){c(k).val(m)}c(j.get("altField")).val(f);var l=j.get("onSelect");if(l&&!e&&!j.inSelect){j.inSelect=true;l.apply(k,[j.selectedDates]);j.inSelect=false}}},_getBorders:function(d){var e=function(g){var f=(c.browser.msie?1:0);return{thin:1+f,medium:3+f,thick:5+f}[g]||g};return[parseFloat(e(d.css("border-left-width"))),parseFloat(e(d.css("border-top-width")))]},_checkOffset:function(k){var e=(k.target.is(":hidden")&&k.trigger?k.trigger:k.target);var j=e.offset();var g=false;c(k.target).parents().each(function(){g|=c(this).css("position")=="fixed";return !g});if(g&&c.browser.opera){j.left-=document.documentElement.scrollLeft;j.top-=document.documentElement.scrollTop}var t=(!c.browser.mozilla||document.doctype?document.documentElement.clientWidth:0)||document.body.clientWidth;var l=(!c.browser.mozilla||document.doctype?document.documentElement.clientHeight:0)||document.body.clientHeight;if(t==0){return j}var o=k.get("alignment");var f=k.get("isRTL");var s=document.documentElement.scrollLeft||document.body.scrollLeft;var r=document.documentElement.scrollTop||document.body.scrollTop;var n=j.top-k.div.outerHeight()-(g&&c.browser.opera?document.documentElement.scrollTop:0);var q=j.top+e.outerHeight();var p=j.left;var m=j.left+e.outerWidth()-k.div.outerWidth()-(g&&c.browser.opera?document.documentElement.scrollLeft:0);var h=(j.left+k.div.outerWidth()-s)>t;var d=(j.top+k.target.outerHeight()+k.div.outerHeight()-r)>l;if(o=="topLeft"){j={left:p,top:n}}else{if(o=="topRight"){j={left:m,top:n}}else{if(o=="bottomLeft"){j={left:p,top:q}}else{if(o=="bottomRight"){j={left:m,top:q}}else{if(o=="top"){j={left:(f||h?m:p),top:n}}else{j={left:(f||h?m:p),top:(d?n:q)}}}}}}j.left=Math.max((g?0:s),j.left-(g?s:0));j.top=Math.max((g?0:r),j.top-(g?r:0));return j},_checkExternalClick:function(d){if(!c.datepick.curInst){return}var e=c(d.target);if(!e.parents().andSelf().hasClass(c.datepick._popupClass)&&!e.hasClass(c.datepick.markerClass)&&!e.parents().andSelf().hasClass(c.datepick._triggerClass)){c.datepick.hide(c.datepick.curInst)}},hide:function(k,f){var j=c.data(k,this.dataName)||k;if(j&&j==c.datepick.curInst){var e=(f?"":j.get("showAnim"));var g=j.get("showSpeed");g=(g=="normal"&&c.ui&&c.ui.version>="1.8"?"_default":g);var h=function(){j.div.remove();j.div=null;c.datepick.curInst=null;var l=j.get("onClose");if(l){l.apply(k,[j.selectedDates])}};j.div.stop();if(c.effects&&c.effects[e]){j.div.hide(e,j.get("showOptions"),g,h)}else{var d=(e=="slideDown"?"slideUp":(e=="fadeIn"?"fadeOut":"hide"));j.div[d]((e?g:""),h)}if(!e){h()}}},_keyDown:function(f){var j=f.target;var g=c.data(j,c.datepick.dataName);var h=false;if(g.div){if(f.keyCode==9){c.datepick.hide(j)}else{if(f.keyCode==13){c.datepick.selectDate(j,c("a."+g.get("renderer").highlightedClass,g.div)[0]);h=true}else{var d=g.get("commands");for(var e in d){var k=d[e];if(k.keystroke.keyCode==f.keyCode&&!!k.keystroke.ctrlKey==!!(f.ctrlKey||f.metaKey)&&!!k.keystroke.altKey==f.altKey&&!!k.keystroke.shiftKey==f.shiftKey){c.datepick.performAction(j,e);h=true;break}}}}}else{var k=g.get("commands").current;if(k.keystroke.keyCode==f.keyCode&&!!k.keystroke.ctrlKey==!!(f.ctrlKey||f.metaKey)&&!!k.keystroke.altKey==f.altKey&&!!k.keystroke.shiftKey==f.shiftKey){c.datepick.show(j);h=true}}g.ctrlKey=((f.keyCode<48&&f.keyCode!=32)||f.ctrlKey||f.metaKey);if(h){f.preventDefault();f.stopPropagation()}return !h},_keyPress:function(f){var h=f.target;var g=c.data(h,c.datepick.dataName);if(g&&g.get("constrainInput")){var e=String.fromCharCode(f.keyCode||f.charCode);var d=c.datepick._allowedChars(g);return(f.metaKey||g.ctrlKey||e<" "||!d||d.indexOf(e)>-1)}return true},_allowedChars:function(k){var d=k.get("dateFormat");var e=(k.get("multiSelect")?k.get("multiSeparator"):(k.get("rangeSelect")?k.get("rangeSeparator"):""));var j=false;var f=false;for(var g=0;g0){c.datepick.setDate(g,f,null,true)}}catch(d){}}return true},_doMouseWheel:function(d,g){var f=(c.datepick.curInst&&c.datepick.curInst.target[0])||c(d.target).closest("."+c.datepick.markerClass)[0];if(c.datepick.isDisabled(f)){return}var e=c.data(f,c.datepick.dataName);if(e.get("useMouseWheel")){g=(c.browser.opera?-g:g);g=(g<0?-1:+1);c.datepick.changeMonth(f,-e.get(d.ctrlKey?"monthsToJump":"monthsToStep")*g)}d.preventDefault()},clear:function(e){var d=c.data(e,this.dataName);if(d){d.selectedDates=[];this.hide(e);if(d.get("selectDefaultDate")&&d.get("defaultDate")){this.setDate(e,c.datepick.newDate(d.get("defaultDate")||c.datepick.today()))}else{this._updateInput(e)}}},getDate:function(e){var d=c.data(e,this.dataName);return(d?d.selectedDates:[])},setDate:function(r,e,q,g,n){var p=c.data(r,this.dataName);if(p){if(!c.isArray(e)){e=[e];if(q){e.push(q)}}var f=p.get("dateFormat");var m=p.get("minDate");var d=p.get("maxDate");var k=p.selectedDates[0];p.selectedDates=[];for(var o=0;o=m.getTime())&&(!d||h.getTime()<=d.getTime())){var t=false;for(var l=0;lp.selectedDates[1].getTime()?p.selectedDates[0]:p.selectedDates[1]);break}p.pickingRange=false}p.prevDate=(p.drawDate?c.datepick.newDate(p.drawDate):null);p.drawDate=this._checkMinMax(c.datepick.newDate(p.selectedDates[0]||p.get("defaultDate")||c.datepick.today()),p);if(!n){this._update(r);this._updateInput(r,g)}}},isSelectable:function(f,d){var e=c.data(f,this.dataName);if(!e){return false}d=c.datepick.determineDate(d,e.selectedDates[0]||this.today(),null,e.get("dateFormat"),e.getConfig());return this._isSelectable(f,d,e.get("onDate"),e.get("minDate"),e.get("maxDate"))},_isSelectable:function(h,e,d,g,j){var f=(typeof d=="boolean"?{selectable:d}:(!d?{}:d.apply(h,[e,true])));return(f.selectable!=false)&&(!g||e.getTime()>=g.getTime())&&(!j||e.getTime()<=j.getTime())},performAction:function(g,f){var e=c.data(g,this.dataName);if(e&&!this.isDisabled(g)){var d=e.get("commands");if(d[f]&&d[f].enabled.apply(g,[e])){d[f].action.apply(g,[e])}}},showMonth:function(j,f,h,e){var g=c.data(j,this.dataName);if(g&&(e!=null||(g.drawDate.getFullYear()!=f||g.drawDate.getMonth()+1!=h))){g.prevDate=c.datepick.newDate(g.drawDate);var d=this._checkMinMax((f!=null?c.datepick.newDate(f,h,1):c.datepick.today()),g);g.drawDate=c.datepick.newDate(d.getFullYear(),d.getMonth()+1,(e!=null?e:Math.min(g.drawDate.getDate(),c.datepick.daysInMonth(d.getFullYear(),d.getMonth()+1))));this._update(j)}},changeMonth:function(f,g){var e=c.data(f,this.dataName);if(e){var d=c.datepick.add(c.datepick.newDate(e.drawDate),g,"m");this.showMonth(f,d.getFullYear(),d.getMonth()+1)}},changeDay:function(f,g){var e=c.data(f,this.dataName);if(e){var d=c.datepick.add(c.datepick.newDate(e.drawDate),g,"d");this.showMonth(f,d.getFullYear(),d.getMonth()+1,d.getDate())}},_checkMinMax:function(d,f){var e=f.get("minDate");var g=f.get("maxDate");d=(e&&d.getTime()g.getTime()?c.datepick.newDate(g):d);return d},retrieveDate:function(f,d){var e=c.data(f,this.dataName);return(!e?null:this._normaliseDate(new Date(parseInt(d.className.replace(/^.*dp(-?\d+).*$/,"$1"),10))))},selectDate:function(l,g){var j=c.data(l,this.dataName);if(j&&!this.isDisabled(l)){var e=this.retrieveDate(l,g);var k=j.get("multiSelect");var d=j.get("rangeSelect");if(k){var h=false;for(var f=0;f':"");var g=e.get("commands");var k=e.get("commandsAsDateFormat");var n=function(B,z,D,y,A){if(m.indexOf("{"+B+":"+y+"}")==-1){return}var C=g[y];var x=(k?C.date.apply(v,[e]):null);m=m.replace(new RegExp("\\{"+B+":"+y+"\\}","g"),"<"+z+(C.status?' title="'+e.get(C.status)+'"':"")+' class="'+r.commandClass+" "+r.commandClass+"-"+y+" "+A+(C.enabled(e)?"":" "+r.disabledClass)+'">'+(x?c.datepick.formatDate(e.get(C.text),x,e.getConfig()):e.get(C.text))+"")};for(var w in g){n("button",'button type="button"',"button",w,r.commandButtonClass);n("link",'a href="javascript:void(0)"',"a",w,r.commandLinkClass)}m=c(m);if(d[1]>1){var j=0;c(r.monthSelector,m).each(function(){var x=++j%d[1];c(this).addClass(x==1?"first":(x==0?"last":""))})}var o=this;m.find(r.daySelector+" a").hover(function(){c(this).addClass(r.highlightedClass)},function(){(e.inline?c(this).parents("."+o.markerClass):e.div).find(r.daySelector+" a").removeClass(r.highlightedClass)}).click(function(){o.selectDate(v,this)}).end().find("select."+this._monthYearClass+":not(."+this._anyYearClass+")").change(function(){var x=c(this).val().split("/");o.showMonth(v,parseInt(x[1],10),parseInt(x[0],10))}).end().find("select."+this._anyYearClass).click(function(){c(this).css("visibility","hidden").next("input").css({left:this.offsetLeft,top:this.offsetTop,width:this.offsetWidth,height:this.offsetHeight}).show().focus()}).end().find("input."+o._monthYearClass).change(function(){try{var x=parseInt(c(this).val(),10);x=(isNaN(x)?e.drawDate.getFullYear():x);o.showMonth(v,x,e.drawDate.getMonth()+1,e.drawDate.getDate())}catch(y){alert(y)}}).keydown(function(x){if(x.keyCode==13){c(x.target).change()}else{if(x.keyCode==27){c(x.target).hide().prev("select").css("visibility","visible");e.target.focus()}}});m.find("."+r.commandClass).click(function(){if(!c(this).hasClass(r.disabledClass)){var x=this.className.replace(new RegExp("^.*"+r.commandClass+"-([^ ]+).*$"),"$1");c.datepick.performAction(v,x)}});if(e.get("isRTL")){m.addClass(r.rtlClass)}if(d[0]*d[1]>1){m.addClass(r.multiClass)}var s=e.get("pickerClass");if(s){m.addClass(s)}c("body").append(m);var q=0;m.find(r.monthSelector).each(function(){q+=c(this).outerWidth()});m.width(q/d[0]);var p=e.get("onShow");if(p){p.apply(v,[m,e])}return m},_generateMonth:function(K,h,u,H,y,m){var e=c.datepick.daysInMonth(u,H);var f=h.get("monthsToShow");f=(c.isArray(f)?f:[1,f]);var p=h.get("fixedWeeks")||(f[0]*f[1]>1);var r=h.get("firstDay");var M=(c.datepick.newDate(u,H,1).getDay()-r+7)%7;var k=(p?6:Math.ceil((M+e)/7));var D=h.get("showOtherMonths");var w=h.get("selectOtherMonths")&&D;var G=h.get("dayStatus");var n=(h.pickingRange?h.selectedDates[0]:h.get("minDate"));var s=h.get("maxDate");var o=h.get("rangeSelect");var v=h.get("onDate");var C=y.week.indexOf("{weekOfYear}")>-1;var J=h.get("calculateWeek");var F=c.datepick.today();var I=c.datepick.newDate(u,H,1);c.datepick.add(I,-M-(p&&(I.getDay()==r)?7:0),"d");var d=I.getTime();var l="";for(var z=0;z'+(J?J(I):0)+"");var j="";for(var B=0;B<7;B++){var x=false;if(o&&h.selectedDates.length>0){x=(I.getTime()>=h.selectedDates[0]&&I.getTime()<=h.selectedDates[1])}else{for(var A=0;A"+(D||(I.getMonth()+1)==H?E.content||I.getDate():" ")+(q?"":""));c.datepick.add(I,1,"d");d=I.getTime()}l+=this._prepare(y.week,h).replace(/\{days\}/g,j).replace(/\{weekOfYear\}/g,L)}var g=this._prepare(y.month,h).match(/\{monthHeader(:[^\}]+)?\}/);g=(g[0].length<=13?"MM yyyy":g[0].substring(13,g[0].length-1));g=(m?this._generateMonthSelection(h,u,H,n,s,g,y):c.datepick.formatDate(g,c.datepick.newDate(u,H,1),h.getConfig()));var t=this._prepare(y.weekHeader,h).replace(/\{days\}/g,this._generateDayHeaders(h,y));return this._prepare(y.month,h).replace(/\{monthHeader(:[^\}]+)?\}/g,g).replace(/\{weekHeader\}/g,t).replace(/\{weeks\}/g,l)},_generateDayHeaders:function(h,g){var f=h.get("firstDay");var l=h.get("dayNames");var e=h.get("dayNamesMin");var k="";for(var d=0;d<7;d++){var j=(d+f)%7;k+=this._prepare(g.dayHeader,h).replace(/\{day\}/g,''+e[j]+"")}return k},_generateMonthSelection:function(l,q,o,j,d,t){if(!l.get("changeMonth")){return c.datepick.formatDate(t,c.datepick.newDate(q,o,1),l.getConfig())}var k=l.get("monthNames"+(t.match(/mm/i)?"":"Short"));var n=t.replace(/m+/i,"\\x2E").replace(/y+/i,"\\x2F");var g='";n=n.replace(/\\x2E/,g);var u=l.get("yearRange");if(u=="any"){g=''}else{u=u.split(":");var s=c.datepick.today().getFullYear();var e=(u[0].match("c[+-].*")?q+parseInt(u[0].substring(1),10):((u[0].match("[+-].*")?s:0)+parseInt(u[0],10)));var h=(u[1].match("c[+-].*")?q+parseInt(u[1].substring(1),10):((u[1].match("[+-].*")?s:0)+parseInt(u[1],10)));g='"}n=n.replace(/\\x2F/,g);return n},_prepare:function(h,f){var g=function(l,j){while(true){var m=h.indexOf("{"+l+":start}");if(m==-1){return}var k=h.substring(m).indexOf("{"+l+":end}");if(k>-1){h=h.substring(0,m)+(j?h.substr(m+l.length+8,k-l.length-8):"")+h.substring(m+k+l.length+6)}}};g("inline",f.inline);g("popup",!f.inline);var e=/\{l10n:([^\}]+)\}/;var d=null;while(d=e.exec(h)){h=h.replace(d[0],f.get(d[1]))}return h}});function a(f,e){c.extend(f,e);for(var d in e){if(e[d]==null||e[d]==undefined){f[d]=e[d]}}return f}c.fn.datepick=function(e){var d=Array.prototype.slice.call(arguments,1);if(c.inArray(e,["getDate","isDisabled","isSelectable","options","retrieveDate"])>-1){return c.datepick[e].apply(c.datepick,[this[0]].concat(d))}return this.each(function(){if(typeof e=="string"){c.datepick[e].apply(c.datepick,[this].concat(d))}else{c.datepick._attachPicker(this,e||{})}})};c.datepick=new b();c(function(){c(document).mousedown(c.datepick._checkExternalClick).resize(function(){c.datepick.hide(c.datepick.curInst)})})})(jQuery);(function(a){a.datepick.regional.fr={monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Jan","Fév","Mar","Avr","Mai","Jun","Jul","Aoû","Sep","Oct","Nov","Déc"],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayNamesMin:["Di","Lu","Ma","Me","Je","Ve","Sa"],dateFormat:"dd/mm/yyyy",firstDay:1,renderer:a.datepick.defaultRenderer,prevText:"<Préc",prevStatus:"Voir le mois précédent",prevJumpText:"<<",prevJumpStatus:"Voir l'année précédent",nextText:"Suiv>",nextStatus:"Voir le mois suivant",nextJumpText:">>",nextJumpStatus:"Voir l'année suivant",currentText:"Courant",currentStatus:"Voir le mois courant",todayText:"Aujourd'hui",todayStatus:"Voir aujourd'hui",clearText:"Effacer",clearStatus:"Effacer la date sélectionnée",closeText:"Fermer",closeStatus:"Fermer sans modifier",yearStatus:"Voir une autre année",monthStatus:"Voir un autre mois",weekText:"Sm",weekStatus:"Semaine de l'année",dayStatus:"'Choisir' le DD d MM",defaultStatus:"Choisir la date",isRTL:false};a.datepick.setDefaults(a.datepick.regional.fr)})(jQuery);(function(a){a.fn.dragsort=function(c){if(c=="destroy"){a(this.selector).trigger("dragsort-uninit");return}var d=a.extend({},a.fn.dragsort.defaults,c);var b=[];var f=null,e=null;this.each(function(h,g){if(a(g).is("table")&&a(g).children().size()==1&&a(g).children().is("tbody")){g=a(g).children().get(0)}var j={draggedItem:null,placeHolderItem:null,pos:null,offset:null,offsetLimit:null,scroll:null,container:g,init:function(){var k=a(this.container).children().size()==0?"li":a(this.container).children(":first").get(0).tagName.toLowerCase();if(d.itemSelector==""){d.itemSelector=k}if(d.dragSelector==""){d.dragSelector=k}if(d.placeHolderTemplate==""){d.placeHolderTemplate="<"+k+"> "}a(this.container).attr("data-listidx",h).mousedown(this.grabItem).bind("dragsort-uninit",this.uninit);this.styleDragHandlers(true)},uninit:function(){var k=b[a(this).attr("data-listidx")];a(k.container).unbind("mousedown",k.grabItem).unbind("dragsort-uninit");k.styleDragHandlers(false)},getItems:function(){return a(this.container).children(d.itemSelector)},styleDragHandlers:function(k){this.getItems().map(function(){return a(this).is(d.dragSelector)?this:a(this).find(d.dragSelector).get()}).css("cursor",k?"pointer":"")},grabItem:function(o){if(o.which!=1||a(o.target).is(d.dragSelectorExclude)||a(o.target).closest(d.dragSelectorExclude).size()>0||a(o.target).closest(d.itemSelector).size()==0){return}o.preventDefault();var k=o.target;while(!a(k).is(d.dragSelector)){if(k==this){return}k=k.parentNode}a(k).attr("data-cursor",a(k).css("cursor"));a(k).css("cursor","move");var n=b[a(this).attr("data-listidx")];var m=this;var l=function(){n.dragStart.call(m,o);a(n.container).unbind("mousemove",l)};a(n.container).mousemove(l).mouseup(function(){a(n.container).unbind("mousemove",l);a(k).css("cursor",a(k).attr("data-cursor"))})},dragStart:function(p){if(f!=null&&f.draggedItem!=null){f.dropItem()}f=b[a(this).attr("data-listidx")];f.draggedItem=a(p.target).closest(d.itemSelector);f.draggedItem.attr("data-origpos",a(this).attr("data-listidx")+"-"+f.getItems().index(f.draggedItem));var m=parseInt(f.draggedItem.css("marginTop"));var r=parseInt(f.draggedItem.css("marginLeft"));f.offset=f.draggedItem.offset();f.offset.top=p.pageY-f.offset.top+(isNaN(m)?0:m)-1;f.offset.left=p.pageX-f.offset.left+(isNaN(r)?0:r)-1;if(!d.dragBetween){var o=a(f.container).outerHeight()==0?Math.max(1,Math.round(0.5+f.getItems().size()*f.draggedItem.outerWidth()/a(f.container).outerWidth()))*f.draggedItem.outerHeight():a(f.container).outerHeight();f.offsetLimit=a(f.container).offset();f.offsetLimit.right=f.offsetLimit.left+a(f.container).outerWidth()-f.draggedItem.outerWidth();f.offsetLimit.bottom=f.offsetLimit.top+o-f.draggedItem.outerHeight()}var n=f.draggedItem.height();var l=f.draggedItem.width();if(d.itemSelector=="tr"){f.draggedItem.children().each(function(){a(this).width(a(this).width())});f.placeHolderItem=f.draggedItem.clone().attr("data-placeholder",true);f.draggedItem.after(f.placeHolderItem);f.placeHolderItem.children().each(function(){a(this).css({borderWidth:0,width:a(this).width()+1,height:a(this).height()+1}).html(" ")})}else{f.draggedItem.after(d.placeHolderTemplate);f.placeHolderItem=f.draggedItem.next().css({height:n,width:l}).attr("data-placeholder",true)}if(d.itemSelector=="td"){var k=f.draggedItem.closest("table").get(0);a("
").appendTo("body").children().append(f.draggedItem)}var q=f.draggedItem.attr("style");f.draggedItem.attr("data-origstyle",q?q:"");f.draggedItem.addClass("dragged");f.draggedItem.css({position:"absolute",opacity:0.8,"z-index":999,height:n,width:l});f.scroll={moveX:0,moveY:0,maxX:a(document).width()-a(window).width(),maxY:a(document).height()-a(window).height()};f.scroll.scrollY=window.setInterval(function(){if(d.scrollContainer!=window){a(d.scrollContainer).scrollTop(a(d.scrollContainer).scrollTop()+f.scroll.moveY);return}var s=a(d.scrollContainer).scrollTop();if(f.scroll.moveY>0&&s0){a(d.scrollContainer).scrollTop(s+f.scroll.moveY);f.draggedItem.css("top",f.draggedItem.offset().top+f.scroll.moveY+1)}},10);f.scroll.scrollX=window.setInterval(function(){if(d.scrollContainer!=window){a(d.scrollContainer).scrollLeft(a(d.scrollContainer).scrollLeft()+f.scroll.moveX);return}var s=a(d.scrollContainer).scrollLeft();if(f.scroll.moveX>0&&s0){a(d.scrollContainer).scrollLeft(s+f.scroll.moveX);f.draggedItem.css("left",f.draggedItem.offset().left+f.scroll.moveX+1)}},10);a(b).each(function(t,s){s.createDropTargets();s.buildPositionTable()});f.setPos(p.pageX,p.pageY);a(document).bind("mousemove",f.swapItems);a(document).bind("mouseup",f.dropItem);if(d.scrollContainer!=window){a(window).bind("DOMMouseScroll mousewheel",f.wheel)}},setPos:function(l,p){var n=p-this.offset.top;var m=l-this.offset.left;if(!d.dragBetween){n=Math.min(this.offsetLimit.bottom,Math.max(n,this.offsetLimit.top));m=Math.min(this.offsetLimit.right,Math.max(m,this.offsetLimit.left))}this.draggedItem.parents().each(function(){if(a(this).css("position")!="static"&&(!a.browser.mozilla||a(this).css("display")!="table")){var q=a(this).offset();n-=q.top;m-=q.left;return false}});if(d.scrollContainer==window){p-=a(window).scrollTop();l-=a(window).scrollLeft();p=Math.max(0,p-a(window).height()+5)+Math.min(0,p-5);l=Math.max(0,l-a(window).width()+5)+Math.min(0,l-5)}else{var k=a(d.scrollContainer);var o=k.offset();p=Math.max(0,p-k.height()-o.top)+Math.min(0,p-o.top);l=Math.max(0,l-k.width()-o.left)+Math.min(0,l-o.left)}f.scroll.moveX=l==0?0:l*d.scrollSpeed/Math.abs(l);f.scroll.moveY=p==0?0:p*d.scrollSpeed/Math.abs(p);this.draggedItem.css({top:n,left:m})},wheel:function(l){if((a.browser.safari||a.browser.mozilla)&&f&&d.scrollContainer!=window){var k=a(d.scrollContainer);var m=k.offset();if(l.pageX>m.left&&l.pageXm.top&&l.pageYf.draggedItem.offset().top||e.left>f.draggedItem.offset().left){a(n.pos[o].elm).before(f.placeHolderItem)}else{a(n.pos[o].elm).after(f.placeHolderItem)}m.each(function(){var q=k().eq(this.idx).get(0);if(this!=q&&k().index(this)k&&this.pos[l].topm){return l}}return -1},createDropTargets:function(){if(!d.dragBetween){return}a(b).each(function(){var l=a(this.container).find("[data-placeholder]");var k=a(this.container).find("[data-droptarget]");if(l.size()>0&&k.size()>0){k.remove()}else{if(l.size()==0&&k.size()==0){if(d.itemSelector=="td"){a(d.placeHolderTemplate).attr("data-droptarget",true).appendTo(this.container)}else{a(this.container).append(f.placeHolderItem.removeAttr("data-placeholder").clone().attr("data-droptarget",true))}f.placeHolderItem.attr("data-placeholder",true)}}})}};j.init();b.push(j)});return this};a.fn.dragsort.defaults={itemSelector:"li",dragSelector:"li",dragSelectorExclude:"input, textarea, a[href], select",dragEnd:function(){},dragBetween:false,placeHolderTemplate:'
  • ',scrollContainer:window,scrollSpeed:5}})(jQuery);(function(a){a.fn.fullsize=function(b){var d={shadow:true,zoomInSpeed:200,zoomOutSpeed:200,fadeInSpeed:250,fadeOutSpeed:250,leftOffset:0,topOffset:0,iconOffset:8,forceTitleBar:false,extraTrigger:false,parentSteps:0,destroy:false,start:function(){},end:function(){}};var c=a.extend(d,b);if(c.destroy==true){a("div.fullsize-icon").remove()}a(document).keydown(function(e){if(e.keyCode==27){a("div.fullsize-wrapper, div.fullsize-sh-wrap").fadeOut(c.fadeOutSpeed,function(){a(this).remove()});c.end.call(this)}});return this.each(function(){if(c.destroy==true){a(this).unbind()}else{if(a(this).attr("longdesc")){var m=a(this);var k=m.attr("title");var f=m.attr("longdesc");var j=a("
    ").addClass("fullsize-icon").css({display:"none"});var l;if(c.extraTrigger){var h=m;for(var g=0;g<=c.parentSteps;g++){h=h.parent()}l=h.find(c.extraTrigger)}m.add(l).hover(function(){var u=m.css("marginTop").slice(0,-2);var v=m.css("marginLeft").slice(0,-2);var w=m.css("marginLeft").slice(0,-2);var r=m.css("marginLeft").slice(0,-2);if(u<0||v<0||w<0||r<0){var n=a(m);var q=a(m).parents();a(q).each(function(){if(this.tagName=="BODY"){return false}else{if(a(this).css("overflow")=="hidden"){n=a(this);return false}}});var s=n.offset();var t=parseInt(n.css("border-top-width"));var p=parseInt(n.css("border-left-width"))}else{var s=m.offset();var t=parseInt(m.css("border-top-width"));var p=parseInt(m.css("border-left-width"))}if(!t){t=0}if(!p){p=0}var o=false;a("div.fullsize-icon").each(function(){if(parseInt(a(this).css("top"))==(s.top+c.iconOffset+t)&&parseInt(a(this).css("left"))==(s.left+c.iconOffset+p)){o=true;curIcon=a(this)}});if(o==false){a(j).css({top:s.top+c.iconOffset+t,left:s.left+c.iconOffset+p});a("body").prepend(j)}a(j).show()},function(){a(j).hide()});a(j).hover(function(){a(this).show()},function(){a(this).hide()});a(j).click(function(){c.start.call(this);a("div.fullsize-wrapper, div.fullsize-sh-wrap").remove();var t=a(window).width();var r=a(window).height();var o=a(window).scrollTop();var v=a(window).scrollLeft();if(!a.support.opacity&&parseInt(a.browser.version.substr(0,1))<"8"){var n=(((t-c.leftOffset)/2)+v)-25;var u=(((r-c.topOffset)/2)+o)-25}else{var n=(((t+c.leftOffset)/2)+v)-25;var u=(((r+c.topOffset)/2)+o)-25}var s=a("
    ").addClass("fullsize-loading").css({"margin-left":n,"margin-top":u});var p=a("
    ").addClass("fullsize-loading-inner");a(s).prepend(p);a("body").prepend(s);var q=new Image();a(q).load(function(){a(this).hide();var J=m.offset();img_w=this.width;img_h=this.height;aspect=img_w/img_h;if(((img_w+c.leftOffset)+32)>t){img_w=(t-c.leftOffset)-32;img_h=img_w/aspect}if(((img_h+c.topOffset)+36)>r){img_h=(r-c.topOffset)-36;img_w=img_h*aspect}if(!a.support.opacity&&parseInt(a.browser.version.substr(0,1))<"8"){var A=Math.round((((t-c.leftOffset)-img_w)/2)+v);var B=Math.round((((r-c.topOffset)-img_h)/2)+o)}else{var A=Math.round((((t+c.leftOffset)-img_w)/2)+v);var B=Math.round((((r+c.topOffset)-img_h)/2)+o)}if(A<0){A=0}if(B<0){B=0}a(this).css({height:m.height()+"px",width:m.width()+"px"});a("div.fullsize-loading").remove();var x=a("
    ").addClass("fullsize-wrapper").css({display:"none","margin-top":J.top,"margin-left":J.left});a(x).prepend(this);if(k!=""||c.forceTitleBar==true){var I=a("").addClass("fullsize-close");var w=a("
    ").addClass("fullsize-title").css({"max-width":img_w});var L=a("
    ").addClass("fullsize-title-text").text(k);a(w).prepend(I);a(w).prepend(L);a(x).prepend(w);a("body").prepend(x);if(B!=0){B=B-12}}else{a(this).addClass("fullsize-close");a("body").prepend(x)}if(c.shadow==true){if(a.browser.safari||(a.browser.mozilla&&a.browser.version.substr(0,5)>="1.9.1")){a(x).css({"-webkit-box-shadow":"0 2px 16px #000","-moz-box-shadow":"0 2px 16px #000","box-shadow":"0 2px 16px #000"})}else{var z=a("
    ").addClass("fullsize-sh-wrap").css({display:"none",width:m.width(),"margin-top":J.top,"margin-left":J.left});var y=a("
    ").addClass("fullsize-sh-top");var M=a("
    ").addClass("fullsize-sh-top-l");var K=a("
    ").addClass("fullsize-sh-top-m");var F=a("
    ").addClass("fullsize-sh-top-r");a(y).append(M).append(F).append(K);a(z).prepend(y);var C=a("
    ").addClass("fullsize-sh-body");var D=a("
    ").addClass("fullsize-sh-body-r");a(C).append(D);a(z).append(C);var H=a("
    ").addClass("fullsize-sh-bottom");var G=a("
    ").addClass("fullsize-sh-bottom-l");var N=a("
    ").addClass("fullsize-sh-bottom-m");var E=a("
    ").addClass("fullsize-sh-bottom-r");a(H).append(G).append(E).append(N);a(z).append(H);a("body").prepend(z);a(C).animate({height:parseInt(x.height())+img_h-22},{queue:false,duration:c.zoomInSpeed});a(z).fadeIn(c.fadeInSpeed).animate({height:parseInt(x.height())+img_h+22,width:img_w+22,marginTop:B-9,marginLeft:A-11},{queue:false,duration:c.zoomInSpeed})}}a(this).fadeIn(c.fadeInSpeed).animate({height:img_h,width:img_w},{queue:false,duration:c.zoomInSpeed});a(x).fadeIn(c.fadeInSpeed).animate({width:img_w,marginTop:B,marginLeft:A},{queue:false,duration:c.zoomInSpeed});a(".fullsize-close").click(function(){e(q,x,m,a(this))})}).attr("src",f).addClass("fullsize-image")});function e(o,n,r,q){var p=r.offset();a(o).fadeOut(c.fadeOutSpeed).animate({height:r.height(),width:r.width()},{queue:false,duration:c.zoomOutSpeed});if(c.shadow==true){a("div.fullsize-sh-wrap").remove()}a(n).fadeOut(c.fadeOutSpeed).animate({width:r.width(),marginTop:p.top,marginLeft:p.left},{queue:false,duration:c.zoomOutSpeed,complete:function(){q.remove()}});c.end.call(this)}}}})}})(jQuery);(function(b){var a;b.fn.jqprint=function(d){a=b.extend({},b.fn.jqprint.defaults,d);var c=(this instanceof jQuery)?this:b(this);if(b("#jqPPreview").length==0){var f=b("';v=G.firstChild;F.appendChild(v);q.addEvent(v,"load",function(){var I;try{I=v.contentWindow.document||v.contentDocument||window.frames[v.id].document;if(/^4(0[0-9]|1[0-7]|2[2346])\s/.test(I.title)){u=I.title.replace(/^(\d+).*$/,"$1")}else{u=200;s=k.trim(I.body.innerHTML);A.trigger({type:"progress",loaded:s.length,total:s.length});if(w){A.trigger({type:"uploadprogress",loaded:w.size||1025,total:w.size||1025})}}}catch(H){if(j.hasSameOrigin(E.url)){u=404}else{t.call(A,function(){A.trigger("error")});return}}t.call(A,function(){A.trigger("load")})},A.uid)}if(y instanceof r&&y.hasBlob()){w=y.getBlob();z=w.uid;C=m.get(z);x=m.get(z+"_form");if(!x){throw new o.DOMException(o.DOMException.NOT_FOUND_ERR)}}else{z=k.guid("uid_");x=document.createElement("form");x.setAttribute("id",z+"_form");x.setAttribute("method",E.method);x.setAttribute("enctype","multipart/form-data");x.setAttribute("encoding","multipart/form-data");x.setAttribute("target",z+"_iframe");D.getShimContainer().appendChild(x)}if(y instanceof r){y.each(function(H,F){if(H instanceof l){if(C){C.setAttribute("name",F)}}else{var G=document.createElement("input");k.extend(G,{type:"hidden",name:F,value:H});if(C){x.insertBefore(G,C)}else{x.appendChild(G)}}})}x.setAttribute("action",E.url);B();x.submit();A.trigger("loadstart")},getStatus:function(){return u},getResponse:function(w){if("json"===w){if(k.typeOf(s)==="string"&&!!window.JSON){try{return JSON.parse(s.replace(/^\s*]*>/,"").replace(/<\/pre>\s*$/,""))}catch(x){return null}}}else{if("document"===w){}}return s},abort:function(){var w=this;if(v&&v.contentWindow){if(v.contentWindow.stop){v.contentWindow.stop()}else{if(v.contentWindow.document.execCommand){v.contentWindow.document.execCommand("Stop")}else{v.src="about:blank"}}}t.call(this,function(){w.dispatchEvent("abort")})}})}return(n.XMLHttpRequest=p)});h("moxie/runtime/html4/image/Image",["moxie/runtime/html4/Runtime","moxie/runtime/html5/image/Image"],function(k,j){return(k.Image=j)});a(["moxie/core/utils/Basic","moxie/core/I18n","moxie/core/utils/Mime","moxie/core/utils/Env","moxie/core/utils/Dom","moxie/core/Exceptions","moxie/core/EventTarget","moxie/core/utils/Encode","moxie/runtime/Runtime","moxie/runtime/RuntimeClient","moxie/file/Blob","moxie/file/File","moxie/file/FileInput","moxie/file/FileDrop","moxie/runtime/RuntimeTarget","moxie/file/FileReader","moxie/core/utils/Url","moxie/file/FileReaderSync","moxie/xhr/FormData","moxie/xhr/XMLHttpRequest","moxie/runtime/Transporter","moxie/image/Image","moxie/core/utils/Events"])})(this);(function(a){var d={},c=a.moxie.core.utils.Basic.inArray;(function b(f){var e,g;for(e in f){g=typeof(f[e]);if(g==="object"&&!~c(e,["Exceptions","Env","Mime"])){b(f[e])}else{if(g==="function"){d[e]=f[e]}}}})(a.moxie);d.Env=a.moxie.core.utils.Env;d.Mime=a.moxie.core.utils.Mime;d.Exceptions=a.moxie.core.Exceptions;a.mOxie=d;if(!a.o){a.o=d}return d})(this);(function(f,h,e){var d=f.setTimeout,g={};function a(k){var j=k.required_features,l={};function m(o,p,n){var q={chunks:"slice_blob",jpgresize:"send_binary_string",pngresize:"send_binary_string",progress:"report_upload_progress",multi_selection:"select_multiple",dragdrop:"drag_and_drop",drop_element:"drag_and_drop",headers:"send_custom_headers",urlstream_upload:"send_binary_string",canSendBinary:"send_binary",triggerDialog:"summon_file_dialog"};if(q[o]){l[q[o]]=p}else{if(!n){l[o]=p}}}if(typeof(j)==="string"){c.each(j.split(/\s*,\s*/),function(n){m(n,true)})}else{if(typeof(j)==="object"){c.each(j,function(o,n){m(n,o)})}else{if(j===true){if(k.chunk_size>0){l.slice_blob=true}if(k.resize.enabled||!k.multipart){l.send_binary_string=true}c.each(k,function(o,n){m(n,!!o,true)})}}}return l}var c={VERSION:"2.1.2",STOPPED:1,STARTED:2,QUEUED:1,UPLOADING:2,FAILED:4,DONE:5,GENERIC_ERROR:-100,HTTP_ERROR:-200,IO_ERROR:-300,SECURITY_ERROR:-400,INIT_ERROR:-500,FILE_SIZE_ERROR:-600,FILE_EXTENSION_ERROR:-601,FILE_DUPLICATE_ERROR:-602,IMAGE_FORMAT_ERROR:-700,MEMORY_ERROR:-701,IMAGE_DIMENSIONS_ERROR:-702,mimeTypes:h.mimes,ua:h.ua,typeOf:h.typeOf,extend:h.extend,guid:h.guid,get:function b(m){var k=[],l;if(h.typeOf(m)!=="array"){m=[m]}var j=m.length;while(j--){l=h.get(m[j]);if(l){k.push(l)}}return k.length?k:null},each:h.each,getPos:h.getPos,getSize:h.getSize,xmlEncode:function(k){var l={"<":"lt",">":"gt","&":"amp",'"':"quot","'":"#39"},j=/[<>&\"\']/g;return k?(""+k).replace(j,function(m){return l[m]?"&"+l[m]+";":m}):k},toArray:h.toArray,inArray:h.inArray,addI18n:h.addI18n,translate:h.translate,isEmptyObj:h.isEmptyObj,hasClass:h.hasClass,addClass:h.addClass,removeClass:h.removeClass,getStyle:h.getStyle,addEvent:h.addEvent,removeEvent:h.removeEvent,removeAllEvents:h.removeAllEvents,cleanName:function(j){var k,l;l=[/[\300-\306]/g,"A",/[\340-\346]/g,"a",/\307/g,"C",/\347/g,"c",/[\310-\313]/g,"E",/[\350-\353]/g,"e",/[\314-\317]/g,"I",/[\354-\357]/g,"i",/\321/g,"N",/\361/g,"n",/[\322-\330]/g,"O",/[\362-\370]/g,"o",/[\331-\334]/g,"U",/[\371-\374]/g,"u"];for(k=0;k0?"&":"?")+l}return k},formatSize:function(k){if(k===e||/\D/.test(k)){return c.translate("N/A")}function j(n,m){return Math.round(n*Math.pow(10,m))/Math.pow(10,m)}var l=Math.pow(1024,4);if(k>l){return j(k/l,1)+" "+c.translate("tb")}if(k>(l/=1024)){return j(k/l,1)+" "+c.translate("gb")}if(k>(l/=1024)){return j(k/l,1)+" "+c.translate("mb")}if(k>1024){return Math.round(k/1024)+" "+c.translate("kb")}return k+" "+c.translate("b")},parseSize:h.parseSizeStr,predictRuntime:function(l,k){var j,m;j=new c.Uploader(l);m=h.Runtime.thatCan(j.getOption().required_features,k||l.runtimes);j.destroy();return m},addFileFilter:function(k,j){g[k]=j}};c.addFileFilter("mime_types",function(l,k,j){if(l.length&&!l.regexp.test(k.name)){this.trigger("Error",{code:c.FILE_EXTENSION_ERROR,message:c.translate("File extension error."),file:k});j(false)}else{j(true)}});c.addFileFilter("max_file_size",function(m,k,j){var l;m=c.parseSize(m);if(k.size!==l&&m&&k.size>m){this.trigger("Error",{code:c.FILE_SIZE_ERROR,message:c.translate("File size error."),file:k});j(false)}else{j(true)}});c.addFileFilter("prevent_duplicates",function(m,k,j){if(m){var l=this.files.length;while(l--){if(k.name===this.files[l].name&&k.size===this.files[l].size){this.trigger("Error",{code:c.FILE_DUPLICATE_ERROR,message:c.translate("Duplicate file error."),file:k});j(false);return}}}j(true)});c.Uploader=function(m){var u=c.guid(),H,q=[],y={},G=[],x=[],D,K,o=false,w;function J(){var M,N=0,L;if(this.state==c.STARTED){for(L=0;L0?Math.ceil(L.loaded/L.size*100):100;k()}function k(){var M,L;K.reset();for(M=0;M0?Math.ceil(K.uploaded/q.length*100):0}else{K.bytesPerSec=Math.ceil(K.loaded/((+new Date()-D||1)/1000));K.percent=K.size>0?Math.ceil(K.loaded/K.size*100):0}}function I(){var L=G[0]||x[0];if(L){return L.getRuntime().uid}return false}function F(M,L){if(M.ruid){var N=h.Runtime.getInfo(M.ruid);if(N){return N.can(L)}}return false}function z(){this.bind("FilesAdded FilesRemoved",function(L){L.trigger("QueueChanged");L.refresh()});this.bind("CancelUpload",j);this.bind("BeforeUpload",C);this.bind("UploadFile",E);this.bind("UploadProgress",v);this.bind("StateChanged",B);this.bind("QueueChanged",k);this.bind("Error",s);this.bind("FileUploaded",t);this.bind("Destroy",r)}function A(Q,N){var O=this,M=0,L=[];var P={runtime_order:Q.runtimes,required_caps:Q.required_features,preferred_caps:y,swf_url:Q.flash_swf_url,xap_url:Q.silverlight_xap_url};c.each(Q.runtimes.split(/\s*,\s*/),function(R){if(Q[R]){P[R]=Q[R]}});if(Q.browse_button){c.each(Q.browse_button,function(R){L.push(function(S){var T=new h.FileInput(c.extend({},P,{accept:Q.filters.mime_types,name:Q.file_data_name,multiple:Q.multi_selection,container:Q.container,browse_button:R}));T.onready=function(){var U=h.Runtime.getInfo(this.ruid);h.extend(O.features,{chunks:U.can("slice_blob"),multipart:U.can("send_multipart"),multi_selection:U.can("select_multiple")});M++;G.push(this);S()};T.onchange=function(){O.addFile(this.files)};T.bind("mouseenter mouseleave mousedown mouseup",function(U){if(!o){if(Q.browse_button_hover){if("mouseenter"===U.type){h.addClass(R,Q.browse_button_hover)}else{if("mouseleave"===U.type){h.removeClass(R,Q.browse_button_hover)}}}if(Q.browse_button_active){if("mousedown"===U.type){h.addClass(R,Q.browse_button_active)}else{if("mouseup"===U.type){h.removeClass(R,Q.browse_button_active)}}}}});T.bind("mousedown",function(){O.trigger("Browse")});T.bind("error runtimeerror",function(){T=null;S()});T.init()})})}if(Q.drop_element){c.each(Q.drop_element,function(R){L.push(function(S){var T=new h.FileDrop(c.extend({},P,{drop_zone:R}));T.onready=function(){var U=h.Runtime.getInfo(this.ruid);O.features.dragdrop=U.can("drag_and_drop");M++;x.push(this);S()};T.ondrop=function(){O.addFile(this.files)};T.bind("error runtimeerror",function(){T=null;S()});T.init()})})}h.inSeries(L,function(){if(typeof(N)==="function"){N(M)}})}function p(N,P,L){var M=new h.Image();try{M.onload=function(){if(P.width>this.width&&P.height>this.height&&P.quality===e&&P.preserve_headers&&!P.crop){this.destroy();return L(N)}M.downsize(P.width,P.height,P.crop,P.preserve_headers)};M.onresize=function(){L(this.getAsBlob(N.type,P.quality));this.destroy()};M.onerror=function(){L(N)};M.load(N)}catch(O){L(N)}}function n(N,P,Q){var M=this,L=false;function O(S,T,U){var R=H[S];switch(S){case"max_file_size":if(S==="max_file_size"){H.max_file_size=H.filters.max_file_size=T}break;case"chunk_size":if(T=c.parseSize(T)){H[S]=T;H.send_file_name=true}break;case"multipart":H[S]=T;if(!T){H.send_file_name=true}break;case"unique_names":H[S]=T;if(T){H.send_file_name=true}break;case"filters":if(c.typeOf(T)==="array"){T={mime_types:T}}if(U){c.extend(H.filters,T)}else{H.filters=T}if(T.mime_types){H.filters.mime_types.regexp=(function(V){var W=[];c.each(V,function(X){c.each(X.extensions.split(/,/),function(Y){if(/^\s*\*\s*$/.test(Y)){W.push("\\.*")}else{W.push("\\."+Y.replace(new RegExp("["+("/^$.*+?|()[]{}\\".replace(/./g,"\\$&"))+"]","g"),"\\$&"))}})});return new RegExp("("+W.join("|")+")$","i")}(H.filters.mime_types))}break;case"resize":if(U){c.extend(H.resize,T,{enabled:true})}else{H.resize=T}break;case"prevent_duplicates":H.prevent_duplicates=H.filters.prevent_duplicates=!!T;break;case"browse_button":case"drop_element":T=c.get(T);case"container":case"runtimes":case"multi_selection":case"flash_swf_url":case"silverlight_xap_url":H[S]=T;if(!U){L=true}break;default:H[S]=T}if(!U){M.trigger("OptionChanged",S,T,R)}}if(typeof(N)==="object"){c.each(N,function(S,R){O(R,S,Q)})}else{O(N,P,Q)}if(Q){H.required_features=a(c.extend({},H));y=a(c.extend({},H,{required_features:true}))}else{if(L){M.trigger("Destroy");A.call(M,H,function(R){if(R){M.runtime=h.Runtime.getInfo(I()).type;M.trigger("Init",{runtime:M.runtime});M.trigger("PostInit")}else{M.trigger("Error",{code:c.INIT_ERROR,message:c.translate("Init error.")})}})}}}function C(L,M){if(L.settings.unique_names){var O=M.name.match(/\.([^.]+)$/),N="part";if(O){N=O[1]}M.target_name=M.id+"."+N}}function E(T,Q){var N=T.settings.url,R=T.settings.chunk_size,U=T.settings.max_retries,O=T.features,S=0,L;if(Q.loaded){S=Q.loaded=R?R*Math.floor(Q.loaded/R):0}function P(){if(U-->0){d(M,1000)}else{Q.loaded=S;T.trigger("Error",{code:c.HTTP_ERROR,message:c.translate("HTTP Error."),file:Q,response:w.responseText,status:w.status,responseHeaders:w.getAllResponseHeaders()})}}function M(){var X,W,V={},Y;if(Q.status!==c.UPLOADING||T.state===c.STOPPED){return}if(T.settings.send_file_name){V.name=Q.target_name||Q.name}if(R&&O.chunks&&L.size>R){Y=Math.min(R,L.size-S);X=L.slice(S,S+Y)}else{Y=L.size;X=L}if(R&&O.chunks){if(T.settings.send_chunk_number){V.chunk=Math.ceil(S/R);V.chunks=Math.ceil(L.size/R)}else{V.offset=S;V.total=L.size}}w=new h.XMLHttpRequest();if(w.upload){w.upload.onprogress=function(Z){Q.loaded=Math.min(Q.size,S+Z.loaded);T.trigger("UploadProgress",Q)}}w.onload=function(){if(w.status>=400){P();return}U=T.settings.max_retries;if(Y=L.size){if(Q.size!=Q.origSize){L.destroy();L=null}T.trigger("UploadProgress",Q);Q.status=c.DONE;T.trigger("FileUploaded",Q,{response:w.responseText,status:w.status,responseHeaders:w.getAllResponseHeaders()})}else{d(M,1)}};w.onerror=function(){P()};w.onloadend=function(){this.destroy();w=null};if(T.settings.multipart&&O.multipart){w.open(T.settings.method,N,true);c.each(T.settings.headers,function(aa,Z){w.setRequestHeader(Z,aa)});W=new h.FormData();c.each(c.extend(V,T.settings.multipart_params),function(aa,Z){W.append(Z,aa)});W.append(T.settings.file_data_name,X);w.send(W,{runtime_order:T.settings.runtimes,required_caps:T.settings.required_features,preferred_caps:y,swf_url:T.settings.flash_swf_url,xap_url:T.settings.silverlight_xap_url})}else{N=c.buildUrl(T.settings.url,c.extend(V,T.settings.multipart_params));w.open(T.settings.method,N,true);w.setRequestHeader("Content-Type",T.settings.content_type);c.each(T.settings.headers,function(aa,Z){w.setRequestHeader(Z,aa)});w.send(X,{runtime_order:T.settings.runtimes,required_caps:T.settings.required_features,preferred_caps:y,swf_url:T.settings.flash_swf_url,xap_url:T.settings.silverlight_xap_url})}}L=Q.getSource();if(T.settings.resize.enabled&&F(L,"send_binary_string")&&!!~h.inArray(L.type,["image/jpeg","image/png"])){p.call(this,L,T.settings.resize,function(V){L=V;Q.size=V.size;M()})}else{M()}}function v(L,M){l(M)}function B(L){if(L.state==c.STARTED){D=(+new Date())}else{if(L.state==c.STOPPED){for(var M=L.files.length-1;M>=0;M--){if(L.files[M].status==c.UPLOADING){L.files[M].status=c.QUEUED;k()}}}}}function j(){if(w){w.abort()}}function t(L){k();d(function(){J.call(L)},1)}function s(L,M){if(M.code===c.INIT_ERROR){L.destroy()}else{if(M.file){M.file.status=c.FAILED;l(M.file);if(L.state==c.STARTED){L.trigger("CancelUpload");d(function(){J.call(L)},1)}}}}function r(L){L.stop();c.each(q,function(M){M.destroy()});q=[];if(G.length){c.each(G,function(M){M.destroy()});G=[]}if(x.length){c.each(x,function(M){M.destroy()});x=[]}y={};o=false;D=w=null;K.reset()}H={runtimes:h.Runtime.order,max_retries:0,chunk_size:0,multipart:true,multi_selection:true,file_data_name:"file",flash_swf_url:"js/Moxie.swf",silverlight_xap_url:"js/Moxie.xap",filters:{mime_types:[],prevent_duplicates:false,max_file_size:0},resize:{enabled:false,preserve_headers:true,crop:false},send_file_name:true,send_chunk_number:true,method:"post",content_type:"application/octet-stream"};n.call(this,m,null,true);K=new c.QueueProgress();c.extend(this,{id:u,uid:u,state:c.STOPPED,features:{},runtime:null,files:q,settings:H,total:K,init:function(){var L=this;if(typeof(H.preinit)=="function"){H.preinit(L)}else{c.each(H.preinit,function(N,M){L.bind(M,N)})}z.call(this);if(!H.browse_button||!H.url){this.trigger("Error",{code:c.INIT_ERROR,message:c.translate("Init error.")});return}A.call(this,H,function(M){if(typeof(H.init)=="function"){H.init(L)}else{c.each(H.init,function(O,N){L.bind(N,O)})}if(M){L.runtime=h.Runtime.getInfo(I()).type;L.trigger("Init",{runtime:L.runtime});L.trigger("PostInit")}else{L.trigger("Error",{code:c.INIT_ERROR,message:c.translate("Init error.")})}})},setOption:function(L,M){n.call(this,L,M,!this.runtime)},getOption:function(L){if(!L){return H}return H[L]},refresh:function(){if(G.length){c.each(G,function(L){L.trigger("Refresh")})}this.trigger("Refresh")},start:function(){if(this.state!=c.STARTED){this.state=c.STARTED;this.trigger("StateChanged");J.call(this)}},stop:function(){if(this.state!=c.STOPPED){this.state=c.STOPPED;this.trigger("StateChanged");this.trigger("CancelUpload")}},disableBrowse:function(){o=arguments[0]!==e?arguments[0]:true;if(G.length){c.each(G,function(L){L.disable(o)})}this.trigger("DisableBrowse",o)},getFile:function(M){var L;for(L=q.length-1;L>=0;L--){if(q[L].id===M){return q[L]}}},addFile:function(Q,S){var N=this,L=[],M=[],O;function R(V,U){var T=[];h.each(N.settings.filters,function(X,W){if(g[W]){T.push(function(Y){g[W].call(N,X,V,function(Z){Y(!Z)})})}});h.inSeries(T,U)}function P(T){var U=h.typeOf(T);if(T instanceof h.File){if(!T.ruid&&!T.isDetached()){if(!O){return false}T.ruid=O;T.connectRuntime(O)}P(new c.File(T))}else{if(T instanceof h.Blob){P(T.getSource());T.destroy()}else{if(T instanceof c.File){if(S){T.name=S}L.push(function(V){R(T,function(W){if(!W){q.push(T);M.push(T);N.trigger("FileFiltered",T)}d(V,1)})})}else{if(h.inArray(U,["file","blob"])!==-1){P(new h.File(null,T))}else{if(U==="node"&&h.typeOf(T.files)==="filelist"){h.each(T.files,P)}else{if(U==="array"){S=null;h.each(T,P)}}}}}}}O=I();P(Q);if(L.length){h.inSeries(L,function(){if(M.length){N.trigger("FilesAdded",M)}})}},removeFile:function(M){var N=typeof(M)==="string"?M:M.id;for(var L=q.length-1;L>=0;L--){if(q[L].id===N){return this.splice(L,1)[0]}}},splice:function(O,L){var M=q.splice(O===e?0:O,L===e?q.length:L);var N=false;if(this.state==c.STARTED){c.each(M,function(P){if(P.status===c.UPLOADING){N=true;return false}});if(N){this.stop()}}this.trigger("FilesRemoved",M);c.each(M,function(P){P.destroy()});if(N){this.start()}return M},bind:function(M,O,N){var L=this;c.Uploader.prototype.bind.call(this,M,function(){var P=[].slice.call(arguments);P.splice(0,1,L);return O.apply(this,P)},0,N)},destroy:function(){this.trigger("Destroy");H=K=null;this.unbindAll()}})};c.Uploader.prototype=h.EventTarget.instance;c.File=(function(){var k={};function j(l){c.extend(this,{id:c.guid(),name:l.name||l.fileName,type:l.type||"",size:l.size||l.fileSize,origSize:l.size||l.fileSize,loaded:0,percent:0,status:c.QUEUED,lastModifiedDate:l.lastModifiedDate||(new Date()).toLocaleString(),getNative:function(){var m=this.getSource().getSource();return h.inArray(h.typeOf(m),["blob","file"])!==-1?m:null},getSource:function(){if(!k[this.id]){return null}return k[this.id]},destroy:function(){var m=this.getSource();if(m){m.destroy();delete k[this.id]}}});k[this.id]=l}return j}());c.QueueProgress=function(){var j=this;j.size=0;j.loaded=0;j.uploaded=0;j.failed=0;j.queued=0;j.percent=0;j.bytesPerSec=0;j.reset=function(){j.size=j.loaded=j.uploaded=j.failed=j.queued=j.percent=j.bytesPerSec=0}};f.plupload=c}(window,mOxie));var arrayEtats=new Array();function rollover(a){var d=a.className;var e=d.match(/[a-zA-Z]+_(off)/);if(e){var c=e[0];var b=e[1];enregistrerEtat(a.id,b);a.className=d.replace(/_off/,"_on")}}function rollout(a){var d=a.className;var e=d.match(/[a-zA-Z]+_(on|down)/);if(e){var c=e[0];var b=e[1];var f=getEtat(a.id);a.className=d.replace(/_(on|down)/,"_"+f)}}function rolldown(a){var d=a.className;var e=d.match(/[a-zA-Z]+_(on|off)/);if(e){var c=e[0];var b=e[1];enregistrerEtat(a.id,"down");a.className=d.replace(/_(on|off)/,"_down")}}function enregistrerEtat(b,a){window.arrayEtats[b]=a}function getEtat(b){var a=window.arrayEtats[b];return a}function initRolloverBtn(c){if(!c){c=".rollAuto"}var a=[];var b=0;$(c+" a").each(function(){if($(this).find("img").attr("src")&&$(this).find("img").attr("src").search("off.")!=-1){$(this).mouseover(function(){$(this).find("img").attr("src",$(this).find("img").attr("src").replace("off.","on."))});$(this).mouseleave(function(){$(this).find("img").attr("src",$(this).find("img").attr("src").replace("on.","off."))});a[b]=new Image();$(a[b]).attr("src",$(this).find("img").attr("src").replace("off.","on."));b++}})}function getStyleCss(b,a){if(b.style[a]){return b.style[a]}else{if(b.currentStyle){return b.currentStyle[a]}else{if(document.defaultView&&document.defaultView.getComputedStyle){var c=document.defaultView.getComputedStyle(b,null);return c.getPropertyValue(a)}else{return null}}}}function alerte(b,a){if(typeof(Logger)=="object"){Logger.ajoutMessage(b,"erreur");Logger.afficheMessage()}else{if(!window.document.getElementById("message")){alert(b)}else{window.clearTimeout(window.alerteTimeOut);while(b.match("\n")){b=b.replace("\n","
    ")}window.document.getElementById("message").innerHTML=b;if(!a){var a=4}window.alerteTimeOut=window.setTimeout("window.document.getElementById(\"message\").innerHTML = '';",a*1000)}}}function printAndClose(a){if(!a){var a=1500}navigateur=NavCheck();window.status="Demande d'impression en cours...";if(navigateur.opera==false){window.print()}else{window.onload=window.print}window.setTimeout("window.self.close();",a)}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b "+j.text()}}else{f=j.text()}var k='
  • '+f+'
  • ';if(h.boolTrierAssocies==false){h.insererEltAssocie(f,k)}else{$("#"+h.nomAssoc+" .listeElementsAssocies ul").append(k)}if(h.uniqueAssoc==true){j.addClass("dejaAssocie");if(h.boolAssocieGroupe==true){j.find("ul li").addClass("dejaAssocie")}}window._objetAssociations[h.nomAssoc].arrayIdElementsAssocies.push(e+"");h.callBack()}else{alert(_("Impossible de dissocier cet élément : Erreur ")+l.message)}}else{alert(_("Impossible d'associer cet élément. Contacter ANTHEMIS."))}})};this.dissocier=function(e){var g=this;var f=this.getOpts();f.fonction="dissocier";f.idEnfant=e;$.getJSON(this.urlBackAjax,f,function(k,l){if(l=="success"){if(k.resultat=="OK"){var h=$("#"+g.nomAssoc+"_B_"+e);var j=$("#"+g.nomAssoc+"_A_"+e);h.remove();if(g.boolAssocieGroupe==true){if(j.parent().find("li.dejaAssocie").length==1){j.parent().find("div.groupe").removeClass("dejaAssocie")}if(j.hasClass("groupe")==true){j.parent().find("li").removeClass("dejaAssocie")}}if(g.uniqueAssoc==true){j.removeClass("dejaAssocie")}window._objetAssociations[g.nomAssoc].arrayIdElementsAssocies=[];$("#"+g.nomAssoc+" .listeElementsAssocies li").each(function(){var m=$(this).attr("id").replace(/.+_[AB]_/,"");window._objetAssociations[g.nomAssoc].arrayIdElementsAssocies.push(m)});g.callBack()}else{alert(_("Impossible de dissocier cet élément : Erreur ")+k.message)}}else{alert(_("Impossible de dissocier cet élément. Contacter ANTHEMIS."))}})};this.afficheFamillesElementsAssociables=function(){if(this.idParent!=""&&this.idParent!=0){var g=this;this.afficheLoading();var f=this.getOpts();f.fonction="getFamillesElementsAssociables";var e=$("#"+g.nomAssoc+" .listeElementsAssociables");$.getJSON(this.urlBackAjax,f,function(k,m){if(m=="success"){g.masquerLoading();var h=$("#"+g.nomAssoc+" .listeFamillesElementsAssociables");var l=0;var j="";for(nomGroupe in k){if(k[nomGroupe].Groupe){g.nivFamille=-1;j=g.afficheListeFamilles(k).outerHTML}}if(j.length>0){h.html(j);if(g.boolUtiliserFiltrageFamille==true){$("._filtreProdByFamille").off("click").on("click",function(){var n=$(this).attr("id").replace(g.nomAssoc+"_A_","");$("._filtreProdByFamille.selected").removeClass("selected");$(this).addClass("selected");g.afficheElementsAssociablesByFamille(n)})}}else{e.html('
    '+_("Aucun élément ne correspond à votre recherche.")+"
    ");h.html('
    '+_("Aucun élément ne correspond à votre recherche.")+"
    ");$("#"+g.nomAssoc+" .nbResultatsA").html("0 "+_("élément trouvé"))}}})}};this.afficheListeFamilles=function(f){var m=this;var j=document.createElement("ul");m.nivFamille++;for(var h in f){var k=f[h];var e=document.createElement("li");var l=document.createElement("div");var g=0,h;for(h in k.Filles){if(k.Filles.hasOwnProperty(h)){g++}}e.setAttribute("class"," assoc-lib assoc-niv"+m.nivFamille);l.setAttribute("id",m.nomAssoc+"_A_"+k.Identifiant);l.setAttribute("class","_filtreProdByFamille");l.innerHTML=k.Groupe;e.appendChild(l);if(g>0){e.appendChild(m.afficheListeFamilles(k.Filles))}j.appendChild(e)}m.nivFamille--;return j};this.afficheElementsAssociablesByFamille=function(e){if(this.idParent!=""&&this.idParent!=0){var g=this;this.afficheLoading();var f=this.getOpts();f.fonction="getElementsAssociablesByFamille";f.idFamille=e;$.getJSON(this.urlBackAjax,f,function(k,m){if(m=="success"){g.masquerLoading();var h=$("#"+g.nomAssoc+" .listeElementsAssociables");var l=0;var j="";for(nomGroupe in k){if(k[nomGroupe].Groupe){j+="
      ";if(nomGroupe!="TOUT"){if(g.boolAssocieGroupe==true){if(g.getCssAssociable(k[nomGroupe].Identifiant)==""&&g.getArrayAssociable(k[nomGroupe].Groupe)==false){j+='
      '+nomGroupe}else{j+='
      '+nomGroupe}j+='';j+="
      "}else{j+='
      '+nomGroupe+"
      "}l++}if(g.nomChampsInfoComplementaire==""||g.boolAfficheInfoCompAssociable==false){if(typeof(k[nomGroupe].Groupe)==="object"){for(numInfos in k[nomGroupe].Groupe){if(g.boolAssocieGroupe==true&&g.getCssAssociable(k[nomGroupe].Identifiant)!=""){j+='
    • '+k[nomGroupe].Groupe[numInfos][g.nomChampsLibelle]+'
    • '}else{j+='
    • "+k[nomGroupe].Groupe[numInfos][g.nomChampsLibelle]+'
    • '}l++}}}else{for(numInfos in k[nomGroupe]){j+='
    • "+k[nomGroupe][numInfos][g.nomChampsLibelle]+" ("+k[nomGroupe][numInfos][g.nomChampsInfoComplementaire]+')
    • ';l++}}j+="
    "}}if(l>0){h.html(j);$("#"+g.nomAssoc+" .nbResultatsA").html(l+" "+_("élément(s) trouvé(s)"))}else{h.html('
    '+_("Aucun élément ne correspond à votre recherche.")+"
    ");$("#"+g.nomAssoc+" .nbResultatsA").html("0 "+_("élément trouvé"))}}})}};this.afficheElementsAssociables=function(){if(this.idParent!=""&&this.idParent!=0){var f=this;this.afficheLoading();var e=this.getOpts();e.fonction="getElementsAssociables";$.getJSON(this.urlBackAjax,e,function(j,l){if(l=="success"){f.masquerLoading();var g=$("#"+f.nomAssoc+" .listeElementsAssociables");var k=0;var h="";if($.isArray(j.TOUT)){alert("Rupture de compatiblité : Modifier en PHP le retour de backAssociations.php \nRemplacer $arrayRetour['TOUT'] \npar $arrayRetour['TOUT']['Groupe']")}for(nomGroupe in j){if(j[nomGroupe].Groupe){h+="
      ";if(nomGroupe!="TOUT"){if(f.boolAssocieGroupe==true){if(f.getCssAssociable(j[nomGroupe].Identifiant)==""&&f.getArrayAssociable(j[nomGroupe].Groupe)==false){h+='
      '+nomGroupe}else{h+='
      '+nomGroupe}h+='';h+="
      "}else{h+='
      '+nomGroupe+"
      "}k++}if(f.nomChampsInfoComplementaire==""||f.boolAfficheInfoCompAssociable==false){if(typeof(j[nomGroupe].Groupe)==="object"){for(numInfos in j[nomGroupe].Groupe){if(f.boolAssocieGroupe==true&&f.getCssAssociable(j[nomGroupe].Identifiant)!=""){h+='
    • '+j[nomGroupe].Groupe[numInfos][f.nomChampsLibelle]+'
    • '}else{h+='
    • "+j[nomGroupe].Groupe[numInfos][f.nomChampsLibelle]+'
    • '}k++}}}else{for(numInfos in j[nomGroupe].Groupe){h+='
    • "+j[nomGroupe].Groupe[numInfos][f.nomChampsLibelle];if(j[nomGroupe].Groupe[numInfos][f.nomChampsInfoComplementaire]!=""){h+=" ("+j[nomGroupe].Groupe[numInfos][f.nomChampsInfoComplementaire]+")"}h+=' ';h+="
    • ";k++}}h+="
    "}}if(k>0){g.html(h);$("#"+f.nomAssoc+" .nbResultatsA").html(k+" "+_("éléments trouvés"))}else{g.html('
    '+_("Aucun élément ne correspond à votre recherche.")+"
    ");$("#"+f.nomAssoc+" .nbResultatsA").html("0 "+_("élément trouvé"))}}})}};this.getCssAssociable=function(e){if(in_array(e,window._objetAssociations[this.nomAssoc].arrayIdElementsAssocies)&&this.uniqueAssoc){return'class="dejaAssocie"'}else{return""}};this.getArrayAssociable=function(f){var g=false;for(var e in f){if(this.getCssAssociable(f[e].IdFamille)!=""){g=true;break}}return g};this.afficheElementsAssocies=function(){if(this.idParent!=""&&this.idParent!=0){var f=this;this.afficheLoading();var e=this.getOpts();e.fonction="getElementsAssocies";$.getJSON(this.urlBackAjax,e,function(j,k){if(k=="success"){f.masquerLoading();var g=$("#"+f.nomAssoc+" .listeElementsAssocies");if(j&&j.length>0){var h="
      ";if(f.boolAssocieGroupe==true){for(numInfos in j){if(j[numInfos].NiveauFamille==1){h+='
    • '+j[numInfos]["LibFamilleParente"]+" > "+j[numInfos][f.nomChampsLibelle]+'
    • '}else{h+='
    • '+j[numInfos][f.nomChampsLibelle]+'
    • '}window._objetAssociations[f.nomAssoc].arrayIdElementsAssocies.push(j[numInfos][f.nomPkEnfant])}}else{if(f.nomChampsInfoComplementaire==""||f.boolAfficheInfoCompAssocies==false){for(numInfos in j){h+='
    • '+j[numInfos][f.nomChampsLibelle]+'
    • ';window._objetAssociations[f.nomAssoc].arrayIdElementsAssocies.push(j[numInfos][f.nomPkEnfant])}}else{for(numInfos in j){h+='
    • '+j[numInfos][f.nomChampsLibelle];if(j[numInfos][f.nomChampsInfoComplementaire]!=""){h+=" ("+j[numInfos][f.nomChampsInfoComplementaire]+")"}h+=' ';h+="
    • ";window._objetAssociations[f.nomAssoc].arrayIdElementsAssocies.push(j[numInfos][f.nomPkEnfant])}}}h+="
    ";g.html(h)}else{g.html('
    '+_("Aucun élément associé.")+"
      ")}if(f.boolTrierAssocies==true){$("#"+f.nomAssoc+" .listeElementsAssocies ul").dragsort({dragSelector:"li",dragEnd:f.sauverOrdreAffichageAssocies,placeHolderTemplate:'
    • '})}}})}};this.sauverOrdreAffichageAssocies=function(){itemId=this.attr("id").replace(/.+_[AB]_/,"");itemIndex=this.index()+1;var e=a.getOpts();e.fonction="sauverOrdreAffichage";e.idEnfant=itemId;e.nouvellePosition=itemIndex;$.getJSON(a.urlBackAjax,e,function(f,g){if(g=="success"){if(f.resultat=="OK"){if(typeof(Logger)!=="object"){alerte("
      Changement de position pris en compte.
      ",3)}else{Logger.ajoutMessage("Changement de position pris en compte.","succes");Logger.afficheMessage()}}else{alert("Impossible de modifier l'ordre d'affichage : Erreur "+f.message)}}})};this.getOpts=function(){opts=this.optionsGlobales;opts.idParent=this.idParent;if($("#"+this.nomAssoc+" .chRechercheA").val()!=""){opts.recherche=$("#"+this.nomAssoc+" .chRechercheA").val()}return opts};this.bindEcouteurs=function(){var f=this;if(this.idParent!=""&&this.idParent!=0){if($("#"+this.nomAssoc+" .chRechercheA").is(":visible")){$("#"+this.nomAssoc+" .chRechercheA").bind("keypress",function(h){var g=h.keyCode||h.which;if(g==13){if(f.boolUtiliserFiltrageFamille==true){f.afficheFamillesElementsAssociables()}else{f.afficheElementsAssociables()}}})}if($("#"+this.nomAssoc+" .imgRechercheA").is(":visible")){$("#"+this.nomAssoc+" .imgRechercheA").bind("click",function(){if(f.boolUtiliserFiltrageFamille==true){f.afficheFamillesElementsAssociables()}else{f.afficheElementsAssociables()}})}}else{var e=$("#"+f.nomAssoc+" .listeElementsAssociables");e.html('
      '+_("Merci d'effectuer une première sauvegarde avant de pouvoir faire des associations.")+"
      ");$(".association_outils").hide()}};this.insererEltAssocie=function(e,f){var g=-1;var h=this;$("#"+this.nomAssoc+" .listeElementsAssocies ul li").each(function(j){if($(this).text()0&&!$("#"+this.nomAssoc+" .loadingAssoc").is(":visible")){var f='
      ';f+='
      ';f+=_("Chargement en cours, veuillez patienter ...");f+="
      ";e.prepend(f)}};this.masquerLoading=function(){this.nbChargementEnCours--;if(this.nbChargementEnCours<=0){$("#"+this.nomAssoc+" .loadingAssoc").remove();this.nbChargementEnCours=0}};this.callBack=function(){if(typeof(this.callBackFonction)==="function"){this.callBackFonction()}};this.setAssociation=function d(f,e){if(e){this.associer(f)}else{this.dissocier(f)}};this.getAssociations=function(e){this.afficheElementsAssocies()};this.getDispoAssociations=function(e){this.afficheElementsAssociables()}}function afficheContenuBo(a,b){$("#sidebar a.selected").removeClass("selected");$(a).addClass("selected").closest("ul").prev().addClass("selected");enregisterCookie("menuActif",b);window.location.href="../"+b}function deconnexion(){if(typeof(Logger)=="object"){Logger.confirm(_("Êtes-vous sûr de vouloir vous déconnecter ?"),function(a){if(a==true){void (window.location.href="../deconnexion.php")}})}else{if(confirm(_("Êtes-vous sûr de vouloir vous déconnecter ?"))){void (window.location.href="../deconnexion.php")}}}function initRolloverNav(){$(".fondNavHaut a").each(function(){nomImgOn=$(this).find("img").attr("src").replace("off.","on.");largeurImage=$(this).find("img").attr("width");hauteurImage=$(this).find("img").attr("height");$(this).css("background-image","url("+nomImgOn+")");$(this).css("width",largeurImage+"px");$(this).css("height",hauteurImage+"px")})}function checkListingBox(a){if(typeof($().prop)=="function"){$(a).closest("table").find("input[name*='_chkAction']:not(:disabled)").prop("checked",$(a).prop("checked"))}else{$(a).closest("table").find("input[name*='_chkAction']:not(:disabled)").attr("checked",$(a).attr("checked"))}}function enableDates(a){if(typeof(datePickerController)=="undefined"){datePickerController=false}if($("#select_periode").val()!="period"){if($("#choixPeriode").attr("id")){$("#choixPeriode").fadeOut("fast")}if(datePickerController){$("#chDateDebut").attr("disabled",true);$("#chDateFin").attr("disabled",true);datePickerController.disable("chDateDebut");datePickerController.disable("chDateFin")}if(a==true){window.document.formFiltreDates.submit()}}else{if(datePickerController){$("#chDateDebut").attr("disabled",false);$("#chDateFin").attr("disabled",false);datePickerController.enable("chDateDebut");datePickerController.enable("chDateFin")}if($("#choixPeriode").attr("id")){$("#choixPeriode").fadeIn("fast")}}}function initEncartOutils(){$(".enteteBo dt").click(function(){var a=$(this).next();if(a.is(":visible")){a.slideUp(400);$(this).removeClass("ouvert");$(this).addClass("ferme");enregisterCookie($(this).parent().attr("id"),"ferme",30,"current")}else{a.slideDown(400);$(this).addClass("ouvert");$(this).removeClass("ferme");enregisterCookie($(this).parent().attr("id"),"ouvert",30,"current")}});$(".enteteBo").each(function(){if(lireCookie($(this).attr("id"))=="ouvert"){$(this).find("dd").show(0);$(this).find("dt").addClass("ouvert");$(this).find("dt").removeClass("ferme")}else{if(lireCookie($(this).attr("id"))=="ferme"){$(this).find("dd").hide(0);$(this).find("dt").addClass("ferme");$(this).find("dt").removeClass("ouvert")}}})}function initSideBarBo(){$(window).load(function(){$("#boutonSideBar").click(function(){if($("#workspace").css("left")!="0px"){$("#workspace").animate({left:"0px"},200,"linear",function(){changeSideBardBo()});$("#sidebar").animate({left:"-260px"},200);$("#boutonSideBar").addClass("closed");enregisterCookie("sidebarBo","ferme")}else{$("#workspace").animate({left:"260px"},200,"linear",function(){changeSideBardBo()});$("#sidebar").animate({left:"0px"},200);$("#boutonSideBar").removeClass("closed");enregisterCookie("sidebarBo","ouvert")}})});$(document).ready(function(){if(lireCookie("sidebarBo")=="ferme"){$("#workspace").css("left","0px");$("#sidebar").css("left","-260px");$("#boutonSideBar").addClass("closed");changeSideBardBo()}$("#sidebar ul ul").hide();initLiensSidebar();$("#sidebar a.niv1").bind("click",function(){if($(this).next().is(":visible")){$(this).next().slideUp()}else{$("#sidebar ul ul:visible").slideUp();$(this).next().slideDown()}});$("#sidebar").css("height",($(document).height()-28)+"px")});$(window).on("resize",function(){$("#sidebar").css("height",($(document).height()-28)+"px")})}function changeSideBardBo(){}function initLiensSidebar(){var a=false;$("#sidebar a[href!=#][class!='lienAnthemis'][class!='notLienMenu']").each(function(){var b=$(this).attr("href");if(lireCookie("menuActif")==b){$(this).addClass("selected").closest("ul").show().prev().addClass("selected");a=true}$(this).removeAttr("href");$(this).on("click",function(){afficheContenuBo(this,b)})});if(!a){$("#sidebar ul a:first").addClass("selected").next().show().find("li:first a").addClass("selected")}}function initTriInfo(){$(".triBo").each(function(){$(this).on("click",function(){currentUrl=window.location.pathname.split("/").pop();triInfo($(this).attr("title"),currentUrl)})})}function afficheChargementBo(c){if(!c){c="../pict/loading.gif"}var b=new Image();$(b).attr("src",c);$("body").prepend('
       
      ');var a='
      ';a+='
      ';a+=_("Veuillez patienter ...");a+="
      ";$("body").prepend(a)}function cacherChargementBo(a){if(jQuery(".loadingOverlay, .loadingOverlayMsg").size()>0){jQuery(".loadingOverlay, .loadingOverlayMsg").remove()}}function getUrlRetourBo(f){if(!f){f=false}var e=window.location.protocol+"//"+window.location.host+window.location.pathname;var d="?";if(window.location.search!=""){var a=window.location.search.substring(1);var c=a.split("&");for(numParam in c){var b=c[numParam].split("=");if(b[0]!="msg"&&b[0]!="ongletEnCours"&&b[0]!="langBo"){e+=d+b[0];if(b[1]){e+="="+b[1]}d="&"}}}if(f==false&&typeof($("input[name='ongletEnCours']").val())!="undefined"&&$("input[name='ongletEnCours']").val()!=""){e+=d+"ongletEnCours="+$("input[name='ongletEnCours']").val()}return e}function allerVersPageBo(a,f,d){if(!d){d="identifiant"}sepaUrl=(a.search(/\?/)!=-1)?"&":"?";var e=a;e+=sepaUrl+d+"="+f;var c=getUrlRetourBo();if(window.location.href.search("identifiant")==-1){if(typeof $("input[name='identifiant']").val()!="undefined"&&$("input[name='identifiant']").val()!=""){if(c.search(/\?/)!=-1){var b="&"}else{var b="?"}c+=b+"identifiant="+$("input[name='identifiant']").val()}}e+="&urlRetour="+escape(c);window.location.href=e}function changerLangueBo(c){if(c!=""){var b=getUrlRetourBo();var a=(b.search(/\?/)!=-1)?"&":"?";lienChangementLangue=b+a+"langBo="+c;window.location.href=lienChangementLangue}}function acceptCookie(){document.cookie="essai=cookie";if(!document.cookie){alert("Vous devez accepter les cookies. Vérifiez les configurations de votre navigateur Internet.");document.location.href="/"}}function enregisterCookie(d,e,a,c){if(typeof(e)=="object"){e=JSON.stringify(e)}var b=d+"="+escape(e);if(a){var f=new Date();f.setDate(f.getDate()+a);b+="; expires="+f.toGMTString()}if(!c){c="/"}if(c!="current"){b+="; path="+c}window.document.cookie=b}function lireCookie(b){var a=b+"=";if(window.document.cookie.length>0){offset=window.document.cookie.indexOf(a);if(offset!=-1){offset+=a.length;end=window.document.cookie.indexOf(";",offset);if(end==-1){end=window.document.cookie.length}try{var d=JSON.parse(unescape(window.document.cookie.substring(offset,end)))}catch(c){var d=unescape(window.document.cookie.substring(offset,end))}return d}}}function effacerCookie(a){var b=new Date();b.setDate(b.getDate()-1);enregisterCookie(a,"",b)}var Logger={version:0.4,arrayMessage:[],parametres:{affichage:"alert",container:"logger_container",duration:3500,coeffDurationLongue:2,nbMessagesMax:3,autoClose:true,template:'
      {message}×
      ',dialog:{initDialog:true,container:"logger_confirm",classButton:"button_confirm"}},confirmOptions:{confirmerButton:_("Oui"),annulerButton:_("Non"),type:"default"},jQueryDialog:null,callBack:function(){},init:function(a){if(typeof(a)=="object"){Logger.parametres=jQuery.extend(Logger.parametres,a)}if(Logger.parametres.dialog.initDialog){Logger.initDialog(Logger.confirmOptions)}},initDialog:function(a){dialogOption=Logger.parametres.dialog;Logger.jQueryDialog=jQuery("#"+dialogOption.container);if(Logger.jQueryDialog.length==0){jQuery("body").append('
      ');jQuery("#"+dialogOption.container).dialog({autoOpen:false,resizable:false,draggable:false,modal:true,width:550,dialogClass:dialogOption.container+" alerte_box",open:function(){GestionScrollBar.disable()},close:function(){GestionScrollBar.enable()},buttons:[{text:a.confirmerButton,id:"logger_ok","class":dialogOption.classButton,click:function(){}},{text:a.annulerButton,id:"logger_annuler","class":dialogOption.classButton,click:function(){}}]});Logger.jQueryDialog=jQuery("#"+dialogOption.container);jQuery(window).bind("resize",function(){jQuery("#"+dialogOption.container).dialog({position:{my:"center center",at:"center center"}})})}else{Logger.jQueryDialog.dialog({buttons:[{text:a.confirmerButton,id:"logger_ok","class":dialogOption.classButton,click:function(){}},{text:a.annulerButton,id:"logger_annuler","class":dialogOption.classButton,click:function(){}}]})}return Logger},ajoutMessage:function(b,a,d){if(typeof(b)=="undefined"){return false}if(typeof(a)=="undefined"){a="erreur"}d=Logger.checkDuration(d,a);objMessage={texte:b,type:a,duration:d};var c=Logger.getIdentifiant(b,a);Logger.arrayMessage[c]=objMessage},checkDuration:function(b,a){if(typeof(b)=="undefined"||b===false){b=Logger.parametres.duration;if(a=="erreur"){b=b*Logger.parametres.coeffDurationLongue}}return b},ajoutListeMessage:function(a){if(typeof(a)=="object"){for(var b in a){var c=Logger.getIdentifiant(a[b].texte,a[b].type);Logger.arrayMessage[c]=a[b]}}},afficheMessage:function(f){if(Logger.parametres.affichage=="alert"){message="";for(var d in Logger.arrayMessage){message+=Logger.arrayMessage[d].texte+"\r\n"}alert(message);Logger.viderMessage()}else{if(Logger.parametres.affichage=="top"){if(jQuery("#"+Logger.parametres.container).length==0){jQuery("body").prepend('
      ')}var a=jQuery("div#"+Logger.parametres.container);if(typeof(Logger.arrayMessage)=="object"){var b=0;for(var e in Logger.arrayMessage){if(b");var g=Logger.checkDuration(Logger.arrayMessage[e].duration,Logger.arrayMessage[e].type);c=c.replace(/{message}/g,h);c=c.replace(/{type}/g,Logger.arrayMessage[e].type);c=c.replace(/{id}/g,e);a.prepend(c);notification=jQuery(".logger_message#"+e);notification.slideDown(500);if(Logger.parametres.autoClose==true&&g>0){notification.delay(g).slideUp(function(){jQuery(this).remove();Logger.supprimerMessage(jQuery(this).attr("id"))})}notification.find(".logger_close").bind("click",function(){jQuery(this).parent().stop().slideUp(function(){jQuery(this).remove();Logger.supprimerMessage(jQuery(this).attr("id"))})});notification.bind("click",function(){jQuery(this).stop().slideUp(function(){jQuery(this).remove();Logger.supprimerMessage(jQuery(this).attr("id"))})});b++}}else{Logger.supprimerMessage(e)}}}}}if(typeof(f)=="function"){Logger.callBack=f}Logger.callBack()},supprimerMessage:function(a){return delete Logger.arrayMessage[a]},viderMessage:function(){Logger.arrayMessage=[]},confirm:function(c,d,b){var e=Logger.parametres.dialog;var a=Logger.confirmOptions;if(typeof(b)=="object"){a=jQuery.merge(b,a)}jQuery("#"+e.container).remove();Logger.initDialog(a);Logger.jQueryDialog.html('

      '+c+"

      ");Logger.jQueryDialog.dialog("open");jQuery("."+Logger.parametres.dialog.classButton).unbind("click").bind("click",function(f){if(jQuery(this).attr("id")=="logger_ok"){d(true)}else{d(false)}Logger.jQueryDialog.dialog("close")})},getHash:function(c){if(typeof(c)=="object"){c=c[0]}if(typeof(c)=="string"){for(var b=0,a=0;a   ');$("#btnAppliquerFiltreFamille").on("click",function(){thisObjFamille.setFiltresDansUrl()});$("#btnAnnulerFiltreFamille").on("click",function(){thisObjFamille.annulerFiltres()})}})};this.getListe=function getListe(niveau,idFamille){if(!idFamille){idFamille=""}this.viderListeFamilles(niveau);this.getInfos(niveau,idFamille,this.nomChampsSelect,"famille")};this.getListePublications=function(idFamille){if(!idFamille){idFamille=""}this.viderListePublications();this.getInfos(0,idFamille,this.nomChampsSelectPublication,"publication")};this.getInfos=function(niveau,idFamille,nomChampsSelect,type){if(idFamille!="#"){var thisObjFamille=this;$.getJSON(this.urlBackAjax,{niveau:niveau,idFamille:idFamille,nomChampsSelect:nomChampsSelect,type:type},function(data,textStatus){if(textStatus=="success"){thisObjFamille.remplirListe(data);thisObjFamille.onGetListeFamillesIsExecuted(data)}})}};this.remplirListe=function(data){nbInfos=0;for(idInfos in data.opt){if(typeof(data.opt[idInfos])!="object"){throw"Attention : getListeFamilles.php doit retourner un objet {IdFamille:XX, LibFamille: AAAA} au lieu d'une chaine depuis la verison 1.1";break}$("#"+data.nomChampsSelect).append($("").val(data.opt[idInfos]["IdFamille"]).html(data.opt[idInfos]["LibFamille"]));nbInfos++}if(nbInfos>0){$("#"+data.nomChampsSelect).removeAttr("readonly")}else{if(data.type=="publication"){this.viderListePublications("Aucune")}else{this.viderListeFamilles(data.niveau,"Aucune")}}};this.viderListeFamilles=function(niveau,texte){if(!texte){texte=this.txtDefaut}for(niveauSuivant=niveau;niveauSuivant<(this.nbListes+this.niveauDepart);niveauSuivant++){$("#"+this.nomChampsSelect+niveauSuivant).empty();$("#"+this.nomChampsSelect+niveauSuivant).append($("").val("#").html(texte));$("#"+this.nomChampsSelect+niveauSuivant).attr("readonly",true)}};this.viderListePublications=function(texte){if(!texte){texte=this.txtDefautPublication}$("#"+this.nomChampsSelectPublication).empty();$("#"+this.nomChampsSelectPublication).append($("").val("#").html(texte));$("#"+this.nomChampsSelectPublication).attr("readonly",true)};this.setFiltresDansUrl=function(url){if(!url){var url=this.urlFront}else{if(url.indexOf("?")==-1){url+="?"}else{url+="&"}}for(bclListeFamille=this.niveauDepart;bclListeFamille0){url+="&"}url+="idFamille"+bclListeFamille+"="+idFamille}if(this.forcerPremierePage==true){url+="&page=1"}window.location.href=url};this.annulerFiltres=function(methode,url){if(!methode){methode="GET"}this.getListe(0,"#");if(methode=="POST"){var selectDest=eval("window.document."+this.nomFormulaire+"."+this.nomChampsSelect+"0");selectDest.readonly=false;eval("window.document."+this.nomFormulaire+".submit();")}else{this.setFiltresDansUrl(url)}};this.onGetListeFamillesIsExecuted=function(data){}}window._objFormulaire=new Object();function formulaire(formulaire){this.version=5.3;if(!formulaire){this.formulaire=""}else{this.formulaire=formulaire}this.funcErreur=alerte;this.nomCssErreur="formErreur";this.couleurFondTinyMCE="";this.objErreurs=new erreurs();this.afficheErreurs=true;this.nbChiffreMiniPourTel=10;this.identifiant=mdp(12);window._objFormulaire[this.identifiant]=this;var self=this;this.verif=function verif(getReturn){if(!getReturn){getReturn=false}this.objErreurs.resetErreurs();var box=[];regXpVerifLongueur=/vf.*\{([0-9\,]+)\}/;if(!this.formulaire.elements.disabled||this.formulaire.elements.disabled==false){for(bclChamps=0;bclChamps0){jQuery("form[name='"+this.formulaire.name+"'] .lb_select").each(function(){box.push(this)})}for(bclChamps=0;bclChamps=1.1){window._objetOnglet[instanceObjOnglet].revelerElement("."+this.nomCssErreur)}}}if(this.afficheErreurs==true){this.funcErreur(this.objErreurs.getMessageErreurs())}if(getReturn==true){return false}}};this.verifChamp=function verifChamp(nomChamp,nomChampSuivant){this.objErreurs.resetErreurs();var retour=false;var element=this.formulaire[nomChamp];if(typeof(nomChampSuivant)!=="undefined"){var nextElement=this.formulaire[nomChampSuivant]}else{var nextElement=null}if(typeof(element)!=="undefined"){this._verifElement(element,nextElement);if(this.objErreurs.isErreur()==false){retour=true}else{if(window._objetOnglet){for(instanceObjOnglet in window._objetOnglet){if(window._objetOnglet[instanceObjOnglet].version>=1.1){window._objetOnglet[instanceObjOnglet].revelerElement("."+this.nomCssErreur)}}}if(this.afficheErreurs==true&&this.objErreurs.getNbErreurs()>0){this.funcErreur(this.objErreurs.getMessageErreurs())}retour=false}}return retour};this._verifElement=function _verifElement(element,nextElement){var champsTinyMce=false;var regXpVerifLongueur=/vf.*\{([0-9\,]+)\}/;if(typeof(nextElement)=="undefined"){nextElement=false}if(element.type!="checkbox"){if(element.className.search(/mceTexte/)!=-1){tinyMceInstance=tinyMCE.get(element.id);if(this.couleurFondTinyMCE==""){if(tinyMceInstance.getBody().style.backgroundColor!=""){this.couleurFondTinyMCE=tinyMceInstance.getBody().style.backgroundColor}else{this.couleurFondTinyMCE="#FFFFFF"}}this.colorNormal(jQuery("textarea[name='"+element.name+"']"));this.colorNormal(tinyMceInstance.getBody());tinyMceInstance.getBody().style.backgroundColor=this.couleurFondTinyMCE}else{this.colorNormal(element)}}if(typeof(tinyMCE)=="object"){if(tinyMCE.majorVersion<3){if(tinyMCE.getInstanceById(element.id)){tinyMceInstance=tinyMCE.getInstanceById(element.id);var tinyContenu=tinyMceInstance.getHTML();tinyMceInstance.setHTML(tinyContenu.replace(/(.*)<\/font>/,"$1"));if(tinyContenu==""||tinyContenu.replace(/é/,"é")==this.getMsgErreur("vide")||tinyContenu=="???"){if(element.className.search(/vf/)!=-1&&element.className.search(/vfIfNotEmpty/)==-1){tinyMceInstance.setHTML(this.getMsgErreur("vide"));this.objErreurs.addErreur(this.getMsgErreur("msgFin"))}}champsTinyMce=true}}else{try{if(tinyMCE.get(element.id)){tinyMceInstance=tinyMCE.get(element.id);rootBlock=tinyMceInstance.getParam("forced_root_block");var tinyContenu=tinyMceInstance.getContent();if(tinyContenu==""||tinyContenu=="<"+rootBlock+">"||tinyContenu.replace(/é/,"é")=="<"+rootBlock+">"+this.getMsgErreur("vide")+""||tinyContenu=="<"+rootBlock+">???"){if(element.className.search(/vf/)!=-1&&element.className.search(/vfIfNotEmpty/)==-1){tinyMceInstance.setContent(this.getMsgErreur("vide"));this.objErreurs.addErreur(this.getMsgErreur("msgFin"));this.colorErreur(jQuery("textarea[name='"+element.name+"']"));this.colorErreur(tinyMceInstance.getBody());tinyMceInstance.getBody().style.backgroundColor="#FBC5B3"}}champsTinyMce=true}}catch(err){}}}if(champsTinyMce==false){if(element.value==""||element.value==this.getMsgErreur("vide")||element.value=="???"){if(element.className.search(/vf/)!=-1&&element.className.search(/vfIfNotEmpty/)==-1){this.colorErreur(element);if(element.type!="password"&&element.type.search(/select-(one|multiple)/)==-1&&element.type!="file"){if(element.className.search(regXpVerifLongueur)==-1){tailleChamps=getStyleCss(element,"width");if(tailleChamps){tailleChamps=(tailleChamps.replace("px",""))*1;if(tailleChamps<=80){element.value="???"}else{element.value=this.getMsgErreur("vide")}}else{element.value=this.getMsgErreur("vide")}}}this.objErreurs.addErreur(this.getMsgErreur("msgFin"))}}else{if(element.className.search(/vf/)!=-1&&element.type=="password"){if(nextElement&&nextElement.type=="password"&&nextElement.className.search(/vf/)!=-1){if(element.value!=nextElement.value){this.colorErreur(element);this.colorErreur(nextElement);this.objErreurs.addErreur(this.getMsgErreur("pwd"))}}}else{if(element.className.search(/vfMail/)!=-1){if(element.className.search(/vfMailMultiple/)!=-1){retour=this.verifEmail(element.value,true)}else{retour=this.verifEmail(element.value,false)}if(retour==false){this.colorErreur(element);if(element.className.search(regXpVerifLongueur)==-1){element.value=this.getMsgErreur("email")}this.objErreurs.addErreur(this.getMsgErreur("msgEmail"))}}else{if(element.className.search(/vfTel/)!=-1){if(this.verifNumTel(element.value)==false||element.value==this.getMsgErreur("tel")){this.colorErreur(element);if(element.className.search(regXpVerifLongueur)==-1){element.value=this.getMsgErreur("tel")}this.objErreurs.addErreur(this.getMsgErreur("msgTel"))}}else{if(element.className.search(/vfDate/)!=-1){if(element.className.search(/vfDateStricte/)!=-1){var resultatDate=this.verifDate(element.value,true)}else{var resultatDate=this.verifDate(element.value)}if(resultatDate==false){this.colorErreur(element);if(element.className.search(regXpVerifLongueur)==-1){element.value=this.getMsgErreur("date")}this.objErreurs.addErreur(this.getMsgErreur("msgDate"))}else{var strDate=element.value;while(strDate.match(/\-/)){strDate=strDate.replace("-","/")}while(strDate.match(/\./)){strDate=strDate.replace(".","/")}element.value=strDate}}else{if(element.className.search(/vf/)!=-1&&element.type=="select-one"&&element.value=="#"){this.colorErreur(element);this.objErreurs.addErreur(this.getMsgErreur("msgFin"))}else{if(element.className.search(/vf/)!=-1&&element.className.search(/lb_select/)!=-1){var objLbVf=jQuery(element).data("listebox");if(objLbVf){if(objLbVf.isChoixMultiple==false){if(objLbVf.optionSelectionnee.getCle()=="#"){this.colorErreur(element);this.objErreurs.addErreur(this.getMsgErreur("msgFin"))}}else{if(objLbVf.listeOptionsCochees.length==0){this.colorErreur(element);this.objErreurs.addErreur(this.getMsgErreur("msgFin"))}}}}else{if(element.className.search(/vfNumber/)!=-1){var verifInt=this.strToNumber(element.value);if(verifInt!==false){element.value=verifInt;if(element.className.search(/vfNumberPositif/)!=-1&&verifInt<=0){this.colorErreur(element);this.objErreurs.addErreur(this.getMsgErreur("msgNombrePositif"))}if(element.className.search(/vfEntier/)!=-1&&verifInt!==parseInt(verifInt)){this.colorErreur(element);this.objErreurs.addErreur(this.getMsgErreur("msgNombreEntier"))}if(element.className.search(/vfNumberNonZero/)!=-1&&verifInt==0){this.colorErreur(element);this.objErreurs.addErreur(this.getMsgErreur("msgNombre"))}}else{this.colorErreur(element);this.objErreurs.addErreur(this.getMsgErreur("msgNombre"))}}else{if(element.className.search(/vfLuhn/)!=-1){while(element.value.match(/\D/)){element.value=element.value.replace(/\D/,"")}var verifInt=this.strToNumber(element.value);if(verifInt!=false){var verifLuhn=this.verifNombreLuhn(element.value);if(!verifLuhn||element.value==this.getMsgErreur("tel")){this.colorErreur(element);if(element.className.search(regXpVerifLongueur)==-1){element.value=this.getMsgErreur("tel")}this.objErreurs.addErreur(this.getMsgErreur("msgLuhn"))}}else{this.colorErreur(element);this.objErreurs.addErreur(this.getMsgErreur("msgNombre"))}}}}}}}}}}if(element.className.search(regXpVerifLongueur)!=-1){arrayMatch=element.className.match(regXpVerifLongueur);var defLimites=arrayMatch[1];var verifLong=this.verifLongeur(element.value,defLimites);if(!verifLong){this.colorErreur(element);this.objErreurs.addErreur(this.getMsgErreur("msgLongueur"))}}}};this.setFormulaire=function setFormulaire(formulaire){if(formulaire){this.formulaire=formulaire}if(typeof(this.formulaire)=="string"){if(this.formulaire==""){this.formulaire=window.document.forms[0]}else{this.formulaire=eval(this.formulaire)}}if(typeof(this.formulaire)!="object"){this.formulaire=window.document.forms[0]}jQuery(this.formulaire).find("input[type='text'], input[type='tel'], input[type='email'], textarea").bind("focus",function(){var valChamps=jQuery(this).val();for(code in self.arrayMsgErreurs){if(valChamps==self.arrayMsgErreurs[code]||valChamps=="???"){jQuery(this).val("");jQuery(this).removeClass(self.nomCssErreur)}}})};this.verifNumTel=verifNumTel;this.verifDate=verifDate;this.strToNumber=strToInt;this.verifEmail=verifEmail;this.checkDateSuperieureA=checkDateMini;this.checkDateInfereieureA=checkDateMaxi;this.checkDateCompriseEntre=checkIntervalDate;this.verifNombreLuhn=verifNombreLuhn;this.verifLongeur=verifLongeur;this.colorErreur=function colorErreur(elementDuForm){jQuery(elementDuForm).addClass(this.nomCssErreur)};this.colorNormal=function colorNormal(elementDuForm){jQuery(elementDuForm).removeClass(this.nomCssErreur)};this.getHash=function(){return getHash(this.formulaire)};this.verifChecksum=function(checksum){return verifFormChecksum(this.formulaire,checksum)};this.nbChampForm=function(nbAremplir,msgErreur){nbChampForm(this.formulaire,nbAremplir,msgErreur)};this.sendTo=function sendFormulaireTo(nomPage){sendFormulaireTo(this.formulaire,nomPage)};this.verifCaracInterdit=function verifCaracInterdit(champsToTest){verifCaracInterdit(this.formulaire,champsToTest)};this.checkAllBox=function checkAllBox(boolCocher,nomCheckbox,exception){checkAllBox(this.formulaire,boolCocher,nomCheckbox,exception)};this.submit=function submit(){this.formulaire.submit()};this.vider=function(){box=this.formulaire.elements;if(box.length>0){for(bclChamps=0;bclChamps1){for(bclMsg=0;bclMsg=this.nbChiffreMiniPourTel){for(numCarac=0;numCarace){retour=true}}}else{regXpTel=/^\d{10}$/;regXpTelPar2=/^(((\+|00\s?)\d{1,2}\s(\W?\d\W?\s?)?)|\d)\d[\s\.\-]\d{2}[\s\.\-]\d{2}[\s\.\-]\d{2}[\s\.\-]\d{2}$/;regXpTelPar3=/^(((\+|00\s?)\d{1,2}\s(\W?\d\W?)?)|\d)\s?\d{3}[\s\.\-]\d{3}[\s\.\-]\d{3}$/;var g=h.match(regXpTel);var f=h.match(regXpTelPar2);var c=h.match(regXpTelPar3);if(g!=null||f!=null||c!=null){retour=true}}return retour}function verifDate(g,e){if(!e){var e=false}var c=false;if(e==false){var j=/^(\d{1,2})[-\/](\d{1,2})[-\/](\d{2}(?:\d{2})?)$/}else{var j=/^(\d{1,2})[\/](\d{1,2})[\/](\d{4})$/}var f=g.match(j);if(f!=null){var h=f[1]*1;var a=f[2]*1;var b=f[3]*1;var d=0;switch(a){case 2:if(b%4==0&&(b%100!=0||b%400==0)){d=29}else{d=28}break;default:if(a<8){if(a%2==0){d=30}else{d=31}}else{if(a%2==0){d=31}else{d=30}}}if(a>=1&&a<=12){if(h>=1&&h<=d){c=true}}}return c}function verifEmail(a,c){var b=true;if(!c){c=false}verifSperateurMails=a.match(/[;,\n\r]/);if(c==true&&verifSperateurMails!=null){while(a.match(/;/)){a=a.replace(";",",")}while(a.match(/\r\n/)){a=a.replace("\r\n",",")}while(a.match(/\n/)){a=a.replace("\n",",")}while(a.match(/\r/)){a=a.replace("\r",",")}arrayEmails=a.split(",");for(bclEmail=0;bclEmail=0;f-=2){a[f]*=2;if(a[f]>9){a[f]-=9}}for(f=0;f=d&&f.length<=b){e=true}}else{if(f.length==(a*1)){e=true}}return e}function strToInt(d){var b=false;while(d.match(/\s/)){d=d.replace(/\s/,"")}if(d.indexOf(",")!=-1){var a=d.split(",");d=a[0]+"."+a[1]}var c=(d*1);if(!isNaN(c)){b=c}return b}function colorErreur(a){a.style.backgroundColor="#FFDDDD"}function colorNormal(a){a.style.backgroundColor="#FFFFFF"}function nbChampForm(c,d,e){var a=0;for(var b=0;bd){colorNormal(c);e=true}else{colorErreur(c);alerte(f)}return e}function checkDateMaxi(d,a,f){var b;var e=false;if(!f){f="La date saisie n'est pas valide, veuillez choisir une date inférieure au "+a}var g=new Date(d.value.substring(6,10),d.value.substring(3,5)-1,d.value.substring(0,2));var c=new Date(a.substring(6,10),a.substring(3,5)-1,a.substring(0,2));if(g"+this.nomProjet+"
      ";this.libItineraire=_("Préparez votre itinéraire");this.boolItineraire=true;this.optionsInitMap={zoomControl:true,mapTypeControl:true,scaleControl:true,streetViewControl:true,rotateControl:true};this.geocoder;this.objMap;this.dataJSON;this.objData;this.objBounds={};this.markers=[];this.infoBulles=[];this.geometryExcel="1N2LBk4JHwWpOY4d9fobIn27lfnZ5MDy-NoqqRpk";this.champSauvegarde=jQuery("#sauvegardeJsonMap");this.champRecherche=jQuery("input[name=localisation]");this.isAdministrable=false;this.maxMarker=1;this.directionsDisplay;this.directionsService;this.init=function(b){this.supprimerMarqueurs();this.dataJSON=b;this.texteInfoBulle=""+this.nomProjet+"
      ";this.texteInfoBulle+=this.texteAdresse;this.geocoder=new google.maps.Geocoder();this.objMap=new google.maps.Map(document.getElementById(this.nomDivCarte),this.optionsInitMap);if(typeof(this.dataJSON)!=="undefined"&&this.dataJSON!=""){this.setData(this.dataJSON)}else{this.positionnerMap(this.adresseDefaut,false,5)}google.maps.event.addListener(a.objMap,"click",function(c){if(a.markers.length0){this.objBounds=new google.maps.LatLngBounds();for(var e in this.objData.marker){var b=this.calculPosition(this.objData.marker[e].position);this.objBounds.extend(b);this.ajouterMarqueur(b,this.objData.marker[e].content)}if(this.objData.marker.length>1){this.zoomAutomatique()}}else{var b=this.calculPosition(this.objData.marker.position);this.ajouterMarqueur(b,this.objData.marker.content)}}else{if(this.isAdministrable==true){alert("Les données sont erronées.")}}};this.zoomAutomatique=function(){this.objMap.fitBounds(this.objBounds)};this.ajouterMarqueur=function(c,e){if(this.isAdministrable==true){var b=new google.maps.Marker({position:c,map:this.objMap,draggable:true});var d=new google.maps.InfoWindow({content:this.cleanHtml(e)})}else{var b=new google.maps.Marker({position:c,map:this.objMap,draggable:false,height:200});if(this.boolItineraire==true){e+='
      '+this.cleanHtml(this.libItineraire)+""}var d=new google.maps.InfoWindow({content:'
      '+e+"
      "})}b.infoBulle=d;this.infoBulles.push(d);if(this.markers.length0){if(!c){c=this.texteInfoBulle}if(c!=this.markers[0]["infoBulle"].content){var b={lat:this.markers[0].position.lat(),lng:this.markers[0].position.lng()};this.supprimerMarqueurs();this.ajouterMarqueur(b,c)}}};this.cleanHtml=function(b){b=b.replace(/\"/g,""");b=b.replace(/\n/g,"
      ");return b};this.enregistrerMap=function(){if(this.markers[0]!==undefined){var b=this.markers[0];content=b.infoBulle.content;objEnregistrement={marker:{position:{lat:b.position.lat(),lng:b.position.lng()},content:this.cleanHtml(content)},map:{zoom:this.objMap.zoom,mapTypeId:this.objMap.mapTypeId,center:{lat:this.objMap.center.lat(),lng:this.objMap.center.lng()}}};this.champSauvegarde.val(JSON.stringify(objEnregistrement))}};this.positionnerMap=function(b,d,c){this.geocoder.geocode({address:b},function(f,e){if(e==google.maps.GeocoderStatus.OK){a.objMap.setCenter(f[0].geometry.location);if(typeof(c)!=="undefined"){a.objMap.setZoom(c)}if(d==true&&a.markers.lengthd){b=false}else{b=true}return b};this.setContour=function(c,b){if(!b){b="FF0000"}return new google.maps.FusionTablesLayer({query:{select:"geometry",from:a.geometryExcel,where:"ISO_2DIGIT IN ('"+c+"')"},map:a.objMap,suppressInfoWindows:true,styles:[{polygonOptions:{fillColor:"#"+b,fillOpacity:0.01,strokeColor:"#"+b,strokeWeight:"int"}}]})}}window._objetListing=new Object();function listingBo(nomTableListing){this.version=2;if(typeof(nomTableListing)=="object"){alert("Attention! listingBo prend comme 1er argument le nom de la table et plus un objet formulaire.\nMerci de migrer le template en suivant la documentation sous : \n php_include/commun/lisiting/V4.0/migrer-vers-listing-4.txt");return}this.nomTableListing=nomTableListing;this.idTableListe="#table"+nomTableListing;if($(this.idTableListe).length==0){alert("Attention! Vous devez mettre l'ID "+this.idTableListe+" sur la table qui encadre le listing (vérifier dans fiche.js si l'appel de listingBo() est bien fait avec le nom de la table à utiliser.");return}var nomForm=$(this.idTableListe).closest("form").attr("name");this.formulaireListing=eval("window.document."+nomForm);this.selecteurParDefaut=this.idTableListe+" tr[class!='nodrop nodrag']";this.useActionListenerForDragAndDrop=false;this.afficherLoadingAvantAction=false;this.cheminImgLoading="../pict/loading.gif";this.actionListing="";this.paramsListing="";this.filtresListing={};this.chargementFiltresCookieEffectue=false;this.lastEnlightedLine="";this.nomChampsLienEdit="";this.boolSelectionUnique=false;var self=this;window._objetListing[this.nomTableListing]=this;this.activer=function(bouton){if(this.activer.PRE_PROCESS){this.activer.PRE_PROCESS.call()}if(this.verifCochees()){if(!bouton){libBtn="mettre en ligne"}else{libBtn=bouton.value.toUpperCase()}if(typeof(Logger)=="object"){Logger.confirm(_("Etes-vous sûr de vouloir")+" "+libBtn+" "+_("(enregistrements selectionnés) ?"),function(reponse){if(reponse){self.actionListing="activer";self.executerAction()}})}else{if(confirm(_("Etes-vous sûr de vouloir")+" "+libBtn+" "+_("(enregistrements selectionnés) ?"))){this.actionListing="activer";this.executerAction()}}}};this.desactiver=function(bouton){if(this.desactiver.PRE_PROCESS){this.desactiver.PRE_PROCESS.call()}if(this.verifCochees()){if(!bouton){libBtn="mettre HORS LIGNE"}else{libBtn=bouton.value.toUpperCase()}if(typeof(Logger)=="object"){Logger.confirm(_("Etes-vous sûr de vouloir")+" "+libBtn+" "+_("(enregistrements selectionnés) ?"),function(reponse){if(reponse){self.actionListing="desactiver";self.executerAction()}})}else{if(confirm(_("Etes-vous sûr de vouloir")+" "+libBtn+" "+_("(enregistrements selectionnés) ?"))){this.actionListing="desactiver";this.executerAction()}}}};this.effacer=function(bouton){if(this.effacer.PRE_PROCESS){this.effacer.PRE_PROCESS.call()}if(this.verifCochees()){if(!bouton){libBtn="effacer"}else{libBtn=bouton.value.toUpperCase()}if(typeof(Logger)=="object"){Logger.confirm(_("Etes-vous sûr de vouloir")+" "+libBtn+" "+_("(enregistrements selectionnés) ?"),function(reponse){if(reponse){self.actionListing="effacer";self.executerAction()}})}else{if(confirm(_("Etes-vous sûr de vouloir")+" "+libBtn+" "+_("(enregistrements selectionnés) ?"))){this.actionListing="effacer";this.executerAction()}}}};this.afficheLoading=function(){if(this.afficherLoadingAvantAction){$("body").prepend('
       
      ');var strDivOverlayMsg='
      ';strDivOverlayMsg+='
      ';strDivOverlayMsg+=_("Sauvegarde en cours, veuillez patienter ...");strDivOverlayMsg+="
      ";$("body").prepend(strDivOverlayMsg)}};this.executerAction=function(){if(this.executerAction.PRE_PROCESS){this.executerAction.PRE_PROCESS.call()}this.formulaireListing.listing_id.value=this.nomTableListing;this.formulaireListing.listing_action.value=this.actionListing;this.formulaireListing.listing_params.value=this.paramsListing;this.afficheLoading();this.formulaireListing.submit()};this.memoDragAndDrop=function(itemId,itemSelector,numPage,urlMemo){if(this.memoDragAndDrop.PRE_PROCESS){this.memoDragAndDrop.PRE_PROCESS.call()}if(!itemSelector){itemSelector=this.selecteurParDefaut}if(!numPage){numPage=1}if(!urlMemo){urlMemo="liste.php"}idToReplace="";itemPositionChanged=true;var itemIndex=$(itemSelector).index($(itemSelector+"#"+itemId));numOrdreItem=($(itemSelector).eq(itemIndex).find("div[class^='indicePositionnement']").html())*1;if(itemIndex>0){numOrdreItemPrecendent=($(itemSelector).eq(itemIndex-1).find("div[class^='indicePositionnement']").html())*1}else{numOrdreItemPrecendent=-1}if((itemIndex+1)<$(itemSelector).length){numOrdreItemSuivant=($(itemSelector).eq(itemIndex+1).find("div[class^='indicePositionnement']").html())*1}else{numOrdreItemSuivant=($(itemSelector).eq(itemIndex).find("div[class^='indicePositionnement']").html())*1}if(numOrdreItemPrecendent>numOrdreItem){idToReplace=$(itemSelector).eq(itemIndex-1).attr("id")}else{if(numOrdreItemSuivantChangement de position pris en compte.",3)}}})}if(this.memoDragAndDrop.POST_PROCESS){this.memoDragAndDrop.POST_PROCESS.call()}};this.initDragAndDrop=function(boolDragDisabled,numPage,urlMemo){if(!numPage){numPage=1}if(!boolDragDisabled){boolDragDisabled=false}if(!urlMemo){urlMemo="liste.php"}var thisListingBo=this;if(!boolDragDisabled){$(this.idTableListe).tableDnD({onDrop:function(table,row){thisListingBo.memoDragAndDrop(row.id,thisListingBo.selecteurParDefaut,numPage,urlMemo)}})}};this.initRollover=function(){$(this.selecteurParDefaut).hover(function(){$(this).addClass("adminLigneSurvol")},function(){$(this).removeClass("adminLigneSurvol")})};this.verifCochees=function(){if(this.verifCochees.PRE_PROCESS){this.verifCochees.PRE_PROCESS.call()}if(this.afficherLoadingAvantAction){var img=new Image();$(img).attr("src",this.cheminImgLoading)}var casesCochees=false;var nbCaseCochees=$("input[name^='"+this.nomTableListing+"_chkAction']:checked").length;if(nbCaseCochees>0){casesCochees=true}else{$("input[name^='"+this.nomTableListing+"_chkAction']").each(function(){if($(this).attr("type")=="hidden"&&$(this).val()!=""){casesCochees=true}})}if(casesCochees==false){alerte(_("Vous devez d'abord effectuer une sélection avant de pouvoir effectuer une action."),5)}else{if(this.boolSelectionUnique==true&&nbCaseCochees>1){casesCochees=false;alerte(_("ATTENTION ! Vous ne pouvez sélectionner qu'UN SEUL élément pour ce type d'action."),15)}}if(this.verifCochees.POST_PROCESS){this.verifCochees.POST_PROCESS.call()}return casesCochees};this.inverserSelection=function(){$("input[name^='"+this.nomTableListing+"_chkAction']:not(:disabled)").each(function(){$(this).prop("checked",!$(this).prop("checked"))})};this.getListing=function(filtres,boolFiltresExclusifs){if(!boolFiltresExclusifs){boolFiltresExclusifs=false}if(!filtres){filtres={}}urlListe=this.formulaireListing.action;this.chargerFiltresFormCookie();this.afficheMiniPreload();this.syncFiltres(filtres,boolFiltresExclusifs);filtres.ajax="oui";var thisListingBo=this;$.getJSON(urlListe,filtres,function(data,textStatus){if(textStatus=="success"){thisListingBo.arrayInfos=data;thisListingBo.afficheInfos();if(thisListingBo.lastEnlightedLine!=""){thisListingBo.enLight(thisListingBo.lastEnlightedLine)}}})};this.afficheInfos=function(){$(this.selecteurParDefaut+":not(#blocListe, #blocErreur)").remove();$("#lsbo_loading").remove();nbInfos=0;for(numInfos in this.arrayInfos){idInfos=this.arrayInfos[numInfos]["_ajaxId_"];$("#blocListe").clone().attr("id",idInfos).insertBefore("#blocListe");for(nomChamps in this.arrayInfos[numInfos]){$(this.selecteurParDefaut+"#"+idInfos+" ."+nomChamps).html(this.arrayInfos[numInfos][nomChamps]);if(nomChamps==this.nomChampsLienEdit){$(this.selecteurParDefaut+"#"+idInfos+" ."+nomChamps).wrap("")}}$(this.selecteurParDefaut+"#"+idInfos+" input[name='btnEdit']").bind("click",{idInfos:idInfos},function(event){popup(event.data.idInfos)});$(this.selecteurParDefaut+"#"+idInfos+" a.lienEditer").attr("href","javascript:popup('"+idInfos+"')");$(this.selecteurParDefaut+"#"+idInfos).show();nbInfos++}if(nbInfos>0){$(this.selecteurParDefaut+"#blocErreur").hide()}else{$(this.selecteurParDefaut+"#blocErreur").show()}};this.afficheMiniPreload=function(){if(!$("#lsbo_loading").attr("id")){var img=new Image();$(img).attr("src","../pict/loading.gif").attr("id","lsbo_loading");$(this.selecteurParDefaut+"#blocErreur td:first").append($(img))}};this.recherche=function(nomChamps){if(!nomChamps){nomChamps="chRecherche"}var strRecherche=$("input[name='"+nomChamps+"']").val();this.getListing({chRecherche:strRecherche},true)};this.annulerRecherche=function(nomChamps){if(!nomChamps){nomChamps="chRecherche"}$("input[name='"+nomChamps+"']").val("");this.supprimerFiltre("chRecherche");this.getListing()};this.memoFiltres=function(filtres){for(nomFiltre in filtres){this.filtresListing[nomFiltre]=filtres[nomFiltre]}};this.syncFiltres=function(filtres,boolFiltresExclusifs){this.memoFiltres(filtres);if(boolFiltresExclusifs==false){for(nomFiltre in this.filtresListing){filtres[nomFiltre]=this.filtresListing[nomFiltre]}}enregisterCookie("consoleBo",{listingBo:filtres},7,"current")};this.supprimerFiltre=function(nomFiltre){delete this.filtresListing[nomFiltre]};this.getFiltre=function(nomFiltre){return this.filtresListing[nomFiltre]};this.chargerFiltresFormCookie=function(){if(this.chargementFiltresCookieEffectue==false){var filtresCookie=lireCookie("consoleBo");if(filtresCookie&&filtresCookie.listingBo){this.filtresListing=filtresCookie.listingBo}if(this.filtresListing.chRecherche!=""){$("input[name='chRecherche']").val(this.filtresListing.chRecherche)}this.chargementFiltresCookieEffectue=true}};this.exportListing=function(){var qs=this.getQueryString(this.filtresListing);var urlExport=this.formulaireListing.action+"?"+qs+"&export=oui";window.location.href=urlExport};this.getQueryString=function(objet){var strSepa="";var queryString="";for(nomChamp in objet){queryString+=strSepa+nomChamp+"="+objet[nomChamp];strSepa="&"}return queryString};this.enLight=function(id){if(id!=""){this.lastEnlightedLine=id}$(this.selecteurParDefaut).removeClass("adminLigne3");$(this.selecteurParDefaut+"#"+id).addClass("adminLigne3")}}function ajxSwitchModeleRef(f,b,e,c){var d=$(f).find("option:selected").val();var a=true;if(d==-1){d=$('input[name="identifiant"]').val();a=false}$.ajax({type:"POST",url:"../ajxSwitchModeleRef.php",data:({id:d,modele:a,tableName:b,fieldName:e,langue:c}),dataType:"json"}).done(function(g){if(a){lockMetaTagFields(true)}else{lockMetaTagFields(false)}if(g.MetaTitle){$('input[name$="MetaTitle"]').val(g.MetaTitle.replace("\u0080","€"))}else{$('input[name$="MetaTitle"]').val("")}if(g.MetaDescription){$('textarea[name$="MetaDescription"]').val(g.MetaDescription.replace("\u0080","€"))}else{$('textarea[name$="MetaDescription"]').val("")}if(g.MetaKeywords){$('textarea[name$="MetaKeywords"]').val(g.MetaKeywords.replace("\u0080","€"))}else{$('textarea[name$="MetaKeywords"]').val("")}})}function lockMetaTagFields(a){$('input[name$="MetaTitle"]').prop("disabled",a);$('textarea[name$="MetaDescription"]').prop("disabled",a);$('textarea[name$="MetaKeywords"]').prop("disabled",a)}$(document).ready(function(){(function(c,d){c.fn.getCursorPosition=function(){var g=c(this).get(0);var h=0;if("selectionStart" in g){h=g.selectionStart}else{if("selection" in document){g.focus();var e=document.selection.createRange();var f=document.selection.createRange().text.length;e.moveStart("character",-g.value.length);h=e.text.length-f}}return h}})(jQuery);function a(f,d){var e=document.getElementsByName(f)[0];if(e!=null){if(e.createTextRange){var c=e.createTextRange();c.move("character",d);c.select()}else{if(e.selectionStart){e.focus();e.setSelectionRange(d,d)}else{e.focus()}}}}function b(f,e){f=f[0];if(document.selection){f.focus();sel=document.selection.createRange();sel.text=e}else{if(f.selectionStart||f.selectionStart=="0"){var d=f.selectionStart;var c=f.selectionEnd;f.value=f.value.substring(0,d)+e+f.value.substring(c,f.value.length);f.selectionStart=d+e.length;f.selectionEnd=d+e.length}else{f.value+=e}}}$("textarea").add("input[name$=ch_MetaTitle]").add("input[name$=MetaTitle]").focusout(function(){lastPositionField=$(this).getCursorPosition();lastNameField=$(this).attr("name")});$(".DataName").click(function(){var c=$(this).data("value");if(typeof lastNameField!="undefined"){a(lastNameField,lastPositionField);b(document.getElementsByName(lastNameField),c)}else{Logger.ajoutMessage("Vous devez placez votre curseur dans un champ texte avant de pouvoir insérer un champ de personnalisation.","erreur");Logger.afficheMessage()}})});function NavCheck(){this.ver=navigator.appVersion;this.agent=navigator.userAgent;this.dom=document.getElementById?1:0;this.opera5=(navigator.userAgent.indexOf("Opera")>-1&&document.getElementById)?1:0;this.opera=(navigator.userAgent.indexOf("Opera")>-1&&document.getElementById)?1:0;this.ie5=(this.ver.indexOf("MSIE 5")>-1&&this.dom&&!this.opera5)?1:0;this.ie6=(this.ver.indexOf("MSIE 6")>-1&&this.dom&&!this.opera5)?1:0;this.ie7=(this.ver.indexOf("MSIE 7")>-1&&this.dom&&!this.opera5)?1:0;this.ie4=(document.all&&!this.dom&&!this.opera5)?1:0;this.ie=this.ie4||this.ie5||this.ie6||this.ie7;this.mac=this.agent.indexOf("Mac")>-1;this.ns6=(this.dom&&parseInt(this.ver)>=5)?1:0;this.ns4=(document.layers&&!this.dom)?1:0;this.firefox=(this.dom&&parseInt(this.ver)>=5&&this.agent.indexOf("Firefox")>-1)?1:0;this.gecko=(!this.firefox&&this.dom&&parseInt(this.ver)>=5&&this.agent.indexOf("Gecko")>-1)?1:0;this.NC=(this.ie7||this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5||this.firefox||this.gecko);return this}function nomPage(b){var a;var d;var c;if(b.lastIndexOf("\\")>-1){a=b.lastIndexOf("\\")}else{if(b.lastIndexOf("/")>-1){a=b.lastIndexOf("/")}}if(b.lastIndexOf("?")>-1){d=b.lastIndexOf("?")}else{d=b.length}c=b.substring(a+1,d);return c}var paramOk=true;function FaitTableau(b){this.length=b;for(var a=0;a<=b;a++){this[a]=0}return this}function ParamValeur(a){var c="";for(var b=0;b<(param.length+1);b++){if(param[b].substring(0,param[b].indexOf("="))==a){c=param[b].substring(param[b].indexOf("=")+1,param[b].length);if(c=="%23"){c=""}}}return Decode(c)}if(!location.search){paramOk=false}else{nReq=location.search.substring(1,location.search.length);nReq=nReq.split("&");param=new FaitTableau(nReq.length-1);for(var i=0;i<(nReq.length);i++){param[i]=nReq[i]}}function Decode(b){while(true){var a=b.indexOf("+");if(a<0){break}b=b.substring(0,a)+"%20"+b.substring(a+1,b.length)}return unescape(b)}function getCheminRelatif(){var c=window.location.pathname;var d="";if(window.urlDeDeveloppement){c=c.replace(window.urlDeDeveloppement,"")}if(c.charAt(0)=="/"){c=c.slice(1)}var a=c.split("/");var b=a.length;if(b==1){d="./"}else{for(bclRep=1;bclRep1){retour=this.arrayOnglets[position-1]}else{if(this.loop==true){retour=this.arrayOnglets[this.nbOnglets-1]}else{retour=this.arrayOnglets[0]}}return retour};this.masquerTout=function(){for(indice in this.arrayOnglets){this.masquer(this.arrayOnglets[indice])}};this.revelerElement=function(selecteur){var idConteneur=$(selecteur+":first").closest("div[id^='contenu_']").attr("id");if(idConteneur){var idOnglet=idConteneur.replace("contenu_","onglet_");if(window.document.getElementById(idOnglet)){this.activer(window.document.getElementById(idOnglet))}}};this.getPositionOnglet=function(numOnglet){for(indice in this.arrayOnglets){if(numOnglet==this.arrayOnglets[indice]){return indice}}};this.getOnglets=function getOnglets(){nbOnglets=0;var arrayOnglets=[];$(this.zoneDom+" div[id^='contenu_']").each(function(){if(typeof($(this).attr("id"))!=="undefined"){if($(this).attr("id").match(/^contenu_[0-9]*$/)!=null){var arrayInfos=$(this).attr("id").split("_");var numOnglet=arrayInfos[1];arrayOnglets.push(numOnglet);nbOnglets++}}});this.nbOnglets=nbOnglets;this.arrayOnglets=arrayOnglets;return this.nbOnglets};this.setOnglets=function setOnglets(){for(numOnglet=1;numOnglet<=this.nbOnglets;numOnglet++){this.arrayOnglets.push(numOnglet)}};this.memoOngletEnCours=function memoriserOngletEnCours(numOnglet){if(window.document.forms.length>0){for(blcForms=0;blcForms1){for(bclArguments=1;bclArguments0){b.sort();var c=0;var a=b.length;var d=parseInt((a+c)/2);while(d!=c){if(b[d]>g){a=d}else{c=d}d=parseInt((a+c)/2)}if(b[c]==g){if(f==false){e=true}else{e=c}}}return e}function ucfirst(a){return a.charAt(0).toUpperCase()+a.slice(1)}function bindAutoEffacementChamps(c,b){if(!b){b="name"}if(typeof(listeChampsAutoEffacement)=="undefined"){listeChampsAutoEffacement={}}if(b=="id"){var a=$("#"+c)}else{var a=$("input[name='"+c+"']")}listeChampsAutoEffacement[c]=a.val();a.on("focus",function(){if($(this).val()==listeChampsAutoEffacement[$(this).attr(b)]){$(this).val("")}});a.on("blur",function(){if($(this).val()==""){$(this).val(listeChampsAutoEffacement[$(this).attr(b)])}})}function clone(a){if(typeof(a)!="object"||a==null){return a}var c=a.constructor();for(var b in a){c[b]=clone(a[b])}return c}function number_format(k,c,b,a){var d,f,g,e,j,l="";if(!a){a=" "}if(!b){b=","}if(!c){c=2}var h=k.toFixed(c);f=h.replace(/\./g,",");g=f.split(".");e=g[0];j=g[1];sepaMilliers="";for(d=e.length;d>0;d-=3){if(d]+)>)/ig,"");$("#"+this.idBtnSelection).unbind("click").bind("click",function(){Logger.ajoutMessage(d,"erreur");Logger.afficheMessage()});$("#"+this.idConteneur).unbind("dragenter dragover").bind("dragenter dragover",function(f){f.preventDefault()});$("#"+this.idConteneur).unbind("drop").bind("drop",function(g){Logger.ajoutMessage(d,"erreur");Logger.afficheMessage();g.stopPropagation();g.preventDefault();var f=g.originalEvent.dataTransfer;f.effectAllowed=f.dropEffect="none"})}};this.initUploadeur=function(){this.uploadeur=new plupload.Uploader({runtimes:a.runtimes,browse_button:a.idBtnSelection,browse_button_hover:a.classBtnSelectionHover,drop_element:a.idConteneur,container:a.idConteneur,max_file_size:"500mb",file_data_name:"file_Uploadeur",url:a.urlJson,multi_selection:a.multiSelection,filters:a.filtres});this.uploadeur.bind("Init",function(d,e){$("#"+a.idConteneur+" "+a.jqPathBtnDemarrer).unbind("click").bind("click",function(){a.demarrerTransfert()});if(e.runtime=="html5"){$("#"+a.idConteneur).unbind("dragover").bind("dragover",function(){$("#"+a.idConteneur+" .upMlt_dragZone").addClass("upMlt_dragOver")});$("#"+a.idConteneur).unbind("dragleave drop").bind("dragleave drop",function(){$("#"+a.idConteneur+" .upMlt_dragZone").removeClass("upMlt_dragOver")})}});this.uploadeur.bind("QueueChanged",function(d){if(a.multiSelection==false){a.garderSeulementLePremierFichier()}else{if(a.doublonsAutorises==false){a.dedoublonnerFileAttente()}}a.refreshFileAttente()});this.uploadeur.bind("Error",function(d,e){switch(e.code){case -601:Logger.ajoutMessage(_("Le fichier")+" "+e.file.name+" "+_("ne fait pas partie de la liste des fichiers autorisés")+" : "+a.filtres[0]["extensions"],"erreur");break;default:Logger.ajoutMessage(_("Erreur n°")+" "+e.code+" "+_("pour le fichier")+" "+e.file.name+" : "+e.message,"erreur")}Logger.afficheMessage()});this.uploadeur.bind("UploadFile",function(d,e){$("#"+e.id).addClass("enCours");$("#"+e.id+" .upMlt_progress").html(e.percent+" %")});this.uploadeur.bind("UploadProgress",function(d,e){$("#"+e.id+" .upMlt_progress").html(e.percent+" %")});this.uploadeur.bind("FileUploaded",function(d,e,f){retourJson=$.parseJSON(f.response);a.uploadeur.removeFile(e);if(a.uploadeur.files.length==0){$("#"+a.idConteneur+" "+a.jqPathBtnDemarrer).unbind("click").bind("click",function(){a.demarrerTransfert()});a.uploadComplete(d,e,f)}});this.onUploadeurInitDone();$("#"+this.idBtnSelection).one("mouseover",function(){a.uploadeur.refresh()});this.uploadeur.init()};this.onUploadeurInitDone=function(){};this.ajouterDansFileAttente=function(d){if(d.status==plupload.QUEUED){if(d.size>0){txtPoidsFichier=" ("+plupload.formatSize(d.size)+")"}else{txtPoidsFichier=""}$("#"+this.idConteneur+" "+this.jqPathFileAttente).append('
    • '+d.name+txtPoidsFichier+'
    • ');$("#"+d.id).unbind("click").bind("click",function(){a.retirerDeFileAttente(d)})}};this.retirerDeFileAttente=function(d){Logger.confirm(_("Êtes-vous sûr de vouloir retirer le fichier")+" "+d.name+" "+_("de la file d'attente ?"),function(e){if(e){a.uploadeur.removeFile(d)}});Logger.afficheMessage()};this.refreshFileAttente=function(){var d=this.uploadeur.files.length;if(d>0){$("#"+this.idConteneur+" "+this.jqPathFileAttente).empty();for(var e in this.uploadeur.files){a.ajouterDansFileAttente(this.uploadeur.files[e])}this.afficheBtnDemarrer();$("#"+a.idConteneur+" .upMlt_dragZone").addClass("upMlt_encartAvecFilAttente");$("#"+this.idConteneur+" "+this.jqPathFileAttente).show();$("#"+this.idConteneur+" "+this.jqPathBtnDemarrer).show();if(this.multiSelection==false){$("#"+this.idBtnSelection).hide();$("#"+a.idConteneur+" .upMlt_introBtnSelection").hide()}}else{$("#"+this.idConteneur+" "+this.jqPathFileAttente).hide();$("#"+this.idConteneur+" "+this.jqPathBtnDemarrer).hide();$("#"+a.idConteneur+" .upMlt_dragZone").removeClass("upMlt_encartAvecFilAttente");if(this.multiSelection==false){$("#"+this.idBtnSelection).show();$("#"+a.idConteneur+" .upMlt_introBtnSelection").show()}}};this.dedoublonnerFileAttente=function(){var d=[];for(numFichier in this.uploadeur.files){if(!in_array(this.uploadeur.files[numFichier]["name"],d)){d.push(this.uploadeur.files[numFichier]["name"])}else{this.uploadeur.removeFile(this.uploadeur.files[numFichier])}}};this.garderSeulementLePremierFichier=function(){var d=0;var e=0;for(numFichier in this.uploadeur.files){if(numFichier>0){this.uploadeur.removeFile(this.uploadeur.files[numFichier]);e++}d++}if(e>0){Logger.ajoutMessage(_("Vous ne pouvez transférer qu'un seul fichier. Seul le premier fichier sélectionné sera pris en compte."),"erreur");Logger.afficheMessage()}};this.getParamsTransfert=function(){return this.arrayParamsTransfert};this.afficheBtnDemarrer=function(){var d=this.uploadeur.files.length;if(this.uploadeur.state!=plupload.STARTED){$("#"+this.idConteneur+" "+this.jqPathBtnDemarrer).removeClass("enCours");if(d>1){txtDemarrerTransfert=_("Démarrer le transfert des")+" "+d+" "+_("fichiers en attente.")}else{txtDemarrerTransfert=_("Démarrer le transfert du fichier en attente.")}}else{$("#"+this.idConteneur+" "+this.jqPathBtnDemarrer).addClass("enCours");if(d>1){txtDemarrerTransfert=_("Veuillez patienter pendant le transfert (")+d+" "+_("fichiers restants)")}else{txtDemarrerTransfert=_("Veuillez patienter pendant le transfert du fichier")}}$("#"+this.idConteneur+" "+this.jqPathBtnDemarrer).html(txtDemarrerTransfert)};this.demarrerTransfert=function(){var f=this.getParamsTransfert();var e="";var d="";for(nomParam in f){e+=d+nomParam+"="+f[nomParam];d="&"}this.uploadeur.settings.url=this.urlJson+"?"+e;this.uploadeur.start();if(this.jqPathBtnDemarrer){this.afficheBtnDemarrer();$("#"+this.idConteneur+" "+this.jqPathBtnDemarrer).unbind()}};this.detruire=function(){this.uploadeur.destroy();$("#"+this.idConteneur+" "+this.jqPathBtnDemarrer).unbind()};this.uploadComplete=function(d,e,f){Logger.ajoutMessage("Transfert terminé","succes");Logger.afficheMessage()}}uploadeurDocs.prototype=new uploadeurCore();function uploadeurDocs(b,c){uploadeurCore.apply(this,arguments);this.filtres=[{title:"Documents",extensions:"pdf,doc,docx,xls,xlsx,ppt,pptx,odt,ods,odp,odg,txt"}];var a=this}uploadeurImg.prototype=new uploadeurCore();function uploadeurImg(b,c){uploadeurCore.apply(this,arguments);this.filtres=[{title:"Images",extensions:"jpg,jpeg,gif,png"}];this.arrayParamsTransfert.boolNommageAutoImages="auto";this.arrayParamsTransfert.methodeImage="crop";var a=this}uploadeurVideo.prototype=new uploadeurCore();function uploadeurVideo(b,c){uploadeurCore.apply(this,arguments);this.multiSelection=false;this.filtres=[{title:"Video",extensions:"asf,asx,avi,divx,dv,dvx,flv,m4v,mov,mp4,mpeg,mpg,qt,wmv,3g2,3gp,3ivx,3vx"}];var a=this;this.onUploadeurInitDone=function(){this.uploadeur.settings.file_data_name="file_data";this.uploadeur.settings.method="put";this.uploadeur.settings.multipart=false;this.uploadeur.unbind("FileUploaded");this.uploadeur.bind("FileUploaded",function(d,e,g){$("#"+e.id+" .upMlt_progress").html(e.percent+" %");var f=a.getParamsTransfert();$.getJSON(a.urlJson,f,function(h){if(h.statut=="OK"&&h.id!=""){a.uploadComplete()}else{$("#"+e.id).removeClass("enCours");$("#"+e.id+" .upMlt_progress").html(h.message)}})})};this.demarrerTransfert=function(){$("#"+this.idConteneur+" "+this.jqPathBtnDemarrer).addClass("enCours");$("#"+this.idConteneur+" "+this.jqPathBtnDemarrer).html("Veuillez patienter pendant le transfert de la vidéo");$("#"+this.idConteneur+" "+this.jqPathBtnDemarrer).unbind();$.getJSON(this.urlJson,{type:"getUrlUploadDmCloud"},function(d,e){if(d.statut=="OK"){a.arrayParamsTransfert.idTicket=d.idTicket;a.arrayParamsTransfert.urlTicket=d.urlTicket;a.arrayParamsTransfert.urlUpload=d.urlUpload;a.arrayParamsTransfert.urlComplete=d.urlComplete;a.uploadeur.settings.url=d.urlUpload;a.uploadeur.start()}else{Logger.ajoutMessage(d.msg,"erreur");Logger.afficheMessage()}})}}uploadeurMini.prototype=new uploadeurCore();function uploadeurMini(b,c){uploadeurCore.apply(this,arguments);this.classBtnSelectionHover="upMlt_mini_btnSelection_hover";this.jqPathFileAttente=false;this.jqPathBtnDemarrer=false;this.filtres=[{title:"Documents ou Images",extensions:"pdf,doc,docx,xls,xlsx,ppt,pptx,odt,ods,odp,odg,txt,jpg,jpeg,gif,png"}];this.arrayTextes={};this.arrayTextes.pasDeFichier="Aucun fichier n'est présent. Cliquez sur la flèche pour sélectionner un fichier.";this.arrayTextes.confirmSuppr="Êtes-vous sûr de vouloir supprimer le fichier";this.arrayTextes.suppressionOk="Suppression du fichier effectuée avec succès";this.arrayTextes.suppressionErreur="Impossible de supprimer le fichier";var a=this;this.initUploadeur=function(){this.uploadeur=new plupload.Uploader({runtimes:a.runtimes,browse_button:a.idBtnSelection,browse_button_hover:a.classBtnSelectionHover,drop_element:a.idConteneur,container:a.idConteneur,max_file_size:"500mb",file_data_name:"file_Uploadeur",url:a.urlJson,multi_selection:false,filters:a.filtres});this.uploadeur.bind("Init",function(d,e){if(e.runtime=="html5"){$("#"+a.idConteneur).unbind().bind("dragover",function(){$("#"+a.idConteneur+" .upMlt_dragZone").addClass("upMlt_dragOver")});$("#"+a.idConteneur).bind("dragleave drop",function(){$("#"+a.idConteneur+" .upMlt_dragZone").removeClass("upMlt_dragOver")})}});this.uploadeur.bind("QueueChanged",function(d){if(a.multiSelection==false){a.garderSeulementLePremierFichier()}a.afficheFichierEnAttente()});this.uploadeur.bind("Error",function(d,e){switch(e.code){case -601:Logger.ajoutMessage("Le fichier "+e.file.name+" ne fait pas partie de la liste des fichiers autorisés : "+a.filtres[0]["extensions"],"erreur");break;default:Logger.ajoutMessage("Erreur n° "+e.code+" pour le fichier "+e.file.name+" : "+e.message,"erreur")}Logger.afficheMessage()});this.uploadeur.bind("UploadFile",function(d,e){$("#"+e.id+" .upMlt_progress").html(e.percent+" %");$("#"+a.idConteneur+" .upMlt_mini_progress").css("width","1px")});this.uploadeur.bind("UploadProgress",function(d,e){if($("#"+a.idConteneur+" .upMlt_mini_progress").css("width")!="0px"&&e.percent>1){$("#"+e.id+" .upMlt_progress").html(e.percent+" %");$("#"+a.idConteneur+" .upMlt_mini_progress").css("width",e.percent+"%")}});this.uploadeur.bind("FileUploaded",function(d,e,f){retourJson=$.parseJSON(f.response);a.uploadeur.removeFile(e);if(a.uploadeur.files.length==0){if(retourJson.statut=="OK"){$("#"+a.idConteneur+" .upMlt_mini_NomFichier").html(retourJson.nomFichier);a.uploadComplete()}else{Logger.ajoutMessage("Erreur : "+retourJson.message,"erreur");Logger.afficheMessage();$("#"+a.idConteneur+" .upMlt_mini_NomFichier").html("")}$("#"+a.idConteneur+" .upMlt_mini_progress").css("width","0px");$("#"+a.idConteneur+" .upMlt_mini_btnSelection").show();a.verifFichierPresent()}});this.onUploadeurInitDone();$("#"+this.idBtnSelection).one("mouseover",function(){a.uploadeur.refresh()});this.verifFichierPresent();$("#"+this.idConteneur+" .upMlt_mini_btnSuppression").bind("click",function(){a.supprimerFichier()});this.uploadeur.init()};this.verifFichierPresent=function(){if($("#"+this.idConteneur+" .upMlt_mini_NomFichier").html()!=""){$("#"+this.idConteneur+" .upMlt_mini_btnSuppression").show();$("#"+this.idConteneur+" .upMlt_mini_NomFichier").removeClass("upMlt_vide")}else{$("#"+this.idConteneur+" .upMlt_mini_NomFichier").html(this.arrayTextes.pasDeFichier);$("#"+this.idConteneur+" .upMlt_mini_NomFichier").addClass("upMlt_vide");$("#"+this.idConteneur+" .upMlt_mini_btnSuppression").hide()}};this.afficheFichierEnAttente=function(){var d=this.uploadeur.files.length;if(d>0){objFilePlupload=this.uploadeur.files[0];if(objFilePlupload.status==plupload.QUEUED){if(objFilePlupload.size>0){txtPoidsFichier=" ("+plupload.formatSize(objFilePlupload.size)+")"}else{txtPoidsFichier=""}$("#"+this.idConteneur+" .upMlt_mini_NomFichier").html(''+objFilePlupload.name+txtPoidsFichier+'')}$("#"+this.idConteneur+" .upMlt_mini_btnSelection").hide();$("#"+this.idConteneur+" .upMlt_mini_btnSuppression").hide();a.demarrerTransfert()}};this.supprimerFichier=function(){var d=$("#"+this.idConteneur+" .upMlt_mini_NomFichier").text();if(d!=""){var e=clone(this.getParamsTransfert());e.type="delete_"+e.type;Logger.confirm(this.arrayTextes.confirmSuppr+" : "+d+" ?",function(f){if(f==true){$.getJSON(a.urlJson,e,function(g){if(g.statut=="OK"){if(a.arrayTextes.suppressionOk!=""){Logger.ajoutMessage(a.arrayTextes.suppressionOk,"succes");Logger.afficheMessage()}$("#"+a.idConteneur+" .upMlt_mini_NomFichier").html("");a.verifFichierPresent()}else{Logger.ajoutMessage(a.arrayTextes.suppressionErreur,"erreur");Logger.afficheMessage()}})}})}}};