rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
p.on('selectionChange',e.bind(n,q));p.on('selectionChange',e.bind(n,s));p.on('selectionChange',e.bind(n,r));p.on('selectionChange',e.bind(n,t));},requires:['domiterator']});})();e.extend(i,{justifyClasses:null});j.add('keystrokes',{beforeInit:function(l){l.keystrokeHandler=new a.keystrokeHandler(l);l.specialKeys={};},init:function(l){var m=l.config.keystrokes,n=l.config.blockedKeystrokes,o=l.keystrokeHandler.keystrokes,p=l.keystrokeHandler.blockedKeystrokes;for(var q=0;q<m.length;q++)o[m[q][0]]=m[q][1];for(q=0;q<n.length;q++)p[n[q]]=1;}});a.keystrokeHandler=function(l){var m=this;if(l.keystrokeHandler)return l.keystrokeHandler;m.keystrokes={};m.blockedKeystrokes={};m._={editor:l};return m;};(function(){var l,m=function(o){o=o.data;var p=o.getKeystroke(),q=this.keystrokes[p],r=this._.editor;l=r.fire('key',{keyCode:p})===true;if(!l){if(q){var s={from:'keystrokeHandler'};l=r.execCommand(q,s)!==false;}if(!l){var t=r.specialKeys[p];l=t&&t(r)===true;if(!l)l=!!this.blockedKeystrokes[p];}}if(l)o.preventDefault(true);return!l;},n=function(o){if(l){l=false;o.data.preventDefault(true);}};a.keystrokeHandler.prototype={attach:function(o){o.on('keydown',m,this);if(b.opera||b.gecko&&b.mac)o.on('keypress',n,this);}};})();i.blockedKeystrokes=[1000+66,1000+73,1000+85];i.keystrokes=[[4000+121,'toolbarFocus'],[4000+122,'elementsPathFocus'],[2000+121,'contextMenu'],[1000+2000+121,'contextMenu'],[1000+90,'undo'],[1000+89,'redo'],[1000+2000+90,'redo'],[1000+76,'link'],[1000+66,'bold'],[1000+73,'italic'],[1000+85,'underline'],[4000+109,'toolbarCollapse'],[4000+48,'a11yHelp']];j.add('link',{init:function(l){l.addCommand('link',new a.dialogCommand('link'));l.addCommand('anchor',new a.dialogCommand('anchor'));l.addCommand('unlink',new a.unlinkCommand());l.ui.addButton('Link',{label:l.lang.link.toolbar,command:'link'});l.ui.addButton('Unlink',{label:l.lang.unlink,command:'unlink'});l.ui.addButton('Anchor',{label:l.lang.anchor.toolbar,command:'anchor'});a.dialog.add('link',this.path+'dialogs/link.js');a.dialog.add('anchor',this.path+'dialogs/anchor.js');l.addCss('img.cke_anchor{background-image: url('+a.getUrl(this.path+'images/anchor.gif')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'width: 18px;'+'height: 18px;'+'}\n'+'a.cke_anchor'+'{'+'background-image: url('+a.getUrl(this.path+'images/anchor.gif')+');'+'background-position: 0 center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'padding-left: 18px;'+'}');
x=x===undefined||x;for(var y=t.length-1;y>=0;y--){v=t[y].createIterator();v.enlargeBr=r!=2;while(w=v.getNextParagraph()){w.removeAttribute('align');w.removeStyle('text-align');var z=u&&(w.$.className=e.ltrim(w.$.className.replace(B.cssClassRegex,''))),A=B.state==2&&(!x||m(w,true)!=B.value);if(u){if(A)w.addClass(u);else if(!z)w.removeAttribute('class');}else if(A)w.setStyle('text-align',B.value);}}p.focus();p.forceNextSelectionCheck();q.selectBookmarks(s);}};j.add('justify',{init:function(p){var q=new o(p,'justifyleft','left'),r=new o(p,'justifycenter','center'),s=new o(p,'justifyright','right'),t=new o(p,'justifyblock','justify');p.addCommand('justifyleft',q);p.addCommand('justifycenter',r);p.addCommand('justifyright',s);p.addCommand('justifyblock',t);p.ui.addButton('JustifyLeft',{label:p.lang.justify.left,command:'justifyleft'});p.ui.addButton('JustifyCenter',{label:p.lang.justify.center,command:'justifycenter'});p.ui.addButton('JustifyRight',{label:p.lang.justify.right,command:'justifyright'});p.ui.addButton('JustifyBlock',{label:p.lang.justify.block,command:'justifyblock'});p.on('selectionChange',e.bind(n,q));p.on('selectionChange',e.bind(n,s));p.on('selectionChange',e.bind(n,r));p.on('selectionChange',e.bind(n,t));},requires:['domiterator']});})();e.extend(i,{justifyClasses:null});j.add('keystrokes',{beforeInit:function(l){l.keystrokeHandler=new a.keystrokeHandler(l);l.specialKeys={};},init:function(l){var m=l.config.keystrokes,n=l.config.blockedKeystrokes,o=l.keystrokeHandler.keystrokes,p=l.keystrokeHandler.blockedKeystrokes;for(var q=0;q<m.length;q++)o[m[q][0]]=m[q][1];for(q=0;q<n.length;q++)p[n[q]]=1;}});a.keystrokeHandler=function(l){var m=this;if(l.keystrokeHandler)return l.keystrokeHandler;m.keystrokes={};m.blockedKeystrokes={};m._={editor:l};return m;};(function(){var l,m=function(o){o=o.data;var p=o.getKeystroke(),q=this.keystrokes[p],r=this._.editor;l=r.fire('key',{keyCode:p})===true;if(!l){if(q){var s={from:'keystrokeHandler'};l=r.execCommand(q,s)!==false;}if(!l){var t=r.specialKeys[p];l=t&&t(r)===true;if(!l)l=!!this.blockedKeystrokes[p];}}if(l)o.preventDefault(true);return!l;},n=function(o){if(l){l=false;o.data.preventDefault(true);}};a.keystrokeHandler.prototype={attach:function(o){o.on('keydown',m,this);if(b.opera||b.gecko&&b.mac)o.on('keypress',n,this);}};})();i.blockedKeystrokes=[1000+66,1000+73,1000+85];i.keystrokes=[[4000+121,'toolbarFocus'],[4000+122,'elementsPathFocus'],[2000+121,'contextMenu'],[1000+2000+121,'contextMenu'],[1000+90,'undo'],[1000+89,'redo'],[1000+2000+90,'redo'],[1000+76,'link'],[1000+66,'bold'],[1000+73,'italic'],[1000+85,'underline'],[4000+109,'toolbarCollapse'],[4000+48,'a11yHelp']];
p.on('selectionChange',e.bind(n,q));p.on('selectionChange',e.bind(n,s));p.on('selectionChange',e.bind(n,r));p.on('selectionChange',e.bind(n,t));},requires:['domiterator']});})();e.extend(i,{justifyClasses:null});j.add('keystrokes',{beforeInit:function(l){l.keystrokeHandler=new a.keystrokeHandler(l);l.specialKeys={};},init:function(l){var m=l.config.keystrokes,n=l.config.blockedKeystrokes,o=l.keystrokeHandler.keystrokes,p=l.keystrokeHandler.blockedKeystrokes;for(var q=0;q<m.length;q++)o[m[q][0]]=m[q][1];for(q=0;q<n.length;q++)p[n[q]]=1;}});a.keystrokeHandler=function(l){var m=this;if(l.keystrokeHandler)return l.keystrokeHandler;m.keystrokes={};m.blockedKeystrokes={};m._={editor:l};return m;};(function(){var l,m=function(o){o=o.data;var p=o.getKeystroke(),q=this.keystrokes[p],r=this._.editor;l=r.fire('key',{keyCode:p})===true;if(!l){if(q){var s={from:'keystrokeHandler'};l=r.execCommand(q,s)!==false;}if(!l){var t=r.specialKeys[p];l=t&&t(r)===true;if(!l)l=!!this.blockedKeystrokes[p];}}if(l)o.preventDefault(true);return!l;},n=function(o){if(l){l=false;o.data.preventDefault(true);}};a.keystrokeHandler.prototype={attach:function(o){o.on('keydown',m,this);if(b.opera||b.gecko&&b.mac)o.on('keypress',n,this);}};})();i.blockedKeystrokes=[1000+66,1000+73,1000+85];i.keystrokes=[[4000+121,'toolbarFocus'],[4000+122,'elementsPathFocus'],[2000+121,'contextMenu'],[1000+2000+121,'contextMenu'],[1000+90,'undo'],[1000+89,'redo'],[1000+2000+90,'redo'],[1000+76,'link'],[1000+66,'bold'],[1000+73,'italic'],[1000+85,'underline'],[4000+109,'toolbarCollapse'],[4000+48,'a11yHelp']];j.add('link',{init:function(l){l.addCommand('link',new a.dialogCommand('link'));l.addCommand('anchor',new a.dialogCommand('anchor'));l.addCommand('unlink',new a.unlinkCommand());l.ui.addButton('Link',{label:l.lang.link.toolbar,command:'link'});l.ui.addButton('Unlink',{label:l.lang.unlink,command:'unlink'});l.ui.addButton('Anchor',{label:l.lang.anchor.toolbar,command:'anchor'});a.dialog.add('link',this.path+'dialogs/link.js');a.dialog.add('anchor',this.path+'dialogs/anchor.js');l.addCss('img.cke_anchor{background-image: url('+a.getUrl(this.path+'images/anchor.gif')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'width: 18px;'+'height: 18px;'+'}\n'+'a.cke_anchor'+'{'+'background-image: url('+a.getUrl(this.path+'images/anchor.gif')+');'+'background-position: 0 center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'padding-left: 18px;'+'}');
$("li", this.container[0])
$("li", this.container.get(0))
attach_events : function () { var _this = this; this.container .bind("mousedown.jstree", function (event) { if(tree_component.drag_drop.isdown) { tree_component.drag_drop.move_type = false; event.preventDefault(); event.stopPropagation(); event.stopImmediatePropagation(); return false; } }) .bind("mouseup.jstree", function (event) { setTimeout( function() { _this.focus.apply(_this); }, 5); }) .bind("click.jstree", function (event) { //event.stopPropagation(); return true; }); $("li", this.container[0]) .live("click", function(event) { // WHEN CLICK IS ON THE ARROW if(event.target.tagName != "LI") return true; _this.off_height(); if(event.pageY - $(event.target).offset().top > _this.li_height) return true; _this.toggle_branch.apply(_this, [event.target]); event.stopPropagation(); return false; }); $("a", this.container[0]) .live("click", function (event) { // WHEN CLICK IS ON THE TEXT OR ICON if(event.which && event.which == 3) return true; if(_this.locked) { event.preventDefault(); event.target.blur(); return _this.error("LOCKED"); } _this.select_branch.apply(_this, [event.target, (event.ctrlKey || event.metaKey) || _this.settings.rules.multiple == "on"]); if(_this.inp) { _this.inp.blur(); } event.preventDefault(); event.target.blur(); return false; }) .live("dblclick", function (event) { // WHEN DOUBLECLICK ON TEXT OR ICON if(_this.locked) { event.preventDefault(); event.stopPropagation(); event.target.blur(); return _this.error("LOCKED"); } _this.callback("ondblclk", [_this.get_node(event.target).get(0), _this]); event.preventDefault(); event.stopPropagation(); event.target.blur(); }) .live("contextmenu", function (event) { if(_this.locked) { event.target.blur(); return _this.error("LOCKED"); } return _this.callback("onrgtclk", [_this.get_node(event.target).get(0), _this, event]); }) .live("mouseover", function (event) { if(_this.locked) { event.preventDefault(); event.stopPropagation(); return _this.error("LOCKED"); } if(_this.hovered !== false && (event.target.tagName == "A" || event.target.tagName == "INS")) { _this.hovered.children("a").removeClass("hover"); _this.hovered = false; } _this.callback("onhover",[_this.get_node(event.target).get(0), _this]); }) .live("mousedown", function (event) { if(_this.settings.rules.drag_button == "left" && event.which && event.which != 1) return true; if(_this.settings.rules.drag_button == "right" && event.which && event.which != 3) return true; _this.focus.apply(_this); if(_this.locked) return _this.error("LOCKED"); // SELECT LIST ITEM NODE var obj = _this.get_node(event.target); // IF ITEM IS DRAGGABLE if(_this.settings.rules.multiple != false && _this.selected_arr.length > 1 && obj.children("a:eq(0)").hasClass("clicked")) { var counter = 0; for(var i in _this.selected_arr) { if(!_this.selected_arr.hasOwnProperty(i)) continue; if(_this.check("draggable", _this.selected_arr[i])) { _this.selected_arr[i].addClass("dragged"); tree_component.drag_drop.origin_tree = _this; counter ++; } } if(counter > 0) { if(_this.check("draggable", obj)) tree_component.drag_drop.drag_node = obj; else tree_component.drag_drop.drag_node = _this.container.find("li.dragged:eq(0)"); tree_component.drag_drop.isdown = true; tree_component.drag_drop.drag_help = $("<div id='jstree-dragged' class='tree " + ( _this.settings.ui.theme_name != "" ? " tree-" + _this.settings.ui.theme_name : "" ) + "' />").append("<ul class='" + _this.container.children("ul:eq(0)").get(0).className + "' />"); var tmp = tree_component.drag_drop.drag_node.clone(); if(_this.settings.languages.length > 0) tmp.find("a").not("." + _this.current_lang).hide(); tree_component.drag_drop.drag_help.children("ul:eq(0)").append(tmp); tree_component.drag_drop.drag_help.find("li:eq(0)").removeClass("last").addClass("last").children("a").html("<ins>&nbsp;</ins>Multiple selection").end().children("ul").remove(); tree_component.drag_drop.dragged = _this.container.find("li.dragged"); } } else { if(_this.check("draggable", obj)) { tree_component.drag_drop.drag_node = obj; tree_component.drag_drop.drag_help = $("<div id='jstree-dragged' class='tree " + ( _this.settings.ui.theme_name != "" ? " tree-" + _this.settings.ui.theme_name : "" ) + "' />").append("<ul class='" + _this.container.children("ul:eq(0)").get(0).className + "' />"); var tmp = obj.clone(); if(_this.settings.languages.length > 0) tmp.find("a").not("." + _this.current_lang).hide(); tree_component.drag_drop.drag_help.children("ul:eq(0)").append(tmp); tree_component.drag_drop.drag_help.find("li:eq(0)").removeClass("last").addClass("last"); tree_component.drag_drop.isdown = true; tree_component.drag_drop.foreign = false; tree_component.drag_drop.origin_tree = _this; obj.addClass("dragged"); tree_component.drag_drop.dragged = _this.container.find("li.dragged"); } } tree_component.drag_drop.init_x = event.pageX; tree_component.drag_drop.init_y = event.pageY; obj.blur(); event.preventDefault(); event.stopPropagation(); return false; }); },
$("a", this.container[0])
$("a", this.container.get(0))
attach_events : function () { var _this = this; this.container .bind("mousedown.jstree", function (event) { if(tree_component.drag_drop.isdown) { tree_component.drag_drop.move_type = false; event.preventDefault(); event.stopPropagation(); event.stopImmediatePropagation(); return false; } }) .bind("mouseup.jstree", function (event) { setTimeout( function() { _this.focus.apply(_this); }, 5); }) .bind("click.jstree", function (event) { //event.stopPropagation(); return true; }); $("li", this.container[0]) .live("click", function(event) { // WHEN CLICK IS ON THE ARROW if(event.target.tagName != "LI") return true; _this.off_height(); if(event.pageY - $(event.target).offset().top > _this.li_height) return true; _this.toggle_branch.apply(_this, [event.target]); event.stopPropagation(); return false; }); $("a", this.container[0]) .live("click", function (event) { // WHEN CLICK IS ON THE TEXT OR ICON if(event.which && event.which == 3) return true; if(_this.locked) { event.preventDefault(); event.target.blur(); return _this.error("LOCKED"); } _this.select_branch.apply(_this, [event.target, (event.ctrlKey || event.metaKey) || _this.settings.rules.multiple == "on"]); if(_this.inp) { _this.inp.blur(); } event.preventDefault(); event.target.blur(); return false; }) .live("dblclick", function (event) { // WHEN DOUBLECLICK ON TEXT OR ICON if(_this.locked) { event.preventDefault(); event.stopPropagation(); event.target.blur(); return _this.error("LOCKED"); } _this.callback("ondblclk", [_this.get_node(event.target).get(0), _this]); event.preventDefault(); event.stopPropagation(); event.target.blur(); }) .live("contextmenu", function (event) { if(_this.locked) { event.target.blur(); return _this.error("LOCKED"); } return _this.callback("onrgtclk", [_this.get_node(event.target).get(0), _this, event]); }) .live("mouseover", function (event) { if(_this.locked) { event.preventDefault(); event.stopPropagation(); return _this.error("LOCKED"); } if(_this.hovered !== false && (event.target.tagName == "A" || event.target.tagName == "INS")) { _this.hovered.children("a").removeClass("hover"); _this.hovered = false; } _this.callback("onhover",[_this.get_node(event.target).get(0), _this]); }) .live("mousedown", function (event) { if(_this.settings.rules.drag_button == "left" && event.which && event.which != 1) return true; if(_this.settings.rules.drag_button == "right" && event.which && event.which != 3) return true; _this.focus.apply(_this); if(_this.locked) return _this.error("LOCKED"); // SELECT LIST ITEM NODE var obj = _this.get_node(event.target); // IF ITEM IS DRAGGABLE if(_this.settings.rules.multiple != false && _this.selected_arr.length > 1 && obj.children("a:eq(0)").hasClass("clicked")) { var counter = 0; for(var i in _this.selected_arr) { if(!_this.selected_arr.hasOwnProperty(i)) continue; if(_this.check("draggable", _this.selected_arr[i])) { _this.selected_arr[i].addClass("dragged"); tree_component.drag_drop.origin_tree = _this; counter ++; } } if(counter > 0) { if(_this.check("draggable", obj)) tree_component.drag_drop.drag_node = obj; else tree_component.drag_drop.drag_node = _this.container.find("li.dragged:eq(0)"); tree_component.drag_drop.isdown = true; tree_component.drag_drop.drag_help = $("<div id='jstree-dragged' class='tree " + ( _this.settings.ui.theme_name != "" ? " tree-" + _this.settings.ui.theme_name : "" ) + "' />").append("<ul class='" + _this.container.children("ul:eq(0)").get(0).className + "' />"); var tmp = tree_component.drag_drop.drag_node.clone(); if(_this.settings.languages.length > 0) tmp.find("a").not("." + _this.current_lang).hide(); tree_component.drag_drop.drag_help.children("ul:eq(0)").append(tmp); tree_component.drag_drop.drag_help.find("li:eq(0)").removeClass("last").addClass("last").children("a").html("<ins>&nbsp;</ins>Multiple selection").end().children("ul").remove(); tree_component.drag_drop.dragged = _this.container.find("li.dragged"); } } else { if(_this.check("draggable", obj)) { tree_component.drag_drop.drag_node = obj; tree_component.drag_drop.drag_help = $("<div id='jstree-dragged' class='tree " + ( _this.settings.ui.theme_name != "" ? " tree-" + _this.settings.ui.theme_name : "" ) + "' />").append("<ul class='" + _this.container.children("ul:eq(0)").get(0).className + "' />"); var tmp = obj.clone(); if(_this.settings.languages.length > 0) tmp.find("a").not("." + _this.current_lang).hide(); tree_component.drag_drop.drag_help.children("ul:eq(0)").append(tmp); tree_component.drag_drop.drag_help.find("li:eq(0)").removeClass("last").addClass("last"); tree_component.drag_drop.isdown = true; tree_component.drag_drop.foreign = false; tree_component.drag_drop.origin_tree = _this; obj.addClass("dragged"); tree_component.drag_drop.dragged = _this.container.find("li.dragged"); } } tree_component.drag_drop.init_x = event.pageX; tree_component.drag_drop.init_y = event.pageY; obj.blur(); event.preventDefault(); event.stopPropagation(); return false; }); },
_this.select_branch.apply(_this, [event.target, (event.ctrlKey || event.metaKey) || _this.settings.rules.multiple == "on"]);
_this.select_branch.apply(_this, [event.target, event.ctrlKey || _this.settings.rules.multiple == "on"]);
attach_events : function () { var _this = this; this.container .bind("mousedown.jstree", function (event) { if(tree_component.drag_drop.isdown) { tree_component.drag_drop.move_type = false; event.preventDefault(); event.stopPropagation(); event.stopImmediatePropagation(); return false; } }) .bind("mouseup.jstree", function (event) { setTimeout( function() { _this.focus.apply(_this); }, 5); }) .bind("click.jstree", function (event) { //event.stopPropagation(); return true; }); $("li", this.container[0]) .live("click", function(event) { // WHEN CLICK IS ON THE ARROW if(event.target.tagName != "LI") return true; _this.off_height(); if(event.pageY - $(event.target).offset().top > _this.li_height) return true; _this.toggle_branch.apply(_this, [event.target]); event.stopPropagation(); return false; }); $("a", this.container[0]) .live("click", function (event) { // WHEN CLICK IS ON THE TEXT OR ICON if(event.which && event.which == 3) return true; if(_this.locked) { event.preventDefault(); event.target.blur(); return _this.error("LOCKED"); } _this.select_branch.apply(_this, [event.target, (event.ctrlKey || event.metaKey) || _this.settings.rules.multiple == "on"]); if(_this.inp) { _this.inp.blur(); } event.preventDefault(); event.target.blur(); return false; }) .live("dblclick", function (event) { // WHEN DOUBLECLICK ON TEXT OR ICON if(_this.locked) { event.preventDefault(); event.stopPropagation(); event.target.blur(); return _this.error("LOCKED"); } _this.callback("ondblclk", [_this.get_node(event.target).get(0), _this]); event.preventDefault(); event.stopPropagation(); event.target.blur(); }) .live("contextmenu", function (event) { if(_this.locked) { event.target.blur(); return _this.error("LOCKED"); } return _this.callback("onrgtclk", [_this.get_node(event.target).get(0), _this, event]); }) .live("mouseover", function (event) { if(_this.locked) { event.preventDefault(); event.stopPropagation(); return _this.error("LOCKED"); } if(_this.hovered !== false && (event.target.tagName == "A" || event.target.tagName == "INS")) { _this.hovered.children("a").removeClass("hover"); _this.hovered = false; } _this.callback("onhover",[_this.get_node(event.target).get(0), _this]); }) .live("mousedown", function (event) { if(_this.settings.rules.drag_button == "left" && event.which && event.which != 1) return true; if(_this.settings.rules.drag_button == "right" && event.which && event.which != 3) return true; _this.focus.apply(_this); if(_this.locked) return _this.error("LOCKED"); // SELECT LIST ITEM NODE var obj = _this.get_node(event.target); // IF ITEM IS DRAGGABLE if(_this.settings.rules.multiple != false && _this.selected_arr.length > 1 && obj.children("a:eq(0)").hasClass("clicked")) { var counter = 0; for(var i in _this.selected_arr) { if(!_this.selected_arr.hasOwnProperty(i)) continue; if(_this.check("draggable", _this.selected_arr[i])) { _this.selected_arr[i].addClass("dragged"); tree_component.drag_drop.origin_tree = _this; counter ++; } } if(counter > 0) { if(_this.check("draggable", obj)) tree_component.drag_drop.drag_node = obj; else tree_component.drag_drop.drag_node = _this.container.find("li.dragged:eq(0)"); tree_component.drag_drop.isdown = true; tree_component.drag_drop.drag_help = $("<div id='jstree-dragged' class='tree " + ( _this.settings.ui.theme_name != "" ? " tree-" + _this.settings.ui.theme_name : "" ) + "' />").append("<ul class='" + _this.container.children("ul:eq(0)").get(0).className + "' />"); var tmp = tree_component.drag_drop.drag_node.clone(); if(_this.settings.languages.length > 0) tmp.find("a").not("." + _this.current_lang).hide(); tree_component.drag_drop.drag_help.children("ul:eq(0)").append(tmp); tree_component.drag_drop.drag_help.find("li:eq(0)").removeClass("last").addClass("last").children("a").html("<ins>&nbsp;</ins>Multiple selection").end().children("ul").remove(); tree_component.drag_drop.dragged = _this.container.find("li.dragged"); } } else { if(_this.check("draggable", obj)) { tree_component.drag_drop.drag_node = obj; tree_component.drag_drop.drag_help = $("<div id='jstree-dragged' class='tree " + ( _this.settings.ui.theme_name != "" ? " tree-" + _this.settings.ui.theme_name : "" ) + "' />").append("<ul class='" + _this.container.children("ul:eq(0)").get(0).className + "' />"); var tmp = obj.clone(); if(_this.settings.languages.length > 0) tmp.find("a").not("." + _this.current_lang).hide(); tree_component.drag_drop.drag_help.children("ul:eq(0)").append(tmp); tree_component.drag_drop.drag_help.find("li:eq(0)").removeClass("last").addClass("last"); tree_component.drag_drop.isdown = true; tree_component.drag_drop.foreign = false; tree_component.drag_drop.origin_tree = _this; obj.addClass("dragged"); tree_component.drag_drop.dragged = _this.container.find("li.dragged"); } } tree_component.drag_drop.init_x = event.pageX; tree_component.drag_drop.init_y = event.pageY; obj.blur(); event.preventDefault(); event.stopPropagation(); return false; }); },
d.inArray(d(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,g){if(!a||a.nodeType===3||a.nodeType===8)return v;if(g&&b in d.attrFn)return d(a)[b](e);g=a.nodeType!==1||!d.isXMLDoc(a);var h=e!==v;b=g&&d.props[b]||b;if(a.nodeType===1){var k=Fa.test(b);if(b in a&&g&&!k){if(h){if(b==="type"&&Ga.test(a.nodeName)&&a.parentNode)throw"type property can't be changed"; a[b]=e}if(d.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Ha.test(a.nodeName)||Ia.test(a.nodeName)&&a.href?0:v;return a[b]}if(!d.support.style&&g&&b==="style"){if(h)a.style.cssText=""+e;return a.style.cssText}h&&a.setAttribute(b,""+e);a=!d.support.hrefNormalized&&g&&k?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return d.style(a,b,e)}});var ka=/ jQuery\d+="(?:\d+|null)"/g,
ja.test(this.type))this.checked=c.inArray(o.val(),w)>=0;else if(c.nodeName(this,"select")){var A=c.makeArray(w);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,f){if(!a||a.nodeType===3||a.nodeType===8)return v;if(f&&b in c.attrFn)return c(a)[b](e);f=a.nodeType!==1||!c.isXMLDoc(a);var h=e!== v;b=f&&c.props[b]||b;if(a.nodeType===1){var k=Fa.test(b);if(b in a&&f&&!k){if(h){if(b==="type"&&Ga.test(a.nodeName)&&a.parentNode)throw"type property can't be changed";a[b]=e}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Ha.test(a.nodeName)||Ia.test(a.nodeName)&&a.href?0:v;return a[b]}if(!c.support.style&&f&&b==="style"){if(h)a.style.cssText=""+e;return a.style.cssText}h&&a.setAttribute(b, ""+e);a=!c.support.hrefNormalized&&f&&k?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return c.style(a,b,e)}});var ka=/ jQuery\d+="(?:\d+|null)"/g,R=/^\s+/,Ja=/(<([\w:]+)[^>]*?)\/>/g,Ka=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,la=/<([\w:]+)/,La=/<tbody/i,Ma=/<|&\w+;/,Na=function(a,b,e){return Ka.test(e)?a:b+"></"+e+">"},z={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],
d.inArray(d(this).val(),A)>=0});if(!A.length)this.selectedIndex=-1}else this.value=w}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,e,g){if(!a||a.nodeType===3||a.nodeType===8)return v;if(g&&b in d.attrFn)return d(a)[b](e);g=a.nodeType!==1||!d.isXMLDoc(a);var h=e!==v;b=g&&d.props[b]||b;if(a.nodeType===1){var k=Fa.test(b);if(b in a&&g&&!k){if(h){if(b==="type"&&Ga.test(a.nodeName)&&a.parentNode)throw"type property can't be changed";a[b]=e}if(d.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Ha.test(a.nodeName)||Ia.test(a.nodeName)&&a.href?0:v;return a[b]}if(!d.support.style&&g&&b==="style"){if(h)a.style.cssText=""+e;return a.style.cssText}h&&a.setAttribute(b,""+e);a=!d.support.hrefNormalized&&g&&k?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return d.style(a,b,e)}});var ka=/ jQuery\d+="(?:\d+|null)"/g,
this.find('name', 'systemPassword' )[0].setValue( '' );
authSchemeSelectHandler : function( combo, record, index ){ if ( combo.getValue() == 'simple' ){ this.find('name', 'realm' )[0].disable(); this.find('name', 'systemUsername' )[0].enable(); this.find('name', 'systemPassword' )[0].enable(); } else if ( combo.getValue() == 'none' ){ this.find('name', 'realm' )[0].disable(); this.find('name', 'systemUsername' )[0].disable(); this.find('name', 'systemPassword' )[0].disable(); } else if ( combo.getValue() == 'DIGEST-MD5' ){ this.find('name', 'realm' )[0].enable(); this.find('name', 'systemUsername' )[0].enable(); this.find('name', 'systemPassword' )[0].enable(); } else if ( combo.getValue() == 'CRAM-MD5' ){ this.find('name', 'realm' )[0].enable(); this.find('name', 'systemUsername' )[0].enable(); this.find('name', 'systemPassword' )[0].enable(); } },
var k=null;d.handleDragDrop=function(c,a,b,f,e){if(k){k.className=k.classNameOrig;k=null}if(c!="end"){b=n(b);if(!b.selected&&b.drop&&b.columnId!=-1)if(c=="drop")l.emit(d.id,"itemEvent",b.nodeId,b.columnId,"drop",f,e);else{a.className="Wt-valid-drop";k=b.el;k.classNameOrig=k.className;k.className+=" Wt-drop-site"}else a.className=""}};this.autoJavaScript=function(){if(d.parentNode==null){d=i=p=o=j=null;this.autoJavaScript=function(){}}else if(!g.isHidden(d)){var c=$(d),a=c.innerWidth(),b=i.scrollHeight>
var l=null;d.handleDragDrop=function(c,a,b,e,f){if(l){l.className=l.classNameOrig;l=null}if(c!="end"){b=n(b);if(!b.selected&&b.drop&&b.columnId!=-1)if(c=="drop")m.emit(d.id,"itemEvent",b.nodeId,b.columnId,"drop",e,f);else{a.className="Wt-valid-drop";l=b.el;l.classNameOrig=l.className;l.className+=" Wt-drop-site"}else a.className=""}};this.autoJavaScript=function(){if(d.parentNode==null){d=i=p=o=k=null;this.autoJavaScript=function(){}}else if(!g.isHidden(d)){var c=$(d),a=c.innerWidth(),b=i.scrollHeight>
var k=null;d.handleDragDrop=function(c,a,b,f,e){if(k){k.className=k.classNameOrig;k=null}if(c!="end"){b=n(b);if(!b.selected&&b.drop&&b.columnId!=-1)if(c=="drop")l.emit(d.id,"itemEvent",b.nodeId,b.columnId,"drop",f,e);else{a.className="Wt-valid-drop";k=b.el;k.classNameOrig=k.className;k.className+=" Wt-drop-site"}else a.className=""}};this.autoJavaScript=function(){if(d.parentNode==null){d=i=p=o=j=null;this.autoJavaScript=function(){}}else if(!g.isHidden(d)){var c=$(d),a=c.innerWidth(),b=i.scrollHeight>
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;
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_$_()},
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;
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;
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;
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;
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;
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;
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;
autoJavaScript : function() { with (window) { _$_AUTO_JAVASCRIPT_$_(); } },
autoJavaScript : function() { _$_AUTO_JAVASCRIPT_$_(); },
autoJavaScript : function() { with (window) { _$_AUTO_JAVASCRIPT_$_(); } },
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;
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;
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;
0)}}}}};this.autoJavaScript=function(){if(j.parentNode==null){j=f=p=null;this.autoJavaScript=function(){}}else if(!i.isHidden(j)){var a=j.offsetWidth-i.px(j,"borderLeftWidth")-i.px(j,"borderRightWidth"),b=f.offsetWidth-f.clientWidth;a-=b;if(a>200&&a!=f.tw){f.tw=a;f.style.width=a+b+"px";p.style.width=a+"px"}}}});
f=p=null;this.autoJavaScript=function(){}}else if(!i.isHidden(h)){var a=h.offsetWidth-i.px(h,"borderLeftWidth")-i.px(h,"borderRightWidth"),b=f.offsetWidth-f.clientWidth;a-=b;if(a>200&&a!=f.tw){f.tw=a;f.style.width=a+b+"px";p.style.width=a+"px"}}}});
0)}}}}};this.autoJavaScript=function(){if(j.parentNode==null){j=f=p=null;this.autoJavaScript=function(){}}else if(!i.isHidden(j)){var a=j.offsetWidth-i.px(j,"borderLeftWidth")-i.px(j,"borderRightWidth"),b=f.offsetWidth-f.clientWidth;a-=b;if(a>200&&a!=f.tw){f.tw=a;f.style.width=a+b+"px";p.style.width=a+"px"}}}});
addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:h,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:I};this.WT=_$_WT_CLASS_$_;this.emit=M}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:D,setTitle:j,update:z,quit:b,setFormObjects:function(d){T=d},saveDownPos:v,addTimerEvent:K,load:i,handleResponse:C,setServerPush:u,dragStart:g,dragDrag:X,dragEnd:B,capture:o.capture,onHashChange:t,setHash:A,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},
addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:h,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:I};this.WT=_$_WT_CLASS_$_;this.emit=M}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w,addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:g,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},
c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w,addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:h,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},
c.onerror=p.prototype.onload;c.onabort=p.prototype.onload;c.imagePreloader=this;c.src=d};p.prototype.onload=function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};o.history.register(_$_INITIAL_HASH_$_,t);this._p_={ieAlternative:r,loadScript:l,onJsLoad:E,setTitle:k,update:A,quit:b,setFormObjects:function(d){U=d},saveDownPos:w,addTimerEvent:L,load:i,handleResponse:D,setServerPush:u,dragStart:g,dragDrag:X,dragEnd:C,capture:o.capture,onHashChange:t,setHash:B,ImagePreloader:p,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},
function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};n.history.register(_$_INITIAL_HASH_$_,t);window.onunload=function(){q.emit(q,"Wt-unload");v()};this._p_={ieAlternative:l,loadScript:C,onJsLoad:M,setTitle:b,update:y,quit:Y,setFormObjects:function(d){V=d},saveDownPos:w,addTimerEvent:U,load:f,handleResponse:u,setServerPush:o,dragStart:ca,dragDrag:g,dragEnd:Z,capture:n.capture,onHashChange:t,setHash:D,ImagePreloader:H,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:F,
setServerPush:o,dragStart:ca,dragDrag:g,dragEnd:Z,capture:n.capture,onHashChange:t,setHash:D,ImagePreloader:H,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:F,setCloseMessage:p};this.WT=_$_WT_CLASS_$_;this.emit=I}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;function onLoad(){if(window.WtScriptLoaded){_$_WT_CLASS_$_.history.initialize("Wt-history-field","Wt-history-iframe");_$_APP_CLASS_$_._p_.load()}else window.isLoaded=true};
function(){var d=this.imagePreloader;--d.work==0&&d.callback(d.images)};n.history.register(_$_INITIAL_HASH_$_,t);window.onunload=function(){q.emit(q,"Wt-unload");v()};this._p_={ieAlternative:l,loadScript:C,onJsLoad:M,setTitle:b,update:y,quit:Y,setFormObjects:function(d){V=d},saveDownPos:w,addTimerEvent:U,load:f,handleResponse:u,setServerPush:o,dragStart:ca,dragDrag:g,dragEnd:Z,capture:n.capture,onHashChange:t,setHash:D,ImagePreloader:H,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:F,
setFormObjects:function(d){B=d},saveDownPos:x,addTimerEvent:N,load:m,handleResponse:u,setServerPush:E,dragStart:k,dragDrag:U,dragEnd:D,capture:g.capture,onHashChange:t,setHash:C,ImagePreloader:K,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:L};this.WT=_$_WT_CLASS_$_;this.emit=O}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
setFormObjects:function(d){B=d},saveDownPos:x,addTimerEvent:N,load:m,handleResponse:u,setServerPush:E,dragStart:k,dragDrag:U,dragEnd:D,capture:g.capture,onHashChange:t,setHash:C,ImagePreloader:K,autoJavaScript:function(){_$_AUTO_JAVASCRIPT_$_()},response:L};this.WT=_$_WT_CLASS_$_;this.emit=O}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
setFormObjects:function(d){B=d},saveDownPos:x,addTimerEvent:N,load:m,handleResponse:u,setServerPush:E,dragStart:k,dragDrag:U,dragEnd:D,capture:g.capture,onHashChange:t,setHash:C,ImagePreloader:K,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:L};this.WT=_$_WT_CLASS_$_;this.emit=O}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
s);this._p_={loadScript:Y,onJsLoad:Q,setTitle:l,update:H,quit:function(){ba=true;clearTimeout(aa)},setFormObjects:function(d){T=d},saveDownPos:v,addTimerEvent:z,load:o,handleResponse:D,setServerPush:t,dragStart:G,dragDrag:P,dragEnd:a,capture:n.capture,onHashChange:s,setHash:F,ImagePreloader:g,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:R};this.WT=_$_WT_CLASS_$_;this.emit=I}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
d},saveDownPos:x,addTimerEvent:N,load:m,handleResponse:u,setServerPush:E,dragStart:k,dragDrag:U,dragEnd:D,capture:g.capture,onHashChange:t,setHash:C,ImagePreloader:K,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:L};this.WT=_$_WT_CLASS_$_;this.emit=O}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
s);this._p_={loadScript:Y,onJsLoad:Q,setTitle:l,update:H,quit:function(){ba=true;clearTimeout(aa)},setFormObjects:function(d){T=d},saveDownPos:v,addTimerEvent:z,load:o,handleResponse:D,setServerPush:t,dragStart:G,dragDrag:P,dragEnd:a,capture:n.capture,onHashChange:s,setHash:F,ImagePreloader:g,autoJavaScript:function(){with(window)_$_AUTO_JAVASCRIPT_$_()},response:R};this.WT=_$_WT_CLASS_$_;this.emit=I}),WtSignalEmit=_$_APP_CLASS_$_.emit;window.WtScriptLoaded=false;
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;
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=
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;
var timer, hoverTimer, stopped = true;
var timer, stopped = true;
$.fn.autoscroll = function(conf) { if (typeof conf == 'number') { conf = {interval: conf}; } var opts = $.extend({}, t.autoscroll.conf, conf), ret; this.each(function() { var api = $(this).data("scrollable"); if (api) { ret = api; } // interval stuff var timer, hoverTimer, stopped = true; api.play = function() { // do not start additional timer if already exists if (timer) { return; } stopped = false; // construct new timer timer = setInterval(function() { api.next(); }, opts.interval); api.next(); }; api.pause = function() { timer = clearInterval(timer); }; // when stopped - mouseover won't restart api.stop = function() { api.pause(); stopped = true; }; /* when mouse enters, autoscroll stops */ if (opts.autopause) { api.getRoot().add(api.getNaviButtons()).hover(function() { api.pause(); clearInterval(hoverTimer); }, function() { if (!stopped) { hoverTimer = setTimeout(api.play, opts.interval); } }); } if (opts.autoplay) { setTimeout(api.play, opts.interval); } }); return opts.api ? ret : this; };
api.next();
$.fn.autoscroll = function(conf) { if (typeof conf == 'number') { conf = {interval: conf}; } var opts = $.extend({}, t.autoscroll.conf, conf), ret; this.each(function() { var api = $(this).data("scrollable"); if (api) { ret = api; } // interval stuff var timer, hoverTimer, stopped = true; api.play = function() { // do not start additional timer if already exists if (timer) { return; } stopped = false; // construct new timer timer = setInterval(function() { api.next(); }, opts.interval); api.next(); }; api.pause = function() { timer = clearInterval(timer); }; // when stopped - mouseover won't restart api.stop = function() { api.pause(); stopped = true; }; /* when mouse enters, autoscroll stops */ if (opts.autopause) { api.getRoot().add(api.getNaviButtons()).hover(function() { api.pause(); clearInterval(hoverTimer); }, function() { if (!stopped) { hoverTimer = setTimeout(api.play, opts.interval); } }); } if (opts.autoplay) { setTimeout(api.play, opts.interval); } }); return opts.api ? ret : this; };
api.getRoot().add(api.getNaviButtons()).hover(function() { api.pause(); clearInterval(hoverTimer); }, function() { if (!stopped) { hoverTimer = setTimeout(api.play, opts.interval); } }); }
api.getRoot().add(api.getNaviButtons()).hover(api.pause, api.play); }
$.fn.autoscroll = function(conf) { if (typeof conf == 'number') { conf = {interval: conf}; } var opts = $.extend({}, t.autoscroll.conf, conf), ret; this.each(function() { var api = $(this).data("scrollable"); if (api) { ret = api; } // interval stuff var timer, hoverTimer, stopped = true; api.play = function() { // do not start additional timer if already exists if (timer) { return; } stopped = false; // construct new timer timer = setInterval(function() { api.next(); }, opts.interval); api.next(); }; api.pause = function() { timer = clearInterval(timer); }; // when stopped - mouseover won't restart api.stop = function() { api.pause(); stopped = true; }; /* when mouse enters, autoscroll stops */ if (opts.autopause) { api.getRoot().add(api.getNaviButtons()).hover(function() { api.pause(); clearInterval(hoverTimer); }, function() { if (!stopped) { hoverTimer = setTimeout(api.play, opts.interval); } }); } if (opts.autoplay) { setTimeout(api.play, opts.interval); } }); return opts.api ? ret : this; };
setTimeout(api.play, opts.interval);
api.play();
$.fn.autoscroll = function(conf) { if (typeof conf == 'number') { conf = {interval: conf}; } var opts = $.extend({}, t.autoscroll.conf, conf), ret; this.each(function() { var api = $(this).data("scrollable"); if (api) { ret = api; } // interval stuff var timer, hoverTimer, stopped = true; api.play = function() { // do not start additional timer if already exists if (timer) { return; } stopped = false; // construct new timer timer = setInterval(function() { api.next(); }, opts.interval); api.next(); }; api.pause = function() { timer = clearInterval(timer); }; // when stopped - mouseover won't restart api.stop = function() { api.pause(); stopped = true; }; /* when mouse enters, autoscroll stops */ if (opts.autopause) { api.getRoot().add(api.getNaviButtons()).hover(function() { api.pause(); clearInterval(hoverTimer); }, function() { if (!stopped) { hoverTimer = setTimeout(api.play, opts.interval); } }); } if (opts.autoplay) { setTimeout(api.play, opts.interval); } }); return opts.api ? ret : this; };
p?setTimeout(arguments.callee,0):z()}})()}o(z)}}var t=window.DomReady={},B=navigator.userAgent.toLowerCase(),y={version:(B.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(B),opera:/opera/.test(B),msie:/msie/.test(B)&&!/opera/.test(B),mozilla:/mozilla/.test(B)&&!/(compatible|webkit)/.test(B)},C=false,A=false,E=[];t.ready=function(p){v();A?p.call(window,[]):E.push(function(){return p.call(window,[])})};v()})();(function(z,o){function v(j,n){for(var u=[],x=0;x<j.length;x++)u.push(j[x]);for(x=0;x<u.length;x++)n(u[x])}function t(){v([p,d],function(j){v(o.getElementsByTagName(j),function(n){var u=true;if(n.canPlayType)if(n.src&&n.canPlayType(B(j,n.src)))u=false;else v(n.getElementsByTagName("source"),function(x){if(n.canPlayType(B(j,x.src,x.type)))u=false});u&&t.createFallback(j,n)})})}function B(j,n,u){return u||k[j][n.split(".").slice(-1)[0]]||F[j]}function y(j,n){var u=j.getAttribute(n);return u==true||
n.addEventListener("click",function(){n.play()},false)})})}function B(j,n,u){return u||k[j][n.split(".").slice(-1)[0]]||F[j]}function y(j,n){var u=j.getAttribute(n);return u==true||typeof u=="string"}function C(j){if(j.substr(0,1)=="/")return r+j;if(j.substr(0,1)=="."||!j.match(/^\s*\w+:\/\
p?setTimeout(arguments.callee,0):z()}})()}o(z)}}var t=window.DomReady={},B=navigator.userAgent.toLowerCase(),y={version:(B.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(B),opera:/opera/.test(B),msie:/msie/.test(B)&&!/opera/.test(B),mozilla:/mozilla/.test(B)&&!/(compatible|webkit)/.test(B)},C=false,A=false,E=[];t.ready=function(p){v();A?p.call(window,[]):E.push(function(){return p.call(window,[])})};v()})();(function(z,o){function v(j,n){for(var u=[],x=0;x<j.length;x++)u.push(j[x]);for(x=0;x<u.length;x++)n(u[x])}function t(){v([p,d],function(j){v(o.getElementsByTagName(j),function(n){var u=true;if(n.canPlayType)if(n.src&&n.canPlayType(B(j,n.src)))u=false;else v(n.getElementsByTagName("source"),function(x){if(n.canPlayType(B(j,x.src,x.type)))u=false});u&&t.createFallback(j,n)})})}function B(j,n,u){return u||k[j][n.split(".").slice(-1)[0]]||F[j]}function y(j,n){var u=j.getAttribute(n);return u==true||
typeof t=="string"}function B(j){if(j.substr(0,1)=="/")return q+j;if(j.substr(0,1)=="."||!j.match(/^\s*\w+:\/\
k[j][n.split(".").slice(-1)[0]]||C[j]}function y(j,n){var t=j.getAttribute(n);return t==true||typeof t=="string"}function B(j){if(j.substr(0,1)=="/")return q+j;if(j.substr(0,1)=="."||!j.match(/^\s*\w+:\/\
typeof t=="string"}function B(j){if(j.substr(0,1)=="/")return q+j;if(j.substr(0,1)=="."||!j.match(/^\s*\w+:\/\//))return u+j;return j}function D(j,n,t){var w=j.getAttribute(n);if(w)return w+"px";if(j.currentStyle)j=j.currentStyle[n];else if(A.getComputedStyle)j=o.defaultView.getComputedStyle(j,null).getPropertyValue(n);else return t;if(j=="auto")return t;return j}function E(j){return j.match(/\s*([\w-]+\/[\w-]+)(;|\s|$)/)[1]}var x="video",f="audio";o.createElement(x).canPlayType||v(["abbr","article",
WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(q,d,x,y,p){function r(){return d.style.display!="none"}function k(){d.style.display="none"}function z(a){c.positionAtWidget(d.id,a.id,c.Vertical)}function A(a){a=a||window.event;a=a.target||a.srcElement;if(a.className!="content"){if(!c.hasTag(a,"DIV"))a=a.parentNode;s(a)}}function s(a){var b=a.firstChild;a=c.getElement(e);var i=b.innerHTML;b=b.getAttribute("sug");a.focus();x(a,i,b);k();e=null}function B(a,b){for(a=b?a.nextSibling:a.previousSibling;a;a= b?a.nextSibling:a.previousSibling)if(c.hasTag(a,"DIV"))if(a.style.display!="none")return a;return null}$(".Wt-domRoot").add(d);jQuery.data(d,"obj",this);var n=this,c=q.WT,m=null,e=null,t=false,u=null,v=null,o=null;this.showPopup=function(){d.style.display="";m=null};this.editMouseMove=function(a,b){a.style.cursor=c.widgetCoordinates(a,b).x>a.offsetWidth-16?"default":""};this.editClick=function(a,b){if(c.widgetCoordinates(a,b).x>a.offsetWidth-16)if(e!=a.id){k();e=a.id;n.refilter()}else{e=null;k()}};
WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(q,d,y,z,r){function m(a){return $(a).hasClass("Wt-suggest-onedit")||$(a).hasClass("Wt-suggest-dropdown")}function s(){return d.style.display!="none"}function k(){d.style.display="none"}function A(a){c.positionAtWidget(d.id,a.id,c.Vertical)}function B(a){a=a||window.event;a=a.target||a.srcElement;if(a.className!="content"){if(!c.hasTag(a,"DIV"))a=a.parentNode;t(a)}}function t(a){var b=a.firstChild,h=c.getElement(f),e=b.innerHTML;b=b.getAttribute("sug");
WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(q,d,x,y,p){function r(){return d.style.display!="none"}function k(){d.style.display="none"}function z(a){c.positionAtWidget(d.id,a.id,c.Vertical)}function A(a){a=a||window.event;a=a.target||a.srcElement;if(a.className!="content"){if(!c.hasTag(a,"DIV"))a=a.parentNode;s(a)}}function s(a){var b=a.firstChild;a=c.getElement(e);var i=b.innerHTML;b=b.getAttribute("sug");a.focus();x(a,i,b);k();e=null}function B(a,b){for(a=b?a.nextSibling:a.previousSibling;a;a=b?a.nextSibling:a.previousSibling)if(c.hasTag(a,"DIV"))if(a.style.display!="none")return a;return null}$(".Wt-domRoot").add(d);jQuery.data(d,"obj",this);var n=this,c=q.WT,m=null,e=null,t=false,u=null,v=null,o=null;this.showPopup=function(){d.style.display="";m=null};this.editMouseMove=function(a,b){a.style.cursor=c.widgetCoordinates(a,b).x>a.offsetWidth-16?"default":""};this.editClick=function(a,b){if(c.widgetCoordinates(a,b).x>a.offsetWidth-16)if(e!=a.id){k();e=a.id;n.refilter()}else{e=null;k()}};
(function(){function a(h){return h.type==CKEDITOR.NODE_TEXT&&h.getLength()>0;};function b(h){return!(h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary(CKEDITOR.tools.extend({},CKEDITOR.dtd.$empty,CKEDITOR.dtd.$nonEditable)));};var c=function(){var h=this;return{textNode:h.textNode,offset:h.offset,character:h.textNode?h.textNode.getText().charAt(h.offset):null,hitMatchBoundary:h._.matchBoundary};},d=['find','replace'],e=[['txtFindFind','txtFindReplace'],['txtFindCaseChk','txtReplaceCaseChk'],['txtFindWordChk','txtReplaceWordChk'],['txtFindCyclic','txtReplaceCyclic']];function f(h){var i,j,k,l;i=h==='find'?1:0;j=1-i;var m,n=e.length;for(m=0;m<n;m++){k=this.getContentElement(d[i],e[m][i]);l=this.getContentElement(d[j],e[m][j]);l.setValue(k.getValue());}};var g=function(h,i){var j=new CKEDITOR.style(CKEDITOR.tools.extend({fullMatch:true,childRule:function(){return false;}},h.config.find_highlight)),k=function(w,x){var y=new CKEDITOR.dom.walker(w);y.guard=x?b:null;y.evaluator=a;y.breakOnFalse=true;this._={matchWord:x,walker:y,matchBoundary:false};};k.prototype={next:function(){return this.move();},back:function(){return this.move(true);},move:function(w){var y=this;var x=y.textNode;if(x===null)return c.call(y);y._.matchBoundary=false;if(x&&w&&y.offset>0){y.offset--;return c.call(y);}else if(x&&y.offset<x.getLength()-1){y.offset++;return c.call(y);}else{x=null;while(!x){x=y._.walker[w?'previous':'next'].call(y._.walker);if(y._.matchWord&&!x||y._.walker._.end)break;if(!x&&!b(y._.walker.current))y._.matchBoundary=true;}y.textNode=x;if(x)y.offset=w?x.getLength()-1:0;else y.offset=0;}return c.call(y);}};var l=function(w,x){this._={walker:w,cursors:[],rangeLength:x,highlightRange:null,isMatched:false};};l.prototype={toDomRange:function(){var w=new CKEDITOR.dom.range(h.document),x=this._.cursors;if(x.length<1){var y=this._.walker.textNode;if(y)w.setStartAfter(y);else return null;}else{var z=x[0],A=x[x.length-1];w.setStart(z.textNode,z.offset);w.setEnd(A.textNode,A.offset+1);}return w;},updateFromDomRange:function(w){var z=this;var x,y=new k(w);z._.cursors=[];do{x=y.next();if(x.character)z._.cursors.push(x);}while(x.character)z._.rangeLength=z._.cursors.length;},setMatched:function(){this._.isMatched=true;},clearMatched:function(){this._.isMatched=false;},isMatched:function(){return this._.isMatched;},highlight:function(){var y=this;if(y._.cursors.length<1)return;if(y._.highlightRange)y.removeHighlight();var w=y.toDomRange();j.applyToRange(w);y._.highlightRange=w;var x=w.startContainer;
(function(){var a;function b(i){return i.type==CKEDITOR.NODE_TEXT&&i.getLength()>0&&(!a||!i.isReadOnly());};function c(i){return!(i.type==CKEDITOR.NODE_ELEMENT&&i.isBlockBoundary(CKEDITOR.tools.extend({},CKEDITOR.dtd.$empty,CKEDITOR.dtd.$nonEditable)));};var d=function(){var i=this;return{textNode:i.textNode,offset:i.offset,character:i.textNode?i.textNode.getText().charAt(i.offset):null,hitMatchBoundary:i._.matchBoundary};},e=['find','replace'],f=[['txtFindFind','txtFindReplace'],['txtFindCaseChk','txtReplaceCaseChk'],['txtFindWordChk','txtReplaceWordChk'],['txtFindCyclic','txtReplaceCyclic']];function g(i){var j,k,l,m;j=i==='find'?1:0;k=1-j;var n,o=f.length;for(n=0;n<o;n++){l=this.getContentElement(e[j],f[n][j]);m=this.getContentElement(e[k],f[n][k]);m.setValue(l.getValue());}};var h=function(i,j){var k=new CKEDITOR.style(CKEDITOR.tools.extend({fullMatch:true,childRule:function(){return false;}},i.config.find_highlight)),l=function(x,y){var z=new CKEDITOR.dom.walker(x);z.guard=y?c:null;z.evaluator=b;z.breakOnFalse=true;this._={matchWord:y,walker:z,matchBoundary:false};};l.prototype={next:function(){return this.move();},back:function(){return this.move(true);},move:function(x){var z=this;var y=z.textNode;if(y===null)return d.call(z);z._.matchBoundary=false;if(y&&x&&z.offset>0){z.offset--;return d.call(z);}else if(y&&z.offset<y.getLength()-1){z.offset++;return d.call(z);}else{y=null;while(!y){y=z._.walker[x?'previous':'next'].call(z._.walker);if(z._.matchWord&&!y||z._.walker._.end)break;if(!y&&!c(z._.walker.current))z._.matchBoundary=true;}z.textNode=y;if(y)z.offset=x?y.getLength()-1:0;else z.offset=0;}return d.call(z);}};var m=function(x,y){this._={walker:x,cursors:[],rangeLength:y,highlightRange:null,isMatched:false};};m.prototype={toDomRange:function(){var x=new CKEDITOR.dom.range(i.document),y=this._.cursors;if(y.length<1){var z=this._.walker.textNode;if(z)x.setStartAfter(z);else return null;}else{var A=y[0],B=y[y.length-1];x.setStart(A.textNode,A.offset);x.setEnd(B.textNode,B.offset+1);}return x;},updateFromDomRange:function(x){var A=this;var y,z=new l(x);A._.cursors=[];do{y=z.next();if(y.character)A._.cursors.push(y);}while(y.character)A._.rangeLength=A._.cursors.length;},setMatched:function(){this._.isMatched=true;},clearMatched:function(){this._.isMatched=false;},isMatched:function(){return this._.isMatched;},highlight:function(){var A=this;if(A._.cursors.length<1)return;if(A._.highlightRange)A.removeHighlight();var x=A.toDomRange(),y=x.createBookmark();
(function(){function a(h){return h.type==CKEDITOR.NODE_TEXT&&h.getLength()>0;};function b(h){return!(h.type==CKEDITOR.NODE_ELEMENT&&h.isBlockBoundary(CKEDITOR.tools.extend({},CKEDITOR.dtd.$empty,CKEDITOR.dtd.$nonEditable)));};var c=function(){var h=this;return{textNode:h.textNode,offset:h.offset,character:h.textNode?h.textNode.getText().charAt(h.offset):null,hitMatchBoundary:h._.matchBoundary};},d=['find','replace'],e=[['txtFindFind','txtFindReplace'],['txtFindCaseChk','txtReplaceCaseChk'],['txtFindWordChk','txtReplaceWordChk'],['txtFindCyclic','txtReplaceCyclic']];function f(h){var i,j,k,l;i=h==='find'?1:0;j=1-i;var m,n=e.length;for(m=0;m<n;m++){k=this.getContentElement(d[i],e[m][i]);l=this.getContentElement(d[j],e[m][j]);l.setValue(k.getValue());}};var g=function(h,i){var j=new CKEDITOR.style(CKEDITOR.tools.extend({fullMatch:true,childRule:function(){return false;}},h.config.find_highlight)),k=function(w,x){var y=new CKEDITOR.dom.walker(w);y.guard=x?b:null;y.evaluator=a;y.breakOnFalse=true;this._={matchWord:x,walker:y,matchBoundary:false};};k.prototype={next:function(){return this.move();},back:function(){return this.move(true);},move:function(w){var y=this;var x=y.textNode;if(x===null)return c.call(y);y._.matchBoundary=false;if(x&&w&&y.offset>0){y.offset--;return c.call(y);}else if(x&&y.offset<x.getLength()-1){y.offset++;return c.call(y);}else{x=null;while(!x){x=y._.walker[w?'previous':'next'].call(y._.walker);if(y._.matchWord&&!x||y._.walker._.end)break;if(!x&&!b(y._.walker.current))y._.matchBoundary=true;}y.textNode=x;if(x)y.offset=w?x.getLength()-1:0;else y.offset=0;}return c.call(y);}};var l=function(w,x){this._={walker:w,cursors:[],rangeLength:x,highlightRange:null,isMatched:false};};l.prototype={toDomRange:function(){var w=new CKEDITOR.dom.range(h.document),x=this._.cursors;if(x.length<1){var y=this._.walker.textNode;if(y)w.setStartAfter(y);else return null;}else{var z=x[0],A=x[x.length-1];w.setStart(z.textNode,z.offset);w.setEnd(A.textNode,A.offset+1);}return w;},updateFromDomRange:function(w){var z=this;var x,y=new k(w);z._.cursors=[];do{x=y.next();if(x.character)z._.cursors.push(x);}while(x.character)z._.rangeLength=z._.cursors.length;},setMatched:function(){this._.isMatched=true;},clearMatched:function(){this._.isMatched=false;},isMatched:function(){return this._.isMatched;},highlight:function(){var y=this;if(y._.cursors.length<1)return;if(y._.highlightRange)y.removeHighlight();var w=y.toDomRange();j.applyToRange(w);y._.highlightRange=w;var x=w.startContainer;
function b(c,e,h){c=n(e);var i=d(c,e),q=n(e+1),s=d(q,e+1);if(a.pctself(c,"width")>0&&a.pctself(q,"width")>0){c.style.width="";j()}a.pctself(c,"width")==0&&k(e,i+h);a.pctself(q,"width")==0&&k(e+1,s-h);window.onresize()}var r=this,m=a.getElement(t);if(m)if(!r.resizeInitialized){var u=m.firstChild,p,x,z,y;x=p=0;for(z=u.rows.length;p<z;p++){y=u.rows[p];if(y.className=="Wt-hrh"){var A=y.firstChild;A.ri=x-1;A.onmousedown=function(c){l(this,this.ri,c||window.event)}}else{var C,E,G;E=C=0;for(G=y.childNodes.length;C<
function b(c,f,j){c=o(f);var l=d(c,f),q=o(f+1),s=d(q,f+1);if(a.pctself(c,"width")>0&&a.pctself(q,"width")>0){c.style.width="";k()}a.pctself(c,"width")==0&&e(f,l+j);a.pctself(q,"width")==0&&e(f+1,s-j);window.onresize()}var r=this,n=a.getElement(t);if(n)if(!r.resizeInitialized){var u=n.firstChild,p,x,z,y;x=p=0;for(z=u.rows.length;p<z;p++){y=u.rows[p];if(y.className=="Wt-hrh"){var A=y.firstChild;A.ri=x-1;A.onmousedown=function(c){g(this,this.ri,c||window.event)}}else{var C,E,G;E=C=0;for(G=y.childNodes.length;C<
function b(c,e,h){c=n(e);var i=d(c,e),q=n(e+1),s=d(q,e+1);if(a.pctself(c,"width")>0&&a.pctself(q,"width")>0){c.style.width="";j()}a.pctself(c,"width")==0&&k(e,i+h);a.pctself(q,"width")==0&&k(e+1,s-h);window.onresize()}var r=this,m=a.getElement(t);if(m)if(!r.resizeInitialized){var u=m.firstChild,p,x,z,y;x=p=0;for(z=u.rows.length;p<z;p++){y=u.rows[p];if(y.className=="Wt-hrh"){var A=y.firstChild;A.ri=x-1;A.onmousedown=function(c){l(this,this.ri,c||window.event)}}else{var C,E,G;E=C=0;for(G=y.childNodes.length;C<
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=
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),
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=
function b(c,f,j){c=o(f);var l=d(c,f),q=o(f+1),s=d(q,f+1);if(a.pctself(c,"width")>0&&a.pctself(q,"width")>0){c.style.width="";k()}a.pctself(c,"width")==0&&e(f,l+j);a.pctself(q,"width")==0&&e(f+1,s-j);window.onresize()}var r=this,n=a.getElement(t);if(n)if(!r.resizeInitialized){var u=n.firstChild,p,x,z,y;x=p=0;for(z=u.rows.length;p<z;p++){y=u.rows[p];if(y.className=="Wt-hrh"){var A=y.firstChild;A.ri=x-1;A.onmousedown=function(c){g(this,this.ri,c||window.event)}}else{var C,E,G;E=C=0;for(G=y.childNodes.length;C<
function b(c,f,j){c=o(f);var l=d(c,f),q=o(f+1),s=d(q,f+1);if(a.pctself(c,"width")>0&&a.pctself(q,"width")>0){c.style.width="";k()}a.pctself(c,"width")==0&&e(f,l+j);a.pctself(q,"width")==0&&e(f+1,s-j);window.onresize()}var r=this,n=a.getElement(t);if(n)if(!r.resizeInitialized){var u=n.firstChild,p,y,A,z;y=p=0;for(A=u.rows.length;p<A;p++){z=u.rows[p];if(z.className=="Wt-hrh"){var x=z.firstChild;x.ri=y-1;x.onmousedown=x.ontouchstart=function(c){g(this,this.ri,c||window.event)}}else{var C,E,G;E=C=0;for(G=
function b(c,f,j){c=o(f);var l=d(c,f),q=o(f+1),s=d(q,f+1);if(a.pctself(c,"width")>0&&a.pctself(q,"width")>0){c.style.width="";k()}a.pctself(c,"width")==0&&e(f,l+j);a.pctself(q,"width")==0&&e(f+1,s-j);window.onresize()}var r=this,n=a.getElement(t);if(n)if(!r.resizeInitialized){var u=n.firstChild,p,x,z,y;x=p=0;for(z=u.rows.length;p<z;p++){y=u.rows[p];if(y.className=="Wt-hrh"){var A=y.firstChild;A.ri=x-1;A.onmousedown=function(c){g(this,this.ri,c||window.event)}}else{var C,E,G;E=C=0;for(G=y.childNodes.length;C<
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=
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=
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=
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()}
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() {"+
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()}
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,h){function o(e,j){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==j)return m.offsetWidth;r+=m.colSpan}}return 0}}function b(e,j){var m=a.getElement(t).firstChild;p(e).style.width=j+"px";var n,r,u,v;r=n=0;for(u=m.rows.length;n<u;n++){v=m.rows[n];if(v.className!="Wt-hrh"){var w,B,D,F;D=B=0;for(F=v.childNodes.length;B< F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=j-g.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function c(e,j,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){d(e,j,r)},n,l,m,0,0)}function f(e,j,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(q.rows[0].childNodes[0],
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,h){function o(e,j){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==j)return m.offsetWidth;r+=m.colSpan}}return 0}}function b(e,j){var m=a.getElement(t).firstChild;p(e).style.width=j+"px";var n,r,u,w;r=n=0;for(u=m.rows.length;n<u;n++){w=m.rows[n];if(w.className!="Wt-hrh"){var x,B,D,F;D=B=0;for(F=w.childNodes.length;B< F;++B){x=w.childNodes[B];if(x.className!="Wt-vrh"){if(x.colSpan==1&&D==e&&x.childNodes.length==1){w=x.firstChild;x=j-g.marginH(w);w.style.width=x+"px";break}D+=x.colSpan}}++r}}}function c(e,j,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){i(e,j,r)},n,l,m,0,0)}function f(e,j,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,w=a.pxself(s.rows[0].childNodes[0],
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,h){function o(e,j){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==j)return m.offsetWidth;r+=m.colSpan}}return 0}}function b(e,j){var m=a.getElement(t).firstChild;p(e).style.width=j+"px";var n,r,u,v;r=n=0;for(u=m.rows.length;n<u;n++){v=m.rows[n];if(v.className!="Wt-hrh"){var w,B,D,F;D=B=0;for(F=v.childNodes.length;B<F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=j-g.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function c(e,j,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){d(e,j,r)},n,l,m,0,0)}function f(e,j,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(q.rows[0].childNodes[0],
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,r){function u(c){var f,g,h,o=a.getElement(s).firstChild.childNodes;g=f=0;for(h=o.length;g<h;g++){var q=o[g];if(a.hasTag(q,"COLGROUP")){g=-1;o=q.childNodes;h=o.length}if(a.hasTag(q,"COL"))if(q.className!="Wt-vrh")if(f==c)return q;else++f}return null}function b(c,f){if(c.offsetWidth>0)return c.offsetWidth;else{c=c.parentNode.rows[0];var g,h,o,q;o=h=0;for(q=c.childNodes.length;h<q;++h){g=c.childNodes[h];if(g.className!="Wt-vrh"){if(o== f)return g.offsetWidth;o+=g.colSpan}}return 0}}function i(c,f){var g=a.getElement(s).firstChild;u(c).style.width=f+"px";var h,o,q,v;o=h=0;for(q=g.rows.length;h<q;h++){v=g.rows[h];if(v.className!="Wt-hrh"){var w,B,D,F;D=B=0;for(F=v.childNodes.length;B<F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==c&&w.childNodes.length==1){v=w.firstChild;w=f-p.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++o}}}function j(c,f,g){var h=c.firstChild;new a.SizeHandle(a,"v",h.offsetHeight,
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,u,h){function t(c){var f,g,j,q=a.getElement(u).firstChild.childNodes;g=f=0;for(j=q.length;g<j;g++){var s=q[g];if(a.hasTag(s,"COLGROUP")){g=-1;q=s.childNodes;j=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(f==c)return s;else++f}return null}function b(c,f){if(c.offsetWidth>0)return c.offsetWidth;else{c=c.parentNode.rows[0];var g,j,q,s;q=j=0;for(s=c.childNodes.length;j<s;++j){g=c.childNodes[j];if(g.className!="Wt-vrh"){if(q== f)return g.offsetWidth;q+=g.colSpan}}return 0}}function k(c,f){var g=a.getElement(u).firstChild;t(c).style.width=f+"px";var j,q,s,w;q=j=0;for(s=g.rows.length;j<s;j++){w=g.rows[j];if(w.className!="Wt-hrh"){var x,C,E,G;E=C=0;for(G=w.childNodes.length;C<G;++C){x=w.childNodes[C];if(x.className!="Wt-vrh"){if(x.colSpan==1&&E==c&&x.childNodes.length==1){w=x.firstChild;x=f-r.marginH(w);w.style.width=x+"px";break}E+=x.colSpan}}++q}}}function l(c,f,g){var j=c.firstChild;new a.SizeHandle(a,"v",j.offsetHeight,
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,r){function u(c){var f,g,h,o=a.getElement(s).firstChild.childNodes;g=f=0;for(h=o.length;g<h;g++){var q=o[g];if(a.hasTag(q,"COLGROUP")){g=-1;o=q.childNodes;h=o.length}if(a.hasTag(q,"COL"))if(q.className!="Wt-vrh")if(f==c)return q;else++f}return null}function b(c,f){if(c.offsetWidth>0)return c.offsetWidth;else{c=c.parentNode.rows[0];var g,h,o,q;o=h=0;for(q=c.childNodes.length;h<q;++h){g=c.childNodes[h];if(g.className!="Wt-vrh"){if(o==f)return g.offsetWidth;o+=g.colSpan}}return 0}}function i(c,f){var g=a.getElement(s).firstChild;u(c).style.width=f+"px";var h,o,q,v;o=h=0;for(q=g.rows.length;h<q;h++){v=g.rows[h];if(v.className!="Wt-hrh"){var w,B,D,F;D=B=0;for(F=v.childNodes.length;B<F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==c&&w.childNodes.length==1){v=w.firstChild;w=f-p.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++o}}}function j(c,f,g){var h=c.firstChild;new a.SizeHandle(a,"v",h.offsetHeight,
var _$_WT_CLASS_$_=new (function(){function w(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(C!=null){if(!a)a=window.event;h.condCall(C,"onmousemove",a);return false}else return true}function B(a){if(C!=null){var b=C;h.capture(null);if(!a)a=window.event;h.condCall(b,"onmouseup",a);h.cancelEvent(a,h.CancelPropagate);return false}else return true}function ba(){if(!T){T=
c.object,d,"",h);m=f.getAttribute("dos");if(m!=null)f.className=m}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",h);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function B(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):L(c.dropTarget, {name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function S(d,c){var f,k;k=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var h=0;h<d.args.length;++h)f+=
var _$_WT_CLASS_$_=new (function(){function w(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(C!=null){if(!a)a=window.event;h.condCall(C,"onmousemove",a);return false}else return true}function B(a){if(C!=null){var b=C;h.capture(null);if(!a)a=window.event;h.condCall(b,"onmouseup",a);h.cancelEvent(a,h.CancelPropagate);return false}else return true}function ba(){if(!T){T=
var _$_WT_CLASS_$_=new (function(){function w(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(C!=null){if(!a)a=window.event;g.condCall(C,"onmousemove",a);return false}else return true}function B(a){if(C!=null){var b=C;g.capture(null);if(!a)a=window.event;g.condCall(b,"onmouseup",a);g.cancelEvent(a,g.CancelPropagate);return false}else return true}function ba(){if(!T){T=
var _$_WT_CLASS_$_=new (function(){function w(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(C!=null){if(!a)a=window.event;h.condCall(C,"onmousemove",a);return false}else return true}function B(a){if(C!=null){var b=C;h.capture(null);if(!a)a=window.event;h.condCall(b,"onmouseup",a);h.cancelEvent(a,h.CancelPropagate);return false}else return true}function ba(){if(!T){T=
var _$_WT_CLASS_$_=new (function(){function w(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(C!=null){if(!a)a=window.event;g.condCall(C,"onmousemove",a);return false}else return true}function B(a){if(C!=null){var b=C;g.capture(null);if(!a)a=window.event;g.condCall(b,"onmouseup",a);g.cancelEvent(a,g.CancelPropagate);return false}else return true}function ba(){if(!T){T=
e;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):I(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function B(d,c){var e,j;j=d.event;c=c>0?"&e"+c:"&";e=c+"signal="+d.signal; if(d.id){e+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)e+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var i=0;i<V.length;++i){var s=n.getElement(V[i]),z=null,fa;if(s!=null){if(s.type=="select-multiple"){m=0;for(fa=s.options.length;m<fa;m++)if(s.options[m].selected)e+=c+V[i]+"="+encodeURIComponent(s.options[m].value)}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate||s.style.opacity=="0.5")z="i";else{if(s.checked)z=s.value}else if(s.type!= "file"){z=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(n.hasFocus(s)){m=n.getSelectionRange(s);e+=c+"selstart="+m.start+c+"selend="+m.end}}if(z!=null)e+=c+V[i]+"="+encodeURIComponent(z)}}if(document.activeElement)e+=c+"focus="+document.activeElement.id;if(O!=null)e+=c+"_="+encodeURIComponent(unescape(O));if(!j){d.data=e;return d}for(i=j.target||j.srcElement;!i.id&&i.parentNode;)i=i.parentNode;if(i.id)e+=c+"tid="+i.id;try{e+=c+"type="+j.type}catch(ma){}if(j.clientX||j.clientY)e+=c+"clientX="+ j.clientX+c+"clientY="+j.clientY;z=n.pageCoordinates(j);i=z.x;z=z.y;if(i||z){e+=c+"documentX="+i+c+"documentY="+z;e+=c+"dragdX="+(i-N)+c+"dragdY="+(z-J);m=0;if(j.wheelDelta)m=j.wheelDelta>0?1:-1;else if(j.detail)m=j.detail<0?1:-1;e+=c+"wheel="+m}if(j.screenX||j.screenY)e+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=n.widgetPageCoordinates(d.object);e+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+ d.object.clientHeight+c+"widgetX="+(i-m.x)+c+"widgetY="+(z-m.y)}i=n.button(j);if(!i)if(n.buttons&1)i=1;else if(n.buttons&2)i=2;else if(n.buttons&4)i=4;e+=c+"button="+i;if(typeof j.keyCode!=="undefined")e+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=c+"charCode="+j.charCode;if(j.altKey)e+=c+"altKey=1";if(j.ctrlKey)e+=c+"ctrlKey=1";if(j.metaKey)e+=c+"metaKey=1";if(j.shiftKey)e+=c+"shiftKey=1";d.data=e;return d}function S(){for(var d="",c=false,e=0;e<A.length;++e){c=c||A[e].feedback;
c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function B(d,c){var e,j;j=d.event;c=c>0?"&e"+c:"&";e=c+"signal="+d.signal;if(d.id){e+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)e+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var i=0;i<V.length;++i){var s=n.getElement(V[i]),z=null,fa;if(s!=null){if(s.type=="select-multiple"){m=0;for(fa=s.options.length;m<fa;m++)if(s.options[m].selected)e+=c+V[i]+"="+encodeURIComponent(s.options[m].value)}else if(s.type== "checkbox"||s.type=="radio")if(s.indeterminate||s.style.opacity=="0.5")z="i";else{if(s.checked)z=s.value}else if(s.type!="file"){z=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(n.hasFocus(s)){m=n.getSelectionRange(s);e+=c+"selstart="+m.start+c+"selend="+m.end}}if(z!=null)e+=c+V[i]+"="+encodeURIComponent(z)}}if(document.activeElement)e+=c+"focus="+document.activeElement.id;if(O!=null)e+=c+"_="+encodeURIComponent(unescape(O));if(!j){d.data=e;return d}for(i=j.target||j.srcElement;!i.id&&i.parentNode;)i= i.parentNode;if(i.id)e+=c+"tid="+i.id;try{e+=c+"type="+j.type}catch(ma){}if(j.clientX||j.clientY)e+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;z=n.pageCoordinates(j);i=z.x;z=z.y;if(i||z){e+=c+"documentX="+i+c+"documentY="+z;e+=c+"dragdX="+(i-N)+c+"dragdY="+(z-J);m=0;if(j.wheelDelta)m=j.wheelDelta>0?1:-1;else if(j.detail)m=j.detail<0?1:-1;e+=c+"wheel="+m}if(j.screenX||j.screenY)e+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=n.widgetPageCoordinates(d.object); e+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(i-m.x)+c+"widgetY="+(z-m.y)}i=n.button(j);if(!i)if(n.buttons&1)i=1;else if(n.buttons&2)i=2;else if(n.buttons&4)i=4;e+=c+"button="+i;if(typeof j.keyCode!=="undefined")e+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=c+"charCode="+j.charCode;if(j.altKey)e+=c+"altKey=1";if(j.ctrlKey)e+=c+"ctrlKey=1";if(j.metaKey)e+=c+"metaKey=1";if(j.shiftKey)e+= c+"shiftKey=1";d.data=e;return d}function S(){for(var d="",c=false,e=0;e<A.length;++e){c=c||A[e].feedback;d+=A[e].data}da=A;A=[];return{feedback:c,result:d}}function Y(){P=true;if(W){clearTimeout(W);W=null}var d=$("#Wt-timers");d.size()>0&&n.setHtml(d.get(0),"",false)}function a(){n.history._initTimeout();X==0&&y(null,"none",null,false);W=setTimeout(a,_$_KEEP_ALIVE_$_000)}function b(d){if(!n.isIEMobile)document.title=d}function f(){if(!document.activeElement){function d(e){if(e&&e.target)document.activeElement=
e;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):I(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function B(d,c){var e,j;j=d.event;c=c>0?"&e"+c:"&";e=c+"signal="+d.signal;if(d.id){e+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)e+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var i=0;i<V.length;++i){var s=n.getElement(V[i]),z=null,fa;if(s!=null){if(s.type=="select-multiple"){m=0;for(fa=s.options.length;m<fa;m++)if(s.options[m].selected)e+=c+V[i]+"="+encodeURIComponent(s.options[m].value)}else if(s.type=="checkbox"||s.type=="radio")if(s.indeterminate||s.style.opacity=="0.5")z="i";else{if(s.checked)z=s.value}else if(s.type!="file"){z=$(s).hasClass("Wt-edit-emptyText")?"":""+s.value;if(n.hasFocus(s)){m=n.getSelectionRange(s);e+=c+"selstart="+m.start+c+"selend="+m.end}}if(z!=null)e+=c+V[i]+"="+encodeURIComponent(z)}}if(document.activeElement)e+=c+"focus="+document.activeElement.id;if(O!=null)e+=c+"_="+encodeURIComponent(unescape(O));if(!j){d.data=e;return d}for(i=j.target||j.srcElement;!i.id&&i.parentNode;)i=i.parentNode;if(i.id)e+=c+"tid="+i.id;try{e+=c+"type="+j.type}catch(ma){}if(j.clientX||j.clientY)e+=c+"clientX="+j.clientX+c+"clientY="+j.clientY;z=n.pageCoordinates(j);i=z.x;z=z.y;if(i||z){e+=c+"documentX="+i+c+"documentY="+z;e+=c+"dragdX="+(i-N)+c+"dragdY="+(z-J);m=0;if(j.wheelDelta)m=j.wheelDelta>0?1:-1;else if(j.detail)m=j.detail<0?1:-1;e+=c+"wheel="+m}if(j.screenX||j.screenY)e+=c+"screenX="+j.screenX+c+"screenY="+j.screenY;if(d.object&&d.object.nodeType!=9){m=n.widgetPageCoordinates(d.object);e+=c+"scrollX="+d.object.scrollLeft+c+"scrollY="+d.object.scrollTop+c+"width="+d.object.clientWidth+c+"height="+d.object.clientHeight+c+"widgetX="+(i-m.x)+c+"widgetY="+(z-m.y)}i=n.button(j);if(!i)if(n.buttons&1)i=1;else if(n.buttons&2)i=2;else if(n.buttons&4)i=4;e+=c+"button="+i;if(typeof j.keyCode!=="undefined")e+=c+"keyCode="+j.keyCode;if(typeof j.charCode!=="undefined")e+=c+"charCode="+j.charCode;if(j.altKey)e+=c+"altKey=1";if(j.ctrlKey)e+=c+"ctrlKey=1";if(j.metaKey)e+=c+"metaKey=1";if(j.shiftKey)e+=c+"shiftKey=1";d.data=e;return d}function S(){for(var d="",c=false,e=0;e<A.length;++e){c=c||A[e].feedback;
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=
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: "+
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=
"",i,j=0;c[j];j++){i=c[j];if(i.nodeType===3||i.nodeType===4)f+=i.nodeValue;else if(i.nodeType!==8)f+=a(i.childNodes)}return f}function b(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];break}if(s.nodeType===1&&!m){s.sizcache=i;s.sizset=n}if(s.nodeName.toLowerCase()===f){u=s;break}s=s[c]}j[n]=u}}}function e(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];
"",i,j=0;d[j];j++){i=d[j];if(i.nodeType===3||i.nodeType===4)g+=i.nodeValue;else if(i.nodeType!==8)g+=a(i.childNodes)}return g}function b(d,g,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[d];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];break}if(s.nodeType===1&&!m){s.sizcache=i;s.sizset=n}if(s.nodeName.toLowerCase()===g){u=s;break}s=s[d]}j[n]=u}}}function e(d,g,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[d];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];
"",i,j=0;c[j];j++){i=c[j];if(i.nodeType===3||i.nodeType===4)f+=i.nodeValue;else if(i.nodeType!==8)f+=a(i.childNodes)}return f}function b(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];break}if(s.nodeType===1&&!m){s.sizcache=i;s.sizset=n}if(s.nodeName.toLowerCase()===f){u=s;break}s=s[c]}j[n]=u}}}function e(c,f,i,j,n,m){n=0;for(var t=j.length;n<t;n++){var s=j[n];if(s){s=s[c];for(var u=false;s;){if(s.sizcache===i){u=j[s.sizset];
var _$_WT_CLASS_$_=new (function(){function w(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(C!=null){if(!a)a=window.event;g.condCall(C,"onmousemove",a);return false}else return true}function B(a){if(C!=null){var b=C;g.capture(null);if(!a)a=window.event;g.condCall(b,"onmouseup",a);g.cancelEvent(a,g.CancelPropagate);return false}else return true}function ba(){if(!T){T= true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);g.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&g.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("onmouseup",B)}}}var g=this;this.buttons=0;this.mouseDown=function(a){g.buttons|=g.button(a)};this.mouseUp=function(a){g.buttons^=g.button(a)};this.arrayRemove=function(a,b,e){e=a.slice((e||
var _$_WT_CLASS_$_=new (function(){function w(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(C!=null){if(!a)a=window.event;h.condCall(C,"onmousemove",a);return false}else return true}function B(a){if(C!=null){var b=C;h.capture(null);if(!a)a=window.event;h.condCall(b,"onmouseup",a);h.cancelEvent(a,h.CancelPropagate);return false}else return true}function ba(){if(!T){T= true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);h.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&h.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("onmouseup",B)}}}var h=this;this.buttons=0;this.mouseDown=function(a){h.buttons|=h.button(a)};this.mouseUp=function(a){h.buttons^=h.button(a)};this.arrayRemove=function(a,b,e){e=a.slice((e||
var _$_WT_CLASS_$_=new (function(){function w(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(C!=null){if(!a)a=window.event;g.condCall(C,"onmousemove",a);return false}else return true}function B(a){if(C!=null){var b=C;g.capture(null);if(!a)a=window.event;g.condCall(b,"onmouseup",a);g.cancelEvent(a,g.CancelPropagate);return false}else return true}function ba(){if(!T){T=true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);g.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&g.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("onmouseup",B)}}}var g=this;this.buttons=0;this.mouseDown=function(a){g.buttons|=g.button(a)};this.mouseUp=function(a){g.buttons^=g.button(a)};this.arrayRemove=function(a,b,e){e=a.slice((e||
g=b.createDocumentFragment();d.clean(a,b,g,e)}if(h)d.fragments[a[0]]=k?g:1;return{fragment:g,cacheable:h}}function M(a){for(var b=0,e,g;(e=a[b])!=null;b++)if(!d.noData[e.nodeName.toLowerCase()]&&(g=e[B]))delete d.cache[g]}function ba(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var d=function(a,b){return new d.fn.init(a,b)},sa=x.jQuery,ta=x.$,r=x.document,N,ua=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,va=/^.[^:#\[\.,]*$/,wa=/\S/,xa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,
f=b.createDocumentFragment();c.clean(a,b,f,e)}if(h)c.fragments[a[0]]=k?f:1;return{fragment:f,cacheable:h}}function M(a){for(var b=0,e,f;(e=a[b])!=null;b++)if(!c.noData[e.nodeName.toLowerCase()]&&(f=e[B]))delete c.cache[f]}function ba(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},sa=x.jQuery,ta=x.$,r=x.document,N,ua=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,va=/^.[^:#\[\.,]*$/,wa=/\S/,xa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,
g=b.createDocumentFragment();d.clean(a,b,g,e)}if(h)d.fragments[a[0]]=k?g:1;return{fragment:g,cacheable:h}}function M(a){for(var b=0,e,g;(e=a[b])!=null;b++)if(!d.noData[e.nodeName.toLowerCase()]&&(g=e[B]))delete d.cache[g]}function ba(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var d=function(a,b){return new d.fn.init(a,b)},sa=x.jQuery,ta=x.$,r=x.document,N,ua=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,va=/^.[^:#\[\.,]*$/,wa=/\S/,xa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,
append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&
unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a= c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var e=this.outerHTML,f=this.ownerDocument;if(!e){e=
append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&
a._djScaytConfig={baseUrl:y,addOnLoad:[function(){a.fireOnce('scaytReady');}],isDebug:false};a.document.getHead().append(a.document.createElement('script',{attributes:{type:'text/javascript',src:x}}));return null;},parseUrl:function(u){var v;if(u.match&&(v=u.match(/(.*)[\/\\](.*?\.\w+)$/)))return{path:v[1],file:v[2]};else return u;}};var r=j.scayt,s=function(u,v,w,x,y,z,A){u.addCommand(x,y);u.addMenuItem(x,{label:w,command:x,group:z,order:A});},t={preserveState:true,editorFocus:false,exec:function(u){if(r.isScaytReady(u)){var v=r.isScaytEnabled(u);this.setState(v?2:1);var w=r.getScayt(u);w.setDisabled(v);}else if(!u.config.scayt_autoStartup&&r.engineLoaded>=0){this.setState(0);u.on('showScaytState',function(){this.removeListener();this.setState(r.isScaytEnabled(u)?1:2);},this);r.loadEngine(u);}}};j.add('scayt',{requires:['menubutton'],beforeInit:function(u){u.config.menu_groups='scayt_suggest,scayt_moresuggest,scayt_control,'+u.config.menu_groups;},init:function(u){var v={},w={},x=u.addCommand(l,t);a.dialog.add(l,a.getUrl(this.path+'dialogs/options.js'));var y=u.config.scayt_uiTabs||'1,1,1',z=[];y=y.split(',');for(var A=0,B=3;A<B;A++){var C=parseInt(y[A]||'1',10);z.push(C);}var D='scaytButton';u.addMenuGroup(D);var E={};E.scaytToggle={label:u.lang.scayt.enable,command:l,group:D};if(z[0]==1)E.scaytOptions={label:u.lang.scayt.options,group:D,onClick:function(){m='options';u.openDialog(l);}};if(z[1]==1)E.scaytLangs={label:u.lang.scayt.langs,group:D,onClick:function(){m='langs';u.openDialog(l);}};if(z[2]==1)E.scaytDict={label:u.lang.scayt.dictionariesTab,group:D,onClick:function(){m='dictionaries';u.openDialog(l);}};E.scaytAbout={label:u.lang.scayt.about,group:D,onClick:function(){m='about';u.openDialog(l);}};z[3]=1;r.uiTabs=z;u.addMenuItems(E);u.ui.add('Scayt',5,{label:u.lang.scayt.title,title:u.lang.scayt.title,className:'cke_button_scayt',onRender:function(){x.on('state',function(){this.setState(x.state);},this);},onMenu:function(){var G=r.isScaytEnabled(u);u.getMenuItem('scaytToggle').label=u.lang.scayt[G?'disable':'enable'];return{scaytToggle:2,scaytOptions:G&&r.uiTabs[0]?2:0,scaytLangs:G&&r.uiTabs[1]?2:0,scaytDict:G&&r.uiTabs[2]?2:0,scaytAbout:G&&r.uiTabs[3]?2:0};}});if(u.contextMenu&&u.addMenuItems)u.contextMenu.addListener(function(){if(!r.isScaytEnabled(u))return null;var G=r.getScayt(u),H=G.getScaytNode();if(!H)return null;var I=G.getWord(H);if(!I)return null;var J=G.getLang(),K={},L=window.scayt.getSuggestion(I,J);if(!L||!L.length)return null;for(A in v){delete u._.menuItems[A];
});a.on('scaytReady',o,s);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var t=document.location.protocol;t=t.search(/https?:/)!=-1?t:'http:';var u='svc.spellchecker.net/scayt25/loader__base.js',v=s.config.scayt_srcUrl||t+'
a._djScaytConfig={baseUrl:y,addOnLoad:[function(){a.fireOnce('scaytReady');}],isDebug:false};a.document.getHead().append(a.document.createElement('script',{attributes:{type:'text/javascript',src:x}}));return null;},parseUrl:function(u){var v;if(u.match&&(v=u.match(/(.*)[\/\\](.*?\.\w+)$/)))return{path:v[1],file:v[2]};else return u;}};var r=j.scayt,s=function(u,v,w,x,y,z,A){u.addCommand(x,y);u.addMenuItem(x,{label:w,command:x,group:z,order:A});},t={preserveState:true,editorFocus:false,exec:function(u){if(r.isScaytReady(u)){var v=r.isScaytEnabled(u);this.setState(v?2:1);var w=r.getScayt(u);w.setDisabled(v);}else if(!u.config.scayt_autoStartup&&r.engineLoaded>=0){this.setState(0);u.on('showScaytState',function(){this.removeListener();this.setState(r.isScaytEnabled(u)?1:2);},this);r.loadEngine(u);}}};j.add('scayt',{requires:['menubutton'],beforeInit:function(u){u.config.menu_groups='scayt_suggest,scayt_moresuggest,scayt_control,'+u.config.menu_groups;},init:function(u){var v={},w={},x=u.addCommand(l,t);a.dialog.add(l,a.getUrl(this.path+'dialogs/options.js'));var y=u.config.scayt_uiTabs||'1,1,1',z=[];y=y.split(',');for(var A=0,B=3;A<B;A++){var C=parseInt(y[A]||'1',10);z.push(C);}var D='scaytButton';u.addMenuGroup(D);var E={};E.scaytToggle={label:u.lang.scayt.enable,command:l,group:D};if(z[0]==1)E.scaytOptions={label:u.lang.scayt.options,group:D,onClick:function(){m='options';u.openDialog(l);}};if(z[1]==1)E.scaytLangs={label:u.lang.scayt.langs,group:D,onClick:function(){m='langs';u.openDialog(l);}};if(z[2]==1)E.scaytDict={label:u.lang.scayt.dictionariesTab,group:D,onClick:function(){m='dictionaries';u.openDialog(l);}};E.scaytAbout={label:u.lang.scayt.about,group:D,onClick:function(){m='about';u.openDialog(l);}};z[3]=1;r.uiTabs=z;u.addMenuItems(E);u.ui.add('Scayt',5,{label:u.lang.scayt.title,title:u.lang.scayt.title,className:'cke_button_scayt',onRender:function(){x.on('state',function(){this.setState(x.state);},this);},onMenu:function(){var G=r.isScaytEnabled(u);u.getMenuItem('scaytToggle').label=u.lang.scayt[G?'disable':'enable'];return{scaytToggle:2,scaytOptions:G&&r.uiTabs[0]?2:0,scaytLangs:G&&r.uiTabs[1]?2:0,scaytDict:G&&r.uiTabs[2]?2:0,scaytAbout:G&&r.uiTabs[3]?2:0};}});if(u.contextMenu&&u.addMenuItems)u.contextMenu.addListener(function(){if(!r.isScaytEnabled(u))return null;var G=r.getScayt(u),H=G.getScaytNode();if(!H)return null;var I=G.getWord(H);if(!I)return null;var J=G.getLang(),K={},L=window.scayt.getSuggestion(I,J);if(!L||!L.length)return null;for(A in v){delete u._.menuItems[A];
if(typeof refNode == 'undefined') parentPageID = 0; else var parentPageID = $(refNode).attr('id').replace('page-', '')
beforeMove: function(node, refNode, type, tree) { // get pageID that has to be moved var currentPageID = $(node).attr('id').replace('page-', ''); // home is a special item if($(refNode).attr('id').replace('page-', '') == '1') { if(type == 'before') return false; if(type == 'after') return false; } // init var var result = false; // make the call $.ajax({ async: false, // important that this isn't asynchronous url: '/backend/ajax.php?module=pages&action=get_info&language={$LANGUAGE}', data: 'id=' + currentPageID, error: function(XMLHttpRequest, textStatus, errorThrown) { if(jsBackend.debug) alert(textStatus); result = false; }, success: function(json, textStatus) { if(json.code != 200) { if(jsBackend.debug) alert(textStatus); result = false; } else { if(json.data.allow_move == 'Y') result = true; } } }); // return return result; },
if($(refNode).attr('id').replace('page-', '') == '1')
if(parentPageID == '1')
beforeMove: function(node, refNode, type, tree) { // get pageID that has to be moved var currentPageID = $(node).attr('id').replace('page-', ''); // home is a special item if($(refNode).attr('id').replace('page-', '') == '1') { if(type == 'before') return false; if(type == 'after') return false; } // init var var result = false; // make the call $.ajax({ async: false, // important that this isn't asynchronous url: '/backend/ajax.php?module=pages&action=get_info&language={$LANGUAGE}', data: 'id=' + currentPageID, error: function(XMLHttpRequest, textStatus, errorThrown) { if(jsBackend.debug) alert(textStatus); result = false; }, success: function(json, textStatus) { if(json.code != 200) { if(jsBackend.debug) alert(textStatus); result = false; } else { if(json.data.allow_move == 'Y') result = true; } } }); // return return result; },
if($(refNode).attr('id').replace('page-', '') == '1') { if(type == 'before') return false; if(type == 'after') return false; }
beforeMove: function(node, refNode, type, tree) { // get pageID that has to be moved var currentPageID = $(node).attr('id').replace('page-', ''); // init var var result = false; // make the call $.ajax({ type: 'POST', dataType: 'json', async: false, // important that this isn't asynchronous url: '/backend/ajax.php?module=pages&action=get_info&language={$LANGUAGE}', data: 'id=' + currentPageID, error: function(XMLHttpRequest, textStatus, errorThrown) { if(jsBackend.debug) alert(textStatus); result = false; }, success: function(json, textStatus) { if(json.code != 200) { if(jsBackend.debug) alert(textStatus); result = false; } else { if(json.data.allow_move == 'Y') result = true; } } }); // return return result; },
type = Zotero.Utilities.cleanString(type.toLowerCase());
type = Zotero.Utilities.trimInternal(type.toLowerCase());
function beginRecord(type, closeChar) { type = Zotero.Utilities.cleanString(type.toLowerCase()); if(type != "string") { var zoteroType = bibtex2zoteroTypeMap[type]; if (!zoteroType) { Zotero.debug("discarded item from BibTeX; type was "+type); } var item = new Zotero.Item(zoteroType); item.extra = ""; } var field = ""; // by setting dontRead to true, we can skip a read on the next iteration // of this loop. this is useful after we read past the end of a string. var dontRead = false; while(dontRead || (read = Zotero.read(1))) { dontRead = false; if(read == "=") { // equals begin a field // read whitespace var read = Zotero.read(1); while(" \n\r\t".indexOf(read) != -1) { read = Zotero.read(1); } if(keyRe.test(read)) { // read numeric data here, since we might get an end bracket // that we should care about value = ""; value += read; // character is a number while((read = Zotero.read(1)) && keyRe.test(read)) { value += read; } // don't read the next char; instead, process the character // we already read past the end of the string dontRead = true; // see if there's a defined string if(strings[value]) value = strings[value]; } else { var value = getFieldValue(read); } if(item) { processField(item, field.toLowerCase(), value); } else if(type == "string") { strings[field] = value; } field = ""; } else if(read == ",") { // commas reset field = ""; } else if(read == closeChar) { if(item) { if(item.extra) item.extra = item.extra.substr(1); // chop \n item.complete(); } return; } else if(" \n\r\t".indexOf(read) == -1) { // skip whitespace field += read; } }}
[settings.effect](settings.effectspeed);self.loaded=true;});};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});};$.belowthefold=function(element,settings){var fold=$(window).height()+$(window).scrollTop();return fold<=$(element).offset().top-settings.threshold;};$.rightoffold=function(element,settings){var fold=$(window).width()+$(window).scrollLeft();return fold<=$(element).offset().left-settings.threshold;};$.extend($.expr[':'],{"below-the-fold":"$.belowthefold(a, {threshold : 0})","above-the-fold":"!$.belowthefold(a, {threshold : 0})","right-of-fold":"$.rightoffold(a, {threshold : 0})","left-of-fold":"!$.rightoffold(a, {threshold : 0})"});})(jQuery);
[settings.effect](settings.effectspeed);self.loaded=true;}).attr("src",$(self).attr("original"));};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});$(settings.container).trigger(settings.event);return this;};$.belowthefold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).height()+$(window).scrollTop();}else{var fold=$(settings.container).offset().top+$(settings.container).height();} return fold<=$(element).offset().top-settings.threshold;};$.rightoffold=function(element,settings){if(settings.container===undefined||settings.container===window){var fold=$(window).width()+$(window).scrollLeft();}else{var fold=$(settings.container).offset().left+$(settings.container).width();}
[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);
key += "";
bind: function(exchange, key) { key = key || ""; if (!MQ.exchanges[exchange]) { var type = ""; if (!key.length) { type = 'fanout'; } else if (key.match(/[\*|#]/) ) { type = 'topic'; } else { type = 'direct'; }; MQ.exchange(exchange, {type: type}); }; if(!this.bindings[exchange]) { this.bindings[exchange] = {} } if(!this.bindings[exchange][key]) { this.bindings[exchange][key] = new Binding(this.queue, exchange, key); } return this.bindings[exchange][key]; },
}, open: function(evt) { if($(this).next().find('button').length > 0) { $(this).next().find('button')[0].focus(); }
bindConfirm: function() { // initialize $('.askConfirmation').each(function() { // get id var id = $(this).attr('rel'); var url = $(this).attr('href'); // initialize $('#'+ id).dialog({ autoOpen: false, draggable: false, resizable: false, modal: true, buttons: { '{$lblOK|ucfirst}': function() { // close dialog $(this).dialog('close'); // goto link window.location = url; }, '{$lblCancel|ucfirst}': function() { $(this).dialog('close'); } } }); }); // bind clicks $('.askConfirmation').live('click', function(evt) { // prevent default evt.preventDefault(); // get id var id = $(this).attr('rel'); // bind $('#'+ id).dialog('open'); }); },
ta;if(a)x.jQuery=sa;return d},isReady:false,ready:function(){if(!d.isReady){if(!r.body)return setTimeout(d.ready,13);d.isReady=true;if(H){for(var a,b=0;a=H[b++];)a.call(r,d);H=null}d.fn.triggerHandler&&d(r).triggerHandler("ready")}},bindReady:function(){if(!ca){ca=true;if(r.readyState==="complete")return d.ready();if(r.addEventListener){r.addEventListener("DOMContentLoaded",E,false);x.addEventListener("load",d.ready,false)}else if(r.attachEvent){r.attachEvent("onreadystatechange",E);x.attachEvent("onload", d.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;
ta;if(a)x.jQuery=sa;return c},isReady:false,ready:function(){if(!c.isReady){if(!r.body)return setTimeout(c.ready,13);c.isReady=true;if(H){for(var a,b=0;a=H[b++];)a.call(r,c);H=null}c.fn.triggerHandler&&c(r).triggerHandler("ready")}},bindReady:function(){if(!ca){ca=true;if(r.readyState==="complete")return c.ready();if(r.addEventListener){r.addEventListener("DOMContentLoaded",E,false);x.addEventListener("load",c.ready,false)}else if(r.attachEvent){r.attachEvent("onreadystatechange",E);x.attachEvent("onload", c.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;
ta;if(a)x.jQuery=sa;return d},isReady:false,ready:function(){if(!d.isReady){if(!r.body)return setTimeout(d.ready,13);d.isReady=true;if(H){for(var a,b=0;a=H[b++];)a.call(r,d);H=null}d.fn.triggerHandler&&d(r).triggerHandler("ready")}},bindReady:function(){if(!ca){ca=true;if(r.readyState==="complete")return d.ready();if(r.addEventListener){r.addEventListener("DOMContentLoaded",E,false);x.addEventListener("load",d.ready,false)}else if(r.attachEvent){r.attachEvent("onreadystatechange",E);x.attachEvent("onload",d.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;
g.px(a,"borderLeftWidth")-g.px(a,"borderRightWidth")-g.px(a.parentNode,"paddingLeft")-g.px(a.parentNode,"paddingRight");b=U(b,0);f=U(f,1E5);return l<b?b-1:l>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=""};var z=null;this.firedTarget=null;this.target=
"body"?g.isHidden(a):false}};this.IEwidth=function(a,b,f){if(a.parentNode){var l=a.parentNode.clientWidth-g.px(a,"marginLeft")-g.px(a,"marginRight")-g.px(a,"borderLeftWidth")-g.px(a,"borderRightWidth")-g.px(a.parentNode,"paddingLeft")-g.px(a.parentNode,"paddingRight");b=U(b,0);f=U(f,1E5);return l<b?b-1:l>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display= "block"};this.show=function(a){g.getElement(a).style.display=""};var z=null;this.firedTarget=null;this.target=function(a){return g.firedTarget||a.target||a.srcElement};var da=false;this.capture=function(a){W();if(!(z&&a)){z=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){$(b).addClass("unselectable");b.setAttribute("unselectable","on");b.onselectstart="return false;"}else{$(b).removeClass("unselectable");b.setAttribute("unselectable","off");b.onselectstart=
g.px(a,"borderLeftWidth")-g.px(a,"borderRightWidth")-g.px(a.parentNode,"paddingLeft")-g.px(a.parentNode,"paddingRight");b=U(b,0);f=U(f,1E5);return l<b?b-1:l>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=""};var z=null;this.firedTarget=null;this.target=
g.px(a,"borderRightWidth")-g.px(a.parentNode,"paddingLeft")-g.px(a.parentNode,"paddingRight");b=U(b,0);f=U(f,1E5);return l<b?b-1:l>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=""};var z=null;this.firedTarget=null;this.target=function(a){return g.firedTarget||
g.px(a,"borderLeftWidth")-g.px(a,"borderRightWidth")-g.px(a.parentNode,"paddingLeft")-g.px(a.parentNode,"paddingRight");b=U(b,0);f=U(f,1E5);return l<b?b-1:l>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=""};var z=null;this.firedTarget=null;this.target=
g.px(a,"borderRightWidth")-g.px(a.parentNode,"paddingLeft")-g.px(a.parentNode,"paddingRight");b=U(b,0);f=U(f,1E5);return l<b?b-1:l>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=""};var z=null;this.firedTarget=null;this.target=function(a){return g.firedTarget||
2?i[1]:"0")?parseFloat(i):0;e=(i=(i=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(e))&&i.length==2?i[1]:"100000")?parseFloat(i):1E5;return k<b?b-1:k>e?e+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){h.getElement(a).style.display="none"};this.inline=function(a){h.getElement(a).style.display="inline"};this.block=function(a){h.getElement(a).style.display="block"};this.show=function(a){h.getElement(a).style.display=""};var C=null,T=false;this.capture=function(a){ba();if(!(C&&a)){C=
2?i[1]:"0")?parseFloat(i):0;e=(i=(i=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(e))&&i.length==2?i[1]:"100000")?parseFloat(i):1E5;return j<b?b-1:j>e?e+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=""};var B=null,S=false;this.capture=function(a){aa();if(!(B&&a)){B=
2?i[1]:"0")?parseFloat(i):0;e=(i=(i=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(e))&&i.length==2?i[1]:"100000")?parseFloat(i):1E5;return k<b?b-1:k>e?e+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){h.getElement(a).style.display="none"};this.inline=function(a){h.getElement(a).style.display="inline"};this.block=function(a){h.getElement(a).style.display="block"};this.show=function(a){h.getElement(a).style.display=""};var C=null,T=false;this.capture=function(a){ba();if(!(C&&a)){C=
""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=""};var C=null,T=false;this.capture=function(a){ba();if(!(C&&a)){C=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){$(b).addClass("unselectable");b.setAttribute("unselectable","on");b.onselectstart=
""?b-1:"auto"}else return"auto"};this.hide=function(a){h.getElement(a).style.display="none"};this.inline=function(a){h.getElement(a).style.display="inline"};this.block=function(a){h.getElement(a).style.display="block"};this.show=function(a){h.getElement(a).style.display=""};var C=null,T=false;this.capture=function(a){ba();if(!(C&&a)){C=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){$(b).addClass("unselectable");b.setAttribute("unselectable","on");b.onselectstart=
""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=""};var C=null,T=false;this.capture=function(a){ba();if(!(C&&a)){C=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){$(b).addClass("unselectable");b.setAttribute("unselectable","on");b.onselectstart=
"paddingRight"),k=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(b);b=(k=k&&k.length==2?k[1]:"0")?parseFloat(k):0;f=(k=(k=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(f))&&k.length==2?k[1]:"100000")?parseFloat(k):1E5;return h<b?b-1:h>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=
"none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=""};var B=null,S=false,Y=false;this.capture=function(a){ca();if(!(B&&a)){B=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){$(b).addClass("unselectable");b.setAttribute("unselectable","on");b.onselectstart="return false;"}else{$(b).removeClass("unselectable");b.setAttribute("unselectable",
"paddingRight"),k=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(b);b=(k=k&&k.length==2?k[1]:"0")?parseFloat(k):0;f=(k=(k=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(f))&&k.length==2?k[1]:"100000")?parseFloat(k):1E5;return h<b?b-1:h>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){g.getElement(a).style.display="none"};this.inline=function(a){g.getElement(a).style.display="inline"};this.block=function(a){g.getElement(a).style.display="block"};this.show=function(a){g.getElement(a).style.display=
this.hide=function(a){k.getElement(a).style.display="none"};this.inline=function(a){k.getElement(a).style.display="inline"};this.block=function(a){k.getElement(a).style.display="block"};this.show=function(a){k.getElement(a).style.display=""};var G=null,P=false;this.capture=function(a){F();G=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){b.className="unselectable";b.setAttribute("unselectable","on");b.onselectstart="return false;"}else{b.className="";b.setAttribute("unselectable",
"inline"};this.block=function(a){k.getElement(a).style.display="block"};this.show=function(a){k.getElement(a).style.display=""};var D=null,R=false;this.capture=function(a){Y();D=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){b.className="unselectable";b.setAttribute("unselectable","on");b.onselectstart="return false;"}else{b.className="";b.setAttribute("unselectable","off");b.onselectstart=""}};this.checkReleaseCapture=function(a,b){D&&a==D&&b.type=="mouseup"&&
this.hide=function(a){k.getElement(a).style.display="none"};this.inline=function(a){k.getElement(a).style.display="inline"};this.block=function(a){k.getElement(a).style.display="block"};this.show=function(a){k.getElement(a).style.display=""};var G=null,P=false;this.capture=function(a){F();G=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){b.className="unselectable";b.setAttribute("unselectable","on");b.onselectstart="return false;"}else{b.className="";b.setAttribute("unselectable",
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B;
v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_cke_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B;
}else{v=w.startContainer;v=v.getChild(w.startOffset);if(v){if(x(v)===false)v=null;}else v=x(w.startContainer,true)===false?null:w.startContainer.getNextSourceNode(true,z,x);}while(v&&!this._.end){this.current=v;if(!this.evaluator||this.evaluator(v)!==false){if(!u)return v;}else if(u&&this.evaluator)return false;v=v[A](false,z,x);}this.end();return this.current=null;};function m(t){var u,v=null;while(u=l.call(this,t))v=u;return v;};d.walker=e.createClass({$:function(t){this.range=t;this._={};},proto:{end:function(){this._.end=1;},next:function(){return l.call(this);},previous:function(){return l.call(this,true);},checkForward:function(){return l.call(this,false,true)!==false;},checkBackward:function(){return l.call(this,true,true)!==false;},lastForward:function(){return m.call(this);},lastBackward:function(){return m.call(this,true);},reset:function(){delete this.current;this._={};}}});var n={block:1,'list-item':1,table:1,'table-row-group':1,'table-header-group':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-column':1,'table-cell':1,'table-caption':1},o={hr:1};h.prototype.isBlockBoundary=function(t){var u=e.extend({},o,t||{});return n[this.getComputedStyle('display')]||u[this.getName()];};d.walker.blockBoundary=function(t){return function(u,v){return!(u.type==1&&u.isBlockBoundary(t));};};d.walker.listItemBoundary=function(){return this.blockBoundary({br:1});};d.walker.bookmarkContents=function(t){},d.walker.bookmark=function(t,u){function v(w){return w&&w.getName&&w.getName()=='span'&&w.hasAttribute('_fck_bookmark');};return function(w){var x,y;x=w&&!w.getName&&(y=w.getParent())&&v(y);x=t?x:x||v(w);return u^x;};};d.walker.whitespaces=function(t){return function(u){var v=u&&u.type==3&&!e.trim(u.getText());return t^v;};};d.walker.invisible=function(t){var u=d.walker.whitespaces();return function(v){var w=u(v)||v.is&&!v.$.offsetHeight;return t^w;};};var p=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,q=d.walker.whitespaces(true),r=d.walker.bookmark(false,true),s=function(t){return r(t)&&q(t);};h.prototype.getBogus=function(){var t=this.getLast(s);if(t&&(!c?t.is&&t.is('br'):t.getText&&p.test(t.getText())))return t;return false;};})();d.range=function(l){var m=this;m.startContainer=null;m.startOffset=null;m.endContainer=null;m.endOffset=null;m.collapsed=true;m.document=l;};(function(){var l=function(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset;},m=function(t,u,v){t.optimizeBookmark();var w=t.startContainer,x=t.endContainer,y=t.startOffset,z=t.endOffset,A,B;
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');
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;
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');
R in P&&delete P[Q[S]];}}return O;},embed:function(O){var P=O.parent;if(P&&P.name=='object'){var Q=P.attributes.width,R=P.attributes.height;Q&&(O.attributes.width=Q);R&&(O.attributes.height=R);}},param:function(O){O.children=[];O.isEmpty=true;return O;},a:function(O){if(!(O.children.length||O.attributes.name||O.attributes._cke_saved_name))return false;},body:function(O){delete O.attributes.spellcheck;delete O.attributes.contenteditable;},style:function(O){var P=O.children[0];P&&P.value&&(P.value=e.trim(P.value));if(!O.attributes.type)O.attributes.type='text/css';},title:function(O){O.children[0].value=O.attributes._cke_title;}},attributes:{'class':function(O,P){return e.ltrim(O.replace(/(?:^|\s+)cke_[^\s]*/g,''))||false;}},comment:function(O){if(O.substr(0,m.length)==m){if(O.substr(m.length,3)=='{C}')O=O.substr(m.length+3);else O=O.substr(m.length);return new a.htmlParser.cdata(decodeURIComponent(O));}return O;}},y={elements:{}};for(u in t)y.elements[u]=r;if(c)x.attributes.style=function(O,P){return O.toLowerCase();};var z=/<(?:a|area|img|input)[\s\S]*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi,A=/(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,B=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,C=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,D=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,E=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi;function F(O){return O.replace(z,'$& _cke_saved_$1');};function G(O){return O.replace(A,function(P){return '<cke:encoded>'+encodeURIComponent(P)+'</cke:encoded>';});};function H(O){return O.replace(B,function(P,Q){return decodeURIComponent(Q);});};function I(O){return O.replace(C,'$1cke:$2');};function J(O){return O.replace(D,'$1$2');};function K(O){return O.replace(E,'<cke:$1$2></cke:$1>');};function L(O){return O.replace(/<!--(?!{cke_protected})[\s\S]+?-->/g,function(P){return '<!--'+m+'{C}'+encodeURIComponent(P).replace(/--/g,'%2D%2D')+'-->';});};function M(O){return O.replace(/<!--\{cke_protected\}\{C\}([\s\S]+?)-->/g,function(P,Q){return decodeURIComponent(Q);});};function N(O,P){var Q=[],R=/<\!--\{cke_temp(comment)?\}(\d*?)-->/g,S=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(P);O=O.replace(/<!--[\s\S]*?-->/g,function(U){return '<!--{cke_tempcomment}'+(Q.push(U)-1)+'-->';});for(var T=0;T<S.length;T++)O=O.replace(S[T],function(U){U=U.replace(R,function(V,W,X){return Q[X];});return '<!--{cke_temp}'+(Q.push(U)-1)+'-->';});O=O.replace(R,function(U,V,W){return '<!--'+m+(V?'{C}':'')+encodeURIComponent(Q[W]).replace(/--/g,'%2D%2D')+'-->';
if(c)n&&n.addRules({elements:{input:function(p){var q=p.attributes,r=q.type;if(r=='checkbox'||r=='radio')q.value=='on'&&delete q.value;}}});if(o)o.addRules({elements:{input:function(p){if(p.attributes.type=='hidden')return l.createFakeParserElement(p,'cke_hidden','hiddenfield');}}});},requires:['image','fakeobjects']});if(c)h.prototype.hasAttribute=function(l){var o=this;var m=o.$.attributes.getNamedItem(l);if(o.getName()=='input')switch(l){case 'class':return o.$.className.length>0;case 'checked':return!!o.$.checked;case 'value':var n=o.getAttribute('type');if(n=='checkbox'||n=='radio')return o.$.value!='on';break;default:}return!!(m&&m.specified);};(function(){var l={canUndo:false,exec:function(n){n.insertElement(n.document.createElement('hr'));}},m='horizontalrule';j.add(m,{init:function(n){n.addCommand(m,l);n.ui.addButton('HorizontalRule',{label:n.lang.horizontalrule,command:m});}});})();(function(){var l=/^[\t\r\n ]*(?:&nbsp;|\xa0)$/,m='{cke_protected}';function n(R){var S=R.children.length,T=R.children[S-1];while(T&&T.type==3&&!e.trim(T.value))T=R.children[--S];return T;};function o(R,S){var T=R.children,U=n(R);if(U){if((S||!c)&&U.type==1&&U.name=='br')T.pop();if(U.type==3&&l.test(U.value))T.pop();}};function p(R){var S=n(R);return!S||S.type==1&&S.name=='br'||R.name=='form'&&S.name=='input';};function q(R){o(R,true);if(p(R))if(c)R.add(new a.htmlParser.text('\xa0'));else R.add(new a.htmlParser.element('br',{}));};function r(R){o(R);if(p(R))R.add(new a.htmlParser.text('\xa0'));};var s=f,t=e.extend({},s.$block,s.$listItem,s.$tableContent);for(var u in t){if(!('br' in s[u]))delete t[u];}delete t.pre;var v={elements:{},attributeNames:[[/^on/,'_cke_pa_on']]},w={elements:{}};for(u in t)w.elements[u]=q;var x={elementNames:[[/^cke:/,''],[/^\?xml:namespace$/,'']],attributeNames:[[/^_cke_(saved|pa)_/,''],[/^_cke.*/,''],['hidefocus','']],elements:{$:function(R){var S=R.attributes;if(S){if(S.cke_temp)return false;var T=['name','href','src'],U;for(var V=0;V<T.length;V++){U='_cke_saved_'+T[V];U in S&&delete S[T[V]];}}return R;},embed:function(R){var S=R.parent;if(S&&S.name=='object'){var T=S.attributes.width,U=S.attributes.height;T&&(R.attributes.width=T);U&&(R.attributes.height=U);}},param:function(R){R.children=[];R.isEmpty=true;return R;},a:function(R){if(!(R.children.length||R.attributes.name||R.attributes._cke_saved_name))return false;},html:function(R){delete R.attributes.contenteditable;delete R.attributes['class'];},body:function(R){delete R.attributes.spellcheck; delete R.attributes.contenteditable;},style:function(R){var S=R.children[0];S&&S.value&&(S.value=e.trim(S.value));if(!R.attributes.type)R.attributes.type='text/css';},title:function(R){var S=R.children[0];S&&(S.value=R.attributes._cke_title||'');}},attributes:{'class':function(R,S){return e.ltrim(R.replace(/(?:^|\s+)cke_[^\s]*/g,''))||false;}},comment:function(R){if(R.substr(0,m.length)==m){if(R.substr(m.length,3)=='{C}')R=R.substr(m.length+3);else R=R.substr(m.length);return new a.htmlParser.cdata(decodeURIComponent(R));}return R;}},y={elements:{}};for(u in t)y.elements[u]=r;if(c)x.attributes.style=function(R,S){return R.toLowerCase();};function z(R){R.attributes.contenteditable='false';};function A(R){delete R.attributes.contenteditable;};for(u in {input:1,textarea:1}){v.elements[u]=z;x.elements[u]=A;}var B=/<((?:a|area|img|input)[\s\S]*?\s)((href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))([^>]*)>/gi,C=/\s_cke_saved_src\s*=/,D=/(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,E=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,F=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,G=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,H=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi;function I(R){return R.replace(B,function(S,T,U,V,W){if(V=='src'&&C.test(S))return S;else return '<'+T+U+' _cke_saved_'+U+W+'>';});};function J(R){return R.replace(D,function(S){return '<cke:encoded>'+encodeURIComponent(S)+'</cke:encoded>';});};function K(R){return R.replace(E,function(S,T){return decodeURIComponent(T);});};function L(R){return R.replace(F,'$1cke:$2');};function M(R){return R.replace(G,'$1$2');};function N(R){return R.replace(H,'<cke:$1$2></cke:$1>');};function O(R){return R.replace(/<!--(?!{cke_protected})[\s\S]+?-->/g,function(S){return '<!--'+m+'{C}'+encodeURIComponent(S).replace(/--/g,'%2D%2D')+'-->';});};function P(R){return R.replace(/<!--\{cke_protected\}\{C\}([\s\S]+?)-->/g,function(S,T){return decodeURIComponent(T);});};function Q(R,S){var T=[],U=/<\!--\{cke_temp(comment)?\}(\d*?)-->/g,V=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(S);R=R.replace(/<!--[\s\S]*?-->/g,function(X){return '<!--{cke_tempcomment}'+(T.push(X)-1)+'-->';});for(var W=0;W<V.length;W++)R=R.replace(V[W],function(X){X=X.replace(U,function(Y,Z,aa){return T[aa];});return '<!--{cke_temp}'+(T.push(X)-1)+'-->';});R=R.replace(U,function(X,Y,Z){return '<!--'+m+(Y?'{C}':'')+encodeURIComponent(T[Z]).replace(/--/g,'%2D%2D')+'-->';
R in P&&delete P[Q[S]];}}return O;},embed:function(O){var P=O.parent;if(P&&P.name=='object'){var Q=P.attributes.width,R=P.attributes.height;Q&&(O.attributes.width=Q);R&&(O.attributes.height=R);}},param:function(O){O.children=[];O.isEmpty=true;return O;},a:function(O){if(!(O.children.length||O.attributes.name||O.attributes._cke_saved_name))return false;},body:function(O){delete O.attributes.spellcheck;delete O.attributes.contenteditable;},style:function(O){var P=O.children[0];P&&P.value&&(P.value=e.trim(P.value));if(!O.attributes.type)O.attributes.type='text/css';},title:function(O){O.children[0].value=O.attributes._cke_title;}},attributes:{'class':function(O,P){return e.ltrim(O.replace(/(?:^|\s+)cke_[^\s]*/g,''))||false;}},comment:function(O){if(O.substr(0,m.length)==m){if(O.substr(m.length,3)=='{C}')O=O.substr(m.length+3);else O=O.substr(m.length);return new a.htmlParser.cdata(decodeURIComponent(O));}return O;}},y={elements:{}};for(u in t)y.elements[u]=r;if(c)x.attributes.style=function(O,P){return O.toLowerCase();};var z=/<(?:a|area|img|input)[\s\S]*?\s((?:href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+)))/gi,A=/(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,B=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,C=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,D=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,E=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi;function F(O){return O.replace(z,'$& _cke_saved_$1');};function G(O){return O.replace(A,function(P){return '<cke:encoded>'+encodeURIComponent(P)+'</cke:encoded>';});};function H(O){return O.replace(B,function(P,Q){return decodeURIComponent(Q);});};function I(O){return O.replace(C,'$1cke:$2');};function J(O){return O.replace(D,'$1$2');};function K(O){return O.replace(E,'<cke:$1$2></cke:$1>');};function L(O){return O.replace(/<!--(?!{cke_protected})[\s\S]+?-->/g,function(P){return '<!--'+m+'{C}'+encodeURIComponent(P).replace(/--/g,'%2D%2D')+'-->';});};function M(O){return O.replace(/<!--\{cke_protected\}\{C\}([\s\S]+?)-->/g,function(P,Q){return decodeURIComponent(Q);});};function N(O,P){var Q=[],R=/<\!--\{cke_temp(comment)?\}(\d*?)-->/g,S=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(P);O=O.replace(/<!--[\s\S]*?-->/g,function(U){return '<!--{cke_tempcomment}'+(Q.push(U)-1)+'-->';});for(var T=0;T<S.length;T++)O=O.replace(S[T],function(U){U=U.replace(R,function(V,W,X){return Q[X];});return '<!--{cke_temp}'+(Q.push(U)-1)+'-->';});O=O.replace(R,function(U,V,W){return '<!--'+m+(V?'{C}':'')+encodeURIComponent(Q[W]).replace(/--/g,'%2D%2D')+'-->';
d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,e=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(d.curCSS(a,"marginTop",true))||0;e+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:b,left:e}},setOffset:function(a,b,e){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var g=d(a),h=g.offset(),k=parseInt(d.curCSS(a,"top",true),10)||0,l=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(b))b=b.call(a,
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,e=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;e+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:e}},setOffset:function(a,b,e){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),h=f.offset(),k=parseInt(c.curCSS(a,"top",true),10)||0,l=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,e=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(d.curCSS(a,"marginTop",true))||0;e+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:b,left:e}},setOffset:function(a,b,e){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var g=d(a),h=g.offset(),k=parseInt(d.curCSS(a,"top",true),10)||0,l=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(b))b=b.call(a,
context.filters.push(function (item) this._match(v, item[k]));
context.filters.push(function (item) this._match(v, item[k] || ""));
completion.bookmark = function bookmark(context, tags, extra) { context.title = ["Bookmark", "Title"]; context.format = bookmarks.format; for (let val in Iterator(extra || [])) { let [k, v] = val; // Need block scope here for the closure if (v) context.filters.push(function (item) this._match(v, item[k])); } // Need to make a copy because set completions() checks instanceof Array, // and this may be an Array from another window. context.completions = Array.slice(storage["bookmark-cache"].bookmarks); completion.urls(context, tags); };
bookmarkDescription: function (item, text)
bookmarkDescription: function (item, text, filter)
bookmarkDescription: function (item, text) <> <a href={item.item.url} highlight="URL">{text}</a>&#160; { !(item.extra && item.extra.length) ? "" : <span class="extra-info"> ({ template.map(item.extra, function (e) <>{e[0]}: <span highlight={e[2]}>{e[1]}</span></>, <>&#xa0;</>/* Non-breaking space */) }) </span> } </>,
<a href={item.item.url} highlight="URL">{text}</a>&#160;
<a href={item.item.url} highlight="URL">({template.highlightFilter(text, filter)})</a>&#160;
bookmarkDescription: function (item, text) <> <a href={item.item.url} highlight="URL">{text}</a>&#160; { !(item.extra && item.extra.length) ? "" : <span class="extra-info"> ({ template.map(item.extra, function (e) <>{e[0]}: <span highlight={e[2]}>{e[1]}</span></>, <>&#xa0;</>/* Non-breaking space */) }) </span> } </>,
if (g_IsIE)
if (g_IsIE) {
function Borehole_parseXmlElement(pBoreholeNode) { var nodeBorehole = pBoreholeNode; if (g_IsIE) nodeBorehole.setProperty("SelectionLanguage", "XPath"); /** * Sample XML fragment for updateCSWRecords gsml:borehole node - * * <gsml:Borehole gml:id="nvcl_core.4"> * <gml:metaDataProperty xlink:href="http://nvcl.csiro.au/projects.aspx%3Fprojectid=Ernest%20Henry" xlink:role="Project" xlink:title="Ernest Henry"/> * <gml:name>EH432_DB</gml:name> * <sa:sampledFeature xlink:href="urn:ogc:def:nil:OGC:unknown"/> * <sa:shape/> * <gsml:collarLocation> * <gsml:BoreholeCollar> * <gsml:location> * <gml:Point srsName="EPSG:4326"> * <gml:pos>140.717 -20.4528</gml:pos> * </gml:Point> * </gsml:location> * </gsml:BoreholeCollar> * </gsml:collarLocation> * <gsml:indexData> * <gsml:BoreholeDetails> * <gsml:operator xlink:href="urn:cgi:party:CSIRO:Melissa%20Quigley"/> * <gsml:dateOfDrilling>2007-03-30+08:00</gsml:dateOfDrilling> * <gsml:drillingMethod>diamond core</gsml:drillingMethod> * <gsml:startPoint>natural ground surface</gsml:startPoint> * <gsml:inclinationType>vertical</gsml:inclinationType> * <gsml:coredInterval/> * <gsml:coreCustodian xlink:href="urn:cgi:party:CSIRO:Xstrata"/> * </gsml:BoreholeDetails> * </gsml:indexData> * </gsml:Borehole> */ var sId = null; var sName = null; var metaDataNode, sProject = null; var coreCustodianNode, sCoreCustodian, aCoreCustodian = null; var sDateOfDrilling = null; var sDriller = null; var sDrillingMethod = null; var sInclinationType = null; var sNominalDiameter = null; var operatorNode, sOperator, aOperator = null; var sStartPoint = null; var sCoredInterval = null; var oLocation = null; var oSamplingCurve = null; sId = nodeBorehole.getAttribute("gml:id"); sName = GXml.value(nodeBorehole.selectSingleNode("*[local-name() = 'name']")); // Extract all the data about the borehole from the XML node metaDataNode = nodeBorehole.selectSingleNode("*[local-name() = 'metaDataProperty']"); if (metaDataNode) { sProject = metaDataNode.getAttribute("xlink:title"); } coreCustodianNode = nodeBorehole.selectSingleNode(".//*[local-name() = 'coreCustodian']"); if (coreCustodianNode) { sCoreCustodian = coreCustodianNode.getAttribute("xlink:href"); aCoreCustodian = sCoreCustodian.split(":"); sCoreCustodian = aCoreCustodian[aCoreCustodian.length-1]; } sDateOfDrilling = GXml.value(nodeBorehole.selectSingleNode(".//*[local-name() = 'dateOfDrilling']")); sDrillingMethod = GXml.value(nodeBorehole.selectSingleNode(".//*[local-name() = 'drillingMethod']")); sInclinationType = GXml.value(nodeBorehole.selectSingleNode(".//*[local-name() = 'inclinationType']")); operatorNode = nodeBorehole.selectSingleNode(".//*[local-name() = 'operator']"); if (operatorNode) { sOperator = operatorNode.getAttribute("xlink:href"); aOperator = sOperator.split(":"); sOperator = unescape(aOperator[aOperator.length-1]); } sStartPoint = GXml.value(nodeBorehole.selectSingleNode(".//*[local-name() = 'startPoint']")); // gsml:borehole contains updateCSWRecords gsml:location node oLocation = new Location(nodeBorehole.selectSingleNode(".//*[local-name() = 'Point']")); // Populate the arrays for the object. this.msId = sId; this.msName = sName; this.msProject = sProject; this.msDateOfDrilling = sDateOfDrilling; this.msDriller = sDriller; this.msDrillingMethod = sDrillingMethod; this.msInclinationType = sInclinationType; this.msNominalDiameter = sNominalDiameter; this.msOperator = sOperator; this.msCoreCustodian = sCoreCustodian; this.msStartPoint = sStartPoint; this.msCoredInterval = sCoredInterval; this.moLocation = oLocation; this.moSamplingCurve = oSamplingCurve; }
}
function Borehole_parseXmlElement(pBoreholeNode) { var nodeBorehole = pBoreholeNode; if (g_IsIE) nodeBorehole.setProperty("SelectionLanguage", "XPath"); /** * Sample XML fragment for updateCSWRecords gsml:borehole node - * * <gsml:Borehole gml:id="nvcl_core.4"> * <gml:metaDataProperty xlink:href="http://nvcl.csiro.au/projects.aspx%3Fprojectid=Ernest%20Henry" xlink:role="Project" xlink:title="Ernest Henry"/> * <gml:name>EH432_DB</gml:name> * <sa:sampledFeature xlink:href="urn:ogc:def:nil:OGC:unknown"/> * <sa:shape/> * <gsml:collarLocation> * <gsml:BoreholeCollar> * <gsml:location> * <gml:Point srsName="EPSG:4326"> * <gml:pos>140.717 -20.4528</gml:pos> * </gml:Point> * </gsml:location> * </gsml:BoreholeCollar> * </gsml:collarLocation> * <gsml:indexData> * <gsml:BoreholeDetails> * <gsml:operator xlink:href="urn:cgi:party:CSIRO:Melissa%20Quigley"/> * <gsml:dateOfDrilling>2007-03-30+08:00</gsml:dateOfDrilling> * <gsml:drillingMethod>diamond core</gsml:drillingMethod> * <gsml:startPoint>natural ground surface</gsml:startPoint> * <gsml:inclinationType>vertical</gsml:inclinationType> * <gsml:coredInterval/> * <gsml:coreCustodian xlink:href="urn:cgi:party:CSIRO:Xstrata"/> * </gsml:BoreholeDetails> * </gsml:indexData> * </gsml:Borehole> */ var sId = null; var sName = null; var metaDataNode, sProject = null; var coreCustodianNode, sCoreCustodian, aCoreCustodian = null; var sDateOfDrilling = null; var sDriller = null; var sDrillingMethod = null; var sInclinationType = null; var sNominalDiameter = null; var operatorNode, sOperator, aOperator = null; var sStartPoint = null; var sCoredInterval = null; var oLocation = null; var oSamplingCurve = null; sId = nodeBorehole.getAttribute("gml:id"); sName = GXml.value(nodeBorehole.selectSingleNode("*[local-name() = 'name']")); // Extract all the data about the borehole from the XML node metaDataNode = nodeBorehole.selectSingleNode("*[local-name() = 'metaDataProperty']"); if (metaDataNode) { sProject = metaDataNode.getAttribute("xlink:title"); } coreCustodianNode = nodeBorehole.selectSingleNode(".//*[local-name() = 'coreCustodian']"); if (coreCustodianNode) { sCoreCustodian = coreCustodianNode.getAttribute("xlink:href"); aCoreCustodian = sCoreCustodian.split(":"); sCoreCustodian = aCoreCustodian[aCoreCustodian.length-1]; } sDateOfDrilling = GXml.value(nodeBorehole.selectSingleNode(".//*[local-name() = 'dateOfDrilling']")); sDrillingMethod = GXml.value(nodeBorehole.selectSingleNode(".//*[local-name() = 'drillingMethod']")); sInclinationType = GXml.value(nodeBorehole.selectSingleNode(".//*[local-name() = 'inclinationType']")); operatorNode = nodeBorehole.selectSingleNode(".//*[local-name() = 'operator']"); if (operatorNode) { sOperator = operatorNode.getAttribute("xlink:href"); aOperator = sOperator.split(":"); sOperator = unescape(aOperator[aOperator.length-1]); } sStartPoint = GXml.value(nodeBorehole.selectSingleNode(".//*[local-name() = 'startPoint']")); // gsml:borehole contains updateCSWRecords gsml:location node oLocation = new Location(nodeBorehole.selectSingleNode(".//*[local-name() = 'Point']")); // Populate the arrays for the object. this.msId = sId; this.msName = sName; this.msProject = sProject; this.msDateOfDrilling = sDateOfDrilling; this.msDriller = sDriller; this.msDrillingMethod = sDrillingMethod; this.msInclinationType = sInclinationType; this.msNominalDiameter = sNominalDiameter; this.msOperator = sOperator; this.msCoreCustodian = sCoreCustodian; this.msStartPoint = sStartPoint; this.msCoredInterval = sCoredInterval; this.moLocation = oLocation; this.moSamplingCurve = oSamplingCurve; }
document.stopObserving('readystatechange', checkReadyState);
document.detachEvent('readystatechange', checkReadyState);
browserAutoLoad: function(tests) { var timer; function fireContentLoadedEvent() { if (document.loaded) return; if (timer) window.clearTimeout(timer); document.loaded = true; if (Riot.requiredFiles.length > 0) { Riot.loadBrowserScripts(Riot.requiredFiles, tests); } else { Riot.runAndReport(tests); } } function checkReadyState() { if (document.readyState === 'complete') { document.stopObserving('readystatechange', checkReadyState); fireContentLoadedEvent(); } } function pollDoScroll() { try { document.documentElement.doScroll('left'); } catch(e) { timer = pollDoScroll.defer(); return; } fireContentLoadedEvent(); } if (document.addEventListener) { document.addEventListener('DOMContentLoaded', fireContentLoadedEvent, false); } else { document.observe('readystatechange', checkReadyState); if (window == top) timer = pollDoScroll.defer(); } window.onload = fireContentLoadedEvent; },
timer = pollDoScroll.defer();
timer = setTimeout(pollDoScroll, 10);
browserAutoLoad: function(tests) { var timer; function fireContentLoadedEvent() { if (document.loaded) return; if (timer) window.clearTimeout(timer); document.loaded = true; if (Riot.requiredFiles.length > 0) { Riot.loadBrowserScripts(Riot.requiredFiles, tests); } else { Riot.runAndReport(tests); } } function checkReadyState() { if (document.readyState === 'complete') { document.stopObserving('readystatechange', checkReadyState); fireContentLoadedEvent(); } } function pollDoScroll() { try { document.documentElement.doScroll('left'); } catch(e) { timer = pollDoScroll.defer(); return; } fireContentLoadedEvent(); } if (document.addEventListener) { document.addEventListener('DOMContentLoaded', fireContentLoadedEvent, false); } else { document.observe('readystatechange', checkReadyState); if (window == top) timer = pollDoScroll.defer(); } window.onload = fireContentLoadedEvent; },
document.observe('readystatechange', checkReadyState);
document.attachEvent('readystatechange', checkReadyState);
browserAutoLoad: function(tests) { var timer; function fireContentLoadedEvent() { if (document.loaded) return; if (timer) window.clearTimeout(timer); document.loaded = true; if (Riot.requiredFiles.length > 0) { Riot.loadBrowserScripts(Riot.requiredFiles, tests); } else { Riot.runAndReport(tests); } } function checkReadyState() { if (document.readyState === 'complete') { document.stopObserving('readystatechange', checkReadyState); fireContentLoadedEvent(); } } function pollDoScroll() { try { document.documentElement.doScroll('left'); } catch(e) { timer = pollDoScroll.defer(); return; } fireContentLoadedEvent(); } if (document.addEventListener) { document.addEventListener('DOMContentLoaded', fireContentLoadedEvent, false); } else { document.observe('readystatechange', checkReadyState); if (window == top) timer = pollDoScroll.defer(); } window.onload = fireContentLoadedEvent; },
html += ' <li><span><strong>'+ elements[i] +'</strong>'+ ' <a href="#" class="deleteButton-'+ id +'" rel="'+ elements[i] +'" title="'+ options.removeLabel +'">'+ options.removeLabel +'</a></span>'+
html += ' <li class="oneLiner">'+ ' <p><input class="inputText dontSubmit inputField-'+ id +'" name="inputField-'+ id +'[]" type="text" value="'+ elements[i] +'" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" class="button icon iconDelete iconOnly deleteButton-'+ id +'" rel="'+ elements[i] +'" title="'+ options.removeLabel +'"><span>'+ options.removeLabel +'</span></a>'+ ' </div>'+
function build() { // init var var html = ''; // no items and message given? if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">'+ options.emptyMessage +'</p>'; // items available else { // start html html = '<ul>'; // loop elements for(var i in elements) { html += ' <li><span><strong>'+ elements[i] +'</strong>'+ ' <a href="#" class="deleteButton-'+ id +'" rel="'+ elements[i] +'" title="'+ options.removeLabel +'">'+ options.removeLabel +'</a></span>'+ ' </li>'; } // end html html += '</ul>'; } // set html $('#elementList-'+ id).html(html); }
p.getChild([1,0,0,0,2]).unselectable();if(f==CKEDITOR.ELEMENT_MODE_REPLACE)p.insertAfter(e);else e.append(p);b.container=p;p.disableContextMenu();b.fireOnce('themeLoaded');b.fireOnce('uiReady');},buildDialog:function(b){var c=CKEDITOR.tools.getNextNumber(),d=CKEDITOR.dom.element.createFromHtml(['<div class="cke_editor_'+b.name.replace('.','\\.')+'_dialog cke_skin_',b.skinName,'" dir="',b.lang.dir,'" lang="',b.langCode,'" role="dialog" aria-labelledby="%title#"><table class="cke_dialog',' '+CKEDITOR.env.cssClass,' cke_',b.lang.dir,'" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="%body" role="presentation"><div id="%title#" class="%title" role="presentation"></div><a id="%close_button#" class="%close_button" href="javascript:void(0)" title="'+b.lang.common.close+'" role="button"><span class="cke_label">X</span></a>'+'<div id="%tabs#" class="%tabs" role="tablist"></div>'+'<table class="%contents" role="presentation"><tr>'+'<td id="%contents#" class="%contents" role="presentation"></td>'+'</tr></table>'+'<div id="%footer#" class="%footer" role="presentation"></div>'+'</div>'+'<div id="%tl#" class="%tl"></div>'+'<div id="%tc#" class="%tc"></div>'+'<div id="%tr#" class="%tr"></div>'+'<div id="%ml#" class="%ml"></div>'+'<div id="%mr#" class="%mr"></div>'+'<div id="%bl#" class="%bl"></div>'+'<div id="%bc#" class="%bc"></div>'+'<div id="%br#" class="%br"></div>'+'</td></tr>'+'</table>',CKEDITOR.env.ie?'':'<style>.cke_dialog{visibility:hidden;}</style>','</div>'].join('').replace(/#/g,'_'+c).replace(/%/g,'cke_dialog_')),e=d.getChild([0,0,0,0,0]),f=e.getChild(0),g=e.getChild(1);f.unselectable();g.unselectable();return{element:d,parts:{dialog:d.getChild(0),title:f,close:g,tabs:e.getChild(2),contents:e.getChild([3,0,0,0]),footer:e.getChild(4)}};},destroy:function(b){var c=b.container;c.clearCustomData();b.element.clearCustomData();if(CKEDITOR.env.ie){c.setStyle('display','none');var d=document.body.createTextRange();d.moveToElementText(c.$);try{d.select();}catch(e){}}if(c)c.remove();if(b.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE)b.element.show();delete b.element;}};})());CKEDITOR.editor.prototype.getThemeSpace=function(a){var b='cke_'+a,c=this._[b]||(this._[b]=CKEDITOR.document.getById(b+'_'+this.name));return c;};CKEDITOR.editor.prototype.resize=function(a,b,c,d){var e=/^\d+$/;if(e.test(a))a+='px';var f=this.container,g=CKEDITOR.document.getById('cke_contents_'+this.name),h=d?f.getChild(1):f;CKEDITOR.env.webkit&&h.setStyle('display','none');
p.getChild([1,0,0,0,0]).unselectable();p.getChild([1,0,0,0,2]).unselectable();if(f==CKEDITOR.ELEMENT_MODE_REPLACE)p.insertAfter(e);else e.append(p);b.container=p;p.disableContextMenu();b.fireOnce('themeLoaded');b.fireOnce('uiReady');},buildDialog:function(b){var c=CKEDITOR.tools.getNextNumber(),d=CKEDITOR.dom.element.createFromHtml(['<div class="cke_editor_'+b.name.replace('.','\\.')+'_dialog cke_skin_',b.skinName,'" dir="',b.lang.dir,'" lang="',b.langCode,'" role="dialog" aria-labelledby="%title#"><table class="cke_dialog',' '+CKEDITOR.env.cssClass,' cke_',b.lang.dir,'" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="%body" role="presentation"><div id="%title#" class="%title" role="presentation"></div><a id="%close_button#" class="%close_button" href="javascript:void(0)" title="'+b.lang.common.close+'" role="button"><span class="cke_label">X</span></a>'+'<div id="%tabs#" class="%tabs" role="tablist"></div>'+'<table class="%contents" role="presentation"><tr>'+'<td id="%contents#" class="%contents" role="presentation"></td>'+'</tr></table>'+'<div id="%footer#" class="%footer" role="presentation"></div>'+'</div>'+'<div id="%tl#" class="%tl"></div>'+'<div id="%tc#" class="%tc"></div>'+'<div id="%tr#" class="%tr"></div>'+'<div id="%ml#" class="%ml"></div>'+'<div id="%mr#" class="%mr"></div>'+'<div id="%bl#" class="%bl"></div>'+'<div id="%bc#" class="%bc"></div>'+'<div id="%br#" class="%br"></div>'+'</td></tr>'+'</table>',CKEDITOR.env.ie?'':'<style>.cke_dialog{visibility:hidden;}</style>','</div>'].join('').replace(/#/g,'_'+c).replace(/%/g,'cke_dialog_')),e=d.getChild([0,0,0,0,0]),f=e.getChild(0),g=e.getChild(1);f.unselectable();g.unselectable();return{element:d,parts:{dialog:d.getChild(0),title:f,close:g,tabs:e.getChild(2),contents:e.getChild([3,0,0,0]),footer:e.getChild(4)}};},destroy:function(b){var c=b.container;c.clearCustomData();b.element.clearCustomData();if(c)c.remove();if(b.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE)b.element.show();delete b.element;}};})());CKEDITOR.editor.prototype.getThemeSpace=function(a){var b='cke_'+a,c=this._[b]||(this._[b]=CKEDITOR.document.getById(b+'_'+this.name));return c;};CKEDITOR.editor.prototype.resize=function(a,b,c,d){var e=this.container,f=CKEDITOR.document.getById('cke_contents_'+this.name),g=d?e.getChild(1):e;CKEDITOR.env.webkit&&g.setStyle('display','none');g.setSize('width',a,true);if(CKEDITOR.env.webkit){g.$.offsetWidth;g.setStyle('display','');}var h=c?0:(g.$.offsetHeight||0)-(f.$.clientHeight||0);
p.getChild([1,0,0,0,2]).unselectable();if(f==CKEDITOR.ELEMENT_MODE_REPLACE)p.insertAfter(e);else e.append(p);b.container=p;p.disableContextMenu();b.fireOnce('themeLoaded');b.fireOnce('uiReady');},buildDialog:function(b){var c=CKEDITOR.tools.getNextNumber(),d=CKEDITOR.dom.element.createFromHtml(['<div class="cke_editor_'+b.name.replace('.','\\.')+'_dialog cke_skin_',b.skinName,'" dir="',b.lang.dir,'" lang="',b.langCode,'" role="dialog" aria-labelledby="%title#"><table class="cke_dialog',' '+CKEDITOR.env.cssClass,' cke_',b.lang.dir,'" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="%body" role="presentation"><div id="%title#" class="%title" role="presentation"></div><a id="%close_button#" class="%close_button" href="javascript:void(0)" title="'+b.lang.common.close+'" role="button"><span class="cke_label">X</span></a>'+'<div id="%tabs#" class="%tabs" role="tablist"></div>'+'<table class="%contents" role="presentation"><tr>'+'<td id="%contents#" class="%contents" role="presentation"></td>'+'</tr></table>'+'<div id="%footer#" class="%footer" role="presentation"></div>'+'</div>'+'<div id="%tl#" class="%tl"></div>'+'<div id="%tc#" class="%tc"></div>'+'<div id="%tr#" class="%tr"></div>'+'<div id="%ml#" class="%ml"></div>'+'<div id="%mr#" class="%mr"></div>'+'<div id="%bl#" class="%bl"></div>'+'<div id="%bc#" class="%bc"></div>'+'<div id="%br#" class="%br"></div>'+'</td></tr>'+'</table>',CKEDITOR.env.ie?'':'<style>.cke_dialog{visibility:hidden;}</style>','</div>'].join('').replace(/#/g,'_'+c).replace(/%/g,'cke_dialog_')),e=d.getChild([0,0,0,0,0]),f=e.getChild(0),g=e.getChild(1);f.unselectable();g.unselectable();return{element:d,parts:{dialog:d.getChild(0),title:f,close:g,tabs:e.getChild(2),contents:e.getChild([3,0,0,0]),footer:e.getChild(4)}};},destroy:function(b){var c=b.container;c.clearCustomData();b.element.clearCustomData();if(CKEDITOR.env.ie){c.setStyle('display','none');var d=document.body.createTextRange();d.moveToElementText(c.$);try{d.select();}catch(e){}}if(c)c.remove();if(b.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE)b.element.show();delete b.element;}};})());CKEDITOR.editor.prototype.getThemeSpace=function(a){var b='cke_'+a,c=this._[b]||(this._[b]=CKEDITOR.document.getById(b+'_'+this.name));return c;};CKEDITOR.editor.prototype.resize=function(a,b,c,d){var e=/^\d+$/;if(e.test(a))a+='px';var f=this.container,g=CKEDITOR.document.getById('cke_contents_'+this.name),h=d?f.getChild(1):f;CKEDITOR.env.webkit&&h.setStyle('display','none');
'Start Netflix Movie Ratings Extractor (Includes IMDB Movie ' + 'Data Lookup)', startScript);
'Start Netflix Movie Ratings Extractor', startScript);
function buildGui() { // Add options to the Tools->Greasemonkey->User Script Commands menu. GM_registerMenuCommand( 'Start Netflix Movie Ratings Extractor (Includes IMDB Movie ' + 'Data Lookup)', startScript); GM_registerMenuCommand( 'Stop Netflix Movie Ratings Extractor (Includes IMDB Movie ' + 'Data Lookup)', stopScript); // Create GUI container. var gui = document.createElement('div'); gui.setAttribute('style', 'color: #fff; text-align: center; margin: 2em 0; ' + 'padding: 0 1em; border: 10px solid #8F0707;'); var pElt = document.createElement('p'); pElt.setAttribute('style', 'font-size: larger; font-weight: bold'); pElt.appendChild(document.createTextNode( 'Netflix Movie Ratings Extractor (Includes IMDB Movie Data ' + 'Lookup)')); gui.appendChild(pElt); if (document.getElementById('profilesmenu')) { // User is signed in. var realGui = buildSignedInGui(); gui.appendChild(realGui); // Add GUI to the page. var content = document.getElementById('footer'); if (!content) { content = document.body; } content.appendChild(gui); } }
'Stop Netflix Movie Ratings Extractor (Includes IMDB Movie ' + 'Data Lookup)', stopScript);
'Stop Netflix Movie Ratings Extractor', stopScript);
function buildGui() { // Add options to the Tools->Greasemonkey->User Script Commands menu. GM_registerMenuCommand( 'Start Netflix Movie Ratings Extractor (Includes IMDB Movie ' + 'Data Lookup)', startScript); GM_registerMenuCommand( 'Stop Netflix Movie Ratings Extractor (Includes IMDB Movie ' + 'Data Lookup)', stopScript); // Create GUI container. var gui = document.createElement('div'); gui.setAttribute('style', 'color: #fff; text-align: center; margin: 2em 0; ' + 'padding: 0 1em; border: 10px solid #8F0707;'); var pElt = document.createElement('p'); pElt.setAttribute('style', 'font-size: larger; font-weight: bold'); pElt.appendChild(document.createTextNode( 'Netflix Movie Ratings Extractor (Includes IMDB Movie Data ' + 'Lookup)')); gui.appendChild(pElt); if (document.getElementById('profilesmenu')) { // User is signed in. var realGui = buildSignedInGui(); gui.appendChild(realGui); // Add GUI to the page. var content = document.getElementById('footer'); if (!content) { content = document.body; } content.appendChild(gui); } }
if (document.getElementById('profilesmenu')) {
if (document.getElementById('profiles-menu')) {
function buildGui() { // Add options to the Tools->Greasemonkey->User Script Commands menu. GM_registerMenuCommand( 'Start Netflix Movie Ratings Extractor', startScript); GM_registerMenuCommand( 'Stop Netflix Movie Ratings Extractor', stopScript); // Create GUI container. var gui = document.createElement('div'); gui.setAttribute('style', 'color: #fff; text-align: center; margin: 2em 0; ' + 'padding: 0 1em; border: 10px solid #8F0707;'); var pElt = document.createElement('p'); pElt.setAttribute('style', 'font-size: larger; font-weight: bold'); pElt.appendChild(document.createTextNode( 'Netflix Movie Ratings Extractor (Includes IMDB Movie Data ' + 'Lookup)')); gui.appendChild(pElt); if (document.getElementById('profilesmenu')) { // User is signed in. var realGui = buildSignedInGui(); gui.appendChild(realGui); // Add GUI to the page. var content = document.getElementById('footer'); if (!content) { content = document.body; } content.appendChild(gui); } }
if (g_IsIE)
if (g_IsIE) {
function Bushfire_parseXmlElement(pBushfireNode) { var nodeBushfire = pBushfireNode; if (g_IsIE) nodeBushfire.setProperty("SelectionLanguage", "XPath"); /** * Sample XML fragment for updateCSWRecords Geodesy station - * <gml:featureMember> * <esri:Modis48to72Hours-1604 gml:id="Modis48to72Hours-1604.1"> * <esri:_shape_> * <gml:MultiPoint srsName="EPSG:4283"> * <gml:pointMember> * <gml:Point srsName="EPSG:4283"> * <gml:pos>123.598 -8.297</gml:pos> * </gml:Point> * </gml:pointMember> * </gml:MultiPoint> * </esri:_shape_> * <esri:id>0</esri:id> * <esri:s_date>2008-08-31</esri:s_date> * <esri:datetime>2008/08/31 02:04:30</esri:datetime> * <esri:mod_ver>5.0.1</esri:mod_ver> * <esri:temp_k>322.900</esri:temp_k> * <esri:active>3</esri:active> * <esri:satellite>terra</esri:satellite> * <esri:instrument>MODIS</esri:instrument> * <esri:latitude>-8.297</esri:latitude> * <esri:longitude>123.598</esri:longitude> * <esri:power>14.5</esri:power> * <esri:confidence>0</esri:confidence> * </esri:Modis48to72Hours-1604> * </gml:featureMember> */ var sId = null; var sDate = null; var sDateTime, aDateTime, sTime = null; var sModVer = null; var sTempK = null; var sActive = null; var sSatellite = null; var sInstrument = null; var sPower = null; var sConfidence = null; var oLocation = null; // Extract data from the node sId = nodeBushfire.getAttribute("gml:id"); sDate = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 's_date']")); // datetime is of the format - 2008/08/17 16:50:40 sDateTime = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'datetime']")); aDateTime = sDateTime.split(" "); sTime = aDateTime[1]; sModVer = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'mod_ver']")); sTempK = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'temp_k']")); sActive = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'active']")); sSatellite = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'satellite']")); sInstrument = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'instrument']")); sPower = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'power']")); sConfidence = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'confidence']")); // This node contains updateCSWRecords gml:location node oLocation = new Location(nodeBushfire.selectSingleNode(".//*[local-name() = 'Point']")); // Populate the arrays for the object. this.msId = sId; this.msDate = sDate; this.msTime = sTime; this.msModVer = sModVer; this.msTempK = sTempK; this.msActive = sActive; this.msSatellite = sSatellite; this.msInstrument = sInstrument; this.msPower = sPower; this.msConfidence = sConfidence; this.moLocation = oLocation; }
}
function Bushfire_parseXmlElement(pBushfireNode) { var nodeBushfire = pBushfireNode; if (g_IsIE) nodeBushfire.setProperty("SelectionLanguage", "XPath"); /** * Sample XML fragment for updateCSWRecords Geodesy station - * <gml:featureMember> * <esri:Modis48to72Hours-1604 gml:id="Modis48to72Hours-1604.1"> * <esri:_shape_> * <gml:MultiPoint srsName="EPSG:4283"> * <gml:pointMember> * <gml:Point srsName="EPSG:4283"> * <gml:pos>123.598 -8.297</gml:pos> * </gml:Point> * </gml:pointMember> * </gml:MultiPoint> * </esri:_shape_> * <esri:id>0</esri:id> * <esri:s_date>2008-08-31</esri:s_date> * <esri:datetime>2008/08/31 02:04:30</esri:datetime> * <esri:mod_ver>5.0.1</esri:mod_ver> * <esri:temp_k>322.900</esri:temp_k> * <esri:active>3</esri:active> * <esri:satellite>terra</esri:satellite> * <esri:instrument>MODIS</esri:instrument> * <esri:latitude>-8.297</esri:latitude> * <esri:longitude>123.598</esri:longitude> * <esri:power>14.5</esri:power> * <esri:confidence>0</esri:confidence> * </esri:Modis48to72Hours-1604> * </gml:featureMember> */ var sId = null; var sDate = null; var sDateTime, aDateTime, sTime = null; var sModVer = null; var sTempK = null; var sActive = null; var sSatellite = null; var sInstrument = null; var sPower = null; var sConfidence = null; var oLocation = null; // Extract data from the node sId = nodeBushfire.getAttribute("gml:id"); sDate = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 's_date']")); // datetime is of the format - 2008/08/17 16:50:40 sDateTime = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'datetime']")); aDateTime = sDateTime.split(" "); sTime = aDateTime[1]; sModVer = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'mod_ver']")); sTempK = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'temp_k']")); sActive = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'active']")); sSatellite = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'satellite']")); sInstrument = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'instrument']")); sPower = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'power']")); sConfidence = GXml.value(nodeBushfire.selectSingleNode("*[local-name() = 'confidence']")); // This node contains updateCSWRecords gml:location node oLocation = new Location(nodeBushfire.selectSingleNode(".//*[local-name() = 'Point']")); // Populate the arrays for the object. this.msId = sId; this.msDate = sDate; this.msTime = sTime; this.msModVer = sModVer; this.msTempK = sTempK; this.msActive = sActive; this.msSatellite = sSatellite; this.msInstrument = sInstrument; this.msPower = sPower; this.msConfidence = sConfidence; this.moLocation = oLocation; }
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=
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;
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=
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=
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(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=
"";d.ieAlternativeExecuted=true;return"0"}var y=this,o=_$_WT_CLASS_$_,H=0,ea=0,P=null,Y={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},U=_$_FORM_OBJECTS_$_;o.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:o.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var ca=[],z=[],ka=_$_RELATIVE_URL_$_,Q=false,ia=false,fa=false,J=null,O=null,V=
dropTarget:null,objectPrevStyle:null,xy:null},T=_$_FORM_OBJECTS_$_;o.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:o.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var ba=[],y=[],ka=_$_RELATIVE_URL_$_,P=false,ia=false,fa=false,I=null,N=null,V=null,W=0,ga=false,Q=null,Z=null,ja=(new Date).getTime(),ha,ca=0,R={};p.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=p.prototype.onload;
"";d.ieAlternativeExecuted=true;return"0"}var y=this,o=_$_WT_CLASS_$_,H=0,ea=0,P=null,Y={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},U=_$_FORM_OBJECTS_$_;o.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:o.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var ca=[],z=[],ka=_$_RELATIVE_URL_$_,Q=false,ia=false,fa=false,J=null,O=null,V=
0;c<d.length;c++)this.preload(d[c])}function l(d){if(d.ieAlternativeExecuted)return"0";q.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}function p(d){window.onbeforeunload=d&&d!=""?function(c){if(c=c||window.event)c.returnValue=d;return d}:null}var q=this,n=_$_WT_CLASS_$_,N=0,J=0,O=null,aa={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},V=_$_FORM_OBJECTS_$_;n.button=function(d){return d.which? d.which==3?4:d.which==2?2:1:n.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var da=[],A=[],la=_$_RELATIVE_URL_$_,P=false,ja=false,ga=false,K=null,L=null,W=null,X=0,ha=false,Q=null,ba=null,ka=(new Date).getTime(),ia,ea=0,R={};H.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=H.prototype.onload;c.onerror=H.prototype.onload;c.onabort=H.prototype.onload;c.imagePreloader=this;c.src=d};H.prototype.onload=
J=0,O=null,aa={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},V=_$_FORM_OBJECTS_$_;n.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:n.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var da=[],A=[],la=_$_RELATIVE_URL_$_,P=false,ja=false,ga=false,K=null,L=null,W=null,X=0,ha=false,Q=null,ba=null,ka=(new Date).getTime(),ia,ea=0,R={};H.prototype.preload=
0;c<d.length;c++)this.preload(d[c])}function l(d){if(d.ieAlternativeExecuted)return"0";q.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}function p(d){window.onbeforeunload=d&&d!=""?function(c){if(c=c||window.event)c.returnValue=d;return d}:null}var q=this,n=_$_WT_CLASS_$_,N=0,J=0,O=null,aa={object:null,sourceId:null,mimeType:null,dropOffsetX:null,dragOffsetY:null,dropTarget:null,objectPrevStyle:null,xy:null},V=_$_FORM_OBJECTS_$_;n.button=function(d){return d.which?d.which==3?4:d.which==2?2:1:n.isIE&&typeof d.button!="undefined"?d.button==2?4:d.button==4?2:1:typeof d.button!="undefined"?d.button==2?4:d.button==1?2:1:0};var da=[],A=[],la=_$_RELATIVE_URL_$_,P=false,ja=false,ga=false,K=null,L=null,W=null,X=0,ha=false,Q=null,ba=null,ka=(new Date).getTime(),ia,ea=0,R={};H.prototype.preload=function(d){var c=new Image;this.images.push(c);c.onload=H.prototype.onload;c.onerror=H.prototype.onload;c.onabort=H.prototype.onload;c.imagePreloader=this;c.src=d};H.prototype.onload=
I=P.getParent();if(!P.getPrevious())P.remove().insertBefore(I);else if(!P.getNext())P.remove().insertAfter(I);else{P.breakParent(P.getParent());O.push(P.getNext());}if(!I.getCustomData('blockquote_processed')){O.push(I);h.setMarker(K,I,'blockquote_processed',true);}N.push(P);}h.clearAllMarkers(K);for(E=O.length-1;E>=0;E--){I=O[E];if(n(I))I.remove();}if(p.config.enterMode==2){var Q=true;while(N.length){P=N.shift();if(P.getName()=='div'){H=new d.documentFragment(p.document);var R=Q&&P.getPrevious()&&!(P.getPrevious().type==1&&P.getPrevious().isBlockBoundary());if(R)H.append(p.document.createElement('br'));var S=P.getNext()&&!(P.getNext().type==1&&P.getNext().isBlockBoundary());while(P.getFirst())P.getFirst().remove().appendTo(H);if(S)H.append(p.document.createElement('br'));H.replace(P);Q=false;}}}}r.selectBookmarks(t);p.focus();}};j.add('blockquote',{init:function(p){p.addCommand('blockquote',o);p.ui.addButton('Blockquote',{label:p.lang.blockquote,command:'blockquote'});p.on('selectionChange',m);},requires:['domiterator']});})();j.add('button',{beforeInit:function(l){l.ui.addHandler(1,k.button.handler);}});a.UI_BUTTON=1;k.button=function(l){e.extend(this,l,{title:l.label,className:l.className||l.command&&'cke_button_'+l.command||'',click:l.click||(function(m){m.execCommand(l.command);})});this._={};};k.button.handler={create:function(l){return new k.button(l);}};k.button.prototype={canGroup:true,render:function(l,m){var n=b,o=this._.id='cke_'+e.getNextNumber(),p='',q=this.command,r,s;this._.editor=l;var t={id:o,button:this,editor:l,focus:function(){var v=a.document.getById(o);v.focus();},execute:function(){this.button.click(l);}};t.clickFn=r=e.addFunction(t.execute,t);t.index=s=k.button._.instances.push(t)-1;if(this.modes)l.on('mode',function(){this.setState(this.modes[l.mode]?2:0);},this);else if(q){q=l.getCommand(q);if(q){q.on('state',function(){this.setState(q.state);},this);p+='cke_'+(q.state==1?'on':q.state==0?'disabled':'off');}}if(!q)p+='cke_off';if(this.className)p+=' '+this.className;m.push('<span class="cke_button">','<a id="',o,'" class="',p,'"',n.gecko&&n.version>=10900&&!n.hc?'':'" href="javascript:void(\''+(this.title||'').replace("'")+"')\"",' title="',this.title,'" tabindex="-1" hidefocus="true" role="button" aria-labelledby="'+o+'_label"'+(this.hasArrow?' aria-haspopup="true"':''));if(n.opera||n.gecko&&n.mac)m.push(' onkeypress="return false;"');if(n.gecko)m.push(' onblur="this.style.cssText = this.style.cssText;"');m.push(' onkeydown="return CKEDITOR.ui.button._.keydown(',s,', event);" onfocus="return CKEDITOR.ui.button._.focus(',s,', event);" onclick="CKEDITOR.tools.callFunction(',r,', this); return false;"><span class="cke_icon"');
if(!y.equals(G))D.push(y);G=y;}while(D.length>0){y=D.shift();if(y.getName()=='blockquote'){var H=new d.documentFragment(p.document);while(y.getFirst()){H.append(y.getFirst().remove());z.push(H.getLast());}H.replace(y);}else z.push(y);}var I=p.document.createElement('blockquote');I.insertBefore(z[0]);while(z.length>0){y=z.shift();I.append(y);}}else if(q==1){var J=[],K={};while(y=x.getNextParagraph()){var L=null,M=null;while(y.getParent()){if(y.getParent().getName()=='blockquote'){L=y.getParent();M=y;break;}y=y.getParent();}if(L&&M&&!M.getCustomData('blockquote_moveout')){J.push(M);h.setMarker(K,M,'blockquote_moveout',true);}}h.clearAllMarkers(K);var N=[],O=[];K={};while(J.length>0){var P=J.shift();I=P.getParent();if(!P.getPrevious())P.remove().insertBefore(I);else if(!P.getNext())P.remove().insertAfter(I);else{P.breakParent(P.getParent());O.push(P.getNext());}if(!I.getCustomData('blockquote_processed')){O.push(I);h.setMarker(K,I,'blockquote_processed',true);}N.push(P);}h.clearAllMarkers(K);for(E=O.length-1;E>=0;E--){I=O[E];if(n(I))I.remove();}if(p.config.enterMode==2){var Q=true;while(N.length){P=N.shift();if(P.getName()=='div'){H=new d.documentFragment(p.document);var R=Q&&P.getPrevious()&&!(P.getPrevious().type==1&&P.getPrevious().isBlockBoundary());if(R)H.append(p.document.createElement('br'));var S=P.getNext()&&!(P.getNext().type==1&&P.getNext().isBlockBoundary());while(P.getFirst())P.getFirst().remove().appendTo(H);if(S)H.append(p.document.createElement('br'));H.replace(P);Q=false;}}}}r.selectBookmarks(t);p.focus();}};j.add('blockquote',{init:function(p){p.addCommand('blockquote',o);p.ui.addButton('Blockquote',{label:p.lang.blockquote,command:'blockquote'});p.on('selectionChange',m);},requires:['domiterator']});})();j.add('button',{beforeInit:function(l){l.ui.addHandler(1,k.button.handler);}});a.UI_BUTTON=1;k.button=function(l){e.extend(this,l,{title:l.label,className:l.className||l.command&&'cke_button_'+l.command||'',click:l.click||(function(m){m.execCommand(l.command);})});this._={};};k.button.handler={create:function(l){return new k.button(l);}};k.button.prototype={canGroup:true,render:function(l,m){var n=b,o=this._.id='cke_'+e.getNextNumber(),p='',q=this.command,r,s;this._.editor=l;var t={id:o,button:this,editor:l,focus:function(){var v=a.document.getById(o);v.focus();},execute:function(){this.button.click(l);}};t.clickFn=r=e.addFunction(t.execute,t);t.index=s=k.button._.instances.push(t)-1;if(this.modes)l.on('mode',function(){this.setState(this.modes[l.mode]?2:0);
I=P.getParent();if(!P.getPrevious())P.remove().insertBefore(I);else if(!P.getNext())P.remove().insertAfter(I);else{P.breakParent(P.getParent());O.push(P.getNext());}if(!I.getCustomData('blockquote_processed')){O.push(I);h.setMarker(K,I,'blockquote_processed',true);}N.push(P);}h.clearAllMarkers(K);for(E=O.length-1;E>=0;E--){I=O[E];if(n(I))I.remove();}if(p.config.enterMode==2){var Q=true;while(N.length){P=N.shift();if(P.getName()=='div'){H=new d.documentFragment(p.document);var R=Q&&P.getPrevious()&&!(P.getPrevious().type==1&&P.getPrevious().isBlockBoundary());if(R)H.append(p.document.createElement('br'));var S=P.getNext()&&!(P.getNext().type==1&&P.getNext().isBlockBoundary());while(P.getFirst())P.getFirst().remove().appendTo(H);if(S)H.append(p.document.createElement('br'));H.replace(P);Q=false;}}}}r.selectBookmarks(t);p.focus();}};j.add('blockquote',{init:function(p){p.addCommand('blockquote',o);p.ui.addButton('Blockquote',{label:p.lang.blockquote,command:'blockquote'});p.on('selectionChange',m);},requires:['domiterator']});})();j.add('button',{beforeInit:function(l){l.ui.addHandler(1,k.button.handler);}});a.UI_BUTTON=1;k.button=function(l){e.extend(this,l,{title:l.label,className:l.className||l.command&&'cke_button_'+l.command||'',click:l.click||(function(m){m.execCommand(l.command);})});this._={};};k.button.handler={create:function(l){return new k.button(l);}};k.button.prototype={canGroup:true,render:function(l,m){var n=b,o=this._.id='cke_'+e.getNextNumber(),p='',q=this.command,r,s;this._.editor=l;var t={id:o,button:this,editor:l,focus:function(){var v=a.document.getById(o);v.focus();},execute:function(){this.button.click(l);}};t.clickFn=r=e.addFunction(t.execute,t);t.index=s=k.button._.instances.push(t)-1;if(this.modes)l.on('mode',function(){this.setState(this.modes[l.mode]?2:0);},this);else if(q){q=l.getCommand(q);if(q){q.on('state',function(){this.setState(q.state);},this);p+='cke_'+(q.state==1?'on':q.state==0?'disabled':'off');}}if(!q)p+='cke_off';if(this.className)p+=' '+this.className;m.push('<span class="cke_button">','<a id="',o,'" class="',p,'"',n.gecko&&n.version>=10900&&!n.hc?'':'" href="javascript:void(\''+(this.title||'').replace("'")+"')\"",' title="',this.title,'" tabindex="-1" hidefocus="true" role="button" aria-labelledby="'+o+'_label"'+(this.hasArrow?' aria-haspopup="true"':''));if(n.opera||n.gecko&&n.mac)m.push(' onkeypress="return false;"');if(n.gecko)m.push(' onblur="this.style.cssText = this.style.cssText;"');m.push(' onkeydown="return CKEDITOR.ui.button._.keydown(',s,', event);" onfocus="return CKEDITOR.ui.button._.focus(',s,', event);" onclick="CKEDITOR.tools.callFunction(',r,', this); return false;"><span class="cke_icon"');
typeof u=="string"}function C(j){if(j.substr(0,1)=="/")return r+j;if(j.substr(0,1)=="."||!j.match(/^\s*\w+:\/\
n.addEventListener("click",function(){n.play()},false)})})}function B(j,n,u){return u||k[j][n.split(".").slice(-1)[0]]||F[j]}function y(j,n){var u=j.getAttribute(n);return u==true||typeof u=="string"}function C(j){if(j.substr(0,1)=="/")return r+j;if(j.substr(0,1)=="."||!j.match(/^\s*\w+:\/\
typeof u=="string"}function C(j){if(j.substr(0,1)=="/")return r+j;if(j.substr(0,1)=="."||!j.match(/^\s*\w+:\/\//))return w+j;return j}function A(j,n,u){var x=j.getAttribute(n);if(x)return x+"px";if(j.currentStyle)j=j.currentStyle[n];else if(z.getComputedStyle)j=o.defaultView.getComputedStyle(j,null).getPropertyValue(n);else return u;if(j=="auto")return u;return j}function E(j){return j.match(/\s*([\w-]+\/[\w-]+)(;|\s|$)/)[1]}var p="video",d="audio";o.createElement(p).canPlayType||v(["abbr","article",
WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(s,f,x,C,q,y,t){function c(a){return $(a).hasClass("Wt-suggest-onedit")||$(a).hasClass("Wt-suggest-dropdown")}function g(){return f.style.display!="none"}function d(){f.style.display="none"}function m(a){console.log("global"+t);e.positionAtWidget(f.id,a.id,e.Vertical,t)}function o(a){a=e.target(a||window.event);if(a.className!="content"){for(;a&&!e.hasTag(a,"DIV");)a=a.parentNode;a&&u(a)}}function u(a){var b=a.firstChild,k=e.getElement(i),l=b.innerHTML;
WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(s,f,w,C,q,x,y){function c(a){return $(a).hasClass("Wt-suggest-onedit")||$(a).hasClass("Wt-suggest-dropdown")}function g(){return f.style.display!="none"}function d(){f.style.display="none"}function m(a){e.positionAtWidget(f.id,a.id,e.Vertical,y)}function o(a){a=e.target(a||window.event);if(a.className!="content"){for(;a&&!e.hasTag(a,"DIV");)a=a.parentNode;a&&t(a)}}function t(a){var b=a.firstChild,k=e.getElement(i),l=b.innerHTML;b=b.getAttribute("sug");
WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(s,f,x,C,q,y,t){function c(a){return $(a).hasClass("Wt-suggest-onedit")||$(a).hasClass("Wt-suggest-dropdown")}function g(){return f.style.display!="none"}function d(){f.style.display="none"}function m(a){console.log("global"+t);e.positionAtWidget(f.id,a.id,e.Vertical,t)}function o(a){a=e.target(a||window.event);if(a.className!="content"){for(;a&&!e.hasTag(a,"DIV");)a=a.parentNode;a&&u(a)}}function u(a){var b=a.firstChild,k=e.getElement(i),l=b.innerHTML;
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,i){function p(e,k){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==k)return m.offsetWidth;r+=m.colSpan}}return 0}}function c(e,k){var m=a.getElement(s).firstChild;b(e).style.width=k+"px";var n,r,u,v;r=n=0;for(u=m.rows.length;n<u;n++){v=m.rows[n];if(v.className!="Wt-hrh"){var w,B,D,F;D=B=0;for(F=v.childNodes.length;B< F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function h(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function g(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,h){function p(e,k){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==k)return m.offsetWidth;r+=m.colSpan}}return 0}}function c(e,k){var m=a.getElement(s).firstChild;b(e).style.width=k+"px";var n,r,u,v;r=n=0;for(u=m.rows.length;n<u;n++){v=m.rows[n];if(v.className!="Wt-hrh"){var w,B,D,F;D=B=0;for(F=v.childNodes.length;B< F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function f(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function i(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,s,i){function p(e,k){if(e.offsetWidth>0)return e.offsetWidth;else{e=l.firstChild.rows[0];var m,n,r,u;r=n=0;for(u=e.childNodes.length;n<u;++n){m=e.childNodes[n];if(m.className!="Wt-vrh"){if(r==k)return m.offsetWidth;r+=m.colSpan}}return 0}}function c(e,k){var m=a.getElement(s).firstChild;b(e).style.width=k+"px";var n,r,u,v;r=n=0;for(u=m.rows.length;n<u;n++){v=m.rows[n];if(v.className!="Wt-hrh"){var w,B,D,F;D=B=0;for(F=v.childNodes.length;B<F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function h(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function g(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],
h.focus();q.emit(d,"select",a.id,h.id);y(h,e,b);k();f=null}function C(a,b){for(a=b?a.nextSibling:a.previousSibling;a;a=b?a.nextSibling:a.previousSibling)if(c.hasTag(a,"DIV"))if(a.style.display!="none")return a;return null}$(".Wt-domRoot").add(d);jQuery.data(d,"obj",this);var n=this,c=q.WT,l=null,f=null,u=false,v=null,w=null,o=null;this.showPopup=function(){d.style.display="";l=null};this.editMouseMove=function(a,b){if(m(a))a.style.cursor=c.widgetCoordinates(a,b).x>a.offsetWidth-16?"default":""};this.editClick=
WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(q,d,A,B,r){function m(a){return $(a).hasClass("Wt-suggest-onedit")||$(a).hasClass("Wt-suggest-dropdown")}function t(){return d.style.display!="none"}function l(){d.style.display="none"}function C(a){c.positionAtWidget(d.id,a.id,c.Vertical)}function D(a){a=a||window.event;a=a.target||a.srcElement;if(a.className!="content"){for(;a&&!c.hasTag(a,"DIV");)a=a.parentNode;a&&u(a)}}function u(a){var b=a.firstChild,h=c.getElement(f),e=b.innerHTML;b=b.getAttribute("sug");
h.focus();q.emit(d,"select",a.id,h.id);y(h,e,b);k();f=null}function C(a,b){for(a=b?a.nextSibling:a.previousSibling;a;a=b?a.nextSibling:a.previousSibling)if(c.hasTag(a,"DIV"))if(a.style.display!="none")return a;return null}$(".Wt-domRoot").add(d);jQuery.data(d,"obj",this);var n=this,c=q.WT,l=null,f=null,u=false,v=null,w=null,o=null;this.showPopup=function(){d.style.display="";l=null};this.editMouseMove=function(a,b){if(m(a))a.style.cursor=c.widgetCoordinates(a,b).x>a.offsetWidth-16?"default":""};this.editClick=
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";
"",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))}}
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";
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=
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=
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=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=
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() {"+
"",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=
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);
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=
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);
V=setTimeout(e,_$_KEEP_ALIVE_$_000)}function k(d){if(!o.isIEMobile)document.title=d}function i(){if(!document.activeElement){function d(f){if(f&&f.target)document.activeElement=f.target==document?null:f.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}o.history._initialize();ba();if(!fa){fa=true;_$_ONLOAD_$_();Q||(V=setTimeout(e,_$_KEEP_ALIVE_$_000))}}function n(d){clearTimeout(d);document.body.style.cursor="auto";if(aa!=
f.target)document.activeElement=f.target==document?null:f.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}o.history._initialize();aa();if(!fa){fa=true;_$_ONLOAD_$_();P||(V=setTimeout(e,_$_KEEP_ALIVE_$_000))}}function n(d){clearTimeout(d);document.body.style.cursor="auto";if(Z!=null){try{Z()}catch(c){}Z=null}}function J(){document.body.style.cursor="wait";Z=hideLoadingIndicator;showLoadingIndicator()}function u(d){ga=
V=setTimeout(e,_$_KEEP_ALIVE_$_000)}function k(d){if(!o.isIEMobile)document.title=d}function i(){if(!document.activeElement){function d(f){if(f&&f.target)document.activeElement=f.target==document?null:f.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}o.history._initialize();ba();if(!fa){fa=true;_$_ONLOAD_$_();Q||(V=setTimeout(e,_$_KEEP_ALIVE_$_000))}}function n(d){clearTimeout(d);document.body.style.cursor="auto";if(aa!=
if(g!=null)f.className=g}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function C(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):M(c.dropTarget,{name:"_drop",eventObject:c.dropTarget, event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var g=
d}function q(d){if(d)window.execScript?window.execScript(d):window.eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function C(d,c,f){if(!P){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();q(c);_$_$ifnot_DEBUG_$_()}catch(k){alert("Wt internal error: "+k+", code: "+k.code+", description: "+k.description)}_$_$endif_$_();f&&n(f)}else y=ba.concat(y);ba=[];if(N){clearTimeout(N);N=null}I=null;if(d>0)++W;else W=0;if(!P)if(ga||y.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);Q=setTimeout(function(){F()}, d)}else F()}}function w(){I.abort();N=I=null;P||F()}function z(d,c,f,k){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!I){_$_$endif_$_();var h={},m=y.length;h.object=d;h.signal=c;h.event=f;h.feedback=k;y[m]=S(h,m);E();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function E(){if(I!=null&&N!=null){clearTimeout(N);I.abort();I=null}if(I==null)if(Q==null){Q=setTimeout(function(){F()},o.updateDelay);ha=(new Date).getTime()}else if(W){clearTimeout(Q);F()}else if((new Date).getTime()-
if(g!=null)f.className=g}}if(c.dropTarget)if(c.dropTarget.handleDragDrop)c.dropTarget.handleDragDrop("drag",c.object,d,"",m);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function C(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):M(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var g=
c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var h=0;h<U.length;++h){var s=o.getElement(U[h]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m<
c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var g=0;g<U.length;++g){var s=o.getElement(U[g]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m<
c.object,d,"",m);else c.object.className="Wt-valid-drop";o.cancelEvent(d);return false}return true}function C(d){o.capture(null);var c=Y;if(c.object){if(c.dropTarget){var f=c.dropTarget.getAttribute("dos");if(f!=null)c.dropTarget.className=f;c.dropTarget.handleDragDrop?c.dropTarget.handleDragDrop("drop",c.object,d,c.sourceId,c.mimeType):M(c.dropTarget,{name:"_drop",eventObject:c.dropTarget,event:d},c.sourceId,c.mimeType)}c.object.style.position=c.objectPrevStyle.position;c.object.style.display=c.objectPrevStyle.display;c.object.style.left=c.objectPrevStyle.left;c.object.style.top=c.objectPrevStyle.top;c.object.className=c.objectPrevStyle.className;c.object=null}}function T(d,c){var f,j;j=d.event;c=c>0?"&e"+c:"&";f=c+"signal="+d.signal;if(d.id){f+=c+"id="+d.id+c+"name="+encodeURIComponent(d.name)+c+"an="+d.args.length;for(var m=0;m<d.args.length;++m)f+=c+"a"+m+"="+encodeURIComponent(d.args[m])}for(var h=0;h<U.length;++h){var s=o.getElement(U[h]),v=null,Z;if(s!=null){if(s.type=="select-multiple"){m=0;for(Z=s.options.length;m<
d+=A[e].data}da=A;A=[];return{feedback:c,result:d}}function Y(){P=true;if(W){clearTimeout(W);W=null}var d=$("#Wt-timers");d.size()>0&&n.setHtml(d.get(0),"",false)}function a(){n.history._initTimeout();X==0&&y(null,"none",null,false);W=setTimeout(a,_$_KEEP_ALIVE_$_000)}function b(d){if(!n.isIEMobile)document.title=d}function f(){if(!document.activeElement){function d(e){if(e&&e.target)document.activeElement=e.target==document?null:e.target}function c(){document.activeElement=null}document.addEventListener("focus",
e.target==document?null:e.target}function c(){document.activeElement=null}document.addEventListener("focus",d,true);document.addEventListener("blur",c,true)}n.history._initialize();T();if(!ga){ga=true;_$_ONLOAD_$_();P||(W=setTimeout(a,_$_KEEP_ALIVE_$_000))}}function h(d){clearTimeout(d);document.body.style.cursor="auto";if(ba!=null){try{ba()}catch(c){}ba=null}}function k(){document.body.style.cursor="wait";ba=hideLoadingIndicator;showLoadingIndicator()}function o(d){ha=d}function E(d){if(d){d="(function() {"+
d+=A[e].data}da=A;A=[];return{feedback:c,result:d}}function Y(){P=true;if(W){clearTimeout(W);W=null}var d=$("#Wt-timers");d.size()>0&&n.setHtml(d.get(0),"",false)}function a(){n.history._initTimeout();X==0&&y(null,"none",null,false);W=setTimeout(a,_$_KEEP_ALIVE_$_000)}function b(d){if(!n.isIEMobile)document.title=d}function f(){if(!document.activeElement){function d(e){if(e&&e.target)document.activeElement=e.target==document?null:e.target}function c(){document.activeElement=null}document.addEventListener("focus",
true){typeof R[d]!=="undefined"&&R[d]();R[d]=true}}function C(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(j){e=false}if(e)G(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){G(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState=="loaded")G(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function H(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=
null}i.onclick&&i.onclick()}},m=n.getElement(d);m.timer=setTimeout(j,c);m.tm=j}function M(d,c){setTimeout(function(){if(R[d]===true)c();else R[d]=c},20)}function G(d){if(R[d]!==true){typeof R[d]!=="undefined"&&R[d]();R[d]=true}}function C(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(j){e=false}if(e)G(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){G(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState== "loaded")G(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function H(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=0;c<d.length;c++)this.preload(d[c])}function l(d){if(d.ieAlternativeExecuted)return"0";q.emit(d.parentNode,"IeAltnernative");d.style.width="";d.ieAlternativeExecuted=true;return"0"}function p(d){window.onbeforeunload=d&&d!=""?function(c){if(c=c||window.event)c.returnValue=d;return d}:null}var q=this,n=_$_WT_CLASS_$_,N=0,
true){typeof R[d]!=="undefined"&&R[d]();R[d]=true}}function C(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(j){e=false}if(e)G(d);else{var m=document.createElement("script");m.setAttribute("src",d);m.onload=function(){G(d)};m.onreadystatechange=function(){if(m.readyState=="complete"||m.readyState=="loaded")G(d)};document.getElementsByTagName("head")[0].appendChild(m)}}function H(d,c){this.callback=c;this.work=d.length;this.images=[];if(d.length==0)c(this.images);else for(c=
t&&t.setup&&t.setup(r,true);}};var n={},o=[];return{title:d.lang.div.title,minWidth:400,minHeight:165,contents:[{id:'info',label:d.lang.common.generalTab,title:d.lang.common.generalTab,elements:[{type:'hbox',widths:['50%','50%'],children:[{id:'elementStyle',type:'select',style:'width: 100%;',label:d.lang.div.styleSelectLabel,'default':'',items:[[d.lang.common.notSet,'']],onChange:function(){m.call(this,['info:class','advanced:dir','advanced:style']);},setup:function(p){for(var q in n)n[q].checkElementRemovable(p,true)&&this.setValue(q);},commit:function(p){var q;if(q=this.getValue())n[q].applyToObject(p);}},{id:'class',type:'text',label:d.lang.common.cssClass,'default':''}]}]},{id:'advanced',label:d.lang.common.advancedTab,title:d.lang.common.advancedTab,elements:[{type:'vbox',padding:1,children:[{type:'hbox',widths:['50%','50%'],children:[{type:'text',id:'id',label:d.lang.common.id,'default':''},{type:'text',id:'lang',label:d.lang.link.langCode,'default':''}]},{type:'hbox',children:[{type:'text',id:'style',style:'width: 100%;',label:d.lang.common.cssStyle,'default':'',commit:function(p){var q=this.getValue(),r=[q,p.getAttribute('style')].join(';');q&&p.setAttribute('style',r);}}]},{type:'hbox',children:[{type:'text',id:'title',style:'width: 100%;',label:d.lang.common.advisoryTitle,'default':''}]},{type:'select',id:'dir',style:'width: 100%;',label:d.lang.common.langDir,'default':'',items:[[d.lang.common.notSet,''],[d.lang.common.langDirLtr,'ltr'],[d.lang.common.langDirRtl,'rtl']]}]}]}],onLoad:function(){i.call(this);var p=this,q=this.getContentElement('info','elementStyle');d.getStylesSet(function(r){var s;if(r)for(var t=0;t<r.length;t++){var u=r[t];if(u.element&&u.element=='div'){s=u.name;n[s]=new CKEDITOR.style(u);q.items.push([s,s]);q.add(s,s);}}q[q.items.length>1?'enable':'disable']();setTimeout(function(){q.setup(p._element);},0);});},onShow:function(){if(e=='editdiv'){var p=k(d);p&&this.setupContent(this._element=p);}},onOk:function(){d.fire('saveSnapshot');if(e=='editdiv')o=[this._element];else o=j(d,true);var p=o.length;for(var q=0;q<p;q++){this.commitContent(o[q]);!o[q].getAttribute('style')&&o[q].removeAttribute('style');}d.fire('saveSnapshot');this.hide();},onHide:function(){delete this._element;}};};CKEDITOR.dialog.add('creatediv',function(d){return c(d,'creatediv');});CKEDITOR.dialog.add('editdiv',function(d){return c(d,'editdiv');});})();
t&&t.setup&&t.setup(r,true);}};var n={},o=[];return{title:d.lang.div.title,minWidth:400,minHeight:165,contents:[{id:'info',label:d.lang.common.generalTab,title:d.lang.common.generalTab,elements:[{type:'hbox',widths:['50%','50%'],children:[{id:'elementStyle',type:'select',style:'width: 100%;',label:d.lang.div.styleSelectLabel,'default':'',items:[[d.lang.common.notSet,'']],onChange:function(){m.call(this,['info:class','advanced:dir','advanced:style']);},setup:function(p){for(var q in n)n[q].checkElementRemovable(p,true)&&this.setValue(q);},commit:function(p){var q;if(q=this.getValue()){var r=n[q],s=p.getCustomData('elementStyle')||'';r.applyToObject(p);p.setCustomData('elementStyle',s+r._.definition.attributes.style);}}},{id:'class',type:'text',label:d.lang.common.cssClass,'default':''}]}]},{id:'advanced',label:d.lang.common.advancedTab,title:d.lang.common.advancedTab,elements:[{type:'vbox',padding:1,children:[{type:'hbox',widths:['50%','50%'],children:[{type:'text',id:'id',label:d.lang.common.id,'default':''},{type:'text',id:'lang',label:d.lang.link.langCode,'default':''}]},{type:'hbox',children:[{type:'text',id:'style',style:'width: 100%;',label:d.lang.common.cssStyle,'default':'',commit:function(p){var q=this.getValue()+(p.getCustomData('elementStyle')||'');p.setAttribute('style',q);}}]},{type:'hbox',children:[{type:'text',id:'title',style:'width: 100%;',label:d.lang.common.advisoryTitle,'default':''}]},{type:'select',id:'dir',style:'width: 100%;',label:d.lang.common.langDir,'default':'',items:[[d.lang.common.notSet,''],[d.lang.common.langDirLtr,'ltr'],[d.lang.common.langDirRtl,'rtl']]}]}]}],onLoad:function(){i.call(this);var p=this,q=this.getContentElement('info','elementStyle');d.getStylesSet(function(r){var s;if(r)for(var t=0;t<r.length;t++){var u=r[t];if(u.element&&u.element=='div'){s=u.name;n[s]=new CKEDITOR.style(u);q.items.push([s,s]);q.add(s,s);}}q[q.items.length>1?'enable':'disable']();setTimeout(function(){q.setup(p._element);},0);});},onShow:function(){if(e=='editdiv'){var p=k(d);p&&this.setupContent(this._element=p);}},onOk:function(){if(e=='editdiv')o=[this._element];else o=j(d,true);var p=o.length;for(var q=0;q<p;q++){this.commitContent(o[q]);!o[q].getAttribute('style')&&o[q].removeAttribute('style');}this.hide();},onHide:function(){if(e=='editdiv')this._element.removeCustomData('elementStyle');delete this._element;}};};CKEDITOR.dialog.add('creatediv',function(d){return c(d,'creatediv');});CKEDITOR.dialog.add('editdiv',function(d){return c(d,'editdiv');
(function(){function a(d,e,f){if(!e.is||!e.getCustomData('block_processed')){e.is&&CKEDITOR.dom.element.setMarker(f,e,'block_processed',true);d.push(e);}};function b(d){var e=[],f=d.getChildren();for(var g=0;g<f.count();g++){var h=f.getItem(g);if(!(h.type===CKEDITOR.NODE_TEXT&&/^[ \t\n\r]+$/.test(h.getText())))e.push(h);}return e;};function c(d,e){var f=(function(){var p=CKEDITOR.tools.extend({},CKEDITOR.dtd.$blockLimit);delete p.div;if(d.config.div_wrapTable){delete p.td;delete p.th;}return p;})(),g=CKEDITOR.dtd.div;function h(p){var q=new CKEDITOR.dom.elementPath(p).elements,r;for(var s=0;s<q.length;s++){if(q[s].getName() in f){r=q[s];break;}}return r;};function i(){this.foreach(function(p){if(/^(?!vbox|hbox)/.test(p.type)){if(!p.setup)p.setup=function(q){p.setValue(q.getAttribute(p.id)||'');};if(!p.commit)p.commit=function(q){var r=this.getValue();if('dir'==p.id&&q.getComputedStyle('direction')==r)return;if(r)q.setAttribute(p.id,r);else q.removeAttribute(p.id);};}});};function j(p){var q=[],r={},s=[],t,u=p.document.getSelection(),v=u.getRanges(),w=u.createBookmarks(),x,y,z=p.config.enterMode==CKEDITOR.ENTER_DIV?'div':'p';for(x=0;x<v.length;x++){y=v[x].createIterator();while(t=y.getNextParagraph()){if(t.getName() in f){var A,B=t.getChildren();for(A=0;A<B.count();A++)a(s,B.getItem(A),r);}else{while(!g[t.getName()]&&t.getName()!='body')t=t.getParent();a(s,t,r);}}}CKEDITOR.dom.element.clearAllMarkers(r);var C=l(s),D,E,F;for(x=0;x<C.length;x++){var G=C[x][0];D=G.getParent();for(A=1;A<C[x].length;A++)D=D.getCommonAncestor(C[x][A]);F=new CKEDITOR.dom.element('div',p.document);for(A=0;A<C[x].length;A++){G=C[x][A];while(!G.getParent().equals(D))G=G.getParent();C[x][A]=G;}var H=null;for(A=0;A<C[x].length;A++){G=C[x][A];if(!(G.getCustomData&&G.getCustomData('block_processed'))){G.is&&CKEDITOR.dom.element.setMarker(r,G,'block_processed',true);if(!A)F.insertBefore(G);F.append(G);}}CKEDITOR.dom.element.clearAllMarkers(r);q.push(F);}u.selectBookmarks(w);return q;};function k(p){var q=new CKEDITOR.dom.elementPath(p.getSelection().getStartElement()),r=q.blockLimit,s=r&&r.getAscendant('div',true);return s;};function l(p){var q=[],r=null,s,t;for(var u=0;u<p.length;u++){t=p[u];var v=h(t);if(!v.equals(r)){r=v;q.push([]);}q[q.length-1].push(t);}return q;};function m(p){var q=this.getDialog(),r=q._element&&q._element.clone()||new CKEDITOR.dom.element('div',d.document);this.commit(r,true);p=[].concat(p);var s=p.length,t;for(var u=0;u<s;u++){t=q.getContentElement.apply(q,p[u].split(':'));t&&t.setup&&t.setup(r,true);}};var n={},o=[];return{title:d.lang.div.title,minWidth:400,minHeight:165,contents:[{id:'info',label:d.lang.common.generalTab,title:d.lang.common.generalTab,elements:[{type:'hbox',widths:['50%','50%'],children:[{id:'elementStyle',type:'select',style:'width: 100%;',label:d.lang.div.styleSelectLabel,'default':'',items:[[d.lang.common.notSet,'']],onChange:function(){m.call(this,['info:class','advanced:dir','advanced:style']);},setup:function(p){for(var q in n)n[q].checkElementRemovable(p,true)&&this.setValue(q);},commit:function(p){var q;if(q=this.getValue())n[q].applyToObject(p);}},{id:'class',type:'text',label:d.lang.common.cssClass,'default':''}]}]},{id:'advanced',label:d.lang.common.advancedTab,title:d.lang.common.advancedTab,elements:[{type:'vbox',padding:1,children:[{type:'hbox',widths:['50%','50%'],children:[{type:'text',id:'id',label:d.lang.common.id,'default':''},{type:'text',id:'lang',label:d.lang.link.langCode,'default':''}]},{type:'hbox',children:[{type:'text',id:'style',style:'width: 100%;',label:d.lang.common.cssStyle,'default':'',commit:function(p){var q=this.getValue(),r=[q,p.getAttribute('style')].join(';');q&&p.setAttribute('style',r);}}]},{type:'hbox',children:[{type:'text',id:'title',style:'width: 100%;',label:d.lang.common.advisoryTitle,'default':''}]},{type:'select',id:'dir',style:'width: 100%;',label:d.lang.common.langDir,'default':'',items:[[d.lang.common.notSet,''],[d.lang.common.langDirLtr,'ltr'],[d.lang.common.langDirRtl,'rtl']]}]}]}],onLoad:function(){i.call(this);var p=this,q=this.getContentElement('info','elementStyle');d.getStylesSet(function(r){var s;if(r)for(var t=0;t<r.length;t++){var u=r[t];if(u.element&&u.element=='div'){s=u.name;n[s]=new CKEDITOR.style(u);q.items.push([s,s]);q.add(s,s);}}q[q.items.length>1?'enable':'disable']();setTimeout(function(){q.setup(p._element);},0);});},onShow:function(){if(e=='editdiv'){var p=k(d);p&&this.setupContent(this._element=p);}},onOk:function(){d.fire('saveSnapshot');if(e=='editdiv')o=[this._element];else o=j(d,true);var p=o.length;for(var q=0;q<p;q++){this.commitContent(o[q]);!o[q].getAttribute('style')&&o[q].removeAttribute('style');}d.fire('saveSnapshot');this.hide();},onHide:function(){delete this._element;}};};CKEDITOR.dialog.add('creatediv',function(d){return c(d,'creatediv');});CKEDITOR.dialog.add('editdiv',function(d){return c(d,'editdiv');});})();
null}}function r(){document.body.style.cursor="wait";X=hideLoadingIndicator;showLoadingIndicator()}function t(d){ea=d}function C(d){if(d)if(window.execScript)window.execScript(d);else with(window)eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(d,c,e){if(!ba){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();C(c);_$_$ifnot_DEBUG_$_()}catch(h){alert("Wt internal error: "+h+", code: "+h.code+", description: "+h.description)}_$_$endif_$_();e&&B(e)}else x=Z.concat(x);Z=[];if(L){clearTimeout(L);
var _$_WT_CLASS_$_=new (function(){function x(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(D!=null){if(!a)a=window.event;k.condCall(D,"onmousemove",a);return false}else return true}function C(a){if(D!=null){var b=D;k.capture(null);if(!a)a=window.event;k.condCall(b,"onmouseup",a);k.cancelEvent(a,k.CancelPropagate);return false}else return true}function Y(){if(!R){R=
null}}function r(){document.body.style.cursor="wait";X=hideLoadingIndicator;showLoadingIndicator()}function t(d){ea=d}function C(d){if(d)if(window.execScript)window.execScript(d);else with(window)eval(d);_$_APP_CLASS_$_._p_.autoJavaScript()}function D(d,c,e){if(!ba){if(d==0){_$_$ifnot_DEBUG_$_();try{_$_$endif_$_();C(c);_$_$ifnot_DEBUG_$_()}catch(h){alert("Wt internal error: "+h+", code: "+h.code+", description: "+h.description)}_$_$endif_$_();e&&B(e)}else x=Z.concat(x);Z=[];if(L){clearTimeout(L);
function c(){d=true;switch(b.readyState){case 0:a.aborted(b);break;case 4:b.status===200?a.complete(b):a.error(Xmla.Exception._newError("HTTP_ERROR","_ajax",a));break}}b.onreadystatechange=c;b.setRequestHeader("Content-Type","text/xml");b.send(a.data);!a.async&&!d&&c.call(b);return b}function j(a){return typeof a==="undefined"}function t(a){return typeof a==="function"}function N(a){return typeof a==="string"}function O(a){return typeof a==="number"}function P(a){return typeof a==="object"}function C(a){return a.replace(/\&/g,
(function(){var u="http: a.error(Xmla.Exception._newError("HTTP_ERROR","_ajax",a));break}}b=K?new ActiveXObject("MSXML2.XMLHTTP.3.0"):new XMLHttpRequest;b.open("POST",a.url,a.async);b.onreadystatechange=c;b.setRequestHeader("Content-Type","text/xml");b.send(a.data);!a.async&&!d&&c.call(b);return b}function j(a){return typeof a==="undefined"}function M(a){return typeof a==="function"}function N(a){return typeof a==="string"}function O(a){return typeof a==="number"}function P(a){return typeof a==="object"}function B(a){return a.replace(/\&/g,
function c(){d=true;switch(b.readyState){case 0:a.aborted(b);break;case 4:b.status===200?a.complete(b):a.error(Xmla.Exception._newError("HTTP_ERROR","_ajax",a));break}}b.onreadystatechange=c;b.setRequestHeader("Content-Type","text/xml");b.send(a.data);!a.async&&!d&&c.call(b);return b}function j(a){return typeof a==="undefined"}function t(a){return typeof a==="function"}function N(a){return typeof a==="string"}function O(a){return typeof a==="number"}function P(a){return typeof a==="object"}function C(a){return a.replace(/\&/g,
J>=0;J--)v(G[J]);if(I)x(I,true);else if(H)H.remove();}else if(F instanceof h){var K=F.getParent();if(K.getChildCount()==1)K.remove();else F.remove();}};function w(F){var G=F.getBogus();G&&G.remove();F.trim();};function x(F,G){var H=new d.range(F.getDocument());if(!H['moveToElementEdit'+(G?'End':'Start')](F)){H.selectNodeContents(F);H.collapse(G?false:true);}H.select(true);};function y(F){var G=F.$.rows,H=-1,I=[];for(var J=0;J<G.length;J++){H++;!I[H]&&(I[H]=[]);var K=-1;for(var L=0;L<G[J].cells.length;L++){var M=G[J].cells[L];K++;while(I[H][K])K++;var N=isNaN(M.colSpan)?1:M.colSpan,O=isNaN(M.rowSpan)?1:M.rowSpan;for(var P=0;P<O;P++){if(!I[H+P])I[H+P]=[];for(var Q=0;Q<N;Q++)I[H+P][K+Q]=G[J].cells[L];}K+=N-1;}}return I;};function z(F,G,H){var I=F[G];if(typeof H=='undefined')return I;for(var J=0;I&&J<I.length;J++){if(H.is&&I[J]==H.$)return J;else if(J==H)return new h(I[J]);}return H.is?-1:null;};function A(F,G,H){var I=[];for(var J=0;J<F.length;J++){var K=F[J];if(typeof H=='undefined')I.push(K[G]);else if(H.is&&K[G]==H.$)return J;else if(J==H)return new h(K[G]);}return typeof H=='undefined'?I:H.is?-1:null;};function B(F,G,H){var I=n(F),J;if((G?I.length!=1:I.length<2)||(J=F.getCommonAncestor())&&J.type==1&&J.is('table'))return false;var K,L=I[0],M=L.getAscendant('table'),N=y(M),O=N.length,P=N[0].length,Q=L.getParent().$.rowIndex,R=z(N,Q,L);if(G){var S;try{S=N[G=='up'?Q-1:G=='down'?Q+1:Q][G=='left'?R-1:G=='right'?R+1:R];}catch(ak){return false;}if(!S||L.$==S)return false;I[G=='up'||G=='left'?'unshift':'push'](new h(S));}var T=L.getDocument(),U=Q,V=0,W=0,X=!H&&new d.documentFragment(T),Y=0;for(var Z=0;Z<I.length;Z++){K=I[Z];var aa=K.getParent(),ab=K.getFirst(),ac=K.$.colSpan,ad=K.$.rowSpan,ae=aa.$.rowIndex,af=z(N,ae,K);Y+=ac*ad;W=Math.max(W,af-R+ac);V=Math.max(V,ae-Q+ad);if(!H){if(w(K),K.getChildren().count()){if(ae!=U&&ab&&!(ab.isBlockBoundary&&ab.isBlockBoundary({br:1}))){var ag=X.getLast(d.walker.whitespaces(true));if(ag&&!(ag.is&&ag.is('br')))X.append(new h('br'));}K.moveChildren(X);}Z?K.remove():K.setHtml('');}U=ae;}if(!H){X.moveChildren(L);if(!c)L.appendBogus();if(W>=P)L.removeAttribute('rowSpan');else L.$.rowSpan=V;if(V>=O)L.removeAttribute('colSpan');else L.$.colSpan=W;var ah=new d.nodeList(M.$.rows),ai=ah.count();for(Z=ai-1;Z>=0;Z--){var aj=ah.getItem(Z);if(!aj.$.cells.length){aj.remove();ai++;continue;}}return L;}else return V*W==Y;};function C(F,G){var H=n(F);if(H.length>1)return false;else if(G)return true;var I=H[0],J=I.getParent(),K=J.getAscendant('table'),L=y(K),M=J.$.rowIndex,N=z(L,M,I),O=I.$.rowSpan,P,Q,R,S; if(O>1){Q=Math.ceil(O/2);R=Math.floor(O/2);S=M+Q;var T=new h(K.$.rows[S]),U=z(L,S),V;P=I.clone();for(var W=0;W<U.length;W++){V=U[W];if(V.parentNode==T.$&&W>N){P.insertBefore(new h(V));break;}else V=null;}if(!V)T.append(P,true);}else{R=Q=1;T=J.clone();T.insertAfter(J);T.append(P=I.clone());var X=z(L,M);for(var Y=0;Y<X.length;Y++)X[Y].rowSpan++;}if(!c)P.appendBogus();I.$.rowSpan=Q;P.$.rowSpan=R;if(Q==1)I.removeAttribute('rowSpan');if(R==1)P.removeAttribute('rowSpan');return P;};function D(F,G){var H=n(F);if(H.length>1)return false;else if(G)return true;var I=H[0],J=I.getParent(),K=J.getAscendant('table'),L=y(K),M=J.$.rowIndex,N=z(L,M,I),O=I.$.colSpan,P,Q,R;if(O>1){Q=Math.ceil(O/2);R=Math.floor(O/2);}else{R=Q=1;var S=A(L,N);for(var T=0;T<S.length;T++)S[T].colSpan++;}P=I.clone();P.insertAfter(I);if(!c)P.appendBogus();I.$.colSpan=Q;P.$.colSpan=R;if(Q==1)I.removeAttribute('colSpan');if(R==1)P.removeAttribute('colSpan');return P;};var E={thead:1,tbody:1,tfoot:1,td:1,tr:1,th:1};j.tabletools={init:function(F){var G=F.lang.table;F.addCommand('cellProperties',new a.dialogCommand('cellProperties'));a.dialog.add('cellProperties',this.path+'dialogs/tableCell.js');F.addCommand('tableDelete',{exec:function(H){var I=H.getSelection(),J=I&&I.getStartElement(),K=J&&J.getAscendant('table',true);if(!K)return;I.selectElement(K);var L=I.getRanges()[0];L.collapse();I.selectRanges([L]);if(K.getParent().getChildCount()==1)K.getParent().remove();else K.remove();}});F.addCommand('rowDelete',{exec:function(H){var I=H.getSelection();x(r(I));}});F.addCommand('rowInsertBefore',{exec:function(H){var I=H.getSelection();q(I,true);}});F.addCommand('rowInsertAfter',{exec:function(H){var I=H.getSelection();q(I);}});F.addCommand('columnDelete',{exec:function(H){var I=H.getSelection();t(I);}});F.addCommand('columnInsertBefore',{exec:function(H){var I=H.getSelection();s(I,true);}});F.addCommand('columnInsertAfter',{exec:function(H){var I=H.getSelection();s(I);}});F.addCommand('cellDelete',{exec:function(H){var I=H.getSelection();v(I);}});F.addCommand('cellMerge',{exec:function(H){x(B(H.getSelection()),true);}});F.addCommand('cellMergeRight',{exec:function(H){x(B(H.getSelection(),'right'),true);}});F.addCommand('cellMergeDown',{exec:function(H){x(B(H.getSelection(),'down'),true);}});F.addCommand('cellVerticalSplit',{exec:function(H){x(C(H.getSelection()));}});F.addCommand('cellHorizontalSplit',{exec:function(H){x(D(H.getSelection()));}});F.addCommand('cellInsertBefore',{exec:function(H){var I=H.getSelection();
J<F.length;J++){var K=F[J];if(typeof H=='undefined')I.push(K[G]);else if(H.is&&K[G]==H.$)return J;else if(J==H)return new h(K[G]);}return typeof H=='undefined'?I:H.is?-1:null;};function B(F,G,H){var I=n(F),J;if((G?I.length!=1:I.length<2)||(J=F.getCommonAncestor())&&J.type==1&&J.is('table'))return false;var K,L=I[0],M=L.getAscendant('table'),N=e.buildTableMap(M),O=N.length,P=N[0].length,Q=L.getParent().$.rowIndex,R=z(N,Q,L);if(G){var S;try{S=N[G=='up'?Q-1:G=='down'?Q+1:Q][G=='left'?R-1:G=='right'?R+1:R];}catch(ak){return false;}if(!S||L.$==S)return false;I[G=='up'||G=='left'?'unshift':'push'](new h(S));}var T=L.getDocument(),U=Q,V=0,W=0,X=!H&&new d.documentFragment(T),Y=0;for(var Z=0;Z<I.length;Z++){K=I[Z];var aa=K.getParent(),ab=K.getFirst(),ac=K.$.colSpan,ad=K.$.rowSpan,ae=aa.$.rowIndex,af=z(N,ae,K);Y+=ac*ad;W=Math.max(W,af-R+ac);V=Math.max(V,ae-Q+ad);if(!H){if(x(K),K.getChildren().count()){if(ae!=U&&ab&&!(ab.isBlockBoundary&&ab.isBlockBoundary({br:1}))){var ag=X.getLast(d.walker.whitespaces(true));if(ag&&!(ag.is&&ag.is('br')))X.append(new h('br'));}K.moveChildren(X);}Z?K.remove():K.setHtml('');}U=ae;}if(!H){X.moveChildren(L);if(!c)L.appendBogus();if(W>=P)L.removeAttribute('rowSpan');else L.$.rowSpan=V;if(V>=O)L.removeAttribute('colSpan');else L.$.colSpan=W;var ah=new d.nodeList(M.$.rows),ai=ah.count();for(Z=ai-1;Z>=0;Z--){var aj=ah.getItem(Z);if(!aj.$.cells.length){aj.remove();ai++;continue;}}return L;}else return V*W==Y;};function C(F,G){var H=n(F);if(H.length>1)return false;else if(G)return true;var I=H[0],J=I.getParent(),K=J.getAscendant('table'),L=e.buildTableMap(K),M=J.$.rowIndex,N=z(L,M,I),O=I.$.rowSpan,P,Q,R,S;if(O>1){Q=Math.ceil(O/2);R=Math.floor(O/2);S=M+Q;var T=new h(K.$.rows[S]),U=z(L,S),V;P=I.clone();for(var W=0;W<U.length;W++){V=U[W];if(V.parentNode==T.$&&W>N){P.insertBefore(new h(V));break;}else V=null;}if(!V)T.append(P,true);}else{R=Q=1;T=J.clone();T.insertAfter(J);T.append(P=I.clone());var X=z(L,M);for(var Y=0;Y<X.length;Y++)X[Y].rowSpan++;}if(!c)P.appendBogus();I.$.rowSpan=Q;P.$.rowSpan=R;if(Q==1)I.removeAttribute('rowSpan');if(R==1)P.removeAttribute('rowSpan');return P;};function D(F,G){var H=n(F);if(H.length>1)return false;else if(G)return true;var I=H[0],J=I.getParent(),K=J.getAscendant('table'),L=e.buildTableMap(K),M=J.$.rowIndex,N=z(L,M,I),O=I.$.colSpan,P,Q,R;if(O>1){Q=Math.ceil(O/2);R=Math.floor(O/2);}else{R=Q=1;var S=A(L,N);for(var T=0;T<S.length;T++)S[T].colSpan++;}P=I.clone();P.insertAfter(I);if(!c)P.appendBogus();I.$.colSpan=Q;P.$.colSpan=R;
J>=0;J--)v(G[J]);if(I)x(I,true);else if(H)H.remove();}else if(F instanceof h){var K=F.getParent();if(K.getChildCount()==1)K.remove();else F.remove();}};function w(F){var G=F.getBogus();G&&G.remove();F.trim();};function x(F,G){var H=new d.range(F.getDocument());if(!H['moveToElementEdit'+(G?'End':'Start')](F)){H.selectNodeContents(F);H.collapse(G?false:true);}H.select(true);};function y(F){var G=F.$.rows,H=-1,I=[];for(var J=0;J<G.length;J++){H++;!I[H]&&(I[H]=[]);var K=-1;for(var L=0;L<G[J].cells.length;L++){var M=G[J].cells[L];K++;while(I[H][K])K++;var N=isNaN(M.colSpan)?1:M.colSpan,O=isNaN(M.rowSpan)?1:M.rowSpan;for(var P=0;P<O;P++){if(!I[H+P])I[H+P]=[];for(var Q=0;Q<N;Q++)I[H+P][K+Q]=G[J].cells[L];}K+=N-1;}}return I;};function z(F,G,H){var I=F[G];if(typeof H=='undefined')return I;for(var J=0;I&&J<I.length;J++){if(H.is&&I[J]==H.$)return J;else if(J==H)return new h(I[J]);}return H.is?-1:null;};function A(F,G,H){var I=[];for(var J=0;J<F.length;J++){var K=F[J];if(typeof H=='undefined')I.push(K[G]);else if(H.is&&K[G]==H.$)return J;else if(J==H)return new h(K[G]);}return typeof H=='undefined'?I:H.is?-1:null;};function B(F,G,H){var I=n(F),J;if((G?I.length!=1:I.length<2)||(J=F.getCommonAncestor())&&J.type==1&&J.is('table'))return false;var K,L=I[0],M=L.getAscendant('table'),N=y(M),O=N.length,P=N[0].length,Q=L.getParent().$.rowIndex,R=z(N,Q,L);if(G){var S;try{S=N[G=='up'?Q-1:G=='down'?Q+1:Q][G=='left'?R-1:G=='right'?R+1:R];}catch(ak){return false;}if(!S||L.$==S)return false;I[G=='up'||G=='left'?'unshift':'push'](new h(S));}var T=L.getDocument(),U=Q,V=0,W=0,X=!H&&new d.documentFragment(T),Y=0;for(var Z=0;Z<I.length;Z++){K=I[Z];var aa=K.getParent(),ab=K.getFirst(),ac=K.$.colSpan,ad=K.$.rowSpan,ae=aa.$.rowIndex,af=z(N,ae,K);Y+=ac*ad;W=Math.max(W,af-R+ac);V=Math.max(V,ae-Q+ad);if(!H){if(w(K),K.getChildren().count()){if(ae!=U&&ab&&!(ab.isBlockBoundary&&ab.isBlockBoundary({br:1}))){var ag=X.getLast(d.walker.whitespaces(true));if(ag&&!(ag.is&&ag.is('br')))X.append(new h('br'));}K.moveChildren(X);}Z?K.remove():K.setHtml('');}U=ae;}if(!H){X.moveChildren(L);if(!c)L.appendBogus();if(W>=P)L.removeAttribute('rowSpan');else L.$.rowSpan=V;if(V>=O)L.removeAttribute('colSpan');else L.$.colSpan=W;var ah=new d.nodeList(M.$.rows),ai=ah.count();for(Z=ai-1;Z>=0;Z--){var aj=ah.getItem(Z);if(!aj.$.cells.length){aj.remove();ai++;continue;}}return L;}else return V*W==Y;};function C(F,G){var H=n(F);if(H.length>1)return false;else if(G)return true;var I=H[0],J=I.getParent(),K=J.getAscendant('table'),L=y(K),M=J.$.rowIndex,N=z(L,M,I),O=I.$.rowSpan,P,Q,R,S;if(O>1){Q=Math.ceil(O/2);R=Math.floor(O/2);S=M+Q;var T=new h(K.$.rows[S]),U=z(L,S),V;P=I.clone();for(var W=0;W<U.length;W++){V=U[W];if(V.parentNode==T.$&&W>N){P.insertBefore(new h(V));break;}else V=null;}if(!V)T.append(P,true);}else{R=Q=1;T=J.clone();T.insertAfter(J);T.append(P=I.clone());var X=z(L,M);for(var Y=0;Y<X.length;Y++)X[Y].rowSpan++;}if(!c)P.appendBogus();I.$.rowSpan=Q;P.$.rowSpan=R;if(Q==1)I.removeAttribute('rowSpan');if(R==1)P.removeAttribute('rowSpan');return P;};function D(F,G){var H=n(F);if(H.length>1)return false;else if(G)return true;var I=H[0],J=I.getParent(),K=J.getAscendant('table'),L=y(K),M=J.$.rowIndex,N=z(L,M,I),O=I.$.colSpan,P,Q,R;if(O>1){Q=Math.ceil(O/2);R=Math.floor(O/2);}else{R=Q=1;var S=A(L,N);for(var T=0;T<S.length;T++)S[T].colSpan++;}P=I.clone();P.insertAfter(I);if(!c)P.appendBogus();I.$.colSpan=Q;P.$.colSpan=R;if(Q==1)I.removeAttribute('colSpan');if(R==1)P.removeAttribute('colSpan');return P;};var E={thead:1,tbody:1,tfoot:1,td:1,tr:1,th:1};j.tabletools={init:function(F){var G=F.lang.table;F.addCommand('cellProperties',new a.dialogCommand('cellProperties'));a.dialog.add('cellProperties',this.path+'dialogs/tableCell.js');F.addCommand('tableDelete',{exec:function(H){var I=H.getSelection(),J=I&&I.getStartElement(),K=J&&J.getAscendant('table',true);if(!K)return;I.selectElement(K);var L=I.getRanges()[0];L.collapse();I.selectRanges([L]);if(K.getParent().getChildCount()==1)K.getParent().remove();else K.remove();}});F.addCommand('rowDelete',{exec:function(H){var I=H.getSelection();x(r(I));}});F.addCommand('rowInsertBefore',{exec:function(H){var I=H.getSelection();q(I,true);}});F.addCommand('rowInsertAfter',{exec:function(H){var I=H.getSelection();q(I);}});F.addCommand('columnDelete',{exec:function(H){var I=H.getSelection();t(I);}});F.addCommand('columnInsertBefore',{exec:function(H){var I=H.getSelection();s(I,true);}});F.addCommand('columnInsertAfter',{exec:function(H){var I=H.getSelection();s(I);}});F.addCommand('cellDelete',{exec:function(H){var I=H.getSelection();v(I);}});F.addCommand('cellMerge',{exec:function(H){x(B(H.getSelection()),true);}});F.addCommand('cellMergeRight',{exec:function(H){x(B(H.getSelection(),'right'),true);}});F.addCommand('cellMergeDown',{exec:function(H){x(B(H.getSelection(),'down'),true);}});F.addCommand('cellVerticalSplit',{exec:function(H){x(C(H.getSelection()));}});F.addCommand('cellHorizontalSplit',{exec:function(H){x(D(H.getSelection()));}});F.addCommand('cellInsertBefore',{exec:function(H){var I=H.getSelection();
a);g.firedTarget=null}else g.condCall(b,"onmousemove",a);return S=false}else return true}function T(a){var b=t(a);g.capture(null);if(b){if(!a)a=window.event;if(g.isIE){g.firedTarget=a.srcElement||b;b.fireEvent("onmouseup",a);g.firedTarget=null}else g.condCall(b,"onmouseup",a);g.cancelEvent(a,g.CancelPropagate);return false}else return true}function ca(){if(!Y){Y=true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",D,true);a.addEventListener("mouseup",T,true);
a);g.firedTarget=null}else g.condCall(b,"onmousemove",a);return S=false}else return true}function T(a){var b=u(a);g.capture(null);if(b){if(!a)a=window.event;if(g.isIE){g.firedTarget=a.srcElement||b;b.fireEvent("onmouseup",a);g.firedTarget=null}else g.condCall(b,"onmouseup",a);g.cancelEvent(a,g.CancelPropagate);return false}else return true}function ca(){if(!U){U=true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",D,true);a.addEventListener("mouseup",T,true);
a);g.firedTarget=null}else g.condCall(b,"onmousemove",a);return S=false}else return true}function T(a){var b=t(a);g.capture(null);if(b){if(!a)a=window.event;if(g.isIE){g.firedTarget=a.srcElement||b;b.fireEvent("onmouseup",a);g.firedTarget=null}else g.condCall(b,"onmouseup",a);g.cancelEvent(a,g.CancelPropagate);return false}else return true}function ca(){if(!Y){Y=true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",D,true);a.addEventListener("mouseup",T,true);g.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&g.hasTag(b.target,"HTML")&&T(b)},true)}else{a=document.body;a.attachEvent("onmousemove",D);a.attachEvent("onmouseup",T)}}}var g=this;this.buttons=0;this.mouseDown=function(a){g.buttons|=g.button(a)};this.mouseUp=function(a){g.buttons^=g.button(a)};this.arrayRemove=function(a,b,f){f=a.slice((f||b)+1||a.length);a.length=b<0?a.length+b:b;return a.push.apply(a,f)};this.isIE6=(this.isIE=navigator.userAgent.toLowerCase().indexOf("msie")!=
case 'perc':
var calcMiddle = function(clef, oct) { var mid = 0; switch(clef) { case 'treble': case 'none': case 'treble+8': case 'treble-8': break; case 'bass3': case 'bass': case 'bass+8': case 'bass-8': case 'bass+16': case 'bass-16': mid = -12; break; case 'tenor': mid = -8; break; case 'alto2': case 'alto1': case 'alto': case 'alto+8': case 'alto-8': mid = -6; break; } return mid+oct; };