rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
}), red_letters: create_get_set(true, function (values) { BF.changeCSS(".q", "color: " + (values.new_val ? "#D00;" : "#000;")); })}};
ajax.query("GET", path, "", function (response) { files[path] = evaler(response); if (typeof files[path] == "function") { files[path](context); } }, null, timeout, retry);
}), red_letters: create_get_set(true, function (values) { /// Alternate between red and black letters. ///TODO: Add other options, such as custom color, and (in the future) highlighting of other people's words (e.g., highlight the words of Paul in blue). BF.changeCSS(".q", "color: " + (values.new_val ? "#D00;" : "#000;")); })}};
}).delay(100);
}).delay(200);
(function(){ fail.start("opacity", 0); }).delay(100);
$("option", $select).each(function(){ if ($select.val() == $(this).val())
$("select", $element).each(function () { var $select = $(this); $("option", $select).each(function () { if ($select.val() == $(this).val())
$("option", $select).each(function(){ if ($select.val() == $(this).val()) this.setAttribute('selected', 'selected'); });
});
$("option", $select).each(function(){ if ($select.val() == $(this).val()) this.setAttribute('selected', 'selected'); });
"string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}} function ba(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function h(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object); o.capture(null);o.capture(f.object);f.object.onmousemove=X;f.object.onmouseup=C;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=o.pageCoordinates(c);o.cancelEvent(c);return false}function X(d){if(Y.object!=null){var c=Y,f=o.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=f.x&&c.xy.y!=f.y)c.object.style.display="";c.object.style.left=f.x-c.offsetX+"px";c.object.style.top=f.y-c.offsetY+"px";f=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":", g=null;for(c.dropTarget=null;j;){g=j.getAttribute("amts");if(g!=null&&g.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||o.hasTag(j,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){j=g.indexOf(m)+m.length;var s=g.indexOf("}",j);g=g.substring(j,s);if(g.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+g}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",c.object,d,"",m);g=f.getAttribute("dos"); if(g!=null)f.className=g}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function C(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):M(c.dropTarget,{name:"_drop",eventObject:c.dropTarget, event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var g= 0;g<U.length;++g){var s=o.getElement(U[g]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m<Z;m++)if(s.options[m].selected)f+=c+U[g]+"="+encodeURIComponent(s.options[m].value)}else if(o.hasTag(s,"SPAN")){m=0;for(Z=s.childNodes.length;m<Z;++m)if(s.childNodes[m].type=="checkbox"){m=s.childNodes[m];if(m.style.display=="none")v="indeterminate";else if(m.checked)v=m.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)v="indeterminate";else{if(s.checked)v= s.value}else if(s.type!="file")v=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(v!=null)f+=c+U[g]+"="+encodeURIComponent(v)}}if(P!=null)f+=c+"_="+encodeURIComponent(unescape(P));if(!j){d.data=f;return d}for(g=j.target||j.srcElement;!g.id&&g.parentNode;)g=g.parentNode;if(g.id)f+=c+"tid="+g.id;try{f+=c+"type="+j.type}catch(la){}if(j.clientX||j.clientY)f+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;v=o.pageCoordinates(j);g=v.x;v=v.y;if(g||v){f+=c+"documentX="+g+c+"documentY="+v;f+=c+"dragdX="+ (g-H)+c+"dragdY="+(v-ea)}if(j.screenX||j.screenY)f+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=o.widgetPageCoordinates(d.object);f+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(g-m.x)+c+"widgetY="+(v-m.y)}g=o.button(j);if(!g)if(o.buttons&1)g=1;else if(o.buttons&2)g=2;else if(o.buttons&4)g=4;f+=c+"button="+g;if(typeof j.keyCode!=="undefined")f+=c+"keyCode="+j.keyCode; if(typeof j.charCode!=="undefined")f+=c+"charCode="+j.charCode;if(j.altKey)f+=c+"altKey=1";if(j.ctrlKey)f+=c+"ctrlKey=1";if(j.metaKey)f+=c+"metaKey=1";if(j.shiftKey)f+=c+"shiftKey=1";d.data=f;return d}function a(){for(var d="",c=false,f=0;f<z.length;++f){c=c||z[f].feedback;d+=z[f].data}ca=z;z=[];return{feedback:c,result:d}}function b(){Q=true;if(V){clearTimeout(V);V=null}var d=$("#Wt-timers");d.size()>0&&o.setHtml(d.get(0),"",false)}function e(){o.history._initTimeout();W==0&&A(null,"none",null,false); V=setTimeout(e,_$_KEEP_ALIVE_$_000)}function k(d){if(!o.isIEMobile)document.title=d}function i(){if(!document.activeElement){function d(f){if(f&&f.target)document.activeElement=f.target==document?null:f.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}o.history._initialize();ba();if(!fa){fa=true;_$_ONLOAD_$_();Q||(V=setTimeout(e,_$_KEEP_ALIVE_$_000))}}function n(d){clearTimeout(d);document.body.style.cursor="auto";if(aa!= null){try{aa()}catch(c){}aa=null}}function K(){document.body.style.cursor="wait";aa=hideLoadingIndicator;showLoadingIndicator()}function u(d){ga=d}function q(d){if(d)window.execScript?window.execScript(d):window.eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(d,c,f){if(!Q){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();f&&n(f)}else z=ca.concat(z);ca=[];if(O){clearTimeout(O); O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},g=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[g]=T(m,g);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J== null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_): null;f=false}else{d={result:"signal=poll"};c=null;f=true}J=y._p_.comm.sendUpdate(ka+j,"request=jsupdate&"+d.result+"&ackId="+da,c,da,-1);O=f?setTimeout(x,_$_SERVER_PUSH_TIMEOUT_$_):null}}function M(d,c){var f={},j=z.length;f.signal="user";f.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){f.name=c.name;f.object=c.eventObject;f.event=c.event}else{f.name=c;f.object=f.event=null}f.args=[];for(var m=2;m<arguments.length;++m){var g=arguments[m];g=g===false?0:g===true?1:g.toDateString? g.toDateString():g;f.args[m-2]=g}f.feedback=true;z[j]=T(f,j);F()}function L(d,c,f){var j=function(){var g=o.getElement(d);if(g){if(f)g.timer=setTimeout(g.tm,c);else{g.timer=null;g.tm=null}g.onclick&&g.onclick()}},m=o.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function E(d,c){setTimeout(function(){if(S[d]===true)c();else S[d]=c},20)}function N(d){if(S[d]!==true){typeof S[d]!=="undefined"&&S[d]();S[d]=true}}function l(d,c){var f=false;if(c!="")try{f=!eval("typeof "+c+" === 'undefined'")}catch(j){f= false}if(f)N(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){N(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState=="loaded")N(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function p(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}function r(d){if(d.ieAlternativeExecuted)return"0";y.emit(d.parentNode,"IeAltnernative");d.style.width= "";d.ieAlternativeExecuted=true;return"0"}var y=this,o=_$_WT_CLASS_$_,H=0,ea=0,P=null,Y={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},U=_$_FORM_OBJECTS_$_;o.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:o.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var ca=[],z=[],ka=_$_RELATIVE_URL_$_,Q=false,ia=false,fa=false,J=null,O=null,V= null,W=0,ga=false,R=null,aa=null,ja=(new Date).getTime(),ha,da=0,S={};p.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=p.prototype.onload;c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w, addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:h,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:I};this.WT=_$_WT_CLASS_$_;this.emit=M}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
"text"))){E=l;if(q){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(z=p)}}}},navigate:function(l){if(H){fqstate=l;if(q)j(fqstate);else{location.hash=fqstate;if(u){L[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!H)return"";return D}}}()}),_$_APP_CLASS_$_=new (function(){function v(d){d=o.pageCoordinates(d);G=d.x;da=d.y}function t(){var d=o.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){z(null,"hash",null,true)},1)}}function A(d){if(O!= d){O=d;o.history.navigate(escape(d))}}function aa(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function g(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute"; f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove=X;f.object.onmouseup=B;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=o.pageCoordinates(c);o.cancelEvent(c);return false}function X(d){if(Y.object!=null){var c=Y,f=o.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=f.x&&c.xy.y!=f.y)c.object.style.display="";c.object.style.left=f.x-c.offsetX+"px";c.object.style.top=f.y-c.offsetY+"px";f=c.dropTarget; var k=d.target||d.srcElement,h="{"+c.mimeType+":",m=null;for(c.dropTarget=null;k;){m=k.getAttribute("amts");if(m!=null&&m.indexOf(h)!=-1){c.dropTarget=k;break}k=k.parentNode;if(!k.tagName||o.hasTag(k,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){k=m.indexOf(h)+h.length;var s=m.indexOf("}",k);m=m.substring(k,s);if(m.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+m}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end", c.object,d,"",h);m=f.getAttribute("dos");if(m!=null)f.className=m}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",h);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function B(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):L(c.dropTarget, {name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function S(d,c){var f,k;k=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var h=0;h<d.args.length;++h)f+= c+"a"+h+"="+encodeURIComponent(d.args[h])}for(var m=0;m<T.length;++m){var s=o.getElement(T[m]),U=null,ea;if(s!=null){if(s.type=="select-multiple"){h=0;for(ea=s.options.length;h<ea;h++)if(s.options[h].selected)f+=c+T[m]+"="+encodeURIComponent(s.options[h].value)}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate||s.style.opacity=="0.5")U="i";else{if(s.checked)U=s.value}else if(s.type!="file")U=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(U!=null)f+=c+T[m]+"="+encodeURIComponent(U)}}if(O!= null)f+=c+"_="+encodeURIComponent(unescape(O));if(!k){d.data=f;return d}for(h=k.target||k.srcElement;!h.id&&h.parentNode;)h=h.parentNode;if(h.id)f+=c+"tid="+h.id;try{f+=c+"type="+k.type}catch(la){}if(k.clientX||k.clientY)f+=c+"clientX="+k.clientX+c+"clientY="+k.clientY;m=o.pageCoordinates(k);h=m.x;m=m.y;if(h||m){f+=c+"documentX="+h+c+"documentY="+m;f+=c+"dragdX="+(h-G)+c+"dragdY="+(m-da)}if(k.screenX||k.screenY)f+=c+"screenX="+k.screenX+c+"screenY="+k.screenY;if(d.object&&d.object.nodeType!=9){s= o.widgetPageCoordinates(d.object);f+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(h-s.x)+c+"widgetY="+(m-s.y)}h=o.button(k);if(!h)if(o.buttons&1)h=1;else if(o.buttons&2)h=2;else if(o.buttons&4)h=4;f+=c+"button="+h;if(typeof k.keyCode!=="undefined")f+=c+"keyCode="+k.keyCode;if(typeof k.charCode!=="undefined")f+=c+"charCode="+k.charCode;if(k.altKey)f+=c+"altKey=1";if(k.ctrlKey)f+=c+"ctrlKey=1";if(k.metaKey)f+= c+"metaKey=1";if(k.shiftKey)f+=c+"shiftKey=1";d.data=f;return d}function a(){for(var d="",c=false,f=0;f<y.length;++f){c=c||y[f].feedback;d+=y[f].data}ba=y;y=[];return{feedback:c,result:d}}function b(){P=true;if(V){clearTimeout(V);V=null}var d=$("#Wt-timers");d.size()>0&&o.setHtml(d.get(0),"",false)}function e(){o.history._initTimeout();W==0&&z(null,"none",null,false);V=setTimeout(e,_$_KEEP_ALIVE_$_000)}function j(d){if(!o.isIEMobile)document.title=d}function i(){if(!document.activeElement){function d(f){if(f&& f.target)document.activeElement=f.target==document?null:f.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}o.history._initialize();aa();if(!fa){fa=true;_$_ONLOAD_$_();P||(V=setTimeout(e,_$_KEEP_ALIVE_$_000))}}function n(d){clearTimeout(d);document.body.style.cursor="auto";if(Z!=null){try{Z()}catch(c){}Z=null}}function J(){document.body.style.cursor="wait";Z=hideLoadingIndicator;showLoadingIndicator()}function u(d){ga= d}function q(d){if(d)window.execScript?window.execScript(d):window.eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function C(d,c,f){if(!P){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(k){alert("Wt internal error: "+k+", code: "+k.code+", description: "+k.description)}_$_$endif_$_();f&&n(f)}else y=ba.concat(y);ba=[];if(N){clearTimeout(N);N=null}I=null;if(d>0)++W;else W=0;if(!P)if(ga||y.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);Q=setTimeout(function(){F()}, d)}else F()}}function w(){I.abort();N=I=null;P||F()}function z(d,c,f,k){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!I){_$_$endif_$_();var h={},m=y.length;h.object=d;h.signal=c;h.event=f;h.feedback=k;y[m]=S(h,m);E();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function E(){if(I!=null&&N!=null){clearTimeout(N);I.abort();I=null}if(I==null)if(Q==null){Q=setTimeout(function(){F()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(Q);F()}else if((new Date).getTime()- ha>o.updateDelay){clearTimeout(Q);F()}}function H(d){ca=d;x._p_.comm.responseReceived(d)}function F(){Q=null;if(P){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,k="&rand="+Math.round(Math.random(ja)*1E5);if(y.length>0){d=a();c=d.feedback?setTimeout(J,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}I=x._p_.comm.sendUpdate(ka+k,"request=jsupdate&"+d.result+"&ackId="+ca,c,ca,-1); N=f?setTimeout(w,_$_SERVER_PUSH_TIMEOUT_$_):null}}function L(d,c){var f={},k=y.length;f.signal="user";f.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){f.name=c.name;f.object=c.eventObject;f.event=c.event}else{f.name=c;f.object=f.event=null}f.args=[];for(var h=2;h<arguments.length;++h){var m=arguments[h];m=m===false?0:m===true?1:m.toDateString?m.toDateString():m;f.args[h-2]=m}f.feedback=true;y[k]=S(f,k);E()}function K(d,c,f){var k=function(){var m=o.getElement(d);if(m){if(f)m.timer= setTimeout(m.tm,c);else{m.timer=null;m.tm=null}m.onclick&&m.onclick()}},h=o.getElement(d);h.timer=setTimeout(k,c);h.tm=k}function D(d,c){setTimeout(function(){if(R[d]===true)c();else R[d]=c},20)}function M(d){if(R[d]!==true){typeof R[d]!=="undefined"&&R[d]();R[d]=true}}function l(d,c){var f=false;if(c!="")try{f=!eval("typeof "+c+" === 'undefined'")}catch(k){f=false}if(f)M(d);else{var h=document.createElement("script");h.setAttribute("src",d);h.onload=function(){M(d)};h.onreadystatechange=function(){if(h.readyState== "complete"||h.readyState=="loaded")M(d)};document.getElementsByTagName("head")[0].appendChild(h)}}function p(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}function r(d){if(d.ieAlternativeExecuted)return"0";x.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}var x=this,o=_$_WT_CLASS_$_,G=0,da=0,O=null,Y={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null, dropTarget:null,objectPrevStyle:null,xy:null},T=_$_FORM_OBJECTS_$_;o.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:o.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var ba=[],y=[],ka=_$_RELATIVE_URL_$_,P=false,ia=false,fa=false,I=null,N=null,V=null,W=0,ga=false,Q=null,Z=null,ja=(new Date).getTime(),ha,ca=0,R={};p.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=p.prototype.onload; c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:D,setTitle:j,update:z,quit:b,setFormObjects:function(d){T=d},saveDownPos:v,addTimerEvent:K,load:i,handleResponse:C,setServerPush:u,dragStart:g,dragDrag:X,dragEnd:B,capture:o.capture,onHashChange:t,setHash:A,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()}, response:H};this.WT=_$_WT_CLASS_$_;this.emit=L}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
"string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}}function ba(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function h(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove=X;f.object.onmouseup=C;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=o.pageCoordinates(c);o.cancelEvent(c);return false}function X(d){if(Y.object!=null){var c=Y,f=o.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=f.x&&c.xy.y!=f.y)c.object.style.display="";c.object.style.left=f.x-c.offsetX+"px";c.object.style.top=f.y-c.offsetY+"px";f=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":",g=null;for(c.dropTarget=null;j;){g=j.getAttribute("amts");if(g!=null&&g.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||o.hasTag(j,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){j=g.indexOf(m)+m.length;var s=g.indexOf("}",j);g=g.substring(j,s);if(g.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+g}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",c.object,d,"",m);g=f.getAttribute("dos");if(g!=null)f.className=g}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function C(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):M(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var g=0;g<U.length;++g){var s=o.getElement(U[g]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m<Z;m++)if(s.options[m].selected)f+=c+U[g]+"="+encodeURIComponent(s.options[m].value)}else if(o.hasTag(s,"SPAN")){m=0;for(Z=s.childNodes.length;m<Z;++m)if(s.childNodes[m].type=="checkbox"){m=s.childNodes[m];if(m.style.display=="none")v="indeterminate";else if(m.checked)v=m.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)v="indeterminate";else{if(s.checked)v=s.value}else if(s.type!="file")v=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(v!=null)f+=c+U[g]+"="+encodeURIComponent(v)}}if(P!=null)f+=c+"_="+encodeURIComponent(unescape(P));if(!j){d.data=f;return d}for(g=j.target||j.srcElement;!g.id&&g.parentNode;)g=g.parentNode;if(g.id)f+=c+"tid="+g.id;try{f+=c+"type="+j.type}catch(la){}if(j.clientX||j.clientY)f+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;v=o.pageCoordinates(j);g=v.x;v=v.y;if(g||v){f+=c+"documentX="+g+c+"documentY="+v;f+=c+"dragdX="+(g-H)+c+"dragdY="+(v-ea)}if(j.screenX||j.screenY)f+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=o.widgetPageCoordinates(d.object);f+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(g-m.x)+c+"widgetY="+(v-m.y)}g=o.button(j);if(!g)if(o.buttons&1)g=1;else if(o.buttons&2)g=2;else if(o.buttons&4)g=4;f+=c+"button="+g;if(typeof j.keyCode!=="undefined")f+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")f+=c+"charCode="+j.charCode;if(j.altKey)f+=c+"altKey=1";if(j.ctrlKey)f+=c+"ctrlKey=1";if(j.metaKey)f+=c+"metaKey=1";if(j.shiftKey)f+=c+"shiftKey=1";d.data=f;return d}function a(){for(var d="",c=false,f=0;f<z.length;++f){c=c||z[f].feedback;d+=z[f].data}ca=z;z=[];return{feedback:c,result:d}}function b(){Q=true;if(V){clearTimeout(V);V=null}var d=$("#Wt-timers");d.size()>0&&o.setHtml(d.get(0),"",false)}function e(){o.history._initTimeout();W==0&&A(null,"none",null,false);V=setTimeout(e,_$_KEEP_ALIVE_$_000)}function k(d){if(!o.isIEMobile)document.title=d}function i(){if(!document.activeElement){function d(f){if(f&&f.target)document.activeElement=f.target==document?null:f.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}o.history._initialize();ba();if(!fa){fa=true;_$_ONLOAD_$_();Q||(V=setTimeout(e,_$_KEEP_ALIVE_$_000))}}function n(d){clearTimeout(d);document.body.style.cursor="auto";if(aa!=null){try{aa()}catch(c){}aa=null}}function K(){document.body.style.cursor="wait";aa=hideLoadingIndicator;showLoadingIndicator()}function u(d){ga=d}function q(d){if(d)window.execScript?window.execScript(d):window.eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(d,c,f){if(!Q){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();f&&n(f)}else z=ca.concat(z);ca=[];if(O){clearTimeout(O);O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},g=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[g]=T(m,g);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}J=y._p_.comm.sendUpdate(ka+j,"request=jsupdate&"+d.result+"&ackId="+da,c,da,-1);O=f?setTimeout(x,_$_SERVER_PUSH_TIMEOUT_$_):null}}function M(d,c){var f={},j=z.length;f.signal="user";f.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){f.name=c.name;f.object=c.eventObject;f.event=c.event}else{f.name=c;f.object=f.event=null}f.args=[];for(var m=2;m<arguments.length;++m){var g=arguments[m];g=g===false?0:g===true?1:g.toDateString?g.toDateString():g;f.args[m-2]=g}f.feedback=true;z[j]=T(f,j);F()}function L(d,c,f){var j=function(){var g=o.getElement(d);if(g){if(f)g.timer=setTimeout(g.tm,c);else{g.timer=null;g.tm=null}g.onclick&&g.onclick()}},m=o.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function E(d,c){setTimeout(function(){if(S[d]===true)c();else S[d]=c},20)}function N(d){if(S[d]!==true){typeof S[d]!=="undefined"&&S[d]();S[d]=true}}function l(d,c){var f=false;if(c!="")try{f=!eval("typeof "+c+" === 'undefined'")}catch(j){f=false}if(f)N(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){N(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState=="loaded")N(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function p(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}function r(d){if(d.ieAlternativeExecuted)return"0";y.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}var y=this,o=_$_WT_CLASS_$_,H=0,ea=0,P=null,Y={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},U=_$_FORM_OBJECTS_$_;o.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:o.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var ca=[],z=[],ka=_$_RELATIVE_URL_$_,Q=false,ia=false,fa=false,J=null,O=null,V=null,W=0,ga=false,R=null,aa=null,ja=(new Date).getTime(),ha,da=0,S={};p.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=p.prototype.onload;c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w,addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:h,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:I};this.WT=_$_WT_CLASS_$_;this.emit=M}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
this.activeLayersPanel.on('cellcontextmenu', function(grid, rowIndex, colIndex, event) { event.stopEvent(); activeLayersPanel.getSelectionModel().selectRow(rowIndex); var contextMenu = new Ext.menu.Menu(); contextMenu.add(activeLayersRemoveButton); contextMenu.showAt(event.getXY());
centerPanel.on('resize', function() { map.checkResize();
this.activeLayersPanel.on('cellcontextmenu', function(grid, rowIndex, colIndex, event) { //Stop the event propogating event.stopEvent(); //Ensure the row that is right clicked gets selected activeLayersPanel.getSelectionModel().selectRow(rowIndex); //Create the context menu to hold the buttons var contextMenu = new Ext.menu.Menu(); contextMenu.add(activeLayersRemoveButton); //Show the menu contextMenu.showAt(event.getXY()); });
function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+"
;(function(g){function k(c){c&&c.printPage?c.printPage():setTimeout(function(){k(c)},50)}function l(c){c=a(c);a(":checked",c).each(function(){this.setAttribute("checked","checked")});a("input[type='text']",c).each(function(){this.setAttribute("value",a(this).val())});a("select",c).each(function(){var b=a(this);a("option",b).each(function(){b.val()==a(this).val()&&this.setAttribute("selected","selected")})});a("textarea",c).each(function(){var b=a(this).attr("value");if(a.browser.b&&this.firstChild)this.firstChild.textContent= b;else this.innerHTML=b});return a("<div></div>").append(c.clone()).html()}function m(c,b){var i=a(c);c=l(c);var d=[];d.push("<html><head><title>"+b.pageTitle+"</title>");if(b.overrideElementCSS){if(b.overrideElementCSS.length>0)for(var f=0;f<b.overrideElementCSS.length;f++){var e=b.overrideElementCSS[f];typeof e=="string"?d.push('<link type="text/css" rel="stylesheet" href="'+e+'" >'):d.push('<link type="text/css" rel="stylesheet" href="'+e.href+'" media="'+e.media+'" >')}}else a("link",j).filter(function(){return a(this).attr("rel").toLowerCase()==
function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname;}function _getMarkup(element,opts){var $element=$(element);var elementHtml=_getElementHTMLIncludingFormElements(element);var html=new Array();html.push('<html><head><title>'+opts.pageTitle+'</title>');if(opts.overrideElementCSS){if(opts.overrideElementCSS.length>0){for(var x=0;x<opts.overrideElementCSS.length;x++){var current=opts.overrideElementCSS[x];if(typeof(current)=='string')html.push('<link type="text/css" rel="stylesheet" href="'+current+'" >');else html.push('<link type="text/css" rel="stylesheet" href="'+current.href+'" media="'+current.media+'" >');}}}else{$(document).find("link").filter(function(){return $(this).attr("rel").toLowerCase()=="stylesheet";}).each(function(){html.push('<link type="text/css" rel="stylesheet" href="'+$(this).attr("href")+'" media="'+$(this).attr('media')+'" >');});}html.push('<base href="'+_getBaseHref()+'" />');html.push('</head><body style="'+opts.printBodyOptions.styleToAdd+'" class="'+opts.printBodyOptions.classNameToAdd+'">');html.push('<div class="'+$element.attr('class')+'">'+elementHtml+'</div>');html.push('<script type="text/javascript">function printPage(){focus();print();'+((!$.browser.opera&&!opts.leaveOpen&&opts.printMode.toLowerCase()=='popup')?'close();':'')+'}</script>');html.push('</body></html>');return html.join('');};})(jQuery);
result.prime=null;
SET(null);
function(result) { BigInteger.log( "stepping_isProbablePrime No.2: calling millerRabin : subparam.result=" + result ); result.prime=null; return x.stepping_millerRabin(t); },
if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } });
(function($) { $.fn.doMeta = function(options) { // define defaults var defaults = {}; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // calculate meta function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } } }); };})(jQuery);
$(self).bind(name, fn);
if (fn) { $(self).bind(name, fn); }
$.each("onSlide,change".split(","), function(i, name) { // from configuration if ($.isFunction(conf[name])) { $(self).bind(name, conf[name]); } // API methods self[name] = function(fn) { $(self).bind(name, fn); return self; }; });
function(){return false}}function g(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove= X;f.object.onmouseup=C;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=o.pageCoordinates(c);o.cancelEvent(c);return false}function X(d){if(Y.object!=null){var c=Y,f=o.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=f.x&&c.xy.y!=f.y)c.object.style.display="";c.object.style.left=f.x-c.offsetX+"px";c.object.style.top=f.y-c.offsetY+"px";f=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":",h=null;for(c.dropTarget=null;j;){h=j.getAttribute("amts"); if(h!=null&&h.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||o.hasTag(j,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){j=h.indexOf(m)+m.length;var s=h.indexOf("}",j);h=h.substring(j,s);if(h.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+h}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",c.object,d,"",m);h=f.getAttribute("dos");if(h!=null)f.className=h}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",
function(){return false}}function h(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove= X;f.object.onmouseup=C;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=o.pageCoordinates(c);o.cancelEvent(c);return false}function X(d){if(Y.object!=null){var c=Y,f=o.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=f.x&&c.xy.y!=f.y)c.object.style.display="";c.object.style.left=f.x-c.offsetX+"px";c.object.style.top=f.y-c.offsetY+"px";f=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":",g=null;for(c.dropTarget=null;j;){g=j.getAttribute("amts"); if(g!=null&&g.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||o.hasTag(j,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){j=g.indexOf(m)+m.length;var s=g.indexOf("}",j);g=g.substring(j,s);if(g.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+g}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",c.object,d,"",m);g=f.getAttribute("dos");if(g!=null)f.className=g}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",
"IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}}function ba(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function g(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove=X;f.object.onmouseup=C;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=o.pageCoordinates(c);o.cancelEvent(c);return false}function X(d){if(Y.object!=null){var c=Y,f=o.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=f.x&&c.xy.y!=f.y)c.object.style.display="";c.object.style.left=f.x-c.offsetX+"px";c.object.style.top=f.y-c.offsetY+"px";f=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":",h=null;for(c.dropTarget=null;j;){h=j.getAttribute("amts");if(h!=null&&h.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||o.hasTag(j,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){j=h.indexOf(m)+m.length;var s=h.indexOf("}",j);h=h.substring(j,s);if(h.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+h}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",c.object,d,"",m);h=f.getAttribute("dos");if(h!=null)f.className=h}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function C(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):M(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var h=0;h<U.length;++h){var s=o.getElement(U[h]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m<Z;m++)if(s.options[m].selected)f+=c+U[h]+"="+encodeURIComponent(s.options[m].value)}else if(o.hasTag(s,"SPAN")){m=0;for(Z=s.childNodes.length;m<Z;++m)if(s.childNodes[m].type=="checkbox"){m=s.childNodes[m];if(m.style.display=="none")v="indeterminate";else if(m.checked)v=m.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)v="indeterminate";else{if(s.checked)v=s.value}else if(s.type!="file")v=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(v!=null)f+=c+U[h]+"="+encodeURIComponent(v)}}if(P!=null)f+=c+"_="+encodeURIComponent(unescape(P));if(!j){d.data=f;return d}for(h=j.target||j.srcElement;!h.id&&h.parentNode;)h=h.parentNode;if(h.id)f+=c+"tid="+h.id;try{f+=c+"type="+j.type}catch(la){}if(j.clientX||j.clientY)f+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;v=o.pageCoordinates(j);h=v.x;v=v.y;if(h||v){f+=c+"documentX="+h+c+"documentY="+v;f+=c+"dragdX="+(h-H)+c+"dragdY="+(v-ea)}if(j.screenX||j.screenY)f+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=o.widgetPageCoordinates(d.object);f+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(h-m.x)+c+"widgetY="+(v-m.y)}h=o.button(j);if(!h)if(o.buttons&1)h=1;else if(o.buttons&2)h=2;else if(o.buttons&4)h=4;f+=c+"button="+h;if(typeof j.keyCode!=="undefined")f+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")f+=c+"charCode="+j.charCode;if(j.altKey)f+=c+"altKey=1";if(j.ctrlKey)f+=c+"ctrlKey=1";if(j.metaKey)f+=c+"metaKey=1";if(j.shiftKey)f+=c+"shiftKey=1";d.data=f;return d}function a(){for(var d="",c=false,f=0;f<z.length;++f){c=c||z[f].feedback;d+=z[f].data}ca=z;z=[];return{feedback:c,result:d}}function b(){Q=true;if(V){clearTimeout(V);V=null}var d=$("#Wt-timers");d.size()>0&&o.setHtml(d.get(0),"",false)}function e(){o.history._initTimeout();W==0&&A(null,"none",null,false);V=setTimeout(e,_$_KEEP_ALIVE_$_000)}function k(d){if(!o.isIEMobile)document.title=d}function i(){if(!document.activeElement){function d(f){if(f&&f.target)document.activeElement=f.target==document?null:f.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}o.history._initialize();ba();if(!fa){fa=true;_$_ONLOAD_$_();Q||(V=setTimeout(e,_$_KEEP_ALIVE_$_000))}}function n(d){clearTimeout(d);document.body.style.cursor="auto";if(aa!=null){try{aa()}catch(c){}aa=null}}function K(){document.body.style.cursor="wait";aa=hideLoadingIndicator;showLoadingIndicator()}function u(d){ga=d}function q(d){if(d)window.execScript?window.execScript(d):window.eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(d,c,f){if(!Q){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();f&&n(f)}else z=ca.concat(z);ca=[];if(O){clearTimeout(O);O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},h=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[h]=T(m,h);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}J=y._p_.comm.sendUpdate(ka+j,"request=jsupdate&"+d.result+"&ackId="+da,c,da,-1);O=f?setTimeout(x,_$_SERVER_PUSH_TIMEOUT_$_):null}}function M(d,c){var f={},j=z.length;f.signal="user";f.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){f.name=c.name;f.object=c.eventObject;f.event=c.event}else{f.name=c;f.object=f.event=null}f.args=[];for(var m=2;m<arguments.length;++m){var h=arguments[m];h=h===false?0:h===true?1:h.toDateString?h.toDateString():h;f.args[m-2]=h}f.feedback=true;z[j]=T(f,j);F()}function L(d,c,f){var j=function(){var h=o.getElement(d);if(h){if(f)h.timer=setTimeout(h.tm,c);else{h.timer=null;h.tm=null}h.onclick()}},m=o.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function E(d,c){setTimeout(function(){if(S[d]===true)c();else S[d]=c},20)}function N(d){if(S[d]!==true){typeof S[d]!=="undefined"&&S[d]();S[d]=true}}function l(d,c){var f=false;if(c!="")try{f=!eval("typeof "+c+" === 'undefined'")}catch(j){f=false}if(f)N(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){N(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState=="loaded")N(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function p(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}function r(d){if(d.ieAlternativeExecuted)return"0";y.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}var y=this,o=_$_WT_CLASS_$_,H=0,ea=0,P=null,Y={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},U=_$_FORM_OBJECTS_$_;o.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:o.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var ca=[],z=[],ka=_$_RELATIVE_URL_$_,Q=false,ia=false,fa=false,J=null,O=null,V=null,W=0,ga=false,R=null,aa=null,ja=(new Date).getTime(),ha,da=0,S={};p.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=p.prototype.onload;c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w,addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:g,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:I};this.WT=_$_WT_CLASS_$_;this.emit=M}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var h=0;h<U.length;++h){var s=o.getElement(U[h]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m< Z;m++)if(s.options[m].selected)f+=c+U[h]+"="+encodeURIComponent(s.options[m].value)}else if(o.hasTag(s,"SPAN")){m=0;for(Z=s.childNodes.length;m<Z;++m)if(s.childNodes[m].type=="checkbox"){m=s.childNodes[m];if(m.style.display=="none")v="indeterminate";else if(m.checked)v=m.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)v="indeterminate";else{if(s.checked)v=s.value}else if(s.type!="file")v=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(v!=null)f+=c+U[h]+"="+encodeURIComponent(v)}}if(P!= null)f+=c+"_="+encodeURIComponent(unescape(P));if(!j){d.data=f;return d}for(h=j.target||j.srcElement;!h.id&&h.parentNode;)h=h.parentNode;if(h.id)f+=c+"tid="+h.id;try{f+=c+"type="+j.type}catch(la){}if(j.clientX||j.clientY)f+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;v=o.pageCoordinates(j);h=v.x;v=v.y;if(h||v){f+=c+"documentX="+h+c+"documentY="+v;f+=c+"dragdX="+(h-H)+c+"dragdY="+(v-ea)}if(j.screenX||j.screenY)f+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m= o.widgetPageCoordinates(d.object);f+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(h-m.x)+c+"widgetY="+(v-m.y)}h=o.button(j);if(!h)if(o.buttons&1)h=1;else if(o.buttons&2)h=2;else if(o.buttons&4)h=4;f+=c+"button="+h;if(typeof j.keyCode!=="undefined")f+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")f+=c+"charCode="+j.charCode;if(j.altKey)f+=c+"altKey=1";if(j.ctrlKey)f+=c+"ctrlKey=1";if(j.metaKey)f+=
c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var g=0;g<U.length;++g){var s=o.getElement(U[g]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m< Z;m++)if(s.options[m].selected)f+=c+U[g]+"="+encodeURIComponent(s.options[m].value)}else if(o.hasTag(s,"SPAN")){m=0;for(Z=s.childNodes.length;m<Z;++m)if(s.childNodes[m].type=="checkbox"){m=s.childNodes[m];if(m.style.display=="none")v="indeterminate";else if(m.checked)v=m.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)v="indeterminate";else{if(s.checked)v=s.value}else if(s.type!="file")v=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(v!=null)f+=c+U[g]+"="+encodeURIComponent(v)}}if(P!= null)f+=c+"_="+encodeURIComponent(unescape(P));if(!j){d.data=f;return d}for(g=j.target||j.srcElement;!g.id&&g.parentNode;)g=g.parentNode;if(g.id)f+=c+"tid="+g.id;try{f+=c+"type="+j.type}catch(la){}if(j.clientX||j.clientY)f+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;v=o.pageCoordinates(j);g=v.x;v=v.y;if(g||v){f+=c+"documentX="+g+c+"documentY="+v;f+=c+"dragdX="+(g-H)+c+"dragdY="+(v-ea)}if(j.screenX||j.screenY)f+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m= o.widgetPageCoordinates(d.object);f+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(g-m.x)+c+"widgetY="+(v-m.y)}g=o.button(j);if(!g)if(o.buttons&1)g=1;else if(o.buttons&2)g=2;else if(o.buttons&4)g=4;f+=c+"button="+g;if(typeof j.keyCode!=="undefined")f+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")f+=c+"charCode="+j.charCode;if(j.altKey)f+=c+"altKey=1";if(j.ctrlKey)f+=c+"ctrlKey=1";if(j.metaKey)f+=
"IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}}function ba(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function g(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove=X;f.object.onmouseup=C;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=o.pageCoordinates(c);o.cancelEvent(c);return false}function X(d){if(Y.object!=null){var c=Y,f=o.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=f.x&&c.xy.y!=f.y)c.object.style.display="";c.object.style.left=f.x-c.offsetX+"px";c.object.style.top=f.y-c.offsetY+"px";f=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":",h=null;for(c.dropTarget=null;j;){h=j.getAttribute("amts");if(h!=null&&h.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||o.hasTag(j,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){j=h.indexOf(m)+m.length;var s=h.indexOf("}",j);h=h.substring(j,s);if(h.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+h}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",c.object,d,"",m);h=f.getAttribute("dos");if(h!=null)f.className=h}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function C(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):M(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var h=0;h<U.length;++h){var s=o.getElement(U[h]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m<Z;m++)if(s.options[m].selected)f+=c+U[h]+"="+encodeURIComponent(s.options[m].value)}else if(o.hasTag(s,"SPAN")){m=0;for(Z=s.childNodes.length;m<Z;++m)if(s.childNodes[m].type=="checkbox"){m=s.childNodes[m];if(m.style.display=="none")v="indeterminate";else if(m.checked)v=m.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)v="indeterminate";else{if(s.checked)v=s.value}else if(s.type!="file")v=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(v!=null)f+=c+U[h]+"="+encodeURIComponent(v)}}if(P!=null)f+=c+"_="+encodeURIComponent(unescape(P));if(!j){d.data=f;return d}for(h=j.target||j.srcElement;!h.id&&h.parentNode;)h=h.parentNode;if(h.id)f+=c+"tid="+h.id;try{f+=c+"type="+j.type}catch(la){}if(j.clientX||j.clientY)f+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;v=o.pageCoordinates(j);h=v.x;v=v.y;if(h||v){f+=c+"documentX="+h+c+"documentY="+v;f+=c+"dragdX="+(h-H)+c+"dragdY="+(v-ea)}if(j.screenX||j.screenY)f+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=o.widgetPageCoordinates(d.object);f+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(h-m.x)+c+"widgetY="+(v-m.y)}h=o.button(j);if(!h)if(o.buttons&1)h=1;else if(o.buttons&2)h=2;else if(o.buttons&4)h=4;f+=c+"button="+h;if(typeof j.keyCode!=="undefined")f+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")f+=c+"charCode="+j.charCode;if(j.altKey)f+=c+"altKey=1";if(j.ctrlKey)f+=c+"ctrlKey=1";if(j.metaKey)f+=c+"metaKey=1";if(j.shiftKey)f+=c+"shiftKey=1";d.data=f;return d}function a(){for(var d="",c=false,f=0;f<z.length;++f){c=c||z[f].feedback;d+=z[f].data}ca=z;z=[];return{feedback:c,result:d}}function b(){Q=true;if(V){clearTimeout(V);V=null}var d=$("#Wt-timers");d.size()>0&&o.setHtml(d.get(0),"",false)}function e(){o.history._initTimeout();W==0&&A(null,"none",null,false);V=setTimeout(e,_$_KEEP_ALIVE_$_000)}function k(d){if(!o.isIEMobile)document.title=d}function i(){if(!document.activeElement){function d(f){if(f&&f.target)document.activeElement=f.target==document?null:f.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}o.history._initialize();ba();if(!fa){fa=true;_$_ONLOAD_$_();Q||(V=setTimeout(e,_$_KEEP_ALIVE_$_000))}}function n(d){clearTimeout(d);document.body.style.cursor="auto";if(aa!=null){try{aa()}catch(c){}aa=null}}function K(){document.body.style.cursor="wait";aa=hideLoadingIndicator;showLoadingIndicator()}function u(d){ga=d}function q(d){if(d)window.execScript?window.execScript(d):window.eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(d,c,f){if(!Q){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();f&&n(f)}else z=ca.concat(z);ca=[];if(O){clearTimeout(O);O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},h=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[h]=T(m,h);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}J=y._p_.comm.sendUpdate(ka+j,"request=jsupdate&"+d.result+"&ackId="+da,c,da,-1);O=f?setTimeout(x,_$_SERVER_PUSH_TIMEOUT_$_):null}}function M(d,c){var f={},j=z.length;f.signal="user";f.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){f.name=c.name;f.object=c.eventObject;f.event=c.event}else{f.name=c;f.object=f.event=null}f.args=[];for(var m=2;m<arguments.length;++m){var h=arguments[m];h=h===false?0:h===true?1:h.toDateString?h.toDateString():h;f.args[m-2]=h}f.feedback=true;z[j]=T(f,j);F()}function L(d,c,f){var j=function(){var h=o.getElement(d);if(h){if(f)h.timer=setTimeout(h.tm,c);else{h.timer=null;h.tm=null}h.onclick()}},m=o.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function E(d,c){setTimeout(function(){if(S[d]===true)c();else S[d]=c},20)}function N(d){if(S[d]!==true){typeof S[d]!=="undefined"&&S[d]();S[d]=true}}function l(d,c){var f=false;if(c!="")try{f=!eval("typeof "+c+" === 'undefined'")}catch(j){f=false}if(f)N(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){N(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState=="loaded")N(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function p(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}function r(d){if(d.ieAlternativeExecuted)return"0";y.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}var y=this,o=_$_WT_CLASS_$_,H=0,ea=0,P=null,Y={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},U=_$_FORM_OBJECTS_$_;o.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:o.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var ca=[],z=[],ka=_$_RELATIVE_URL_$_,Q=false,ia=false,fa=false,J=null,O=null,V=null,W=0,ga=false,R=null,aa=null,ja=(new Date).getTime(),ha,da=0,S={};p.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=p.prototype.onload;c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w,addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:g,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:I};this.WT=_$_WT_CLASS_$_;this.emit=M}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},h=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[h]=T(m,h);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-
d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},g=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[g]=T(m,g);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-
"IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}}function ba(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function g(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove=X;f.object.onmouseup=C;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=o.pageCoordinates(c);o.cancelEvent(c);return false}function X(d){if(Y.object!=null){var c=Y,f=o.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=f.x&&c.xy.y!=f.y)c.object.style.display="";c.object.style.left=f.x-c.offsetX+"px";c.object.style.top=f.y-c.offsetY+"px";f=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":",h=null;for(c.dropTarget=null;j;){h=j.getAttribute("amts");if(h!=null&&h.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||o.hasTag(j,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){j=h.indexOf(m)+m.length;var s=h.indexOf("}",j);h=h.substring(j,s);if(h.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+h}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",c.object,d,"",m);h=f.getAttribute("dos");if(h!=null)f.className=h}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function C(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):M(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var h=0;h<U.length;++h){var s=o.getElement(U[h]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m<Z;m++)if(s.options[m].selected)f+=c+U[h]+"="+encodeURIComponent(s.options[m].value)}else if(o.hasTag(s,"SPAN")){m=0;for(Z=s.childNodes.length;m<Z;++m)if(s.childNodes[m].type=="checkbox"){m=s.childNodes[m];if(m.style.display=="none")v="indeterminate";else if(m.checked)v=m.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)v="indeterminate";else{if(s.checked)v=s.value}else if(s.type!="file")v=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(v!=null)f+=c+U[h]+"="+encodeURIComponent(v)}}if(P!=null)f+=c+"_="+encodeURIComponent(unescape(P));if(!j){d.data=f;return d}for(h=j.target||j.srcElement;!h.id&&h.parentNode;)h=h.parentNode;if(h.id)f+=c+"tid="+h.id;try{f+=c+"type="+j.type}catch(la){}if(j.clientX||j.clientY)f+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;v=o.pageCoordinates(j);h=v.x;v=v.y;if(h||v){f+=c+"documentX="+h+c+"documentY="+v;f+=c+"dragdX="+(h-H)+c+"dragdY="+(v-ea)}if(j.screenX||j.screenY)f+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=o.widgetPageCoordinates(d.object);f+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(h-m.x)+c+"widgetY="+(v-m.y)}h=o.button(j);if(!h)if(o.buttons&1)h=1;else if(o.buttons&2)h=2;else if(o.buttons&4)h=4;f+=c+"button="+h;if(typeof j.keyCode!=="undefined")f+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")f+=c+"charCode="+j.charCode;if(j.altKey)f+=c+"altKey=1";if(j.ctrlKey)f+=c+"ctrlKey=1";if(j.metaKey)f+=c+"metaKey=1";if(j.shiftKey)f+=c+"shiftKey=1";d.data=f;return d}function a(){for(var d="",c=false,f=0;f<z.length;++f){c=c||z[f].feedback;d+=z[f].data}ca=z;z=[];return{feedback:c,result:d}}function b(){Q=true;if(V){clearTimeout(V);V=null}var d=$("#Wt-timers");d.size()>0&&o.setHtml(d.get(0),"",false)}function e(){o.history._initTimeout();W==0&&A(null,"none",null,false);V=setTimeout(e,_$_KEEP_ALIVE_$_000)}function k(d){if(!o.isIEMobile)document.title=d}function i(){if(!document.activeElement){function d(f){if(f&&f.target)document.activeElement=f.target==document?null:f.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}o.history._initialize();ba();if(!fa){fa=true;_$_ONLOAD_$_();Q||(V=setTimeout(e,_$_KEEP_ALIVE_$_000))}}function n(d){clearTimeout(d);document.body.style.cursor="auto";if(aa!=null){try{aa()}catch(c){}aa=null}}function K(){document.body.style.cursor="wait";aa=hideLoadingIndicator;showLoadingIndicator()}function u(d){ga=d}function q(d){if(d)window.execScript?window.execScript(d):window.eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(d,c,f){if(!Q){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();f&&n(f)}else z=ca.concat(z);ca=[];if(O){clearTimeout(O);O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},h=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[h]=T(m,h);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}J=y._p_.comm.sendUpdate(ka+j,"request=jsupdate&"+d.result+"&ackId="+da,c,da,-1);O=f?setTimeout(x,_$_SERVER_PUSH_TIMEOUT_$_):null}}function M(d,c){var f={},j=z.length;f.signal="user";f.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){f.name=c.name;f.object=c.eventObject;f.event=c.event}else{f.name=c;f.object=f.event=null}f.args=[];for(var m=2;m<arguments.length;++m){var h=arguments[m];h=h===false?0:h===true?1:h.toDateString?h.toDateString():h;f.args[m-2]=h}f.feedback=true;z[j]=T(f,j);F()}function L(d,c,f){var j=function(){var h=o.getElement(d);if(h){if(f)h.timer=setTimeout(h.tm,c);else{h.timer=null;h.tm=null}h.onclick()}},m=o.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function E(d,c){setTimeout(function(){if(S[d]===true)c();else S[d]=c},20)}function N(d){if(S[d]!==true){typeof S[d]!=="undefined"&&S[d]();S[d]=true}}function l(d,c){var f=false;if(c!="")try{f=!eval("typeof "+c+" === 'undefined'")}catch(j){f=false}if(f)N(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){N(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState=="loaded")N(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function p(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}function r(d){if(d.ieAlternativeExecuted)return"0";y.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}var y=this,o=_$_WT_CLASS_$_,H=0,ea=0,P=null,Y={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},U=_$_FORM_OBJECTS_$_;o.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:o.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var ca=[],z=[],ka=_$_RELATIVE_URL_$_,Q=false,ia=false,fa=false,J=null,O=null,V=null,W=0,ga=false,R=null,aa=null,ja=(new Date).getTime(),ha,da=0,S={};p.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=p.prototype.onload;c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w,addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:g,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:I};this.WT=_$_WT_CLASS_$_;this.emit=M}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
O=f?setTimeout(x,_$_SERVER_PUSH_TIMEOUT_$_):null}}function M(d,c){var f={},j=z.length;f.signal="user";f.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){f.name=c.name;f.object=c.eventObject;f.event=c.event}else{f.name=c;f.object=f.event=null}f.args=[];for(var m=2;m<arguments.length;++m){var h=arguments[m];h=h===false?0:h===true?1:h.toDateString?h.toDateString():h;f.args[m-2]=h}f.feedback=true;z[j]=T(f,j);F()}function L(d,c,f){var j=function(){var h=o.getElement(d);if(h){if(f)h.timer= setTimeout(h.tm,c);else{h.timer=null;h.tm=null}h.onclick()}},m=o.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function E(d,c){setTimeout(function(){if(S[d]===true)c();else S[d]=c},20)}function N(d){if(S[d]!==true){typeof S[d]!=="undefined"&&S[d]();S[d]=true}}function l(d,c){var f=false;if(c!="")try{f=!eval("typeof "+c+" === 'undefined'")}catch(j){f=false}if(f)N(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){N(d)};m.onreadystatechange=function(){if(m.readyState==
O=f?setTimeout(x,_$_SERVER_PUSH_TIMEOUT_$_):null}}function M(d,c){var f={},j=z.length;f.signal="user";f.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){f.name=c.name;f.object=c.eventObject;f.event=c.event}else{f.name=c;f.object=f.event=null}f.args=[];for(var m=2;m<arguments.length;++m){var g=arguments[m];g=g===false?0:g===true?1:g.toDateString?g.toDateString():g;f.args[m-2]=g}f.feedback=true;z[j]=T(f,j);F()}function L(d,c,f){var j=function(){var g=o.getElement(d);if(g){if(f)g.timer= setTimeout(g.tm,c);else{g.timer=null;g.tm=null}g.onclick&&g.onclick()}},m=o.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function E(d,c){setTimeout(function(){if(S[d]===true)c();else S[d]=c},20)}function N(d){if(S[d]!==true){typeof S[d]!=="undefined"&&S[d]();S[d]=true}}function l(d,c){var f=false;if(c!="")try{f=!eval("typeof "+c+" === 'undefined'")}catch(j){f=false}if(f)N(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){N(d)};m.onreadystatechange=function(){if(m.readyState==
"IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}}function ba(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function g(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove=X;f.object.onmouseup=C;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=o.pageCoordinates(c);o.cancelEvent(c);return false}function X(d){if(Y.object!=null){var c=Y,f=o.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=f.x&&c.xy.y!=f.y)c.object.style.display="";c.object.style.left=f.x-c.offsetX+"px";c.object.style.top=f.y-c.offsetY+"px";f=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":",h=null;for(c.dropTarget=null;j;){h=j.getAttribute("amts");if(h!=null&&h.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||o.hasTag(j,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){j=h.indexOf(m)+m.length;var s=h.indexOf("}",j);h=h.substring(j,s);if(h.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+h}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",c.object,d,"",m);h=f.getAttribute("dos");if(h!=null)f.className=h}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function C(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):M(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var h=0;h<U.length;++h){var s=o.getElement(U[h]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m<Z;m++)if(s.options[m].selected)f+=c+U[h]+"="+encodeURIComponent(s.options[m].value)}else if(o.hasTag(s,"SPAN")){m=0;for(Z=s.childNodes.length;m<Z;++m)if(s.childNodes[m].type=="checkbox"){m=s.childNodes[m];if(m.style.display=="none")v="indeterminate";else if(m.checked)v=m.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)v="indeterminate";else{if(s.checked)v=s.value}else if(s.type!="file")v=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(v!=null)f+=c+U[h]+"="+encodeURIComponent(v)}}if(P!=null)f+=c+"_="+encodeURIComponent(unescape(P));if(!j){d.data=f;return d}for(h=j.target||j.srcElement;!h.id&&h.parentNode;)h=h.parentNode;if(h.id)f+=c+"tid="+h.id;try{f+=c+"type="+j.type}catch(la){}if(j.clientX||j.clientY)f+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;v=o.pageCoordinates(j);h=v.x;v=v.y;if(h||v){f+=c+"documentX="+h+c+"documentY="+v;f+=c+"dragdX="+(h-H)+c+"dragdY="+(v-ea)}if(j.screenX||j.screenY)f+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=o.widgetPageCoordinates(d.object);f+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(h-m.x)+c+"widgetY="+(v-m.y)}h=o.button(j);if(!h)if(o.buttons&1)h=1;else if(o.buttons&2)h=2;else if(o.buttons&4)h=4;f+=c+"button="+h;if(typeof j.keyCode!=="undefined")f+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")f+=c+"charCode="+j.charCode;if(j.altKey)f+=c+"altKey=1";if(j.ctrlKey)f+=c+"ctrlKey=1";if(j.metaKey)f+=c+"metaKey=1";if(j.shiftKey)f+=c+"shiftKey=1";d.data=f;return d}function a(){for(var d="",c=false,f=0;f<z.length;++f){c=c||z[f].feedback;d+=z[f].data}ca=z;z=[];return{feedback:c,result:d}}function b(){Q=true;if(V){clearTimeout(V);V=null}var d=$("#Wt-timers");d.size()>0&&o.setHtml(d.get(0),"",false)}function e(){o.history._initTimeout();W==0&&A(null,"none",null,false);V=setTimeout(e,_$_KEEP_ALIVE_$_000)}function k(d){if(!o.isIEMobile)document.title=d}function i(){if(!document.activeElement){function d(f){if(f&&f.target)document.activeElement=f.target==document?null:f.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}o.history._initialize();ba();if(!fa){fa=true;_$_ONLOAD_$_();Q||(V=setTimeout(e,_$_KEEP_ALIVE_$_000))}}function n(d){clearTimeout(d);document.body.style.cursor="auto";if(aa!=null){try{aa()}catch(c){}aa=null}}function K(){document.body.style.cursor="wait";aa=hideLoadingIndicator;showLoadingIndicator()}function u(d){ga=d}function q(d){if(d)window.execScript?window.execScript(d):window.eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(d,c,f){if(!Q){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();f&&n(f)}else z=ca.concat(z);ca=[];if(O){clearTimeout(O);O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},h=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[h]=T(m,h);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}J=y._p_.comm.sendUpdate(ka+j,"request=jsupdate&"+d.result+"&ackId="+da,c,da,-1);O=f?setTimeout(x,_$_SERVER_PUSH_TIMEOUT_$_):null}}function M(d,c){var f={},j=z.length;f.signal="user";f.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){f.name=c.name;f.object=c.eventObject;f.event=c.event}else{f.name=c;f.object=f.event=null}f.args=[];for(var m=2;m<arguments.length;++m){var h=arguments[m];h=h===false?0:h===true?1:h.toDateString?h.toDateString():h;f.args[m-2]=h}f.feedback=true;z[j]=T(f,j);F()}function L(d,c,f){var j=function(){var h=o.getElement(d);if(h){if(f)h.timer=setTimeout(h.tm,c);else{h.timer=null;h.tm=null}h.onclick()}},m=o.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function E(d,c){setTimeout(function(){if(S[d]===true)c();else S[d]=c},20)}function N(d){if(S[d]!==true){typeof S[d]!=="undefined"&&S[d]();S[d]=true}}function l(d,c){var f=false;if(c!="")try{f=!eval("typeof "+c+" === 'undefined'")}catch(j){f=false}if(f)N(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){N(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState=="loaded")N(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function p(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}function r(d){if(d.ieAlternativeExecuted)return"0";y.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}var y=this,o=_$_WT_CLASS_$_,H=0,ea=0,P=null,Y={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},U=_$_FORM_OBJECTS_$_;o.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:o.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var ca=[],z=[],ka=_$_RELATIVE_URL_$_,Q=false,ia=false,fa=false,J=null,O=null,V=null,W=0,ga=false,R=null,aa=null,ja=(new Date).getTime(),ha,da=0,S={};p.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=p.prototype.onload;c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w,addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:g,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:I};this.WT=_$_WT_CLASS_$_;this.emit=M}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w,addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:g,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},
c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w,addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:h,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},
"IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}}function ba(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function g(d,c){var f=Y;f.object=o.getElement(d.getAttribute("dwid"));if(f.object==null)return true;f.sourceId=d.getAttribute("dsid");f.objectPrevStyle={position:f.object.style.position,display:f.object.style.display,left:f.object.style.left,top:f.object.style.top,className:f.object.className};f.object.parentNode.removeChild(f.object);f.object.style.position="absolute";f.object.className="";document.body.appendChild(f.object);o.capture(null);o.capture(f.object);f.object.onmousemove=X;f.object.onmouseup=C;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=o.pageCoordinates(c);o.cancelEvent(c);return false}function X(d){if(Y.object!=null){var c=Y,f=o.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=f.x&&c.xy.y!=f.y)c.object.style.display="";c.object.style.left=f.x-c.offsetX+"px";c.object.style.top=f.y-c.offsetY+"px";f=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":",h=null;for(c.dropTarget=null;j;){h=j.getAttribute("amts");if(h!=null&&h.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||o.hasTag(j,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){j=h.indexOf(m)+m.length;var s=h.indexOf("}",j);h=h.substring(j,s);if(h.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+h}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",c.object,d,"",m);h=f.getAttribute("dos");if(h!=null)f.className=h}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function C(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):M(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var h=0;h<U.length;++h){var s=o.getElement(U[h]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m<Z;m++)if(s.options[m].selected)f+=c+U[h]+"="+encodeURIComponent(s.options[m].value)}else if(o.hasTag(s,"SPAN")){m=0;for(Z=s.childNodes.length;m<Z;++m)if(s.childNodes[m].type=="checkbox"){m=s.childNodes[m];if(m.style.display=="none")v="indeterminate";else if(m.checked)v=m.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)v="indeterminate";else{if(s.checked)v=s.value}else if(s.type!="file")v=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(v!=null)f+=c+U[h]+"="+encodeURIComponent(v)}}if(P!=null)f+=c+"_="+encodeURIComponent(unescape(P));if(!j){d.data=f;return d}for(h=j.target||j.srcElement;!h.id&&h.parentNode;)h=h.parentNode;if(h.id)f+=c+"tid="+h.id;try{f+=c+"type="+j.type}catch(la){}if(j.clientX||j.clientY)f+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;v=o.pageCoordinates(j);h=v.x;v=v.y;if(h||v){f+=c+"documentX="+h+c+"documentY="+v;f+=c+"dragdX="+(h-H)+c+"dragdY="+(v-ea)}if(j.screenX||j.screenY)f+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=o.widgetPageCoordinates(d.object);f+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(h-m.x)+c+"widgetY="+(v-m.y)}h=o.button(j);if(!h)if(o.buttons&1)h=1;else if(o.buttons&2)h=2;else if(o.buttons&4)h=4;f+=c+"button="+h;if(typeof j.keyCode!=="undefined")f+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")f+=c+"charCode="+j.charCode;if(j.altKey)f+=c+"altKey=1";if(j.ctrlKey)f+=c+"ctrlKey=1";if(j.metaKey)f+=c+"metaKey=1";if(j.shiftKey)f+=c+"shiftKey=1";d.data=f;return d}function a(){for(var d="",c=false,f=0;f<z.length;++f){c=c||z[f].feedback;d+=z[f].data}ca=z;z=[];return{feedback:c,result:d}}function b(){Q=true;if(V){clearTimeout(V);V=null}var d=$("#Wt-timers");d.size()>0&&o.setHtml(d.get(0),"",false)}function e(){o.history._initTimeout();W==0&&A(null,"none",null,false);V=setTimeout(e,_$_KEEP_ALIVE_$_000)}function k(d){if(!o.isIEMobile)document.title=d}function i(){if(!document.activeElement){function d(f){if(f&&f.target)document.activeElement=f.target==document?null:f.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}o.history._initialize();ba();if(!fa){fa=true;_$_ONLOAD_$_();Q||(V=setTimeout(e,_$_KEEP_ALIVE_$_000))}}function n(d){clearTimeout(d);document.body.style.cursor="auto";if(aa!=null){try{aa()}catch(c){}aa=null}}function K(){document.body.style.cursor="wait";aa=hideLoadingIndicator;showLoadingIndicator()}function u(d){ga=d}function q(d){if(d)window.execScript?window.execScript(d):window.eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(d,c,f){if(!Q){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();f&&n(f)}else z=ca.concat(z);ca=[];if(O){clearTimeout(O);O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},h=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=j;z[h]=T(m,h);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(J!=null&&O!=null){clearTimeout(O);J.abort();J=null}if(J==null)if(R==null){R=setTimeout(function(){G()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(R);G()}else if((new Date).getTime()-ha>o.updateDelay){clearTimeout(R);G()}}function I(d){da=d;y._p_.comm.responseReceived(d)}function G(){R=null;if(Q){if(!ia){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ia=true}}else{var d,c,f,j="&rand="+Math.round(Math.random(ja)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(K,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}J=y._p_.comm.sendUpdate(ka+j,"request=jsupdate&"+d.result+"&ackId="+da,c,da,-1);O=f?setTimeout(x,_$_SERVER_PUSH_TIMEOUT_$_):null}}function M(d,c){var f={},j=z.length;f.signal="user";f.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){f.name=c.name;f.object=c.eventObject;f.event=c.event}else{f.name=c;f.object=f.event=null}f.args=[];for(var m=2;m<arguments.length;++m){var h=arguments[m];h=h===false?0:h===true?1:h.toDateString?h.toDateString():h;f.args[m-2]=h}f.feedback=true;z[j]=T(f,j);F()}function L(d,c,f){var j=function(){var h=o.getElement(d);if(h){if(f)h.timer=setTimeout(h.tm,c);else{h.timer=null;h.tm=null}h.onclick()}},m=o.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function E(d,c){setTimeout(function(){if(S[d]===true)c();else S[d]=c},20)}function N(d){if(S[d]!==true){typeof S[d]!=="undefined"&&S[d]();S[d]=true}}function l(d,c){var f=false;if(c!="")try{f=!eval("typeof "+c+" === 'undefined'")}catch(j){f=false}if(f)N(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){N(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState=="loaded")N(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function p(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}function r(d){if(d.ieAlternativeExecuted)return"0";y.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}var y=this,o=_$_WT_CLASS_$_,H=0,ea=0,P=null,Y={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},U=_$_FORM_OBJECTS_$_;o.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:o.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var ca=[],z=[],ka=_$_RELATIVE_URL_$_,Q=false,ia=false,fa=false,J=null,O=null,V=null,W=0,ga=false,R=null,aa=null,ja=(new Date).getTime(),ha,da=0,S={};p.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=p.prototype.onload;c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w,addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:g,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:I};this.WT=_$_WT_CLASS_$_;this.emit=M}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(r){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(r)h(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=n.pageCoordinates(d);N=d.x;J=d.y}function t(){var d= n.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){y(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;n.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,c){var e=aa;e.object=n.getElement(d.getAttribute("dwid"));if(e.object==null)return true;e.sourceId=d.getAttribute("dsid");e.objectPrevStyle={position:e.object.style.position,display:e.object.style.display,left:e.object.style.left,top:e.object.style.top, className:e.object.className};e.object.parentNode.removeChild(e.object);e.object.style.position="absolute";e.object.className="";document.body.appendChild(e.object);n.capture(null);n.capture(e.object);e.object.onmousemove=g;e.object.onmouseup=Z;e.offsetX=-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=d.getAttribute("dmt");e.xy=n.pageCoordinates(c);n.cancelEvent(c);return false}function g(d){if(aa.object!=null){var c=aa,e=n.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=e.x&&c.xy.y!=e.y)c.object.style.display= "";c.object.style.left=e.x-c.offsetX+"px";c.object.style.top=e.y-c.offsetY+"px";e=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":",i=null;for(c.dropTarget=null;j;){i=j.getAttribute("amts");if(i!=null&&i.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||n.hasTag(j,"HTML"))break}if(c.dropTarget!=e){if(c.dropTarget){j=i.indexOf(m)+m.length;var s=i.indexOf("}",j);i=i.substring(j,s);if(i.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className= c.dropTarget.className+" "+i}}else c.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",c.object,d,"",m);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";n.cancelEvent(d);return false}return true}function Z(d){n.capture(null);var c=aa;if(c.object){if(c.dropTarget){var e=c.dropTarget.getAttribute("dos");if(e!=null)c.dropTarget.className= e;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):I(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function B(d,c){var e,j;j=d.event;c=c>0?"&e"+c:"&";e=c+"signal="+d.signal; if(d.id){e+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)e+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var i=0;i<V.length;++i){var s=n.getElement(V[i]),z=null,fa;if(s!=null){if(s.type=="select-multiple"){m=0;for(fa=s.options.length;m<fa;m++)if(s.options[m].selected)e+=c+V[i]+"="+encodeURIComponent(s.options[m].value)}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate||s.style.opacity=="0.5")z="i";else{if(s.checked)z=s.value}else if(s.type!= "file"){z=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(n.hasFocus(s)){m=n.getSelectionRange(s);e+=c+"selstart="+m.start+c+"selend="+m.end}}if(z!=null)e+=c+V[i]+"="+encodeURIComponent(z)}}if(document.activeElement)e+=c+"focus="+document.activeElement.id;if(O!=null)e+=c+"_="+encodeURIComponent(unescape(O));if(!j){d.data=e;return d}for(i=j.target||j.srcElement;!i.id&&i.parentNode;)i=i.parentNode;if(i.id)e+=c+"tid="+i.id;try{e+=c+"type="+j.type}catch(ma){}if(j.clientX||j.clientY)e+=c+"clientX="+ j.clientX+c+"clientY="+j.clientY;z=n.pageCoordinates(j);i=z.x;z=z.y;if(i||z){e+=c+"documentX="+i+c+"documentY="+z;e+=c+"dragdX="+(i-N)+c+"dragdY="+(z-J);m=0;if(j.wheelDelta)m=j.wheelDelta>0?1:-1;else if(j.detail)m=j.detail<0?1:-1;e+=c+"wheel="+m}if(j.screenX||j.screenY)e+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=n.widgetPageCoordinates(d.object);e+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+ d.object.clientHeight+c+"widgetX="+(i-m.x)+c+"widgetY="+(z-m.y)}i=n.button(j);if(!i)if(n.buttons&1)i=1;else if(n.buttons&2)i=2;else if(n.buttons&4)i=4;e+=c+"button="+i;if(typeof j.keyCode!=="undefined")e+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=c+"charCode="+j.charCode;if(j.altKey)e+=c+"altKey=1";if(j.ctrlKey)e+=c+"ctrlKey=1";if(j.metaKey)e+=c+"metaKey=1";if(j.shiftKey)e+=c+"shiftKey=1";d.data=e;return d}function S(){for(var d="",c=false,e=0;e<A.length;++e){c=c||A[e].feedback; d+=A[e].data}da=A;A=[];return{feedback:c,result:d}}function Y(){P=true;if(W){clearTimeout(W);W=null}var d=$("#Wt-timers");d.size()>0&&n.setHtml(d.get(0),"",false)}function a(){n.history._initTimeout();X==0&&y(null,"none",null,false);W=setTimeout(a,_$_KEEP_ALIVE_$_000)}function b(d){if(!n.isIEMobile)document.title=d}function f(){if(!document.activeElement){function d(e){if(e&&e.target)document.activeElement=e.target==document?null:e.target}function c(){document.activeElement=null}document.addEventListener("focus", d,true);document.addEventListener("blur",c,true)}n.history._initialize();T();if(!ga){ga=true;_$_ONLOAD_$_();P||(W=setTimeout(a,_$_KEEP_ALIVE_$_000))}}function h(d){clearTimeout(d);document.body.style.cursor="auto";if(ba!=null){try{ba()}catch(c){}ba=null}}function k(){document.body.style.cursor="wait";ba=hideLoadingIndicator;showLoadingIndicator()}function o(d){ha=d}function E(d){if(d){d="(function() {"+d+"})();";window.execScript?window.execScript(d):window.eval(d)}q._p_.autoJavaScript()}function u(d, c,e){if(!P){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&h(e)}else A=da.concat(A);da=[];if(L){clearTimeout(L);L=null}K=null;if(d>0)++X;else X=0;if(!P)if(ha||A.length>0)if(d==1){d=Math.min(12E4,Math.exp(X)*500);Q=setTimeout(function(){v()},d)}else v()}}function r(){K.abort();L=K=null;P||v()}function y(d,c,e,j){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_(); if(!K){_$_$endif_$_();var m={},i=A.length;m.object=d;m.signal=c;m.event=e;m.feedback=j;A[i]=B(m,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},n.updateDelay);ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>n.updateDelay){clearTimeout(Q);v()}}function F(d){ea=d;q._p_.comm.responseReceived(d)}function v(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location= document.location;ja=true}}else{var d,c,e,j="&rand="+Math.round(Math.random(ka)*1E5);if(A.length>0){d=S();c=d.feedback?setTimeout(k,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}K=q._p_.comm.sendUpdate(la+j,"request=jsupdate&"+d.result+"&ackId="+ea,c,ea,-1);L=e?setTimeout(r,_$_SERVER_PUSH_TIMEOUT_$_):null}}function I(d,c){var e={},j=A.length;e.signal="user";e.id=typeof d==="string"?d:d==q?"app":d.id;if(typeof c==="object"){e.name=c.name;e.object=c.eventObject;e.event= c.event}else{e.name=c;e.object=e.event=null}e.args=[];for(var m=2;m<arguments.length;++m){var i=arguments[m];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[m-2]=i}e.feedback=true;A[j]=B(e,j);x()}function U(d,c,e){var j=function(){var i=n.getElement(d);if(i){if(e)i.timer=setTimeout(i.tm,c);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},m=n.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function M(d,c){setTimeout(function(){if(R[d]===true)c();else R[d]=c},20)}function G(d){if(R[d]!== true){typeof R[d]!=="undefined"&&R[d]();R[d]=true}}function C(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(j){e=false}if(e)G(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){G(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState=="loaded")G(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function H(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c= 0;c<d.length;c++)this.preload(d[c])}function l(d){if(d.ieAlternativeExecuted)return"0";q.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}function p(d){window.onbeforeunload=d&&d!=""?function(c){if(c=c||window.event)c.returnValue=d;return d}:null}var q=this,n=_$_WT_CLASS_$_,N=0,J=0,O=null,aa={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},V=_$_FORM_OBJECTS_$_;n.button=function(d){return d.which? d.which==3?4:d.which==2?2:1:n.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var da=[],A=[],la=_$_RELATIVE_URL_$_,P=false,ja=false,ga=false,K=null,L=null,W=null,X=0,ha=false,Q=null,ba=null,ka=(new Date).getTime(),ia,ea=0,R={};H.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=H.prototype.onload;c.onerror=H.prototype.onload;c.onabort=H.prototype.onload;c.imagePreloader=this;c.src=d};H.prototype.onload= function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};n.history.register(_$_INITIAL_HASH_$_,t);window.onunload=function(){q.emit(q,"Wt-unload");v()};this._p_={ieAlternative:l,loadScript:C,onJsLoad:M,setTitle:b,update:y,quit:Y,setFormObjects:function(d){V=d},saveDownPos:w,addTimerEvent:U,load:f,handleResponse:u,setServerPush:o,dragStart:ca,dragDrag:g,dragEnd:Z,capture:n.capture,onHashChange:t,setHash:D,ImagePreloader:H,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:F, setCloseMessage:p};this.WT=_$_WT_CLASS_$_;this.emit=I}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=n.pageCoordinates(d);N=d.x;J=d.y}function t(){var d=n.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){y(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;n.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,c){var e=aa;e.object=n.getElement(d.getAttribute("dwid"));if(e.object== null)return true;e.sourceId=d.getAttribute("dsid");e.objectPrevStyle={position:e.object.style.position,display:e.object.style.display,left:e.object.style.left,top:e.object.style.top,className:e.object.className};e.object.parentNode.removeChild(e.object);e.object.style.position="absolute";e.object.className="";document.body.appendChild(e.object);n.capture(null);n.capture(e.object);e.object.onmousemove=g;e.object.onmouseup=Z;e.offsetX=-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=d.getAttribute("dmt"); e.xy=n.pageCoordinates(c);n.cancelEvent(c);return false}function g(d){if(aa.object!=null){var c=aa,e=n.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=e.x&&c.xy.y!=e.y)c.object.style.display="";c.object.style.left=e.x-c.offsetX+"px";c.object.style.top=e.y-c.offsetY+"px";e=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":",i=null;for(c.dropTarget=null;j;){i=j.getAttribute("amts");if(i!=null&&i.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||n.hasTag(j,"HTML"))break}if(c.dropTarget!= e){if(c.dropTarget){j=i.indexOf(m)+m.length;var s=i.indexOf("}",j);i=i.substring(j,s);if(i.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+i}}else c.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",c.object,d,"",m);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";n.cancelEvent(d); return false}return true}function Z(d){n.capture(null);var c=aa;if(c.object){if(c.dropTarget){var e=c.dropTarget.getAttribute("dos");if(e!=null)c.dropTarget.className=e;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):I(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top= c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function B(d,c){var e,j;j=d.event;c=c>0?"&e"+c:"&";e=c+"signal="+d.signal;if(d.id){e+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)e+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var i=0;i<V.length;++i){var s=n.getElement(V[i]),z=null,fa;if(s!=null){if(s.type=="select-multiple"){m=0;for(fa=s.options.length;m<fa;m++)if(s.options[m].selected)e+=c+V[i]+"="+encodeURIComponent(s.options[m].value)}else if(s.type== "checkbox"||s.type=="radio")if(s.indeterminate||s.style.opacity=="0.5")z="i";else{if(s.checked)z=s.value}else if(s.type!="file"){z=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(n.hasFocus(s)){m=n.getSelectionRange(s);e+=c+"selstart="+m.start+c+"selend="+m.end}}if(z!=null)e+=c+V[i]+"="+encodeURIComponent(z)}}if(document.activeElement)e+=c+"focus="+document.activeElement.id;if(O!=null)e+=c+"_="+encodeURIComponent(unescape(O));if(!j){d.data=e;return d}for(i=j.target||j.srcElement;!i.id&&i.parentNode;)i= i.parentNode;if(i.id)e+=c+"tid="+i.id;try{e+=c+"type="+j.type}catch(ma){}if(j.clientX||j.clientY)e+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;z=n.pageCoordinates(j);i=z.x;z=z.y;if(i||z){e+=c+"documentX="+i+c+"documentY="+z;e+=c+"dragdX="+(i-N)+c+"dragdY="+(z-J);m=0;if(j.wheelDelta)m=j.wheelDelta>0?1:-1;else if(j.detail)m=j.detail<0?1:-1;e+=c+"wheel="+m}if(j.screenX||j.screenY)e+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=n.widgetPageCoordinates(d.object); e+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(i-m.x)+c+"widgetY="+(z-m.y)}i=n.button(j);if(!i)if(n.buttons&1)i=1;else if(n.buttons&2)i=2;else if(n.buttons&4)i=4;e+=c+"button="+i;if(typeof j.keyCode!=="undefined")e+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=c+"charCode="+j.charCode;if(j.altKey)e+=c+"altKey=1";if(j.ctrlKey)e+=c+"ctrlKey=1";if(j.metaKey)e+=c+"metaKey=1";if(j.shiftKey)e+= c+"shiftKey=1";d.data=e;return d}function S(){for(var d="",c=false,e=0;e<A.length;++e){c=c||A[e].feedback;d+=A[e].data}da=A;A=[];return{feedback:c,result:d}}function Y(){P=true;if(W){clearTimeout(W);W=null}var d=$("#Wt-timers");d.size()>0&&n.setHtml(d.get(0),"",false)}function a(){n.history._initTimeout();X==0&&y(null,"none",null,false);W=setTimeout(a,_$_KEEP_ALIVE_$_000)}function b(d){if(!n.isIEMobile)document.title=d}function f(){if(!document.activeElement){function d(e){if(e&&e.target)document.activeElement= e.target==document?null:e.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}n.history._initialize();T();if(!ga){ga=true;_$_ONLOAD_$_();P||(W=setTimeout(a,_$_KEEP_ALIVE_$_000))}}function h(d){clearTimeout(d);document.body.style.cursor="auto";if(ba!=null){try{ba()}catch(c){}ba=null}}function k(){document.body.style.cursor="wait";ba=hideLoadingIndicator;showLoadingIndicator()}function o(d){ha=d}function E(d){if(d){d="(function() {"+ d+"})();";window.execScript?window.execScript(d):window.eval(d)}q._p_.autoJavaScript()}function u(d,c,e){if(!P){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&h(e)}else A=da.concat(A);da=[];if(L){clearTimeout(L);L=null}K=null;if(d>0)++X;else X=0;if(!P)if(ha||A.length>0)if(d==1){d=Math.min(12E4,Math.exp(X)*500);Q=setTimeout(function(){v()},d)}else v()}}function r(){K.abort(); L=K=null;P||v()}function y(d,c,e,j){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var m={},i=A.length;m.object=d;m.signal=c;m.event=e;m.feedback=j;A[i]=B(m,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},n.updateDelay);ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>n.updateDelay){clearTimeout(Q); v()}}function F(d){ea=d;q._p_.comm.responseReceived(d)}function v(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,e,j="&rand="+Math.round(Math.random(ka)*1E5);if(A.length>0){d=S();c=d.feedback?setTimeout(k,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}K=q._p_.comm.sendUpdate(la+j,"request=jsupdate&"+d.result+"&ackId="+ea,c,ea,-1);L=e?setTimeout(r,_$_SERVER_PUSH_TIMEOUT_$_): null}}function I(d,c){var e={},j=A.length;e.signal="user";e.id=typeof d==="string"?d:d==q?"app":d.id;if(typeof c==="object"){e.name=c.name;e.object=c.eventObject;e.event=c.event}else{e.name=c;e.object=e.event=null}e.args=[];for(var m=2;m<arguments.length;++m){var i=arguments[m];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[m-2]=i}e.feedback=true;A[j]=B(e,j);x()}function U(d,c,e){var j=function(){var i=n.getElement(d);if(i){if(e)i.timer=setTimeout(i.tm,c);else{i.timer=null;i.tm= null}i.onclick&&i.onclick()}},m=n.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function M(d,c){setTimeout(function(){if(R[d]===true)c();else R[d]=c},20)}function G(d){if(R[d]!==true){typeof R[d]!=="undefined"&&R[d]();R[d]=true}}function C(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(j){e=false}if(e)G(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){G(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState== "loaded")G(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function H(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}function l(d){if(d.ieAlternativeExecuted)return"0";q.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}function p(d){window.onbeforeunload=d&&d!=""?function(c){if(c=c||window.event)c.returnValue=d;return d}:null}var q=this,n=_$_WT_CLASS_$_,N=0, J=0,O=null,aa={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},V=_$_FORM_OBJECTS_$_;n.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:n.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var da=[],A=[],la=_$_RELATIVE_URL_$_,P=false,ja=false,ga=false,K=null,L=null,W=null,X=0,ha=false,Q=null,ba=null,ka=(new Date).getTime(),ia,ea=0,R={};H.prototype.preload= function(d){var c=new Image;this.images.push(c);c.onload=H.prototype.onload;c.onerror=H.prototype.onload;c.onabort=H.prototype.onload;c.imagePreloader=this;c.src=d};H.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};n.history.register(_$_INITIAL_HASH_$_,t);window.onunload=function(){q.emit(q,"Wt-unload");v()};this._p_={ieAlternative:l,loadScript:C,onJsLoad:M,setTitle:b,update:y,quit:Y,setFormObjects:function(d){V=d},saveDownPos:w,addTimerEvent:U,load:f,handleResponse:u, setServerPush:o,dragStart:ca,dragDrag:g,dragEnd:Z,capture:n.capture,onHashChange:t,setHash:D,ImagePreloader:H,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:F,setCloseMessage:p};this.WT=_$_WT_CLASS_$_;this.emit=I}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(r){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(r)h(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=n.pageCoordinates(d);N=d.x;J=d.y}function t(){var d=n.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){y(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;n.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,c){var e=aa;e.object=n.getElement(d.getAttribute("dwid"));if(e.object==null)return true;e.sourceId=d.getAttribute("dsid");e.objectPrevStyle={position:e.object.style.position,display:e.object.style.display,left:e.object.style.left,top:e.object.style.top,className:e.object.className};e.object.parentNode.removeChild(e.object);e.object.style.position="absolute";e.object.className="";document.body.appendChild(e.object);n.capture(null);n.capture(e.object);e.object.onmousemove=g;e.object.onmouseup=Z;e.offsetX=-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=d.getAttribute("dmt");e.xy=n.pageCoordinates(c);n.cancelEvent(c);return false}function g(d){if(aa.object!=null){var c=aa,e=n.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=e.x&&c.xy.y!=e.y)c.object.style.display="";c.object.style.left=e.x-c.offsetX+"px";c.object.style.top=e.y-c.offsetY+"px";e=c.dropTarget;var j=d.target||d.srcElement,m="{"+c.mimeType+":",i=null;for(c.dropTarget=null;j;){i=j.getAttribute("amts");if(i!=null&&i.indexOf(m)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||n.hasTag(j,"HTML"))break}if(c.dropTarget!=e){if(c.dropTarget){j=i.indexOf(m)+m.length;var s=i.indexOf("}",j);i=i.substring(j,s);if(i.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+i}}else c.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",c.object,d,"",m);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";n.cancelEvent(d);return false}return true}function Z(d){n.capture(null);var c=aa;if(c.object){if(c.dropTarget){var e=c.dropTarget.getAttribute("dos");if(e!=null)c.dropTarget.className=e;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):I(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function B(d,c){var e,j;j=d.event;c=c>0?"&e"+c:"&";e=c+"signal="+d.signal;if(d.id){e+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)e+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var i=0;i<V.length;++i){var s=n.getElement(V[i]),z=null,fa;if(s!=null){if(s.type=="select-multiple"){m=0;for(fa=s.options.length;m<fa;m++)if(s.options[m].selected)e+=c+V[i]+"="+encodeURIComponent(s.options[m].value)}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate||s.style.opacity=="0.5")z="i";else{if(s.checked)z=s.value}else if(s.type!="file"){z=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(n.hasFocus(s)){m=n.getSelectionRange(s);e+=c+"selstart="+m.start+c+"selend="+m.end}}if(z!=null)e+=c+V[i]+"="+encodeURIComponent(z)}}if(document.activeElement)e+=c+"focus="+document.activeElement.id;if(O!=null)e+=c+"_="+encodeURIComponent(unescape(O));if(!j){d.data=e;return d}for(i=j.target||j.srcElement;!i.id&&i.parentNode;)i=i.parentNode;if(i.id)e+=c+"tid="+i.id;try{e+=c+"type="+j.type}catch(ma){}if(j.clientX||j.clientY)e+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;z=n.pageCoordinates(j);i=z.x;z=z.y;if(i||z){e+=c+"documentX="+i+c+"documentY="+z;e+=c+"dragdX="+(i-N)+c+"dragdY="+(z-J);m=0;if(j.wheelDelta)m=j.wheelDelta>0?1:-1;else if(j.detail)m=j.detail<0?1:-1;e+=c+"wheel="+m}if(j.screenX||j.screenY)e+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=n.widgetPageCoordinates(d.object);e+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(i-m.x)+c+"widgetY="+(z-m.y)}i=n.button(j);if(!i)if(n.buttons&1)i=1;else if(n.buttons&2)i=2;else if(n.buttons&4)i=4;e+=c+"button="+i;if(typeof j.keyCode!=="undefined")e+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=c+"charCode="+j.charCode;if(j.altKey)e+=c+"altKey=1";if(j.ctrlKey)e+=c+"ctrlKey=1";if(j.metaKey)e+=c+"metaKey=1";if(j.shiftKey)e+=c+"shiftKey=1";d.data=e;return d}function S(){for(var d="",c=false,e=0;e<A.length;++e){c=c||A[e].feedback;d+=A[e].data}da=A;A=[];return{feedback:c,result:d}}function Y(){P=true;if(W){clearTimeout(W);W=null}var d=$("#Wt-timers");d.size()>0&&n.setHtml(d.get(0),"",false)}function a(){n.history._initTimeout();X==0&&y(null,"none",null,false);W=setTimeout(a,_$_KEEP_ALIVE_$_000)}function b(d){if(!n.isIEMobile)document.title=d}function f(){if(!document.activeElement){function d(e){if(e&&e.target)document.activeElement=e.target==document?null:e.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}n.history._initialize();T();if(!ga){ga=true;_$_ONLOAD_$_();P||(W=setTimeout(a,_$_KEEP_ALIVE_$_000))}}function h(d){clearTimeout(d);document.body.style.cursor="auto";if(ba!=null){try{ba()}catch(c){}ba=null}}function k(){document.body.style.cursor="wait";ba=hideLoadingIndicator;showLoadingIndicator()}function o(d){ha=d}function E(d){if(d){d="(function() {"+d+"})();";window.execScript?window.execScript(d):window.eval(d)}q._p_.autoJavaScript()}function u(d,c,e){if(!P){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(c);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&h(e)}else A=da.concat(A);da=[];if(L){clearTimeout(L);L=null}K=null;if(d>0)++X;else X=0;if(!P)if(ha||A.length>0)if(d==1){d=Math.min(12E4,Math.exp(X)*500);Q=setTimeout(function(){v()},d)}else v()}}function r(){K.abort();L=K=null;P||v()}function y(d,c,e,j){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var m={},i=A.length;m.object=d;m.signal=c;m.event=e;m.feedback=j;A[i]=B(m,i);x();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function x(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){v()},n.updateDelay);ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>n.updateDelay){clearTimeout(Q);v()}}function F(d){ea=d;q._p_.comm.responseReceived(d)}function v(){Q=null;if(P){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,e,j="&rand="+Math.round(Math.random(ka)*1E5);if(A.length>0){d=S();c=d.feedback?setTimeout(k,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}K=q._p_.comm.sendUpdate(la+j,"request=jsupdate&"+d.result+"&ackId="+ea,c,ea,-1);L=e?setTimeout(r,_$_SERVER_PUSH_TIMEOUT_$_):null}}function I(d,c){var e={},j=A.length;e.signal="user";e.id=typeof d==="string"?d:d==q?"app":d.id;if(typeof c==="object"){e.name=c.name;e.object=c.eventObject;e.event=c.event}else{e.name=c;e.object=e.event=null}e.args=[];for(var m=2;m<arguments.length;++m){var i=arguments[m];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[m-2]=i}e.feedback=true;A[j]=B(e,j);x()}function U(d,c,e){var j=function(){var i=n.getElement(d);if(i){if(e)i.timer=setTimeout(i.tm,c);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},m=n.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function M(d,c){setTimeout(function(){if(R[d]===true)c();else R[d]=c},20)}function G(d){if(R[d]!==true){typeof R[d]!=="undefined"&&R[d]();R[d]=true}}function C(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(j){e=false}if(e)G(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){G(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState=="loaded")G(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function H(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}function l(d){if(d.ieAlternativeExecuted)return"0";q.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}function p(d){window.onbeforeunload=d&&d!=""?function(c){if(c=c||window.event)c.returnValue=d;return d}:null}var q=this,n=_$_WT_CLASS_$_,N=0,J=0,O=null,aa={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},V=_$_FORM_OBJECTS_$_;n.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:n.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var da=[],A=[],la=_$_RELATIVE_URL_$_,P=false,ja=false,ga=false,K=null,L=null,W=null,X=0,ha=false,Q=null,ba=null,ka=(new Date).getTime(),ia,ea=0,R={};H.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=H.prototype.onload;c.onerror=H.prototype.onload;c.onabort=H.prototype.onload;c.imagePreloader=this;c.src=d};H.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};n.history.register(_$_INITIAL_HASH_$_,t);window.onunload=function(){q.emit(q,"Wt-unload");v()};this._p_={ieAlternative:l,loadScript:C,onJsLoad:M,setTitle:b,update:y,quit:Y,setFormObjects:function(d){V=d},saveDownPos:w,addTimerEvent:U,load:f,handleResponse:u,setServerPush:o,dragStart:ca,dragDrag:g,dragEnd:Z,capture:n.capture,onHashChange:t,setHash:D,ImagePreloader:H,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:F,setCloseMessage:p};this.WT=_$_WT_CLASS_$_;this.emit=I}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
t&&t.setup&&t.setup(r,true);}};var n={},o=[];return{title:d.lang.div.title,minWidth:400,minHeight:165,contents:[{id:'info',label:d.lang.common.generalTab,title:d.lang.common.generalTab,elements:[{type:'hbox',widths:['50%','50%'],children:[{id:'elementStyle',type:'select',style:'width: 100%;',label:d.lang.div.styleSelectLabel,'default':'',items:[[d.lang.common.notSet,'']],onChange:function(){m.call(this,['info:class','advanced:dir','advanced:style']);},setup:function(p){for(var q in n)n[q].checkElementRemovable(p,true)&&this.setValue(q);},commit:function(p){var q;if(q=this.getValue())n[q].applyToObject(p);}},{id:'class',type:'text',label:d.lang.common.cssClass,'default':''}]}]},{id:'advanced',label:d.lang.common.advancedTab,title:d.lang.common.advancedTab,elements:[{type:'vbox',padding:1,children:[{type:'hbox',widths:['50%','50%'],children:[{type:'text',id:'id',label:d.lang.common.id,'default':''},{type:'text',id:'lang',label:d.lang.link.langCode,'default':''}]},{type:'hbox',children:[{type:'text',id:'style',style:'width: 100%;',label:d.lang.common.cssStyle,'default':'',commit:function(p){var q=this.getValue(),r=[q,p.getAttribute('style')].join(';');q&&p.setAttribute('style',r);}}]},{type:'hbox',children:[{type:'text',id:'title',style:'width: 100%;',label:d.lang.common.advisoryTitle,'default':''}]},{type:'select',id:'dir',style:'width: 100%;',label:d.lang.common.langDir,'default':'',items:[[d.lang.common.notSet,''],[d.lang.common.langDirLtr,'ltr'],[d.lang.common.langDirRtl,'rtl']]}]}]}],onLoad:function(){i.call(this);var p=this,q=this.getContentElement('info','elementStyle');d.getStylesSet(function(r){var s;if(r)for(var t=0;t<r.length;t++){var u=r[t];if(u.element&&u.element=='div'){s=u.name;n[s]=new CKEDITOR.style(u);q.items.push([s,s]);q.add(s,s);}}q[q.items.length>1?'enable':'disable']();setTimeout(function(){q.setup(p._element);},0);});},onShow:function(){if(e=='editdiv'){var p=k(d);p&&this.setupContent(this._element=p);}},onOk:function(){d.fire('saveSnapshot');if(e=='editdiv')o=[this._element];else o=j(d,true);var p=o.length;for(var q=0;q<p;q++){this.commitContent(o[q]);!o[q].getAttribute('style')&&o[q].removeAttribute('style');}d.fire('saveSnapshot');this.hide();},onHide:function(){delete this._element;}};};CKEDITOR.dialog.add('creatediv',function(d){return c(d,'creatediv');});CKEDITOR.dialog.add('editdiv',function(d){return c(d,'editdiv');});})();
t&&t.setup&&t.setup(r,true);}};var n={},o=[];return{title:d.lang.div.title,minWidth:400,minHeight:165,contents:[{id:'info',label:d.lang.common.generalTab,title:d.lang.common.generalTab,elements:[{type:'hbox',widths:['50%','50%'],children:[{id:'elementStyle',type:'select',style:'width: 100%;',label:d.lang.div.styleSelectLabel,'default':'',items:[[d.lang.common.notSet,'']],onChange:function(){m.call(this,['info:class','advanced:dir','advanced:style']);},setup:function(p){for(var q in n)n[q].checkElementRemovable(p,true)&&this.setValue(q);},commit:function(p){var q;if(q=this.getValue()){var r=n[q],s=p.getCustomData('elementStyle')||'';r.applyToObject(p);p.setCustomData('elementStyle',s+r._.definition.attributes.style);}}},{id:'class',type:'text',label:d.lang.common.cssClass,'default':''}]}]},{id:'advanced',label:d.lang.common.advancedTab,title:d.lang.common.advancedTab,elements:[{type:'vbox',padding:1,children:[{type:'hbox',widths:['50%','50%'],children:[{type:'text',id:'id',label:d.lang.common.id,'default':''},{type:'text',id:'lang',label:d.lang.link.langCode,'default':''}]},{type:'hbox',children:[{type:'text',id:'style',style:'width: 100%;',label:d.lang.common.cssStyle,'default':'',commit:function(p){var q=this.getValue()+(p.getCustomData('elementStyle')||'');p.setAttribute('style',q);}}]},{type:'hbox',children:[{type:'text',id:'title',style:'width: 100%;',label:d.lang.common.advisoryTitle,'default':''}]},{type:'select',id:'dir',style:'width: 100%;',label:d.lang.common.langDir,'default':'',items:[[d.lang.common.notSet,''],[d.lang.common.langDirLtr,'ltr'],[d.lang.common.langDirRtl,'rtl']]}]}]}],onLoad:function(){i.call(this);var p=this,q=this.getContentElement('info','elementStyle');d.getStylesSet(function(r){var s;if(r)for(var t=0;t<r.length;t++){var u=r[t];if(u.element&&u.element=='div'){s=u.name;n[s]=new CKEDITOR.style(u);q.items.push([s,s]);q.add(s,s);}}q[q.items.length>1?'enable':'disable']();setTimeout(function(){q.setup(p._element);},0);});},onShow:function(){if(e=='editdiv'){var p=k(d);p&&this.setupContent(this._element=p);}},onOk:function(){if(e=='editdiv')o=[this._element];else o=j(d,true);var p=o.length;for(var q=0;q<p;q++){this.commitContent(o[q]);!o[q].getAttribute('style')&&o[q].removeAttribute('style');}this.hide();},onHide:function(){if(e=='editdiv')this._element.removeCustomData('elementStyle');delete this._element;}};};CKEDITOR.dialog.add('creatediv',function(d){return c(d,'creatediv');});CKEDITOR.dialog.add('editdiv',function(d){return c(d,'editdiv'); });})();
t&&t.setup&&t.setup(r,true);}};var n={},o=[];return{title:d.lang.div.title,minWidth:400,minHeight:165,contents:[{id:'info',label:d.lang.common.generalTab,title:d.lang.common.generalTab,elements:[{type:'hbox',widths:['50%','50%'],children:[{id:'elementStyle',type:'select',style:'width: 100%;',label:d.lang.div.styleSelectLabel,'default':'',items:[[d.lang.common.notSet,'']],onChange:function(){m.call(this,['info:class','advanced:dir','advanced:style']);},setup:function(p){for(var q in n)n[q].checkElementRemovable(p,true)&&this.setValue(q);},commit:function(p){var q;if(q=this.getValue())n[q].applyToObject(p);}},{id:'class',type:'text',label:d.lang.common.cssClass,'default':''}]}]},{id:'advanced',label:d.lang.common.advancedTab,title:d.lang.common.advancedTab,elements:[{type:'vbox',padding:1,children:[{type:'hbox',widths:['50%','50%'],children:[{type:'text',id:'id',label:d.lang.common.id,'default':''},{type:'text',id:'lang',label:d.lang.link.langCode,'default':''}]},{type:'hbox',children:[{type:'text',id:'style',style:'width: 100%;',label:d.lang.common.cssStyle,'default':'',commit:function(p){var q=this.getValue(),r=[q,p.getAttribute('style')].join(';');q&&p.setAttribute('style',r);}}]},{type:'hbox',children:[{type:'text',id:'title',style:'width: 100%;',label:d.lang.common.advisoryTitle,'default':''}]},{type:'select',id:'dir',style:'width: 100%;',label:d.lang.common.langDir,'default':'',items:[[d.lang.common.notSet,''],[d.lang.common.langDirLtr,'ltr'],[d.lang.common.langDirRtl,'rtl']]}]}]}],onLoad:function(){i.call(this);var p=this,q=this.getContentElement('info','elementStyle');d.getStylesSet(function(r){var s;if(r)for(var t=0;t<r.length;t++){var u=r[t];if(u.element&&u.element=='div'){s=u.name;n[s]=new CKEDITOR.style(u);q.items.push([s,s]);q.add(s,s);}}q[q.items.length>1?'enable':'disable']();setTimeout(function(){q.setup(p._element);},0);});},onShow:function(){if(e=='editdiv'){var p=k(d);p&&this.setupContent(this._element=p);}},onOk:function(){d.fire('saveSnapshot');if(e=='editdiv')o=[this._element];else o=j(d,true);var p=o.length;for(var q=0;q<p;q++){this.commitContent(o[q]);!o[q].getAttribute('style')&&o[q].removeAttribute('style');}d.fire('saveSnapshot');this.hide();},onHide:function(){delete this._element;}};};CKEDITOR.dialog.add('creatediv',function(d){return c(d,'creatediv');});CKEDITOR.dialog.add('editdiv',function(d){return c(d,'editdiv');});})();
showLoadingIndicator()}function E(d){ea=d}function q(d){if(d)if(window.execScript)window.execScript(d);else with(window)eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function u(d,c,e){if(!ba){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(h){alert("Wt internal error: "+h+", code: "+h.code+", description: "+h.description)}_$_$endif_$_();e&&l(e)}else z=Z.concat(z);Z=[];if(M){clearTimeout(M);M=null}G=null;if(d>0)++T;else T=0;if(ea||z.length>0)if(d==1){d=Math.min(12E4, Math.exp(T)*500);P=setTimeout(function(){w()},d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);
showLoadingIndicator()}function E(d){ea=d}function q(d){if(d)window.execScript?window.execScript(d):window.eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function u(d,c,e){if(!ba){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(h){alert("Wt internal error: "+h+", code: "+h.code+", description: "+h.description)}_$_$endif_$_();e&&l(e)}else z=Z.concat(z);Z=[];if(M){clearTimeout(M);M=null}G=null;if(d>0)++T;else T=0;if(ea||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(T)* 500);P=setTimeout(function(){w()},d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);
fqstate;b()}}}},getCurrentState:function(){if(!w)return"";return y}}}()}),_$_APP_CLASS_$_=new (function(){function x(d){d=g.pageCoordinates(d);o=d.x;p=d.y}function t(){var d=g.history.getCurrentState();if(s!=d){s=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function C(d){if(s!=d){s=d;g.history.navigate(escape(d))}}function Y(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function k(d,c){var e=J;e.object=g.getElement(d.getAttribute("dwid"));if(e.object==null)return true;e.sourceId=d.getAttribute("dsid");e.objectPrevStyle={position:e.object.style.position,display:e.object.style.display,left:e.object.style.left,top:e.object.style.top,className:e.object.className};e.object.parentNode.removeChild(e.object);e.object.style.position="absolute";e.object.className="";document.body.appendChild(e.object);g.capture(e.object);e.object.onmousemove=U;e.object.onmouseup=D;e.offsetX=-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=d.getAttribute("dmt");e.xy=g.pageCoordinates(c);g.cancelEvent(c);return false}function U(d){if(J.object!=null){var c=J,e=g.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=e.x&&c.xy.y!=e.y)c.object.style.display="";c.object.style.left=e.x-c.offsetX+"px";c.object.style.top=e.y-c.offsetY+"px";e=c.dropTarget;var h=d.target||d.srcElement,i="{"+c.mimeType+":",j=null;for(c.dropTarget=null;h;){j=h.getAttribute("amts");if(j!=null&&j.indexOf(i)!=-1){c.dropTarget=h;break}h=h.parentNode;if(!h.tagName||g.hasTag(h,"HTML"))break}if(c.dropTarget!=e){if(c.dropTarget){h=j.indexOf(i)+i.length;var r=j.indexOf("}",h);j=j.substring(h,r);if(j.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+j}}else c.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",c.object,d,"",i);j=e.getAttribute("dos");if(j!=null)e.className=j}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",i);else c.object.className="Wt-valid-drop";g.cancelEvent(d);return false}return true}function D(d){g.capture(null);var c=J;if(c.object){if(c.dropTarget){var e=c.dropTarget.getAttribute("dos");if(e!=null)c.dropTarget.className=e;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):O(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function R(d,c){var e,h;h=d.event;c=c>0?"&e"+c:"&";e=c+"signal="+d.signal;if(d.id){e+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var i=0;i<d.args.length;++i)e+=c+"a"+i+"="+encodeURIComponent(d.args[i])}for(var j=0;j<B.length;++j){var r=g.getElement(B[j]),v=null,W;if(r!=null){if(r.type=="select-multiple"){i=0;for(W=r.options.length;i<W;i++)if(r.options[i].selected)e+=c+B[j]+"="+encodeURIComponent(r.options[i].value)}else if(g.hasTag(r,"SPAN")){i=0;for(W=r.childNodes.length;i<W;++i)if(r.childNodes[i].type=="checkbox"){i=r.childNodes[i];if(i.style.display=="none")v="indeterminate";else if(i.checked)v=i.value;break}}else if(r.type=="checkbox"||r.type=="radio")if(r.indeterminate)v="indeterminate";else{if(r.checked)v=r.value}else if(r.type!="file")v=$(r).hasClass("Wt-edit-emptyText")?"":""+r.value;if(v!=null)e+=c+B[j]+"="+encodeURIComponent(v)}}if(s!=null)e+=c+"_="+encodeURIComponent(unescape(s));if(!h){d.data=e;return d}for(j=h.target||h.srcElement;!j.id&&j.parentNode;)j=j.parentNode;if(j.id)e+=c+"tid="+j.id;try{e+=c+"type="+h.type}catch(ja){}if(h.clientX||h.clientY)e+=c+"clientX="+h.clientX+c+"clientY="+h.clientY;v=g.pageCoordinates(h);j=v.x;v=v.y;if(j||v){e+=c+"documentX="+j+c+"documentY="+v;e+=c+"dragdX="+(j-o)+c+"dragdY="+(v-p)}if(h.screenX||h.screenY)e+=c+"screenX="+h.screenX+c+"screenY="+h.screenY;if(d.object&&d.object.nodeType!=9){i=g.widgetPageCoordinates(d.object);e+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(j-i.x)+c+"widgetY="+(v-i.y)}if(h.which)e+=c+"right="+(h.which==3);else if(h.button)e+=c+"right="+(h.button==2);if(typeof h.keyCode!=="undefined")e+=c+"keyCode="+h.keyCode;if(typeof h.charCode!=="undefined")e+=c+"charCode="+h.charCode;if(h.altKey)e+=c+"altKey=1";if(h.ctrlKey)e+=c+"ctrlKey=1";if(h.metaKey)e+=c+"metaKey=1";if(h.shiftKey)e+=c+"shiftKey=1";d.data=e;return d}function a(){for(var d="",c=false,e=0;e<z.length;++e){c=c||z[e].feedback;d+=z[e].data}Z=z;z=[];return{feedback:c,result:d}}function b(){g.history._initTimeout();T==0&&A(null,"none",null,false);aa=setTimeout(b,_$_KEEP_ALIVE_$_000)}function f(d){if(!g.isIEMobile)document.title=d}function m(){g.history._initialize();Y();if(!da){da=true;_$_ONLOAD_$_();aa=setTimeout(b,_$_KEEP_ALIVE_$_000)}}function l(d){clearTimeout(d);document.body.style.cursor="auto";if(X!=null){try{X()}catch(c){}X=null}}function n(){document.body.style.cursor="wait";X=hideLoadingIndicator;showLoadingIndicator()}function E(d){ea=d}function q(d){if(d)if(window.execScript)window.execScript(d);else with(window)eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function u(d,c,e){if(!ba){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(h){alert("Wt internal error: "+h+", code: "+h.code+", description: "+h.description)}_$_$endif_$_();e&&l(e)}else z=Z.concat(z);Z=[];if(M){clearTimeout(M);M=null}G=null;if(d>0)++T;else T=0;if(ea||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(T)*500);P=setTimeout(function(){w()},d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);w()}else if((new Date).getTime()-fa>g.updateDelay){clearTimeout(P);w()}}function L(d){ca=d;V._p_.comm.responseReceived(d)}function w(){P=null;if(ba){if(!ga){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ga=true}}else{var d,c,e,h="&rand="+Math.round(Math.random(ha)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(n,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}G=V._p_.comm.sendUpdate(ia+h,"request=jsupdate&"+d.result+"&ackId="+ca,c,ca,-1);M=e?setTimeout(H,_$_SERVER_PUSH_TIMEOUT_$_):null}}function O(d,c){var e={},h=z.length;e.signal="user";e.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){e.name=c.name;e.object=c.eventObject;e.event=c.event}else{e.name=c;e.object=e.event=null}e.args=[];for(var i=2;i<arguments.length;++i){var j=arguments[i];j=j===false?0:j===true?1:j.toDateString?j.toDateString():j;e.args[i-2]=j}e.feedback=true;z[h]=R(e,h);F()}function N(d,c,e){var h=function(){var j=g.getElement(d);if(j){if(e)j.timer=setTimeout(j.tm,c);else{j.timer=null;j.tm=null}j.onclick()}},i=g.getElement(d);i.timer=setTimeout(h,c);i.tm=h}function I(d,c){setTimeout(function(){if(Q[d]===true)c();else Q[d]=c},20)}function y(d){if(Q[d]!==true){typeof Q[d]!=="undefined"&&Q[d]();Q[d]=true}}function S(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(h){e=false}if(e)y(d);else{var i=document.createElement("script");i.setAttribute("src",d);i.onload=function(){y(d)};i.onreadystatechange=function(){if(i.readyState=="complete"||i.readyState=="loaded")y(d)};document.getElementsByTagName("head")[0].appendChild(i)}}function K(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}var V=this,g=_$_WT_CLASS_$_,o=0,p=0,s=null,J={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},B=_$_FORM_OBJECTS_$_,Z=[],z=[],ia=_$_RELATIVE_URL_$_,ba=false,ga=false,da=false,G=null,M=null,aa=null,T=0,ea=false,P=null,X=null,ha=(new Date).getTime(),fa,ca=0,Q={};K.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=K.prototype.onload;c.onerror=K.prototype.onload;c.onabort=K.prototype.onload;c.imagePreloader=this;c.src=d};K.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};g.history.register(_$_INITIAL_HASH_$_,t);this._p_={loadScript:S,onJsLoad:I,setTitle:f,update:A,quit:function(){ba=true;clearTimeout(aa)},setFormObjects:function(d){B=d},saveDownPos:x,addTimerEvent:N,load:m,handleResponse:u,setServerPush:E,dragStart:k,dragDrag:U,dragEnd:D,capture:g.capture,onHashChange:t,setHash:C,ImagePreloader:K,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:L};this.WT=_$_WT_CLASS_$_;this.emit=O}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
setFormObjects:function(d){B=d},saveDownPos:x,addTimerEvent:N,load:m,handleResponse:u,setServerPush:E,dragStart:k,dragDrag:U,dragEnd:D,capture:g.capture,onHashChange:t,setHash:C,ImagePreloader:K,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:L};this.WT=_$_WT_CLASS_$_;this.emit=O}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
setFormObjects:function(d){B=d},saveDownPos:x,addTimerEvent:N,load:m,handleResponse:u,setServerPush:E,dragStart:k,dragDrag:U,dragEnd:D,capture:g.capture,onHashChange:t,setHash:C,ImagePreloader:K,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:L};this.WT=_$_WT_CLASS_$_;this.emit=O}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
fqstate;b()}}}},getCurrentState:function(){if(!w)return"";return y}}}()}),_$_APP_CLASS_$_=new (function(){function x(d){d=g.pageCoordinates(d);o=d.x;p=d.y}function t(){var d=g.history.getCurrentState();if(s!=d){s=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function C(d){if(s!=d){s=d;g.history.navigate(escape(d))}}function Y(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function k(d,c){var e=J;e.object=g.getElement(d.getAttribute("dwid"));if(e.object==null)return true;e.sourceId=d.getAttribute("dsid");e.objectPrevStyle={position:e.object.style.position,display:e.object.style.display,left:e.object.style.left,top:e.object.style.top,className:e.object.className};e.object.parentNode.removeChild(e.object);e.object.style.position="absolute";e.object.className="";document.body.appendChild(e.object);g.capture(e.object);e.object.onmousemove=U;e.object.onmouseup=D;e.offsetX=-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=d.getAttribute("dmt");e.xy=g.pageCoordinates(c);g.cancelEvent(c);return false}function U(d){if(J.object!=null){var c=J,e=g.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=e.x&&c.xy.y!=e.y)c.object.style.display="";c.object.style.left=e.x-c.offsetX+"px";c.object.style.top=e.y-c.offsetY+"px";e=c.dropTarget;var h=d.target||d.srcElement,i="{"+c.mimeType+":",j=null;for(c.dropTarget=null;h;){j=h.getAttribute("amts");if(j!=null&&j.indexOf(i)!=-1){c.dropTarget=h;break}h=h.parentNode;if(!h.tagName||g.hasTag(h,"HTML"))break}if(c.dropTarget!=e){if(c.dropTarget){h=j.indexOf(i)+i.length;var r=j.indexOf("}",h);j=j.substring(h,r);if(j.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+j}}else c.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",c.object,d,"",i);j=e.getAttribute("dos");if(j!=null)e.className=j}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",i);else c.object.className="Wt-valid-drop";g.cancelEvent(d);return false}return true}function D(d){g.capture(null);var c=J;if(c.object){if(c.dropTarget){var e=c.dropTarget.getAttribute("dos");if(e!=null)c.dropTarget.className=e;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):O(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function R(d,c){var e,h;h=d.event;c=c>0?"&e"+c:"&";e=c+"signal="+d.signal;if(d.id){e+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var i=0;i<d.args.length;++i)e+=c+"a"+i+"="+encodeURIComponent(d.args[i])}for(var j=0;j<B.length;++j){var r=g.getElement(B[j]),v=null,W;if(r!=null){if(r.type=="select-multiple"){i=0;for(W=r.options.length;i<W;i++)if(r.options[i].selected)e+=c+B[j]+"="+encodeURIComponent(r.options[i].value)}else if(g.hasTag(r,"SPAN")){i=0;for(W=r.childNodes.length;i<W;++i)if(r.childNodes[i].type=="checkbox"){i=r.childNodes[i];if(i.style.display=="none")v="indeterminate";else if(i.checked)v=i.value;break}}else if(r.type=="checkbox"||r.type=="radio")if(r.indeterminate)v="indeterminate";else{if(r.checked)v=r.value}else if(r.type!="file")v=$(r).hasClass("Wt-edit-emptyText")?"":""+r.value;if(v!=null)e+=c+B[j]+"="+encodeURIComponent(v)}}if(s!=null)e+=c+"_="+encodeURIComponent(unescape(s));if(!h){d.data=e;return d}for(j=h.target||h.srcElement;!j.id&&j.parentNode;)j=j.parentNode;if(j.id)e+=c+"tid="+j.id;try{e+=c+"type="+h.type}catch(ja){}if(h.clientX||h.clientY)e+=c+"clientX="+h.clientX+c+"clientY="+h.clientY;v=g.pageCoordinates(h);j=v.x;v=v.y;if(j||v){e+=c+"documentX="+j+c+"documentY="+v;e+=c+"dragdX="+(j-o)+c+"dragdY="+(v-p)}if(h.screenX||h.screenY)e+=c+"screenX="+h.screenX+c+"screenY="+h.screenY;if(d.object&&d.object.nodeType!=9){i=g.widgetPageCoordinates(d.object);e+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(j-i.x)+c+"widgetY="+(v-i.y)}if(h.which)e+=c+"right="+(h.which==3);else if(h.button)e+=c+"right="+(h.button==2);if(typeof h.keyCode!=="undefined")e+=c+"keyCode="+h.keyCode;if(typeof h.charCode!=="undefined")e+=c+"charCode="+h.charCode;if(h.altKey)e+=c+"altKey=1";if(h.ctrlKey)e+=c+"ctrlKey=1";if(h.metaKey)e+=c+"metaKey=1";if(h.shiftKey)e+=c+"shiftKey=1";d.data=e;return d}function a(){for(var d="",c=false,e=0;e<z.length;++e){c=c||z[e].feedback;d+=z[e].data}Z=z;z=[];return{feedback:c,result:d}}function b(){g.history._initTimeout();T==0&&A(null,"none",null,false);aa=setTimeout(b,_$_KEEP_ALIVE_$_000)}function f(d){if(!g.isIEMobile)document.title=d}function m(){g.history._initialize();Y();if(!da){da=true;_$_ONLOAD_$_();aa=setTimeout(b,_$_KEEP_ALIVE_$_000)}}function l(d){clearTimeout(d);document.body.style.cursor="auto";if(X!=null){try{X()}catch(c){}X=null}}function n(){document.body.style.cursor="wait";X=hideLoadingIndicator;showLoadingIndicator()}function E(d){ea=d}function q(d){if(d)if(window.execScript)window.execScript(d);else with(window)eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function u(d,c,e){if(!ba){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(h){alert("Wt internal error: "+h+", code: "+h.code+", description: "+h.description)}_$_$endif_$_();e&&l(e)}else z=Z.concat(z);Z=[];if(M){clearTimeout(M);M=null}G=null;if(d>0)++T;else T=0;if(ea||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(T)*500);P=setTimeout(function(){w()},d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);w()}else if((new Date).getTime()-fa>g.updateDelay){clearTimeout(P);w()}}function L(d){ca=d;V._p_.comm.responseReceived(d)}function w(){P=null;if(ba){if(!ga){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ga=true}}else{var d,c,e,h="&rand="+Math.round(Math.random(ha)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(n,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}G=V._p_.comm.sendUpdate(ia+h,"request=jsupdate&"+d.result+"&ackId="+ca,c,ca,-1);M=e?setTimeout(H,_$_SERVER_PUSH_TIMEOUT_$_):null}}function O(d,c){var e={},h=z.length;e.signal="user";e.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){e.name=c.name;e.object=c.eventObject;e.event=c.event}else{e.name=c;e.object=e.event=null}e.args=[];for(var i=2;i<arguments.length;++i){var j=arguments[i];j=j===false?0:j===true?1:j.toDateString?j.toDateString():j;e.args[i-2]=j}e.feedback=true;z[h]=R(e,h);F()}function N(d,c,e){var h=function(){var j=g.getElement(d);if(j){if(e)j.timer=setTimeout(j.tm,c);else{j.timer=null;j.tm=null}j.onclick()}},i=g.getElement(d);i.timer=setTimeout(h,c);i.tm=h}function I(d,c){setTimeout(function(){if(Q[d]===true)c();else Q[d]=c},20)}function y(d){if(Q[d]!==true){typeof Q[d]!=="undefined"&&Q[d]();Q[d]=true}}function S(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(h){e=false}if(e)y(d);else{var i=document.createElement("script");i.setAttribute("src",d);i.onload=function(){y(d)};i.onreadystatechange=function(){if(i.readyState=="complete"||i.readyState=="loaded")y(d)};document.getElementsByTagName("head")[0].appendChild(i)}}function K(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}var V=this,g=_$_WT_CLASS_$_,o=0,p=0,s=null,J={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},B=_$_FORM_OBJECTS_$_,Z=[],z=[],ia=_$_RELATIVE_URL_$_,ba=false,ga=false,da=false,G=null,M=null,aa=null,T=0,ea=false,P=null,X=null,ha=(new Date).getTime(),fa,ca=0,Q={};K.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=K.prototype.onload;c.onerror=K.prototype.onload;c.onabort=K.prototype.onload;c.imagePreloader=this;c.src=d};K.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};g.history.register(_$_INITIAL_HASH_$_,t);this._p_={loadScript:S,onJsLoad:I,setTitle:f,update:A,quit:function(){ba=true;clearTimeout(aa)},setFormObjects:function(d){B=d},saveDownPos:x,addTimerEvent:N,load:m,handleResponse:u,setServerPush:E,dragStart:k,dragDrag:U,dragEnd:D,capture:g.capture,onHashChange:t,setHash:C,ImagePreloader:K,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:L};this.WT=_$_WT_CLASS_$_;this.emit=O}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
if(t)m(fqstate);else{location.hash=fqstate;if(r){A[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!E)return"";return z}}}()}),_$_APP_CLASS_$_=new (function(){function v(d){d=n.pageCoordinates(d);y=d.x;M=d.y}function s(){var d=n.history.getCurrentState();if(w!=d){w=d;setTimeout(function(){H(null,"hash",null,true)},1)}}function F(d){if(w!=d){w=d;n.history.navigate(escape(d))}}function k(){window.onresize=function(){C()};document.body.ondragstart=function(){return false}}function G(d, c){var e=V;e.object=n.getElement(d.getAttribute("dwid"));if(e.object==null)return true;e.sourceId=d.getAttribute("dsid");e.objectPrevStyle={position:e.object.style.position,display:e.object.style.display,left:e.object.style.left,top:e.object.style.top,className:e.object.className};e.object.parentNode.removeChild(e.object);e.object.style.position="absolute";e.object.className="";document.body.appendChild(e.object);n.capture(e.object);e.object.onmousemove=P;e.object.onmouseup=a;e.offsetX=-4;e.offsetY= -4;e.dropTarget=null;e.mimeType=d.getAttribute("dmt");e.xy=n.pageCoordinates(c);n.cancelEvent(c);return false}function P(d){if(V.object!=null){var c=V,e=n.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=e.x&&c.xy.y!=e.y)c.object.style.display="";c.object.style.left=e.x-c.offsetX+"px";c.object.style.top=e.y-c.offsetY+"px";e=c.dropTarget;var h=d.target||d.srcElement,i="{"+c.mimeType+":",j=null;for(c.dropTarget=null;h;){j=h.getAttribute("amts");if(j!=null&&j.indexOf(i)!=-1){c.dropTarget=h; break}h=h.parentNode;if(!h.tagName||n.hasTag(h,"HTML"))break}if(c.dropTarget!=e){if(c.dropTarget){h=j.indexOf(i)+i.length;var q=j.indexOf("}",h);j=j.substring(h,q);if(j.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+j}}else c.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",c.object,d,"",i);j=e.getAttribute("dos");if(j!=null)e.className=j}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag", c.object,d,"",i);else c.object.className="Wt-valid-drop";n.cancelEvent(d);return false}return true}function a(d){n.capture(null);var c=V;if(c.object){if(c.dropTarget){var e=c.dropTarget.getAttribute("dos");if(e!=null)c.dropTarget.className=e;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):I(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display; c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function b(d,c){var e,h;h=d.event;c=c>0?"&e"+c:"&";e=c+"signal="+d.signal;if(d.id){e+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var i=0;i<d.args.length;++i)e+=c+"a"+i+"="+encodeURIComponent(d.args[i])}for(var j=0;j<T.length;++j){var q=n.getElement(T[j]),u=null,W;if(q!=null){if(q.type=="select-multiple"){i=0;for(W=q.options.length;i< W;i++)if(q.options[i].selected)e+=c+T[j]+"="+encodeURIComponent(q.options[i].value)}else if(n.hasTag(q,"SPAN")){i=0;for(W=q.childNodes.length;i<W;++i)if(q.childNodes[i].type=="checkbox"){i=q.childNodes[i];if(i.style.display=="none")u="indeterminate";else if(i.checked)u=i.value;break}}else if(q.type=="checkbox"||q.type=="radio")if(q.indeterminate)u="indeterminate";else{if(q.checked)u=q.value}else if(q.type!="file")u=$(q).hasClass("Wt-edit-emptyText")?"":""+q.value;if(u!=null)e+=c+T[j]+"="+encodeURIComponent(u)}}if(w!= null)e+=c+"_="+encodeURIComponent(unescape(w));if(!h){d.data=e;return d}for(j=h.target||h.srcElement;!j.id&&j.parentNode;)j=j.parentNode;if(j.id)e+=c+"tid="+j.id;try{e+=c+"type="+h.type}catch(ja){}if(h.clientX||h.clientY)e+=c+"clientX="+h.clientX+c+"clientY="+h.clientY;u=n.pageCoordinates(h);j=u.x;u=u.y;if(j||u){e+=c+"documentX="+j+c+"documentY="+u;e+=c+"dragdX="+(j-y)+c+"dragdY="+(u-M)}if(h.screenX||h.screenY)e+=c+"screenX="+h.screenX+c+"screenY="+h.screenY;if(d.object&&d.object.nodeType!=9){i=n.widgetPageCoordinates(d.object); e+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(j-i.x)+c+"widgetY="+(u-i.y)}if(h.which)e+=c+"right="+(h.which==3);else if(h.button)e+=c+"right="+(h.button==2);if(typeof h.keyCode!=="undefined")e+=c+"keyCode="+h.keyCode;if(typeof h.charCode!=="undefined")e+=c+"charCode="+h.charCode;if(h.altKey)e+=c+"altKey=1";if(h.ctrlKey)e+=c+"ctrlKey=1";if(h.metaKey)e+=c+"metaKey=1";if(h.shiftKey)e+=c+"shiftKey=1"; d.data=e;return d}function f(){for(var d="",c=false,e=0;e<x.length;++e){c=c||x[e].feedback;d+=x[e].data}Z=x;x=[];return{feedback:c,result:d}}function m(){n.history._initTimeout();U==0&&H(null,"none",null,false);aa=setTimeout(m,_$_KEEP_ALIVE_$_000)}function l(d){if(!n.isIEMobile)document.title=d}function o(){n.history._initialize();k();if(!da){da=true;_$_ONLOAD_$_();aa=setTimeout(m,_$_KEEP_ALIVE_$_000)}}function B(d){clearTimeout(d);document.body.style.cursor="auto";if(X!=null){try{X()}catch(c){}X= null}}function r(){document.body.style.cursor="wait";X=hideLoadingIndicator;showLoadingIndicator()}function t(d){ea=d}function C(d){if(d)if(window.execScript)window.execScript(d);else with(window)eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(d,c,e){if(!ba){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();C(c);_$_$ifnot_DEBUG_$_()}catch(h){alert("Wt internal error: "+h+", code: "+h.code+", description: "+h.description)}_$_$endif_$_();e&&B(e)}else x=Z.concat(x);Z=[];if(L){clearTimeout(L); L=null}J=null;if(d>0)++U;else U=0;if(ea||x.length>0)if(d==1){d=Math.min(12E4,Math.exp(U)*500);N=setTimeout(function(){A()},d)}else A()}}function K(){J.abort();L=J=null;A()}function H(d,c,e,h){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var i={},j=x.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;x[j]=b(i,j);E();C();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function E(){if(J!=null&&L!=null){clearTimeout(L);J.abort();J=null}if(J==null)if(N== null){N=setTimeout(function(){A()},n.updateDelay);fa=(new Date).getTime()}else if(U){clearTimeout(N);A()}else if((new Date).getTime()-fa>n.updateDelay){clearTimeout(N);A()}}function R(d){ca=d;p._p_.comm.responseReceived(d)}function A(){N=null;if(ba){if(!ga){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ga=true}}else{var d,c,e,h="&rand="+Math.round(Math.random(ha)*1E5);if(x.length>0){d=f();c=d.feedback?setTimeout(r,_$_INDICATOR_TIMEOUT_$_):null; e=false}else{d={result:"signal=poll"};c=null;e=true}J=p._p_.comm.sendUpdate(ia+h,"request=jsupdate&"+d.result+"&ackId="+ca,c,ca,-1);L=e?setTimeout(K,_$_SERVER_PUSH_TIMEOUT_$_):null}}function I(d,c){var e={},h=x.length;e.signal="user";e.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){e.name=c.name;e.object=c.eventObject;e.event=c.event}else{e.name=c;e.object=e.event=null}e.args=[];for(var i=2;i<arguments.length;++i){var j=arguments[i];j=j===false?0:j===true?1:j.toDateString? j.toDateString():j;e.args[i-2]=j}e.feedback=true;x[h]=b(e,h);E()}function z(d,c,e){var h=function(){var j=n.getElement(d);if(j){if(e)j.timer=setTimeout(j.tm,c);else{j.timer=null;j.tm=null}j.onclick()}},i=n.getElement(d);i.timer=setTimeout(h,c);i.tm=h}function Q(d,c){setTimeout(function(){if(O[d]===true)c();else O[d]=c},20)}function S(d){if(O[d]!==true){typeof O[d]!=="undefined"&&O[d]();O[d]=true}}function Y(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(h){e=false}if(e)S(d); else{var i=document.createElement("script");i.setAttribute("src",d);i.onload=function(){S(d)};i.onreadystatechange=function(){if(i.readyState=="complete"||i.readyState=="loaded")S(d)};document.getElementsByTagName("head")[0].appendChild(i)}}function g(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}var p=this,n=_$_WT_CLASS_$_,y=0,M=0,w=null,V={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null, dropTarget:null,objectPrevStyle:null,xy:null},T=_$_FORM_OBJECTS_$_,Z=[],x=[],ia=_$_RELATIVE_URL_$_,ba=false,ga=false,da=false,J=null,L=null,aa=null,U=0,ea=false,N=null,X=null,ha=(new Date).getTime(),fa,ca=0,O={};g.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=g.prototype.onload;c.onerror=g.prototype.onload;c.onabort=g.prototype.onload;c.imagePreloader=this;c.src=d};g.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};n.history.register(_$_INITIAL_HASH_$_, s);this._p_={loadScript:Y,onJsLoad:Q,setTitle:l,update:H,quit:function(){ba=true;clearTimeout(aa)},setFormObjects:function(d){T=d},saveDownPos:v,addTimerEvent:z,load:o,handleResponse:D,setServerPush:t,dragStart:G,dragDrag:P,dragEnd:a,capture:n.capture,onHashChange:s,setHash:F,ImagePreloader:g,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:R};this.WT=_$_WT_CLASS_$_;this.emit=I}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
return y}}}()}),_$_APP_CLASS_$_=new (function(){function x(d){d=g.pageCoordinates(d);o=d.x;p=d.y}function t(){var d=g.history.getCurrentState();if(s!=d){s=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function C(d){if(s!=d){s=d;g.history.navigate(escape(d))}}function Y(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function k(d,c){var e=J;e.object=g.getElement(d.getAttribute("dwid"));if(e.object==null)return true;e.sourceId=d.getAttribute("dsid");e.objectPrevStyle= {position:e.object.style.position,display:e.object.style.display,left:e.object.style.left,top:e.object.style.top,className:e.object.className};e.object.parentNode.removeChild(e.object);e.object.style.position="absolute";e.object.className="";document.body.appendChild(e.object);g.capture(e.object);e.object.onmousemove=U;e.object.onmouseup=D;e.offsetX=-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=d.getAttribute("dmt");e.xy=g.pageCoordinates(c);g.cancelEvent(c);return false}function U(d){if(J.object!= null){var c=J,e=g.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=e.x&&c.xy.y!=e.y)c.object.style.display="";c.object.style.left=e.x-c.offsetX+"px";c.object.style.top=e.y-c.offsetY+"px";e=c.dropTarget;var h=d.target||d.srcElement,i="{"+c.mimeType+":",j=null;for(c.dropTarget=null;h;){j=h.getAttribute("amts");if(j!=null&&j.indexOf(i)!=-1){c.dropTarget=h;break}h=h.parentNode;if(!h.tagName||g.hasTag(h,"HTML"))break}if(c.dropTarget!=e){if(c.dropTarget){h=j.indexOf(i)+i.length;var r=j.indexOf("}", h);j=j.substring(h,r);if(j.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+j}}else c.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",c.object,d,"",i);j=e.getAttribute("dos");if(j!=null)e.className=j}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",i);else c.object.className="Wt-valid-drop";g.cancelEvent(d);return false}return true}function D(d){g.capture(null); var c=J;if(c.object){if(c.dropTarget){var e=c.dropTarget.getAttribute("dos");if(e!=null)c.dropTarget.className=e;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):O(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className; c.object=null}}function R(d,c){var e,h;h=d.event;c=c>0?"&e"+c:"&";e=c+"signal="+d.signal;if(d.id){e+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var i=0;i<d.args.length;++i)e+=c+"a"+i+"="+encodeURIComponent(d.args[i])}for(var j=0;j<B.length;++j){var r=g.getElement(B[j]),v=null,W;if(r!=null){if(r.type=="select-multiple"){i=0;for(W=r.options.length;i<W;i++)if(r.options[i].selected)e+=c+B[j]+"="+encodeURIComponent(r.options[i].value)}else if(g.hasTag(r,"SPAN")){i=0;for(W= r.childNodes.length;i<W;++i)if(r.childNodes[i].type=="checkbox"){i=r.childNodes[i];if(i.style.display=="none")v="indeterminate";else if(i.checked)v=i.value;break}}else if(r.type=="checkbox"||r.type=="radio")if(r.indeterminate)v="indeterminate";else{if(r.checked)v=r.value}else if(r.type!="file")v=$(r).hasClass("Wt-edit-emptyText")?"":""+r.value;if(v!=null)e+=c+B[j]+"="+encodeURIComponent(v)}}if(s!=null)e+=c+"_="+encodeURIComponent(unescape(s));if(!h){d.data=e;return d}for(j=h.target||h.srcElement;!j.id&& j.parentNode;)j=j.parentNode;if(j.id)e+=c+"tid="+j.id;try{e+=c+"type="+h.type}catch(ja){}if(h.clientX||h.clientY)e+=c+"clientX="+h.clientX+c+"clientY="+h.clientY;v=g.pageCoordinates(h);j=v.x;v=v.y;if(j||v){e+=c+"documentX="+j+c+"documentY="+v;e+=c+"dragdX="+(j-o)+c+"dragdY="+(v-p)}if(h.screenX||h.screenY)e+=c+"screenX="+h.screenX+c+"screenY="+h.screenY;if(d.object&&d.object.nodeType!=9){i=g.widgetPageCoordinates(d.object);e+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+ d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(j-i.x)+c+"widgetY="+(v-i.y)}if(h.which)e+=c+"right="+(h.which==3);else if(h.button)e+=c+"right="+(h.button==2);if(typeof h.keyCode!=="undefined")e+=c+"keyCode="+h.keyCode;if(typeof h.charCode!=="undefined")e+=c+"charCode="+h.charCode;if(h.altKey)e+=c+"altKey=1";if(h.ctrlKey)e+=c+"ctrlKey=1";if(h.metaKey)e+=c+"metaKey=1";if(h.shiftKey)e+=c+"shiftKey=1";d.data=e;return d}function a(){for(var d="",c=false,e=0;e<z.length;++e){c=c||z[e].feedback; d+=z[e].data}Z=z;z=[];return{feedback:c,result:d}}function b(){g.history._initTimeout();T==0&&A(null,"none",null,false);aa=setTimeout(b,_$_KEEP_ALIVE_$_000)}function f(d){if(!g.isIEMobile)document.title=d}function m(){g.history._initialize();Y();if(!da){da=true;_$_ONLOAD_$_();aa=setTimeout(b,_$_KEEP_ALIVE_$_000)}}function l(d){clearTimeout(d);document.body.style.cursor="auto";if(X!=null){try{X()}catch(c){}X=null}}function n(){document.body.style.cursor="wait";X=hideLoadingIndicator;showLoadingIndicator()} function E(d){ea=d}function q(d){if(d)if(window.execScript)window.execScript(d);else with(window)eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function u(d,c,e){if(!ba){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(h){alert("Wt internal error: "+h+", code: "+h.code+", description: "+h.description)}_$_$endif_$_();e&&l(e)}else z=Z.concat(z);Z=[];if(M){clearTimeout(M);M=null}G=null;if(d>0)++T;else T=0;if(ea||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(T)*500);P=setTimeout(function(){w()}, d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);w()}else if((new Date).getTime()- fa>g.updateDelay){clearTimeout(P);w()}}function L(d){ca=d;V._p_.comm.responseReceived(d)}function w(){P=null;if(ba){if(!ga){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ga=true}}else{var d,c,e,h="&rand="+Math.round(Math.random(ha)*1E5);if(z.length>0){d=a();c=d.feedback?setTimeout(n,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}G=V._p_.comm.sendUpdate(ia+h,"request=jsupdate&"+d.result+"&ackId="+ca,c,ca,-1); M=e?setTimeout(H,_$_SERVER_PUSH_TIMEOUT_$_):null}}function O(d,c){var e={},h=z.length;e.signal="user";e.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){e.name=c.name;e.object=c.eventObject;e.event=c.event}else{e.name=c;e.object=e.event=null}e.args=[];for(var i=2;i<arguments.length;++i){var j=arguments[i];j=j===false?0:j===true?1:j.toDateString?j.toDateString():j;e.args[i-2]=j}e.feedback=true;z[h]=R(e,h);F()}function N(d,c,e){var h=function(){var j=g.getElement(d);if(j){if(e)j.timer= setTimeout(j.tm,c);else{j.timer=null;j.tm=null}j.onclick()}},i=g.getElement(d);i.timer=setTimeout(h,c);i.tm=h}function I(d,c){setTimeout(function(){if(Q[d]===true)c();else Q[d]=c},20)}function y(d){if(Q[d]!==true){typeof Q[d]!=="undefined"&&Q[d]();Q[d]=true}}function S(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(h){e=false}if(e)y(d);else{var i=document.createElement("script");i.setAttribute("src",d);i.onload=function(){y(d)};i.onreadystatechange=function(){if(i.readyState== "complete"||i.readyState=="loaded")y(d)};document.getElementsByTagName("head")[0].appendChild(i)}}function K(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}var V=this,g=_$_WT_CLASS_$_,o=0,p=0,s=null,J={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},B=_$_FORM_OBJECTS_$_,Z=[],z=[],ia=_$_RELATIVE_URL_$_,ba=false,ga=false,da=false,G=null,M=null, aa=null,T=0,ea=false,P=null,X=null,ha=(new Date).getTime(),fa,ca=0,Q={};K.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=K.prototype.onload;c.onerror=K.prototype.onload;c.onabort=K.prototype.onload;c.imagePreloader=this;c.src=d};K.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};g.history.register(_$_INITIAL_HASH_$_,t);this._p_={loadScript:S,onJsLoad:I,setTitle:f,update:A,quit:function(){ba=true;clearTimeout(aa)},setFormObjects:function(d){B= d},saveDownPos:x,addTimerEvent:N,load:m,handleResponse:u,setServerPush:E,dragStart:k,dragDrag:U,dragEnd:D,capture:g.capture,onHashChange:t,setHash:C,ImagePreloader:K,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:L};this.WT=_$_WT_CLASS_$_;this.emit=O}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
if(t)m(fqstate);else{location.hash=fqstate;if(r){A[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!E)return"";return z}}}()}),_$_APP_CLASS_$_=new (function(){function v(d){d=n.pageCoordinates(d);y=d.x;M=d.y}function s(){var d=n.history.getCurrentState();if(w!=d){w=d;setTimeout(function(){H(null,"hash",null,true)},1)}}function F(d){if(w!=d){w=d;n.history.navigate(escape(d))}}function k(){window.onresize=function(){C()};document.body.ondragstart=function(){return false}}function G(d,c){var e=V;e.object=n.getElement(d.getAttribute("dwid"));if(e.object==null)return true;e.sourceId=d.getAttribute("dsid");e.objectPrevStyle={position:e.object.style.position,display:e.object.style.display,left:e.object.style.left,top:e.object.style.top,className:e.object.className};e.object.parentNode.removeChild(e.object);e.object.style.position="absolute";e.object.className="";document.body.appendChild(e.object);n.capture(e.object);e.object.onmousemove=P;e.object.onmouseup=a;e.offsetX=-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=d.getAttribute("dmt");e.xy=n.pageCoordinates(c);n.cancelEvent(c);return false}function P(d){if(V.object!=null){var c=V,e=n.pageCoordinates(d);if(c.object.style.display!=""&&c.xy.x!=e.x&&c.xy.y!=e.y)c.object.style.display="";c.object.style.left=e.x-c.offsetX+"px";c.object.style.top=e.y-c.offsetY+"px";e=c.dropTarget;var h=d.target||d.srcElement,i="{"+c.mimeType+":",j=null;for(c.dropTarget=null;h;){j=h.getAttribute("amts");if(j!=null&&j.indexOf(i)!=-1){c.dropTarget=h;break}h=h.parentNode;if(!h.tagName||n.hasTag(h,"HTML"))break}if(c.dropTarget!=e){if(c.dropTarget){h=j.indexOf(i)+i.length;var q=j.indexOf("}",h);j=j.substring(h,q);if(j.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+j}}else c.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",c.object,d,"",i);j=e.getAttribute("dos");if(j!=null)e.className=j}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",i);else c.object.className="Wt-valid-drop";n.cancelEvent(d);return false}return true}function a(d){n.capture(null);var c=V;if(c.object){if(c.dropTarget){var e=c.dropTarget.getAttribute("dos");if(e!=null)c.dropTarget.className=e;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):I(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function b(d,c){var e,h;h=d.event;c=c>0?"&e"+c:"&";e=c+"signal="+d.signal;if(d.id){e+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var i=0;i<d.args.length;++i)e+=c+"a"+i+"="+encodeURIComponent(d.args[i])}for(var j=0;j<T.length;++j){var q=n.getElement(T[j]),u=null,W;if(q!=null){if(q.type=="select-multiple"){i=0;for(W=q.options.length;i<W;i++)if(q.options[i].selected)e+=c+T[j]+"="+encodeURIComponent(q.options[i].value)}else if(n.hasTag(q,"SPAN")){i=0;for(W=q.childNodes.length;i<W;++i)if(q.childNodes[i].type=="checkbox"){i=q.childNodes[i];if(i.style.display=="none")u="indeterminate";else if(i.checked)u=i.value;break}}else if(q.type=="checkbox"||q.type=="radio")if(q.indeterminate)u="indeterminate";else{if(q.checked)u=q.value}else if(q.type!="file")u=$(q).hasClass("Wt-edit-emptyText")?"":""+q.value;if(u!=null)e+=c+T[j]+"="+encodeURIComponent(u)}}if(w!=null)e+=c+"_="+encodeURIComponent(unescape(w));if(!h){d.data=e;return d}for(j=h.target||h.srcElement;!j.id&&j.parentNode;)j=j.parentNode;if(j.id)e+=c+"tid="+j.id;try{e+=c+"type="+h.type}catch(ja){}if(h.clientX||h.clientY)e+=c+"clientX="+h.clientX+c+"clientY="+h.clientY;u=n.pageCoordinates(h);j=u.x;u=u.y;if(j||u){e+=c+"documentX="+j+c+"documentY="+u;e+=c+"dragdX="+(j-y)+c+"dragdY="+(u-M)}if(h.screenX||h.screenY)e+=c+"screenX="+h.screenX+c+"screenY="+h.screenY;if(d.object&&d.object.nodeType!=9){i=n.widgetPageCoordinates(d.object);e+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(j-i.x)+c+"widgetY="+(u-i.y)}if(h.which)e+=c+"right="+(h.which==3);else if(h.button)e+=c+"right="+(h.button==2);if(typeof h.keyCode!=="undefined")e+=c+"keyCode="+h.keyCode;if(typeof h.charCode!=="undefined")e+=c+"charCode="+h.charCode;if(h.altKey)e+=c+"altKey=1";if(h.ctrlKey)e+=c+"ctrlKey=1";if(h.metaKey)e+=c+"metaKey=1";if(h.shiftKey)e+=c+"shiftKey=1";d.data=e;return d}function f(){for(var d="",c=false,e=0;e<x.length;++e){c=c||x[e].feedback;d+=x[e].data}Z=x;x=[];return{feedback:c,result:d}}function m(){n.history._initTimeout();U==0&&H(null,"none",null,false);aa=setTimeout(m,_$_KEEP_ALIVE_$_000)}function l(d){if(!n.isIEMobile)document.title=d}function o(){n.history._initialize();k();if(!da){da=true;_$_ONLOAD_$_();aa=setTimeout(m,_$_KEEP_ALIVE_$_000)}}function B(d){clearTimeout(d);document.body.style.cursor="auto";if(X!=null){try{X()}catch(c){}X=null}}function r(){document.body.style.cursor="wait";X=hideLoadingIndicator;showLoadingIndicator()}function t(d){ea=d}function C(d){if(d)if(window.execScript)window.execScript(d);else with(window)eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(d,c,e){if(!ba){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();C(c);_$_$ifnot_DEBUG_$_()}catch(h){alert("Wt internal error: "+h+", code: "+h.code+", description: "+h.description)}_$_$endif_$_();e&&B(e)}else x=Z.concat(x);Z=[];if(L){clearTimeout(L);L=null}J=null;if(d>0)++U;else U=0;if(ea||x.length>0)if(d==1){d=Math.min(12E4,Math.exp(U)*500);N=setTimeout(function(){A()},d)}else A()}}function K(){J.abort();L=J=null;A()}function H(d,c,e,h){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var i={},j=x.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;x[j]=b(i,j);E();C();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function E(){if(J!=null&&L!=null){clearTimeout(L);J.abort();J=null}if(J==null)if(N==null){N=setTimeout(function(){A()},n.updateDelay);fa=(new Date).getTime()}else if(U){clearTimeout(N);A()}else if((new Date).getTime()-fa>n.updateDelay){clearTimeout(N);A()}}function R(d){ca=d;p._p_.comm.responseReceived(d)}function A(){N=null;if(ba){if(!ga){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ga=true}}else{var d,c,e,h="&rand="+Math.round(Math.random(ha)*1E5);if(x.length>0){d=f();c=d.feedback?setTimeout(r,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}J=p._p_.comm.sendUpdate(ia+h,"request=jsupdate&"+d.result+"&ackId="+ca,c,ca,-1);L=e?setTimeout(K,_$_SERVER_PUSH_TIMEOUT_$_):null}}function I(d,c){var e={},h=x.length;e.signal="user";e.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){e.name=c.name;e.object=c.eventObject;e.event=c.event}else{e.name=c;e.object=e.event=null}e.args=[];for(var i=2;i<arguments.length;++i){var j=arguments[i];j=j===false?0:j===true?1:j.toDateString?j.toDateString():j;e.args[i-2]=j}e.feedback=true;x[h]=b(e,h);E()}function z(d,c,e){var h=function(){var j=n.getElement(d);if(j){if(e)j.timer=setTimeout(j.tm,c);else{j.timer=null;j.tm=null}j.onclick()}},i=n.getElement(d);i.timer=setTimeout(h,c);i.tm=h}function Q(d,c){setTimeout(function(){if(O[d]===true)c();else O[d]=c},20)}function S(d){if(O[d]!==true){typeof O[d]!=="undefined"&&O[d]();O[d]=true}}function Y(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(h){e=false}if(e)S(d);else{var i=document.createElement("script");i.setAttribute("src",d);i.onload=function(){S(d)};i.onreadystatechange=function(){if(i.readyState=="complete"||i.readyState=="loaded")S(d)};document.getElementsByTagName("head")[0].appendChild(i)}}function g(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}var p=this,n=_$_WT_CLASS_$_,y=0,M=0,w=null,V={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},T=_$_FORM_OBJECTS_$_,Z=[],x=[],ia=_$_RELATIVE_URL_$_,ba=false,ga=false,da=false,J=null,L=null,aa=null,U=0,ea=false,N=null,X=null,ha=(new Date).getTime(),fa,ca=0,O={};g.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=g.prototype.onload;c.onerror=g.prototype.onload;c.onabort=g.prototype.onload;c.imagePreloader=this;c.src=d};g.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};n.history.register(_$_INITIAL_HASH_$_,s);this._p_={loadScript:Y,onJsLoad:Q,setTitle:l,update:H,quit:function(){ba=true;clearTimeout(aa)},setFormObjects:function(d){T=d},saveDownPos:v,addTimerEvent:z,load:o,handleResponse:D,setServerPush:t,dragStart:G,dragDrag:P,dragEnd:a,capture:n.capture,onHashChange:s,setHash:F,ImagePreloader:g,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:R};this.WT=_$_WT_CLASS_$_;this.emit=I}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
self[name] = function(fn) {
$.each("onSlide,change".split(","), function(i, name) { if ($.isFunction(conf[name])) { $(self).bind(name, conf[name]); } self[name] = function(fn) {
self[name] = function(fn) { $(self).bind(name, fn); return self; };
loaded = false;
mask.fadeOut(config.closeSpeed, function() { call(config.onClose); if (exposed) { exposed.css({zIndex: overlayIndex}); } });
$(document).bind('keydown', 'left', function(){ DeckViewerUI.previous(); return false; });
$(document).ready(function() { DeckViewerUI.init(); $("#prev a").click(function() { DeckViewerUI.previous(); }); $(document).bind('keydown', 'left', function(){ DeckViewerUI.previous(); return false; }); $("#next a").click(function() { DeckViewerUI.next(); }); $(document).bind('keydown', 'right', function(){ DeckViewerUI.next(); return false; }); $("div#row_body").click(function() { DeckViewerUI.showAnswer(); }); $(document).bind('keydown', 'space', function(){ DeckViewerUI.showAnswer(); return false; }); if(MODE == MODE_LEARN) { $(document).bind('keydown', '1', function() { DeckViewerUI.rts.eltEasy.click(); return false; }); $(document).bind('keydown', '2', function() { DeckViewerUI.rts.eltMedium.click(); return false; }); $(document).bind('keydown', '3', function() { DeckViewerUI.rts.eltHard.click(); return false; }); $("input#show_ans_chk").click(function() { DeckViewerUI.showAnswerToggle(); }); } else if(MODE == MODE_QUIZ) { $(document).bind('keydown', 'up', function() { DeckViewerUI.corBtn.elt.click(); return false; }); $(document).bind('keydown', 'down', function() { DeckViewerUI.incBtn.elt.click(); return false; }); } });
$(document).bind('keydown', 'left', function(){ DeckViewerUI.previous(); return false; });
fx.start(obj);
if(!(Browser.Engine.trident && Browser.Engine.version == 5)) { fx.start(obj); }
door.addEvent('mouseenter', function(e){ if (room.rid == 0) { //adjust width of room to be wide var obj = {}; obj[i] = {'width': [door.getStyle('width').toInt(), 219]}; rooms.each(function(otherRoom, j){ if (otherRoom != door){ var w = otherRoom.getStyle('width').toInt(); if (w != 67) obj[j] = {'width': [w, 67]}; } }); fx.start(obj); // Set up online list for this room MBchat.updateables.online.show(door.get('id').substr(1).toInt()); } else { displayErrorMessage('Debug - MouseEnter in Room'); } });
}};})();}if(!a.editor){a.ELEMENT_MODE_NONE=0;a.ELEMENT_MODE_REPLACE=1;a.ELEMENT_MODE_APPENDTO=2;a.editor=function(b,c,d,e){var f=this;f._={instanceConfig:b,element:c,data:e};f.elementMode=d||0;a.event.call(f);f._init();};a.editor.replace=function(b,c){var d=b;if(typeof d!='object'){d=document.getElementById(b);if(!d){var e=0,f=document.getElementsByName(b);while((d=f[e++])&&d.tagName.toLowerCase()!='textarea'){}}if(!d)throw '[CKEDITOR.editor.replace] The element with id or name "'+b+'" was not found.';}d.style.visibility='hidden';return new a.editor(c,d,1);};a.editor.appendTo=function(b,c,d){var e=b;if(typeof e!='object'){e=document.getElementById(b);if(!e)throw '[CKEDITOR.editor.appendTo] The element with id "'+b+'" was not found.';}return new a.editor(c,e,2,d);};a.editor.prototype={_init:function(){var b=a.editor._pending||(a.editor._pending=[]);b.push(this);},fire:function(b,c){return a.event.prototype.fire.call(this,b,c,this);},fireOnce:function(b,c){return a.event.prototype.fireOnce.call(this,b,c,this);}};a.event.implementOn(a.editor.prototype,true);}if(!a.env)a.env=(function(){var b=navigator.userAgent.toLowerCase(),c=window.opera,d={ie:false,opera:!!c&&c.version,webkit:b.indexOf(' applewebkit/')>-1,air:b.indexOf(' adobeair/')>-1,mac:b.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',mobile:b.indexOf('mobile')>-1,isCustomDomain:function(){return this.ie&&document.domain!=window.location.hostname;}};d.gecko=navigator.product=='Gecko'&&!d.webkit&&!d.opera;var e=0;if(d.ie){e=parseFloat(b.match(/msie (\d+)/)[1]);d.ie8=!!document.documentMode;d.ie8Compat=document.documentMode==8;d.ie7Compat=e==7&&!document.documentMode||document.documentMode==7;d.ie6Compat=e<7||d.quirks;}if(d.gecko){var f=b.match(/rv:([\d\.]+)/);if(f){f=f[1].split('.');e=f[0]*10000+(f[1]||0)*100+ +(f[2]||0);}}if(d.opera)e=parseFloat(c.version());if(d.air)e=parseFloat(b.match(/ adobeair\/(\d+)/)[1]);if(d.webkit)e=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]);d.version=e;d.isCompatible=!d.mobile&&(d.ie&&e>=6||d.gecko&&e>=10801||d.opera&&e>=9.5||d.air&&e>=1||d.webkit&&e>=522||false);d.cssClass='cke_browser_'+(d.ie?'ie':d.gecko?'gecko':d.opera?'opera':d.air?'air':d.webkit?'webkit':'unknown');if(d.quirks)d.cssClass+=' cke_browser_quirks';if(d.ie){d.cssClass+=' cke_browser_ie'+(d.version<7?'6':d.version>=8?'8':'7');if(d.quirks)d.cssClass+=' cke_browser_iequirks';}if(d.gecko&&e<10900)d.cssClass+=' cke_browser_gecko18';return d;})();var b=a.env;var c=b.ie;
return e&&e.listeners.length>0;}};})();}if(!a.editor){a.ELEMENT_MODE_NONE=0;a.ELEMENT_MODE_REPLACE=1;a.ELEMENT_MODE_APPENDTO=2;a.editor=function(b,c,d,e){var f=this;f._={instanceConfig:b,element:c,data:e};f.elementMode=d||0;a.event.call(f);f._init();};a.editor.replace=function(b,c){var d=b;if(typeof d!='object'){d=document.getElementById(b);if(!d){var e=0,f=document.getElementsByName(b);while((d=f[e++])&&d.tagName.toLowerCase()!='textarea'){}}if(!d)throw '[CKEDITOR.editor.replace] The element with id or name "'+b+'" was not found.';}d.style.visibility='hidden';return new a.editor(c,d,1);};a.editor.appendTo=function(b,c,d){var e=b;if(typeof e!='object'){e=document.getElementById(b);if(!e)throw '[CKEDITOR.editor.appendTo] The element with id "'+b+'" was not found.';}return new a.editor(c,e,2,d);};a.editor.prototype={_init:function(){var b=a.editor._pending||(a.editor._pending=[]);b.push(this);},fire:function(b,c){return a.event.prototype.fire.call(this,b,c,this);},fireOnce:function(b,c){return a.event.prototype.fireOnce.call(this,b,c,this);}};a.event.implementOn(a.editor.prototype,true);}if(!a.env)a.env=(function(){var b=navigator.userAgent.toLowerCase(),c=window.opera,d={ie:false,opera:!!c&&c.version,webkit:b.indexOf(' applewebkit/')>-1,air:b.indexOf(' adobeair/')>-1,mac:b.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',mobile:b.indexOf('mobile')>-1,isCustomDomain:function(){if(!this.ie)return false;var g=document.domain,h=window.location.hostname;return g!=h&&g!='['+h+']';}};d.gecko=navigator.product=='Gecko'&&!d.webkit&&!d.opera;var e=0;if(d.ie){e=parseFloat(b.match(/msie (\d+)/)[1]);d.ie8=!!document.documentMode;d.ie8Compat=document.documentMode==8;d.ie7Compat=e==7&&!document.documentMode||document.documentMode==7;d.ie6Compat=e<7||d.quirks;}if(d.gecko){var f=b.match(/rv:([\d\.]+)/);if(f){f=f[1].split('.');e=f[0]*10000+(f[1]||0)*100+ +(f[2]||0);}}if(d.opera)e=parseFloat(c.version());if(d.air)e=parseFloat(b.match(/ adobeair\/(\d+)/)[1]);if(d.webkit)e=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]);d.version=e;d.isCompatible=!d.mobile&&(d.ie&&e>=6||d.gecko&&e>=10801||d.opera&&e>=9.5||d.air&&e>=1||d.webkit&&e>=522||false);d.cssClass='cke_browser_'+(d.ie?'ie':d.gecko?'gecko':d.opera?'opera':d.air?'air':d.webkit?'webkit':'unknown');if(d.quirks)d.cssClass+=' cke_browser_quirks';if(d.ie){d.cssClass+=' cke_browser_ie'+(d.version<7?'6':d.version>=8?'8':'7');if(d.quirks)d.cssClass+=' cke_browser_iequirks';}if(d.gecko&&e<10900)d.cssClass+=' cke_browser_gecko18'; return d;})();var b=a.env;var c=b.ie;if(a.status=='unloaded')(function(){a.event.implementOn(a);a.loadFullCore=function(){if(a.status!='basic_ready'){a.loadFullCore._load=true;return;}delete a.loadFullCore;var e=document.createElement('script');e.type='text/javascript';e.src=a.basePath+'ckeditor.js';document.getElementsByTagName('head')[0].appendChild(e);};a.loadFullCoreTimeout=0;a.replaceClass='ckeditor';a.replaceByClassEnabled=true;var d=function(e,f,g,h){if(b.isCompatible){if(a.loadFullCore)a.loadFullCore();var i=g(e,f,h);a.add(i);return i;}return null;};a.replace=function(e,f){return d(e,f,a.editor.replace);};a.appendTo=function(e,f,g){return d(e,f,a.editor.appendTo,g);};a.add=function(e){var f=this._.pending||(this._.pending=[]);f.push(e);};a.replaceAll=function(){var e=document.getElementsByTagName('textarea');for(var f=0;f<e.length;f++){var g=null,h=e[f],i=h.name;if(!h.name&&!h.id)continue;if(typeof arguments[0]=='string'){var j=new RegExp('(?:^|\\s)'+arguments[0]+'(?:$|\\s)');if(!j.test(h.className))continue;}else if(typeof arguments[0]=='function'){g={};if(arguments[0](h,g)===false)continue;}this.replace(h,g);}};(function(){var e=function(){var f=a.loadFullCore,g=a.loadFullCoreTimeout;if(a.replaceByClassEnabled)a.replaceAll(a.replaceClass);a.status='basic_ready';if(f&&f._load)f();else if(g)setTimeout(function(){if(a.loadFullCore)a.loadFullCore();},g*1000);};if(window.addEventListener)window.addEventListener('load',e,false);else if(window.attachEvent)window.attachEvent('onload',e);})();a.status='basic_loaded';})();a.dom={};var d=a.dom;(function(){var e=[];a.on('reset',function(){e=[];});a.tools={arrayCompare:function(f,g){if(!f&&!g)return true;if(!f||!g||f.length!=g.length)return false;for(var h=0;h<f.length;h++){if(f[h]!=g[h])return false;}return true;},clone:function(f){var g;if(f&&f instanceof Array){g=[];for(var h=0;h<f.length;h++)g[h]=this.clone(f[h]);return g;}if(f===null||typeof f!='object'||f instanceof String||f instanceof Number||f instanceof Boolean||f instanceof Date||f instanceof RegExp)return f;g=new f.constructor();for(var i in f){var j=f[i];g[i]=this.clone(j);}return g;},capitalize:function(f){return f.charAt(0).toUpperCase()+f.substring(1).toLowerCase();},extend:function(f){var g=arguments.length,h,i;if(typeof (h=arguments[g-1])=='boolean')g--;else if(typeof (h=arguments[g-2])=='boolean'){i=arguments[g-1];g-=2;}for(var j=1;j<g;j++){var k=arguments[j];for(var l in k){if(h===true||f[l]==undefined)if(!i||l in i)f[l]=k[l];}}return f;},prototypedCopy:function(f){var g=function(){};
}};})();}if(!a.editor){a.ELEMENT_MODE_NONE=0;a.ELEMENT_MODE_REPLACE=1;a.ELEMENT_MODE_APPENDTO=2;a.editor=function(b,c,d,e){var f=this;f._={instanceConfig:b,element:c,data:e};f.elementMode=d||0;a.event.call(f);f._init();};a.editor.replace=function(b,c){var d=b;if(typeof d!='object'){d=document.getElementById(b);if(!d){var e=0,f=document.getElementsByName(b);while((d=f[e++])&&d.tagName.toLowerCase()!='textarea'){}}if(!d)throw '[CKEDITOR.editor.replace] The element with id or name "'+b+'" was not found.';}d.style.visibility='hidden';return new a.editor(c,d,1);};a.editor.appendTo=function(b,c,d){var e=b;if(typeof e!='object'){e=document.getElementById(b);if(!e)throw '[CKEDITOR.editor.appendTo] The element with id "'+b+'" was not found.';}return new a.editor(c,e,2,d);};a.editor.prototype={_init:function(){var b=a.editor._pending||(a.editor._pending=[]);b.push(this);},fire:function(b,c){return a.event.prototype.fire.call(this,b,c,this);},fireOnce:function(b,c){return a.event.prototype.fireOnce.call(this,b,c,this);}};a.event.implementOn(a.editor.prototype,true);}if(!a.env)a.env=(function(){var b=navigator.userAgent.toLowerCase(),c=window.opera,d={ie:/*@cc_on!@*/false,opera:!!c&&c.version,webkit:b.indexOf(' applewebkit/')>-1,air:b.indexOf(' adobeair/')>-1,mac:b.indexOf('macintosh')>-1,quirks:document.compatMode=='BackCompat',mobile:b.indexOf('mobile')>-1,isCustomDomain:function(){return this.ie&&document.domain!=window.location.hostname;}};d.gecko=navigator.product=='Gecko'&&!d.webkit&&!d.opera;var e=0;if(d.ie){e=parseFloat(b.match(/msie (\d+)/)[1]);d.ie8=!!document.documentMode;d.ie8Compat=document.documentMode==8;d.ie7Compat=e==7&&!document.documentMode||document.documentMode==7;d.ie6Compat=e<7||d.quirks;}if(d.gecko){var f=b.match(/rv:([\d\.]+)/);if(f){f=f[1].split('.');e=f[0]*10000+(f[1]||0)*100+ +(f[2]||0);}}if(d.opera)e=parseFloat(c.version());if(d.air)e=parseFloat(b.match(/ adobeair\/(\d+)/)[1]);if(d.webkit)e=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]);d.version=e;d.isCompatible=!d.mobile&&(d.ie&&e>=6||d.gecko&&e>=10801||d.opera&&e>=9.5||d.air&&e>=1||d.webkit&&e>=522||false);d.cssClass='cke_browser_'+(d.ie?'ie':d.gecko?'gecko':d.opera?'opera':d.air?'air':d.webkit?'webkit':'unknown');if(d.quirks)d.cssClass+=' cke_browser_quirks';if(d.ie){d.cssClass+=' cke_browser_ie'+(d.version<7?'6':d.version>=8?'8':'7');if(d.quirks)d.cssClass+=' cke_browser_iequirks';}if(d.gecko&&e<10900)d.cssClass+=' cke_browser_gecko18';return d;})();var b=a.env;var c=b.ie;
scratch += tok.token;
if (tok.token !== '-') { if (scratch.length > 0) scratch += ' '; scratch += tok.token; }
tokens.each(function(tok) { scratch += tok.token; });
x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.apply(x);b=false;});else r.apply(x);x.selectPage(x.data.tab);},onOk:function(){var x=this.data.scayt_control;x.option(this.options);var y=this.chosed_lang;x.setLang(y);x.refresh();},onCancel:function(){var x=k();for(f in x)x[f].checked=false;m(l(),'');},contents:g},p=CKEDITOR.plugins.scayt.getScayt(a);e=CKEDITOR.plugins.scayt.uiTabs;for(f in e){if(e[f]==1)g[g.length]=n[f];}if(e[2]==1)h=true;var q=function(){var x=this,y=x.data.scayt.getLangList(),z=['dic_create','dic_delete','dic_rename','dic_restore'],A=j,B;if(h){for(B=0;B<z.length;B++){var C=z[B];d.getById(C).setHtml('<span class="cke_dialog_ui_button">'+c['button_'+C]+'</span>');}d.getById('dic_info').setHtml(c.dic_info);}if(e[0]==1)for(B in A){var D='label_'+A[B],E=d.getById(D);if('undefined'!=typeof E&&'undefined'!=typeof c[D]&&'undefined'!=typeof x.options[A[B]]){E.setHtml(c[D]);var F=E.getParent();F.$.style.display='block';}}var G='<p>'+c.about_throwt_image+'</p>'+'<p>'+c.version+x.data.scayt.version.toString()+'</p>'+'<p>'+c.about_throwt_copy+'</p>';d.getById('scayt_about').setHtml(G);var H=function(R,S){var T=d.createElement('label');T.setAttribute('for','cke_option'+R);T.setHtml(S[R]);if(x.sLang==R)x.chosed_lang=R;var U=d.createElement('div'),V=CKEDITOR.dom.element.createFromHtml('<input id="cke_option'+R+'" type="radio" '+(x.sLang==R?'checked="checked"':'')+' value="'+R+'" name="scayt_lang" />');V.on('click',function(){this.$.checked=true;x.chosed_lang=R;});U.append(V);U.append(T);return{lang:S[R],code:R,radio:U};},I=[];if(e[1]==1){for(B in y.rtl)I[I.length]=H(B,y.ltr);for(B in y.ltr)I[I.length]=H(B,y.ltr);I.sort(function(R,S){return S.lang>R.lang?-1:1;});var J=d.getById('scayt_lcol'),K=d.getById('scayt_rcol');for(B=0;B<I.length;B++){var L=B<I.length/2?J:K;L.append(I[B].radio);}}var M={};M.dic_create=function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_create,W=c.succ_dic_create;window.scayt.createUserDictionary(S,function(X){v(U);u(T[1]);W=W.replace('%s',X.dname);t(W);},function(X){V=V.replace('%s',X.dname);s(V+'( '+(X.message||'')+')');});};M.dic_rename=function(R,S){var T=c.err_dic_rename||'',U=c.succ_dic_rename||'';window.scayt.renameUserDictionary(S,function(V){U=U.replace('%s',V.dname);
x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.apply(x);b=false;});else r.apply(x);x.selectPage(x.data.tab);},onOk:function(){var x=this.data.scayt_control;x.option(this.options);var y=this.chosed_lang;x.setLang(y);x.refresh();},onCancel:function(){var x=k();for(f in x)x[f].checked=false;m(l(),'');},contents:g},p=CKEDITOR.plugins.scayt.getScayt(a);e=CKEDITOR.plugins.scayt.uiTabs;for(f in e){if(e[f]==1)g[g.length]=n[f];}if(e[2]==1)h=true;var q=function(){var x=this,y=x.data.scayt.getLangList(),z=['dic_create','dic_delete','dic_rename','dic_restore'],A=j,B;if(h){for(B=0;B<z.length;B++){var C=z[B];d.getById(C).setHtml('<span class="cke_dialog_ui_button">'+c['button_'+C]+'</span>');}d.getById('dic_info').setHtml(c.dic_info);}if(e[0]==1)for(B in A){var D='label_'+A[B],E=d.getById(D);if('undefined'!=typeof E&&'undefined'!=typeof c[D]&&'undefined'!=typeof x.options[A[B]]){E.setHtml(c[D]);var F=E.getParent();F.$.style.display='block';}}var G='<p><img src="'+window.scayt.getAboutInfo().logoURL+'" /></p>'+'<p>'+c.version+window.scayt.getAboutInfo().version.toString()+'</p>'+'<p>'+c.about_throwt_copy+'</p>';d.getById('scayt_about').setHtml(G);var H=function(R,S){var T=d.createElement('label');T.setAttribute('for','cke_option'+R);T.setHtml(S[R]);if(x.sLang==R)x.chosed_lang=R;var U=d.createElement('div'),V=CKEDITOR.dom.element.createFromHtml('<input id="cke_option'+R+'" type="radio" '+(x.sLang==R?'checked="checked"':'')+' value="'+R+'" name="scayt_lang" />');V.on('click',function(){this.$.checked=true;x.chosed_lang=R;});U.append(V);U.append(T);return{lang:S[R],code:R,radio:U};},I=[];if(e[1]==1){for(B in y.rtl)I[I.length]=H(B,y.ltr);for(B in y.ltr)I[I.length]=H(B,y.ltr);I.sort(function(R,S){return S.lang>R.lang?-1:1;});var J=d.getById('scayt_lcol'),K=d.getById('scayt_rcol');for(B=0;B<I.length;B++){var L=B<I.length/2?J:K;L.append(I[B].radio);}}var M={};M.dic_create=function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_create,W=c.succ_dic_create;window.scayt.createUserDictionary(S,function(X){v(U);u(T[1]);W=W.replace('%s',X.dname);t(W);},function(X){V=V.replace('%s',X.dname);s(V+'( '+(X.message||'')+')');});};M.dic_rename=function(R,S){var T=c.err_dic_rename||'',U=c.succ_dic_rename||'';window.scayt.renameUserDictionary(S,function(V){U=U.replace('%s',V.dname);
x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.apply(x);b=false;});else r.apply(x);x.selectPage(x.data.tab);},onOk:function(){var x=this.data.scayt_control;x.option(this.options);var y=this.chosed_lang;x.setLang(y);x.refresh();},onCancel:function(){var x=k();for(f in x)x[f].checked=false;m(l(),'');},contents:g},p=CKEDITOR.plugins.scayt.getScayt(a);e=CKEDITOR.plugins.scayt.uiTabs;for(f in e){if(e[f]==1)g[g.length]=n[f];}if(e[2]==1)h=true;var q=function(){var x=this,y=x.data.scayt.getLangList(),z=['dic_create','dic_delete','dic_rename','dic_restore'],A=j,B;if(h){for(B=0;B<z.length;B++){var C=z[B];d.getById(C).setHtml('<span class="cke_dialog_ui_button">'+c['button_'+C]+'</span>');}d.getById('dic_info').setHtml(c.dic_info);}if(e[0]==1)for(B in A){var D='label_'+A[B],E=d.getById(D);if('undefined'!=typeof E&&'undefined'!=typeof c[D]&&'undefined'!=typeof x.options[A[B]]){E.setHtml(c[D]);var F=E.getParent();F.$.style.display='block';}}var G='<p>'+c.about_throwt_image+'</p>'+'<p>'+c.version+x.data.scayt.version.toString()+'</p>'+'<p>'+c.about_throwt_copy+'</p>';d.getById('scayt_about').setHtml(G);var H=function(R,S){var T=d.createElement('label');T.setAttribute('for','cke_option'+R);T.setHtml(S[R]);if(x.sLang==R)x.chosed_lang=R;var U=d.createElement('div'),V=CKEDITOR.dom.element.createFromHtml('<input id="cke_option'+R+'" type="radio" '+(x.sLang==R?'checked="checked"':'')+' value="'+R+'" name="scayt_lang" />');V.on('click',function(){this.$.checked=true;x.chosed_lang=R;});U.append(V);U.append(T);return{lang:S[R],code:R,radio:U};},I=[];if(e[1]==1){for(B in y.rtl)I[I.length]=H(B,y.ltr);for(B in y.ltr)I[I.length]=H(B,y.ltr);I.sort(function(R,S){return S.lang>R.lang?-1:1;});var J=d.getById('scayt_lcol'),K=d.getById('scayt_rcol');for(B=0;B<I.length;B++){var L=B<I.length/2?J:K;L.append(I[B].radio);}}var M={};M.dic_create=function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_create,W=c.succ_dic_create;window.scayt.createUserDictionary(S,function(X){v(U);u(T[1]);W=W.replace('%s',X.dname);t(W);},function(X){V=V.replace('%s',X.dname);s(V+'( '+(X.message||'')+')');});};M.dic_rename=function(R,S){var T=c.err_dic_rename||'',U=c.succ_dic_rename||'';window.scayt.renameUserDictionary(S,function(V){U=U.replace('%s',V.dname);w(S);t(U);},function(V){T=T.replace('%s',V.dname);w(S);s(T+'( '+(V.message||'')+' )');});};M.dic_delete=function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_delete,W=c.succ_dic_delete;window.scayt.deleteUserDictionary(function(X){W=W.replace('%s',X.dname);v(U);u(T[0]);w('');t(W);},function(X){V=V.replace('%s',X.dname);s(V);});};M.dic_restore=x.dic_restore||(function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_restore,W=c.succ_dic_restore;window.scayt.restoreUserDictionary(S,function(X){W=W.replace('%s',X.dname);v(U);u(T[1]);t(W);},function(X){V=V.replace('%s',X.dname);s(V);});});function N(R){var S=d.getById('dic_name').getValue();if(!S){s(' Dictionary name should not be empty. ');return false;}try{var T=id=R.data.getTarget().getParent(),U=T.getId();M[U].apply(null,[T,S,i]);}catch(V){s(' Dictionary error. ');}return true;};var O=(i[0]+','+i[1]).split(','),P;for(B=0,P=O.length;B<P;B+=1){var Q=d.getById(O[B]);if(Q)Q.on('click',N,this);}},r=function(){var x=this;if(e[0]==1){var y=k();for(var z=0,A=y.length;z<A;z++){var B=y[z].id,C=d.getById(B);if(C){y[z].checked=false;if(x.options[B]==1)y[z].checked=true;if(b)C.on('click',function(){x.options[this.getId()]=this.$.checked?1:0;});}}}if(e[1]==1){var D=d.getById('cke_option'+x.sLang);m(D.$,x.sLang);}if(h){window.scayt.getNameUserDictionary(function(E){var F=E.dname;v(i[0]+','+i[1]);if(F){d.getById('dic_name').setValue(F);u(i[1]);}else u(i[0]);},function(){d.getById('dic_name').setValue('');});t('');}};function s(x){d.getById('dic_message').setHtml('<span style="color:red;">'+x+'</span>');};function t(x){d.getById('dic_message').setHtml('<span style="color:blue;">'+x+'</span>');};function u(x){x=String(x);var y=x.split(',');for(var z=0,A=y.length;z<A;z+=1)d.getById(y[z]).$.style.display='inline';};function v(x){x=String(x);var y=x.split(',');for(var z=0,A=y.length;z<A;z+=1)d.getById(y[z]).$.style.display='none';};function w(x){d.getById('dic_name').$.value=x;};return o;});
$("table.results tr.event").live("click", function() {
$(result_row_selector).live("click", function() {
$("table.results tr.event").live("click", function() { var data = eval($("td.message", this).data("full")); /* Apply template to the dialog */ var query = $("#query").val().replace(/^\s+|\s+$/g, "") var sanitize = function(str) { if (!/^".*"$/.test(str)) { str = '"' + str + '"'; } return escape(str); }; var template = $.template("inspector", "<li>" + "<b>(${type}) ${field}</b>:" + "<a href='/search?q=" + query + " ${escape(field)}:${$item.sanitize(value)}'" + " data-field='${escape(field)}' data-value='${$item.sanitize(value)}'>" + "${value}" + "</a>" + "</li>"); /* TODO(sissel): recurse through the data */ var fields = new Array(); for (var i in data._source["@fields"]) { var value = data._source["@fields"][i] if (/^[, ]*$/.test(value)) { continue; /* Skip empty data fields */ } fields.push( { type: "field", field: i, value: value }) } for (var i in data._source) { if (i == "@fields") continue; var value = data._source[i] if (i.charAt(0) == "@") { /* metadata */ fields.push( { type: "metadata", field: i, value: value }); } else { /* data */ if (/^[, ]*$/.test(value)) { continue; /* Skip empty data fields */ } fields.push( { type: "field", field: i, value: value }) } } for (var i in data) { if (i == "_source") { continue; /* already processed this one */ } fields.push( { type: "metadata", field: i, value: data[i] }) } fields.sort(function(a, b) { if (a.type+a.field < b.type+b.field) { return -1; } if (a.type+a.field > b.type+b.field) { return 1; } return 0; }); $("ul.results li.selected").removeClass("selected") $(this).addClass("selected"); var entry = this; $("#inspector li").remove() $("#inspector") .append($.tmpl("inspector", fields, { "sanitize": sanitize })) .dialog({ width: 400, title: "Fields for this log" , closeOnEscape: true, position: ["right", "top"], }); });
$("ul.results li.selected").removeClass("selected")
$(result_row_selector).removeClass("selected")
$("table.results tr.event").live("click", function() { var data = eval($("td.message", this).data("full")); /* Apply template to the dialog */ var query = $("#query").val().replace(/^\s+|\s+$/g, "") var sanitize = function(str) { if (!/^".*"$/.test(str)) { str = '"' + str + '"'; } return escape(str); }; var template = $.template("inspector", "<li>" + "<b>(${type}) ${field}</b>:" + "<a href='/search?q=" + query + " ${escape(field)}:${$item.sanitize(value)}'" + " data-field='${escape(field)}' data-value='${$item.sanitize(value)}'>" + "${value}" + "</a>" + "</li>"); /* TODO(sissel): recurse through the data */ var fields = new Array(); for (var i in data._source["@fields"]) { var value = data._source["@fields"][i] if (/^[, ]*$/.test(value)) { continue; /* Skip empty data fields */ } fields.push( { type: "field", field: i, value: value }) } for (var i in data._source) { if (i == "@fields") continue; var value = data._source[i] if (i.charAt(0) == "@") { /* metadata */ fields.push( { type: "metadata", field: i, value: value }); } else { /* data */ if (/^[, ]*$/.test(value)) { continue; /* Skip empty data fields */ } fields.push( { type: "field", field: i, value: value }) } } for (var i in data) { if (i == "_source") { continue; /* already processed this one */ } fields.push( { type: "metadata", field: i, value: data[i] }) } fields.sort(function(a, b) { if (a.type+a.field < b.type+b.field) { return -1; } if (a.type+a.field > b.type+b.field) { return 1; } return 0; }); $("ul.results li.selected").removeClass("selected") $(this).addClass("selected"); var entry = this; $("#inspector li").remove() $("#inspector") .append($.tmpl("inspector", fields, { "sanitize": sanitize })) .dialog({ width: 400, title: "Fields for this log" , closeOnEscape: true, position: ["right", "top"], }); });
function () { window.goDoCommand("cmd_expandAllThreads"); });
function () { mail.expandThread(); });
function () { window.goDoCommand("cmd_expandAllThreads"); });
function (count) { buffer.textZoom = count > 1 ? count : 100; },
function (count) { buffer.zoomIn(Math.max(count, 1), true); },
function (count) { buffer.textZoom = count > 1 ? count : 100; },
m.setAttribute('type','text/javascript');m.appendText(l);m.appendTo(a.document.getHead());}};})();a.resourceManager=function(j,k){var l=this;l.basePath=j;l.fileName=k;l.registered={};l.loaded={};l.externals={};l._={waitingList:{}};};a.resourceManager.prototype={add:function(j,k){if(this.registered[j])throw '[CKEDITOR.resourceManager.add] The resource name "'+j+'" is already registered.';a.fire(j+e.capitalize(this.fileName)+'Ready',this.registered[j]=k||{});},get:function(j){return this.registered[j]||null;},getPath:function(j){var k=this.externals[j];return a.getUrl(k&&k.dir||this.basePath+j+'/');},getFilePath:function(j){var k=this.externals[j];return a.getUrl(this.getPath(j)+(k&&typeof k.file=='string'?k.file:this.fileName+'.js'));},addExternal:function(j,k,l){j=j.split(',');for(var m=0;m<j.length;m++){var n=j[m];this.externals[n]={dir:k,file:l};}},load:function(j,k,l){if(!e.isArray(j))j=j?[j]:[];var m=this.loaded,n=this.registered,o=[],p={},q={};for(var r=0;r<j.length;r++){var s=j[r];if(!s)continue;if(!m[s]&&!n[s]){var t=this.getFilePath(s);o.push(t);if(!(t in p))p[t]=[];p[t].push(s);}else q[s]=this.get(s);}a.scriptLoader.load(o,function(u,v){if(v.length)throw '[CKEDITOR.resourceManager.load] Resource name "'+p[v[0]].join(',')+'" was not found at "'+v[0]+'".';for(var w=0;w<u.length;w++){var x=p[u[w]];for(var y=0;y<x.length;y++){var z=x[y];q[z]=this.get(z);m[z]=1;}}k.call(l,q);},this);}};a.plugins=new a.resourceManager('plugins/','plugin');var j=a.plugins;j.load=e.override(j.load,function(k){return function(l,m,n){var o={},p=function(q){k.call(this,q,function(r){e.extend(o,r);var s=[];for(var t in r){var u=r[t],v=u&&u.requires;if(v)for(var w=0;w<v.length;w++){if(!o[v[w]])s.push(v[w]);}}if(s.length)p.call(this,s);else{for(t in o){u=o[t];if(u.onLoad&&!u.onLoad._called){u.onLoad();u.onLoad._called=1;}}if(m)m.call(n||window,o);}},this);};p.call(this,l);};});j.setLang=function(k,l,m){var n=this.get(k),o=n.lang||(n.lang={});o[l]=m;};(function(){var k={},l=function(m,n){var o=function(){p.removeAllListeners();k[m]=1;n();},p=new h('img');p.on('load',o);p.on('error',o);p.setAttribute('src',m);};a.imageCacher={load:function(m,n){var o=m.length,p=function(){if(--o===0)n();};for(var q=0;q<m.length;q++){var r=m[q];if(k[r])p();else l(r,p);}}};})();a.skins=(function(){var k={},l={},m={},n=function(o,p,q,r){var s=k[p];if(!o.skin){o.skin=s;if(s.init)s.init(o);}var t=function(D){for(var E=0;E<D.length;E++)D[E]=a.getUrl(m[p]+D[E]);};function u(D,E){return D.replace(/url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g,function(F,G,H,I){if(/^\/|^\w?:/.test(H))return F; else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';
j.forceBlur();},100);},forceBlur:function(){if(this.hasFocus){var j=this._.editor;j.container.getChild(1).removeClass('cke_focus');this.hasFocus=false;j.fire('blur');}}};(function(){var j={};a.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,'en-au':1,'en-ca':1,'en-gb':1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,'fr-ca':1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,is:1,it:1,ja:1,km:1,ko:1,lt:1,lv:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,'pt-br':1,pt:1,ro:1,ru:1,sk:1,sl:1,'sr-latn':1,sr:1,sv:1,th:1,tr:1,uk:1,vi:1,'zh-cn':1,zh:1},load:function(k,l,m){if(!k||!a.lang.languages[k])k=this.detect(l,k);if(!this[k])a.scriptLoader.load(a.getUrl('lang/'+k+'.js'),function(){m(k,this[k]);},this);else m(k,this[k]);},detect:function(k,l){var m=this.languages;l=l||navigator.userLanguage||navigator.language;var n=l.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),o=n[1],p=n[2];if(m[o+'-'+p])o=o+'-'+p;else if(!m[o])o=null;a.lang.detect=o?function(){return o;}:function(q){return q;};return o||k;}};})();a.scriptLoader=(function(){var j={},k={};return{load:function(l,m,n,o,p){var q=typeof l=='string';if(q)l=[l];if(!n)n=a;var r=l.length,s=[],t=[],u=function(z){if(m)if(q)m.call(n,z);else m.call(n,s,t);};if(r===0){u(true);return;}var v=function(z,A){(A?s:t).push(z);if(--r<=0){p&&a.document.getDocumentElement().removeStyle('cursor');u(A);}},w=function(z,A){j[z]=1;var B=k[z];delete k[z];for(var C=0;C<B.length;C++)B[C](z,A);},x=function(z){if(o!==true&&j[z]){v(z,true);return;}var A=k[z]||(k[z]=[]);A.push(v);if(A.length>1)return;var B=new h('script');B.setAttributes({type:'text/javascript',src:z});if(m)if(c)B.$.onreadystatechange=function(){if(B.$.readyState=='loaded'||B.$.readyState=='complete'){B.$.onreadystatechange=null;w(z,true);}};else{B.$.onload=function(){setTimeout(function(){w(z,true);},0);};B.$.onerror=function(){w(z,false);};}B.appendTo(a.document.getHead());};p&&a.document.getDocumentElement().setStyle('cursor','wait');for(var y=0;y<r;y++)x(l[y]);},loadCode:function(l){var m=new h('script');m.setAttribute('type','text/javascript');m.appendText(l);m.appendTo(a.document.getHead());}};})();a.resourceManager=function(j,k){var l=this;l.basePath=j;l.fileName=k;l.registered={};l.loaded={};l.externals={};l._={waitingList:{}};};a.resourceManager.prototype={add:function(j,k){if(this.registered[j])throw '[CKEDITOR.resourceManager.add] The resource name "'+j+'" is already registered.';a.fire(j+e.capitalize(this.fileName)+'Ready',this.registered[j]=k||{});},get:function(j){return this.registered[j]||null;
m.setAttribute('type','text/javascript');m.appendText(l);m.appendTo(a.document.getHead());}};})();a.resourceManager=function(j,k){var l=this;l.basePath=j;l.fileName=k;l.registered={};l.loaded={};l.externals={};l._={waitingList:{}};};a.resourceManager.prototype={add:function(j,k){if(this.registered[j])throw '[CKEDITOR.resourceManager.add] The resource name "'+j+'" is already registered.';a.fire(j+e.capitalize(this.fileName)+'Ready',this.registered[j]=k||{});},get:function(j){return this.registered[j]||null;},getPath:function(j){var k=this.externals[j];return a.getUrl(k&&k.dir||this.basePath+j+'/');},getFilePath:function(j){var k=this.externals[j];return a.getUrl(this.getPath(j)+(k&&typeof k.file=='string'?k.file:this.fileName+'.js'));},addExternal:function(j,k,l){j=j.split(',');for(var m=0;m<j.length;m++){var n=j[m];this.externals[n]={dir:k,file:l};}},load:function(j,k,l){if(!e.isArray(j))j=j?[j]:[];var m=this.loaded,n=this.registered,o=[],p={},q={};for(var r=0;r<j.length;r++){var s=j[r];if(!s)continue;if(!m[s]&&!n[s]){var t=this.getFilePath(s);o.push(t);if(!(t in p))p[t]=[];p[t].push(s);}else q[s]=this.get(s);}a.scriptLoader.load(o,function(u,v){if(v.length)throw '[CKEDITOR.resourceManager.load] Resource name "'+p[v[0]].join(',')+'" was not found at "'+v[0]+'".';for(var w=0;w<u.length;w++){var x=p[u[w]];for(var y=0;y<x.length;y++){var z=x[y];q[z]=this.get(z);m[z]=1;}}k.call(l,q);},this);}};a.plugins=new a.resourceManager('plugins/','plugin');var j=a.plugins;j.load=e.override(j.load,function(k){return function(l,m,n){var o={},p=function(q){k.call(this,q,function(r){e.extend(o,r);var s=[];for(var t in r){var u=r[t],v=u&&u.requires;if(v)for(var w=0;w<v.length;w++){if(!o[v[w]])s.push(v[w]);}}if(s.length)p.call(this,s);else{for(t in o){u=o[t];if(u.onLoad&&!u.onLoad._called){u.onLoad();u.onLoad._called=1;}}if(m)m.call(n||window,o);}},this);};p.call(this,l);};});j.setLang=function(k,l,m){var n=this.get(k),o=n.lang||(n.lang={});o[l]=m;};(function(){var k={},l=function(m,n){var o=function(){p.removeAllListeners();k[m]=1;n();},p=new h('img');p.on('load',o);p.on('error',o);p.setAttribute('src',m);};a.imageCacher={load:function(m,n){var o=m.length,p=function(){if(--o===0)n();};for(var q=0;q<m.length;q++){var r=m[q];if(k[r])p();else l(r,p);}}};})();a.skins=(function(){var k={},l={},m={},n=function(o,p,q,r){var s=k[p];if(!o.skin){o.skin=s;if(s.init)s.init(o);}var t=function(D){for(var E=0;E<D.length;E++)D[E]=a.getUrl(m[p]+D[E]);};function u(D,E){return D.replace(/url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g,function(F,G,H,I){if(/^\/|^\w?:/.test(H))return F;else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';
function () { window.goDoCommand("cmd_collapseAllThreads"); });
function () { window.goDoCommand("cmd_expandAllThreads"); });
function () { window.goDoCommand("cmd_collapseAllThreads"); });
function (count) { buffer.zoomIn(Math.max(count, 1), true); },
function (count) { buffer.zoomIn(Math.max(count, 1) * 3, true); },
function (count) { buffer.zoomIn(Math.max(count, 1), true); },
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.forward, true); },
function () { window.goDoCommand("cmd_collapseAllThreads"); });
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.forward, true); },
function (count) { buffer.zoomIn(Math.max(count, 1) * 3, true); },
function (count) { buffer.zoomOut(Math.max(count, 1), true); },
function (count) { buffer.zoomIn(Math.max(count, 1) * 3, true); },
else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';
j.forceBlur();},100);},forceBlur:function(){if(this.hasFocus){var j=this._.editor;j.container.getChild(1).removeClass('cke_focus');this.hasFocus=false;j.fire('blur');}}};(function(){var j={};a.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,'en-au':1,'en-ca':1,'en-gb':1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,'fr-ca':1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,is:1,it:1,ja:1,km:1,ko:1,lt:1,lv:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,'pt-br':1,pt:1,ro:1,ru:1,sk:1,sl:1,'sr-latn':1,sr:1,sv:1,th:1,tr:1,uk:1,vi:1,'zh-cn':1,zh:1},load:function(k,l,m){if(!k||!a.lang.languages[k])k=this.detect(l,k);if(!this[k])a.scriptLoader.load(a.getUrl('lang/'+k+'.js'),function(){m(k,this[k]);},this);else m(k,this[k]);},detect:function(k,l){var m=this.languages;l=l||navigator.userLanguage||navigator.language;var n=l.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),o=n[1],p=n[2];if(m[o+'-'+p])o=o+'-'+p;else if(!m[o])o=null;a.lang.detect=o?function(){return o;}:function(q){return q;};return o||k;}};})();a.scriptLoader=(function(){var j={},k={};return{load:function(l,m,n,o,p){var q=typeof l=='string';if(q)l=[l];if(!n)n=a;var r=l.length,s=[],t=[],u=function(z){if(m)if(q)m.call(n,z);else m.call(n,s,t);};if(r===0){u(true);return;}var v=function(z,A){(A?s:t).push(z);if(--r<=0){p&&a.document.getDocumentElement().removeStyle('cursor');u(A);}},w=function(z,A){j[z]=1;var B=k[z];delete k[z];for(var C=0;C<B.length;C++)B[C](z,A);},x=function(z){if(o!==true&&j[z]){v(z,true);return;}var A=k[z]||(k[z]=[]);A.push(v);if(A.length>1)return;var B=new h('script');B.setAttributes({type:'text/javascript',src:z});if(m)if(c)B.$.onreadystatechange=function(){if(B.$.readyState=='loaded'||B.$.readyState=='complete'){B.$.onreadystatechange=null;w(z,true);}};else{B.$.onload=function(){setTimeout(function(){w(z,true);},0);};B.$.onerror=function(){w(z,false);};}B.appendTo(a.document.getHead());};p&&a.document.getDocumentElement().setStyle('cursor','wait');for(var y=0;y<r;y++)x(l[y]);},loadCode:function(l){var m=new h('script');m.setAttribute('type','text/javascript');m.appendText(l);m.appendTo(a.document.getHead());}};})();a.resourceManager=function(j,k){var l=this;l.basePath=j;l.fileName=k;l.registered={};l.loaded={};l.externals={};l._={waitingList:{}};};a.resourceManager.prototype={add:function(j,k){if(this.registered[j])throw '[CKEDITOR.resourceManager.add] The resource name "'+j+'" is already registered.';a.fire(j+e.capitalize(this.fileName)+'Ready',this.registered[j]=k||{});},get:function(j){return this.registered[j]||null;
else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.back, true); },
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.forward, true); },
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.back, true); },
function (count) { buffer.zoomOut(Math.max(count, 1), true); },
function (count) { buffer.zoomOut(Math.max(count, 1) * 3, true); },
function (count) { buffer.zoomOut(Math.max(count, 1), true); },
else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';
},getPath:function(j){var k=this.externals[j];return a.getUrl(k&&k.dir||this.basePath+j+'/');},getFilePath:function(j){var k=this.externals[j];return a.getUrl(this.getPath(j)+(k&&typeof k.file=='string'?k.file:this.fileName+'.js'));},addExternal:function(j,k,l){j=j.split(',');for(var m=0;m<j.length;m++){var n=j[m];this.externals[n]={dir:k,file:l};}},load:function(j,k,l){if(!e.isArray(j))j=j?[j]:[];var m=this.loaded,n=this.registered,o=[],p={},q={};for(var r=0;r<j.length;r++){var s=j[r];if(!s)continue;if(!m[s]&&!n[s]){var t=this.getFilePath(s);o.push(t);if(!(t in p))p[t]=[];p[t].push(s);}else q[s]=this.get(s);}a.scriptLoader.load(o,function(u,v){if(v.length)throw '[CKEDITOR.resourceManager.load] Resource name "'+p[v[0]].join(',')+'" was not found at "'+v[0]+'".';for(var w=0;w<u.length;w++){var x=p[u[w]];for(var y=0;y<x.length;y++){var z=x[y];q[z]=this.get(z);m[z]=1;}}k.call(l,q);},this);}};a.plugins=new a.resourceManager('plugins/','plugin');var j=a.plugins;j.load=e.override(j.load,function(k){return function(l,m,n){var o={},p=function(q){k.call(this,q,function(r){e.extend(o,r);var s=[];for(var t in r){var u=r[t],v=u&&u.requires;if(v)for(var w=0;w<v.length;w++){if(!o[v[w]])s.push(v[w]);}}if(s.length)p.call(this,s);else{for(t in o){u=o[t];if(u.onLoad&&!u.onLoad._called){u.onLoad();u.onLoad._called=1;}}if(m)m.call(n||window,o);}},this);};p.call(this,l);};});j.setLang=function(k,l,m){var n=this.get(k),o=n.lang||(n.lang={});o[l]=m;};(function(){var k={},l=function(m,n){var o=function(){p.removeAllListeners();k[m]=1;n();},p=new h('img');p.on('load',o);p.on('error',o);p.setAttribute('src',m);};a.imageCacher={load:function(m,n){var o=m.length,p=function(){if(--o===0)n();};for(var q=0;q<m.length;q++){var r=m[q];if(k[r])p();else l(r,p);}}};})();a.skins=(function(){var k={},l={},m={},n=function(o,p,q,r){var s=k[p];if(!o.skin){o.skin=s;if(s.init)s.init(o);}var t=function(D){for(var E=0;E<D.length;E++)D[E]=a.getUrl(m[p]+D[E]);};function u(D,E){return D.replace(/url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g,function(F,G,H,I){if(/^\/|^\w?:/.test(H))return F;else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);
else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.firstMessage, true); },
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.back, true); },
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.firstMessage, true); },
function (count) { buffer.zoomOut(Math.max(count, 1) * 3, true); },
function (count) { buffer.fullZoom = count > 1 ? count : 100; },
function (count) { buffer.zoomOut(Math.max(count, 1) * 3, true); },
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.lastMessage, false); },
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.firstMessage, true); },
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.lastMessage, false); },
function (count) { buffer.fullZoom = count > 1 ? count : 100; },
function (count) { buffer.showPageInfo(false); },
function (count) { buffer.fullZoom = count > 1 ? count : 100; },
else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr'; s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);
},getPath:function(j){var k=this.externals[j];return a.getUrl(k&&k.dir||this.basePath+j+'/');},getFilePath:function(j){var k=this.externals[j];return a.getUrl(this.getPath(j)+(k&&typeof k.file=='string'?k.file:this.fileName+'.js'));},addExternal:function(j,k,l){j=j.split(',');for(var m=0;m<j.length;m++){var n=j[m];this.externals[n]={dir:k,file:l};}},load:function(j,k,l){if(!e.isArray(j))j=j?[j]:[];var m=this.loaded,n=this.registered,o=[],p={},q={};for(var r=0;r<j.length;r++){var s=j[r];if(!s)continue;if(!m[s]&&!n[s]){var t=this.getFilePath(s);o.push(t);if(!(t in p))p[t]=[];p[t].push(s);}else q[s]=this.get(s);}a.scriptLoader.load(o,function(u,v){if(v.length)throw '[CKEDITOR.resourceManager.load] Resource name "'+p[v[0]].join(',')+'" was not found at "'+v[0]+'".';for(var w=0;w<u.length;w++){var x=p[u[w]];for(var y=0;y<x.length;y++){var z=x[y];q[z]=this.get(z);m[z]=1;}}k.call(l,q);},this);}};a.plugins=new a.resourceManager('plugins/','plugin');var j=a.plugins;j.load=e.override(j.load,function(k){return function(l,m,n){var o={},p=function(q){k.call(this,q,function(r){e.extend(o,r);var s=[];for(var t in r){var u=r[t],v=u&&u.requires;if(v)for(var w=0;w<v.length;w++){if(!o[v[w]])s.push(v[w]);}}if(s.length)p.call(this,s);else{for(t in o){u=o[t];if(u.onLoad&&!u.onLoad._called){u.onLoad();u.onLoad._called=1;}}if(m)m.call(n||window,o);}},this);};p.call(this,l);};});j.setLang=function(k,l,m){var n=this.get(k),o=n.lang||(n.lang={});o[l]=m;};(function(){var k={},l=function(m,n){var o=function(){p.removeAllListeners();k[m]=1;n();},p=new h('img');p.on('load',o);p.on('error',o);p.setAttribute('src',m);};a.imageCacher={load:function(m,n){var o=m.length,p=function(){if(--o===0)n();};for(var q=0;q<m.length;q++){var r=m[q];if(k[r])p();else l(r,p);}}};})();a.skins=(function(){var k={},l={},m={},n=function(o,p,q,r){var s=k[p];if(!o.skin){o.skin=s;if(s.init)s.init(o);}var t=function(D){for(var E=0;E<D.length;E++)D[E]=a.getUrl(m[p]+D[E]);};function u(D,E){return D.replace(/url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g,function(F,G,H,I){if(/^\/|^\w?:/.test(H))return F;else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);
else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);
function (arg) { if (!gDBView.numSelected) return void liberator.beep(); switch (arg) { case "r": MsgMarkMsgAsRead(); break; case "s": MsgMarkAsFlagged(); break; case "i": case "1": ToggleMessageTagKey(1); break; case "w": case "2": ToggleMessageTagKey(2); break; case "p": case "3": ToggleMessageTagKey(3); break; case "t": case "4": ToggleMessageTagKey(4); break; case "l": case "5": ToggleMessageTagKey(5); break; default: liberator.beep(); } },
function (count) { if (count < 1) count = 1; while (count--) GoNextMessage(nsMsgNavigationType.lastMessage, false); },
function (arg) { if (!gDBView.numSelected) return void liberator.beep(); switch (arg) { case "r": MsgMarkMsgAsRead(); break; case "s": MsgMarkAsFlagged(); break; case "i": // Important case "1": ToggleMessageTagKey(1); break; case "w": // Work case "2": ToggleMessageTagKey(2); break; case "p": // Personal case "3": ToggleMessageTagKey(3); break; case "t": // TODO case "4": ToggleMessageTagKey(4); break; case "l": // Later case "5": ToggleMessageTagKey(5); break; default: liberator.beep(); } },
function (count) { buffer.showPageInfo(false); },
function () { buffer.showPageInfo(true); });
function (count) { buffer.showPageInfo(false); },
function () { if (mail.currentFolder.isServer) return liberator.beep();
function (arg) { if (!gDBView.numSelected) return void liberator.beep();
function () { if (mail.currentFolder.isServer) return liberator.beep(); mail.currentFolder.markAllMessagesRead(msgWindow); });
mail.currentFolder.markAllMessagesRead(msgWindow); });
switch (arg) { case "r": MsgMarkMsgAsRead(); break; case "s": MsgMarkAsFlagged(); break; case "i": case "1": ToggleMessageTagKey(1); break; case "w": case "2": ToggleMessageTagKey(2); break; case "p": case "3": ToggleMessageTagKey(3); break; case "t": case "4": ToggleMessageTagKey(4); break; case "l": case "5": ToggleMessageTagKey(5); break; default: liberator.beep(); } },
function () { if (mail.currentFolder.isServer) return liberator.beep(); mail.currentFolder.markAllMessagesRead(msgWindow); });
if (math.abs(this.getTotalLength() - to) < 1e-6) { return getSubpathsAtLength(this.attrs.path, from).end; }
Element[proto].getSubpath = function (from, to) { if (this.type != "path") return; var a = getSubpathsAtLength(this.attrs.path, to, 1); return from ? getSubpathsAtLength(a, from).end : a; };
mail.getFolders("", false).forEach(function (folder) { folder.markAllMessagesRead(msgWindow); });
if (mail.currentFolder.isServer) return liberator.beep(); mail.currentFolder.markAllMessagesRead(msgWindow);
function () { mail.getFolders("", false).forEach(function (folder) { folder.markAllMessagesRead(msgWindow); }); });
else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr'; s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);
},getPath:function(j){var k=this.externals[j];return a.getUrl(k&&k.dir||this.basePath+j+'/');},getFilePath:function(j){var k=this.externals[j];return a.getUrl(this.getPath(j)+(k&&typeof k.file=='string'?k.file:this.fileName+'.js'));},addExternal:function(j,k,l){j=j.split(',');for(var m=0;m<j.length;m++){var n=j[m];this.externals[n]={dir:k,file:l};}},load:function(j,k,l){if(!e.isArray(j))j=j?[j]:[];var m=this.loaded,n=this.registered,o=[],p={},q={};for(var r=0;r<j.length;r++){var s=j[r];if(!s)continue;if(!m[s]&&!n[s]){var t=this.getFilePath(s);o.push(t);if(!(t in p))p[t]=[];p[t].push(s);}else q[s]=this.get(s);}a.scriptLoader.load(o,function(u,v){if(v.length)throw '[CKEDITOR.resourceManager.load] Resource name "'+p[v[0]].join(',')+'" was not found at "'+v[0]+'".';for(var w=0;w<u.length;w++){var x=p[u[w]];for(var y=0;y<x.length;y++){var z=x[y];q[z]=this.get(z);m[z]=1;}}k.call(l,q);},this);}};a.plugins=new a.resourceManager('plugins/','plugin');var j=a.plugins;j.load=e.override(j.load,function(k){return function(l,m,n){var o={},p=function(q){k.call(this,q,function(r){e.extend(o,r);var s=[];for(var t in r){var u=r[t],v=u&&u.requires;if(v)for(var w=0;w<v.length;w++){if(!o[v[w]])s.push(v[w]);}}if(s.length)p.call(this,s);else{for(t in o){u=o[t];if(u.onLoad&&!u.onLoad._called){u.onLoad();u.onLoad._called=1;}}if(m)m.call(n||window,o);}},this);};p.call(this,l);};});j.setLang=function(k,l,m){var n=this.get(k),o=n.lang||(n.lang={});o[l]=m;};(function(){var k={},l=function(m,n){var o=function(){p.removeAllListeners();k[m]=1;n();},p=new h('img');p.on('load',o);p.on('error',o);p.setAttribute('src',m);};a.imageCacher={load:function(m,n){var o=m.length,p=function(){if(--o===0)n();};for(var q=0;q<m.length;q++){var r=m[q];if(k[r])p();else l(r,p);}}};})();a.skins=(function(){var k={},l={},m={},n=function(o,p,q,r){var s=k[p];if(!o.skin){o.skin=s;if(s.init)s.init(o);}var t=function(D){for(var E=0;E<D.length;E++)D[E]=a.getUrl(m[p]+D[E]);};function u(D,E){return D.replace(/url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g,function(F,G,H,I){if(/^\/|^\w?:/.test(H))return F;else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B); for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';var A=x.config;A.contentsLangDirection=='ui'&&(A.contentsLangDirection=x.lang.dir);s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];
else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);
mail.getFolders("", false).forEach(function (folder) { folder.markAllMessagesRead(msgWindow); });
function () { mail.getFolders("", false).forEach(function (folder) { folder.markAllMessagesRead(msgWindow); }); });
mail.getFolders("", false).forEach(function (folder) { folder.markAllMessagesRead(msgWindow); });
s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);
},getPath:function(j){var k=this.externals[j];return a.getUrl(k&&k.dir||this.basePath+j+'/');},getFilePath:function(j){var k=this.externals[j];return a.getUrl(this.getPath(j)+(k&&typeof k.file=='string'?k.file:this.fileName+'.js'));},addExternal:function(j,k,l){j=j.split(',');for(var m=0;m<j.length;m++){var n=j[m];this.externals[n]={dir:k,file:l};}},load:function(j,k,l){if(!e.isArray(j))j=j?[j]:[];var m=this.loaded,n=this.registered,o=[],p={},q={};for(var r=0;r<j.length;r++){var s=j[r];if(!s)continue;if(!m[s]&&!n[s]){var t=this.getFilePath(s);o.push(t);if(!(t in p))p[t]=[];p[t].push(s);}else q[s]=this.get(s);}a.scriptLoader.load(o,function(u,v){if(v.length)throw '[CKEDITOR.resourceManager.load] Resource name "'+p[v[0]].join(',')+'" was not found at "'+v[0]+'".';for(var w=0;w<u.length;w++){var x=p[u[w]];for(var y=0;y<x.length;y++){var z=x[y];q[z]=this.get(z);m[z]=1;}}k.call(l,q);},this);}};a.plugins=new a.resourceManager('plugins/','plugin');var j=a.plugins;j.load=e.override(j.load,function(k){return function(l,m,n){var o={},p=function(q){k.call(this,q,function(r){e.extend(o,r);var s=[];for(var t in r){var u=r[t],v=u&&u.requires;if(v)for(var w=0;w<v.length;w++){if(!o[v[w]])s.push(v[w]);}}if(s.length)p.call(this,s);else{for(t in o){u=o[t];if(u.onLoad&&!u.onLoad._called){u.onLoad();u.onLoad._called=1;}}if(m)m.call(n||window,o);}},this);};p.call(this,l);};});j.setLang=function(k,l,m){var n=this.get(k),o=n.lang||(n.lang={});o[l]=m;};(function(){var k={},l=function(m,n){var o=function(){p.removeAllListeners();k[m]=1;n();},p=new h('img');p.on('load',o);p.on('error',o);p.setAttribute('src',m);};a.imageCacher={load:function(m,n){var o=m.length,p=function(){if(--o===0)n();};for(var q=0;q<m.length;q++){var r=m[q];if(k[r])p();else l(r,p);}}};})();a.skins=(function(){var k={},l={},m={},n=function(o,p,q,r){var s=k[p];if(!o.skin){o.skin=s;if(s.init)s.init(o);}var t=function(D){for(var E=0;E<D.length;E++)D[E]=a.getUrl(m[p]+D[E]);};function u(D,E){return D.replace(/url\s*\(([\s'"]*)(.*?)([\s"']*)\)/g,function(F,G,H,I){if(/^\/|^\w?:/.test(H))return F;else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=function(){if(y&&z){q._isLoaded=1;for(var D=0;D<x.length;D++){if(x[D])x[D]();}}};if(!y){var B=q.css;if(e.isArray(B)){t(B);
s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);
},
}
function(result) { BigInteger.log( "stepping_isProbablePrime No.3: returning millerRabin : subparam.result=" + result ); BigInteger.log( "stepping_isProbablePrime No.3: param.result=" + result ); return DONE(); },
$("#next a").click(function(event) { DeckViewerUI.next(); });
$("#next a").click(function() { DeckViewerUI.next(); });
$("#next a").click(function(event) { DeckViewerUI.next(); });
return f},show:function(){a.style.height=I+"px";if(l)l.style.height=G+"px";return f},isHidden:function(){return l&&parseInt(l.style.height,10)===0},load:function(g){if(!l&&f._fireEvent("onBeforeLoad")!==false){o(e,function(){this.unload()});if((F=a.innerHTML)&&!flashembed.isSupported(b.version))a.innerHTML="";flashembed(a,b,{config:c});if(g){g.cached=true;y(w,"onLoad",g)}}return f},unload:function(){if(F.replace(/\s/g,"")!==""){if(f._fireEvent("onBeforeUnload")===false)return f;try{if(l){l.fp_close();
return f},show:function(){a.style.height=G+"px";if(l)l.style.height=H+"px";return f},isHidden:function(){return l&&parseInt(l.style.height,10)===0},load:function(g){if(!l&&f._fireEvent("onBeforeLoad")!==false){o(e,function(){this.unload()});if((F=a.innerHTML)&&!flashembed.isSupported(b.version))a.innerHTML="";flashembed(a,b,{config:c});if(g){g.cached=true;y(w,"onLoad",g)}}return f},unload:function(){if(F.replace(/\s/g,"")!==""){if(f._fireEvent("onBeforeUnload")===false)return f;try{if(l){l.fp_close();
return f},show:function(){a.style.height=I+"px";if(l)l.style.height=G+"px";return f},isHidden:function(){return l&&parseInt(l.style.height,10)===0},load:function(g){if(!l&&f._fireEvent("onBeforeLoad")!==false){o(e,function(){this.unload()});if((F=a.innerHTML)&&!flashembed.isSupported(b.version))a.innerHTML="";flashembed(a,b,{config:c});if(g){g.cached=true;y(w,"onLoad",g)}}return f},unload:function(){if(F.replace(/\s/g,"")!==""){if(f._fireEvent("onBeforeUnload")===false)return f;try{if(l){l.fp_close();
}
};
return function() { oGeodesyMarker.monthClicked(year, month, monthHrefId, datesDivId); }
if (this.nextTab()) { this.nextTab().activate();
var nextTab = this.menu.activeTab.nextTab(); if (nextTab) { nextTab.activate();
this.parent.autoPlayerTimer = setTimeout(function() { if (this.nextTab()) { this.nextTab().activate(); } }.bind(this), this.parent.options.autoPlayDelay);
function (args) mail.getNewMessages(!args.bang),
function () { window.goDoCommand("cmd_emptyTrash"); },
function (args) mail.getNewMessages(!args.bang),
monthSelector.unbind("change").change(function() { self.setDate(yearSelector.val(), $(this).val());
$.each(instances, function() { this.hide();
monthSelector.unbind("change").change(function() { self.setDate(yearSelector.val(), $(this).val()); });
this.setBool("showLastUsedPattern", value);
this.setBool("editClearNextStack", value);
function(value) { this.setBool("showLastUsedPattern", value);});
api.onAddItem(function(e, item) { item = addItem(api.getItems().index(item)); if (history) { item.history(doHistory); } });
setTimeout(function() { if (!e.isDefaultPrevented()) { var el = els().eq(index); if (!e.isDefaultPrevented() && el.length) { els().removeClass(cls).eq(index).addClass(cls); } } }, 1);
api.onAddItem(function(e, item) { item = addItem(api.getItems().index(item)); if (history) { item.history(doHistory); } });
$(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); });
$("#slide-menu-container .ui-widget-header").click(function() { $("#slide-menu-container .ui-widget-content").slideToggle("slow"); $(this).toggleClass("active"); return false; });
$(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); });
}, function() { $('#help-box').html('').hide(); });
$("#loading").ajaxStart(function() { $(this).show(); });
}, function() { $('#help-box').html('').hide(); });
$.each(instances, function() { this.hide();
monthSelector.unbind("change").change(function() { self.setDate(yearSelector.val(), $(this).val());
$.each(instances, function() { this.hide(); });
}
};
show_panel = (function () { var panel = document.createElement("div"), is_open = false; ///NOTE: The default style does has "display" set to "none" and "position" set to "fixed." panel.className = "panel"; /// Attach the element to the DOM now so that it does not have to be done each time it is displayed. document.body.insertBefore(panel, null); function close_panel(callback, quick) { ///TODO: Attempt to detect CSS transition support. Something like var cssTransitionsSupported = document.body.style.webkitTransition !== undefined || document.body.style.MozTransition !== undefined || document.body.style.OTransition !== undefined; if (quick) { /// First, stop the element from being displayed. panel.style.display = "none"; } else { panel.style.top = -panel.offsetHeight + "px"; } /// A delay is needed so that if there is a callback, it will run after the menu has been visually removed from the page. window.setTimeout(function () { /// Set the menu's is_open status to false after the delay to prevent the menu from being re-opened in the meantime. is_open = false; if (callback) { callback(); } }, 0); } function open_panel() { var menu_item, panel_container = document.createElement("div"); menu_item = document.createElement("input"); menu_item.type = "button"; menu_item.value="close"; menu_item.onclick = function () { close_panel(); } panel_container.appendChild(menu_item); panel.appendChild(panel_container); panel.className = "panel"; panel.style.display = "block"; panel.style.top = -panel.offsetHeight + "px"; panel.style.left = ((window.innerWidth / 2) - (panel.offsetWidth / 2)) + "px"; panel.className = "panel slide"; window.setTimeout(function () { panel.style.top = 0; }, 0); } return function () { close_panel(function () { open_panel(); }, true); }; }());
return this.each(function() { var element = $(this);
(function($) { $.fn.inlineTextEdit = function(options) { var defaults = { saveUrl: null, current: {}, extraParams: {}, inputClasses: 'inputText', allowEmpty: false, tooltip: 'click to edit' }; var options = $.extend(defaults, options); return this.each(function() { $(this).html('<span>'+ $(this).html() +'</span><span style="display: none;" class="inlineEditTooltip">'+ options.tooltip +'</span>');
return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // bind change on the checkboxes if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } }); // calculate meta function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } } });
calculateMeta(null, $(this));
var element = $($(this).find('span')[0]);
return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // bind change on the checkboxes if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } }); // calculate meta function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } } });
$(this).bind('keyup', calculateMeta);
element.bind('click focus', createElement); $(this).hover(function() { $(this).addClass('inlineEditHover'); $($(this).find('span')[1]).show(); }, function() { $(this).removeClass('inlineEditHover'); $($(this).find('span')[1]).hide(); });
return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // bind change on the checkboxes if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } }); // calculate meta function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } } });
if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val());
function createElement() { options.current.value = element.html(); if($(this).parent().attr('rel') != '') options.current.extraParams = eval('('+ $(this).parent().attr('rel') +')'); element.addClass('inlineEditing'); element.unbind('click').unbind('focus'); element.html('<input type="text" class="'+ options.inputClasses +'" value="'+ options.current.value +'" />'); options.current.element = $(element.find('input')[0]); options.current.element.select(); options.current.element.bind('blur', saveElement); options.current.element.keyup(function(evt) { if(evt.which == 27) { options.current.element.val(options.current.value); destroyElement();
return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // bind change on the checkboxes if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } }); // calculate meta function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } } });
if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } });
function destroyElement() { var parent = options.current.element.parent(); parent.html(options.current.element.val()) .bind('click focus', createElement); parent.removeClass('inlineEditing');
return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // bind change on the checkboxes if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } }); // calculate meta function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } } });
$('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val());
function saveElement() { if(!options.allowEmpty && options.current.element.val() == '') { options.current.element.val(options.current.value);
return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // bind change on the checkboxes if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } }); // calculate meta function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } } });
}); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val());
if(options.current.element.val() != options.current.value) { options.current.extraParams['value'] = options.current.element.val(); $.ajax({ url: options.saveUrl, data: options.current.extraParams, success: function(data, textStatus) { destroyElement(); }, });
return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // bind change on the checkboxes if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } }); // calculate meta function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } } });
}); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } }); function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); }
else destroyElement()
return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // bind change on the checkboxes if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } }); // calculate meta function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } } });
}; })(jQuery);
return this.each(function() { // init var var element = $(this); // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // bind change on the checkboxes if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } }); // calculate meta function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } } });
getter: function () sanitizer.prefNames.filter(function (pref) options.getPref(pref)).map(Sanitizer.prefToArg).join(","),
].forEach(function (item) { let pref = self.prefDomain2 + item.name; if (options.getPref(pref) == null) options.setPref(pref, false); self.items[item.name] = { canClear: true, clear: item.action }; });
getter: function () sanitizer.prefNames.filter(function (pref) options.getPref(pref)).map(Sanitizer.prefToArg).join(","),
var editing = false;
(function($) { $.fn.inlineTextEdit = function(options) { // define defaults var defaults = { saveUrl: null, current: {}, extraParams: {}, inputClasses: 'inputText', allowEmpty: false, tooltip: 'click to edit' }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // add wrapper and tooltip $(this).html('<span>'+ $(this).html() +'</span><span style="display: none;" class="inlineEditTooltip">'+ options.tooltip +'</span>'); // grab element var element = $($(this).find('span')[0]); // bind events element.bind('click focus', createElement); $(this).hover(function() { $(this).addClass('inlineEditHover'); $($(this).find('span')[1]).show(); }, function() { $(this).removeClass('inlineEditHover'); $($(this).find('span')[1]).hide(); }); // create an element function createElement() { // grab current value options.current.value = element.html(); // grab extra params if($(this).parent().attr('rel') != '') options.current.extraParams = eval('('+ $(this).parent().attr('rel') +')'); // add class element.addClass('inlineEditing'); // remove events element.unbind('click').unbind('focus'); // set html element.html('<input type="text" class="'+ options.inputClasses +'" value="'+ options.current.value +'" />'); // store element options.current.element = $(element.find('input')[0]); // set focus options.current.element.select(); // bind events options.current.element.bind('blur', saveElement); options.current.element.keyup(function(evt) { // handle escape if(evt.which == 27) { // reset options.current.element.val(options.current.value); // destroy destroyElement(); } // save when someone presses enter if(evt.which == 13) saveElement(); }); } // destroy the element function destroyElement() { // get parent var parent = options.current.element.parent(); // set HTML and rebind events parent.html(options.current.element.val()) .bind('click focus', createElement); // add class parent.removeClass('inlineEditing'); } // save the element function saveElement() { // if the new value is empty and that isn't allowed, we restore // the original value if(!options.allowEmpty && options.current.element.val() == '') { options.current.element.val(options.current.value); } // is the value different from the original value if(options.current.element.val() != options.current.value) { // add element to the params options.current.extraParams['value'] = options.current.element.val(); // make the call $.ajax({ url: options.saveUrl, data: options.current.extraParams, success: function(data, textStatus) { // destroy the element destroyElement(); } }); } // destroy the element else destroyElement(); } }); };})(jQuery);
editing = false;
(function($) { $.fn.inlineTextEdit = function(options) { // define defaults var defaults = { saveUrl: null, current: {}, extraParams: {}, inputClasses: 'inputText', allowEmpty: false, tooltip: 'click to edit' }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // add wrapper and tooltip $(this).html('<span>'+ $(this).html() +'</span><span style="display: none;" class="inlineEditTooltip">'+ options.tooltip +'</span>'); // grab element var element = $($(this).find('span')[0]); // bind events element.bind('click focus', createElement); $(this).hover(function() { $(this).addClass('inlineEditHover'); $($(this).find('span')[1]).show(); }, function() { $(this).removeClass('inlineEditHover'); $($(this).find('span')[1]).hide(); }); // create an element function createElement() { // grab current value options.current.value = element.html(); // grab extra params if($(this).parent().attr('rel') != '') options.current.extraParams = eval('('+ $(this).parent().attr('rel') +')'); // add class element.addClass('inlineEditing'); // remove events element.unbind('click').unbind('focus'); // set html element.html('<input type="text" class="'+ options.inputClasses +'" value="'+ options.current.value +'" />'); // store element options.current.element = $(element.find('input')[0]); // set focus options.current.element.select(); // bind events options.current.element.bind('blur', saveElement); options.current.element.keyup(function(evt) { // handle escape if(evt.which == 27) { // reset options.current.element.val(options.current.value); // destroy destroyElement(); } // save when someone presses enter if(evt.which == 13) saveElement(); }); } // destroy the element function destroyElement() { // get parent var parent = options.current.element.parent(); // set HTML and rebind events parent.html(options.current.element.val()) .bind('click focus', createElement); // add class parent.removeClass('inlineEditing'); } // save the element function saveElement() { // if the new value is empty and that isn't allowed, we restore // the original value if(!options.allowEmpty && options.current.element.val() == '') { options.current.element.val(options.current.value); } // is the value different from the original value if(options.current.element.val() != options.current.value) { // add element to the params options.current.extraParams['value'] = options.current.element.val(); // make the call $.ajax({ url: options.saveUrl, data: options.current.extraParams, success: function(data, textStatus) { // destroy the element destroyElement(); } }); } // destroy the element else destroyElement(); } }); };})(jQuery);
fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=m.pageCoordinates(d);N=d.x;J=d.y}function t(){var d=m.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){z(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;m.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,c){var e=aa;e.object=m.getElement(d.getAttribute("dwid"));if(e.object==
l;if(s)k(fqstate);else{location.hash=fqstate;if(v){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function x(d){d=m.pageCoordinates(d);N=d.x;J=d.y}function u(){var d=m.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){z(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;m.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,
fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=m.pageCoordinates(d);N=d.x;J=d.y}function t(){var d=m.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){z(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;m.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,c){var e=aa;e.object=m.getElement(d.getAttribute("dwid"));if(e.object==
return DONE(result);
return DONE();
function(result) { BigInteger.log( "stepping_isProbablePrime No.3: returning millerRabin : subparam.result=" + result.prime ); BigInteger.log( "stepping_isProbablePrime No.3: param.result=" + result.prime ); return DONE(result); },
[settings.effect](settings.effectspeed);self.loaded=true;});};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});};$.belowthefold=function(element,settings){var fold=$(window).height()+$(window).scrollTop();return fold<=$(element).offset().top-settings.threshold;};$.rightoffold=function(element,settings){var fold=$(window).width()+$(window).scrollLeft();return fold<=$(element).offset().left-settings.threshold;};$.extend($.expr[':'],{"below-the-fold":"$.belowthefold(a, {threshold : 0})","above-the-fold":"!$.belowthefold(a, {threshold : 0})","right-of-fold":"$.rightoffold(a, {threshold : 0})","left-of-fold":"!$.rightoffold(a, {threshold : 0})"});})(jQuery);
[settings.effect](settings.effectspeed);self.loaded=true;}).attr("src",$(self).attr("original"));};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});$(settings.container).trigger(settings.event);return this;};$.belowthefold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).height()+$(window).scrollTop();}else{var fold=$(settings.container).offset().top+$(settings.container).height();}
[settings.effect](settings.effectspeed);self.loaded=true;});};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});};$.belowthefold=function(element,settings){var fold=$(window).height()+$(window).scrollTop();return fold<=$(element).offset().top-settings.threshold;};$.rightoffold=function(element,settings){var fold=$(window).width()+$(window).scrollLeft();return fold<=$(element).offset().left-settings.threshold;};$.extend($.expr[':'],{"below-the-fold":"$.belowthefold(a, {threshold : 0})","above-the-fold":"!$.belowthefold(a, {threshold : 0})","right-of-fold":"$.rightoffold(a, {threshold : 0})","left-of-fold":"!$.rightoffold(a, {threshold : 0})"});})(jQuery);
var prev = root.parent().find(conf.prev).click(function() { self.prev(); }),
var prev = find(root, conf.prev).click(function() { self.prev(); }),
var prev = root.parent().find(conf.prev).click(function() { self.prev(); }),
$("textarea", $element).each(function(){ var value = $(this).attr('value'); if ($.browser.mozilla) this.firstChild.textContent = value; else this.innerHTML = value; });
$("option", $select).each(function () { if ($select.val() == $(this).val()) this.setAttribute('selected', 'selected'); });
$("textarea", $element).each(function(){ //Thanks http://blog.ekini.net/2009/02/24/jquery-getting-the-latest-textvalue-inside-a-textarea/ var value = $(this).attr('value'); if ($.browser.mozilla) this.firstChild.textContent = value; else this.innerHTML = value; });
"string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}}
"text"))){E=l;if(q){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(z=p)}}}},navigate:function(l){if(H){fqstate=l;if(q)j(fqstate);else{location.hash=fqstate;if(u){L[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!H)return"";return D}}}()}),_$_APP_CLASS_$_=new (function(){function v(d){d=o.pageCoordinates(d);G=d.x;da=d.y}function t(){var d=o.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){z(null,"hash",null,true)},1)}}function A(d){if(O!=
"string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}}
centerPanel.on('resize', function() { map.checkResize();
GEvent.addListener(map, "click", function(overlay, latlng) { gMapClickController(map, overlay, latlng, activeLayersStore);
centerPanel.on('resize', function() { map.checkResize(); });
function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+"
b;else this.innerHTML=b});return a("<div></div>").append(c.clone()).html()}function m(c,b){var i=a(c);c=l(c);var d=[];d.push("<html><head><title>"+b.pageTitle+"</title>");if(b.overrideElementCSS){if(b.overrideElementCSS.length>0)for(var f=0;f<b.overrideElementCSS.length;f++){var e=b.overrideElementCSS[f];typeof e=="string"?d.push('<link type="text/css" rel="stylesheet" href="'+e+'" >'):d.push('<link type="text/css" rel="stylesheet" href="'+e.href+'" media="'+e.media+'" >')}}else a("link",j).filter(function(){return a(this).attr("rel").toLowerCase()== "stylesheet"}).each(function(){d.push('<link type="text/css" rel="stylesheet" href="'+a(this).attr("href")+'" media="'+a(this).attr("media")+'" >')});d.push('<base href="'+(g.location.protocol+"
function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname;}function _getMarkup(element,opts){var $element=$(element);var elementHtml=_getElementHTMLIncludingFormElements(element);var html=new Array();html.push('<html><head><title>'+opts.pageTitle+'</title>');if(opts.overrideElementCSS){if(opts.overrideElementCSS.length>0){for(var x=0;x<opts.overrideElementCSS.length;x++){var current=opts.overrideElementCSS[x];if(typeof(current)=='string')html.push('<link type="text/css" rel="stylesheet" href="'+current+'" >');else html.push('<link type="text/css" rel="stylesheet" href="'+current.href+'" media="'+current.media+'" >');}}}else{$(document).find("link").filter(function(){return $(this).attr("rel").toLowerCase()=="stylesheet";}).each(function(){html.push('<link type="text/css" rel="stylesheet" href="'+$(this).attr("href")+'" media="'+$(this).attr('media')+'" >');});}html.push('<base href="'+_getBaseHref()+'" />');html.push('</head><body style="'+opts.printBodyOptions.styleToAdd+'" class="'+opts.printBodyOptions.classNameToAdd+'">');html.push('<div class="'+$element.attr('class')+'">'+elementHtml+'</div>');html.push('<script type="text/javascript">function printPage(){focus();print();'+((!$.browser.opera&&!opts.leaveOpen&&opts.printMode.toLowerCase()=='popup')?'close();':'')+'}</script>');html.push('</body></html>');return html.join('');};})(jQuery);
BigInteger.log( "stepping_isProbablePrime No.3: returning millerRabin : subparam.result=" + result.prime );
BigInteger.log( "stepping_isProbablePrime No.3: returning millerRabin : subparam.result=" + result );
function(result) { BigInteger.log( "stepping_isProbablePrime No.3: returning millerRabin : subparam.result=" + result.prime ); BigInteger.log( "stepping_isProbablePrime No.3: param.result=" + result.prime ); return DONE(); },
BigInteger.log( "stepping_isProbablePrime No.3: param.result=" + result.prime );
BigInteger.log( "stepping_isProbablePrime No.3: param.result=" + result );
function(result) { BigInteger.log( "stepping_isProbablePrime No.3: returning millerRabin : subparam.result=" + result.prime ); BigInteger.log( "stepping_isProbablePrime No.3: param.result=" + result.prime ); return DONE(); },
if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } });
return this.each(function() { // initialize calculateMeta(null, $(this)); // bind keypress $(this).bind('keyup', calculateMeta); // calculate meta function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val(); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title); } } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title); } } if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title); } if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); } } });
}), red_letters: create_get_set(true, function (values)
(function () { var viewPort_num, verse_lookup = 1, mixed_search = 2, standard_search = 3, grammatical_search = 4, additional = 1, previous = 2, content_manager, settings, query_manager; if (!BF.viewPort_count) { BF.viewPort_count = 0; } viewPort_num = BF.viewPort_count; ++BF.viewPort_count; (function ()
}), red_letters: create_get_set(true, function (values) { /// Alternate between red and black letters. ///TODO: Add other options, such as custom color, and (in the future) highlighting of other people's words (e.g., highlight the words of Paul in blue). BF.changeCSS(".q", "color: " + (values.new_val ? "#D00;" : "#000;")); })}};
BF.changeCSS(".q", "color: " + (values.new_val ? "#D00;" : "#000;")); })}};
function create_get_set(cur_val, onchange) { return { get: function () { return cur_val; }, set: function (new_val) { var old_val = cur_val; cur_val = new_val; if (onchange) { window.setTimeout(function () { onchange({old_val: old_val, new_val: new_val}); }, 0); } } }; } settings = { view: { in_paragraphs: create_get_set(true, function (values) { var cur_verse; if (last_type != verse_lookup) { return; } cur_verse = content_manager.get_verse_at_position(window.pageYOffset + topLoader.offsetHeight + 8, true, page); if (cur_verse !== false) { content_manager.clear_scroll(); } }), red_letters: create_get_set(true, function (values) { BF.changeCSS(".q", "color: " + (values.new_val ? "#D00;" : "#000;")); }) } }; }()); content_manager = (function () { var add_content_if_needed, buffer_add = 1000, buffer_rem = 10000, cached_count_bottom = 0, cached_count_top = 0, cached_verses_bottom = [], cached_verses_top = [], checking_excess_content_bottom = false, checking_excess_content_top = false, has_reached_top, has_reached_bottom, looking_up_verse_range = false, lookup_delay = 200, lookup_range_speed = 300, lookup_speed_scrolling = 50, lookup_speed_sitting = 100, remove_content_bottom_timeout, remove_content_top_timeout, remove_speed = 3000, scroll_pos = 0, update_verse_range; (function () { function remove_excess_content_top() { var child = page.firstChild, child_height; if (child === null) { return; } child_height = child.clientHeight; if (child_height + buffer_rem < window.pageYOffset && child_height < doc_docEl.scrollHeight - window.pageYOffset - doc_docEl.clientHeight) { cached_verses_top[cached_count_top++] = child.innerHTML; child.style.display = "none"; scrollViewTo(0, window.pageYOffset - child_height); page.removeChild(child); topLoader.style.visibility = "visible"; remove_content_top_timeout = window.setTimeout(remove_excess_content_top, remove_speed); } else { checking_excess_content_top = false; } } function remove_excess_content_bottom() { var child = page.lastChild; if (child === null) { return; } if (child.offsetTop > window.pageYOffset + doc_docEl.clientHeight + buffer_rem) { cached_verses_bottom[cached_count_bottom++] = child.innerHTML; page.removeChild(child); bottomLoader.style.visibility = "visible"; remove_content_bottom_timeout = window.setTimeout(remove_excess_content_bottom, remove_speed); } else { checking_excess_content_bottom = false; } } (function () { var scroll_check_count = 0; function scrolling() { var new_scroll_pos = window.pageYOffset, scrolling_down; if (new_scroll_pos == scroll_pos) { if (++scroll_check_count < 10) { window.setTimeout(scrolling, 30); } else { scroll_check_count = 0; } return; } scroll_check_count = 0; scrolling_down = (new_scroll_pos > scroll_pos); scroll_pos = new_scroll_pos; update_verse_range(); if (waiting_for_first_search) { return; } if (scrolling_down) { add_content_if_needed(additional); checking_excess_content_top = true; } else { add_content_if_needed(previous); checking_excess_content_bottom = true; } if (checking_excess_content_top) { window.clearTimeout(remove_content_top_timeout); remove_content_top_timeout = window.setTimeout(remove_excess_content_top, remove_speed); } if (checking_excess_content_bottom) { window.clearTimeout(remove_content_bottom_timeout); remove_content_bottom_timeout = window.setTimeout(remove_excess_content_bottom, remove_speed); } } window.onscroll = scrolling; }()); }()); function get_verse_at_position(the_pos, looking_upward, parent_el) { var b, c, el, el_offset_height, el_offset_top, el_start_at, looked_next, looked_previous, possible_el, parent_el_children_count = parent_el.childNodes.length, parent_el_top = parent_el.offsetTop, v, verse_id; el_start_at = Math.round(parent_el_children_count * ((the_pos - parent_el_top) / parent_el.offsetHeight)); if (el_start_at < 1) { el_start_at = 1; } if (el_start_at > parent_el_children_count) { el = parent_el.lastChild; } else { el = parent_el.childNodes[el_start_at - 1]; } if (!el) { return false; } looked_next = false; looked_previous = false; do { el_offset_top = el.offsetTop; el_offset_height = el.offsetHeight + el_offset_top; if (the_pos >= el_offset_top && the_pos <= el_offset_height) { break; } else { if (the_pos > el_offset_top) { el = el.nextSibling; looked_next = true; } else { el = el.previousSibling; looked_previous = true; } if (looked_next && looked_previous) { return false; } } } while (el !== null); if (el === null) { if (looked_next) { el = parent_el.lastChild; } else { return false; } } switch (el.className) { case "verse": case "search_verse": case "first_verse": while ((looking_upward ? possible_el = el.previousSibling : possible_el = el.nextSibling) !== null && the_pos >= possible_el.offsetTop && the_pos <= possible_el.offsetTop + possible_el.offsetHeight) { el = possible_el; } case "chapter": case "book": case "short_book": verse_id = window.parseInt(el.id); v = verse_id % 1000; c = ((verse_id - v) % 1000000) / 1000; b = (verse_id - v - c * 1000) / 1000000; return {b: b, c: c, v: v}; default: return get_verse_at_position(the_pos, looking_upward, el); } } add_content_if_needed = (function () { function add_content_bottom_if_needed() { var child = page.lastChild, newEl; if (child === null) { return; } if (child.offsetTop + child.clientHeight < window.pageYOffset + doc_docEl.clientHeight + buffer_add) { if (cached_count_bottom > 0) { newEl = document.createElement("div"); newEl.innerHTML = cached_verses_bottom[--cached_count_bottom]; page.insertBefore(newEl, null); add_content_if_needed(additional); } else { if (has_reached_bottom) { bottomLoader.style.visibility = "hidden"; return; } run_search(additional); } } } function add_content_top_if_needed() { var child = page.firstChild, newEl; if (child === null) { return; } if (child.clientHeight + buffer_add > window.pageYOffset) { if (cached_count_top > 0) { newEl = document.createElement("div"); newEl.innerHTML = cached_verses_top[--cached_count_top]; page.insertBefore(newEl, child); scrollViewTo(0, window.pageYOffset + newEl.clientHeight); add_content_if_needed(previous); } else { if (has_reached_top) { topLoader.style.visibility = "hidden"; return; } run_search(previous); } } } return function (direction) { if (direction === additional) { window.setTimeout(add_content_bottom_if_needed, lookup_speed_sitting); } else { window.setTimeout(add_content_top_if_needed, lookup_speed_scrolling); } }; }()); update_verse_range = (function () { function update_verse_range_delayed() { var new_title, ref_range, verse1, verse2; verse1 = get_verse_at_position(window.pageYOffset + topLoader.offsetHeight + 8, true, page); if (verse1 === false) { looking_up_verse_range = false; return; } verse2 = get_verse_at_position(window.pageYOffset + doc_docEl.clientHeight - 14, false, page); if (verse2 === false) { looking_up_verse_range = false; return; } verse1.v = verse1.v === 0 ? BF.lang.title : verse1.v; verse2.v = verse2.v === 0 ? BF.lang.title : verse2.v; if (verse1.b == verse2.b) { verse1.b = verse1.b == 19 ? BF.lang.psalm : BF.lang.books_short[verse1.b]; if (verse1.c == verse2.c) { if (verse1.v == verse2.v) { ref_range = verse1.b + " " + verse1.c + ":" + verse1.v; } else { ref_range = verse1.b + " " + verse1.c + ":" + verse1.v + "\u2013" + verse2.v; } } else { ref_range = verse1.b + " " + verse1.c + ":" + verse1.v + "\u2013" + verse2.c + ":" + verse2.v; } } else { verse1.b = verse1.b == 19 ? BF.lang.psalm : BF.lang.books_short[verse1.b]; verse2.b = verse2.b == 19 ? BF.lang.psalm : BF.lang.books_short[verse2.b]; ref_range = verse1.b + " " + verse1.c + ":" + verse1.v + "\u2013" + verse2.b + " " + verse2.c + ":" + verse2.v; } if (last_type == verse_lookup) { new_title = ref_range + " - " + BF.lang.app_name; } else { new_title = last_search + " (" + ref_range + ") - " + BF.lang.app_name; } if (document.title != new_title) { document.title = new_title; if (last_type == verse_lookup) { infoBar.innerHTML = ""; infoBar.appendChild(document.createTextNode(ref_range)); } } looking_up_verse_range = false; } return function () { if (!looking_up_verse_range) { looking_up_verse_range = true; window.setTimeout(update_verse_range_delayed, lookup_range_speed); } }; }()); function scrollViewTo(x, y, smooth) { var extra_padding = 10, padding_el, padding_interval, pixels_needed; if (!smooth) { scroll_pos = y; if (scroll_pos > 0) { pixels_needed = doc_docEl.clientHeight - (document.body.clientHeight - scroll_pos); if (pixels_needed > 0) { padding_el = document.createElement("div"); padding_el.style.height = (pixels_needed + extra_padding) + 'px'; viewPort.insertBefore(padding_el, null); padding_interval = window.setInterval(function () { if (doc_docEl.scrollHeight - (window.pageYOffset + doc_docEl.clientHeight) > pixels_needed + extra_padding) { viewPort.removeChild(padding_el); window.clearInterval(padding_interval); } }, 1000); } } window.scrollTo(x, y); } else { } } window.onresize = function () { add_content_if_needed(additional); add_content_if_needed(previous); update_verse_range(); }; return { add_content_if_needed: add_content_if_needed, clear_scroll: function () { cached_verses_top = []; cached_verses_bottom = []; cached_count_top = 0; cached_count_bottom = 0; bottomLoader.style.visibility = "hidden"; topLoader.style.visibility = "hidden"; page.innerHTML = ""; }, get_verse_at_position: get_verse_at_position, update_verse_range: update_verse_range, reached_bottom: function () { has_reached_bottom = true; }, reached_top: function () { has_reached_top = true; }, reset_scroll: function () { has_reached_bottom = false; has_reached_top = false; }, scrollViewTo: scrollViewTo }; }()); query_manager = (function () { var ajax_additional = BF.create_simple_ajax(), ajax_previous = BF.create_simple_ajax(), highlight_regex; function create_query_message(options) { var query_str = "t=" + options.type; if (options.type === verse_lookup) { query_str += "&q=" + options.verse; if (!options.in_paragraphs) { query_str += "&p=0"; } if (options.direction == previous) { query_str += "&d=" + options.direction; } else if (options.initial_query && options.in_paragraphs && options.verse % 1000 > 1) { query_str += "&f=1"; } } else { query_str += "&q=" + options.encoded_search_terms; if (options.verse) { query_str += "&s=" + options.verse; } } return query_str; } return { query_additional: function () { }, query: function (options) { ajax_additional.abort(); ajax_previous.abort(); options.initial_query = true; options.in_paragraphs = settings.view.in_paragraphs.get(); ajax_additional.query("post", "query.php", create_query_message(options), function () { }); }, query_previous: function () { } }; }()); run_new_query = (function () { function determine_search_type(search_terms) { var exclude_json = "", grammar_attribute_json = "", grammar_attributes, grammar_json = "", grammar_search_term, split_start, split_pos; if ((split_pos = search_terms.indexOf(BF.lang.grammar_marker)) != -1) { grammar_search_term = search_terms.slice(0, split_pos); if (grammar_search_term == "*") { grammar_search_term = ""; } grammar_json = '["' + grammar_search_term.replace(/(["'])/g, "\\$1") + '",['; grammar_attributes = search_terms.slice(split_pos + BF.lang.grammar_marker_len); split_start = 0; do { split_pos = grammar_attributes.indexOf(BF.lang.grammar_separator, split_start); if (grammar_attributes.slice(split_start, split_start + 1) === " ") { ++split_start; } if (grammar_attributes.slice(split_start, split_start + 1) == "-") { ++split_start; exclude_json += "1,"; } else { exclude_json += "0,"; } if (split_pos > -1) { grammar_attribute_json += BF.lang.grammar_keywords[grammar_attributes.slice(split_start, split_pos).trim()] + ","; split_start = split_pos + 1; } else { return [ { type: grammatical_search, query: grammar_json + grammar_attribute_json + BF.lang.grammar_keywords[grammar_attributes.slice(split_start).trim()] + "],[" + exclude_json.slice(0, -1) + "]]" } ]; } } while (true); } return [ { type: standard_search, query: search_terms } ]; } return function (raw_query) { var query = BF.lang.prepare_search(raw_query).trim(), query_type, verse_id; if (query === "") { return; } verse_id = BF.lang.determine_reference(last_search_prepared); if (verse_id !== false) { if (verse_id > 19003000 && verse_id < 19145002 && verse_id % 1000 === 1) { --verse_id; } query = verse_id; query_type = verse_lookup; } else { query = determine_search_type(query); if (query.length > 1) { query_type = mixed_search; } else { query_type = query[0].type; } } query_manager.query(query, query_type); content_manager.clear_scroll(); document.title = raw_query + " - " + BF.lang.app_name; q_obj.onblur = function () {}; if (query_type != verse_lookup) { highlight_regex = BF.prepare_highlighter(query); } if (query_type != verse_lookup || verse_id == "1001001") { content_manager.reached_top(); } }; }()); window.setTimeout(function () { BF.include("js/secondary.js", { settings: settings, topBar: viewPort.firstChild, viewPort_num: viewPort_num, page: page }); }, 1000); }());
}), red_letters: create_get_set(true, function (values) { /// Alternate between red and black letters. ///TODO: Add other options, such as custom color, and (in the future) highlighting of other people's words (e.g., highlight the words of Paul in blue). BF.changeCSS(".q", "color: " + (values.new_val ? "#D00;" : "#000;")); })}};
n.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){y(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;n.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,c){var e=aa;e.object=n.getElement(d.getAttribute("dwid"));if(e.object==null)return true;e.sourceId=d.getAttribute("dsid");e.objectPrevStyle={position:e.object.style.position,display:e.object.style.display,left:e.object.style.left,top:e.object.style.top,
fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=n.pageCoordinates(d);N=d.x;J=d.y}function t(){var d=n.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){y(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;n.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,c){var e=aa;e.object=n.getElement(d.getAttribute("dwid"));if(e.object==
n.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){y(null,"hash",null,true)},1)}}function D(d){if(O!=d){O=d;n.history.navigate(escape(d))}}function T(){window.onresize=function(){E()};document.body.ondragstart=function(){return false}}function ca(d,c){var e=aa;e.object=n.getElement(d.getAttribute("dwid"));if(e.object==null)return true;e.sourceId=d.getAttribute("dsid");e.objectPrevStyle={position:e.object.style.position,display:e.object.style.display,left:e.object.style.left,top:e.object.style.top,
if(t)m(fqstate);else{location.hash=fqstate;if(r){A[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!E)return"";return z}}}()}),_$_APP_CLASS_$_=new (function(){function v(d){d=n.pageCoordinates(d);y=d.x;M=d.y}function s(){var d=n.history.getCurrentState();if(w!=d){w=d;setTimeout(function(){H(null,"hash",null,true)},1)}}function F(d){if(w!=d){w=d;n.history.navigate(escape(d))}}function k(){window.onresize=function(){C()};document.body.ondragstart=function(){return false}}function G(d,
return y}}}()}),_$_APP_CLASS_$_=new (function(){function x(d){d=g.pageCoordinates(d);o=d.x;p=d.y}function t(){var d=g.history.getCurrentState();if(s!=d){s=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function C(d){if(s!=d){s=d;g.history.navigate(escape(d))}}function Y(){window.onresize=function(){q()};document.body.ondragstart=function(){return false}}function k(d,c){var e=J;e.object=g.getElement(d.getAttribute("dwid"));if(e.object==null)return true;e.sourceId=d.getAttribute("dsid");e.objectPrevStyle=
if(t)m(fqstate);else{location.hash=fqstate;if(r){A[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!E)return"";return z}}}()}),_$_APP_CLASS_$_=new (function(){function v(d){d=n.pageCoordinates(d);y=d.x;M=d.y}function s(){var d=n.history.getCurrentState();if(w!=d){w=d;setTimeout(function(){H(null,"hash",null,true)},1)}}function F(d){if(w!=d){w=d;n.history.navigate(escape(d))}}function k(){window.onresize=function(){C()};document.body.ondragstart=function(){return false}}function G(d,
handle.drag({drag: false}).bind("dragStart", function() { fireOnSlide = hasEvent($(self)) || hasEvent(input); }).bind("drag", function(e, y, x) {
self[name] = function(fn) { $(self).bind(name, fn); return self; };
handle.drag({drag: false}).bind("dragStart", function() { /* do some pre- calculations for seek() function. improves performance */ // avoid redundant event triggering (= heavy stuff) fireOnSlide = hasEvent($(self)) || hasEvent(input); }).bind("drag", function(e, y, x) {
$("#next a").click(function() { DeckViewerUI.next(); });
$("#prev a").click(function() { DeckViewerUI.previous(); });
$("#next a").click(function() { DeckViewerUI.next(); });
function () { let value = gPrefBranch.getIntPref("mail.show_headers", 2); gPrefBranch.setIntPref("mail.show_headers", value == 2 ? 1 : 2); ReloadMessage(); });
mail.getFolders("", false).forEach(function (folder) { folder.markAllMessagesRead(msgWindow); });
function () { let value = gPrefBranch.getIntPref("mail.show_headers", 2); gPrefBranch.setIntPref("mail.show_headers", value == 2 ? 1 : 2); ReloadMessage(); });
let wantHtml = (gPrefBranch.getIntPref("mailnews.display.html_as", 1) == 1); mail.setHTML(wantHtml ? 1 : 0);
let value = gPrefBranch.getIntPref("mail.show_headers", 2); gPrefBranch.setIntPref("mail.show_headers", value == 2 ? 1 : 2); ReloadMessage();
function () { let wantHtml = (gPrefBranch.getIntPref("mailnews.display.html_as", 1) == 1); mail.setHTML(wantHtml ? 1 : 0); });
s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);
for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinName,s=o.skinPath;if(k[r])n(o,r,p,q);else{m[r]=s;a.scriptLoader.load(a.getUrl(s+'skin.js'),function(){n(o,r,p,q);});}}};})();a.themes=new a.resourceManager('themes/','theme');a.ui=function(k){if(k.ui)return k.ui;this._={handlers:{},items:{},editor:k};return this;};var k=a.ui;k.prototype={add:function(l,m,n){this._.items[l]={type:m,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};},create:function(l){var q=this;var m=q._.items[l],n=m&&q._.handlers[m.type],o=m&&m.command&&q._.editor.getCommand(m.command),p=n&&n.create.apply(q,m.args);if(o)o.uiItems.push(p);return p;},addHandler:function(l,m){this._.handlers[l]=m;}};(function(){var l=0,m=function(){var x='editor'+ ++l;return a.instances&&a.instances[x]?m():x;},n={},o=function(x){var y=x.config.customConfig;if(!y)return false;y=a.getUrl(y);var z=n[y]||(n[y]={});if(z.fn){z.fn.call(x,x.config);if(a.getUrl(x.config.customConfig)==y||!o(x))x.fireOnce('customConfigLoaded');}else a.scriptLoader.load(y,function(){if(a.editorConfig)z.fn=a.editorConfig;else z.fn=function(){};o(x);});return true;},p=function(x,y){x.on('customConfigLoaded',function(){if(y){if(y.on)for(var z in y.on)x.on(z,y.on[z]);e.extend(x.config,y,true);delete x.config.on;}q(x);});if(y&&y.customConfig!=undefined)x.config.customConfig=y.customConfig;if(!o(x))x.fireOnce('customConfigLoaded');},q=function(x){var y=x.config.skin.split(','),z=y[0],A=a.getUrl(y[1]||'skins/'+z+'/');x.skinName=z;x.skinPath=A;x.skinClass='cke_skin_'+z;x.tabIndex=x.config.tabIndex||x.element.getAttribute('tabindex')||0;x.fireOnce('configLoaded');t(x);},r=function(x){a.lang.load(x.config.language,x.config.defaultLanguage,function(y,z){x.langCode=y;x.lang=e.prototypedCopy(z);if(b.gecko&&b.version<10900&&x.lang.dir=='rtl')x.lang.dir='ltr';var A=x.config;A.contentsLangDirection=='ui'&&(A.contentsLangDirection=x.lang.dir);s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];
s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var E=[],F=[],G=[];x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(var N=0;N<M.length;N++)for(var O=0;O<E.length;O++){var P=E[O];if(N===0&&F[O]&&P.lang)e.extend(x.lang,P.lang[F[O]]);if(P[M[N]])P[M[N]](x);}x.fire('pluginsLoaded');u(x);});});},t=function(x){a.skins.load(x,'editor',function(){r(x);});},u=function(x){var y=x.config.theme;a.themes.load(y,function(){var z=x.theme=a.themes.get(y);z.path=a.themes.getPath(y);z.build(x);if(x.config.autoUpdateElement)v(x);});},v=function(x){var y=x.element;if(x.elementMode==1&&y.is('textarea')){var z=y.$.form&&new h(y.$.form);if(z){function A(){x.updateElement();};z.on('submit',A);if(!z.$.submit.nodeName)z.$.submit=e.override(z.$.submit,function(B){return function(){x.updateElement();if(B.apply)B.apply(this,arguments);else B();};});x.on('destroy',function(){z.removeListener('submit',A);});}}};function w(){var x,y=this._.commands,z=this.mode;for(var A in y){x=y[A];x[x.startDisabled?'disable':x.modes[z]?'enable':'disable']();}};a.editor.prototype._init=function(){var z=this;var x=h.get(z._.element),y=z._.instanceConfig;delete z._.element;delete z._.instanceConfig;z._.commands={};z._.styles=[];z.element=x;z.name=x&&z.elementMode==1&&(x.getId()||x.getNameAtt())||m();if(z.name in a.instances)throw '[CKEDITOR.editor] The instance "'+z.name+'" already exists.';z.config=e.prototypedCopy(i);z.ui=new k(z);z.focusManager=new a.focusManager(z);a.fire('instanceCreated',null,z);z.on('mode',w,null,null,1);p(z,y);};})();e.extend(a.editor.prototype,{addCommand:function(l,m){return this._.commands[l]=new a.command(this,m);},addCss:function(l){this._.styles.push(l);},destroy:function(l){var r=this;if(!l)r.updateElement();if(r.mode)r._.modes[r.mode].unload(r.getThemeSpace('contents'));r.theme.destroy(r);var m,n=0,o,p,q;if(r.toolbox){m=r.toolbox.toolbars;for(;n<m.length;n++){p=m[n].items;for(o=0;o<p.length;o++){q=p[o];if(q.clickFn)e.removeFunction(q.clickFn);if(q.keyDownFn)e.removeFunction(q.keyDownFn);
try { let subject = gDBView.hdrForFirstSelectedMessage.mime2DecodedSubject; util.copyToClipboard(subject, true); } catch (e) { liberator.beep(); }
let wantHtml = (gPrefBranch.getIntPref("mailnews.display.html_as", 1) == 1); mail.setHTML(wantHtml ? 1 : 0);
function () { try { let subject = gDBView.hdrForFirstSelectedMessage.mime2DecodedSubject; util.copyToClipboard(subject, true); } catch (e) { liberator.beep(); } });