// FOXINCLOUD.JS
// Standard JavaScript for any FoxInCloud Web Application (slightly obfuscated)
// C:\inetpub\wwwroot\awScripts\FoxInCloud.js
// (370 lines before localization)
// ========================================================================================================================

/* ================================================================================================================
// (c) Abaque SARL, 66 rue Michel Ange - 75016 Paris - France
// contact@foxincloud.com - http://foxincloud.com/contact.php - +33 9 53 41 90 90
// --------------------------------------------------------------------------------------------------------------
// This software is distributed under FoxInCloud license, as is, without any warranty.
// You may:
// - read this source code,
// - learn and inspire from it,
// - use its functions, procedures, classes and methods in your code,
// - keep a backup copy of it.
// - subclass any class, overload its properties and methods to extend base functionalities
// to whatever you see fit your needs,
// - compile this source code together with your application source code to build up
// FoxInCloud Application Server(s),
// You may NOT modify this source code
// ==============================================================================================================
*/

var KeyEvent={DOM_VK_CANCEL:3,DOM_VK_HELP:6,DOM_VK_BACK_SPACE:8,DOM_VK_TAB:9,DOM_VK_CLEAR:12,DOM_VK_RETURN:13,DOM_VK_ENTER:14,DOM_VK_SHIFT:16,DOM_VK_CONTROL:17,DOM_VK_ALT:18,DOM_VK_PAUSE:19,DOM_VK_CAPS_LOCK:20,DOM_VK_ESCAPE:27,DOM_VK_SPACE:32,DOM_VK_PAGE_UP:33,DOM_VK_PAGE_DOWN:34,DOM_VK_END:35,DOM_VK_HOME:36,DOM_VK_LEFT:37,DOM_VK_UP:38,DOM_VK_RIGHT:39,DOM_VK_DOWN:40,DOM_VK_PRINTSCREEN:44,DOM_VK_INSERT:45,DOM_VK_DELETE:46,DOM_VK_0:48,DOM_VK_1:49,DOM_VK_2:50,DOM_VK_3:51,DOM_VK_4:52,DOM_VK_5:53,DOM_VK_6:54,DOM_VK_7:55,DOM_VK_8:56,DOM_VK_9:57,DOM_VK_SEMICOLON:59,DOM_VK_EQUALS:61,DOM_VK_A:65,DOM_VK_B:66,DOM_VK_C:67,DOM_VK_D:68,DOM_VK_E:69,DOM_VK_F:70,DOM_VK_G:71,DOM_VK_H:72,DOM_VK_I:73,DOM_VK_J:74,DOM_VK_K:75,DOM_VK_L:76,DOM_VK_M:77,DOM_VK_N:78,DOM_VK_O:79,DOM_VK_P:80,DOM_VK_Q:81,DOM_VK_R:82,DOM_VK_S:83,DOM_VK_T:84,DOM_VK_U:85,DOM_VK_V:86,DOM_VK_W:87,DOM_VK_X:88,DOM_VK_Y:89,DOM_VK_Z:90,DOM_VK_CONTEXT_MENU:93,DOM_VK_NUMPAD0:96,DOM_VK_NUMPAD1:97,DOM_VK_NUMPAD2:98,DOM_VK_NUMPAD3:99,DOM_VK_NUMPAD4:100,DOM_VK_NUMPAD5:101,DOM_VK_NUMPAD6:102,DOM_VK_NUMPAD7:103,DOM_VK_NUMPAD8:104,DOM_VK_NUMPAD9:105,DOM_VK_MULTIPLY:106,DOM_VK_ADD:107,DOM_VK_SEPARATOR:108,DOM_VK_SUBTRACT:109,DOM_VK_DECIMAL:110,DOM_VK_DIVIDE:111,DOM_VK_F1:112,DOM_VK_F2:113,DOM_VK_F3:114,DOM_VK_F4:115,DOM_VK_F5:116,DOM_VK_F6:117,DOM_VK_F7:118,DOM_VK_F8:119,DOM_VK_F9:120,DOM_VK_F10:121,DOM_VK_F11:122,DOM_VK_F12:123,DOM_VK_F13:124,DOM_VK_F14:125,DOM_VK_F15:126,DOM_VK_F16:127,DOM_VK_F17:128,DOM_VK_F18:129,DOM_VK_F19:130,DOM_VK_F20:131,DOM_VK_F21:132,DOM_VK_F22:133,DOM_VK_F23:134,DOM_VK_F24:135,DOM_VK_NUM_LOCK:144,DOM_VK_SCROLL_LOCK:145,DOM_VK_COMMA:188,DOM_VK_PERIOD:190,DOM_VK_SLASH:191,DOM_VK_BACK_QUOTE:192,DOM_VK_OPEN_BRACKET:219,DOM_VK_BACK_SLASH:220,DOM_VK_CLOSE_BRACKET:221,DOM_VK_QUOTE:222,DOM_VK_META:224};
String.prototype.padStart||(String.prototype.padStart=function(e,t){return(t||" ").repeat(e-this.length).substr(0,e)+this}),String.prototype.endsWith||(String.prototype.endsWith=function(e){return this.substr(-e.length,e.length)===e}),String.prototype.startsWith||(String.prototype.startsWith=function(e){return this.substr(0,e.length)===e}),String.prototype.stripTags||(String.prototype.stripTags=function(){return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?(\/)?>|<\/\w+>/gi,"")}),String.prototype.truncate||(String.prototype.truncate=function(e,t){return e=e||30,t="string"==typeof t&&t?t.trim():"...",e<this.length?this.slice(0,e-t.length)+t:String(this)}),Date.prototype.toJSON=function(){return'"'+this.getFullYear()+"-"+(this.getMonth()+1).toString().padStart(2,"0")+"-"+this.getDate().toString().padStart(2,"0")+"T"+this.getHours().toString().padStart(2,"0")+":"+this.getMinutes().toString().padStart(2,"0")+":"+this.getSeconds().toString().padStart(2,"0")+'Z"'},$&&window.Prototype&&window.jQuery&&$===jQuery&&jQuery.noConflict(),window.jQuery&&(jQuery.fn.reverse=function(){return this.pushStack(this.get().reverse(),arguments)});
var FoxInCloud=FiC={version:"
3.0.1-beta.6",lang:(navigator.language||navigator.browserLanguage).substr(0,2).toLowerCase(),langFR:"fr"===(navigator.language||navigator.browserLanguage).substr(0,2).toLowerCase(),localURL:window.location.href.toLowerCase().startsWith("http://localhost/")||window.location.href.toLowerCase().startsWith("http://127.0.0.")||window.location.href.toLowerCase().startsWith("http://192.168."),DOMEvent:function(e,t,i){var o=this.browserOK;
if(o){if(e&&e.currentTarget){var r=t;
t=i,i=e,e=r}var s=(i=jQuery.event.fix(i)).currentTarget,n=jQuery(s);
if(o=i&&s){var a=s.tagName.toLowerCase(),l=i.type.toLowerCase(),u=this.lKeyEvent(i),c=["
click","contextmenu","mousedown","mouseup"].indexOf(l)>-1,d=this.aReqsPend.length;
!(!i.eventPhase||2===i.eventPhase||u||"
select"===a||c&&["label","span","a","i","b","strong","img","div"].indexOf(i.target.tagName.toLowerCase())>-1)||"click"===l&&(d?this.aReqsPend[d-1][0].indexOf("&Event=click")>-1:"click"===this.cEvent)&&(d?this.aReqsPend[d-1][1]:this.oControl)===s&&new Date-this.dEvent<800||"select"===a&&["mouseover","mouseout","mouseenter","mouseleave"].indexOf(l)>-1&&i.relatedTarget&&"option"===i.relatedTarget.tagName.toLowerCase()||!this.DOMEvent_key(i,e)||jQuery(i.target).closest(".aw-grid-control").length||n.is("input.typeahead")&&"change"===l&&i.originalEvent&&n.data("typeahead").$menu.children().length||(u?e=this.nKeyCode:"click"===this.cEvent&&"buttons"===n.closest(".btn-group").attr("data-toggle")||jQuery(i.target).is(".pageTab")&&!n.is(".pageFrame")||i.stopPropagation(),o=this.EventRequest("DOMEvent",i,s,e,void 0,t))}else this.browserKO()}else this.browserKO();
return Boolean(o)},LeftClick:function(e,t,i){return this.onClick(e,t,i,1)},MiddleClick:function(e,t,i){return this.onClick(e,t,i,2)},RightClick:function(e,t,i){return this.onClick(e,t,i,3)},onClick:function(e,t,i,o){return!(!i||!(1===o&&1===i.which||2===o&&2===i.which||3===o&&3===i.which))&&this.DOMEvent(e,t,i)},nKeyCode:null,DOMEvent_key:function(e,t){return this.nKeyCode=null,!this.lKeyEvent(e)||Boolean(t&&jQuery.grep(t,jQuery.proxy((function(t){var i=t[0]===e.which&&t[1]===e.shiftKey&&t[2]===e.ctrlKey&&t[3]===e.altKey;
return i&&(this.nKeyCode=t[4]),i}),this)).length)},lKeyEvent:function(e){var t=this.lEvent(e)&&"
key"===e.type.substr(0,3);
return t&&(this.oControl=e.target),t},cEvent:"
",dEvent:null,inputAlwaysBlur:!1,inputAlwaysBlurOnReturn:!0,inputTextDateSelector:"input.awDate",EventRequest:function(e,t,i,o,r,s){i=document.getElementById(i)||i;
var n=!0,a=jQuery(i),l=i.tagName.toLowerCase(),u=this.lEvent(t)?t.type.toLowerCase():t||null,c=a.parent(),d=c.hasClass("
spinner"),h=c.hasClass("combobox")||c.hasClass("awBS-combobox");
if("
input"===(u=u&&u.endsWith("touchstart")?"dblclick":u)){if(a.prop("InteractiveChange"))return!0;
a.prop("
InteractiveChange",!0)}if(void 0===o){switch(l){case"select":i.multiple&&i.options.length>0?(o="",jQuery.each(i.options,(function(e,t){t.selected&&(o+=","+e)})),o=o.substr(1)):(n=(o=i.selectedIndex)>-1&&!(window.Prototype&&Prototype.Browser.IE&&i.options.item(o).isDisabled))||(i.selectedIndex=-1);
break;
case"
input":var p=i.type.toLowerCase();
if("
checkbox"===p)o=i.checked?1:0,i.checked=1==o;
else if("
radio"===p)o=parseInt(i.value,10);
else if("
text"===p&&d){var f=i.parentNode;
o=parseFloat(i.value),"
change"===u&&(o=Math.min(Math.max(o,f.nLow),f.nHigh),i.value=i.value.replace(/[0-9.,]+/,o.toString())),i=f}else o=i.value;
break;
case"
textarea":o=i.value}"drop"===u&&(o=t.originalEvent.dataTransfer.getData("text/plain"),t.preventDefault())}if(n=!i.disabled){if(r=jQuery(r).attr("id")||r||i.id||"",r=a.hasClass("pageTab")&&r.endsWith("_tab")?r.substr(0,r.length-4):r,["input","textarea"].indexOf(l)>-1&&["blur","change"].indexOf(u)>-1){var g=this.inputTextDateSelector&&a.is(this.inputTextDateSelector),y=g?"date"===jQuery.type(o)?o:this.parseDate(o):null;
if(n=!g||"
"===y||y instanceof Date){var m=i.valueOld,v=typeof m,w=Boolean(this.lastKey===KeyEvent.DOM_VK_RETURN);
n=(this.inputAlwaysBlur||this.inputAlwaysBlurOnReturn&&w||a.prop("
wlAlwaysBlur"))&&!a.is("input.typeahead")||"undefined"===v||v===typeof o==="string"&&o.toUpperCase()!==m.toUpperCase()||o!==m||this.hasSelection(i)&&(a.prop("selS")!==a.prop("selectionStart")||a.prop("selE")!==a.prop("selectionEnd"))||!1,g&&m&&this.parseDate(m).toString()===y.toString()?i.value=m:i.valueOld=o,!h&&r.endsWith("_txt")&&(r=r.substr(0,r.length-4))}}n&&(h&&(r=(i=i.parentNode).id),r||(r=(i=a.closest("[id]").get(0))?i.id:r,a=jQuery(i)),"click"===u?u=3===t.which&&(t.preventDefault(),1)?"rightclick":2===t.which?"middleclick":u:"contextmenu"===u?(t.preventDefault(),n=!1):"resize"===u&&i&&!o&&(o=this.dimensions(i)),this.cEvent=u,this.dEvent=new Date,this.RequestParmsSet(t,i),this.ServerRequest(e+"~&Event="+u+"&ObjAddr="+encodeURI(r),i,o,s))}return n},dimensions:function(e){var t=jQuery(e);
return{width:t.width(),height:t.height()}},hasSelection:function(e){if(e&&e.tagName){var t=e.tagName.toLowerCase();
return"
textarea"===t||"input"===t&&["text","search","url","e-mail","password"].indexOf(e.type.toLowerCase())>-1}},PropChange:function(e,t,i,o){var r=this.browserOK;
if(r&&e){e.stopPropagation();
var s=e.currentTarget;
(r=e&&s)?(this.RequestParmsSet(e,s),this.ServerRequest("
PropCh~&Prop="+i+"&ObjAddr="+t,s,o)):this.browserKO()}else this.browserKO();
return r},ValueUpdate:function(e){void 0!==e.value&&e.id&&this.ServerRequest("
AJAXvalueUpdate~&ObjAddr="+e.id,e,e.value)},gridEvent_:function(e,t,i,o,r,s){if("object"==typeof t){t=jQuery.event.fix(t),!this.lKeyEvent(t)&&t.stopPropagation();
var n=i=document.getElementById(i)||i;
i=t.target||i,r=r||n===i?r:n.id}return this.EventRequest(e,t,i,o,r,s),s?Number(!this.uResult):0},gridEvent:function(e,t,i,o,r){return this.gridEvent_("
gridEvent",e,t,i,o,r)},gridEditEvent:function(e,t,i,o,r){return this.gridEvent_("gridEditEvent",e,t,i,o,r)},gridHeaderClicked:function(e,t,i){if("click"===e.type.toLowerCase())return this.gridEvent_("gridEvent",e,t,void 0,i),!0},gridRowChangeDelay:.5,gridRowChangeDelayClicked:0,gridColChangeDelay:.5,gridDateEmpty:"/ /",gridDateTimeEmpty:"/ / ::",gridMethod:function(e,t,i,o,r){return this.ServerRequest("gridMethod~&MethAddr="+encodeURI(e)+"&ObjAddr="+encodeURI(o||t.id),t,i,r)},nodeCollapsed:function(e,t){return this.MethExec(e,e.currentTarget.id,"collapse",t.index)},MethExec:function(e,t,i,o,r,s,n){var a=this.browserOK;
return a?(n=n||document.getElementById(t||null)||(e?jQuery(e).length?e:e.target:this.oControl),this.oControl=n||this.oControl,this.RequestParmsSet(e,n),this.ServerRequest("
MethExec~&MethAddr="+encodeURI(i)+"&ObjAddr="+encodeURI(t),n,o,r,s),(e=e instanceof Event?jQuery.event.fix(e):null)&&(this.lKeyEvent(e)||e.stopPropagation())):this.browserKO(),a},FormDisplay:function(e,t,i,o){var r=this.browserOK;
if(r){e&&e.stopPropagation&&(this.lKeyEvent(e)||e.stopPropagation());
var s=(e?e.target:null)||e||null;
this.RequestParmsSet(e,s),this.ServerRequest("
AJAXformDisplay~&cForm="+t,s,i||null)}else this.browserKO();
return r},DOMEltUpdate:function(e,t,i){var o;
"
string"==typeof e?(o=e,e=document.getElementById(o)):o=(e=$(e)).identify();
var r=e.getOffsetParent(),s=e.positionedOffset(),n=this.dimensions(e),a=$(document.createElement("
div"));
a.setStyle({position:"
absolute",left:s.left+"px",top:s.top+"px",padding:"10px",width:n.width-20+"px",height:n.height-20+"px",backgroundColor:"gray"}).setOpacity(.4),r.appendChild(a),this.ServerRequest("AJAXDOMeltUpdate~&ObjAddr="+o+"&cTable="+t,e,i,!0),r.removeChild(a)},menuSelected:!1,menuSelect:function(e,t){return this.menuSelected=!0,this.RequestParmsSet(e,t),this.ServerRequest("AJAXmenuSelect~&id="+(t?t.id:""),t,null,!1),jQuery(document.body).is(".bootstrap")},menuDeactivate:function(e,t){return e&&e.stopPropagation&&e.stopPropagation(),this.ServerRequest("AJAXmenuDeactivate~&id="+(t||"?"),document.getElementById(t||null),null,!0),!1},oForm:null,oFormSet:function(e){this.oForm=jQuery(e).closest(".form").get(0)||this.oForm},aRequests:[],ServerRequest:function(e,t,i,o,r){e+="&UserID="+this.cUserID,e+="&PageInit="+(this.lInit||""),o=Boolean(o),this.lInit=!1,this.aRequests.length<20&&this.aRequests.push([e,t,this.dRequest-this.dEnd]),this.RequestSend(e,t,i,o,r)},CGI:"bin/wc.dll",wcURL:function(e){var t=this.CGI.toLowerCase();
if(t.indexOf("
wc.dll")>-1)return(window.location.href.toLowerCase().indexOf("/bin/")>-1?t.replace("/bin/","").replace("bin/",""):t)+"?IntuiCat~"+e;
if(e.toLowerCase().indexOf("
."+t)>-1)return e;
var i=e.split("
~");
return i.shift()+"
."+t+"?"+i.join("~")},RequestSend_sDate:function(e){var t="{^ "+e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate();
return(e.getHours()>0||e.getMinutes()>0||e.getSeconds()>0||e.getMilliseconds()>0)&&(t=t+"
"+e.getHours()+":"+e.getMinutes()+":"+e.getSeconds()),t+String.fromCharCode(125)},parameters:{},RequestParmsSet:function(e,t){var i=this.lEvent(e);
if(i&&(e=jQuery.event.fix(e)),this.oFormSet(t),this.parameters={},this.parameters.nKeyCode=this.nKeyCode,this.parameters.nButton=i&&["
mousedown","mouseup","click"].indexOf(e.type)>-1?1===e.which?1:3===e.which?2:2===e.which?4:0:-1,this.parameters.nShiftAltCtrl=i?1*e.shiftKey+2*e.ctrlKey+4*e.altKey:0,i){var o=jQuery(this.oForm).offset();
this.parameters.nXcoord=o?Math.round(e.clientX-o.left):0,this.parameters.nYcoord=o?Math.round(e.clientY-o.top):0;
var r=jQuery("
#awMenu");
r=(r.length?r.parent():jQuery(document.body)).offset(),this.parameters.nRow=Math.round(e.clientY+window.scrollY-r.top),this.parameters.nCol=Math.round(e.clientX+window.scrollX-r.left)}},sync:!1,lRequest:!1,dRequest:null,dResponse:null,dEnd:null,nRequests:0,aReqsPend:[],oControl:null,focusEvent:!1,lSuccess:!1,lDialog:!1,RequestSend:function(e,t,i,o,r){if(o=Boolean(o),this.lRequest)-1===e.toLowerCase().indexOf("
=timer&")&&this.aReqsPend.push([e,jQuery(t).closest("[id]").get(0),i,o,this.parameters,r]);
else{this.focusEvent=e.indexOf("
=focus&")>0,this.locationChanged=!1,this.oFormSet(t),this.nRequests+=1,e+="&nReq="+this.nRequests;
var s=typeof i;
if("
undefined"!==s){s="object"===s?i instanceof Array?"array":i instanceof Date?"date":s:s,this.parameters.ValueType=s,this.parameters.Value=null===i?"null":["object","array"].indexOf(s)>-1?JSON.stringify(i):"date"===s?this.RequestSend_sDate(i):"string"===s?"'"+i.replace(/\\'/g,"'").replace(/'/g,"\\'")+"'":i.toString();
var n=this.parameters.Value;
e+="&ValueType="+s+"&Value="+encodeURI("{"===n.substr(0,1)&&"}"===n.substr(n.length-1,1)?n.length<256?n:"":n.truncate(60))}this.parameters.lastKey=this.lastKey,this.hasSelection(t)&&(this.parameters.selS=t.selectionStart,this.parameters.selL=t.selectionEnd-t.selectionStart),this.parameters.version=this.version,this.parameters.sync=o,this.parameters.vpw=document.documentElement.clientWidth,this.parameters.vph=document.documentElement.clientHeight,this.parameters.userID=this.cUserID,this.parameters.reqID=this.reqID,this.parameters.nInet=(this.nInetSecs||0).toFixed(3),this.parameters.nCli=(this.nClientSecs||0).toFixed(3),this.tabID&&(this.parameters.tabID=this.tabID.toString());
e+="",this.sync=o,this.oControl=t||this.oControl,this.WindowsCloseShow(),this.RequestSend_ante(e,t,i,o),this.lDialog=!1,this.lRequest=this.lSuccess=!0,this.dRequest=new Date,this.dResponse=this.dEnd=null,this.nInetSecs=null,this.nClientSecs=null,this.AjaxComplete__=r,this.nRequestTOsecs=this.localURL?this.requestTimeoutDev:this.requestTimeoutProd,jQuery.post({async:!o,url:this.wcURL(e),dateType:"xml",context:this,timeout:1e3*this.nRequestTOsecs,data:this.parameters,beforeSend:this.AjaxCreate,error:this.AjaxError,success:this.AjaxSuccess,complete:this.AjaxComplete})}},RequestSend_ante:function(e,t,i,o){},requestTimeoutDev:600,requestTimeoutProd:25,nRequestTOsecs:0,WaitStateKeep:!1,WaitState:function(e,t,i){this.lRequest=e,e?this.localURL||(jQuery(document).on("keydown.F5",this.WaitState_F5),window.onbeforeunload=this.locationChanging||this.menuSelected||"blur"===this.cEvent?null:jQuery.proxy((function(e){e=e||window.event;
var t=this.langFR?"Veuillez rester sur cette page tant qu'
une requête est en cours ; merci de choisir 'Rester sur la page' ou 'Ne pas actualiser la page' (selon navigateur)":"It's recommended you stay on this page while a request is under way; please click 'Stay on page' or 'Do not update page' (dependending on browser)";
return e&&(e.returnValue=t),t}),this)):(jQuery(document).off("keydown.F5"),window.onbeforeunload=null,this.cEvent="",this.parameters={},this.menuSelected=!1,i&&(i.onreadystatechange=jQuery.noop(),0<i.readyState&&i.readyState<4&&i.abort())),this.WaitPic(e||this.WaitStateKeep,t),document.body.style.cursor=e?"wait":"default",window.status=e?this.langFR?"Requête du Serveur d'
Application FoxInCloud en cours ...":"Requesting FoxInCloud Application Server ...":(this.localURL?(new Date).toLocaleTimeString()+" - ":"")+"FoxInCloud - "+(this.cSecs?(this.langFR?"requête finie en":"request finished in")+" "+this.cSecs:this.langFR?"requête avortée":"request aborted")},WaitState_F5:function(e){116!=e.which&&82!=e.which||e.preventDefault()},requestWaitPic:!0,requestWaitPicDelay:.5,requestFormOpacity:.9,requestWaitPicTO:null,formOpacityID:null,oWaitPic:null,WaitPic:function(e,t){window.clearTimeout(this.requestWaitPicTO),jQuery(this.oWaitPic).stop().hide();
var i=jQuery(this.oForm);
if(e&&this.requestWaitPic&&(this.oWaitPic=this.oForm?document.getElementById(this.oForm.id+"
-waitpic")||document.getElementById(this.oForm.id+"_waitpic"):document.getElementById("waitpic")||null,this.oWaitPic)){var o=jQuery(this.oWaitPic);
if(jQuery(t).length){var r={zIndex:1e4};
if(t===this.oForm)r.left=r.top="
5px";
else{var s=jQuery(this.oForm).length?this.DOMEltPosIn(t,this.oForm):null;
s=s&&"
number"==typeof s.left?s:jQuery(t).offset(),r.left=Math.max(s.left-o.width()-1,0)+"px",r.top=Math.max(s.top-o.height()+4,0)+"px"}o.css(r)}this.requestWaitPicDelay>0&&!this.sync?this.requestWaitPicTO=window.setTimeout(jQuery.proxy(o.show,o),1e3*this.requestWaitPicDelay,200):o.show()}this.oForm&&(!this.locationChanging||!e)&&0<this.requestFormOpacity&&this.requestFormOpacity<1&&(e?(i.prop("_opacity",i.prop("_opacity")||i.css("opacity")),i.css("opacity",this.requestFormOpacity),this.formOpacityID=i.attr("id")):(i=jQuery("#"+this.formOpacityID)).css("opacity",i.prop("_opacity")||1))},AjaxCreate:function(e,t){this.WaitStateKeep=!1,this.WaitState(!0,this.oControl,e)},AjaxError:function(e,t,i){switch(this.dResponse=this.dResponse||new Date,this.lSuccess=!1,t){case"timeout":this.Error((this.langFR?"L'application n'a pas répondu dans le délai imparti de":"Application did not respond within the expected delay of")+" "+this.nRequestTOsecs+" "+(this.langFR?"secondes":"seconds")+".");
case"
error":i&&this.Error((this.langFR?"Erreur de protocole HTTP :":"HTTP protocol error:")+" "+i);
case"
abort":this.Error(this.langFR?"Requête annulée par l'utilisateur.":"User cancelled this request.");
case"parseerror":this.Error((this.langFR?"L'
interprétation du document XML a rencontré une erreur :":"An error occurred while interpreting XML DOM document:")+this.cCRLF+i);
default:this.Error((this.langFR?"
Erreur inconnue :":"Unknown error:")+" "+i)}},cSecs:"",AjaxSuccess:function(e,t,i){this.dResponse=this.dResponse||new Date;
var o=i.responseText;
if(o){var r=i.responseXML;
if(r)if(r.childNodes.length>0)try{this.XMLDOMread(r,i)&&this.lSuccess&&(this.dEnd=new Date,this.cSecs=this.ExeTimeDisplay(o),"
function"==typeof this.AjaxSuccess_&&this.AjaxSuccess_(i))}catch(t){this.AjaxException(e,t)}else this.Error(this.langFR?"Le DOM construit à partir du XML reçu du serveur n'a aucun noeud enfant":"DOM built on XML provided by server has no child node");
else this.Error((this.langFR?"Le XML reçu du serveur n'
a pas pu être interprété en Modèle d'Objet Document (DOM)":"XML received from server could not be interpreted into a Document Object Model (DOM)")+": "+o)}else this.Error(this.langFR?"La requête a avorté ou le serveur a retourné une réponse vide":"Request was aborted or Server's response was empty")},AjaxSuccess_:function(e){},AjaxException:function(e,t){this.dResponse=this.dResponse||new Date;
var i=["
Type: "+t.name,"Message: "+(t.message||t),"Stack: "+(t.stack.replace(/ at/g,"<br>at")||"N/A")];
i=this.localURL?(this.langFR?["
<b>Oups, une erreur s'est produite pendant le traitement de la réponse AJAX ...</b>","","L'exécution du programme s'est arrêtée, l'affichage est probablement erroné","","<u>Détails de l'erreur:</u>"]:["<b>Ooops, an error occurred while processing Ajax response ...</b>","","As subsequent instructions did not execute, display might be erroneous","","<u>Error details:</u>"]).concat(i):["Error while processing Ajax response"].concat(i),this.devAlert(i),this.lSuccess=!1},AjaxComplete:function(e,t){var i,o,r;
for(this.WindowsCloseShow(!0),"function"==typeof this.AjaxComplete_&&this.AjaxComplete_(e,t),"function"==typeof this.AjaxComplete__&&this.AjaxComplete__(e,t),this.AjaxComplete__=null,this.WaitState(!1,null,e),this.focusEvent&&!this.focusSet&&this.oControl&&this.oControl!==document.activeElement&&!this.oControl.disabled&&"function"==typeof this.oControl.focus&&this.oControl.focus(),this.focusEvent=!1;
this.aReqsPend.length>0;
)if(o=(i=this.aReqsPend.shift())[0],!((r=(i[1]?document.getElementById(i[1].id):null)||document.getElementById(this.objAddrOfURL(o))||this.oControl)&&r.disabled&&"DOMEvent"===o.substr(0,o.indexOf("~"))||this.lDialog)){this.oFormSet(r),this.parameters=i[4],this.RequestSend(o,r,i[2],i[3],i[5]);
break}this.lDialog=!1},objAddrOfURL:function(e){var t=e.substr(e.indexOf("&ObjAddr=")+9);
return t.substr(0,t.indexOf("&"))},AjaxComplete_:function(e,t){},AjaxComplete__:null,BSgroupBtnBorderFix:function(){var e,t,i,o,r,s,n,a=function(e){r=jQuery(this),s="none"!==r.css("display"),r[e>0&&s&&!n?"addClass":"removeClass"](o?t?"rbBot":"rbRight":t?"rbTop":"rbLeft"),n=n||s};
jQuery(".btn-group").add(".btn-group-vertical").each((function(){e=jQuery(this),t=e.is(".btn-group-vertical"),i=e.find(".btn"),n=!1,o=!1,i.each(a),n=!1,o=!0,i.reverse().each(a)}))},lDOMParse:function(e,t){var i,o=!0;
if(window.Prototype&&Prototype.Browser.IE){var r=t.transport.parseError;
r&&((o=0==r.errorCode)||(i="- Code d'
erreur :"+r.errorCode+this.cCRLF+"- Raison :"+r.reason+this.cCRLF+"- N° de ligne :"+r.line+this.cCRLF+"- N° de caractère :"+r.linepos+this.cCRLF+"- Ligne en erreur :"+r.srcText))}else(o="parsererror"!=e.childNodes.item(0).nodeName)||(i=e.childNodes.item(0).firstChild.nodeValue);
return o||this.Error((this.langFR?"
L'interprétation du document XML a rencontré une erreur :":"An error occurred while interpreting XML DOM document:")+this.cCRLF+i),o},cUserID:"",cServerStatus:"",nServerSecs:0,serverVersion:null,serverVersionMajor:null,serverVersionMinor:null,serverVersionPatch:null,nAppSecs:0,uResult:null,locationChanging:!1,locationChanged:!0,focusSet:!1,reqID:null,XMLDOMread:function(toDOM,response){var success=!0,script,dialog;
this.focusSet=!1;
var loIntuiCat=this.oDOMEltChild(toDOM,"IntuiCat");
if(success=Boolean(loIntuiCat),success){loIntuiCat.normalize();
var location=this.oDOMEltChild(loIntuiCat,"location"),newWindow=this.oDOMEltChild(loIntuiCat,"newWindow"),locDelayS=this.oDOMEltChild(loIntuiCat,"locDelayS");
this.locationChanging=Boolean(location),this.locationChanging&&(this.aReqsPend=[],window.onbeforeunload=null);
var loError=this.oDOMEltChild(loIntuiCat,"ServerError");
if(success=!loError,success){var userID=this.oDOMEltChild(loIntuiCat,"UserID");
this.cUserID=userID&&userID.firstChild?userID.firstChild.nodeValue:"";
var serverVersion=this.oDOMEltChild(loIntuiCat,"ServerVersion");
serverVersion&&serverVersion.firstChild&&(serverVersion=serverVersion.firstChild.nodeValue.toLowerCase().replace("final","").trim().replace(" ","-").replace(/b[eê]ta(\d+)/,"beta.$1").replace(/(\d)beta/,"$1-beta").split("-"),serverVersion[0]=serverVersion[0]+(2===(serverVersion[0].match(/\./g)||[]).length?"":".0"),this.serverVersion=window.semver?new semver.SemVer(serverVersion.join("-")):null);
var serverStatus=this.oDOMEltChild(loIntuiCat,"ServerStatus");
this.cServerStatus=serverStatus&&serverStatus.firstChild?serverStatus.firstChild.nodeValue:"";
var serverTime=this.oDOMEltChild(loIntuiCat,"ServerTime");
this.nServerSecs=serverTime&&serverTime.firstChild?parseFloat(serverTime.firstChild.nodeValue):0;
var appTime=this.oDOMEltChild(loIntuiCat,"AppTime");
this.nAppSecs=appTime&&appTime.firstChild?parseFloat(appTime.firstChild.nodeValue):0;
var reqID=this.oDOMEltChild(loIntuiCat,"reqID");
this.reqID=reqID&&reqID.firstChild?reqID.firstChild.nodeValue:null;
var uResult=this.oDOMEltChild(loIntuiCat,"Result");
this.uResult=this.sync&&uResult?this.uValue(this.oDOMEltChild(uResult,"v").firstChild.nodeValue,this.oDOMEltChild(uResult,"t").firstChild.nodeValue):this.uResult,script=this.oDOMEltChild(loIntuiCat,"_script"),script&&script.firstChild&&(script=script.firstChild.nodeValue,this.focusSet=this.focusSet||script.indexOf(".focus(")>-1,script&&eval(script)),jQuery.each(this.aDOMEltChildren(loIntuiCat,"HTMLDialog"),jQuery.proxy((function(e,t){this.lDialog=!0,(dialog=this.DialogShow(t))||this.Error((this.langFR?"Échec de l'
affichage du dialogue ":"Dialog couldn't be displayed")+": "+this.oDOMEltChild(t,"DivID").firstChild.nodeValue),success=success&&dialog}),this))}else this.Error(loError.firstChild.nodeValue);
success=(dialog?window.setTimeout(jQuery.proxy(this.DOMreadyUpdate,this,loIntuiCat,location,newWindow,locDelayS)):this.DOMreadyUpdate(loIntuiCat,location,newWindow,locDelayS))&&success}else this.Error(this.langFR?"Le document XML reçu ne comporte aucun élément racine":"XML document received from server contains no root element");
return success},DOMreadyUpdate:function(loIntuiCat,location,newWindow,locDelayS){var success=!0,script;
script=this.oDOMEltChild(loIntuiCat,"script"),script&&script.firstChild&&(script=script.firstChild.nodeValue,this.focusSet=this.focusSet||script.indexOf(".focus(")>-1,script&&eval(script));
var loProps=this.oDOMEltChild(loIntuiCat,"PCHTML");
if(loProps&&(success=this.PageUpdate(loProps),success||this.Error(this.langFR?"Échec de la mise à jour de la page":"Page update failed")),success&&(script=this.oDOMEltChild(loIntuiCat,"script_"),script&&script.firstChild&&(script=script.firstChild.nodeValue,this.focusSet=this.focusSet||script.indexOf(".focus(")>-1,script&&eval(script)),this.BSgroupBtnBorderFix(),location)){location=location.firstChild?location.firstChild.nodeValue:"";
var locationChange=jQuery.proxy((function(){var e=jQuery(document.body);
location&&this.requestFormOpacity>0&&this.requestFormOpacity<1&&e.css("opacity",.9*this.requestFormOpacity)&&window.setTimeout((function(){e.css("opacity",1)}),1e3),newWindow?window.open(location):(location=location||window.location.href,this.tabID&&(location+=location.indexOf("tabID")>-1?"":(location.indexOf("?")>-1?"&":"?")+"tabID="+this.tabID),window.location.href=location),this.WaitStateKeep=!1}),this);
locDelayS&&locDelayS.firstChild?window.setTimeout(locationChange,1e3*parseFloat(locDelayS.firstChild.nodeValue)):locationChange()}return success},PageUpdate:function(e){var t=this.aDOMEltChildren(e),i=t.length>0;
if(i)for(var o,r,s=0;
s<t.length&&((i=4===(o=this.aDOMEltChildren(t[s])).length)?(r=o[0].firstChild?document.getElementById(o[0].firstChild.nodeValue):null,i=this.PageUpdate_elt(r,e,o)):this.Error((this.langFR?"Quatre déterminants de propriétés attendus au lieu de":"Four property determiners expected instead of")+" "+o.length),i);
s++);
else this.Error(this.langFR?"Le tableau de propriétés est vide":"Properties array is empty");
return i},PageUpdate_elt_Shell:function(e,t,i,o){},PageUpdate_elt:function(element,toProps,laProp){var llResult=!0,lcProp=laProp[1].firstChild?laProp[1].firstChild.nodeValue:"",lcType=laProp[2].firstChild?laProp[2].firstChild.nodeValue.toUpperCase():"",luVal=laProp[3],lcVal,$el=jQuery(element),loCursor;
if(element)if(this.localURL&&this.PageUpdate_elt_Shell(element,lcProp,lcType,luVal),"A"==lcType)0===this.aDOMEltChildren(luVal).length?(lcVal=luVal.firstChild.nodeValue,loCursor=this.oDOMEltChild(toProps.parentNode,lcVal),llResult=Boolean(loCursor)):loCursor=luVal,llResult?(lcProp=lcProp.toLowerCase(),this.Error((this.langFR?"Propriété de curseur non supportée":"Unsupported cursor property")+": "+lcProp),llResult=!1):this.Error((this.langFR?"Le curseur nommé":"Cursor named")+'
"'+lcVal+'" '+(this.langFR?"associé à la propriété":"related to property")+' "'+lcProp+'" '+(this.langFR?"est introuvable dans le document XML":"can't be found in XML document"));
else if(lcVal=luVal.firstChild?luVal.firstChild.nodeValue:"
",lcProp)luVal=this.uValue(lcVal,lcType),0===lcProp.indexOf("style.")?(this.StyleSet(element,lcProp,luVal),"checkbox"===$el.attr("type")&&this.StyleSet($el.attr("id")+"_txt",lcProp,luVal)):this.AttribSet(element,lcProp,luVal);
else with(element)eval(lcVal);
else"
"===lcProp&&""===lcType&&luVal.firstChild&&luVal.firstChild.nodeValue&&eval(luVal.firstChild.nodeValue);
return llResult},visibleEffect:!0,posDimEffect:!0,StyleSet:function(e,t,i){t=t.substr(6);
var o=jQuery("
string"==typeof e?"#"+e:e),r="visibility"===t,s="display"===t,n="none"!==o.css("display")&&(!o.css("visibility")||"visible"===o.css("visibility")),a=this.visibleEffect&&!o.prop("lEffectVisibleNo"),l=jQuery(o.parents(".input-group")[0]||(o.parent().hasClass(o.attr("id"))?o.parent():null)||e);
if(o.length){if((r||s)&&i!==l.css(r?"
visibility":"display"))i===(r?"inherit":"block")?a&&o.prop("effectShow")?l.show(this.effectDuration_):l.css("display",""):a&&o.prop("effectHide")?l.hide(this.effectDuration_):l.hide();
else if(n&&jQuery.inArray(t,["
width","height","left","top"])>-1){var u={};
u[t]=parseInt(i,10)+"
px",this.posDimEffect?(o.data("overflow_",o.data("overflow_")||o.css("overflow")||"auto"),o.animate(u,{queue:!1,complete:function(){o.css("overflow",o.data("overflow_"))}})):o.css(u)}else r?o.css("display","inherit"===i?"block":"none"):s?o.css("display","none"===i?i:""):o.css(t,i);
return!0}},AttribSet_:function(e,t,i){},imgSrcEffect:!0,AttribSet:function(e,t,i){var o=jQuery(e),r=t.toLowerCase(),s=o.attr(t)!==i,n=o.attr("
type")?o.attr("type").toLowerCase():"",a=o.is("input")&&"text"===n&&"value"===r&&o.prop("lAutoSuggest"),l=a?o.val().length:0,u="textcontent"===r?i.replace(/&#(\d\d);
/g,(function(e,t){return String.fromCharCode(parseInt(t,10))})):"
";
if(r="
textcontent"===r&&o.is("button")&&-1<u.indexOf("<")&&u.indexOf("<")<u.indexOf(">")?"innerhtml":r,this.AttribSet_(e,r,i))return!0;
switch(r){case"
value":i=this.decodeEntities(i),i=o.is("textarea")?i.replace(/\r\n?/g,"<br>"):"date"===n?this.parseDate(i,!0):i,"input"===this.cEvent&&e===this.oControl||(o.prop("valueOld",i),o.val(i));
break;
case"
innerhtml":o.html(i),this.XBrowserFix(e,!0);
break;
case"
textcontent":var c=o.contents().last()[0];
c&&(c["
string"==typeof c.innerText?"innerText":"textContent"]=i);
break;
case"
selectedindex":if(e.options&&e.options.length)if("number"==typeof i){if(i<e.options.length){var d=o.scrollTop();
e.selectedIndex=i,o.scrollTop(d)}}else if("
string"==typeof i){var h=jQuery.map(i.split(","),(function(e){return parseInt(e,10)}));
jQuery.each(e.options,(function(e,t){jQuery(t).attr("
selected",jQuery.inArray(e,h)>-1)}))}break;
case"
replace":o.replaceWith(i);
break;
case"
disabled":o[(i?"add":"remove")+"Class"](r);
default:o.attr(t,i).prop(t,i)}if(o.is("
img")&&"src"===r&&i&&s&&this.imgSrcEffect&&!this.locationChanging&&o.is(":visible")&&o.prop("effectShow")&&1===parseInt(o.css("opacity"),10)&&o.fadeIn(),a){var p=e.value.length;
if(e.setSelectionRange)e.setSelectionRange(l,p);
else if(e.createTextRange){var f=e.createTextRange();
f.moveStart("
character",l),f.moveEnd("character",p),f.select()}else e.select&&e.select()}return!0},uValue:function(tcValue,tcType){switch(tcType.trim().substr(0,1).toUpperCase()){case"S":return tcValue;
case"
B":return"true"===tcValue;
case"
N":return tcValue=tcValue.replace(",",".").replace(" ",""),tcValue.indexOf(".")>-1?parseFloat(tcValue):parseInt(tcValue,10);
case"
D":return eval(tcValue);
case"
O":return JSON.parse(tcValue);
default:return null}},DialogShow:function(toDialog){var laSpecs=this.aDOMEltChildren(toDialog),llResult=laSpecs.length>0;
if(llResult){var lcID=unescape(laSpecs[0].firstChild.nodeValue),lcTitle=unescape(laSpecs[1].firstChild.nodeValue),lcHTML=laSpecs[2].firstChild.nodeValue,lnWidth=parseInt(laSpecs[3].firstChild.nodeValue,10),lnHeight=parseInt(laSpecs[4].firstChild.nodeValue,10),loModal=this.oDOMEltChild(toDialog,"
DivModal"),llModal=!(!loModal||!loModal.firstChild)&&this.uValue(loModal.firstChild.nodeValue,"B"),loObjAddr=this.oDOMEltChild(toDialog,"ObjAddr"),lcObjAddr=loObjAddr&&loObjAddr.firstChild?loObjAddr.firstChild.nodeValue:"",loMethod=this.oDOMEltChild(toDialog,"MethAddr"),lcMethod=loMethod&&loMethod.firstChild?loMethod.firstChild.nodeValue:"",loTheme=this.oDOMEltChild(toDialog,"Theme"),lcTheme=loTheme&&loTheme.firstChild?loTheme.firstChild.nodeValue:"mac_os_x",loButtons=this.oDOMEltChild(toDialog,"Buttons"),laButtons=loButtons&&loButtons.firstChild?eval(loButtons.firstChild.nodeValue):[!1,!1,!1],loCenter=this.oDOMEltChild(toDialog,"Center"),luCenter=loCenter&&loCenter.firstChild?loCenter.firstChild.nodeValue:null;
luCenter="
true"===luCenter||"false"!==luCenter&&luCenter.split(",");
var lcQueryUnload=this.oDOMEltChild(toDialog,"
QueryUnload");
lcQueryUnload=lcQueryUnload&&lcQueryUnload.firstChild?lcQueryUnload.firstChild.nodeValue:"
";
var dialogType=this.oDOMEltChild(toDialog,"
Bootstrap");
dialogType=dialogType&&dialogType.firstChild?this.uValue(dialogType.firstChild.nodeValue,"
S"):"",dialogType="true"===dialogType?"b":dialogType;
var Resizable=this.oDOMEltChild(toDialog,"
Resizable");
Resizable=!(!Resizable||!Resizable.firstChild)&&eval(Resizable.firstChild.nodeValue);
var MinMaxWH=this.oDOMEltChild(toDialog,"
MinMaxWH");
MinMaxWH=MinMaxWH&&MinMaxWH.firstChild?MinMaxWH.firstChild.nodeValue:"
",MinMaxWH=jQuery.map(MinMaxWH.split(","),(function(e){return parseInt(e,10)})),llResult=this.WindowOpen(this.oControl,lcTitle,lnWidth,lnHeight,lcHTML,llModal,lcObjAddr,lcMethod,lcTheme,laButtons,luCenter,lcID,lcQueryUnload,Resizable,MinMaxWH,dialogType)}return llResult},WindowsCloseShow:function(e){window.Windows&&Windows.windows.each((function(t){var i=$(t.element.id+"_close");
t.QueryUnload&&i&&i[e?"
show":"hide"]()})),jQuery(".ui-dialog.QueryUnload .ui-dialog-titlebar-close")[e?"show":"hide"]()},oForm_:null,windowClassNameDefault:"mac_os_x",jQueryUIdialog:!1,$Dialog:null,WindowOpen:function(e,t,i,o,r,s,n,a,l,u,c,d,h,p,f,g){var y;
this.$Dialog=null,e&&e.nodeType||!this.lEvent(e)||(e=(y=jQuery.event.fix(e))?y.currentTarget:e);
var m=e;
if(m){this.oForm_=this.oForm;
var v=jQuery(e).offset(),w={width:jQuery(window).width(),height:jQuery(window).height()},b="
boolean"==typeof c&&(c||!v||s)&&i<w.width&&o+20<w.height,C=Array.isArray(c),D=!h&&!a;
v=!b&&!C&&v;
var _=this.lEvent(y)&&"
mouseover"===y.type,O=C?parseInt(c[0],10):v?Math.max(Math.min(v.left-i,jQuery(window).scrollLeft()+w.width-(i+80)),10):null,E=C?parseInt(c[1],10):v?Math.max(Math.min(v.top-o/3,jQuery(window).scrollTop()+w.height-(o+80)),10):null;
if(r=r.replace(/<\/?!--[^>]*>/g,"
").trim(),this.jQueryUIdialog="j"===g,"b"===g){var S="modal-"+d,M=document.getElementById(S),x=jQuery(M),R=M?bootstrap.Modal.getInstance(M):null;
R&&R.hide()&&R.dispose(),jQuery(document.body).append(r),M=document.getElementById(S),(R=new bootstrap.Modal(M,{keyboard:D,backdrop:!!s&&(!!D||"
static")}))&&R.show(),h&&jQuery("#"+S+" button.close").click((function(e){!Function(h)()&&e.stopPropagation()})),(x=jQuery(M)).on("hide.bs.modal",(function(e){return!0})),x.on("hidden.bs.modal",(function(e){var t=jQuery(this);
FoxInCloud.tmrUnreg(d),jQuery(t.find("
#"+d).data("oSrce")).filter(":not([disabled])").focus(),R.dispose()&&jQuery(document.body)[(jQuery(".modal .modal-dialog").length?"add":"remove")+"Class"]("modal-open"),x.remove()}))}else if(this.jQueryUIdialog)jQuery(document.body).append(r),jQuery("#"+d).css({overflow:"hidden"}).dialog({autoOpen:!_,classes:{"ui-dialog":"ui-corner-all"+(u[2]?"":" ui-no-close")+" Window_"+d+(h?" QueryUnload":""),"ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:D,draggable:!0,hide:!0,show:!0,modal:s,position:C?{my:"left top",at:"left+"+O+" top+"+E}:{my:"center",at:"center"},resizable:p,title:t,width:i+10,height:o+10+55,minWidth:p&&f[0]>0?f[0]:null,maxWidth:p&&f[1]>0?f[1]:null,minHeight:p&&f[2]>0?f[2]:null,maxHeight:p&&f[3]>0?f[3]:null,focus:jQuery.proxy(this.formActivate,this,d),beforeClose:function(e,t){if(h&&e&&(jQuery(e.currentTarget).is(".ui-dialog-titlebar-close")||27===e.which&&e.originalEvent&&"key"===e.originalEvent.type.substr(0,3)))return Function(h)()},close:function(e,t){"object"==typeof tinyMCE&&jQuery.each(tinyMCE.editors,(function(e,t){jQuery(this).has(t)&&jQuery(t).remove()})),this.SWFUploads&&this.SWFUploads.invoke("destroy"),FoxInCloud.formDeactivate(d,!0),jQuery("#"+this.id).dialog("destroy").remove(),FoxInCloud.tmrUnreg(d)},resizeStop:p?function(e,t){window.getSelection&&window.getSelection().removeAllRanges();
var i=jQuery(this);
return FoxInCloud.MethExec(e,d,"
Resize",{width:parseInt(i.dialog("option","width"),10),height:parseInt(i.dialog("option","height"),10)},!0,null,this)}:null,dragStop:function(e,t){return FoxInCloud.RequestSend(FoxInCloud.wcURL("UserFormSave"),this,{left:parseInt(t.position.left,10),top:parseInt(t.position.top,10),form:d},!1)}});
else{var I="
Window_"+(d||t.replace(/\W/g,"_").replace(/_+/g,"_")),F=$(I);
if(F&&!F.visible()&&(F.destroy(),F=null),F)F.win.toFront();
else{F=new Window(I,{className:l||this.windowClassNameDefault,onFocus:jQuery.proxy(this.formActivate,this,d),onDestroy:jQuery.proxy((function(e){"
object"==typeof tinyMCE&&jQuery.each(tinyMCE.editors,(function(e,t){jQuery(this).has(t)&&jQuery(t).remove()})),e.SWFUploads&&e.SWFUploads.invoke("destroy"),this.formDeactivate(d,!0)}),this),onEndResize:p?function(e){return window.getSelection&&window.getSelection().removeAllRanges(),FoxInCloud.MethExec(e,d,"Resize",{width:e.width,height:e.height},!0,null,e)}:null,onEndMove:function(e){FoxInCloud.RequestSend(FoxInCloud.wcURL("UserFormSave"),e.element,jQuery.extend(e.getLocation(),{form:d}),!1)},title:t,width:i,height:o,minWidth:p&&f[0]>0?f[0]:null,maxWidth:p&&f[1]>0?f[1]:null,minHeight:p&&f[2]>0?f[2]:null,maxHeight:p&&f[3]>0?f[3]:null,left:O,top:E,resizable:p,showEffect:Element.show,hideEffectOptions:{duration:s?.5:this.effectDuration},minimizable:u[0],maximizable:u[1],closable:u[2],destroyOnClose:!0}),h&&(F.QueryUnload=jQuery.proxy(Function("win",h),this),F.setCloseCallback(F.QueryUnload)),F.toFront(),jQuery.extend(F,{cObjAddr:n,cMethod:a});
var j=$(F.getContent()),T=Function.prototype.defer,V=r.length/1024/3*.01;
Function.prototype.defer=Function.prototype.delay.curry(V),j.setStyle({overflow:"
hidden"}).update(r),Function.prototype.defer=T,j.firstDescendant().oWindow=F,_?(e.oWindow=F,e._winTO=b?jQuery.proxy(F.showCenter,F).delay(.5,s):jQuery.proxy(F.show,F).delay(.5,s),$(e).observe("mouseout",function(e){window.clearTimeout(this._winTO),this.oWindow&&!this.oWindow.isVisible()&&this.oWindow.destroy(),this.oWindow=null}.bind(e))):(F.oSrce=e,F["show"+(b?"Center":"")](s))}}this.$Dialog=jQuery("#"+d),this.$Dialog.data({oSrce:e,cMethod:a,cObjAddr:n,lModal:s})}return Boolean(m)},ModalChoice:function(e,t,i){this.WindowClose(e,t,i),this.oControl&&this.oControl.visible()&&("function"==typeof this.oControl.focus&&this.oControl.focus(),this.oControl.select&&this.oControl.select())},WindowClose:function(e,t,i){var o,r,s,n,a,l=document.getElementById(i||null),u=jQuery(l),c=document.getElementById("modal-"+i),d=Boolean(u.parent(".ui-dialog").length);
if(!(c||d||window.Windows&&Windows.windows&&Windows.windows.length))return!0;
if(this.tmrUnreg(i),l&&u.prop("
closeTimeOut")&&(window.clearTimeout(u.prop("closeTimeOut")),u.prop("closeTimeOut",null)),s=(s=u.data("oSrce")).length?s[0]:s,n=u.data("cMethod"),a=u.data("cObjAddr"),u.data("lModal"),o=!0,c)(r=bootstrap.Modal.getInstance(c))&&r.hide();
else if(d)u.dialog("
close");
else{var h=l?l.oWindow:window.Windows?Windows.getFocusedWindow():null;
h&&h.getId&&(o=Windows.close(h.getId()))&&(s=h.oSrce,n=h.cMethod,a=h.cObjAddr,h.modal)}if(o){this.oForm=this.oForm_,this.oForm_=this.$Dialog=null;
var p,f=s?s.parentNode:null,g=!1;
f&&f.cTable&&jQuery(f).hasClass("
EditImgs")&&null!==t&&(this.DOMEltUpdate($(f.parentNode).identify(),f.cTable,t),g=!0),s&&"function"==typeof s.focus&&s!==document.activeElement&&(p=jQuery.proxy(new Function("oSrce","force","(!this.focusSet||force) && !oSrce.disabled && oSrce.focus();
"),this,s)),!g&&n?this.MethExec(e,a,n,t,!1,p,s):this.lRequest?this.AjaxComplete__=p:p&&p(s,!0)}return e&&jQuery.event.fix(e).stopPropagation(),o},BackHome:function(e){var t=window.location.href;
window.location.href=t.substr(0,t.lastIndexOf("
/")+1)},oDOMEltChild:function(e,t){var i=this.aDOMEltChildren(e,t);
return this.localURL&&i.length>1&&window.alert(i.length+"
enfant(s) du noeud "+e.nodeName+" portent le nom "+t),1===i.length?i[0]:null},aDOMEltChildren:function(e,t){var i=[];
if(e&&e.hasChildNodes()){t=t?t.toLowerCase():"
";
for(var o,r=0;
r<e.childNodes.length;
r++)1!=(o=e.childNodes.item(r)).nodeType||t&&o.nodeName.toLowerCase()!==t||(i[i.length]=o)}return i},nInetSecs:0,nClientSecs:0,nAppsSecs:0,nServersSecs:0,nEventsSecs:0,nInetsSecs:0,nClientsSecs:0,nPageskBytes:0,nXMLkBytes:0,ExeTimeDisplay:function(e){var t=(this.dResponse-this.dRequest)/1e3,i=Math.max(t-this.nServerSecs,0),o=((this.dEnd||new Date)-this.dRequest)/1e3,r=o-t;
document.documentElement.innerHTML.length,(e||"
").length;
return this.nInetSecs=i,this.nClientSecs=r,this.nServerSecs=this.nServerSecs-this.nAppSecs,this.cCents(o)+"
s (Internet "+this.cCents(i)+" s + app. "+this.cCents(this.nAppSecs)+" s + server "+this.cCents(this.nServerSecs)+" s + browser "+this.cCents(r)+" s)"},nCents:function(e){return Math.round(100*e)/100},cCents:function(e){var t=this.nCents(e).toString(),i=t.lastIndexOf(".");
if(-1==i)t+="
.00";
else switch(i=t.length-1-i){case 0:t+="
00";
break;
case 1:t+="
0"}return this.langFR?t.replace(".",",","g"):t},DOMEltPosIn:function(e,t){var i=null,o=null;
if(e&&t){var r=jQuery(e).offset(),s=jQuery(t).offset();
i=r.left-s.left,o=r.top-s.top}return{left:i,top:o}},pgf:{tab:function(e){e=e.get(0);
var t=-1;
return this.pages.each((function(i,o){if(o===e)return t=i,!1})),this.tabs.eq(t)},page:function(e){e=e.get(0);
var t=-1;
return this.tabs.each((function(i,o){if(o===e)return t=i,!1})),this.pages.eq(t)},pageIndex:function(e,t){return this.pages.index(e)+(t?1:0)},pageEnable:function(e,t){e="
string"==typeof e?jQuery("#"+e):jQuery(e);
var i=(t=Boolean(t))?"
attr":"removeAttr",o=(t?"add":"remove")+"Class";
e.prop("
disabled",t),e[i]("disabled",""),e[o]("disabled");
var r=this.tab(e);
r.prop("
disabled",t),r[i]("disabled",""),r[o]("disabled")},pageActivate:function(e,t){e="string"==typeof e?jQuery("#"+e):jQuery(e),page=e.get(0);
var i=t?this.pageEffectUser:this.pageEffectServer;
this.pages.each(jQuery.proxy((function(e,t){var o=page===t,r=jQuery(t);
if(r.prop("
active")!==o){var s=o?"attr":"removeAttr",n=o?"addClass":"removeClass";
r.prop("
active",o),r[s]("active",""),r[n]("active");
var a=this.tab(r);
a.prop("
active",o),a[s]("active",""),a[n]("active"),r[o?"show":"hide"](i?400:0)}if(o){var l,u=32767;
r.find("
input, textarea, select").each((function(e,t){var i=jQuery(t),o=parseInt(i.prop("tabIndex"),10);
i.is("
:visible")&&0<o&&o<u&&(u=o,l=t)})),l&&l.focus()}}),this))},tabClick:function(e){var t=jQuery(e.currentTarget).closest(".pageTab"),i=this.page(t);
i.prop("
disabled")||i.prop("active")||(this.pageActivate(i,!0),i.prop("lActivateSend")&&FoxInCloud.PropChange(e,this.id,"activepage",this.pageIndex(i,!0)))},resize:function(e,t){var i=jQuery(this);
e&&(i.css({width:e+"
px"}),this.tabsLayout()),t&&(i.css({height:t+"px"}),this.oStylePageActive.height+=t-parseInt(i.css("height"),10))},cssNum:function(e,t){return parseFloat(jQuery(e).css(t))||0},tabsLayout:function(e,t,i,o){var r=this.tabs.length;
if(r){var s=["
margin-left","margin-right","border-left-width","border-right-width","padding-left","padding-right"],n="",a=[],l=0,u=0;
this.tabsJustify=Boolean(this.tabsJustify||e),this.tabsWidthSame=Boolean(this.tabsWidthSame||t),"
number"==typeof i&&(this.nTabMargin=i),"number"==typeof o&&(this.nTabSpace=o),this.tabs.each(jQuery.proxy((function(e,t){var i=jQuery(t);
jQuery.each(s,jQuery.proxy((function(e,t){u+=this.cssNum(i,t)}),this)),n=i.attr("
class"),i.attr("class",""),i.css({position:"absolute",width:"auto"}),a[e]=this.cssNum(i,"width"),u+=a[e],l=Math.max(l,a[e]),i.css("position",""),i.attr("class",n)}),this));
var c="
absolute"===jQuery(this.tabs[0]).css("position"),d=(c?this.cssNum(this,"padding-left"):0)+this.nTabMargin,h=(c&&this.cssNum(this,"padding-top"),0+this.cssNum(this,"padding-left")+this.cssNum(this,"width")+this.cssNum(this,"padding-right")+0-u-2*this.nTabMargin-this.nTabSpace*(r-1)),p=h/r,f=h%r;
this.tabs.each(jQuery.proxy((function(e,t){var i=jQuery(t);
h=parseInt(0+a[e]+(this.tabsWidthSame?l-a[e]:this.tabsJustify?p:0)+(this.tabsJustify&&e===r-1?f:0),10),i.css({left:d+"
px",width:h+"px"}),jQuery.each(s,jQuery.proxy((function(e,t){h+=this.cssNum(i,t)}),this)),d=d+h+this.nTabSpace}),this))}}},pageEffectUser:!0,pageEffectServer:!0,pgfMake:function(e,t,i,o,r,s,n,a){var l=document.getElementById(e),u=Boolean(l);
if(u){var c=jQuery(l).children();
(u=Boolean(c.length))&&(jQuery.extend(l,jQuery.extend(this.pgf,{lFullStyle:Boolean(i),tabs:c.filter("
.pageTab"),pages:c.filter(":not(.pageTab)"),oStylePageActive:{},pageEffectUser:this.pageEffectUser,pageEffectServer:this.pageEffectServer})),(u=Boolean(l.pages.length))&&(l.tabs.each((function(e,t){jQuery(t).click(jQuery.proxy(l.tabClick,l))})),jQuery.proxy(l.tabsLayout,l)(r,s,n,a),jQuery.each(o,jQuery.proxy((function(e,t){this.pageEnable(t,!0)}),l)),jQuery.proxy(l.pageActivate,l)(jQuery("#"+t))))}return u},ASMake:function(e,t,i){var o=$(e),r=o&&"text"===o.type.toLowerCase();
return r&&(o.lAutoSuggest=!0,o.nCarsMin=t>0?t:4,o.nDelay=i>0?i/1e3:.3,o.value="
",o.observe("keyup",function(e){this.nTO&&window.clearTimeout(this.nTO),this.nTO=null,e.stopPropagation();
var t=e.keyCode;
if(void 0!==this.id&&(t==KeyEvent.DOM_VK_BACK_SPACE||t==KeyEvent.DOM_VK_DELETE||32==t||t>=47&&t<=111||t>=124)){var i=this.value.length;
(0==i||i>=this.nCarsMin&&i<this.nCarsMin+4)&&(this.nTO=FoxInCloud.ServerRequest.bind(FoxInCloud).delay(this.nDelay,"
DOMEvent~&Event=change&ObjAddr="+this.id,this,this.value))}}.bind(o))),r},oTmr:{},tmrReg:function(e,t,i){this.oTmr[e]={interval:null,formID:t,method:i}},tmrUnreg:function(e){var t;
if(e)for(var i in this.oTmr)(t=this.oTmr[i]).formID===e&&(t.interval&&window.clearInterval(t.interval),delete this.oTmr[i])},tmrStart:function(tmrID,interval,defer){if(this.oTmr[tmrID]){this.tmrStop(tmrID);
var method=this.oTmr[tmrID].method;
this.oTmr[tmrID].interval=window.setInterval(method,interval),defer||eval(method)}},tmrStop:function(e){var t=this.oTmr[e],i=t?t.interval:null;
i&&(window.clearInterval(i),t.interval=null)},tmrsStop:function(){for(var e in this.oTmr)this.tmrStop(e)},spnMake:function(e,t,i,o,r,s,n,a){var l=jQuery("
#"+e)[0],u=jQuery("#"+e+"_txt"),c=jQuery("#"+e+"_up"),d=jQuery("#"+e+"_down"),h=Boolean(l)&&u.length&&c.length&&d.length;
return h&&(jQuery.extend(l,{disabled:Boolean(r),local:Boolean(s),$txt:u,$bUp:c,$bDn:d,nInc:"
number"==typeof t?Math.abs(t):1,nHigh:"number"==typeof i?i:1e5,nLow:"number"==typeof o?o:-1e5,disable:function(e){e=Boolean(e),this.disabled=!e,this.$txt.prop("disabled",!e),this.$bUp.prop("disabled",!e),this.$bDn.prop("disabled",!e),this.$bUp.css({cursor:e?"pointer":"default"}),this.$bDn.css({cursor:e?"pointer":"default"})},enable:function(){return this.disable(!0)},readOnlySet:function(e){e=Boolean(e),this.readOnly=!e,this[e?"removeAttribute":"setAttribute"]("readonly",""),this.$txt.prop("readOnly",!e),this.$bUp.prop("disabled",!e),this.$bDn.prop("disabled",!e),this.$bUp.css({cursor:e?"pointer":"default"}),this.$bDn.css({cursor:e?"pointer":"default"})},inc:function(e){var t=!this.disabled;
if(t){var i=this.$txt.val();
i=(/\./.test(i)?parseFloat(i):parseInt(i,10))+(e?1:-1)*this.nInc,t=this.nLow<=i&&i<=this.nHigh&&this.valueSet(i)}return t},valueSet:function(e){if(this.$txt.val(e.toString()),!this.local)return this.nTO&&window.clearTimeout(this.nTO),this.nTO=window.setTimeout(jQuery.proxy(this.ServerRequest,this),400,null,"
change"),!0},ServerRequest:function(e,t){FoxInCloud.RequestParmsSet(e,this),FoxInCloud.ServerRequest("DOMEvent~&Event="+t+"&ObjAddr="+this.id,this,/\./.test(this.$txt.val())?parseFloat(this.$txt.val()):parseInt(this.$txt.val(),10)),this.$txt.select().focus()},mDn:function(e){if(!FoxInCloud.lRequest&&!this.nInt){var t=this.parentNode,i=e.data;
this.nInt=t.inc(i)?window.setInterval(jQuery.proxy(t.inc,t,i),300):0}},mUp:function(e){if(this.nInt){e.stopPropagation(),window.clearInterval(this.nInt),this.nInt=null;
var t=this.parentNode;
if(t.local)return void t.onchange(e);
t.ServerRequest(e,"
change"),n&&this===t.$bUp[0]&&t.ServerRequest(e,"upclick"),a&&this===t.$bDn[0]&&t.ServerRequest(e,"downclick")}}}),c.css({cursor:"pointer"}).mousedown(!0,l.mDn).mouseup(l.mUp),d.css({cursor:"pointer"}).mousedown(!1,l.mDn).mouseup(l.mUp),u.keydown((function(e){e.which!==KeyEvent.DOM_VK_UP&&e.which!==KeyEvent.DOM_VK_DOWN||(e.stopPropagation(),e.preventDefault(),e.data=e.which===KeyEvent.DOM_VK_UP,jQuery.proxy(this.parentNode.mDn,this)(e))})).keyup((function(e){e.which!==KeyEvent.DOM_VK_UP&&e.which!==KeyEvent.DOM_VK_DOWN||jQuery.proxy(this.parentNode.mUp,this)(e)}))),h},nInt:function(e){var t=parseInt(e,10);
return isNaN(t)?0:t},nPx:function(e){return"
string"==typeof e&&e.trim().toLowerCase().endsWith("px")?this.nInt(e):0},dateFormat:"day/month",centuryRollover:30,parseDate:function(e,t){var i=jQuery.map(e.split(this.dateSeparator),(function(e){return Math.abs(parseInt(e,10))})),o=i.length;
if(2===o||3===o){var r=(new Date).getFullYear();
if(3==o)if(i[2]<100){var s=r-r%100+i[2];
r=s-(s-r>this.centuryRollover?100:0)}else r=i[2];
var n=this.dateFormat.split("
/")[0].toLowerCase().startsWith("d"),a=i[n?1:0],l=i[n?0:1];
return t?(a=String(a),a="
00".substr(0,2-a.length)+a,l=String(l),r+"-"+a+"-"+(l="00".substr(0,2-l.length)+l)):new Date(r,a-1,l)}return""},IETransCSSFix:function(e){window.Prototype&&Prototype.Browser.IE&&e&&"BackCompat"===document.compatMode&&$(e).descendants().reject((function(e){return e.type||"button"===e.tagName.toLowerCase()})).each((function(e){var t=this.nPx(e.style.width);
t>0&&e.setStyle({width:t+this.nPx(e.getStyle("
borderLeftWidth"))+this.nPx(e.getStyle("paddingLeft"))+this.nPx(e.getStyle("paddingRight"))+this.nPx(e.getStyle("borderRightWidth"))+"px"}),(t=this.nPx(e.style.height))>0&&e.setStyle({height:t+this.nPx(e.getStyle("borderTopWidth"))+this.nPx(e.getStyle("paddingTop"))+this.nPx(e.getStyle("paddingBottom"))+this.nPx(e.getStyle("borderBottomWidth"))+"px"})}),this)},IECheckSizeFix:function(e){window.Prototype&&Prototype.Browser.IE&&e&&$(e).select('input[type="checkbox"]').each((function(e){e.setStyle({width:(e.getWidth()||0)+5+"px",height:(e.getHeight()||0)+5+"px",top:(e.getStyle("top")||0)-2+"px"})}))},IERadioChangeFix:function(e){window.Prototype&&Prototype.Browser.IE&&e&&e.select('input[type="radio"]').each((function(e){e.onchange&&!e.onclick&&(e.onclick=e.onchange,e.onchange="")}))},oFormActivate:{},formActivateObserve:function(e,t,i){this.oFormActivate[e]={script:t,server:i}},oFormDeactivate:{},formDeactivateObserve:function(e,t,i){this.oFormDeactivate[e]={script:t,server:i}},oFormActive:null,formActivate:function(form){if(form=this.formActiveSet("string"==typeof form?document.getElementById(form):form),form){var oForm=this.oFormActivate[form.id];
oForm&&(null===oForm.server?oForm.script&&eval(oForm.script):(!0===oForm.server&&oForm.script&&eval(oForm.script),this.MethExec(form,form.id,"
ActivateInet",void 0,!1),!1===oForm.server&&oForm.script&&eval(oForm.script)))}return form},formDeactivate:function(form,close){if(form="string"==typeof form?document.getElementById(form):form,form){var oForm=this.oFormDeactivate[form.id];
oForm&&(null===oForm.server?oForm.script&&eval(oForm.script):(!0===oForm.server&&oForm.script&&eval(oForm.script),!this.locationChanging&&!this.locationChanged&&this.MethExec(form,form.id,"
DeactivateInet",void 0,Boolean(close)),!1===oForm.server&&oForm.script&&eval(oForm.script)),close&&(delete this.oFormActivate[form.id],delete this.oFormDeactivate[form.id]))}return close?null:form},formActiveSet:function(e){if(e&&this.oFormActive!==e)return this.oFormActive&&this.formDeactivate(this.oFormActive),this.oFormActive=e,e},XBrowserFix:function(e,t,i){var o=e?document.getElementById(e)||e:document.body;
if(this.IETransCSSFix(o),this.IERadioChangeFix(o),this.inputsSetup(o),!t){this.oForm=o;
var r=jQuery.proxy(this.formActivate,this,o);
jQuery(this.oForm).click(r).keypress(r),!i&&window.setTimeout(r,0,o)}},documentInitAnte:function(e){},lInit:!1,documentInit:function(e){this.documentInitAnte(e),this.dEnd=new Date,e&&(this.XBrowserFix(e,!1,!0),this.lInit=!0,this.ServerRequest("
MethExec~&MethAddr=InitControlsInet&ObjAddr="+e,this.oForm,void 0,!1,null),window.setTimeout(jQuery.proxy(this.formActivate,this,e))),this.documentInitPost(e)},documentInitPost:function(e){},autoBlurDelay:1.5,inputTextBackColor:!1,inputsSetup:function(e){var t=jQuery(e),i=t.find("textarea"),o=t.find("input:not(.datepicker)"),r=this.dirKeys,s=this.ctlKeys,n=t.find("input:not(:checkbox):not(:radio), textarea");
i.focus((function(e){jQuery(this).prop("
valueOld",$this.val())})),o.focus((function(e){var t=jQuery(this);
t.is("
:checkbox, :radio")?t.prop("valueOld",t.prop("checked")?1:0):(t.parent().hasClass("spinner")&&t.parent().prop("valueOld",parseFloat(t.val())),t.prop("valueOld",t.val()),FoxInCloud.hasSelection(this)&&!t.prop("selectionStart")&&!t.prop("selectionEnd")&&t.select())})).filter((function(e,t){return["text","password","color","date","datetime","datetime-local","email","month","number","range","search","tel","time","url","week"].indexOf(t.type.toLowerCase())>-1})).each((function(e,t){var i=jQuery(t),o=i.parent().hasClass("combobox");
(this.inputTextBackColor&&!t.disabled||o)&&(i.prop("
backgroundColor_",i.css("backgroundColor")),o&&!t.value&&i.css({backgroundColor:"transparent"}))})).keyup((function(e){var t=e.keyCode,i=jQuery(this);
t===KeyEvent.DOM_VK_RETURN?(FoxInCloud.lastKey=t,i.change()):(-1===r.indexOf(t)&&i.prop("
backgroundColor_")&&i.css({backgroundColor:!i.parent().hasClass("combobox")||this.value?i.prop("backgroundColor_"):"transparent"}),this.nTO&&window.clearTimeout(this.nTO),this.nTO=FoxInCloud.autoBlurDelay>0&&!this.wlValidAutoNot&&-1===s.concat(r).indexOf(t)?window.setTimeout(jQuery.proxy(i.blur,i),1e3*FoxInCloud.autoBlurDelay):null)})),!Modernizr.inputtypes.date&&o.filter(this.inputTextDateSelector).each((function(e,t){FoxInCloud.inputDate(t)})),o.filter((function(e,t){return jQuery(t).is(":checkbox, :radio")})).each((function(e,t){jQuery(t).keyup((function(e){-1===r.indexOf(e.keyCode)&&jQuery(this).change()})).click((function(e){jQuery(this).change()})).change((function(e){var t=jQuery(this);
t.parent().parent().find('label[for="
'+t.attr("id")+'"]')[(t.prop("checked")?"add":"remove")+"Class"]("checked")}))})),n.focus((function(e){$this=jQuery(this),$this.prop("InteractiveChange",!1),FoxInCloud.hasSelection(this)&&$this.prop("selS",$this.prop("selectionStart")).prop("selE",$this.prop("selectionEnd"))})).blur((function(e){jQuery(this).prop("InteractiveChange",!0)}))},dateSeparator:"/",inputDate:function(e,t){var i=jQuery(e);
return t?i.off("
keypress.date"):i.on("keydown",(function(e){jQuery(this).prop("_ctrlKey",e.ctrlKey||112<=e.which&&e.which<=123)})).on("keypress.date",(function(e){var t=jQuery(this);
if(-1===FoxInCloud.dirKeys.indexOf(e.which)){if(FoxInCloud.ctlKeys.indexOf(e.which)>-1||t.prop("
_ctrlKey"))return!0;
if(("
number"==typeof this.selectionEnd?this.selectionEnd-this.selectionStart:document.selection.createRange().text.length)===this.value.length&&e.which!==KeyEvent.DOM_VK_RETURN&&(this.value=""),!FoxInCloud.isDigit(e.which))return e.stopPropagation(),!1;
this.value+=2!=this.value.length&&5!=this.value.length||this.value.substr(this.value.length-1)===FoxInCloud.dateSeparator?"
":FoxInCloud.dateSeparator}})).on("keyup",(function(e){this._ctrlKey=!1}))},isDigit:function(e){return e>=48&&e<=57},decodeEntitiesDiv:document.createElement("div"),decodeEntities:function(e){return e&&"string"==typeof e&&(this.decodeEntitiesDiv.innerHTML=e,e=this.decodeEntitiesDiv.textContent||this.decodeEntitiesDiv.innerText||"FoxInCloud.js.decodeEntities error",this.decodeEntitiesDiv.innerHTML=""),e},DownloadFile:function(e,t,i){if(e){if(t)if(window.jQuery){var o=jQuery.ajax(e,{method:"head",async:!1});
if(4===o.readyState&&200===o.status){var r=o.getResponseHeader("
content-type");
t="
application/pdf"===r||/(text|image|audio|video)\/.+/i.test(r)||jQuery.grep(navigator.mimeTypes,(function(e){return e.type===r&&e.enabledPlugin})).length?t:null}else t=null}else t=null,this.DownloadFile_KO_jQuery();
if(t){var s="
location=no,menubar=no,toolbar=no,alwaysRaised=yes,resizable=yes";
i&&jQuery.each(i,(function(e,t){s+="
,"+["left","top","width","height"][e]+"="+t})),s+=i?"":",width:500,height:800";
var n=window,a=window.open(e,t,s);
if(a&&!jQuery.isEmptyObject(a)){var l=function(e){n.focus()},u=function(e){return FoxInCloud.RequestSend(FoxInCloud.wcURL("
UserFormSave"),null,{form:t,left:this.screenX,top:this.screenY,width:this.innerWidth,height:this.innerHeight},!1)};
"
function"==typeof a.addEventListener?(a.document.addEventListener("load",l,!1),a.addEventListener("unload",u)):"function"==typeof a.attachEvent&&(a.document.attachEvent("onload",l,!1),a.attachEvent("onunload",u))}}else{var c=jQuery("<form/>",{action:e,method:"get",target:["txt","csv","pdf"].indexOf(e.substr(e.lastIndexOf(".")+1).toLowerCase())>-1?"_blank":""});
c.append(jQuery("
<input/>",{type:"hidden",value:"void"})),jQuery(document.body).append(c),c.submit().remove()}}},DownloadFile_KO_jQuery:function(){},lRePlay:!1,nRePlayTO:0,RePlay:function(e){var t=this.aRequests.length,i=t>0;
if(i&&("
number"==typeof e?(i=!this.lRequest)?this.RequestSend(this.aRequests[e][0],this.aRequests[e][1]):this.nRePlayTO=window.setTimeout("this.RePlay("+e+")",1e3):e=-1,i)){++e==t&&(e=0);
var o=0==e?.5:Math.min(Math.max(this.aRequests[e][2],2),6);
this.nRePlayTO=this.RePlay(e).delay(o),this.lRePlay=!0}return i},RePlayStop:function(){var e="
number"==typeof this.nRePlayTO;
return e&&window.clearTimeout(this.nRePlayTO),this.lRePlay=!1,jQuery("
#Replay").hide(),e},sliderExtend:function(){"object"==typeof Control&&jQuery.extend(Control.Slider.prototype,{minimumOffset:function(){var e=this.options.reversed?this.options.nOffsetEnd:this.options.nOffsetBeg;
return this.isVertical()?this.alignY=e:this.alignX=e,e},maximumOffset:function(){var e=this.isVertical()?0!=this.track.offsetHeight?this.track.offsetHeight:this.track.style.height.replace(/px$/,"
"):0!=this.track.offsetWidth?this.track.offsetWidth:this.track.style.width.replace(/px$/,"");
return e-=this.options.reversed?this.options.nOffsetBeg:this.options.nOffsetEnd},oHandle:function(e){return e=e>=0?e:this.activeHandleIdx>=0?this.activeHandleIdx:0,this.handles[e]},onSlide:function(e){var t=!this.lRequest;
return t&&this.labelUpdate(e),t},handleMove:function(e,t){var i=this.oHandle(t),o=parseInt(this.translateToPx(e),10)-parseInt(i.getStyle(this.isVertical()?"
top":"left"),10),r=this.isVertical()?{y:o}:{x:o};
return new Effect.Move(i,r),this.labelMove(e,t),this},labelMove:function(e,t){if(!this.options.lLabelFixed){var i=parseInt(this.translateToPx(e),10),o=this.oHandle(t);
if(this.isVertical()){var r=parseInt(o.style.height,10),s=parseInt(this.translateToPx(this.allowedValues[this.reversed?this.allowedValues.length-1:0]),10),n=i-2-parseInt(this.oLabel.style.height,10);
n=n>=s?n:i+r+2,this.oLabel.style.top=n+"
px"}else{var a=Math.round(parseInt(this.oLabel.style.width,10)/2),l=Math.max(i-a,this.alignX);
l=Math.min(this.trackLength-this.alignX-2*a,l),this.oLabel.style.left=l+"
px"}}return this},labelUpdate:function(e){return this.oLabel.update(this.displayValues[e-1]),this.oLabel.style.display="block",this.labelMove(e),this},displayValues:[],tickSet:function(e,t,i){return this.displayValues=e,this.range=$R(1,e.length),this.allowedValues=$A($R(t,i)),this}})},sldMake:function(e,t,i,o,r,s,n,a,l){var u=new Control.Slider(t,e,{axis:o?"vertical":"horizontal",reversed:r,lLabelFixed:s,disabled:!n,nOffsetBeg:a,nOffsetEnd:l,onSlide:function(e,t){return t.onSlide(e)},onChange:function(t,i){this.lRequest||(i.labelUpdate(t),this.ServerRequest("DOMEvent~&Event=CritChange&ObjAddr="+e,$(e),t))}.bind(this)});
return u.oLabel=$(i),$(e).slider=u,u},aimgGetSWFUploadOptions:function(){return{debug:!1,flash_url:"
/awScripts/SWFupload/swfupload.swf",upload_url:this.wcURL("FileUpload"),file_upload_limit:0,file_queue_limit:1,custom_settings:{cancelID:"",progressID:"",callBackID:"",callBackMethod:""},button_image_url:"images/awImgGetFile.png",button_width:"16",button_height:"16",button_cursor:SWFUpload.CURSOR.HAND,button_window_mode:SWFUpload.WINDOW_MODE.TRANSPARENT,swfupload_loaded_handler:function(){this.customSettings.progressID&&(this.customSettings.progress=document.getElementById(this.customSettings.progressID),this.customSettings.progress&&(this.customSettings.progress.nWidthMax=jQuery(this.customSettings.progress.parentNode).width()-parseInt(this.customSettings.progress.getStyle("left"),10)))},file_queued_handler:jQuery.noop(),file_queue_error_handler:jQuery.noop(),file_dialog_complete_handler:function(e){this.startUpload()},upload_start_handler:function(e){this.customSettings.progress&&(jQuery(this.customSettings.progress).css({backgroundImage:"URL(/awScripts/progressBarBlue15.jpg)",width:0}).html("&nbsp;
").show().attr("title","&nbsp;
"),FoxInCloud.WaitPic(!0,this.customSettings.progress)),this.success=!1},upload_progress_handler:function(e,t,i){this.customSettings.progress&&jQuery(this.customSettings.progress).css({width:parseInt(t/i*this.customSettings.progress.nWidthMax,10)+"px"})},upload_error_handler:function(e,t,i){var o,r,s=FoxInCloud.langFR;
switch(t){case this.UPLOAD_ERROR.HTTP_ERROR:o=s?"
Erreur de transmission":"Transmission error",r=s?"Erreur HTTP":"HTTP error";
break;
case this.UPLOAD_ERROR.IO_ERROR:o=s?"
Erreur lors de la lecture du fichier par le serveur":"Error while server was reading file",r=s?"Erreur d'entrée-sortie sur le serveur":"Server (IO) Error";
break;
case this.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:o=s?"Dépassement du nombre de fichiers autorisé":"The maximum number of files to transmit was exceeded",r=s?"Limite de téléchargement dépassée":"Upload Limit Exceeded";
break;
case this.UPLOAD_ERROR.FILE_VALIDATION_FAILED:o=s?"La transmission de ce fichier n'
est pas autorisée":"Transmitting this type of file is not permitted",r=s?"La validation du fichier a échoué":"File Validation Failed";
break;
case this.UPLOAD_ERROR.FILE_CANCELLED:o=s?"
Transmission abandonnée":"Transmission was aborted",0===this.getStats().files_queued&&this.customSettings.cancelID&&(document.getElementById(this.customSettings.cancelID).disabled=!0);
break;
case this.UPLOAD_ERROR.UPLOAD_STOPPED:o=s?"
Transmission arrêtée":"Transmission was stopped";
break;
case this.UPLOAD_ERROR.SECURITY_ERROR:o=s?"
Opération interdite par les règles de sécurité":"This operation does not comply with security rules",r=s?"Erreur de sécurité":"Security Error";
break;
case this.UPLOAD_ERROR.UPLOAD_FAILED:o=s?"
Erreur de transmission":"Transmission error",r=s?"Erreur HTTP":"HTTP error";
break;
default:o=s?"
Une erreur inattendue s'est produite":"An unespected error occurred",r=s?"Erreur non gérée : ":"Unhandled error: "+t}o&&(this.customSettings.progress?jQuery(this.customSettings.progress).css({background:"red",right:0}).html(o).show():Dialog.alert(o,{width:300})),r&&this.debug("Erreur: "+r+", fichier: "+e.name+", taille: "+e.size+", message: "+i)},upload_success_handler:function(e,t,i){var o=FoxInCloud.langFR,r=i?t.startsWith("/!\\")?(o?"Erreur du serveur : ":"Server error: ")+t:null:o?"Le serveur n'a pas répondu dans le délai imparti":"Server failed to respond within time out";
this.customSettings.callBackID&&this.customSettings.callBackMethod&&FoxInCloud.MethExec(this.customSettings.progress,this.customSettings.callBackID,this.customSettings.callBackMethod,r||t,!r),r?this.customSettings.progress?jQuery(this.customSettings.progress).html(r).css({width:this.customSettings.progress.nWidthMax+"
px",background:"red"}).show().attr("title",r):Dialog.alert(r,{width:300}):(this.success=!0,this.customSettings.progress&&this.customSettings.progress.hide())},upload_complete_handler:function(){this.success||window.setTimeout(FoxInCloud.WaitPic,500,!1)}}},tinyMCEsetup:function(e){"object"==typeof tinyMCE&&e&&tinyMCE.init({language:"fr",mode:"exact",elements:e,skin:"o2k7",theme:"advanced",plugins:"fullscreen,paste",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",theme_advanced_containers:"buttons1",theme_advanced_buttons1:"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,|,formatselect,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,|,hr,removeformat,|,sub,sup,|,pasteword,charmap,fullscreen",theme_advanced_buttons2:"",theme_advanced_buttons3:"",gecko_spellcheck:!0,content_css:"cp.css",body_class:"content",entity_encoding:"numeric",apply_source_formatting:!1,valid_elements:"@[id|class|title|dir<ltr?rtl|lang|xml::lang],a[tabindex|name|!href|target=_blank|title],-p,-strong/b,-em/i,-strike,-u,-sub,-sup,-ol[type|compact],-ul[type|compact],-li,br,-span,-code,-samp,-pre,-address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],bdo,-dd,-dl,-dt,-dfn,-blockquote,-q[cite],-cite,-abbr,-acronym,-kbd,-del[datetime|cite],-ins[datetime|cite],img[longdesc|src|alt=image|title|width|height],-table[border=0|cellspacing|cellpadding|summary],-caption,tbody,thead,tfoot,-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],#td[colspan|rowspan|scope],#th[colspan|rowspan|scope]",setup:function(e){e.onChange.add((function(e){var t=document.getElementById(e.id);
t&&"
textarea"===t.tagName.toLowerCase()&&(t.value=e.getContent(),FoxInCloud.EventRequest("DOMEvent","change",t),e.lChanged=!0)})),e.onLoadContent.add((function(e){e.lChanged=!1}))}})},browserKO:function(){window.alert((this.langFR?"Désolé, votre navigateur ne supporte pas cette requête FoxInCloud"+this.cCRLF+this.cCRLF+"FoxInCloud fonctionne avec les navigateurs suivants :"+this.cCRLF+"- Microsoft Internet Explorer : version 10 ou supérieure"+this.cCRLF+"- Microsoft Edge : toutes versions"+this.cCRLF+"- Mozilla FireFox : version 40 ou supérieure"+this.cCRLF+"- Google Chrome : version 50 ou supérieure"+this.cCRLF+"- Apple Safari : version 6 ou supérieure"+this.cCRLF+"- Opera : version 33 ou supérieure"+this.cCRLF+this.cCRLF+"Ce navigateur s'identifie comme :":"Sorry, your browser is unable to execute this FoxInCloud request."+this.cCRLF+this.cCRLF+"FoxInCloud supports the following browsers:"+this.cCRLF+"- Microsoft Internet Explorer: version 10+"+this.cCRLF+"- Microsoft Edge: all versions"+this.cCRLF+"- Mozilla FireFox: version 40+"+this.cCRLF+"- Google Chrome: version 50+"+this.cCRLF+"- Apple Safari: version 6+"+this.cCRLF+"- Opera: version 33+"+this.cCRLF+this.cCRLF+"This browser identifies itself as:")+this.cCRLF+navigator.userAgent+this.cCRLF+this.cCRLF+"FoxInCloud version: "+this.version)},lEvent:function(e){return Boolean(e)&&e.target&&e.type&&"string"==typeof e.type},oEventSrce:function(e){},customErrorMsgHeader:function(e){},customErrorMsgBody:function(e){},customErrorMsgInDevMode:!1,cCRLF:String.fromCharCode(13,10),Error:function(e){if(!e||this.locationChanging)return!1;
var t=this.localURL&&!this.customErrorMsgInDevMode,i=(this.langFR?"Désolé, le serveur FoxInCloud a produit une erreur inattendue":"Sorry, FoxInCloud server produced an unexpected error")+"&#133; "+(this.langFR?"Veuillez nous en excuser et réessayer ultérieurement.":"We apologize for this discomfort, please try again later.");
e="<p>"+(i=t?i+"<br><i>client: "+this.version+" - server: "+this.serverVersion+" (this line displays to developer only)</i>":this.customErrorMsgHeader(i)||i)+"<br><br>"+(-1===(e=t?e:this.customErrorMsgBody(e)||e).toLowerCase().indexOf("<html>")?e.replace(new RegExp(this.cCRLF,"gm"),"<br>"):e)+"</p>";
var o,r=(this.langFR?"Erreur inattendue":"Unexpected error")+"…",s=jQuery(document.body);
if(s.is(".bootstrap")){s.append('
<div class="modal fade" id="FoxInCloudErrorModal" tabindex="-1" role="dialog" aria-labelledby="FoxInCloudErrorModalLabel"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title">'+r+'</h5><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" aria-hidden="true"></button></div><div class="modal-body">'+e+'</div><div class="modal-footer"><button type="button" class="btn btn-default" data-bs-dismiss="modal">OK</button></div></div></div></div>'),new bootstrap.Modal(document.getElementById("FoxInCloudErrorModal"),{keyboard:!0,backdrop:!0}).show(),(o=jQuery("#FoxInCloudErrorModal")).on("hidden.bs.modal",(function(){o.remove()}))}else{var n={};
n[this.langFR?"fermer":"close"]=function(){jQuery(this).dialog("close")},jQuery(e).dialog({buttons:n,title:r,modal:!0,resizable:!1})}},devAlertShow:!0,devAlert:function(e){var t=(e=e instanceof Array?e:"string"==typeof e?e.split(/\r\n?/):[e.toString()]).join(this.cCRLF).stripTags();
if(this.localURL&&this.devAlertShow){var i=(e=e.concat(this.langFR?["","<i>Note : ce message est destiné au seul développeur FoxInCloud, l'
utilisateur final ne le verra pas s'afficher.</i>","","<b>Voulez-vous continuer à afficher les avertissements de développement ?</b>"]:["","<i>Note: this message is intended to the FoxInCloud developer only, it won't display to end user.</i>","","<b>Do you want to continue showing development warnings?</b>"])).join("<br>").substr(4),o=jQuery(document.body),r=(this.langFR?"Avertissement de développement":"Development Alert")+"...",s=this.langFR?"Oui":"Yes",n=this.langFR?"Non":"No";
if(o.is("
.bootstrap")){o.append('<div id="devAlert" class="modal fade" tabindex="-1" role="dialog"><div class="modal-dialog shadow-lg" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title">'+r+'</h5><button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" aria-hidden="true"></button></div><div class="modal-body">'+i+'</div><div class="modal-footer"><button type="button" class="btn btn-success" data-bs-dismiss="modal">'+s+'</button><button type="button" class="btn btn-warning" data-bs-dismiss="modal">'+n+"</button></div></div></div></div>");
var a=o.children().last();
a.find("
button.btn-warning").click(jQuery.proxy((function(e){this.devAlertShow=!1}),this)),new bootstrap.Modal(a[0],{keyboard:!0,backdrop:!0}).show(),a.on("hidden.bs.modal",(function(){a.remove()}))}else o.is(".jQueryUIdialog")?jQuery("<p>"+i+"</p>").dialog({closeOnEscape:!1,hide:!0,show:!0,modal:!0,position:{my:"center",at:"center"},title:r,buttons:[{text:s,icon:"ui-icon-check",click:function(e){jQuery(this).dialog("close")}},{text:n,icon:"ui-icon-close",click:function(e){FoxInCloud.devAlertShow=!1,jQuery(this).dialog("close")}}],close:function(e,t){jQuery(this).dialog("destroy")}}):window.Dialog?Dialog.confirm(i,{width:400,okLabel:s,cancelLabel:n,onCancel:jQuery.proxy((function(){this.devAlertShow=!1}),this)}):this.devAlertShow=window.confirm(t)}else window.status=e.join(" - ");
window.console&&console.log(t)},abLocalized:function(e,t){var i=e.indexOf("
{"+this.lang+"}")>-1?this.lang:"en";
if(e.indexOf("
{"+i+"}")>-1){e=(e=e.replace(new RegExp("{(?!"+i+")\\w\\w}[^<*\\r\\n]+?(?=(?:{\\w\\w})|<|[*]|$)","gim"),"")).replace(new RegExp("{"+i+"}","gim"),""),t=(t||"*|&{2}|(?:&amp;
){2}|note").replace("*","[*]");
for(var o=new RegExp("
(<br\\s?/?>)\\s*?(?:&nbsp;
)?\\s*?(?:<span[^>]+?>)?(?:"+t+")\\s*?(</span>)?\\s*?(?:<br\\s?/?>)\\r?\\n?","gi");
o.test(e);
)e=e.replace(o,"
$1");
for(o=new RegExp("
\\s*?(?:"+t+")\\s*?(</span>)?\\s*?(<br\\s?/?>)\\r?\\n?","gi");
o.test(e);
)e=e.replace(o,"
$1$2");
e=e.replace(new RegExp("
{2,}","gim")," ")}return e},onKeyLabels:"ctrl+A, ctrl+F, ctrl+O, ctrl+P, ctrl+S",onKeyLabelsArray:function(){var e=this.onKeyLabels.split(",").map((function(e){return e.split("+")})).map((function(e){return e.map((function(e){return e.trim().toLowerCase()}))})).filter((function(e){return/\b\w\b/.test(e[e.length-1])})).map((function(e){var t=new Array(3);
return t[0]=e.indexOf("
ctrl")>-1,t[1]=e.indexOf("alt")>-1,t[2]=e[e.length-1],t}));
return e.find((function(e){return e[0]&&!e[1]&&"
w"===e[2]}))||e.push([!0,!1,"w"]),e=e.concat(e.map((function(e){return(e=e.slice(0))[e.length-1]=e[e.length-1].toUpperCase(),e})).slice(0)).map((function(e){return e[e.length-1]=e[e.length-1].charCodeAt(),e}))},nTO:null,browserOK:null,effectDuration:1.5,effectDuration_:0,lastKey:0,dirKeys:[KeyEvent.DOM_VK_TAB,KeyEvent.DOM_VK_ESCAPE,KeyEvent.DOM_VK_LEFT,KeyEvent.DOM_VK_RIGHT,KeyEvent.DOM_VK_UP,KeyEvent.DOM_VK_DOWN,KeyEvent.DOM_VK_HOME,KeyEvent.DOM_VK_END,KeyEvent.DOM_VK_PAGE_UP,KeyEvent.DOM_VK_PAGE_DOWN],ctlKeys:[],onKeyLabels:"ctrl+A, ctrl+F, ctrl+O, ctrl+P, ctrl+S",selS:0,selL:0,tabID:null,initialize:function(){if(window.Prototype&&jQuery.extend(Prototype.Browser,{IE6:Prototype.Browser.IE&&!window.XMLHttpRequest}),this.sliderExtend(),this.dateSeparator=String(this.dateSeparator).trim(),window.Effect&&jQuery.extend(Effect.DefaultOptions,{duration:this.effectDuration,fps:15,delay:0}),this.effectDuration_=1e3*this.effectDuration,window.Windows&&(Windows.maxZIndex=2e3),this.ctlKeys=this.dirKeys.concat([KeyEvent.DOM_VK_BACK_SPACE,KeyEvent.DOM_VK_COMMA,KeyEvent.DOM_VK_PERIOD]),jQuery(document.body).keydown(jQuery.proxy((function(e){if(this.lastKey=e.which,window.Windows&&Windows.windows.length>1&&this.lastKey===KeyEvent.DOM_VK_TAB&&e.ctrlKey&&!e.altKey){if(!Windows.modalWindows.length){var t,i,o=Windows.getFocusedWindow().getId();
Windows.windows.find((function(e,i){return t=i,e.getId()===o}))&&(t=(t+=e.shiftKey?-1:1)>Windows.windows.length-1?0:0===t?Windows.windows.length-1:t,(i=Windows.windows[t]).toFront(),Windows.focus(i.getId()))}e.preventDefault()}this.onKeyLabelsArray().find((function(t){return t[0]===e.ctrlKey&&t[1]===e.altKey&&t[2]===e.which}))&&e.preventDefault()}),this)).keypress(jQuery.proxy((function(e){this.onKeyLabelsArray().find((function(t){return t[0]===e.ctrlKey&&t[1]===e.altKey&&t[2]===e.which}))&&e.preventDefault()}),this)).keyup((function(e){e.which===KeyEvent.DOM_VK_BACK_SPACE&&e.preventDefault()})),Modernizr.hasEvent("
unload",window)&&!(/.*Version.*Safari.*/.test(navigator.userAgent)||navigator.userAgent.indexOf("Mobi")>-1)){var e,t,i=localStorage.getItem("tabIDs");
if(i){for(i=i.split("
,"),t=0;
t<i.length;
t++)i[t]=parseInt(i[t]),e=t+1,this.tabID||i[t]===e||(this.tabID=e,i.splice(t,0,e));
this.tabID||(e=i.length+1,i[i.length]=e,this.tabID=e)}else this.tabID=1,i=[1];
e=this.tabID,localStorage.setItem("
tabIDs",i.join()),window.addEventListener("unload",(function(t){var i=localStorage.getItem("tabIDs");
i&&((i=i.split("
,")).splice(i.indexOf(e.toString()),1),localStorage.setItem("tabIDs",i.join()))}))}return this.browserOK=Boolean(window.XMLHttpRequest),!this.browserOK&&this.browserKO(),this}};
if(FoxInCloud.initialize(),window.Prototype&&($_proto=$,$=function(){if(jQuery.grep(arguments,(function(e){return"
string"==typeof e&&(!/[A-Za-z_]/.test(e.substr(0,1))||e.replace(/[a-z0-9\-_:]/gi,"").length>0||document.getElementsByTagName(e).length>0)})).length){var e=jQuery.makeArray(arguments).toString(),t="\r&lt;PRE&gt;"+(e='$("'+e.substr(1,e.length-2)+'")')+"&lt;/PRE&gt;\r is an invalid Prototype's $() function call.";
return FoxInCloud.devAlert(t+"\rYou probably attempt to use $() with a jQuery syntax, this is not supported.\r\rTo fix this code, you can either:\r\r- Replace '
$' by 'jQuery':\r&lt;PRE&gt;"+e.replace("$","jQuery")+";
&lt;/PRE&gt;\r- Wrap your '
$()' call in a self executing function:\r&lt;PRE&gt;(function($){"+e+";
})(jQuery);
&lt;/PRE&gt;"),t.stripTags().replace("\r"," ").replace(" "," ")}return $_proto.apply($_proto,arguments)}),jQuery.datepicker&&jQuery((function(e){e.datepicker.setDefaults(jQuery.extend(e.datepicker.regional[""],{showButtonPanel:!1}))})),window.Window&&(Window.keepMultiModalWindow=!0),window.AW&&(AW.Formats.Boolean=AW.System.Format.subclass(),AW.Formats.Boolean.create=function(){var e=this.prototype;
e.dataToText=function(e){return""},e.dataToValue=function(e){return"true"===e||"1"===e},e.textToValue=function(e){return"true"===e||"1"===e},e.textToData=function(e){return e},e.valueToData=function(e){return e?"true":"false"},e.valueToText=function(e){return this.dataToText(this.valueToData(e))}},AW.Formats.DateVFP=AW.Formats.Date.subclass(),AW.Formats.DateVFP.create=function(){AW.Formats.Date.create.call(this),this.prototype.setErrorText(FoxInCloud.gridDateEmpty),this.prototype.setErrorValue(new Date(1e3,0,1))},AW.Formats.DateTimeVFP=AW.Formats.Date.subclass(),AW.Formats.DateTimeVFP.create=function(){AW.Formats.Date.create.call(this),this.prototype.setErrorText(FoxInCloud.gridDateTimeEmpty),this.prototype.setErrorValue(new Date(1e3,0,1))},AW.Templates.CheckBoxReadOnly=AW.Templates.CheckBox.subclass(),AW.Templates.CheckBoxReadOnly.create=function(){AW.Templates.CheckBox.create.call(this),this.prototype.setEvent("onclick",(function(){})),this.prototype.setClass("readonly","control"),this.prototype.readOnly=!0},AW.Templates.CheckboxRO=AW.Templates.CheckBoxRO=AW.Templates.CheckBoxReadOnly,AW.Templates.CheckBoxDisabled=AW.Templates.CheckBox.subclass(),AW.Templates.CheckBoxDisabled.create=function(){AW.Templates.CheckBox.create.call(this),this.prototype.setEvent("onclick",(function(){})),this.prototype.setClass("disabled","control"),this.prototype.disabled=!0},AW.Templates.CheckBoxReadOnlyDisabled=AW.Templates.CheckBox.subclass(),AW.Templates.CheckBoxReadOnlyDisabled.create=function(){AW.Templates.CheckBox.create.call(this),this.prototype.setEvent("onclick",(function(){})),this.prototype.setClass("readonly","control"),this.prototype.readOnly=!0,this.prototype.setClass("disabled","control"),this.prototype.disabled=!0},AW.Templates.CheckBoxDisabledReadOnly=AW.Templates.CheckBoxReadOnlyDisabled,new AW.XML.Table,AW.XML.Table.prototype.response=function(e){this.setXML(e);
var t=this.$owner;
if(t){var i=t.getRowHeight();
t.clearScrollModel(),t.clearSelectedModel(),t.clearSortModel(),t.clearRowModel(),t.setRowHeight(i),t.setRowCount(this.getCount()),t.refresh()}},"mozPaintCount"in window&&!AW.gecko&&(AW.gecko=!0,AW.ff=!0,document.documentElement.className+=" aw-gecko aw-ff ")),window.Prototype&&Prototype.BrowserFeatures.ElementExtensions&&"function"==typeof jQuery().emulateTransitionEnd){var disablePrototypeJS=function(e,t){var i=function(t){t.target[e]=void 0,window.setTimeout((function(){delete t.target[e]}),0)};
t.each((function(t){jQuery(window).on(e+".bs."+t,i)}))},pluginsToDisable=["collapse","tab","dropdown","modal","tooltip","popover"];
disablePrototypeJS("show",pluginsToDisable),disablePrototypeJS("hide",pluginsToDisable)}window.jQuery&&jQuery(".navbar-collapse a:not(.dropdown-toggle)").click((function(){jQuery(this).closest(".navbar-collapse").collapse("hide")})),window.jQuery&&jQuery.ui&&jQuery.ui.dialog&&jQuery.widget("ui.dialog",jQuery.extend({},jQuery.ui.dialog.prototype,{_title:function(e){e.html(this.options.title||"&#160;
")}}));