rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
panel.showArtifact(data);
panel.showArtifact(data, artifactContainer);
Sonatype.Events.addListener('fileContainerUpdate', function(artifactContainer, data) { var panel = artifactContainer.find('name', 'artifactInformationPanel')[0]; if (data == null || !data.leaf) { panel.showArtifact(null); } else { panel.showArtifact(data); } });
width: oWidth}, opts.speed, function() {
width: oWidth}, conf.speed, function() {
width: oWidth}, opts.speed, function() { // set close button and content over the image overlay.css("zIndex", opts.zIndex + 1).fadeIn(opts.fadeInSpeed, function() { if (self.isOpened() && !$(this).index(overlay)) { onLoad.call(); } else { overlay.hide(); } }); });
overlay.css("zIndex", opts.zIndex + 1).fadeIn(opts.fadeInSpeed, function() {
overlay.css("zIndex", conf.zIndex + 1).fadeIn(conf.fadeInSpeed, function() {
width: oWidth}, opts.speed, function() { // set close button and content over the image overlay.css("zIndex", opts.zIndex + 1).fadeIn(opts.fadeInSpeed, function() { if (self.isOpened() && !$(this).index(overlay)) { onLoad.call(); } else { overlay.hide(); } }); });
var id = $(this).attr('id'); var elements = get(); var blockSubmit = false;
var element = $(this); calculateMeta(null, $(this)); $(this).bind('keyup', calculateMeta); if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { $('#pageTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#pageTitle').val(element.val()); } }); } if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { $('#navigationTitleOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#navigationTitle').val(element.val()); } }); } $('#metaDescriptionOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaDescription').val(element.val()); } }); $('#metaKeywordsOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#metaKeywords').val(element.val()); } }); $('#urlOverwrite').change(function(evt) { if(!$(this).is(':checked')) { $('#url').val(utils.string.urlise(element.val())); $('#generatedUrl').html(utils.string.urlise(element.val())); } });
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText dontSubmit" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" id="addButton-'+ id +'" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">'+ ' <span>'+ options.addLabel +'</span>'+ ' </a>'+ ' </div>'+ ' </div>'+ ' <div id="elementList-'+ id +'" class="tagList">'+ ' </div>'+ '</div>'; // hide current element $(this).css('visibility', 'hidden') .css('position', 'absolute') .css('top', '-9000px') .css('left', '-9000px') .attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-'+ id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for(var i in data.data) realData.push({ label: data.data[i].name, value: data.data[i].name }); } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-'+ id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-'+ id).addClass('disabledButton'); } else $('#addButton-'+ id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-'+ id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-'+ id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-'+ id).val('').focus(); $('#addButton-'+ id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for(var i in elements) if(value == elements[i]) inElements = true; // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value) } return elements; } // remove an item function remove(value) { // get index for element var index = elements.indexOf(value); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } });
$(this.form).submit(function() { return !blockSubmit; }) var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText dontSubmit" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" id="addButton-'+ id +'" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">'+ ' <span>'+ options.addLabel +'</span>'+ ' </a>'+ ' </div>'+ ' </div>'+ ' <div id="elementList-'+ id +'" class="tagList">'+ ' </div>'+ '</div>'; $(this).css('visibility', 'hidden') .css('position', 'absolute') .css('top', '-9000px') .css('left', '-9000px') .attr('tabindex', '-1'); $(this).before(html);
function calculateMeta(evt, element) { if(typeof element != 'undefined') var title = element.val(); else var title = $(this).val();
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText dontSubmit" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" id="addButton-'+ id +'" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">'+ ' <span>'+ options.addLabel +'</span>'+ ' </a>'+ ' </div>'+ ' </div>'+ ' <div id="elementList-'+ id +'" class="tagList">'+ ' </div>'+ '</div>'; // hide current element $(this).css('visibility', 'hidden') .css('position', 'absolute') .css('top', '-9000px') .css('left', '-9000px') .attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-'+ id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for(var i in data.data) realData.push({ label: data.data[i].name, value: data.data[i].name }); } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-'+ id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-'+ id).addClass('disabledButton'); } else $('#addButton-'+ id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-'+ id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-'+ id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-'+ id).val('').focus(); $('#addButton-'+ id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for(var i in elements) if(value == elements[i]) inElements = true; // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value) } return elements; } // remove an item function remove(value) { // get index for element var index = elements.indexOf(value); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } });
build(); if(options.autoCompleteUrl != '') { $('#addValue-'+ id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { var realData = []; if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for(var i in data.data) realData.push({ label: data.data[i].name, value: data.data[i].name }); } response(realData); } }); } }); } $('#addValue-'+ id).bind('keyup', function(evt) { blockSubmit = true; var code = evt.which; if(code == 13 || String.fromCharCode(code) == options.splitChar) { evt.preventDefault(); evt.stopPropagation(); add(); } if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-'+ id).addClass('disabledButton'); } else $('#addButton-'+ id).removeClass('disabledButton'); }); $('#addButton-'+ id).bind('click', function(evt) { evt.preventDefault(); evt.stopPropagation(); add(); }); $('.deleteButton-'+ id).live('click', function(evt) { evt.preventDefault(); evt.stopPropagation(); remove($(this).attr('rel')); }); function add() { blockSubmit = false; var value = $('#addValue-'+ id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; $('#addValue-'+ id).val('').focus(); $('#addButton-'+ id).addClass('disabledButton'); if(value != '') { for(var i in elements) if(value == elements[i]) inElements = true; if(!inElements) { elements.push(value); $('#'+ id).val(elements.join(options.splitChar)); build();
if($('#pageTitle').length > 0 && $('#pageTitleOverwrite').length > 0) { if(!$('#pageTitleOverwrite').is(':checked')) { $('#pageTitle').val(title);
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText dontSubmit" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" id="addButton-'+ id +'" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">'+ ' <span>'+ options.addLabel +'</span>'+ ' </a>'+ ' </div>'+ ' </div>'+ ' <div id="elementList-'+ id +'" class="tagList">'+ ' </div>'+ '</div>'; // hide current element $(this).css('visibility', 'hidden') .css('position', 'absolute') .css('top', '-9000px') .css('left', '-9000px') .attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-'+ id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for(var i in data.data) realData.push({ label: data.data[i].name, value: data.data[i].name }); } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-'+ id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-'+ id).addClass('disabledButton'); } else $('#addButton-'+ id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-'+ id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-'+ id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-'+ id).val('').focus(); $('#addButton-'+ id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for(var i in elements) if(value == elements[i]) inElements = true; // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value) } return elements; } // remove an item function remove(value) { // get index for element var index = elements.indexOf(value); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } });
} function build() { var html = ''; if(elements.length == 0 && options.emptyMessage != '') html = '<p class="helpTxt">'+ options.emptyMessage +'</p>'; else { html = '<ul>'; 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>';
if($('#navigationTitle').length > 0 && $('#navigationTitleOverwrite').length > 0) { if(!$('#navigationTitleOverwrite').is(':checked')) { $('#navigationTitle').val(title);
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText dontSubmit" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" id="addButton-'+ id +'" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">'+ ' <span>'+ options.addLabel +'</span>'+ ' </a>'+ ' </div>'+ ' </div>'+ ' <div id="elementList-'+ id +'" class="tagList">'+ ' </div>'+ '</div>'; // hide current element $(this).css('visibility', 'hidden') .css('position', 'absolute') .css('top', '-9000px') .css('left', '-9000px') .attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-'+ id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for(var i in data.data) realData.push({ label: data.data[i].name, value: data.data[i].name }); } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-'+ id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-'+ id).addClass('disabledButton'); } else $('#addButton-'+ id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-'+ id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-'+ id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-'+ id).val('').focus(); $('#addButton-'+ id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for(var i in elements) if(value == elements[i]) inElements = true; // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value) } return elements; } // remove an item function remove(value) { // get index for element var index = elements.indexOf(value); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } });
html += '</ul>';
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText dontSubmit" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" id="addButton-'+ id +'" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">'+ ' <span>'+ options.addLabel +'</span>'+ ' </a>'+ ' </div>'+ ' </div>'+ ' <div id="elementList-'+ id +'" class="tagList">'+ ' </div>'+ '</div>'; // hide current element $(this).css('visibility', 'hidden') .css('position', 'absolute') .css('top', '-9000px') .css('left', '-9000px') .attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-'+ id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for(var i in data.data) realData.push({ label: data.data[i].name, value: data.data[i].name }); } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-'+ id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-'+ id).addClass('disabledButton'); } else $('#addButton-'+ id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-'+ id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-'+ id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-'+ id).val('').focus(); $('#addButton-'+ id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for(var i in elements) if(value == elements[i]) inElements = true; // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value) } return elements; } // remove an item function remove(value) { // get index for element var index = elements.indexOf(value); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } });
$('#elementList-'+ id).html(html); } function get() { var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value)
if(!$('#metaDescriptionOverwrite').is(':checked')) { $('#metaDescription').val(title);
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText dontSubmit" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" id="addButton-'+ id +'" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">'+ ' <span>'+ options.addLabel +'</span>'+ ' </a>'+ ' </div>'+ ' </div>'+ ' <div id="elementList-'+ id +'" class="tagList">'+ ' </div>'+ '</div>'; // hide current element $(this).css('visibility', 'hidden') .css('position', 'absolute') .css('top', '-9000px') .css('left', '-9000px') .attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-'+ id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for(var i in data.data) realData.push({ label: data.data[i].name, value: data.data[i].name }); } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-'+ id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-'+ id).addClass('disabledButton'); } else $('#addButton-'+ id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-'+ id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-'+ id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-'+ id).val('').focus(); $('#addButton-'+ id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for(var i in elements) if(value == elements[i]) inElements = true; // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value) } return elements; } // remove an item function remove(value) { // get index for element var index = elements.indexOf(value); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } });
return elements; } function remove(value) { var index = elements.indexOf(value); if(index > -1) elements.splice(index, 1); $('#'+ id).val(elements.join(options.splitChar)); build();
if(!$('#metaKeywordsOverwrite').is(':checked')) { $('#metaKeywords').val(title); } if(!$('#urlOverwrite').is(':checked')) { $('#url').val(utils.string.urlise(title)); $('#generatedUrl').html(utils.string.urlise(title)); }
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; // bind submit $(this.form).submit(function() { return !blockSubmit; }) // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText dontSubmit" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" id="addButton-'+ id +'" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">'+ ' <span>'+ options.addLabel +'</span>'+ ' </a>'+ ' </div>'+ ' </div>'+ ' <div id="elementList-'+ id +'" class="tagList">'+ ' </div>'+ '</div>'; // hide current element $(this).css('visibility', 'hidden') .css('position', 'absolute') .css('top', '-9000px') .css('left', '-9000px') .attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-'+ id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for(var i in data.data) realData.push({ label: data.data[i].name, value: data.data[i].name }); } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-'+ id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-'+ id).addClass('disabledButton'); } else $('#addButton-'+ id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-'+ id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-'+ id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-'+ id).val('').focus(); $('#addButton-'+ id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for(var i in elements) if(value == elements[i]) inElements = true; // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value) } return elements; } // remove an item function remove(value) { // get index for element var index = elements.indexOf(value); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } });
function(a,b){if(m(a))if(c.widgetCoordinates(a,b).x>a.offsetWidth-16)if(f!=a.id){k();f=a.id;n.refilter()}else{f=null;k()}};this.editKeyDown=function(a,b){if(!m(a))return true;if(f!=a.id)if($(a).hasClass("Wt-suggest-onedit"))f=a.id;else if($(a).hasClass("Wt-suggest-dropdown")&&b.keyCode==40)f=a.id;else{f=null;return true}var h=l?c.getElement(l):null;if(s()&&h)if(b.keyCode==13||b.keyCode==9){t(h);c.cancelEvent(b);setTimeout(function(){a.focus()},0);return false}else if(b.keyCode==40||b.keyCode==38||
40)f=a.id;else{f=null;return true}var h=k?c.getElement(k):null;if(t()&&h)if(b.keyCode==13||b.keyCode==9){u(h);c.cancelEvent(b);setTimeout(function(){a.focus()},0);return false}else if(b.keyCode==40||b.keyCode==38||b.keyCode==34||b.keyCode==33){if(b.type.toUpperCase()=="KEYDOWN"){w=true;c.cancelEvent(b,c.CancelDefaultAction)}if(b.type.toUpperCase()=="KEYPRESS"&&w==true){c.cancelEvent(b);return false}var e=h,p=b.keyCode==40||b.keyCode==34;b=b.keyCode==34||b.keyCode==33?d.clientHeight/h.offsetHeight:
function(a,b){if(m(a))if(c.widgetCoordinates(a,b).x>a.offsetWidth-16)if(f!=a.id){k();f=a.id;n.refilter()}else{f=null;k()}};this.editKeyDown=function(a,b){if(!m(a))return true;if(f!=a.id)if($(a).hasClass("Wt-suggest-onedit"))f=a.id;else if($(a).hasClass("Wt-suggest-dropdown")&&b.keyCode==40)f=a.id;else{f=null;return true}var h=l?c.getElement(l):null;if(s()&&h)if(b.keyCode==13||b.keyCode==9){t(h);c.cancelEvent(b);setTimeout(function(){a.focus()},0);return false}else if(b.keyCode==40||b.keyCode==38||
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< G;++C){A=y.childNodes[C];if(A.className=="Wt-vrh"){A.ci=E-1;A.onmousedown=function(c){m(this,this.ci,c||window.event)}}else E+=A.colSpan}++x}}r.resizeInitialized=true}});
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= z.childNodes.length;C<G;++C){x=z.childNodes[C];if(x.className=="Wt-vrh"){x.ci=E-1;x.onmousedown=x.ontouchstart=function(c){m(this,this.ci,c||window.event)}}else E+=x.colSpan}++y}}r.resizeInitialized=true}});
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,i){function o(c){var f,j,l,q=a.getElement(t).firstChild.childNodes;j=f=0;for(l=q.length;j<l;j++){var s=q[j];if(a.hasTag(s,"COLGROUP")){j=-1;q=s.childNodes;l=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(f==c)return s;else++f}return null}function d(c,f){if(c.offsetWidth>0)return c.offsetWidth;else{c=n.firstChild.rows[0];var j,l,q,s;q=l=0;for(s=c.childNodes.length;l<s;++l){j=c.childNodes[l];if(j.className!="Wt-vrh"){if(q==f)return j.offsetWidth;q+=j.colSpan}}return 0}}function e(c,f){var j=a.getElement(t).firstChild;o(c).style.width=f+"px";var l,q,s,v;q=l=0;for(s=j.rows.length;l<s;l++){v=j.rows[l];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-r.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++q}}}function g(c,f,j){var l=c.firstChild;new a.SizeHandle(a,"v",l.offsetHeight,l.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){h(c,f,q)},l,n,j,0,0)}function m(c,f,j){var l=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,l,q,"Wt-hsh",function(B){b(c,f,B)},s,n,j,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function h(c,f,j){var l=c.parentNode.previousSibling;c=c.parentNode.nextSibling;var q=l.offsetHeight,s=c.offsetHeight;if(i.stretch[f]>0&&i.stretch[f+1]>0)i.stretch[f]=-1;if(i.stretch[f+1]==0)i.stretch[f+1]=-1;i.stretch[f]<=0&&r.adjustRow(l,q+j);i.stretch[f+1]<=0&&r.adjustRow(c,s-j);a.getElement(t).dirty=true;window.onresize()}function k(){var c,f=0;for(c=0;;++c){var j=o(c);if(j)f+=a.pctself(j,"width");else break}if(f!=0)for(c=0;;++c)if(j=o(c)){var l=a.pctself(j,"width");if(l)j.style.width=l*100/f+"%"}else break}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<G;++C){A=y.childNodes[C];if(A.className=="Wt-vrh"){A.ci=E-1;A.onmousedown=function(c){m(this,this.ci,c||window.event)}}else E+=A.colSpan}++x}}r.resizeInitialized=true}});
item.url = false;
downloadString, function(text) { // get marked records as RIS Zotero.debug(text); // load translator for RIS var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n"; // load translator for RIS var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", function(obj, item) { if (text.match("L3")) { item.DOI = text.match(/L3\s+\-\s*(.*)/)[1]; } if (text.match("T1")) { item.title = text.match(/T1\s+-\s*(.*)/)[1]; } item.itemType = "journalArticle"; // RIS translator tries to download the link in "UR" this leads to unhappyness item.attachments = []; item.complete(); }); translator.translate(); Zotero.done(); });
panel.show();
Sonatype.Events.addListener('artifactContainerUpdate', function(artifactContainer, payload) { var panel = artifactContainer.find('name', 'maven2InformationPanel')[0]; if (payload == null || !payload.leaf) { panel.showArtifact(null); } else { Ext.Ajax.request({ url : payload.resourceURI + '?describe=maven2', callback : function(options, isSuccess, response) { if (isSuccess) { artifactContainer.tabPanel.unhideTabStripItem( panel ); panel.show(); var infoResp = Ext.decode(response.responseText); panel.showArtifact(infoResp.data); } else { if( response.stats = 404 ) { artifactContainer.tabPanel.hideTabStripItem( panel ); panel.hide(); // this hides the panel but leaves it white // FIXME: tried these... //artifactContainer.tabPanel.doLayout(); //artifactContainer.doLayout(); } else { Sonatype.utils.connectionError(response, 'Unable to retrieve Maven information.'); } } }, scope : this, method : 'GET', suppressStatus : 404, }); } });
panel.hide();
artifactContainer.tabPanel.setActiveTab(1);
Sonatype.Events.addListener('artifactContainerUpdate', function(artifactContainer, payload) { var panel = artifactContainer.find('name', 'maven2InformationPanel')[0]; if (payload == null || !payload.leaf) { panel.showArtifact(null); } else { Ext.Ajax.request({ url : payload.resourceURI + '?describe=maven2', callback : function(options, isSuccess, response) { if (isSuccess) { artifactContainer.tabPanel.unhideTabStripItem( panel ); panel.show(); var infoResp = Ext.decode(response.responseText); panel.showArtifact(infoResp.data); } else { if( response.stats = 404 ) { artifactContainer.tabPanel.hideTabStripItem( panel ); panel.hide(); // this hides the panel but leaves it white // FIXME: tried these... //artifactContainer.tabPanel.doLayout(); //artifactContainer.doLayout(); } else { Sonatype.utils.connectionError(response, 'Unable to retrieve Maven information.'); } } }, scope : this, method : 'GET', suppressStatus : 404, }); } });
hp.pitches.each(function(p) { p.verticalPos = p.pitch - mid; });
usedNums.each(function(x) { if (nextNum === x) ++nextNum; })
hp.pitches.each(function(p) { p.verticalPos = p.pitch - mid; });
return;
element.observe("click", function(event) { if (interceptClickEvent) { event.stop(); runModalDialog(function() { if ($T(element).hasAction) { element.fire(Tapestry.ACTION_EVENT, event); return; } /* * A submit element (i.e., it has a click() method)? Try that * next. */ if (element.click) { interceptClickEvent = false; element.click(); } /* * Not a zone updater, so just do a full page refresh to the * indicated URL. */ window.location = element.href; }); } });
item.abstractNote = abs;
if (abs) item.abstractNote = abs;
Zotero.Utilities.HTTP.doPost(urlRIS, post, function(text) { // load translator for RIS var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", function(obj, item) { if (item.itemID) { item.DOI = item.itemID; } item.attachments = [ {url:snapurl, title:"PROLA Snapshot", mimeType:"text/html"}, {url:pdfurl, title:"PROLA Full Text PDF", mimeType:"application/pdf"} ]; item.abstractNote = abs; item.complete(); }); translator.translate(); }, null, 'latin1');
result.prime = NULL_CHECKER;
result.checker = NULL_CHECKER;
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bitLength - 1 ), BigInteger.op_or, self ); if( self.isEven() ) self.dAddOffset( 1,0 ); // force odd BigInteger.log( "stepping_fromNumber1.2" ); return DO([ // ver2 >> function(result) { result.prime = NULL_CHECKER; BigInteger.log( "stepping_fromNumber1.2.1.1: calling stepping_isProbablePrime" ); return self.stepping_isProbablePrime( certainty ); }, function(result) { BigInteger.log( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime:" + result ); if ( result.prime == null || result.prime == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime ); } if ( result.prime ) return DONE( result); }, // ver2 << function() { BigInteger.log("stepping_fromNumber1.2.2"); self.dAddOffset( 2, 0 ); if( self.bitLength() > bitLength ) { self.subTo( BigInteger.ONE.shiftLeft(bitLength-1), self ); } }, ]); } });
if ( result.prime == null || result.prime == NULL_CHECKER ) {
if ( result.checker == null || result.checker == NULL_CHECKER ) {
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bitLength - 1 ), BigInteger.op_or, self ); if( self.isEven() ) self.dAddOffset( 1,0 ); // force odd BigInteger.log( "stepping_fromNumber1.2" ); return DO([ // ver2 >> function(result) { result.prime = NULL_CHECKER; BigInteger.log( "stepping_fromNumber1.2.1.1: calling stepping_isProbablePrime" ); return self.stepping_isProbablePrime( certainty ); }, function(result) { BigInteger.log( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime:" + result ); if ( result.prime == null || result.prime == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime ); } if ( result.prime ) return DONE( result); }, // ver2 << function() { BigInteger.log("stepping_fromNumber1.2.2"); self.dAddOffset( 2, 0 ); if( self.bitLength() > bitLength ) { self.subTo( BigInteger.ONE.shiftLeft(bitLength-1), self ); } }, ]); } });
if ( result.prime ) return DONE( result);
if ( result.checker ) return DONE();
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bitLength - 1 ), BigInteger.op_or, self ); if( self.isEven() ) self.dAddOffset( 1,0 ); // force odd BigInteger.log( "stepping_fromNumber1.2" ); return DO([ // ver2 >> function(result) { result.prime = NULL_CHECKER; BigInteger.log( "stepping_fromNumber1.2.1.1: calling stepping_isProbablePrime" ); return self.stepping_isProbablePrime( certainty ); }, function(result) { BigInteger.log( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime:" + result ); if ( result.prime == null || result.prime == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime ); } if ( result.prime ) return DONE( result); }, // ver2 << function() { BigInteger.log("stepping_fromNumber1.2.2"); self.dAddOffset( 2, 0 ); if( self.bitLength() > bitLength ) { self.subTo( BigInteger.ONE.shiftLeft(bitLength-1), self ); } }, ]); } });
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], "paddingTop"),w=a.pxself(q.rows[q.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,q.offsetHeight-v-w,n,r,"Wt-hsh",function(B){k(e,j,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function d(e,j,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[j]>0&&h.stretch[j+1]>0)h.stretch[j]=-1;if(h.stretch[j+1]==0)h.stretch[j+1]=-1;h.stretch[j]<=0&&g.adjustRow(n,r+m);h.stretch[j+1]<=0&&g.adjustRow(e,u-m); a.getElement(t).dirty=true;window.onresize()}function i(){var e,j=0;for(e=0;;++e){var m=p(e);if(m)j+=a.pctself(m,"width");else break}if(j!=0)for(e=0;;++e)if(m=p(e)){var n=a.pctself(m,"width");if(n)m.style.width=n*100/j+"%"}else break}function k(e,j,m){e=p(j);var n=o(e,j),r=p(j+1),u=o(r,j+1);if(a.pctself(e,"width")>0&&a.pctself(r,"width")>0){e.style.width="";i()}a.pctself(e,"width")==0&&b(j,n+m);a.pctself(r,"width")==0&&b(j+1,u-m);window.onresize()}var g=this,p=g.getColumn,l=a.getElement(t);if(l)if(!g.resizeInitialized){var q= l.firstChild,s,y,A,z;y=s=0;for(A=q.rows.length;s<A;s++){z=q.rows[s];if(z.className=="Wt-hrh"){var x=z.firstChild;x.ri=y-1;x.onmousedown=x.ontouchstart=function(e){c(this,this.ri,e||window.event)}}else{var C,E,G;E=C=0;for(G=z.childNodes.length;C<G;++C){x=z.childNodes[C];if(x.className=="Wt-vrh"){x.ci=E-1;x.onmousedown=x.ontouchstart=function(e){f(this,this.ci,e||window.event)}}else E+=x.colSpan}++y}}g.resizeInitialized=true}});
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], "paddingTop"),x=a.pxself(s.rows[s.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,s.offsetHeight-w-x,n,r,"Wt-hsh",function(B){k(e,j,B)},u,l,m,0,-e.offsetTop+w-a.pxself(e,"paddingTop"))}function i(e,j,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[j]>0&&h.stretch[j+1]>0)h.stretch[j]=-1;if(h.stretch[j+1]==0)h.stretch[j+1]=-1;h.stretch[j]<=0&&g.adjustRow(n,r+m);h.stretch[j+1]<=0&&g.adjustRow(e,u-m); a.getElement(t).dirty=true;window.onresize()}function d(){var e,j=0;for(e=0;;++e){var m=p(e);if(m)j+=a.pctself(m,"width");else break}if(j!=0)for(e=0;;++e)if(m=p(e)){var n=a.pctself(m,"width");if(n)m.style.width=n*100/j+"%"}else break}function k(e,j,m){e=p(j);var n=o(e,j),r=p(j+1),u=o(r,j+1);if(a.pctself(e,"width")>0&&a.pctself(r,"width")>0){e.style.width="";d()}a.pctself(e,"width")==0&&b(j,n+m);a.pctself(r,"width")==0&&b(j+1,u-m);window.onresize()}var g=this,p=g.getColumn,l=a.getElement(t);if(l)if(!g.resizeInitialized){var s= l.firstChild,q,v,A,z;v=q=0;for(A=s.rows.length;q<A;q++){z=s.rows[q];if(z.className=="Wt-hrh"){var y=z.firstChild;y.ri=v-1;y.onmousedown=y.ontouchstart=function(e){c(this,this.ri,e||window.event)}}else{var C,E,G;E=C=0;for(G=z.childNodes.length;C<G;++C){y=z.childNodes[C];if(y.className=="Wt-vrh"){y.ci=E-1;y.onmousedown=y.ontouchstart=function(e){f(this,this.ci,e||window.event)}}else E+=y.colSpan}++v}}g.resizeInitialized=true}});
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],"paddingTop"),w=a.pxself(q.rows[q.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,q.offsetHeight-v-w,n,r,"Wt-hsh",function(B){k(e,j,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function d(e,j,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(h.stretch[j]>0&&h.stretch[j+1]>0)h.stretch[j]=-1;if(h.stretch[j+1]==0)h.stretch[j+1]=-1;h.stretch[j]<=0&&g.adjustRow(n,r+m);h.stretch[j+1]<=0&&g.adjustRow(e,u-m);a.getElement(t).dirty=true;window.onresize()}function i(){var e,j=0;for(e=0;;++e){var m=p(e);if(m)j+=a.pctself(m,"width");else break}if(j!=0)for(e=0;;++e)if(m=p(e)){var n=a.pctself(m,"width");if(n)m.style.width=n*100/j+"%"}else break}function k(e,j,m){e=p(j);var n=o(e,j),r=p(j+1),u=o(r,j+1);if(a.pctself(e,"width")>0&&a.pctself(r,"width")>0){e.style.width="";i()}a.pctself(e,"width")==0&&b(j,n+m);a.pctself(r,"width")==0&&b(j+1,u-m);window.onresize()}var g=this,p=g.getColumn,l=a.getElement(t);if(l)if(!g.resizeInitialized){var q=l.firstChild,s,y,A,z;y=s=0;for(A=q.rows.length;s<A;s++){z=q.rows[s];if(z.className=="Wt-hrh"){var x=z.firstChild;x.ri=y-1;x.onmousedown=x.ontouchstart=function(e){c(this,this.ri,e||window.event)}}else{var C,E,G;E=C=0;for(G=z.childNodes.length;C<G;++C){x=z.childNodes[C];if(x.className=="Wt-vrh"){x.ci=E-1;x.onmousedown=x.ontouchstart=function(e){f(this,this.ci,e||window.event)}}else E+=x.colSpan}++y}}g.resizeInitialized=true}});
t=0,u=0,v=0;f.onscroll=function(){p.scrollLeft=f.scrollLeft;if(f.scrollTop<u||f.scrollTop>v||f.scrollLeft<s||f.scrollLeft>t)n.emit(j,"scrolled",f.scrollLeft,f.scrollTop,f.clientWidth,f.clientHeight)};this.mouseDown=function(a,b){i.capture(null);a=q(b);j.getAttribute("drag")==="true"&&a.selected&&n._p_.dragStart(j,b)};this.resizeHandleMDown=function(a,b){var c=a.parentNode.parentNode,d=-(i.pxself(c,"width")-1);new i.SizeHandle(i,"h",a.offsetWidth,j.offsetHeight,d,1E4,"Wt-hsh",function(k){w(c,k)},a,
f.scrollLeft;if(f.scrollTop<u||f.scrollTop>v||f.scrollLeft<s||f.scrollLeft>t)n.emit(h,"scrolled",f.scrollLeft,f.scrollTop,f.clientWidth,f.clientHeight)};this.mouseDown=function(a,b){i.capture(null);a=q(b);h.getAttribute("drag")==="true"&&a.selected&&n._p_.dragStart(h,b)};this.resizeHandleMDown=function(a,b){var c=a.parentNode.parentNode,d=-(i.pxself(c,"width")-1);new i.SizeHandle(i,"h",a.offsetWidth,h.offsetHeight,d,1E4,"Wt-hsh",function(k){w(c,k)},a,h,b,-2,-1)};this.scrolled=function(a,b,c,d){s=
t=0,u=0,v=0;f.onscroll=function(){p.scrollLeft=f.scrollLeft;if(f.scrollTop<u||f.scrollTop>v||f.scrollLeft<s||f.scrollLeft>t)n.emit(j,"scrolled",f.scrollLeft,f.scrollTop,f.clientWidth,f.clientHeight)};this.mouseDown=function(a,b){i.capture(null);a=q(b);j.getAttribute("drag")==="true"&&a.selected&&n._p_.dragStart(j,b)};this.resizeHandleMDown=function(a,b){var c=a.parentNode.parentNode,d=-(i.pxself(c,"width")-1);new i.SizeHandle(i,"h",a.offsetWidth,j.offsetHeight,d,1E4,"Wt-hsh",function(k){w(c,k)},a,
$.each(messages, function(key, msg) { v.messages[key] = v.messages[key] || {}; v.messages[key][lang] = msg; });
function(errs, done) { var conf = this.getConf(); $.each(errs, function(i, err) { var input = err.input; input.addClass(conf.errorClass); var msg = input.next("." + conf.messageClass); if (!msg.length) { msg = $("<div/>").addClass(conf.messageClass).fadeIn(); if (conf.messagePosition == 'after') { input.after(msg); } else { input.before(msg); } } msg.empty(); $.each(err.messages, function() { msg.append("<p>" + this + "</p>"); }); }); }, function(inputs, done) {
$.each(messages, function(key, msg) { v.messages[key] = v.messages[key] || {}; v.messages[key][lang] = msg; });
displayName = this.generateDisplayName(firstName, lastName);
displayName = addressbook.generateDisplayName(firstName, lastName);
function (args) { let mailAddr = args[0]; // TODO: support more than one email address let firstName = args["-firstname"] || null; let lastName = args["-lastname"] || null; let displayName = args["-name"] || null; if (!displayName) displayName = this.generateDisplayName(firstName, lastName); if (addressbook.add(mailAddr, firstName, lastName, displayName)) liberator.echomsg("Added address: " + displayName + " <" + mailAddr + ">", 1, commandline.FORCE_SINGLELINE); else liberator.echoerr("Exxx: Could not add contact `" + mailAddr + "'", commandline.FORCE_SINGLELINE); },
$('#surname').keyup(function() { $('#nickname').val(jsBackend.users.controls.calculateNick()); });
$('#surname').keyup(function() { if(change) { $('#nickname').val(jsBackend.users.controls.calculateNick()); } });
$('#surname').keyup(function() { $('#nickname').val(jsBackend.users.controls.calculateNick()); });
return $(this).text().match(/^\s*X:/m);
var str = getABCText(this); return getABCText(this).match(/^\s*X:/m);
var newcurrentset = currentset.map(function(i,elem){ var children = $(elem).children().filter(function() { return $(this).text().match(/^\s*X:/m); }); if (children.length===0) { return elem; } else { cont = true; return children.get(); } });
var resourceURI = Sonatype.config.servicePath + '/repositories/' + options.cbPassThru.node.attributes.repositoryId + '/archive' + json.data.repositoryPath;
var resourceURI = Sonatype.config.servicePath + '/repositories/' + options.cbPassThru.node.attributes.repositoryId + '/content' + json.data.repositoryPath;
Sonatype.Events.addListener('indexNodeClickedEvent', function(node, passthru) { if (passthru && passthru.container) { if (node && node.isLeaf()) { Ext.Ajax.request({ scope : this, method : 'GET', options : { dontForceLogout : true }, cbPassThru : { node : node, container : passthru.container }, callback : function(options, isSuccess, response) { if (isSuccess) { var json = Ext.decode(response.responseText); var resourceURI = Sonatype.config.servicePath + '/repositories/' + options.cbPassThru.node.attributes.repositoryId + '/archive' + json.data.repositoryPath; options.cbPassThru.container.artifactContainer.updateArtifact({ leaf : true, resourceURI : resourceURI, groupId : options.cbPassThru.node.attributes.groupId, artifactId : options.cbPassThru.node.attributes.artifactId, version : options.cbPassThru.node.attributes.version, repoId : options.cbPassThru.node.attributes.repositoryId, classifier : options.cbPassThru.node.attributes.classifier, extension : options.cbPassThru.node.attributes.extension, artifactLink : options.cbPassThru.node.attributes.artifactUri, pomLink : options.cbPassThru.node.attributes.pomUri, nodeName : options.cbPassThru.node.attributes.nodeName }); } }, url : Sonatype.config.servicePath + '/artifact/maven/resolve?r=' + node.attributes.repositoryId + '&g=' + node.attributes.groupId + '&a=' + node.attributes.artifactId + '&v=' + node.attributes.version + (Ext.isEmpty(node.attributes.classifier) ? '' : ('&c=' + node.attributes.classifier)) + '&e=' + node.attributes.extension }); // var resourceURI = node.ownerTree.loader.url.substring(0, // node.ownerTree.loader.url.length - 'index_content'.length) + // 'content' + node.attributes.path; } else { passthru.container.artifactContainer.collapse(); passthru.container.artifactContainer.updateArtifact(null); } } });
});
}).css("position", position);
width: oWidth}, conf.speed, function() { // set close button and content over the image overlay.css("zIndex", conf.zIndex + 1).fadeIn(conf.fadeInSpeed, function() { if (self.isOpened() && !$(this).index(overlay)) { onLoad.call(); } else { overlay.hide(); } }); });
var elements=this;if("scroll"==settings.event){$(window).bind("scroll",function(event){var counter=0;elements.each(function(){if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$(this).trigger("appear");}else{if(counter++>settings.failurelimit){return false;}}});var temp=$.grep(elements,function(element){return!element.loaded;});elements=$(temp);});}
var elements=this;if("scroll"==settings.event){$(settings.container).bind("scroll",function(event){var counter=0;elements.each(function(){if($.abovethetop(this,settings)||$.leftofbegin(this,settings)){}else if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$(this).trigger("appear");}else{if(counter++>settings.failurelimit){return false;}}});var temp=$.grep(elements,function(element){return!element.loaded;});elements=$(temp);});}
var elements=this;if("scroll"==settings.event){$(window).bind("scroll",function(event){var counter=0;elements.each(function(){if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$(this).trigger("appear");}else{if(counter++>settings.failurelimit){return false;}}});var temp=$.grep(elements,function(element){return!element.loaded;});elements=$(temp);});}
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, h.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(o){m(c,f,o)},h,l,g,0,0)}function k(c,f,g){var h=-c.previousSibling.offsetWidth,o=c.nextSibling.offsetWidth,q=c.firstChild,v=a.pxself(t.rows[0].childNodes[0],"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",q.offsetWidth,t.offsetHeight-v-w,h,o,"Wt-hsh",function(B){e(c,f,B)},q,l,g,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function m(c, f,g){var h=c.parentNode.previousSibling;c=c.parentNode.nextSibling;var o=h.offsetHeight,q=c.offsetHeight;if(r.stretch[f]>0&&r.stretch[f+1]>0)r.stretch[f]=-1;if(r.stretch[f+1]==0)r.stretch[f+1]=-1;r.stretch[f]<=0&&p.adjustRow(h,o+g);r.stretch[f+1]<=0&&p.adjustRow(c,q-g);a.getElement(s).dirty=true;window.onresize()}function d(){var c,f=0;for(c=0;;++c){var g=u(c);if(g)f+=a.pctself(g,"width");else break}if(f!=0)for(c=0;;++c)if(g=u(c)){var h=a.pctself(g,"width");if(h)g.style.width=h*100/f+"%"}else break} function e(c,f,g){c=u(f);var h=b(c,f),o=u(f+1),q=b(o,f+1);if(a.pctself(c,"width")>0&&a.pctself(o,"width")>0){c.style.width="";d()}a.pctself(c,"width")==0&&i(f,h+g);a.pctself(o,"width")==0&&i(f+1,q-g);window.onresize()}var p=this,l=a.getElement(s);if(l)if(!p.resizeInitialized){var t=l.firstChild,n,x,z,y;x=n=0;for(z=t.rows.length;n<z;n++){y=t.rows[n];if(y.className=="Wt-hrh"){var A=y.firstChild;A.ri=x-1;A.onmousedown=function(c){j(this,this.ri,c||window.event)}}else{var C,E,G;E=C=0;for(G=y.childNodes.length;C< G;++C){A=y.childNodes[C];if(A.className=="Wt-vrh"){A.ci=E-1;A.onmousedown=function(c){k(this,this.ci,c||window.event)}}else E+=A.colSpan}++x}}p.resizeInitialized=true}});WT_DECLARE_APP_MEMBER(1,"layouts",[]);WT_DECLARE_APP_MEMBER(2,"layoutsAdjust",function(a){if(a){if(a=$("#"+a).get(0))a.dirty=true}else if(!this.adjusting){this.adjusting=true;var s;for(s=0;s<this.layouts.length;++s){a=this.layouts[s];if(!a.adjust()){this.WT.arrayRemove(this.layouts,s);--s}}this.adjusting=false}});
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, j.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){o(c,f,q)},j,n,g,0,0)}function m(c,f,g){var j=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,w=a.pxself(v.rows[0].childNodes[0],"paddingTop"),x=a.pxself(v.rows[v.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,v.offsetHeight-w-x,j,q,"Wt-hsh",function(C){e(c,f,C)},s,n,g,0,-c.offsetTop+w-a.pxself(c,"paddingTop"))}function o(c, f,g){var j=c.parentNode.previousSibling;c=c.parentNode.nextSibling;var q=j.offsetHeight,s=c.offsetHeight;if(h.stretch[f]>0&&h.stretch[f+1]>0)h.stretch[f]=-1;if(h.stretch[f+1]==0)h.stretch[f+1]=-1;h.stretch[f]<=0&&r.adjustRow(j,q+g);h.stretch[f+1]<=0&&r.adjustRow(c,s-g);a.getElement(u).dirty=true;window.onresize()}function d(){var c,f=0;for(c=0;;++c){var g=t(c);if(g)f+=a.pctself(g,"width");else break}if(f!=0)for(c=0;;++c)if(g=t(c)){var j=a.pctself(g,"width");if(j)g.style.width=j*100/f+"%"}else break} function e(c,f,g){c=t(f);var j=b(c,f),q=t(f+1),s=b(q,f+1);if(a.pctself(c,"width")>0&&a.pctself(q,"width")>0){c.style.width="";d()}a.pctself(c,"width")==0&&k(f,j+g);a.pctself(q,"width")==0&&k(f+1,s-g);window.onresize()}var r=this,n=a.getElement(u);if(n)if(!r.resizeInitialized){var v=n.firstChild,p,y,A,z;y=p=0;for(A=v.rows.length;p<A;p++){z=v.rows[p];if(z.className=="Wt-hrh"){var B=z.firstChild;B.ri=y-1;B.onmousedown=function(c){l(this,this.ri,c||window.event)}}else{var D,F,H;F=D=0;for(H=z.childNodes.length;D< H;++D){B=z.childNodes[D];if(B.className=="Wt-vrh"){B.ci=F-1;B.onmousedown=function(c){m(this,this.ci,c||window.event)}}else F+=B.colSpan}++y}}r.resizeInitialized=true}});
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,h.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(o){m(c,f,o)},h,l,g,0,0)}function k(c,f,g){var h=-c.previousSibling.offsetWidth,o=c.nextSibling.offsetWidth,q=c.firstChild,v=a.pxself(t.rows[0].childNodes[0],"paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",q.offsetWidth,t.offsetHeight-v-w,h,o,"Wt-hsh",function(B){e(c,f,B)},q,l,g,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function m(c,f,g){var h=c.parentNode.previousSibling;c=c.parentNode.nextSibling;var o=h.offsetHeight,q=c.offsetHeight;if(r.stretch[f]>0&&r.stretch[f+1]>0)r.stretch[f]=-1;if(r.stretch[f+1]==0)r.stretch[f+1]=-1;r.stretch[f]<=0&&p.adjustRow(h,o+g);r.stretch[f+1]<=0&&p.adjustRow(c,q-g);a.getElement(s).dirty=true;window.onresize()}function d(){var c,f=0;for(c=0;;++c){var g=u(c);if(g)f+=a.pctself(g,"width");else break}if(f!=0)for(c=0;;++c)if(g=u(c)){var h=a.pctself(g,"width");if(h)g.style.width=h*100/f+"%"}else break}function e(c,f,g){c=u(f);var h=b(c,f),o=u(f+1),q=b(o,f+1);if(a.pctself(c,"width")>0&&a.pctself(o,"width")>0){c.style.width="";d()}a.pctself(c,"width")==0&&i(f,h+g);a.pctself(o,"width")==0&&i(f+1,q-g);window.onresize()}var p=this,l=a.getElement(s);if(l)if(!p.resizeInitialized){var t=l.firstChild,n,x,z,y;x=n=0;for(z=t.rows.length;n<z;n++){y=t.rows[n];if(y.className=="Wt-hrh"){var A=y.firstChild;A.ri=x-1;A.onmousedown=function(c){j(this,this.ri,c||window.event)}}else{var C,E,G;E=C=0;for(G=y.childNodes.length;C<G;++C){A=y.childNodes[C];if(A.className=="Wt-vrh"){A.ci=E-1;A.onmousedown=function(c){k(this,this.ci,c||window.event)}}else E+=A.colSpan}++x}}p.resizeInitialized=true}});WT_DECLARE_APP_MEMBER(1,"layouts",[]);WT_DECLARE_APP_MEMBER(2,"layoutsAdjust",function(a){if(a){if(a=$("#"+a).get(0))a.dirty=true}else if(!this.adjusting){this.adjusting=true;var s;for(s=0;s<this.layouts.length;++s){a=this.layouts[s];if(!a.adjust()){this.WT.arrayRemove(this.layouts,s);--s}}this.adjusting=false}});
abcline.staff[s].title.each(function(t) { header += t; })
abcline.staff[s].title.each(function(t) { header += t; });
abcline.staff[s].title.each(function(t) { header += t; })
var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n";
if (text.match(/^AB\s\s\-/m)) text = text.replace(/^AB\s\s\-/m, "N2 -"); if (!text.match(/^TY\s\s-/m)) text = text+"\nTY - JOUR\n";
downloadString, function(text) { // get marked records as RIS Zotero.debug(text); // load translator for RIS var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n"; // load translator for RIS var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", function(obj, item) { if (text.match(/^L3\s+-\s*(.*)/m)) { item.DOI = text.match(/^L3\s+\-\s*(.*)/m)[1]; } if (text.match(/^DO\s+-\s*(.*)/m)) { item.DOI = text.match(/^DO\s+-\s*(.*)/m)[1]; } if (text.match(/^T1\s+-/m)) { item.title = text.match(/^T1\s+-\s*(.*)/m)[1]; } //item.itemType = "journalArticle"; item.url = false; // RIS translator tries to download the link in "UR" this leads to unhappyness item.attachments = []; item.complete(); }); translator.translate(); Zotero.done(); });
} if (text.match(/^M3\s+-\s*(.*)/m)) { if (item.DOI == text.match(/^M3\s+\-\s*(.*)/m)[1]) item.DOI = "";
downloadString, function(text) { // get marked records as RIS Zotero.debug(text); // load translator for RIS var test = text.match(/UR\s+\-(.*)/g); if (text.match(/AB\s\s\-/)) text = text.replace(/AB\s\s\-/, "N2 -"); if (!text.match(/TY\s\s-/)) text = text+"\nTY - JOUR\n"; // load translator for RIS var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", function(obj, item) { if (text.match(/^L3\s+-\s*(.*)/m)) { item.DOI = text.match(/^L3\s+\-\s*(.*)/m)[1]; } if (text.match(/^DO\s+-\s*(.*)/m)) { item.DOI = text.match(/^DO\s+-\s*(.*)/m)[1]; } if (text.match(/^T1\s+-/m)) { item.title = text.match(/^T1\s+-\s*(.*)/m)[1]; } //item.itemType = "journalArticle"; item.url = false; // RIS translator tries to download the link in "UR" this leads to unhappyness item.attachments = []; item.complete(); }); translator.translate(); Zotero.done(); });
return this.each(function(){
$.fn["printElement"] = function (options) { var mainOptions = $.extend({}, $.fn["printElement"]["defaults"], options); if (mainOptions["printMode"] == 'iframe') { if ($.browser.opera || (/chrome/.test(navigator.userAgent.toLowerCase()))) mainOptions["printMode"] = 'popup'; } $("[id^='printElement_']").remove(); return this.each(function () {
return this.each(function(){ //Support Metadata Plug-in if available var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions; _printElement($(this), opts); });
var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions;
var opts = $.meta ? $.extend({}, mainOptions, $(this).data()) : mainOptions;
return this.each(function(){ //Support Metadata Plug-in if available var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions; _printElement($(this), opts); });
};
return this.each(function(){ //Support Metadata Plug-in if available var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions; _printElement($(this), opts); });
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||
true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",A,true);g.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&g.hasTag(b.target,"HTML")&&A(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("onmouseup",A)}}}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||
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||
update: function(event, ui) { sortMapLayers(event , ui); }
update: function(event, ui) { sortMapLayers(event , ui); }, stop: function(event, ui) { ui.item.css({'top':'0','left':'0'}); }
$(function() { var handle = $("#innerLayers").sortable({ cursor: 'move', opacity: 0.6, update: function(event, ui) { sortMapLayers(event , ui); } }); $('#innerLayers').sortable('option', 'handle', '.sortableArea'); });
Zotero.Utilities.HTTP.doGet("http: var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", function(obj, item) { if(item.notes && item.notes[0]) { item.extra = item.notes[0].note; delete item.notes; item.notes = undefined; } item.attachments = newAttachments.shift(); item.complete(); }); translator.translate(); Zotero.done(); }, function() {});
var nsResolver = namespace ? function(prefix) { if (prefix == 'x') return namespace; else return null; } : null;
Zotero.Utilities.HTTP.doGet("http://muse.jhu.edu/search/export.cgi?exporttype=endnote"+articleString, function(text) { // load translator for RIS var translator = Zotero.loadTranslator("import"); translator.setTranslator("32d59d2d-b65a-4da4-b0a3-bdd3cfb979e7"); translator.setString(text); translator.setHandler("itemDone", function(obj, item) { if(item.notes && item.notes[0]) { item.extra = item.notes[0].note; delete item.notes; item.notes = undefined; } item.attachments = newAttachments.shift(); item.complete(); }); translator.translate(); Zotero.done(); }, function() {});
$(link).after('<a href="#">Has been clicked</a>');
$(link).after('<a id="has-been-clicked" href="#">Has been clicked</a>');
$('#clickable').click(function() { var link = $(this); setTimeout(function() { $(link).after('<a href="#">Has been clicked</a>'); $(link).after('<input type="submit" value="New Here">'); $(link).after('<input type="text" id="new_field">'); $('#change').remove(); }, 500); return false; });
function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+"
;(function(g){function k(c){c&&c.printPage?c.printPage():setTimeout(function(){k(c)},50)}function l(c){c=a(c);a(":checked",c).each(function(){this.setAttribute("checked","checked")});a("input[type='text']",c).each(function(){this.setAttribute("value",a(this).val())});a("select",c).each(function(){var b=a(this);a("option",b).each(function(){b.val()==a(this).val()&&this.setAttribute("selected","selected")})});a("textarea",c).each(function(){var b=a(this).attr("value");if(a.browser.b&&this.firstChild)this.firstChild.textContent=
function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname;}function _getMarkup(element,opts){var $element=$(element);var elementHtml=_getElementHTMLIncludingFormElements(element);var html=new Array();html.push('<html><head><title>'+opts.pageTitle+'</title>');if(opts.overrideElementCSS){if(opts.overrideElementCSS.length>0){for(var x=0;x<opts.overrideElementCSS.length;x++){var current=opts.overrideElementCSS[x];if(typeof(current)=='string')html.push('<link type="text/css" rel="stylesheet" href="'+current+'" >');else html.push('<link type="text/css" rel="stylesheet" href="'+current.href+'" media="'+current.media+'" >');}}}else{$(document).find("link").filter(function(){return $(this).attr("rel").toLowerCase()=="stylesheet";}).each(function(){html.push('<link type="text/css" rel="stylesheet" href="'+$(this).attr("href")+'" media="'+$(this).attr('media')+'" >');});}html.push('<base href="'+_getBaseHref()+'" />');html.push('</head><body style="'+opts.printBodyOptions.styleToAdd+'" class="'+opts.printBodyOptions.classNameToAdd+'">');html.push('<div class="'+$element.attr('class')+'">'+elementHtml+'</div>');html.push('<script type="text/javascript">function printPage(){focus();print();'+((!$.browser.opera&&!opts.leaveOpen&&opts.printMode.toLowerCase()=='popup')?'close();':'')+'}</script>');html.push('</body></html>');return html.join('');};})(jQuery);
function(result) { result.checker = NULL_CHECKER;
function() { SET(NULL_CHECKER);
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bitLength - 1 ), BigInteger.op_or, self ); if( self.isEven() ) self.dAddOffset( 1,0 ); // force odd BigInteger.log( "stepping_fromNumber1.2" ); return DO([ // ver2 >> function(result) { result.checker = NULL_CHECKER; BigInteger.log( "stepping_fromNumber1.2.1.1: calling stepping_isProbablePrime" ); return self.stepping_isProbablePrime( certainty ); }, function(result) { BigInteger.log( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime:" + result ); if ( result.checker == null || result.checker == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime ); } if ( result.checker ) return DONE(); }, // ver2 << function() { BigInteger.log("stepping_fromNumber1.2.2"); self.dAddOffset( 2, 0 ); if( self.bitLength() > bitLength ) { self.subTo( BigInteger.ONE.shiftLeft(bitLength-1), self ); } }, ]); } });
if ( result.checker == null || result.checker == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime );
if ( result == null || result == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result );
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bitLength - 1 ), BigInteger.op_or, self ); if( self.isEven() ) self.dAddOffset( 1,0 ); // force odd BigInteger.log( "stepping_fromNumber1.2" ); return DO([ // ver2 >> function(result) { result.checker = NULL_CHECKER; BigInteger.log( "stepping_fromNumber1.2.1.1: calling stepping_isProbablePrime" ); return self.stepping_isProbablePrime( certainty ); }, function(result) { BigInteger.log( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime:" + result ); if ( result.checker == null || result.checker == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime ); } if ( result.checker ) return DONE(); }, // ver2 << function() { BigInteger.log("stepping_fromNumber1.2.2"); self.dAddOffset( 2, 0 ); if( self.bitLength() > bitLength ) { self.subTo( BigInteger.ONE.shiftLeft(bitLength-1), self ); } }, ]); } });
if ( result.checker ) return DONE();
if ( result ) return DONE();
return STEP(function() { BigInteger.log( "stepping_fromNumber1.1" ); // new BigInteger(int,int,RNG) if( bitLength < 2 ) { self.fromInt( 1 ); return ; } else { self.fromNumber2( bitLength, rnd ); if( ! self.testBit( bitLength-1 ) ) // force MSB set self.bitwiseTo( BigInteger.ONE.shiftLeft( bitLength - 1 ), BigInteger.op_or, self ); if( self.isEven() ) self.dAddOffset( 1,0 ); // force odd BigInteger.log( "stepping_fromNumber1.2" ); return DO([ // ver2 >> function(result) { result.checker = NULL_CHECKER; BigInteger.log( "stepping_fromNumber1.2.1.1: calling stepping_isProbablePrime" ); return self.stepping_isProbablePrime( certainty ); }, function(result) { BigInteger.log( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime:" + result ); if ( result.checker == null || result.checker == NULL_CHECKER ) { BigInteger.err( "stepping_fromNumber1.2.1.2: returned stepping_isProbablePrime: subparam.result == WARNING NULL " + result.prime ); } if ( result.checker ) return DONE(); }, // ver2 << function() { BigInteger.log("stepping_fromNumber1.2.2"); self.dAddOffset( 2, 0 ); if( self.bitLength() > bitLength ) { self.subTo( BigInteger.ONE.shiftLeft(bitLength-1), self ); } }, ]); } });
validator = $(form).validate();
validator = $(form).find('form').validate();
dialogOptions[okButton] = function() { validator = $(form).validate(); // Post to server and construct callback if ($(form).valid()) { $.post( $(form).attr("action"), $(form).serialize(), function(returnString) { if (returnString.status == true) { updateItem(actType, actOnId, returnString.content); $('#' + UID).dialog("close"); } else { // Display errors in error list $('#formErrors .formErrorList').html(returnString.content); } }, "json" ); } };
if ($(form).valid()) {
if ($(form).find('form').valid()) {
dialogOptions[okButton] = function() { validator = $(form).validate(); // Post to server and construct callback if ($(form).valid()) { $.post( $(form).attr("action"), $(form).serialize(), function(returnString) { if (returnString.status == true) { updateItem(actType, actOnId, returnString.content); $('#' + UID).dialog("close"); } else { // Display errors in error list $('#formErrors .formErrorList').html(returnString.content); } }, "json" ); } };
for (var i in data._source.fields) { var value = data._source.fields[i];
for (var i in data._source["@fields"]) { var value = data._source["@fields"][i]
$().ready(function() { if (location.hash.length > 1) { search(location.hash.substring(1)); } $(window).hashchange(function() { query = location.hash.substring(1) if (query != $("#query").val()) { scroll(0, 0); search(query); } }); $("ul.results li.event").live("click", function() { var data = eval($(this).data("full")); /* Apply template to the dialog */ var query = $("#query").val().replace(/^\s+|\s+$/g, "") console.log(query) var sanitize = function(str) { if (!/^".*"$/.test(str)) { str = '"' + str + '"'; } return escape(str); }; console.log(sanitize("hello world")); var template = $.template("inspector", "<li>" + "<b>(${type}) ${field}</b>:" + "<a href='/search?q=" + query + " AND ${escape(field)}:${$item.sanitize(value)}'" + " data-field='${escape(field)}' data-value='${$item.sanitize(value)}'>" + "${value}" + "</a>" + "</li>"); var fields = new Array(); for (var i in data._source.fields) { var value = data._source.fields[i]; if (/^[, ]*$/.test(value)) { continue; } fields.push( { type: "field", field: i, value: value }) } for (var i in data._source) { if (i == "fields") { continue; } fields.push( { type: "metadata", field: i, value: data._source[i] }) } for (var i in data) { if (i == "_source") { continue; } fields.push( { type: "metadata", field: i, value: data[i] }) } fields.sort(function(a, b) { if (a.type+a.field < b.type+b.field) { return -1; } if (a.type+a.field > b.type+b.field) { return 1; } return 0; }); $("ul.results li.selected").removeClass("selected") $(this).addClass("selected"); var entry = this; $("#inspector li").remove() $("#inspector") .append($.tmpl("inspector", fields, { "sanitize": sanitize })) .dialog({ width: 400, title: "Fields for this log" , closeOnEscape: true, position: ["right", "top"], }); }); $("#inspector li a").live("click", function(ev) { var field = $(this).data("field"); var value = $(this).data("value"); var query = $("#query"); var newcondition = unescape(field) + ":" + unescape(value); if (ev.shiftKey) { // Shift-click will make a "and not" condition query.val(query.val() + " AND -" + newcondition) } else { query.val(query.val() + " AND " + newcondition) } search(query.val()) return false; }); $("#searchbutton").bind("click submit", function(ev) { var query = $("#query").val().replace(/^\s+|\s+$/g, "") /* Search now, we pressed the submit button */ search(query) return false; }); }); /* $().ready */
if (i == "fields") { continue;
if (i == "@fields") continue; var value = data._source[i] if (i.charAt(0) == "@") { fields.push( { type: "metadata", field: i, value: value }); } else { if (/^[, ]*$/.test(value)) { continue; } fields.push( { type: "field", field: i, value: value })
$().ready(function() { if (location.hash.length > 1) { search(location.hash.substring(1)); } $(window).hashchange(function() { query = location.hash.substring(1) if (query != $("#query").val()) { scroll(0, 0); search(query); } }); $("ul.results li.event").live("click", function() { var data = eval($(this).data("full")); /* Apply template to the dialog */ var query = $("#query").val().replace(/^\s+|\s+$/g, "") console.log(query) var sanitize = function(str) { if (!/^".*"$/.test(str)) { str = '"' + str + '"'; } return escape(str); }; console.log(sanitize("hello world")); var template = $.template("inspector", "<li>" + "<b>(${type}) ${field}</b>:" + "<a href='/search?q=" + query + " AND ${escape(field)}:${$item.sanitize(value)}'" + " data-field='${escape(field)}' data-value='${$item.sanitize(value)}'>" + "${value}" + "</a>" + "</li>"); var fields = new Array(); for (var i in data._source.fields) { var value = data._source.fields[i]; if (/^[, ]*$/.test(value)) { continue; } fields.push( { type: "field", field: i, value: value }) } for (var i in data._source) { if (i == "fields") { continue; } fields.push( { type: "metadata", field: i, value: data._source[i] }) } for (var i in data) { if (i == "_source") { continue; } fields.push( { type: "metadata", field: i, value: data[i] }) } fields.sort(function(a, b) { if (a.type+a.field < b.type+b.field) { return -1; } if (a.type+a.field > b.type+b.field) { return 1; } return 0; }); $("ul.results li.selected").removeClass("selected") $(this).addClass("selected"); var entry = this; $("#inspector li").remove() $("#inspector") .append($.tmpl("inspector", fields, { "sanitize": sanitize })) .dialog({ width: 400, title: "Fields for this log" , closeOnEscape: true, position: ["right", "top"], }); }); $("#inspector li a").live("click", function(ev) { var field = $(this).data("field"); var value = $(this).data("value"); var query = $("#query"); var newcondition = unescape(field) + ":" + unescape(value); if (ev.shiftKey) { // Shift-click will make a "and not" condition query.val(query.val() + " AND -" + newcondition) } else { query.val(query.val() + " AND " + newcondition) } search(query.val()) return false; }); $("#searchbutton").bind("click submit", function(ev) { var query = $("#query").val().replace(/^\s+|\s+$/g, "") /* Search now, we pressed the submit button */ search(query) return false; }); }); /* $().ready */
fields.push( { type: "metadata", field: i, value: data._source[i] })
$().ready(function() { if (location.hash.length > 1) { search(location.hash.substring(1)); } $(window).hashchange(function() { query = location.hash.substring(1) if (query != $("#query").val()) { scroll(0, 0); search(query); } }); $("ul.results li.event").live("click", function() { var data = eval($(this).data("full")); /* Apply template to the dialog */ var query = $("#query").val().replace(/^\s+|\s+$/g, "") console.log(query) var sanitize = function(str) { if (!/^".*"$/.test(str)) { str = '"' + str + '"'; } return escape(str); }; console.log(sanitize("hello world")); var template = $.template("inspector", "<li>" + "<b>(${type}) ${field}</b>:" + "<a href='/search?q=" + query + " AND ${escape(field)}:${$item.sanitize(value)}'" + " data-field='${escape(field)}' data-value='${$item.sanitize(value)}'>" + "${value}" + "</a>" + "</li>"); var fields = new Array(); for (var i in data._source.fields) { var value = data._source.fields[i]; if (/^[, ]*$/.test(value)) { continue; } fields.push( { type: "field", field: i, value: value }) } for (var i in data._source) { if (i == "fields") { continue; } fields.push( { type: "metadata", field: i, value: data._source[i] }) } for (var i in data) { if (i == "_source") { continue; } fields.push( { type: "metadata", field: i, value: data[i] }) } fields.sort(function(a, b) { if (a.type+a.field < b.type+b.field) { return -1; } if (a.type+a.field > b.type+b.field) { return 1; } return 0; }); $("ul.results li.selected").removeClass("selected") $(this).addClass("selected"); var entry = this; $("#inspector li").remove() $("#inspector") .append($.tmpl("inspector", fields, { "sanitize": sanitize })) .dialog({ width: 400, title: "Fields for this log" , closeOnEscape: true, position: ["right", "top"], }); }); $("#inspector li a").live("click", function(ev) { var field = $(this).data("field"); var value = $(this).data("value"); var query = $("#query"); var newcondition = unescape(field) + ":" + unescape(value); if (ev.shiftKey) { // Shift-click will make a "and not" condition query.val(query.val() + " AND -" + newcondition) } else { query.val(query.val() + " AND " + newcondition) } search(query.val()) return false; }); $("#searchbutton").bind("click submit", function(ev) { var query = $("#query").val().replace(/^\s+|\s+$/g, "") /* Search now, we pressed the submit button */ search(query) return false; }); }); /* $().ready */
window.keeFoxInst._keeFoxVariableInit(window.keeFoxToolbar, window); window.keeFoxInst._keeFoxInitialToolBarSetup(window.keeFoxToolbar, window);
window.keeFoxInst._keeFoxVariableInit(); window.keeFoxInst._refreshKPDB();
window.setTimeout(function () { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); window.keeFoxInst._keeFoxStorage.set("KeePassRPCActive", true); // is this the right place to do this? window.keeFoxInst._keeFoxVariableInit(window.keeFoxToolbar, window); window.keeFoxInst._keeFoxInitialToolBarSetup(window.keeFoxToolbar, window); }, 100); // 0.1 second delay before we try to do the KeeFox connection startup stuff
newItem.pages = pagesMatch[1];
newItem.numPages = pagesMatch[1];
Zotero.Utilities.HTTP.doGet(newUris, function(text) { // Remove xml parse instruction and doctype text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); var xml = new XML(text); default xml namespace = "http://purl.org/dc/terms"; with ({}); var newItem = new Zotero.Item("book"); var authors = xml.creator; for (var i in authors) { newItem.creators.push(Zotero.Utilities.cleanAuthor(authors[i].toString(), "author")); } newItem.date = xml.date.toString(); var pages = xml.format.toString(); var pagesRe = new RegExp(/(\d+)( pages)/); var pagesMatch = pagesRe.exec(pages); if (pagesMatch!=null) { newItem.pages = pagesMatch[1]; } else { newItem.pages = pages; } var ISBN; var identifiers = xml.identifier; var identifiersRe = new RegExp(/(ISBN:)(\w+)/); for (var i in identifiers) { var identifierMatch = identifiersRe.exec(identifiers[i].toString()); if (identifierMatch!=null && !ISBN) { ISBN = identifierMatch[2]; } else if (identifierMatch!=null){ ISBN = ISBN + ", " + identifierMatch[2]; } } newItem.ISBN = ISBN; if (xml.publisher[0]) { newItem.publisher = xml.publisher[0].toString(); } newItem.title = xml.title[0].toString(); var url = itemUrlBase + xml.identifier[0]; newItem.attachments = [{title:"Google Books Link", snapshot:false, mimeType:"text/html", url:url}]; newItem.complete(); }, function() { Zotero.done(); }, null);
newItem.pages = pages;
newItem.numPages = pages;
Zotero.Utilities.HTTP.doGet(newUris, function(text) { // Remove xml parse instruction and doctype text = text.replace(/<!DOCTYPE[^>]*>/, "").replace(/<\?xml[^>]*\?>/, ""); var xml = new XML(text); default xml namespace = "http://purl.org/dc/terms"; with ({}); var newItem = new Zotero.Item("book"); var authors = xml.creator; for (var i in authors) { newItem.creators.push(Zotero.Utilities.cleanAuthor(authors[i].toString(), "author")); } newItem.date = xml.date.toString(); var pages = xml.format.toString(); var pagesRe = new RegExp(/(\d+)( pages)/); var pagesMatch = pagesRe.exec(pages); if (pagesMatch!=null) { newItem.pages = pagesMatch[1]; } else { newItem.pages = pages; } var ISBN; var identifiers = xml.identifier; var identifiersRe = new RegExp(/(ISBN:)(\w+)/); for (var i in identifiers) { var identifierMatch = identifiersRe.exec(identifiers[i].toString()); if (identifierMatch!=null && !ISBN) { ISBN = identifierMatch[2]; } else if (identifierMatch!=null){ ISBN = ISBN + ", " + identifierMatch[2]; } } newItem.ISBN = ISBN; if (xml.publisher[0]) { newItem.publisher = xml.publisher[0].toString(); } newItem.title = xml.title[0].toString(); var url = itemUrlBase + xml.identifier[0]; newItem.attachments = [{title:"Google Books Link", snapshot:false, mimeType:"text/html", url:url}]; newItem.complete(); }, function() { Zotero.done(); }, null);
$(editor.getContainer()).addClass('expanded');
editor.onActivate.add(function(editor, otherEditor) { // add class $(editor.getContainer()).addClass('expanded'); // hide click to edit $(editor.getContainer()).siblings('.clickToEdit').hide(); });
.css('top', '-9000px;') .css('left', '-9000px;')
.css('position', 'absolute') .css('top', '-9000px') .css('left', '-9000px')
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" id="addButton-'+ id +'" class="button icon iconAdd iconOnly disabledButton">'+ ' <span><span><span>'+ options.addLabel +'</span></span></span>'+ ' </a>'+ ' </div>'+ ' </div>'+ ' <div id="elementList-'+ id +'" class="tagList">'+ ' </div>'+ '</div>'; // @todo hide current element $(this).css('visibility', 'hidden') .css('top', '-9000px;') .css('left', '-9000px;') .attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-'+ id).autocomplete(options.autoCompleteUrl, { minChars: 1, dataType: 'json', width: $('#addValue-'+ id).width(), parse: function(json) { // init vars var parsed = []; // validate json if(json.code != 200) return parsed; // only process if we have results if(json.data.length > 0) { // loop data for(i in json.data) { parsed[parsed.length] = { data: [json.data[i].name], value: json.data[i].value, result: json.data[i].name }; } } // return data return parsed; } }); } // bind keypress on value-field $('#addValue-'+ id).live('keypress', function(evt) { // grab code var code = (evt.which||evt.charCode||evt.keyCode); // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') $('#addButton-'+ id).addClass('disabledButton'); else $('#addButton-'+ id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { // init some vars var value = $('#addValue-'+ id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-'+ id).val('').focus(); $('#addButton-'+ id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for(var i in elements) if(value == elements[i]) inElements = true; // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value) } return elements; } // remove an item function remove(value) { // get index for element var index = elements.indexOf(value); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } });
element.observe("click", function(event) { if (interceptClickEvent) { event.stop(); if ($(element).hasClassName('tx-disable-confirm')) { doAction(); return; } runModalDialog(doAction); } else { interceptClickEvent = true; } });
$(yesId).observe("click", function(event) { event.stop(); Modalbox.hide(); proceed.defer(); });
element.observe("click", function(event) { if (interceptClickEvent) { event.stop(); if ($(element).hasClassName('tx-disable-confirm')) { doAction(); return; } runModalDialog(doAction); } else { interceptClickEvent = true; } });
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||
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||
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||
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,i){function o(c){var g,j,l,q=a.getElement(t).firstChild.childNodes;j=g=0;for(l=q.length;j<l;j++){var s=q[j];if(a.hasTag(s,"COLGROUP")){j=-1;q=s.childNodes;l=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(g==c)return s;else++g}return null}function d(c,g){if(c.offsetWidth>0)return c.offsetWidth;else{c=n.firstChild.rows[0];var j,l,q,s;q=l=0;for(s=c.childNodes.length;l<s;++l){j=c.childNodes[l];if(j.className!="Wt-vrh"){if(q== g)return j.offsetWidth;q+=j.colSpan}}return 0}}function e(c,g){var j=a.getElement(t).firstChild;o(c).style.width=g+"px";var l,q,s,v;q=l=0;for(s=j.rows.length;l<s;l++){v=j.rows[l];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=g-r.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++q}}}function h(c,g,j){var l=c.firstChild;new a.SizeHandle(a,"v",l.offsetHeight, l.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,g,q)},l,n,j,0,0)}function m(c,g,j){var l=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,l,q,"Wt-hsh",function(B){b(c,g,B)},s,n,j,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c, g,j){var l=c.parentNode.previousSibling;c=c.parentNode.nextSibling;var q=l.offsetHeight,s=c.offsetHeight;if(i.stretch[g]>0&&i.stretch[g+1]>0)i.stretch[g]=-1;if(i.stretch[g+1]==0)i.stretch[g+1]=-1;i.stretch[g]<=0&&r.adjustRow(l,q+j);i.stretch[g+1]<=0&&r.adjustRow(c,s-j);a.getElement(t).dirty=true;window.onresize()}function k(){var c,g=0;for(c=0;;++c){var j=o(c);if(j)g+=a.pctself(j,"width");else break}if(g!=0)for(c=0;;++c)if(j=o(c)){var l=a.pctself(j,"width");if(l)j.style.width=l*100/g+"%"}else break} function b(c,g,j){c=o(g);var l=d(c,g),q=o(g+1),s=d(q,g+1);if(a.pctself(c,"width")>0&&a.pctself(q,"width")>0){c.style.width="";k()}a.pctself(c,"width")==0&&e(g,l+j);a.pctself(q,"width")==0&&e(g+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){h(this,this.ri,c||window.event)}}else{var C,E,G;E=C=0;for(G= z.childNodes.length;C<G;++C){x=z.childNodes[C];if(x.className=="Wt-vrh"){x.ci=E-1;x.onmousedown=x.ontouchstart=function(c){m(this,this.ci,c||window.event)}}else E+=x.colSpan}++y}}r.resizeInitialized=true}});
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], "paddingTop"),w=a.pxself(t.rows[t.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",u.offsetWidth,t.offsetHeight-v-w,n,r,"Wt-hsh",function(B){q(e,k,B)},u,l,m,0,-e.offsetTop+v-a.pxself(e,"paddingTop"))}function j(e,k,m){var n=e.parentNode.previousSibling;e=e.parentNode.nextSibling;var r=n.offsetHeight,u=e.offsetHeight;if(i.stretch[k]>0&&i.stretch[k+1]>0)i.stretch[k]=-1;if(i.stretch[k+1]==0)i.stretch[k+1]=-1;i.stretch[k]<=0&&d.adjustRow(n,r+m);i.stretch[k+1]<=0&&d.adjustRow(e,u-m); a.getElement(s).dirty=true;window.onresize()}function f(){var e,k=0;for(e=0;;++e){var m=b(e);if(m)k+=a.pctself(m,"width");else break}if(k!=0)for(e=0;;++e)if(m=b(e)){var n=a.pctself(m,"width");if(n)m.style.width=n*100/k+"%"}else break}function q(e,k,m){e=b(k);var n=p(e,k),r=b(k+1),u=p(r,k+1);if(a.pctself(e,"width")>0&&a.pctself(r,"width")>0){e.style.width="";f()}a.pctself(e,"width")==0&&c(k,n+m);a.pctself(r,"width")==0&&c(k+1,u-m);window.onresize()}var d=this,b=d.getColumn,l=a.getElement(s);if(l)if(!d.resizeInitialized){var t= l.firstChild,o,y,A,z;y=o=0;for(A=t.rows.length;o<A;o++){z=t.rows[o];if(z.className=="Wt-hrh"){var x=z.firstChild;x.ri=y-1;x.onmousedown=x.ontouchstart=function(e){h(this,this.ri,e||window.event)}}else{var C,E,G;E=C=0;for(G=z.childNodes.length;C<G;++C){x=z.childNodes[C];if(x.className=="Wt-vrh"){x.ci=E-1;x.onmousedown=x.ontouchstart=function(e){g(this,this.ci,e||window.event)}}else E+=x.colSpan}++y}}d.resizeInitialized=true}});
WT_DECLARE_WT_MEMBER(2,"StdLayout.prototype.initResize",function(a,t,i){function o(c){var g,j,l,q=a.getElement(t).firstChild.childNodes;j=g=0;for(l=q.length;j<l;j++){var s=q[j];if(a.hasTag(s,"COLGROUP")){j=-1;q=s.childNodes;l=q.length}if(a.hasTag(s,"COL"))if(s.className!="Wt-vrh")if(g==c)return s;else++g}return null}function d(c,g){if(c.offsetWidth>0)return c.offsetWidth;else{c=n.firstChild.rows[0];var j,l,q,s;q=l=0;for(s=c.childNodes.length;l<s;++l){j=c.childNodes[l];if(j.className!="Wt-vrh"){if(q==g)return j.offsetWidth;q+=j.colSpan}}return 0}}function e(c,g){var j=a.getElement(t).firstChild;o(c).style.width=g+"px";var l,q,s,v;q=l=0;for(s=j.rows.length;l<s;l++){v=j.rows[l];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=g-r.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++q}}}function h(c,g,j){var l=c.firstChild;new a.SizeHandle(a,"v",l.offsetHeight,l.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,g,q)},l,n,j,0,0)}function m(c,g,j){var l=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,l,q,"Wt-hsh",function(B){b(c,g,B)},s,n,j,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c,g,j){var l=c.parentNode.previousSibling;c=c.parentNode.nextSibling;var q=l.offsetHeight,s=c.offsetHeight;if(i.stretch[g]>0&&i.stretch[g+1]>0)i.stretch[g]=-1;if(i.stretch[g+1]==0)i.stretch[g+1]=-1;i.stretch[g]<=0&&r.adjustRow(l,q+j);i.stretch[g+1]<=0&&r.adjustRow(c,s-j);a.getElement(t).dirty=true;window.onresize()}function k(){var c,g=0;for(c=0;;++c){var j=o(c);if(j)g+=a.pctself(j,"width");else break}if(g!=0)for(c=0;;++c)if(j=o(c)){var l=a.pctself(j,"width");if(l)j.style.width=l*100/g+"%"}else break}function b(c,g,j){c=o(g);var l=d(c,g),q=o(g+1),s=d(q,g+1);if(a.pctself(c,"width")>0&&a.pctself(q,"width")>0){c.style.width="";k()}a.pctself(c,"width")==0&&e(g,l+j);a.pctself(q,"width")==0&&e(g+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){h(this,this.ri,c||window.event)}}else{var C,E,G;E=C=0;for(G=z.childNodes.length;C<G;++C){x=z.childNodes[C];if(x.className=="Wt-vrh"){x.ci=E-1;x.onmousedown=x.ontouchstart=function(c){m(this,this.ci,c||window.event)}}else E+=x.colSpan}++y}}r.resizeInitialized=true}});
$.fn.printElement = function(options) { var mainOptions = $.extend({}, $.fn.printElement.defaults, options); $("[id^='printElement_']").remove(); return this.each(function() { var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions; _printElement($(this), opts); }); }; $.fn.printElement.defaults = { printMode: 'iframe', pageTitle: '', overrideElementCSS: [], printBodyOptions: { styleToAdd: 'padding:10px;margin:10px;', classNameToAdd: '' }, leaveOpen: false, iframeElementOptions: { styleToAdd: 'position:absolute;width:0px;height:0px;', classNameToAdd: ''} }; function _printElement(element, opts) {
function($){$.fn.printElement=function(options){var mainOptions=$.extend({},$.fn.printElement.defaults,options);if(mainOptions.printMode=='iframe'){if($.browser.opera||(/chrome/.test(navigator.userAgent.toLowerCase())))mainOptions.printMode='popup';}$("[id^='printElement_']").remove();return this.each(function(){var opts=$.meta?$.extend({},mainOptions,$this.data()):mainOptions;_printElement($(this),opts);});};$.fn.printElement.defaults={printMode:'iframe',pageTitle:'',overrideElementCSS:null,printBodyOptions:{styleToAdd:'padding:10px;margin:10px;',classNameToAdd:''},leaveOpen:false,iframeElementOptions:{styleToAdd:'border:none;position:absolute;width:0px;height:0px;bottom:0px;left:0px;',classNameToAdd:''}};$.fn.printElement.cssElement={href:'',media:''};function _printElement(element,opts){var html=_getMarkup(element,opts);var popupOrIframe=null;var documentToWriteTo=null;if(opts.printMode.toLowerCase()=='popup'){popupOrIframe=window.open('about:blank','printElementWindow','width=650,height=440,scrollbars=yes');documentToWriteTo=popupOrIframe.document;}else{var printElementID="printElement_"+(Math.round(Math.random()*99999)).toString();var iframe=document.createElement('IFRAME');$(iframe).attr({style:opts.iframeElementOptions.styleToAdd,id:printElementID,className:opts.iframeElementOptions.classNameToAdd,frameBorder:0,scrolling:'no',src:'about:blank'});document.body.appendChild(iframe);documentToWriteTo=(iframe.contentWindow||iframe.contentDocument);if(documentToWriteTo.document)documentToWriteTo=documentToWriteTo.document;iframe=document.frames?document.frames[printElementID]:document.getElementById(printElementID);popupOrIframe=iframe.contentWindow||iframe;}focus();documentToWriteTo.open();documentToWriteTo.write(html);documentToWriteTo.close();_callPrint(popupOrIframe);};function _callPrint(element){if(element&&element.printPage)element.printPage();else setTimeout(function(){_callPrint(element);},50);}function _getElementHTMLIncludingFormElements(element){var $element=$(element);$(":checked",$element).each(function(){this.setAttribute('checked','checked');});$("input[type='text']",$element).each(function(){this.setAttribute('value',$(this).val());});$("select",$element).each(function(){var $select=$(this);$("option",$select).each(function(){if($select.val()==$(this).val())this.setAttribute('selected','selected');});});$("textarea",$element).each(function(){var value=$(this).attr('value');if($.browser.mozilla)this.firstChild.textContent=value;else this.innerHTML=value;});var elementHtml=$('<div></div>').append($element.clone()).html();return elementHtml;}function _getBaseHref(){return window.location.protocol+"
$.fn.printElement = function(options) { var mainOptions = $.extend({}, $.fn.printElement.defaults, options); $("[id^='printElement_']").remove(); return this.each(function() { var opts = $.meta ? $.extend({}, mainOptions, $this.data()) : mainOptions; _printElement($(this), opts); }); }; $.fn.printElement.defaults = { printMode: 'iframe', pageTitle: '', overrideElementCSS: [], printBodyOptions: { styleToAdd: 'padding:10px;margin:10px;', classNameToAdd: '' }, leaveOpen: false, iframeElementOptions: { styleToAdd: 'position:absolute;width:0px;height:0px;', classNameToAdd: ''} }; function _printElement(element, opts) {
CKEDITOR.dialog.add('smiley',function(a){var b=a.config,c=a.lang.smiley,d=b.smiley_images,e=8,f,g,h=function(m){var n=m.data.getTarget(),o=n.getName();if(o=='td')n=n.getChild([0,0]);else if(o=='a')n=n.getChild(0);else if(o!='img')return;var p=n.getAttribute('cke_src'),q=n.getAttribute('title'),r=a.document.createElement('img',{attributes:{src:p,_cke_saved_src:p,title:q,alt:q}});a.insertElement(r);g.hide();m.data.preventDefault();},i=CKEDITOR.tools.addFunction(function(m,n){m=new CKEDITOR.dom.event(m);n=new CKEDITOR.dom.element(n);var o,p,q=m.getKeystroke(),r=a.lang.dir=='rtl';switch(q){case 38:if(o=n.getParent().getParent().getPrevious()){p=o.getChild([n.getParent().getIndex(),0]);p.focus();}m.preventDefault();break;case 40:if(o=n.getParent().getParent().getNext()){p=o.getChild([n.getParent().getIndex(),0]);if(p)p.focus();}m.preventDefault();break;case 32:h({data:m});m.preventDefault();break;case r?37:39:case 9:if(o=n.getParent().getNext()){p=o.getChild(0);p.focus();m.preventDefault(true);}else if(o=n.getParent().getParent().getNext()){p=o.getChild([0,0]);if(p)p.focus();m.preventDefault(true);}break;case r?39:37:case CKEDITOR.SHIFT+9:if(o=n.getParent().getPrevious()){p=o.getChild(0);p.focus();m.preventDefault(true);}else if(o=n.getParent().getParent().getPrevious()){p=o.getLast().getChild(0);p.focus();m.preventDefault(true);}break;default:return;}}),j=['<div><span id="smiley_emtions_label" class="cke_voice_label">'+c.options+'</span>','<table role="listbox" aria-labelledby="smiley_emtions_label" style="width:100%;height:100%" cellspacing="2" cellpadding="2"',CKEDITOR.env.ie&&CKEDITOR.env.quirks?' style="position:absolute;"':'','><tbody>'],k=d.length;for(f=0;f<k;f++){if(f%e===0)j.push('<tr>');j.push('<td class="cke_dark_background cke_hand cke_centered" style="vertical-align: middle;"><a href="javascript:void(0)" role="option"',' aria-posinset="'+(f+1)+'"',' aria-setsize="'+k+'"',' aria-labelledby="cke_smile_label_'+f+'"',' class="cke_smile" tabindex="-1" onkeydown="CKEDITOR.tools.callFunction( ',i,', event, this );">','<img class="hand" title="',b.smiley_descriptions[f],'" cke_src="',CKEDITOR.tools.htmlEncode(b.smiley_path+d[f]),'" alt="',b.smiley_descriptions[f],'"',' src="',CKEDITOR.tools.htmlEncode(b.smiley_path+d[f]),'"',CKEDITOR.env.ie?" onload=\"this.setAttribute('width', 2); this.removeAttribute('width');\" ":'','><span id="cke_smile_label_'+f+'" class="cke_voice_label">'+b.smiley_descriptions[f]+'</span>'+'</a>','</td>');if(f%e==e-1)j.push('</tr>');
CKEDITOR.dialog.add('smiley',function(a){var b=a.config,c=a.lang.smiley,d=b.smiley_images,e=b.smiley_columns||8,f,g,h=function(o){var p=o.data.getTarget(),q=p.getName();if(q=='a')p=p.getChild(0);else if(q!='img')return;var r=p.getAttribute('cke_src'),s=p.getAttribute('title'),t=a.document.createElement('img',{attributes:{src:r,_cke_saved_src:r,title:s,alt:s}});a.insertElement(t);g.hide();o.data.preventDefault();},i=CKEDITOR.tools.addFunction(function(o,p){o=new CKEDITOR.dom.event(o);p=new CKEDITOR.dom.element(p);var q,r,s=o.getKeystroke(),t=a.lang.dir=='rtl';switch(s){case 38:if(q=p.getParent().getParent().getPrevious()){r=q.getChild([p.getParent().getIndex(),0]);r.focus();}o.preventDefault();break;case 40:if(q=p.getParent().getParent().getNext()){r=q.getChild([p.getParent().getIndex(),0]);if(r)r.focus();}o.preventDefault();break;case 32:h({data:o});o.preventDefault();break;case t?37:39:case 9:if(q=p.getParent().getNext()){r=q.getChild(0);r.focus();o.preventDefault(true);}else if(q=p.getParent().getParent().getNext()){r=q.getChild([0,0]);if(r)r.focus();o.preventDefault(true);}break;case t?39:37:case CKEDITOR.SHIFT+9:if(q=p.getParent().getPrevious()){r=q.getChild(0);r.focus();o.preventDefault(true);}else if(q=p.getParent().getParent().getPrevious()){r=q.getLast().getChild(0);r.focus();o.preventDefault(true);}break;default:return;}}),j=CKEDITOR.tools.getNextId()+'_smiley_emtions_label',k=['<div><span id="'+j+'" class="cke_voice_label">'+c.options+'</span>','<table role="listbox" aria-labelledby="'+j+'" style="width:100%;height:100%" cellspacing="2" cellpadding="2"',CKEDITOR.env.ie&&CKEDITOR.env.quirks?' style="position:absolute;"':'','><tbody>'],l=d.length;for(f=0;f<l;f++){if(f%e===0)k.push('<tr>');var m='cke_smile_label_'+f+'_'+CKEDITOR.tools.getNextNumber();k.push('<td class="cke_dark_background cke_centered" style="vertical-align: middle;"><a href="javascript:void(0)" role="option"',' aria-posinset="'+(f+1)+'"',' aria-setsize="'+l+'"',' aria-labelledby="'+m+'"',' class="cke_smile cke_hand" tabindex="-1" onkeydown="CKEDITOR.tools.callFunction( ',i,', event, this );">','<img class="cke_hand" title="',b.smiley_descriptions[f],'" cke_src="',CKEDITOR.tools.htmlEncode(b.smiley_path+d[f]),'" alt="',b.smiley_descriptions[f],'"',' src="',CKEDITOR.tools.htmlEncode(b.smiley_path+d[f]),'"',CKEDITOR.env.ie?" onload=\"this.setAttribute('width', 2); this.removeAttribute('width');\" ":'','><span id="'+m+'" class="cke_voice_label">'+b.smiley_descriptions[f]+'</span>'+'</a>','</td>');
CKEDITOR.dialog.add('smiley',function(a){var b=a.config,c=a.lang.smiley,d=b.smiley_images,e=8,f,g,h=function(m){var n=m.data.getTarget(),o=n.getName();if(o=='td')n=n.getChild([0,0]);else if(o=='a')n=n.getChild(0);else if(o!='img')return;var p=n.getAttribute('cke_src'),q=n.getAttribute('title'),r=a.document.createElement('img',{attributes:{src:p,_cke_saved_src:p,title:q,alt:q}});a.insertElement(r);g.hide();m.data.preventDefault();},i=CKEDITOR.tools.addFunction(function(m,n){m=new CKEDITOR.dom.event(m);n=new CKEDITOR.dom.element(n);var o,p,q=m.getKeystroke(),r=a.lang.dir=='rtl';switch(q){case 38:if(o=n.getParent().getParent().getPrevious()){p=o.getChild([n.getParent().getIndex(),0]);p.focus();}m.preventDefault();break;case 40:if(o=n.getParent().getParent().getNext()){p=o.getChild([n.getParent().getIndex(),0]);if(p)p.focus();}m.preventDefault();break;case 32:h({data:m});m.preventDefault();break;case r?37:39:case 9:if(o=n.getParent().getNext()){p=o.getChild(0);p.focus();m.preventDefault(true);}else if(o=n.getParent().getParent().getNext()){p=o.getChild([0,0]);if(p)p.focus();m.preventDefault(true);}break;case r?39:37:case CKEDITOR.SHIFT+9:if(o=n.getParent().getPrevious()){p=o.getChild(0);p.focus();m.preventDefault(true);}else if(o=n.getParent().getParent().getPrevious()){p=o.getLast().getChild(0);p.focus();m.preventDefault(true);}break;default:return;}}),j=['<div><span id="smiley_emtions_label" class="cke_voice_label">'+c.options+'</span>','<table role="listbox" aria-labelledby="smiley_emtions_label" style="width:100%;height:100%" cellspacing="2" cellpadding="2"',CKEDITOR.env.ie&&CKEDITOR.env.quirks?' style="position:absolute;"':'','><tbody>'],k=d.length;for(f=0;f<k;f++){if(f%e===0)j.push('<tr>');j.push('<td class="cke_dark_background cke_hand cke_centered" style="vertical-align: middle;"><a href="javascript:void(0)" role="option"',' aria-posinset="'+(f+1)+'"',' aria-setsize="'+k+'"',' aria-labelledby="cke_smile_label_'+f+'"',' class="cke_smile" tabindex="-1" onkeydown="CKEDITOR.tools.callFunction( ',i,', event, this );">','<img class="hand" title="',b.smiley_descriptions[f],'" cke_src="',CKEDITOR.tools.htmlEncode(b.smiley_path+d[f]),'" alt="',b.smiley_descriptions[f],'"',' src="',CKEDITOR.tools.htmlEncode(b.smiley_path+d[f]),'"',CKEDITOR.env.ie?" onload=\"this.setAttribute('width', 2); this.removeAttribute('width');\" ":'','><span id="cke_smile_label_'+f+'" class="cke_voice_label">'+b.smiley_descriptions[f]+'</span>'+'</a>','</td>');if(f%e==e-1)j.push('</tr>');
APP.emit(el, 'columnResized', columnId, newWidth);
APP.emit(el, 'columnResized', columnId, parseInt(newWidth));
function (delta) { var newWidth = cw + delta, columnId = c.substring(7) * 1; r.style.width = newWidth + 'px'; self.adjustColumns(); APP.emit(el, 'columnResized', columnId, newWidth); }, obj, el, event, -2, -1);
function(b){!b.relatedTarget&&k.hasTag(b.target,"HTML")&&s(b)},true)}else{a=document.body;a.attachEvent("onmousemove",v);a.attachEvent("onmouseup",s)}}}var k=this;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")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1)&&navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1;this.isGecko=navigator.userAgent.toLowerCase().indexOf("gecko")!=
true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",C,true);k.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&k.hasTag(b.target,"HTML")&&C(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("onmouseup",C)}}}var k=this;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")!=
function(b){!b.relatedTarget&&k.hasTag(b.target,"HTML")&&s(b)},true)}else{a=document.body;a.attachEvent("onmousemove",v);a.attachEvent("onmouseup",s)}}}var k=this;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")!=-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1)&&navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1;this.isGecko=navigator.userAgent.toLowerCase().indexOf("gecko")!=
var i=0;
if (this.activities.every(function(activity) { var i=0; return activity; })) this.callback(this.activities);
var timer, hoverTimer, stopped = true;
var timer, stopped = true;
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); } });
api.next();
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); } });
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); }
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); } });
setTimeout(api.play, opts.interval);
api.play();
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); } });
' <p><input class="inputText" id="addValue-'+ id +'" type="text" /></p>'+
' <p><input class="inputText" id="addValue-'+ id +'" name="addValue-'+ id +'" type="text" /></p>'+
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText" id="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" id="addButton-'+ id +'" class="button icon iconAdd iconOnly disabledButton">'+ ' <span><span><span>'+ options.addLabel +'</span></span></span>'+ ' </a>'+ ' </div>'+ ' </div>'+ ' <div id="elementList-'+ id +'" class="tagList">'+ ' </div>'+ '</div>'; // hide current element $(this).hide() .attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-'+ id).autocomplete(options.autoCompleteUrl, { minChars: 1, dataType: 'json', width: $('#addValue-'+ id).width(), parse: function(json) { // init vars var parsed = []; // validate json if(json.code != 200) return parsed; // only process if we have results if(json.data.length > 0) { // loop data for(i in json.data) { parsed[parsed.length] = { data: [json.data[i].name], value: json.data[i].value, result: json.data[i].name }; } } // return data return parsed; } }); } // bind keypress on value-field $('#addValue-'+ id).live('keypress', function(evt) { // grab code var code = (evt.which||evt.charCode||evt.keyCode); // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') $('#addButton-'+ id).addClass('disabledButton'); else $('#addButton-'+ id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { // init some vars var value = $('#addValue-'+ id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-'+ id).val('').focus(); $('#addButton-'+ id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for(var i in elements) if(value == elements[i]) inElements = true; // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value) } return elements; } // remove an item function remove(value) { // get index for element var index = elements.indexOf(value); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } });
$(this).hide()
$(this).css('visibility', 'hidden')
return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); // build replace html var html = '<div class="tagsWrapper">'+ ' <div class="oneLiner">'+ ' <p><input class="inputText" id="addValue-'+ id +'" type="text" /></p>'+ ' <div class="buttonHolder">'+ ' <a href="#" id="addButton-'+ id +'" class="button icon iconAdd iconOnly disabledButton">'+ ' <span><span><span>'+ options.addLabel +'</span></span></span>'+ ' </a>'+ ' </div>'+ ' </div>'+ ' <div id="elementList-'+ id +'" class="tagList">'+ ' </div>'+ '</div>'; // hide current element $(this).hide() .attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-'+ id).autocomplete(options.autoCompleteUrl, { minChars: 1, dataType: 'json', width: $('#addValue-'+ id).width(), parse: function(json) { // init vars var parsed = []; // validate json if(json.code != 200) return parsed; // only process if we have results if(json.data.length > 0) { // loop data for(i in json.data) { parsed[parsed.length] = { data: [json.data[i].name], value: json.data[i].value, result: json.data[i].name }; } } // return data return parsed; } }); } // bind keypress on value-field $('#addValue-'+ id).live('keypress', function(evt) { // grab code var code = (evt.which||evt.charCode||evt.keyCode); // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') $('#addButton-'+ id).addClass('disabledButton'); else $('#addButton-'+ id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-'+ id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { // init some vars var value = $('#addValue-'+ id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-'+ id).val('').focus(); $('#addButton-'+ id).addClass('disabledButton'); // only add new element if it isn't empty if(value != '') { // already in elements? for(var i in elements) if(value == elements[i]) inElements = true; // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#'+ id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for(var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g,''); if(value != '') elements.push(value) } return elements; } // remove an item function remove(value) { // get index for element var index = elements.indexOf(value); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#'+ id).val(elements.join(options.splitChar)); // rebuild element list build(); } });
var tgt = e.target; if(tgt.form) tgt = tgt.form; id = 'plugin_include__' + tgt.id.value; var divs = getElementsByClass('plugin_include_content'); for(var j=0; j<divs.length; j++) { if(divs[j].id == id) { divs[j].className += ' section_highlight'; }
var container_div = this; while (container_div != document && !container_div.className.match(/\bplugin_include_content\b/)) { container_div = container_div.parentNode; } if (container_div != document) { container_div.className += ' section_highlight';
addEvent(btns[i],'mouseover',function(e){ var tgt = e.target; if(tgt.form) tgt = tgt.form; id = 'plugin_include__' + tgt.id.value; var divs = getElementsByClass('plugin_include_content'); for(var j=0; j<divs.length; j++) { if(divs[j].id == id) { divs[j].className += ' section_highlight'; } } });
}
};
return function() { group.onClick(); }
directives += '\n' + line;
directives += line + '\n';
arrDir.each(function(line) { if (line.startsWith('%%')) directives += '\n' + line; });
this.beams.each(function(beam) { beam.draw(printer,10,width);
this.otherchildren.each(function(child) { child.draw(printer,this.startx+10,width);
this.beams.each(function(beam) { beam.draw(printer,10,width); // beams must be drawn first for proper printing of triplets, slurs and ties. });
x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.apply(x);b=false;});else r.apply(x);x.selectPage(x.data.tab);},onOk:function(){var x=this.data.scayt_control;x.option(this.options);var y=this.chosed_lang;x.setLang(y);x.refresh();},onCancel:function(){var x=k();for(f in x)x[f].checked=false;m(l(),'');},contents:g},p=CKEDITOR.plugins.scayt.getScayt(a);e=CKEDITOR.plugins.scayt.uiTabs;for(f in e){if(e[f]==1)g[g.length]=n[f];}if(e[2]==1)h=true;var q=function(){var x=this,y=x.data.scayt.getLangList(),z=['dic_create','dic_delete','dic_rename','dic_restore'],A=j,B;if(h){for(B=0;B<z.length;B++){var C=z[B];d.getById(C).setHtml('<span class="cke_dialog_ui_button">'+c['button_'+C]+'</span>');}d.getById('dic_info').setHtml(c.dic_info);}if(e[0]==1)for(B in A){var D='label_'+A[B],E=d.getById(D);if('undefined'!=typeof E&&'undefined'!=typeof c[D]&&'undefined'!=typeof x.options[A[B]]){E.setHtml(c[D]);var F=E.getParent();F.$.style.display='block';}}var G='<p>'+c.about_throwt_image+'</p>'+'<p>'+c.version+x.data.scayt.version.toString()+'</p>'+'<p>'+c.about_throwt_copy+'</p>';d.getById('scayt_about').setHtml(G);var H=function(R,S){var T=d.createElement('label');T.setAttribute('for','cke_option'+R);T.setHtml(S[R]);if(x.sLang==R)x.chosed_lang=R;var U=d.createElement('div'),V=CKEDITOR.dom.element.createFromHtml('<input id="cke_option'+R+'" type="radio" '+(x.sLang==R?'checked="checked"':'')+' value="'+R+'" name="scayt_lang" />');V.on('click',function(){this.$.checked=true;x.chosed_lang=R;});U.append(V);U.append(T);return{lang:S[R],code:R,radio:U};},I=[];if(e[1]==1){for(B in y.rtl)I[I.length]=H(B,y.ltr);for(B in y.ltr)I[I.length]=H(B,y.ltr);I.sort(function(R,S){return S.lang>R.lang?-1:1;});var J=d.getById('scayt_lcol'),K=d.getById('scayt_rcol');for(B=0;B<I.length;B++){var L=B<I.length/2?J:K;L.append(I[B].radio);}}var M={};M.dic_create=function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_create,W=c.succ_dic_create;window.scayt.createUserDictionary(S,function(X){v(U);u(T[1]);W=W.replace('%s',X.dname);t(W);},function(X){V=V.replace('%s',X.dname);s(V+'( '+(X.message||'')+')');});};M.dic_rename=function(R,S){var T=c.err_dic_rename||'',U=c.succ_dic_rename||'';window.scayt.renameUserDictionary(S,function(V){U=U.replace('%s',V.dname);
x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.apply(x);b=false;});else r.apply(x);x.selectPage(x.data.tab);},onOk:function(){var x=this.data.scayt_control;x.option(this.options);var y=this.chosed_lang;x.setLang(y);x.refresh();},onCancel:function(){var x=k();for(f in x)x[f].checked=false;m(l(),'');},contents:g},p=CKEDITOR.plugins.scayt.getScayt(a);e=CKEDITOR.plugins.scayt.uiTabs;for(f in e){if(e[f]==1)g[g.length]=n[f];}if(e[2]==1)h=true;var q=function(){var x=this,y=x.data.scayt.getLangList(),z=['dic_create','dic_delete','dic_rename','dic_restore'],A=j,B;if(h){for(B=0;B<z.length;B++){var C=z[B];d.getById(C).setHtml('<span class="cke_dialog_ui_button">'+c['button_'+C]+'</span>');}d.getById('dic_info').setHtml(c.dic_info);}if(e[0]==1)for(B in A){var D='label_'+A[B],E=d.getById(D);if('undefined'!=typeof E&&'undefined'!=typeof c[D]&&'undefined'!=typeof x.options[A[B]]){E.setHtml(c[D]);var F=E.getParent();F.$.style.display='block';}}var G='<p><img src="'+window.scayt.getAboutInfo().logoURL+'" /></p>'+'<p>'+c.version+window.scayt.getAboutInfo().version.toString()+'</p>'+'<p>'+c.about_throwt_copy+'</p>';d.getById('scayt_about').setHtml(G);var H=function(R,S){var T=d.createElement('label');T.setAttribute('for','cke_option'+R);T.setHtml(S[R]);if(x.sLang==R)x.chosed_lang=R;var U=d.createElement('div'),V=CKEDITOR.dom.element.createFromHtml('<input id="cke_option'+R+'" type="radio" '+(x.sLang==R?'checked="checked"':'')+' value="'+R+'" name="scayt_lang" />');V.on('click',function(){this.$.checked=true;x.chosed_lang=R;});U.append(V);U.append(T);return{lang:S[R],code:R,radio:U};},I=[];if(e[1]==1){for(B in y.rtl)I[I.length]=H(B,y.ltr);for(B in y.ltr)I[I.length]=H(B,y.ltr);I.sort(function(R,S){return S.lang>R.lang?-1:1;});var J=d.getById('scayt_lcol'),K=d.getById('scayt_rcol');for(B=0;B<I.length;B++){var L=B<I.length/2?J:K;L.append(I[B].radio);}}var M={};M.dic_create=function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_create,W=c.succ_dic_create;window.scayt.createUserDictionary(S,function(X){v(U);u(T[1]);W=W.replace('%s',X.dname);t(W);},function(X){V=V.replace('%s',X.dname);s(V+'( '+(X.message||'')+')');});};M.dic_rename=function(R,S){var T=c.err_dic_rename||'',U=c.succ_dic_rename||'';window.scayt.renameUserDictionary(S,function(V){U=U.replace('%s',V.dname);
x.data=a.fire('scaytDialog',{});x.options=x.data.scayt_control.option();x.sLang=x.data.scayt_control.sLang;if(!x.data||!x.data.scayt||!x.data.scayt_control){alert('Error loading application service');x.hide();return;}var y=0;if(b)x.data.scayt.getCaption(a.langCode||'en',function(z){if(y++>0)return;c=z;q.apply(x);r.apply(x);b=false;});else r.apply(x);x.selectPage(x.data.tab);},onOk:function(){var x=this.data.scayt_control;x.option(this.options);var y=this.chosed_lang;x.setLang(y);x.refresh();},onCancel:function(){var x=k();for(f in x)x[f].checked=false;m(l(),'');},contents:g},p=CKEDITOR.plugins.scayt.getScayt(a);e=CKEDITOR.plugins.scayt.uiTabs;for(f in e){if(e[f]==1)g[g.length]=n[f];}if(e[2]==1)h=true;var q=function(){var x=this,y=x.data.scayt.getLangList(),z=['dic_create','dic_delete','dic_rename','dic_restore'],A=j,B;if(h){for(B=0;B<z.length;B++){var C=z[B];d.getById(C).setHtml('<span class="cke_dialog_ui_button">'+c['button_'+C]+'</span>');}d.getById('dic_info').setHtml(c.dic_info);}if(e[0]==1)for(B in A){var D='label_'+A[B],E=d.getById(D);if('undefined'!=typeof E&&'undefined'!=typeof c[D]&&'undefined'!=typeof x.options[A[B]]){E.setHtml(c[D]);var F=E.getParent();F.$.style.display='block';}}var G='<p>'+c.about_throwt_image+'</p>'+'<p>'+c.version+x.data.scayt.version.toString()+'</p>'+'<p>'+c.about_throwt_copy+'</p>';d.getById('scayt_about').setHtml(G);var H=function(R,S){var T=d.createElement('label');T.setAttribute('for','cke_option'+R);T.setHtml(S[R]);if(x.sLang==R)x.chosed_lang=R;var U=d.createElement('div'),V=CKEDITOR.dom.element.createFromHtml('<input id="cke_option'+R+'" type="radio" '+(x.sLang==R?'checked="checked"':'')+' value="'+R+'" name="scayt_lang" />');V.on('click',function(){this.$.checked=true;x.chosed_lang=R;});U.append(V);U.append(T);return{lang:S[R],code:R,radio:U};},I=[];if(e[1]==1){for(B in y.rtl)I[I.length]=H(B,y.ltr);for(B in y.ltr)I[I.length]=H(B,y.ltr);I.sort(function(R,S){return S.lang>R.lang?-1:1;});var J=d.getById('scayt_lcol'),K=d.getById('scayt_rcol');for(B=0;B<I.length;B++){var L=B<I.length/2?J:K;L.append(I[B].radio);}}var M={};M.dic_create=function(R,S,T){var U=T[0]+','+T[1],V=c.err_dic_create,W=c.succ_dic_create;window.scayt.createUserDictionary(S,function(X){v(U);u(T[1]);W=W.replace('%s',X.dname);t(W);},function(X){V=V.replace('%s',X.dname);s(V+'( '+(X.message||'')+')');});};M.dic_rename=function(R,S){var T=c.err_dic_rename||'',U=c.succ_dic_rename||'';window.scayt.renameUserDictionary(S,function(V){U=U.replace('%s',V.dname);
editor.onDeactivate.add(function(editor) { $(editor.getContainer()).removeClass('expanded'); });
editor.onActivate.add(function(editor, otherEditor) { $(editor.getContainer()).addClass('expanded'); });
editor.onDeactivate.add(function(editor) { $(editor.getContainer()).removeClass('expanded'); });
(function(b){var a=b.tools.tooltip;a.effects=a.effects||{};a.effects.slide={version:"1.0.0"};b.extend(a.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!b.browser.msie});var c={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};b.tools.tooltip.addEffect("slide",function(d){var f=this.getConf(),g=this.getTip(),h=f.slideFade?{opacity:f.opacity}:{},e=c[f.direction]||c.up;h[e[1]]=e[0]+"="+f.slideOffset;if(f.slideFade){g.css({opacity:0})}g.show().animate(h,f.slideInSpeed,d)},function(e){var g=this.getConf(),i=g.slideOffset,h=g.slideFade?{opacity:0}:{},f=c[g.direction]||c.up;var d=""+f[0];if(g.bounce){d=d=="+"?"-":"+"}h[f[1]]=d+"="+i;this.getTip().animate(h,g.slideOutSpeed,function(){b(this).hide();e.call()})})})(jQuery);
b=a.slideFade?{opacity:0}:{},c=e[a.direction]||e.up,h=""+c[0];if(a.bounce)h=h=="+"?"-":"+";b[c[1]]=h+"="+f;this.getTip().animate(b,a.slideOutSpeed,function(){d(this).hide();g.call()})})})(jQuery);
(function(b){var a=b.tools.tooltip;a.effects=a.effects||{};a.effects.slide={version:"1.0.0"};b.extend(a.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!b.browser.msie});var c={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};b.tools.tooltip.addEffect("slide",function(d){var f=this.getConf(),g=this.getTip(),h=f.slideFade?{opacity:f.opacity}:{},e=c[f.direction]||c.up;h[e[1]]=e[0]+"="+f.slideOffset;if(f.slideFade){g.css({opacity:0})}g.show().animate(h,f.slideInSpeed,d)},function(e){var g=this.getConf(),i=g.slideOffset,h=g.slideFade?{opacity:0}:{},f=c[g.direction]||c.up;var d=""+f[0];if(g.bounce){d=d=="+"?"-":"+"}h[f[1]]=d+"="+i;this.getTip().animate(h,g.slideOutSpeed,function(){b(this).hide();e.call()})})})(jQuery);
$.each(conf.css, function(key, val) { if (!val && key != 'prefix') { conf.css[key] = (conf.css.prefix || '') + (val || key); } });
$.expr[':'].date = function(el) { var type = el.getAttribute("type"); return type && type == 'date' || !!$(el).data("dateinput"); };
$.each(conf.css, function(key, val) { if (!val && key != 'prefix') { conf.css[key] = (conf.css.prefix || '') + (val || key); } });
whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); });
response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid - 1; MBchat.updateables.processMessage(item); });
whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); });
$(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); });
$('li.graph-image .ui-icon-disk').live('click', function() { var img_tag = $(this).parent().parent().next().next(); $("#output-dialog a").each(function() { $this = $(this); var join_url = $(img_tag).attr('src') + $this.attr('href'); $this.attr('href', join_url);
$(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); });
$("#output-dialog").dialog( { title : 'Select output format:', modal : true }); });
$(this).each(function() { $(this).hover(function() { $(this).addClass('ui-state-hover'); }, function() { $(this).removeClass('ui-state-hover'); }); });
$.expr[':'].date = function(el) { var type = el.getAttribute("type"); return type && type == 'date' || !!$(el).data("dateinput"); };
$.each(conf.css, function(key, val) { if (!val && key != 'prefix') { conf.css[key] = (conf.css.prefix || '') + (val || key); } });
$.expr[':'].date = function(el) { var type = el.getAttribute("type"); return type && type == 'date' || !!$(el).data("dateinput"); };
let list = template.map(option, function (option) { let opt = buffer.pageInfo[option]; return opt ? template.table(opt[1], opt[0](true)) : undefined; }, <br/>);
commandline.input("Upload file: ", function (path) { let file = io.File(path); liberator.assert(file.exists()); elem.value = file.path; }, {
let list = template.map(option, function (option) { let opt = buffer.pageInfo[option]; return opt ? template.table(opt[1], opt[0](true)) : undefined; }, <br/>);
response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid - 1; MBchat.updateables.processMessage(item); });
whisperBoxes.each ( function (whisperBox) { var privateBox = whisperBox.getElement('.private'); privateBox.removeClass('private'); privateBox.addClass('nonprivate'); privateBox.removeEvent('click',goPrivate); });
response.messages.each(function(item) { item.lid = item.lid.toInt(); item.rid = item.rid.toInt(); item.user.uid = item.user.uid.toInt(); if(!lastId) lastId = item.lid - 1; MBchat.updateables.processMessage(item); });
window.setTimeout(add_content_bottom_if_needed, lookup_speed_sitting);
window.setTimeout(add_content_bottom_if_needed, lookup_delay);
return function (direction) { if (direction === additional) { window.setTimeout(add_content_bottom_if_needed, lookup_speed_sitting); } else { window.setTimeout(add_content_top_if_needed, lookup_speed_scrolling); } };
window.setTimeout(add_content_top_if_needed, lookup_speed_scrolling);
window.setTimeout(add_content_top_if_needed, lookup_delay);
return function (direction) { if (direction === additional) { window.setTimeout(add_content_bottom_if_needed, lookup_speed_sitting); } else { window.setTimeout(add_content_top_if_needed, lookup_speed_scrolling); } };
el.bind(event, function() { self.checkValidity(el); });
$.each(fns, function() { var fn = this, match = fn[0]; if (el.filter(match).length) { var returnValue = fn[1].call(self, el, el.val()); if (returnValue !== true) { e.type = "onBeforeFail"; fire.trigger(e, [el, match]); if (e.isDefaultPrevented()) { return false; } var msg = el.attr(conf.messageAttr); if (msg) { msgs = [msg]; return false; } else { pushMessage(msgs, match, returnValue); } } } });
el.bind(event, function() { self.checkValidity(el); });
if(code == 13 || String.fromCharCode(code) == options.splitChar)
if(code == 13 || $(this).val().indexOf(options.splitChar) != -1)
(function($){ $.fn.tagBox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', errorMessage: 'Add the tag before submitting', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: true, multiple: true }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; var timer = null; // reset label, so it points to the correct item $('label[for="' + id + '"]').attr('for', 'addValue-' + id); // bind submit $(this.form).submit(function(evt) { // hide before.. $('#errorMessage-'+ id).remove(); if(blockSubmit && $('#addValue-' + id).val().replace(/^\s+|\s+$/g, '') != '') { // show warning $($('#addValue-'+ id).parents('.oneLiner')).append('<span style="display: none;" id="errorMessage-'+ id +'" class="formError">'+ options.errorMessage +'</span>'); // clear other timers clearTimeout(timer); // we need the timeout otherwise the error is show every time the user presses enter in the tagbox timer = setTimeout(function() { $('#errorMessage-'+ id).show(); }, 200); } return !blockSubmit; }); // build replace html var html = '<div class="tagsWrapper">' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + ' <div id="elementList-' + id + '" class="tagList">' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-' + id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // remove error message $('#errorMessage-'+ id).remove(); // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // hide before.. $('#errorMessage-'+ id).remove(); // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-' + id).addClass('disabledButton'); } else $('#addButton-' + id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // if multiple arguments aren't allowed, clear before adding if(!options.multiple) elements = []; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // remove error message $('#errorMessage-'+ id).remove(); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); };})(jQuery);
var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, '');
var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, '').replace(options.splitChar, '');
(function($){ $.fn.tagBox = function(options) { // define defaults var defaults = { splitChar: ',', emptyMessage: '', errorMessage: 'Add the tag before submitting', addLabel: 'add', removeLabel: 'delete', autoCompleteUrl: '', canAddNew: false, showIconOnly: true, multiple: true }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // define some vars var id = $(this).attr('id'); var elements = get(); var blockSubmit = false; var timer = null; // reset label, so it points to the correct item $('label[for="' + id + '"]').attr('for', 'addValue-' + id); // bind submit $(this.form).submit(function(evt) { // hide before.. $('#errorMessage-'+ id).remove(); if(blockSubmit && $('#addValue-' + id).val().replace(/^\s+|\s+$/g, '') != '') { // show warning $($('#addValue-'+ id).parents('.oneLiner')).append('<span style="display: none;" id="errorMessage-'+ id +'" class="formError">'+ options.errorMessage +'</span>'); // clear other timers clearTimeout(timer); // we need the timeout otherwise the error is show every time the user presses enter in the tagbox timer = setTimeout(function() { $('#errorMessage-'+ id).show(); }, 200); } return !blockSubmit; }); // build replace html var html = '<div class="tagsWrapper">' + ' <div class="oneLiner">' + ' <p><input class="inputText dontSubmit" id="addValue-' + id + '" name="addValue-' + id + '" type="text" /></p>' + ' <div class="buttonHolder">' + ' <a href="#" id="addButton-' + id + '" class="button icon iconAdd disabledButton'; if(options.showIconOnly) html += ' iconOnly'; html += '">' + ' <span>' + options.addLabel + '</span>' + ' </a>' + ' </div>' + ' </div>' + ' <div id="elementList-' + id + '" class="tagList">' + ' </div>' + '</div>'; // hide current element $(this).css('visibility', 'hidden').css('position', 'absolute').css('top', '-9000px').css('left', '-9000px').attr('tabindex', '-1'); // prepend html $(this).before(html); // add elements list build(); // bind autocomplete if needed if(options.autoCompleteUrl != '') { $('#addValue-' + id).autocomplete({ delay: 200, minLength: 2, source: function(request, response) { $.ajax({ url: options.autoCompleteUrl, type: 'GET', data: 'term=' + request.term, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } if(data.code == 200) { for( var i in data.data) { realData.push({ label: data.data[i].name, value: data.data[i].name }); } } // set response response(realData); } }); } }); } // bind keypress on value-field $('#addValue-' + id).bind('keyup', function(evt) { blockSubmit = true; // grab code var code = evt.which; // remove error message $('#errorMessage-'+ id).remove(); // enter of splitchar should add an element if(code == 13 || String.fromCharCode(code) == options.splitChar) { // hide before.. $('#errorMessage-'+ id).remove(); // prevent default behaviour evt.preventDefault(); evt.stopPropagation(); // add element add(); } // disable or enable button if($(this).val().replace(/^\s+|\s+$/g, '') == '') { blockSubmit = false; $('#addButton-' + id).addClass('disabledButton'); } else $('#addButton-' + id).removeClass('disabledButton'); }); // bind click on add-button $('#addButton-' + id).bind('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // add element add(); }); // bind click on delete-button $('.deleteButton-' + id).live('click', function(evt) { // dont submit evt.preventDefault(); evt.stopPropagation(); // remove element remove($(this).attr('rel')); }); // add an element function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // if multiple arguments aren't allowed, clear before adding if(!options.multiple) elements = []; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // remove error message $('#errorMessage-'+ id).remove(); // only add new element if it isn't empty if(value != '') { // already in elements? for( var i in elements) { if(value == elements[i]) inElements = true; } // only add if not already in elements if(!inElements) { // add elements elements.push(value); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } } } // build the list 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); } // get all items function get() { // get chunks var chunks = $('#' + id).val().split(options.splitChar); var elements = []; // loop elements and trim them from spaces for( var i in chunks) { value = chunks[i].replace(/^\s+|\s+$/g, ''); if(value != '') elements.push(value); } return elements; } // remove an item function remove(value) { // get index for element var index = $.inArray(value, elements); // remove element if(index > -1) elements.splice(index, 1); // set new value $('#' + id).val(elements.join(options.splitChar)); // rebuild element list build(); } }); };})(jQuery);
show_context_menu(wrench_pos.left, wrench_pos.top + wrench_button.offsetHeight, [{text: BF.lang.configure, link: show_configure_panel}, {line: true, text: BF.lang.blog, link: "http:
show_help_panel = (function () { var panel_element = document.createElement("div"); panel_element.innerHTML = "Email: <a href=\"mailto:[email protected]\">[email protected]</a><br><br>More coming soon, Lord willing.<br><br>"; return function ()
show_context_menu(wrench_pos.left, wrench_pos.top + wrench_button.offsetHeight, [{text: BF.lang.configure, link: show_configure_panel}, {line: true, text: BF.lang.blog, link: "http://blog.bibleforge.com"}, {text: BF.lang.help, link: show_help_panel}], function () { /// Because the context menu is open, make the wrench button look pressed. wrench_button.className += " activeWrenchIcon"; }, function ()
wrench_button.className += " activeWrenchIcon"; }, function ()
show_panel(panel_element); }; }());
show_context_menu(wrench_pos.left, wrench_pos.top + wrench_button.offsetHeight, [{text: BF.lang.configure, link: show_configure_panel}, {line: true, text: BF.lang.blog, link: "http://blog.bibleforge.com"}, {text: BF.lang.help, link: show_help_panel}], function () { /// Because the context menu is open, make the wrench button look pressed. wrench_button.className += " activeWrenchIcon"; }, function ()
a)}return d.grep(a,function(h){return d.inArray(h,b)>=0===e})};d.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,g=0,h=this.length;g<h;g++){e=b.length;d.find(a,this[g],b);if(g>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var e=0,g=b.length;e<g;e++)if(d.contains(this,b[e]))return true})},not:function(a){return this.pushStack(ha(this,a,false),"not",a)},filter:function(a){return this.pushStack(ha(this,
function(h){return h===b===e});else if(typeof b==="string"){var f=c.grep(a,function(h){return h.nodeType===1});if(va.test(b))return c.filter(b,f,!e);else b=c.filter(b,a)}return c.grep(a,function(h){return c.inArray(h,b)>=0===e})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,f=0,h=this.length;f<h;f++){e=b.length;c.find(a,this[f],b);if(f>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var e=
a)}return d.grep(a,function(h){return d.inArray(h,b)>=0===e})};d.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,g=0,h=this.length;g<h;g++){e=b.length;d.find(a,this[g],b);if(g>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var e=0,g=b.length;e<g;e++)if(d.contains(this,b[e]))return true})},not:function(a){return this.pushStack(ha(this,a,false),"not",a)},filter:function(a){return this.pushStack(ha(this,
return q;},function(){window.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');var q=window.Components.classes['@mozilla.org/widget/clipboard;1'].getService(window.Components.interfaces.nsIClipboard),r=window.Components.classes['@mozilla.org/widget/transferable;1'].createInstance(window.Components.interfaces.nsITransferable);r.addDataFlavor('text/unicode');q.getData(r,q.kGlobalClipboard);var s={},t={},u;r.getTransferData('text/unicode',s,t);s=s.value.QueryInterface(window.Components.interfaces.nsISupportsString);u=s.data.substring(0,t.value/2);return u;});if(!p){o.openDialog('pastetext');return false;}else o.fire('paste',{text:p});return true;}};function m(o,p){if(c){var q=o.selection;if(q.type=='Control')q.clear();q.createRange().pasteHTML(p);}else o.execCommand('inserthtml',false,p);};j.add('pastetext',{init:function(o){var p='pastetext',q=o.addCommand(p,l);o.ui.addButton('PasteText',{label:o.lang.pasteText.button,command:p});a.dialog.add(p,a.getUrl(this.path+'dialogs/pastetext.js'));if(o.config.forcePasteAsPlainText)o.on('beforeCommandExec',function(r){if(r.data.name=='paste'){o.execCommand('pastetext');r.cancel();}},null,null,0);},requires:['clipboard']});function n(o,p,q,r){while(q--)j.enterkey[p==2?'enterBr':'enterBlock'](o,p,null,r);};a.editor.prototype.insertText=function(o){this.focus();this.fire('saveSnapshot');var p=this.getSelection().getStartElement().hasAscendant('pre',true)?2:this.config.enterMode,q=p==2,r=this.document.$,s=this,t;o=e.htmlEncode(o.replace(/\r\n|\r/g,'\n'));var u=0;o.replace(/\n+/g,function(v,w){t=o.substring(u,w);u=w+v.length;t.length&&m(r,t);var x=v.length,y=q?0:Math.floor(x/2),z=q?x:x%2;n(s,p,y);n(s,2,z,q?false:true);});t=o.substring(u,o.length);t.length&&m(r,t);this.fire('saveSnapshot');};})();j.add('popup');e.extend(a.editor.prototype,{popup:function(l,m,n){m=m||'80%';n=n||'70%';if(typeof m=='string'&&m.length>1&&m.substr(m.length-1,1)=='%')m=parseInt(window.screen.width*parseInt(m,10)/100,10);if(typeof n=='string'&&n.length>1&&n.substr(n.length-1,1)=='%')n=parseInt(window.screen.height*parseInt(n,10)/100,10);if(m<640)m=640;if(n<420)n=420;var o=parseInt((window.screen.height-n)/2,10),p=parseInt((window.screen.width-m)/2,10),q='location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,width='+m+',height='+n+',top='+o+',left='+p,r=window.open('',null,q,true);if(!r)return false;try{r.moveTo(p,o);r.resizeTo(m,n);r.focus();r.location.href=l;}catch(s){r=window.open(l,null,q,true);
}h.setMarker(v,N,'indent_processed',true);return true;};var z=t.getSelection(),A=z.createBookmarks(true),B=z&&z.getRanges(true),C,D=function(N){return!N.hasAttribute('_cke_bookmark');},E=B.createIterator();while(C=E.getNextRange()){C.shrink(1);if(C.endContainer.getName()=='body')C.setEndAt(C.endContainer.getLast(D),2);var F=C.startContainer,G=C.endContainer,H=C.getCommonAncestor(),I=H;while(I&&!(I.type==1&&l[I.getName()]))I=I.getParent();if(I&&F.type==1&&F.getName() in l){var J=new d.walker(C);J.evaluator=s;C.startContainer=J.next();}if(I&&G.type==1&&G.getName() in l){J=new d.walker(C);J.evaluator=s;C.endContainer=J.previous();}if(I){var K=I.getFirst(function(N){return N.type==1&&N.is('li');}),L=C.startContainer,M=K.equals(L)||K.contains(L);if(!(M&&y(I)))w(I);}else x();}h.clearAllMarkers(v);t.forceNextSelectionCheck();z.selectBookmarks(A);}};j.add('indent',{init:function(t){var u=new q(t,'indent'),v=new q(t,'outdent');t.addCommand('indent',u);t.addCommand('outdent',v);t.ui.addButton('Indent',{label:t.lang.indent,command:'indent'});t.ui.addButton('Outdent',{label:t.lang.outdent,command:'outdent'});t.on('selectionChange',e.bind(p,u));t.on('selectionChange',e.bind(p,v));if(b.ie6Compat||b.ie7Compat)t.addCss('ul,ol{\tmargin-left: 0px;\tpadding-left: 40px;}');},requires:['domiterator','list']});})();e.extend(i,{indentOffset:40,indentUnit:'px',indentClasses:null});(function(){function l(p,q){var r=q.block||q.blockLimit;if(!r||r.getName()=='body')return 2;return m(r,p.config.useComputedState)==this.value?1:2;};function m(p,q){q=q===undefined||q;var r;if(q)r=p.getComputedStyle('text-align');else{while(!p.hasAttribute||!(p.hasAttribute('align')||p.getStyle('text-align'))){var s=p.getParent();if(!s)break;p=s;}r=p.getStyle('text-align')||p.getAttribute('align')||'';}r&&(r=r.replace(/-moz-|-webkit-|start|auto/i,''));!r&&q&&(r=p.getComputedStyle('direction')=='rtl'?'right':'left');return r;};function n(p){var q=p.editor.getCommand(this.name);q.state=l.call(this,p.editor,p.data.path);q.fire('state');};function o(p,q,r){var t=this;t.name=q;t.value=r;var s=p.config.justifyClasses;if(s){switch(r){case 'left':t.cssClassName=s[0];break;case 'center':t.cssClassName=s[1];break;case 'right':t.cssClassName=s[2];break;case 'justify':t.cssClassName=s[3];break;}t.cssClassRegex=new RegExp('(?:^|\\s+)(?:'+s.join('|')+')(?=$|\\s)');}};o.prototype={exec:function(p){var B=this;var q=p.getSelection(),r=p.config.enterMode;if(!q)return;var s=q.createBookmarks(),t=q.getRanges(true),u=B.cssClassName,v,w,x=p.config.useComputedState; 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']];
return q;},function(){window.netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');var q=window.Components.classes['@mozilla.org/widget/clipboard;1'].getService(window.Components.interfaces.nsIClipboard),r=window.Components.classes['@mozilla.org/widget/transferable;1'].createInstance(window.Components.interfaces.nsITransferable);r.addDataFlavor('text/unicode');q.getData(r,q.kGlobalClipboard);var s={},t={},u;r.getTransferData('text/unicode',s,t);s=s.value.QueryInterface(window.Components.interfaces.nsISupportsString);u=s.data.substring(0,t.value/2);return u;});if(!p){o.openDialog('pastetext');return false;}else o.fire('paste',{text:p});return true;}};function m(o,p){if(c){var q=o.selection;if(q.type=='Control')q.clear();q.createRange().pasteHTML(p);}else o.execCommand('inserthtml',false,p);};j.add('pastetext',{init:function(o){var p='pastetext',q=o.addCommand(p,l);o.ui.addButton('PasteText',{label:o.lang.pasteText.button,command:p});a.dialog.add(p,a.getUrl(this.path+'dialogs/pastetext.js'));if(o.config.forcePasteAsPlainText)o.on('beforeCommandExec',function(r){if(r.data.name=='paste'){o.execCommand('pastetext');r.cancel();}},null,null,0);},requires:['clipboard']});function n(o,p,q,r){while(q--)j.enterkey[p==2?'enterBr':'enterBlock'](o,p,null,r);};a.editor.prototype.insertText=function(o){this.focus();this.fire('saveSnapshot');var p=this.getSelection().getStartElement().hasAscendant('pre',true)?2:this.config.enterMode,q=p==2,r=this.document.$,s=this,t;o=e.htmlEncode(o.replace(/\r\n|\r/g,'\n'));var u=0;o.replace(/\n+/g,function(v,w){t=o.substring(u,w);u=w+v.length;t.length&&m(r,t);var x=v.length,y=q?0:Math.floor(x/2),z=q?x:x%2;n(s,p,y);n(s,2,z,q?false:true);});t=o.substring(u,o.length);t.length&&m(r,t);this.fire('saveSnapshot');};})();j.add('popup');e.extend(a.editor.prototype,{popup:function(l,m,n){m=m||'80%';n=n||'70%';if(typeof m=='string'&&m.length>1&&m.substr(m.length-1,1)=='%')m=parseInt(window.screen.width*parseInt(m,10)/100,10);if(typeof n=='string'&&n.length>1&&n.substr(n.length-1,1)=='%')n=parseInt(window.screen.height*parseInt(n,10)/100,10);if(m<640)m=640;if(n<420)n=420;var o=parseInt((window.screen.height-n)/2,10),p=parseInt((window.screen.width-m)/2,10),q='location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,width='+m+',height='+n+',top='+o+',left='+p,r=window.open('',null,q,true);if(!r)return false;try{r.moveTo(p,o);r.resizeTo(m,n);r.focus();r.location.href=l;}catch(s){r=window.open(l,null,q,true);
}return true;}});(function(){var l={modes:{wysiwyg:1,source:1},canUndo:false,exec:function(n){var o,p=n.config,q=p.baseHref?'<base href="'+p.baseHref+'"/>':'',r=b.isCustomDomain();if(p.fullPage)o=n.getData().replace(/<head>/,'$&'+q).replace(/[^>]*(?=<\/title>)/,n.lang.preview);else{var s='<body ',t=n.document&&n.document.getBody();if(t){if(t.getAttribute('id'))s+='id="'+t.getAttribute('id')+'" ';if(t.getAttribute('class'))s+='class="'+t.getAttribute('class')+'" ';}s+='>';o=n.config.docType+'<html dir="'+n.config.contentsLangDirection+'">'+'<head>'+q+'<title>'+n.lang.preview+'</title>'+e.buildStyleHtml(n.config.contentsCss)+'</head>'+s+n.getData()+'</body></html>';}var u=640,v=420,w=80;try{var x=window.screen;u=Math.round(x.width*0.8);v=Math.round(x.height*0.7);w=Math.round(x.width*0.1);}catch(A){}var y='';if(r){window._cke_htmlToLoad=o;y='javascript:void( (function(){document.open();document.domain="'+document.domain+'";'+'document.write( window.opener._cke_htmlToLoad );'+'document.close();'+'window.opener._cke_htmlToLoad = null;'+'})() )';}var z=window.open(y,null,'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+u+',height='+v+',left='+w);if(!r){z.document.open();z.document.write(o);z.document.close();}}},m='preview';j.add(m,{init:function(n){n.addCommand(m,l);n.ui.addButton('Preview',{label:n.lang.preview,command:m});}});})();j.add('print',{init:function(l){var m='print',n=l.addCommand(m,j.print);l.ui.addButton('Print',{label:l.lang.print,command:m});}});j.print={exec:function(l){if(b.opera)return;else if(b.gecko)l.window.$.print();else l.document.$.execCommand('Print');},canUndo:false,modes:{wysiwyg:!b.opera}};j.add('removeformat',{requires:['selection'],init:function(l){l.addCommand('removeFormat',j.removeformat.commands.removeformat);l.ui.addButton('RemoveFormat',{label:l.lang.removeFormat,command:'removeFormat'});}});j.removeformat={commands:{removeformat:{exec:function(l){var m=l._.removeFormatRegex||(l._.removeFormatRegex=new RegExp('^(?:'+l.config.removeFormatTags.replace(/,/g,'|')+')$','i')),n=l._.removeAttributes||(l._.removeAttributes=l.config.removeFormatAttributes.split(',')),o=l.getSelection().getRanges();for(var p=0,q;q=o[p];p++){if(q.collapsed)continue;q.enlarge(1);var r=q.createBookmark(),s=r.startNode,t=r.endNode,u=function(x){var y=new d.elementPath(x),z=y.elements;for(var A=1,B;B=z[A];A++){if(B.equals(y.block)||B.equals(y.blockLimit))break;if(m.test(B.getName()))x.breakParent(B);}};u(s);u(t);var v=s.getNextSourceNode(true,1);
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']];
}return true;}});(function(){var l={modes:{wysiwyg:1,source:1},canUndo:false,exec:function(n){var o,p=n.config,q=p.baseHref?'<base href="'+p.baseHref+'"/>':'',r=b.isCustomDomain();if(p.fullPage)o=n.getData().replace(/<head>/,'$&'+q).replace(/[^>]*(?=<\/title>)/,n.lang.preview);else{var s='<body ',t=n.document&&n.document.getBody();if(t){if(t.getAttribute('id'))s+='id="'+t.getAttribute('id')+'" ';if(t.getAttribute('class'))s+='class="'+t.getAttribute('class')+'" ';}s+='>';o=n.config.docType+'<html dir="'+n.config.contentsLangDirection+'">'+'<head>'+q+'<title>'+n.lang.preview+'</title>'+e.buildStyleHtml(n.config.contentsCss)+'</head>'+s+n.getData()+'</body></html>';}var u=640,v=420,w=80;try{var x=window.screen;u=Math.round(x.width*0.8);v=Math.round(x.height*0.7);w=Math.round(x.width*0.1);}catch(A){}var y='';if(r){window._cke_htmlToLoad=o;y='javascript:void( (function(){document.open();document.domain="'+document.domain+'";'+'document.write( window.opener._cke_htmlToLoad );'+'document.close();'+'window.opener._cke_htmlToLoad = null;'+'})() )';}var z=window.open(y,null,'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+u+',height='+v+',left='+w);if(!r){z.document.open();z.document.write(o);z.document.close();}}},m='preview';j.add(m,{init:function(n){n.addCommand(m,l);n.ui.addButton('Preview',{label:n.lang.preview,command:m});}});})();j.add('print',{init:function(l){var m='print',n=l.addCommand(m,j.print);l.ui.addButton('Print',{label:l.lang.print,command:m});}});j.print={exec:function(l){if(b.opera)return;else if(b.gecko)l.window.$.print();else l.document.$.execCommand('Print');},canUndo:false,modes:{wysiwyg:!b.opera}};j.add('removeformat',{requires:['selection'],init:function(l){l.addCommand('removeFormat',j.removeformat.commands.removeformat);l.ui.addButton('RemoveFormat',{label:l.lang.removeFormat,command:'removeFormat'});}});j.removeformat={commands:{removeformat:{exec:function(l){var m=l._.removeFormatRegex||(l._.removeFormatRegex=new RegExp('^(?:'+l.config.removeFormatTags.replace(/,/g,'|')+')$','i')),n=l._.removeAttributes||(l._.removeAttributes=l.config.removeFormatAttributes.split(',')),o=l.getSelection().getRanges();for(var p=0,q;q=o[p];p++){if(q.collapsed)continue;q.enlarge(1);var r=q.createBookmark(),s=r.startNode,t=r.endNode,u=function(x){var y=new d.elementPath(x),z=y.elements;for(var A=1,B;B=z[A];A++){if(B.equals(y.block)||B.equals(y.blockLimit))break;if(m.test(B.getName()))x.breakParent(B);}};u(s);u(t);var v=s.getNextSourceNode(true,1);
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';i.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';j.add('resize',{init:function(l){var m=l.config;if(m.resize_enabled){var n=null,o,p;function q(t){var u=t.data.$.screenX-o.x,v=t.data.$.screenY-o.y,w=p.width+u*(l.lang.dir=='rtl'?-1:1),x=p.height+v;l.resize(Math.max(m.resize_minWidth,Math.min(w,m.resize_maxWidth)),Math.max(m.resize_minHeight,Math.min(x,m.resize_maxHeight)));};function r(t){a.document.removeListener('mousemove',q);a.document.removeListener('mouseup',r);if(l.document){l.document.removeListener('mousemove',q);l.document.removeListener('mouseup',r);}};var s=e.addFunction(function(t){if(!n)n=l.getResizable();p={width:n.$.offsetWidth||0,height:n.$.offsetHeight||0};o={x:t.screenX,y:t.screenY};a.document.on('mousemove',q);a.document.on('mouseup',r);if(l.document){l.document.on('mousemove',q);l.document.on('mouseup',r);}});l.on('destroy',function(){e.removeFunction(s);});l.on('themeSpace',function(t){if(t.data.space=='bottom')t.data.html+='<div class="cke_resizer" title="'+e.htmlEncode(l.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+s+', event)"'+'></div>';},l,null,100);}}});i.resize_minWidth=750;i.resize_minHeight=250;i.resize_maxWidth=3000;i.resize_maxHeight=3000;i.resize_enabled=true;(function(){var l={modes:{wysiwyg:1,source:1},exec:function(n){var o=n.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.submit.click();}}},m='save';j.add(m,{init:function(n){var o=n.addCommand(m,l);o.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:m});}});})();(function(){var l='scaytcheck',m='',n=null,o=null;function p(u,v){var w=false,x;for(x in v){if(v[x]===u||v[x]==u){w=true;break;}}return w;};var q=function(){var u=this,v=function(){var y={};y.srcNodeRef=u.document.getWindow().$.frameElement;y.assocApp='CKEDITOR.'+a.version+'@'+a.revision;y.customerid=u.config.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';y.customDictionaryIds=u.config.scayt_customDictionaryIds||'';y.userDictionaryName=u.config.scayt_userDictionaryName||'';y.sLang=u.config.scayt_sLang||'en_US';y.onBeforeChange=function(){if(!u.checkDirty())setTimeout(function(){u.resetDirty();
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 !important;'+'height: 18px !important;'+'}\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;'+'}');l.on('selectionChange',function(m){var n=l.getCommand('unlink'),o=m.data.path.lastElement&&m.data.path.lastElement.getAscendant('a',true);if(o&&o.getName()=='a'&&o.getAttribute('href'))n.setState(2);else n.setState(0);});l.on('doubleclick',function(m){var n=j.link.getSelectedLink(l)||m.data.element;if(n.is('a'))m.data.dialog=n.getAttribute('name')&&!n.getAttribute('href')?'anchor':'link';else if(n.is('img')&&n.getAttribute('_cke_real_element_type')=='anchor')m.data.dialog='anchor';});if(l.addMenuItems)l.addMenuItems({anchor:{label:l.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:l.lang.link.menu,command:'link',group:'link',order:1},unlink:{label:l.lang.unlink,command:'unlink',group:'link',order:5}});if(l.contextMenu)l.contextMenu.addListener(function(m,n){if(!m||m.isReadOnly())return null;var o=m.is('img')&&m.getAttribute('_cke_real_element_type')=='anchor';if(!o){if(!(m=j.link.getSelectedLink(l)))return null;o=m.getAttribute('name')&&!m.getAttribute('href');}return o?{anchor:2}:{link:2,unlink:2};});},afterInit:function(l){var m=l.dataProcessor,n=m&&m.dataFilter;if(n)n.addRules({elements:{a:function(o){var p=o.attributes;if(p.name&&!p.href)return l.createFakeParserElement(o,'cke_anchor','anchor');}}});},requires:['fakeobjects']});j.link={getSelectedLink:function(l){try{var m=l.getSelection();if(m.getType()==3){var n=m.getSelectedElement();if(n.is('a'))return n;}var o=m.getRanges(true)[0];o.shrink(2);var p=o.getCommonAncestor();return p.getAscendant('a',true);}catch(q){return null;}}};a.unlinkCommand=function(){};a.unlinkCommand.prototype={exec:function(l){var m=l.getSelection(),n=m.createBookmarks(),o=m.getRanges(),p,q;
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';i.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';j.add('resize',{init:function(l){var m=l.config;if(m.resize_enabled){var n=null,o,p;function q(t){var u=t.data.$.screenX-o.x,v=t.data.$.screenY-o.y,w=p.width+u*(l.lang.dir=='rtl'?-1:1),x=p.height+v;l.resize(Math.max(m.resize_minWidth,Math.min(w,m.resize_maxWidth)),Math.max(m.resize_minHeight,Math.min(x,m.resize_maxHeight)));};function r(t){a.document.removeListener('mousemove',q);a.document.removeListener('mouseup',r);if(l.document){l.document.removeListener('mousemove',q);l.document.removeListener('mouseup',r);}};var s=e.addFunction(function(t){if(!n)n=l.getResizable();p={width:n.$.offsetWidth||0,height:n.$.offsetHeight||0};o={x:t.screenX,y:t.screenY};a.document.on('mousemove',q);a.document.on('mouseup',r);if(l.document){l.document.on('mousemove',q);l.document.on('mouseup',r);}});l.on('destroy',function(){e.removeFunction(s);});l.on('themeSpace',function(t){if(t.data.space=='bottom')t.data.html+='<div class="cke_resizer" title="'+e.htmlEncode(l.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+s+', event)"'+'></div>';},l,null,100);}}});i.resize_minWidth=750;i.resize_minHeight=250;i.resize_maxWidth=3000;i.resize_maxHeight=3000;i.resize_enabled=true;(function(){var l={modes:{wysiwyg:1,source:1},exec:function(n){var o=n.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.submit.click();}}},m='save';j.add(m,{init:function(n){var o=n.addCommand(m,l);o.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:m});}});})();(function(){var l='scaytcheck',m='',n=null,o=null;function p(u,v){var w=false,x;for(x in v){if(v[x]===u||v[x]==u){w=true;break;}}return w;};var q=function(){var u=this,v=function(){var y={};y.srcNodeRef=u.document.getWindow().$.frameElement;y.assocApp='CKEDITOR.'+a.version+'@'+a.revision;y.customerid=u.config.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';y.customDictionaryIds=u.config.scayt_customDictionaryIds||'';y.userDictionaryName=u.config.scayt_userDictionaryName||'';y.sLang=u.config.scayt_sLang||'en_US';y.onBeforeChange=function(){if(!u.checkDirty())setTimeout(function(){u.resetDirty();
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';i.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';j.add('resize',{init:function(l){var m=l.config;if(m.resize_enabled){var n=null,o,p;function q(t){var u=t.data.$.screenX-o.x,v=t.data.$.screenY-o.y,w=p.width+u*(l.lang.dir=='rtl'?-1:1),x=p.height+v;l.resize(Math.max(m.resize_minWidth,Math.min(w,m.resize_maxWidth)),Math.max(m.resize_minHeight,Math.min(x,m.resize_maxHeight)));};function r(t){a.document.removeListener('mousemove',q);a.document.removeListener('mouseup',r);if(l.document){l.document.removeListener('mousemove',q);l.document.removeListener('mouseup',r);}};var s=e.addFunction(function(t){if(!n)n=l.getResizable();p={width:n.$.offsetWidth||0,height:n.$.offsetHeight||0};o={x:t.screenX,y:t.screenY};a.document.on('mousemove',q);a.document.on('mouseup',r);if(l.document){l.document.on('mousemove',q);l.document.on('mouseup',r);}});l.on('destroy',function(){e.removeFunction(s);});l.on('themeSpace',function(t){if(t.data.space=='bottom')t.data.html+='<div class="cke_resizer" title="'+e.htmlEncode(l.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+s+', event)"'+'></div>';},l,null,100);}}});i.resize_minWidth=750;i.resize_minHeight=250;i.resize_maxWidth=3000;i.resize_maxHeight=3000;i.resize_enabled=true;(function(){var l={modes:{wysiwyg:1,source:1},exec:function(n){var o=n.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.submit.click();}}},m='save';j.add(m,{init:function(n){var o=n.addCommand(m,l);o.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:m});}});})();(function(){var l='scaytcheck',m='',n=null,o=null;function p(u,v){var w=false,x;for(x in v){if(v[x]===u||v[x]==u){w=true;break;}}return w;};var q=function(){var u=this,v=function(){var y={};y.srcNodeRef=u.document.getWindow().$.frameElement;y.assocApp='CKEDITOR.'+a.version+'@'+a.revision;y.customerid=u.config.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';y.customDictionaryIds=u.config.scayt_customDictionaryIds||'';y.userDictionaryName=u.config.scayt_userDictionaryName||'';y.sLang=u.config.scayt_sLang||'en_US';y.onBeforeChange=function(){if(!u.checkDirty())setTimeout(function(){u.resetDirty();
for(var r=0;r<o.length;r++){p=o[r].getCommonAncestor(true);q=p.getAscendant('a',true);if(!q)continue;o[r].selectNodeContents(q);}m.selectRanges(o);l.document.$.execCommand('unlink',false,null);m.selectBookmarks(n);},startDisabled:true};e.extend(i,{linkShowAdvancedTab:true,linkShowTargetTab:true});(function(){var l={ol:1,ul:1},m=/^[\n\r\t ]*$/;j.list={listToArray:function(B,C,D,E,F){if(!l[B.getName()])return[];if(!E)E=0;if(!D)D=[];for(var G=0,H=B.getChildCount();G<H;G++){var I=B.getChild(G);if(I.$.nodeName.toLowerCase()!='li')continue;var J={parent:B,indent:E,element:I,contents:[]};if(!F){J.grandparent=B.getParent();if(J.grandparent&&J.grandparent.$.nodeName.toLowerCase()=='li')J.grandparent=J.grandparent.getParent();}else J.grandparent=F;if(C)h.setMarker(C,I,'listarray_index',D.length);D.push(J);for(var K=0,L=I.getChildCount(),M;K<L;K++){M=I.getChild(K);if(M.type==1&&l[M.getName()])j.list.listToArray(M,C,D,E+1,J.grandparent);else J.contents.push(M);}}return D;},arrayToList:function(B,C,D,E,F){if(!D)D=0;if(!B||B.length<D+1)return null;var G=B[D].parent.getDocument(),H=new d.documentFragment(G),I=null,J=D,K=Math.max(B[D].indent,0),L=null,M=E==1?'p':'div';for(;;){var N=B[J];if(N.indent==K){if(!I||B[J].parent.getName()!=I.getName()){I=B[J].parent.clone(false,true);H.append(I);}L=I.append(N.element.clone(false,true));for(var O=0;O<N.contents.length;O++)L.append(N.contents[O].clone(true,true));J++;}else if(N.indent==Math.max(K,0)+1){var P=j.list.arrayToList(B,null,J,E);L.append(P.listNode);J=P.nextIndex;}else if(N.indent==-1&&!D&&N.grandparent){L;if(l[N.grandparent.getName()])L=N.element.clone(false,true);else if(F||E!=2&&N.grandparent.getName()!='td'){L=G.createElement(M);if(F)L.setAttribute('dir',F);}else L=new d.documentFragment(G);for(O=0;O<N.contents.length;O++)L.append(N.contents[O].clone(true,true));if(L.type==11&&J!=B.length-1){if(L.getLast()&&L.getLast().type==1&&L.getLast().getAttribute('type')=='_moz')L.getLast().remove();L.appendBogus();}if(L.type==1&&L.getName()==M&&L.$.firstChild){L.trim();var Q=L.getFirst();if(Q.type==1&&Q.isBlockBoundary()){var R=new d.documentFragment(G);L.moveChildren(R);L=R;}}var S=L.$.nodeName.toLowerCase();if(!c&&(S=='div'||S=='p'))L.appendBogus();H.append(L);I=null;J++;}else return null;if(B.length<=J||Math.max(B[J].indent,0)<K)break;}if(C){var T=H.getFirst();while(T){if(T.type==1)h.clearMarkers(C,T);T=T.getNextSourceNode();}}return{listNode:H,nextIndex:J};}};function n(B,C){B.getCommand(this.name).setState(C);};function o(B){var C=B.data.path,D=C.blockLimit,E=C.elements,F; for(var G=0;G<E.length&&(F=E[G])&&!F.equals(D);G++){if(l[E[G].getName()])return n.call(this,B.editor,this.type==E[G].getName()?1:2);}return n.call(this,B.editor,2);};function p(B,C,D,E){var F=j.list.listToArray(C.root,D),G=[];for(var H=0;H<C.contents.length;H++){var I=C.contents[H];I=I.getAscendant('li',true);if(!I||I.getCustomData('list_item_processed'))continue;G.push(I);h.setMarker(D,I,'list_item_processed',true);}var J=C.root,K=J.getDocument().createElement(this.type);J.copyAttributes(K,{start:1,type:1});K.removeStyle('list-style-type');for(H=0;H<G.length;H++){var L=G[H].getCustomData('listarray_index');F[L].parent=K;}var M=j.list.arrayToList(F,D,null,B.config.enterMode),N,O=M.listNode.getChildCount();for(H=0;H<O&&(N=M.listNode.getChild(H));H++){if(N.getName()==this.type)E.push(N);}M.listNode.replace(C.root);};var q=/^h[1-6]$/;function r(B,C,D){var E=C.contents,F=C.root.getDocument(),G=[];if(E.length==1&&E[0].equals(C.root)){var H=F.createElement('div');E[0].moveChildren&&E[0].moveChildren(H);E[0].append(H);E[0]=H;}var I=C.contents[0].getParent();for(var J=0;J<E.length;J++)I=I.getCommonAncestor(E[J].getParent());for(J=0;J<E.length;J++){var K=E[J],L;while(L=K.getParent()){if(L.equals(I)){G.push(K);break;}K=L;}}if(G.length<1)return;var M=G[G.length-1].getNext(),N=F.createElement(this.type),O;D.push(N);while(G.length){var P=G.shift(),Q=F.createElement('li');if(P.is('pre')||q.test(P.getName()))P.appendTo(Q);else{if(P.hasAttribute('dir')){O=O||P.getAttribute('dir');P.removeAttribute('dir');}P.copyAttributes(Q);P.moveChildren(Q);P.remove();if(!c)Q.appendBogus();}Q.appendTo(N);}if(O)N.setAttribute('dir',O);if(M)N.insertBefore(M);else N.appendTo(I);};function s(B,C,D){var E=j.list.listToArray(C.root,D),F=[];for(var G=0;G<C.contents.length;G++){var H=C.contents[G];H=H.getAscendant('li',true);if(!H||H.getCustomData('list_item_processed'))continue;F.push(H);h.setMarker(D,H,'list_item_processed',true);}var I=null;for(G=0;G<F.length;G++){var J=F[G].getCustomData('listarray_index');E[J].indent=-1;I=J;}for(G=I+1;G<E.length;G++){if(E[G].indent>E[G-1].indent+1){var K=E[G-1].indent+1-E[G].indent,L=E[G].indent;while(E[G]&&E[G].indent>=L){E[G].indent+=K;G++;}G--;}}var M=j.list.arrayToList(E,D,null,B.config.enterMode,C.root.getAttribute('dir')),N=M.listNode,O,P;function Q(R){if((O=N[R?'getFirst':'getLast']())&&!(O.is&&O.isBlockBoundary())&&(P=C.root[R?'getPrevious':'getNext'](d.walker.whitespaces(true)))&&!(P.is&&P.isBlockBoundary({br:1})))B.document.createElement('br')[R?'insertBefore':'insertAfter'](O); };Q(true);Q();N.replace(C.root);};function t(B,C){this.name=B;this.type=C;};t.prototype={exec:function(B){B.focus();var C=B.document,D=B.getSelection(),E=D&&D.getRanges(true);if(!E||E.length<1)return;if(this.state==2){var F=C.getBody();F.trim();if(!F.getFirst()){var G=C.createElement(B.config.enterMode==1?'p':B.config.enterMode==3?'div':'br');G.appendTo(F);E=new d.rangeList([new d.range(C)]);if(G.is('br')){E[0].setStartBefore(G);E[0].setEndAfter(G);}else E[0].selectNodeContents(G);D.selectRanges(E);}else{var H=E.length==1&&E[0],I=H&&H.getEnclosedNode();if(I&&I.is&&this.type==I.getName())n.call(this,B,1);}}var J=D.createBookmarks(true),K=[],L={},M=E.createIterator(),N=0;while((H=M.getNextRange())&&++N){var O=H.getBoundaryNodes(),P=O.startNode,Q=O.endNode;if(P.type==1&&P.getName()=='td')H.setStartAt(O.startNode,1);if(Q.type==1&&Q.getName()=='td')H.setEndAt(O.endNode,2);var R=H.createIterator(),S;R.forceBrBreak=this.state==2;while(S=R.getNextParagraph()){if(S.getCustomData('list_block'))continue;else h.setMarker(L,S,'list_block',1);var T=new d.elementPath(S),U=T.elements,V=U.length,W=null,X=false,Y=T.blockLimit,Z;for(var aa=V-1;aa>=0&&(Z=U[aa]);aa--){if(l[Z.getName()]&&Y.contains(Z)){Y.removeCustomData('list_group_object_'+N);var ab=Z.getCustomData('list_group_object');if(ab)ab.contents.push(S);else{ab={root:Z,contents:[S]};K.push(ab);h.setMarker(L,Z,'list_group_object',ab);}X=true;break;}}if(X)continue;var ac=Y;if(ac.getCustomData('list_group_object_'+N))ac.getCustomData('list_group_object_'+N).contents.push(S);else{ab={root:ac,contents:[S]};h.setMarker(L,ac,'list_group_object_'+N,ab);K.push(ab);}}}var ad=[];while(K.length>0){ab=K.shift();if(this.state==2){if(l[ab.root.getName()])p.call(this,B,ab,L,ad);else r.call(this,B,ab,ad);}else if(this.state==1&&l[ab.root.getName()])s.call(this,B,ab,L);}for(aa=0;aa<ad.length;aa++){W=ad[aa];var ae,af=this;(ae=function(ag){var ah=W[ag?'getPrevious':'getNext'](d.walker.whitespaces(true));if(ah&&ah.getName&&ah.getName()==af.type){ah.remove();ah.moveChildren(W,ag?true:false);}})();ae(true);}h.clearAllMarkers(L);D.selectBookmarks(J);B.focus();}};var u=f,v=/[\t\r\n ]*(?:&nbsp;|\xa0)$/;function w(B,C){var D,E=B.children,F=E.length;for(var G=0;G<F;G++){D=E[G];if(D.name&&D.name in C)return G;}return F;};function x(B){return function(C){var D=C.children,E=w(C,u.$list),F=D[E],G=F&&F.previous,H;if(G&&(G.name&&G.name=='br'||G.value&&(H=G.value.match(v)))){var I=G;if(!(H&&H.index)&&I==D[0])D[0]=B||c?new a.htmlParser.text('\xa0'):new a.htmlParser.element('br',{}); else if(I.name=='br')D.splice(E-1,1);else I.value=I.value.replace(v,'');}};};var y={elements:{}};for(var z in u.$listItem)y.elements[z]=x();var A={elements:{}};for(z in u.$listItem)A.elements[z]=x(true);j.add('list',{init:function(B){var C=new t('numberedlist','ol'),D=new t('bulletedlist','ul');B.addCommand('numberedlist',C);B.addCommand('bulletedlist',D);B.ui.addButton('NumberedList',{label:B.lang.numberedlist,command:'numberedlist'});B.ui.addButton('BulletedList',{label:B.lang.bulletedlist,command:'bulletedlist'});B.on('selectionChange',e.bind(o,C));B.on('selectionChange',e.bind(o,D));},afterInit:function(B){var C=B.dataProcessor;if(C){C.dataFilter.addRules(y);C.htmlFilter.addRules(A);}},requires:['domiterator']});})();(function(){j.liststyle={requires:['dialog'],init:function(l){l.addCommand('numberedListStyle',new a.dialogCommand('numberedListStyle'));a.dialog.add('numberedListStyle',this.path+'dialogs/liststyle.js');l.addCommand('bulletedListStyle',new a.dialogCommand('bulletedListStyle'));a.dialog.add('bulletedListStyle',this.path+'dialogs/liststyle.js');if(l.addMenuItems){l.addMenuGroup('list',108);l.addMenuItems({numberedlist:{label:l.lang.list.numberedTitle,group:'list',command:'numberedListStyle'},bulletedlist:{label:l.lang.list.bulletedTitle,group:'list',command:'bulletedListStyle'}});}if(l.contextMenu)l.contextMenu.addListener(function(m,n){if(!m||m.isReadOnly())return null;while(m){var o=m.getName();if(o=='ol')return{numberedlist:2};else if(o=='ul')return{bulletedlist:2};m=m.getParent();}return null;});}};j.add('liststyle',j.liststyle);})();(function(){function l(r){if(!r||r.type!=1||r.getName()!='form')return[];var s=[],t=['style','className'];for(var u=0;u<t.length;u++){var v=t[u],w=r.$.elements.namedItem(v);if(w){var x=new h(w);s.push([x,x.nextSibling]);x.remove();}}return s;};function m(r,s){if(!r||r.type!=1||r.getName()!='form')return;if(s.length>0)for(var t=s.length-1;t>=0;t--){var u=s[t][0],v=s[t][1];if(v)u.insertBefore(v);else u.appendTo(r);}};function n(r,s){var t=l(r),u={},v=r.$;if(!s){u['class']=v.className||'';v.className='';}u.inline=v.style.cssText||'';if(!s)v.style.cssText='position: static; overflow: visible';m(t);return u;};function o(r,s){var t=l(r),u=r.$;if('class' in s)u.className=s['class'];if('inline' in s)u.style.cssText=s.inline;m(t);};function p(r){var s=a.instances;for(var t in s){var u=s[t];if(u.mode=='wysiwyg'){var v=u.document.getBody();v.setAttribute('contentEditable',false);v.setAttribute('contentEditable',true);}}if(r.focusManager.hasFocus){r.toolbox.focus();
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';i.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';j.add('resize',{init:function(l){var m=l.config;if(m.resize_enabled){var n=null,o,p;function q(t){var u=t.data.$.screenX-o.x,v=t.data.$.screenY-o.y,w=p.width+u*(l.lang.dir=='rtl'?-1:1),x=p.height+v;l.resize(Math.max(m.resize_minWidth,Math.min(w,m.resize_maxWidth)),Math.max(m.resize_minHeight,Math.min(x,m.resize_maxHeight)));};function r(t){a.document.removeListener('mousemove',q);a.document.removeListener('mouseup',r);if(l.document){l.document.removeListener('mousemove',q);l.document.removeListener('mouseup',r);}};var s=e.addFunction(function(t){if(!n)n=l.getResizable();p={width:n.$.offsetWidth||0,height:n.$.offsetHeight||0};o={x:t.screenX,y:t.screenY};a.document.on('mousemove',q);a.document.on('mouseup',r);if(l.document){l.document.on('mousemove',q);l.document.on('mouseup',r);}});l.on('destroy',function(){e.removeFunction(s);});l.on('themeSpace',function(t){if(t.data.space=='bottom')t.data.html+='<div class="cke_resizer" title="'+e.htmlEncode(l.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+s+', event)"'+'></div>';},l,null,100);}}});i.resize_minWidth=750;i.resize_minHeight=250;i.resize_maxWidth=3000;i.resize_maxHeight=3000;i.resize_enabled=true;(function(){var l={modes:{wysiwyg:1,source:1},exec:function(n){var o=n.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.submit.click();}}},m='save';j.add(m,{init:function(n){var o=n.addCommand(m,l);o.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:m});}});})();(function(){var l='scaytcheck',m='',n=null,o=null;function p(u,v){var w=false,x;for(x in v){if(v[x]===u||v[x]==u){w=true;break;}}return w;};var q=function(){var u=this,v=function(){var y={};y.srcNodeRef=u.document.getWindow().$.frameElement;y.assocApp='CKEDITOR.'+a.version+'@'+a.revision;y.customerid=u.config.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';y.customDictionaryIds=u.config.scayt_customDictionaryIds||'';y.userDictionaryName=u.config.scayt_userDictionaryName||'';y.sLang=u.config.scayt_sLang||'en_US';y.onBeforeChange=function(){if(!u.checkDirty())setTimeout(function(){u.resetDirty();
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';i.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';j.add('resize',{init:function(l){var m=l.config;if(m.resize_enabled){var n=null,o,p;function q(t){var u=t.data.$.screenX-o.x,v=t.data.$.screenY-o.y,w=p.width+u*(l.lang.dir=='rtl'?-1:1),x=p.height+v;l.resize(Math.max(m.resize_minWidth,Math.min(w,m.resize_maxWidth)),Math.max(m.resize_minHeight,Math.min(x,m.resize_maxHeight)));};function r(t){a.document.removeListener('mousemove',q);a.document.removeListener('mouseup',r);if(l.document){l.document.removeListener('mousemove',q);l.document.removeListener('mouseup',r);}};var s=e.addFunction(function(t){if(!n)n=l.getResizable();p={width:n.$.offsetWidth||0,height:n.$.offsetHeight||0};o={x:t.screenX,y:t.screenY};a.document.on('mousemove',q);a.document.on('mouseup',r);if(l.document){l.document.on('mousemove',q);l.document.on('mouseup',r);}});l.on('destroy',function(){e.removeFunction(s);});l.on('themeSpace',function(t){if(t.data.space=='bottom')t.data.html+='<div class="cke_resizer" title="'+e.htmlEncode(l.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+s+', event)"'+'></div>';},l,null,100);}}});i.resize_minWidth=750;i.resize_minHeight=250;i.resize_maxWidth=3000;i.resize_maxHeight=3000;i.resize_enabled=true;(function(){var l={modes:{wysiwyg:1,source:1},exec:function(n){var o=n.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.submit.click();}}},m='save';j.add(m,{init:function(n){var o=n.addCommand(m,l);o.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:m});}});})();(function(){var l='scaytcheck',m='',n=null,o=null;function p(u,v){var w=false,x;for(x in v){if(v[x]===u||v[x]==u){w=true;break;}}return w;};var q=function(){var u=this,v=function(){var y={};y.srcNodeRef=u.document.getWindow().$.frameElement;y.assocApp='CKEDITOR.'+a.version+'@'+a.revision;y.customerid=u.config.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';y.customDictionaryIds=u.config.scayt_customDictionaryIds||'';y.userDictionaryName=u.config.scayt_userDictionaryName||'';y.sLang=u.config.scayt_sLang||'en_US';y.onBeforeChange=function(){if(!u.checkDirty())setTimeout(function(){u.resetDirty(); });};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+' 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]; delete u._.commands[A];}for(A in w){delete u._.menuItems[A];delete u._.commands[A];}v={};w={};var M=u.config.scayt_moreSuggestions||'on',N=false,O=u.config.scayt_maxSuggestions;typeof O!='number'&&(O=5);!O&&(O=L.length);var P=u.config.scayt_contextCommands||'all';P=P.split('|');for(var Q=0,R=L.length;Q<R;Q+=1){var S='scayt_suggestion_'+L[Q].replace(' ','_'),T=(function(X,Y){return{exec:function(){G.replace(X,Y);}};})(H,L[Q]);if(Q<O){s(u,'button_'+S,L[Q],S,T,'scayt_suggest',Q+1);K[S]=2;w[S]=2;}else if(M=='on'){s(u,'button_'+S,L[Q],S,T,'scayt_moresuggest',Q+1);v[S]=2;N=true;}}if(N){u.addMenuItem('scayt_moresuggest',{label:u.lang.scayt.moreSuggestions,group:'scayt_moresuggest',order:10,getItems:function(){return v;}});w.scayt_moresuggest=2;}if(p('all',P)||p('ignore',P)){var U={exec:function(){G.ignore(H);}};s(u,'ignore',u.lang.scayt.ignore,'scayt_ignore',U,'scayt_control',1);w.scayt_ignore=2;}if(p('all',P)||p('ignoreall',P)){var V={exec:function(){G.ignoreAll(H);}};s(u,'ignore_all',u.lang.scayt.ignoreAll,'scayt_ignore_all',V,'scayt_control',2);w.scayt_ignore_all=2;}if(p('all',P)||p('add',P)){var W={exec:function(){window.scayt.addWordToUserDictionary(H);}};s(u,'add_word',u.lang.scayt.addWord,'scayt_add_word',W,'scayt_control',3);w.scayt_add_word=2;}if(G.fireOnContextMenu)G.fireOnContextMenu(u);return w;});if(u.config.scayt_autoStartup){var F=function(){u.removeListener('showScaytState',F);x.setState(r.isScaytEnabled(u)?1:2);};u.on('showScaytState',F);u.on('instanceReady',function(){r.loadEngine(u);});}},afterInit:function(u){var v;if(u._.elementsPath&&(v=u._.elementsPath.filters))v.push(function(w){if(w.hasAttribute('scaytid'))return false;});}});})();j.add('smiley',{requires:['dialog'],init:function(l){l.config.smiley_path=l.config.smiley_path||this.path+'images/';l.addCommand('smiley',new a.dialogCommand('smiley'));l.ui.addButton('Smiley',{label:l.lang.smiley.toolbar,command:'smiley'});a.dialog.add('smiley',this.path+'dialogs/smiley.js');}});i.smiley_images=['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'];i.smiley_descriptions=['smiley','sad','wink','laugh','frown','cheeky','blush','surprise','indecision','angry','angle','cool','devil','crying','enlightened','no','yes','heart','broken heart','kiss','mail'];
};Q(true);Q();N.replace(C.root);};function t(B,C){this.name=B;this.type=C;};t.prototype={exec:function(B){B.focus();var C=B.document,D=B.getSelection(),E=D&&D.getRanges(true);if(!E||E.length<1)return;if(this.state==2){var F=C.getBody();F.trim();if(!F.getFirst()){var G=C.createElement(B.config.enterMode==1?'p':B.config.enterMode==3?'div':'br');G.appendTo(F);E=new d.rangeList([new d.range(C)]);if(G.is('br')){E[0].setStartBefore(G);E[0].setEndAfter(G);}else E[0].selectNodeContents(G);D.selectRanges(E);}else{var H=E.length==1&&E[0],I=H&&H.getEnclosedNode();if(I&&I.is&&this.type==I.getName())n.call(this,B,1);}}var J=D.createBookmarks(true),K=[],L={},M=E.createIterator(),N=0;while((H=M.getNextRange())&&++N){var O=H.getBoundaryNodes(),P=O.startNode,Q=O.endNode;if(P.type==1&&P.getName()=='td')H.setStartAt(O.startNode,1);if(Q.type==1&&Q.getName()=='td')H.setEndAt(O.endNode,2);var R=H.createIterator(),S;R.forceBrBreak=this.state==2;while(S=R.getNextParagraph()){if(S.getCustomData('list_block'))continue;else h.setMarker(L,S,'list_block',1);var T=new d.elementPath(S),U=T.elements,V=U.length,W=null,X=false,Y=T.blockLimit,Z;for(var aa=V-1;aa>=0&&(Z=U[aa]);aa--){if(l[Z.getName()]&&Y.contains(Z)){Y.removeCustomData('list_group_object_'+N);var ab=Z.getCustomData('list_group_object');if(ab)ab.contents.push(S);else{ab={root:Z,contents:[S]};K.push(ab);h.setMarker(L,Z,'list_group_object',ab);}X=true;break;}}if(X)continue;var ac=Y;if(ac.getCustomData('list_group_object_'+N))ac.getCustomData('list_group_object_'+N).contents.push(S);else{ab={root:ac,contents:[S]};h.setMarker(L,ac,'list_group_object_'+N,ab);K.push(ab);}}}var ad=[];while(K.length>0){ab=K.shift();if(this.state==2){if(l[ab.root.getName()])p.call(this,B,ab,L,ad);else r.call(this,B,ab,ad);}else if(this.state==1&&l[ab.root.getName()])s.call(this,B,ab,L);}for(aa=0;aa<ad.length;aa++){W=ad[aa];var ae,af=this;(ae=function(ag){var ah=W[ag?'getPrevious':'getNext'](d.walker.whitespaces(true));if(ah&&ah.getName&&ah.getName()==af.type){ah.remove();ah.moveChildren(W,ag?true:false);}})();ae(true);}h.clearAllMarkers(L);D.selectBookmarks(J);B.focus();}};var u=f,v=/[\t\r\n ]*(?:&nbsp;|\xa0)$/;function w(B,C){var D,E=B.children,F=E.length;for(var G=0;G<F;G++){D=E[G];if(D.name&&D.name in C)return G;}return F;};function x(B){return function(C){var D=C.children,E=w(C,u.$list),F=D[E],G=F&&F.previous,H;if(G&&(G.name&&G.name=='br'||G.value&&(H=G.value.match(v)))){var I=G;if(!(H&&H.index)&&I==D[0])D[0]=B||c?new a.htmlParser.text('\xa0'):new a.htmlParser.element('br',{}); else if(I.name=='br')D.splice(E-1,1);else I.value=I.value.replace(v,'');}};};var y={elements:{}};for(var z in u.$listItem)y.elements[z]=x();var A={elements:{}};for(z in u.$listItem)A.elements[z]=x(true);j.add('list',{init:function(B){var C=new t('numberedlist','ol'),D=new t('bulletedlist','ul');B.addCommand('numberedlist',C);B.addCommand('bulletedlist',D);B.ui.addButton('NumberedList',{label:B.lang.numberedlist,command:'numberedlist'});B.ui.addButton('BulletedList',{label:B.lang.bulletedlist,command:'bulletedlist'});B.on('selectionChange',e.bind(o,C));B.on('selectionChange',e.bind(o,D));},afterInit:function(B){var C=B.dataProcessor;if(C){C.dataFilter.addRules(y);C.htmlFilter.addRules(A);}},requires:['domiterator']});})();(function(){j.liststyle={requires:['dialog'],init:function(l){l.addCommand('numberedListStyle',new a.dialogCommand('numberedListStyle'));a.dialog.add('numberedListStyle',this.path+'dialogs/liststyle.js');l.addCommand('bulletedListStyle',new a.dialogCommand('bulletedListStyle'));a.dialog.add('bulletedListStyle',this.path+'dialogs/liststyle.js');if(l.addMenuItems){l.addMenuGroup('list',108);l.addMenuItems({numberedlist:{label:l.lang.list.numberedTitle,group:'list',command:'numberedListStyle'},bulletedlist:{label:l.lang.list.bulletedTitle,group:'list',command:'bulletedListStyle'}});}if(l.contextMenu)l.contextMenu.addListener(function(m,n){if(!m||m.isReadOnly())return null;while(m){var o=m.getName();if(o=='ol')return{numberedlist:2};else if(o=='ul')return{bulletedlist:2};m=m.getParent();}return null;});}};j.add('liststyle',j.liststyle);})();(function(){function l(r){if(!r||r.type!=1||r.getName()!='form')return[];var s=[],t=['style','className'];for(var u=0;u<t.length;u++){var v=t[u],w=r.$.elements.namedItem(v);if(w){var x=new h(w);s.push([x,x.nextSibling]);x.remove();}}return s;};function m(r,s){if(!r||r.type!=1||r.getName()!='form')return;if(s.length>0)for(var t=s.length-1;t>=0;t--){var u=s[t][0],v=s[t][1];if(v)u.insertBefore(v);else u.appendTo(r);}};function n(r,s){var t=l(r),u={},v=r.$;if(!s){u['class']=v.className||'';v.className='';}u.inline=v.style.cssText||'';if(!s)v.style.cssText='position: static; overflow: visible';m(t);return u;};function o(r,s){var t=l(r),u=r.$;if('class' in s)u.className=s['class'];if('inline' in s)u.style.cssText=s.inline;m(t);};function p(r){var s=a.instances;for(var t in s){var u=s[t];if(u.mode=='wysiwyg'){var v=u.document.getBody();v.setAttribute('contentEditable',false);v.setAttribute('contentEditable',true);}}if(r.focusManager.hasFocus){r.toolbox.focus();
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';i.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';j.add('resize',{init:function(l){var m=l.config;if(m.resize_enabled){var n=null,o,p;function q(t){var u=t.data.$.screenX-o.x,v=t.data.$.screenY-o.y,w=p.width+u*(l.lang.dir=='rtl'?-1:1),x=p.height+v;l.resize(Math.max(m.resize_minWidth,Math.min(w,m.resize_maxWidth)),Math.max(m.resize_minHeight,Math.min(x,m.resize_maxHeight)));};function r(t){a.document.removeListener('mousemove',q);a.document.removeListener('mouseup',r);if(l.document){l.document.removeListener('mousemove',q);l.document.removeListener('mouseup',r);}};var s=e.addFunction(function(t){if(!n)n=l.getResizable();p={width:n.$.offsetWidth||0,height:n.$.offsetHeight||0};o={x:t.screenX,y:t.screenY};a.document.on('mousemove',q);a.document.on('mouseup',r);if(l.document){l.document.on('mousemove',q);l.document.on('mouseup',r);}});l.on('destroy',function(){e.removeFunction(s);});l.on('themeSpace',function(t){if(t.data.space=='bottom')t.data.html+='<div class="cke_resizer" title="'+e.htmlEncode(l.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+s+', event)"'+'></div>';},l,null,100);}}});i.resize_minWidth=750;i.resize_minHeight=250;i.resize_maxWidth=3000;i.resize_maxHeight=3000;i.resize_enabled=true;(function(){var l={modes:{wysiwyg:1,source:1},exec:function(n){var o=n.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.submit.click();}}},m='save';j.add(m,{init:function(n){var o=n.addCommand(m,l);o.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:m});}});})();(function(){var l='scaytcheck',m='',n=null,o=null;function p(u,v){var w=false,x;for(x in v){if(v[x]===u||v[x]==u){w=true;break;}}return w;};var q=function(){var u=this,v=function(){var y={};y.srcNodeRef=u.document.getWindow().$.frameElement;y.assocApp='CKEDITOR.'+a.version+'@'+a.revision;y.customerid=u.config.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';y.customDictionaryIds=u.config.scayt_customDictionaryIds||'';y.userDictionaryName=u.config.scayt_userDictionaryName||'';y.sLang=u.config.scayt_sLang||'en_US';y.onBeforeChange=function(){if(!u.checkDirty())setTimeout(function(){u.resetDirty();});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+'//'+w,y=r.parseUrl(x).path+'/';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];delete u._.commands[A];}for(A in w){delete u._.menuItems[A];delete u._.commands[A];}v={};w={};var M=u.config.scayt_moreSuggestions||'on',N=false,O=u.config.scayt_maxSuggestions;typeof O!='number'&&(O=5);!O&&(O=L.length);var P=u.config.scayt_contextCommands||'all';P=P.split('|');for(var Q=0,R=L.length;Q<R;Q+=1){var S='scayt_suggestion_'+L[Q].replace(' ','_'),T=(function(X,Y){return{exec:function(){G.replace(X,Y);}};})(H,L[Q]);if(Q<O){s(u,'button_'+S,L[Q],S,T,'scayt_suggest',Q+1);K[S]=2;w[S]=2;}else if(M=='on'){s(u,'button_'+S,L[Q],S,T,'scayt_moresuggest',Q+1);v[S]=2;N=true;}}if(N){u.addMenuItem('scayt_moresuggest',{label:u.lang.scayt.moreSuggestions,group:'scayt_moresuggest',order:10,getItems:function(){return v;}});w.scayt_moresuggest=2;}if(p('all',P)||p('ignore',P)){var U={exec:function(){G.ignore(H);}};s(u,'ignore',u.lang.scayt.ignore,'scayt_ignore',U,'scayt_control',1);w.scayt_ignore=2;}if(p('all',P)||p('ignoreall',P)){var V={exec:function(){G.ignoreAll(H);}};s(u,'ignore_all',u.lang.scayt.ignoreAll,'scayt_ignore_all',V,'scayt_control',2);w.scayt_ignore_all=2;}if(p('all',P)||p('add',P)){var W={exec:function(){window.scayt.addWordToUserDictionary(H);}};s(u,'add_word',u.lang.scayt.addWord,'scayt_add_word',W,'scayt_control',3);w.scayt_add_word=2;}if(G.fireOnContextMenu)G.fireOnContextMenu(u);return w;});if(u.config.scayt_autoStartup){var F=function(){u.removeListener('showScaytState',F);x.setState(r.isScaytEnabled(u)?1:2);};u.on('showScaytState',F);u.on('instanceReady',function(){r.loadEngine(u);});}},afterInit:function(u){var v;if(u._.elementsPath&&(v=u._.elementsPath.filters))v.push(function(w){if(w.hasAttribute('scaytid'))return false;});}});})();j.add('smiley',{requires:['dialog'],init:function(l){l.config.smiley_path=l.config.smiley_path||this.path+'images/';l.addCommand('smiley',new a.dialogCommand('smiley'));l.ui.addButton('Smiley',{label:l.lang.smiley.toolbar,command:'smiley'});a.dialog.add('smiley',this.path+'dialogs/smiley.js');}});i.smiley_images=['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'];i.smiley_descriptions=['smiley','sad','wink','laugh','frown','cheeky','blush','surprise','indecision','angry','angle','cool','devil','crying','enlightened','no','yes','heart','broken heart','kiss','mail'];
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';i.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';j.add('resize',{init:function(l){var m=l.config;if(m.resize_enabled){var n=null,o,p;function q(t){var u=t.data.$.screenX-o.x,v=t.data.$.screenY-o.y,w=p.width+u*(l.lang.dir=='rtl'?-1:1),x=p.height+v;l.resize(Math.max(m.resize_minWidth,Math.min(w,m.resize_maxWidth)),Math.max(m.resize_minHeight,Math.min(x,m.resize_maxHeight)));};function r(t){a.document.removeListener('mousemove',q);a.document.removeListener('mouseup',r);if(l.document){l.document.removeListener('mousemove',q);l.document.removeListener('mouseup',r);}};var s=e.addFunction(function(t){if(!n)n=l.getResizable();p={width:n.$.offsetWidth||0,height:n.$.offsetHeight||0};o={x:t.screenX,y:t.screenY};a.document.on('mousemove',q);a.document.on('mouseup',r);if(l.document){l.document.on('mousemove',q);l.document.on('mouseup',r);}});l.on('destroy',function(){e.removeFunction(s);});l.on('themeSpace',function(t){if(t.data.space=='bottom')t.data.html+='<div class="cke_resizer" title="'+e.htmlEncode(l.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+s+', event)"'+'></div>';},l,null,100);}}});i.resize_minWidth=750;i.resize_minHeight=250;i.resize_maxWidth=3000;i.resize_maxHeight=3000;i.resize_enabled=true;(function(){var l={modes:{wysiwyg:1,source:1},exec:function(n){var o=n.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.submit.click();}}},m='save';j.add(m,{init:function(n){var o=n.addCommand(m,l);o.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:m});}});})();(function(){var l='scaytcheck',m='',n=null,o=null;function p(u,v){var w=false,x;for(x in v){if(v[x]===u||v[x]==u){w=true;break;}}return w;};var q=function(){var u=this,v=function(){var y={};y.srcNodeRef=u.document.getWindow().$.frameElement;y.assocApp='CKEDITOR.'+a.version+'@'+a.revision;y.customerid=u.config.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';y.customDictionaryIds=u.config.scayt_customDictionaryIds||'';y.userDictionaryName=u.config.scayt_userDictionaryName||'';y.sLang=u.config.scayt_sLang||'en_US';y.onBeforeChange=function(){if(!u.checkDirty())setTimeout(function(){u.resetDirty(); });};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+'
else if(I.name=='br')D.splice(E-1,1);else I.value=I.value.replace(v,'');}};};var y={elements:{}};for(var z in u.$listItem)y.elements[z]=x();var A={elements:{}};for(z in u.$listItem)A.elements[z]=x(true);j.add('list',{init:function(B){var C=new t('numberedlist','ol'),D=new t('bulletedlist','ul');B.addCommand('numberedlist',C);B.addCommand('bulletedlist',D);B.ui.addButton('NumberedList',{label:B.lang.numberedlist,command:'numberedlist'});B.ui.addButton('BulletedList',{label:B.lang.bulletedlist,command:'bulletedlist'});B.on('selectionChange',e.bind(o,C));B.on('selectionChange',e.bind(o,D));},afterInit:function(B){var C=B.dataProcessor;if(C){C.dataFilter.addRules(y);C.htmlFilter.addRules(A);}},requires:['domiterator']});})();(function(){j.liststyle={requires:['dialog'],init:function(l){l.addCommand('numberedListStyle',new a.dialogCommand('numberedListStyle'));a.dialog.add('numberedListStyle',this.path+'dialogs/liststyle.js');l.addCommand('bulletedListStyle',new a.dialogCommand('bulletedListStyle'));a.dialog.add('bulletedListStyle',this.path+'dialogs/liststyle.js');if(l.addMenuItems){l.addMenuGroup('list',108);l.addMenuItems({numberedlist:{label:l.lang.list.numberedTitle,group:'list',command:'numberedListStyle'},bulletedlist:{label:l.lang.list.bulletedTitle,group:'list',command:'bulletedListStyle'}});}if(l.contextMenu)l.contextMenu.addListener(function(m,n){if(!m||m.isReadOnly())return null;while(m){var o=m.getName();if(o=='ol')return{numberedlist:2};else if(o=='ul')return{bulletedlist:2};m=m.getParent();}return null;});}};j.add('liststyle',j.liststyle);})();(function(){function l(r){if(!r||r.type!=1||r.getName()!='form')return[];var s=[],t=['style','className'];for(var u=0;u<t.length;u++){var v=t[u],w=r.$.elements.namedItem(v);if(w){var x=new h(w);s.push([x,x.nextSibling]);x.remove();}}return s;};function m(r,s){if(!r||r.type!=1||r.getName()!='form')return;if(s.length>0)for(var t=s.length-1;t>=0;t--){var u=s[t][0],v=s[t][1];if(v)u.insertBefore(v);else u.appendTo(r);}};function n(r,s){var t=l(r),u={},v=r.$;if(!s){u['class']=v.className||'';v.className='';}u.inline=v.style.cssText||'';if(!s)v.style.cssText='position: static; overflow: visible';m(t);return u;};function o(r,s){var t=l(r),u=r.$;if('class' in s)u.className=s['class'];if('inline' in s)u.style.cssText=s.inline;m(t);};function p(r){var s=a.instances;for(var t in s){var u=s[t];if(u.mode=='wysiwyg'){var v=u.document.getBody();v.setAttribute('contentEditable',false);v.setAttribute('contentEditable',true);}}if(r.focusManager.hasFocus){r.toolbox.focus();
while(v){if(v.equals(t))break;var w=v.getNextSourceNode(false,1);if(!(v.getName()=='img'&&v.getAttribute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else v.removeAttributes(n);v=w;}q.moveToBookmark(r);}l.getSelection().selectRanges(o);}}}};i.removeFormatTags='b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var';i.removeFormatAttributes='class,style,lang,width,height,align,hspace,valign';j.add('resize',{init:function(l){var m=l.config;if(m.resize_enabled){var n=null,o,p;function q(t){var u=t.data.$.screenX-o.x,v=t.data.$.screenY-o.y,w=p.width+u*(l.lang.dir=='rtl'?-1:1),x=p.height+v;l.resize(Math.max(m.resize_minWidth,Math.min(w,m.resize_maxWidth)),Math.max(m.resize_minHeight,Math.min(x,m.resize_maxHeight)));};function r(t){a.document.removeListener('mousemove',q);a.document.removeListener('mouseup',r);if(l.document){l.document.removeListener('mousemove',q);l.document.removeListener('mouseup',r);}};var s=e.addFunction(function(t){if(!n)n=l.getResizable();p={width:n.$.offsetWidth||0,height:n.$.offsetHeight||0};o={x:t.screenX,y:t.screenY};a.document.on('mousemove',q);a.document.on('mouseup',r);if(l.document){l.document.on('mousemove',q);l.document.on('mouseup',r);}});l.on('destroy',function(){e.removeFunction(s);});l.on('themeSpace',function(t){if(t.data.space=='bottom')t.data.html+='<div class="cke_resizer" title="'+e.htmlEncode(l.lang.resize)+'"'+' onmousedown="CKEDITOR.tools.callFunction('+s+', event)"'+'></div>';},l,null,100);}}});i.resize_minWidth=750;i.resize_minHeight=250;i.resize_maxWidth=3000;i.resize_maxHeight=3000;i.resize_enabled=true;(function(){var l={modes:{wysiwyg:1,source:1},exec:function(n){var o=n.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.submit.click();}}},m='save';j.add(m,{init:function(n){var o=n.addCommand(m,l);o.modes={wysiwyg:!!n.element.$.form};n.ui.addButton('Save',{label:n.lang.save,command:m});}});})();(function(){var l='scaytcheck',m='',n=null,o=null;function p(u,v){var w=false,x;for(x in v){if(v[x]===u||v[x]==u){w=true;break;}}return w;};var q=function(){var u=this,v=function(){var y={};y.srcNodeRef=u.document.getWindow().$.frameElement;y.assocApp='CKEDITOR.'+a.version+'@'+a.revision;y.customerid=u.config.scayt_customerid||'1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2';y.customDictionaryIds=u.config.scayt_customDictionaryIds||'';y.userDictionaryName=u.config.scayt_userDictionaryName||'';y.sLang=u.config.scayt_sLang||'en_US';y.onBeforeChange=function(){if(!u.checkDirty())setTimeout(function(){u.resetDirty();});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+'//'+w,y=r.parseUrl(x).path+'/';
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+'
else if(I.name=='br')D.splice(E-1,1);else I.value=I.value.replace(v,'');}};};var y={elements:{}};for(var z in u.$listItem)y.elements[z]=x();var A={elements:{}};for(z in u.$listItem)A.elements[z]=x(true);j.add('list',{init:function(B){var C=new t('numberedlist','ol'),D=new t('bulletedlist','ul');B.addCommand('numberedlist',C);B.addCommand('bulletedlist',D);B.ui.addButton('NumberedList',{label:B.lang.numberedlist,command:'numberedlist'});B.ui.addButton('BulletedList',{label:B.lang.bulletedlist,command:'bulletedlist'});B.on('selectionChange',e.bind(o,C));B.on('selectionChange',e.bind(o,D));},afterInit:function(B){var C=B.dataProcessor;if(C){C.dataFilter.addRules(y);C.htmlFilter.addRules(A);}},requires:['domiterator']});})();(function(){j.liststyle={requires:['dialog'],init:function(l){l.addCommand('numberedListStyle',new a.dialogCommand('numberedListStyle'));a.dialog.add('numberedListStyle',this.path+'dialogs/liststyle.js');l.addCommand('bulletedListStyle',new a.dialogCommand('bulletedListStyle'));a.dialog.add('bulletedListStyle',this.path+'dialogs/liststyle.js');if(l.addMenuItems){l.addMenuGroup('list',108);l.addMenuItems({numberedlist:{label:l.lang.list.numberedTitle,group:'list',command:'numberedListStyle'},bulletedlist:{label:l.lang.list.bulletedTitle,group:'list',command:'bulletedListStyle'}});}if(l.contextMenu)l.contextMenu.addListener(function(m,n){if(!m||m.isReadOnly())return null;while(m){var o=m.getName();if(o=='ol')return{numberedlist:2};else if(o=='ul')return{bulletedlist:2};m=m.getParent();}return null;});}};j.add('liststyle',j.liststyle);})();(function(){function l(r){if(!r||r.type!=1||r.getName()!='form')return[];var s=[],t=['style','className'];for(var u=0;u<t.length;u++){var v=t[u],w=r.$.elements.namedItem(v);if(w){var x=new h(w);s.push([x,x.nextSibling]);x.remove();}}return s;};function m(r,s){if(!r||r.type!=1||r.getName()!='form')return;if(s.length>0)for(var t=s.length-1;t>=0;t--){var u=s[t][0],v=s[t][1];if(v)u.insertBefore(v);else u.appendTo(r);}};function n(r,s){var t=l(r),u={},v=r.$;if(!s){u['class']=v.className||'';v.className='';}u.inline=v.style.cssText||'';if(!s)v.style.cssText='position: static; overflow: visible';m(t);return u;};function o(r,s){var t=l(r),u=r.$;if('class' in s)u.className=s['class'];if('inline' in s)u.style.cssText=s.inline;m(t);};function p(r){var s=a.instances;for(var t in s){var u=s[t];if(u.mode=='wysiwyg'){var v=u.document.getBody();v.setAttribute('contentEditable',false);v.setAttribute('contentEditable',true);}}if(r.focusManager.hasFocus){r.toolbox.focus();
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+'//'+w,y=r.parseUrl(x).path+'/';
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+'
else if(I.name=='br')D.splice(E-1,1);else I.value=I.value.replace(v,'');}};};var y={elements:{}};for(var z in u.$listItem)y.elements[z]=x();var A={elements:{}};for(z in u.$listItem)A.elements[z]=x(true);j.add('list',{init:function(B){var C=new t('numberedlist','ol'),D=new t('bulletedlist','ul');B.addCommand('numberedlist',C);B.addCommand('bulletedlist',D);B.ui.addButton('NumberedList',{label:B.lang.numberedlist,command:'numberedlist'});B.ui.addButton('BulletedList',{label:B.lang.bulletedlist,command:'bulletedlist'});B.on('selectionChange',e.bind(o,C));B.on('selectionChange',e.bind(o,D));},afterInit:function(B){var C=B.dataProcessor;if(C){C.dataFilter.addRules(y);C.htmlFilter.addRules(A);}},requires:['domiterator']});})();(function(){j.liststyle={requires:['dialog'],init:function(l){l.addCommand('numberedListStyle',new a.dialogCommand('numberedListStyle'));a.dialog.add('numberedListStyle',this.path+'dialogs/liststyle.js');l.addCommand('bulletedListStyle',new a.dialogCommand('bulletedListStyle'));a.dialog.add('bulletedListStyle',this.path+'dialogs/liststyle.js');if(l.addMenuItems){l.addMenuGroup('list',108);l.addMenuItems({numberedlist:{label:l.lang.list.numberedTitle,group:'list',command:'numberedListStyle'},bulletedlist:{label:l.lang.list.bulletedTitle,group:'list',command:'bulletedListStyle'}});}if(l.contextMenu)l.contextMenu.addListener(function(m,n){if(!m||m.isReadOnly())return null;while(m){var o=m.getName();if(o=='ol')return{numberedlist:2};else if(o=='ul')return{bulletedlist:2};m=m.getParent();}return null;});}};j.add('liststyle',j.liststyle);})();(function(){function l(r){if(!r||r.type!=1||r.getName()!='form')return[];var s=[],t=['style','className'];for(var u=0;u<t.length;u++){var v=t[u],w=r.$.elements.namedItem(v);if(w){var x=new h(w);s.push([x,x.nextSibling]);x.remove();}}return s;};function m(r,s){if(!r||r.type!=1||r.getName()!='form')return;if(s.length>0)for(var t=s.length-1;t>=0;t--){var u=s[t][0],v=s[t][1];if(v)u.insertBefore(v);else u.appendTo(r);}};function n(r,s){var t=l(r),u={},v=r.$;if(!s){u['class']=v.className||'';v.className='';}u.inline=v.style.cssText||'';if(!s)v.style.cssText='position: static; overflow: visible';m(t);return u;};function o(r,s){var t=l(r),u=r.$;if('class' in s)u.className=s['class'];if('inline' in s)u.style.cssText=s.inline;m(t);};function p(r){var s=a.instances;for(var t in s){var u=s[t];if(u.mode=='wysiwyg'){var v=u.document.getBody();v.setAttribute('contentEditable',false);v.setAttribute('contentEditable',true);}}if(r.focusManager.hasFocus){r.toolbox.focus(); r.focus();}};function q(r){if(!c||b.version>6)return null;var s=h.createFromHtml('<iframe frameborder="0" tabindex="-1" src="javascript:void((function(){document.open();'+(b.isCustomDomain()?"document.domain='"+this.getDocument().$.domain+"';":'')+'document.close();'+'})())"'+' style="display:block;position:absolute;z-index:-1;'+'progid:DXImageTransform.Microsoft.Alpha(opacity=0);'+'"></iframe>');return r.append(s,true);};j.add('maximize',{init:function(r){var s=r.lang,t=a.document,u=t.getWindow(),v,w,x,y;function z(){var B=u.getViewPaneSize();y&&y.setStyles({width:B.width+'px',height:B.height+'px'});r.resize(B.width,B.height,null,true);};var A=2;r.addCommand('maximize',{modes:{wysiwyg:1,source:1},editorFocus:false,exec:function(){var B=r.container.getChild(1),C=r.getThemeSpace('contents');if(r.mode=='wysiwyg'){var D=r.getSelection();v=D&&D.getRanges();w=u.getScrollPosition();}else{var E=r.textarea.$;v=!c&&[E.selectionStart,E.selectionEnd];w=[E.scrollLeft,E.scrollTop];}if(this.state==2){u.on('resize',z);x=u.getScrollPosition();var F=r.container;while(F=F.getParent()){F.setCustomData('maximize_saved_styles',n(F));F.setStyle('z-index',r.config.baseFloatZIndex-1);}C.setCustomData('maximize_saved_styles',n(C,true));B.setCustomData('maximize_saved_styles',n(B,true));if(c)t.$.documentElement.style.overflow=t.getBody().$.style.overflow='hidden';else t.getBody().setStyles({overflow:'hidden',width:'0px',height:'0px'});c?setTimeout(function(){u.$.scrollTo(0,0);},0):u.$.scrollTo(0,0);var G=u.getViewPaneSize();B.setStyle('position','absolute');B.$.offsetLeft;B.setStyles({'z-index':r.config.baseFloatZIndex-1,left:'0px',top:'0px'});y=q(B);B.addClass('cke_maximized');z();var H=B.getDocumentPosition();B.setStyles({left:-1*H.x+'px',top:-1*H.y+'px'});b.gecko&&p(r);}else if(this.state==1){u.removeListener('resize',z);var I=[C,B];for(var J=0;J<I.length;J++){o(I[J],I[J].getCustomData('maximize_saved_styles'));I[J].removeCustomData('maximize_saved_styles');}F=r.container;while(F=F.getParent()){o(F,F.getCustomData('maximize_saved_styles'));F.removeCustomData('maximize_saved_styles');}c?setTimeout(function(){u.$.scrollTo(x.x,x.y);},0):u.$.scrollTo(x.x,x.y);B.removeClass('cke_maximized');if(y){y.remove();y=null;}r.fire('resize');}this.toggleState();var K=this.uiItems[0],L=this.state==2?s.maximize:s.minimize,M=r.element.getDocument().getById(K._.id);M.getChild(1).setHtml(L);M.setAttribute('title',L);M.setAttribute('href','javascript:void("'+L+'");');if(r.mode=='wysiwyg'){if(v){b.gecko&&p(r); r.getSelection().selectRanges(v);var N=r.getSelection().getStartElement();N&&N.scrollIntoView(true);}else u.$.scrollTo(w.x,w.y);}else{if(v){E.selectionStart=v[0];E.selectionEnd=v[1];}E.scrollLeft=w[0];E.scrollTop=w[1];}v=w=null;A=this.state;},canUndo:false});r.ui.addButton('Maximize',{label:s.maximize,command:'maximize'});r.on('mode',function(){r.getCommand('maximize').setState(A);},null,null,100);}});})();j.add('newpage',{init:function(l){l.addCommand('newpage',{modes:{wysiwyg:1,source:1},exec:function(m){var n=this;m.setData(m.config.newpage_html,function(){setTimeout(function(){m.fire('afterCommandExec',{name:n.name,command:n});},200);});m.focus();},async:true});l.ui.addButton('NewPage',{label:l.lang.newPage,command:'newpage'});}});i.newpage_html='';j.add('pagebreak',{init:function(l){l.addCommand('pagebreak',j.pagebreakCmd);l.ui.addButton('PageBreak',{label:l.lang.pagebreak,command:'pagebreak'});l.addCss('img.cke_pagebreak{background-image: url('+a.getUrl(this.path+'images/pagebreak.gif')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'clear: both;'+'display: block;'+'float: none;'+'width:100% !important; _width:99.9% !important;'+'border-top: #999999 1px dotted;'+'border-bottom: #999999 1px dotted;'+'height: 5px !important;'+'page-break-after: always;'+'}');},afterInit:function(l){var m=l.dataProcessor,n=m&&m.dataFilter;if(n)n.addRules({elements:{div:function(o){var p=o.attributes,q=p&&p.style,r=q&&o.children.length==1&&o.children[0],s=r&&r.name=='span'&&r.attributes.style;if(s&&/page-break-after\s*:\s*always/i.test(q)&&/display\s*:\s*none/i.test(s)){var t=l.createFakeParserElement(o,'cke_pagebreak','div'),u=l.lang.pagebreakAlt;t.attributes.alt=u;t.attributes['aria-label']=u;return t;}}}});},requires:['fakeobjects']});j.pagebreakCmd={exec:function(l){var m=l.lang.pagebreakAlt,n=h.createFromHtml('<div style="page-break-after: always;"><span style="display: none;">&nbsp;</span></div>');n=l.createFakeElement(n,'cke_pagebreak','div');n.setAttribute('alt',m);n.setAttribute('aria-label',m);var o=l.getSelection().getRanges(true);l.fire('saveSnapshot');for(var p,q=o.length-1;q>=0;q--){p=o[q];if(q<o.length-1)n=n.clone(true);p.splitBlock('p');p.insertNode(n);if(q==o.length-1){p.moveToPosition(n,4);p.select();}var r=n.getPrevious();if(r&&f[r.getName()].div)n.move(r);}l.fire('saveSnapshot');}};(function(){j.add('pastefromword',{init:function(l){var m=0,n=function(){setTimeout(function(){m=0;},0);};l.addCommand('pastefromword',{canUndo:false,exec:function(){m=1;
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+'//'+w,y=r.parseUrl(x).path+'/';
let ranges = let(it = (function () {for (let i in util.range(0, selection.rangeCount)) yield selection.getRangeAt(i);})()) [r for(r in it)];
commandline.input("Upload file: ", function (path) { let file = io.File(path); liberator.assert(file.exists()); elem.value = file.path; }, {
let ranges = let(it = (function () {for (let i in util.range(0, selection.rangeCount)) yield selection.getRangeAt(i);})()) [r for(r in it)];