rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
if ( result.prime ) {
if ( result ) {
function (result) { RSA.log("RSAEngine:1.3.3 : returned stepping_isProbablePrime" + result ); if ( result.prime ) { RSA.log("RSAEngine:1.3.3=>EXIT"); return DONE(); } else { RSA.log("RSAEngine:1.3.3=>AGAIN"); return AGAIN(); } },
var img = new Image(); img.src = $(this).css('background-image').replace(/url\((.+)\)/, '$1'); })
var img = new Image(); img.src = $(this).css('background-image').replace(/^url\(\"?/, "").replace(/\"?\)$/, ""); });
$('#facybox').find('.n, .close , .s, .w, .e, .nw, ne, sw, se').each(function() { var img = new Image(); img.src = $(this).css('background-image').replace(/url\((.+)\)/, '$1'); })
if((e.control || e.shift) && (me.role == 'A' || me.role == 'L' || room.hasClass('committee'))) {
if((e.control || e.shift) && (me.role == 'A' || me.role == 'L' || door.hasClass('committee'))) {
rooms.each( function(door, i){ var request; 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]}; } }); if(!(Browser.Engine.trident && Browser.Engine.version == 5)) { 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'); } }); door.addEvent('mouseleave', function(e){ var obj = {}; rooms.each(function(other, j){ obj[j] = {'width': [other.getStyle('width').toInt(), 105]}; }); if(!(Browser.Engine.trident && Browser.Engine.version == 5)) { fx.start(obj); } if(room.rid == 0 ) { MBchat.updateables.online.show(0); } }); door.addEvent('click', function(e) { e.stop(); //browser should not follow link if((e.control || e.shift) && (me.role == 'A' || me.role == 'L' || room.hasClass('committee'))) { MBchat.updateables.logger.startLog(door.get('id').substr(1).toInt(),door.get('text')); } else { MBchat.updateables.message.enterRoom(door.get('id').substr(1).toInt()); } }); });
$("#slide-menu-container .ui-widget-header").click(function() { $("#slide-menu-container .ui-widget-content").slideToggle("slow"); $(this).toggleClass("active");
$('#select-none').live('click', function(){ $('.selectable').removeClass('selected');
$("#slide-menu-container .ui-widget-header").click(function() { $("#slide-menu-container .ui-widget-content").slideToggle("slow"); $(this).toggleClass("active"); return false; });
$("#btKill").click(function () { alert("Bye-bye"); $(this).val("Dead!").attr('disabled', 'disabled'); alert($(this).attr('rel')) ;
$("#lstParentTag").change(function () { checkValidity("lstParentTag", "valLinkTag")
$("#btKill").click(function () { alert("Bye-bye"); $(this).val("Dead!").attr('disabled', 'disabled'); alert($(this).attr('rel')) ;}) ;
function(data) { for (i = 0; i < data.length; i++) { $("#hosts ul").append( '<li><a href="cgi-bin/collection.modified.cgi?action=show_host;host=' + data[i] + '">' + data[i] + '</a></li>'); } });
$('#plugins a').each(function() { $(this).removeClass('selected'); });
function(data) { for (i = 0; i < data.length; i++) { $("#hosts ul").append( '<li><a href="cgi-bin/collection.modified.cgi?action=show_host;host=' + data[i] + '">' + data[i] + '</a></li>'); } });
$(document).bind("keydown.dp", function(e) { var key = e.keyCode; if (key == 27) { return self.hide(e); } if ($([75, 76, 38, 39, 74, 72, 40, 37]).index(key) >= 0) { if (root.is(":hidden")) { self.show(e); return e.preventDefault(); } var days = $("#" + css.weeks + " a"), el = $("." + css.focus), index = days.index(el); el.removeClass(css.focus); if (key == 74 || key == 40) { index += 7; } else if (key == 75 || key == 38) { index -= 7; } else if (key == 76 || key == 39) { index += 1; } else if (key == 72 || key == 37) { index -= 1; } if (index == -1) { self.prev(); el = $("#" + css.weeks + " a:last"); } else if (index == 35) { self.next(); el = $("#" + css.weeks + " a:first"); } else { el = days.eq(index); } el.addClass(css.focus); return e.preventDefault();
$(window).bind("click.d", function(e) { var el = e.target; if (!$(el).parents("#" + css.root).length && el != input[0] && (!trigger || el != trigger[0])) { self.hide(e);
$(document).bind("keydown.dp", function(e) { var key = e.keyCode; // esc key if (key == 27) { return self.hide(e); } // h=72, j=74, k=75, l=76, down=40, left=37, up=38, right=39 if ($([75, 76, 38, 39, 74, 72, 40, 37]).index(key) >= 0) { if (root.is(":hidden")) { self.show(e); return e.preventDefault(); } var days = $("#" + css.weeks + " a"), el = $("." + css.focus), index = days.index(el); el.removeClass(css.focus); if (key == 74 || key == 40) { index += 7; } else if (key == 75 || key == 38) { index -= 7; } else if (key == 76 || key == 39) { index += 1; } else if (key == 72 || key == 37) { index -= 1; } if (index == -1) { self.prev(); el = $("#" + css.weeks + " a:last"); } else if (index == 35) { self.next(); el = $("#" + css.weeks + " a:first"); } else { el = days.eq(index); } el.addClass(css.focus); return e.preventDefault(); } // pageUp / pageDown if (key == 34) { return self.next(); } if (key == 33) { return self.prev(); } // home if (key == 36) { return self.today(); } // enter if (key == 13) { if (!$(e.target).is("select")) { pick($("." + css.focus).data("date"), conf, e); } } return $([16, 17, 18, 9]).index(key) >= 0; });
if (key == 34) { return self.next(); } if (key == 33) { return self.prev(); } if (key == 36) { return self.today(); } if (key == 13) { if (!$(e.target).is("select")) { pick($("." + css.focus).data("date"), conf, e); } } return $([16, 17, 18, 9]).index(key) >= 0;
$(document).bind("keydown.dp", function(e) { var key = e.keyCode; // esc key if (key == 27) { return self.hide(e); } // h=72, j=74, k=75, l=76, down=40, left=37, up=38, right=39 if ($([75, 76, 38, 39, 74, 72, 40, 37]).index(key) >= 0) { if (root.is(":hidden")) { self.show(e); return e.preventDefault(); } var days = $("#" + css.weeks + " a"), el = $("." + css.focus), index = days.index(el); el.removeClass(css.focus); if (key == 74 || key == 40) { index += 7; } else if (key == 75 || key == 38) { index -= 7; } else if (key == 76 || key == 39) { index += 1; } else if (key == 72 || key == 37) { index -= 1; } if (index == -1) { self.prev(); el = $("#" + css.weeks + " a:last"); } else if (index == 35) { self.next(); el = $("#" + css.weeks + " a:first"); } else { el = days.eq(index); } el.addClass(css.focus); return e.preventDefault(); } // pageUp / pageDown if (key == 34) { return self.next(); } if (key == 33) { return self.prev(); } // home if (key == 36) { return self.today(); } // enter if (key == 13) { if (!$(e.target).is("select")) { pick($("." + css.focus).data("date"), conf, e); } } return $([16, 17, 18, 9]).index(key) >= 0; });
hide_cursor_timeout = setTimeout(function ()
hide_cursor_timeout = window.setTimeout(function ()
hide_cursor_timeout = setTimeout(function () { ///NOTE: Only works in Mozilla. /// IE is the only other major browser family that supports transparent cursors (.CUR files only), but it cannot be set via a timeout. /// WebKit (at least 532.9 (Safari 4/Chromium 4.0)) does not properly support completely transparent cursors. It also cannot be set via a timeout (see http://code.google.com/p/chromium/issues/detail?id=26723). /// WebKit can use an almost completely transparent PNG, and it will change the mouse cursor, but it calls the onmousemove event when the cursor changes. /// It would be possible to manually determine if the onmousemove event was legitimate by checking the X and Y coordinates. /// Opera (at least 10.53) has no alternate cursor support whatsoever. page.style.cursor = "none"; }, 2000);
CKEDITOR.loadTemplates(b.config.templates_files,function(){var i=b.config.templates.split(',');if(i.length){c(g,i);h.focus();}else g.setHtml('<div class="cke_tpl_empty"><span>'+b.lang.templates.emptyListMsg+'</span>'+'</div>');});this._.element.on('keydown',f);},onHide:function(){this._.element.removeListener('keydown',f);}};});})();
g=i.getElement();CKEDITOR.loadTemplates(b.config.templates_files,function(){var j=b.config.templates.split(',');if(j.length){c(g,j);i.focus();}else g.setHtml('<div class="cke_tpl_empty"><span>'+b.lang.templates.emptyListMsg+'</span>'+'</div>');});this._.element.on('keydown',f);},onHide:function(){this._.element.removeListener('keydown',f);}};});})();
CKEDITOR.loadTemplates(b.config.templates_files,function(){var i=b.config.templates.split(',');if(i.length){c(g,i);h.focus();}else g.setHtml('<div class="cke_tpl_empty"><span>'+b.lang.templates.emptyListMsg+'</span>'+'</div>');});this._.element.on('keydown',f);},onHide:function(){this._.element.removeListener('keydown',f);}};});})();
select($("." + css.focus).data("date"), conf, e);
$("." + css.focus).click();
$(document).bind("keydown.d", function(e) { var key = e.keyCode; // esc key if (key == 27) { return self.hide(e); } if ($(KEYS).index(key) >= 0) { if (!opened) { self.show(e); return e.preventDefault(); } var days = $("#" + css.weeks + " a"), el = $("." + css.focus), index = days.index(el); el.removeClass(css.focus); if (key == 74 || key == 40) { index += 7; } else if (key == 75 || key == 38) { index -= 7; } else if (key == 76 || key == 39) { index += 1; } else if (key == 72 || key == 37) { index -= 1; } if (index == -1) { self.addMonth(-1); el = $("#" + css.weeks + " a:last"); } else if (index == 35) { self.addMonth(); el = $("#" + css.weeks + " a:first"); } else { el = days.eq(index); } el.addClass(css.focus); return e.preventDefault(); } // pageUp / pageDown if (key == 34) { return self.addMonth(); } if (key == 33) { return self.addMonth(-1); } // home if (key == 36) { return self.today(); } // enter if (key == 13) { if (!$(e.target).is("select")) { select($("." + css.focus).data("date"), conf, e); } } return $([16, 17, 18, 9]).index(key) >= 0; });
hide_cursor_timeout = window.setTimeout(function ()
(function () { var hide_cursor_timeout; if (window.chrome) { return; } function show_cursor() { clearTimeout(hide_cursor_timeout); page.style.cursor = "auto"; } function hide_cursor_delayed() { show_cursor(); hide_cursor_timeout = window.setTimeout(function ()
hide_cursor_timeout = window.setTimeout(function () { ///NOTE: Only works in Mozilla. /// IE is the only other major browser family that supports transparent cursors (.CUR files only), but it cannot be set via a timeout. /// WebKit (at least 532.9 (Safari 4/Chromium 4.0)) does not properly support completely transparent cursors. It also cannot be set via a timeout (see http://code.google.com/p/chromium/issues/detail?id=26723). /// WebKit can use an almost completely transparent PNG, and it will change the mouse cursor, but it calls the onmousemove event when the cursor changes. /// It would be possible to manually determine if the onmousemove event was legitimate by checking the X and Y coordinates. /// Opera (at least 10.53) has no alternate cursor support whatsoever. page.style.cursor = "none"; }, 2000);
} page.onmousedown = function (e) { if (e.button == 2) { show_cursor(); } else { hide_cursor_delayed(); } }; page.onmouseout = function (e) { var curTarget = e.currentTarget, relTarget = e.relatedTarget; while (curTarget != relTarget && relTarget !== null && relTarget.nodeName != 'BODY') { relTarget = relTarget.parentNode; } if (curTarget != relTarget) { show_cursor(); } }; page.onmousemove = hide_cursor_delayed; }());
hide_cursor_timeout = window.setTimeout(function () { ///NOTE: Only works in Mozilla. /// IE is the only other major browser family that supports transparent cursors (.CUR files only), but it cannot be set via a timeout. /// WebKit (at least 532.9 (Safari 4/Chromium 4.0)) does not properly support completely transparent cursors. It also cannot be set via a timeout (see http://code.google.com/p/chromium/issues/detail?id=26723). /// WebKit can use an almost completely transparent PNG, and it will change the mouse cursor, but it calls the onmousemove event when the cursor changes. /// It would be possible to manually determine if the onmousemove event was legitimate by checking the X and Y coordinates. /// Opera (at least 10.53) has no alternate cursor support whatsoever. page.style.cursor = "none"; }, 2000);
this.registerCallback("change", modes.EX, function (command) { self._autocompleteTimer.tell(false);
this.registerCallback("complete", modes.EX, function (context) { context.fork("ex", 0, completion, "ex");
this.registerCallback("change", modes.EX, function (command) { self._autocompleteTimer.tell(false); });
$('.deleteButton-'+ id).live('click', function(evt) { evt.preventDefault(); evt.stopPropagation(); remove($(this).attr('rel'));
$('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); }
$('.deleteButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); });
stores.forEach(function (store) { storage["history-" + store].truncate(0); });
storage["history-" + store].mutate("filter", function (item) { let timestamp = item.timestamp * 1000; return timestamp < self.range[0] || timestamp > self.range[1]; });
stores.forEach(function (store) { storage["history-" + store].truncate(0); });
function E(){var l;l=v.value.split("|");if(l.length>1){G=l[0];C=l[1]}if(l.length>2)M=l[2].split(",");if(s)h();else{o();I=true;x!=null&&x()}}var u=false,s=false,z=false,x=null,F=null,v=null,I=false,U=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){v!=null&&E()},_initTimeout:function(){o()},register:function(l,p){if(!I){C=G=escape(l);H=p}},initialize:function(l,p){if(!I){var q=navigator.vendor||"";if(q!=="KDE")if(typeof window.opera!==
if(r!==l){l=r;q=m;f(l);b()}else if(m!==q&&v){l=r;q=m;r=M[q-1];f(r);b()}},50)}}function E(){var l;l=w.value.split("|");if(l.length>1){G=l[0];C=l[1]}if(l.length>2)M=l[2].split(",");if(s)h();else{o();I=true;y!=null&&y()}}var v=false,s=false,z=false,y=null,F=null,w=null,I=false,V=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else y=l},_initialize:function(){w!=null&&E()},_initTimeout:function(){o()},register:function(l,q){if(!I){C=G=escape(l);H=q}},initialize:function(l,
function E(){var l;l=v.value.split("|");if(l.length>1){G=l[0];C=l[1]}if(l.length>2)M=l[2].split(",");if(s)h();else{o();I=true;x!=null&&x()}}var u=false,s=false,z=false,x=null,F=null,v=null,I=false,U=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){v!=null&&E()},_initTimeout:function(){o()},register:function(l,p){if(!I){C=G=escape(l);H=p}},initialize:function(l,p){if(!I){var q=navigator.vendor||"";if(q!=="KDE")if(typeof window.opera!==
$(document).ready(function() { jsBackend.pages.init(); });
$('.tree li.open').each(function() { if($(this).find('ul').length == 0) $(this).removeClass('open').addClass('leaf'); });
$(document).ready(function() { jsBackend.pages.init(); });
r;p=v;e(g);b()}else if(v!==p&&u){g=r;p=v;r=D[p-1];e(r);b()}},50)}}function H(){var g;g=J.value.split("|");if(g.length>1){L=g[0];C=g[1]}if(g.length>2)D=g[2].split(",");if(q)l();else{n();F=true;y!=null&&y()}}var u=false,q=self.isIElt9,s=false,y=null,I=null,J=null,F=false,Q=null,D=[],L,C,E=function(){};return{onReady:function(g){if(F)setTimeout(function(){g()},0);else y=g},_initialize:function(){J!=null&&H()},_initTimeout:function(){n()},register:function(g,p){if(!F){C=L=escape(g);E=p}},initialize:function(g,
r;p=v;e(g);b()}else if(v!==p&&u){g=r;p=v;r=D[p-1];e(r);b()}},50)}}function H(){var g;g=K.value.split("|");if(g.length>1){L=g[0];C=g[1]}if(g.length>2)D=g[2].split(",");if(q)l();else{n();F=true;y!=null&&y()}}var u=false,q=self.isIElt9,s=false,y=null,I=null,K=null,F=false,Q=null,D=[],L,C,E=function(){};return{onReady:function(g){if(F)setTimeout(function(){g()},0);else y=g},_initialize:function(){K!=null&&H()},_initTimeout:function(){n()},register:function(g,p){if(!F){C=L=escape(g);E=p}},initialize:function(g,
r;p=v;e(g);b()}else if(v!==p&&u){g=r;p=v;r=D[p-1];e(r);b()}},50)}}function H(){var g;g=J.value.split("|");if(g.length>1){L=g[0];C=g[1]}if(g.length>2)D=g[2].split(",");if(q)l();else{n();F=true;y!=null&&y()}}var u=false,q=self.isIElt9,s=false,y=null,I=null,J=null,F=false,Q=null,D=[],L,C,E=function(){};return{onReady:function(g){if(F)setTimeout(function(){g()},0);else y=g},_initialize:function(){J!=null&&H()},_initTimeout:function(){n()},register:function(g,p){if(!F){C=L=escape(g);E=p}},initialize:function(g,
d.objectPrevStyle.position;d.object.style.display=d.objectPrevStyle.display;d.object.style.left=d.objectPrevStyle.left;d.object.style.top=d.objectPrevStyle.top;d.object.className=d.objectPrevStyle.className;d.object=null}}function r(c,d){var e,g,h;h=c.event;e=d>0?"&e"+d:"&";g=e+"signal="+c.signal;if(c.id){g+=e+"id="+c.id+e+"name="+encodeURIComponent(c.name)+e+"an="+c.args.length;for(var i=0;i<c.args.length;++i)g+=e+"a"+i+"="+encodeURIComponent(c.args[i])}for(i=0;i<Q.length;++i){var s=q.getElement(Q[i]), u=null;if(s!=null){if(s.type=="select-multiple")for(d=0;d<s.options.length;d++){if(s.options[d].selected)g+=e+Q[i]+"="+encodeURIComponent(s.options[d].value)}else if(q.hasTag(s,"SPAN"))for(d=0;d<s.childNodes.length;d++){if(s.childNodes[d].type=="checkbox"){d=s.childNodes[d];if(d.style.display=="none")u="indeterminate";else if(d.checked)u=d.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)u="indeterminate";else{if(s.checked)u=s.value}else if(s.type!="file")u=""+s.value;if(u!= null)g+=e+Q[i]+"="+encodeURIComponent(u)}}if(L!=null)g+=e+"_="+encodeURIComponent(unescape(L));if(!h){c.data=g;return c}for(i=h.target||h.srcElement;!i.id&&i.parentNode;)i=i.parentNode;if(i.id)g+=e+"tid="+i.id;try{g+=e+"type="+h.type}catch(ia){}if(h.clientX||h.clientY)g+=e+"clientX="+h.clientX+e+"clientY="+h.clientY;u=q.pageCoordinates(h);i=u.x;u=u.y;if(i||u){g+=e+"documentX="+i+e+"documentY="+u;g+=e+"dragdX="+(i-$)+e+"dragdY="+(u-aa)}if(h.screenX||h.screenY)g+=e+"screenX="+h.screenX+e+"screenY="+
d.objectPrevStyle.position;d.object.style.display=d.objectPrevStyle.display;d.object.style.left=d.objectPrevStyle.left;d.object.style.top=d.objectPrevStyle.top;d.object.className=d.objectPrevStyle.className;d.object=null}}function r(c,d){var e,g,h;h=c.event;e=d>0?"&e"+d:"&";g=e+"signal="+c.signal;if(c.id){g+=e+"id="+c.id+e+"name="+encodeURIComponent(c.name)+e+"an="+c.args.length;for(var i=0;i<c.args.length;++i)g+=e+"a"+i+"="+encodeURIComponent(c.args[i])}for(i=0;i<R.length;++i){var s=q.getElement(R[i]), u=null;if(s!=null){if(s.type=="select-multiple")for(d=0;d<s.options.length;d++){if(s.options[d].selected)g+=e+R[i]+"="+encodeURIComponent(s.options[d].value)}else if(q.hasTag(s,"SPAN"))for(d=0;d<s.childNodes.length;d++){if(s.childNodes[d].type=="checkbox"){d=s.childNodes[d];if(d.style.display=="none")u="indeterminate";else if(d.checked)u=d.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)u="indeterminate";else{if(s.checked)u=s.value}else if(s.type!="file")u=""+s.value;if(u!= null)g+=e+R[i]+"="+encodeURIComponent(u)}}if(L!=null)g+=e+"_="+encodeURIComponent(unescape(L));if(!h){c.data=g;return c}for(i=h.target||h.srcElement;!i.id&&i.parentNode;)i=i.parentNode;if(i.id)g+=e+"tid="+i.id;try{g+=e+"type="+h.type}catch(ja){}if(h.clientX||h.clientY)g+=e+"clientX="+h.clientX+e+"clientY="+h.clientY;u=q.pageCoordinates(h);i=u.x;u=u.y;if(i||u){g+=e+"documentX="+i+e+"documentY="+u;g+=e+"dragdX="+(i-$)+e+"dragdY="+(u-aa)}if(h.screenX||h.screenY)g+=e+"screenX="+h.screenX+e+"screenY="+
j;if(t){if(typeof o==="string")o=document.getElementById(o);!o||o.tagName.toUpperCase()!=="IFRAME"||(F=o)}}}},navigate:function(j){if(B){fqstate=j;if(t)return n(fqstate);else{location.hash=fqstate;if(r){E[history.length]=fqstate;b()}return true}}},getCurrentState:function(){if(!B)return"";return y}}}()}),_$_APP_CLASS_$_=new (function(){function l(c){c=q.pageCoordinates(c);$=c.x;aa=c.y}function a(){var c=q.history.getCurrentState();if(L!=c){L=c;setTimeout(function(){J(null,"hash",null,true)},1)}}function b(c){if(L!=c){L=c;q.history.navigate(escape(c))}}function f(c){H=c;if(document.body.setCapture)c!=null?document.body.setCapture():document.body.releaseCapture()}function n(){window.onresize=function(){E()};var c=function(g){if(!g)g=window.event;return m(g)},d=function(g){if(!g)g=window.event;return x(g)},e=document.body;if(e.addEventListener){e.addEventListener("mousemove",c,true);e.addEventListener("mouseup",d,true);q.isGecko&&window.addEventListener("mouseout",function(g){!g.relatedTarget&&q.hasTag(g.target,"HTML")&&d(g)},true)}else{e.attachEvent("onmousemove",c);e.attachEvent("onmouseup",d)}document.body.ondragstart=function(){return false}}function k(c,d){f(null);var e=T;e.object=q.getElement(c.getAttribute("dwid"));if(e.object!=null){e.sourceId=c.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);e.offsetX=-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=c.getAttribute("dmt");q.cancelEvent(d);return false}}function m(c){if(H!=null){if(!c)c=window.event;H.onmousemove&&H.onmousemove(c);return false}if(T.object!=null){var d=T,e=q.pageCoordinates(c);d.object.style.display="";d.object.style.left=e.x-d.offsetX+"px";d.object.style.top=e.y-d.offsetY+"px";e=d.dropTarget;var g=c.target||c.srcElement,h="{"+d.mimeType+":",i=null;for(d.dropTarget=null;g;){i=g.getAttribute("amts");if(i!=null&&i.indexOf(h)!=-1){d.dropTarget=g;break}g=g.parentNode;if(!g.tagName||q.hasTag(g,"HTML"))break}if(d.dropTarget!=e){if(d.dropTarget){g=i.indexOf(h)+h.length;c=i.indexOf("}",g);i=i.substring(g,c);if(i.length!=0){d.dropTarget.setAttribute("dos",d.dropTarget.className);d.dropTarget.className=d.dropTarget.className+" "+i}}else d.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",d.object,c,"",h);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(d.dropTarget)if(d.dropTarget.handleDragDrop)d.dropTarget.handleDragDrop("drag",d.object,c,"",h);else d.object.className="Wt-valid-drop";q.cancelEvent(c);return false}return true}function x(c){if(!c)c=window.event;if(H!=null){var d=H;f(null);d.onmouseup&&d.onmouseup(c);return false}d=T;if(d.object){if(d.dropTarget){var e=d.dropTarget.getAttribute("dos");if(e!=null)d.dropTarget.className=e;d.dropTarget.handleDragDrop?d.dropTarget.handleDragDrop("drop",d.object,c,d.sourceId,d.mimeType):w(d.dropTarget,{name:"_drop",eventObject:d.dropTarget,event:c},d.sourceId,d.mimeType)}d.object.style.position=d.objectPrevStyle.position;d.object.style.display=d.objectPrevStyle.display;d.object.style.left=d.objectPrevStyle.left;d.object.style.top=d.objectPrevStyle.top;d.object.className=d.objectPrevStyle.className;d.object=null}}function r(c,d){var e,g,h;h=c.event;e=d>0?"&e"+d:"&";g=e+"signal="+c.signal;if(c.id){g+=e+"id="+c.id+e+"name="+encodeURIComponent(c.name)+e+"an="+c.args.length;for(var i=0;i<c.args.length;++i)g+=e+"a"+i+"="+encodeURIComponent(c.args[i])}for(i=0;i<Q.length;++i){var s=q.getElement(Q[i]),u=null;if(s!=null){if(s.type=="select-multiple")for(d=0;d<s.options.length;d++){if(s.options[d].selected)g+=e+Q[i]+"="+encodeURIComponent(s.options[d].value)}else if(q.hasTag(s,"SPAN"))for(d=0;d<s.childNodes.length;d++){if(s.childNodes[d].type=="checkbox"){d=s.childNodes[d];if(d.style.display=="none")u="indeterminate";else if(d.checked)u=d.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)u="indeterminate";else{if(s.checked)u=s.value}else if(s.type!="file")u=""+s.value;if(u!=null)g+=e+Q[i]+"="+encodeURIComponent(u)}}if(L!=null)g+=e+"_="+encodeURIComponent(unescape(L));if(!h){c.data=g;return c}for(i=h.target||h.srcElement;!i.id&&i.parentNode;)i=i.parentNode;if(i.id)g+=e+"tid="+i.id;try{g+=e+"type="+h.type}catch(ia){}if(h.clientX||h.clientY)g+=e+"clientX="+h.clientX+e+"clientY="+h.clientY;u=q.pageCoordinates(h);i=u.x;u=u.y;if(i||u){g+=e+"documentX="+i+e+"documentY="+u;g+=e+"dragdX="+(i-$)+e+"dragdY="+(u-aa)}if(h.screenX||h.screenY)g+=e+"screenX="+h.screenX+e+"screenY="+h.screenY;if(c.object&&c.object.nodeType!=9){d=q.widgetPageCoordinates(c.object);g+=e+"scrollX="+c.object.scrollLeft+e+"scrollY="+c.object.scrollTop+e+"width="+c.object.clientWidth+e+"height="+c.object.clientHeight+e+"widgetX="+(i-d.x)+e+"widgetY="+(u-d.y)}if(h.which)g+=e+"right="+(h.which==3);else if(h.button)g+=e+"right="+(h.button==2);if(typeof h.keyCode!=="undefined")g+=e+"keyCode="+h.keyCode;if(typeof h.charCode!=="undefined")g+=e+"charCode="+h.charCode;if(h.altKey)g+=e+"altKey=1";if(h.ctrlKey)g+=e+"ctrlKey=1";if(h.metaKey)g+=e+"metaKey=1";if(h.shiftKey)g+=e+"shiftKey=1";c.data=g;return c}function t(){var c="";feedback=false;for(var d=0;d<v.length;++d){feedback=feedback||v[d].feedback;c+=v[d].data}V=v;v=[];return{feedback:feedback,result:c}}function A(){q.history._initTimeout();R==0&&J(null,"none",null,false);W=setTimeout(A,_$_KEEP_ALIVE_$_000)}function z(c){if(!q.isIEMobile)document.title=c}function F(){q.history._initialize();n();if(!ba){ba=true;_$_ONLOAD_$_();W=setTimeout(A,_$_KEEP_ALIVE_$_000)}}function I(c){clearTimeout(c);document.body.style.cursor="auto";if(U!=null){try{U()}catch(d){}U=null}}function B(){document.body.style.cursor="wait";U=hideLoadingIndicator;showLoadingIndicator()}function P(c){ca=c}function E(c){with(window){c&&eval(c);_$_APP_CLASS_$_._p_.autoJavaScript()}}function D(c,d,e){if(!X){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(d);_$_$ifnot_DEBUG_$_()}catch(g){alert("Wt internal error: "+g+", code: "+g.code+", description: "+g.description)}_$_$endif_$_();e&&I(e)}else v=V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++R;else R=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(R)*500);S=setTimeout(function(){p()},c)}else p()}}function y(){C.abort();K=C=null;p()}function J(c,d,e,g){H&&c==H&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function j(){if(C!=null&&K!=null){clearTimeout(K);C.abort();C=null}if(C==null)if(S==null)S=setTimeout(function(){p()},q.updateDelay);else if(R){clearTimeout(S);p()}}function o(c){Y=c;da._p_.comm.responseReceived(c)}function p(){S=null;if(q.isIEMobile)feedback=false;if(X){if(!ea){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ea=true}}else{var c,d,e,g="&rand="+Math.round(Math.random(fa)*1E5);if(v.length>0){c=t();d=c.feedback?setTimeout(B,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"signal=poll"};d=null;e=true}C=da._p_.comm.sendUpdate(ga+g,"request=jsupdate&"+c.result+"&ackId="+Y,d,Y,-1);K=e?setTimeout(y,_$_SERVER_PUSH_TIMEOUT_$_):null}}function w(c,d){var e={},g=v.length;e.signal="user";e.id=typeof c==="string"?c:c==_$_APP_CLASS_$_?"app":c.id;if(typeof d==="object"){e.name=d.name;e.object=d.eventObject;e.event=d.event}else{e.name=d;e.object=e.event=null}e.args=[];for(var h=2;h<arguments.length;++h){var i=arguments[h];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[h-2]=i}e.feedback=true;v[g]=r(e,g);j()}function O(c,d,e){var g=function(){var i=q.getElement(c);if(i){if(e)i.timer=setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick()}},h=q.getElement(c);h.timer=setTimeout(g,d);h.tm=g}function G(c,d){setTimeout(function(){if(M[c]===true)d();else M[c]=d},20)}function Z(c){if(M[c]!==true){typeof M[c]!=="undefined"&&M[c]();M[c]=true}}function ha(c,d){var e=false;if(d!="")try{e=!eval("typeof "+d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script");h.setAttribute("src",c);h.onload=function(){Z(c)};h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")Z(c)};document.getElementsByTagName("head")[0].appendChild(h)}}function N(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}var da=this,q=_$_WT_CLASS_$_,$=0,aa=0,L=null,T={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null},Q=_$_FORM_OBJECTS_$_,V=[],v=[],ga=_$_RELATIVE_URL_$_,X=false,ea=false,ba=false,C=null,K=null,W=null,R=0,ca=false,S=null,U=null,fa=(new Date).getTime(),H=null,Y=0,M={};N.prototype.preload=function(c){var d=new Image;this.images.push(d);d.onload=N.prototype.onload;d.onerror=N.prototype.onload;d.onabort=N.prototype.onload;d.imagePreloader=this;d.src=c};N.prototype.onload=function(){var c=this.imagePreloader;--c.work==0&&c.callback(c.images)};q.history.register(_$_INITIAL_HASH_$_,a);this._p_={loadScript:ha,onJsLoad:G,setTitle:z,update:J,quit:function(){X=true;clearTimeout(W)},setFormObjects:function(c){Q=c},saveDownPos:l,addTimerEvent:O,load:F,handleResponse:D,setServerPush:P,dragStart:k,dragDrag:m,dragEnd:x,capture:f,onHashChange:a,setHash:b,ImagePreloader:N,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:o};this.emit=w}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
e+"ctrlKey=1";if(h.metaKey)g+=e+"metaKey=1";if(h.shiftKey)g+=e+"shiftKey=1";c.data=g;return c}function t(){var c="";feedback=false;for(var d=0;d<v.length;++d){feedback=feedback||v[d].feedback;c+=v[d].data}V=v;v=[];return{feedback:feedback,result:c}}function A(){q.history._initTimeout();R==0&&J(null,"none",null,false);W=setTimeout(A,_$_KEEP_ALIVE_$_000)}function z(c){if(!q.isIEMobile)document.title=c}function F(){q.history._initialize();n();if(!ba){ba=true;_$_ONLOAD_$_();W=setTimeout(A,_$_KEEP_ALIVE_$_000)}} function I(c){clearTimeout(c);document.body.style.cursor="auto";if(U!=null){try{U()}catch(d){}U=null}}function B(){document.body.style.cursor="wait";U=hideLoadingIndicator;showLoadingIndicator()}function P(c){ca=c}function E(c){with(window){c&&eval(c);_$_APP_CLASS_$_._p_.autoJavaScript()}}function D(c,d,e){if(!X){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(d);_$_$ifnot_DEBUG_$_()}catch(g){alert("Wt internal error: "+g+", code: "+g.code+", description: "+g.description)}_$_$endif_$_();e&&I(e)}else v= V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++R;else R=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(R)*500);S=setTimeout(function(){p()},c)}else p()}}function y(){C.abort();K=C=null;p()}function J(c,d,e,g){H&&c==H&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function j(){if(C!=null&&K!=null){clearTimeout(K); C.abort();C=null}if(C==null)if(S==null)S=setTimeout(function(){p()},q.updateDelay);else if(R){clearTimeout(S);p()}}function o(c){Y=c;da._p_.comm.responseReceived(c)}function p(){S=null;if(q.isIEMobile)feedback=false;if(X){if(!ea){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ea=true}}else{var c,d,e,g="&rand="+Math.round(Math.random(fa)*1E5);if(v.length>0){c=t();d=c.feedback?setTimeout(B,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"signal=poll"}; d=null;e=true}C=da._p_.comm.sendUpdate(ga+g,"request=jsupdate&"+c.result+"&ackId="+Y,d,Y,-1);K=e?setTimeout(y,_$_SERVER_PUSH_TIMEOUT_$_):null}}function w(c,d){var e={},g=v.length;e.signal="user";e.id=typeof c==="string"?c:c==_$_APP_CLASS_$_?"app":c.id;if(typeof d==="object"){e.name=d.name;e.object=d.eventObject;e.event=d.event}else{e.name=d;e.object=e.event=null}e.args=[];for(var h=2;h<arguments.length;++h){var i=arguments[h];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[h-2]= i}e.feedback=true;v[g]=r(e,g);j()}function O(c,d,e){var g=function(){var i=q.getElement(c);if(i){if(e)i.timer=setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick()}},h=q.getElement(c);h.timer=setTimeout(g,d);h.tm=g}function G(c,d){setTimeout(function(){if(M[c]===true)d();else M[c]=d},20)}function Z(c){if(M[c]!==true){typeof M[c]!=="undefined"&&M[c]();M[c]=true}}function ha(c,d){var e=false;if(d!="")try{e=!eval("typeof "+d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script"); h.setAttribute("src",c);h.onload=function(){Z(c)};h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")Z(c)};document.getElementsByTagName("head")[0].appendChild(h)}}function N(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}var da=this,q=_$_WT_CLASS_$_,$=0,aa=0,L=null,T={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null},Q= _$_FORM_OBJECTS_$_,V=[],v=[],ga=_$_RELATIVE_URL_$_,X=false,ea=false,ba=false,C=null,K=null,W=null,R=0,ca=false,S=null,U=null,fa=(new Date).getTime(),H=null,Y=0,M={};N.prototype.preload=function(c){var d=new Image;this.images.push(d);d.onload=N.prototype.onload;d.onerror=N.prototype.onload;d.onabort=N.prototype.onload;d.imagePreloader=this;d.src=c};N.prototype.onload=function(){var c=this.imagePreloader;--c.work==0&&c.callback(c.images)};q.history.register(_$_INITIAL_HASH_$_,a);this._p_={loadScript:ha, onJsLoad:G,setTitle:z,update:J,quit:function(){X=true;clearTimeout(W)},setFormObjects:function(c){Q=c},saveDownPos:l,addTimerEvent:O,load:F,handleResponse:D,setServerPush:P,dragStart:k,dragDrag:m,dragEnd:x,capture:f,onHashChange:a,setHash:b,ImagePreloader:N,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:o};this.emit=w}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
e+"ctrlKey=1";if(h.metaKey)g+=e+"metaKey=1";if(h.shiftKey)g+=e+"shiftKey=1";c.data=g;return c}function t(){var c="";feedback=false;for(var d=0;d<v.length;++d){feedback=feedback||v[d].feedback;c+=v[d].data}V=v;v=[];return{feedback:feedback,result:c}}function A(){q.history._initTimeout();S==0&&J(null,"none",null,false);W=setTimeout(A,_$_KEEP_ALIVE_$_000)}function z(c){if(!q.isIEMobile)document.title=c}function F(){q.history._initialize();n();if(!ba){ba=true;_$_ONLOAD_$_();W=setTimeout(A,_$_KEEP_ALIVE_$_000)}} function I(c){clearTimeout(c);document.body.style.cursor="auto";if(U!=null){try{U()}catch(d){}U=null}}function B(){document.body.style.cursor="wait";U=hideLoadingIndicator;showLoadingIndicator()}function Q(c){ca=c}function E(c){with(window){c&&eval(c);_$_APP_CLASS_$_._p_.autoJavaScript()}}function D(c,d,e){if(!X){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(d);_$_$ifnot_DEBUG_$_()}catch(g){alert("Wt internal error: "+g+", code: "+g.code+", description: "+g.description)}_$_$endif_$_();e&&I(e)}else v= V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++S;else S=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(S)*500);M=setTimeout(function(){p()},c)}else p()}}function y(){C.abort();K=C=null;p()}function J(c,d,e,g){H&&c==H&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function j(){if(C!=null&&K!=null){clearTimeout(K); C.abort();C=null}if(C==null)if(M==null){M=setTimeout(function(){p()},q.updateDelay);da=(new Date).getTime()}else if(S){clearTimeout(M);p()}else if((new Date).getTime()-da>q.updateDelay){clearTimeout(M);p()}}function o(c){Y=c;ea._p_.comm.responseReceived(c)}function p(){M=null;if(q.isIEMobile)feedback=false;if(X){if(!fa){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;fa=true}}else{var c,d,e,g="&rand="+Math.round(Math.random(ga)*1E5);if(v.length> 0){c=t();d=c.feedback?setTimeout(B,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"signal=poll"};d=null;e=true}C=ea._p_.comm.sendUpdate(ha+g,"request=jsupdate&"+c.result+"&ackId="+Y,d,Y,-1);K=e?setTimeout(y,_$_SERVER_PUSH_TIMEOUT_$_):null}}function w(c,d){var e={},g=v.length;e.signal="user";e.id=typeof c==="string"?c:c==_$_APP_CLASS_$_?"app":c.id;if(typeof d==="object"){e.name=d.name;e.object=d.eventObject;e.event=d.event}else{e.name=d;e.object=e.event=null}e.args=[];for(var h=2;h<arguments.length;++h){var i= arguments[h];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[h-2]=i}e.feedback=true;v[g]=r(e,g);j()}function P(c,d,e){var g=function(){var i=q.getElement(c);if(i){if(e)i.timer=setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick()}},h=q.getElement(c);h.timer=setTimeout(g,d);h.tm=g}function G(c,d){setTimeout(function(){if(N[c]===true)d();else N[c]=d},20)}function Z(c){if(N[c]!==true){typeof N[c]!=="undefined"&&N[c]();N[c]=true}}function ia(c,d){var e=false;if(d!="")try{e=!eval("typeof "+ d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script");h.setAttribute("src",c);h.onload=function(){Z(c)};h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")Z(c)};document.getElementsByTagName("head")[0].appendChild(h)}}function O(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}var ea=this,q=_$_WT_CLASS_$_,$=0,aa=0,L=null,T={object:null,sourceId:null, mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null},R=_$_FORM_OBJECTS_$_,V=[],v=[],ha=_$_RELATIVE_URL_$_,X=false,fa=false,ba=false,C=null,K=null,W=null,S=0,ca=false,M=null,U=null,ga=(new Date).getTime(),H=null,da,Y=0,N={};O.prototype.preload=function(c){var d=new Image;this.images.push(d);d.onload=O.prototype.onload;d.onerror=O.prototype.onload;d.onabort=O.prototype.onload;d.imagePreloader=this;d.src=c};O.prototype.onload=function(){var c=this.imagePreloader;--c.work== 0&&c.callback(c.images)};q.history.register(_$_INITIAL_HASH_$_,a);this._p_={loadScript:ia,onJsLoad:G,setTitle:z,update:J,quit:function(){X=true;clearTimeout(W)},setFormObjects:function(c){R=c},saveDownPos:l,addTimerEvent:P,load:F,handleResponse:D,setServerPush:Q,dragStart:k,dragDrag:m,dragEnd:x,capture:f,onHashChange:a,setHash:b,ImagePreloader:O,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:o};this.emit=w}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
j;if(t){if(typeof o==="string")o=document.getElementById(o);!o||o.tagName.toUpperCase()!=="IFRAME"||(F=o)}}}},navigate:function(j){if(B){fqstate=j;if(t)return n(fqstate);else{location.hash=fqstate;if(r){E[history.length]=fqstate;b()}return true}}},getCurrentState:function(){if(!B)return"";return y}}}()}),_$_APP_CLASS_$_=new (function(){function l(c){c=q.pageCoordinates(c);$=c.x;aa=c.y}function a(){var c=q.history.getCurrentState();if(L!=c){L=c;setTimeout(function(){J(null,"hash",null,true)},1)}}function b(c){if(L!=c){L=c;q.history.navigate(escape(c))}}function f(c){H=c;if(document.body.setCapture)c!=null?document.body.setCapture():document.body.releaseCapture()}function n(){window.onresize=function(){E()};var c=function(g){if(!g)g=window.event;return m(g)},d=function(g){if(!g)g=window.event;return x(g)},e=document.body;if(e.addEventListener){e.addEventListener("mousemove",c,true);e.addEventListener("mouseup",d,true);q.isGecko&&window.addEventListener("mouseout",function(g){!g.relatedTarget&&q.hasTag(g.target,"HTML")&&d(g)},true)}else{e.attachEvent("onmousemove",c);e.attachEvent("onmouseup",d)}document.body.ondragstart=function(){return false}}function k(c,d){f(null);var e=T;e.object=q.getElement(c.getAttribute("dwid"));if(e.object!=null){e.sourceId=c.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);e.offsetX=-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=c.getAttribute("dmt");q.cancelEvent(d);return false}}function m(c){if(H!=null){if(!c)c=window.event;H.onmousemove&&H.onmousemove(c);return false}if(T.object!=null){var d=T,e=q.pageCoordinates(c);d.object.style.display="";d.object.style.left=e.x-d.offsetX+"px";d.object.style.top=e.y-d.offsetY+"px";e=d.dropTarget;var g=c.target||c.srcElement,h="{"+d.mimeType+":",i=null;for(d.dropTarget=null;g;){i=g.getAttribute("amts");if(i!=null&&i.indexOf(h)!=-1){d.dropTarget=g;break}g=g.parentNode;if(!g.tagName||q.hasTag(g,"HTML"))break}if(d.dropTarget!=e){if(d.dropTarget){g=i.indexOf(h)+h.length;c=i.indexOf("}",g);i=i.substring(g,c);if(i.length!=0){d.dropTarget.setAttribute("dos",d.dropTarget.className);d.dropTarget.className=d.dropTarget.className+" "+i}}else d.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",d.object,c,"",h);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(d.dropTarget)if(d.dropTarget.handleDragDrop)d.dropTarget.handleDragDrop("drag",d.object,c,"",h);else d.object.className="Wt-valid-drop";q.cancelEvent(c);return false}return true}function x(c){if(!c)c=window.event;if(H!=null){var d=H;f(null);d.onmouseup&&d.onmouseup(c);return false}d=T;if(d.object){if(d.dropTarget){var e=d.dropTarget.getAttribute("dos");if(e!=null)d.dropTarget.className=e;d.dropTarget.handleDragDrop?d.dropTarget.handleDragDrop("drop",d.object,c,d.sourceId,d.mimeType):w(d.dropTarget,{name:"_drop",eventObject:d.dropTarget,event:c},d.sourceId,d.mimeType)}d.object.style.position=d.objectPrevStyle.position;d.object.style.display=d.objectPrevStyle.display;d.object.style.left=d.objectPrevStyle.left;d.object.style.top=d.objectPrevStyle.top;d.object.className=d.objectPrevStyle.className;d.object=null}}function r(c,d){var e,g,h;h=c.event;e=d>0?"&e"+d:"&";g=e+"signal="+c.signal;if(c.id){g+=e+"id="+c.id+e+"name="+encodeURIComponent(c.name)+e+"an="+c.args.length;for(var i=0;i<c.args.length;++i)g+=e+"a"+i+"="+encodeURIComponent(c.args[i])}for(i=0;i<Q.length;++i){var s=q.getElement(Q[i]),u=null;if(s!=null){if(s.type=="select-multiple")for(d=0;d<s.options.length;d++){if(s.options[d].selected)g+=e+Q[i]+"="+encodeURIComponent(s.options[d].value)}else if(q.hasTag(s,"SPAN"))for(d=0;d<s.childNodes.length;d++){if(s.childNodes[d].type=="checkbox"){d=s.childNodes[d];if(d.style.display=="none")u="indeterminate";else if(d.checked)u=d.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)u="indeterminate";else{if(s.checked)u=s.value}else if(s.type!="file")u=""+s.value;if(u!=null)g+=e+Q[i]+"="+encodeURIComponent(u)}}if(L!=null)g+=e+"_="+encodeURIComponent(unescape(L));if(!h){c.data=g;return c}for(i=h.target||h.srcElement;!i.id&&i.parentNode;)i=i.parentNode;if(i.id)g+=e+"tid="+i.id;try{g+=e+"type="+h.type}catch(ia){}if(h.clientX||h.clientY)g+=e+"clientX="+h.clientX+e+"clientY="+h.clientY;u=q.pageCoordinates(h);i=u.x;u=u.y;if(i||u){g+=e+"documentX="+i+e+"documentY="+u;g+=e+"dragdX="+(i-$)+e+"dragdY="+(u-aa)}if(h.screenX||h.screenY)g+=e+"screenX="+h.screenX+e+"screenY="+h.screenY;if(c.object&&c.object.nodeType!=9){d=q.widgetPageCoordinates(c.object);g+=e+"scrollX="+c.object.scrollLeft+e+"scrollY="+c.object.scrollTop+e+"width="+c.object.clientWidth+e+"height="+c.object.clientHeight+e+"widgetX="+(i-d.x)+e+"widgetY="+(u-d.y)}if(h.which)g+=e+"right="+(h.which==3);else if(h.button)g+=e+"right="+(h.button==2);if(typeof h.keyCode!=="undefined")g+=e+"keyCode="+h.keyCode;if(typeof h.charCode!=="undefined")g+=e+"charCode="+h.charCode;if(h.altKey)g+=e+"altKey=1";if(h.ctrlKey)g+=e+"ctrlKey=1";if(h.metaKey)g+=e+"metaKey=1";if(h.shiftKey)g+=e+"shiftKey=1";c.data=g;return c}function t(){var c="";feedback=false;for(var d=0;d<v.length;++d){feedback=feedback||v[d].feedback;c+=v[d].data}V=v;v=[];return{feedback:feedback,result:c}}function A(){q.history._initTimeout();R==0&&J(null,"none",null,false);W=setTimeout(A,_$_KEEP_ALIVE_$_000)}function z(c){if(!q.isIEMobile)document.title=c}function F(){q.history._initialize();n();if(!ba){ba=true;_$_ONLOAD_$_();W=setTimeout(A,_$_KEEP_ALIVE_$_000)}}function I(c){clearTimeout(c);document.body.style.cursor="auto";if(U!=null){try{U()}catch(d){}U=null}}function B(){document.body.style.cursor="wait";U=hideLoadingIndicator;showLoadingIndicator()}function P(c){ca=c}function E(c){with(window){c&&eval(c);_$_APP_CLASS_$_._p_.autoJavaScript()}}function D(c,d,e){if(!X){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(d);_$_$ifnot_DEBUG_$_()}catch(g){alert("Wt internal error: "+g+", code: "+g.code+", description: "+g.description)}_$_$endif_$_();e&&I(e)}else v=V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++R;else R=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(R)*500);S=setTimeout(function(){p()},c)}else p()}}function y(){C.abort();K=C=null;p()}function J(c,d,e,g){H&&c==H&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function j(){if(C!=null&&K!=null){clearTimeout(K);C.abort();C=null}if(C==null)if(S==null)S=setTimeout(function(){p()},q.updateDelay);else if(R){clearTimeout(S);p()}}function o(c){Y=c;da._p_.comm.responseReceived(c)}function p(){S=null;if(q.isIEMobile)feedback=false;if(X){if(!ea){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ea=true}}else{var c,d,e,g="&rand="+Math.round(Math.random(fa)*1E5);if(v.length>0){c=t();d=c.feedback?setTimeout(B,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"signal=poll"};d=null;e=true}C=da._p_.comm.sendUpdate(ga+g,"request=jsupdate&"+c.result+"&ackId="+Y,d,Y,-1);K=e?setTimeout(y,_$_SERVER_PUSH_TIMEOUT_$_):null}}function w(c,d){var e={},g=v.length;e.signal="user";e.id=typeof c==="string"?c:c==_$_APP_CLASS_$_?"app":c.id;if(typeof d==="object"){e.name=d.name;e.object=d.eventObject;e.event=d.event}else{e.name=d;e.object=e.event=null}e.args=[];for(var h=2;h<arguments.length;++h){var i=arguments[h];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[h-2]=i}e.feedback=true;v[g]=r(e,g);j()}function O(c,d,e){var g=function(){var i=q.getElement(c);if(i){if(e)i.timer=setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick()}},h=q.getElement(c);h.timer=setTimeout(g,d);h.tm=g}function G(c,d){setTimeout(function(){if(M[c]===true)d();else M[c]=d},20)}function Z(c){if(M[c]!==true){typeof M[c]!=="undefined"&&M[c]();M[c]=true}}function ha(c,d){var e=false;if(d!="")try{e=!eval("typeof "+d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script");h.setAttribute("src",c);h.onload=function(){Z(c)};h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")Z(c)};document.getElementsByTagName("head")[0].appendChild(h)}}function N(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}var da=this,q=_$_WT_CLASS_$_,$=0,aa=0,L=null,T={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null},Q=_$_FORM_OBJECTS_$_,V=[],v=[],ga=_$_RELATIVE_URL_$_,X=false,ea=false,ba=false,C=null,K=null,W=null,R=0,ca=false,S=null,U=null,fa=(new Date).getTime(),H=null,Y=0,M={};N.prototype.preload=function(c){var d=new Image;this.images.push(d);d.onload=N.prototype.onload;d.onerror=N.prototype.onload;d.onabort=N.prototype.onload;d.imagePreloader=this;d.src=c};N.prototype.onload=function(){var c=this.imagePreloader;--c.work==0&&c.callback(c.images)};q.history.register(_$_INITIAL_HASH_$_,a);this._p_={loadScript:ha,onJsLoad:G,setTitle:z,update:J,quit:function(){X=true;clearTimeout(W)},setFormObjects:function(c){Q=c},saveDownPos:l,addTimerEvent:O,load:F,handleResponse:D,setServerPush:P,dragStart:k,dragDrag:m,dragEnd:x,capture:f,onHashChange:a,setHash:b,ImagePreloader:N,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:o};this.emit=w}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
s;h=A;f(k);b()}else if(A!==h&&u){k=s;h=A;s=N[h-1];f(s);b()}},50)}}function L(){var k;k=J.value.split("|");if(k.length>1){x=k[0];D=k[1]}if(k.length>2)N=k[2].split(",");if(q)n();else{o();K=true;r!=null&&r()}}var u=false,q=self.isIElt9,B=false,r=null,C=null,J=null,K=false,M=null,N=[],x,D,Y=function(){};return{onReady:function(k){if(K)setTimeout(function(){k()},0);else r=k},_initialize:function(){J!=null&&L()},_initTimeout:function(){o()},register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k,
s;h=A;f(k);b()}else if(A!==h&&u){k=s;h=A;s=O[h-1];f(s);b()}},50)}}function L(){var k;k=J.value.split("|");if(k.length>1){x=k[0];D=k[1]}if(k.length>2)O=k[2].split(",");if(q)n();else{o();K=true;r!=null&&r()}}var u=false,q=self.isIElt9,B=false,r=null,C=null,J=null,K=false,M=null,O=[],x,D,Y=function(){};return{onReady:function(k){if(K)setTimeout(function(){k()},0);else r=k},_initialize:function(){J!=null&&L()},_initTimeout:function(){o()},register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k,
s;h=A;f(k);b()}else if(A!==h&&u){k=s;h=A;s=N[h-1];f(s);b()}},50)}}function L(){var k;k=J.value.split("|");if(k.length>1){x=k[0];D=k[1]}if(k.length>2)N=k[2].split(",");if(q)n();else{o();K=true;r!=null&&r()}}var u=false,q=self.isIElt9,B=false,r=null,C=null,J=null,K=false,M=null,N=[],x,D,Y=function(){};return{onReady:function(k){if(K)setTimeout(function(){k()},0);else r=k},_initialize:function(){J!=null&&L()},_initTimeout:function(){o()},register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k,
return DONE(result);
return DONE();
function(result) { BigInteger.log("stepping_isProbablePrime No.1: " ); // if ( param.result == null ) { // BigInteger.err("stepping_isProbablePrime No.1: WARNING param.result=null / param="+param ); // } var i; if( x.t == 1 && x[0] <= lowprimes[ lowprimes.length-1 ] ) { for ( i = 0; i < lowprimes.length; ++i ) if ( x[0] == lowprimes[i] ) { BigInteger.log( "stepping_isProbablePrime.1 EXIT" ); //return true; result.prime = true; return DONE(result); } BigInteger.log( "stepping_isProbablePrime.2 EXIT" ); // return false; result.prime = false; return DONE(result); } if ( x.isEven() ) { BigInteger.log( "stepping_isProbablePrime.3 EXIT" ); // return false; result.prime = false; return DONE(result); } i = 1; while ( i < lowprimes.length ) { var m = lowprimes[i]; var j = i+1; while( j < lowprimes.length && m < lplim ) { m *= lowprimes[j++]; } m = x.modInt(m); while( i < j ) { if( m % lowprimes[i++] == 0 ) { BigInteger.log( "stepping_isProbablePrime:4 EXIT" ); // return false; result.prime return DONE(result); } } } BigInteger.log( "stepping_isProbablePrime:5 BREAK" ); },
result.prime return DONE(result);
result.prime = false; return DONE();
function(result) { BigInteger.log("stepping_isProbablePrime No.1: " ); // if ( param.result == null ) { // BigInteger.err("stepping_isProbablePrime No.1: WARNING param.result=null / param="+param ); // } var i; if( x.t == 1 && x[0] <= lowprimes[ lowprimes.length-1 ] ) { for ( i = 0; i < lowprimes.length; ++i ) if ( x[0] == lowprimes[i] ) { BigInteger.log( "stepping_isProbablePrime.1 EXIT" ); //return true; result.prime = true; return DONE(result); } BigInteger.log( "stepping_isProbablePrime.2 EXIT" ); // return false; result.prime = false; return DONE(result); } if ( x.isEven() ) { BigInteger.log( "stepping_isProbablePrime.3 EXIT" ); // return false; result.prime = false; return DONE(result); } i = 1; while ( i < lowprimes.length ) { var m = lowprimes[i]; var j = i+1; while( j < lowprimes.length && m < lplim ) { m *= lowprimes[j++]; } m = x.modInt(m); while( i < j ) { if( m % lowprimes[i++] == 0 ) { BigInteger.log( "stepping_isProbablePrime:4 EXIT" ); // return false; result.prime return DONE(result); } } } BigInteger.log( "stepping_isProbablePrime:5 BREAK" ); },
}).delay(100);
}).delay(200);
fail.start("opacity", 1).chain(function(){ (function(){ fail.start("opacity", 0); }).delay(100); });
$(self).one("appear",function(){if(!this.loaded){$("<img />").attr("src",$(self).attr("original")).bind("load",function(){$(self).hide().attr("src",$(self).attr("original")) [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);
$(self).one("appear",function(){if(!this.loaded){$("<img />").bind("load",function(){$(self).hide().attr("src",$(self).attr("original")) [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();}
$(self).one("appear",function(){if(!this.loaded){$("<img />").attr("src",$(self).attr("original")).bind("load",function(){$(self).hide().attr("src",$(self).attr("original"))[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);
if (index == -1) { self.addMonth(-1); el = $("#" + css.weeks + " a:last"); } else if (index == 35) { self.addMonth(); el = $("#" + css.weeks + " a:first");
if (index > 41) { self.addMonth(); el = $("#" + css.weeks + " a:eq(" + (index-42) + ")"); } else if (index < 0) { self.addMonth(-1); el = $("#" + css.weeks + " a:eq(" + (index+42) + ")");
$(document).bind("keydown.d", function(e) { var key = e.keyCode; // backspace clears the value if (key == 8) { input.val(""); return self.hide(e); } // esc key if (key == 27) { return self.hide(e); } if ($(KEYS).index(key) >= 0) { if (!opened) { self.show(e); return e.preventDefault(); } var days = $("#" + css.weeks + " a"), el = $("." + css.focus), index = days.index(el); el.removeClass(css.focus); if (key == 74 || key == 40) { index += 7; } else if (key == 75 || key == 38) { index -= 7; } else if (key == 76 || key == 39) { index += 1; } else if (key == 72 || key == 37) { index -= 1; } if (index == -1) { self.addMonth(-1); el = $("#" + css.weeks + " a:last"); } else if (index == 35) { self.addMonth(); el = $("#" + css.weeks + " a:first"); } else { el = days.eq(index); } el.addClass(css.focus); return e.preventDefault(); } // pageUp / pageDown if (key == 34) { return self.addMonth(); } if (key == 33) { return self.addMonth(-1); } // home if (key == 36) { return self.today(); } // enter if (key == 13) { if (!$(e.target).is("select")) { $("." + css.focus).click(); } } return $([16, 17, 18, 9]).index(key) >= 0; });
$("select", $element).each(function(){ var $select = $(this); $("option", $select).each(function(){ if ($select.val() == $(this).val()) this.setAttribute('selected', 'selected'); });
$("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'); }); });
function(result) {
function() {
function(result) { BigInteger.log("stepping_isProbablePrime No.1: " ); // if ( param.result == null ) { // BigInteger.err("stepping_isProbablePrime No.1: WARNING param.result=null / param="+param ); // } var i; if( x.t == 1 && x[0] <= lowprimes[ lowprimes.length-1 ] ) { for ( i = 0; i < lowprimes.length; ++i ) if ( x[0] == lowprimes[i] ) { BigInteger.log( "stepping_isProbablePrime.1 EXIT" ); //return true; result.prime = true; return DONE(); } BigInteger.log( "stepping_isProbablePrime.2 EXIT" ); // return false; result.prime = false; return DONE(); } if ( x.isEven() ) { BigInteger.log( "stepping_isProbablePrime.3 EXIT" ); // return false; result.prime = false; return DONE(); } i = 1; while ( i < lowprimes.length ) { var m = lowprimes[i]; var j = i+1; while( j < lowprimes.length && m < lplim ) { m *= lowprimes[j++]; } m = x.modInt(m); while( i < j ) { if( m % lowprimes[i++] == 0 ) { BigInteger.log( "stepping_isProbablePrime:4 EXIT" ); // return false; result.prime = false; return DONE(); } } } BigInteger.log( "stepping_isProbablePrime:5 BREAK" ); },
result.prime = true; return DONE();
return DONE(true);
function(result) { BigInteger.log("stepping_isProbablePrime No.1: " ); // if ( param.result == null ) { // BigInteger.err("stepping_isProbablePrime No.1: WARNING param.result=null / param="+param ); // } var i; if( x.t == 1 && x[0] <= lowprimes[ lowprimes.length-1 ] ) { for ( i = 0; i < lowprimes.length; ++i ) if ( x[0] == lowprimes[i] ) { BigInteger.log( "stepping_isProbablePrime.1 EXIT" ); //return true; result.prime = true; return DONE(); } BigInteger.log( "stepping_isProbablePrime.2 EXIT" ); // return false; result.prime = false; return DONE(); } if ( x.isEven() ) { BigInteger.log( "stepping_isProbablePrime.3 EXIT" ); // return false; result.prime = false; return DONE(); } i = 1; while ( i < lowprimes.length ) { var m = lowprimes[i]; var j = i+1; while( j < lowprimes.length && m < lplim ) { m *= lowprimes[j++]; } m = x.modInt(m); while( i < j ) { if( m % lowprimes[i++] == 0 ) { BigInteger.log( "stepping_isProbablePrime:4 EXIT" ); // return false; result.prime = false; return DONE(); } } } BigInteger.log( "stepping_isProbablePrime:5 BREAK" ); },
result.prime = false; return DONE();
return DONE(false);
function(result) { BigInteger.log("stepping_isProbablePrime No.1: " ); // if ( param.result == null ) { // BigInteger.err("stepping_isProbablePrime No.1: WARNING param.result=null / param="+param ); // } var i; if( x.t == 1 && x[0] <= lowprimes[ lowprimes.length-1 ] ) { for ( i = 0; i < lowprimes.length; ++i ) if ( x[0] == lowprimes[i] ) { BigInteger.log( "stepping_isProbablePrime.1 EXIT" ); //return true; result.prime = true; return DONE(); } BigInteger.log( "stepping_isProbablePrime.2 EXIT" ); // return false; result.prime = false; return DONE(); } if ( x.isEven() ) { BigInteger.log( "stepping_isProbablePrime.3 EXIT" ); // return false; result.prime = false; return DONE(); } i = 1; while ( i < lowprimes.length ) { var m = lowprimes[i]; var j = i+1; while( j < lowprimes.length && m < lplim ) { m *= lowprimes[j++]; } m = x.modInt(m); while( i < j ) { if( m % lowprimes[i++] == 0 ) { BigInteger.log( "stepping_isProbablePrime:4 EXIT" ); // return false; result.prime = false; return DONE(); } } } BigInteger.log( "stepping_isProbablePrime:5 BREAK" ); },
if (root.is(":hidden")) {
if (!opened) {
$(document).bind("keydown.d", function(e) { var key = e.keyCode; // esc key if (key == 27) { return self.hide(e); } if ($(KEYS).index(key) >= 0) { if (root.is(":hidden")) { self.show(e); return e.preventDefault(); } var days = $("#" + css.weeks + " a"), el = $("." + css.focus), index = days.index(el); el.removeClass(css.focus); if (key == 74 || key == 40) { index += 7; } else if (key == 75 || key == 38) { index -= 7; } else if (key == 76 || key == 39) { index += 1; } else if (key == 72 || key == 37) { index -= 1; } if (index == -1) { self.addMonth(-1); el = $("#" + css.weeks + " a:last"); } else if (index == 35) { self.addMonth(); el = $("#" + css.weeks + " a:first"); } else { el = days.eq(index); } el.addClass(css.focus); return e.preventDefault(); } // pageUp / pageDown if (key == 34) { return self.addMonth(); } if (key == 33) { return self.addMonth(-1); } // home if (key == 36) { return self.today(); } // enter if (key == 13) { if (!$(e.target).is("select")) { select($("." + css.focus).data("date"), conf, e); } } return $([16, 17, 18, 9]).index(key) >= 0; });
I=false,U=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){v!=null&&E()},_initTimeout:function(){o()},register:function(l,p){if(!I){C=G=escape(l);H=p}},initialize:function(l,p){if(!I){var q=navigator.vendor||"";if(q!=="KDE")if(typeof window.opera!=="undefined")y=true;else if(typeof document.all!=="undefined")r=true;else if(q.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||
function E(){var l;l=v.value.split("|");if(l.length>1){G=l[0];C=l[1]}if(l.length>2)M=l[2].split(",");if(r)k();else{o();I=true;x!=null&&x()}}var u=false,r=false,y=false,x=null,F=null,v=null,I=false,U=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){v!=null&&E()},_initTimeout:function(){o()},register:function(l,p){if(!I){C=G=escape(l);H=p}},initialize:function(l,p){if(!I){var q=navigator.vendor||"";if(q!=="KDE")if(typeof window.opera!==
I=false,U=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){v!=null&&E()},_initTimeout:function(){o()},register:function(l,p){if(!I){C=G=escape(l);H=p}},initialize:function(l,p){if(!I){var q=navigator.vendor||"";if(q!=="KDE")if(typeof window.opera!=="undefined")y=true;else if(typeof document.all!=="undefined")r=true;else if(q.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||
E=false,R=null,A=[],I,z,Q=function(){};if(!document.activeElement){function S(g){if(g&&g.target)document.activeElement=g.target==document?null:g.target}function Y(){document.activeElement=null}document.addEventListener("focus",S,true);document.addEventListener("blur",Y,true)}return{onReady:function(g){if(E)setTimeout(function(){g()},0);else D=g},_initialize:function(){H!=null&&B()},_initTimeout:function(){o()},register:function(g,p){if(!E){z=I=escape(g);Q=p}},initialize:function(g,p){if(!E){var n=
g.target==document?null:g.target}function V(){document.activeElement=null}document.addEventListener("focus",K,true);document.addEventListener("blur",V,true)}return{onReady:function(g){if(w)setTimeout(function(){g()},0);else A=g},_initialize:function(){L!=null&&E()},_initTimeout:function(){n()},register:function(g,o){if(!w){y=I=escape(g);S=o}},initialize:function(g,o){if(!w){var p=navigator.vendor||"";if(p!=="KDE")if(typeof window.opera!=="undefined")H=true;else if(typeof document.all!=="undefined")u=
E=false,R=null,A=[],I,z,Q=function(){};if(!document.activeElement){function S(g){if(g&&g.target)document.activeElement=g.target==document?null:g.target}function Y(){document.activeElement=null}document.addEventListener("focus",S,true);document.addEventListener("blur",Y,true)}return{onReady:function(g){if(E)setTimeout(function(){g()},0);else D=g},_initialize:function(){H!=null&&B()},_initTimeout:function(){o()},register:function(g,p){if(!E){z=I=escape(g);Q=p}},initialize:function(g,p){if(!E){var n=
$.each("onSlide,change".split(","), function(i, name) { if ($.isFunction(conf[name])) { $(self).bind(name, conf[name]); } self[name] = function(fn) { $(self).bind(name, fn); return self; }; });
callback = isClick ? function() { evt.type = "change"; fire.trigger(evt, [val]); } : null;
$.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 H(c){clearTimeout(c);document.body.style.cursor="auto";if(U!=null){try{U()}catch(d){}U=null}}function B(){document.body.style.cursor="wait";U=hideLoadingIndicator;showLoadingIndicator()}function Q(c){ca=c}function E(c){with(window){c&&eval(c);_$_APP_CLASS_$_._p_.autoJavaScript()}}function D(c,d,e){if(!X){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(d);_$_$ifnot_DEBUG_$_()}catch(g){alert("Wt internal error: "+g+", code: "+g.code+", description: "+g.description)}_$_$endif_$_();e&&H(e)}else v= V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++S;else S=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(S)*500);M=setTimeout(function(){q()},c)}else q()}}function y(){C.abort();K=C=null;q()}function I(c,d,e,g){J&&c==J&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function j(){if(C!=null&&K!=null){clearTimeout(K); C.abort();C=null}if(C==null)if(M==null){M=setTimeout(function(){q()},p.updateDelay);da=(new Date).getTime()}else if(S){clearTimeout(M);q()}else if((new Date).getTime()-da>p.updateDelay){clearTimeout(M);q()}}function o(c){Y=c;ea._p_.comm.responseReceived(c)}function q(){M=null;if(p.isIEMobile)feedback=false;if(X){if(!fa){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;fa=true}}else{var c,d,e,g="&rand="+Math.round(Math.random(ga)*1E5);if(v.length> 0){c=t();d=c.feedback?setTimeout(B,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"signal=poll"};d=null;e=true}C=ea._p_.comm.sendUpdate(ha+g,"request=jsupdate&"+c.result+"&ackId="+Y,d,Y,-1);K=e?setTimeout(y,_$_SERVER_PUSH_TIMEOUT_$_):null}}function w(c,d){var e={},g=v.length;e.signal="user";e.id=typeof c==="string"?c:c==_$_APP_CLASS_$_?"app":c.id;if(typeof d==="object"){e.name=d.name;e.object=d.eventObject;e.event=d.event}else{e.name=d;e.object=e.event=null}e.args=[];for(var h=2;h<arguments.length;++h){var i= arguments[h];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[h-2]=i}e.feedback=true;v[g]=r(e,g);j()}function P(c,d,e){var g=function(){var i=p.getElement(c);if(i){if(e)i.timer=setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick()}},h=p.getElement(c);h.timer=setTimeout(g,d);h.tm=g}function G(c,d){setTimeout(function(){if(N[c]===true)d();else N[c]=d},20)}function Z(c){if(N[c]!==true){typeof N[c]!=="undefined"&&N[c]();N[c]=true}}function ia(c,d){var e=false;if(d!="")try{e=!eval("typeof "+ d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script");h.setAttribute("src",c);h.onload=function(){Z(c)};h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")Z(c)};document.getElementsByTagName("head")[0].appendChild(h)}}function O(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}var ea=this,p=_$_WT_CLASS_$_,$=0,aa=0,L=null,T={object:null,sourceId:null, mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null},R=_$_FORM_OBJECTS_$_,V=[],v=[],ha=_$_RELATIVE_URL_$_,X=false,fa=false,ba=false,C=null,K=null,W=null,S=0,ca=false,M=null,U=null,ga=(new Date).getTime(),J=null,da,Y=0,N={};O.prototype.preload=function(c){var d=new Image;this.images.push(d);d.onload=O.prototype.onload;d.onerror=O.prototype.onload;d.onabort=O.prototype.onload;d.imagePreloader=this;d.src=c};O.prototype.onload=function(){var c=this.imagePreloader;--c.work== 0&&c.callback(c.images)};p.history.register(_$_INITIAL_HASH_$_,a);this._p_={loadScript:ia,onJsLoad:G,setTitle:z,update:I,quit:function(){X=true;clearTimeout(W)},setFormObjects:function(c){R=c},saveDownPos:l,addTimerEvent:P,load:F,handleResponse:D,setServerPush:Q,dragStart:k,dragDrag:m,dragEnd:x,capture:f,onHashChange:a,setHash:b,ImagePreloader:O,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:o};this.emit=w}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
function H(c){clearTimeout(c);document.body.style.cursor="auto";if(U!=null){try{U()}catch(d){}U=null}}function B(){document.body.style.cursor="wait";U=hideLoadingIndicator;showLoadingIndicator()}function Q(c){ca=c}function E(c){if(c)if(window.execScript)window.execScript(c);else with(window)eval(c);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(c,d,e){if(!X){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(d);_$_$ifnot_DEBUG_$_()}catch(g){alert("Wt internal error: "+g+", code: "+g.code+", description: "+ g.description)}_$_$endif_$_();e&&H(e)}else v=V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++S;else S=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(S)*500);M=setTimeout(function(){q()},c)}else q()}}function y(){C.abort();K=C=null;q()}function I(c,d,e,g){J&&c==J&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()} function j(){if(C!=null&&K!=null){clearTimeout(K);C.abort();C=null}if(C==null)if(M==null){M=setTimeout(function(){q()},p.updateDelay);da=(new Date).getTime()}else if(S){clearTimeout(M);q()}else if((new Date).getTime()-da>p.updateDelay){clearTimeout(M);q()}}function o(c){Y=c;ea._p_.comm.responseReceived(c)}function q(){M=null;if(p.isIEMobile)feedback=false;if(X){if(!fa){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;fa=true}}else{var c,d,e,g="&rand="+ Math.round(Math.random(ga)*1E5);if(v.length>0){c=t();d=c.feedback?setTimeout(B,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"signal=poll"};d=null;e=true}C=ea._p_.comm.sendUpdate(ha+g,"request=jsupdate&"+c.result+"&ackId="+Y,d,Y,-1);K=e?setTimeout(y,_$_SERVER_PUSH_TIMEOUT_$_):null}}function w(c,d){var e={},g=v.length;e.signal="user";e.id=typeof c==="string"?c:c==_$_APP_CLASS_$_?"app":c.id;if(typeof d==="object"){e.name=d.name;e.object=d.eventObject;e.event=d.event}else{e.name=d;e.object=e.event= null}e.args=[];for(var h=2;h<arguments.length;++h){var i=arguments[h];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[h-2]=i}e.feedback=true;v[g]=r(e,g);j()}function P(c,d,e){var g=function(){var i=p.getElement(c);if(i){if(e)i.timer=setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick()}},h=p.getElement(c);h.timer=setTimeout(g,d);h.tm=g}function G(c,d){setTimeout(function(){if(N[c]===true)d();else N[c]=d},20)}function Z(c){if(N[c]!==true){typeof N[c]!=="undefined"&&N[c]();N[c]= true}}function ia(c,d){var e=false;if(d!="")try{e=!eval("typeof "+d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script");h.setAttribute("src",c);h.onload=function(){Z(c)};h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")Z(c)};document.getElementsByTagName("head")[0].appendChild(h)}}function O(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}var ea= this,p=_$_WT_CLASS_$_,$=0,aa=0,L=null,T={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null},R=_$_FORM_OBJECTS_$_,V=[],v=[],ha=_$_RELATIVE_URL_$_,X=false,fa=false,ba=false,C=null,K=null,W=null,S=0,ca=false,M=null,U=null,ga=(new Date).getTime(),J=null,da,Y=0,N={};O.prototype.preload=function(c){var d=new Image;this.images.push(d);d.onload=O.prototype.onload;d.onerror=O.prototype.onload;d.onabort=O.prototype.onload;d.imagePreloader=this;d.src= c};O.prototype.onload=function(){var c=this.imagePreloader;--c.work==0&&c.callback(c.images)};p.history.register(_$_INITIAL_HASH_$_,a);this._p_={loadScript:ia,onJsLoad:G,setTitle:z,update:I,quit:function(){X=true;clearTimeout(W)},setFormObjects:function(c){R=c},saveDownPos:l,addTimerEvent:P,load:F,handleResponse:D,setServerPush:Q,dragStart:k,dragDrag:m,dragEnd:x,capture:f,onHashChange:a,setHash:b,ImagePreloader:O,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:o};this.emit= w}),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};
j;if(t){if(typeof o==="string")o=document.getElementById(o);!o||o.tagName.toUpperCase()!=="IFRAME"||(F=o)}}}},navigate:function(j){if(B){fqstate=j;if(t)return n(fqstate);else{location.hash=fqstate;if(r){E[history.length]=fqstate;b()}return true}}},getCurrentState:function(){if(!B)return"";return y}}}()}),_$_APP_CLASS_$_=new (function(){function l(c){c=p.pageCoordinates(c);$=c.x;aa=c.y}function a(){var c=p.history.getCurrentState();if(L!=c){L=c;setTimeout(function(){I(null,"hash",null,true)},1)}}function b(c){if(L!=c){L=c;p.history.navigate(escape(c))}}function f(c){J=c;if(document.body.setCapture)c!=null?document.body.setCapture():document.body.releaseCapture()}function n(){window.onresize=function(){E()};var c=function(g){if(!g)g=window.event;return m(g)},d=function(g){if(!g)g=window.event;return x(g)},e=document.body;if(e.addEventListener){e.addEventListener("mousemove",c,true);e.addEventListener("mouseup",d,true);p.isGecko&&window.addEventListener("mouseout",function(g){!g.relatedTarget&&p.hasTag(g.target,"HTML")&&d(g)},true)}else{e.attachEvent("onmousemove",c);e.attachEvent("onmouseup",d)}document.body.ondragstart=function(){return false}}function k(c,d){f(null);var e=T;e.object=p.getElement(c.getAttribute("dwid"));if(e.object!=null){e.sourceId=c.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);e.offsetX=-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=c.getAttribute("dmt");p.cancelEvent(d);return false}}function m(c){if(J!=null){if(!c)c=window.event;p.condCall(J,"onmousemove",c);return false}if(T.object!=null){var d=T,e=p.pageCoordinates(c);d.object.style.display="";d.object.style.left=e.x-d.offsetX+"px";d.object.style.top=e.y-d.offsetY+"px";e=d.dropTarget;var g=c.target||c.srcElement,h="{"+d.mimeType+":",i=null;for(d.dropTarget=null;g;){i=g.getAttribute("amts");if(i!=null&&i.indexOf(h)!=-1){d.dropTarget=g;break}g=g.parentNode;if(!g.tagName||p.hasTag(g,"HTML"))break}if(d.dropTarget!=e){if(d.dropTarget){g=i.indexOf(h)+h.length;c=i.indexOf("}",g);i=i.substring(g,c);if(i.length!=0){d.dropTarget.setAttribute("dos",d.dropTarget.className);d.dropTarget.className=d.dropTarget.className+" "+i}}else d.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",d.object,c,"",h);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(d.dropTarget)if(d.dropTarget.handleDragDrop)d.dropTarget.handleDragDrop("drag",d.object,c,"",h);else d.object.className="Wt-valid-drop";p.cancelEvent(c);return false}return true}function x(c){if(!c)c=window.event;if(J!=null){var d=J;f(null);p.condCall(d,"onmouseup",c);return false}d=T;if(d.object){if(d.dropTarget){var e=d.dropTarget.getAttribute("dos");if(e!=null)d.dropTarget.className=e;d.dropTarget.handleDragDrop?d.dropTarget.handleDragDrop("drop",d.object,c,d.sourceId,d.mimeType):w(d.dropTarget,{name:"_drop",eventObject:d.dropTarget,event:c},d.sourceId,d.mimeType)}d.object.style.position=d.objectPrevStyle.position;d.object.style.display=d.objectPrevStyle.display;d.object.style.left=d.objectPrevStyle.left;d.object.style.top=d.objectPrevStyle.top;d.object.className=d.objectPrevStyle.className;d.object=null}}function r(c,d){var e,g,h;h=c.event;e=d>0?"&e"+d:"&";g=e+"signal="+c.signal;if(c.id){g+=e+"id="+c.id+e+"name="+encodeURIComponent(c.name)+e+"an="+c.args.length;for(var i=0;i<c.args.length;++i)g+=e+"a"+i+"="+encodeURIComponent(c.args[i])}for(i=0;i<R.length;++i){var s=p.getElement(R[i]),u=null;if(s!=null){if(s.type=="select-multiple")for(d=0;d<s.options.length;d++){if(s.options[d].selected)g+=e+R[i]+"="+encodeURIComponent(s.options[d].value)}else if(p.hasTag(s,"SPAN"))for(d=0;d<s.childNodes.length;d++){if(s.childNodes[d].type=="checkbox"){d=s.childNodes[d];if(d.style.display=="none")u="indeterminate";else if(d.checked)u=d.value;break}}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate)u="indeterminate";else{if(s.checked)u=s.value}else if(s.type!="file")u=""+s.value;if(u!=null)g+=e+R[i]+"="+encodeURIComponent(u)}}if(L!=null)g+=e+"_="+encodeURIComponent(unescape(L));if(!h){c.data=g;return c}for(i=h.target||h.srcElement;!i.id&&i.parentNode;)i=i.parentNode;if(i.id)g+=e+"tid="+i.id;try{g+=e+"type="+h.type}catch(ja){}if(h.clientX||h.clientY)g+=e+"clientX="+h.clientX+e+"clientY="+h.clientY;u=p.pageCoordinates(h);i=u.x;u=u.y;if(i||u){g+=e+"documentX="+i+e+"documentY="+u;g+=e+"dragdX="+(i-$)+e+"dragdY="+(u-aa)}if(h.screenX||h.screenY)g+=e+"screenX="+h.screenX+e+"screenY="+h.screenY;if(c.object&&c.object.nodeType!=9){d=p.widgetPageCoordinates(c.object);g+=e+"scrollX="+c.object.scrollLeft+e+"scrollY="+c.object.scrollTop+e+"width="+c.object.clientWidth+e+"height="+c.object.clientHeight+e+"widgetX="+(i-d.x)+e+"widgetY="+(u-d.y)}if(h.which)g+=e+"right="+(h.which==3);else if(h.button)g+=e+"right="+(h.button==2);if(typeof h.keyCode!=="undefined")g+=e+"keyCode="+h.keyCode;if(typeof h.charCode!=="undefined")g+=e+"charCode="+h.charCode;if(h.altKey)g+=e+"altKey=1";if(h.ctrlKey)g+=e+"ctrlKey=1";if(h.metaKey)g+=e+"metaKey=1";if(h.shiftKey)g+=e+"shiftKey=1";c.data=g;return c}function t(){var c="";feedback=false;for(var d=0;d<v.length;++d){feedback=feedback||v[d].feedback;c+=v[d].data}V=v;v=[];return{feedback:feedback,result:c}}function A(){p.history._initTimeout();S==0&&I(null,"none",null,false);W=setTimeout(A,_$_KEEP_ALIVE_$_000)}function z(c){if(!p.isIEMobile)document.title=c}function F(){p.history._initialize();n();if(!ba){ba=true;_$_ONLOAD_$_();W=setTimeout(A,_$_KEEP_ALIVE_$_000)}}function H(c){clearTimeout(c);document.body.style.cursor="auto";if(U!=null){try{U()}catch(d){}U=null}}function B(){document.body.style.cursor="wait";U=hideLoadingIndicator;showLoadingIndicator()}function Q(c){ca=c}function E(c){with(window){c&&eval(c);_$_APP_CLASS_$_._p_.autoJavaScript()}}function D(c,d,e){if(!X){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();E(d);_$_$ifnot_DEBUG_$_()}catch(g){alert("Wt internal error: "+g+", code: "+g.code+", description: "+g.description)}_$_$endif_$_();e&&H(e)}else v=V.concat(v);V=[];if(K){clearTimeout(K);K=null}C=null;if(c>0)++S;else S=0;if(ca||v.length>0)if(c==1){c=Math.min(12E4,Math.exp(S)*500);M=setTimeout(function(){q()},c)}else q()}}function y(){C.abort();K=C=null;q()}function I(c,d,e,g){J&&c==J&&e.type=="mouseup"&&f(null);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!C){_$_$endif_$_();var h={},i=v.length;h.object=c;h.signal=d;h.event=e;h.feedback=g;v[i]=r(h,i);j();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function j(){if(C!=null&&K!=null){clearTimeout(K);C.abort();C=null}if(C==null)if(M==null){M=setTimeout(function(){q()},p.updateDelay);da=(new Date).getTime()}else if(S){clearTimeout(M);q()}else if((new Date).getTime()-da>p.updateDelay){clearTimeout(M);q()}}function o(c){Y=c;ea._p_.comm.responseReceived(c)}function q(){M=null;if(p.isIEMobile)feedback=false;if(X){if(!fa){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;fa=true}}else{var c,d,e,g="&rand="+Math.round(Math.random(ga)*1E5);if(v.length>0){c=t();d=c.feedback?setTimeout(B,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"signal=poll"};d=null;e=true}C=ea._p_.comm.sendUpdate(ha+g,"request=jsupdate&"+c.result+"&ackId="+Y,d,Y,-1);K=e?setTimeout(y,_$_SERVER_PUSH_TIMEOUT_$_):null}}function w(c,d){var e={},g=v.length;e.signal="user";e.id=typeof c==="string"?c:c==_$_APP_CLASS_$_?"app":c.id;if(typeof d==="object"){e.name=d.name;e.object=d.eventObject;e.event=d.event}else{e.name=d;e.object=e.event=null}e.args=[];for(var h=2;h<arguments.length;++h){var i=arguments[h];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[h-2]=i}e.feedback=true;v[g]=r(e,g);j()}function P(c,d,e){var g=function(){var i=p.getElement(c);if(i){if(e)i.timer=setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick()}},h=p.getElement(c);h.timer=setTimeout(g,d);h.tm=g}function G(c,d){setTimeout(function(){if(N[c]===true)d();else N[c]=d},20)}function Z(c){if(N[c]!==true){typeof N[c]!=="undefined"&&N[c]();N[c]=true}}function ia(c,d){var e=false;if(d!="")try{e=!eval("typeof "+d+" === 'undefined'")}catch(g){e=false}if(e)Z(c);else{var h=document.createElement("script");h.setAttribute("src",c);h.onload=function(){Z(c)};h.onreadystatechange=function(){if(h.readyState=="complete"||h.readyState=="loaded")Z(c)};document.getElementsByTagName("head")[0].appendChild(h)}}function O(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}var ea=this,p=_$_WT_CLASS_$_,$=0,aa=0,L=null,T={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null},R=_$_FORM_OBJECTS_$_,V=[],v=[],ha=_$_RELATIVE_URL_$_,X=false,fa=false,ba=false,C=null,K=null,W=null,S=0,ca=false,M=null,U=null,ga=(new Date).getTime(),J=null,da,Y=0,N={};O.prototype.preload=function(c){var d=new Image;this.images.push(d);d.onload=O.prototype.onload;d.onerror=O.prototype.onload;d.onabort=O.prototype.onload;d.imagePreloader=this;d.src=c};O.prototype.onload=function(){var c=this.imagePreloader;--c.work==0&&c.callback(c.images)};p.history.register(_$_INITIAL_HASH_$_,a);this._p_={loadScript:ia,onJsLoad:G,setTitle:z,update:I,quit:function(){X=true;clearTimeout(W)},setFormObjects:function(c){R=c},saveDownPos:l,addTimerEvent:P,load:F,handleResponse:D,setServerPush:Q,dragStart:k,dragDrag:m,dragEnd:x,capture:f,onHashChange:a,setHash:b,ImagePreloader:O,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:o};this.emit=w}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
$("#prev a").click(function() { DeckViewerUI.previous(); });
$(document).bind('keydown', 'space', function(){ DeckViewerUI.showAnswer(); return false; });
$("#prev a").click(function() { DeckViewerUI.previous(); });
fx.start(obj);
if(!(Browser.Engine.trident && Browser.Engine.version == 5)) { fx.start(obj); }
rooms.each( function(door, i){ var request; 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'); } }); door.addEvent('mouseleave', function(e){ var obj = {}; rooms.each(function(other, j){ obj[j] = {'width': [other.getStyle('width').toInt(), 105]}; }); fx.start(obj); if(room.rid == 0 ) { MBchat.updateables.online.show(0); } }); door.addEvent('click', function(e) { e.stop(); //browser should not follow link if((e.control || e.shift) && (me.role == 'A' || me.role == 'L' || room.hasClass('committee'))) { MBchat.updateables.logger.startLog(door.get('id').substr(1).toInt(),door.get('text')); } else { MBchat.updateables.message.enterRoom(door.get('id').substr(1).toInt()); } }); });
$(self).bind(name, fn);
if (fn) { $(self).bind(name, fn); }
$.each("onBeforeClick,onClick".split(","), function(i, name) { // configuration if ($.isFunction(conf[name])) { $(self).bind(name, conf[name]); } // API self[name] = function(fn) { $(self).bind(name, fn); return self; }; });
tokens.each(function(tok) { if (tok.token !== '-') { if (scratch.length > 0) scratch += ' '; scratch += tok.token; } });
ret.accidentals.each(function(acc) { if (retClef.token === 'bass') { if (acc.note === 'C') acc.note = 'c'; if (acc.note === 'D' && acc.acc !== 'flat') acc.note = 'd'; if (acc.note === 'E' && acc.acc !== 'flat') acc.note = 'e'; if (acc.note === 'F' && acc.acc !== 'flat') acc.note = 'f'; if (acc.note === 'G' && acc.acc !== 'flat') acc.note = 'g'; } else { if (acc.note === 'a') acc.note = 'A'; if (acc.note === 'b') acc.note = 'B'; if (acc.note === 'C') acc.note = 'c'; } });
tokens.each(function(tok) { if (tok.token !== '-') { if (scratch.length > 0) scratch += ' '; scratch += tok.token; } });
if (key == 8) {
if (key == 8 || key == 9) {
$(document).bind("keydown.d", function(e) { if (e.ctrlKey) { return true; } var key = e.keyCode; // backspace clears the value if (key == 8) { input.val(""); return self.hide(e); } // esc key if (key == 27) { return self.hide(e); } if ($(KEYS).index(key) >= 0) { if (!opened) { self.show(e); return e.preventDefault(); } var days = $("#" + css.weeks + " a"), el = $("." + css.focus), index = days.index(el); el.removeClass(css.focus); if (key == 74 || key == 40) { index += 7; } else if (key == 75 || key == 38) { index -= 7; } else if (key == 76 || key == 39) { index += 1; } else if (key == 72 || key == 37) { index -= 1; } if (index > 41) { self.addMonth(); el = $("#" + css.weeks + " a:eq(" + (index-42) + ")"); } else if (index < 0) { self.addMonth(-1); el = $("#" + css.weeks + " a:eq(" + (index+42) + ")"); } else { el = days.eq(index); } el.addClass(css.focus); return e.preventDefault(); } // pageUp / pageDown if (key == 34) { return self.addMonth(); } if (key == 33) { return self.addMonth(-1); } // home if (key == 36) { return self.today(); } // enter if (key == 13) { if (!$(e.target).is("select")) { $("." + css.focus).click(); } } return $([16, 17, 18, 9]).index(key) >= 0; });
if (key == 27) { return self.hide(e); }
if (key == 27 || key == 9) { return self.hide(e); }
$(document).bind("keydown.d", function(e) { if (e.ctrlKey) { return true; } var key = e.keyCode; // backspace clears the value if (key == 8) { input.val(""); return self.hide(e); } // esc key if (key == 27) { return self.hide(e); } if ($(KEYS).index(key) >= 0) { if (!opened) { self.show(e); return e.preventDefault(); } var days = $("#" + css.weeks + " a"), el = $("." + css.focus), index = days.index(el); el.removeClass(css.focus); if (key == 74 || key == 40) { index += 7; } else if (key == 75 || key == 38) { index -= 7; } else if (key == 76 || key == 39) { index += 1; } else if (key == 72 || key == 37) { index -= 1; } if (index > 41) { self.addMonth(); el = $("#" + css.weeks + " a:eq(" + (index-42) + ")"); } else if (index < 0) { self.addMonth(-1); el = $("#" + css.weeks + " a:eq(" + (index+42) + ")"); } else { el = days.eq(index); } el.addClass(css.focus); return e.preventDefault(); } // pageUp / pageDown if (key == 34) { return self.addMonth(); } if (key == 33) { return self.addMonth(-1); } // home if (key == 36) { return self.today(); } // enter if (key == 13) { if (!$(e.target).is("select")) { $("." + css.focus).click(); } } return $([16, 17, 18, 9]).index(key) >= 0; });
}).keydown(function(e) { input.blur(); });
$.each(instances, function() { this.hide(); });
}).keydown(function(e) { input.blur(); });
"undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===v&&this.length)g=d.data(this[0],a);return g===v&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){d.data(this,a,b)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});(function(){function a(c){for(var f=
"undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var f=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(f===v&&this.length)f=c.data(this[0],a);return f===v&&e[1]?this.data(e[0]):f}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});(function(){function a(d){for(var g=
"undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===v&&this.length)g=d.data(this[0],a);return g===v&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){d.data(this,a,b)})},removeData:function(a){return this.each(function(){d.removeData(this,a)})}});(function(){function a(c){for(var f=
function (count) { mail.selectMessage(function (msg) gDBView.db.HasAttachments(msg.messageKey), true, true, true, count); },
function (count) { mail.selectMessage(function (msg) gDBView.db.HasAttachments(msg.messageKey), true, true, false, count); },
function (count) { mail.selectMessage(function (msg) gDBView.db.HasAttachments(msg.messageKey), true, true, true, count); },
printLog.addEvent('click',function(e) { printQuery += '&start='+ new Date(endTime.getTime()-startTimeOffset).getTime()/1000; printQuery += '&end='+endTime.getTime()/1000; printQuery += '&tzo='+endTime.getTimezoneOffset()*60; MBchat.logout(); window.location = 'print.php?' + printQuery ;
response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); processMessage(item);
printLog.addEvent('click',function(e) { printQuery += '&start='+ new Date(endTime.getTime()-startTimeOffset).getTime()/1000; printQuery += '&end='+endTime.getTime()/1000; printQuery += '&tzo='+endTime.getTimezoneOffset()*60; MBchat.logout(); window.location = 'print.php?' + printQuery ; //and go back to the forum });
liberator.open(util.readFromClipboard(), liberator[options.get("activate").has("paste") ? "NEW_BACKGROUND_TAB" : "NEW_TAB"]);
let url = util.readFromClipboard(); liberator.assert(url); liberator.open(url);
function () { liberator.open(util.readFromClipboard(), liberator[options.get("activate").has("paste") ? "NEW_BACKGROUND_TAB" : "NEW_TAB"]); });
tmp.open_time = setTimeout( function () { tree2.open_branch(et); }, 500);
$(function () { var u = navigator.userAgent.toLowerCase(); var v = (u.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1]; var css = ''; if($.browser.msie) { if($.browser.version == 6) css += '.tree li { height:18px; zoom:1; } .tree li li { overflow:visible; } .tree .ltr li.last { margin-top: expression( (this.previousSibling && /open/.test(this.previousSibling.className) ) ? "-2px" : "0"); } .marker { width:45px; background-position:-32px top; } .marker_plus { width:5px; background-position:right top; }'; if($.browser.version == 7) css += '.tree li li { overflow:visible; } .tree .ltr li.last { margin-top: expression( (this.previousSibling && /open/.test(this.previousSibling.className) ) ? "-2px" : "0"); }'; } if($.browser.opera) css += '.tree > ul > li.last:after { content:"."; display: block; height:1px; clear:both; visibility:hidden; }'; if($.browser.mozilla && $.browser.version.indexOf("1.8") == 0) css += '.tree .ltr li a { display:inline; float:left; } .tree li ul { clear:both; }'; tree_component.css = tree_component.add_sheet({ str : css }); });
tmp.open_time = setTimeout( function () { tree2.open_branch(et); }, 500);
d.fn.css=function(a,b){return S(this,a,b,true,function(e,g,h){if(h===v)return d.curCSS(e,g);if(typeof h==="number"&&!Oa.test(g))h+="px";d.style(e,g,h)})};d.extend({style:function(a,b,e){if(!a||a.nodeType===3||a.nodeType===8)return v;if((b==="width"||b==="height")&&parseFloat(e)<0)e=v;var g=a.style||a,h=e!==v;if(!d.support.opacity&&b==="opacity"){if(h){g.zoom=1;b=parseInt(e,10)+""==="NaN"?"":"alpha(opacity="+e*100+")";a=g.filter||d.curCSS(a,"filter")||"";g.filter=ma.test(a)?a.replace(ma,b):b}return g.filter&&
f.top,left:e.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||r.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var e="scroll"+b;c.fn[e]=function(f){var h=this[0],k;if(!h)return null;if(f!==v)return this.each(function(){if(k=ba(this))k.scrollTo(!a?f:c(k).scrollLeft(),a?f:c(k).scrollTop());else this[e]=f});else return(k=ba(h))?"pageXOffset"in k?k[a?"pageYOffset":
d.fn.css=function(a,b){return S(this,a,b,true,function(e,g,h){if(h===v)return d.curCSS(e,g);if(typeof h==="number"&&!Oa.test(g))h+="px";d.style(e,g,h)})};d.extend({style:function(a,b,e){if(!a||a.nodeType===3||a.nodeType===8)return v;if((b==="width"||b==="height")&&parseFloat(e)<0)e=v;var g=a.style||a,h=e!==v;if(!d.support.opacity&&b==="opacity"){if(h){g.zoom=1;b=parseInt(e,10)+""==="NaN"?"":"alpha(opacity="+e*100+")";a=g.filter||d.curCSS(a,"filter")||"";g.filter=ma.test(a)?a.replace(ma,b):b}return g.filter&&
liberator.open(url);
liberator.open(url, { from: "paste", where: liberator.NEW_TAB });
function () { let url = util.readFromClipboard(); liberator.assert(url); liberator.open(url); });
$.each(arr, function(i, val) { if(tree2.check_move(nn, et, val)) { mov = val; ok = true; return false; } });
(function ($) { $.extend($.tree.datastores, { "html" : function () { return { get : function(obj, tree, opts) { return obj && $(obj).size() ? $('<div>').append(tree.get_node(obj).clone()).html() : tree.container.children("ul:eq(0)").html(); }, parse : function(data, tree, opts, callback) { if(callback) callback.call(null, data); return data; }, load : function(data, tree, opts, callback) { if(opts.url) { $.ajax({ 'type' : opts.method, 'url' : opts.url, 'data' : data, 'dataType' : "html", 'success' : function (d, textStatus) { callback.call(null, d); }, 'error' : function (xhttp, textStatus, errorThrown) { callback.call(null, false); tree.error(errorThrown + " " + textStatus); } }); } else { callback.call(null, opts.static || tree.container.children("ul:eq(0)").html()); } } }; }, "json" : function () { return { get : function(obj, tree, opts) { var _this = this; if(!obj || $(obj).size() == 0) obj = tree.container.children("ul").children("li"); else obj = $(obj); if(!opts) opts = {}; if(!opts.outer_attrib) opts.outer_attrib = [ "id", "rel", "class" ]; if(!opts.inner_attrib) opts.inner_attrib = [ ]; if(obj.size() > 1) { var arr = []; obj.each(function () { arr.push(_this.get(this, tree, opts)); }); return arr; } if(obj.size() == 0) return []; var json = { attributes : {}, data : {} }; if(obj.hasClass("open")) json.data.state = "open"; if(obj.hasClass("closed")) json.data.state = "closed"; for(var i in opts.outer_attrib) { if(!opts.outer_attrib.hasOwnProperty(i)) continue; var val = (opts.outer_attrib[i] == "class") ? obj.attr(opts.outer_attrib[i]).replace(/(^| )last( |$)/ig," ").replace(/(^| )(leaf|closed|open)( |$)/ig," ") : obj.attr(opts.outer_attrib[i]); if(typeof val != "undefined" && val.toString().replace(" ","").length > 0) json.attributes[opts.outer_attrib[i]] = val; delete val; } if(tree.settings.languages.length) { for(var i in tree.settings.languages) { if(!tree.settings.languages.hasOwnProperty(i)) continue; var a = obj.children("a." + tree.settings.languages[i]); if(opts.force || opts.inner_attrib.length || a.children("ins").get(0).style.backgroundImage.toString().length || a.children("ins").get(0).className.length) { json.data[tree.settings.languages[i]] = {}; json.data[tree.settings.languages[i]].title = tree.get_text(obj,tree.settings.languages[i]); if(a.children("ins").get(0).style.className.length) { json.data[tree.settings.languages[i]].icon = a.children("ins").get(0).style.className; } if(a.children("ins").get(0).style.backgroundImage.length) { json.data[tree.settings.languages[i]].icon = a.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")",""); } if(opts.inner_attrib.length) { json.data[tree.settings.languages[i]].attributes = {}; for(var j in opts.inner_attrib) { if(!opts.inner_attrib.hasOwnProperty(j)) continue; var val = a.attr(opts.inner_attrib[j]); if(typeof val != "undefined" && val.toString().replace(" ","").length > 0) json.data[tree.settings.languages[i]].attributes[opts.inner_attrib[j]] = val; delete val; } } } else { json.data[tree.settings.languages[i]] = tree.get_text(obj,tree.settings.languages[i]); } } } else { var a = obj.children("a"); json.data.title = tree.get_text(obj); if(a.children("ins").size() && a.children("ins").get(0).className.length) { json.data.icon = a.children("ins").get(0).className; } if(a.children("ins").size() && a.children("ins").get(0).style.backgroundImage.length) { json.data.icon = a.children("ins").get(0).style.backgroundImage.replace("url(","").replace(")",""); } if(opts.inner_attrib.length) { json.data.attributes = {}; for(var j in opts.inner_attrib) { if(!opts.inner_attrib.hasOwnProperty(j)) continue; var val = a.attr(opts.inner_attrib[j]); if(typeof val != "undefined" && val.toString().replace(" ","").length > 0) json.data.attributes[opts.inner_attrib[j]] = val; delete val; } } } if(obj.children("ul").size() > 0) { json.children = []; obj.children("ul").children("li").each(function () { json.children.push(_this.get(this, tree, opts)); }); } return json; }, parse : function(data, tree, opts, callback) { if(Object.prototype.toString.apply(data) === "[object Array]") { var str = ''; for(var i = 0; i < data.length; i ++) { if(typeof data[i] == "function") continue; str += this.parse(data[i], tree, opts); } if(callback) callback.call(null, str); return str; } if(!data || !data.data) { if(callback) callback.call(null, false); return ""; } var str = ''; str += "<li "; var cls = false; if(data.attributes) { for(var i in data.attributes) { if(!data.attributes.hasOwnProperty(i)) continue; if(i == "class") { str += " class='" + data.attributes[i] + " "; if(data.state == "closed" || data.state == "open") str += " " + data.state + " "; str += "' "; cls = true; } else str += " " + i + "='" + data.attributes[i] + "' "; } } if(!cls && (data.state == "closed" || data.state == "open")) str += " class='" + data.state + "' "; str += ">"; if(tree.settings.languages.length) { for(var i = 0; i < tree.settings.languages.length; i++) { var attr = {}; attr["href"] = ""; attr["style"] = ""; attr["class"] = tree.settings.languages[i]; if(data.data[tree.settings.languages[i]] && (typeof data.data[tree.settings.languages[i]].attributes).toLowerCase() != "undefined") { for(var j in data.data[tree.settings.languages[i]].attributes) { if(!data.data[tree.settings.languages[i]].attributes.hasOwnProperty(j)) continue; if(j == "style" || j == "class") attr[j] += " " + data.data[tree.settings.languages[i]].attributes[j]; else attr[j] = data.data[tree.settings.languages[i]].attributes[j]; } } str += "<a"; for(var j in attr) { if(!attr.hasOwnProperty(j)) continue; str += ' ' + j + '="' + attr[j] + '" '; } str += ">"; if(data.data[tree.settings.languages[i]] && data.data[tree.settings.languages[i]].icon) { str += "<ins " + (data.data[tree.settings.languages[i]].icon.indexOf("/") == -1 ? " class='" + data.data[tree.settings.languages[i]].icon + "' " : " style='background-image:url(\"" + data.data[tree.settings.languages[i]].icon + "\");' " ) + ">&nbsp;</ins>"; } else str += "<ins>&nbsp;</ins>"; str += ( (typeof data.data[tree.settings.languages[i]].title).toLowerCase() != "undefined" ? data.data[tree.settings.languages[i]].title : data.data[tree.settings.languages[i]] ) + "</a>"; } } else { var attr = {}; attr["href"] = ""; attr["style"] = ""; attr["class"] = ""; if((typeof data.data.attributes).toLowerCase() != "undefined") { for(var i in data.data.attributes) { if(!data.data.attributes.hasOwnProperty(i)) continue; if(i == "style" || i == "class") attr[i] += " " + data.data.attributes[i]; else attr[i] = data.data.attributes[i]; } } str += "<a"; for(var i in attr) { if(!attr.hasOwnProperty(i)) continue; str += ' ' + i + '="' + attr[i] + '" '; } str += ">"; if(data.data.icon) { str += "<ins " + (data.data.icon.indexOf("/") == -1 ? " class='" + data.data.icon + "' " : " style='background-image:url(\"" + data.data.icon + "\");' " ) + ">&nbsp;</ins>"; } else str += "<ins>&nbsp;</ins>"; str += ( (typeof data.data.title).toLowerCase() != "undefined" ? data.data.title : data.data ) + "</a>"; } if(data.children && data.children.length) { str += '<ul>'; for(var i = 0; i < data.children.length; i++) { str += this.parse(data.children[i], tree, opts); } str += '</ul>'; } str += "</li>"; if(callback) callback.call(null, str); return str; }, load : function(data, tree, opts, callback) { if(opts.static) { callback.call(null, opts.static); } else { $.ajax({ 'type' : opts.method, 'url' : opts.url, 'data' : data, 'dataType' : "json", 'success' : function (d, textStatus) { callback.call(null, d); }, 'error' : function (xhttp, textStatus, errorThrown) { callback.call(null, false); tree.error(errorThrown + " " + textStatus); } }); } } } } }); })(jQuery);
$.each(arr, function(i, val) { if(tree2.check_move(nn, et, val)) { mov = val; ok = true; return false; } });
g.filter.indexOf("opacity=")>=0?parseFloat(na.exec(g.filter)[1])/100+"":""}if(X.test(b))b=pa;b=b.replace(oa,qa);if(h)g[b]=e;return g[b]},css:function(a,b,e,g){if(b==="width"||b==="height"){var h,k=b==="width"?Ta:Ua;function l(){h=b==="width"?a.offsetWidth:a.offsetHeight;g!=="border"&&d.each(k,function(){g||(h-=parseFloat(d.curCSS(a,"padding"+this,true))||0);if(g==="margin")h+=parseFloat(d.curCSS(a,"margin"+this,true))||0;else h-=parseFloat(d.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!==
"pageXOffset"]:c.support.boxModel&&k.document.documentElement[e]||k.document.body[e]:h[e]}});c.each(["Height","Width"],function(a,b){var e=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],e,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],e,false,f?"margin":"border"):null};c.fn[e]=function(f){var h=this[0];if(!h)return f==null?null:this;return"scrollTo"in h&&h.document?h.document.compatMode==="CSS1Compat"&&h.document.documentElement["client"+b]|| h.document.body["client"+b]:h.nodeType===9?Math.max(h.documentElement["client"+b],h.body["scroll"+b],h.documentElement["scroll"+b],h.body["offset"+b],h.documentElement["offset"+b]):f===v?c.css(h,e):this.css(e,typeof f==="string"?f:f+"px")}});var Oa=/z-?index|font-?weight|opacity|zoom|line-?height/i,ma=/alpha\([^)]*\)/,na=/opacity=([^)]*)/,X=/float/i,oa=/-([a-z])/ig,Pa=/([A-Z])/g,Qa=/^-?\d+(?:px)?$/i,Ra=/^-?\d/,Sa={position:"absolute",visibility:"hidden",display:"block"},Ta=["Left","Right"],Ua=["Top",
g.filter.indexOf("opacity=")>=0?parseFloat(na.exec(g.filter)[1])/100+"":""}if(X.test(b))b=pa;b=b.replace(oa,qa);if(h)g[b]=e;return g[b]},css:function(a,b,e,g){if(b==="width"||b==="height"){var h,k=b==="width"?Ta:Ua;function l(){h=b==="width"?a.offsetWidth:a.offsetHeight;g!=="border"&&d.each(k,function(){g||(h-=parseFloat(d.curCSS(a,"padding"+this,true))||0);if(g==="margin")h+=parseFloat(d.curCSS(a,"margin"+this,true))||0;else h-=parseFloat(d.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!==
function (count) { let folder = mail.getFolders("Inbox", false, true)[(count > 0) ? (count - 1) : 0]; if (folder) SelectFolder(folder.URI); else liberator.beep(); },
function (count) { mail.selectMessage(function (msg) gDBView.db.HasAttachments(msg.messageKey), true, true, true, count); },
function (count) { let folder = mail.getFolders("Inbox", false, true)[(count > 0) ? (count - 1) : 0]; if (folder) SelectFolder(folder.URI); else liberator.beep(); },
function () { let url = util.readFromClipboard(); liberator.assert(url); liberator.open(url, { from: "paste", where: liberator.NEW_TAB }); });
function () { tabs.reload(config.browser.mCurrentTab, false); });
function () { let url = util.readFromClipboard(); liberator.assert(url); liberator.open(url, { from: "paste", where: liberator.NEW_TAB }); });
$(function () { $(document).bind("mousemove.jstree", tree_component.mousemove); $(document).bind("mouseup.jstree", tree_component.mouseup); });
obj.each(function () { arr.push(_this.get(this, tree, opts)); });
$(function () { $(document).bind("mousemove.jstree", tree_component.mousemove); $(document).bind("mouseup.jstree", tree_component.mouseup); });
count = Math.max(1, count); let newPos = this._getCurrentFolderIndex() + count; if (newPos >= gFolderTreeView.rowCount) { newPos = newPos % gFolderTreeView.rowCount; commandline.echo("search hit BOTTOM, continuing at TOP", commandline.HL_WARNINGMSG, commandline.APPEND_TO_MESSAGES); } gFolderTreeView.selection.timedSelect(newPos, 500);
let folder = mail.getFolders("Inbox", false, true)[(count > 0) ? (count - 1) : 0]; if (folder) SelectFolder(folder.URI); else liberator.beep();
function (count) { count = Math.max(1, count); let newPos = this._getCurrentFolderIndex() + count; if (newPos >= gFolderTreeView.rowCount) { newPos = newPos % gFolderTreeView.rowCount; commandline.echo("search hit BOTTOM, continuing at TOP", commandline.HL_WARNINGMSG, commandline.APPEND_TO_MESSAGES); } gFolderTreeView.selection.timedSelect(newPos, 500); },
function () { tabs.reload(config.browser.mCurrentTab, false); });
function () { tabs.reload(config.browser.mCurrentTab, true); });
function () { tabs.reload(config.browser.mCurrentTab, false); });
$(function () { var u = navigator.userAgent.toLowerCase(); var v = (u.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1]; var css = ''; if(/msie/.test(u) && !/opera/.test(u)) { if(parseInt(v) == 6) css += '.tree li { height:18px; zoom:1; } .tree li li { overflow:visible; } .tree .ltr li.last { margin-top: expression( (this.previousSibling && /open/.test(this.previousSibling.className) ) ? "-2px" : "0"); } .marker { width:45px; background-position:-32px top; } .marker_plus { width:5px; background-position:right top; }'; if(parseInt(v) == 7) css += '.tree li li { overflow:visible; } .tree .ltr li.last { margin-top: expression( (this.previousSibling && /open/.test(this.previousSibling.className) ) ? "-2px" : "0"); }'; } if(/opera/.test(u)) css += '.tree > ul > li.last:after { content:"."; display: block; height:1px; clear:both; visibility:hidden; }'; if(/mozilla/.test(u) && !/(compatible|webkit)/.test(u) && v.indexOf("1.8") == 0) css += '.tree .ltr li a { display:inline; float:left; } .tree li ul { clear:both; }'; tree_component.css = tree_component.add_sheet({ str : css }); });
obj.children("ul").children("li").each(function () { json.children.push(_this.get(this, tree, opts)); });
$(function () { var u = navigator.userAgent.toLowerCase(); var v = (u.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1]; var css = ''; if(/msie/.test(u) && !/opera/.test(u)) { if(parseInt(v) == 6) css += '.tree li { height:18px; zoom:1; } .tree li li { overflow:visible; } .tree .ltr li.last { margin-top: expression( (this.previousSibling && /open/.test(this.previousSibling.className) ) ? "-2px" : "0"); } .marker { width:45px; background-position:-32px top; } .marker_plus { width:5px; background-position:right top; }'; if(parseInt(v) == 7) css += '.tree li li { overflow:visible; } .tree .ltr li.last { margin-top: expression( (this.previousSibling && /open/.test(this.previousSibling.className) ) ? "-2px" : "0"); }'; } if(/opera/.test(u)) css += '.tree > ul > li.last:after { content:"."; display: block; height:1px; clear:both; visibility:hidden; }'; if(/mozilla/.test(u) && !/(compatible|webkit)/.test(u) && v.indexOf("1.8") == 0) css += '.tree .ltr li a { display:inline; float:left; } .tree li ul { clear:both; }'; tree_component.css = tree_component.add_sheet({ str : css }); });
var i=a.config;a.focusManager=function(j){if(j.focusManager)return j.focusManager;this.hasFocus=false;this._={editor:j};return this;};a.focusManager.prototype={focus:function(){var k=this;if(k._.timer)clearTimeout(k._.timer);if(!k.hasFocus){if(a.currentInstance)a.currentInstance.focusManager.forceBlur();var j=k._.editor;j.container.getChild(1).addClass('cke_focus');k.hasFocus=true;j.fire('focus');}},blur:function(){var j=this;if(j._.timer)clearTimeout(j._.timer);j._.timer=setTimeout(function(){delete j._.timer;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;},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;
k-=r;}}else{var w=D,x=null,y;while(w&&!(w.getName()=='body'||w.getName()=='html')){j+=w.$.offsetLeft-w.$.scrollLeft;k+=w.$.offsetTop-w.$.scrollTop;if(!w.equals(D)){j+=w.$.clientLeft||0;k+=w.$.clientTop||0;}var z=x;while(z&&!z.equals(w)){j-=z.$.scrollLeft;k-=z.$.scrollTop;z=z.getParent();}x=w;w=(y=w.$.offsetParent)?new h(y):null;}}if(i){var A=D.getWindow(),B=i.getWindow();if(!A.equals(B)&&A.$.frameElement){var C=new h(A.$.frameElement).getDocumentPosition(i);j+=C.x;k+=C.y;}}if(!document.documentElement.getBoundingClientRect)if(b.gecko&&!m){j+=D.$.clientLeft?1:0;k+=D.$.clientTop?1:0;}return{x:j,y:k};},scrollIntoView:function(i){var o=this;var j=o.getWindow(),k=j.getViewPaneSize().height,l=k*-1;if(i)l+=k;else{l+=o.$.offsetHeight||0;l+=parseInt(o.getComputedStyle('marginBottom')||0,10)||0;}var m=o.getDocumentPosition();l+=m.y;l=l<0?0:l;var n=j.getScrollPosition().y;if(l>n||l<n-k)j.$.scrollTo(0,l);},setState:function(i){var j=this;switch(i){case 1:j.addClass('cke_on');j.removeClass('cke_off');j.removeClass('cke_disabled');break;case 0:j.addClass('cke_disabled');j.removeClass('cke_off');j.removeClass('cke_on');break;default:j.addClass('cke_off');j.removeClass('cke_on');j.removeClass('cke_disabled');break;}},getFrameDocument:function(){var i=this.$;try{i.contentWindow.document;}catch(j){i.src=i.src;if(c&&b.version<7)window.showModalDialog('javascript:document.write("<script>window.setTimeout(function(){window.close();},50);</script>")');}return i&&new g(i.contentWindow.document);},copyAttributes:function(i,j){var p=this;var k=p.$.attributes;j=j||{};for(var l=0;l<k.length;l++){var m=k[l],n=m.nodeName.toLowerCase(),o;if(n in j)continue;if(n=='checked'&&(o=p.getAttribute(n)))i.setAttribute(n,o);else if(m.specified||c&&m.nodeValue&&n=='value'){o=p.getAttribute(n);if(o===null)o=m.nodeValue;i.setAttribute(n,o);}}if(p.$.style.cssText!=='')i.$.style.cssText=p.$.style.cssText;},renameNode:function(i){var l=this;if(l.getName()==i)return;var j=l.getDocument(),k=new h(i,j);l.copyAttributes(k);l.moveChildren(k);l.getParent()&&l.$.parentNode.replaceChild(k.$,l.$);k.$._cke_expando=l.$._cke_expando;l.$=k.$;},getChild:function(i){var j=this.$;if(!i.slice)j=j.childNodes[i];else while(i.length>0&&j)j=j.childNodes[i.shift()];return j?new d.node(j):null;},getChildCount:function(){return this.$.childNodes.length;},disableContextMenu:function(){this.on('contextmenu',function(i){if(!i.data.getTarget().hasClass('cke_enable_context_menu'))i.data.preventDefault();});},setSize:(function(){var i={width:['border-left-width','border-right-width','padding-left','padding-right'],height:['border-top-width','border-bottom-width','padding-top','padding-bottom']};
var i=a.config;a.focusManager=function(j){if(j.focusManager)return j.focusManager;this.hasFocus=false;this._={editor:j};return this;};a.focusManager.prototype={focus:function(){var k=this;if(k._.timer)clearTimeout(k._.timer);if(!k.hasFocus){if(a.currentInstance)a.currentInstance.focusManager.forceBlur();var j=k._.editor;j.container.getChild(1).addClass('cke_focus');k.hasFocus=true;j.fire('focus');}},blur:function(){var j=this;if(j._.timer)clearTimeout(j._.timer);j._.timer=setTimeout(function(){delete j._.timer;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;},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;
this._selectUnreadFolder(false, count);
count = Math.max(1, count); let newPos = this._getCurrentFolderIndex() + count; if (newPos >= gFolderTreeView.rowCount) { newPos = newPos % gFolderTreeView.rowCount; commandline.echo("search hit BOTTOM, continuing at TOP", commandline.HL_WARNINGMSG, commandline.APPEND_TO_MESSAGES); } gFolderTreeView.selection.timedSelect(newPos, 500);
function (count) { this._selectUnreadFolder(false, count); },
function () { tabs.reload(config.browser.mCurrentTab, true); });
function () { let sel = buffer.getCurrentWord(); liberator.assert(sel); util.copyToClipboard(sel, true); });
function () { tabs.reload(config.browser.mCurrentTab, true); });
var i=a.config;a.focusManager=function(j){if(j.focusManager)return j.focusManager;this.hasFocus=false;this._={editor:j};return this;};a.focusManager.prototype={focus:function(){var k=this;if(k._.timer)clearTimeout(k._.timer);if(!k.hasFocus){if(a.currentInstance)a.currentInstance.focusManager.forceBlur();var j=k._.editor;j.container.getChild(1).addClass('cke_focus');k.hasFocus=true;j.fire('focus');}},blur:function(){var j=this;if(j._.timer)clearTimeout(j._.timer);j._.timer=setTimeout(function(){delete j._.timer;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');
k-=r;}}else{var w=D,x=null,y;while(w&&!(w.getName()=='body'||w.getName()=='html')){j+=w.$.offsetLeft-w.$.scrollLeft;k+=w.$.offsetTop-w.$.scrollTop;if(!w.equals(D)){j+=w.$.clientLeft||0;k+=w.$.clientTop||0;}var z=x;while(z&&!z.equals(w)){j-=z.$.scrollLeft;k-=z.$.scrollTop;z=z.getParent();}x=w;w=(y=w.$.offsetParent)?new h(y):null;}}if(i){var A=D.getWindow(),B=i.getWindow();if(!A.equals(B)&&A.$.frameElement){var C=new h(A.$.frameElement).getDocumentPosition(i);j+=C.x;k+=C.y;}}if(!document.documentElement.getBoundingClientRect)if(b.gecko&&!m){j+=D.$.clientLeft?1:0;k+=D.$.clientTop?1:0;}return{x:j,y:k};},scrollIntoView:function(i){var o=this;var j=o.getWindow(),k=j.getViewPaneSize().height,l=k*-1;if(i)l+=k;else{l+=o.$.offsetHeight||0;l+=parseInt(o.getComputedStyle('marginBottom')||0,10)||0;}var m=o.getDocumentPosition();l+=m.y;l=l<0?0:l;var n=j.getScrollPosition().y;if(l>n||l<n-k)j.$.scrollTo(0,l);},setState:function(i){var j=this;switch(i){case 1:j.addClass('cke_on');j.removeClass('cke_off');j.removeClass('cke_disabled');break;case 0:j.addClass('cke_disabled');j.removeClass('cke_off');j.removeClass('cke_on');break;default:j.addClass('cke_off');j.removeClass('cke_on');j.removeClass('cke_disabled');break;}},getFrameDocument:function(){var i=this.$;try{i.contentWindow.document;}catch(j){i.src=i.src;if(c&&b.version<7)window.showModalDialog('javascript:document.write("<script>window.setTimeout(function(){window.close();},50);</script>")');}return i&&new g(i.contentWindow.document);},copyAttributes:function(i,j){var p=this;var k=p.$.attributes;j=j||{};for(var l=0;l<k.length;l++){var m=k[l],n=m.nodeName.toLowerCase(),o;if(n in j)continue;if(n=='checked'&&(o=p.getAttribute(n)))i.setAttribute(n,o);else if(m.specified||c&&m.nodeValue&&n=='value'){o=p.getAttribute(n);if(o===null)o=m.nodeValue;i.setAttribute(n,o);}}if(p.$.style.cssText!=='')i.$.style.cssText=p.$.style.cssText;},renameNode:function(i){var l=this;if(l.getName()==i)return;var j=l.getDocument(),k=new h(i,j);l.copyAttributes(k);l.moveChildren(k);l.getParent()&&l.$.parentNode.replaceChild(k.$,l.$);k.$._cke_expando=l.$._cke_expando;l.$=k.$;},getChild:function(i){var j=this.$;if(!i.slice)j=j.childNodes[i];else while(i.length>0&&j)j=j.childNodes[i.shift()];return j?new d.node(j):null;},getChildCount:function(){return this.$.childNodes.length;},disableContextMenu:function(){this.on('contextmenu',function(i){if(!i.data.getTarget().hasClass('cke_enable_context_menu'))i.data.preventDefault();});},setSize:(function(){var i={width:['border-left-width','border-right-width','padding-left','padding-right'],height:['border-top-width','border-bottom-width','padding-top','padding-bottom']}; return function(j,k,l){if(typeof k=='number'){if(l&&!(c&&b.quirks)){var m=0;for(var n=0,o=i[j].length;n<o;n++)m+=parseInt(this.getComputedStyle(i[j][n])||0,10);k-=m;}this.setStyle(j,k+'px');}};})()});a.command=function(i,j){this.uiItems=[];this.exec=function(k){if(this.state==0)return false;if(this.editorFocus)i.focus();return j.exec.call(this,i,k)!==false;};e.extend(this,j,{modes:{wysiwyg:1},editorFocus:true,state:2});a.event.call(this);};a.command.prototype={enable:function(){var i=this;if(i.state==0)i.setState(!i.preserveState||typeof i.previousState=='undefined'?2:i.previousState);},disable:function(){this.setState(0);},setState:function(i){var j=this;if(j.state==i)return false;j.previousState=j.state;j.state=i;j.fire('state');return true;},toggleState:function(){var i=this;if(i.state==2)i.setState(1);else if(i.state==1)i.setState(2);}};a.event.implementOn(a.command.prototype,true);a.ENTER_P=1;a.ENTER_BR=2;a.ENTER_DIV=3;a.config={customConfig:'config.js',autoUpdateElement:true,baseHref:'',contentsCss:a.basePath+'contents.css',contentsLangDirection:'ui',contentsLanguage:'',language:'',defaultLanguage:'en',enterMode:1,forceEnterMode:false,shiftEnterMode:2,corePlugins:'',docType:'<!DOCTYPE html PUBLIC "-
var i=a.config;a.focusManager=function(j){if(j.focusManager)return j.focusManager;this.hasFocus=false;this._={editor:j};return this;};a.focusManager.prototype={focus:function(){var k=this;if(k._.timer)clearTimeout(k._.timer);if(!k.hasFocus){if(a.currentInstance)a.currentInstance.focusManager.forceBlur();var j=k._.editor;j.container.getChild(1).addClass('cke_focus');k.hasFocus=true;j.fire('focus');}},blur:function(){var j=this;if(j._.timer)clearTimeout(j._.timer);j._.timer=setTimeout(function(){delete j._.timer;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');
count = Math.max(1, count); let newPos = this._getCurrentFolderIndex() - count; if (newPos < 0) { newPos = (newPos % gFolderTreeView.rowCount) + gFolderTreeView.rowCount; commandline.echo("search hit TOP, continuing at BOTTOM", commandline.HL_WARNINGMSG, commandline.APPEND_TO_MESSAGES); } gFolderTreeView.selection.timedSelect(newPos, 500);
this._selectUnreadFolder(false, count);
function (count) { count = Math.max(1, count); let newPos = this._getCurrentFolderIndex() - count; if (newPos < 0) { newPos = (newPos % gFolderTreeView.rowCount) + gFolderTreeView.rowCount; commandline.echo("search hit TOP, continuing at BOTTOM", commandline.HL_WARNINGMSG, commandline.APPEND_TO_MESSAGES); } gFolderTreeView.selection.timedSelect(newPos, 500); },
function () { let sel = buffer.getCurrentWord(); liberator.assert(sel); util.copyToClipboard(sel, true); });
function (count) { buffer.zoomIn(Math.max(count, 1), false); },
function () { let sel = buffer.getCurrentWord(); liberator.assert(sel); util.copyToClipboard(sel, true); });
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;
return function(j,k,l){if(typeof k=='number'){if(l&&!(c&&b.quirks)){var m=0;for(var n=0,o=i[j].length;n<o;n++)m+=parseInt(this.getComputedStyle(i[j][n])||0,10);k-=m;}this.setStyle(j,k+'px');}};})()});a.command=function(i,j){this.uiItems=[];this.exec=function(k){if(this.state==0)return false;if(this.editorFocus)i.focus();return j.exec.call(this,i,k)!==false;};e.extend(this,j,{modes:{wysiwyg:1},editorFocus:true,state:2});a.event.call(this);};a.command.prototype={enable:function(){var i=this;if(i.state==0)i.setState(!i.preserveState||typeof i.previousState=='undefined'?2:i.previousState);},disable:function(){this.setState(0);},setState:function(i){var j=this;if(j.state==i)return false;j.previousState=j.state;j.state=i;j.fire('state');return true;},toggleState:function(){var i=this;if(i.state==2)i.setState(1);else if(i.state==1)i.setState(2);}};a.event.implementOn(a.command.prototype,true);a.ENTER_P=1;a.ENTER_BR=2;a.ENTER_DIV=3;a.config={customConfig:'config.js',autoUpdateElement:true,baseHref:'',contentsCss:a.basePath+'contents.css',contentsLangDirection:'ui',contentsLanguage:'',language:'',defaultLanguage:'en',enterMode:1,forceEnterMode:false,shiftEnterMode:2,corePlugins:'',docType:'<!DOCTYPE html PUBLIC "-
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;
this._selectUnreadFolder(true, count);
count = Math.max(1, count); let newPos = this._getCurrentFolderIndex() - count; if (newPos < 0) { newPos = (newPos % gFolderTreeView.rowCount) + gFolderTreeView.rowCount; commandline.echo("search hit TOP, continuing at BOTTOM", commandline.HL_WARNINGMSG, commandline.APPEND_TO_MESSAGES); } gFolderTreeView.selection.timedSelect(newPos, 500);
function (count) { this._selectUnreadFolder(true, count); },
function (count) { buffer.zoomIn(Math.max(count, 1), false); },
function (count) { buffer.zoomIn(Math.max(count, 1) * 3, false); },
function (count) { buffer.zoomIn(Math.max(count, 1), false); },
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;
return function(j,k,l){if(typeof k=='number'){if(l&&!(c&&b.quirks)){var m=0;for(var n=0,o=i[j].length;n<o;n++)m+=parseInt(this.getComputedStyle(i[j][n])||0,10);k-=m;}this.setStyle(j,k+'px');}};})()});a.command=function(i,j){this.uiItems=[];this.exec=function(k){if(this.state==0)return false;if(this.editorFocus)i.focus();return j.exec.call(this,i,k)!==false;};e.extend(this,j,{modes:{wysiwyg:1},editorFocus:true,state:2});a.event.call(this);};a.command.prototype={enable:function(){var i=this;if(i.state==0)i.setState(!i.preserveState||typeof i.previousState=='undefined'?2:i.previousState);},disable:function(){this.setState(0);},setState:function(i){var j=this;if(j.state==i)return false;j.previousState=j.state;j.state=i;j.fire('state');return true;},toggleState:function(){var i=this;if(i.state==2)i.setState(1);else if(i.state==1)i.setState(2);}};a.event.implementOn(a.command.prototype,true);a.ENTER_P=1;a.ENTER_BR=2;a.ENTER_DIV=3;a.config={customConfig:'config.js',autoUpdateElement:true,baseHref:'',contentsCss:a.basePath+'contents.css',contentsLangDirection:'ui',contentsLanguage:'',language:'',defaultLanguage:'en',enterMode:1,forceEnterMode:false,shiftEnterMode:2,corePlugins:'',docType:'<!DOCTYPE html PUBLIC "- 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;
function () { if (!mail.expandThread()) mail.collapseThread(); });
function (count) { this._selectUnreadFolder(true, count); },
function () { if (!mail.expandThread()) mail.collapseThread(); });
function (count) { buffer.zoomIn(Math.max(count, 1) * 3, false); },
function (count) { buffer.zoomOut(Math.max(count, 1), false); },
function (count) { buffer.zoomIn(Math.max(count, 1) * 3, false); },
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;
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;
function () { mail.collapseThread(); });
function () { if (!mail.expandThread()) mail.collapseThread(); });
function () { mail.collapseThread(); });
function (count) { buffer.zoomOut(Math.max(count, 1), false); },
function (count) { buffer.zoomOut(Math.max(count, 1) * 3, false); },
function (count) { buffer.zoomOut(Math.max(count, 1), false); },
function () { mail.expandThread(); });
function () { mail.collapseThread(); });
function () { mail.expandThread(); });
function (count) { buffer.zoomOut(Math.max(count, 1) * 3, false); },
function (count) { buffer.textZoom = count > 1 ? count : 100; },
function (count) { buffer.zoomOut(Math.max(count, 1) * 3, false); },
el.pitches.each(function(pitch) { pitch.startTie = true; });
lines.each( function(line) { if (multilineVars.is_in_history) { if (line.charAt(1) === ':') { multilineVars.is_in_history = false; parseLine(line); } else tune.addMetaText("history", tokenizer.translateString(tokenizer.stripComment(line))); } else if (multilineVars.inTextBlock) { if (line.startsWith("%%endtext")) { tune.addMetaText("textBlock", multilineVars.textBlock); multilineVars.inTextBlock = false; } else multilineVars.textBlock += ' ' + line; } else parseLine(line); multilineVars.iChar += line.length + 1; });
el.pitches.each(function(pitch) { pitch.startTie = true; });
}
};
return function () { oGeodesyMarker.yearClicked(year, yearHrefId, monthsDivId, datesDivId); }
function () { window.goDoCommand("cmd_emptyTrash"); },
function (args) { this._moveOrCopy(false, args.literalArg); },
function () { window.goDoCommand("cmd_emptyTrash"); },
if(typeof current.data.default_extras != 'undefined' && (typeof extraId == 'undefined'))
if(typeof current.data.default_extras != 'undefined' && (typeof extraId == 'undefined' || extraId == ''))
$('.contentBlock').each(function() { var index = $(this).attr('id').replace('block-', ''); var extraId = $('#blockExtraId'+ index).val(); // no extra specified, we should grab the default if(typeof current.data.default_extras != 'undefined' && (typeof extraId == 'undefined')) { if(current.data.default_extras[index] != 'editor') { extraId = parseInt(current.data.default_extras[index]); } } // change the extra jsBackend.pages.extras.changeExtra(extraId, index); });
function (args) { this._moveOrCopy(false, args.literalArg); },
function (args) { mail._moveOrCopy(false, args.literalArg); },
function (args) { this._moveOrCopy(false, args.literalArg); },
$.each(instances, function() { this.hide(); });
$(window).bind("click.d", function(e) { var el = e.target; if (!$(el).parents("#" + css.root).length && el != input[0] && (!trigger || el != trigger[0])) { self.hide(e); } });
$.each(instances, function() { this.hide(); });
$(document).ready(function() { jsBackend.pages.init(); });
$('.contentBlock').each(function() { var index = $(this).attr('id').replace('block-', ''); var extraId = $('#blockExtraId'+ index).val(); if(typeof current.data.default_extras != 'undefined' && (typeof extraId == 'undefined')) { if(current.data.default_extras[index] != 'editor') { extraId = parseInt(current.data.default_extras[index]); } } jsBackend.pages.extras.changeExtra(extraId, index); });
$(document).ready(function() { jsBackend.pages.init(); });
return this.getBool("showLastUsedPattern", TAB_SWITCHER_DEFAULT_SHOW_LAST_USED_PATTERN);
return this.getBool("editClearNextStack", false);
function() { return this.getBool("showLastUsedPattern", TAB_SWITCHER_DEFAULT_SHOW_LAST_USED_PATTERN);});
}
};
return function() { nvclMarker.moveScalarsInLists(sFromListBox, sToListBox, bIsSelecting); }
var el = els().eq(index); if (!e.isDefaultPrevented() && el.length) { els().removeClass(cls).eq(index).addClass(cls); }
setTimeout(function() { if (!e.isDefaultPrevented()) { var el = els().eq(index); if (!e.isDefaultPrevented() && el.length) { els().removeClass(cls).eq(index).addClass(cls); } } }, 1);
api.onBeforeSeek(function(e, index) { var el = els().eq(index); if (!e.isDefaultPrevented() && el.length) { els().removeClass(cls).eq(index).addClass(cls); } });
lazy_check();
$(document).ready(function() { $.ajaxSetup({cache:true}); $("#loading").ajaxStart(function() { $(this).show(); }); $("#loading").ajaxStop(function() { $(this).hide(); $('.sortable').sortable(); $('#graph-view').trigger('change'); }); $.getJSON('cgi-bin/collection.modified.cgi?action=hostlist_json', function(data) { for (i = 0; i < data.length; i++) { $("#hosts ul").append( '<li><a href="cgi-bin/collection.modified.cgi?action=show_host;host=' + data[i] + '">' + data[i] + '</a></li>'); } }); $('#menu-tabs').tabs(); $(".date-field").datepicker(); $("#clock").jclock(); $('.ttip').hover(function() { var text = $(this).find('div.ttip-content').html(); $('#help-box').html(text).fadeIn(); }, function() { $('#help-box').html('').hide(); }); $.getJSON('cgi-bin/time.cgi', function(data) { $("#clock-server").jclock( { utc : true, utcOffset : parseInt(data.tz) }); }); $("#clock-server-slider").slider( { min : -12, max : 12, step : 0.5, change : function(event, ui) { $('#clock-server-gmt').html(get_gmt(ui.value)); } }); $('#clock-server-add').submit(function() { var offset = parseInt($('#clock-server-gmt').html()); var new_span = $(document.createElement("span")); var new_li = $(document.createElement("li")); new_span.jclock( { format : '%H:%M', utc : true, utcOffset : offset }); $(new_span).appendTo(new_li); new_li.append(' ' + $('#clock-server-add-label').val()); $(new_li).appendTo('#new-clock-container'); return false; }); $('button').button(); $('#show-ruler-checkbox').click(function() { if ($(this).attr('checked')) { $('#ruler').fadeIn(); } else { $('#ruler').fadeOut(); } }); $('#ruler').draggable( { axis : 'x' }); $('#hosts a, #plugins a').live('click', load_url); $('#select-all').live('click', function() { $('.selectable').addClass('selected'); return false; }); $('#select-none').live('click', function() { $('.selectable').removeClass('selected'); return false; }); $('li.graph-image .ui-icon-close').live('click', function() { $(this).parent().parent().parent().remove(); }); $('li.graph-image .ui-icon-star').live('click', function() { var section = $(this).parent().parent().next(); if ($(section).hasClass('selected')) { $(section).removeClass('selected'); } else { $(section).addClass('selected'); } }); $('li.graph-image .ui-icon-disk').live('click', function() { var img_tag = $(this).parent().parent().next().next(); $("#output-dialog a").each(function() { $this = $(this); var join_url = $(img_tag).attr('src') + $this.attr('href'); $this.attr('href', join_url); }); $("#output-dialog").dialog( { title : 'Select output format:', modal : true }); }); $("#slide-menu-container .ui-widget-header").click(function() { $("#slide-menu-container .ui-widget-content").slideToggle("fast"); $(this).toggleClass("active"); return false; }); $('.icons, .fg-button').livequery(function() { $(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); }); }); $("#host-filter").live('keyup', function() { var searchText = $(this).val(); $("#hosts li").hide(); if (searchText == "") { $("#hosts li").show(); } else { $("#hosts li:contains(" + searchText + ")").show(); } $(this).focus(); }); $('#hosts a, #plugins a').live('click', function() { $(this).addClass("selected"); }); $(window).scroll(function () { lazy_check(); }); $("#timespan-menu li").live( 'click', function() { $("#timespan-menu li").each(function() { $(this).removeClass("selected"); }); var timespan = $(this).html(); if (!$("li.graph-image").hasClass(timespan)) { create_graph_list(timespan, $graph_json[timespan]); } $("li.graph-image").hide(); $("li.graph-image." + timespan).show(); $("#timespan-menu li:contains(" + timespan + ")").addClass("selected"); }); $('#load-graphdefs').click( function() { $.getJSON('cgi-bin/graphdefs.cgi', function(data) { graph_def_values = data.graph_defs for ( var def in graph_def_values) { $('#graphdef-name').append( '<option value="' + def + '">' + def + '</option>'); } }); }); $('#graphdef-name').change(function() { var gdef = $(this).val(); var values = graph_def_values[gdef]; $('#graphdef-content').val(values.join('\n')); }); $('#graph-view').change(function() { var selected_view = $(this).val(); if (selected_view == "grid") { $('#graph-imgs-container .sortable').css( { 'list-style-type' : 'none' }); $('#graph-container .sortable li').css( { 'float' : 'left', 'width' : '200px' }); $('#graph-container .sortable li img').css('width', '200px'); $('li.gc .gc-menu').css( { 'height' : '60px', 'width' : '120px' }); } else { // selected_view == 'list' $('#graph-container .sortable li').css( { 'float' : 'none', 'width' : '100%' }); $('#graph-container .sortable li img').css('width', ''); $('li.gc .gc-menu').css( { 'height' : '120px', 'width' : '60px' }); } }); });
$('.icons, .fg-button').livequery(function() { $(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); });
$('li.graph-image .ui-icon-close').live('click', function() { $(this).parent().parent().parent().remove();
$('.icons, .fg-button').livequery(function() { $(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); }); });
$('.ttip').hover(function() { var text = $(this).attr('rel');
$(document).ready(function() { $.ajaxSetup({cache:true}); $("#loading").ajaxStart(function() { $(this).show(); }); $("#loading").ajaxStop(function() { $(this).hide(); $('.sortable').sortable(); $('#graph-view').trigger('change'); }); $.getJSON('cgi-bin/collection.modified.cgi?action=hostlist_json', function(data) { for (i = 0; i < data.length; i++) { $("#hosts ul").append( '<li><a href="cgi-bin/collection.modified.cgi?action=show_host;host=' + data[i] + '">' + data[i] + '</a></li>'); } }); $('#menu-tabs').tabs(); $(".date-field").datepicker(); $("#clock").jclock(); $('.ttip').hover(function() { var text = $(this).find('div.ttip-content').html();
$('.ttip').hover(function() { var text = $(this).attr('rel'); $('#help-box').html(text).fadeIn(); }, function() {
$('#help-box').html('').hide(); }); $.getJSON('cgi-bin/time.cgi', function(data) { $("#clock-server").jclock( { utc : true, utcOffset : parseInt(data.tz) }); }); $("#clock-server-slider").slider( { min : -12, max : 12, step : 0.5, change : function(event, ui) { $('#clock-server-gmt').html(get_gmt(ui.value)); } }); $('#clock-server-add').submit(function() { var offset = parseInt($('#clock-server-gmt').html()); var new_span = $(document.createElement("span")); var new_li = $(document.createElement("li")); new_span.jclock( { format : '%H:%M', utc : true, utcOffset : offset }); $(new_span).appendTo(new_li); new_li.append(' ' + $('#clock-server-add-label').val()); $(new_li).appendTo('#new-clock-container'); return false; }); $('button').button(); $('#show-ruler-checkbox').click(function() { if ($(this).attr('checked')) { $('#ruler').fadeIn(); } else { $('#ruler').fadeOut(); } }); $('#ruler').draggable( { axis : 'x' }); $('#hosts a, #plugins a').live('click', load_url); $('#select-all').live('click', function() { $('.selectable').addClass('selected'); return false; }); $('#select-none').live('click', function() { $('.selectable').removeClass('selected'); return false; }); $('li.graph-image .ui-icon-close').live('click', function() { $(this).parent().parent().parent().remove(); }); $('li.graph-image .ui-icon-star').live('click', function() { var section = $(this).parent().parent().next(); if ($(section).hasClass('selected')) { $(section).removeClass('selected'); } else { $(section).addClass('selected'); } }); $('li.graph-image .ui-icon-disk').live('click', function() { var img_tag = $(this).parent().parent().next().next(); $("#output-dialog a").each(function() { $this = $(this); var join_url = $(img_tag).attr('src') + $this.attr('href'); $this.attr('href', join_url); }); $("#output-dialog").dialog( { title : 'Select output format:', modal : true }); }); $("#slide-menu-container .ui-widget-header").click(function() { $("#slide-menu-container .ui-widget-content").slideToggle("fast"); $(this).toggleClass("active"); return false; }); $('.icons, .fg-button').livequery(function() { $(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); }); }); $("#host-filter").live('keyup', function() { var searchText = $(this).val(); $("#hosts li").hide(); if (searchText == "") { $("#hosts li").show(); } else { $("#hosts li:contains(" + searchText + ")").show(); } $(this).focus(); }); $('#hosts a, #plugins a').live('click', function() { $(this).addClass("selected"); }); $(window).scroll(function () { lazy_check(); }); $("#timespan-menu li").live( 'click', function() { $("#timespan-menu li").each(function() { $(this).removeClass("selected"); }); var timespan = $(this).html(); if (!$("li.graph-image").hasClass(timespan)) { create_graph_list(timespan, $graph_json[timespan]); } $("li.graph-image").hide(); $("li.graph-image." + timespan).show(); $("#timespan-menu li:contains(" + timespan + ")").addClass("selected"); }); $('#load-graphdefs').click( function() { $.getJSON('cgi-bin/graphdefs.cgi', function(data) { graph_def_values = data.graph_defs for ( var def in graph_def_values) { $('#graphdef-name').append( '<option value="' + def + '">' + def + '</option>'); } }); }); $('#graphdef-name').change(function() { var gdef = $(this).val(); var values = graph_def_values[gdef]; $('#graphdef-content').val(values.join('\n')); }); $('#graph-view').change(function() { var selected_view = $(this).val(); if (selected_view == "grid") { $('#graph-imgs-container .sortable').css( { 'list-style-type' : 'none' }); $('#graph-container .sortable li').css( { 'float' : 'left', 'width' : '200px' }); $('#graph-container .sortable li img').css('width', '200px'); $('li.gc .gc-menu').css( { 'height' : '60px', 'width' : '120px' }); } else { $('#graph-container .sortable li').css( { 'float' : 'none', 'width' : '100%' }); $('#graph-container .sortable li img').css('width', ''); $('li.gc .gc-menu').css( { 'height' : '120px', 'width' : '60px' }); } }); });
$('.ttip').hover(function() { var text = $(this).attr('rel'); $('#help-box').html(text).fadeIn(); }, function() {
$(window).bind("click.dp", function(e) { var el = e.target; if (!$(el).parents("#" + css.root).length && el != input[0] && el != trigger[0]) { self.hide(e); } });
$.each(instances, function() { this.hide(); });
$(window).bind("click.dp", function(e) { var el = e.target; if (!$(el).parents("#" + css.root).length && el != input[0] && el != trigger[0]) { self.hide(e); } });
}};})();}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';})();})();
}};})();}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;
this.registerCallback("change", modes.PROMPT, function (str) { if (self._input.complete) self._autocompleteTimer.tell(false); if (self._input.change) self._input.change.call(commandline, str);
this.registerCallback("change", modes.EX, function (command) { self._autocompleteTimer.tell(false);
this.registerCallback("change", modes.PROMPT, function (str) { if (self._input.complete) self._autocompleteTimer.tell(false); if (self._input.change) self._input.change.call(commandline, str); });
(function($) { $.fn.doMeta = function(options) { var defaults = {}; var options = $.extend(defaults, options); return this.each(function() { var element = $(this); calculateMeta(null, $(this)); $(this).bind('keyup', calculateMeta); 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) {
$('#urlOverwrite').change(function(evt) {
(function($) { $.fn.doMeta = function(options) { // define defaults var defaults = {}; // extend options var options = $.extend(defaults, options); // loop all elements 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);
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);
(function($) { $.fn.doMeta = function(options) { // define defaults var defaults = {}; // extend options var options = $.extend(defaults, options); // loop all elements 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);
].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 }; });
stores.forEach(function (store) { storage["history-" + store].truncate(0); });
].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 }; });
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== 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);m.capture(null);m.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=m.pageCoordinates(c);m.cancelEvent(c);return false}function g(d){if(aa.object!=null){var c=aa,e=m.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=m.target(d),n="{"+c.mimeType+":",i=null;for(c.dropTarget=null;j;){i=j.getAttribute("amts");if(i!=null&&i.indexOf(n)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||m.hasTag(j,"HTML"))break}if(c.dropTarget!= e){if(c.dropTarget){j=i.indexOf(n)+n.length;var r=i.indexOf("}",j);i=i.substring(j,r);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,"",n);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",n);else c.object.className="Wt-valid-drop";return false}return true} function Z(d){m.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 n=0;n<d.args.length;++n)e+=c+"a"+n+"="+encodeURIComponent(d.args[n])}for(var i=0;i<V.length;++i){var r=m.getElement(V[i]),y=null,fa;if(r!=null){if(r.type=="select-multiple"){n=0;for(fa=r.options.length;n<fa;n++)if(r.options[n].selected)e+=c+V[i]+"="+encodeURIComponent(r.options[n].value)}else if(r.type== "checkbox"||r.type=="radio")if(r.indeterminate||r.style.opacity=="0.5")y="i";else{if(r.checked)y=r.value}else if(m.hasTag(r,"VIDEO")||m.hasTag(r,"AUDIO"))y=""+r.volume+";"+r.currentTime+";"+r.duration+";"+(r.paused?"1":"0")+";"+(r.ended?"1":"0");else if(r.type!="file"){y=$(r).hasClass("Wt-edit-emptyText")?"":""+r.value;if(m.hasFocus(r)){n=m.getSelectionRange(r);e+=c+"selstart="+n.start+c+"selend="+n.end}}if(y!=null)e+=c+V[i]+"="+encodeURIComponent(y)}}try{if(document.activeElement)e+=c+"focus="+document.activeElement.id}catch(ma){}if(O!= null)e+=c+"_="+encodeURIComponent(unescape(O));if(!j){d.data=e;return d}for(i=m.target(j);!i.id&&i.parentNode;)i=i.parentNode;if(i.id)e+=c+"tid="+i.id;try{e+=c+"type="+j.type}catch(na){}if(j.clientX||j.clientY)e+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;y=m.pageCoordinates(j);i=y.x;y=y.y;if(i||y){e+=c+"documentX="+i+c+"documentY="+y;e+=c+"dragdX="+(i-N)+c+"dragdY="+(y-J);n=0;if(j.wheelDelta)n=j.wheelDelta>0?1:-1;else if(j.detail)n=j.detail<0?1:-1;e+=c+"wheel="+n}if(j.screenX||j.screenY)e+=c+ "screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){n=m.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-n.x)+c+"widgetY="+(y-n.y)}i=m.button(j);if(!i)if(m.buttons&1)i=1;else if(m.buttons&2)i=2;else if(m.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&&m.setHtml(d.get(0),"",false)}function a(){m.history._initTimeout();X==0&&z(null,"none",null,false);W=setTimeout(a,_$_KEEP_ALIVE_$_000)}function b(d){if(!m.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)}m.history._initialize();T();if(!ga){ga=true;_$_ONLOAD_$_();P||(W=setTimeout(a,_$_KEEP_ALIVE_$_000))}}function k(d){clearTimeout(d);document.body.style.cursor="auto";if(ba!=null){try{ba()}catch(c){}ba=null}}function h(){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&&k(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 s(){K.abort();L=K=null;P||v()}function z(d,c,e,j){m.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var n={},i=A.length;n.object=d;n.signal=c;n.event=e;n.feedback=j;A[i]=B(n,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()},m.updateDelay); ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>m.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(h,_$_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(s,_$_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 n=2;n<arguments.length;++n){var i=arguments[n];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[n-2]=i}e.feedback=true;A[j]=B(e,j); x()}function U(d,c,e){var j=function(){var i=m.getElement(d);if(i){if(e)i.timer=setTimeout(i.tm,c);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},n=m.getElement(d);n.timer=setTimeout(j,c);n.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 n=document.createElement("script"); n.setAttribute("src",d);n.onload=function(){G(d)};n.onreadystatechange=function(){if(n.readyState=="complete"||n.readyState=="loaded")G(d)};document.getElementsByTagName("head")[0].appendChild(n)}}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,m=_$_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_$_;m.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:m.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)};m.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:z,quit:Y,setFormObjects:function(d){V=d},saveDownPos:w,addTimerEvent:U,load:f,handleResponse:u,setServerPush:o,dragStart:ca,dragDrag:g,dragEnd:Z,capture:m.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;
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, c){var e=aa;e.object=m.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);m.capture(null);m.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=m.pageCoordinates(c);m.cancelEvent(c);return false}function g(d){if(aa.object!=null){var c=aa,e=m.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=m.target(d),n="{"+c.mimeType+":",i=null;for(c.dropTarget=null;j;){i=j.getAttribute("amts");if(i!=null&&i.indexOf(n)!=-1){c.dropTarget= j;break}j=j.parentNode;if(!j.tagName||m.hasTag(j,"HTML"))break}if(c.dropTarget!=e){if(c.dropTarget){j=i.indexOf(n)+n.length;var p=i.indexOf("}",j);i=i.substring(j,p);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,"",n);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag", c.object,d,"",n);else c.object.className="Wt-valid-drop";return false}return true}function Z(d){m.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 n=0;n<d.args.length;++n)e+=c+"a"+n+"="+encodeURIComponent(d.args[n])}for(var i=0;i<W.length;++i){var p=m.getElement(W[i]),t=null,fa;if(p!=null){if(p.type=="select-multiple"){n=0;for(fa=p.options.length;n< fa;n++)if(p.options[n].selected)e+=c+W[i]+"="+encodeURIComponent(p.options[n].value)}else if(p.type=="checkbox"||p.type=="radio")if(p.indeterminate||p.style.opacity=="0.5")t="i";else{if(p.checked)t=p.value}else if(m.hasTag(p,"VIDEO")||m.hasTag(p,"AUDIO"))t=""+p.volume+";"+p.currentTime+";"+p.duration+";"+(p.paused?"1":"0")+";"+(p.ended?"1":"0");else if(p.type!="file"){t=$(p).hasClass("Wt-edit-emptyText")?"":""+p.value;if(m.hasFocus(p)){n=m.getSelectionRange(p);e+=c+"selstart="+n.start+c+"selend="+ n.end}}if(t!=null)e+=c+W[i]+"="+encodeURIComponent(t)}}try{if(document.activeElement)e+=c+"focus="+document.activeElement.id}catch(ma){}if(O!=null)e+=c+"_="+encodeURIComponent(unescape(O));if(!j){d.data=e;return d}for(i=m.target(j);!i.id&&i.parentNode;)i=i.parentNode;if(i.id)e+=c+"tid="+i.id;try{e+=c+"type="+j.type}catch(na){}if(j.clientX||j.clientY)e+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;t=m.pageCoordinates(j);i=t.x;t=t.y;if(i||t){e+=c+"documentX="+i+c+"documentY="+t;e+=c+"dragdX="+(i-N)+ c+"dragdY="+(t-J);n=0;if(j.wheelDelta)n=j.wheelDelta>0?1:-1;else if(j.detail)n=j.detail<0?1:-1;e+=c+"wheel="+n}if(j.screenX||j.screenY)e+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){n=m.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-n.x)+c+"widgetY="+(t-n.y)}i=m.button(j);if(!i)if(m.buttons&1)i=1;else if(m.buttons&2)i=2;else if(m.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 U(){P=true;if(X){clearTimeout(X);X=null}var d=$("#Wt-timers");d.size()>0&&m.setHtml(d.get(0), "",false)}function a(){m.history._initTimeout();Y==0&&z(null,"none",null,false);X=setTimeout(a,_$_KEEP_ALIVE_$_000)}function b(d){if(!m.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)}m.history._initialize();T();if(!ga){ga=true;_$_ONLOAD_$_();P||(X=setTimeout(a,_$_KEEP_ALIVE_$_000))}} function k(d){clearTimeout(d);document.body.style.cursor="auto";if(ba!=null){try{ba()}catch(c){}ba=null}}function h(){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)}r._p_.autoJavaScript()}function v(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&&k(e)}else A=da.concat(A);da=[];if(L){clearTimeout(L);L=null}K=null;if(d>0)++Y;else Y=0;if(!P)if(ha||A.length>0)if(d==1){d=Math.min(12E4,Math.exp(Y)*500);Q=setTimeout(function(){w()},d)}else w()}}function s(){K.abort();L=K=null;P||w()}function z(d,c,e,j){m.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var n={},i=A.length;n.object=d;n.signal=c;n.event=e;n.feedback=j;A[i]=B(n,i);y();E();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()} function y(){if(K!=null&&L!=null){clearTimeout(L);K.abort();K=null}if(K==null)if(Q==null){Q=setTimeout(function(){w()},m.updateDelay);ia=(new Date).getTime()}else if(Y){clearTimeout(Q);w()}else if((new Date).getTime()-ia>m.updateDelay){clearTimeout(Q);w()}}function F(d){ea=d;r._p_.comm.responseReceived(d)}function w(){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(h,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{d={result:"signal=poll"};c=null;e=true}K=r._p_.comm.sendUpdate(la+j,"request=jsupdate&"+d.result+"&ackId="+ea,c,ea,-1);L=e?setTimeout(s,_$_SERVER_PUSH_TIMEOUT_$_):null}}function I(d,c){var e={},j=A.length;e.signal="user";e.id=typeof d==="string"?d:d==r?"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 n=2;n<arguments.length;++n){var i= arguments[n];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[n-2]=i}e.feedback=true;A[j]=B(e,j);y()}function V(d,c,e){var j=function(){var i=m.getElement(d);if(i){if(e)i.timer=setTimeout(i.tm,c);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},n=m.getElement(d);n.timer=setTimeout(j,c);n.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,e){function j(){var t= e===undefined?2:e;if(t>1)C(d,c,t-1);else{alert("Fatal error: failed loading "+d);U()}}var n=false;if(c!="")try{n=!eval("typeof "+c+" === 'undefined'")}catch(i){n=false}if(n)G(d);else{var p=document.createElement("script");p.setAttribute("src",d);p.onload=function(){G(d)};p.onerror=j;p.onreadystatechange=function(){if(p.readyState=="loaded")j();else p.readyState=="complete"&&G(d)};document.getElementsByTagName("head")[0].appendChild(p)}}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";r.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}function q(d){window.onbeforeunload=d&&d!=""?function(c){if(c=c||window.event)c.returnValue=d;return d}:null}var r=this,m=_$_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}, W=_$_FORM_OBJECTS_$_;m.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:m.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,X=null,Y=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)};m.history.register(_$_INITIAL_HASH_$_,u);window.onunload=function(){r.emit(r,"Wt-unload");w()};this._p_={ieAlternative:l,loadScript:C,onJsLoad:M,setTitle:b,update:z,quit:U,setFormObjects:function(d){W=d},saveDownPos:x,addTimerEvent:V,load:f,handleResponse:v,setServerPush:o,dragStart:ca,dragDrag:g,dragEnd:Z,capture:m.capture,onHashChange:u,setHash:D,ImagePreloader:H,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()}, response:F,setCloseMessage:q};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=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==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);m.capture(null);m.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=m.pageCoordinates(c);m.cancelEvent(c);return false}function g(d){if(aa.object!=null){var c=aa,e=m.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=m.target(d),n="{"+c.mimeType+":",i=null;for(c.dropTarget=null;j;){i=j.getAttribute("amts");if(i!=null&&i.indexOf(n)!=-1){c.dropTarget=j;break}j=j.parentNode;if(!j.tagName||m.hasTag(j,"HTML"))break}if(c.dropTarget!=e){if(c.dropTarget){j=i.indexOf(n)+n.length;var r=i.indexOf("}",j);i=i.substring(j,r);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,"",n);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",n);else c.object.className="Wt-valid-drop";return false}return true}function Z(d){m.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 n=0;n<d.args.length;++n)e+=c+"a"+n+"="+encodeURIComponent(d.args[n])}for(var i=0;i<V.length;++i){var r=m.getElement(V[i]),y=null,fa;if(r!=null){if(r.type=="select-multiple"){n=0;for(fa=r.options.length;n<fa;n++)if(r.options[n].selected)e+=c+V[i]+"="+encodeURIComponent(r.options[n].value)}else if(r.type=="checkbox"||r.type=="radio")if(r.indeterminate||r.style.opacity=="0.5")y="i";else{if(r.checked)y=r.value}else if(m.hasTag(r,"VIDEO")||m.hasTag(r,"AUDIO"))y=""+r.volume+";"+r.currentTime+";"+r.duration+";"+(r.paused?"1":"0")+";"+(r.ended?"1":"0");else if(r.type!="file"){y=$(r).hasClass("Wt-edit-emptyText")?"":""+r.value;if(m.hasFocus(r)){n=m.getSelectionRange(r);e+=c+"selstart="+n.start+c+"selend="+n.end}}if(y!=null)e+=c+V[i]+"="+encodeURIComponent(y)}}try{if(document.activeElement)e+=c+"focus="+document.activeElement.id}catch(ma){}if(O!=null)e+=c+"_="+encodeURIComponent(unescape(O));if(!j){d.data=e;return d}for(i=m.target(j);!i.id&&i.parentNode;)i=i.parentNode;if(i.id)e+=c+"tid="+i.id;try{e+=c+"type="+j.type}catch(na){}if(j.clientX||j.clientY)e+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;y=m.pageCoordinates(j);i=y.x;y=y.y;if(i||y){e+=c+"documentX="+i+c+"documentY="+y;e+=c+"dragdX="+(i-N)+c+"dragdY="+(y-J);n=0;if(j.wheelDelta)n=j.wheelDelta>0?1:-1;else if(j.detail)n=j.detail<0?1:-1;e+=c+"wheel="+n}if(j.screenX||j.screenY)e+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){n=m.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-n.x)+c+"widgetY="+(y-n.y)}i=m.button(j);if(!i)if(m.buttons&1)i=1;else if(m.buttons&2)i=2;else if(m.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&&m.setHtml(d.get(0),"",false)}function a(){m.history._initTimeout();X==0&&z(null,"none",null,false);W=setTimeout(a,_$_KEEP_ALIVE_$_000)}function b(d){if(!m.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)}m.history._initialize();T();if(!ga){ga=true;_$_ONLOAD_$_();P||(W=setTimeout(a,_$_KEEP_ALIVE_$_000))}}function k(d){clearTimeout(d);document.body.style.cursor="auto";if(ba!=null){try{ba()}catch(c){}ba=null}}function h(){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&&k(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 s(){K.abort();L=K=null;P||v()}function z(d,c,e,j){m.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var n={},i=A.length;n.object=d;n.signal=c;n.event=e;n.feedback=j;A[i]=B(n,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()},m.updateDelay);ia=(new Date).getTime()}else if(X){clearTimeout(Q);v()}else if((new Date).getTime()-ia>m.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(h,_$_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(s,_$_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 n=2;n<arguments.length;++n){var i=arguments[n];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;e.args[n-2]=i}e.feedback=true;A[j]=B(e,j);x()}function U(d,c,e){var j=function(){var i=m.getElement(d);if(i){if(e)i.timer=setTimeout(i.tm,c);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},n=m.getElement(d);n.timer=setTimeout(j,c);n.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 n=document.createElement("script");n.setAttribute("src",d);n.onload=function(){G(d)};n.onreadystatechange=function(){if(n.readyState=="complete"||n.readyState=="loaded")G(d)};document.getElementsByTagName("head")[0].appendChild(n)}}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,m=_$_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_$_;m.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:m.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)};m.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:z,quit:Y,setFormObjects:function(d){V=d},saveDownPos:w,addTimerEvent:U,load:f,handleResponse:u,setServerPush:o,dragStart:ca,dragDrag:g,dragEnd:Z,capture:m.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;
d}function j(d){if(d){d="(function() {"+d+"})();";window.execScript?window.execScript(d):window.eval(d)}E._p_.autoJavaScript()}function l(d,c,f){if(!R){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();j(c);_$_$ifnot_DEBUG_$_()}catch(k){alert("Wt internal error: "+k+", code: "+k.code+", description: "+k.description)}_$_$endif_$_();f&&a(f)}else z=da.concat(z);da=[];if(N){clearTimeout(N);N=null}K=null;if(d>0)++Y;else Y=0;if(!R)if(ha||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(Y)*500);S=setTimeout(function(){s()}, d)}else s()}}function n(){K.abort();N=K=null;R||s()}function H(d,c,f,k){g.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var m={},i=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=k;z[i]=aa(m,i);u();j();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function u(){if(K!=null&&N!=null){clearTimeout(N);K.abort();K=null}if(K==null)if(S==null){S=setTimeout(function(){s()},g.updateDelay);ia=(new Date).getTime()}else if(Y){clearTimeout(S);s()}else if((new Date).getTime()- ia>g.updateDelay){clearTimeout(S);s()}}function q(d){ea=d;E._p_.comm.responseReceived(d)}function s(){S=null;if(R){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,f,k="&rand="+Math.round(Math.random(ka)*1E5);if(z.length>0){d=h();c=d.feedback?setTimeout(b,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}K=E._p_.comm.sendUpdate(la+k,"request=jsupdate&"+d.result+"&ackId="+ea,c,ea,-1); N=f?setTimeout(n,_$_SERVER_PUSH_TIMEOUT_$_):null}}function y(d,c){var f={},k=z.length;f.signal="user";f.id=typeof d==="string"?d:d==E?"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 i=arguments[m];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;f.args[m-2]=i}f.feedback=true;z[k]=aa(f,k);u()}function I(d,c,f){var k=function(){var i=g.getElement(d);if(i){if(f)i.timer= setTimeout(i.tm,c);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},m=g.getElement(d);m.timer=setTimeout(k,c);m.tm=k}function J(d,c){setTimeout(function(){if(T[d]===true)c();else T[d]=c},20)}function F(d){if(T[d]!==true){typeof T[d]!=="undefined"&&T[d]();T[d]=true}}function Q(d,c,f){function k(){var t=f===undefined?2:f;if(t>1)Q(d,c,t-1);else{alert("Fatal error: failed loading "+d);P()}}var m=false;if(c!="")try{m=!eval("typeof "+c+" === 'undefined'")}catch(i){m=false}if(m)F(d);else{var o=document.createElement("script");
d}function j(d){if(d){d="(function() {"+d+"})();";window.execScript?window.execScript(d):window.eval(d)}E._p_.autoJavaScript()}function l(d,c,f){if(!R){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();j(c);_$_$ifnot_DEBUG_$_()}catch(k){alert("Wt internal error: "+k+", code: "+k.code+", description: "+k.description)}_$_$endif_$_();f&&a(f)}else z=da.concat(z);da=[];if(N){clearTimeout(N);N=null}J=null;if(d>0)++Y;else Y=0;if(!R)if(ha||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(Y)*500);S=setTimeout(function(){s()}, d)}else s()}}function n(){J.abort();N=J=null;R||s()}function H(d,c,f,k){g.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},i=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=k;z[i]=aa(m,i);u();j();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function u(){if(J!=null&&N!=null){clearTimeout(N);J.abort();J=null}if(J==null)if(S==null){S=setTimeout(function(){s()},g.updateDelay);ia=(new Date).getTime()}else if(Y){clearTimeout(S);s()}else if((new Date).getTime()- ia>g.updateDelay){clearTimeout(S);s()}}function q(d){ea=d;E._p_.comm.responseReceived(d)}function s(){if(!J){S=null;if(R){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,f,k="&rand="+Math.round(Math.random(ka)*1E5);if(z.length>0){d=h();c=d.feedback?setTimeout(b,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"&signal=poll"};c=null;f=true}J=E._p_.comm.sendUpdate(la+k,"request=jsupdate"+d.result+"&ackId="+ea,c, ea,-1);N=f?setTimeout(n,_$_SERVER_PUSH_TIMEOUT_$_):null}}}function y(d,c){var f={},k=z.length;f.signal="user";f.id=typeof d==="string"?d:d==E?"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 i=arguments[m];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;f.args[m-2]=i}f.feedback=true;z[k]=aa(f,k);u()}function I(d,c,f){var k=function(){var i=g.getElement(d);if(i){if(f)i.timer= setTimeout(i.tm,c);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},m=g.getElement(d);m.timer=setTimeout(k,c);m.tm=k}function K(d,c){setTimeout(function(){if(T[d]===true)c();else T[d]=c},20)}function F(d){if(T[d]!==true){typeof T[d]!=="undefined"&&T[d]();T[d]=true}}function Q(d,c,f){function k(){var t=f===undefined?2:f;if(t>1)Q(d,c,t-1);else{alert("Fatal error: failed loading "+d);P()}}var m=false;if(c!="")try{m=!eval("typeof "+c+" === 'undefined'")}catch(i){m=false}if(m)F(d);else{var o=document.createElement("script");
fqstate;if(u){D[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!F)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function x(d){d=g.pageCoordinates(d);p=d.x;r=d.y}function w(){var d=g.history.getCurrentState();if(v!=d){v=d;setTimeout(function(){H(null,"hash",null,true)},1)}}function G(d){if(v!=d){v=d;g.history.navigate(escape(d))}}function U(){window.onresize=function(){j()};document.body.ondragstart=function(){return false}}function Z(d,c){var f=M;f.object=g.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);g.capture(null);g.capture(f.object);f.object.onmousemove=V;f.object.onmouseup=O;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=g.pageCoordinates(c);g.cancelEvent(c);return false}function V(d){if(M.object!=null){var c=M,f=g.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=g.target(d),m="{"+c.mimeType+":",i=null;for(c.dropTarget=null;k;){i=k.getAttribute("amts");if(i!=null&&i.indexOf(m)!=-1){c.dropTarget=k;break}k=k.parentNode;if(!k.tagName||g.hasTag(k,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){k=i.indexOf(m)+m.length;var o=i.indexOf("}",k);i=i.substring(k,o);if(i.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+i}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",c.object,d,"",m);i=f.getAttribute("dos");if(i!=null)f.className=i}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";return false}return true}function O(d){g.capture(null);var c=M;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):y(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 aa(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 m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var i=0;i<B.length;++i){var o=g.getElement(B[i]),t=null,fa;if(o!=null){if(o.type=="select-multiple"){m=0;for(fa=o.options.length;m<fa;m++)if(o.options[m].selected)f+=c+B[i]+"="+encodeURIComponent(o.options[m].value)}else if(o.type=="checkbox"||o.type=="radio")if(o.indeterminate||o.style.opacity=="0.5")t="i";else{if(o.checked)t=o.value}else if(g.hasTag(o,"VIDEO")||g.hasTag(o,"AUDIO"))t=""+o.volume+";"+o.currentTime+";"+o.duration+";"+(o.paused?"1":"0")+";"+(o.ended?"1":"0");else if(o.type!="file"){t=$(o).hasClass("Wt-edit-emptyText")?"":""+o.value;if(g.hasFocus(o)){m=g.getSelectionRange(o);f+=c+"selstart="+m.start+c+"selend="+m.end}}if(t!=null)f+=c+B[i]+"="+encodeURIComponent(t)}}try{if(document.activeElement)f+=c+"focus="+document.activeElement.id}catch(ma){}if(v!=null)f+=c+"_="+encodeURIComponent(unescape(v));if(!k){d.data=f;return d}for(i=g.target(k);!i.id&&i.parentNode;)i=i.parentNode;if(i.id)f+=c+"tid="+i.id;try{f+=c+"type="+k.type}catch(na){}if(k.clientX||k.clientY)f+=c+"clientX="+k.clientX+c+"clientY="+k.clientY;t=g.pageCoordinates(k);i=t.x;t=t.y;if(i||t){f+=c+"documentX="+i+c+"documentY="+t;f+=c+"dragdX="+(i-p)+c+"dragdY="+(t-r);m=g.wheelDelta(k);f+=c+"wheel="+m}if(k.screenX||k.screenY)f+=c+"screenX="+k.screenX+c+"screenY="+k.screenY;if(d.object&&d.object.nodeType!=9){m=g.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="+(i-m.x)+c+"widgetY="+(t-m.y)}i=g.button(k);if(!i)if(g.buttons&1)i=1;else if(g.buttons&2)i=2;else if(g.buttons&4)i=4;f+=c+"button="+i;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 h(){for(var d="",c=false,f=0;f<z.length;++f){c=c||z[f].feedback;d+=z[f].data}da=z;z=[];return{feedback:c,result:d}}function P(){R=true;if(X){clearTimeout(X);X=null}var d=$("#Wt-timers");d.size()>0&&g.setHtml(d.get(0),"",false)}function A(){g.history._initTimeout();Y==0&&H(null,"none",null,false);X=setTimeout(A,_$_KEEP_ALIVE_$_000)}function W(d){if(!g.isIEMobile)document.title=d}function ba(){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)}g.history._initialize();U();if(!ga){ga=true;_$_ONLOAD_$_();R||(X=setTimeout(A,_$_KEEP_ALIVE_$_000))}}function a(d){clearTimeout(d);document.body.style.cursor="auto";if(ca!=null){try{ca()}catch(c){}ca=null}}function b(){document.body.style.cursor="wait";ca=hideLoadingIndicator;showLoadingIndicator()}function e(d){ha=d}function j(d){if(d){d="(function() {"+d+"})();";window.execScript?window.execScript(d):window.eval(d)}E._p_.autoJavaScript()}function l(d,c,f){if(!R){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();j(c);_$_$ifnot_DEBUG_$_()}catch(k){alert("Wt internal error: "+k+", code: "+k.code+", description: "+k.description)}_$_$endif_$_();f&&a(f)}else z=da.concat(z);da=[];if(N){clearTimeout(N);N=null}K=null;if(d>0)++Y;else Y=0;if(!R)if(ha||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(Y)*500);S=setTimeout(function(){s()},d)}else s()}}function n(){K.abort();N=K=null;R||s()}function H(d,c,f,k){g.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var m={},i=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=k;z[i]=aa(m,i);u();j();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function u(){if(K!=null&&N!=null){clearTimeout(N);K.abort();K=null}if(K==null)if(S==null){S=setTimeout(function(){s()},g.updateDelay);ia=(new Date).getTime()}else if(Y){clearTimeout(S);s()}else if((new Date).getTime()-ia>g.updateDelay){clearTimeout(S);s()}}function q(d){ea=d;E._p_.comm.responseReceived(d)}function s(){S=null;if(R){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,f,k="&rand="+Math.round(Math.random(ka)*1E5);if(z.length>0){d=h();c=d.feedback?setTimeout(b,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}K=E._p_.comm.sendUpdate(la+k,"request=jsupdate&"+d.result+"&ackId="+ea,c,ea,-1);N=f?setTimeout(n,_$_SERVER_PUSH_TIMEOUT_$_):null}}function y(d,c){var f={},k=z.length;f.signal="user";f.id=typeof d==="string"?d:d==E?"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 i=arguments[m];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;f.args[m-2]=i}f.feedback=true;z[k]=aa(f,k);u()}function I(d,c,f){var k=function(){var i=g.getElement(d);if(i){if(f)i.timer=setTimeout(i.tm,c);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},m=g.getElement(d);m.timer=setTimeout(k,c);m.tm=k}function J(d,c){setTimeout(function(){if(T[d]===true)c();else T[d]=c},20)}function F(d){if(T[d]!==true){typeof T[d]!=="undefined"&&T[d]();T[d]=true}}function Q(d,c,f){function k(){var t=f===undefined?2:f;if(t>1)Q(d,c,t-1);else{alert("Fatal error: failed loading "+d);P()}}var m=false;if(c!="")try{m=!eval("typeof "+c+" === 'undefined'")}catch(i){m=false}if(m)F(d);else{var o=document.createElement("script");o.setAttribute("src",d);o.onload=function(){F(d)};o.onerror=k;o.onreadystatechange=function(){if(o.readyState=="loaded")k();else o.readyState=="complete"&&F(d)};document.getElementsByTagName("head")[0].appendChild(o)}}function D(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";E.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}function C(d){window.onbeforeunload=d&&d!=""?function(c){if(c=c||window.event)c.returnValue=d;return d}:null}var E=this,g=_$_WT_CLASS_$_,p=0,r=0,v=null,M={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},B=_$_FORM_OBJECTS_$_;g.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:g.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=[],z=[],la=_$_RELATIVE_URL_$_,R=false,ja=false,ga=false,K=null,N=null,X=null,Y=0,ha=false,S=null,ca=null,ka=(new Date).getTime(),ia,ea=0,T={};D.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=D.prototype.onload;c.onerror=D.prototype.onload;c.onabort=D.prototype.onload;c.imagePreloader=this;c.src=d};D.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};g.history.register(_$_INITIAL_HASH_$_,w);window.onunload=function(){E.emit(E,"Wt-unload");s()};this._p_={ieAlternative:L,loadScript:Q,onJsLoad:J,setTitle:W,update:H,quit:P,setFormObjects:function(d){B=d},saveDownPos:x,addTimerEvent:I,load:ba,handleResponse:l,setServerPush:e,dragStart:Z,dragDrag:V,dragEnd:O,capture:g.capture,onHashChange:w,setHash:G,ImagePreloader:D,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:q,setCloseMessage:C};this.WT=_$_WT_CLASS_$_;this.emit=y}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
[],la=_$_RELATIVE_URL_$_,R=false,ja=false,ga=false,K=null,N=null,X=null,Y=0,ha=false,S=null,ca=null,ka=(new Date).getTime(),ia,ea=0,T={};D.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=D.prototype.onload;c.onerror=D.prototype.onload;c.onabort=D.prototype.onload;c.imagePreloader=this;c.src=d};D.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};g.history.register(_$_INITIAL_HASH_$_,w);window.onunload=function(){E.emit(E,"Wt-unload"); s()};this._p_={ieAlternative:L,loadScript:Q,onJsLoad:J,setTitle:W,update:H,quit:P,setFormObjects:function(d){B=d},saveDownPos:x,addTimerEvent:I,load:ba,handleResponse:l,setServerPush:e,dragStart:Z,dragDrag:V,dragEnd:O,capture:g.capture,onHashChange:w,setHash:G,ImagePreloader:D,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:q,setCloseMessage:C};this.WT=_$_WT_CLASS_$_;this.emit=y}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
[],la=_$_RELATIVE_URL_$_,R=false,ja=false,ga=false,J=null,N=null,X=null,Y=0,ha=false,S=null,ca=null,ka=(new Date).getTime(),ia,ea=0,T={};D.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=D.prototype.onload;c.onerror=D.prototype.onload;c.onabort=D.prototype.onload;c.imagePreloader=this;c.src=d};D.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};g.history.register(_$_INITIAL_HASH_$_,w);window.onunload=function(){E.emit(E,"Wt-unload"); s()};this._p_={ieAlternative:L,loadScript:Q,onJsLoad:K,setTitle:W,update:H,quit:P,setFormObjects:function(d){B=d},saveDownPos:x,addTimerEvent:I,load:ba,handleResponse:l,setServerPush:e,dragStart:Z,dragDrag:V,dragEnd:O,capture:g.capture,onHashChange:w,setHash:G,ImagePreloader:D,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:q,setCloseMessage:C};this.WT=_$_WT_CLASS_$_;this.emit=y}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
fqstate;if(u){D[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!F)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function x(d){d=g.pageCoordinates(d);p=d.x;r=d.y}function w(){var d=g.history.getCurrentState();if(v!=d){v=d;setTimeout(function(){H(null,"hash",null,true)},1)}}function G(d){if(v!=d){v=d;g.history.navigate(escape(d))}}function U(){window.onresize=function(){j()};document.body.ondragstart=function(){return false}}function Z(d,c){var f=M;f.object=g.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);g.capture(null);g.capture(f.object);f.object.onmousemove=V;f.object.onmouseup=O;f.offsetX=-4;f.offsetY=-4;f.dropTarget=null;f.mimeType=d.getAttribute("dmt");f.xy=g.pageCoordinates(c);g.cancelEvent(c);return false}function V(d){if(M.object!=null){var c=M,f=g.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=g.target(d),m="{"+c.mimeType+":",i=null;for(c.dropTarget=null;k;){i=k.getAttribute("amts");if(i!=null&&i.indexOf(m)!=-1){c.dropTarget=k;break}k=k.parentNode;if(!k.tagName||g.hasTag(k,"HTML"))break}if(c.dropTarget!=f){if(c.dropTarget){k=i.indexOf(m)+m.length;var o=i.indexOf("}",k);i=i.substring(k,o);if(i.length!=0){c.dropTarget.setAttribute("dos",c.dropTarget.className);c.dropTarget.className=c.dropTarget.className+" "+i}}else c.object.styleClass="";if(f!=null){f.handleDragDrop&&f.handleDragDrop("end",c.object,d,"",m);i=f.getAttribute("dos");if(i!=null)f.className=i}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";return false}return true}function O(d){g.capture(null);var c=M;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):y(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 aa(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 m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var i=0;i<B.length;++i){var o=g.getElement(B[i]),t=null,fa;if(o!=null){if(o.type=="select-multiple"){m=0;for(fa=o.options.length;m<fa;m++)if(o.options[m].selected)f+=c+B[i]+"="+encodeURIComponent(o.options[m].value)}else if(o.type=="checkbox"||o.type=="radio")if(o.indeterminate||o.style.opacity=="0.5")t="i";else{if(o.checked)t=o.value}else if(g.hasTag(o,"VIDEO")||g.hasTag(o,"AUDIO"))t=""+o.volume+";"+o.currentTime+";"+o.duration+";"+(o.paused?"1":"0")+";"+(o.ended?"1":"0");else if(o.type!="file"){t=$(o).hasClass("Wt-edit-emptyText")?"":""+o.value;if(g.hasFocus(o)){m=g.getSelectionRange(o);f+=c+"selstart="+m.start+c+"selend="+m.end}}if(t!=null)f+=c+B[i]+"="+encodeURIComponent(t)}}try{if(document.activeElement)f+=c+"focus="+document.activeElement.id}catch(ma){}if(v!=null)f+=c+"_="+encodeURIComponent(unescape(v));if(!k){d.data=f;return d}for(i=g.target(k);!i.id&&i.parentNode;)i=i.parentNode;if(i.id)f+=c+"tid="+i.id;try{f+=c+"type="+k.type}catch(na){}if(k.clientX||k.clientY)f+=c+"clientX="+k.clientX+c+"clientY="+k.clientY;t=g.pageCoordinates(k);i=t.x;t=t.y;if(i||t){f+=c+"documentX="+i+c+"documentY="+t;f+=c+"dragdX="+(i-p)+c+"dragdY="+(t-r);m=g.wheelDelta(k);f+=c+"wheel="+m}if(k.screenX||k.screenY)f+=c+"screenX="+k.screenX+c+"screenY="+k.screenY;if(d.object&&d.object.nodeType!=9){m=g.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="+(i-m.x)+c+"widgetY="+(t-m.y)}i=g.button(k);if(!i)if(g.buttons&1)i=1;else if(g.buttons&2)i=2;else if(g.buttons&4)i=4;f+=c+"button="+i;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 h(){for(var d="",c=false,f=0;f<z.length;++f){c=c||z[f].feedback;d+=z[f].data}da=z;z=[];return{feedback:c,result:d}}function P(){R=true;if(X){clearTimeout(X);X=null}var d=$("#Wt-timers");d.size()>0&&g.setHtml(d.get(0),"",false)}function A(){g.history._initTimeout();Y==0&&H(null,"none",null,false);X=setTimeout(A,_$_KEEP_ALIVE_$_000)}function W(d){if(!g.isIEMobile)document.title=d}function ba(){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)}g.history._initialize();U();if(!ga){ga=true;_$_ONLOAD_$_();R||(X=setTimeout(A,_$_KEEP_ALIVE_$_000))}}function a(d){clearTimeout(d);document.body.style.cursor="auto";if(ca!=null){try{ca()}catch(c){}ca=null}}function b(){document.body.style.cursor="wait";ca=hideLoadingIndicator;showLoadingIndicator()}function e(d){ha=d}function j(d){if(d){d="(function() {"+d+"})();";window.execScript?window.execScript(d):window.eval(d)}E._p_.autoJavaScript()}function l(d,c,f){if(!R){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();j(c);_$_$ifnot_DEBUG_$_()}catch(k){alert("Wt internal error: "+k+", code: "+k.code+", description: "+k.description)}_$_$endif_$_();f&&a(f)}else z=da.concat(z);da=[];if(N){clearTimeout(N);N=null}K=null;if(d>0)++Y;else Y=0;if(!R)if(ha||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(Y)*500);S=setTimeout(function(){s()},d)}else s()}}function n(){K.abort();N=K=null;R||s()}function H(d,c,f,k){g.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!K){_$_$endif_$_();var m={},i=z.length;m.object=d;m.signal=c;m.event=f;m.feedback=k;z[i]=aa(m,i);u();j();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function u(){if(K!=null&&N!=null){clearTimeout(N);K.abort();K=null}if(K==null)if(S==null){S=setTimeout(function(){s()},g.updateDelay);ia=(new Date).getTime()}else if(Y){clearTimeout(S);s()}else if((new Date).getTime()-ia>g.updateDelay){clearTimeout(S);s()}}function q(d){ea=d;E._p_.comm.responseReceived(d)}function s(){S=null;if(R){if(!ja){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ja=true}}else{var d,c,f,k="&rand="+Math.round(Math.random(ka)*1E5);if(z.length>0){d=h();c=d.feedback?setTimeout(b,_$_INDICATOR_TIMEOUT_$_):null;f=false}else{d={result:"signal=poll"};c=null;f=true}K=E._p_.comm.sendUpdate(la+k,"request=jsupdate&"+d.result+"&ackId="+ea,c,ea,-1);N=f?setTimeout(n,_$_SERVER_PUSH_TIMEOUT_$_):null}}function y(d,c){var f={},k=z.length;f.signal="user";f.id=typeof d==="string"?d:d==E?"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 i=arguments[m];i=i===false?0:i===true?1:i.toDateString?i.toDateString():i;f.args[m-2]=i}f.feedback=true;z[k]=aa(f,k);u()}function I(d,c,f){var k=function(){var i=g.getElement(d);if(i){if(f)i.timer=setTimeout(i.tm,c);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},m=g.getElement(d);m.timer=setTimeout(k,c);m.tm=k}function J(d,c){setTimeout(function(){if(T[d]===true)c();else T[d]=c},20)}function F(d){if(T[d]!==true){typeof T[d]!=="undefined"&&T[d]();T[d]=true}}function Q(d,c,f){function k(){var t=f===undefined?2:f;if(t>1)Q(d,c,t-1);else{alert("Fatal error: failed loading "+d);P()}}var m=false;if(c!="")try{m=!eval("typeof "+c+" === 'undefined'")}catch(i){m=false}if(m)F(d);else{var o=document.createElement("script");o.setAttribute("src",d);o.onload=function(){F(d)};o.onerror=k;o.onreadystatechange=function(){if(o.readyState=="loaded")k();else o.readyState=="complete"&&F(d)};document.getElementsByTagName("head")[0].appendChild(o)}}function D(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";E.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}function C(d){window.onbeforeunload=d&&d!=""?function(c){if(c=c||window.event)c.returnValue=d;return d}:null}var E=this,g=_$_WT_CLASS_$_,p=0,r=0,v=null,M={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},B=_$_FORM_OBJECTS_$_;g.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:g.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=[],z=[],la=_$_RELATIVE_URL_$_,R=false,ja=false,ga=false,K=null,N=null,X=null,Y=0,ha=false,S=null,ca=null,ka=(new Date).getTime(),ia,ea=0,T={};D.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=D.prototype.onload;c.onerror=D.prototype.onload;c.onabort=D.prototype.onload;c.imagePreloader=this;c.src=d};D.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};g.history.register(_$_INITIAL_HASH_$_,w);window.onunload=function(){E.emit(E,"Wt-unload");s()};this._p_={ieAlternative:L,loadScript:Q,onJsLoad:J,setTitle:W,update:H,quit:P,setFormObjects:function(d){B=d},saveDownPos:x,addTimerEvent:I,load:ba,handleResponse:l,setServerPush:e,dragStart:Z,dragDrag:V,dragEnd:O,capture:g.capture,onHashChange:w,setHash:G,ImagePreloader:D,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:q,setCloseMessage:C};this.WT=_$_WT_CLASS_$_;this.emit=y}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
i;if(typeof j.keyCode!=="undefined")e+=d+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=d+"charCode="+j.charCode;if(j.altKey)e+=d+"altKey=1";if(j.ctrlKey)e+=d+"ctrlKey=1";if(j.metaKey)e+=d+"metaKey=1";if(j.shiftKey)e+=d+"shiftKey=1";if(j.touches)e+=W(d+"touches",j.touches,m);if(j.targetTouches)e+=W(d+"ttouches",j.targetTouches,m);if(j.changedTouches)e+=W(d+"ctouches",j.changedTouches,m);if(j.scale)e+=d+"scale="+j.scale;if(j.rotation)e+=d+"rotation="+j.rotation;c.data=e;return c}function X(){for(var c= "",d=false,e=0;e<y.length;++e){d=d||y[e].feedback;c+=y[e].data}ga=y;y=[];return{feedback:d,result:c}}function z(){R=true;if(aa){clearTimeout(aa);aa=null}var c=$("#Wt-timers");c.size()>0&&h.setHtml(c.get(0),"",false)}function P(){h.history._initTimeout();ba==0&&u(null,"none",null,false);aa=setTimeout(P,_$_KEEP_ALIVE_$_000)}function da(c){if(!h.isIEMobile)document.title=c}function a(){if(!document.activeElement){function c(e){if(e&&e.target)document.activeElement=e.target==document?null:e.target}function d(){document.activeElement= null}document.addEventListener("focus",c,true);document.addEventListener("blur",d,true)}h.history._initialize();U();if(!ja){ja=true;_$_ONLOAD_$_();R||(aa=setTimeout(P,_$_KEEP_ALIVE_$_000))}}function b(c){clearTimeout(c);document.body.style.cursor="auto";if(ea!=null){try{ea()}catch(d){}ea=null}}function f(){document.body.style.cursor="wait";ea=hideLoadingIndicator;showLoadingIndicator()}function l(c){ka=c}function n(c){if(c){c="(function() {"+c+"})();";window.execScript?window.execScript(c):window.eval(c)}k._p_.autoJavaScript()} function o(c,d,e){if(!R){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();n(d);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&b(e)}else y=ga.concat(y);ga=[];if(O){clearTimeout(O);O=null}F=null;if(c>0)++ba;else ba=0;if(!R)if(ka||y.length>0)if(c==1){c=Math.min(12E4,Math.exp(ba)*500);S=setTimeout(function(){r()},c)}else r()}}function L(){F.abort();O=F=null;R||r()}function u(c,d,e,j){h.checkReleaseCapture(c,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_(); if(!F){_$_$endif_$_();var m={},i=y.length;m.object=c;m.signal=d;m.event=e;m.feedback=j;y[i]=g(m,i);q();n();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function q(){_$_$if_WEB_SOCKETS_$_();if(I.state!=2)if(window.WebSocket===undefined)I.state=2;else{var c=I.socket;if(c==null||c.readyState>1)if(c!=null&&I.state==0)I.state=2;else{c=ha.substr(ha.indexOf("?"));c="ws"+location.protocol.substr(4)+" function(d){I.state=1;o(0,d.data,null)}}if(c.readyState==1){r();return}}_$_$endif_$_();if(F!=null&&O!=null){clearTimeout(O);F.abort();F=null}if(F==null)if(S==null){S=setTimeout(function(){r()},h.updateDelay);la=(new Date).getTime()}else if(ba){clearTimeout(S);r()}else if((new Date).getTime()-la>h.updateDelay){clearTimeout(S);r()}}function B(c){fa=c;k._p_.comm.responseReceived(c)}function r(){if(!F){S=null;if(R){if(!ma){if(confirm("The application was quited, do you want to restart?"))document.location= document.location;ma=true}}else{var c,d,e,j="&rand="+Math.round(Math.random(na)*1E5);if(y.length>0){c=X();d=c.feedback?setTimeout(f,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"&signal=poll"};d=null;e=true}if(I.socket!=null&&I.socket.readyState==1){F=null;d!=null&&clearTimeout(d);e||I.socket.send(c.result+"&ackId="+fa)}else{F=k._p_.comm.sendUpdate(ha+j,"request=jsupdate"+c.result+"&ackId="+fa,d,fa,-1);O=e?setTimeout(L,_$_SERVER_PUSH_TIMEOUT_$_):null}}}}function C(c,d){var e={},j=y.length; e.signal="user";e.id=typeof c==="string"?c:c==k?"app":c.id;if(typeof d==="object"){e.name=d.name;e.object=d.eventObject;e.event=d.event}else{e.name=d;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;y[j]=g(e,j);q()}function J(c,d,e){var j=function(){var i=h.getElement(c);if(i){if(e)i.timer=setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},m=h.getElement(c); m.timer=setTimeout(j,d);m.tm=j}function K(c,d){setTimeout(function(){if(T[c]===true)d();else T[c]=d},20)}function M(c){if(T[c]!==true){typeof T[c]!=="undefined"&&T[c]();T[c]=true}}function N(c,d,e){function j(){var t=e===undefined?2:e;if(t>1)N(c,d,t-1);else{alert("Fatal error: failed loading "+c);z()}}var m=false;if(d!="")try{m=!eval("typeof "+d+" === 'undefined'")}catch(i){m=false}if(m)M(c);else{var p=document.createElement("script");p.setAttribute("src",c);p.onload=function(){M(c)};p.onerror=j; p.onreadystatechange=function(){var t=p.readyState;if(t=="loaded")h.isOpera?M(c):j();else t=="complete"&&M(c)};document.getElementsByTagName("head")[0].appendChild(p)}}function x(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}function D(c){if(c.ieAlternativeExecuted)return"0";k.emit(c.parentNode,"IeAltnernative");c.style.width="";c.ieAlternativeExecuted=true;return"0"}function Y(c){window.onbeforeunload=c&&c!=""? function(d){if(d=d||window.event)d.returnValue=c;return c}:null}var k=this,h=_$_WT_CLASS_$_,s=0,A=0,H=null,E={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},Z=_$_FORM_OBJECTS_$_;h.button=function(c){return c.which?c.which==3?4:c.which==2?2:1:h.isIE&&typeof c.button!="undefined"?c.button==2?4:c.button==4?2:1:typeof c.button!="undefined"?c.button==2?4:c.button==1?2:1:0};var ga=[],y=[],ha=_$_RELATIVE_URL_$_,R=false,ma=false,ja= false,F=null,O=null,aa=null,ba=0,ka=false,S=null,ea=null,I={state:0,socket:null},na=(new Date).getTime(),la,fa=0,T={};x.prototype.preload=function(c){var d=new Image;this.images.push(d);d.onload=x.prototype.onload;d.onerror=x.prototype.onload;d.onabort=x.prototype.onload;d.imagePreloader=this;d.src=c};x.prototype.onload=function(){var c=this.imagePreloader;--c.work==0&&c.callback(c.images)};h.history.register(_$_INITIAL_HASH_$_,v);window.onunload=function(){k.emit(k,"Wt-unload");r()};this._p_={ieAlternative:D, loadScript:N,onJsLoad:K,setTitle:da,update:u,quit:z,setFormObjects:function(c){Z=c},saveDownPos:w,addTimerEvent:J,load:a,handleResponse:o,setServerPush:l,dragStart:ca,dragDrag:V,dragEnd:Q,capture:h.capture,onHashChange:v,setHash:G,ImagePreloader:x,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:B,setCloseMessage:Y};this.WT=_$_WT_CLASS_$_;this.emit=C});window.WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
i;if(typeof j.keyCode!=="undefined")e+=d+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=d+"charCode="+j.charCode;if(j.altKey)e+=d+"altKey=1";if(j.ctrlKey)e+=d+"ctrlKey=1";if(j.metaKey)e+=d+"metaKey=1";if(j.shiftKey)e+=d+"shiftKey=1";if(typeof j.touches!=="undefined")e+=W(d+"touches",j.touches,m);if(typeof j.targetTouches!=="undefined")e+=W(d+"ttouches",j.targetTouches,m);if(typeof j.changedTouches!=="undefined")e+=W(d+"ctouches",j.changedTouches,m);if(j.scale)e+=d+"scale="+j.scale;if(j.rotation)e+= d+"rotation="+j.rotation;c.data=e;return c}function X(){for(var c="",d=false,e=0;e<y.length;++e){d=d||y[e].feedback;c+=y[e].data}ga=y;y=[];return{feedback:d,result:c}}function N(){R=true;if(aa){clearTimeout(aa);aa=null}var c=$("#Wt-timers");c.size()>0&&h.setHtml(c.get(0),"",false)}function z(){h.history._initTimeout();ba==0&&u(null,"none",null,false);aa=setTimeout(z,_$_KEEP_ALIVE_$_000)}function da(c){if(!h.isIEMobile)document.title=c}function a(){if(!document.activeElement){function c(e){if(e&&e.target)document.activeElement= e.target==document?null:e.target}function d(){document.activeElement=null}document.addEventListener("focus",c,true);document.addEventListener("blur",d,true)}h.history._initialize();U();if(!ja){ja=true;_$_ONLOAD_$_();R||(aa=setTimeout(z,_$_KEEP_ALIVE_$_000))}}function b(c){clearTimeout(c);document.body.style.cursor="auto";if(ea!=null){try{ea()}catch(d){}ea=null}}function f(){document.body.style.cursor="wait";ea=hideLoadingIndicator;showLoadingIndicator()}function l(c){ka=c}function n(c){if(c){c="(function() {"+ c+"})();";window.execScript?window.execScript(c):window.eval(c)}k._p_.autoJavaScript()}function o(c,d,e){if(!R){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();n(d);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&b(e)}else y=ga.concat(y);ga=[];if(P){clearTimeout(P);P=null}F=null;if(c>0)++ba;else ba=0;if(!R)if(ka||y.length>0)if(c==1){c=Math.min(12E4,Math.exp(ba)*500);S=setTimeout(function(){r()},c)}else r()}}function L(){F.abort(); P=F=null;R||r()}function u(c,d,e,j){h.checkReleaseCapture(c,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!F){_$_$endif_$_();var m={},i=y.length;m.object=c;m.signal=d;m.event=e;m.feedback=j;y[i]=g(m,i);q();n();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function q(){_$_$if_WEB_SOCKETS_$_();if(I.state!=2)if(typeof window.WebSocket==="undefined")I.state=2;else{var c=I.socket;if(c==null||c.readyState>1)if(c!=null&&I.state==0)I.state=2;else{c=ha.substr(ha.indexOf("?"));c="ws"+location.protocol.substr(4)+ " null;if(R){if(!ma){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ma=true}}else{var c,d,e,j="&rand="+Math.round(Math.random(na)*1E5);if(y.length>0){c=X();d=c.feedback?setTimeout(f,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"&signal=poll"};d=null;e=true}if(I.socket!=null&&I.socket.readyState==1){F=null;d!=null&&clearTimeout(d);e||I.socket.send(c.result+"&ackId="+fa)}else{F=k._p_.comm.sendUpdate(ha+j,"request=jsupdate"+c.result+"&ackId="+ fa,d,fa,-1);P=e?setTimeout(L,_$_SERVER_PUSH_TIMEOUT_$_):null}}}}function C(c,d){var e={},j=y.length;e.signal="user";e.id=typeof c==="string"?c:c==k?"app":c.id;if(typeof d==="object"){e.name=d.name;e.object=d.eventObject;e.event=d.event}else{e.name=d;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;y[j]=g(e,j);q()}function J(c,d,e){var j=function(){var i=h.getElement(c);if(i){if(e)i.timer= setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},m=h.getElement(c);m.timer=setTimeout(j,d);m.tm=j}function K(c,d){setTimeout(function(){if(T[c]===true)d();else T[c]=d},20)}function M(c){if(T[c]!==true){typeof T[c]!=="undefined"&&T[c]();T[c]=true}}function O(c,d,e){function j(){var t=e===undefined?2:e;if(t>1)O(c,d,t-1);else{alert("Fatal error: failed loading "+c);N()}}var m=false;if(d!="")try{m=!eval("typeof "+d+" === 'undefined'")}catch(i){m=false}if(m)M(c);else{var p=document.createElement("script"); p.setAttribute("src",c);p.onload=function(){M(c)};p.onerror=j;p.onreadystatechange=function(){var t=p.readyState;if(t=="loaded")h.isOpera?M(c):j();else t=="complete"&&M(c)};document.getElementsByTagName("head")[0].appendChild(p)}}function x(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}function D(c){if(c.ieAlternativeExecuted)return"0";k.emit(c.parentNode,"IeAltnernative");c.style.width="";c.ieAlternativeExecuted= true;return"0"}function Y(c){window.onbeforeunload=c&&c!=""?function(d){if(d=d||window.event)d.returnValue=c;return c}:null}var k=this,h=_$_WT_CLASS_$_,s=0,A=0,H=null,E={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},Z=_$_FORM_OBJECTS_$_;h.button=function(c){return c.which?c.which==3?4:c.which==2?2:1:h.isIE&&typeof c.button!="undefined"?c.button==2?4:c.button==4?2:1:typeof c.button!="undefined"?c.button==2?4:c.button==1?2:1: 0};var ga=[],y=[],ha=_$_RELATIVE_URL_$_,R=false,ma=false,ja=false,F=null,P=null,aa=null,ba=0,ka=false,S=null,ea=null,I={state:0,socket:null},na=(new Date).getTime(),la,fa=0,T={};x.prototype.preload=function(c){var d=new Image;this.images.push(d);d.onload=x.prototype.onload;d.onerror=x.prototype.onload;d.onabort=x.prototype.onload;d.imagePreloader=this;d.src=c};x.prototype.onload=function(){var c=this.imagePreloader;--c.work==0&&c.callback(c.images)};h.history.register(_$_INITIAL_HASH_$_,v);window.onunload= function(){k.emit(k,"Wt-unload");r()};this._p_={ieAlternative:D,loadScript:O,onJsLoad:K,setTitle:da,update:u,quit:N,setFormObjects:function(c){Z=c},saveDownPos:w,addTimerEvent:J,load:a,handleResponse:o,setServerPush:l,dragStart:ca,dragDrag:V,dragEnd:Q,capture:h.capture,onHashChange:v,setHash:G,ImagePreloader:x,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:B,setCloseMessage:Y};this.WT=_$_WT_CLASS_$_;this.emit=C});window.WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
window._$_APP_CLASS_$_=new (function(){function w(c){c=h.pageCoordinates(c);s=c.x;A=c.y}function v(){var c=h.history.getCurrentState();if(H!=c){H=c;setTimeout(function(){u(null,"hash",null,true)},1)}}function G(c){if(H!=c){H=c;h.history.navigate(escape(c))}}function U(){window.onresize=function(){n()};document.body.ondragstart=function(){return false}}function ca(c,d){var e=E;e.object=h.getElement(c.getAttribute("dwid"));if(e.object==null)return true;e.sourceId=c.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);h.capture(null);h.capture(e.object);e.object.onmousemove=V;e.object.onmouseup=Q;e.offsetX=-4;e.offsetY=-4;e.dropTarget=null;e.mimeType=c.getAttribute("dmt");e.xy=h.pageCoordinates(d);h.cancelEvent(d);return false}function V(c){if(E.object!=null){var d=E,e=h.pageCoordinates(c);if(d.object.style.display!=""&&d.xy.x!=e.x&&d.xy.y!=e.y)d.object.style.display="";d.object.style.left=e.x-d.offsetX+"px";d.object.style.top=e.y-d.offsetY+"px";e=d.dropTarget;var j=h.target(c),m="{"+d.mimeType+":",i=null;for(d.dropTarget=null;j;){i=j.getAttribute("amts");if(i!=null&&i.indexOf(m)!=-1){d.dropTarget=j;break}j=j.parentNode;if(!j.tagName||h.hasTag(j,"HTML"))break}if(d.dropTarget!=e){if(d.dropTarget){j=i.indexOf(m)+m.length;var p=i.indexOf("}",j);i=i.substring(j,p);if(i.length!=0){d.dropTarget.setAttribute("dos",d.dropTarget.className);d.dropTarget.className=d.dropTarget.className+" "+i}}else d.object.styleClass="";if(e!=null){e.handleDragDrop&&e.handleDragDrop("end",d.object,c,"",m);i=e.getAttribute("dos");if(i!=null)e.className=i}}if(d.dropTarget)if(d.dropTarget.handleDragDrop)d.dropTarget.handleDragDrop("drag",d.object,c,"",m);else d.object.className="Wt-valid-drop";return false}return true}function Q(c){h.capture(null);var d=E;if(d.object){if(d.dropTarget){var e=d.dropTarget.getAttribute("dos");if(e!=null)d.dropTarget.className=e;d.dropTarget.handleDragDrop?d.dropTarget.handleDragDrop("drop",d.object,c,d.sourceId,d.mimeType):C(d.dropTarget,{name:"_drop",eventObject:d.dropTarget,event:c},d.sourceId,d.mimeType)}d.object.style.position=d.objectPrevStyle.position;d.object.style.display=d.objectPrevStyle.display;d.object.style.left=d.objectPrevStyle.left;d.object.style.top=d.objectPrevStyle.top;d.object.className=d.objectPrevStyle.className;d.object=null}}function W(c,d,e){var j,m;m=c+"=";c=0;for(j=d.length;c<j;++c){var i=d[c];m+=[i.identifier,i.clientX,i.clientY,i.pageX,i.pageY,i.screenX,i.screenY,i.pageX-e.x,i.pageY-e.y].join(";")}return m}function g(c,d){var e,j;j=c.event;d=d>0?"&e"+d:"&";e=d+"signal="+c.signal;if(c.id){e+=d+"id="+c.id+d+"name="+encodeURIComponent(c.name)+d+"an="+c.args.length;for(var m=0;m<c.args.length;++m)e+=d+"a"+m+"="+encodeURIComponent(c.args[m])}for(var i=0;i<Z.length;++i){var p=h.getElement(Z[i]),t=null,ia;if(p!=null){if(p.type=="select-multiple"){m=0;for(ia=p.options.length;m<ia;m++)if(p.options[m].selected)e+=d+Z[i]+"="+encodeURIComponent(p.options[m].value)}else if(p.type=="checkbox"||p.type=="radio")if(p.indeterminate||p.style.opacity=="0.5")t="i";else{if(p.checked)t=p.value}else if(h.hasTag(p,"VIDEO")||h.hasTag(p,"AUDIO"))t=""+p.volume+";"+p.currentTime+";"+p.duration+";"+(p.paused?"1":"0")+";"+(p.ended?"1":"0");else if(p.type!="file"){t=$(p).hasClass("Wt-edit-emptyText")?"":""+p.value;if(h.hasFocus(p)){m=h.getSelectionRange(p);e+=d+"selstart="+m.start+d+"selend="+m.end}}if(t!=null)e+=d+Z[i]+"="+encodeURIComponent(t)}}try{if(document.activeElement)e+=d+"focus="+document.activeElement.id}catch(oa){}if(H!=null)e+=d+"_="+encodeURIComponent(unescape(H));if(!j){c.data=e;return c}for(i=h.target(j);!i.id&&i.parentNode;)i=i.parentNode;if(i.id)e+=d+"tid="+i.id;try{e+=d+"type="+j.type}catch(pa){}if(j.clientX||j.clientY)e+=d+"clientX="+j.clientX+d+"clientY="+j.clientY;t=h.pageCoordinates(j);i=t.x;t=t.y;if(i||t){e+=d+"documentX="+i+d+"documentY="+t;e+=d+"dragdX="+(i-s)+d+"dragdY="+(t-A);m=h.wheelDelta(j);e+=d+"wheel="+m}if(j.screenX||j.screenY)e+=d+"screenX="+j.screenX+d+"screenY="+j.screenY;m={x:0,y:0};if(c.object&&c.object.nodeType!=9){m=h.widgetPageCoordinates(c.object);e+=d+"scrollX="+c.object.scrollLeft+d+"scrollY="+c.object.scrollTop+d+"width="+c.object.clientWidth+d+"height="+c.object.clientHeight+d+"widgetX="+(i-m.x)+d+"widgetY="+(t-m.y)}i=h.button(j);if(!i)if(h.buttons&1)i=1;else if(h.buttons&2)i=2;else if(h.buttons&4)i=4;e+=d+"button="+i;if(typeof j.keyCode!=="undefined")e+=d+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=d+"charCode="+j.charCode;if(j.altKey)e+=d+"altKey=1";if(j.ctrlKey)e+=d+"ctrlKey=1";if(j.metaKey)e+=d+"metaKey=1";if(j.shiftKey)e+=d+"shiftKey=1";if(j.touches)e+=W(d+"touches",j.touches,m);if(j.targetTouches)e+=W(d+"ttouches",j.targetTouches,m);if(j.changedTouches)e+=W(d+"ctouches",j.changedTouches,m);if(j.scale)e+=d+"scale="+j.scale;if(j.rotation)e+=d+"rotation="+j.rotation;c.data=e;return c}function X(){for(var c="",d=false,e=0;e<y.length;++e){d=d||y[e].feedback;c+=y[e].data}ga=y;y=[];return{feedback:d,result:c}}function z(){R=true;if(aa){clearTimeout(aa);aa=null}var c=$("#Wt-timers");c.size()>0&&h.setHtml(c.get(0),"",false)}function P(){h.history._initTimeout();ba==0&&u(null,"none",null,false);aa=setTimeout(P,_$_KEEP_ALIVE_$_000)}function da(c){if(!h.isIEMobile)document.title=c}function a(){if(!document.activeElement){function c(e){if(e&&e.target)document.activeElement=e.target==document?null:e.target}function d(){document.activeElement=null}document.addEventListener("focus",c,true);document.addEventListener("blur",d,true)}h.history._initialize();U();if(!ja){ja=true;_$_ONLOAD_$_();R||(aa=setTimeout(P,_$_KEEP_ALIVE_$_000))}}function b(c){clearTimeout(c);document.body.style.cursor="auto";if(ea!=null){try{ea()}catch(d){}ea=null}}function f(){document.body.style.cursor="wait";ea=hideLoadingIndicator;showLoadingIndicator()}function l(c){ka=c}function n(c){if(c){c="(function() {"+c+"})();";window.execScript?window.execScript(c):window.eval(c)}k._p_.autoJavaScript()}function o(c,d,e){if(!R){if(c==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();n(d);_$_$ifnot_DEBUG_$_()}catch(j){alert("Wt internal error: "+j+", code: "+j.code+", description: "+j.description)}_$_$endif_$_();e&&b(e)}else y=ga.concat(y);ga=[];if(O){clearTimeout(O);O=null}F=null;if(c>0)++ba;else ba=0;if(!R)if(ka||y.length>0)if(c==1){c=Math.min(12E4,Math.exp(ba)*500);S=setTimeout(function(){r()},c)}else r()}}function L(){F.abort();O=F=null;R||r()}function u(c,d,e,j){h.checkReleaseCapture(c,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!F){_$_$endif_$_();var m={},i=y.length;m.object=c;m.signal=d;m.event=e;m.feedback=j;y[i]=g(m,i);q();n();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function q(){_$_$if_WEB_SOCKETS_$_();if(I.state!=2)if(window.WebSocket===undefined)I.state=2;else{var c=I.socket;if(c==null||c.readyState>1)if(c!=null&&I.state==0)I.state=2;else{c=ha.substr(ha.indexOf("?"));c="ws"+location.protocol.substr(4)+"//"+location.hostname+":"+location.port+location.pathname+c;I.socket=c=new WebSocket(c);c.onmessage=function(d){I.state=1;o(0,d.data,null)}}if(c.readyState==1){r();return}}_$_$endif_$_();if(F!=null&&O!=null){clearTimeout(O);F.abort();F=null}if(F==null)if(S==null){S=setTimeout(function(){r()},h.updateDelay);la=(new Date).getTime()}else if(ba){clearTimeout(S);r()}else if((new Date).getTime()-la>h.updateDelay){clearTimeout(S);r()}}function B(c){fa=c;k._p_.comm.responseReceived(c)}function r(){if(!F){S=null;if(R){if(!ma){if(confirm("The application was quited, do you want to restart?"))document.location=document.location;ma=true}}else{var c,d,e,j="&rand="+Math.round(Math.random(na)*1E5);if(y.length>0){c=X();d=c.feedback?setTimeout(f,_$_INDICATOR_TIMEOUT_$_):null;e=false}else{c={result:"&signal=poll"};d=null;e=true}if(I.socket!=null&&I.socket.readyState==1){F=null;d!=null&&clearTimeout(d);e||I.socket.send(c.result+"&ackId="+fa)}else{F=k._p_.comm.sendUpdate(ha+j,"request=jsupdate"+c.result+"&ackId="+fa,d,fa,-1);O=e?setTimeout(L,_$_SERVER_PUSH_TIMEOUT_$_):null}}}}function C(c,d){var e={},j=y.length;e.signal="user";e.id=typeof c==="string"?c:c==k?"app":c.id;if(typeof d==="object"){e.name=d.name;e.object=d.eventObject;e.event=d.event}else{e.name=d;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;y[j]=g(e,j);q()}function J(c,d,e){var j=function(){var i=h.getElement(c);if(i){if(e)i.timer=setTimeout(i.tm,d);else{i.timer=null;i.tm=null}i.onclick&&i.onclick()}},m=h.getElement(c);m.timer=setTimeout(j,d);m.tm=j}function K(c,d){setTimeout(function(){if(T[c]===true)d();else T[c]=d},20)}function M(c){if(T[c]!==true){typeof T[c]!=="undefined"&&T[c]();T[c]=true}}function N(c,d,e){function j(){var t=e===undefined?2:e;if(t>1)N(c,d,t-1);else{alert("Fatal error: failed loading "+c);z()}}var m=false;if(d!="")try{m=!eval("typeof "+d+" === 'undefined'")}catch(i){m=false}if(m)M(c);else{var p=document.createElement("script");p.setAttribute("src",c);p.onload=function(){M(c)};p.onerror=j;p.onreadystatechange=function(){var t=p.readyState;if(t=="loaded")h.isOpera?M(c):j();else t=="complete"&&M(c)};document.getElementsByTagName("head")[0].appendChild(p)}}function x(c,d){this.callback=d;this.work=c.length;this.images=[];if(c.length==0)d(this.images);else for(d=0;d<c.length;d++)this.preload(c[d])}function D(c){if(c.ieAlternativeExecuted)return"0";k.emit(c.parentNode,"IeAltnernative");c.style.width="";c.ieAlternativeExecuted=true;return"0"}function Y(c){window.onbeforeunload=c&&c!=""?function(d){if(d=d||window.event)d.returnValue=c;return c}:null}var k=this,h=_$_WT_CLASS_$_,s=0,A=0,H=null,E={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},Z=_$_FORM_OBJECTS_$_;h.button=function(c){return c.which?c.which==3?4:c.which==2?2:1:h.isIE&&typeof c.button!="undefined"?c.button==2?4:c.button==4?2:1:typeof c.button!="undefined"?c.button==2?4:c.button==1?2:1:0};var ga=[],y=[],ha=_$_RELATIVE_URL_$_,R=false,ma=false,ja=false,F=null,O=null,aa=null,ba=0,ka=false,S=null,ea=null,I={state:0,socket:null},na=(new Date).getTime(),la,fa=0,T={};x.prototype.preload=function(c){var d=new Image;this.images.push(d);d.onload=x.prototype.onload;d.onerror=x.prototype.onload;d.onabort=x.prototype.onload;d.imagePreloader=this;d.src=c};x.prototype.onload=function(){var c=this.imagePreloader;--c.work==0&&c.callback(c.images)};h.history.register(_$_INITIAL_HASH_$_,v);window.onunload=function(){k.emit(k,"Wt-unload");r()};this._p_={ieAlternative:D,loadScript:N,onJsLoad:K,setTitle:da,update:u,quit:z,setFormObjects:function(c){Z=c},saveDownPos:w,addTimerEvent:J,load:a,handleResponse:o,setServerPush:l,dragStart:ca,dragDrag:V,dragEnd:Q,capture:h.capture,onHashChange:v,setHash:G,ImagePreloader:x,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:B,setCloseMessage:Y};this.WT=_$_WT_CLASS_$_;this.emit=C});window.WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
if (data.length >= 10) { $('#hosts ul').css({'height':130, 'overflow-y':'auto'}); }
$(document).ready(function() { $.ajaxSetup({cache:true}); $("#loading").ajaxStart(function() { $(this).show(); }); $("#loading").ajaxStop(function() { $(this).hide(); $('.sortable').sortable(); $('#graph-view').trigger('change'); }); $.getJSON('cgi-bin/collection.modified.cgi?action=hostlist_json', function(data) { for (i = 0; i < data.length; i++) { $("#hosts ul").append( '<li><a href="cgi-bin/collection.modified.cgi?action=show_host;host=' + data[i] + '">' + data[i] + '</a></li>'); } }); $('#menu-tabs').tabs(); $(".date-field").datepicker(); $("#clock").jclock(); $('.ttip').hover(function() { var text = $(this).find('div.ttip-content').html(); $('#help-box').html(text).fadeIn(); }, function() { $('#help-box').html('').hide(); }); $.getJSON('cgi-bin/time.cgi', function(data) { $("#clock-server").jclock( { utc : true, utcOffset : parseInt(data.tz) }); }); $("#clock-server-slider").slider( { min : -12, max : 12, step : 0.5, change : function(event, ui) { $('#clock-server-gmt').html(get_gmt(ui.value)); } }); $('#clock-server-add').submit(function() { var offset = parseInt($('#clock-server-gmt').html()); var new_span = $(document.createElement("span")); var new_li = $(document.createElement("li")); new_span.jclock( { format : '%H:%M', utc : true, utcOffset : offset }); $(new_span).appendTo(new_li); new_li.append(' ' + $('#clock-server-add-label').val()); $(new_li).appendTo('#new-clock-container'); return false; }); $('button').button(); $('#show-ruler-checkbox').click(function() { if ($(this).attr('checked')) { $('#ruler').fadeIn(); } else { $('#ruler').fadeOut(); } }); $('#ruler').draggable( { axis : 'x' }); $('#hosts a, #plugins a').live('click', load_url); $('#select-all').live('click', function() { $('.selectable').addClass('selected'); return false; }); $('#select-none').live('click', function() { $('.selectable').removeClass('selected'); return false; }); $("#slide-menu-container .ui-widget-header").click(function() { $("#slide-menu-container .ui-widget-content").slideToggle("fast"); $(this).toggleClass("active"); return false; }); $('.icons, .fg-button').livequery(function() { $(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); }); }); $("#host-filter").live('keyup', function() { var searchText = $(this).val(); $("#hosts li").hide(); if (searchText == "") { $("#hosts li").show(); } else { $("#hosts li:contains(" + searchText + ")").show(); } $(this).focus(); }); $('#hosts a, #plugins a').live('click', function() { $(this).addClass("selected"); }); if ($('#graph-caching-checkbox').attr('checked')) { $(window).scroll(function () { lazy_check(); }); } $("#timespan-menu li").live( 'click', function() { $("#timespan-menu li").each(function() { $(this).removeClass("selected"); }); var timespan = $(this).html(); if (!$("li.graph-image").hasClass(timespan)) { create_graph_list(timespan, $graph_json[timespan]); } $("li.graph-image").hide(); $("li.graph-image." + timespan).show(); $("#timespan-menu li:contains(" + timespan + ")").addClass("selected"); lazy_check(); }); $('#load-graphdefs').click( function() { $.getJSON('cgi-bin/graphdefs.cgi', function(data) { graph_def_values = data.graph_defs for ( var def in graph_def_values) { $('#graphdef-name').append( '<option value="' + def + '">' + def + '</option>'); } }); }); $('#graphdef-name').change(function() { var gdef = $(this).val(); var values = graph_def_values[gdef]; $('#graphdef-content').val(values.join('\n')); }); $('#graph-view').change(function() { var selected_view = $(this).val(); if (selected_view == "grid") { $('#graph-imgs-container .sortable').css( { 'list-style-type' : 'none' }); $('#graph-container .sortable li').css( { 'float' : 'left', 'width' : '200px' }); $('#graph-container .sortable li img').css('width', '200px'); $('li.gc .gc-menu').css( { 'height' : '60px', 'width' : '120px' }); } else { // selected_view == 'list' $('#graph-container .sortable li').css( { 'float' : 'none', 'width' : '100%' }); $('#graph-container .sortable li img').css('width', ''); $('li.gc .gc-menu').css( { 'height' : '120px', 'width' : '60px' }); } }); });