rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
}), showRepositoryDropDown : false }; Ext.apply(this, config, defaultConfig);
}); }
Sonatype.repoServer.IndexBrowserPanel = function(config) { var config = config || {}; var defaultConfig = { url : '', root : new Ext.tree.TreeNode({ text : '(Not Available)', id : '/', singleClickExpand : true, expanded : true }), showRepositoryDropDown : false }; Ext.apply(this, config, defaultConfig); if (this.showRepositoryDropDown) { this.toolbarInitEvent = 'indexBrowserToolbarInit'; } Sonatype.repoServer.IndexBrowserPanel.superclass.constructor.call(this, { nodeIconClass : 'x-tree-node-nexus-icon', useNodeIconClassParam : 'locallyAvailable' });};
}).delay(100);
}).delay(200);
function indicateFail(){ indicateFinish(); fail.start("opacity", 1).chain(function(){ (function(){ fail.start("opacity", 0); }).delay(100); });}
}).delay(100);
}).delay(200);
function indicateSuccess(){ indicateFinish(); success.start("opacity", 1).chain(function(){ (function(){ success.start("opacity", 0); }).delay(100); });}
this.prefs.load(); this.lastEditStack.resize(this.prefs.maxSizeEditPositionStack); this.nextEditStack.resize(this.prefs.maxSizeEditPositionStack);
try { this.prefs.load(); var mode = this.prefs.editGranularity; if (mode == "s") { this.mode = mode; } else { this.mode = parseInt(mode) - 1; } this.editClearNextStack = this.prefs.editClearNextStack; this.lastEditStack.resize(this.prefs.maxSizeEditPositionStack); this.nextEditStack.resize(this.prefs.maxSizeEditPositionStack); } catch (err) { DafizillaCommon.exception(err); }
init : function() { this.prefs.load(); this.lastEditStack.resize(this.prefs.maxSizeEditPositionStack); this.nextEditStack.resize(this.prefs.maxSizeEditPositionStack); },
$.ajax({ timeout: 5000, url: '/backend/ajax.php?module=analytics&action=get_traffic_sources&language=' + jsBackend.current.language, success: function(data, textStatus) { $('#loading').hide(); }, error: function(XMLHttpRequest, textStatus, errorThrown) { $('#loading').hide(); if(jsBackend.debug) alert(textStatus); } });
init: function() { // make the call to check the status $.ajax({ timeout: 5000, url: '/backend/ajax.php?module=analytics&action=get_traffic_sources&language=' + jsBackend.current.language, success: function(data, textStatus) { $('#loading').hide(); }, error: function(XMLHttpRequest, textStatus, errorThrown) { $('#loading').hide(); // alert the user if(jsBackend.debug) alert(textStatus); } }); $('#refreshTrafficSources').bind('click', function () { // disable button $('#refreshTrafficSources').addClass('disabledButton'); // make the call to check the status $.ajax({ url: '/backend/ajax.php?module=analytics&action=refresh_traffic_sources&language=' + jsBackend.current.language, success: function(data, textStatus) { // redirect if(data.data.status == 'unauthorized') window.location = $('#settingsUrl').html(); if(data.code == 200) { // show new data $('#datagridReferrers').html(data.data.referrersHtml); $('#datagridKeywords').html(data.data.keywordsHtml); $('#trafficSourcesDate').html(data.data.date); // show message jsBackend.messages.add('success', data.data.message); } else { // show message jsBackend.messages.add('error', textStatus); } // enable button $('#refreshTrafficSources').removeClass('disabledButton'); // alert the user if(data.code != 200 && jsBackend.debug) { alert(data.message); } }, error: function(XMLHttpRequest, textStatus, errorThrown) { // enable button $('#refreshTrafficSources').removeClass('disabledButton'); // alert the user if(jsBackend.debug) alert(textStatus); } }); }); },
liberator.open = this.open;
init: function () { services.add("smtpService", "@mozilla.org/messengercompose/smtp;1", Ci.nsISmtpService); // used for asynchronously selecting messages after wrapping folders this._selectMessageKeys = []; this._selectMessageCount = 1; this._selectMessageReverse = false; this._mailSession = Cc["@mozilla.org/messenger/services/session;1"].getService(Ci.nsIMsgMailSession); this._notifyFlags = Ci.nsIFolderListener.intPropertyChanged | Ci.nsIFolderListener.event; this._mailSession.AddFolderListener(this._folderListener, this._notifyFlags); },
if(!utils.array.inArray('page-1', openedIds)) openedIds.push('page-1');
init: function() { if($('#tree div').length == 0) return false; // add "treeHidden"-class on leafs that are hidden, only for browsers that don't support opacity if(!jQuery.support.opacity) $('#tree ul li[rel="hidden"]').addClass('treeHidden'); var openedIds = []; if(typeof pageID != 'undefined') { // get parents var parents = $('#page-'+ pageID).parents('li'); // init var var openedIds = ['page-'+ pageID]; // add parents for(var i = 0; i < parents.length; i++) openedIds.push($(parents[i]).attr('id')); } var options = { ui: { theme_name: 'fork' }, opened: openedIds, rules: { multiple: false, multitree: 'all', drag_copy: false }, lang: { loading: '{$lblLoading|ucfirst}' }, callback: { beforemove: jsBackend.pages.tree.beforeMove, onselect: jsBackend.pages.tree.onSelect, onmove: jsBackend.pages.tree.onMove }, types: { 'default': { renameable: false, deletable: false, creatable: false, icon: { image: '/backend/modules/pages/js/jstree/themes/fork/icons.gif' } }, 'page': { icon: { position: '0 -80px' } }, 'folder': { icon: { position: false } }, 'hidden': { icon: { position: false } }, 'home': { draggable: false, icon: { position: '0 -112px' } }, 'pages': { icon: { position: false } }, 'error': { draggable: false, max_children: 0, icon: { position: '0 -160px' } }, 'sitemap': { max_children: 0, icon: { position: '0 -176px' } } }, plugins: { cookie: { prefix: 'jstree_', types: { selected: false }, options: { path: '/' } } } }; // create tree $('#tree div').tree(options); },
var submit_params = $.param(Pfs.UI.browserInfo()); $(this).attr('href', $(this).attr('href') + '?' + submit_params);
$(this).attr('href', $(this).attr('href'));
init: function () { $(document).ready(function () { // Tweak the body tag to indicate JS is working. $(document.body).removeClass('noJS').addClass('hasJS'); // Wire up the advanced search toggle. $('#advanced_search_toggle > a').click(function () { $('#advanced_search').toggle(); return false; }); // Wire up the status selector to hide/show vulnerability // fields, also setting up the initial state. $('.contribute select#status').each(function () { var status = $(this), fn = function () { $('#vulnerability_url, #vulnerability_description') .parent() .toggle('vulnerable' == status.val()); }; fn(); status.change(fn); }); // Append 'create sandbox plugin' link on sandbox tab with // detected browser info. $('.listing a.new_plugin').each(function () { var submit_params = $.param(Pfs.UI.browserInfo()); $(this).attr('href', $(this).attr('href') + '?' + submit_params); }); // Set up toggle-all checkboxes $('form .toggle_all').each(function () { var parent = $(this); parent.find('.toggler').click(function () { var toggler = $(this); parent.find('.toggled') .attr('checked', toggler.attr('checked')); }); }); // Cheap zebra striping for static tables $("tr:not(.template):nth-child(odd)").addClass("odd"); $("tr:not(.template):nth-child(even)").addClass("even"); }); return this; },
this._match = fullId + "|" + nonId;
this._match = fullId + "|" + endId + "|" + nonId;
init: function () { this.abbrevs = {}; // (summarized from Vim's ":help abbreviations") // // There are three types of abbreviations. // // full-id: Consists entirely of keyword characters. // ("foo", "g3", "-1") // // end-id: Ends in a keyword character, but all other // are not keyword characters. // ("#i", "..f", "$/7") // // non-id: Ends in a non-keyword character, but the // others can be of any type other than space // and tab. // ("def#", "4/7$") // // Example strings that cannot be abbreviations: // "a.b", "#def", "a b", "_$r" // // For now, a keyword character is anything except for \s, ", or ' // (i.e., whitespace and quotes). In Vim, a keyword character is // specified by the 'iskeyword' setting and is a much less inclusive // list. // // TODO: Make keyword definition closer to Vim's default keyword // definition (which differs across platforms). let nonkw = "\\s\"'"; let keyword = "[^" + nonkw + "]"; let nonkeyword = "[" + nonkw + "]"; let fullId = keyword + "+"; let nonId = "\\S*" + nonkeyword; // Used in add and expand this._match = fullId + "|" + nonId; },
init: function (id) { this._completionElements = []; var iframe = document.getElementById(id); if (!iframe) { liberator.log("No iframe with id: " + id + " found, strange things may happen!"); return; } this._doc = iframe.contentDocument; this._container = iframe.parentNode; this._doc.body.id = id + "-content"; this._doc.body.appendChild(this._doc.createTextNode("")); this._items = null; this._startIndex = -1; this._endIndex = -1; this._selIndex = -1; this._div = null; this._divNodes = {}; this._minHeight = 0; },
init: function (inputField, mode) { this.mode = mode; this.input = inputField; this.store = storage["history-" + mode]; this.reset(); },
init: function (id) { this._completionElements = []; var iframe = document.getElementById(id); if (!iframe) { liberator.log("No iframe with id: " + id + " found, strange things may happen!"); // "The truth is out there..." -- djk return; // XXX } this._doc = iframe.contentDocument; this._container = iframe.parentNode; this._doc.body.id = id + "-content"; this._doc.body.appendChild(this._doc.createTextNode("")); this._items = null; this._startIndex = -1; // The index of the first displayed item this._endIndex = -1; // The index one *after* the last displayed item this._selIndex = -1; // The index of the currently selected element this._div = null; this._divNodes = {}; this._minHeight = 0; },
Ci.nsIWebProgress.NOTIFY_STATE_DOCUMENT);
Ci.nsIWebProgress.NOTIFY_STATE_DOCUMENT | Ci.nsIWebProgress.NOTIFY_LOCATION);
init : function () { KFLog.debug("ILM init start"); // Cache references to current |this| in utility objects this._webProgressListener._domEventListener = this._domEventListener; this._webProgressListener._pwmgr = this; this._domEventListener._pwmgr = this; this._observer._pwmgr = this; // Get constructor for kfILoginInfo this._kfLoginInfo = new Components.Constructor( "@christomlinson.name/kfLoginInfo;1", Ci.kfILoginInfo); // Form submit observer checks forms for new logins and pw changes. var observerService = Cc["@mozilla.org/observer-service;1"]. getService(Ci.nsIObserverService); observerService.addObserver(this._observer, "earlyformsubmit", false); observerService.addObserver(this._observer, "xpcom-shutdown", false); // WebProgressListener for getting notification of new doc loads. var progress = Cc["@mozilla.org/docloaderservice;1"]. getService(Ci.nsIWebProgress); try { progress.addProgressListener(this._webProgressListener, Ci.nsIWebProgress.NOTIFY_STATE_DOCUMENT); } catch (e) { KFLog.error("couldn't add nsIWebProgress listener: " + e); } KFLog.debug("ILM init complete"); },
cookie: { prefix: 'jstree_', types: { selected: false } }
cookie: { prefix: 'jstree_', types: {}, options: { path: '/' } }
init: function() { if($('#tree div').length == 0) return false; var options = { ui: { theme_name: 'fork' }, rules: { multiple: false, multitree: 'all', drag_copy: false }, lang: { loading: '{$lblLoading|ucfirst}' }, callback: { beforemove: jsBackend.pages.tree.beforeMove, onselect: jsBackend.pages.tree.onSelect, onmove: jsBackend.pages.tree.onMove }, types: { 'default': { renameable: false, deletable: false, creatable: false, icon: { image: '/backend/modules/pages/js/jstree/themes/fork/icons.gif' } }, 'page': { icon: { position: '0 -80px' } }, 'folder': { icon: { position: false } }, 'hidden': { icon: { position: false } }, 'home': { draggable: false, icon: { position: '0 -112px' } }, 'pages': { icon: { position: false } }, 'error': { draggable: false, max_children: 0, icon: { position: '0 -160px' } }, 'sitemap': { max_children: 0, icon: { position: '0 -176px' } } }, plugins: { cookie: { prefix: 'jstree_', types: { selected: false } } } }; // create tree $('#tree div').tree(options); },
if (/^1.9.1/.test(services.get("xulAppInfo").platformVersion)) self.prefDomain = "privacy.cpd."; else self.prefDomain = "privacy.item.";
Sanitizer.getClearRange = Sanitizer.Sanitizer.getClearRange; self.prefDomain = "privacy.cpd.";
init: function () { const self = this; liberator.loadScript("chrome://browser/content/sanitize.js", Sanitizer); this.__proto__.__proto__ = new Sanitizer.Sanitizer; // Good enough. // TODO: remove this version test if (/^1.9.1/.test(services.get("xulAppInfo").platformVersion)) self.prefDomain = "privacy.cpd."; else self.prefDomain = "privacy.item."; self.prefDomain2 = "extensions.liberator.privacy.cpd."; },
if($('.tabs').length > 0) $('.tabs').tabs();
if($('.tabs').length > 0) { $('.tabs').tabs(); }
init: function() { if($('.tabs').length > 0) $('.tabs').tabs(); if($('.tabSelect').length > 0) { $('.tabSelect').live('click', function(evt) { // prevent default evt.preventDefault(); console.log($(this)); $('.tabs').tabs('select', $(this).attr('href')); }); } },
this.priority = 0; this.alwaysAutoFill = false; this.alwaysAutoSubmit = false; this.neverAutoFill = false; this.neverAutoSubmit = false;
init : function (aURLs, aFormActionURL, aHttpRealm, aUsernameIndex, aPasswords, aUniqueID, aTitle, otherFieldsArray, aMaximumPage) { this.otherFields = otherFieldsArray; this.URLs = aURLs; this.formActionURL = aFormActionURL; this.httpRealm = aHttpRealm; this.usernameIndex = aUsernameIndex; this.passwords = aPasswords; this.uniqueID = aUniqueID; this.title = aTitle; this.maximumPage = aMaximumPage; this.iconImageData = ""; this.parentGroupName = ""; this.parentGroupUUID = ""; this.parentGroupPath = ""; },
if (!this.element) return;
init: function(idOrElement, parent) { this.element = $(idOrElement); this.parent = parent; this.parentMenu = (this.type == "menuContainer") ? ((parent) ? parent.parent : null) : parent; this.root = parent instanceof Menu ? parent : parent.root; this.id = this.element.id; if (this.type == "menuContainer") { if (this.element.hasClassName("level1")) this.menuType = "horizontal"; else if (this.element.hasClassName("level2")) this.menuType = "dropdown"; else this.menuType = "flyout"; if (this.menuType == "flyout" || this.menuType == "dropdown") { this.isOpen = false; Element.setStyle(this.element,{ position: "absolute", top: "0px", left: "0px", visibility: "hidden"}); } else { this.isOpen = true; } } else { this.isOpen = this.parentMenu.isOpen; } var childNodes = this.element.childNodes; if (childNodes == null) return; for (var i = 0; i < childNodes.length; i++) { var node = childNodes[i]; if (node.nodeType == 1) { if (this.type == "menuContainer") { if (node.tagName.toLowerCase() == "li") { this.menuItems.push(new MenuItem(node, this)); } } else { if (node.tagName.toLowerCase() == "ul") { this.subMenu = new MenuContainer(node, this); } } } } },
$('.tree li.open').each(function() { if($(this).find('ul').length == 0) $(this).removeClass('open').addClass('leaf'); });
init: function() { if($('#tree div').length == 0) return false; // add "treeHidden"-class on leafs that are hidden, only for browsers that don't support opacity if(!jQuery.support.opacity) $('#tree ul li[rel="hidden"]').addClass('treeHidden'); var openedIds = []; if(typeof pageID != 'undefined') { // get parents var parents = $('#page-'+ pageID).parents('li'); // init var var openedIds = ['page-'+ pageID]; // add parents for(var i = 0; i < parents.length; i++) openedIds.push($(parents[i]).attr('id')); } // add home if needed if(!utils.array.inArray('page-1', openedIds)) openedIds.push('page-1'); var options = { ui: { theme_name: 'fork' }, opened: openedIds, rules: { multiple: false, multitree: 'all', drag_copy: false }, lang: { loading: '{$lblLoading|ucfirst}' }, callback: { beforemove: jsBackend.pages.tree.beforeMove, onselect: jsBackend.pages.tree.onSelect, onmove: jsBackend.pages.tree.onMove }, types: { 'default': { renameable: false, deletable: false, creatable: false, icon: { image: '/backend/modules/pages/js/jstree/themes/fork/icons.gif' } }, 'page': { icon: { position: '0 -80px' } }, 'folder': { icon: { position: false } }, 'hidden': { icon: { position: false } }, 'home': { draggable: false, icon: { position: '0 -112px' } }, 'pages': { icon: { position: false } }, 'error': { draggable: false, max_children: 0, icon: { position: '0 -160px' } }, 'sitemap': { max_children: 0, icon: { position: '0 -176px' } } }, plugins: { cookie: { prefix: 'jstree_', types: { selected: false }, options: { path: '/' } } } }; // create tree $('#tree div').tree(options); },
openedIds = ['page-'+ pageID];
var openedIds = ['page-'+ pageID];
init: function() { if($('#tree div').length == 0) return false; // add "treeHidden"-class on leafs that are hidden, only for browsers that don't support opacity if(!jQuery.support.opacity) $('#tree ul li[rel="hidden"]').addClass('treeHidden'); var openedIds = []; if(typeof pageID != 'undefined') { // get parents var parents = $('#page-'+ pageID).parents('li'); // init array openedIds = ['page-'+ pageID]; // add parents for(var i = 0; i < parents.length; i++) openedIds.push($(parents[i]).attr('id')); } var options = { ui: { theme_name: 'fork' }, opened: openedIds, rules: { multiple: false, multitree: 'all', drag_copy: false }, lang: { loading: '{$lblLoading|ucfirst}' }, callback: { beforemove: jsBackend.pages.tree.beforeMove, onselect: jsBackend.pages.tree.onSelect, onmove: jsBackend.pages.tree.onMove }, types: { 'default': { renameable: false, deletable: false, creatable: false, icon: { image: '/backend/modules/pages/js/jstree/themes/fork/icons.gif' } }, 'page': { icon: { position: '0 -80px' } }, 'folder': { icon: { position: false } }, 'hidden': { icon: { position: false } }, 'home': { draggable: false, icon: { position: '0 -112px' } }, 'pages': { icon: { position: false } }, 'error': { draggable: false, max_children: 0, icon: { position: '0 -160px' } }, 'sitemap': { max_children: 0, icon: { position: '0 -176px' } } }, plugins: { cookie: { prefix: 'jstree_', types: { selected: false }, options: { path: '/' } } } }; // create tree $('#tree div').tree(options); },
jsFrontend.gravatar.init();
init: function() { jsFrontend.gravatar.init(); // init stuff jsFrontend.initAjax(); },
jsFrontend.gravatar.init();
init: function() { jsFrontend.gravatar.init(); // init stuff jsFrontend.initAjax(); },
var openedIds = []; if(typeof pageID != 'undefined') { var parents = $('#page-'+ pageID).parents('li'); openedIds = ['page-'+ pageID]; for(var i = 0; i < parents.length; i++) openedIds.push($(parents[i]).attr('id')); }
init: function() { if($('#tree div').length == 0) return false; var options = { ui: { theme_name: 'fork' }, rules: { multiple: false, multitree: 'all', drag_copy: false }, lang: { loading: '{$lblLoading|ucfirst}' }, callback: { beforemove: jsBackend.pages.tree.beforeMove, onselect: jsBackend.pages.tree.onSelect, onmove: jsBackend.pages.tree.onMove }, types: { 'default': { renameable: false, deletable: false, creatable: false, icon: { image: '/backend/modules/pages/js/jstree/themes/fork/icons.gif' } }, 'page': { icon: { position: '0 -80px' } }, 'folder': { icon: { position: false } }, 'hidden': { icon: { position: false } }, 'home': { draggable: false, icon: { position: '0 -112px' } }, 'pages': { icon: { position: false } }, 'error': { draggable: false, max_children: 0, icon: { position: '0 -160px' } }, 'sitemap': { max_children: 0, icon: { position: '0 -176px' } } }, plugins: { cookie: { prefix: 'jstree_', types: {}, options: { path: '/' } } } }; // create tree $('#tree div').tree(options); },
cookie: { prefix: 'jstree_', types: {}, options: { path: '/' } }
cookie: { prefix: 'jstree_', types: { selected: false }, options: { path: '/' } }
init: function() { if($('#tree div').length == 0) return false; var options = { ui: { theme_name: 'fork' }, rules: { multiple: false, multitree: 'all', drag_copy: false }, lang: { loading: '{$lblLoading|ucfirst}' }, callback: { beforemove: jsBackend.pages.tree.beforeMove, onselect: jsBackend.pages.tree.onSelect, onmove: jsBackend.pages.tree.onMove }, types: { 'default': { renameable: false, deletable: false, creatable: false, icon: { image: '/backend/modules/pages/js/jstree/themes/fork/icons.gif' } }, 'page': { icon: { position: '0 -80px' } }, 'folder': { icon: { position: false } }, 'hidden': { icon: { position: false } }, 'home': { draggable: false, icon: { position: '0 -112px' } }, 'pages': { icon: { position: false } }, 'error': { draggable: false, max_children: 0, icon: { position: '0 -160px' } }, 'sitemap': { max_children: 0, icon: { position: '0 -176px' } } }, plugins: { cookie: { prefix: 'jstree_', types: {}, options: { path: '/' } } } }; // create tree $('#tree div').tree(options); },
services.add("abManager", "@mozilla.org/abmanager;1", Ci.nsIAbManager);
init: function () { },
init: function () { this.lastSearchPattern = ""; },
init: function (range, index) { if (range instanceof Ci.nsIDOMWindow) { this.document = range.document; return; } this.index = index; this.document = range.startContainer.ownerDocument; this.window = this.document.defaultView; this.range = range; this.save(); },
init: function () { this.lastSearchPattern = ""; },
$.ajax({ url: '/frontend/ajax.php?module=search&action=autocomplete&language=' + chunks[1],
$.ajax({ url: '/frontend/ajax.php?module=search&action=autocomplete',
init: function() { // split url to buil the ajax-url var chunks = document.location.pathname.split('/'); // max results var limit = 50; // ajax call! $('input[name=q]').autocomplete({ delay: 200, minLength: 3, source: function(request, response) { $.ajax({ url: '/frontend/ajax.php?module=search&action=autocomplete&language=' + chunks[1], type: 'GET', data: 'term=' + request.term + '&language=' + chunks[1] + '&limit=' + limit, success: function(data, textStatus) { // init var var realData = []; // alert the user if(data.code != 200 && jsFrontend.debug) { alert(data.message); } if(data.code == 200) { for(var i in data.data) realData.push({ label: data.data[i].term, value: data.data[i].term }); } // set response response(realData); } }); } }); },
if($('input.synonymBox').length > 0) { $('input.synonymBox').tagBox({ emptyMessage: '{$msgNoSynonyms}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteSynonym|ucfirst}' }); }
if($('input.synonymBox').length > 0) { $('input.synonymBox').tagBox({ emptyMessage: '{$msgNoSynonymsBox}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteSynonym|ucfirst}' }); }
init: function() { // synonyms box if($('input.synonymBox').length > 0) { $('input.synonymBox').tagBox({ emptyMessage: '{$msgNoSynonyms}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteSynonym|ucfirst}' }); } // settings enable/disable $('ul#searchModules > li > input[type=checkbox]').change(function() { if($(this).is(':checked')) $('#' + $(this).attr('id') + 'Weight').removeAttr('disabled').removeClass('disabled'); else $('#' + $(this).attr('id') + 'Weight').attr('disabled', 'disabled').addClass('disabled'); }); }
init: function() { if($('input.synonymBox').length > 0) { $('input.synonymBox').tagBox({ emptyMessage: '{$msgNoSynonymsBox}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteSynonym|ucfirst}' }); } $('#searchModules input[type=checkbox]').change(function() { if($(this).is(':checked')) $('#' + $(this).attr('id') + 'Weight').removeAttr('disabled').removeClass('disabled'); else $('#' + $(this).attr('id') + 'Weight').attr('disabled', 'disabled').addClass('disabled'); });
jsBackend.search = { init: function() { if($('input.synonymBox').length > 0) { $('input.synonymBox') .multipleTextBox( { emptyMessage: '{$msgNoSynonymsBox}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteSynonym|ucfirst}' });
init: function() { // synonyms box if($('input.synonymBox').length > 0) { $('input.synonymBox').tagBox({ emptyMessage: '{$msgNoSynonymsBox}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteSynonym|ucfirst}' }); } // settings enable/disable $('#searchModules input[type=checkbox]').change(function() { if($(this).is(':checked')) $('#' + $(this).attr('id') + 'Weight').removeAttr('disabled').removeClass('disabled'); else $('#' + $(this).attr('id') + 'Weight').attr('disabled', 'disabled').addClass('disabled'); }); }
$('#searchModules input[type=checkbox]').change(function() { if($(this).is(':checked')) $('#' + $(this).attr('id') + 'Weight').removeAttr('disabled') .removeClass('disabled'); else $('#' + $(this).attr('id') + 'Weight').attr('disabled', 'disabled') .addClass('disabled'); }); } }
init: function() { // synonyms box if($('input.synonymBox').length > 0) { $('input.synonymBox').tagBox({ emptyMessage: '{$msgNoSynonymsBox}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteSynonym|ucfirst}' }); } // settings enable/disable $('#searchModules input[type=checkbox]').change(function() { if($(this).is(':checked')) $('#' + $(this).attr('id') + 'Weight').removeAttr('disabled').removeClass('disabled'); else $('#' + $(this).attr('id') + 'Weight').attr('disabled', 'disabled').addClass('disabled'); }); }
}
},
init: function() { // synonyms box if($('input.synonymBox').length > 0) { $('input.synonymBox').multipleTextBox( { emptyMessage: '{$msgNoSynonymsBox}', addLabel: '{$lblAdd|ucfirst}', removeLabel: '{$lblDeleteSynonym|ucfirst}' }); } // settings enable/disable $('#searchModules input[type=checkbox]').change(function() { if($(this).is(':checked')) { $('#' + $(this).attr('id') + 'Weight').removeAttr('disabled').removeClass('disabled'); } else { $('#' + $(this).attr('id') + 'Weight').attr('disabled', 'disabled').addClass('disabled'); } }); }
else this.settings.ui.theme_path = this.settings.ui.theme_path.replace(/\/$/,"") + '/' + this.settings.ui.theme_name + '/style.css';
init : function(elem, conf) { var _this = this; this.container = $(elem); if(this.container.size == 0) return false; tree_component.inst[this.cntr] = this; if(!this.container.attr("id")) this.container.attr("id","jstree_" + this.cntr); tree_component.inst[this.container.attr("id")] = tree_component.inst[this.cntr]; tree_component.focused = this.cntr; this.settings = $.extend(true, {}, this.settings, conf); // DEAL WITH LANGUAGE VERSIONS if(this.settings.languages && this.settings.languages.length) { this.current_lang = this.settings.languages[0]; var st = false; var id = "#" + this.container.attr("id"); for(var ln = 0; ln < this.settings.languages.length; ln++) { st = tree_component.add_css(id + " ." + this.settings.languages[ln]); if(st !== false) st.style.display = (this.settings.languages[ln] == this.current_lang) ? "" : "none"; } } else this.current_lang = false; // THEMES this.container.addClass("tree"); if(this.settings.ui.theme_name !== false) { if(this.settings.ui.theme_path === false) { $("script").each(function () { if(this.src.toString().match(/jquery\.tree.*?js$/)) { _this.settings.ui.theme_path = this.src.toString().replace(/jquery\.tree.*?js$/, "") + "themes/" + _this.settings.ui.theme_name + "/style.css"; return false; } }); } else this.settings.ui.theme_path = this.settings.ui.theme_path.replace(/\/$/,"") + '/' + this.settings.ui.theme_name + '/style.css'; if(this.settings.ui.theme_path != "" && $.inArray(this.settings.ui.theme_path, tree_component.themes) == -1) { tree_component.add_sheet({ url : this.settings.ui.theme_path }); tree_component.themes.push(this.settings.ui.theme_path); } this.container.addClass("tree-" + this.settings.ui.theme_name); } // TYPE ICONS var type_icons = ""; for(var t in this.settings.types) { if(!this.settings.types.hasOwnProperty(t)) continue; if(!this.settings.types[t].icon) continue; if( this.settings.types[t].icon.image || this.settings.types[t].icon.position) { if(t == "default") type_icons += '#' + this.container.attr("id") + ' li > a ins { '; else type_icons += '#' + this.container.attr("id") + ' li[rel=' + t + '] > a ins { '; if(this.settings.types[t].icon.image) type_icons += ' background-image:url(' + this.settings.types[t].icon.image + '); '; if(this.settings.types[t].icon.position) type_icons += ' background-position:' + this.settings.types[t].icon.position + '; '; type_icons += '} '; } } if(type_icons != "") tree_component.add_sheet({ str : type_icons }); if(this.settings.rules.multiple) this.selected_arr = []; this.offset = false; this.hovered = false; this.locked = false; if(tree_component.drag_drop.marker === false) tree_component.drag_drop.marker = $("<div>").attr({ id : "jstree-marker" }).hide().appendTo("body"); this.callback("oninit", [this]); this.refresh(); this.attach_events(); this.focus(); },
if(t == "default") type_icons += '#' + this.container.attr("id") + ' li > a ins { '; else type_icons += '#' + this.container.attr("id") + ' li[rel=' + t + '] > a ins { '; if(this.settings.types[t].icon.image) type_icons += ' background-image:url(' + this.settings.types[t].icon.image + '); '; if(this.settings.types[t].icon.position) type_icons += ' background-position:' + this.settings.types[t].icon.position + '; '; type_icons += '} ';
if(t == "default") type_icons += "#" + this.container.attr("id") + " li > a ins { "; else type_icons += "#" + this.container.attr("id") + " li[rel=" + t + "] > a ins { "; if(this.settings.types[t].icon.image) type_icons += " background-image:url(" + this.settings.types[t].icon.image + "); "; if(this.settings.types[t].icon.position) type_icons += " background-position:" + this.settings.types[t].icon.position + "; "; type_icons += "} ";
init : function(elem, conf) { var _this = this; this.container = $(elem); if(this.container.size == 0) return false; tree_component.inst[this.cntr] = this; if(!this.container.attr("id")) this.container.attr("id","jstree_" + this.cntr); tree_component.inst[this.container.attr("id")] = tree_component.inst[this.cntr]; tree_component.focused = this.cntr; this.settings = $.extend(true, {}, this.settings, conf); // DEAL WITH LANGUAGE VERSIONS if(this.settings.languages && this.settings.languages.length) { this.current_lang = this.settings.languages[0]; var st = false; var id = "#" + this.container.attr("id"); for(var ln = 0; ln < this.settings.languages.length; ln++) { st = tree_component.add_css(id + " ." + this.settings.languages[ln]); if(st !== false) st.style.display = (this.settings.languages[ln] == this.current_lang) ? "" : "none"; } } else this.current_lang = false; // THEMES this.container.addClass("tree"); if(this.settings.ui.theme_name !== false) { if(this.settings.ui.theme_path === false) { $("script").each(function () { if(this.src.toString().match(/jquery\.tree.*?js$/)) { _this.settings.ui.theme_path = this.src.toString().replace(/jquery\.tree.*?js$/, "") + "themes/" + _this.settings.ui.theme_name + "/style.css"; return false; } }); } else this.settings.ui.theme_path = this.settings.ui.theme_path.replace(/\/$/,"") + '/' + this.settings.ui.theme_name + '/style.css'; if(this.settings.ui.theme_path != "" && $.inArray(this.settings.ui.theme_path, tree_component.themes) == -1) { tree_component.add_sheet({ url : this.settings.ui.theme_path }); tree_component.themes.push(this.settings.ui.theme_path); } this.container.addClass("tree-" + this.settings.ui.theme_name); } // TYPE ICONS var type_icons = ""; for(var t in this.settings.types) { if(!this.settings.types.hasOwnProperty(t)) continue; if(!this.settings.types[t].icon) continue; if( this.settings.types[t].icon.image || this.settings.types[t].icon.position) { if(t == "default") type_icons += '#' + this.container.attr("id") + ' li > a ins { '; else type_icons += '#' + this.container.attr("id") + ' li[rel=' + t + '] > a ins { '; if(this.settings.types[t].icon.image) type_icons += ' background-image:url(' + this.settings.types[t].icon.image + '); '; if(this.settings.types[t].icon.position) type_icons += ' background-position:' + this.settings.types[t].icon.position + '; '; type_icons += '} '; } } if(type_icons != "") tree_component.add_sheet({ str : type_icons }); if(this.settings.rules.multiple) this.selected_arr = []; this.offset = false; this.hovered = false; this.locked = false; if(tree_component.drag_drop.marker === false) tree_component.drag_drop.marker = $("<div>").attr({ id : "jstree-marker" }).hide().appendTo("body"); this.callback("oninit", [this]); this.refresh(); this.attach_events(); this.focus(); },
negative: parseInt(arguments[convCount]) < 0 ? true : false,
negative: parseInt(arguments[convCount]) < 0,
init : function () { if (typeof arguments == "undefined") { return null; } if (arguments.length < 1) { return null; } if (typeof arguments[0] != "string") { return null; } if (typeof RegExp == "undefined") { return null; } var string = arguments[0]; var exp = new RegExp(/(%([%]|(\-)?(\+|\x20)?(0)?(\d+)?(\.(\d)?)?([bcdfosxX])))/g); var matches = new Array(); var strings = new Array(); var convCount = 0; var stringPosStart = 0; var stringPosEnd = 0; var matchPosEnd = 0; var newString = ''; var match = null; while (match = exp.exec(string)) { if (match[9]) { convCount += 1; } stringPosStart = matchPosEnd; stringPosEnd = exp.lastIndex - match[0].length; strings[strings.length] = string.substring(stringPosStart, stringPosEnd); matchPosEnd = exp.lastIndex; matches[matches.length] = { match: match[0], left: match[3] ? true : false, sign: match[4] || '', pad: match[5] || ' ', min: match[6] || 0, precision: match[8], code: match[9] || '%', negative: parseInt(arguments[convCount]) < 0 ? true : false, argument: String(arguments[convCount]) }; } strings[strings.length] = string.substring(matchPosEnd); if (matches.length == 0) { return string; } if ((arguments.length - 1) < convCount) { return null; } var code = null; var match = null; var i = null; for (i=0; i<matches.length; i++) { if (matches[i].code == '%') { substitution = '%' } else if (matches[i].code == 'b') { matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(2)); substitution = sprintfWrapper.convert(matches[i], true); } else if (matches[i].code == 'c') { matches[i].argument = String(String.fromCharCode(parseInt(Math.abs(parseInt(matches[i].argument))))); substitution = sprintfWrapper.convert(matches[i], true); } else if (matches[i].code == 'd') { matches[i].argument = String(Math.abs(parseInt(matches[i].argument))); substitution = sprintfWrapper.convert(matches[i]); } else if (matches[i].code == 'f') { matches[i].argument = String(Math.abs(parseFloat(matches[i].argument)).toFixed(matches[i].precision ? matches[i].precision : 6)); substitution = sprintfWrapper.convert(matches[i]); } else if (matches[i].code == 'o') { matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(8)); substitution = sprintfWrapper.convert(matches[i]); } else if (matches[i].code == 's') { matches[i].argument = matches[i].argument.substring(0, matches[i].precision ? matches[i].precision : matches[i].argument.length) substitution = sprintfWrapper.convert(matches[i], true); } else if (matches[i].code == 'x') { matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(16)); substitution = sprintfWrapper.convert(matches[i]); } else if (matches[i].code == 'X') { matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(16)); substitution = sprintfWrapper.convert(matches[i]).toUpperCase(); } else { substitution = matches[i].match; } newString += strings[i]; newString += substitution; } newString += strings[i]; return newString; },
ya=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,G=navigator.userAgent,ca=false,H=[],E,T=Object.prototype.toString,U=Object.prototype.hasOwnProperty,V=Array.prototype.push,I=Array.prototype.slice,O=Array.prototype.indexOf;d.fn=d.prototype={init:function(a,b){var e,g;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((e=ua.exec(a))&&(e[1]||!b))if(e[1]){g=b?b.ownerDocument||b:r;if(a=ya.exec(a))if(d.isPlainObject(b)){a=[r.createElement(a[1])];d.fn.attr.call(a, b,true)}else a=[g.createElement(a[1])];else{a=aa([e[1]],[g]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=r.getElementById(e[2])){if(b.id!==e[2])return N.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=r;a=r.getElementsByTagName(a)}else return!b||b.jquery?(b||N).find(a):d(b).find(a);else if(d.isFunction(a))return N.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return d.isArray(a)? this.setArray(a):d.makeArray(a,this)},selector:"",jquery:"1.4b1pre",length:0,size:function(){return this.length},toArray:function(){return I.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,e){a=d(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+e;else if(b)a.selector=this.selector+"."+b+"("+e+")";return a},setArray:function(a){this.length=0;V.apply(this,a);return this},each:function(a,
ya=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,G=navigator.userAgent,ca=false,H=[],E,T=Object.prototype.toString,U=Object.prototype.hasOwnProperty,V=Array.prototype.push,I=Array.prototype.slice,O=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var e,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((e=ua.exec(a))&&(e[1]||!b))if(e[1]){f=b?b.ownerDocument||b:r;if(a=ya.exec(a))if(c.isPlainObject(b)){a=[r.createElement(a[1])];c.fn.attr.call(a, b,true)}else a=[f.createElement(a[1])];else{a=aa([e[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=r.getElementById(e[2])){if(b.id!==e[2])return N.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=r;a=r.getElementsByTagName(a)}else return!b||b.jquery?(b||N).find(a):c(b).find(a);else if(c.isFunction(a))return N.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return c.isArray(a)? this.setArray(a):c.makeArray(a,this)},selector:"",jquery:"1.4b1pre",length:0,size:function(){return this.length},toArray:function(){return I.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,e){a=c(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+e;else if(b)a.selector=this.selector+"."+b+"("+e+")";return a},setArray:function(a){this.length=0;V.apply(this,a);return this},each:function(a,
ya=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,G=navigator.userAgent,ca=false,H=[],E,T=Object.prototype.toString,U=Object.prototype.hasOwnProperty,V=Array.prototype.push,I=Array.prototype.slice,O=Array.prototype.indexOf;d.fn=d.prototype={init:function(a,b){var e,g;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((e=ua.exec(a))&&(e[1]||!b))if(e[1]){g=b?b.ownerDocument||b:r;if(a=ya.exec(a))if(d.isPlainObject(b)){a=[r.createElement(a[1])];d.fn.attr.call(a,b,true)}else a=[g.createElement(a[1])];else{a=aa([e[1]],[g]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=r.getElementById(e[2])){if(b.id!==e[2])return N.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=r;a=r.getElementsByTagName(a)}else return!b||b.jquery?(b||N).find(a):d(b).find(a);else if(d.isFunction(a))return N.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return d.isArray(a)?this.setArray(a):d.makeArray(a,this)},selector:"",jquery:"1.4b1pre",length:0,size:function(){return this.length},toArray:function(){return I.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,e){a=d(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+e;else if(b)a.selector=this.selector+"."+b+"("+e+")";return a},setArray:function(a){this.length=0;V.apply(this,a);return this},each:function(a,
if (conf.vertical) {
if (vertical) {
function init() { if (conf.vertical) { len = dim(root, "height") - dim(handle, "height"); origo = root.offset().top + len; } else { len = dim(root, "width") - dim(handle, "width"); origo = root.offset().left; } }
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor')
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor');
function init() { ed = tinyMCEPopup.editor; tinyMCEPopup.resizeToInnerSize(); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); document.getElementById('bordercolor_pickcontainer').innerHTML = getColorPickerHTML('bordercolor_pick','bordercolor'); document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgcolor_pick','bgcolor') var inst = ed; var tdElm = ed.dom.getParent(ed.selection.getStart(), "td,th"); var formObj = document.forms[0]; var st = ed.dom.parseStyle(ed.dom.getAttrib(tdElm, "style")); // Get table cell data var celltype = tdElm.nodeName.toLowerCase(); var align = ed.dom.getAttrib(tdElm, 'align'); var valign = ed.dom.getAttrib(tdElm, 'valign'); var width = trimSize(getStyle(tdElm, 'width', 'width')); var height = trimSize(getStyle(tdElm, 'height', 'height')); var bordercolor = convertRGBToHex(getStyle(tdElm, 'bordercolor', 'borderLeftColor')); var bgcolor = convertRGBToHex(getStyle(tdElm, 'bgcolor', 'backgroundColor')); var className = ed.dom.getAttrib(tdElm, 'class'); var backgroundimage = getStyle(tdElm, 'background', 'backgroundImage').replace(new RegExp("url\\(['\"]?([^'\"]*)['\"]?\\)", 'gi'), "$1"); var id = ed.dom.getAttrib(tdElm, 'id'); var lang = ed.dom.getAttrib(tdElm, 'lang'); var dir = ed.dom.getAttrib(tdElm, 'dir'); var scope = ed.dom.getAttrib(tdElm, 'scope'); // Setup form addClassesToList('class', 'table_cell_styles'); TinyMCE_EditableSelects.init(); if (!ed.dom.hasClass(tdElm, 'mceSelected')) { formObj.bordercolor.value = bordercolor; formObj.bgcolor.value = bgcolor; formObj.backgroundimage.value = backgroundimage; formObj.width.value = width; formObj.height.value = height; formObj.id.value = id; formObj.lang.value = lang; formObj.style.value = ed.dom.serializeStyle(st); selectByValue(formObj, 'align', align); selectByValue(formObj, 'valign', valign); selectByValue(formObj, 'class', className, true, true); selectByValue(formObj, 'celltype', celltype); selectByValue(formObj, 'dir', dir); selectByValue(formObj, 'scope', scope); // Resize some elements if (isVisible('backgroundimagebrowser')) document.getElementById('backgroundimage').style.width = '180px'; updateColor('bordercolor_pick', 'bordercolor'); updateColor('bgcolor_pick', 'bgcolor'); } else tinyMCEPopup.dom.hide('action');}
log.debug("2: " + kpff.type + ": " + kfFormFieldType.password);
initFromEntry : function (entry) { var passwords = []; var otherFields = []; var usernameIndex = 0; var maximumPage = 1; for (var j = 0; j < entry.formFieldList.length; j++) { var kpff = entry.formFieldList[j];log.debug("2: " + kpff.type + ": " + kfFormFieldType.password); if (kpff.type == kfFormFieldType.password) { if (kpff.page > maximumPage) maximumPage = kpff.page; newField = new kfLoginField(); newField.init(kpff.name, kpff.value, kpff.id, "password", kpff.page); passwords.push(newField); } else if (kpff.type == kfFormFieldType.text || kpff.type == kfFormFieldType.username || kpff.type == kfFormFieldType.select || kpff.type == kfFormFieldType.radio || kpff.type == kfFormFieldType.checkbox) { var otherLength = otherFields.length; var type = "unknown"; switch (kpff.type) { case kfFormFieldType.username: usernameIndex = otherLength; type = "text"; break; case kfFormFieldType.text: type = "text"; break; case kfFormFieldType.radio: type = "radio"; break; case kfFormFieldType.checkbox: type = "checkbox"; break; case kfFormFieldType.select: type = "select-one"; break; } if (kpff.page > maximumPage) maximumPage = kpff.page; newField = new kfLoginField(); newField.init(kpff.name, kpff.value, kpff.id, type, kpff.page); otherFields.push(newField); } } this.init(entry.uRLs, entry.formActionURL, entry.hTTPRealm, usernameIndex, passwords, entry.uniqueID, entry.title, otherFields, maximumPage); log.debug("7"); this.parentGroup = entry.parent; this.iconImageData = entry.iconImageData; this.alwaysAutoFill = entry.alwaysAutoFill; this.alwaysAutoSubmit = entry.alwaysAutoSubmit; this.neverAutoFill = entry.neverAutoFill; this.neverAutoSubmit = entry.neverAutoSubmit; this.priority = entry.priority; },
log.debug("7");
initFromEntry : function (entry) { var passwords = []; var otherFields = []; var usernameIndex = 0; var maximumPage = 1; for (var j = 0; j < entry.formFieldList.length; j++) { var kpff = entry.formFieldList[j];log.debug("2: " + kpff.type + ": " + kfFormFieldType.password); if (kpff.type == kfFormFieldType.password) { if (kpff.page > maximumPage) maximumPage = kpff.page; newField = new kfLoginField(); newField.init(kpff.name, kpff.value, kpff.id, "password", kpff.page); passwords.push(newField); } else if (kpff.type == kfFormFieldType.text || kpff.type == kfFormFieldType.username || kpff.type == kfFormFieldType.select || kpff.type == kfFormFieldType.radio || kpff.type == kfFormFieldType.checkbox) { var otherLength = otherFields.length; var type = "unknown"; switch (kpff.type) { case kfFormFieldType.username: usernameIndex = otherLength; type = "text"; break; case kfFormFieldType.text: type = "text"; break; case kfFormFieldType.radio: type = "radio"; break; case kfFormFieldType.checkbox: type = "checkbox"; break; case kfFormFieldType.select: type = "select-one"; break; } if (kpff.page > maximumPage) maximumPage = kpff.page; newField = new kfLoginField(); newField.init(kpff.name, kpff.value, kpff.id, type, kpff.page); otherFields.push(newField); } } this.init(entry.uRLs, entry.formActionURL, entry.hTTPRealm, usernameIndex, passwords, entry.uniqueID, entry.title, otherFields, maximumPage); log.debug("7"); this.parentGroup = entry.parent; this.iconImageData = entry.iconImageData; this.alwaysAutoFill = entry.alwaysAutoFill; this.alwaysAutoSubmit = entry.alwaysAutoSubmit; this.neverAutoFill = entry.neverAutoFill; this.neverAutoSubmit = entry.neverAutoSubmit; this.priority = entry.priority; },
case kfFormFieldType.username: usernameIndex = otherLength; type = "text"; break;
case kfFormFieldType.username: usernameIndex = otherLength; type = "username"; break;
initFromEntry : function (entry) { var passwords = []; var otherFields = []; var usernameIndex = 0; var maximumPage = 1; for (var j = 0; j < entry.formFieldList.length; j++) { var kpff = entry.formFieldList[j]; if (kpff.type == kfFormFieldType.password) { if (kpff.page > maximumPage) maximumPage = kpff.page; newField = new kfLoginField(); newField.init(kpff.name, kpff.value, kpff.id, "password", kpff.page); passwords.push(newField); } else if (kpff.type == kfFormFieldType.text || kpff.type == kfFormFieldType.username || kpff.type == kfFormFieldType.select || kpff.type == kfFormFieldType.radio || kpff.type == kfFormFieldType.checkbox) { var otherLength = otherFields.length; var type = "unknown"; switch (kpff.type) { case kfFormFieldType.username: usernameIndex = otherLength; type = "text"; break; case kfFormFieldType.text: type = "text"; break; case kfFormFieldType.radio: type = "radio"; break; case kfFormFieldType.checkbox: type = "checkbox"; break; case kfFormFieldType.select: type = "select-one"; break; } if (kpff.page > maximumPage) maximumPage = kpff.page; newField = new kfLoginField(); newField.init(kpff.name, kpff.value, kpff.id, type, kpff.page); otherFields.push(newField); } } this.init(entry.uRLs, entry.formActionURL, entry.hTTPRealm, usernameIndex, passwords, entry.uniqueID, entry.title, otherFields, maximumPage); this.parentGroup = entry.parent; this.iconImageData = entry.iconImageData; this.alwaysAutoFill = entry.alwaysAutoFill; this.alwaysAutoSubmit = entry.alwaysAutoSubmit; this.neverAutoFill = entry.neverAutoFill; this.neverAutoSubmit = entry.neverAutoSubmit; this.priority = entry.priority; },
s;h=A;f(k);b()}else if(A!==h&&u){k=s;h=A;s=O[h-1];f(s);b()}},50)}}function L(){var k;k=J.value.split("|");if(k.length>1){x=k[0];D=k[1]}if(k.length>2)O=k[2].split(",");if(q)n();else{o();K=true;r!=null&&r()}}var u=false,q=g.isIElt9,B=false,r=null,C=null,J=null,K=false,M=null,O=[],x,D,Y=function(){};return{onReady:function(k){if(K)setTimeout(function(){k()},0);else r=k},_initialize:function(){J!=null&&L()},_initTimeout:function(){o()},register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k, h){if(!K){var s=navigator.vendor||"";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=
h&&u){k=s;h=A;s=O[h-1];f(s);b()}},50)}}function L(){var k;k=J.value.split("|");if(k.length>1){x=k[0];D=k[1]}if(k.length>2)O=k[2].split(",");if(q)n();else{o();K=true;r!=null&&r()}}var u=false,q=g.isIElt9,B=false,r=null,C=null,J=null,K=false,M=null,O=[],x,D,Y=function(){};return{onReady:function(k){if(K)setTimeout(function(){k()},0);else r=k},_initialize:function(){J!=null&&L()},_initTimeout:function(){o()},register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k,h){if(!K){var s=navigator.vendor|| "";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=fqstate;if(u){O[history.length]=
s;h=A;f(k);b()}else if(A!==h&&u){k=s;h=A;s=O[h-1];f(s);b()}},50)}}function L(){var k;k=J.value.split("|");if(k.length>1){x=k[0];D=k[1]}if(k.length>2)O=k[2].split(",");if(q)n();else{o();K=true;r!=null&&r()}}var u=false,q=g.isIElt9,B=false,r=null,C=null,J=null,K=false,M=null,O=[],x,D,Y=function(){};return{onReady:function(k){if(K)setTimeout(function(){k()},0);else r=k},_initialize:function(){J!=null&&L()},_initTimeout:function(){o()},register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k,h){if(!K){var s=navigator.vendor||"";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=
h&&u){k=s;h=A;s=O[h-1];f(s);b()}},50)}}function L(){var k;k=J.value.split("|");if(k.length>1){x=k[0];D=k[1]}if(k.length>2)O=k[2].split(",");if(q)n();else{o();K=true;r!=null&&r()}}var u=false,q=g.isIElt9,B=false,r=null,C=null,J=null,K=false,M=null,O=[],x,D,Y=function(){};return{onReady:function(k){if(K)setTimeout(function(){k()},0);else r=k},_initialize:function(){J!=null&&L()},_initTimeout:function(){o()},register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k,h){if(!K){var s=navigator.vendor|| "";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=fqstate;if(u){O[history.length]=
register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k,h){if(!K){var s=navigator.vendor||"";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},
h&&u){k=s;h=A;s=O[h-1];f(s);b()}},50)}}function L(){var k;k=J.value.split("|");if(k.length>1){x=k[0];D=k[1]}if(k.length>2)O=k[2].split(",");if(q)n();else{o();K=true;r!=null&&r()}}var u=false,q=g.isIElt9,B=false,r=null,C=null,J=null,K=false,M=null,O=[],x,D,Y=function(){};return{onReady:function(k){if(K)setTimeout(function(){k()},0);else r=k},_initialize:function(){J!=null&&L()},_initTimeout:function(){o()},register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k,h){if(!K){var s=navigator.vendor||"";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=fqstate;if(u){O[history.length]=
this.request = new Request.JSON({url:url,onComplete: function(response,errorMessage) {
this.request = new Request.JSON({url:url, link:'chain',onComplete: function(response,errorMessage) {
initialize: function(url,process) { this.request = new Request.JSON({url:url,onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(errorMessage); } }}); reqQueue.addRequest(url,this.request);//Ensure all such requests are queued one after the other. },
process(response);
if(Browser.Engine.trident && Browser.Engine.version == 5) { var myprocess = process; myprocess.delay(50,this,response); } else { process(response); }
initialize: function(url,process) { this.request = new Request.JSON({url:url,onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(errorMessage); } }}); reqQueue.addRequest(url,this.request);//Ensure all such requests are queued one after the other. },
displayErrorMessage(errorMessage);
displayErrorMessage(''+url+' failure:'+errorMessage);
initialize: function(url,process) { this.request = new Request.JSON({url:url,onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(errorMessage); } }}); reqQueue.addRequest(url,this.request);//Ensure all such requests are queued one after the other. },
reqQueue.addRequest(url,this.request);
initialize: function(url,process) { this.request = new Request.JSON({url:url,onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(errorMessage); } }}); reqQueue.addRequest(url,this.request);//Ensure all such requests are queued one after the other. },
onStart: this.startSort,
initialize: function(url, type) { this.url = url; this.type = type; this.packages = []; this.parsePackages(); this.sorts = new Sortables($("package-list"), { constrain: false, clone: true, revert: true, opacity: 0.4, handle: ".package_drag", onStart: this.startSort, onComplete: this.saveSort.bind(this) }); },
this.name='';
initialize:function() { this.step=0; this.name=''; this.steps=[]; },
this.request = new Request.JSON({url:url, onComplete: function(response,errorMessage) {
this.request = new Request.JSON({url:url, link:'chain',onComplete: function(response,errorMessage) {
initialize: function(url,process) { this.request = new Request.JSON({url:url, onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(''+url+' failure:'+errorMessage); } }}); reqQueue.addRequest(url,this.request);//Ensure all such requests are queued one after the other. },
process(response);
if(Browser.Engine.trident && Browser.Engine.version == 5) { var myprocess = process; myprocess.delay(20,this,response); } else { process(response); }
initialize: function(url,process) { this.request = new Request.JSON({url:url, onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(''+url+' failure:'+errorMessage); } }}); reqQueue.addRequest(url,this.request);//Ensure all such requests are queued one after the other. },
reqQueue.addRequest(url,this.request);
initialize: function(url,process) { this.request = new Request.JSON({url:url, onComplete: function(response,errorMessage) { if(response) { process(response); } else { displayErrorMessage(''+url+' failure:'+errorMessage); } }}); reqQueue.addRequest(url,this.request);//Ensure all such requests are queued one after the other. },
function E(){var l;l=v.value.split("|");if(l.length>1){G=l[0];C=l[1]}if(l.length>2)M=l[2].split(",");if(s)h();else{o();I=true;x!=null&&x()}}var u=false,s=false,z=false,x=null,F=null,v=null,I=false,U=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){v!=null&&E()},_initTimeout:function(){o()},register:function(l,p){if(!I){C=G=escape(l);H=p}},initialize:function(l,p){if(!I){var q=navigator.vendor||"";if(q!=="KDE")if(typeof window.opera!== "undefined")z=true;else if(typeof document.all!=="undefined")s=true;else if(q.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(s){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(s)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=
if(r!==l){l=r;q=m;f(l);b()}else if(m!==q&&v){l=r;q=m;r=M[q-1];f(r);b()}},50)}}function E(){var l;l=w.value.split("|");if(l.length>1){G=l[0];C=l[1]}if(l.length>2)M=l[2].split(",");if(s)h();else{o();I=true;y!=null&&y()}}var v=false,s=false,z=false,y=null,F=null,w=null,I=false,V=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else y=l},_initialize:function(){w!=null&&E()},_initTimeout:function(){o()},register:function(l,q){if(!I){C=G=escape(l);H=q}},initialize:function(l, q){if(!I){var r=navigator.vendor||"";if(r!=="KDE")if(typeof window.opera!=="undefined")z=true;else if(typeof document.all!=="undefined")s=true;else if(r.indexOf("Apple Computer, Inc.")>-1)v=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){w=l;if(s){if(typeof q==="string")q=document.getElementById(q);!q||q.tagName.toUpperCase()!=="IFRAME"||(F=q)}}}},navigate:function(l){if(I){fqstate=
function E(){var l;l=v.value.split("|");if(l.length>1){G=l[0];C=l[1]}if(l.length>2)M=l[2].split(",");if(s)h();else{o();I=true;x!=null&&x()}}var u=false,s=false,z=false,x=null,F=null,v=null,I=false,U=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){v!=null&&E()},_initTimeout:function(){o()},register:function(l,p){if(!I){C=G=escape(l);H=p}},initialize:function(l,p){if(!I){var q=navigator.vendor||"";if(q!=="KDE")if(typeof window.opera!=="undefined")z=true;else if(typeof document.all!=="undefined")s=true;else if(q.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(s){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(s)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=
r;p=v;e(g);b()}else if(v!==p&&u){g=r;p=v;r=D[p-1];e(r);b()}},50)}}function H(){var g;g=J.value.split("|");if(g.length>1){L=g[0];C=g[1]}if(g.length>2)D=g[2].split(",");if(q)l();else{n();F=true;y!=null&&y()}}var u=false,q=self.isIElt9,s=false,y=null,I=null,J=null,F=false,Q=null,D=[],L,C,E=function(){};return{onReady:function(g){if(F)setTimeout(function(){g()},0);else y=g},_initialize:function(){J!=null&&H()},_initTimeout:function(){n()},register:function(g,p){if(!F){C=L=escape(g);E=p}},initialize:function(g, p){if(!F){var r=navigator.vendor||"";if(r!=="KDE")if(typeof window.opera!=="undefined")s=true;else if(!q&&r.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){J=g;if(q){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(I=p)}}}},navigate:function(g){if(F){fqstate=g;if(q)j(fqstate);else{location.hash=
r;p=v;e(g);b()}else if(v!==p&&u){g=r;p=v;r=D[p-1];e(r);b()}},50)}}function H(){var g;g=K.value.split("|");if(g.length>1){L=g[0];C=g[1]}if(g.length>2)D=g[2].split(",");if(q)l();else{n();F=true;y!=null&&y()}}var u=false,q=self.isIElt9,s=false,y=null,I=null,K=null,F=false,Q=null,D=[],L,C,E=function(){};return{onReady:function(g){if(F)setTimeout(function(){g()},0);else y=g},_initialize:function(){K!=null&&H()},_initTimeout:function(){n()},register:function(g,p){if(!F){C=L=escape(g);E=p}},initialize:function(g, p){if(!F){var r=navigator.vendor||"";if(r!=="KDE")if(typeof window.opera!=="undefined")s=true;else if(!q&&r.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){K=g;if(q){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(I=p)}}}},navigate:function(g){if(F){fqstate=g;if(q)j(fqstate);else{location.hash=
r;p=v;e(g);b()}else if(v!==p&&u){g=r;p=v;r=D[p-1];e(r);b()}},50)}}function H(){var g;g=J.value.split("|");if(g.length>1){L=g[0];C=g[1]}if(g.length>2)D=g[2].split(",");if(q)l();else{n();F=true;y!=null&&y()}}var u=false,q=self.isIElt9,s=false,y=null,I=null,J=null,F=false,Q=null,D=[],L,C,E=function(){};return{onReady:function(g){if(F)setTimeout(function(){g()},0);else y=g},_initialize:function(){J!=null&&H()},_initTimeout:function(){n()},register:function(g,p){if(!F){C=L=escape(g);E=p}},initialize:function(g,p){if(!F){var r=navigator.vendor||"";if(r!=="KDE")if(typeof window.opera!=="undefined")s=true;else if(!q&&r.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){J=g;if(q){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(I=p)}}}},navigate:function(g){if(F){fqstate=g;if(q)j(fqstate);else{location.hash=
s;h=A;f(k);b()}else if(A!==h&&u){k=s;h=A;s=N[h-1];f(s);b()}},50)}}function L(){var k;k=J.value.split("|");if(k.length>1){x=k[0];D=k[1]}if(k.length>2)N=k[2].split(",");if(q)n();else{o();K=true;r!=null&&r()}}var u=false,q=self.isIElt9,B=false,r=null,C=null,J=null,K=false,M=null,N=[],x,D,Y=function(){};return{onReady:function(k){if(K)setTimeout(function(){k()},0);else r=k},_initialize:function(){J!=null&&L()},_initTimeout:function(){o()},register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k,
s;h=A;f(k);b()}else if(A!==h&&u){k=s;h=A;s=O[h-1];f(s);b()}},50)}}function L(){var k;k=J.value.split("|");if(k.length>1){x=k[0];D=k[1]}if(k.length>2)O=k[2].split(",");if(q)n();else{o();K=true;r!=null&&r()}}var u=false,q=self.isIElt9,B=false,r=null,C=null,J=null,K=false,M=null,O=[],x,D,Y=function(){};return{onReady:function(k){if(K)setTimeout(function(){k()},0);else r=k},_initialize:function(){J!=null&&L()},_initTimeout:function(){o()},register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k,
s;h=A;f(k);b()}else if(A!==h&&u){k=s;h=A;s=N[h-1];f(s);b()}},50)}}function L(){var k;k=J.value.split("|");if(k.length>1){x=k[0];D=k[1]}if(k.length>2)N=k[2].split(",");if(q)n();else{o();K=true;r!=null&&r()}}var u=false,q=self.isIElt9,B=false,r=null,C=null,J=null,K=false,M=null,N=[],x,D,Y=function(){};return{onReady:function(k){if(K)setTimeout(function(){k()},0);else r=k},_initialize:function(){J!=null&&L()},_initTimeout:function(){o()},register:function(k,h){if(!K){D=x=escape(k);Y=h}},initialize:function(k,h){if(!K){var s=navigator.vendor||"";if(s!=="KDE")if(typeof window.opera!=="undefined")B=true;else if(!q&&s.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof k==="string")k=document.getElementById(k);if(!(!k||k.tagName.toUpperCase()!=="TEXTAREA"&&(k.tagName.toUpperCase()!=="INPUT"||k.type!=="hidden"&&k.type!=="text"))){J=k;if(q){if(typeof h==="string")h=document.getElementById(h);!h||h.tagName.toUpperCase()!=="IFRAME"||(C=h)}}}},navigate:function(k){if(K){fqstate=k;if(q)l(fqstate);else{location.hash=
null&&K()},_initTimeout:function(){n()},register:function(l,p){if(!I){E=L=escape(l);N=p}},initialize:function(l,p){if(!I){var r=navigator.vendor||"";if(r!=="KDE")if(typeof window.opera!=="undefined")D=true;else if(typeof document.all!=="undefined")q=true;else if(r.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){F=l;if(q){if(typeof p=== "string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}}
0);else w=l},_initialize:function(){E!=null&&J()},_initTimeout:function(){n()},register:function(l,p){if(!H){D=K=escape(l);M=p}},initialize:function(l,p){if(!H){var r=navigator.vendor||"";if(r!=="KDE")if(typeof window.opera!=="undefined")C=true;else if(typeof document.all!=="undefined")q=true;else if(r.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!== "text"))){E=l;if(q){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(z=p)}}}},navigate:function(l){if(H){fqstate=l;if(q)j(fqstate);else{location.hash=fqstate;if(u){L[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!H)return"";return D}}}()}),_$_APP_CLASS_$_=new (function(){function v(d){d=o.pageCoordinates(d);G=d.x;da=d.y}function t(){var d=o.history.getCurrentState();if(O!=d){O=d;setTimeout(function(){z(null,"hash",null,true)},1)}}function A(d){if(O!=
null&&K()},_initTimeout:function(){n()},register:function(l,p){if(!I){E=L=escape(l);N=p}},initialize:function(l,p){if(!I){var r=navigator.vendor||"";if(r!=="KDE")if(typeof window.opera!=="undefined")D=true;else if(typeof document.all!=="undefined")q=true;else if(r.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){F=l;if(q){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(A=p)}}}},navigate:function(l){if(I){fqstate=l;if(q)k(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return E}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=o.pageCoordinates(d);H=d.x;ea=d.y}function t(){var d=o.history.getCurrentState();if(P!=d){P=d;setTimeout(function(){A(null,"hash",null,true)},1)}}function B(d){if(P!=d){P=d;o.history.navigate(escape(d))}}
I=false,U=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){v!=null&&E()},_initTimeout:function(){o()},register:function(l,p){if(!I){C=G=escape(l);H=p}},initialize:function(l,p){if(!I){var q=navigator.vendor||"";if(q!=="KDE")if(typeof window.opera!=="undefined")y=true;else if(typeof document.all!=="undefined")r=true;else if(q.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l|| l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(r){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(r)h(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=n.pageCoordinates(d);N=d.x;J=d.y}function t(){var d=
function E(){var l;l=v.value.split("|");if(l.length>1){G=l[0];C=l[1]}if(l.length>2)M=l[2].split(",");if(r)k();else{o();I=true;x!=null&&x()}}var u=false,r=false,y=false,x=null,F=null,v=null,I=false,U=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){v!=null&&E()},_initTimeout:function(){o()},register:function(l,p){if(!I){C=G=escape(l);H=p}},initialize:function(l,p){if(!I){var q=navigator.vendor||"";if(q!=="KDE")if(typeof window.opera!== "undefined")y=true;else if(typeof document.all!=="undefined")r=true;else if(q.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(r){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(r)h(fqstate);else{location.hash=fqstate;if(u){M[history.length]=
I=false,U=null,M=[],G,C,H=function(){};return{onReady:function(l){if(I)setTimeout(function(){l()},0);else x=l},_initialize:function(){v!=null&&E()},_initTimeout:function(){o()},register:function(l,p){if(!I){C=G=escape(l);H=p}},initialize:function(l,p){if(!I){var q=navigator.vendor||"";if(q!=="KDE")if(typeof window.opera!=="undefined")y=true;else if(typeof document.all!=="undefined")r=true;else if(q.indexOf("Apple Computer, Inc.")>-1)u=true;if(typeof l==="string")l=document.getElementById(l);if(!(!l||l.tagName.toUpperCase()!=="TEXTAREA"&&(l.tagName.toUpperCase()!=="INPUT"||l.type!=="hidden"&&l.type!=="text"))){v=l;if(r){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(F=p)}}}},navigate:function(l){if(I){fqstate=l;if(r)h(fqstate);else{location.hash=fqstate;if(u){M[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!I)return"";return C}}}()}),_$_APP_CLASS_$_=new (function(){function w(d){d=n.pageCoordinates(d);N=d.x;J=d.y}function t(){var d=
E=false,R=null,A=[],I,z,Q=function(){};if(!document.activeElement){function S(g){if(g&&g.target)document.activeElement=g.target==document?null:g.target}function Y(){document.activeElement=null}document.addEventListener("focus",S,true);document.addEventListener("blur",Y,true)}return{onReady:function(g){if(E)setTimeout(function(){g()},0);else D=g},_initialize:function(){H!=null&&B()},_initTimeout:function(){o()},register:function(g,p){if(!E){z=I=escape(g);Q=p}},initialize:function(g,p){if(!E){var n= navigator.vendor||"";if(n!=="KDE")if(typeof window.opera!=="undefined")C=true;else if(typeof document.all!=="undefined")t=true;else if(n.indexOf("Apple Computer, Inc.")>-1)r=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){H=g;if(t){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(K=p)}}}},navigate:function(g){if(E){fqstate=g;
g.target==document?null:g.target}function V(){document.activeElement=null}document.addEventListener("focus",K,true);document.addEventListener("blur",V,true)}return{onReady:function(g){if(w)setTimeout(function(){g()},0);else A=g},_initialize:function(){L!=null&&E()},_initTimeout:function(){n()},register:function(g,o){if(!w){y=I=escape(g);S=o}},initialize:function(g,o){if(!w){var p=navigator.vendor||"";if(p!=="KDE")if(typeof window.opera!=="undefined")H=true;else if(typeof document.all!=="undefined")u= true;else if(p.indexOf("Apple Computer, Inc.")>-1)q=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){L=g;if(u){if(typeof o==="string")o=document.getElementById(o);!o||o.tagName.toUpperCase()!=="IFRAME"||(F=o)}}}},navigate:function(g){if(w){fqstate=g;if(u)m(fqstate);else{location.hash=fqstate;if(q){N[history.length]=fqstate;b()}}}},getCurrentState:function(){if(!w)return"";
E=false,R=null,A=[],I,z,Q=function(){};if(!document.activeElement){function S(g){if(g&&g.target)document.activeElement=g.target==document?null:g.target}function Y(){document.activeElement=null}document.addEventListener("focus",S,true);document.addEventListener("blur",Y,true)}return{onReady:function(g){if(E)setTimeout(function(){g()},0);else D=g},_initialize:function(){H!=null&&B()},_initTimeout:function(){o()},register:function(g,p){if(!E){z=I=escape(g);Q=p}},initialize:function(g,p){if(!E){var n=navigator.vendor||"";if(n!=="KDE")if(typeof window.opera!=="undefined")C=true;else if(typeof document.all!=="undefined")t=true;else if(n.indexOf("Apple Computer, Inc.")>-1)r=true;if(typeof g==="string")g=document.getElementById(g);if(!(!g||g.tagName.toUpperCase()!=="TEXTAREA"&&(g.tagName.toUpperCase()!=="INPUT"||g.type!=="hidden"&&g.type!=="text"))){H=g;if(t){if(typeof p==="string")p=document.getElementById(p);!p||p.tagName.toUpperCase()!=="IFRAME"||(K=p)}}}},navigate:function(g){if(E){fqstate=g;
directives += '\n' + line;
directives += line + '\n';
initialize: function (book) { var This = this; var directives = ""; book = book.strip(); var tunes = book.split("\nX:"); for (var i = 1; i < tunes.length; i++) // Put back the X: that we lost when splitting the tunes. tunes[i] = "X:" + tunes[i]; // Keep track of the character position each tune starts with. var pos = 0; This.tunes = []; tunes.each(function(tune) { This.tunes.push({ abc: tune, startPos: pos}); pos += tune.length; }); if (This.tunes.length > 1 && !This.tunes[0].abc.startsWith('X:')) { // If there is only one tune, the X: might be missing, otherwise assume the top of the file is "intertune" // There could be file-wide directives in this, if so, we need to insert it into each tune. We can probably get away with // just looking for file-wide directives here (before the first tune) and inserting them at the bottom of each tune, since // the tune is parsed all at once. The directives will be seen before the printer begins processing. var dir = This.tunes.shift(); var arrDir = dir.abc.split('\n'); arrDir.each(function(line) { if (line.startsWith('%%')) directives += '\n' + line; }); } // Now, the tune ends at a blank line, so truncate it if needed. There may be "intertune" stuff. This.tunes.each(function(tune) { var end = tune.abc.indexOf('\n\n'); if (end > 0) tune.abc = tune.abc.substring(0, end); tune.abc += directives; }); }
tune.abc += directives;
tune.abc = directives + tune.abc;
initialize: function (book) { var This = this; var directives = ""; book = book.strip(); var tunes = book.split("\nX:"); for (var i = 1; i < tunes.length; i++) // Put back the X: that we lost when splitting the tunes. tunes[i] = "X:" + tunes[i]; // Keep track of the character position each tune starts with. var pos = 0; This.tunes = []; tunes.each(function(tune) { This.tunes.push({ abc: tune, startPos: pos}); pos += tune.length; }); if (This.tunes.length > 1 && !This.tunes[0].abc.startsWith('X:')) { // If there is only one tune, the X: might be missing, otherwise assume the top of the file is "intertune" // There could be file-wide directives in this, if so, we need to insert it into each tune. We can probably get away with // just looking for file-wide directives here (before the first tune) and inserting them at the bottom of each tune, since // the tune is parsed all at once. The directives will be seen before the printer begins processing. var dir = This.tunes.shift(); var arrDir = dir.abc.split('\n'); arrDir.each(function(line) { if (line.startsWith('%%')) directives += '\n' + line; }); } // Now, the tune ends at a blank line, so truncate it if needed. There may be "intertune" stuff. This.tunes.each(function(tune) { var end = tune.abc.indexOf('\n\n'); if (end > 0) tune.abc = tune.abc.substring(0, end); tune.abc += directives; }); }
left:o}};d.offset={initialize:function(){var a=r.body,b=r.createElement("div"),e,g,h,k=parseFloat(d.curCSS(a,"marginTop",true))||0;d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>"; a.insertBefore(b,a.firstChild);e=b.firstChild;g=e.firstChild;h=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=h.offsetTop===5;g.style.position="fixed";g.style.top="20px";this.supportsFixedPosition=g.offsetTop===20||g.offsetTop===15;g.style.position=g.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==k;a.removeChild(b); d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,e=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(d.curCSS(a,"marginTop",true))||0;e+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:b,left:e}},setOffset:function(a,b,e){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var g=d(a),h=g.offset(),k=parseInt(d.curCSS(a,"top",true),10)||0,l=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(b))b=b.call(a,
f.position==="fixed"){p+=Math.max(l.scrollTop,q.scrollTop);o+=Math.max(l.scrollLeft,q.scrollLeft)}return{top:p,left:o}};c.offset={initialize:function(){var a=r.body,b=r.createElement("div"),e,f,h,k=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>"; a.insertBefore(b,a.firstChild);e=b.firstChild;f=e.firstChild;h=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=h.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==k;a.removeChild(b); c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,e=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;e+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:e}},setOffset:function(a,b,e){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),h=f.offset(),k=parseInt(c.curCSS(a,"top",true),10)||0,l=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
left:o}};d.offset={initialize:function(){var a=r.body,b=r.createElement("div"),e,g,h,k=parseFloat(d.curCSS(a,"marginTop",true))||0;d.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";a.insertBefore(b,a.firstChild);e=b.firstChild;g=e.firstChild;h=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==5;this.doesAddBorderForTableAndCells=h.offsetTop===5;g.style.position="fixed";g.style.top="20px";this.supportsFixedPosition=g.offsetTop===20||g.offsetTop===15;g.style.position=g.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==k;a.removeChild(b);d.offset.initialize=d.noop},bodyOffset:function(a){var b=a.offsetTop,e=a.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(d.curCSS(a,"marginTop",true))||0;e+=parseFloat(d.curCSS(a,"marginLeft",true))||0}return{top:b,left:e}},setOffset:function(a,b,e){if(/static/.test(d.curCSS(a,"position")))a.style.position="relative";var g=d(a),h=g.offset(),k=parseInt(d.curCSS(a,"top",true),10)||0,l=parseInt(d.curCSS(a,"left",true),10)||0;if(d.isFunction(b))b=b.call(a,
document.body.style.backgroundColor = "#999999" ; three_d_ize ( document.getElementById('upper_nav') ) ; three_d_ize ( document.getElementById('lanes_container') ) ; three_d_ize ( document.getElementById('legend_container') ) ;
function initialize_display () { if ( display_init == '' ) return ; window.onresize = on_resize ; var a = display_init.split ( '|' ) ; var b = new Array () ; for ( var i = 0 ; i < a.length ; i++ ) { b[a[i]] = 1 ; } document.getElementById('display_perfect').checked = b['perfect'] ? true : false ; document.getElementById('display_snps').checked = b['snps'] ? true : false ; document.getElementById('display_single_reads').checked = b['single'] ? true : false ; document.getElementById('display_inversions').checked = b['inversions'] ? true : false ; document.getElementById('display_inversions_ext').checked = b['inversions_ext'] ? true : false ; document.getElementById('display_pair_links').checked = b['pairlinks'] ? true : false ; document.getElementById('display_known_snps').checked = b['potsnps'] ? true : false ; document.getElementById('display_uniqueness').checked = b['uniqueness'] ? true : false ; document.getElementById('display_annotation').checked = b['annotation'] ? true : false ; document.getElementById('display_gc').checked = b['gc'] ? true : false ; document.getElementById('display_coverage').checked = b['coverage'] ? true : false ; document.getElementById('display_deletions').checked = b['deletions'] ? true : false ; document.getElementById('show_quality').checked = b['readqual'] ? true : false ; document.getElementById('show_arrows').checked = b['orientation'] ? true : false ; document.getElementById('show_faceaway').checked = b['faceaway'] ? true : false ; if ( indel_zoom != 'auto' ) document.getElementById('indel_zoom').value = indel_zoom ; var nw = get_viewport_width ( document.getElementById('img_container') ) ; change_image_width ( nw ) ;}
WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,j){jQuery.data(j,"obj",this);var f=r.WT,l=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(a){if(j.getContext){try{this.ctx=j.getContext("webgl")}catch(c){}if(this.ctx==null)try{this.ctx=j.getContext("experimental-webgl")}catch(d){}if(this.ctx==null){j.parentNode.replaceChild(j.firstChild,j);a()}}return this.ctx};this.setLookAtParams=
WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,j){jQuery.data(j,"obj",this);var f=r.WT,l=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};this.resizeGL=function(){};this.updates=[];this.initialized=false;var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(a){if(j.getContext){try{this.ctx=j.getContext("webgl",{antialias:true})}catch(c){}if(this.ctx==null)try{this.ctx=j.getContext("experimental-webgl")}catch(d){}if(this.ctx==
WT_DECLARE_WT_MEMBER(1,"WGLWidget",function(r,j){jQuery.data(j,"obj",this);var f=r.WT,l=f.glMatrix.vec3,b=f.glMatrix.mat4;this.ctx=null;this.initializeGL=function(){};this.paintGL=function(){};var h=null,i=null,m=null,n=0,o=0,e=null,p=0,q=0;this.discoverContext=function(a){if(j.getContext){try{this.ctx=j.getContext("webgl")}catch(c){}if(this.ctx==null)try{this.ctx=j.getContext("experimental-webgl")}catch(d){}if(this.ctx==null){j.parentNode.replaceChild(j.firstChild,j);a()}}return this.ctx};this.setLookAtParams=
map = new OpenLayers.Map(divMap, { controls: [], resolutions: map_resolutions, projection: new OpenLayers.Projection(map_projection), maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90) });
function initMap(divMap, mapConfig) { // set default location of the map var map_config = mapConfig['Map']; var lon = parseFloat(map_config['Longitude']); var lat = parseFloat(map_config['Latitude']); var zoom = parseInt(map_config['Zoom']); var map_resolutions = map_config['Resolutions']; var map_projection = map_config['Projection']; // get default map extend (stored in the CMS) var map_extent = mapConfig['MaxMapExtent'] var extent_left = parseFloat(map_extent['left']); var extent_bottom = parseFloat(map_extent['bottom']); var extent_right = parseFloat(map_extent['right']); var extent_top = parseFloat(map_extent['top']); map = new OpenLayers.Map(divMap, { controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.SSPanZoomBar(), new OpenLayers.Control.ScaleLine(), new OpenLayers.Control.KeyboardDefaults(), new OpenLayers.Control.MousePosition() ], resolutions: map_resolutions, projection: new OpenLayers.Projection(map_projection), // apply extent/resolution settings to the map maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90), restrictedExtent: new OpenLayers.Bounds(extent_left,extent_bottom,extent_right,extent_top) }); map.paddingForPopups = new OpenLayers.Bounds(80, 20, 400, 60); // initiate all overlay layers var layers = mapConfig['Layers']; layers.reverse(); jQuery.each( layers , initLayer ); map.events.register("zoomend", map, onFeatureUnselect); map.zoomTo(zoom); map.setCenter(new OpenLayers.LonLat(lon, lat)); controls = map.getControlsByClass('OpenLayers.Control.Navigation'); controls[0].handlers.wheel.activate(); }
map = new OpenLayers.Map(divMap, { controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.SSPanZoomBar(), new OpenLayers.Control.ScaleLine(), new OpenLayers.Control.KeyboardDefaults(), new OpenLayers.Control.MousePosition() ], resolutions: map_resolutions, projection: new OpenLayers.Projection(map_projection), maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90), restrictedExtent: new OpenLayers.Bounds(extent_left,extent_bottom,extent_right,extent_top) });
if (extent_left != 0 && extent_bottom != 0 && extent_right != 0 && extent_top != 0) { map.restrictedExtent = new OpenLayers.Bounds(extent_left,extent_bottom,extent_right,extent_top); }
function initMap(divMap, mapConfig) { // set default location of the map var map_config = mapConfig['Map']; var lon = parseFloat(map_config['Longitude']); var lat = parseFloat(map_config['Latitude']); var zoom = parseInt(map_config['Zoom']); var map_resolutions = map_config['Resolutions']; var map_projection = map_config['Projection']; // get default map extend (stored in the CMS) var map_extent = mapConfig['MaxMapExtent'] var extent_left = parseFloat(map_extent['left']); var extent_bottom = parseFloat(map_extent['bottom']); var extent_right = parseFloat(map_extent['right']); var extent_top = parseFloat(map_extent['top']); map = new OpenLayers.Map(divMap, { controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.SSPanZoomBar(), new OpenLayers.Control.ScaleLine(), new OpenLayers.Control.KeyboardDefaults(), new OpenLayers.Control.MousePosition() ], resolutions: map_resolutions, projection: new OpenLayers.Projection(map_projection), // apply extent/resolution settings to the map maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90), restrictedExtent: new OpenLayers.Bounds(extent_left,extent_bottom,extent_right,extent_top) }); map.paddingForPopups = new OpenLayers.Bounds(80, 20, 400, 60); // initiate all overlay layers var layers = mapConfig['Layers']; layers.reverse(); jQuery.each( layers , initLayer ); map.events.register("zoomend", map, onFeatureUnselect); map.zoomTo(zoom); map.setCenter(new OpenLayers.LonLat(lon, lat)); controls = map.getControlsByClass('OpenLayers.Control.Navigation'); controls[0].handlers.wheel.activate(); }
projection: new OpenLayers.Projection(map_projection), maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90)
projection: new OpenLayers.Projection(map_projection)
function initMap(divMap, mapConfig) { // set default location of the map var map_config = mapConfig['Map']; var lon = parseFloat(map_config['Longitude']); var lat = parseFloat(map_config['Latitude']); var zoom = parseInt(map_config['Zoom']); var map_resolutions = map_config['Resolutions']; var map_projection = map_config['Projection']; map = new OpenLayers.Map(divMap, { controls: [], resolutions: map_resolutions, projection: new OpenLayers.Projection(map_projection), maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90) }); // get map extend (stored in the CMS) var map_extent = mapConfig['MaxMapExtent'] var extent_left = parseFloat(map_extent['left']); var extent_bottom = parseFloat(map_extent['bottom']); var extent_right = parseFloat(map_extent['right']); var extent_top = parseFloat(map_extent['top']); if (extent_left != 0 && extent_bottom != 0 && extent_right != 0 && extent_top != 0) { map.restrictedExtent = new OpenLayers.Bounds(extent_left,extent_bottom,extent_right,extent_top); } map.paddingForPopups = new OpenLayers.Bounds(80, 20, 400, 60); // initiate all overlay layers var layers = mapConfig['Layers']; layers.reverse(); jQuery.each( layers , initLayer ); map.events.register("zoomend", map, onFeatureUnselect); map.zoomTo(zoom); map.setCenter(new OpenLayers.LonLat(lon, lat)); map.addControl(new OpenLayers.Control.Navigation()); map.addControl(new OpenLayers.Control.SSPanZoomBar()); map.addControl(new OpenLayers.Control.ScaleLine()); map.addControl(new OpenLayers.Control.KeyboardDefaults()); map.addControl(new OpenLayers.Control.MousePosition()); controls = map.getControlsByClass('OpenLayers.Control.Navigation'); controls[0].handlers.wheel.activate(); }
map.maxExtent = new OpenLayers.Bounds(-180, -90, 180, 90);
function initMap(divMap, mapConfig) { // set default location of the map var map_config = mapConfig['Map']; var lon = parseFloat(map_config['Longitude']); var lat = parseFloat(map_config['Latitude']); var zoom = parseInt(map_config['Zoom']); var map_resolutions = map_config['Resolutions']; var map_projection = map_config['Projection']; map = new OpenLayers.Map(divMap, { controls: [], resolutions: map_resolutions, projection: new OpenLayers.Projection(map_projection), maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90) }); // get map extend (stored in the CMS) var map_extent = mapConfig['MaxMapExtent'] var extent_left = parseFloat(map_extent['left']); var extent_bottom = parseFloat(map_extent['bottom']); var extent_right = parseFloat(map_extent['right']); var extent_top = parseFloat(map_extent['top']); if (extent_left != 0 && extent_bottom != 0 && extent_right != 0 && extent_top != 0) { map.restrictedExtent = new OpenLayers.Bounds(extent_left,extent_bottom,extent_right,extent_top); } map.paddingForPopups = new OpenLayers.Bounds(80, 20, 400, 60); // initiate all overlay layers var layers = mapConfig['Layers']; layers.reverse(); jQuery.each( layers , initLayer ); map.events.register("zoomend", map, onFeatureUnselect); map.zoomTo(zoom); map.setCenter(new OpenLayers.LonLat(lon, lat)); map.addControl(new OpenLayers.Control.Navigation()); map.addControl(new OpenLayers.Control.SSPanZoomBar()); map.addControl(new OpenLayers.Control.ScaleLine()); map.addControl(new OpenLayers.Control.KeyboardDefaults()); map.addControl(new OpenLayers.Control.MousePosition()); controls = map.getControlsByClass('OpenLayers.Control.Navigation'); controls[0].handlers.wheel.activate(); }
map.paddingForPopups = new OpenLayers.Bounds(20, 20, 400, 20);
map.paddingForPopups = new OpenLayers.Bounds(20, 20, 400, 60);
function initMap(divMap, mapConfig) { // set default location of the map var map_config = mapConfig['Map']; var lon = map_config['Longitude']; var lat = map_config['Latitude']; var zoom = parseInt(map_config['Zoom']); var minScale = parseInt(map_config['MinScale']); var maxScale = parseInt(map_config['MaxScale']); var maxResolution = parseInt(map_config['MaxResolution']); var maxExtent = parseInt(map_config['maxExtent']); map_extent = mapConfig['MaxMapExtent']; var extent_left = (map_extent['left']); var extent_bottom = (map_extent['bottom']); var extent_right = (map_extent['right']); var extent_top = (map_extent['top']); map = new OpenLayers.Map(divMap, { controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.SSPanZoomBar(), new OpenLayers.Control.ScaleLine(), new OpenLayers.Control.KeyboardDefaults() ], // apply extent/resolution settings to the map minScale: minScale, maxResolution: maxResolution, maxScale: maxScale // maxExtent: new OpenLayers.Bounds(extent_left,extent_bottom,extent_right,extent_top) }); map.paddingForPopups = new OpenLayers.Bounds(20, 20, 400, 20); // initiate all overlay layers var layers = mapConfig['Layers']; layers.reverse(); jQuery.each( layers , initLayer ); map.events.register("zoomend", map, onFeatureUnselect); map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); controls = map.getControlsByClass('OpenLayers.Control.Navigation'); controls[0].handlers.wheel.activate(); }
var menu = document.getElementById(menuPrefix + "-menubox"); DafizillaCommon.removeMenuItems(menu);
try { var menu = document.getElementById(menuPrefix + "-menubox"); DafizillaCommon.removeMenuItems(menu);
initPopupMenu : function(menuPrefix, stack, command) { var menu = document.getElementById(menuPrefix + "-menubox"); DafizillaCommon.removeMenuItems(menu); var items = stack.items; var count = items.length - 1; var index = 0; // don't show current view if (this.isEditOnCurrentView(items[count])) { index = 1; } var itemsToAdd = this.prefs.maxVisibleMenuItems; for (; index <= count && itemsToAdd > 0; index++, --itemsToAdd) { var item = items[count - index]; var view = item.view; var mi = document.createElement("menuitem"); // show line and column, but scimoz is 0 based var text = view.title+" l:"+(item.line+1)+" c:"+(item.col+1); mi.setAttribute("label", text); mi.setAttribute("crop", "center"); mi.setAttribute("tooltiptext", view.document.displayPath); mi.setAttribute("oncommand", command.replace("%1", index)); menu.appendChild(mi); } if (menu.hasChildNodes()) { document.getElementById(menuPrefix + "-menuseparator") .removeAttribute("collapsed"); } else { document.getElementById(menuPrefix + "-menuseparator") .setAttribute("collapsed", "true"); } },
if (menu.hasChildNodes()) { document.getElementById(menuPrefix + "-menuseparator") .removeAttribute("collapsed"); } else { document.getElementById(menuPrefix + "-menuseparator") .setAttribute("collapsed", "true");
if (menu.hasChildNodes()) { document.getElementById(menuPrefix + "-menuseparator") .removeAttribute("collapsed"); } else { document.getElementById(menuPrefix + "-menuseparator") .setAttribute("collapsed", "true"); } } catch (err) { DafizillaCommon.exception(err);
initPopupMenu : function(menuPrefix, stack, command) { var menu = document.getElementById(menuPrefix + "-menubox"); DafizillaCommon.removeMenuItems(menu); var items = stack.items; var count = items.length - 1; var index = 0; // don't show current view if (this.isEditOnCurrentView(items[count])) { index = 1; } var itemsToAdd = this.prefs.maxVisibleMenuItems; for (; index <= count && itemsToAdd > 0; index++, --itemsToAdd) { var item = items[count - index]; var view = item.view; var mi = document.createElement("menuitem"); // show line and column, but scimoz is 0 based var text = view.title+" l:"+(item.line+1)+" c:"+(item.col+1); mi.setAttribute("label", text); mi.setAttribute("crop", "center"); mi.setAttribute("tooltiptext", view.document.displayPath); mi.setAttribute("oncommand", command.replace("%1", index)); menu.appendChild(mi); } if (menu.hasChildNodes()) { document.getElementById(menuPrefix + "-menuseparator") .removeAttribute("collapsed"); } else { document.getElementById(menuPrefix + "-menuseparator") .setAttribute("collapsed", "true"); } },
var view = items[count - index].view;
var item = items[count - index]; var view = item.view;
initPopupMenu : function(menuPrefix, stack, command) { var menu = document.getElementById(menuPrefix + "-menubox"); DafizillaCommon.removeMenuItems(menu); var items = stack.items; var count = items.length - 1; var index = 0; // don't show current view if (this.isEditOnCurrentView(items[count])) { index = 1; } var itemsToAdd = this.prefs.maxVisibleMenuItems; for (; index <= count && itemsToAdd > 0; index++, --itemsToAdd) { var view = items[count - index].view; var mi = document.createElement("menuitem"); mi.setAttribute("label", view.title); mi.setAttribute("crop", "center"); mi.setAttribute("tooltiptext", view.document.displayPath); mi.setAttribute("oncommand", command.replace("%1", index)); menu.appendChild(mi); } if (menu.hasChildNodes()) { document.getElementById(menuPrefix + "-menuseparator") .removeAttribute("collapsed"); } else { document.getElementById(menuPrefix + "-menuseparator") .setAttribute("collapsed", "true"); } },
mi.setAttribute("label", view.title);
var text = view.title+" l:"+(item.line+1)+" c:"+(item.col+1); mi.setAttribute("label", text);
initPopupMenu : function(menuPrefix, stack, command) { var menu = document.getElementById(menuPrefix + "-menubox"); DafizillaCommon.removeMenuItems(menu); var items = stack.items; var count = items.length - 1; var index = 0; // don't show current view if (this.isEditOnCurrentView(items[count])) { index = 1; } var itemsToAdd = this.prefs.maxVisibleMenuItems; for (; index <= count && itemsToAdd > 0; index++, --itemsToAdd) { var view = items[count - index].view; var mi = document.createElement("menuitem"); mi.setAttribute("label", view.title); mi.setAttribute("crop", "center"); mi.setAttribute("tooltiptext", view.document.displayPath); mi.setAttribute("oncommand", command.replace("%1", index)); menu.appendChild(mi); } if (menu.hasChildNodes()) { document.getElementById(menuPrefix + "-menuseparator") .removeAttribute("collapsed"); } else { document.getElementById(menuPrefix + "-menuseparator") .setAttribute("collapsed", "true"); } },
this.hide=function(a){k.getElement(a).style.display="none"};this.inline=function(a){k.getElement(a).style.display="inline"};this.block=function(a){k.getElement(a).style.display="block"};this.show=function(a){k.getElement(a).style.display=""};var G=null,P=false;this.capture=function(a){F();G=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){b.className="unselectable";b.setAttribute("unselectable","on");b.onselectstart="return false;"}else{b.className="";b.setAttribute("unselectable",
k.px(a,"marginLeft")-k.px(a,"marginRight")-k.px(a,"borderLeftWidth")-k.px(a,"borderRightWidth")-k.px(a.parentNode,"paddingLeft")-k.px(a.parentNode,"paddingRight"),l=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(b);b=(l=l&&l.length==2?l[1]:"0")?parseFloat(l):0;f=(l=(l=/^\s*(-?\d+(?:\.\d+)?)\s*\%\s*$/.exec(f))&&l.length==2?l[1]:"100000")?parseFloat(l):1E5;return m<b?b-1:m>f?f+1:a.style.styleFloat!=""?b-1:"auto"}else return"auto"};this.hide=function(a){k.getElement(a).style.display="none"};this.inline=function(a){k.getElement(a).style.display= "inline"};this.block=function(a){k.getElement(a).style.display="block"};this.show=function(a){k.getElement(a).style.display=""};var D=null,R=false;this.capture=function(a){Y();D=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){b.className="unselectable";b.setAttribute("unselectable","on");b.onselectstart="return false;"}else{b.className="";b.setAttribute("unselectable","off");b.onselectstart=""}};this.checkReleaseCapture=function(a,b){D&&a==D&&b.type=="mouseup"&&
this.hide=function(a){k.getElement(a).style.display="none"};this.inline=function(a){k.getElement(a).style.display="inline"};this.block=function(a){k.getElement(a).style.display="block"};this.show=function(a){k.getElement(a).style.display=""};var G=null,P=false;this.capture=function(a){F();G=a;var b=document.body;if(b.setCapture)a!=null?b.setCapture():b.releaseCapture();if(a!=null){b.className="unselectable";b.setAttribute("unselectable","on");b.onselectstart="return false;"}else{b.className="";b.setAttribute("unselectable",
var editing = false;
$.fn.inlineTextEdit = function(options) { // define defaults var defaults = { saveUrl: null, current: {}, extraParams: {}, inputClasses: 'inputText', allowEmpty: false, tooltip: 'click to edit' }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // add wrapper and tooltip $(this).html('<span>'+ $(this).html() +'</span><span style="display: none;" class="inlineEditTooltip">'+ options.tooltip +'</span>'); // grab element var element = $($(this).find('span')[0]); // bind events element.bind('click focus', createElement); $(this).hover(function() { $(this).addClass('inlineEditHover'); $($(this).find('span')[1]).show(); }, function() { $(this).removeClass('inlineEditHover'); $($(this).find('span')[1]).hide(); }); // create an element function createElement() { // grab current value options.current.value = element.html(); // grab extra params if($(this).parent().attr('rel') != '') options.current.extraParams = eval('('+ $(this).parent().attr('rel') +')'); // add class element.addClass('inlineEditing'); // remove events element.unbind('click').unbind('focus'); // set html element.html('<input type="text" class="'+ options.inputClasses +'" value="'+ options.current.value +'" />'); // store element options.current.element = $(element.find('input')[0]); // set focus options.current.element.select(); // bind events options.current.element.bind('blur', saveElement); options.current.element.keyup(function(evt) { // handle escape if(evt.which == 27) { // reset options.current.element.val(options.current.value); // destroy destroyElement(); } // save when someone presses enter if(evt.which == 13) saveElement(); }); } // destroy the element function destroyElement() { // get parent var parent = options.current.element.parent(); // set HTML and rebind events parent.html(options.current.element.val()) .bind('click focus', createElement); // add class parent.removeClass('inlineEditing'); } // save the element function saveElement() { // if the new value is empty and that isn't allowed, we restore // the original value if(!options.allowEmpty && options.current.element.val() == '') { options.current.element.val(options.current.value); } // is the value different from the original value if(options.current.element.val() != options.current.value) { // add element to the params options.current.extraParams['value'] = options.current.element.val(); // make the call $.ajax({ url: options.saveUrl, data: options.current.extraParams, success: function(data, textStatus) { // destroy the element destroyElement(); } }); } // destroy the element else destroyElement(); } }); };
editing = false;
$.fn.inlineTextEdit = function(options) { // define defaults var defaults = { saveUrl: null, current: {}, extraParams: {}, inputClasses: 'inputText', allowEmpty: false, tooltip: 'click to edit' }; // extend options var options = $.extend(defaults, options); // loop all elements return this.each(function() { // add wrapper and tooltip $(this).html('<span>'+ $(this).html() +'</span><span style="display: none;" class="inlineEditTooltip">'+ options.tooltip +'</span>'); // grab element var element = $($(this).find('span')[0]); // bind events element.bind('click focus', createElement); $(this).hover(function() { $(this).addClass('inlineEditHover'); $($(this).find('span')[1]).show(); }, function() { $(this).removeClass('inlineEditHover'); $($(this).find('span')[1]).hide(); }); // create an element function createElement() { // grab current value options.current.value = element.html(); // grab extra params if($(this).parent().attr('rel') != '') options.current.extraParams = eval('('+ $(this).parent().attr('rel') +')'); // add class element.addClass('inlineEditing'); // remove events element.unbind('click').unbind('focus'); // set html element.html('<input type="text" class="'+ options.inputClasses +'" value="'+ options.current.value +'" />'); // store element options.current.element = $(element.find('input')[0]); // set focus options.current.element.select(); // bind events options.current.element.bind('blur', saveElement); options.current.element.keyup(function(evt) { // handle escape if(evt.which == 27) { // reset options.current.element.val(options.current.value); // destroy destroyElement(); } // save when someone presses enter if(evt.which == 13) saveElement(); }); } // destroy the element function destroyElement() { // get parent var parent = options.current.element.parent(); // set HTML and rebind events parent.html(options.current.element.val()) .bind('click focus', createElement); // add class parent.removeClass('inlineEditing'); } // save the element function saveElement() { // if the new value is empty and that isn't allowed, we restore // the original value if(!options.allowEmpty && options.current.element.val() == '') { options.current.element.val(options.current.value); } // is the value different from the original value if(options.current.element.val() != options.current.value) { // add element to the params options.current.extraParams['value'] = options.current.element.val(); // make the call $.ajax({ url: options.saveUrl, data: options.current.extraParams, success: function(data, textStatus) { // destroy the element destroyElement(); } }); } // destroy the element else destroyElement(); } }); };
b){return a.nodeType==1&&a.tagName.toUpperCase()===b};this.insertAt=function(a,b,f){a.childNodes.length==0?a.appendChild(b):a.insertBefore(b,a.childNodes[f])};this.remove=function(a){(a=g.getElement(a))&&a.parentNode.removeChild(a)};this.unstub=function(a,b,f){if(f==1){if(a.style.display!="none")b.style.display=a.style.display}else{b.style.position=a.style.position;b.style.left=a.style.left;b.style.visibility=a.style.visibility}if(a.style.height)b.style.height=a.style.height;if(a.style.width)b.style.width=
b){return a.nodeType==1&&a.tagName.toUpperCase()===b};this.insertAt=function(a,b,f){a.childNodes.length==0?a.appendChild(b):a.insertBefore(b,a.childNodes[f])};this.remove=function(a){(a=g.getElement(a))&&a.parentNode.removeChild(a)};this.contains=function(a,b){for(b=b.parentNode;b!=null&&b.tagName.toLowerCase()!="body";){if(b==a)return true;b=b.parentNode}return false};this.unstub=function(a,b,f){if(f==1){if(a.style.display!="none")b.style.display=a.style.display}else{b.style.position=a.style.position;
b){return a.nodeType==1&&a.tagName.toUpperCase()===b};this.insertAt=function(a,b,f){a.childNodes.length==0?a.appendChild(b):a.insertBefore(b,a.childNodes[f])};this.remove=function(a){(a=g.getElement(a))&&a.parentNode.removeChild(a)};this.unstub=function(a,b,f){if(f==1){if(a.style.display!="none")b.style.display=a.style.display}else{b.style.position=a.style.position;b.style.left=a.style.left;b.style.visibility=a.style.visibility}if(a.style.height)b.style.height=a.style.height;if(a.style.width)b.style.width=
case 3:case 4:case 5:return document.createTextNode(n.nodeValue)}return null}if(h.isIE||_$_INNER_HTML_$_&&!e)if(e)a.innerHTML+=b;else a.innerHTML=b;else{var i;i=new DOMParser;i=i.parseFromString("<div>"+b+"</div>","application/xhtml+xml").documentElement;if(i.nodeType!=1)i=i.nextSibling;if(!e)a.innerHTML="";b=0;for(e=i.childNodes.length;b<e;)a.appendChild(k(i.childNodes[b++],true))}};this.hasTag=function(a,b){return a.nodeType==1&&a.tagName.toUpperCase()===b};this.insertAt=function(a,b,e){a.childNodes.length== 0?a.appendChild(b):a.insertBefore(b,a.childNodes[e])};this.unstub=function(a,b,e){if(e==1){if(a.style.display!="none")b.style.display=a.style.display}else{b.style.position=a.style.position;b.style.left=a.style.left;b.style.visibility=a.style.visibility}if(a.style.height)b.style.height=a.style.height;if(a.style.width)b.style.width=a.style.width};this.unwrap=function(a){a=h.getElement(a);if(a.parentNode.className.indexOf("Wt-wrap")==0){var b=a;a=a.parentNode;if(a.className.length>=8)b.className=a.className.substring(8);
case 3:case 4:case 5:return document.createTextNode(n.nodeValue)}return null}if(g.isIE||_$_INNER_HTML_$_&&!e)if(e)a.innerHTML+=b;else a.innerHTML=b;else{var i;i=new DOMParser;i=i.parseFromString("<div>"+b+"</div>","application/xhtml+xml").documentElement;if(i.nodeType!=1)i=i.nextSibling;if(!e)a.innerHTML="";b=0;for(e=i.childNodes.length;b<e;)a.appendChild(j(i.childNodes[b++],true))}};this.hasTag=function(a,b){return a.nodeType==1&&a.tagName.toUpperCase()===b};this.insertAt=function(a,b,e){a.childNodes.length== 0?a.appendChild(b):a.insertBefore(b,a.childNodes[e])};this.unstub=function(a,b,e){if(e==1){if(a.style.display!="none")b.style.display=a.style.display}else{b.style.position=a.style.position;b.style.left=a.style.left;b.style.visibility=a.style.visibility}if(a.style.height)b.style.height=a.style.height;if(a.style.width)b.style.width=a.style.width};this.unwrap=function(a){a=g.getElement(a);if(a.parentNode.className.indexOf("Wt-wrap")==0){var b=a;a=a.parentNode;if(a.className.length>=8)b.className=a.className.substring(8);
case 3:case 4:case 5:return document.createTextNode(n.nodeValue)}return null}if(h.isIE||_$_INNER_HTML_$_&&!e)if(e)a.innerHTML+=b;else a.innerHTML=b;else{var i;i=new DOMParser;i=i.parseFromString("<div>"+b+"</div>","application/xhtml+xml").documentElement;if(i.nodeType!=1)i=i.nextSibling;if(!e)a.innerHTML="";b=0;for(e=i.childNodes.length;b<e;)a.appendChild(k(i.childNodes[b++],true))}};this.hasTag=function(a,b){return a.nodeType==1&&a.tagName.toUpperCase()===b};this.insertAt=function(a,b,e){a.childNodes.length==0?a.appendChild(b):a.insertBefore(b,a.childNodes[e])};this.unstub=function(a,b,e){if(e==1){if(a.style.display!="none")b.style.display=a.style.display}else{b.style.position=a.style.position;b.style.left=a.style.left;b.style.visibility=a.style.visibility}if(a.style.height)b.style.height=a.style.height;if(a.style.width)b.style.width=a.style.width};this.unwrap=function(a){a=h.getElement(a);if(a.parentNode.className.indexOf("Wt-wrap")==0){var b=a;a=a.parentNode;if(a.className.length>=8)b.className=a.className.substring(8);
case 3:case 4:case 5:return document.createTextNode(n.nodeValue)}return null}if(g.isIE||_$_INNER_HTML_$_&&!e)if(e)a.innerHTML+=b;else a.innerHTML=b;else{var i;i=new DOMParser;i=i.parseFromString("<div>"+b+"</div>","application/xhtml+xml").documentElement;if(i.nodeType!=1)i=i.nextSibling;if(!e)a.innerHTML="";b=0;for(e=i.childNodes.length;b<e;)a.appendChild(k(i.childNodes[b++],true))}};this.hasTag=function(a,b){return a.nodeType==1&&a.tagName.toUpperCase()===b};this.insertAt=function(a,b,e){a.childNodes.length== 0?a.appendChild(b):a.insertBefore(b,a.childNodes[e])};this.unstub=function(a,b,e){if(e==1){if(a.style.display!="none")b.style.display=a.style.display}else{b.style.position=a.style.position;b.style.left=a.style.left;b.style.visibility=a.style.visibility}if(a.style.height)b.style.height=a.style.height;if(a.style.width)b.style.width=a.style.width};this.unwrap=function(a){a=g.getElement(a);if(a.parentNode.className.indexOf("Wt-wrap")==0){var b=a;a=a.parentNode;if(a.className.length>=8)b.className=a.className.substring(8);
case 3:case 4:case 5:return document.createTextNode(n.nodeValue)}return null}if(h.isIE||_$_INNER_HTML_$_&&!e)if(e)a.innerHTML+=b;else a.innerHTML=b;else{var i;i=new DOMParser;i=i.parseFromString("<div>"+b+"</div>","application/xhtml+xml").documentElement;if(i.nodeType!=1)i=i.nextSibling;if(!e)a.innerHTML="";b=0;for(e=i.childNodes.length;b<e;)a.appendChild(k(i.childNodes[b++],true))}};this.hasTag=function(a,b){return a.nodeType==1&&a.tagName.toUpperCase()===b};this.insertAt=function(a,b,e){a.childNodes.length== 0?a.appendChild(b):a.insertBefore(b,a.childNodes[e])};this.unstub=function(a,b,e){if(e==1){if(a.style.display!="none")b.style.display=a.style.display}else{b.style.position=a.style.position;b.style.left=a.style.left;b.style.visibility=a.style.visibility}if(a.style.height)b.style.height=a.style.height;if(a.style.width)b.style.width=a.style.width};this.unwrap=function(a){a=h.getElement(a);if(a.parentNode.className.indexOf("Wt-wrap")==0){var b=a;a=a.parentNode;if(a.className.length>=8)b.className=a.className.substring(8);
case 3:case 4:case 5:return document.createTextNode(n.nodeValue)}return null}if(g.isIE||_$_INNER_HTML_$_&&!e)if(e)a.innerHTML+=b;else a.innerHTML=b;else{var i;i=new DOMParser;i=i.parseFromString("<div>"+b+"</div>","application/xhtml+xml").documentElement;if(i.nodeType!=1)i=i.nextSibling;if(!e)a.innerHTML="";b=0;for(e=i.childNodes.length;b<e;)a.appendChild(k(i.childNodes[b++],true))}};this.hasTag=function(a,b){return a.nodeType==1&&a.tagName.toUpperCase()===b};this.insertAt=function(a,b,e){a.childNodes.length==0?a.appendChild(b):a.insertBefore(b,a.childNodes[e])};this.unstub=function(a,b,e){if(e==1){if(a.style.display!="none")b.style.display=a.style.display}else{b.style.position=a.style.position;b.style.left=a.style.left;b.style.visibility=a.style.visibility}if(a.style.height)b.style.height=a.style.height;if(a.style.width)b.style.width=a.style.width};this.unwrap=function(a){a=g.getElement(a);if(a.parentNode.className.indexOf("Wt-wrap")==0){var b=a;a=a.parentNode;if(a.className.length>=8)b.className=a.className.substring(8);
}E=this.endContainer;F=this.endOffset;y=z=null;A=B=false;if(E.type==3){E=!e.trim(E.substring(F)).length&&E;B=!(E&&E.getLength());if(E)if(!(z=E.getNext()))y=E.getParent();}else{z=E.getChild(F);if(!z)y=E;}while(y||z){if(y&&!z){if(!A&&y.equals(u))A=true;if(!v.contains(y))break;if(!B||y.getComputedStyle('display')!='inline'){B=false;if(A)x=y;else if(y)this.setEndAfter(y);}z=y.getNext();}while(z){C=false;if(z.type==3){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;C=/^[\s\ufeff]/.test(D);}else if(z.$.offsetWidth>0&&!z.getAttribute('_fck_bookmark'))if(B&&f.$removeEmpty[z.getName()]){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;else{G=z.$.all||z.$.getElementsByTagName('*');for(H=0;I=G[H++];){if(!f.$removeEmpty[I.nodeName.toLowerCase()]){z=null;break;}}}if(z)C=!!D.length;}else z=null;if(C)if(B)if(A)x=y;else this.setEndAfter(y);if(z){J=z.getNext();if(!y&&!J){y=z;z=null;break;}z=J;}else y=null;}if(y)y=y.getParent();}if(w&&x){u=w.contains(x)?x:w;this.setStartBefore(u);this.setEndAfter(u);}break;case 2:case 3:var K=new d.range(this.document);v=this.document.getBody();K.setStartAt(v,1);K.setEnd(this.startContainer,this.startOffset);var L=new d.walker(K),M,N,O=d.walker.blockBoundary(t==3?{br:1}:null),P=function(R){var S=O(R);if(!S)M=R;return S;},Q=function(R){var S=P(R);if(!S&&R.is&&R.is('br'))N=R;return S;};L.guard=P;y=L.lastBackward();M=M||v;this.setStartAt(M,!M.is('br')&&(!y&&this.checkStartOfBlock()||y&&M.contains(y))?1:4);K=this.clone();K.collapse();K.setEndAt(v,2);L=new d.walker(K);L.guard=t==3?Q:P;M=null;y=L.lastForward();M=M||v;this.setEndAt(M,!y&&this.checkEndOfBlock()||y&&M.contains(y)?2:3);if(N)this.setEndAfter(N);}},shrink:function(t){if(!this.collapsed){t=t||a.SHRINK_TEXT;var u=this.clone(),v=this.startContainer,w=this.endContainer,x=this.startOffset,y=this.endOffset,z=this.collapsed,A=1,B=1;if(v&&v.type==3)if(!x)u.setStartBefore(v);else if(x>=v.getLength())u.setStartAfter(v);else{u.setStartBefore(v);A=0;}if(w&&w.type==3)if(!y)u.setEndBefore(w);else if(y>=w.getLength())u.setEndAfter(w);else{u.setEndAfter(w);B=0;}var C=new d.walker(u);C.evaluator=function(G){return G.type==(t==a.SHRINK_ELEMENT?1:3);};var D;C.guard=function(G,H){if(t==a.SHRINK_ELEMENT&&G.type==3)return false;if(H&&G.equals(D))return false;if(!H&&G.type==1)D=G;return true;};if(A){var E=C[t==a.SHRINK_ELEMENT?'lastForward':'next']();E&&this.setStartBefore(E);}if(B){C.reset();var F=C[t==a.SHRINK_ELEMENT?'lastBackward':'previous']();F&&this.setEndAfter(F);}return!!(A||B);}},insertNode:function(t){var x=this; x.optimizeBookmark();x.trim(false,true);var u=x.startContainer,v=x.startOffset,w=u.getChild(v);if(w)t.insertBefore(w);else u.append(t);if(t.getParent().equals(x.endContainer))x.endOffset++;x.setStartBefore(t);},moveToPosition:function(t,u){this.setStartAt(t,u);this.collapse(true);},selectNodeContents:function(t){this.setStart(t,0);this.setEnd(t,t.type==3?t.getLength():t.getChildCount());},setStart:function(t,u){var v=this;v.startContainer=t;v.startOffset=u;if(!v.endContainer){v.endContainer=t;v.endOffset=u;}l(v);},setEnd:function(t,u){var v=this;v.endContainer=t;v.endOffset=u;if(!v.startContainer){v.startContainer=t;v.startOffset=u;}l(v);},setStartAfter:function(t){this.setStart(t.getParent(),t.getIndex()+1);},setStartBefore:function(t){this.setStart(t.getParent(),t.getIndex());},setEndAfter:function(t){this.setEnd(t.getParent(),t.getIndex()+1);},setEndBefore:function(t){this.setEnd(t.getParent(),t.getIndex());},setStartAt:function(t,u){var v=this;switch(u){case 1:v.setStart(t,0);break;case 2:if(t.type==3)v.setStart(t,t.getLength());else v.setStart(t,t.getChildCount());break;case 3:v.setStartBefore(t);break;case 4:v.setStartAfter(t);}l(v);},setEndAt:function(t,u){var v=this;switch(u){case 1:v.setEnd(t,0);break;case 2:if(t.type==3)v.setEnd(t,t.getLength());else v.setEnd(t,t.getChildCount());break;case 3:v.setEndBefore(t);break;case 4:v.setEndAfter(t);}l(v);},fixBlock:function(t,u){var x=this;var v=x.createBookmark(),w=x.document.createElement(u);x.collapse(t);x.enlarge(2);x.extractContents().appendTo(w);w.trim();if(!c)w.appendBogus();x.insertNode(w);x.moveToBookmark(v);return w;},splitBlock:function(t){var D=this;var u=new d.elementPath(D.startContainer),v=new d.elementPath(D.endContainer),w=u.blockLimit,x=v.blockLimit,y=u.block,z=v.block,A=null;if(!w.equals(x))return null;if(t!='br'){if(!y){y=D.fixBlock(true,t);z=new d.elementPath(D.endContainer).block;}if(!z)z=D.fixBlock(false,t);}var B=y&&D.checkStartOfBlock(),C=z&&D.checkEndOfBlock();D.deleteContents();if(y&&y.equals(z))if(C){A=new d.elementPath(D.startContainer);D.moveToPosition(z,4);z=null;}else if(B){A=new d.elementPath(D.startContainer);D.moveToPosition(y,3);y=null;}else{z=D.splitElement(y);if(!c&&!y.is('ul','ol'))y.appendBogus();}return{previousBlock:y,nextBlock:z,wasStartOfBlock:B,wasEndOfBlock:C,elementPath:A};},splitElement:function(t){var w=this;if(!w.collapsed)return null;w.setEndAt(t,2);var u=w.extractContents(),v=t.clone(false);u.appendTo(v);v.insertAfter(t);w.moveToPosition(t,4);return v;},checkBoundaryOfElement:function(t,u){var v=this.clone();
}z=J;}else y=null;}if(y)y=y.getParent();}E=this.endContainer;F=this.endOffset;y=z=null;A=B=false;if(E.type==3){E=!e.trim(E.substring(F)).length&&E;B=!(E&&E.getLength());if(E)if(!(z=E.getNext()))y=E.getParent();}else{z=E.getChild(F);if(!z)y=E;}while(y||z){if(y&&!z){if(!A&&y.equals(u))A=true;if(!v.contains(y))break;if(!B||y.getComputedStyle('display')!='inline'){B=false;if(A)x=y;else if(y)this.setEndAfter(y);}z=y.getNext();}while(z){C=false;if(z.type==3){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;C=/^[\s\ufeff]/.test(D);}else if(z.$.offsetWidth>0&&!z.getAttribute('_cke_bookmark'))if(B&&f.$removeEmpty[z.getName()]){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;else{G=z.$.all||z.$.getElementsByTagName('*');for(H=0;I=G[H++];){if(!f.$removeEmpty[I.nodeName.toLowerCase()]){z=null;break;}}}if(z)C=!!D.length;}else z=null;if(C)if(B)if(A)x=y;else this.setEndAfter(y);if(z){J=z.getNext();if(!y&&!J){y=z;z=null;break;}z=J;}else y=null;}if(y)y=y.getParent();}if(w&&x){u=w.contains(x)?x:w;this.setStartBefore(u);this.setEndAfter(u);}break;case 2:case 3:var K=new d.range(this.document);v=this.document.getBody();K.setStartAt(v,1);K.setEnd(this.startContainer,this.startOffset);var L=new d.walker(K),M,N,O=d.walker.blockBoundary(t==3?{br:1}:null),P=function(R){var S=O(R);if(!S)M=R;return S;},Q=function(R){var S=P(R);if(!S&&R.is&&R.is('br'))N=R;return S;};L.guard=P;y=L.lastBackward();M=M||v;this.setStartAt(M,!M.is('br')&&(!y&&this.checkStartOfBlock()||y&&M.contains(y))?1:4);K=this.clone();K.collapse();K.setEndAt(v,2);L=new d.walker(K);L.guard=t==3?Q:P;M=null;y=L.lastForward();M=M||v;this.setEndAt(M,!y&&this.checkEndOfBlock()||y&&M.contains(y)?2:3);if(N)this.setEndAfter(N);}},shrink:function(t,u){if(!this.collapsed){t=t||2;var v=this.clone(),w=this.startContainer,x=this.endContainer,y=this.startOffset,z=this.endOffset,A=this.collapsed,B=1,C=1;if(w&&w.type==3)if(!y)v.setStartBefore(w);else if(y>=w.getLength())v.setStartAfter(w);else{v.setStartBefore(w);B=0;}if(x&&x.type==3)if(!z)v.setEndBefore(x);else if(z>=x.getLength())v.setEndAfter(x);else{v.setEndAfter(x);C=0;}var D=new d.walker(v);D.evaluator=function(H){return H.type==(t==1?1:3);};var E;D.guard=function(H,I){if(t==1&&H.type==3)return false;if(I&&H.equals(E))return false;if(!I&&H.type==1)E=H;return true;};if(B){var F=D[t==1?'lastForward':'next']();F&&this.setStartAt(F,u?1:3);}if(C){D.reset();var G=D[t==1?'lastBackward':'previous']();G&&this.setEndAt(G,u?2:4);}return!!(B||C);}},insertNode:function(t){var x=this;x.optimizeBookmark(); x.trim(false,true);var u=x.startContainer,v=x.startOffset,w=u.getChild(v);if(w)t.insertBefore(w);else u.append(t);if(t.getParent().equals(x.endContainer))x.endOffset++;x.setStartBefore(t);},moveToPosition:function(t,u){this.setStartAt(t,u);this.collapse(true);},selectNodeContents:function(t){this.setStart(t,0);this.setEnd(t,t.type==3?t.getLength():t.getChildCount());},setStart:function(t,u){var v=this;if(t.type==1&&f.$empty[t.getName()])t=t.getParent(),u=t.getIndex();v.startContainer=t;v.startOffset=u;if(!v.endContainer){v.endContainer=t;v.endOffset=u;}l(v);},setEnd:function(t,u){var v=this;if(t.type==1&&f.$empty[t.getName()])t=t.getParent(),u=t.getIndex()+1;v.endContainer=t;v.endOffset=u;if(!v.startContainer){v.startContainer=t;v.startOffset=u;}l(v);},setStartAfter:function(t){this.setStart(t.getParent(),t.getIndex()+1);},setStartBefore:function(t){this.setStart(t.getParent(),t.getIndex());},setEndAfter:function(t){this.setEnd(t.getParent(),t.getIndex()+1);},setEndBefore:function(t){this.setEnd(t.getParent(),t.getIndex());},setStartAt:function(t,u){var v=this;switch(u){case 1:v.setStart(t,0);break;case 2:if(t.type==3)v.setStart(t,t.getLength());else v.setStart(t,t.getChildCount());break;case 3:v.setStartBefore(t);break;case 4:v.setStartAfter(t);}l(v);},setEndAt:function(t,u){var v=this;switch(u){case 1:v.setEnd(t,0);break;case 2:if(t.type==3)v.setEnd(t,t.getLength());else v.setEnd(t,t.getChildCount());break;case 3:v.setEndBefore(t);break;case 4:v.setEndAfter(t);}l(v);},fixBlock:function(t,u){var x=this;var v=x.createBookmark(),w=x.document.createElement(u);x.collapse(t);x.enlarge(2);x.extractContents().appendTo(w);w.trim();if(!c)w.appendBogus();x.insertNode(w);x.moveToBookmark(v);return w;},splitBlock:function(t){var D=this;var u=new d.elementPath(D.startContainer),v=new d.elementPath(D.endContainer),w=u.blockLimit,x=v.blockLimit,y=u.block,z=v.block,A=null;if(!w.equals(x))return null;if(t!='br'){if(!y){y=D.fixBlock(true,t);z=new d.elementPath(D.endContainer).block;}if(!z)z=D.fixBlock(false,t);}var B=y&&D.checkStartOfBlock(),C=z&&D.checkEndOfBlock();D.deleteContents();if(y&&y.equals(z))if(C){A=new d.elementPath(D.startContainer);D.moveToPosition(z,4);z=null;}else if(B){A=new d.elementPath(D.startContainer);D.moveToPosition(y,3);y=null;}else{z=D.splitElement(y);if(!c&&!y.is('ul','ol'))y.appendBogus();}return{previousBlock:y,nextBlock:z,wasStartOfBlock:B,wasEndOfBlock:C,elementPath:A};},splitElement:function(t){var w=this;if(!w.collapsed)return null;w.setEndAt(t,2);
}E=this.endContainer;F=this.endOffset;y=z=null;A=B=false;if(E.type==3){E=!e.trim(E.substring(F)).length&&E;B=!(E&&E.getLength());if(E)if(!(z=E.getNext()))y=E.getParent();}else{z=E.getChild(F);if(!z)y=E;}while(y||z){if(y&&!z){if(!A&&y.equals(u))A=true;if(!v.contains(y))break;if(!B||y.getComputedStyle('display')!='inline'){B=false;if(A)x=y;else if(y)this.setEndAfter(y);}z=y.getNext();}while(z){C=false;if(z.type==3){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;C=/^[\s\ufeff]/.test(D);}else if(z.$.offsetWidth>0&&!z.getAttribute('_fck_bookmark'))if(B&&f.$removeEmpty[z.getName()]){D=z.getText();if(/[^\s\ufeff]/.test(D))z=null;else{G=z.$.all||z.$.getElementsByTagName('*');for(H=0;I=G[H++];){if(!f.$removeEmpty[I.nodeName.toLowerCase()]){z=null;break;}}}if(z)C=!!D.length;}else z=null;if(C)if(B)if(A)x=y;else this.setEndAfter(y);if(z){J=z.getNext();if(!y&&!J){y=z;z=null;break;}z=J;}else y=null;}if(y)y=y.getParent();}if(w&&x){u=w.contains(x)?x:w;this.setStartBefore(u);this.setEndAfter(u);}break;case 2:case 3:var K=new d.range(this.document);v=this.document.getBody();K.setStartAt(v,1);K.setEnd(this.startContainer,this.startOffset);var L=new d.walker(K),M,N,O=d.walker.blockBoundary(t==3?{br:1}:null),P=function(R){var S=O(R);if(!S)M=R;return S;},Q=function(R){var S=P(R);if(!S&&R.is&&R.is('br'))N=R;return S;};L.guard=P;y=L.lastBackward();M=M||v;this.setStartAt(M,!M.is('br')&&(!y&&this.checkStartOfBlock()||y&&M.contains(y))?1:4);K=this.clone();K.collapse();K.setEndAt(v,2);L=new d.walker(K);L.guard=t==3?Q:P;M=null;y=L.lastForward();M=M||v;this.setEndAt(M,!y&&this.checkEndOfBlock()||y&&M.contains(y)?2:3);if(N)this.setEndAfter(N);}},shrink:function(t){if(!this.collapsed){t=t||a.SHRINK_TEXT;var u=this.clone(),v=this.startContainer,w=this.endContainer,x=this.startOffset,y=this.endOffset,z=this.collapsed,A=1,B=1;if(v&&v.type==3)if(!x)u.setStartBefore(v);else if(x>=v.getLength())u.setStartAfter(v);else{u.setStartBefore(v);A=0;}if(w&&w.type==3)if(!y)u.setEndBefore(w);else if(y>=w.getLength())u.setEndAfter(w);else{u.setEndAfter(w);B=0;}var C=new d.walker(u);C.evaluator=function(G){return G.type==(t==a.SHRINK_ELEMENT?1:3);};var D;C.guard=function(G,H){if(t==a.SHRINK_ELEMENT&&G.type==3)return false;if(H&&G.equals(D))return false;if(!H&&G.type==1)D=G;return true;};if(A){var E=C[t==a.SHRINK_ELEMENT?'lastForward':'next']();E&&this.setStartBefore(E);}if(B){C.reset();var F=C[t==a.SHRINK_ELEMENT?'lastBackward':'previous']();F&&this.setEndAfter(F);}return!!(A||B);}},insertNode:function(t){var x=this;x.optimizeBookmark();x.trim(false,true);var u=x.startContainer,v=x.startOffset,w=u.getChild(v);if(w)t.insertBefore(w);else u.append(t);if(t.getParent().equals(x.endContainer))x.endOffset++;x.setStartBefore(t);},moveToPosition:function(t,u){this.setStartAt(t,u);this.collapse(true);},selectNodeContents:function(t){this.setStart(t,0);this.setEnd(t,t.type==3?t.getLength():t.getChildCount());},setStart:function(t,u){var v=this;v.startContainer=t;v.startOffset=u;if(!v.endContainer){v.endContainer=t;v.endOffset=u;}l(v);},setEnd:function(t,u){var v=this;v.endContainer=t;v.endOffset=u;if(!v.startContainer){v.startContainer=t;v.startOffset=u;}l(v);},setStartAfter:function(t){this.setStart(t.getParent(),t.getIndex()+1);},setStartBefore:function(t){this.setStart(t.getParent(),t.getIndex());},setEndAfter:function(t){this.setEnd(t.getParent(),t.getIndex()+1);},setEndBefore:function(t){this.setEnd(t.getParent(),t.getIndex());},setStartAt:function(t,u){var v=this;switch(u){case 1:v.setStart(t,0);break;case 2:if(t.type==3)v.setStart(t,t.getLength());else v.setStart(t,t.getChildCount());break;case 3:v.setStartBefore(t);break;case 4:v.setStartAfter(t);}l(v);},setEndAt:function(t,u){var v=this;switch(u){case 1:v.setEnd(t,0);break;case 2:if(t.type==3)v.setEnd(t,t.getLength());else v.setEnd(t,t.getChildCount());break;case 3:v.setEndBefore(t);break;case 4:v.setEndAfter(t);}l(v);},fixBlock:function(t,u){var x=this;var v=x.createBookmark(),w=x.document.createElement(u);x.collapse(t);x.enlarge(2);x.extractContents().appendTo(w);w.trim();if(!c)w.appendBogus();x.insertNode(w);x.moveToBookmark(v);return w;},splitBlock:function(t){var D=this;var u=new d.elementPath(D.startContainer),v=new d.elementPath(D.endContainer),w=u.blockLimit,x=v.blockLimit,y=u.block,z=v.block,A=null;if(!w.equals(x))return null;if(t!='br'){if(!y){y=D.fixBlock(true,t);z=new d.elementPath(D.endContainer).block;}if(!z)z=D.fixBlock(false,t);}var B=y&&D.checkStartOfBlock(),C=z&&D.checkEndOfBlock();D.deleteContents();if(y&&y.equals(z))if(C){A=new d.elementPath(D.startContainer);D.moveToPosition(z,4);z=null;}else if(B){A=new d.elementPath(D.startContainer);D.moveToPosition(y,3);y=null;}else{z=D.splitElement(y);if(!c&&!y.is('ul','ol'))y.appendBogus();}return{previousBlock:y,nextBlock:z,wasStartOfBlock:B,wasEndOfBlock:C,elementPath:A};},splitElement:function(t){var w=this;if(!w.collapsed)return null;w.setEndAt(t,2);var u=w.extractContents(),v=t.clone(false);u.appendTo(v);v.insertAfter(t);w.moveToPosition(t,4);return v;},checkBoundaryOfElement:function(t,u){var v=this.clone();
try { var abcdiv = $("<div></div>"); $(node).before(abcdiv); var tunebook = new AbcTuneBook(abcstring); var abcParser = new AbcParse(); abcParser.parse(tunebook.tunes[0].abc); var tune = abcParser.getTune(); try { var paper = Raphael(abcdiv.get(0), 800, 400); var printer = new ABCPrinter(paper); printer.printABC(tune); } catch (ex) { abcdiv.remove(); abcdiv = $("<div></div>"); var paper = Raphael(abcdiv.get(0), 800, 400); var printer = new ABCPrinter(paper); printer.printABC(tune); $(node).before(abcdiv); } if (ABCMidiWriter && abc_plugin.show_midi) { midiwriter = new ABCMidiWriter(abcdiv.get(0)); midiwriter.writeABC(tune); } } catch (e) { abc_plugin_errors+=e; }
var abcdiv = $("<div></div>"); $(node).before(abcdiv); addScore(abcdiv,abcstring);
function insertScoreBefore(node, abcstring) { try { var abcdiv = $("<div></div>"); $(node).before(abcdiv); var tunebook = new AbcTuneBook(abcstring); var abcParser = new AbcParse(); abcParser.parse(tunebook.tunes[0].abc); var tune = abcParser.getTune(); try { var paper = Raphael(abcdiv.get(0), 800, 400); var printer = new ABCPrinter(paper); printer.printABC(tune); } catch (ex) { // f*** internet explorer doesn't like innerHTML in weird situations abcdiv.remove(); abcdiv = $("<div></div>"); var paper = Raphael(abcdiv.get(0), 800, 400); var printer = new ABCPrinter(paper); printer.printABC(tune); $(node).before(abcdiv); } if (ABCMidiWriter && abc_plugin.show_midi) { midiwriter = new ABCMidiWriter(abcdiv.get(0)); midiwriter.writeABC(tune); } } catch (e) { abc_plugin_errors+=e; }}
var paper = Raphael(abcdiv.get(0), 800, 400); var printer = new ABCPrinter(paper); printer.printABC(tune);
try { var paper = Raphael(abcdiv.get(0), 800, 400); var printer = new ABCPrinter(paper); printer.printABC(tune); } catch (ex) { abcdiv.remove(); abcdiv = $("<div></div>"); var paper = Raphael(abcdiv.get(0), 800, 400); var printer = new ABCPrinter(paper); printer.printABC(tune); $(node).before(abcdiv); }
function insertScoreBefore(node, abcstring) { try { var abcdiv = $("<div></div>"); $(node).before(abcdiv); var tunebook = new AbcTuneBook(abcstring); var abcParser = new AbcParse(); abcParser.parse(tunebook.tunes[0].abc); var tune = abcParser.getTune(); var paper = Raphael(abcdiv.get(0), 800, 400); var printer = new ABCPrinter(paper); printer.printABC(tune); if (ABCMidiWriter && abc_plugin.show_midi) { midiwriter = new ABCMidiWriter(abcdiv.get(0)); midiwriter.writeABC(tune); } } catch (e) { abc_plugin_errors+=e; }}
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);
if(l.execCommand('paste')===false)l.on('dialogHide',function(o){o.removeListener();n();});else n();}});l.ui.addButton('PasteFromWord',{label:l.lang.pastefromword.toolbar,command:'pastefromword'});l.on('paste',function(o){var p=o.data,q;if((q=p.html)&&(m||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(q))){var r=this.loadFilterRules(function(){if(r)l.fire('paste',p);else if(!l.config.pasteFromWordPromptCleanup||m||confirm(l.lang.pastefromword.confirmCleanup))p.html=a.cleanWord(q,l);});r&&o.cancel();}},this);},loadFilterRules:function(l){var m=a.cleanWord;if(m)l();else{var n=a.getUrl(i.pasteFromWordCleanupFile||this.path+'filter/default.js');a.scriptLoader.load(n,l,null,false,true);}return!m;}});})();(function(){var l={exec:function(o){var p=e.tryThese(function(){var q=window.clipboardData.getData('Text');if(!q)throw 0;return q;});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,o){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 p=parseInt((window.screen.height-n)/2,10),q=parseInt((window.screen.width-m)/2,10);o=(o||'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes')+',width='+m+',height='+n+',top='+p+',left='+q;
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);
zpi.success();
this.install = function(zpi) { // get Zotero.dot file var dot = zpi.getAddonPath(this.EXTENSION_ID); dot.append("install"); dot.append("Zotero.dot"); // find Word Startup folders (see http://support.microsoft.com/kb/210860) var appData = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interfaces.nsIProperties) .get("AppData", Components.interfaces.nsILocalFile); // first check the registry for a custom startup folder var startupFolders = []; var addDefaultStartupFolder = false; var wrk = Components.classes["@mozilla.org/windows-registry-key;1"] .createInstance(Components.interfaces.nsIWindowsRegKey); for(var i=9; i<=13; i++) { var path = null; try { wrk.open(Components.interfaces.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER, "Software\\Microsoft\\Office\\"+i+".0\\Word\\Options", Components.interfaces.nsIWindowsRegKey.ACCESS_READ); try { path = wrk.readStringValue("STARTUP-PATH"); } finally { wrk.close(); } } catch(e) {} // create nsIFile from path in registry if(path) { try { var startupFolder = Components.classes["@mozilla.org/file/local;1"]. createInstance(Components.interfaces.nsILocalFile); startupFolder.initWithPath(path); startupFolders.push(startupFolder); } catch(e) { addDefaultStartupFolder = true; } } else { try { wrk.open(Components.interfaces.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER, "Software\\Microsoft\\Office\\"+i+".0\\Common\\General", Components.interfaces.nsIWindowsRegKey.ACCESS_READ); try { var startup = wrk.readStringValue("Startup"); var startupFolder = appData.clone().QueryInterface(Components.interfaces.nsILocalFile); startupFolder.appendRelativePath("Microsoft\\Word\\"+startup); startupFolders.push(startupFolder); } finally { wrk.close(); } } catch(e) { addDefaultStartupFolder = true; } } } if(startupFolders.length == 0 || addDefaultStartupFolder) { // if not in the registry, append Microsoft/Word/Startup to %AppData% (default location) var startupFolder = appData.clone().QueryInterface(Components.interfaces.nsILocalFile); startupFolder.appendRelativePath("Microsoft\\Word\\Startup"); startupFolders.push(startupFolder); } for each(var startupFolder in startupFolders) { var oldDot = startupFolder.clone().QueryInterface(Components.interfaces.nsILocalFile); oldDot.append("Zotero.dot"); if(oldDot.exists()) oldDot.remove(false); // copy Zotero.dot file to Word Startup folder dot.copyTo(startupFolder, "Zotero.dot"); } }
document.getElementById('').setAttribute('hidden', false);
showSection('ERRORInstallDownloadFailed'); } else if (error == "ERRORInstallDownloadChecksumFailed") { showSection('ERRORInstallDownloadFailed');
function installationError(error){ if (error == "ERRORInstallDownloadFailed") { document.getElementById('').setAttribute('hidden', false); } else { //TODO: refresh whole page }}
showSection('ERRORInstallButtonMain');
function installationError(error){ if (error == "ERRORInstallDownloadFailed") { document.getElementById('').setAttribute('hidden', false); } else { //TODO: refresh whole page }}
showSection('restartInstallationOption'); resetInstallation();
function installationError(error){ if (error == "ERRORInstallDownloadFailed") { document.getElementById('').setAttribute('hidden', false); } else { //TODO: refresh whole page }}
if (!$(id + '_id_' + tag)) { return null; }
function instantiate_rainbow(id, tag){ return (new MooRainbow(id + '_id_' + tag, { 'startColor': [58, 142, 246], 'id': 'my' + id + '_id_' + tag, 'textareaId': id, 'tag': tag, 'onStart': function(color) { for (var i = 0; i < rainbow_i; i++) { if (rainbow_box[i] != this) { rainbow_box[i].hide(rainbow_box[i].layout); } } }, 'onComplete': function(color) { textEditor['' + this.options.textareaId].add(tag + '=' + color.hex); }, 'onLayout': function() { var colors = [ ['#000000', '#ff0000', '#ffff00', '#00ff00', '#00ffff', '#0000ff', '#ff00ff'], ['#202020', '#800000', '#808000', '#008000', '#008080', '#000080', '#800080'], ['#404040', '#c00000', '#c0c000', '#00c000', '#00c0c0', '#0000c0', '#c000c0'], ['#808080', '#ff4040', '#ffff40', '#40ff40', '#40ffff', '#4040ff', '#ff40ff'], ['#c0c0c0', '#ff8080', '#ffff80', '#80ff80', '#80ffff', '#8080ff', '#ff80ff'], ['#ffffff', '#ffc0c0', '#ffffc0', '#c0ffc0', '#c0ffff', '#c0c0ff', '#ffc0ff'] ]; var html = ''; html += '<table cellspacing="1" cellpadding="0" style="width: 95px; border-spacing: 1px">'; for (var i = 0; i < 7; i++) { html += '<tr>'; for (var j = 0; j < 6; j++) { attr = "textEditor['" + this.options.textareaId + "'].add('" + this.options.tag + "=" + colors[j][i] + "');"; attr += 'for (var i = 0; i < rainbow_i; i++){rainbow_box[i].hide(rainbow_box[i].layout);}'; html += '<td onclick="' + attr + '" onmouseover="this.style.cursor=\'pointer\';" style="width: 15px; height: 15px; background: ' + colors[j][i] + ';"></td>'; } html += '</tr>'; } html += '</table>'; this.layout.innerHTML = this.layout.innerHTML + '<div class="moor-defaultColors">' + html + '</div>'; } }));}
internalOnDataChanged : function(store) { this.getStore().copyFrom(store, this.cswRecordFilter);
internalOnDataChanged : function() { this.getStore().copyFrom(this.initialConfig.originalStore, this.cswRecordFilter);
internalOnDataChanged : function(store) { this.getStore().copyFrom(store, this.cswRecordFilter); }
console.debug(placeholder)
I18n.interpolate = function(message, options) { options = this.prepareOptions(options); var matches = message.match(this.PLACEHOLDER); if (!matches) { return message; } var placeholder, value, name; for (var i = 0; placeholder = matches[i]; i++) { console.debug(placeholder) name = placeholder.replace(this.PLACEHOLDER, "$1"); console.debug(name) value = options[name]; if (options[name] == null || options[name] == undefined) { value = "[missing " + placeholder + " value]"; } regex = new RegExp(placeholder.replace(/\{/gm, "\\{").replace(/\}/gm, "\\}")); message = message.replace(regex, value); } return message;};
console.debug(name)
I18n.interpolate = function(message, options) { options = this.prepareOptions(options); var matches = message.match(this.PLACEHOLDER); if (!matches) { return message; } var placeholder, value, name; for (var i = 0; placeholder = matches[i]; i++) { console.debug(placeholder) name = placeholder.replace(this.PLACEHOLDER, "$1"); console.debug(name) value = options[name]; if (options[name] == null || options[name] == undefined) { value = "[missing " + placeholder + " value]"; } regex = new RegExp(placeholder.replace(/\{/gm, "\\{").replace(/\}/gm, "\\}")); message = message.replace(regex, value); } return message;};
input.trigger("oninvalid", [val]);
input.trigger("OI", [val]);
invalidate: function(errs, e) { // errors are given manually: { fieldName1: 'message1', fieldName2: 'message2' } if (!e) { var errors = []; $.each(errs, function(key, val) { var input = inputs.filter("[name=" + key + "]"); if (input.length) { // trigger HTML5 ininvalid event input.trigger("oninvalid", [val]); errors.push({ input: input, messages: [val]}); } }); errs = errors; e = $.Event(); } // onFail callback e.type = "onFail"; fire.trigger(e, [errs]); // call the effect if (!e.isDefaultPrevented()) { effects[conf.effect][0].call(self, errs, e); } return self; },
i.appendChild(j.$.cloneNode(true));return i.innerHTML;},setHtml:function(i){return this.$.innerHTML=i;},setText:function(i){h.prototype.setText=this.$.innerText!=undefined?function(j){return this.$.innerText=j;}:function(j){return this.$.textContent=j;};return this.setText(i);},getAttribute:(function(){var i=function(j){return this.$.getAttribute(j,2);};if(c&&(b.ie7Compat||b.ie6Compat))return function(j){var n=this;switch(j){case 'class':j='className';break;case 'tabindex':var k=i.call(n,j);if(k!==0&&n.$.tabIndex===0)k=null;return k;break;case 'checked':var l=n.$.attributes.getNamedItem(j),m=l.specified?l.nodeValue:n.$.checked;return m?'checked':null;case 'hspace':return n.$.hspace;case 'style':return n.$.style.cssText;}return i.call(n,j);};else return i;})(),getChildren:function(){return new d.nodeList(this.$.childNodes);},getComputedStyle:c?function(i){return this.$.currentStyle[e.cssStyleToDomStyle(i)];}:function(i){return this.getWindow().$.getComputedStyle(this.$,'').getPropertyValue(i);},getDtd:function(){var i=f[this.getName()];this.getDtd=function(){return i;};return i;},getElementsByTag:g.prototype.getElementsByTag,getTabIndex:c?function(){var i=this.$.tabIndex;if(i===0&&!f.$tabIndex[this.getName()]&&parseInt(this.getAttribute('tabindex'),10)!==0)i=-1;return i;}:b.webkit?function(){var i=this.$.tabIndex;if(i==undefined){i=parseInt(this.getAttribute('tabindex'),10);if(isNaN(i))i=-1;}return i;}:function(){return this.$.tabIndex;},getText:function(){return this.$.textContent||this.$.innerText||'';},getWindow:function(){return this.getDocument().getWindow();},getId:function(){return this.$.id||null;},getNameAtt:function(){return this.$.name||null;},getName:function(){var i=this.$.nodeName.toLowerCase();if(c){var j=this.$.scopeName;if(j!='HTML')i=j.toLowerCase()+':'+i;}return(this.getName=function(){return i;})();},getValue:function(){return this.$.value;},getFirst:function(i){var j=this.$.firstChild,k=j&&new d.node(j);if(k&&i&&!i(k))k=k.getNext(i);return k;},getLast:function(i){var j=this.$.lastChild,k=j&&new d.node(j);if(k&&i&&!i(k))k=k.getPrevious(i);return k;},getStyle:function(i){return this.$.style[e.cssStyleToDomStyle(i)];},is:function(){var i=this.getName();for(var j=0;j<arguments.length;j++){if(arguments[j]==i)return true;}return false;},isEditable:function(){var i=this.getName(),j=!f.$nonEditable[i]&&(f[i]||f.span);return j&&j['#'];},isIdentical:function(i){if(this.getName()!=i.getName())return false;var j=this.$.attributes,k=i.$.attributes,l=j.length,m=k.length;
},is:function(){var i=this.getName();for(var j=0;j<arguments.length;j++){if(arguments[j]==i)return true;}return false;},isEditable:function(){var i=this.getName(),j=!f.$nonEditable[i]&&(f[i]||f.span);return j&&j['#'];},isIdentical:function(i){if(this.getName()!=i.getName())return false;var j=this.$.attributes,k=i.$.attributes,l=j.length,m=k.length;if(!c&&l!=m)return false;for(var n=0;n<l;n++){var o=j[n];if((!c||o.specified&&o.nodeName!='_cke_expando')&&o.nodeValue!=i.getAttribute(o.nodeName))return false;}if(c)for(n=0;n<m;n++){o=k[n];if(o.specified&&o.nodeName!='_cke_expando'&&o.nodeValue!=this.getAttribute(o.nodeName))return false;}return true;},isVisible:function(){var i=!!this.$.offsetHeight&&this.getComputedStyle('visibility')!='hidden',j,k;if(i&&(b.webkit||b.opera)){j=this.getWindow();if(!j.equals(a.document.getWindow())&&(k=j.$.frameElement))i=new h(k).isVisible();}return i;},isEmptyInlineRemoveable:function(){if(!f.$removeEmpty[this.getName()])return false;var i=this.getChildren();for(var j=0,k=i.count();j<k;j++){var l=i.getItem(j);if(l.type==1&&l.getAttribute('_cke_bookmark'))continue;if(l.type==1&&!l.isEmptyInlineRemoveable()||l.type==3&&e.trim(l.getText()))return false;}return true;},hasAttributes:c&&(b.ie7Compat||b.ie6Compat)?function(){var i=this.$.attributes;for(var j=0;j<i.length;j++){var k=i[j];switch(k.nodeName){case 'class':if(this.getAttribute('class'))return true;case '_cke_expando':continue;default:if(k.specified)return true;}}return false;}:function(){var i=this.$.attributes,j=i.length,k={_cke_expando:1,_moz_dirty:1};return j>0&&(j>2||!k[i[0].nodeName]||j==2&&!k[i[1].nodeName]);},hasAttribute:function(i){var j=this.$.attributes.getNamedItem(i);return!!(j&&j.specified);},hide:function(){this.setStyle('display','none');},moveChildren:function(i,j){var k=this.$;i=i.$;if(k==i)return;var l;if(j)while(l=k.lastChild)i.insertBefore(k.removeChild(l),i.firstChild);else while(l=k.firstChild)i.appendChild(k.removeChild(l));},mergeSiblings:(function(){function i(j,k,l){if(k&&k.type==1){var m=[];while(k.getAttribute('_cke_bookmark')||k.isEmptyInlineRemoveable()){m.push(k);k=l?k.getNext():k.getPrevious();if(!k||k.type!=1)return;}if(j.isIdentical(k)){var n=l?j.getLast():j.getFirst();while(m.length)m.shift().move(j,!l);k.moveChildren(j,!l);k.remove();if(n&&n.type==1)n.mergeSiblings();}}};return function(){var j=this;if(!(f.$removeEmpty[j.getName()]||j.is('a')))return;i(j,j.getNext(),true);i(j,j.getPrevious());};})(),show:function(){this.setStyles({display:'',visibility:''});
i.appendChild(j.$.cloneNode(true));return i.innerHTML;},setHtml:function(i){return this.$.innerHTML=i;},setText:function(i){h.prototype.setText=this.$.innerText!=undefined?function(j){return this.$.innerText=j;}:function(j){return this.$.textContent=j;};return this.setText(i);},getAttribute:(function(){var i=function(j){return this.$.getAttribute(j,2);};if(c&&(b.ie7Compat||b.ie6Compat))return function(j){var n=this;switch(j){case 'class':j='className';break;case 'tabindex':var k=i.call(n,j);if(k!==0&&n.$.tabIndex===0)k=null;return k;break;case 'checked':var l=n.$.attributes.getNamedItem(j),m=l.specified?l.nodeValue:n.$.checked;return m?'checked':null;case 'hspace':return n.$.hspace;case 'style':return n.$.style.cssText;}return i.call(n,j);};else return i;})(),getChildren:function(){return new d.nodeList(this.$.childNodes);},getComputedStyle:c?function(i){return this.$.currentStyle[e.cssStyleToDomStyle(i)];}:function(i){return this.getWindow().$.getComputedStyle(this.$,'').getPropertyValue(i);},getDtd:function(){var i=f[this.getName()];this.getDtd=function(){return i;};return i;},getElementsByTag:g.prototype.getElementsByTag,getTabIndex:c?function(){var i=this.$.tabIndex;if(i===0&&!f.$tabIndex[this.getName()]&&parseInt(this.getAttribute('tabindex'),10)!==0)i=-1;return i;}:b.webkit?function(){var i=this.$.tabIndex;if(i==undefined){i=parseInt(this.getAttribute('tabindex'),10);if(isNaN(i))i=-1;}return i;}:function(){return this.$.tabIndex;},getText:function(){return this.$.textContent||this.$.innerText||'';},getWindow:function(){return this.getDocument().getWindow();},getId:function(){return this.$.id||null;},getNameAtt:function(){return this.$.name||null;},getName:function(){var i=this.$.nodeName.toLowerCase();if(c){var j=this.$.scopeName;if(j!='HTML')i=j.toLowerCase()+':'+i;}return(this.getName=function(){return i;})();},getValue:function(){return this.$.value;},getFirst:function(i){var j=this.$.firstChild,k=j&&new d.node(j);if(k&&i&&!i(k))k=k.getNext(i);return k;},getLast:function(i){var j=this.$.lastChild,k=j&&new d.node(j);if(k&&i&&!i(k))k=k.getPrevious(i);return k;},getStyle:function(i){return this.$.style[e.cssStyleToDomStyle(i)];},is:function(){var i=this.getName();for(var j=0;j<arguments.length;j++){if(arguments[j]==i)return true;}return false;},isEditable:function(){var i=this.getName(),j=!f.$nonEditable[i]&&(f[i]||f.span);return j&&j['#'];},isIdentical:function(i){if(this.getName()!=i.getName())return false;var j=this.$.attributes,k=i.$.attributes,l=j.length,m=k.length;
a,true),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){if(d.isArray(a)){var e=[],g=this[0],h,k={},l;if(g&&a.length){h=0;for(var q=a.length;h<q;h++){l=a[h];k[l]||(k[l]=d.expr.match.POS.test(l)?d(l,b||this.context):l)}for(;g&&g.ownerDocument&&g!==b;){for(l in k){h=k[l];if(h.jquery?h.index(g)>-1:d(g).is(h)){e.push({selector:l,elem:g});delete k[l]}}g=g.parentNode}}return e}var p=d.expr.match.POS.test(a)?d(a,b||this.context):null;return this.map(function(o,w){for(;w&&
0,f=b.length;e<f;e++)if(c.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,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var e=[],f=this[0],h,k={},l;if(f&&a.length){h=0;for(var q=a.length;h<q;h++){l=a[h];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;f&&f.ownerDocument&&f!==b;){for(l in k){h=k[l];if(h.jquery?h.index(f)>
a,true),"filter",a)},is:function(a){return!!a&&d.filter(a,this).length>0},closest:function(a,b){if(d.isArray(a)){var e=[],g=this[0],h,k={},l;if(g&&a.length){h=0;for(var q=a.length;h<q;h++){l=a[h];k[l]||(k[l]=d.expr.match.POS.test(l)?d(l,b||this.context):l)}for(;g&&g.ownerDocument&&g!==b;){for(l in k){h=k[l];if(h.jquery?h.index(g)>-1:d(g).is(h)){e.push({selector:l,elem:g});delete k[l]}}g=g.parentNode}}return e}var p=d.expr.match.POS.test(a)?d(a,b||this.context):null;return this.map(function(o,w){for(;w&&
d.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;
c.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;
d.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;
if (editPos) { var currView = ko.views.manager.currentView;
try { if (editPos) { var currentView = ko.views.manager.currentView;
isEditOnCurrentView : function(editPos) { if (editPos) { var currView = ko.views.manager.currentView; if (currView.document) { var currPos = currView.scintilla.scimoz.currentPos; if (currView == editPos.view && currPos == editPos.position) { return true; } } } return false; },
if (currView.document) { var currPos = currView.scintilla.scimoz.currentPos;
if (currentView.document) { var currPos = currentView.scimoz.currentPos; var currLine = currentView.scimoz.lineFromPosition(currPos);
isEditOnCurrentView : function(editPos) { if (editPos) { var currView = ko.views.manager.currentView; if (currView.document) { var currPos = currView.scintilla.scimoz.currentPos; if (currView == editPos.view && currPos == editPos.position) { return true; } } } return false; },
if (currView == editPos.view && currPos == editPos.position) { return true;
if (currentView == editPos.view && currLine == editPos.line) { return true; }
isEditOnCurrentView : function(editPos) { if (editPos) { var currView = ko.views.manager.currentView; if (currView.document) { var currPos = currView.scintilla.scimoz.currentPos; if (currView == editPos.view && currPos == editPos.position) { return true; } } } return false; },
} catch (err) { DafizillaCommon.exception(err);
isEditOnCurrentView : function(editPos) { if (editPos) { var currView = ko.views.manager.currentView; if (currView.document) { var currPos = currView.scintilla.scimoz.currentPos; if (currView == editPos.view && currPos == editPos.position) { return true; } } } return false; },
var regexp = /^[a-z0-9_\.-]+@([a-z0-9]+([\-]+[a-z0-9]+)*\.)+[a-z]{2,7}$/i;
var regexp = /^[a-z0-9!#\$%&'*+-\/=?^_`{|}\.~]+@([a-z0-9]+([\-]+[a-z0-9]+)*\.)+[a-z]{2,7}$/i;
isEmail: function(element) { var regexp = /^[a-z0-9_\.-]+@([a-z0-9]+([\-]+[a-z0-9]+)*\.)+[a-z]{2,7}$/i; return regexp.test(element.val()); },
d.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false; return true},noop:function(){},globalEval:function(a){if(a&&wa.test(a)){var b=r.getElementsByTagName("head")[0]||r.documentElement,e=r.createElement("script");e.type="text/javascript";if(d.support.scriptEval)e.appendChild(r.createTextNode(a));else e.text=a;b.insertBefore(e,b.firstChild);b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,e){var g,h=0,k=a.length,l=k===v||d.isFunction(a);if(e)if(l)for(g in a){if(b.apply(a[g],e)===
c.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false; return true},noop:function(){},globalEval:function(a){if(a&&wa.test(a)){var b=r.getElementsByTagName("head")[0]||r.documentElement,e=r.createElement("script");e.type="text/javascript";if(c.support.scriptEval)e.appendChild(r.createTextNode(a));else e.text=a;b.insertBefore(e,b.firstChild);b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,e){var f,h=0,k=a.length,l=k===v||c.isFunction(a);if(e)if(l)for(f in a){if(b.apply(a[f],e)===
d.ready);var a=false;try{a=x.frameElement==null}catch(b){}r.documentElement.doScroll&&a&&Y()}}},isFunction:function(a){return T.call(a)==="[object Function]"},isArray:function(a){return T.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||T.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!U.call(a,"constructor")&&!U.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===v||U.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},noop:function(){},globalEval:function(a){if(a&&wa.test(a)){var b=r.getElementsByTagName("head")[0]||r.documentElement,e=r.createElement("script");e.type="text/javascript";if(d.support.scriptEval)e.appendChild(r.createTextNode(a));else e.text=a;b.insertBefore(e,b.firstChild);b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,e){var g,h=0,k=a.length,l=k===v||d.isFunction(a);if(e)if(l)for(g in a){if(b.apply(a[g],e)===
for (var key in a) {
for (var key in b) {
isEqual: function(a, b) { if (typeof a != typeof b) return; if (a === b) return true; if (a instanceof RegExp) { return a.toString() === b.toString(); } if (a instanceof Date) { return Number(a) === Number(b); } if (typeof a != 'object') return; if (a.length !== undefined) { if (a.length !== b.length) { return; } else { for (var i = 0, len = a.length; i < len; ++i) { if (!this.isEqual(a[i], b[i])) { return; } } } } for (var key in a) { if (!this.isEqual(a[key], b[key])) { return; } } return true; },
isFirstLine: function(index) {
this.isFirstLine = function(index) {
isFirstLine: function(index) { for (var i = index-1; i >= 0; i--) { if (this.lines[i].staff !== undefined) return false; } return true; },
},
};
isFirstLine: function(index) { for (var i = index-1; i >= 0; i--) { if (this.lines[i].staff !== undefined) return false; } return true; },