rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
}
function getOPeNDAPParameters() { //Generates parameters recursively //as an array of constraints var generateConstraints = function(component) { if (!component) return null; if (component.initialConfig.variableType === 'axis') { var fromField = component.get(0); var toField = component.get(1); var obj = { type : component.initialConfig.variableType, name : component.initialConfig.name }; if (component.initialConfig.usingDimensionBounds) { obj['dimensionBounds'] = { from : parseFloat(fromField.value), to : parseFloat(toField.value) }; } else { obj['valueBounds'] = { from : parseFloat(fromField.value), to : parseFloat(toField.value) }; } return obj; } else if (component.initialConfig.variableType === 'grid') { var childAxes = []; for (var i = 0; i < frm.items.getCount(); i++) { var child = generateConstraints(component.items.get(i)); if (child) childAxes.push(child); } return { type : component.initialConfig.variableType, name : component.initialConfig.name, axes : childAxes }; } return null; }; var frm = Ext.getCmp('opendapDownloadFrm'); var params = '&opendapUrl=' + escape(Ext.getCmp('opendapUrl').value); //Generate constraints component var variableConstraints = []; for (var i = 0; i < frm.items.getCount(); i++) { var component = frm.items.get(i); if (component && !component.disabled) { var constraint = generateConstraints(component); if (constraint) variableConstraints.push(constraint); } } var constraintObj = { constraints : variableConstraints }; params += '&constraints=' + escape(Ext.util.JSON.encode(constraintObj)); params += '&downloadFormat=' + escape(Ext.getCmp('opendap-format').value); return params;}
k.setHtml(i);return k.getFirst().remove();};h.setMarker=function(i,j,k,l){var m=j.getCustomData('list_marker_id')||j.setCustomData('list_marker_id',e.getNextNumber()).getCustomData('list_marker_id'),n=j.getCustomData('list_marker_names')||j.setCustomData('list_marker_names',{}).getCustomData('list_marker_names');i[m]=j;n[k]=1;return j.setCustomData(k,l);};h.clearAllMarkers=function(i){for(var j in i)h.clearMarkers(i,i[j],true);};h.clearMarkers=function(i,j,k){var l=j.getCustomData('list_marker_names'),m=j.getCustomData('list_marker_id');for(var n in l)j.removeCustomData(n);j.removeCustomData('list_marker_names');if(k){j.removeCustomData('list_marker_id');delete i[m];}};e.extend(h.prototype,{type:1,addClass:function(i){var j=this.$.className;if(j){var k=new RegExp('(?:^|\\s)'+i+'(?:\\s|$)','');if(!k.test(j))j+=' '+i;}this.$.className=j||i;},removeClass:function(i){var j=this.getAttribute('class');if(j){var k=new RegExp('(?:^|\\s+)'+i+'(?=\\s|$)','i');if(k.test(j)){j=j.replace(k,'').replace(/^\s+/,'');if(j)this.setAttribute('class',j);else this.removeAttribute('class');}}},hasClass:function(i){var j=new RegExp('(?:^|\\s+)'+i+'(?=\\s|$)','');return j.test(this.getAttribute('class'));},append:function(i,j){var k=this;if(typeof i=='string')i=k.getDocument().createElement(i);if(j)k.$.insertBefore(i.$,k.$.firstChild);else k.$.appendChild(i.$);return i;},appendHtml:function(i){var k=this;if(!k.$.childNodes.length)k.setHtml(i);else{var j=new h('div',k.getDocument());j.setHtml(i);j.moveChildren(k);}},appendText:function(i){if(this.$.text!=undefined)this.$.text+=i;else this.append(new d.text(i));},appendBogus:function(){var k=this;var i=k.getLast();while(i&&i.type==3&&!e.rtrim(i.getText()))i=i.getPrevious();if(!i||!i.is||!i.is('br')){var j=b.opera?k.getDocument().createText(''):k.getDocument().createElement('br');b.gecko&&j.setAttribute('type','_moz');k.append(j);}},breakParent:function(i){var l=this;var j=new d.range(l.getDocument());j.setStartAfter(l);j.setEndAfter(i);var k=j.extractContents();j.insertNode(l.remove());k.insertAfterNode(l);},contains:c||b.webkit?function(i){var j=this.$;return i.type!=1?j.contains(i.getParent().$):j!=i.$&&j.contains(i.$);}:function(i){return!!(this.$.compareDocumentPosition(i.$)&16);},focus:function(){try{this.$.focus();}catch(i){}},getHtml:function(){var i=this.$.innerHTML;return c?i.replace(/<\?[^>]*>/g,''):i;},getOuterHtml:function(){var j=this;if(j.$.outerHTML)return j.$.outerHTML.replace(/<\?[^>]*>/,'');var i=j.$.ownerDocument.createElement('div'); 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;
},onAttribute:function(q,r,s){var t=this._.attributes[r];if(t){var u=t.filter(s,q,this);if(u===false)return false;if(typeof u!='undefined')return u;}return s;}}});function l(q,r){for(var s=0;q&&s<r.length;s++){var t=r[s];q=q.replace(t[0],t[1]);}return q;};function m(q,r,s){if(typeof r=='function')r=[r];var t,u,v=q.length,w=r&&r.length;if(w){for(t=0;t<v&&q[t].pri<s;t++){}for(u=w-1;u>=0;u--){var x=r[u];if(x){x.pri=s;q.splice(t,0,x);}}}};function n(q,r,s){if(r)for(var t in r){var u=q[t];q[t]=o(u,r[t],s);if(!u)q.$length++;}};function o(q,r,s){if(r){r.pri=s;if(q){if(!q.splice){if(q.pri>s)q=[r,q];else q=[q,r];q.filter=p;}else m(q,r,s);return q;}else{r.filter=r;return r;}}};function p(q){var r=typeof q=='object';for(var s=0;s<this.length;s++){var t=this[s],u=t.apply(window,arguments);if(typeof u!='undefined'){if(u===false)return false;if(r&&u!=q)return u;}}return null;};})();a.htmlParser.basicWriter=e.createClass({$:function(){this._={output:[]};},proto:{openTag:function(l,m){this._.output.push('<',l);},openTagClose:function(l,m){if(m)this._.output.push(' />');else this._.output.push('>');},attribute:function(l,m){if(typeof m=='string')m=e.htmlEncodeAttr(m);this._.output.push(' ',l,'="',m,'"');},closeTag:function(l){this._.output.push('</',l,'>');},text:function(l){this._.output.push(l);},comment:function(l){this._.output.push('<!--',l,'-->');},write:function(l){this._.output.push(l);},reset:function(){this._.output=[];this._.indent=false;},getHtml:function(l){var m=this._.output.join('');if(l)this.reset();return m;}}});delete a.loadFullCore;a.instances={};a.document=new g(document);a.add=function(l){a.instances[l.name]=l;l.on('focus',function(){if(a.currentInstance!=l){a.currentInstance=l;a.fire('currentInstance');}});l.on('blur',function(){if(a.currentInstance==l){a.currentInstance=null;a.fire('currentInstance');}});};a.remove=function(l){delete a.instances[l.name];};a.TRISTATE_ON=1;a.TRISTATE_OFF=2;a.TRISTATE_DISABLED=0;d.comment=e.createClass({base:d.node,$:function(l,m){if(typeof l=='string')l=(m?m.$:document).createComment(l);this.base(l);},proto:{type:8,getOuterHtml:function(){return '<!--'+this.$.nodeValue+'-->';}}});(function(){var l={address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,dd:1},m={body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1},n=function(o){var p=o.getChildren();for(var q=0,r=p.count();q<r;q++){var s=p.getItem(q);if(s.type==1&&f.$block[s.getName()])return true;}return false;};d.elementPath=function(o){var u=this;
k.setHtml(i);return k.getFirst().remove();};h.setMarker=function(i,j,k,l){var m=j.getCustomData('list_marker_id')||j.setCustomData('list_marker_id',e.getNextNumber()).getCustomData('list_marker_id'),n=j.getCustomData('list_marker_names')||j.setCustomData('list_marker_names',{}).getCustomData('list_marker_names');i[m]=j;n[k]=1;return j.setCustomData(k,l);};h.clearAllMarkers=function(i){for(var j in i)h.clearMarkers(i,i[j],true);};h.clearMarkers=function(i,j,k){var l=j.getCustomData('list_marker_names'),m=j.getCustomData('list_marker_id');for(var n in l)j.removeCustomData(n);j.removeCustomData('list_marker_names');if(k){j.removeCustomData('list_marker_id');delete i[m];}};e.extend(h.prototype,{type:1,addClass:function(i){var j=this.$.className;if(j){var k=new RegExp('(?:^|\\s)'+i+'(?:\\s|$)','');if(!k.test(j))j+=' '+i;}this.$.className=j||i;},removeClass:function(i){var j=this.getAttribute('class');if(j){var k=new RegExp('(?:^|\\s+)'+i+'(?=\\s|$)','i');if(k.test(j)){j=j.replace(k,'').replace(/^\s+/,'');if(j)this.setAttribute('class',j);else this.removeAttribute('class');}}},hasClass:function(i){var j=new RegExp('(?:^|\\s+)'+i+'(?=\\s|$)','');return j.test(this.getAttribute('class'));},append:function(i,j){var k=this;if(typeof i=='string')i=k.getDocument().createElement(i);if(j)k.$.insertBefore(i.$,k.$.firstChild);else k.$.appendChild(i.$);return i;},appendHtml:function(i){var k=this;if(!k.$.childNodes.length)k.setHtml(i);else{var j=new h('div',k.getDocument());j.setHtml(i);j.moveChildren(k);}},appendText:function(i){if(this.$.text!=undefined)this.$.text+=i;else this.append(new d.text(i));},appendBogus:function(){var k=this;var i=k.getLast();while(i&&i.type==3&&!e.rtrim(i.getText()))i=i.getPrevious();if(!i||!i.is||!i.is('br')){var j=b.opera?k.getDocument().createText(''):k.getDocument().createElement('br');b.gecko&&j.setAttribute('type','_moz');k.append(j);}},breakParent:function(i){var l=this;var j=new d.range(l.getDocument());j.setStartAfter(l);j.setEndAfter(i);var k=j.extractContents();j.insertNode(l.remove());k.insertAfterNode(l);},contains:c||b.webkit?function(i){var j=this.$;return i.type!=1?j.contains(i.getParent().$):j!=i.$&&j.contains(i.$);}:function(i){return!!(this.$.compareDocumentPosition(i.$)&16);},focus:function(){try{this.$.focus();}catch(i){}},getHtml:function(){var i=this.$.innerHTML;return c?i.replace(/<\?[^>]*>/g,''):i;},getOuterHtml:function(){var j=this;if(j.$.outerHTML)return j.$.outerHTML.replace(/<\?[^>]*>/,'');var i=j.$.ownerDocument.createElement('div');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;
return [p.top + el.height() / 2, p.left + el.width() / 2];
return { top: p.top + el.height() / 2, left: p.left + el.width() / 2 };
function getPosition(el) { var p = el.offset(); return [p.top + el.height() / 2, p.left + el.width() / 2]; }
var top = conf.relative ? trigger.position().top : trigger.offset().top, left = conf.relative ? trigger.position().left : trigger.offset().left,
var top = trigger.offset().top, left = trigger.offset().left,
function getPosition(trigger, el, conf) { // get origin top/left position var top = conf.relative ? trigger.position().top : trigger.offset().top, left = conf.relative ? trigger.position().left : trigger.offset().left, pos = conf.position.split(/,?\s+/), y = pos[0], x = pos[1]; top -= el.outerHeight() - conf.offset[0]; left += trigger.outerWidth() + conf.offset[1]; // adjust Y var height = el.outerHeight() + trigger.outerHeight(); if (y == 'center') { top += height / 2; } if (y == 'bottom') { top += height; } // adjust X var width = trigger.outerWidth(); if (x == 'center') { left -= (width + el.outerWidth()) / 2; } if (x == 'left') { left -= width; } return {top: top, left: left}; }
return this;},setOpacity:function(i){if(c){i=Math.round(i*100);this.setStyle('filter',i>=100?'':'progid:DXImageTransform.Microsoft.Alpha(opacity='+i+')');}else this.setStyle('opacity',i);},unselectable:b.gecko?function(){this.$.style.MozUserSelect='none';}:b.webkit?function(){this.$.style.KhtmlUserSelect='none';}:function(){if(c||b.opera){var i=this.$,j,k=0;i.unselectable='on';while(j=i.all[k++])switch(j.tagName.toLowerCase()){case 'iframe':case 'textarea':case 'input':case 'select':break;default:j.unselectable='on';}}},getPositionedAncestor:function(){var i=this;while(i.getName()!='html'){if(i.getComputedStyle('position')!='static')return i;i=i.getParent();}return null;},getDocumentPosition:function(i){var D=this;var j=0,k=0,l=D.getDocument().getBody(),m=D.getDocument().$.compatMode=='BackCompat',n=D.getDocument();if(document.documentElement.getBoundingClientRect){var o=D.$.getBoundingClientRect(),p=n.$,q=p.documentElement,r=q.clientTop||l.$.clientTop||0,s=q.clientLeft||l.$.clientLeft||0,t=true;if(c){var u=n.getDocumentElement().contains(D),v=n.getBody().contains(D);t=m&&v||!m&&u;}if(t){j=o.left+(!m&&q.scrollLeft||l.$.scrollLeft);j-=s;k=o.top+(!m&&q.scrollTop||l.$.scrollTop);k-=r;}}else{var w=D,x=null,y;while(w&&!(w.getName()=='body'||w.getName()=='html')){j+=w.$.offsetLeft-w.$.scrollLeft;k+=w.$.offsetTop-w.$.scrollTop;if(!w.equals(D)){j+=w.$.clientLeft||0;k+=w.$.clientTop||0;}var z=x;while(z&&!z.equals(w)){j-=z.$.scrollLeft;k-=z.$.scrollTop;z=z.getParent();}x=w;w=(y=w.$.offsetParent)?new h(y):null;}}if(i){var A=D.getWindow(),B=i.getWindow();if(!A.equals(B)&&A.$.frameElement){var C=new h(A.$.frameElement).getDocumentPosition(i);j+=C.x;k+=C.y;}}if(!document.documentElement.getBoundingClientRect)if(b.gecko&&!m){j+=D.$.clientLeft?1:0;k+=D.$.clientTop?1:0;}return{x:j,y:k};},scrollIntoView:function(i){var o=this;var j=o.getWindow(),k=j.getViewPaneSize().height,l=k*-1;if(i)l+=k;else{l+=o.$.offsetHeight||0;l+=parseInt(o.getComputedStyle('marginBottom')||0,10)||0;}var m=o.getDocumentPosition();l+=m.y;l=l<0?0:l;var n=j.getScrollPosition().y;if(l>n||l<n-k)j.$.scrollTo(0,l);},setState:function(i){var j=this;switch(i){case 1:j.addClass('cke_on');j.removeClass('cke_off');j.removeClass('cke_disabled');break;case 0:j.addClass('cke_disabled');j.removeClass('cke_off');j.removeClass('cke_on');break;default:j.addClass('cke_off');j.removeClass('cke_on');j.removeClass('cke_disabled');break;}},getFrameDocument:function(){var i=this.$;try{i.contentWindow.document;}catch(j){i.src=i.src;
},setAttribute:(function(){var i=function(j,k){this.$.setAttribute(j,k);return this;};if(c&&(b.ie7Compat||b.ie6Compat))return function(j,k){var l=this;if(j=='class')l.$.className=k;else if(j=='style')l.$.style.cssText=k;else if(j=='tabindex')l.$.tabIndex=k;else if(j=='checked')l.$.checked=k;else i.apply(l,arguments);return l;};else return i;})(),setAttributes:function(i){for(var j in i)this.setAttribute(j,i[j]);return this;},setValue:function(i){this.$.value=i;return this;},removeAttribute:(function(){var i=function(j){this.$.removeAttribute(j);};if(c&&(b.ie7Compat||b.ie6Compat))return function(j){if(j=='class')j='className';else if(j=='tabindex')j='tabIndex';i.call(this,j);};else return i;})(),removeAttributes:function(i){if(e.isArray(i))for(var j=0;j<i.length;j++)this.removeAttribute(i[j]);else for(var k in i)i.hasOwnProperty(k)&&this.removeAttribute(k);},removeStyle:function(i){var j=this;j.setStyle(i,'');if(j.$.style.removeAttribute)j.$.style.removeAttribute(e.cssStyleToDomStyle(i));if(!j.$.style.cssText)j.removeAttribute('style');},setStyle:function(i,j){this.$.style[e.cssStyleToDomStyle(i)]=j;return this;},setStyles:function(i){for(var j in i)this.setStyle(j,i[j]);return this;},setOpacity:function(i){if(c){i=Math.round(i*100);this.setStyle('filter',i>=100?'':'progid:DXImageTransform.Microsoft.Alpha(opacity='+i+')');}else this.setStyle('opacity',i);},unselectable:b.gecko?function(){this.$.style.MozUserSelect='none';this.on('dragstart',function(i){i.data.preventDefault();});}:b.webkit?function(){this.$.style.KhtmlUserSelect='none';this.on('dragstart',function(i){i.data.preventDefault();});}:function(){if(c||b.opera){var i=this.$,j,k=0;i.unselectable='on';while(j=i.all[k++])switch(j.tagName.toLowerCase()){case 'iframe':case 'textarea':case 'input':case 'select':break;default:j.unselectable='on';}}},getPositionedAncestor:function(){var i=this;while(i.getName()!='html'){if(i.getComputedStyle('position')!='static')return i;i=i.getParent();}return null;},getDocumentPosition:function(i){var D=this;var j=0,k=0,l=D.getDocument().getBody(),m=D.getDocument().$.compatMode=='BackCompat',n=D.getDocument();if(document.documentElement.getBoundingClientRect){var o=D.$.getBoundingClientRect(),p=n.$,q=p.documentElement,r=q.clientTop||l.$.clientTop||0,s=q.clientLeft||l.$.clientLeft||0,t=true;if(c){var u=n.getDocumentElement().contains(D),v=n.getBody().contains(D);t=m&&v||!m&&u;}if(t){j=o.left+(!m&&q.scrollLeft||l.$.scrollLeft);j-=s;k=o.top+(!m&&q.scrollTop||l.$.scrollTop);
return this;},setOpacity:function(i){if(c){i=Math.round(i*100);this.setStyle('filter',i>=100?'':'progid:DXImageTransform.Microsoft.Alpha(opacity='+i+')');}else this.setStyle('opacity',i);},unselectable:b.gecko?function(){this.$.style.MozUserSelect='none';}:b.webkit?function(){this.$.style.KhtmlUserSelect='none';}:function(){if(c||b.opera){var i=this.$,j,k=0;i.unselectable='on';while(j=i.all[k++])switch(j.tagName.toLowerCase()){case 'iframe':case 'textarea':case 'input':case 'select':break;default:j.unselectable='on';}}},getPositionedAncestor:function(){var i=this;while(i.getName()!='html'){if(i.getComputedStyle('position')!='static')return i;i=i.getParent();}return null;},getDocumentPosition:function(i){var D=this;var j=0,k=0,l=D.getDocument().getBody(),m=D.getDocument().$.compatMode=='BackCompat',n=D.getDocument();if(document.documentElement.getBoundingClientRect){var o=D.$.getBoundingClientRect(),p=n.$,q=p.documentElement,r=q.clientTop||l.$.clientTop||0,s=q.clientLeft||l.$.clientLeft||0,t=true;if(c){var u=n.getDocumentElement().contains(D),v=n.getBody().contains(D);t=m&&v||!m&&u;}if(t){j=o.left+(!m&&q.scrollLeft||l.$.scrollLeft);j-=s;k=o.top+(!m&&q.scrollTop||l.$.scrollTop);k-=r;}}else{var w=D,x=null,y;while(w&&!(w.getName()=='body'||w.getName()=='html')){j+=w.$.offsetLeft-w.$.scrollLeft;k+=w.$.offsetTop-w.$.scrollTop;if(!w.equals(D)){j+=w.$.clientLeft||0;k+=w.$.clientTop||0;}var z=x;while(z&&!z.equals(w)){j-=z.$.scrollLeft;k-=z.$.scrollTop;z=z.getParent();}x=w;w=(y=w.$.offsetParent)?new h(y):null;}}if(i){var A=D.getWindow(),B=i.getWindow();if(!A.equals(B)&&A.$.frameElement){var C=new h(A.$.frameElement).getDocumentPosition(i);j+=C.x;k+=C.y;}}if(!document.documentElement.getBoundingClientRect)if(b.gecko&&!m){j+=D.$.clientLeft?1:0;k+=D.$.clientTop?1:0;}return{x:j,y:k};},scrollIntoView:function(i){var o=this;var j=o.getWindow(),k=j.getViewPaneSize().height,l=k*-1;if(i)l+=k;else{l+=o.$.offsetHeight||0;l+=parseInt(o.getComputedStyle('marginBottom')||0,10)||0;}var m=o.getDocumentPosition();l+=m.y;l=l<0?0:l;var n=j.getScrollPosition().y;if(l>n||l<n-k)j.$.scrollTo(0,l);},setState:function(i){var j=this;switch(i){case 1:j.addClass('cke_on');j.removeClass('cke_off');j.removeClass('cke_disabled');break;case 0:j.addClass('cke_disabled');j.removeClass('cke_off');j.removeClass('cke_on');break;default:j.addClass('cke_off');j.removeClass('cke_on');j.removeClass('cke_disabled');break;}},getFrameDocument:function(){var i=this.$;try{i.contentWindow.document;}catch(j){i.src=i.src;
a.NODE_TEXT=3;a.NODE_COMMENT=8;a.NODE_DOCUMENT_FRAGMENT=11;a.POSITION_IDENTICAL=0;a.POSITION_DISCONNECTED=1;a.POSITION_FOLLOWING=2;a.POSITION_PRECEDING=4;a.POSITION_IS_CONTAINED=8;a.POSITION_CONTAINS=16;e.extend(d.node.prototype,{appendTo:function(h,i){h.append(this,i);return h;},clone:function(h,i){var j=this.$.cloneNode(h);if(!i){var k=function(l){if(l.nodeType!=1)return;l.removeAttribute('id',false);l.removeAttribute('_cke_expando',false);var m=l.childNodes;for(var n=0;n<m.length;n++)k(m[n]);};k(j);}return new d.node(j);},hasPrevious:function(){return!!this.$.previousSibling;},hasNext:function(){return!!this.$.nextSibling;},insertAfter:function(h){h.$.parentNode.insertBefore(this.$,h.$.nextSibling);return h;},insertBefore:function(h){h.$.parentNode.insertBefore(this.$,h.$);return h;},insertBeforeMe:function(h){this.$.parentNode.insertBefore(h.$,this.$);return h;},getAddress:function(h){var i=[],j=this.getDocument().$.documentElement,k=this.$;while(k&&k!=j){var l=k.parentNode,m=-1;if(l){for(var n=0;n<l.childNodes.length;n++){var o=l.childNodes[n];if(h&&o.nodeType==3&&o.previousSibling&&o.previousSibling.nodeType==3)continue;m++;if(o==k)break;}i.unshift(m);}k=l;}return i;},getDocument:function(){var h=new g(this.$.ownerDocument||this.$.parentNode.ownerDocument);return(this.getDocument=function(){return h;})();},getIndex:function(){var h=this.$,i=h.parentNode&&h.parentNode.firstChild,j=-1;while(i){j++;if(i==h)return j;i=i.nextSibling;}return-1;},getNextSourceNode:function(h,i,j){if(j&&!j.call){var k=j;j=function(n){return!n.equals(k);};}var l=!h&&this.getFirst&&this.getFirst(),m;if(!l){if(this.type==1&&j&&j(this,true)===false)return null;l=this.getNext();}while(!l&&(m=(m||this).getParent())){if(j&&j(m,true)===false)return null;l=m.getNext();}if(!l)return null;if(j&&j(l)===false)return null;if(i&&i!=l.type)return l.getNextSourceNode(false,i,j);return l;},getPreviousSourceNode:function(h,i,j){if(j&&!j.call){var k=j;j=function(n){return!n.equals(k);};}var l=!h&&this.getLast&&this.getLast(),m;if(!l){if(this.type==1&&j&&j(this,true)===false)return null;l=this.getPrevious();}while(!l&&(m=(m||this).getParent())){if(j&&j(m,true)===false)return null;l=m.getPrevious();}if(!l)return null;if(j&&j(l)===false)return null;if(i&&l.type!=i)return l.getPreviousSourceNode(false,i,j);return l;},getPrevious:function(h){var i=this.$,j;do{i=i.previousSibling;j=i&&new d.node(i);}while(j&&h&&!h(j))return j;},getNext:function(h){var i=this.$,j;do{i=i.nextSibling;j=i&&new d.node(i);}while(j&&h&&!h(j))return j;
}return this;};d.node.prototype=new d.domObject();a.NODE_ELEMENT=1;a.NODE_DOCUMENT=9;a.NODE_TEXT=3;a.NODE_COMMENT=8;a.NODE_DOCUMENT_FRAGMENT=11;a.POSITION_IDENTICAL=0;a.POSITION_DISCONNECTED=1;a.POSITION_FOLLOWING=2;a.POSITION_PRECEDING=4;a.POSITION_IS_CONTAINED=8;a.POSITION_CONTAINS=16;e.extend(d.node.prototype,{appendTo:function(h,i){h.append(this,i);return h;},clone:function(h,i){var j=this.$.cloneNode(h);if(!i){var k=function(l){if(l.nodeType!=1)return;l.removeAttribute('id',false);l.removeAttribute('_cke_expando',false);var m=l.childNodes;for(var n=0;n<m.length;n++)k(m[n]);};k(j);}return new d.node(j);},hasPrevious:function(){return!!this.$.previousSibling;},hasNext:function(){return!!this.$.nextSibling;},insertAfter:function(h){h.$.parentNode.insertBefore(this.$,h.$.nextSibling);return h;},insertBefore:function(h){h.$.parentNode.insertBefore(this.$,h.$);return h;},insertBeforeMe:function(h){this.$.parentNode.insertBefore(h.$,this.$);return h;},getAddress:function(h){var i=[],j=this.getDocument().$.documentElement,k=this.$;while(k&&k!=j){var l=k.parentNode,m=-1;if(l){for(var n=0;n<l.childNodes.length;n++){var o=l.childNodes[n];if(h&&o.nodeType==3&&o.previousSibling&&o.previousSibling.nodeType==3)continue;m++;if(o==k)break;}i.unshift(m);}k=l;}return i;},getDocument:function(){var h=new g(this.$.ownerDocument||this.$.parentNode.ownerDocument);return(this.getDocument=function(){return h;})();},getIndex:function(){var h=this.$,i=h.parentNode&&h.parentNode.firstChild,j=-1;while(i){j++;if(i==h)return j;i=i.nextSibling;}return-1;},getNextSourceNode:function(h,i,j){if(j&&!j.call){var k=j;j=function(n){return!n.equals(k);};}var l=!h&&this.getFirst&&this.getFirst(),m;if(!l){if(this.type==1&&j&&j(this,true)===false)return null;l=this.getNext();}while(!l&&(m=(m||this).getParent())){if(j&&j(m,true)===false)return null;l=m.getNext();}if(!l)return null;if(j&&j(l)===false)return null;if(i&&i!=l.type)return l.getNextSourceNode(false,i,j);return l;},getPreviousSourceNode:function(h,i,j){if(j&&!j.call){var k=j;j=function(n){return!n.equals(k);};}var l=!h&&this.getLast&&this.getLast(),m;if(!l){if(this.type==1&&j&&j(this,true)===false)return null;l=this.getPrevious();}while(!l&&(m=(m||this).getParent())){if(j&&j(m,true)===false)return null;l=m.getPrevious();}if(!l)return null;if(j&&j(l)===false)return null;if(i&&l.type!=i)return l.getPreviousSourceNode(false,i,j);return l;},getPrevious:function(h){var i=this.$,j;do{i=i.previousSibling;j=i&&new d.node(i);}while(j&&h&&!h(j))return j; },getNext:function(h){var i=this.$,j;do{i=i.nextSibling;j=i&&new d.node(i);}while(j&&h&&!h(j))return j;},getParent:function(){var h=this.$.parentNode;return h&&h.nodeType==1?new d.node(h):null;},getParents:function(h){var i=this,j=[];do j[h?'push':'unshift'](i);while(i=i.getParent())return j;},getCommonAncestor:function(h){var j=this;if(h.equals(j))return j;if(h.contains&&h.contains(j))return h;var i=j.contains?j:j.getParent();do{if(i.contains(h))return i;}while(i=i.getParent())return null;},getPosition:function(h){var i=this.$,j=h.$;if(i.compareDocumentPosition)return i.compareDocumentPosition(j);if(i==j)return 0;if(this.type==1&&h.type==1){if(i.contains){if(i.contains(j))return 16+4;if(j.contains(i))return 8+2;}if('sourceIndex' in i)return i.sourceIndex<0||j.sourceIndex<0?1:i.sourceIndex<j.sourceIndex?4:2;}var k=this.getAddress(),l=h.getAddress(),m=Math.min(k.length,l.length);for(var n=0;n<=m-1;n++){if(k[n]!=l[n]){if(n<m)return k[n]<l[n]?4:2;break;}}return k.length<l.length?16+4:8+2;},getAscendant:function(h,i){var j=this.$;if(!i)j=j.parentNode;while(j){if(j.nodeName&&j.nodeName.toLowerCase()==h)return new d.node(j);j=j.parentNode;}return null;},hasAscendant:function(h,i){var j=this.$;if(!i)j=j.parentNode;while(j){if(j.nodeName&&j.nodeName.toLowerCase()==h)return true;j=j.parentNode;}return false;},move:function(h,i){h.append(this.remove(),i);},remove:function(h){var i=this.$,j=i.parentNode;if(j){if(h)for(var k;k=i.firstChild;)j.insertBefore(i.removeChild(k),i);j.removeChild(i);}return this;},replace:function(h){this.insertBefore(h);h.remove();},trim:function(){this.ltrim();this.rtrim();},ltrim:function(){var k=this;var h;while(k.getFirst&&(h=k.getFirst())){if(h.type==3){var i=e.ltrim(h.getText()),j=h.getLength();if(!i){h.remove();continue;}else if(i.length<j){h.split(j-i.length);k.$.removeChild(k.$.firstChild);}}break;}},rtrim:function(){var k=this;var h;while(k.getLast&&(h=k.getLast())){if(h.type==3){var i=e.rtrim(h.getText()),j=h.getLength();if(!i){h.remove();continue;}else if(i.length<j){h.split(i.length);k.$.lastChild.parentNode.removeChild(k.$.lastChild);}}break;}if(!c&&!b.opera){h=k.$.lastChild;if(h&&h.type==1&&h.nodeName.toLowerCase()=='br')h.parentNode.removeChild(h);}},isReadOnly:function(){var h=this;while(h){if(h.type==1){if(h.is('body')||h.getCustomData('_cke_notReadOnly'))break;if(h.getAttribute('contentEditable')=='false')return h;else if(h.getAttribute('contentEditable')=='true')break;}h=h.getParent();}return false;}});d.nodeList=function(h){this.$=h;
a.NODE_TEXT=3;a.NODE_COMMENT=8;a.NODE_DOCUMENT_FRAGMENT=11;a.POSITION_IDENTICAL=0;a.POSITION_DISCONNECTED=1;a.POSITION_FOLLOWING=2;a.POSITION_PRECEDING=4;a.POSITION_IS_CONTAINED=8;a.POSITION_CONTAINS=16;e.extend(d.node.prototype,{appendTo:function(h,i){h.append(this,i);return h;},clone:function(h,i){var j=this.$.cloneNode(h);if(!i){var k=function(l){if(l.nodeType!=1)return;l.removeAttribute('id',false);l.removeAttribute('_cke_expando',false);var m=l.childNodes;for(var n=0;n<m.length;n++)k(m[n]);};k(j);}return new d.node(j);},hasPrevious:function(){return!!this.$.previousSibling;},hasNext:function(){return!!this.$.nextSibling;},insertAfter:function(h){h.$.parentNode.insertBefore(this.$,h.$.nextSibling);return h;},insertBefore:function(h){h.$.parentNode.insertBefore(this.$,h.$);return h;},insertBeforeMe:function(h){this.$.parentNode.insertBefore(h.$,this.$);return h;},getAddress:function(h){var i=[],j=this.getDocument().$.documentElement,k=this.$;while(k&&k!=j){var l=k.parentNode,m=-1;if(l){for(var n=0;n<l.childNodes.length;n++){var o=l.childNodes[n];if(h&&o.nodeType==3&&o.previousSibling&&o.previousSibling.nodeType==3)continue;m++;if(o==k)break;}i.unshift(m);}k=l;}return i;},getDocument:function(){var h=new g(this.$.ownerDocument||this.$.parentNode.ownerDocument);return(this.getDocument=function(){return h;})();},getIndex:function(){var h=this.$,i=h.parentNode&&h.parentNode.firstChild,j=-1;while(i){j++;if(i==h)return j;i=i.nextSibling;}return-1;},getNextSourceNode:function(h,i,j){if(j&&!j.call){var k=j;j=function(n){return!n.equals(k);};}var l=!h&&this.getFirst&&this.getFirst(),m;if(!l){if(this.type==1&&j&&j(this,true)===false)return null;l=this.getNext();}while(!l&&(m=(m||this).getParent())){if(j&&j(m,true)===false)return null;l=m.getNext();}if(!l)return null;if(j&&j(l)===false)return null;if(i&&i!=l.type)return l.getNextSourceNode(false,i,j);return l;},getPreviousSourceNode:function(h,i,j){if(j&&!j.call){var k=j;j=function(n){return!n.equals(k);};}var l=!h&&this.getLast&&this.getLast(),m;if(!l){if(this.type==1&&j&&j(this,true)===false)return null;l=this.getPrevious();}while(!l&&(m=(m||this).getParent())){if(j&&j(m,true)===false)return null;l=m.getPrevious();}if(!l)return null;if(j&&j(l)===false)return null;if(i&&l.type!=i)return l.getPreviousSourceNode(false,i,j);return l;},getPrevious:function(h){var i=this.$,j;do{i=i.previousSibling;j=i&&new d.node(i);}while(j&&h&&!h(j))return j;},getNext:function(h){var i=this.$,j;do{i=i.nextSibling;j=i&&new d.node(i);}while(j&&h&&!h(j))return j;
h.setStyle('width',a);if(CKEDITOR.env.webkit){h.$.offsetWidth;h.setStyle('display','');}var i=c?0:(h.$.offsetHeight||0)-(g.$.clientHeight||0);g.setStyle('height',Math.max(b-i,0)+'px');this.fire('resize');};CKEDITOR.editor.prototype.getResizable=function(){return this.container.getChild(1);};
f.setStyle('height',Math.max(b-h,0)+'px');this.fire('resize');};CKEDITOR.editor.prototype.getResizable=function(){return this.container.getChild(1);};
h.setStyle('width',a);if(CKEDITOR.env.webkit){h.$.offsetWidth;h.setStyle('display','');}var i=c?0:(h.$.offsetHeight||0)-(g.$.clientHeight||0);g.setStyle('height',Math.max(b-i,0)+'px');this.fire('resize');};CKEDITOR.editor.prototype.getResizable=function(){return this.container.getChild(1);};
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+'
});s.on('destroy',function(x){var y=x.editor,z=p.getScayt(y);if(!z)return;delete p.instances[y.name];p.setControlId(y,z.id);z.destroy(true);});s.on('afterSetData',function(){if(p.isScaytEnabled(s))window.setTimeout(function(){var x=p.getScayt(s);x&&x.refresh();},10);});s.on('insertElement',function(){var x=p.getScayt(s);if(p.isScaytEnabled(s)){if(c)s.getSelection().unlock(true);window.setTimeout(function(){x.focus();x.refresh();},10);}},this,null,50);s.on('insertHtml',function(){var x=p.getScayt(s);if(p.isScaytEnabled(s)){if(c)s.getSelection().unlock(true);window.setTimeout(function(){x.focus();x.refresh();},10);}},this,null,50);s.on('scaytDialog',function(x){x.data.djConfig=window.djConfig;x.data.scayt_control=p.getScayt(s);x.data.tab=m;x.data.scayt=window.scayt;});var u=s.dataProcessor,v=u&&u.htmlFilter;if(v)v.addRules({elements:{span:function(x){if(x.attributes.scayt_word&&x.attributes.scaytid){delete x.name;return x;}}}});var w=j.undo.Image.prototype;w.equals=e.override(w.equals,function(x){return function(y){var D=this;var z=D.contents,A=y.contents,B=p.getScayt(D.editor);if(B&&p.isScaytReady(D.editor)){D.contents=B.reset(z)||'';y.contents=B.reset(A)||'';}var C=x.apply(D,arguments);D.contents=z;y.contents=A;return C;};});if(s.document)t();};j.scayt={engineLoaded:false,instances:{},controlInfo:{},setControlInfo:function(s,t){if(s&&s.name&&typeof this.controlInfo[s.name]!='object')this.controlInfo[s.name]={};for(var u in t)this.controlInfo[s.name][u]=t[u];},isControlRestored:function(s){if(s&&s.name&&this.controlInfo[s.name])return this.controlInfo[s.name].restored;return false;},markControlRestore:function(s){this.setControlInfo(s,{restored:true});},setControlId:function(s,t){this.setControlInfo(s,{id:t});},getControlId:function(s){if(s&&s.name&&this.controlInfo[s.name]&&this.controlInfo[s.name].id)return this.controlInfo[s.name].id;return null;},setPaused:function(s,t){this.setControlInfo(s,{paused:t});},isPaused:function(s){if(s&&s.name&&this.controlInfo[s.name])return this.controlInfo[s.name].paused;return undefined;},getScayt:function(s){return this.instances[s.name];},isScaytReady:function(s){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(s);},isScaytEnabled:function(s){var t=this.getScayt(s);return t?t.disabled===false:false;},loadEngine:function(s){if(b.gecko&&b.version<10900||b.opera)return s.fire('showScaytState');if(this.engineLoaded===true)return o.apply(s);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){o.apply(s);
});};var z=window.scayt_custom_params;if(typeof z=='object')for(var A in z)y[A]=z[A];if(o)y.id=o;var B=new window.scayt(y),C=r.instances[u.name];if(C){B.sLang=C.sLang;B.option(C.option());B.paused=C.paused;}r.instances[u.name]=B;var D='scaytButton',E=window.scayt.uiTags,F=[];for(var G=0,H=4;G<H;G++)F.push(E[G]&&r.uiTabs[G]);r.uiTabs=F;try{B.setDisabled(n===false);}catch(I){}u.fire('showScaytState');};u.on('contentDom',v);u.on('contentDomUnload',function(){var y=a.document.getElementsByTag('script'),z=/^dojoIoScript(\d+)$/i,A=/^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(var B=0;B<y.count();B++){var C=y.getItem(B),D=C.getId(),E=C.getAttribute('src');if(D&&E&&D.match(z)&&E.match(A))C.remove();}});u.on('beforeCommandExec',function(y){if((y.data.name=='source'||y.data.name=='newpage')&&u.mode=='wysiwyg'){var z=r.getScayt(u);if(z){n=z.paused=!z.disabled;o=z.id;z.destroy(true);delete r.instances[u.name];}}});u.on('destroy',function(y){var z=y.editor,A=r.getScayt(z);o=A.id;A.destroy(true);delete r.instances[z.name];});u.on('afterSetData',function(){if(r.isScaytEnabled(u))window.setTimeout(function(){r.getScayt(u).refresh();},10);});u.on('insertElement',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('insertHtml',function(){var y=r.getScayt(u);if(r.isScaytEnabled(u)){if(c)u.getSelection().unlock(true);window.setTimeout(function(){y.refresh();},10);}},this,null,50);u.on('scaytDialog',function(y){y.data.djConfig=window.djConfig;y.data.scayt_control=r.getScayt(u);y.data.tab=m;y.data.scayt=window.scayt;});var w=u.dataProcessor,x=w&&w.htmlFilter;if(x)x.addRules({elements:{span:function(y){if(y.attributes.scayt_word&&y.attributes.scaytid){delete y.name;return y;}}}});if(u.document)v();};j.scayt={engineLoaded:false,instances:{},getScayt:function(u){return this.instances[u.name];},isScaytReady:function(u){return this.engineLoaded===true&&'undefined'!==typeof window.scayt&&this.getScayt(u);},isScaytEnabled:function(u){var v=this.getScayt(u);return v?v.disabled===false:false;},loadEngine:function(u){if(b.opera)return null;if(this.engineLoaded===true)return q.apply(u);else if(this.engineLoaded==-1)return a.on('scaytReady',function(){q.apply(u);});a.on('scaytReady',q,u);a.on('scaytReady',function(){this.engineLoaded=true;},this,null,0);this.engineLoaded=-1;var v=document.location.protocol;v=v.search(/https?:/)!=-1?v:'http:';var w='svc.spellchecker.net/spellcheck31/lf/scayt/scayt22.js',x=u.config.scayt_srcUrl||v+'//'+w,y=r.parseUrl(x).path+'/';
if (window.scrollX && window.scrollY) {
if ((typeof(window.scrollX) != "undefined") && (typeof(window.scrollY) != "undefined")) {
function getScrollPosition() { var x = 0; var y = 0; if (window.scrollX && window.scrollY) { x = window.scrollX; y = window.scrollY; } else if (document.documentElement.scrollLeft && document.documentElement.scrollTop) { x = document.documentElement.scrollLeft; y = document.documentElement.scrollTop; } return [x, y];}
else if (document.documentElement.scrollLeft && document.documentElement.scrollTop) {
else if ((typeof(document.documentElement.scrollLeft) != "undefined") && (typeof(document.documentElement.scrollTop) != "undefined")) {
function getScrollPosition() { var x = 0; var y = 0; if (window.scrollX && window.scrollY) { x = window.scrollX; y = window.scrollY; } else if (document.documentElement.scrollLeft && document.documentElement.scrollTop) { x = document.documentElement.scrollLeft; y = document.documentElement.scrollTop; } return [x, y];}
l.on('selectionChange',function(m){var n=l.getCommand('unlink'),o=m.data.path.lastElement.getAscendant('a',true);if(o&&o.getName()=='a'&&o.getAttribute('href'))n.setState(2);else n.setState(0);});if(l.addMenuItems)l.addMenuItems({anchor:{label:l.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:l.lang.link.menu,command:'link',group:'link',order:1},unlink:{label:l.lang.unlink,command:'unlink',group:'link',order:5}});if(l.contextMenu)l.contextMenu.addListener(function(m,n){if(!m)return null;var o=m.is('img')&&m.getAttribute('_cke_real_element_type')=='anchor';if(!o){if(!(m=j.link.getSelectedLink(l)))return null;o=m.getAttribute('name')&&!m.getAttribute('href');}return o?{anchor:2}:{link:2,unlink:2};});},afterInit:function(l){var m=l.dataProcessor,n=m&&m.dataFilter;if(n)n.addRules({elements:{a:function(o){var p=o.attributes;if(p.name&&!p.href)return l.createFakeParserElement(o,'cke_anchor','anchor');}}});},requires:['fakeobjects']});j.link={getSelectedLink:function(l){var m;try{m=l.getSelection().getRanges()[0];}catch(o){return null;}m.shrink(a.SHRINK_TEXT);var n=m.getCommonAncestor();return n.getAscendant('a',true);}};a.unlinkCommand=function(){};a.unlinkCommand.prototype={exec:function(l){var m=l.getSelection(),n=m.createBookmarks(),o=m.getRanges(),p,q;for(var r=0;r<o.length;r++){p=o[r].getCommonAncestor(true);q=p.getAscendant('a',true);if(!q)continue;o[r].selectNodeContents(q);}m.selectRanges(o);l.document.$.execCommand('unlink',false,null);m.selectBookmarks(n);},startDisabled:true};e.extend(i,{linkShowAdvancedTab:true,linkShowTargetTab:true});(function(){var l={ol:1,ul:1},m=/^[\n\r\t ]*$/;j.list={listToArray:function(A,B,C,D,E){if(!l[A.getName()])return[];if(!D)D=0;if(!C)C=[];for(var F=0,G=A.getChildCount();F<G;F++){var H=A.getChild(F);if(H.$.nodeName.toLowerCase()!='li')continue;var I={parent:A,indent:D,element:H,contents:[]};if(!E){I.grandparent=A.getParent();if(I.grandparent&&I.grandparent.$.nodeName.toLowerCase()=='li')I.grandparent=I.grandparent.getParent();}else I.grandparent=E;if(B)h.setMarker(B,H,'listarray_index',C.length);C.push(I);for(var J=0,K=H.getChildCount(),L;J<K;J++){L=H.getChild(J);if(L.type==1&&l[L.getName()])j.list.listToArray(L,B,C,D+1,I.grandparent);else I.contents.push(L);}}return C;},arrayToList:function(A,B,C,D){if(!C)C=0;if(!A||A.length<C+1)return null;var E=A[C].parent.getDocument(),F=new d.documentFragment(E),G=null,H=C,I=Math.max(A[C].indent,0),J=null,K=D==1?'p':'div';for(;;){var L=A[H];if(L.indent==I){if(!G||A[H].parent.getName()!=G.getName()){G=A[H].parent.clone(false,true);
j.add('link',{init:function(l){l.addCommand('link',new a.dialogCommand('link'));l.addCommand('anchor',new a.dialogCommand('anchor'));l.addCommand('unlink',new a.unlinkCommand());l.ui.addButton('Link',{label:l.lang.link.toolbar,command:'link'});l.ui.addButton('Unlink',{label:l.lang.unlink,command:'unlink'});l.ui.addButton('Anchor',{label:l.lang.anchor.toolbar,command:'anchor'});a.dialog.add('link',this.path+'dialogs/link.js');a.dialog.add('anchor',this.path+'dialogs/anchor.js');l.addCss('img.cke_anchor{background-image: url('+a.getUrl(this.path+'images/anchor.gif')+');'+'background-position: center center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'width: 18px !important;'+'height: 18px !important;'+'}\n'+'a.cke_anchor'+'{'+'background-image: url('+a.getUrl(this.path+'images/anchor.gif')+');'+'background-position: 0 center;'+'background-repeat: no-repeat;'+'border: 1px solid #a9a9a9;'+'padding-left: 18px;'+'}');l.on('selectionChange',function(m){var n=l.getCommand('unlink'),o=m.data.path.lastElement&&m.data.path.lastElement.getAscendant('a',true);if(o&&o.getName()=='a'&&o.getAttribute('href'))n.setState(2);else n.setState(0);});l.on('doubleclick',function(m){var n=j.link.getSelectedLink(l)||m.data.element;if(n.is('a'))m.data.dialog=n.getAttribute('name')&&!n.getAttribute('href')?'anchor':'link';else if(n.is('img')&&n.getAttribute('_cke_real_element_type')=='anchor')m.data.dialog='anchor';});if(l.addMenuItems)l.addMenuItems({anchor:{label:l.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:l.lang.link.menu,command:'link',group:'link',order:1},unlink:{label:l.lang.unlink,command:'unlink',group:'link',order:5}});if(l.contextMenu)l.contextMenu.addListener(function(m,n){if(!m||m.isReadOnly())return null;var o=m.is('img')&&m.getAttribute('_cke_real_element_type')=='anchor';if(!o){if(!(m=j.link.getSelectedLink(l)))return null;o=m.getAttribute('name')&&!m.getAttribute('href');}return o?{anchor:2}:{link:2,unlink:2};});},afterInit:function(l){var m=l.dataProcessor,n=m&&m.dataFilter;if(n)n.addRules({elements:{a:function(o){var p=o.attributes;if(p.name&&!p.href)return l.createFakeParserElement(o,'cke_anchor','anchor');}}});},requires:['fakeobjects']});j.link={getSelectedLink:function(l){try{var m=l.getSelection();if(m.getType()==3){var n=m.getSelectedElement();if(n.is('a'))return n;}var o=m.getRanges(true)[0];o.shrink(2);var p=o.getCommonAncestor();return p.getAscendant('a',true);}catch(q){return null;}}};a.unlinkCommand=function(){};a.unlinkCommand.prototype={exec:function(l){var m=l.getSelection(),n=m.createBookmarks(),o=m.getRanges(),p,q;
l.on('selectionChange',function(m){var n=l.getCommand('unlink'),o=m.data.path.lastElement.getAscendant('a',true);if(o&&o.getName()=='a'&&o.getAttribute('href'))n.setState(2);else n.setState(0);});if(l.addMenuItems)l.addMenuItems({anchor:{label:l.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:l.lang.link.menu,command:'link',group:'link',order:1},unlink:{label:l.lang.unlink,command:'unlink',group:'link',order:5}});if(l.contextMenu)l.contextMenu.addListener(function(m,n){if(!m)return null;var o=m.is('img')&&m.getAttribute('_cke_real_element_type')=='anchor';if(!o){if(!(m=j.link.getSelectedLink(l)))return null;o=m.getAttribute('name')&&!m.getAttribute('href');}return o?{anchor:2}:{link:2,unlink:2};});},afterInit:function(l){var m=l.dataProcessor,n=m&&m.dataFilter;if(n)n.addRules({elements:{a:function(o){var p=o.attributes;if(p.name&&!p.href)return l.createFakeParserElement(o,'cke_anchor','anchor');}}});},requires:['fakeobjects']});j.link={getSelectedLink:function(l){var m;try{m=l.getSelection().getRanges()[0];}catch(o){return null;}m.shrink(a.SHRINK_TEXT);var n=m.getCommonAncestor();return n.getAscendant('a',true);}};a.unlinkCommand=function(){};a.unlinkCommand.prototype={exec:function(l){var m=l.getSelection(),n=m.createBookmarks(),o=m.getRanges(),p,q;for(var r=0;r<o.length;r++){p=o[r].getCommonAncestor(true);q=p.getAscendant('a',true);if(!q)continue;o[r].selectNodeContents(q);}m.selectRanges(o);l.document.$.execCommand('unlink',false,null);m.selectBookmarks(n);},startDisabled:true};e.extend(i,{linkShowAdvancedTab:true,linkShowTargetTab:true});(function(){var l={ol:1,ul:1},m=/^[\n\r\t ]*$/;j.list={listToArray:function(A,B,C,D,E){if(!l[A.getName()])return[];if(!D)D=0;if(!C)C=[];for(var F=0,G=A.getChildCount();F<G;F++){var H=A.getChild(F);if(H.$.nodeName.toLowerCase()!='li')continue;var I={parent:A,indent:D,element:H,contents:[]};if(!E){I.grandparent=A.getParent();if(I.grandparent&&I.grandparent.$.nodeName.toLowerCase()=='li')I.grandparent=I.grandparent.getParent();}else I.grandparent=E;if(B)h.setMarker(B,H,'listarray_index',C.length);C.push(I);for(var J=0,K=H.getChildCount(),L;J<K;J++){L=H.getChild(J);if(L.type==1&&l[L.getName()])j.list.listToArray(L,B,C,D+1,I.grandparent);else I.contents.push(L);}}return C;},arrayToList:function(A,B,C,D){if(!C)C=0;if(!A||A.length<C+1)return null;var E=A[C].parent.getDocument(),F=new d.documentFragment(E),G=null,H=C,I=Math.max(A[C].indent,0),J=null,K=D==1?'p':'div';for(;;){var L=A[H];if(L.indent==I){if(!G||A[H].parent.getName()!=G.getName()){G=A[H].parent.clone(false,true);
getSelection : function()
this.getSelection = function()
getSelection : function() { //selection = editAreaLoader.getSelectionRange('abc'); return {start: $(this._id).selectionStart, end: $(this._id).selectionEnd}; },
},
};
getSelection : function() { //selection = editAreaLoader.getSelectionRange('abc'); return {start: $(this._id).selectionStart, end: $(this._id).selectionEnd}; },
0;if(a.wheelDelta)b=a.wheelDelta>0?1:-1;else if(a.detail)b=a.detail<0?1:-1;return b};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection)if(g.hasTag(a,"TEXTAREA")){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);var l=0;if(b.text.length>1){l-=b.text.length;if(l<0)l=0}a=-1+l;for(f.moveStart("character",l);f.inRange(b);){f.moveStart("character");a++}b=b.text.replace(/\r/g, "");return{start:a,end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart||a.selectionStart==0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var l=$(a).val();if(typeof b!="number")b=-1;if(typeof f!=
document.body.scrollLeft-document.documentElement.scrollLeft,y:a.y-document.body.scrollTop-document.documentElement.scrollTop}};this.wheelDelta=function(a){var b=0;if(a.wheelDelta)b=a.wheelDelta>0?1:-1;else if(a.detail)b=a.detail<0?1:-1;return b};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection)if(g.hasTag(a,"TEXTAREA")){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a); var l=0;if(b.text.length>1){l-=b.text.length;if(l<0)l=0}a=-1+l;for(f.moveStart("character",l);f.inRange(b);){f.moveStart("character");a++}b=b.text.replace(/\r/g,"");return{start:a,end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart||a.selectionStart== 0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var l=$(a).val();if(typeof b!="number")b=-1;if(typeof f!="number")f=-1;if(b<0)b=0;if(f>l.length)f=l.length;if(f<b)f=b;if(b>f)b=f;a.focus();if(typeof a.selectionStart!=="undefined"){a.selectionStart=b;a.selectionEnd=f}else if(document.selection){a=a.createTextRange();a.collapse(true);a.moveStart("character",b);a.moveEnd("character",f-b);a.select()}};this.isKeyPress=function(a){if(!a)a=window.event;
0;if(a.wheelDelta)b=a.wheelDelta>0?1:-1;else if(a.detail)b=a.detail<0?1:-1;return b};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection)if(g.hasTag(a,"TEXTAREA")){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);var l=0;if(b.text.length>1){l-=b.text.length;if(l<0)l=0}a=-1+l;for(f.moveStart("character",l);f.inRange(b);){f.moveStart("character");a++}b=b.text.replace(/\r/g,"");return{start:a,end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart||a.selectionStart==0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var l=$(a).val();if(typeof b!="number")b=-1;if(typeof f!=
a.wheelDelta>0?1:-1;else if(a.detail)b=a.detail<0?1:-1;return b};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection)if(g.hasTag(a,"TEXTAREA")){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);var l=0;if(b.text.length>1){l-=b.text.length;if(l<0)l=0}a=-1+l;for(f.moveStart("character",l);f.inRange(b);){f.moveStart("character");a++}b=b.text.replace(/\r/g,"");return{start:a, end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart||a.selectionStart==0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var l=$(a).val();if(typeof b!="number")b=-1;if(typeof f!="number")f=-1;if(b<
0;if(a.wheelDelta)b=a.wheelDelta>0?1:-1;else if(a.detail)b=a.detail<0?1:-1;return b};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection)if(g.hasTag(a,"TEXTAREA")){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);var l=0;if(b.text.length>1){l-=b.text.length;if(l<0)l=0}a=-1+l;for(f.moveStart("character",l);f.inRange(b);){f.moveStart("character");a++}b=b.text.replace(/\r/g, "");return{start:a,end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart||a.selectionStart==0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var l=$(a).val();if(typeof b!="number")b=-1;if(typeof f!=
a.wheelDelta>0?1:-1;else if(a.detail)b=a.detail<0?1:-1;return b};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection)if(g.hasTag(a,"TEXTAREA")){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);var l=0;if(b.text.length>1){l-=b.text.length;if(l<0)l=0}a=-1+l;for(f.moveStart("character",l);f.inRange(b);){f.moveStart("character");a++}b=b.text.replace(/\r/g,"");return{start:a,end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart||a.selectionStart==0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var l=$(a).val();if(typeof b!="number")b=-1;if(typeof f!="number")f=-1;if(b<
function(a,b){b=g.pageCoordinates(b);a=g.widgetPageCoordinates(a);return{x:b.x-a.x,y:b.y-a.y}};this.pageCoordinates=function(a){if(!a)a=window.event;var b=0,e=0;if(a.pageX||a.pageY){b=a.pageX;e=a.pageY}else if(a.clientX||a.clientY){b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;e=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}return{x:b,y:e}};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=
function(a,b){b=h.pageCoordinates(b);a=h.widgetPageCoordinates(a);return{x:b.x-a.x,y:b.y-a.y}};this.pageCoordinates=function(a){if(!a)a=window.event;var b=0,e=0;if(a.pageX||a.pageY){b=a.pageX;e=a.pageY}else if(a.clientX||a.clientY){b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;e=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}return{x:b,y:e}};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=
function(a,b){b=g.pageCoordinates(b);a=g.widgetPageCoordinates(a);return{x:b.x-a.x,y:b.y-a.y}};this.pageCoordinates=function(a){if(!a)a=window.event;var b=0,e=0;if(a.pageX||a.pageY){b=a.pageX;e=a.pageY}else if(a.clientX||a.clientY){b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;e=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}return{x:b,y:e}};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){var b,e;if(a.selectionStart!=undefined){b=a.selectionStart;e=a.selectionEnd}else if(document.selection){a=$(a).val();e=document.selection.createRange().duplicate();e.moveEnd("character",a.length);b=e.text==""?a.length:a.lastIndexOf(e.text);e=document.selection.createRange().duplicate();e.moveStart("character",-a.length);e=e.text.length}return{start:b,end:e}};this.setSelectionRange=function(a,b,e){var k=$(a).val();if(typeof b!="number")b=-1;if(typeof e!="number")e=-1;if(b<0)b=0;if(e>k.length)e=
function(a){if(!a)a=window.event;var b=0,f=0;if(a.pageX||a.pageY){b=a.pageX;f=a.pageY}else if(a.clientX||a.clientY){b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;f=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}return{x:b,y:f}};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection)if(g.hasTag(a,"TEXTAREA")){var b=document.selection.createRange(), f=b.duplicate();f.moveToElementText(a);var h=0;if(b.text.length>1){h-=b.text.length;if(h<0)h=0}a=-1+h;for(f.moveStart("character",h);f.inRange(b);){f.moveStart("character");a++}b=b.text.replace(/\r/g,"");return{start:a,end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart|| a.selectionStart==0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var h=$(a).val();if(typeof b!="number")b=-1;if(typeof f!="number")f=-1;if(b<0)b=0;if(f>h.length)f=h.length;if(f<b)f=b;if(b>f)b=f;a.focus();if(a.selectionStart!=undefined){a.selectionStart=b;a.selectionEnd=f}else if(document.selection){a=a.createTextRange();a.collapse(true);a.moveStart("character",b);a.moveEnd("character",f-b);a.select()}};this.isKeyPress=function(a){if(!a)a=window.event;
document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection)if(g.hasTag(a,"TEXTAREA")){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);var h=0;if(b.text.length>1){h-=b.text.length;if(h<0)h=0}a=-1+h;for(f.moveStart("character",h);f.inRange(b);){f.moveStart("character");a++}b=b.text.replace(/\r/g,"");return{start:a,end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character", f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart||a.selectionStart==0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var h=$(a).val();if(typeof b!="number")b=-1;if(typeof f!="number")f=-1;if(b<0)b=0;if(f>h.length)f=h.length;if(f<b)f=b;if(b>f)b=f;a.focus();if(a.selectionStart!=undefined){a.selectionStart=
function(a){if(!a)a=window.event;var b=0,f=0;if(a.pageX||a.pageY){b=a.pageX;f=a.pageY}else if(a.clientX||a.clientY){b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;f=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}return{x:b,y:f}};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection)if(g.hasTag(a,"TEXTAREA")){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);var h=0;if(b.text.length>1){h-=b.text.length;if(h<0)h=0}a=-1+h;for(f.moveStart("character",h);f.inRange(b);){f.moveStart("character");a++}b=b.text.replace(/\r/g,"");return{start:a,end:b.length+a}}else{f=$(a).val();a=document.selection.createRange().duplicate();a.moveEnd("character",f.length);b=a.text==""?f.length:f.lastIndexOf(a.text);a=document.selection.createRange().duplicate();a.moveStart("character",-f.length);return{start:b,end:a.text.length}}else return a.selectionStart||a.selectionStart==0?{start:a.selectionStart,end:a.selectionEnd}:{start:-1,end:-1}};this.setSelectionRange=function(a,b,f){var h=$(a).val();if(typeof b!="number")b=-1;if(typeof f!="number")f=-1;if(b<0)b=0;if(f>h.length)f=h.length;if(f<b)f=b;if(b>f)b=f;a.focus();if(a.selectionStart!=undefined){a.selectionStart=b;a.selectionEnd=f}else if(document.selection){a=a.createTextRange();a.collapse(true);a.moveStart("character",b);a.moveEnd("character",f-b);a.select()}};this.isKeyPress=function(a){if(!a)a=window.event;
function(a,b){b=k.pageCoordinates(b);a=k.widgetPageCoordinates(a);return{x:b.x-a.x,y:b.y-a.y}};this.pageCoordinates=function(a){if(!a)a=window.event;var b=0,f=0;if(a.pageX||a.pageY){b=a.pageX;f=a.pageY}else if(a.clientX||a.clientY){b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;f=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}return{x:b,y:f}};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange= function(a){if(document.selection){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);f.setEndPoint("EndToEnd",b);a=f.text.length-b.text.length;return{start:a,end:a+b.text.length}}else return{start:a.selectionStart,end:a.selectionEnd}};this.setSelectionRange=function(a,b,f){if(a.createTextRange){a=a.createTextRange();a.collapse(true);a.moveEnd("character",f);a.moveStart("character",b);a.select()}else if(a.setSelectionRange){a.focus();a.setSelectionRange(b,f)}};this.isKeyPress=
y:f}};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);f.setEndPoint("EndToEnd",b);a=f.text.length-b.text.length;return{start:a,end:a+b.text.length}}else return{start:a.selectionStart,end:a.selectionEnd}};this.setSelectionRange=function(a,b,f){if(a.createTextRange){a=a.createTextRange();a.collapse(true);a.moveEnd("character",
function(a,b){b=k.pageCoordinates(b);a=k.widgetPageCoordinates(a);return{x:b.x-a.x,y:b.y-a.y}};this.pageCoordinates=function(a){if(!a)a=window.event;var b=0,f=0;if(a.pageX||a.pageY){b=a.pageX;f=a.pageY}else if(a.clientX||a.clientY){b=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;f=a.clientY+document.body.scrollTop+document.documentElement.scrollTop}return{x:b,y:f}};this.scrollIntoView=function(a){(a=document.getElementById(a))&&a.scrollIntoView&&a.scrollIntoView(true)};this.getSelectionRange=function(a){if(document.selection){var b=document.selection.createRange(),f=b.duplicate();f.moveToElementText(a);f.setEndPoint("EndToEnd",b);a=f.text.length-b.text.length;return{start:a,end:a+b.text.length}}else return{start:a.selectionStart,end:a.selectionEnd}};this.setSelectionRange=function(a,b,f){if(a.createTextRange){a=a.createTextRange();a.collapse(true);a.moveEnd("character",f);a.moveStart("character",b);a.select()}else if(a.setSelectionRange){a.focus();a.setSelectionRange(b,f)}};this.isKeyPress=
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;
}if(o.styles||o.classes){r=[];if(o.styles)r.push({id:'advStyles',att:'style',type:'text',label:p.styles,'default':'',onChange:function(){},getStyle:function(s,t){var u=this.getValue().match(new RegExp(s+'\\s*:s*([^;]*)','i'));return u?u[1]:t;},updateStyle:function(s,t){var u=this.getValue();if(u)u=u.replace(new RegExp('\\s*'+s+'s*:[^;]*(?:$|;s*)','i'),'').replace(/^[;\s]+/,'').replace(/\s+$/,'');if(t){u&&!/;\s*$/.test(u)&&(u+='; ');u+=s+': '+t;}this.setValue(u,true);},setup:l,commit:m});if(o.classes)r.push({type:'hbox',widths:['45%','55%'],children:[{id:'advCSSClasses',att:'class',type:'text',label:p.cssClasses,'default':'',setup:l,commit:m}]});q.elements[0].children.push({type:'hbox',widths:['50%','50%'],children:[].concat(r)});}return q;}});})();(function(){j.add('div',{requires:['editingblock','domiterator','styles'],init:function(l){var m=l.lang.div;l.addCommand('creatediv',new a.dialogCommand('creatediv'));l.addCommand('editdiv',new a.dialogCommand('editdiv'));l.addCommand('removediv',{exec:function(n){var o=n.getSelection(),p=o&&o.getRanges(),q,r=o.createBookmarks(),s,t=[];function u(w){var x=new d.elementPath(w),y=x.blockLimit,z=y.is('div')&&y;if(z&&!z.getAttribute('_cke_div_added')){t.push(z);z.setAttribute('_cke_div_added');}};for(var v=0;v<p.length;v++){q=p[v];if(q.collapsed)u(o.getStartElement());else{s=new d.walker(q);s.evaluator=u;s.lastForward();}}for(v=0;v<t.length;v++)t[v].remove(true);o.selectBookmarks(r);}});l.ui.addButton('CreateDiv',{label:m.toolbar,command:'creatediv'});if(l.addMenuItems){l.addMenuItems({editdiv:{label:m.edit,command:'editdiv',group:'div',order:1},removediv:{label:m.remove,command:'removediv',group:'div',order:5}});if(l.contextMenu)l.contextMenu.addListener(function(n,o){if(!n||n.isReadOnly())return null;var p=new d.elementPath(n),q=p.blockLimit;if(q&&q.getAscendant('div',true))return{editdiv:2,removediv:2};return null;});}a.dialog.add('creatediv',this.path+'dialogs/div.js');a.dialog.add('editdiv',this.path+'dialogs/div.js');}});})();(function(){var l={toolbarFocus:{exec:function(n){var o=n._.elementsPath.idBase,p=a.document.getById(o+'0');if(p)p.focus();}}},m='<span class="cke_empty">&nbsp;</span>';j.add('elementspath',{requires:['selection'],init:function(n){var o='cke_path_'+n.name,p,q=function(){if(!p)p=a.document.getById(o);return p;},r='cke_elementspath_'+e.getNextNumber()+'_';n._.elementsPath={idBase:r,filters:[]};n.on('themeSpace',function(s){if(s.data.space=='bottom')s.data.html+='<span id="'+o+'_label" class="cke_voice_label">'+n.lang.elementsPath.eleLabel+'</span>'+'<div id="'+o+'" class="cke_path" role="group" aria-labelledby="'+o+'_label">'+m+'</div>';
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;
symbol!=="scripts.roll" && symbol!=="scripts.staccato") {
symbol!=="scripts.roll") {
this.getSymbolAlign = function (symbol) { if (symbol.substring(0,7)==="scripts" && symbol!=="scripts.roll" && symbol!=="scripts.staccato") { return "center"; } return "left"; }
if(c)v[B].$.styleSheet.cssText+=A;else v[B].$.innerHTML+=A;}}};var u=/\$color/g;e.extend(n,{uiColor:null,getUiColor:function(){return this.uiColor;},setUiColor:function(v){var w,x=s(a.document),y='.cke_editor_'+e.escapeCssSelector(n.name),z=[y+' .cke_wrapper',y+'_dialog .cke_dialog_contents',y+'_dialog a.cke_dialog_tab',y+'_dialog .cke_dialog_footer'].join(','),A='background-color: $color !important;';if(b.webkit)w=[[z,A]];else w=z+'{'+A+'}';return(this.setUiColor=function(B){var C=[[u,B]];n.uiColor=B;t([x],w,C);t(o,q,C);})(v);}});n.on('menuShow',function(v){var w=v.data[0],x=w.element.getElementsByTag('iframe').getItem(0).getFrameDocument();if(!x.getById('cke_ui_color')){var y=s(x);o.push(y);var z=n.getUiColor();if(z)t([y],q,[[u,z]]);}});if(n.config.uiColor)n.setUiColor(n.config.uiColor);}};})());(function(){a.dialog?l():a.on('dialogPluginReady',l);function l(){a.dialog.on('resize',function(m){var n=m.data,o=n.width,p=n.height,q=n.dialog,r=q.parts.contents;if(n.skin!='kama')return;r.setStyles({width:o+'px',height:p+'px'});setTimeout(function(){var s=q.parts.dialog.getChild([0,0,0]),t=s.getChild(0),u=s.getChild(2);u.setStyle('width',t.$.offsetWidth+'px');u=s.getChild(7);u.setStyle('width',t.$.offsetWidth-28+'px');u=s.getChild(4);u.setStyle('height',t.$.offsetHeight-31-14+'px');u=s.getChild(5);u.setStyle('height',t.$.offsetHeight-31-14+'px');},100);});};})();j.add('about',{requires:['dialog'],init:function(l){var m=l.addCommand('about',new a.dialogCommand('about'));m.modes={wysiwyg:1,source:1};m.canUndo=false;l.ui.addButton('About',{label:l.lang.about.title,command:'about'});a.dialog.add('about',this.path+'dialogs/about.js');}});(function(){var l='a11yhelp',m='a11yHelp';j.add(l,{availableLangs:{en:1},init:function(n){var o=this;n.addCommand(m,{exec:function(){var p=n.langCode;p=o.availableLangs[p]?p:'en';a.scriptLoader.load(a.getUrl(o.path+'lang/'+p+'.js'),function(){e.extend(n.lang,o.lang[p]);n.openDialog(m);});},modes:{wysiwyg:1,source:1},canUndo:false});a.dialog.add(m,this.path+'dialogs/a11yhelp.js');}});})();j.add('basicstyles',{requires:['styles','button'],init:function(l){var m=function(p,q,r,s){var t=new a.style(s);l.attachStyleStateChange(t,function(u){l.getCommand(r).setState(u);});l.addCommand(r,new a.styleCommand(t));l.ui.addButton(p,{label:q,command:r});},n=l.config,o=l.lang;m('Bold',o.bold,'bold',n.coreStyles_bold);m('Italic',o.italic,'italic',n.coreStyles_italic);m('Underline',o.underline,'underline',n.coreStyles_underline);m('Strike',o.strike,'strike',n.coreStyles_strike);
if(b.webkit){q=q.split('}').slice(0,-1);for(var r=0;r<q.length;r++)q[r]=q[r].split('{');}function s(v){var w=v.getById(m);if(!w){w=v.getHead().append('style');w.setAttribute('id',m);w.setAttribute('type','text/css');}return w;};function t(v,w,x){var y,z,A;for(var B=0;B<v.length;B++){if(b.webkit)for(z=0;z<w.length;z++){A=w[z][1];for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);v[B].$.sheet.addRule(w[z][0],A);}else{A=w;for(y=0;y<x.length;y++)A=A.replace(x[y][0],x[y][1]);if(c)v[B].$.styleSheet.cssText+=A;else v[B].$.innerHTML+=A;}}};var u=/\$color/g;e.extend(n,{uiColor:null,getUiColor:function(){return this.uiColor;},setUiColor:function(v){var w,x=s(a.document),y='.cke_editor_'+e.escapeCssSelector(n.name),z=[y+' .cke_wrapper',y+'_dialog .cke_dialog_contents',y+'_dialog a.cke_dialog_tab',y+'_dialog .cke_dialog_footer'].join(','),A='background-color: $color !important;';if(b.webkit)w=[[z,A]];else w=z+'{'+A+'}';return(this.setUiColor=function(B){var C=[[u,B]];n.uiColor=B;t([x],w,C);t(o,q,C);})(v);}});n.on('menuShow',function(v){var w=v.data[0],x=w.element.getElementsByTag('iframe').getItem(0).getFrameDocument();if(!x.getById('cke_ui_color')){var y=s(x);o.push(y);var z=n.getUiColor();if(z)t([y],q,[[u,z]]);}});if(n.config.uiColor)n.setUiColor(n.config.uiColor);}};})());(function(){a.dialog?l():a.on('dialogPluginReady',l);function l(){a.dialog.on('resize',function(m){var n=m.data,o=n.width,p=n.height,q=n.dialog,r=q.parts.contents;if(n.skin!='kama')return;r.setStyles({width:o+'px',height:p+'px'});setTimeout(function(){var s=q.parts.dialog.getChild([0,0,0]),t=s.getChild(0),u=s.getChild(2);u.setStyle('width',t.$.offsetWidth+'px');u=s.getChild(7);u.setStyle('width',t.$.offsetWidth-28+'px');u=s.getChild(4);u.setStyle('height',t.$.offsetHeight-31-14+'px');u=s.getChild(5);u.setStyle('height',t.$.offsetHeight-31-14+'px');},100);});};})();j.add('about',{requires:['dialog'],init:function(l){var m=l.addCommand('about',new a.dialogCommand('about'));m.modes={wysiwyg:1,source:1};m.canUndo=false;l.ui.addButton('About',{label:l.lang.about.title,command:'about'});a.dialog.add('about',this.path+'dialogs/about.js');}});(function(){var l='a11yhelp',m='a11yHelp';j.add(l,{availableLangs:{en:1,he:1},init:function(n){var o=this;n.addCommand(m,{exec:function(){var p=n.langCode;p=o.availableLangs[p]?p:'en';a.scriptLoader.load(a.getUrl(o.path+'lang/'+p+'.js'),function(){e.extend(n.lang,o.lang[p]);n.openDialog(m);});},modes:{wysiwyg:1,source:1},canUndo:false});a.dialog.add(m,this.path+'dialogs/a11yhelp.js');
if(c)v[B].$.styleSheet.cssText+=A;else v[B].$.innerHTML+=A;}}};var u=/\$color/g;e.extend(n,{uiColor:null,getUiColor:function(){return this.uiColor;},setUiColor:function(v){var w,x=s(a.document),y='.cke_editor_'+e.escapeCssSelector(n.name),z=[y+' .cke_wrapper',y+'_dialog .cke_dialog_contents',y+'_dialog a.cke_dialog_tab',y+'_dialog .cke_dialog_footer'].join(','),A='background-color: $color !important;';if(b.webkit)w=[[z,A]];else w=z+'{'+A+'}';return(this.setUiColor=function(B){var C=[[u,B]];n.uiColor=B;t([x],w,C);t(o,q,C);})(v);}});n.on('menuShow',function(v){var w=v.data[0],x=w.element.getElementsByTag('iframe').getItem(0).getFrameDocument();if(!x.getById('cke_ui_color')){var y=s(x);o.push(y);var z=n.getUiColor();if(z)t([y],q,[[u,z]]);}});if(n.config.uiColor)n.setUiColor(n.config.uiColor);}};})());(function(){a.dialog?l():a.on('dialogPluginReady',l);function l(){a.dialog.on('resize',function(m){var n=m.data,o=n.width,p=n.height,q=n.dialog,r=q.parts.contents;if(n.skin!='kama')return;r.setStyles({width:o+'px',height:p+'px'});setTimeout(function(){var s=q.parts.dialog.getChild([0,0,0]),t=s.getChild(0),u=s.getChild(2);u.setStyle('width',t.$.offsetWidth+'px');u=s.getChild(7);u.setStyle('width',t.$.offsetWidth-28+'px');u=s.getChild(4);u.setStyle('height',t.$.offsetHeight-31-14+'px');u=s.getChild(5);u.setStyle('height',t.$.offsetHeight-31-14+'px');},100);});};})();j.add('about',{requires:['dialog'],init:function(l){var m=l.addCommand('about',new a.dialogCommand('about'));m.modes={wysiwyg:1,source:1};m.canUndo=false;l.ui.addButton('About',{label:l.lang.about.title,command:'about'});a.dialog.add('about',this.path+'dialogs/about.js');}});(function(){var l='a11yhelp',m='a11yHelp';j.add(l,{availableLangs:{en:1},init:function(n){var o=this;n.addCommand(m,{exec:function(){var p=n.langCode;p=o.availableLangs[p]?p:'en';a.scriptLoader.load(a.getUrl(o.path+'lang/'+p+'.js'),function(){e.extend(n.lang,o.lang[p]);n.openDialog(m);});},modes:{wysiwyg:1,source:1},canUndo:false});a.dialog.add(m,this.path+'dialogs/a11yhelp.js');}});})();j.add('basicstyles',{requires:['styles','button'],init:function(l){var m=function(p,q,r,s){var t=new a.style(s);l.attachStyleStateChange(t,function(u){l.getCommand(r).setState(u);});l.addCommand(r,new a.styleCommand(t));l.ui.addButton(p,{label:q,command:r});},n=l.config,o=l.lang;m('Bold',o.bold,'bold',n.coreStyles_bold);m('Italic',o.italic,'italic',n.coreStyles_italic);m('Underline',o.underline,'underline',n.coreStyles_underline);m('Strike',o.strike,'strike',n.coreStyles_strike);
return btoa("this is not secure yet"+clientIdSig);
var sig = ""; var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow("navigator:browser"); if (window.keeFoxInst._keeFoxExtension.prefs.has("uniqueProfileId")) sig = window.keeFoxInst._keeFoxExtension.prefs.getValue("uniqueProfileId",""); if (sig == "") { sig = (Math.random() * (4294967296 - 1) + 1) + clientIdSig + (Math.random() * (4294967296 - 1) + 1); window.keeFoxInst._keeFoxExtension.prefs.setValue("uniqueProfileId",sig); } return btoa(sig);
this.getUniqueClientId = function(clientIdSig) { //TODO: get/create a unique private key // encrypt public clientIdSig using private key return btoa("this is not secure yet"+clientIdSig); }
getURIFlags: function (uri) Ci.nsIAboutModule.ALLOW_SCRIPT,
getURIFlags: function (uri) Ci.nsIAboutModule.ALLOW_SCRIPT };
getURIFlags: function (uri) Ci.nsIAboutModule.ALLOW_SCRIPT,
if (results == null)
if (results === null) {
var getUrlParams = function(name) { name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regexS = "[\\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS); var results = regex.exec(window.location.href); if (results == null) return ""; else return results[1]; };
else
} else {
var getUrlParams = function(name) { name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regexS = "[\\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS); var results = regex.exec(window.location.href); if (results == null) return ""; else return results[1]; };
}
var getUrlParams = function(name) { name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regexS = "[\\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS); var results = regex.exec(window.location.href); if (results == null) return ""; else return results[1]; };
return [ver[1], ver[3]];
return ver ? [ver[1], ver[3]] : [0, 0];
getVersion: function() { var ver; try { ver = navigator.plugins["Shockwave Flash"].description.slice(16); } catch(e) { try { var fo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); ver = fo && fo.GetVariable("$version"); } catch(err) { } } ver = RE.exec(ver); return [ver[1], ver[3]]; },
var ver;
var fo, ver;
getVersion: function() { var ver; try { ver = navigator.plugins["Shockwave Flash"].description.slice(16); } catch(e) { try { var fo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); ver = fo && fo.GetVariable("$version"); } catch(err) { } } ver = RE.exec(ver); return ver ? [ver[1], ver[3]] : [0, 0]; },
var fo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); ver = fo && fo.GetVariable("$version");
fo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); ver = fo && fo.GetVariable("$version");
getVersion: function() { var ver; try { ver = navigator.plugins["Shockwave Flash"].description.slice(16); } catch(e) { try { var fo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); ver = fo && fo.GetVariable("$version"); } catch(err) { } } ver = RE.exec(ver); return ver ? [ver[1], ver[3]] : [0, 0]; },
try { fo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); ver = fo && fo.GetVariable("$version"); } catch(err2) { }
getVersion: function() { var ver; try { ver = navigator.plugins["Shockwave Flash"].description.slice(16); } catch(e) { try { var fo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); ver = fo && fo.GetVariable("$version"); } catch(err) { } } ver = RE.exec(ver); return ver ? [ver[1], ver[3]] : [0, 0]; },
return {len: close-start, token: this.translateString(line.substring(i+1, close))};
return {len: close-start+1, token: this.translateString(line.substring(i+1, close))};
this.getVoiceToken = function(line, start, end) { // This finds the next token. A token is delimited by a space or an equal sign. If it starts with a quote, then the portion between the quotes is returned. var i = start; while (i < end && this.isWhiteSpace(line[i]) || line[i] === '=') i++; if (line[i] === '"') { var close = line.indexOf('"', i+1); if (close === -1 || close >= end) return {len: 1, err: "Missing close quote"}; return {len: close-start, token: this.translateString(line.substring(i+1, close))}; } else { var ii = i; while (ii < end && !this.isWhiteSpace(line[ii]) && line[ii] !== '=') ii++; return {len: ii-start+1, token: line.substring(i, ii)}; } };
};
}
function getWCSInfoWindowDownloadParameters() { var win = Ext.getCmp('wcsDownloadFrm'); var params = win.getForm().getValues(true); var customParams = ''; //Custom handling for time periods var dateFrom = Ext.getCmp('dateFrom'); var dateTo = Ext.getCmp('dateTo'); var timeFrom = Ext.getCmp('timeFrom'); var timeTo = Ext.getCmp('timeTo'); if (dateFrom && dateTo && timeFrom && timeTo) { if (!dateFrom.disabled && !dateTo.disabled && !timeFrom.disabled && !timeTo.disabled) { var dateTimeFrom = dateFrom.getValue().format('Y-m-d') + ' ' + timeFrom.getValue(); var dateTimeTo = dateTo.getValue().format('Y-m-d') + ' ' + timeTo.getValue(); customParams += '&timePeriodFrom=' + escape(dateTimeFrom); customParams += '&timePeriodTo' + escape(dateTimeTo); } } //Get the custom parameter constraints var axisConstraints = win.initialConfig.axisConstraints; if (axisConstraints && axisConstraints.length > 0) { for (var i = 0; i < axisConstraints.length; i++) { if (axisConstraints[i].type === 'singleValue') { var checkBoxGrp = Ext.getCmp(axisConstraints[i].checkBoxId); //This is for radio group selection var selection = checkBoxGrp.getValue(); if (selection && !selection.disabled) { var constraintName = checkBoxGrp.initialConfig.constraintName; var constraintValue = selection.initialConfig.inputValue; customParams += '&customParamValue=' + escape(constraintName + '=' + constraintValue); } /* This is for checkbox group selection var selections = checkBoxGrp.getValue(); for (var j = 0; selections && j < selections.length; j++) { if (!selections[j].disabled) { var constraintName = checkBoxGrp.initialConfig.constraintName; var constraintValue = selections[j].initialConfig.inputValue; customParams += '&customParamValue=' + escape(constraintName + '=' + constraintValue); } }*/ } else if (axisConstraints[i].type === 'interval') { //TODO: Intervals } } } return params + customParams;};
if (window.innerWidth && window.innerHeight) {
if ((typeof(window.innerWidth) != "undefined") && (typeof(window.innerHeight) != "undefined")) {
function getWindowSize() { var x = 0; var y = 0; if (window.innerWidth && window.innerHeight) { x = window.innerWidth; y = window.innerHeight; } else if (document.documentElement.clientWidth && document.documentElement.clientHeight) { x = document.documentElement.clientWidth; y = document.documentElement.clientHeight; } return [x, y];}
else if (document.documentElement.clientWidth && document.documentElement.clientHeight) {
else if ((typeof(document.documentElement.clientWidth) != "undefined") && (typeof(document.documentElement.clientHeight) != "undefined")) {
function getWindowSize() { var x = 0; var y = 0; if (window.innerWidth && window.innerHeight) { x = window.innerWidth; y = window.innerHeight; } else if (document.documentElement.clientWidth && document.documentElement.clientHeight) { x = document.documentElement.clientWidth; y = document.documentElement.clientHeight; } return [x, y];}
case "9": return -3;
case "9": case "+": return -3;
this.getYCorr = function (symbol) { switch(symbol) { case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": return -3; case "timesig.common": case "timesig.cut": return -1; case "flags.d32nd": return -1; case "flags.d64th": return -2; case "flags.u32nd": return 1; case "flags.u64th": return 3; case "rests.whole": return 1; case "rests.half": return -1; case "rests.8th": return -1; case "rests.quarter": return -2; case "rests.16th": return -1; case "rests.32nd": return -1; case "rests.64th": return -1; case "clefs.G": return -1; default: return 0; } };
case "clefs.G": return -1;
case "clefs.G": case "clefs.F": case "clefs.C": return -1;
this.getYCorr = function (symbol) { switch(symbol) { case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": return -3; case "timesig.common": case "timesig.cut": return -1; case "flags.d32nd": return -1; case "flags.d64th": return -2; case "flags.u32nd": return 1; case "flags.u64th": return 3; case "rests.whole": return 1; case "rests.half": return -1; case "rests.8th": return -1; case "rests.quarter": return -2; case "rests.16th": return -1; case "rests.32nd": return -1; case "rests.64th": return -1; case "clefs.G": return -1; default: return 0; } };
case "clefs.perc": return -1;
this.getYCorr = function (symbol) { switch(symbol) { case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": case "+": return -3; case "timesig.common": case "timesig.cut": return -1; case "flags.d32nd": return -1; case "flags.d64th": return -2; case "flags.u32nd": return 1; case "flags.u64th": return 3; case "rests.whole": return 1; case "rests.half": return -1; case "rests.8th": return -1; case "rests.quarter": return -2; case "rests.16th": return -1; case "rests.32nd": return -1; case "rests.64th": return -1; default: return 0; } };
case "rests.32nd": return -1; case "rests.64th": return -1; case "clefs.G": return -1;
this.getYCorr = function (symbol) { switch(symbol) { case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": return -3; case "timesig.common": case "timesig.cut": return -1; case "flags.d32nd": return -1; case "flags.d64th": return -2; case "flags.u32nd": return 1; case "flags.u64th": return 3; case "rests.8th": return -1; case "rests.quarter": return -2; case "rests.16th": return -1; default: return 0; } };
case "clefs.perc": return -1;
this.getYCorr = function (symbol) { switch(symbol) { case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": case "+": return -3; case "timesig.common": case "timesig.cut": return -1; case "flags.d32nd": return -1; case "flags.d64th": return -2; case "flags.u32nd": return 1; case "flags.u64th": return 3; case "rests.whole": return 1; case "rests.half": return -1; case "rests.8th": return -1; case "rests.quarter": return -2; case "rests.16th": return -1; case "rests.32nd": return -1; case "rests.64th": return -1; case "clefs.perc": return -1; default: return 0; } };
case "\u00d9": case "\u00c2": return -3; case "\u0153": case "K": case "\u203a": case "W": case ";": case ".": case "\u2026": case "_": case "\u0153": case "#": case "b": case "n": case "w": return 0; default: return -1;
case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": return -3; case "timesig.common": case "timesig.cut": return -1; case "flags.d32nd": return -1; case "flags.d64th": return -2; case "flags.u32nd": return 1; case "flags.u64th": return 3; case "rests.8th": return -1; case "rests.quarter": return -2; case "rests.16th": return -1; default: return 0;
this.getYCorr = function (symbol) { switch(symbol) { case "\u00d9": // 64th rest case "\u00c2": return -3; // 128th rest case "\u0153": // down flag case "K": // up flag case "\u203a": //dblbreve case "W": //dblbreve case ";": case ".": case "\u2026": // acciatura gracenote case "_": case "\u0153": // notehead case "#": case "b": case "n": case "w": return 0; default: return -1; } };
case "rests.whole": return 1; case "rests.half": return -1;
this.getYCorr = function (symbol) { switch(symbol) { case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": return -3; case "timesig.common": case "timesig.cut": return -1; case "flags.d32nd": return -1; case "flags.d64th": return -2; case "flags.u32nd": return 1; case "flags.u64th": return 3; case "rests.8th": return -1; case "rests.quarter": return -2; case "rests.16th": return -1; case "rests.32nd": return -1; case "rests.64th": return -1; case "clefs.G": return -1; default: return 0; } };
var years = new Array();
var years = [];
function getYearsArrayFrom(yearFrom) { var years = new Array(); var currentYear = new Date().getFullYear(); for (x=0;x<= currentYear - yearFrom;x++ ) years[x] = currentYear - x; return years; }
for (x=0;x<= currentYear - yearFrom;x++ )
for (x=0;x<= currentYear - yearFrom;x++ ) {
function getYearsArrayFrom(yearFrom) { var years = new Array(); var currentYear = new Date().getFullYear(); for (x=0;x<= currentYear - yearFrom;x++ ) years[x] = currentYear - x; return years; }
}
function getYearsArrayFrom(yearFrom) { var years = new Array(); var currentYear = new Date().getFullYear(); for (x=0;x<= currentYear - yearFrom;x++ ) years[x] = currentYear - x; return years; }
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)===
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)===
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)===
var settings = null, configId = config.id;
var settings = null;
function GM_configInit(config, args) { var settings = null, configId = config.id; // If the id has changed we must modify the default style if (configId != 'GM_config') config.css.basic = config.css.basic.replace(/#GM_config/gm, '#' + configId); // loop through GM_config.init() arguments for (var i = 0, l = args.length, arg; i < l; ++i) { arg = args[i]; // An element to use as the config window if (typeof arg.appendChild == "function") { config.frame = arg; continue; } switch (typeof arg) { case 'object': for (var j in arg) { // could be a callback functions or settings object if (typeof arg[j] != "function") { // we are in the settings object settings = arg; // store settings object break; // leave the loop } // otherwise it must be a callback function config["on" + j.charAt(0).toUpperCase() + j.slice(1)] = arg[j]; } break; case 'function': // passing a bare function is set to open callback config.onOpen = arg; break; case 'string': // could be custom CSS or the title string if (arg.indexOf('{') != -1 && arg.indexOf('}') != -1) config.css.stylish = arg; else config.title = arg; break; } } if (settings) { var stored = config.read(); // read the stored settings for (var id in settings) // for each setting create a field object config.fields[id] = new GM_configField(settings[id], stored[id], id); }}
if (configId != 'GM_config') config.css.basic = config.css.basic.replace(/#GM_config/gm, '#' + configId);
if (config.id != 'GM_config') config.css.basic = config.css.basic.replace(/#GM_config/gm, '#' + config.id);
function GM_configInit(config, args) { var settings = null, configId = config.id; // If the id has changed we must modify the default style if (configId != 'GM_config') config.css.basic = config.css.basic.replace(/#GM_config/gm, '#' + configId); // loop through GM_config.init() arguments for (var i = 0, l = args.length, arg; i < l; ++i) { arg = args[i]; // An element to use as the config window if (typeof arg.appendChild == "function") { config.frame = arg; continue; } switch (typeof arg) { case 'object': for (var j in arg) { // could be a callback functions or settings object if (typeof arg[j] != "function") { // we are in the settings object settings = arg; // store settings object break; // leave the loop } // otherwise it must be a callback function config["on" + j.charAt(0).toUpperCase() + j.slice(1)] = arg[j]; } break; case 'function': // passing a bare function is set to open callback config.onOpen = arg; break; case 'string': // could be custom CSS or the title string if (arg.indexOf('{') != -1 && arg.indexOf('}') != -1) config.css.stylish = arg; else config.title = arg; break; } } if (settings) { var stored = config.read(); // read the stored settings for (var id in settings) // for each setting create a field object config.fields[id] = new GM_configField(settings[id], stored[id], id); }}
if (typeof arg.appendChild == "function") { obj.frame = arg; continue;
if (typeof arg.appendChild == "function") { obj.frame = arg; continue; } switch (typeof arg) { case 'object': for (var j in arg) { if (typeof arg[j] != "function") { var settings = arg; break; } switch (j) { case "open": obj.onOpen = arg[j]; break; case "close": obj.onClose = arg[j]; break; case "save": obj.onSave = arg[j]; break; }
function GM_configInit(obj, args) { // loop through GM_config.init() arguments for (var i = 0, l = args.length, arg; i < l; ++i) { arg = args[i]; // An element to use as the config window if (typeof arg.appendChild == "function") { obj.frame = arg; continue; } switch (typeof arg) { case 'object': for (var j in arg) { // could be a callback functions or settings object if (typeof arg[j] != "function") { // we are in the settings object var settings = arg; // store settings object break; // leave the loop } // otherwise we must be in the callback functions object switch (j) { case "open": // called when the frame is opened and loaded obj.onOpen = arg[j]; break; case "close": // called when frame is gone obj.onClose = arg[j]; break; case "save": // called when settings have been saved obj.onSave = arg[j]; break; // store the settings objects } } break; case 'function': obj.onOpen = arg; break; // passing a bare function is set to open callback // could be custom CSS or the title string case 'string': if (arg.indexOf('{') != -1 && arg.indexOf('}') != -1) var css = arg; else obj.title = arg; break; } } // if title wasn't passed through init() if (!obj.title) obj.title = 'Settings - Anonymous Script'; var stored = obj.read(); // read the stored settings // for each setting create a field object for (var id in settings) obj.fields[id] = new GM_configField(settings[id], stored[id], id); if (css) obj.css.stylish = css; // store the custom style}
switch (typeof arg) { case 'object': for (var j in arg) { if (typeof arg[j] != "function") { var settings = arg; break; } switch (j) { case "open": obj.onOpen = arg[j]; break; case "close": obj.onClose = arg[j]; break; case "save": obj.onSave = arg[j]; break; } } break; case 'function': obj.onOpen = arg; break; case 'string': if (arg.indexOf('{') != -1 && arg.indexOf('}') != -1) var css = arg; else obj.title = arg; break; } } if (!obj.title) obj.title = 'Settings - Anonymous Script';
var stored = obj.read(); for (var id in settings) obj.fields[id] = new GM_configField(settings[id], stored[id], id);
function GM_configInit(obj, args) { // loop through GM_config.init() arguments for (var i = 0, l = args.length, arg; i < l; ++i) { arg = args[i]; // An element to use as the config window if (typeof arg.appendChild == "function") { obj.frame = arg; continue; } switch (typeof arg) { case 'object': for (var j in arg) { // could be a callback functions or settings object if (typeof arg[j] != "function") { // we are in the settings object var settings = arg; // store settings object break; // leave the loop } // otherwise we must be in the callback functions object switch (j) { case "open": // called when the frame is opened and loaded obj.onOpen = arg[j]; break; case "close": // called when frame is gone obj.onClose = arg[j]; break; case "save": // called when settings have been saved obj.onSave = arg[j]; break; // store the settings objects } } break; case 'function': obj.onOpen = arg; break; // passing a bare function is set to open callback // could be custom CSS or the title string case 'string': if (arg.indexOf('{') != -1 && arg.indexOf('}') != -1) var css = arg; else obj.title = arg; break; } } // if title wasn't passed through init() if (!obj.title) obj.title = 'Settings - Anonymous Script'; var stored = obj.read(); // read the stored settings // for each setting create a field object for (var id in settings) obj.fields[id] = new GM_configField(settings[id], stored[id], id); if (css) obj.css.stylish = css; // store the custom style}
var stored = obj.read(); for (var id in settings) obj.fields[id] = new GM_configField(settings[id], stored[id], id); if (css) obj.css.stylish = css;
if (css) obj.css.stylish = css;
function GM_configInit(obj, args) { // loop through GM_config.init() arguments for (var i = 0, l = args.length, arg; i < l; ++i) { arg = args[i]; // An element to use as the config window if (typeof arg.appendChild == "function") { obj.frame = arg; continue; } switch (typeof arg) { case 'object': for (var j in arg) { // could be a callback functions or settings object if (typeof arg[j] != "function") { // we are in the settings object var settings = arg; // store settings object break; // leave the loop } // otherwise we must be in the callback functions object switch (j) { case "open": // called when the frame is opened and loaded obj.onOpen = arg[j]; break; case "close": // called when frame is gone obj.onClose = arg[j]; break; case "save": // called when settings have been saved obj.onSave = arg[j]; break; // store the settings objects } } break; case 'function': obj.onOpen = arg; break; // passing a bare function is set to open callback // could be custom CSS or the title string case 'string': if (arg.indexOf('{') != -1 && arg.indexOf('}') != -1) var css = arg; else obj.title = arg; break; } } // if title wasn't passed through init() if (!obj.title) obj.title = 'Settings - Anonymous Script'; var stored = obj.read(); // read the stored settings // for each setting create a field object for (var id in settings) obj.fields[id] = new GM_configField(settings[id], stored[id], id); if (css) obj.css.stylish = css; // store the custom style}
config.css.basic = config.css.basic.replace(/#GM_config/gm, configId);
config.css.basic = config.css.basic.replace(/#GM_config/gm, '#' + configId);
function GM_configInit(config, args) { var settings = null, configId = config.id; // If the id has changed we must modify the default style if (configId != 'GM_config') config.css.basic = config.css.basic.replace(/#GM_config/gm, configId); // loop through GM_config.init() arguments for (var i = 0, l = args.length, arg; i < l; ++i) { arg = args[i]; // An element to use as the config window if (typeof arg.appendChild == "function") { config.frame = arg; continue; } switch (typeof arg) { case 'object': for (var j in arg) { // could be a callback functions or settings object if (typeof arg[j] != "function") { // we are in the settings object settings = arg; // store settings object break; // leave the loop } // otherwise it must be a callback function config["on" + j.charAt(0).toUpperCase() + j.slice(1)] = arg[j]; } break; case 'function': // passing a bare function is set to open callback config.onOpen = arg; break; case 'string': // could be custom CSS or the title string if (arg.indexOf('{') != -1 && arg.indexOf('}') != -1) config.css.stylish = arg; else config.title = arg; break; } } var stored = config.read(); // read the stored settings // for each setting create a field object if (settings) for (var id in settings) config.fields[id] = new GM_configField(settings[id], stored[id], id, configId);}
basic: "#GM_config * { font-family: arial,tahoma,myriad pro,sans-serif; }" + '\n' + "#GM_config { background: #FFF; }" + '\n' + "#GM_config input[type='radio'] { margin-right: 8px; }" + '\n' + "#GM_config .indent40 { margin-left: 40%; }" + '\n' + "#GM_config .field_label { font-weight: bold; font-size: 12px; margin-right: 6px; }" + '\n' + "#GM_config .block { display: block; }" + '\n' + "#GM_config .saveclose_buttons { margin: 16px 10px 10px; padding: 2px 12px; }" + '\n' + "#GM_config .reset, .reset a, #GM_config_buttons_holder { text-align: right; color: #000; }" + '\n' + "#GM_config .config_header { font-size: 20pt; margin: 0; }" + '\n' + "#GM_config .config_desc, .section_desc, .reset { font-size: 9pt; }" + '\n' + "#GM_config .center { text-align: center; }" + '\n' + "#GM_config .section_header_holder { margin-top: 8px; }" + '\n' + "#GM_config .config_var { margin: 0 0 4px; }" + '\n' + "#GM_config .section_header { font-size: 13pt; background: #414141; color: #FFF;" + '\n' + "border: 1px solid #000; margin: 0; }" + '\n' + "#GM_config .section_desc { font-size: 9pt; background: #EFEFEF; color: #575757;" + '\n' + "border: 1px solid #CCC; margin: 0 0 6px; }", stylish: ""
basic: "#GM_config * { font-family: arial,tahoma,myriad pro,sans-serif; }" + '\n' + "#GM_config { background: #FFF; }" + '\n' + "#GM_config input[type='radio'] { margin-right: 8px; }" + '\n' + "#GM_config .indent40 { margin-left: 40%; }" + '\n' + "#GM_config .field_label { font-weight: bold; font-size: 12px; margin-right: 6px; }" + '\n' + "#GM_config .block { display: block; }" + '\n' + "#GM_config .saveclose_buttons { margin: 16px 10px 10px; padding: 2px 12px; }" + '\n' + "#GM_config .reset, #GM_config .reset a," + '\n' + "#GM_config_buttons_holder { text-align: right; color: #000; }" + '\n' + "#GM_config .config_header { font-size: 20pt; margin: 0; }" + '\n' + "#GM_config .config_desc, #GM_config .section_desc, #GM_config .reset { font-size: 9pt; }" + '\n' + "#GM_config .center { text-align: center; }" + '\n' + "#GM_config .section_header_holder { margin-top: 8px; }" + '\n' + "#GM_config .config_var { margin: 0 0 4px; }" + '\n' + "#GM_config .section_header { font-size: 13pt; background: #414141; color: #FFF;" + '\n' + "border: 1px solid #000; margin: 0; }" + '\n' + "#GM_config .section_desc { font-size: 9pt; background: #EFEFEF; color: #575757;" + '\n' + "border: 1px solid #CCC; margin: 0 0 6px; }", stylish: ""
function GM_configStruct() { // define a few properties this.storage = 'GM_config'; // Changed to something unique for localStorage this.isGM = typeof GM_getValue != 'undefined' && typeof GM_getValue('a', 'b') != 'undefined'; this.fields = {}; this.css = { basic: "#GM_config * { font-family: arial,tahoma,myriad pro,sans-serif; }" + '\n' + "#GM_config { background: #FFF; }" + '\n' + "#GM_config input[type='radio'] { margin-right: 8px; }" + '\n' + "#GM_config .indent40 { margin-left: 40%; }" + '\n' + "#GM_config .field_label { font-weight: bold; font-size: 12px; margin-right: 6px; }" + '\n' + "#GM_config .block { display: block; }" + '\n' + "#GM_config .saveclose_buttons { margin: 16px 10px 10px; padding: 2px 12px; }" + '\n' + "#GM_config .reset, .reset a, #GM_config_buttons_holder { text-align: right; color: #000; }" + '\n' + "#GM_config .config_header { font-size: 20pt; margin: 0; }" + '\n' + "#GM_config .config_desc, .section_desc, .reset { font-size: 9pt; }" + '\n' + "#GM_config .center { text-align: center; }" + '\n' + "#GM_config .section_header_holder { margin-top: 8px; }" + '\n' + "#GM_config .config_var { margin: 0 0 4px; }" + '\n' + "#GM_config .section_header { font-size: 13pt; background: #414141; color: #FFF;" + '\n' + "border: 1px solid #000; margin: 0; }" + '\n' + "#GM_config .section_desc { font-size: 9pt; background: #EFEFEF; color: #575757;" + '\n' + "border: 1px solid #CCC; margin: 0 0 6px; }", stylish: "" }; // Define value storing and reading API if (!this.isGM) { this.setValue = function (name, value) { return localStorage.setItem(name, value); }; this.getValue = function(name, def){ var s = localStorage.getItem(name); return s == null ? def : s }; // We only support JSON parser outside GM this.stringify = JSON.stringify; this.parser = JSON.parse; } else { this.setValue = GM_setValue; this.getValue = GM_getValue; this.stringify = typeof JSON == "undefined" ? function(obj) { return obj.toSource(); } : JSON.stringify; this.parser = typeof JSON == "undefined" ? function(jsonData) { return (new Function('return ' + jsonData + ';'))(); } : JSON.parse; } // call init() if settings were passed to constructor if (arguments.length) GM_configInit(this, arguments);}
+ '\n' + "#GM_config .section_header { font-size: 13pt; background: #414141; color: #FFF; border: 1px solid #000; margin: 0; }" + '\n' + "#GM_config .section_desc { font-size: 9pt; background: #EFEFEF; color: #575757; border: 1px solid #CCC; margin: 0 0 6px; }",
+ '\n' + "#GM_config .section_header { font-size: 13pt; background: #414141; color: #FFF;" + '\n' + "border: 1px solid #000; margin: 0; }" + '\n' + "#GM_config .section_desc { font-size: 9pt; background: #EFEFEF; color: #575757;" + '\n' + "border: 1px solid #CCC; margin: 0 0 6px; }",
function GM_configStruct() { // define a few properties this.storage = 'GM_config'; // Changed to something unique for localStorage this.isGM = typeof GM_getValue != 'undefined' && typeof GM_getValue('a', 'b') != 'undefined'; this.fields = {}; this.css = { basic: "#GM_config * { font-family: arial,tahoma,myriad pro,sans-serif; }" + '\n' + "#GM_config { background: #FFF; }" + '\n' + "#GM_config input[type='radio'] { margin-right: 8px; }" + '\n' + "#GM_config .indent40 { margin-left: 40%; }" + '\n' + "#GM_config .field_label { font-weight: bold; font-size: 12px; margin-right: 6px; }" + '\n' + "#GM_config .block { display: block; }" + '\n' + "#GM_config .saveclose_buttons { margin: 16px 10px 10px; padding: 2px 12px; }" + '\n' + "#GM_config .reset, .reset a, #GM_config_buttons_holder { text-align: right; color: #000; }" + '\n' + "#GM_config .config_header { font-size: 20pt; margin: 0; }" + '\n' + "#GM_config .config_desc, .section_desc, .reset { font-size: 9pt; }" + '\n' + "#GM_config .center { text-align: center; }" + '\n' + "#GM_config .section_header_holder { margin-top: 8px; }" + '\n' + "#GM_config .config_var { margin: 0 0 4px; }" + '\n' + "#GM_config .section_header { font-size: 13pt; background: #414141; color: #FFF; border: 1px solid #000; margin: 0; }" + '\n' + "#GM_config .section_desc { font-size: 9pt; background: #EFEFEF; color: #575757; border: 1px solid #CCC; margin: 0 0 6px; }", stylish: "" }; // Define value storing and reading API if (!this.isGM) { this.setValue = function (name, value) { return localStorage.setItem(name, value); }; this.getValue = function(name, def){ var s = localStorage.getItem(name); return s == null ? def : s }; // We only support JSON parser outside GM this.stringify = JSON.stringify; this.parser = JSON.parse; } else { this.setValue = GM_setValue; this.getValue = GM_getValue; this.stringify = typeof JSON == "undefined" ? function(obj) { return obj.toSource(); } : JSON.stringify; this.parser = typeof JSON == "undefined" ? function(jsonData) { return (new Function('return ' + jsonData + ';'))(); } : JSON.parse; } // call init() if settings were passed to constructor if (arguments.length) GM_configInit(this, arguments);}
+ '\n' + "#GM_config .reset, .reset a, #buttons_holder { text-align: right; color: #000; }"
+ '\n' + "#GM_config .reset, .reset a, #GM_config_buttons_holder { text-align: right; color: #000; }"
function GM_configStruct() { // define a few properties this.storage = 'GM_config'; // Changed to something unique for localStorage this.isGM = typeof GM_getValue != 'undefined' && typeof GM_getValue('a', 'b') != 'undefined'; this.values = {}; this.settings = {}; this.css = { basic: "#GM_config * { font-family: arial,tahoma,myriad pro,sans-serif; }" + '\n' + "#GM_config { background: #FFF; }" + '\n' + "#GM_config input[type='radio'] { margin-right: 8px; }" + '\n' + "#GM_config .indent40 { margin-left: 40%; }" + '\n' + "#GM_config .field_label { font-weight: bold; font-size: 12px; margin-right: 6px; }" + '\n' + "#GM_config .block { display: block; }" + '\n' + "#GM_config .saveclose_buttons { margin: 16px 10px 10px; padding: 2px 12px; }" + '\n' + "#GM_config .reset, .reset a, #buttons_holder { text-align: right; color: #000; }" + '\n' + "#GM_config .config_header { font-size: 20pt; margin: 0; }" + '\n' + "#GM_config .config_desc, .section_desc, .reset { font-size: 9pt; }" + '\n' + "#GM_config .center { text-align: center; }" + '\n' + "#GM_config .section_header_holder { margin-top: 8px; }" + '\n' + "#GM_config .config_var { margin: 0 0 4px; }" + '\n' + "#GM_config .section_header { font-size: 13pt; background: #414141; color: #FFF; border: 1px solid #000; margin: 0; }" + '\n' + "#GM_config .section_desc { font-size: 9pt; background: #EFEFEF; color: #575757; border: 1px solid #CCC; margin: 0 0 6px; }", stylish: "" }; // Define value storing and reading API if (!this.isGM) { this.setValue = function (name, value) { return localStorage.setItem(name, value); }; this.getValue = function(name, def){ var s = localStorage.getItem(name); return s == null ? def : s }; // We only support JSON parser outside GM this.stringify = JSON.stringify; this.parser = JSON.parse; } else { this.setValue = GM_setValue; this.getValue = GM_getValue; this.stringify = typeof JSON == "undefined" ? function(obj) { return obj.toSource(); } : JSON.stringify; this.parser = typeof JSON == "undefined" ? function(jsonData) { return (new Function('return ' + jsonData + ';'))(); } : JSON.parse; } // call init() if settings were passed to constructor if (arguments.length) GM_configInit(this, arguments);}
this._popEditPosition(this.lastEditStack, index, this.nextEditStack);
this._popEditPosition(this.lastEditStack, index, this.nextEditStack, this.prefs.editRememberCurrentPos);
goToLastEdit : function(index) { this._popEditPosition(this.lastEditStack, index, this.nextEditStack); },
this._popEditPosition(this.nextEditStack, index, this.lastEditStack);
this._popEditPosition(this.nextEditStack, index, this.lastEditStack, false);
goToNextEdit : function(index) { this._popEditPosition(this.nextEditStack, index, this.lastEditStack); },
return-1},merge:function(a,b){var e=a.length,g=0;if(typeof b.length==="number")for(var h=b.length;g<h;g++)a[e++]=b[g];else for(;b[g]!==v;)a[e++]=b[g++];a.length=e;return a},grep:function(a,b,e){for(var g=[],h=0,k=a.length;h<k;h++)!e!==!b(a[h],h)&&g.push(a[h]);return g},map:function(a,b,e){for(var g=[],h,k=0,l=a.length;k<l;k++){h=b(a[k],k,e);if(h!=null)g[g.length]=h}return g.concat.apply([],g)},guid:1,proxy:function(a,b,e){if(arguments.length===2)if(typeof b==="string"){e=a;a=e[b];b=v}else if(b&&!d.isFunction(b)){e=
return-1},merge:function(a,b){var e=a.length,f=0;if(typeof b.length==="number")for(var h=b.length;f<h;f++)a[e++]=b[f];else for(;b[f]!==v;)a[e++]=b[f++];a.length=e;return a},grep:function(a,b,e){for(var f=[],h=0,k=a.length;h<k;h++)!e!==!b(a[h],h)&&f.push(a[h]);return f},map:function(a,b,e){for(var f=[],h,k=0,l=a.length;k<l;k++){h=b(a[k],k,e);if(h!=null)f[f.length]=h}return f.concat.apply([],f)},guid:1,proxy:function(a,b,e){if(arguments.length===2)if(typeof b==="string"){e=a;a=e[b];b=v}else if(b&&!c.isFunction(b)){e=
return-1},merge:function(a,b){var e=a.length,g=0;if(typeof b.length==="number")for(var h=b.length;g<h;g++)a[e++]=b[g];else for(;b[g]!==v;)a[e++]=b[g++];a.length=e;return a},grep:function(a,b,e){for(var g=[],h=0,k=a.length;h<k;h++)!e!==!b(a[h],h)&&g.push(a[h]);return g},map:function(a,b,e){for(var g=[],h,k=0,l=a.length;k<l;k++){h=b(a[k],k,e);if(h!=null)g[g.length]=h}return g.concat.apply([],g)},guid:1,proxy:function(a,b,e){if(arguments.length===2)if(typeof b==="string"){e=a;a=e[b];b=v}else if(b&&!d.isFunction(b)){e=
}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;
}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();
}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;
function gup( name ) {
var gup = function ( name ) {
function gup( name ) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1]; }
if( results == null )
if( results === null ) {
function gup( name ) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1]; }
else
} else {
function gup( name ) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1]; }
}
} };
function gup( name ) { name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( window.location.href ); if( results == null ) return ""; else return results[1]; }
this.mercZoomLevel = 4;
function GWMSTileLayer(map, copyrights, minResolution, maxResolution) { // GWMSTileLayer inherits from GTileLayer GTileLayer.call(this, copyrights, minResolution, maxResolution); // Attributes this.map = map; this.format = "image/png"; // Use PNG by default this.opacity = 1.0; // Google Maps Zoom level at which we switch from Mercator to Lat/Long. // this.mercZoomLevel = 15; }
nOpacity:.2,
nOpacity:0.2,
function GZoomControl(oBoxStyle,oOptions,oCallbacks) { //box style options GZoomControl.G.style = { nOpacity:.2, sColor:"#000", sBorder:"2px solid blue" }; var style=GZoomControl.G.style; for (var s in oBoxStyle) {style[s]=oBoxStyle[s];}; var aStyle=style.sBorder.split(' '); style.nOutlineWidth=parseInt(aStyle[0].replace(/\D/g,'')); style.sOutlineColor=aStyle[2]; style.sIEAlpha='alpha(opacity='+(style.nOpacity*100)+')'; // Other options GZoomControl.G.options={ bForceCheckResize:false, sButtonHTML: 'Zoom Box', oButtonStartingStyle:{width:'68px',height:'11px',border:'1px dotted #3366CC',padding:'0px 2px 3px 5px',color:'#3366CC'}, oButtonStyle:{background:'#FFF'}, sButtonZoomingHTML:'Drag Box', //oButtonZoomingStyle:{background:'#FF0'}, nOverlayRemoveMS:60000, bStickyZoom:false }; for (var s in oOptions) {GZoomControl.G.options[s]=oOptions[s];}; // callbacks: buttonClick, dragStart,dragging, dragEnd if (oCallbacks == null) {oCallbacks={};}; GZoomControl.G.callbacks=oCallbacks;}
for (var s in oBoxStyle) {style[s]=oBoxStyle[s];};
for (var s in oBoxStyle) {style[s]=oBoxStyle[s];}
function GZoomControl(oBoxStyle,oOptions,oCallbacks) { //box style options GZoomControl.G.style = { nOpacity:.2, sColor:"#000", sBorder:"2px solid blue" }; var style=GZoomControl.G.style; for (var s in oBoxStyle) {style[s]=oBoxStyle[s];}; var aStyle=style.sBorder.split(' '); style.nOutlineWidth=parseInt(aStyle[0].replace(/\D/g,'')); style.sOutlineColor=aStyle[2]; style.sIEAlpha='alpha(opacity='+(style.nOpacity*100)+')'; // Other options GZoomControl.G.options={ bForceCheckResize:false, sButtonHTML: 'Zoom Box', oButtonStartingStyle:{width:'68px',height:'11px',border:'1px dotted #3366CC',padding:'0px 2px 3px 5px',color:'#3366CC'}, oButtonStyle:{background:'#FFF'}, sButtonZoomingHTML:'Drag Box', //oButtonZoomingStyle:{background:'#FF0'}, nOverlayRemoveMS:60000, bStickyZoom:false }; for (var s in oOptions) {GZoomControl.G.options[s]=oOptions[s];}; // callbacks: buttonClick, dragStart,dragging, dragEnd if (oCallbacks == null) {oCallbacks={};}; GZoomControl.G.callbacks=oCallbacks;}
for (var s in oOptions) {GZoomControl.G.options[s]=oOptions[s];};
for (var s in oOptions) {GZoomControl.G.options[s]=oOptions[s];}
function GZoomControl(oBoxStyle,oOptions,oCallbacks) { //box style options GZoomControl.G.style = { nOpacity:.2, sColor:"#000", sBorder:"2px solid blue" }; var style=GZoomControl.G.style; for (var s in oBoxStyle) {style[s]=oBoxStyle[s];}; var aStyle=style.sBorder.split(' '); style.nOutlineWidth=parseInt(aStyle[0].replace(/\D/g,'')); style.sOutlineColor=aStyle[2]; style.sIEAlpha='alpha(opacity='+(style.nOpacity*100)+')'; // Other options GZoomControl.G.options={ bForceCheckResize:false, sButtonHTML: 'Zoom Box', oButtonStartingStyle:{width:'68px',height:'11px',border:'1px dotted #3366CC',padding:'0px 2px 3px 5px',color:'#3366CC'}, oButtonStyle:{background:'#FFF'}, sButtonZoomingHTML:'Drag Box', //oButtonZoomingStyle:{background:'#FF0'}, nOverlayRemoveMS:60000, bStickyZoom:false }; for (var s in oOptions) {GZoomControl.G.options[s]=oOptions[s];}; // callbacks: buttonClick, dragStart,dragging, dragEnd if (oCallbacks == null) {oCallbacks={};}; GZoomControl.G.callbacks=oCallbacks;}
if (oCallbacks == null) {oCallbacks={};};
if (oCallbacks === null) {oCallbacks={};}
function GZoomControl(oBoxStyle,oOptions,oCallbacks) { //box style options GZoomControl.G.style = { nOpacity:.2, sColor:"#000", sBorder:"2px solid blue" }; var style=GZoomControl.G.style; for (var s in oBoxStyle) {style[s]=oBoxStyle[s];}; var aStyle=style.sBorder.split(' '); style.nOutlineWidth=parseInt(aStyle[0].replace(/\D/g,'')); style.sOutlineColor=aStyle[2]; style.sIEAlpha='alpha(opacity='+(style.nOpacity*100)+')'; // Other options GZoomControl.G.options={ bForceCheckResize:false, sButtonHTML: 'Zoom Box', oButtonStartingStyle:{width:'68px',height:'11px',border:'1px dotted #3366CC',padding:'0px 2px 3px 5px',color:'#3366CC'}, oButtonStyle:{background:'#FFF'}, sButtonZoomingHTML:'Drag Box', //oButtonZoomingStyle:{background:'#FF0'}, nOverlayRemoveMS:60000, bStickyZoom:false }; for (var s in oOptions) {GZoomControl.G.options[s]=oOptions[s];}; // callbacks: buttonClick, dragStart,dragging, dragEnd if (oCallbacks == null) {oCallbacks={};}; GZoomControl.G.callbacks=oCallbacks;}
document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){v.value=G+"|"+C;if(u)v.value+="|"+M.join(",")}function f(l){if(l){if(!l||C!==l){C=l||G;H(unescape(C))}}else{C=G;H(unescape(C))}}function k(l){var p;l='<html><body><div id="state">'+l+"</div></body></html>";try{p=F.contentWindow.document;p.open();p.write(l);p.close();return true}catch(q){return false}}function h(){var l,p,q,m;if(!F.contentWindow||!F.contentWindow.document)setTimeout(h, 10);else{l=F.contentWindow.document;q=(p=l.getElementById("state"))?p.innerText:null;m=a();setInterval(function(){var N,J;l=F.contentWindow.document;N=(p=l.getElementById("state"))?p.innerText:null;J=a();if(N!==q){q=N;f(q);J=q?q:G;m=location.hash=J;b()}else if(J!==m){m=J;k(J)}},50);I=true;x!=null&&x()}}function o(){if(!s){var l=a(),p=history.length;U&&clearInterval(U);U=setInterval(function(){var q,m;q=a();m=history.length;if(q!==l){l=q;p=m;f(l);b()}else if(m!==p&&u){l=q;p=m;q=M[p-1];f(q);b()}},50)}}
function h(){var l,q,r,m;if(!F.contentWindow||!F.contentWindow.document)setTimeout(h,10);else{l=F.contentWindow.document;r=(q=l.getElementById("state"))?q.innerText:null;m=a();setInterval(function(){var N,J;l=F.contentWindow.document;N=(q=l.getElementById("state"))?q.innerText:null;J=a();if(N!==r){r=N;f(r);J=r?r:G;m=location.hash=J;b()}else if(J!==m){m=J;k(J)}},50);I=true;y!=null&&y()}}function o(){if(!s){var l=a(),q=history.length;V&&clearInterval(V);V=setInterval(function(){var r,m;r=a();m=history.length;
document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){v.value=G+"|"+C;if(u)v.value+="|"+M.join(",")}function f(l){if(l){if(!l||C!==l){C=l||G;H(unescape(C))}}else{C=G;H(unescape(C))}}function k(l){var p;l='<html><body><div id="state">'+l+"</div></body></html>";try{p=F.contentWindow.document;p.open();p.write(l);p.close();return true}catch(q){return false}}function h(){var l,p,q,m;if(!F.contentWindow||!F.contentWindow.document)setTimeout(h,10);else{l=F.contentWindow.document;q=(p=l.getElementById("state"))?p.innerText:null;m=a();setInterval(function(){var N,J;l=F.contentWindow.document;N=(p=l.getElementById("state"))?p.innerText:null;J=a();if(N!==q){q=N;f(q);J=q?q:G;m=location.hash=J;b()}else if(J!==m){m=J;k(J)}},50);I=true;x!=null&&x()}}function o(){if(!s){var l=a(),p=history.length;U&&clearInterval(U);U=setInterval(function(){var q,m;q=a();m=history.length;if(q!==l){l=q;p=m;f(l);b()}else if(m!==p&&u){l=q;p=m;q=M[p-1];f(q);b()}},50)}}
g)return j.offsetWidth;q+=j.colSpan}}return 0}}function e(c,g){var j=a.getElement(t).firstChild;o(c).style.width=g+"px";var l,q,s,v;q=l=0;for(s=j.rows.length;l<s;l++){v=j.rows[l];if(v.className!="Wt-hrh"){var w,B,D,F;D=B=0;for(F=v.childNodes.length;B<F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==c&&w.childNodes.length==1){v=w.firstChild;w=g-r.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++q}}}function h(c,g,j){var l=c.firstChild;new a.SizeHandle(a,"v",l.offsetHeight, l.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,g,q)},l,n,j,0,0)}function m(c,g,j){var l=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,l,q,"Wt-hsh",function(B){b(c,g,B)},s,n,j,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c,
F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==e&&w.childNodes.length==1){v=w.firstChild;w=k-d.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++r}}}function h(e,k,m){var n=e.firstChild;new a.SizeHandle(a,"v",n.offsetHeight,n.offsetWidth,-e.parentNode.previousSibling.offsetHeight,e.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(r){j(e,k,r)},n,l,m,0,0)}function g(e,k,m){var n=-e.previousSibling.offsetWidth,r=e.nextSibling.offsetWidth,u=e.firstChild,v=a.pxself(t.rows[0].childNodes[0],
g)return j.offsetWidth;q+=j.colSpan}}return 0}}function e(c,g){var j=a.getElement(t).firstChild;o(c).style.width=g+"px";var l,q,s,v;q=l=0;for(s=j.rows.length;l<s;l++){v=j.rows[l];if(v.className!="Wt-hrh"){var w,B,D,F;D=B=0;for(F=v.childNodes.length;B<F;++B){w=v.childNodes[B];if(w.className!="Wt-vrh"){if(w.colSpan==1&&D==c&&w.childNodes.length==1){v=w.firstChild;w=g-r.marginH(v);v.style.width=w+"px";break}D+=w.colSpan}}++q}}}function h(c,g,j){var l=c.firstChild;new a.SizeHandle(a,"v",l.offsetHeight,l.offsetWidth,-c.parentNode.previousSibling.offsetHeight,c.parentNode.nextSibling.offsetHeight,"Wt-vsh",function(q){f(c,g,q)},l,n,j,0,0)}function m(c,g,j){var l=-c.previousSibling.offsetWidth,q=c.nextSibling.offsetWidth,s=c.firstChild,v=a.pxself(u.rows[0].childNodes[0],"paddingTop"),w=a.pxself(u.rows[u.rows.length-1].childNodes[0],"paddingBottom");new a.SizeHandle(a,"h",s.offsetWidth,u.offsetHeight-v-w,l,q,"Wt-hsh",function(B){b(c,g,B)},s,n,j,0,-c.offsetTop+v-a.pxself(c,"paddingTop"))}function f(c,
j.toDateString():j;e.args[i-2]=j}e.feedback=true;x[h]=b(e,h);E()}function z(d,c,e){var h=function(){var j=n.getElement(d);if(j){if(e)j.timer=setTimeout(j.tm,c);else{j.timer=null;j.tm=null}j.onclick()}},i=n.getElement(d);i.timer=setTimeout(h,c);i.tm=h}function Q(d,c){setTimeout(function(){if(O[d]===true)c();else O[d]=c},20)}function S(d){if(O[d]!==true){typeof O[d]!=="undefined"&&O[d]();O[d]=true}}function Y(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(h){e=false}if(e)S(d);
M=e?setTimeout(H,_$_SERVER_PUSH_TIMEOUT_$_):null}}function O(d,c){var e={},h=z.length;e.signal="user";e.id=typeof d==="string"?d:d==_$_APP_CLASS_$_?"app":d.id;if(typeof c==="object"){e.name=c.name;e.object=c.eventObject;e.event=c.event}else{e.name=c;e.object=e.event=null}e.args=[];for(var i=2;i<arguments.length;++i){var j=arguments[i];j=j===false?0:j===true?1:j.toDateString?j.toDateString():j;e.args[i-2]=j}e.feedback=true;z[h]=R(e,h);F()}function N(d,c,e){var h=function(){var j=g.getElement(d);if(j){if(e)j.timer= setTimeout(j.tm,c);else{j.timer=null;j.tm=null}j.onclick()}},i=g.getElement(d);i.timer=setTimeout(h,c);i.tm=h}function I(d,c){setTimeout(function(){if(Q[d]===true)c();else Q[d]=c},20)}function y(d){if(Q[d]!==true){typeof Q[d]!=="undefined"&&Q[d]();Q[d]=true}}function S(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(h){e=false}if(e)y(d);else{var i=document.createElement("script");i.setAttribute("src",d);i.onload=function(){y(d)};i.onreadystatechange=function(){if(i.readyState==
j.toDateString():j;e.args[i-2]=j}e.feedback=true;x[h]=b(e,h);E()}function z(d,c,e){var h=function(){var j=n.getElement(d);if(j){if(e)j.timer=setTimeout(j.tm,c);else{j.timer=null;j.tm=null}j.onclick()}},i=n.getElement(d);i.timer=setTimeout(h,c);i.tm=h}function Q(d,c){setTimeout(function(){if(O[d]===true)c();else O[d]=c},20)}function S(d){if(O[d]!==true){typeof O[d]!=="undefined"&&O[d]();O[d]=true}}function Y(d,c){var e=false;if(c!="")try{e=!eval("typeof "+c+" === 'undefined'")}catch(h){e=false}if(e)S(d);
L=null}J=null;if(d>0)++U;else U=0;if(ea||x.length>0)if(d==1){d=Math.min(12E4,Math.exp(U)*500);N=setTimeout(function(){A()},d)}else A()}}function K(){J.abort();L=J=null;A()}function H(d,c,e,h){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var i={},j=x.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;x[j]=b(i,j);E();C();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function E(){if(J!=null&&L!=null){clearTimeout(L);J.abort();J=null}if(J==null)if(N==
d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&&M!=null){clearTimeout(M);G.abort();G=null}if(G==null)if(P==null){P=setTimeout(function(){w()},g.updateDelay);fa=(new Date).getTime()}else if(T){clearTimeout(P);w()}else if((new Date).getTime()-
L=null}J=null;if(d>0)++U;else U=0;if(ea||x.length>0)if(d==1){d=Math.min(12E4,Math.exp(U)*500);N=setTimeout(function(){A()},d)}else A()}}function K(){J.abort();L=J=null;A()}function H(d,c,e,h){n.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var i={},j=x.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;x[j]=b(i,j);E();C();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function E(){if(J!=null&&L!=null){clearTimeout(L);J.abort();J=null}if(J==null)if(N==
" ")+u("Properties","PropertyList",a.properties," ");break;case Xmla.METHOD_EXECUTE:if(j(a.statement))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <Command>\n <Statement>"+a.statement+"</Statement>\n </Command>"+u("Properties","PropertyList",a.properties," ");break;default:}c!==null&&c._throw();b+="\n </"+d+">\n </"+n+":Body>\n</"+n+":Envelope>";return b}function h(a,b,d){if(b&&!a)a={};for(var c in b)if(b.hasOwnProperty(c))if(d||j(a[c]))a[c]= b[c];return a}Xmla=function(a){this.listeners={};this.listeners[Xmla.EVENT_REQUEST]=[];this.listeners[Xmla.EVENT_SUCCESS]=[];this.listeners[Xmla.EVENT_ERROR]=[];this.listeners[Xmla.EVENT_DISCOVER]=[];this.listeners[Xmla.EVENT_DISCOVER_SUCCESS]=[];this.listeners[Xmla.EVENT_DISCOVER_ERROR]=[];this.listeners[Xmla.EVENT_EXECUTE]=[];this.listeners[Xmla.EVENT_EXECUTE_SUCCESS]=[];this.listeners[Xmla.EVENT_EXECUTE_ERROR]=[];this.options=h(h({},Xmla.defaultOptions,true),a,true);return this};Xmla.defaultOptions=
return f.length?b(e._elementText(f.item(0))):null}}else if(d==="1")h=function(){var f=o(this.row,s,null,a);return e._arrayConverter(f,b)};else if(d==="0")h=function(){var f=o(this.row,s,null,a);return f.length?e._arrayConverter(f,b):null};return h},getType:function(){return this._type},getFields:function(){for(var a=[],b=this._fieldCount,d=this.fieldOrder,c=0;c<b;c+=1)a[c]=this.fieldDef(d[c]);return a},getFieldNames:function(){for(var a=[],b=0,d=this.fieldCount();b<d;b+=1)a[b]=this.fieldOrder[b];
" ")+u("Properties","PropertyList",a.properties," ");break;case Xmla.METHOD_EXECUTE:if(j(a.statement))c=Xmla.Exception._newError("MISSING_REQUEST_TYPE","Xmla._getXmlaSoapMessage",a);else b+="\n <Command>\n <Statement>"+a.statement+"</Statement>\n </Command>"+u("Properties","PropertyList",a.properties," ");break;default:}c!==null&&c._throw();b+="\n </"+d+">\n </"+n+":Body>\n</"+n+":Envelope>";return b}function h(a,b,d){if(b&&!a)a={};for(var c in b)if(b.hasOwnProperty(c))if(d||j(a[c]))a[c]=b[c];return a}Xmla=function(a){this.listeners={};this.listeners[Xmla.EVENT_REQUEST]=[];this.listeners[Xmla.EVENT_SUCCESS]=[];this.listeners[Xmla.EVENT_ERROR]=[];this.listeners[Xmla.EVENT_DISCOVER]=[];this.listeners[Xmla.EVENT_DISCOVER_SUCCESS]=[];this.listeners[Xmla.EVENT_DISCOVER_ERROR]=[];this.listeners[Xmla.EVENT_EXECUTE]=[];this.listeners[Xmla.EVENT_EXECUTE_SUCCESS]=[];this.listeners[Xmla.EVENT_EXECUTE_ERROR]=[];this.options=h(h({},Xmla.defaultOptions,true),a,true);return this};Xmla.defaultOptions=
i)};d.find=p;d.expr=p.selectors;d.expr[":"]=d.expr.filters;d.unique=p.uniqueSort;d.getText=a;d.isXMLDoc=P;d.contains=fa})();var Ba=/Until$/,Ca=/^(?:parents|prevUntil|prevAll)/,Da=/,/;I=Array.prototype.slice;var ha=function(a,b,e){if(d.isFunction(b))return d.grep(a,function(h,k){return!!b.call(h,k,h)===e});else if(b.nodeType)return d.grep(a,function(h){return h===b===e});else if(typeof b==="string"){var g=d.grep(a,function(h){return h.nodeType===1});if(va.test(b))return d.filter(b,g,!e);else b=d.filter(b, a)}return d.grep(a,function(h){return d.inArray(h,b)>=0===e})};d.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,g=0,h=this.length;g<h;g++){e=b.length;d.find(a,this[g],b);if(g>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var e=0,g=b.length;e<g;e++)if(d.contains(this,b[e]))return true})},not:function(a){return this.pushStack(ha(this,a,false),"not",a)},filter:function(a){return this.pushStack(ha(this,
j="",n;for(g=g.nodeType?[g]:g;n=o.match.PSEUDO.exec(d);){j+=n[0];d=d.replace(o.match.PSEUDO,"")}d=o.relative[d]?d+"*":d;n=0;for(var m=g.length;n<m;n++)p(d,g[n],i);return p.filter(j,i)};c.find=p;c.expr=p.selectors;c.expr[":"]=c.expr.filters;c.unique=p.uniqueSort;c.getText=a;c.isXMLDoc=P;c.contains=fa})();var Ba=/Until$/,Ca=/^(?:parents|prevUntil|prevAll)/,Da=/,/;I=Array.prototype.slice;var ha=function(a,b,e){if(c.isFunction(b))return c.grep(a,function(h,k){return!!b.call(h,k,h)===e});else if(b.nodeType)return c.grep(a, function(h){return h===b===e});else if(typeof b==="string"){var f=c.grep(a,function(h){return h.nodeType===1});if(va.test(b))return c.filter(b,f,!e);else b=c.filter(b,a)}return c.grep(a,function(h){return c.inArray(h,b)>=0===e})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,f=0,h=this.length;f<h;f++){e=b.length;c.find(a,this[f],b);if(f>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var e=
i)};d.find=p;d.expr=p.selectors;d.expr[":"]=d.expr.filters;d.unique=p.uniqueSort;d.getText=a;d.isXMLDoc=P;d.contains=fa})();var Ba=/Until$/,Ca=/^(?:parents|prevUntil|prevAll)/,Da=/,/;I=Array.prototype.slice;var ha=function(a,b,e){if(d.isFunction(b))return d.grep(a,function(h,k){return!!b.call(h,k,h)===e});else if(b.nodeType)return d.grep(a,function(h){return h===b===e});else if(typeof b==="string"){var g=d.grep(a,function(h){return h.nodeType===1});if(va.test(b))return d.filter(b,g,!e);else b=d.filter(b,a)}return d.grep(a,function(h){return d.inArray(h,b)>=0===e})};d.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),e=0,g=0,h=this.length;g<h;g++){e=b.length;d.find(a,this[g],b);if(g>0)for(var k=e;k<b.length;k++)for(var l=0;l<e;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=d(a);return this.filter(function(){for(var e=0,g=b.length;e<g;e++)if(d.contains(this,b[e]))return true})},not:function(a){return this.pushStack(ha(this,a,false),"not",a)},filter:function(a){return this.pushStack(ha(this,
self.onCurrentViewCheckStatus(event); };
self.pushEdit(); };
this.handle_current_view_check_status_setup = function(event) { self.onCurrentViewCheckStatus(event); };
var total = res[3], action = res[0][0], direction = res[0][1], i, count, b_tag;
var action = res[0][0], b_tag, count, direction = res[0][1], i, total = res[3];
function handle_new_verses(res) { ///TODO: On a verse lookup that does not start with Genesis 1:1, scroll_maxed_top must be set to FALSE. (Has this been taken care of?) var total = res[3], action = res[0][0], direction = res[0][1], i, count, b_tag; if (total > 0) { ///FIXME: When looking up the last few verses of Revelation (i.e., Revelation 22:21), the page jumps when more content is loaded above. write_verses(action, direction, res[1], res[2]); ///FIXME: Highlighting needs to be in its own function where each type and mixed highlighting will be done correctly. if (action == STANDARD_SEARCH) { /// Highlight the verse after 100 milliseconds. /// The delay is so that the verse is displayed as quickly as possible. ///TODO: Determine if it would be better to put this in an array and send it all at once, preferably without the implied eval(). ///TODO: Determine if it is bad to convert the array to a string like this setTimeout(function () { highlight_search_results('"' + res[2] + '"'); }, 100); } else if (action == MORPHOLOGICAL_SEARCH) { count = res[4].length; for (i = 0; i < count; ++i) { ///TODO: Determine if there is a downside to having a space at the start of the className. ///TODO: Determine if we ever need to replace an existing f* className. doc.getElementById(res[4][i]).className += " f" + 1; } /// Record the last id found from the search so that we know where to start from for the next search as the user scrolls. /// Do we need to record the bottom id? if (direction == ADDITIONAL) { bottom_id = res[4][count - 1]; } else { top_id = res[4][0]; } } /// Indicate to the user that more content may be loading, and check for more content. if (direction == ADDITIONAL && res[1][res[1].length - 1] < 66022021) { bottomLoader.style.visibility = "visible"; setTimeout(add_content_bottom, lookup_speed_sitting); } if ((direction == PREVIOUS || waiting_for_first_search) && res[1][0] > 1001001) { topLoader.style.visibility = "visible"; /// A delay is added on to space out the requests. setTimeout(add_content_top, lookup_speed_sitting + lookup_delay); } } else { if (direction == ADDITIONAL) { /// The user has reached the bottom by scrolling down (either RETURNED_SEARCH or RETURNED_VERSES_PREVIOUS), so we need to hide the loading graphic. /// This is cause by scrolling to Revelation 22:21 or end of search or there were no results. scroll_maxed_bottom = true; bottomLoader.style.visibility = "hidden"; } if (direction == PREVIOUS || waiting_for_first_search) { /// The user has readed the top of the page by scrolling up (either Genesis 1:1 or there were no search results), so we need to hide the loading graphic scroll_maxed_top = true; topLoader.style.visibility = "hidden"; } } /// If this is the first results, update the info bar. if (waiting_for_first_search) { /// If the user had scrolled down the page and then pressed the refresh button, /// the page will keep scrolling down as content is loaded, so to prevent this, force the window to scroll to the top of the page. win.scrollTo(0, 0); waiting_for_first_search = false; infoBar.innerHTML = ""; if (action != VERSE_LOOKUP) { /// Create the inital text. infoBar.appendChild(doc.createTextNode(format_number(total) + lang["found_" + (total == 1 ? "singular" : "plural")])); /// Create a <b> for the search terms. b_tag = doc.createElement("b"); ///NOTE: We use this method instead of straight innerHTML to prevent HTML elements from appearing inside the <b></b>. b_tag.appendChild(doc.createTextNode(last_search)); infoBar.appendChild(b_tag); } /// Store the first verse reference for later. top_id = res[1][0]; } }
setTimeout("highlight_search_results(\"" + res[2] + "\")", 100);
setTimeout(function () { highlight_search_results('"' + res[2] + '"'); }, 100);
function handle_new_verses(res) { ///TODO: On a verse lookup that does not start with Genesis 1:1, scroll_maxed_top must be set to FALSE. (Has this been taken care of?) var total = res[3], action = res[0][0], direction = res[0][1], i, count, b_tag; if (total > 0) { ///FIXME: When looking up the last few verses of Revelation (i.e., Revelation 22:21), the page jumps when more content is loaded above. write_verses(action, direction, res[1], res[2]); ///FIXME: Highlighting needs to be in its own function where each type and mixed highlighting will be done correctly. if (action == STANDARD_SEARCH) { /// Highlight the verse after 100 milliseconds. /// The delay is so that the verse is displayed as quickly as possible. ///TODO: Determine if it would be better to put this in an array and send it all at once, preferably without the implied eval(). ///TODO: Determine if it is bad to convert the array to a string like this ///TODO: Determine if there is a way to use setTimeout as an anonymous function without the implied eval. setTimeout("highlight_search_results(\"" + res[2] + "\")", 100); } else if (action == MORPHOLOGICAL_SEARCH) { count = res[4].length; for (i = 0; i < count; ++i) { ///TODO: Determine if there is a downside to having a space at the start of the className. ///TODO: Determine if we ever need to replace an existing f* className. doc.getElementById(res[4][i]).className += " f" + 1; } /// Record the last id found from the search so that we know where to start from for the next search as the user scrolls. /// Do we need to record the bottom id? if (direction == ADDITIONAL) { bottom_id = res[4][count - 1]; } else { top_id = res[4][0]; } } /// Indicate to the user that more content may be loading, and check for more content. if (direction == ADDITIONAL && res[1][res[1].length - 1] < 66022021) { bottomLoader.style.visibility = "visible"; setTimeout(add_content_bottom, lookup_speed_sitting); } if ((direction == PREVIOUS || waiting_for_first_search) && res[1][0] > 1001001) { topLoader.style.visibility = "visible"; /// A delay is added on to space out the requests. setTimeout(add_content_top, lookup_speed_sitting + lookup_delay); } } else { if (direction == ADDITIONAL) { /// The user has reached the bottom by scrolling down (either RETURNED_SEARCH or RETURNED_VERSES_PREVIOUS), so we need to hide the loading graphic. /// This is cause by scrolling to Revelation 22:21 or end of search or there were no results. scroll_maxed_bottom = true; bottomLoader.style.visibility = "hidden"; } if (direction == PREVIOUS || waiting_for_first_search) { /// The user has readed the top of the page by scrolling up (either Genesis 1:1 or there were no search results), so we need to hide the loading graphic scroll_maxed_top = true; topLoader.style.visibility = "hidden"; } } /// If this is the first results, update the info bar. if (waiting_for_first_search) { /// If the user had scrolled down the page and then pressed the refresh button, /// the page will keep scrolling down as content is loaded, so to prevent this, force the window to scroll to the top of the page. win.scrollTo(0, 0); waiting_for_first_search = false; infoBar.innerHTML = ""; if (action != VERSE_LOOKUP) { /// Create the inital text. infoBar.appendChild(doc.createTextNode(format_number(total) + lang["found_" + (total == 1 ? "singular" : "plural")])); /// Create a <b> for the search terms. b_tag = doc.createElement("b"); ///NOTE: We use this method instead of straight innerHTML to prevent HTML elements from appearing inside the <b></b>. b_tag.appendChild(doc.createTextNode(last_search)); infoBar.appendChild(b_tag); } /// Store the first verse reference for later. top_id = res[1][0]; } }
self.onViewClosed(event); };
self.viewClosed(event.originalTarget); };
this.handle_view_closed_setup = function(event) { self.onViewClosed(event); };
j,b,-2,-1)};this.scrolled=function(a,b,c,d){s=a;t=b;u=c;v=d};var m=null;j.handleDragDrop=function(a,b,c,d,k){if(m){m.className=m.classNameOrig;m=null}if(a!="end"){var g=q(c);if(!g.selected&&g.drop)if(a=="drop")n.emit(j,{name:"dropEvent",eventObject:b,event:c},g.rowIdx,g.columnId,d,k);else{b.className="Wt-valid-drop";m=g.el;m.classNameOrig=m.className;m.className+=" Wt-drop-site"}else b.className=""}};j.onkeydown=function(a){var b=a||window.event;if(b.keyCode==9){i.cancelEvent(b);var c=q(b);if(c.el){a=
a;t=b;u=c;v=d};var m=null;h.handleDragDrop=function(a,b,c,d,k){if(m){m.className=m.classNameOrig;m=null}if(a!="end"){var g=q(c);if(!g.selected&&g.drop)if(a=="drop")n.emit(h,{name:"dropEvent",eventObject:b,event:c},g.rowIdx,g.columnId,d,k);else{b.className="Wt-valid-drop";m=g.el;m.classNameOrig=m.className;m.className+=" Wt-drop-site"}else b.className=""}};h.onkeydown=function(a){var b=a||window.event;if(b.keyCode==9){i.cancelEvent(b);var c=q(b);if(c.el){a=c.el.parentNode;c=r(c.el);var d=r(a),k=a.parentNode.childNodes.length,
j,b,-2,-1)};this.scrolled=function(a,b,c,d){s=a;t=b;u=c;v=d};var m=null;j.handleDragDrop=function(a,b,c,d,k){if(m){m.className=m.classNameOrig;m=null}if(a!="end"){var g=q(c);if(!g.selected&&g.drop)if(a=="drop")n.emit(j,{name:"dropEvent",eventObject:b,event:c},g.rowIdx,g.columnId,d,k);else{b.className="Wt-valid-drop";m=g.el;m.classNameOrig=m.className;m.className+=" Wt-drop-site"}else b.className=""}};j.onkeydown=function(a){var b=a||window.event;if(b.keyCode==9){i.cancelEvent(b);var c=q(b);if(c.el){a=
KFLog.debug("keeFoxInitStartupListener: got event " + event.type);
KFLog.debug("handleEvent: got event " + event.type);
handleEvent: function(event) { KFLog.debug("keeFoxInitStartupListener: got event " + event.type); var currentWindow, inputElement; currentWindow = event.target.defaultView; // proving we can get to the navigator for future use... // this._kf.log(currentWindow.navigator.buildID); if (currentWindow != this._assignedWindow) { KFLog.debug("not the right window"); return; } KFLog.debug("it's the right window"); // we only care about "load" events for the moment at least switch (event.type) { case "load": // our toolbar (+ a bit more, maybe needs renaming // in future if I can think of something better) keeFoxToolbar = new KFToolbar(currentWindow); // an event listener on the toolbar clears session data relating to // the form filling process. ATOW only called in response to user // editing form field contents. document.addEventListener("KeeFoxClearTabFormFillData", function(e) { keeFoxToolbar.clearTabFormFillData(e); }, false, true); // the improved login manager which acts (a bit) like a bridge // between the user visible code and the KeeFox module / JSON-RPC keeFoxILM = new KFILM(keeFoxInst,keeFoxToolbar,currentWindow); // the main UI code including things like // the generation of notification boxes keeFoxUI = new KFUI(); keeFoxUI.init(keeFoxInst, keeFoxILM); keeFoxInst.init(keeFoxToolbar,currentWindow); // Used to aid testing of various KeeFox features // (arguably is not needed in version 1.0 but I may keep it // just in case unless performance is noticably worse with it) //KFtester = new KFtests(keeFoxILM); return; default: KFLog.warn("This event was unexpected and has been ignored."); return; } }
document.addEventListener("KeeFoxClearTabFormFillData", function(e) { keeFoxToolbar.clearTabFormFillData(e); }, false, true);
document.addEventListener("KeeFoxClearTabFormFillData", this, false, true);
handleEvent: function(event) { KFLog.debug("keeFoxInitStartupListener: got event " + event.type); var currentWindow, inputElement; currentWindow = event.target.defaultView; // proving we can get to the navigator for future use... // this._kf.log(currentWindow.navigator.buildID); if (currentWindow != this._assignedWindow) { KFLog.debug("not the right window"); return; } KFLog.debug("it's the right window"); // we only care about "load" events for the moment at least switch (event.type) { case "load": // our toolbar (+ a bit more, maybe needs renaming // in future if I can think of something better) keeFoxToolbar = new KFToolbar(currentWindow); // an event listener on the toolbar clears session data relating to // the form filling process. ATOW only called in response to user // editing form field contents. document.addEventListener("KeeFoxClearTabFormFillData", function(e) { keeFoxToolbar.clearTabFormFillData(e); }, false, true); // the improved login manager which acts (a bit) like a bridge // between the user visible code and the KeeFox module / JSON-RPC keeFoxILM = new KFILM(keeFoxInst,keeFoxToolbar,currentWindow); // the main UI code including things like // the generation of notification boxes keeFoxUI = new KFUI(); keeFoxUI.init(keeFoxInst, keeFoxILM); keeFoxInst.init(keeFoxToolbar,currentWindow); // Used to aid testing of various KeeFox features // (arguably is not needed in version 1.0 but I may keep it // just in case unless performance is noticably worse with it) //KFtester = new KFtests(keeFoxILM); return; default: KFLog.warn("This event was unexpected and has been ignored."); return; } }
keeFoxInst.init(keeFoxToolbar,currentWindow);
this.startupKeeFox(keeFoxToolbar,currentWindow);
handleEvent: function(event) { KFLog.debug("keeFoxInitStartupListener: got event " + event.type); var currentWindow, inputElement; currentWindow = event.target.defaultView; // proving we can get to the navigator for future use... // this._kf.log(currentWindow.navigator.buildID); if (currentWindow != this._assignedWindow) { KFLog.debug("not the right window"); return; } KFLog.debug("it's the right window"); // we only care about "load" events for the moment at least switch (event.type) { case "load": // our toolbar (+ a bit more, maybe needs renaming // in future if I can think of something better) keeFoxToolbar = new KFToolbar(currentWindow); // an event listener on the toolbar clears session data relating to // the form filling process. ATOW only called in response to user // editing form field contents. document.addEventListener("KeeFoxClearTabFormFillData", function(e) { keeFoxToolbar.clearTabFormFillData(e); }, false, true); // the improved login manager which acts (a bit) like a bridge // between the user visible code and the KeeFox module / JSON-RPC keeFoxILM = new KFILM(keeFoxInst,keeFoxToolbar,currentWindow); // the main UI code including things like // the generation of notification boxes keeFoxUI = new KFUI(); keeFoxUI.init(keeFoxInst, keeFoxILM); keeFoxInst.init(keeFoxToolbar,currentWindow); // Used to aid testing of various KeeFox features // (arguably is not needed in version 1.0 but I may keep it // just in case unless performance is noticably worse with it) //KFtester = new KFtests(keeFoxILM); return; default: KFLog.warn("This event was unexpected and has been ignored."); return; } }
}
},
handleEvent: function(event) { KFLog.debug("keeFoxInitStartupListener: got event " + event.type); var currentWindow, inputElement; currentWindow = event.target.defaultView; // proving we can get to the navigator for future use... // this._kf.log(currentWindow.navigator.buildID); if (currentWindow != this._assignedWindow) { KFLog.debug("not the right window"); return; } KFLog.debug("it's the right window"); // we only care about "load" events for the moment at least switch (event.type) { case "load": // our toolbar (+ a bit more, maybe needs renaming // in future if I can think of something better) keeFoxToolbar = new KFToolbar(currentWindow); // an event listener on the toolbar clears session data relating to // the form filling process. ATOW only called in response to user // editing form field contents. document.addEventListener("KeeFoxClearTabFormFillData", function(e) { keeFoxToolbar.clearTabFormFillData(e); }, false, true); // the improved login manager which acts (a bit) like a bridge // between the user visible code and the KeeFox module / JSON-RPC keeFoxILM = new KFILM(keeFoxInst,keeFoxToolbar,currentWindow); // the main UI code including things like // the generation of notification boxes keeFoxUI = new KFUI(); keeFoxUI.init(keeFoxInst, keeFoxILM); keeFoxInst.init(keeFoxToolbar,currentWindow); // Used to aid testing of various KeeFox features // (arguably is not needed in version 1.0 but I may keep it // just in case unless performance is noticably worse with it) //KFtester = new KFtests(keeFoxILM); return; default: KFLog.warn("This event was unexpected and has been ignored."); return; } }
+ "Please see the KeeFox website if you would like more information about this complex topic."
+ "Please see the KeeFox website if you would like more information about this topic."
handleFailedCertificate: function (gSSLStatus) { gCert = gSSLStatus.QueryInterface(Components.interfaces.nsISSLStatus).serverCert; log.warn("Adding security certificate exception for " + this.address + ":" + this.port + " <-- This should be the address and port of the KeePassRPC server." + " If it is not localhost:12536 or 127.0.0.1:12536 and you have" + " not configured KeeFox to use alternative connection details " + "you should investigate this possible security problem, otherwise everything is probably OK." + " Note: The security certificate exception is required because KeePassRPC has" + " created a custom security certificate unique to your installation." + " This certificate is not authenticated by the organisations that Firefox" + " automatically trusts so an exception is required for this special case. " + "Please see the KeeFox website if you would like more information about this complex topic." ); // Add the exception var overrideService = Components.classes["@mozilla.org/security/certoverride;1"] .getService(Components.interfaces.nsICertOverrideService); var flags = 0; if(gSSLStatus.isUntrusted) flags |= overrideService.ERROR_UNTRUSTED; if(gSSLStatus.isDomainMismatch) flags |= overrideService.ERROR_MISMATCH; overrideService.rememberValidityOverride(this.address, this.port, gCert, flags, false); log.info("Exception added to Firefox"); //TODO: try to connect again immediately? },
log.debug("Creating a reconnection timer."); this.certFailedReconnectTimer = Components.classes["@mozilla.org/timer;1"] .createInstance(Components.interfaces.nsITimer); this.certFailedReconnectTimer.initWithCallback(this.reconnectNow, 500, Components.interfaces.nsITimer.TYPE_ONE_SHOT); log.debug("Timer created.");
handleFailedCertificate: function (gSSLStatus) { gCert = gSSLStatus.QueryInterface(Components.interfaces.nsISSLStatus).serverCert; log.warn("Adding security certificate exception for " + this.address + ":" + this.port + " <-- This should be the address and port of the KeePassRPC server." + " If it is not localhost:12536 or 127.0.0.1:12536 and you have" + " not configured KeeFox to use alternative connection details " + "you should investigate this possible security problem, otherwise everything is probably OK." + " Note: The security certificate exception is required because KeePassRPC has" + " created a custom security certificate unique to your installation." + " This certificate is not authenticated by the organisations that Firefox" + " automatically trusts so an exception is required for this special case. " + "Please see the KeeFox website if you would like more information about this complex topic." ); // Add the exception var overrideService = Components.classes["@mozilla.org/security/certoverride;1"] .getService(Components.interfaces.nsICertOverrideService); var flags = 0; if(gSSLStatus.isUntrusted) flags |= overrideService.ERROR_UNTRUSTED; if(gSSLStatus.isDomainMismatch) flags |= overrideService.ERROR_MISMATCH; overrideService.rememberValidityOverride(this.address, this.port, gCert, flags, false); log.info("Exception added to Firefox"); //TODO: try to connect again immediately? },
alert('Couldn\'t open popup window containing WMS information. Please disable any popup blockers and try again');
alert("Couldn't open popup window containing WMS information. Please disable any popup blockers and try again");
function handleGenericWmsRecord(url, i, map, latlng) { url += "&INFO_FORMAT=text/html"; Ext.Ajax.request({ url: url, timeout : 180000, success: function(response, options) { if (isHtmlDataThere(response.responseText)) { if (isHtmlPage(response.responseText)) { var openWindow = window.open('','new'+i+'window'); if (openWindow) { openWindow.document.write(response.responseText); openWindow.document.close(); } else { alert('Couldn\'t open popup window containing WMS information. Please disable any popup blockers and try again'); } } else { map.openInfoWindowHtml(latlng, response.responseText, {autoScroll:true}); } } }, failure: function(response, options) { Ext.Msg.alert('Error requesting data', 'Error (' + response.status + '): ' + response.statusText); } });// GDownloadUrl(url, function(response, responseCode) {// if (responseCode == 200) {// if (isHtmlDataThere(response)) {// if (isHtmlPage(response)) {// var openWindow = window.open('','mywindow'+i);// if (openWindow) {// openWindow.document.write(response);// openWindow.document.close();// } else {// alert('Couldn\'t open popup window containing WMS information. Please disable any popup blockers and try again');// }// } else {// map.openInfoWindowHtml(latlng, response, {autoScroll:true});// }// }// } else if(responseCode == -1) {// alert("Data request timed out. Please try later.");// } else if ((responseCode >= 400) & (responseCode < 500)){// alert('Request not found, bad request or similar problem. Error code is: ' + responseCode);// } else if ((responseCode >= 500) & (responseCode <= 506)){// alert('Requested service not available, not implemented or internal service error. Error code is: ' + responseCode);// } else {// alert('Remote server returned error code: ' + responseCode);// }// });}
alert("Remote server returned an unsupported response.");
function handleGeotransectWmsRecord(url, record, map, latlng) { url += "&INFO_FORMAT=application/vnd.ogc.gml"; Ext.Ajax.request({ url: url, timeout : 180000, success: function(response, options) { if (isGmlDataThere(response.responseText)) { //Parse the response var XmlDoc = GXml.parse(response.responseText); if (g_IsIE) { XmlDoc.setProperty("SelectionLanguage", "XPath"); } var rootNode = XmlDoc.documentElement; if (!rootNode) { return; } var schemaLoc = rootNode.getAttribute("xsi:schemaLocation"); var reqTypeName = schemaLoc.substring(schemaLoc.indexOf("typeName")+9, schemaLoc.indexOf(' ', schemaLoc.indexOf("typeName")+9)); //Browser may have replaced certain characters reqTypeName = reqTypeName.replace("%3A", ":"); //Extract the line Id from the XML var line = rootNode.getElementsByTagName("gt:LINE"); var lineId = ""; if(line != null && line.length > 0) { if(document.all) { //IE lineId = line[0].text; } else { lineId = line[0].textContent; } if(lineId.indexOf("cdp") == 0) { lineId = lineId.substring(3, lineId.length); } new GeotransectsInfoWindow(latlng, map, lineId, this).show(); } else { //alert("Remote server returned an unsupported response."); } } }.createDelegate(record), failure: function(response, options) { Ext.Msg.alert('Error requesting data', 'Error (' + response.status + '): ' + response.statusText); } });}
if(line == null || line.length <= 0) {
if(line === null || line.length <= 0) {
function handleGeotransectWmsRecord(url, cswRecord, wmsOnlineResource, map, latlng) { Ext.Ajax.request({ url: url+"&INFO_FORMAT=application/vnd.ogc.gml", timeout : 180000, wmsOnlineResource : wmsOnlineResource, cswRecord : cswRecord, success: function(response, options) { if (isGmlDataThere(response.responseText)) { //Parse the response var XmlDoc = GXml.parse(response.responseText); if (g_IsIE) { XmlDoc.setProperty("SelectionLanguage", "XPath"); } var rootNode = XmlDoc.documentElement; if (!rootNode) { return; } var schemaLoc = rootNode.getAttribute("xsi:schemaLocation"); var reqTypeName = schemaLoc.substring(schemaLoc.indexOf("typeName")+9, schemaLoc.indexOf(' ', schemaLoc.indexOf("typeName")+9)); //Browser may have replaced certain characters reqTypeName = reqTypeName.replace("%3A", ":"); //Extract the line Id from the XML var line = rootNode.getElementsByTagName("gt:LINE"); if(line == null || line.length <= 0) { //Chrome, Opera may not want the namespace prefix line = rootNode.getElementsByTagName("LINE"); } // Change to enable the SURV_LINE which is the key in the shapefile if(line == null || line.length <= 0) { line = rootNode.getElementsByTagName("gt:SURV_LINE"); if(line == null || line.length <= 0) { line = rootNode.getElementsByTagName("SURV_LINE"); } } //Get the line var lineId = ""; if(line != null && line.length > 0) { if(document.all) { //IE lineId = line[0].text; } else { lineId = line[0].textContent; } //Remove the prefixes - we dont store them in the DB if(lineId.indexOf("cdp") == 0) { lineId = lineId.substring(3, lineId.length); } var infoWindow = new GeotransectsInfoWindow(latlng, map, lineId, options.cswRecord, options.wmsOnlineResource, url); infoWindow.show(); } else { alert("Remote server returned an unsupported response."); } } }, failure: function(response, options) { Ext.Msg.alert('Error requesting data', 'Error (' + response.status + '): ' + response.statusText); } });}
if(line != null && line.length > 0) {
if(line !== null && line.length > 0) {
function handleGeotransectWmsRecord(url, cswRecord, wmsOnlineResource, map, latlng) { Ext.Ajax.request({ url: url+"&INFO_FORMAT=application/vnd.ogc.gml", timeout : 180000, wmsOnlineResource : wmsOnlineResource, cswRecord : cswRecord, success: function(response, options) { if (isGmlDataThere(response.responseText)) { //Parse the response var XmlDoc = GXml.parse(response.responseText); if (g_IsIE) { XmlDoc.setProperty("SelectionLanguage", "XPath"); } var rootNode = XmlDoc.documentElement; if (!rootNode) { return; } var schemaLoc = rootNode.getAttribute("xsi:schemaLocation"); var reqTypeName = schemaLoc.substring(schemaLoc.indexOf("typeName")+9, schemaLoc.indexOf(' ', schemaLoc.indexOf("typeName")+9)); //Browser may have replaced certain characters reqTypeName = reqTypeName.replace("%3A", ":"); //Extract the line Id from the XML var line = rootNode.getElementsByTagName("gt:LINE"); if(line == null || line.length <= 0) { //Chrome, Opera may not want the namespace prefix line = rootNode.getElementsByTagName("LINE"); } // Change to enable the SURV_LINE which is the key in the shapefile if(line == null || line.length <= 0) { line = rootNode.getElementsByTagName("gt:SURV_LINE"); if(line == null || line.length <= 0) { line = rootNode.getElementsByTagName("SURV_LINE"); } } //Get the line var lineId = ""; if(line != null && line.length > 0) { if(document.all) { //IE lineId = line[0].text; } else { lineId = line[0].textContent; } //Remove the prefixes - we dont store them in the DB if(lineId.indexOf("cdp") == 0) { lineId = lineId.substring(3, lineId.length); } var infoWindow = new GeotransectsInfoWindow(latlng, map, lineId, options.cswRecord, options.wmsOnlineResource, url); infoWindow.show(); } else { alert("Remote server returned an unsupported response."); } } }, failure: function(response, options) { Ext.Msg.alert('Error requesting data', 'Error (' + response.status + '): ' + response.statusText); } });}
if(lineId.indexOf("cdp") == 0) {
if(lineId.indexOf("cdp") === 0) {
function handleGeotransectWmsRecord(url, cswRecord, wmsOnlineResource, map, latlng) { Ext.Ajax.request({ url: url+"&INFO_FORMAT=application/vnd.ogc.gml", timeout : 180000, wmsOnlineResource : wmsOnlineResource, cswRecord : cswRecord, success: function(response, options) { if (isGmlDataThere(response.responseText)) { //Parse the response var XmlDoc = GXml.parse(response.responseText); if (g_IsIE) { XmlDoc.setProperty("SelectionLanguage", "XPath"); } var rootNode = XmlDoc.documentElement; if (!rootNode) { return; } var schemaLoc = rootNode.getAttribute("xsi:schemaLocation"); var reqTypeName = schemaLoc.substring(schemaLoc.indexOf("typeName")+9, schemaLoc.indexOf(' ', schemaLoc.indexOf("typeName")+9)); //Browser may have replaced certain characters reqTypeName = reqTypeName.replace("%3A", ":"); //Extract the line Id from the XML var line = rootNode.getElementsByTagName("gt:LINE"); if(line == null || line.length <= 0) { //Chrome, Opera may not want the namespace prefix line = rootNode.getElementsByTagName("LINE"); } // Change to enable the SURV_LINE which is the key in the shapefile if(line == null || line.length <= 0) { line = rootNode.getElementsByTagName("gt:SURV_LINE"); if(line == null || line.length <= 0) { line = rootNode.getElementsByTagName("SURV_LINE"); } } //Get the line var lineId = ""; if(line != null && line.length > 0) { if(document.all) { //IE lineId = line[0].text; } else { lineId = line[0].textContent; } //Remove the prefixes - we dont store them in the DB if(lineId.indexOf("cdp") == 0) { lineId = lineId.substring(3, lineId.length); } var infoWindow = new GeotransectsInfoWindow(latlng, map, lineId, options.cswRecord, options.wmsOnlineResource, url); infoWindow.show(); } else { alert("Remote server returned an unsupported response."); } } }, failure: function(response, options) { Ext.Msg.alert('Error requesting data', 'Error (' + response.status + '): ' + response.statusText); } });}
moved = true; el.style.left = (WT.pxself(el, 'left') + nowxy.x - dsx) + 'px'; el.style.top = (WT.pxself(el, 'top') + nowxy.y - dsy) + 'px'; dsx = nowxy.x; dsy = nowxy.y;
var wxy = WT.windowCoordinates(e); var wsize = WT.windowSize(); if (wxy.x > 0 && wxy.x < wsize.x && wxy.y > 0 && wxy.y < wsize.y) { moved = true; el.style.left = (WT.pxself(el, 'left') + nowxy.x - dsx) + 'px'; el.style.top = (WT.pxself(el, 'top') + nowxy.y - dsy) + 'px'; dsx = nowxy.x; dsy = nowxy.y; }
function handleMove(event) { var e = event||window.event; var nowxy = WT.pageCoordinates(e); moved = true; el.style.left = (WT.pxself(el, 'left') + nowxy.x - dsx) + 'px'; el.style.top = (WT.pxself(el, 'top') + nowxy.y - dsy) + 'px'; dsx = nowxy.x; dsy = nowxy.y; };
var selectedRecord = activeLayersPanel.getSelectionModel().getSelected(); wfsHandler(selectedRecord); }
var recordToAdd = wmsLayersPanel.getSelectionModel().getSelected(); if (activeLayersStore.findExact("id",recordToAdd.get("id")) < 0) { activeLayersStore.insert(0, [recordToAdd]); activeLayerCheckHandler(wmsLayersPanel.getSelectionModel().getSelected(), true); } activeLayersPanel.getSelectionModel().selectRecords([recordToAdd], false); }
handler: function() { var selectedRecord = activeLayersPanel.getSelectionModel().getSelected(); wfsHandler(selectedRecord); }
handler : function(container, rec, item, e) { rec.beginEdit(); rec.set('source', 'default'); rec.commit(); rec.endEdit(); },
handler : function() { w.close(); }
handler : function(container, rec, item, e) { rec.beginEdit(); rec.set('source', 'default'); rec.commit(); rec.endEdit(); },
new ReportsInfoWindow(map, this.overlay, this.cswRecord).show();
var repWin = new ReportsInfoWindow(map, this.overlay, this.cswRecord); repWin.show();
handler: function(item, checked) { new ReportsInfoWindow(map, this.overlay, this.cswRecord).show(); }.createDelegate({overlay: reportOverlay, cswRecord: cswRecord})
if (record == null)
if (record === null) {
handler: function() { var record = activeLayersPanel.getSelectionModel().getSelected(); if (record == null) return; layerRemoveHandler(new ActiveLayersRecord(record)); }
}
handler: function() { var record = activeLayersPanel.getSelectionModel().getSelected(); if (record == null) return; layerRemoveHandler(new ActiveLayersRecord(record)); }
rec.set('exposed', true); rec.set('userManaged', true);
handler : function(container, rec, item, e) { rec.beginEdit(); rec.set('repoType', 'group'); rec.commit(); rec.endEdit(); },
var handler = function(){ handlerCalled = true; switch (xhr.readyState){ case 0: options.aborted(xhr);
handler = function(){ handlerCalled = true; switch (xhr.readyState){ case 0: options.aborted(xhr); break; case 4: if (xhr.status===200){ options.complete(xhr); } else { options.error( Xmla.Exception._newError( "HTTP_ERROR", "_ajax", options ) ); }
var handler = function(){ handlerCalled = true; switch (xhr.readyState){ case 0: options.aborted(xhr); break; case 4: if (xhr.status===200){ options.complete(xhr); } else { options.error( Xmla.Exception._newError( "HTTP_ERROR", "_ajax", options ) ); } break; } };
case 4: if (xhr.status===200){ options.complete(xhr); } else { options.error( Xmla.Exception._newError( "HTTP_ERROR", "_ajax", options ) ); } break; } };
} };
var handler = function(){ handlerCalled = true; switch (xhr.readyState){ case 0: options.aborted(xhr); break; case 4: if (xhr.status===200){ options.complete(xhr); } else { options.error( Xmla.Exception._newError( "HTTP_ERROR", "_ajax", options ) ); } break; } };
else if ( drag.dragging || ( data.which>0 && event.which!=data.which ) || $( event.target ).is( data.not ) ) return; switch ( event.type ){ case 'mousedown': $.extend( data, $( elem ).offset(), { elem: elem, target: event.target, pageX: event.pageX, pageY: event.pageY }); $event.add( document, "mousemove mouseup", handler, data ); selectable( elem, false ); drag.dragging = null; return false; case !drag.dragging && 'mousemove': if ( squared( event.pageX-data.pageX ) + squared( event.pageY-data.pageY ) < data.distance ) break; event.target = data.target; returned = hijack( event, "dragstart", elem ); if ( returned !== false ){ drag.dragging = elem; drag.proxy = event.dragProxy = $( returned || elem )[0]; } case 'mousemove': if ( drag.dragging ){ returned = hijack( event, "drag", elem ); if ( $special.drop ){ $special.drop.allowed = returned !== false; $special.drop.handler( event );
else if ( drag.dragging || ( data.which>0 && event.which!=data.which ) || $( event.target ).is( data.not ) ) return; switch ( event.type ){ case 'mousedown': $.extend( data, $( elem ).offset(), { elem: elem, target: event.target, pageX: event.pageX, pageY: event.pageY }); $event.add( document, "mousemove mouseup", handler, data ); selectable( elem, false ); drag.dragging = null; return false; case !drag.dragging && 'mousemove': if ( squared( event.pageX-data.pageX ) + squared( event.pageY-data.pageY ) < data.distance ) break; event.target = data.target; returned = hijack( event, "dragstart", elem ); if ( returned !== false ){ drag.dragging = elem; drag.proxy = event.dragProxy = $( returned || elem )[0];
function handler ( event ){ var elem = this, returned, data = event.data || {}; // mousemove or mouseup if ( data.elem ){ // update event properties... elem = event.dragTarget = data.elem; // drag source element event.dragProxy = drag.proxy || elem; // proxy element or source event.cursorOffsetX = data.pageX - data.left; // mousedown offset event.cursorOffsetY = data.pageY - data.top; // mousedown offset event.offsetX = event.pageX - event.cursorOffsetX; // element offset event.offsetY = event.pageY - event.cursorOffsetY; // element offset } // mousedown, check some initial props to avoid the switch statement else if ( drag.dragging || ( data.which>0 && event.which!=data.which ) || $( event.target ).is( data.not ) ) return; // handle various events switch ( event.type ){ // mousedown, left click, event.target is not restricted, init dragging case 'mousedown': $.extend( data, $( elem ).offset(), { elem: elem, target: event.target, pageX: event.pageX, pageY: event.pageY }); // store some initial attributes $event.add( document, "mousemove mouseup", handler, data ); selectable( elem, false ); // disable text selection drag.dragging = null; // pending state return false; // prevents text selection in safari // mousemove, check distance, start dragging case !drag.dragging && 'mousemove': if ( squared( event.pageX-data.pageX ) + squared( event.pageY-data.pageY ) // x2 + y2 = distance2 < data.distance ) break; // distance tolerance not reached event.target = data.target; // force target from "mousedown" event (fix distance issue) returned = hijack( event, "dragstart", elem ); // trigger "dragstart", return proxy element if ( returned !== false ){ // "dragstart" not rejected drag.dragging = elem; // activate element drag.proxy = event.dragProxy = $( returned || elem )[0]; // set proxy } // mousemove, dragging case 'mousemove': if ( drag.dragging ){ returned = hijack( event, "drag", elem ); // trigger "drag" if ( $special.drop ){ // manage drop events $special.drop.allowed = returned !== false; // prevent drop $special.drop.handler( event ); // "dropstart", "dropend" } if ( returned !== false ) break; // "drag" not rejected, stop event.type = "mouseup"; // helps "drop" handler behave } // mouseup, stop dragging case 'mouseup': $event.remove( document, "mousemove mouseup", handler ); // remove page events if ( drag.dragging ){ if ( $special.drop ) $special.drop.handler( event ); // "drop" hijack( event, "dragend", elem ); // trigger "dragend" } selectable( elem, true ); // enable text selection drag.dragging = drag.proxy = data.elem = false; // deactivate element break; } return true; }
if ( returned !== false ) break; event.type = "mouseup"; } case 'mouseup': $event.remove( document, "mousemove mouseup", handler ); if ( drag.dragging ){ if ( $special.drop ) $special.drop.handler( event ); hijack( event, "dragend", elem ); } selectable( elem, true ); drag.dragging = drag.proxy = data.elem = false; break; } return true;
case 'mousemove': if ( drag.dragging ){ returned = hijack( event, "drag", elem ); if ( $special.drop ){ $special.drop.allowed = returned !== false; $special.drop.handler( event ); } if ( returned !== false ) break; event.type = "mouseup"; } case 'mouseup': $event.remove( document, "mousemove mouseup", handler ); if ( drag.dragging ){ if ( $special.drop ) $special.drop.handler( event ); hijack( event, "dragend", elem ); } selectable( elem, true ); drag.dragging = drag.proxy = data.elem = false; break; } return true;
function handler ( event ){ var elem = this, returned, data = event.data || {}; // mousemove or mouseup if ( data.elem ){ // update event properties... elem = event.dragTarget = data.elem; // drag source element event.dragProxy = drag.proxy || elem; // proxy element or source event.cursorOffsetX = data.pageX - data.left; // mousedown offset event.cursorOffsetY = data.pageY - data.top; // mousedown offset event.offsetX = event.pageX - event.cursorOffsetX; // element offset event.offsetY = event.pageY - event.cursorOffsetY; // element offset } // mousedown, check some initial props to avoid the switch statement else if ( drag.dragging || ( data.which>0 && event.which!=data.which ) || $( event.target ).is( data.not ) ) return; // handle various events switch ( event.type ){ // mousedown, left click, event.target is not restricted, init dragging case 'mousedown': $.extend( data, $( elem ).offset(), { elem: elem, target: event.target, pageX: event.pageX, pageY: event.pageY }); // store some initial attributes $event.add( document, "mousemove mouseup", handler, data ); selectable( elem, false ); // disable text selection drag.dragging = null; // pending state return false; // prevents text selection in safari // mousemove, check distance, start dragging case !drag.dragging && 'mousemove': if ( squared( event.pageX-data.pageX ) + squared( event.pageY-data.pageY ) // x2 + y2 = distance2 < data.distance ) break; // distance tolerance not reached event.target = data.target; // force target from "mousedown" event (fix distance issue) returned = hijack( event, "dragstart", elem ); // trigger "dragstart", return proxy element if ( returned !== false ){ // "dragstart" not rejected drag.dragging = elem; // activate element drag.proxy = event.dragProxy = $( returned || elem )[0]; // set proxy } // mousemove, dragging case 'mousemove': if ( drag.dragging ){ returned = hijack( event, "drag", elem ); // trigger "drag" if ( $special.drop ){ // manage drop events $special.drop.allowed = returned !== false; // prevent drop $special.drop.handler( event ); // "dropstart", "dropend" } if ( returned !== false ) break; // "drag" not rejected, stop event.type = "mouseup"; // helps "drop" handler behave } // mouseup, stop dragging case 'mouseup': $event.remove( document, "mousemove mouseup", handler ); // remove page events if ( drag.dragging ){ if ( $special.drop ) $special.drop.handler( event ); // "drop" hijack( event, "dragend", elem ); // trigger "dragend" } selectable( elem, true ); // enable text selection drag.dragging = drag.proxy = data.elem = false; // deactivate element break; } return true; }