PlanetJava
Custom Search

java-ofbiz-scm
[Top] [All Lists]

svn commit: r1178141 [5/19] - in /ofbiz/trunk: applications/content/weba

Subject: svn commit: r1178141 [5/19] - in /ofbiz/trunk: applications/content/webapp/content/website/ framework/images/webapp/images/jquery/ framework/images/webapp/images/jquery/plugins/elrte-1.3/ framework/images/webapp/images/jquery/plugins/elrte-1.3/css/ fra...
Date: Sun, 02 Oct 2011 08:06:55 -0000
Added: 
ofbiz/trunk/framework/images/webapp/images/jquery/plugins/elrte-1.3/js/elrte.min.js
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/jquery/plugins/elrte-1.3/js/elrte.min.js?rev=1178141&view=auto
==============================================================================
--- 
ofbiz/trunk/framework/images/webapp/images/jquery/plugins/elrte-1.3/js/elrte.min.js
 (added)
+++ 
ofbiz/trunk/framework/images/webapp/images/jquery/plugins/elrte-1.3/js/elrte.min.js
 Sun Oct  2 08:06:49 2011
@@ -0,0 +1,267 @@
+function eli18n(a){this.textdomain=function(b){return 
this.messages[b]?this._domain=b:this._domain};a&&a.messages&&this.load(a.messages);a&&a.textdomain&&this.textdomain(a.textdomain)}eli18n.prototype=new
function(){this.messages={};this._domain="";this.load=function(c){if(typeof(c)=="object"){for(var
 f in c){var 
b=c[f];if(typeof(b)=="object"){if(!this.messages[f]){this.messages[f]={}}for(var
 a in b){if(typeof(b[a])=="string"){this.messages[f][a]=b[a]}}}}}return 
this};this.translate=function(b,a){var a=a&&this.messages[a]?a:this._domain;
+return 
this.messages[a]&&this.messages[a][b]?this.messages[a][b]:b};this.format=function(f,b,c){f=this.translate(f,c);if(typeof(b)=="object"){for(var
 a in b){f=f.replace("%"+a,this.translate(b[a],c))}}return f}};function 
elDialogForm(c){var a=this;var 
b={"class":"el-dialogform",submit:function(f,g){g.close()},form:{action:window.location.href,method:"post"},ajaxForm:null,validate:null,spinner:"Loading",tabs:{active:0,selected:0},tabPrefix:"el-df-tab-",dialog:{title:"dialog",autoOpen:false,modal:true,resizable:false,closeOnEscape:true,buttons:{Cancel:function(){a.close()
+},Ok:function(){a.form.trigger("submit")}}}};this.opts=jQuery.extend(true,{},b,c);this.opts.dialog.close=function(){a.close()};if(this.opts.rtl){this.opts["class"]+="
el-dialogform-rtl"}if(c&&c.dialog&&c.dialog.buttons&&typeof(c.dialog.buttons)=="object"){this.opts.dialog.buttons=c.dialog.buttons}this.ul=null;this.tabs={};this._table=null;this.dialog=jQuery("<div
/>").addClass(this.opts["class"]).dialog(this.opts.dialog);this.message=jQuery('<div
 class="el-dialogform-message rounded-5" />').hide().appendTo(this.dialog);
+this.error=jQuery('<div class="el-dialogform-error rounded-5" 
/>').hide().appendTo(this.dialog);this.spinner=jQuery('<div class="spinner" 
/>').hide().appendTo(this.dialog);this.content=jQuery('<div 
class="el-dialogform-content" 
/>').appendTo(this.dialog);this.form=jQuery("<form 
/>").attr(this.opts.form).appendTo(this.content);if(this.opts.submit){this.form.bind("submit",function(f){a.opts.submit(f,a)})}if(this.opts.ajaxForm&&jQuery.fn.ajaxForm){this.form.ajaxForm(this.opts.ajaxForm)}if(this.opts.validate){this.form.validate(this.opts.validate)
+}this.option=function(f,g){return 
this.dialog.dialog("option",f,g)};this.showError=function(f,g){this.hideMessage();this.hideSpinner();this.error.html(f).show();g&&this.content.hide();return
this};this.hideError=function(){this.error.text("").hide();this.content.show();return
this};this.showSpinner=function(f){this.error.hide();this.message.hide();this.content.hide();this.spinner.text(f||this.opts.spinner).show();this.option("buttons",{});return
 this};this.hideSpinner=function(){this.content.show();
+this.spinner.hide();return 
this};this.showMessage=function(f,g){this.hideError();this.hideSpinner();this.message.html(f||"").show();g&&this.content.hide();return
this};this.hideMessage=function(){this.message.hide();this.content.show();return
this};this.tab=function(g,f){g=this.opts.tabPrefix+g;if(!this.ul){this.ul=jQuery("<ul
 />").prependTo(this.form)}jQuery("<li />").append(jQuery("<a 
/>").attr("href","#"+g).html(f)).appendTo(this.ul);this.tabs[g]={tab:jQuery("<div
 />").attr("id",g).addClass("tab").appendTo(this.form),table:null};
+return 
this};this.table=function(f){f=f&&f.indexOf(this.opts.tabPrefix)==-1?this.opts.tabPrefix+f:f;if(f&&this.tabs&&this.tabs[f]){this.tabs[f].table=jQuery("<table
 />").appendTo(this.tabs[f].tab)}else{this._table=jQuery("<table 
/>").appendTo(this.form)}return 
this};this.append=function(j,k,g){k=k?"el-df-tab-"+k:"";if(!j){return 
this}if(k&&this.tabs[k]){if(g){!this.tabs[k].table&&this.table(k);var 
h=jQuery("<tr 
/>").appendTo(this.tabs[k].table);if(!jQuery.isArray(j)){h.append(jQuery("<td 
/>").append(j))
+}else{for(var f=0;f<j.length;f++){h.append(jQuery("<td 
/>").append(j[f]))}}}else{if(!jQuery.isArray(j)){this.tabs[k].tab.append(j)}else{for(var
f=0;f<j.length;f++){this.tabs[k].tab.append(j[f])}}}}else{if(!g){if(!jQuery.isArray(j)){this.form.append(j)}else{for(var
f=0;f<j.length;f++){this.form.append(j[f])}}}else{if(!this._table){this.table()}var
 h=jQuery("<tr 
/>").appendTo(this._table);if(!jQuery.isArray(j)){h.append(jQuery("<td 
/>").append(j))}else{for(var f=0;f<j.length;f++){h.append(jQuery("<td 
/>").append(j[f]))
+}}}}return 
this};this.separator=function(f){f="el-df-tab-"+f;if(this.tabs&&this.tabs[f]){this.tabs[f].tab.append(jQuery("<div
/>").addClass("separator"));this.tabs[f].table&&this.table(f)}else{this.form.append(jQuery("<div
 />").addClass("separator"))}return this};this.open=function(){var 
f=this;this.ul&&this.form.tabs(this.opts.tabs);setTimeout(function(){f.dialog.find(":text").keydown(function(g){if(g.keyCode==13){g.preventDefault();f.form.submit()}}).filter(":first")[0].focus()},200);this.dialog.dialog("open");
+return 
this};this.close=function(){if(typeof(this.opts.close)=="function"){this.opts.close()}this.dialog.dialog("destroy")}}(function(a){a.fn.elColorPicker=function(h){var
 b=this;var f=a.extend({},a.fn.elColorPicker.defaults,h);this.hidden=a('<input 
type="hidden" 
/>').attr("name",f.name).val(f.color||"").appendTo(this);this.palette=null;this.preview=null;this.input=null;function
 c(j){b.val(j);f.change&&f.change(b.val());b.palette.slideUp()}function 
g(){b.palette=a("<div />").addClass(f.paletteClass+" rounded-3");
+for(var j=0;j<f.colors.length;j++){a("<div 
/>").addClass("color").css("background-color",f.colors[j]).attr({title:f.colors[j],unselectable:"on"}).appendTo(b.palette).mouseenter(function(){var
k=a(this).attr("title");b.input.val(k);b.preview.css("background-color",k)}).click(function(k){k.stopPropagation();c(a(this).attr("title"))})}b.input=a('<input
 type="text" 
/>').addClass("rounded-3").attr("size",8).click(function(k){k.stopPropagation();a(this).focus()}).keydown(function(p){if(p.ctrlKey||p.metaKey){return
 true
+}var o=p.keyCode;if(o==27){return 
b.mouseleave()}if(o!=8&&o!=13&&o!=46&&o!=37&&o!=39&&(o<48||o>57)&&(o<65||o>70)){return
 false}var 
q=a(this).val();if(q.length==7||q.length==0){if(o==13){p.stopPropagation();p.preventDefault();c(q);b.palette.slideUp()}if(p.keyCode!=8&&p.keyCode!=46&&o!=37&&o!=39){return
 false}}}).keyup(function(k){var 
o=a(this).val();o.length==7&&/^#[0-9abcdef]{6}$/i.test(o)&&b.val(o)});b.preview=a("<div
 />").addClass("preview 
rounded-3").click(function(k){k.stopPropagation();c(b.input.val())
+});b.palette.append(a("<div />").addClass("clearfix")).append(a("<div 
/>").addClass("panel").append(b.input).append(b.preview));if(f.palettePosition=="outer"){b.palette.hide().appendTo(b.parents("body").eq(0)).mouseleave(function(){if(!b.palette.is(":animated")){a(this).slideUp();b.val(b.val())}});b.mouseleave(function(k){if(k.relatedTarget!=b.palette.get(0)){if(!b.palette.is(":animated")){b.palette.slideUp();b.val(b.val())}}})}else{b.append(b.palette.hide()).mouseleave(function(k){b.palette.slideUp();
+b.val(b.val())})}b.val(b.val())}this.empty().addClass(f["class"]+" 
rounded-3").css({position:"relative","background-color":f.color||""}).click(function(p){if(!b.hasClass("disabled")){!b.palette&&g();if(f.palettePosition=="outer"&&b.palette.css("display")=="none"){var
 q=a(this).offset();var k=b.palette.width();var 
j=b.parents("body").width()-q.left>=k?q.left:q.left+a(this).outerWidth()-k;b.palette.css({left:j+"px",top:q.top+a(this).height()+1+"px"})}b.palette.slideToggle()}});this.val=function(j){if(!j&&j!==""){return
 this.hidden.val()
+}else{this.hidden.val(j);if(f.update){f.update(this.hidden.val())}else{this.css("background-color",j)}if(b.palette){b.preview.css("background-color",j);b.input.val(j)}}return
 this};return 
this};a.fn.elColorPicker.defaults={"class":"el-colorpicker",paletteClass:"el-palette",palettePosition:"inner",name:"color",color:"",update:null,change:function(b){},colors:["#ffffff","#cccccc","#999999","#666666","#333333","#000000","#ffcccc","#cc9999","#996666","#663333","#330000","#ff9999","#cc6666","#cc3333","#993333","#660000","#ff6666","#ff3333","#ff0000","#cc0000","#990000","#ff9966","#ff6633","#ff3300","#cc3300","#993300","#ffcc99","#cc9966","#cc6633","#996633","#663300","#ff9933","#ff6600","#ff9900","#cc6600","#cc9933","#ffcc66","#ffcc33","#ffcc00","#cc9900","#996600","#ffffcc","#cccc99","#999966
","#666633","#333300","#ffff99","#cccc66","#cccc33","#999933","#666600","#ffff66","#ffff33","#ffff00","#cccc00","#999900","#ccff66","#ccff33","#ccff00","#99cc00","#669900","#ccff99","#99cc66
","#99cc33","#669933","#336600","#99ff33","#99ff00","#66ff00","#66cc00","#66cc33","#99ff66","#66ff33","#33ff00","#33cc00","#339900","#ccffcc","#99cc99","#669966","#336633","#003300","#99ff99","#66cc66","#33cc33","#339933","#006600","#66ff66","#33ff33","#00ff00","#00cc00","#009900","#66ff99","#33ff66","#00ff33","#00cc33","#009933","#99ffcc","#66cc99","#33cc66","#339966","#006633","#33ff99","#00ff66","#00ff99","#00cc66","#33cc99","#66ffcc","#33ffcc","#00ffcc","#00cc99","#009966","#ccffff","#99cccc","#669999","#336666","#003333","#99ffff","#66cccc","#33cccc","#339999","#006666","#66cccc","#33ffff","#00ffff","#00cccc","#009999","#66ccff","#33ccff","#00ccff","#0099cc","#006699","#99ccff","#6699cc","#3399cc","#336699","#003366","#3399ff","#0099ff","#0066ff","#066ccc","#3366cc","#6699ff","#3366f
f","#0033ff","#0033cc","#003399","#ccccff","#9999cc","#666699","#333366","#000033","#9999ff","#6666cc","#3333cc","#333399","#000066","#6666ff","#3333ff","#0000ff","#0000cc","#009999","#9966f
f","#6633ff","#3300ff","#3300cc","#330099","#cc99ff","#9966cc","#6633cc","#663399","#330066","#9933ff","#6600ff","#9900ff","#6600cc","#9933cc","#cc66ff","#cc33ff","#cc00ff","#9900cc","#660099","#ffccff","#cc99cc","#996699","#663366","#330033","#ff99ff","#cc66cc","#cc33cc","#993399","#660066","#ff66ff","#ff33ff","#ff00ff","#cc00cc","#990099","#ff66cc","#ff33cc","#ff00cc","#cc0099","#990066","#ff99cc","#cc6699","#cc3399","#993366","#660033","#ff3399","#ff0099","#ff0066","#cc0066","#cc3366","#ff6699","#ff3366","#ff0033","#cc0033","#990033"]}
+})(jQuery);(function(a){a.fn.elBorderSelect=function(h){var k=this;var 
q=this.eq(0);var b=a.extend({},a.fn.elBorderSelect.defaults,h);var f=a('<input 
type="text" 
/>').attr({name:b.name+"[width]",size:3}).css("text-align","right").change(function(){k.change()});var
 j=a("<div 
/>").css("position","relative").elColorPicker({"class":"el-colorpicker ui-icon 
ui-icon-pencil",name:b.name+"[color]",palettePosition:"outer",change:function(){k.change()}});var
 c=a("<div />").elSelect({tpl:'<div style="border-bottom:4px %val 
#000;width:100%;margin:7px 0"> 
</div>',tpls:{"":"%label"},maxHeight:b.styleHeight||null,select:function(){k.change()
+},src:{"":"none",solid:"solid",dashed:"dashed",dotted:"dotted","double":"double",groove:"groove",ridge:"ridge",inset:"inset",outset:"outset"}});q.empty().addClass(b["class"]).attr("name",b.name||"").append(a("<table
 />").attr("cellspacing",0).append(a("<tr />").append(a("<td 
/>").append(f).append(" px")).append(a("<td />").append(c)).append(a("<td 
/>").append(j))));function g(t){function 
r(u){hexDigits=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];return
 !u?"00":hexDigits[(u-u%16)/16]+hexDigits[u%16]
+}var 
o=(t||"").match(/\(([0-9]{1,3}),\s*([0-9]{1,3}),\s*([0-9]{1,3})\)/);return 
o?"#"+r(o[1])+r(o[2])+r(o[3]):""}function p(r){if(!r){return r}var 
o=r.match(/([0-9]+\.?[0-9]*)\s*(px|pt|em|%)/);if(o){r=o[1];unit=o[2]}if(r[0]=="."){r="0"+r}r=parseFloat(r);if(isNaN(r)){return""}var
 t=parseInt(a(document.body).css("font-size"))||16;switch(unit){case"em":return 
parseInt(r*t);case"pt":return parseInt(r*t/12);case"%":return 
parseInt(r*t/100)}return r}this.change=function(){b.change&&b.change(this.val())
+};this.val=function(u){var 
t,x,z,r,o;if(!u&&u!==""){t=parseInt(f.val());t=!isNaN(t)?t+"px":"";x=c.val();z=j.val();return{width:t,style:x,color:z,css:a.trim(t+"
 "+x+" 
"+z)}}else{r="";if(u.nodeName||u.css){if(!u.css){u=a(u)}r=u.css("border");if((r=u.css("border"))){t=x=z=r}else{t=u.css("border-width");x=u.css("border-style");z=u.css("border-color")}}else{t=u.width||"";x=u.style||"";z=u.color||""}f.val(p(t));o=x?x.match(/(solid|dashed|dotted|double|groove|ridge|inset|outset)/i):"";c.val(o?o[1]:"");j.val(z.indexOf("#")===0?z:g(z));
+return this}};this.val(b.value);return 
this};a.fn.elBorderSelect.defaults={name:"el-borderselect","class":"el-borderselect",value:{},change:null}})(jQuery);(function(a){a.fn.elPaddingInput=function(g){var
 c=this;var 
f=a.extend({},a.fn.elPaddingInput.defaults,{name:this.attr("name")},g);this.regexps={main:new
RegExp(f.type=="padding"?'paddings*:s*([^;"]+)':'margins*:s*([^;"]+)',"im"),left:new
RegExp(f.type=="padding"?'padding-lefts*:s*([^;"]+)':'margin-lefts*:s*([^;"]+)',"im"),top:new
RegExp(f.type=="padding"?'padding-tops*:s*([^;"]+)':'margin-tops*:s*([^;"]+)',"im"),right:new
RegExp(f.type=="padding"?'padding-rights*:s*([^;"]+)':'margin-rights*:s*([^;"]+)',"im"),bottom:new
RegExp(f.type=="padding"?'padding-bottoms*:s*([^;"]+)':'margin-bottoms*:s*([^;"]+)',"im")};
+a.each(["left","top","right","bottom"],function(){c[this]=a('<input 
type="text" 
/>').attr("size",3).css("text-align","right").css("border-"+this,"2px solid 
red").bind("change",function(){a(this).val(b(a(this).val()));h()}).attr("name",f.name+"["+this+"]")});a.each(["uleft","utop","uright","ubottom"],function(){c[this]=a("<select
 />").append('<option value="px">px</option>').append('<option 
value="em">em</option>').append('<option 
value="pt">pt</option>').bind("change",function(){h()}).attr("name",f.name+"["+this+"]");
+if(f.percents){c[this].append('<option 
value="%">%</option>')}});this.empty().addClass(f["class"]).append(this.left).append(this.uleft).append("
 x ").append(this.top).append(this.utop).append(" x 
").append(this.right).append(this.uright).append(" x 
").append(this.bottom).append(this.ubottom);this.val=function(z){if(!z&&z!==""){var
 q=b(this.left.val());var A=b(this.top.val());var j=b(this.right.val());var 
x=b(this.bottom.val());var 
w={left:q=="auto"||q==0?q:(q!==""?q+this.uleft.val():""),top:A=="auto"||A==0?A:(A!==""?A+this.utop.val():""),right:j=="auto"||j==0?j:(j!==""?j+this.uright.val():""),bottom:x=="auto"||x==0?x:(x!==""?x+this.ubottom.val():""),css:""};
+if(w.left!==""&&w.right!==""&&w.top!==""&&w.bottom!==""){if(w.left==w.right&&w.top==w.bottom){w.css=w.top+"
 "+w.left}else{w.css=w.top+" "+w.right+" "+w.bottom+" "+w.left}}return 
w}else{if(z.nodeName||z.css){if(!z.css){z=a(z)}var 
o={left:"",top:"",right:"",bottom:""};var 
k=(z.attr("style")||"").toLowerCase();if(k){k=a.trim(k);var 
p=k.match(this.regexps.main);if(p){var u=a.trim(p[1]).replace(/\s+/g," 
").split(" 
",4);o.top=u[0];o.right=u[1]&&u[1]!==""?u[1]:o.top;o.bottom=u[2]&&u[2]!==""?u[2]:o.top;o.left=u[3]&&u[3]!==""?u[3]:o.right
+}else{a.each(["left","top","right","bottom"],function(){var 
r=this.toString();p=k.match(c.regexps[r]);if(p){o[r]=p[1]}})}}var 
z=o}a.each(["left","top","right","bottom"],function(){var 
t=this.toString();c[t].val("");c["u"+t].val();if(typeof(z[t])!="undefined"&&z[t]!==null){z[t]=z[t].toString();var
 v=b(z[t]);c[t].val(v);var 
r=z[t].match(/(px|em|pt|%)/i);c["u"+t].val(r?r[1]:"px")}});return 
this}};function 
b(j){j=a.trim(j.toString());if(j[0]=="."){j="0"+j}n=parseFloat(j);return 
!isNaN(n)?n:(j=="auto"?j:"")
+}function h(){f.change&&f.change(c)}this.val(f.value);return 
this};a.fn.elPaddingInput.defaults={name:"el-paddinginput","class":"el-paddinginput",type:"padding",value:{},percents:true,change:null}})(jQuery);(function(a){a.fn.elSelect=function(c){var
 q=this;var u=this.eq(0);var b=a.extend({},a.fn.elSelect.defaults,c);var 
g=a('<input type="hidden" />').attr("name",b.name);var p=a("<label 
/>").attr({unselectable:"on"}).addClass("rounded-left-3");var h=null;var 
k=null;if(u.get(0).nodeName=="SELECT"){b.src={};
+u.children("option").each(function(){b.src[a(this).val()]=a(this).text()});b.value=u.val();b.name=u.attr("name");u.replaceWith((u=a("<div
 />")))}if(!b.value||!b.src[b.val]){b.value=null;var f=0;for(var r in 
b.src){if(f++==0){b.value=r}}}this.val=function(o){if(!o&&o!==""){return 
g.val()}else{if(b.src[o]){g.val(o);j(o);if(h){h.children().each(function(){if(a(this).attr("name")==o){a(this).addClass("active")}else{a(this).removeClass("active")}})}}return
 this}};function j(o){var w=b.labelTpl||b.tpls[o]||b.tpl;
+p.html(w.replace(/%val/g,o).replace(/%label/,b.src[o])).children().attr({unselectable:"on"})}u.empty().addClass(b["class"]+"
rounded-3").attr({unselectable:"on"}).append(g).append(p).hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).click(function(o){!h&&t();h.slideToggle();if(a.browser.msie&&!k){h.children().each(function(){k=Math.max(k,a(this).width())});if(k>h.width()){h.width(k+40)}}});this.val(b.value);function
 t(){h=a("<div />").addClass(b.listClass+" 
rounded-3").hide().appendTo(u.mouseleave(function(v){h.slideUp()
+}));for(var x in b.src){var z=b.tpls[x]||b.tpl;a("<div 
/>").attr("name",x).append(a(z.replace(/%val/g,x).replace(/%label/g,b.src[x])).attr({unselectable:"on"})).appendTo(h).hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).click(function(B){B.stopPropagation();B.preventDefault();var
 w=a(this).attr("name");q.val(w);b.select(w);h.slideUp()})}var 
o=u.outerWidth();if(h.width()<o){h.width(o)}var 
A=h.height();if(b.maxHeight>0&&A>b.maxHeight){h.height(b.maxHeight)}q.val(g.val())
+}return 
this};a.fn.elSelect.defaults={name:"el-select","class":"el-select",listClass:"list",labelTpl:null,tpl:"<%val>%label</%val>",tpls:{},value:null,src:{},select:function(b){window.console&&window.console.log&&window.console.log("selected:
"+b)},maxHeight:410}})(jQuery);(function(a){elRTE=function(o,j){if(!o||!o.nodeName){return
 alert('elRTE: argument "target" is not DOM Element')}var 
c=this,f;this.version="1.3";this.build="2011-06-23";this.options=a.extend(true,{},this.options,j);this.browser=a.browser;
+this.target=a(o);this.lang=(""+this.options.lang);this._i18n=new 
eli18n({textdomain:"rte",messages:{rte:this.i18Messages[this.lang]||{}}});this.rtl=!!(/^(ar|fa|he)$/.test(this.lang)&&this.i18Messages[this.lang]);if(this.rtl){this.options.cssClass+="
 el-rte-rtl"}this.toolbar=a('<div 
class="toolbar"/>');this.iframe=document.createElement("iframe");this.iframe.setAttribute("frameborder",0);this.workzone=a('<div
class="workzone"/>').append(this.iframe).append(this.source);this.statusbar=a('<div
 class="statusbar"/>');
+this.tabsbar=a('<div class="tabsbar"/>');this.editor=a('<div 
class="'+this.options.cssClass+'" 
/>').append(this.toolbar).append(this.workzone).append(this.statusbar).append(this.tabsbar);this.doc=null;this.$doc=null;this.window=null;this.utils=new
 this.utils(this);this.dom=new this.dom(this);this.filter=new 
this.filter(this);this.updateHeight=function(){c.workzone.add(c.iframe).add(c.source).height(c.workzone.height())};this.resizable=function(q){var
p=this;if(this.options.resizable&&a.fn.resizable){if(q){this.editor.resizable({handles:"se",alsoResize:this.workzone,minWidth:300,minHeight:200}).bind("resize",p.updateHeight)
+}else{this.editor.resizable("destroy").unbind("resize",p.updateHeight)}}};this.editor.insertAfter(o);var
h="";if(o.nodeName=="TEXTAREA"){this.source=this.target;this.source.insertAfter(this.iframe).hide();h=this.target.val()}else{this.source=a("<textarea
/>").insertAfter(this.iframe).hide();h=this.target.hide().html()}this.source.attr("name",this.target.attr("name")||this.target.attr("id"));h=a.trim(h);if(!h){h="
 "}if(this.options.allowSource){this.tabsbar.append('<div class="tab editor 
rounded-bottom-7 active">'+c.i18n("Editor")+'</div><div class="tab source 
rounded-bottom-7">'+c.i18n("Source")+'</div><div class="clearfix" 
style="clear:both"/>').children(".tab").click(function(p){if(!a(this).hasClass("active")){c.tabsbar.children(".tab").toggleClass("active");
+c.workzone.children().toggle();if(a(this).hasClass("editor")){c.updateEditor();c.window.focus();c.ui.update(true)}else{c.updateSource();c.source.focus();if(a.browser.msie){}else{c.source[0].setSelectionRange(0,0)}c.ui.disable();c.statusbar.empty()}}})}this.window=this.iframe.contentWindow;this.doc=this.iframe.contentWindow.document;this.$doc=a(this.doc);f='<html
 xmlns="http://www.w3.org/1999/xhtml";><head><meta http-equiv="Content-Type" 
content="text/html; charset=UTF-8" 
/>';a.each(c.options.cssfiles,function(){f+='<link rel="stylesheet" 
type="text/css" href="'+this+'" />'
+});this.doc.open();var g=this.filter.wysiwyg(h),b=this.rtl?' 
class="el-rte-rtl"':"";this.doc.write(c.options.doctype+f+"</head><body"+b+">"+(g)+"</body></html>");this.doc.close();if(a.browser.msie){this.doc.body.contentEditable=true}else{try{this.doc.designMode="on"}catch(k){}this.doc.execCommand("styleWithCSS",false,this.options.styleWithCSS)}if(this.options.height>0){this.workzone.height(this.options.height)}if(this.options.width>0){this.editor.width(this.options.width)}this.updateHeight();this.resizable(true);
+this.window.focus();this.history=new this.history(this);this.selection=new 
this.selection(this);this.ui=new 
this.ui(this);this.target.parents("form").bind("submit.elfinder",function(p){c.source.parents("form").find('[name="el-select"]').remove();c.beforeSave()});this.source.bind("keydown",function(t){if(t.keyCode==9){t.preventDefault();if(a.browser.msie){var
 p=document.selection.createRange();p.text="\t"+p.text;this.focus()}else{var 
q=this.value.substr(0,this.selectionStart),u=this.value.substr(this.selectionEnd);
+this.value=q+"\t"+u;this.setSelectionRange(q.length+1,q.length+1)}}});a(this.doc.body).bind("dragend",function(p){setTimeout(function(){try{c.window.focus();var
r=c.selection.getBookmark();c.selection.moveToBookmark(r);c.ui.update()}catch(q){}},200)});this.typing=false;this.lastKey=null;this.$doc.bind("mouseup",function(){c.typing=false;c.lastKey=null;c.ui.update()}).bind("keyup",function(p){if((p.keyCode>=8&&p.keyCode<=13)||(p.keyCode>=32&&p.keyCode<=40)||p.keyCode==46||(p.keyCode>=96&&p.keyCode<=111)){c.ui.update()
+}}).bind("keydown",function(p){if((p.metaKey||p.ctrlKey)&&p.keyCode==65){c.ui.update()}else{if(p.keyCode==13){var
q=c.selection.getNode();if(c.dom.selfOrParent(q,/^PRE$/)){c.selection.insertNode(c.doc.createTextNode("\r\n"));return
false}else{if(a.browser.safari&&p.shiftKey){c.selection.insertNode(c.doc.createElement("br"));return
false}}}}if((p.keyCode>=48&&p.keyCode<=57)||p.keyCode==61||p.keyCode==109||(p.keyCode>=65&&p.keyCode<=90)||p.keyCode==188||p.keyCode==190||p.keyCode==191||(p.keyCode>=219&&p.keyCode<=222)){if(!c.typing){c.history.add(true)
+}c.typing=true;c.lastKey=null}else{if(p.keyCode==8||p.keyCode==46||p.keyCode==32||p.keyCode==13){if(p.keyCode!=c.lastKey){c.history.add(true)}c.lastKey=p.keyCode;c.typing=false}}if(p.keyCode==32&&a.browser.opera){c.selection.insertNode(c.doc.createTextNode("
 "));return 
false}}).bind("paste",function(q){if(!c.options.allowPaste){q.stopPropagation();q.preventDefault()}else{var
t=a(c.dom.create("div"))[0],p=c.doc.createTextNode("_");c.history.add(true);c.typing=true;c.lastKey=null;t.appendChild(p);c.selection.deleteContents().insertNode(t);
+c.selection.select(p);setTimeout(function(){if(t.parentNode){a(t).html(c.filter.proccess("paste",a(t).html()));p=t.lastChild;c.dom.unwrap(t);if(p){c.selection.select(p);c.selection.collapse(false)}}else{t.parentNode&&t.parentNode.removeChild(t);c.val(c.filter.proccess("paste",c.filter.wysiwyg2wysiwyg(a(c.doc.body).html())));c.selection.select(c.doc.body.firstChild);c.selection.collapse(true)}a(c.doc.body).mouseup()},15)}});if(a.browser.msie){this.$doc.bind("keyup",function(p){if(p.keyCode==86&&(p.metaKey||p.ctrlKey)){c.history.add(true);
+c.typing=true;c.lastKey=null;c.selection.saveIERange();c.val(c.filter.proccess("paste",c.filter.wysiwyg2wysiwyg(a(c.doc.body).html())));c.selection.restoreIERange();a(c.doc.body).mouseup();this.ui.update()}})}if(a.browser.safari){this.$doc.bind("click",function(p){a(c.doc.body).find(".elrte-webkit-hl").removeClass("elrte-webkit-hl");if(p.target.nodeName=="IMG"){a(p.target).addClass("elrte-webkit-hl")}}).bind("keyup",function(p){a(c.doc.body).find(".elrte-webkit-hl").removeClass("elrte-webkit-hl")
+})}this.window.focus();this.destroy=function(){this.updateSource();this.target.is("textarea")?this.target.val(a.trim(this.source.val())):this.target.html(a.trim(this.source.val()));this.editor.remove();this.target.show().parents("form").unbind("submit.elfinder")}};elRTE.prototype.i18n=function(b){return
this._i18n.translate(b)};elRTE.prototype.open=function(){this.editor.show()};elRTE.prototype.close=function(){this.editor.hide()};elRTE.prototype.updateEditor=function(){this.val(this.source.val())
+};elRTE.prototype.updateSource=function(){this.source.val(this.filter.source(a(this.doc.body).html()))};elRTE.prototype.val=function(b){if(typeof(b)=="string"){b=""+b;if(this.source.is(":visible")){this.source.val(this.filter.source2source(b))}else{if(a.browser.msie){this.doc.body.innerHTML="<br
/>"+this.filter.wysiwyg(b);this.doc.body.removeChild(this.doc.body.firstChild)}else{this.doc.body.innerHTML=this.filter.wysiwyg(b)}}}else{if(this.source.is(":visible")){return
 this.filter.source2source(this.source.val()).trim()
+}else{return 
this.filter.source(a(this.doc.body).html()).trim()}}};elRTE.prototype.beforeSave=function(){this.source.val(a.trim(this.val())||"")};elRTE.prototype.save=function(){this.beforeSave();this.editor.parents("form").submit()};elRTE.prototype.log=function(b){if(window.console&&window.console.log){window.console.log(b)}};elRTE.prototype.i18Messages={};a.fn.elrte=function(g,b){var
f=typeof(g)=="string"?g:"",c;this.each(function(){if(!this.elrte){this.elrte=new
 elRTE(this,typeof(g)=="object"?g:{})
+}switch(f){case"open":case"show":this.elrte.open();break;case"close":case"hide":this.elrte.close();break;case"updateSource":this.elrte.updateSource();break;case"destroy":this.elrte.destroy()}});if(f=="val"){if(!this.length){return""}else{if(this.length==1){return
b?this[0].elrte.val(b):this[0].elrte.val()}else{c={};this.each(function(){c[this.elrte.source.attr("name")]=this.elrte.val()});return
 c}}}return 
this}})(jQuery);(function(a){elRTE.prototype.dom=function(c){this.rte=c;var 
b=this;this.regExp={textNodes:/^(A|ABBR|ACRONYM|ADDRESS|B|BDO|BIG|BLOCKQUOTE|CAPTION|CENTER|CITE|CODE|DD|DEL|DFN|DIV|DT|EM|FIELDSET|FONT|H[1-6]|I|INS|KBD|LABEL|LEGEND|LI|MARQUEE|NOBR|NOEMBED|P|PRE|Q|SAMP|SMALL|SPAN|STRIKE|STRONG|SUB|SUP|TD|TH|TT|VAR)$/,textContainsNodes:/^(A|ABBR|ACRONYM|ADDRESS|B|BDO|BIG|BLOCKQU
OTE|CAPTION|CENTER|CITE|CODE|DD|DEL|DFN|DIV|DL|DT|EM|FIELDSET|FONT|H[1-6]|I|INS|KBD|LABEL|LEGEND|LI|MARQUEE|NOBR|NOEMBED|OL|P|PRE|Q|SAMP|SMALL|SPAN|STRIKE|STRONG|SUB|SUP|TABLE|THEAD|TBODY|TF
OOT|TD|TH|TR|TT|UL|VAR)$/,block:/^(APPLET|BLOCKQUOTE|BR|CAPTION|CENTER|COL|COLGROUP|DD|DIV|DL|DT|H[1-6]|EMBED|FIELDSET|LI|MARQUEE|NOBR|OBJECT|OL|P|PRE|TABLE|THEAD|TBODY|TFOOT|TD|TH|TR|UL)$/,selectionBlock:/^(APPLET|BLOCKQUOTE|BR|CAPTION|CENTER|COL|COLGROUP|DD|DIV|DL|DT|H[1-6]|EMBED|FIELDSET|LI|MARQUEE|NOBR|OBJECT|OL|P|PRE|TD|TH|TR|UL)$/,header:/^H[1-6]$/,formElement:/^(FORM|INPUT|HIDDEN|TEXTAREA|SELECT|BUTTON)$/};
+this.root=function(){return this.rte.body};this.create=function(f){return 
this.rte.doc.createElement(f)};this.createBookmark=function(){var 
f=this.rte.doc.createElement("span");f.id="elrte-bm-"+Math.random().toString().substr(2);a(f).addClass("elrtebm
 elrte-protected");return f};this.indexOf=function(g){var 
f=0;g=a(g);while((g=g.prev())&&g.length){f++}return 
f};this.attr=function(h,f){var 
g="";if(h.nodeType==1){g=a(h).attr(f);if(g&&f!="src"&&f!="href"&&f!="title"&&f!="alt"){g=g.toString().toLowerCase()
+}}return g||""};this.findCommonAncestor=function(j,h){if(!j||!h){return 
this.rte.log("dom.findCommonAncestor invalid arguments")}if(j==h){return 
j}else{if(j.nodeName=="BODY"||h.nodeName=="BODY"){return this.rte.doc.body}}var 
o=a(j).parents(),k=a(h).parents(),f=k.length-1,p=k[f];for(var 
g=o.length-1;g>=0;g--,f--){if(o[g]==k[f]){p=o[g]}else{break}}return 
p};this.isEmpty=function(f){if(f.nodeType==1){return 
this.regExp.textNodes.test(f.nodeName)?a.trim(a(f).text()).length==0:false}else{if(f.nodeType==3){return/^(TABLE|THEAD|TFOOT|TBODY|TR|UL|OL|DL)$/.test(f.parentNode.nodeName)||f.nodeValue==""||(a.trim(f.nodeValue).length==0&&!(f.nextSibling&&f.previousSibling&&f.nextSibling.nodeType==1&&f.previousSibling.nodeType==1&&!this.regExp.block.test(f.nextSibling.nodeName)&&!this.regExp.block.test(
 f.previousSibling.nodeName)))
+}}return 
true};this.next=function(f){while(f.nextSibling&&(f=f.nextSibling)){if(f.nodeType==1||(f.nodeType==3&&!this.isEmpty(f))){return
 f}}return 
null};this.prev=function(f){while(f.previousSibling&&(f=f.previousSibling)){if(f.nodeType==1||(f.nodeType==3&&!this.isEmpty(f))){return
 f}}return 
null};this.isPrev=function(g,f){while((g=this.prev(g))){if(g==f){return 
true}}return false};this.nextAll=function(g){var 
f=[];while((g=this.next(g))){f.push(g)}return f};this.prevAll=function(g){var 
f=[];while((g=this.prev(g))){f.push(g)
+}return f};this.toLineEnd=function(g){var 
f=[];while((g=this.next(g))&&g.nodeName!="BR"&&g.nodeName!="HR"&&this.isInline(g)){f.push(g)}return
 f};this.toLineStart=function(g){var 
f=[];while((g=this.prev(g))&&g.nodeName!="BR"&&g.nodeName!="HR"&&this.isInline(g)){f.unshift(g)}return
f};this.isFirstNotEmpty=function(f){while((f=this.prev(f))){if(f.nodeType==1||(f.nodeType==3&&a.trim(f.nodeValue)!="")){return
 false}}return 
true};this.isLastNotEmpty=function(f){while((f=this.next(f))){if(!this.isEmpty(f)){return
 false
+}}return true};this.isOnlyNotEmpty=function(f){return 
this.isFirstNotEmpty(f)&&this.isLastNotEmpty(f)};this.findLastNotEmpty=function(f){this.rte.log("findLastNotEmpty
 Who is here 
0_o");if(f.nodeType==1&&(l=f.lastChild)){if(!this.isEmpty(l)){return 
l}while(l.previousSibling&&(l=l.previousSibling)){if(!this.isEmpty(l)){return 
l}}}return false};this.isInline=function(j){if(j.nodeType==3){return 
true}else{if(j.nodeType==1){j=a(j);var h=j.css("display");var 
g=j.css("float");return h=="inline"||h=="inline-block"||g=="left"||g=="right"
+}}return 
true};this.is=function(h,g){if(h&&h.nodeName){if(typeof(g)=="string"){g=this.regExp[g]||/.?/}if(g
 instanceof RegExp&&h.nodeName){return 
g.test(h.nodeName)}else{if(typeof(g)=="function"){return g(h)}}}return 
false};this.filter=function(j,h){var f=[],g;if(!j.push){return 
this.is(j,h)?j:null}for(g=0;g<j.length;g++){if(this.is(j[g],h)){f.push(j[g])}}return
 f};this.parents=function(h,g){var 
f=[];while(h&&(h=h.parentNode)&&h.nodeName!="BODY"&&h.nodeName!="HTML"){if(this.is(h,g)){f.push(h)}}return
 f
+};this.parent=function(h,g){return 
this.parents(h,g)[0]||null};this.selfOrParent=function(h,g,f){return 
this.is(h,g)?h:this.parent(h,f||g)};this.selfOrParentLink=function(f){f=this.selfOrParent(f,/^A$/);return
f&&f.href?f:null};this.selfOrParentAnchor=function(f){f=this.selfOrParent(f,/^A$/);return
 f&&!f.href&&f.name?f:null};this.childLinks=function(g){var 
f=[];a("a[href]",g).each(function(){f.push(this)});return 
f};this.selectionHas=function(h){var 
j=this.rte.selection.cloneContents(),g;if(j&&j.childNodes&&j.childNodes.length){for(g=0;
+g<j.childNodes.length;g++){if(typeof(h)=="function"){if(h(j.childNodes[g])){return
 true}}else{if(j instanceof RegExp){if(h.test(j.childNodes[g].nodeName)){return 
true}}}}}return 
false};this.wrap=function(g,f){g=a.isArray(g)?g:[g];f=f.nodeName?f:this.create(f);if(g[0]&&g[0].nodeType&&g[0].parentNode){f=g[0].parentNode.insertBefore(f,g[0]);a(g).each(function(){if(this!=f){f.appendChild(this)}})}return
f};this.unwrap=function(f){if(f&&f.parentNode){while(f.firstChild){f.parentNode.insertBefore(f.firstChild,f)
+}f.parentNode.removeChild(f)}};this.wrapContents=function(h,f){f=f.nodeName?f:this.create(f);for(var
g=0;g<h.childNodes.length;g++){f.appendChild(h.childNodes[g])}h.appendChild(f);return
f};this.cleanNode=function(f){if(f.nodeType!=1){return}if(/^(P|LI)$/.test(f.nodeName)&&(l=this.findLastNotEmpty(f))&&l.nodeName=="BR"){a(l).remove()}$n=a(f);$n.children().each(function(){this.cleanNode(this)});if(f.nodeName!="BODY"&&!/^(TABLE|TR|TD)$/.test(f)&&this.isEmpty(f)){return
 $n.remove()}if($n.attr("style")===""){$n.removeAttr("style")
+}if(this.rte.browser.safari&&$n.hasClass("Apple-span")){$n.removeClass("Apple-span")}if(f.nodeName=="SPAN"&&!$n.attr("style")&&!$n.attr("class")&&!$n.attr("id")){$n.replaceWith($n.html())}};this.cleanChildNodes=function(g){var
f=this.cleanNode;a(g).children().each(function(){f(this)})};this.tableMatrix=function(j){var
 h=[];if(j&&j.nodeName=="TABLE"){var g=0;function f(o){for(var 
k=0;k<=g;k++){if(!h[o][k]){return 
k}}}a(j).find("tr").each(function(k){if(!a.isArray(h[k])){h[k]=[]}a(this).children("td,th").each(function(){var
 p=parseInt(a(this).attr("colspan")||1);
+var t=parseInt(a(this).attr("rowspan")||1);var r=f(k);for(var 
v=0;v<t;v++){for(var o=0;o<p;o++){var q=k+v;if(!a.isArray(h[q])){h[q]=[]}var 
u=o==0&&v==0?this:(v==0?o:"-");h[q][r+o]=u}}g=Math.max(g,h[k].length)})})}return
 h};this.indexesOfCell=function(j,h){for(var f=0;f<h.length;f++){for(var 
g=0;g<h[f].length;g++){if(h[f][g]==j){return[f,g]}}}};this.fixTable=function(q){if(q&&q.nodeName=="TABLE"){var
 h=a(q);var p=this.tableMatrix(q);var 
f=0;a.each(p,function(){f=Math.max(f,this.length)});if(f==0){return h.remove()
+}for(var k=0;k<p.length;k++){var 
g=p[k].length;if(g==0){h.find("tr").eq(k).remove()}else{if(g<f){var j=f-g;var 
o=h.find("tr").eq(k);for(i=0;i<j;i++){o.append("<td> </td>")}}}}}};this.tableColumn=function(h,g,o){h=this.selfOrParent(h,/^TD|TH$/);var
j=this.selfOrParent(h,/^TABLE$/);ret=[];info={offset:[],delta:[]};if(h&&j){o&&this.fixTable(j);var
 u=this.tableMatrix(j);var v=false;var t;for(var f=0;f<u.length;f++){for(var 
q=0;q<u[f].length;q++){if(u[f][q]==h){t=q;v=true;break}}if(v){break}}if(t>=0){for(var
 f=0;
+f<u.length;f++){var 
k=u[f][t]||null;if(k){if(k.nodeName){ret.push(k);if(g){info.delta.push(0);info.offset.push(t)}}else{var
p=parseInt(k);if(!isNaN(p)&&u[f][t-p]&&u[f][t-p].nodeName){ret.push(u[f][t-p]);if(g){info.delta.push(p);info.offset.push(t)}}}}}}}return
!g?ret:{column:ret,info:info}}}})(jQuery);(function(a){elRTE.prototype.filter=function(c){var
b=this,f=a("<span/>").addClass("elrtetesturl").appendTo(document.body)[0];this.url=(typeof(f.currentStyle)!="undefined"?f.currentStyle.backgroundImage:document.defaultView.getComputedStyle(f,null)["backgroundImage"]).replace(/^url\((['"]?)([\s\S]+\/)[\s\S]+\1\)$/i,"$2");
+a(f).remove();this.rte=c;this.xhtml=/xhtml/i.test(c.options.doctype);this.boolAttrs=c.utils.makeObject("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected".split(","));this.tagRegExp=/<(\/?)([\w:]+)((?:\s+[a-z\-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*\/?>/g;this.openTagRegExp=/<([\w:]+)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*\/?>/g;this.attrRegExp=/(\w+)(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^\s]+))?/g;this.scriptRegExp=/<script([^>]*)>([\s\S]*?)<\/script>/gi;
+this.styleRegExp=/(<style([^>]*)>[\s\S]*?<\/style>)/gi;this.linkRegExp=/(<link([^>]+)>)/gi;this.cdataRegExp=/<!\[CDATA\[([\s\S]+)\]\]>/g;this.objRegExp=/<object([^>]*)>([\s\S]*?)<\/object>/gi;this.embRegExp=/<(embed)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*>/gi;this.paramRegExp=/<(param)((?:\s+\w+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*>/gi;this.iframeRegExp=/<iframe([^>]*)>([\s\S]*?)<\/iframe>/gi;this.yMapsRegExp=/<div\s+([^>]*id\s*=\s*('|")?YMapsID[^>]*)>/gi;this.gMapsRegExp=/<iframe\s+([^>]*src\s*=\s*"http:\/\/maps\.google\.\w+[^>]*)>([\s\S]*?)<\/iframe>/gi;
+this.videoHostRegExp=/^(http:\/\/[\w\.]*)?(youtube|vimeo|rutube).*/i;this.serviceClassRegExp=/<(\w+)([^>]*class\s*=\s*"[^>]*elrte-[^>]*)>\s*(<\/\1>)?/gi;this.pagebreakRegExp=/<(\w+)([^>]*style\s*=\s*"[^>]*page-break[^>]*)>\s*(<\/\1>)?/gi;this.pbRegExp=new
 RegExp("<!-- pagebreak 
-->","gi");this.allowTags=c.options.allowTags.length?c.utils.makeObject(c.options.allowTags):null;this.denyTags=c.options.denyTags.length?c.utils.makeObject(c.options.denyTags):null;this.denyAttr=c.options.denyAttr?c.utils.makeObject(c.options.denyAttr):null;
+this.pasteDenyAttr=c.options.pasteDenyAttr?c.utils.makeObject(c.options.pasteDenyAttr):null;this.fontSize=["medium","xx-small","small","medium","large","x-large","xx-large"];this.fontFamily={"sans-serif":/^(arial|tahoma|verdana)$/i,serif:/^(times|times
 new 
roman)$/i,monospace:/^courier$/i};this.scripts={};this._chains={};a.each(this.chains,function(g){b._chains[g]=[];a.each(this,function(h,j){typeof(b.rules[j])=="function"&&b._chains[g].push(b.rules[j])})});this.proccess=function(h,g){g=a.trim(g).replace(/^\s*( )+/gi,"").replace(/( |<br[^>]*>)+\s*$/gi,"");
+a.each(this._chains[h]||[],function(){g=this.call(b,g)});g=g.replace(/\t/g,"  
").replace(/\r/g,"").replace(/\s*\n\s*\n+/g,"\n")+"  ";return a.trim(g)?g:" 
"};this.wysiwyg=function(g){return 
this.proccess("wysiwyg",g)};this.source=function(g){return 
this.proccess("source",g)};this.source2source=function(g){return 
this.proccess("source2source",g)};this.wysiwyg2wysiwyg=function(g){return 
this.proccess("wysiwyg2wysiwyg",g)};this.parseAttrs=function(p){var 
j={},h=this.boolAttrs,g=p.match(this.attrRegExp),o,q,k;
+g&&a.each(g,function(r,t){o=t.split("=");q=a.trim(o[0]).toLowerCase();if(o.length>2){o.shift();k=o.join("=")}else{k=h[q]||o[1]||""}j[q]=a.trim(k).replace(/^('|")(.*)(\1)$/,"$2")});j.style=this.rte.utils.parseStyle(j.style);j["class"]=this.rte.utils.parseClass(j["class"]||"");return
 j};this.serializeAttrs=function(g,k){var 
j=[],h=this;a.each(g,function(p,o){if(p=="style"){o=h.rte.utils.serializeStyle(o,k)}else{if(p=="class"){o=h.rte.utils.serializeClass(o)}}o&&j.push(p+'="'+o+'"')});return
 j.join(" ")
+};this.cleanAttrs=function(g,j){var 
h=this,o=this.replaceAttrs;a.each(g["class"],function(p){/^(Apple-style-span|mso\w+)$/i.test(p)&&delete
 g["class"][p]});function k(p){return 
p+(/\d$/.test(p)?"px":"")}a.each(g,function(q,p){o[q]&&o[q].call(h,g,j);if(q=="style"){a.each(p,function(t,r){switch(t){case"mso-padding-alt":case"mso-padding-top-alt":case"mso-padding-right-alt":case"mso-padding-bottom-alt":case"mso-padding-left-alt":case"mso-margin-alt":case"mso-margin-top-alt":case"mso-margin-right-alt":case"mso-margin-bottom-alt":case"mso-margin-left-alt":case"mso-table-layout-alt":case"mso-height":case"mso-width":case"mso-vertical-align-alt":g.style[t.replace(/^mso-|-alt$/g,"")]=k(r);
+delete g.style[t];break;case"horiz-align":g.style["text-align"]=r;delete 
g.style[t];break;case"vert-align":g.style["vertical-align"]=r;delete 
g.style[t];break;case"font-color":case"mso-foreground":g.style.color=r;delete 
g.style[t];break;case"mso-background":case"mso-highlight":g.style.background=r;delete
 g.style[t];break;case"mso-default-height":g.style["min-height"]=k(r);delete 
g.style[t];break;case"mso-default-width":g.style["min-width"]=k(r);delete 
g.style[t];break;case"mso-padding-between-alt":g.style["border-collapse"]="separate";
+g.style["border-spacing"]=k(r);delete 
g.style[t];break;case"text-line-through":if(r.match(/(single|double)/i)){g.style["text-decoration"]="line-through"}delete
g.style[t];break;case"mso-zero-height":if(r=="yes"){g.style.display="none"}delete
g.style[t];break;case"font-weight":if(r==700){g.style["font-weight"]="bold"}break;default:if(t.match(/^(mso|column|font-emph|lang|layout|line-break|list-image|nav|panose|punct|row|ruby|sep|size|src|tab-|table-border|text-(?!align|decor|indent|trans)|top-bar|version|vnd|word-break)/)){delete
 g.style[t]
+}}})}});return 
g}};elRTE.prototype.filter.prototype.replaceTags={b:{tag:"strong"},big:{tag:"span",style:{"font-size":"large"}},center:{tag:"div",style:{"text-align":"center"}},i:{tag:"em"},font:{tag:"span"},nobr:{tag:"span",style:{"white-space":"nowrap"}},menu:{tag:"ul"},plaintext:{tag:"pre"},s:{tag:"strike"},small:{tag:"span",style:{"font-size":"small"}},u:{tag:"span",style:{"text-decoration":"underline"}},xmp:{tag:"pre"}};elRTE.prototype.filter.prototype.replaceAttrs={align:function(b,c){switch(c){case"img":b.style[b.align.match(/(left|right)/)?"float":"vertical-align"]=b.align;
+break;case"table":if(b.align=="center"){b.style["margin-left"]=b.style["margin-right"]="auto"}else{b.style["float"]=b.align}break;default:b.style["text-align"]=b.align}delete
b.align},border:function(b){!b.style["border-width"]&&(b.style["border-width"]=(parseInt(b.border)||1)+"px");!b.style["border-style"]&&(b.style["border-style"]="solid");delete
b.border},bordercolor:function(b){!b.style["border-color"]&&(b.style["border-color"]=b.bordercolor);delete
b.bordercolor},background:function(b){!b.style["background-image"]&&(b.style["background-image"]="url("+b.background+")");
+delete 
b.background},bgcolor:function(b){!b.style["background-color"]&&(b.style["background-color"]=b.bgcolor);delete
b.bgcolor},clear:function(b){b.style.clear=b.clear=="all"?"both":b.clear;delete 
b.clear},color:function(b){!b.style.color&&(b.style.color=b.color);delete 
b.color},face:function(b){var 
c=b.face.toLowerCase();a.each(this.fontFamily,function(g,f){if(c.match(f)){b.style["font-family"]=c+","+g}});delete
 b.face},hspace:function(b,f){if(f=="img"){var 
c=parseInt(b.hspace)||0;!b.style["margin-left"]&&(b.style["margin-left"]=c+"px");
+!b.style["margin-right"]&&(b.style["margin-right"]=c+"px");delete 
b.hspace}},size:function(b,c){if(c!="input"){b.style["font-size"]=this.fontSize[parseInt(b.size)||0]||"medium";delete
b.size}},valign:function(b){if(!b.style["vertical-align"]){b.style["vertical-align"]=b.valign}delete
 b.valign},vspace:function(b,f){if(f=="img"){var 
c=parseInt(b.vspace)||0;!b.style["margin-top"]&&(b.style["margin-top"]=c+"px");!b.style["margin-bottom"]&&(b.style["margin-bottom"]=c+"px");delete
b.hspace}}};elRTE.prototype.filter.prototype.rules={allowedTags:function(c){var 
b=this.allowTags;
+return b?c.replace(this.tagRegExp,function(f,h,g){return 
b[g.toLowerCase()]?f:""}):c},deniedTags:function(b){var c=this.denyTags;return 
c?b.replace(this.tagRegExp,function(f,h,g){return 
c[g.toLowerCase()]?"":f}):b},clean:function(g){var 
c=this,b=this.replaceTags,h=this.replaceAttrs,f=this.denyAttr,j;g=g.replace(/<!DOCTYPE([\s\S]*)>/gi,"").replace(/<p
[^>]*class="?MsoHeading"?[^>]*>(.*?)<\/p>/gi,"<p><strong>$1</strong></p>").replace(/<span\s+style\s*=\s*"\s*mso-spacerun\s*:\s*yes\s*;?\s*"\s*>([\s ]*)<\/span>/gi,"$1").replace(/(<p[^>]*>\s*<\/p>|<p[^>]*\/>)/gi,"<br>").replace(/(<\/p>)(?:\s*<br\s*\/?>\s*|\s* \s*)+\s*(<p[^>]*>)/gi,function(o,k,p){return
 k+"\n"+p
+}).replace(this.tagRegExp,function(o,q,p,k){p=p.toLowerCase();if(q){return"</"+(b[p]?b[p].tag:p)+">"}k=c.cleanAttrs(c.parseAttrs(k||""),p);if(b[p]){b[p].style&&a.extend(k.style,b[p].style);p=b[p].tag}f&&a.each(k,function(r){if(f[r]){delete
 k[r]}});k=c.serializeAttrs(k);return"<"+p+(k?" 
":"")+k+">"});j=a("<div>"+g+"</div>");j.find("span:not([id]):not([class])").each(function(){var
k=a(this);if(!k.attr("style")){a.trim(k.html()).length?c.rte.dom.unwrap(this):k.remove()}}).end().find("span
 span:only-child").each(function(){var 
o=a(this),u=o.parent().eq(0),r=o.attr("id"),k=u.attr("id"),w,q,v;
+if(c.rte.dom.isOnlyNotEmpty(this)&&(!r||!k)){v=a.trim(u.attr("class")+" 
"+o.attr("class"));v&&u.attr("class",v);q=c.rte.utils.serializeStyle(a.extend(c.rte.utils.parseStyle(a(this).attr("style")||""),c.rte.utils.parseStyle(a(u).attr("style")||"")));q&&u.attr("style",q);w=r||k;w&&u.attr("id",w);this.firstChild?a(this.firstChild).unwrap():o.remove()}}).end().find("a[name]").each(function(){a(this).addClass("elrte-protected
 elrte-anchor")});return j.html()},cleanPaste:function(c){var 
b=this,f=this.pasteDenyAttr;
+c=c.replace(this.scriptRegExp,"").replace(this.styleRegExp,"").replace(this.linkRegExp,"").replace(this.cdataRegExp,"").replace(/\<\!--[\s\S]*?--\>/g,"");if(this.rte.options.pasteOnlyText){c=c.replace(this.tagRegExp,function(g,j,h){return/br/i.test(h)||(j&&/h[1-6]|p|ol|ul|li|div|blockquote|tr/i)?"<br>":""}).replace(/( |<br[^>]*>)+\s*$/gi,"")}else{if(f){c=c.replace(this.openTagRegExp,function(h,j,g){g=b.parseAttrs(g);a.each(g,function(k){if(f[k]){delete
 g[k]}});g=b.serializeAttrs(g,true);return"<"+j+(g?" ":"")+g+">"
+})}}return c},replace:function(o){var 
q=this,b=this.rte.options.replace||[],g;if(b.length){a.each(b,function(r,t){if(typeof(t)=="function"){o=t.call(q,o)}})}function
 k(x,D){var 
E=r(),B=E&&q.videoHostRegExp.test(E)?E.replace(q.videoHostRegExp,"$2"):D.replace(/^\w+\/(.+)/,"$1"),C=parseInt((x.obj?x.obj.width||x.obj.style.width:0)||(x.embed?x.embed.width||x.embed.style.width:0))||150,A=parseInt((x.obj?x.obj.height||x.obj.style.height:0)||(x.embed?x.embed.height||x.embed.style.height:0))||100,v="media"+Math.random().toString().substring(2),u="",z;
+function r(){if(x.embed&&x.embed.src){return 
x.embed.src}if(x.params&&x.params.length){z=x.params.length;while(z--){if(x.params[z].name=="src"||x.params[z].name=="movie"){return
 x.params[z].value}}}}if(x.obj&&x.obj.style&&x.obj.style["float"]){u=' 
style="float:'+x.obj.style["float"]+'"'}q.scripts[v]=x;return'<img 
src="'+q.url+'pixel.gif" class="elrte-media elrte-media-'+B+' elrte-protected" 
title="'+(E?q.rte.utils.encode(E):"")+'" rel="'+v+'" width="'+C+'" 
height="'+A+'"'+u+">"}o=o.replace(this.styleRegExp,"<!-- ELRTE_COMMENT$1 
-->").replace(this.linkRegExp,"<!-- 
ELRTE_COMMENT$1-->").replace(this.cdataRegExp,"<!--[CDATA[$1]]-->").replace(this.scriptRegExp,function(u,r,v){var
 w;
+if(q.denyTags.script){return""}w="script"+Math.random().toString().substring(2);r=q.parseAttrs(r);!r.type&&(r.type="text/javascript");q.scripts[w]="<script
 "+q.serializeAttrs(r)+">"+v+"<\/script>";return"<!-- ELRTE_SCRIPT:"+(w)+" 
-->"}).replace(this.yMapsRegExp,function(u,r){r=q.parseAttrs(r);r["class"]["elrte-yandex-maps"]="elrte-yandex-maps";r["class"]["elrte-protected"]="elrte-protected";return"<div
 "+q.serializeAttrs(r)+">"}).replace(this.gMapsRegExp,function(v,u){var 
z="gmaps"+Math.random().toString().substring(2),r,x;
+u=q.parseAttrs(u);r=parseInt(u.width||u.style.width||100);x=parseInt(u.height||u.style.height||100);q.scripts[z]=v;return'<img
 src="'+q.url+'pixel.gif" class="elrte-google-maps elrte-protected" id="'+z+'" 
style="width:'+r+"px;height:"+x+'px">'}).replace(this.objRegExp,function(w,u,z){var
r=z.match(q.embRegExp),x={obj:q.parseAttrs(u),embed:r&&r.length?q.parseAttrs(r[0].substring(7)):null,params:[]},v=q.rte.utils.mediaInfo(x.embed?x.embed.type||"":"",x.obj.classid||"");if(v){if((r=z.match(q.paramRegExp))){a.each(r,function(t,A){x.params.push(q.parseAttrs(A.substring(6)))
+})}!x.obj.classid&&(x.obj.classid=v.classid[0]);!x.obj.codebase&&(x.obj.codebase=v.codebase);x.embed&&!x.embed.type&&(x.embed.type=v.type);x.obj.width=="1"&&delete
 x.obj.width;x.obj.height=="1"&&delete 
x.obj.height;if(x.embed){x.embed.width=="1"&&delete 
x.embed.width;x.embed.height=="1"&&delete x.embed.height}return 
k(x,v.type)}return w}).replace(this.embRegExp,function(v,w,r){var 
r=q.parseAttrs(r),u=q.rte.utils.mediaInfo(r.type||"");r.width=="1"&&delete 
r.width;r.height=="1"&&delete r.height;return u?k({embed:r},u.type):v
+}).replace(this.iframeRegExp,function(x,u){var u=q.parseAttrs(u);var 
r=u.style.width||(parseInt(u.width)>1?parseInt(u.width)+"px":"100px");var 
z=u.style.height||(parseInt(u.height)>1?parseInt(u.height)+"px":"100px");var 
A="iframe"+Math.random().toString().substring(2);q.scripts[A]=x;var v='<img 
id="'+A+'" src="'+q.url+'pixel.gif" class="elrte-protected elrte-iframe" 
style="width:'+r+"; height:"+z+'">';return 
v}).replace(this.vimeoRegExp,function(u,v,r){r=q.parseAttrs(r);delete 
r.frameborder;r.width=="1"&&delete r.width;
+r.height=="1"&&delete r.height;r.type="application/x-shockwave-flash";return 
k({embed:r},"application/x-shockwave-flash")}).replace(/<\/(embed|param)>/gi,"").replace(this.pbRegExp,function(){return'<img
 src="'+q.url+'pixel.gif" class="elrte-protected 
elrte-pagebreak">'});g=a("<div>"+o+"</div>");if(!this.rte.options.allowTextNodes){var
 h=this.rte.dom,c=[],p=[];if(a.browser.msie){for(var 
j=0;j<g[0].childNodes.length;j++){c.push(g[0].childNodes[j])}}else{c=Array.prototype.slice.call(g[0].childNodes)
+}function 
f(){if(p.length&&h.filter(p,"notEmpty").length){h.wrap(p,document.createElement("p"))}p=[]}a.each(c,function(r,t){if(h.is(t,"block")){f()}else{if(p.length&&t.previousSibling!=p[p.length-1]){f()}p.push(t)}});f()}return
 g.html()},restore:function(c){var 
b=this,f=this.rte.options.restore||[];if(f.length){a.each(f,function(g,h){if(typeof(h)=="function"){c=h.call(b,c)}})}c=c.replace(/\<\!--\[CDATA\[([\s\S]*?)\]\]--\>/gi,"<![CDATA[$1]]>").replace(/\<\!--\s*ELRTE_SCRIPT\:\s*(script\d+)\s*--\>/gi,function(g,h){if(b.scripts[h]){g=b.scripts[h];
+delete b.scripts[h]}return g||""}).replace(/\<\!-- ELRTE_COMMENT([\s\S]*?) 
--\>/gi,"$1").replace(this.serviceClassRegExp,function(k,r,g,p){var 
g=b.parseAttrs(g),h,q="";if(g["class"]["elrte-google-maps"]){var 
k="";if(b.scripts[g.id]){k=b.scripts[g.id];delete b.scripts[g.id]}return 
k}else{if(g["class"]["elrte-iframe"]){return 
b.scripts[g.id]||""}else{if(g["class"]["elrtebm"]){return""}else{if(g["class"]["elrte-media"]){h=b.scripts[g.rel]||{};h.params&&a.each(h.params,function(j,o){q+="<param
 "+b.serializeAttrs(o)+">\n"
+});h.embed&&(q+="<embed "+b.serializeAttrs(h.embed)+">");h.obj&&(q="<object 
"+b.serializeAttrs(h.obj)+">\n"+q+"\n</object>\n");return 
q||k}else{if(g["class"]["elrte-pagebreak"]){return"<!-- pagebreak 
-->"}}}}}a.each(g["class"],function(j){if(/^elrte-\w+/i.test(j)){delete 
(g["class"][j])}});return"<"+r+" "+b.serializeAttrs(g)+">"+(p||"")});return 
c},compactStyles:function(c){var b=this;return 
c.replace(this.tagRegExp,function(g,j,h,f){f=!j&&f?b.serializeAttrs(b.parseAttrs(f),true):"";return"<"+j+h.toLowerCase()+(f?"
 ":"")+f+">"
+})},xhtmlTags:function(b){return 
this.xhtml?b.replace(/<(img|hr|br|embed|param|link|area)([^>]*\/*)>/gi,"<$1$2 
/>"):b}};elRTE.prototype.filter.prototype.chains={wysiwyg:["replace","clean","allowedTags","deniedTags","compactStyles"],source:["clean","allowedTags","restore","compactStyles","xhtmlTags"],paste:["clean","allowedTags","cleanPaste","replace","deniedTags","compactStyles"],wysiwyg2wysiwyg:["clean","allowedTags","restore","replace","deniedTags","compactStyles"],source2source:["clean","allowedTags","replace","deniedTags","restore","compactStyles","xhtmlTags"]}
+})(jQuery);(function(a){elRTE.prototype.history=function(b){this.rte=b;this._prev=[];this._next=[];this.add=function(){if(this.rte.options.historyLength>0&&this._prev.length>=this.rte.options.historyLength){this._prev.slice(this.rte.options.historyLength)}var
c=this.rte.selection.getBookmark();this._prev.push([a(this.rte.doc.body).html(),c]);this.rte.selection.moveToBookmark(c);this._next=[]};this.back=function(){if(this._prev.length){var
c=this.rte.selection.getBookmark(),f=this._prev.pop();this._next.push([a(this.rte.doc.body).html(),c]);
+a(this.rte.doc.body).html(f[0]);this.rte.selection.moveToBookmark(f[1])}};this.fwd=function(){if(this._next.length){var
c=this.rte.selection.getBookmark(),f=this._next.pop();this._prev.push([a(this.rte.doc.body).html(),c]);a(this.rte.doc.body).html(f[0]);this.rte.selection.moveToBookmark(f[1])}};this.canBack=function(){return
 this._prev.length};this.canFwd=function(){return 
this._next.length}}})(jQuery);(function(a){elRTE.prototype.options={doctype:'<!DOCTYPE
 HTML PUBLIC "-//W3C//DTD HTML 4.01 
Transitional//EN">',cssClass:"el-rte",cssfiles:[],height:null,resizable:true,lang:"en",toolbar:"normal",absoluteURLs:true,allowSource:true,stripWhiteSpace:true,styleWithCSS:false,fmAllow:true,fmOpen:null,allowTags:[],denyTags:["applet","base","basefont","bgsound","blink","body","col","colgroup","isi
ndex","frameset","html","head","meta","marquee","noframes","noembed","o:p","title","xml"],denyAttr:[],pasteDenyAttr:["id","name","class","style","language","onclick","ondblclick","onhover","
onkeup","onkeydown","onkeypress"],allowTextNodes:true,allowBrowsersSpecStyles:false,allowPaste:true,pasteOnlyText:false,replace:[],restore:[],pagebreak:'<div
 style="page-break-after: 
always;"></div>',buttons:{save:"Save",copy:"Copy",cut:"Cut",css:"Css style and 
class",paste:"Paste",pastetext:"Paste only text",pasteformattext:"Paste 
formatted text",removeformat:"Clean format",undo:"Undo last action",redo:"Redo 
previous 
action",bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",superscript:"Superscript",subscript:"Subscript",justifyleft:"Align
 left",justifyright:"Ailgn right",justifycenter:"Align 
center",justifyfull:"Align full",indent:"Indent",outdent:"Outdent",rtl:"Right 
to left",ltr:"Left to right",forecolor:"Font color",hilitecolor:"Background 
color",formatb
 lock:"Format",fontsize:"Font size",fontname:"Font",insertorderedlist:"Ordered 
list",insertunorderedlist:"Unordered list",horizontalrule:"Horizontal 
rule",blockquote:"Blockquote",div:"Block e
 lement (DIV)",link:"Link",unlink:"Delete 
link",anchor:"Bookmark",image:"Image",pagebreak:"Page 
break",smiley:"Smiley",flash:"Flash",table:"Table",tablerm:"Delete 
table",tableprops:"Table properties",tbcellprops:"Table cell 
properties",tbrowbefore:"Insert row before",tbrowafter:"Insert row 
after",tbrowrm:"Delete row",tbcolbefore:"Insert column 
before",tbcolafter:"Insert column after",tbcolrm:"Delete 
column",tbcellsmerge:"Merge table cells",tbcellsplit:"Split table 
cell",docstructure:"Toggle display document structure",elfinder:"Open file 
manager",fullscreen:"Toggle full screen mode",nbsp:"Non breakable 
space",stopfloat:"Stop element floating",about:"About this 
software"},panels:{eol:[],save:["save"],copypaste:["copy","cut","paste","pastetext","pasteformattext","removeformat","docstructure"
],undoredo:["undo","redo"],style:["bold","italic","underline","strikethrough","subscript","superscript"],colors:["forecolor","hilitecolor"],alignment:["justifyleft","justifycenter","justifyr
ight","justifyfull"],indent:["outdent","indent"],format:["formatblock","fontsize","fontname"],lists:["insertorderedlist","insertunorderedlist"],elements:["horizontalrule","blockquote","div","stopfloat","css","nbsp","smiley","pagebreak"],direction:["ltr","rtl"],links:["link","unlink","anchor"],images:["image"],media:["image","flash"],tables:["table","tableprops","tablerm","tbrowbefore","tbrowafter","tbrowrm","tbcolbefore","tbcolafter","tbcolrm","tbcellprops","tbcellsmerge","tbcellsplit"],elfinder:["elfinder"],fullscreen:["fullscreen","about"]},toolbars:{tiny:["style"],compact:["save","undoredo","style","alignment","lists","links","fullscreen"],normal:["save","copypaste","undoredo","style","alignment","colors","indent","lists","links","elements","images","fullscreen"],complete:["save","copy
paste","undoredo","style","alignment","colors","format","indent","lists","links","elements","media","fullscreen"],maxi:["save","copypaste","undoredo","elfinder","style","alignment","directio
n","colors","format","indent","lists","links","elements","media","tables","fullscreen"],eldorado:["save","copypaste","elfinder","undoredo","style","alignment","colors","format","indent","lists","links","elements","media","tables","fullscreen"]},panelNames:{save:"Save",copypaste:"Copy/Pase",undoredo:"Undo/Redo",style:"Text
styles",colors:"Colors",alignment:"Alignment",indent:"Indent/Outdent",format:"Text
 format",lists:"Lists",elements:"Misc elements",direction:"Script 
direction",links:"Links",images:"Images",media:"Media",tables:"Tables",elfinder:"File
 manager (elFinder)"}}
+})(jQuery);(function(a){elRTE.prototype.selection=function(g){this.rte=g;var 
c=this;this.w3cRange=null;var 
o,b,j,k;a(this.rte.doc).keyup(function(p){if(p.ctrlKey||p.metaKey||(p.keyCode>=8&&p.keyCode<=13)||(p.keyCode>=32&&p.keyCode<=40)||p.keyCode==46||(p.keyCode>=96&&p.keyCode<=111)){c.cleanCache()}}).mousedown(function(p){if(p.target.nodeName=="HTML"){o=c.rte.doc.body}else{o=p.target}b=j=null}).mouseup(function(p){if(p.target.nodeName=="HTML"){b=c.rte.doc.body}else{b=p.target}b=p.target;j=null}).click();
+function h(){return 
c.rte.window.getSelection?c.rte.window.getSelection():c.rte.window.document.selection}function
f(t,r,q){while(t.nodeName!="BODY"&&t.parentNode&&t.parentNode.nodeName!="BODY"&&(r?t!==r&&t.parentNode!=r:1)&&((q=="left"&&c.rte.dom.isFirstNotEmpty(t))||(q=="right"&&c.rte.dom.isLastNotEmpty(t))||(c.rte.dom.isFirstNotEmpty(t)&&c.rte.dom.isLastNotEmpty(t)))){t=t.parentNode}return
 t}this.collapsed=function(){return 
this.getRangeAt().isCollapsed()};this.collapse=function(p){var 
q=h(),t=this.getRangeAt();
+t.collapse(p?true:false);if(!a.browser.msie){q.removeAllRanges();q.addRange(t)}return
this};this.getRangeAt=function(t){if(this.rte.browser.msie){if(!this.w3cRange){this.w3cRange=new
 this.rte.w3cRange(this.rte)}t&&this.w3cRange.update();return this.w3cRange}var 
p=h();var 
q=p.rangeCount>0?p.getRangeAt(0):this.rte.doc.createRange();q.getStart=function(){return
this.startContainer.nodeType==1?this.startContainer.childNodes[Math.min(this.startOffset,this.startContainer.childNodes.length-1)]:this.startContainer
+};q.getEnd=function(){return 
this.endContainer.nodeType==1?this.endContainer.childNodes[Math.min(this.startOffset==this.endOffset?this.endOffset:this.endOffset-1,this.endContainer.childNodes.length-1)]:this.endContainer};q.isCollapsed=function(){return
 this.collapsed};return 
q};this.saveIERange=function(){if(a.browser.msie){k=this.getRangeAt().getBookmark()}};this.restoreIERange=function(){a.browser.msie&&k&&this.getRangeAt().moveToBookmark(k)};this.cloneContents=function(){var
 v=this.rte.dom.create("div"),q,u,p;
+if(a.browser.msie){try{q=this.rte.window.document.selection.createRange()}catch(t){q=this.rte.doc.body.createTextRange()}a(v).html(q.htmlText)}else{u=this.getRangeAt().cloneContents();for(p=0;p<u.childNodes.length;p++){v.appendChild(u.childNodes[p].cloneNode(true))}}return
 v};this.select=function(t,w){w=w||t;if(this.rte.browser.msie){var 
u=this.rte.doc.body.createTextRange(),q=u.duplicate(),p=u.duplicate();q.moveToElementText(t);p.moveToElementText(w);u.setEndPoint("StartToStart",q);u.setEndPoint("EndToEnd",p);
+u.select()}else{var 
v=h(),u=this.getRangeAt();u.setStartBefore(t);u.setEndAfter(w);v.removeAllRanges();v.addRange(u)}return
 this.cleanCache()};this.selectContents=function(u){var 
q=this.getRangeAt();if(u&&u.nodeType==1){if(this.rte.browser.msie){q.range();q.r.moveToElementText(u.parentNode);q.r.select()}else{try{q.selectNodeContents(u)}catch(t){return
 this.rte.log("unable select node contents "+u)}var 
p=h();p.removeAllRanges();p.addRange(q)}}return 
this};this.deleteContents=function(){if(!a.browser.msie){this.getRangeAt().deleteContents()
+}return 
this};this.insertNode=function(v,u){if(u&&!this.collapsed()){this.collapse()}if(this.rte.browser.msie){var
p=v.nodeType==3?v.nodeValue:a(this.rte.dom.create("span")).append(a(v)).html();var
 t=this.getRangeAt();t.insertNode(p)}else{var 
t=this.getRangeAt();t.insertNode(v);t.setStartAfter(v);t.setEndAfter(v);var 
q=h();q.removeAllRanges();q.addRange(t)}return 
this.cleanCache()};this.insertHtml=function(p,q){if(q&&!this.collapsed()){this.collapse()}if(this.rte.browser.msie){this.getRangeAt().range().pasteHTML(p)
+}else{var 
r=a(this.rte.dom.create("span")).html(p||"").get(0);this.insertNode(r);a(r).replaceWith(a(r).html())}return
 this.cleanCache()};this.insertText=function(q,p){var 
r=this.rte.doc.createTextNode(q);return 
this.insertHtml(r.nodeValue)};this.getBookmark=function(){this.rte.window.focus();var
p,v,t,z,w,A=this.rte.dom.createBookmark(),x=this.rte.dom.createBookmark();if(a.browser.msie){try{p=this.rte.window.document.selection.createRange()}catch(x){p=this.rte.doc.body.createTextRange()}if(p.item){var
 u=p.item(0);
+p=this.rte.doc.body.createTextRange();p.moveToElementText(u)}v=p.duplicate();t=p.duplicate();z=this.rte.dom.create("span");w=this.rte.dom.create("span");z.appendChild(A);w.appendChild(x);v.collapse(true);v.pasteHTML(z.innerHTML);t.collapse(false);t.pasteHTML(w.innerHTML)}else{var
 q=h();var 
p=q.rangeCount>0?q.getRangeAt(0):this.rte.doc.createRange();v=p.cloneRange();t=p.cloneRange();t.collapse(false);t.insertNode(x);v.collapse(true);v.insertNode(A);this.select(A,x)}return[A.id,x.id]};this.moveToBookmark=function(p){this.rte.window.focus();
+if(p&&p.length==2){var 
q=this.rte.doc.getElementById(p[0]),v=this.rte.doc.getElementById(p[1]),u,t;if(q&&v){this.select(q,v);if(this.rte.dom.next(q)==v){this.collapse(true)}if(!a.browser.msie){u=h();t=u.rangeCount>0?u.getRangeAt(0):this.rte.doc.createRange();u.removeAllRanges();u.addRange(t)}q.parentNode.removeChild(q);v.parentNode.removeChild(v)}}return
this};this.removeBookmark=function(p){this.rte.window.focus();if(p.length==2){var
 q=this.rte.doc.getElementById(p[0]),r=this.rte.doc.getElementById(p[1]);
+if(q&&r){q.parentNode.removeChild(q);r.parentNode.removeChild(r)}}};this.cleanCache=function(){o=b=j=null;return
 this};this.getStart=function(){if(!o){var 
p=this.getRangeAt();o=p.getStart()}return o};this.getEnd=function(){if(!b){var 
p=this.getRangeAt();b=p.getEnd()}return 
b};this.getNode=function(){if(!j){j=this.rte.dom.findCommonAncestor(this.getStart(),this.getEnd())}return
 j};this.selected=function(r){var 
p={collapsed:false,blocks:false,filter:false,wrap:"text",tag:"span"};p=a.extend({},p,r);
+if(p.blocks){var 
v=this.getNode(),u=null;if(u=this.rte.dom.selfOrParent(v,"selectionBlock")){return[u]}}var
 t=this.selectedRaw(p.collapsed,p.blocks);var A=[];var w=[];var B=null;function 
q(){function D(){for(var 
F=0;F<w.length;F++){if(w[F].nodeType==1&&(c.rte.dom.selfOrParent(w[F],/^P$/)||a(w[F]).find("p").length>0)){return
 false}}return true}if(w.length>0){var C=p.tag=="p"&&!D()?"div":p.tag;var 
E=c.rte.dom.wrap(w,C);A[B]=E;B=null;w=[]}}function 
z(E){if(E.nodeType==1){if(/^(THEAD|TFOOT|TBODY|COL|COLGROUP|TR)$/.test(E.nodeName)){a(E).find("td,th").each(function(){var
 F=p.tag=="p"&&a(this).find("p").length>0?"div":p.tag;
+var G=c.rte.dom.wrapContents(this,F);return 
A.push(G)})}else{if(/^(CAPTION|TD|TH|LI|DT|DD)$/.test(E.nodeName)){var 
C=p.tag=="p"&&a(E).find("p").length>0?"div":p.tag;var 
E=c.rte.dom.wrapContents(E,C);return A.push(E)}}}var 
D=w.length>0?w[w.length-1]:null;if(D&&D!=c.rte.dom.prev(E)){q()}w.push(E);if(B===null){B=A.length;A.push("dummy")}}if(t.nodes.length>0){for(var
 x=0;x<t.nodes.length;x++){var 
v=t.nodes[x];if(v.nodeType==3&&(x==0||x==t.nodes.length-1)&&a.trim(v.nodeValue).length>0){if(x==0&&t.so>0){v=v.splitText(t.so)
+}if(x==t.nodes.length-1&&t.eo>0){v.splitText(x==0&&t.so>0?t.eo-t.so:t.eo)}}switch(p.wrap){case"text":if((v.nodeType==1&&v.nodeName=="BR")||(v.nodeType==3&&a.trim(v.nodeValue).length>0)){z(v)}else{if(v.nodeType==1){A.push(v)}}break;case"inline":if(this.rte.dom.isInline(v)){z(v)}else{if(v.nodeType==1){A.push(v)}}break;case"all":if(v.nodeType==1||!this.rte.dom.isEmpty(v)){z(v)}break;default:if(v.nodeType==1||!this.rte.dom.isEmpty(v)){A.push(v)}}}q()}if(A.length){this.rte.window.focus();this.select(A[0],A[A.length-1])
+}return 
p.filter?this.rte.dom.filter(A,p.filter):A};this.dump=function(p,t,w,v,q){var 
u=this.getRangeAt();this.rte.log("commonAncestorContainer");this.rte.log(p||u.commonAncestorContainer);this.rte.log("startContainer");this.rte.log(t||u.startContainer);this.rte.log("startOffset:
"+(v>=0?v:u.startOffset));this.rte.log("endContainer");this.rte.log(w||u.endContainer);this.rte.log("endOffset:
 "+(q>=0?q:u.endOffset))};this.selectedRaw=function(z,p){var 
F={so:null,eo:null,nodes:[]};var q=this.getRangeAt(true);
+var w=q.commonAncestorContainer;var H,E;var D=false;var B=false;function 
C(J,r,I){if(J.nodeType==3){I=I>=0?I:J.nodeValue.length;return(r==0&&I==J.nodeValue.length)||a.trim(J.nodeValue).length==a.trim(J.nodeValue.substring(r,I)).length}return
 true}function x(J,r,I){if(J.nodeType==1){return 
c.rte.dom.isEmpty(J)}else{if(J.nodeType==3){return 
a.trim(J.nodeValue.substring(r||0,I>=0?I:J.nodeValue.length)).length==0}}return 
true}if(q.startContainer.nodeType==1){if(q.startOffset<q.startContainer.childNodes.length){H=q.startContainer.childNodes[q.startOffset];
+F.so=H.nodeType==1?null:0}else{H=q.startContainer.childNodes[q.startOffset-1];F.so=H.nodeType==1?null:H.nodeValue.length}}else{H=q.startContainer;F.so=q.startOffset}if(q.collapsed){if(z){if(p){H=f(H);if(!this.rte.dom.isEmpty(H)||(H=this.rte.dom.next(H))){F.nodes=[H]}if(this.rte.dom.isInline(H)){F.nodes=this.rte.dom.toLineStart(H).concat(F.nodes,this.rte.dom.toLineEnd(H))}if(F.nodes.length>0){F.so=F.nodes[0].nodeType==1?null:0;F.eo=F.nodes[F.nodes.length-1].nodeType==1?null:F.nodes[F.nodes.length-1].nodeValue.length
+}}else{if(!this.rte.dom.isEmpty(H)){F.nodes=[H]}}}return 
F}if(q.endContainer.nodeType==1){E=q.endContainer.childNodes[q.endOffset-1];F.eo=E.nodeType==1?null:E.nodeValue.length}else{E=q.endContainer;F.eo=q.endOffset}if(H.nodeType==1||p||C(H,F.so,H.nodeValue.length)){H=f(H,w,"left");D=true;F.so=H.nodeType==1?null:0}if(E.nodeType==1||p||C(E,0,F.eo)){E=f(E,w,"right");B=true;F.eo=E.nodeType==1?null:E.nodeValue.length}if(p){if(H.nodeType!=1&&H.parentNode!=w&&H.parentNode.nodeName!="BODY"){H=H.parentNode;
+F.so=null}if(E.nodeType!=1&&E.parentNode!=w&&E.parentNode.nodeName!="BODY"){E=E.parentNode;F.eo=null}}if(H.parentNode==E.parentNode&&H.parentNode.nodeName!="BODY"&&(D&&this.rte.dom.isFirstNotEmpty(H))&&(B&&this.rte.dom.isLastNotEmpty(E))){H=E=H.parentNode;F.so=H.nodeType==1?null:0;F.eo=E.nodeType==1?null:E.nodeValue.length}if(H==E){if(!this.rte.dom.isEmpty(H)){F.nodes.push(H)}return
 F}var 
t=H;while(t.nodeName!="BODY"&&t.parentNode!==w&&t.parentNode.nodeName!="BODY"){t=t.parentNode}var
G=E;while(G.nodeName!="BODY"&&G.parentNode!==w&&G.parentNode.nodeName!="BODY"){G=G.parentNode
+}if(!x(H,F.so,H.nodeType==3?H.nodeValue.length:null)){F.nodes.push(H)}var 
v=H;while(v!==t){var 
u=v;while((u=this.rte.dom.next(u))){F.nodes.push(u)}v=v.parentNode}v=t;while((v=this.rte.dom.next(v))&&v!=G){F.nodes.push(v)}var
 A=[];v=E;while(v!==G){var 
u=v;while((u=this.rte.dom.prev(u))){A.push(u)}v=v.parentNode}if(A.length){F.nodes=F.nodes.concat(A.reverse())}if(!x(E,0,E.nodeType==3?F.eo:null)){F.nodes.push(E)}if(p){if(this.rte.dom.isInline(H)){F.nodes=this.rte.dom.toLineStart(H).concat(F.nodes);F.so=F.nodes[0].nodeType==1?null:0
+}if(this.rte.dom.isInline(E)){F.nodes=F.nodes.concat(this.rte.dom.toLineEnd(E));F.eo=F.nodes[F.nodes.length-1].nodeType==1?null:F.nodes[F.nodes.length-1].nodeValue.length}}return
F}}})(jQuery);(function(a){elRTE.prototype.ui=function(f){this.rte=f;this._buttons=[];var
v=this,o=this.rte.options.toolbars[f.options.toolbar&&f.options.toolbars[f.options.toolbar]?f.options.toolbar:"normal"],r=o.length,g,k,j,h,t,u,q;for(q
 in 
this.buttons){if(this.buttons.hasOwnProperty(q)&&q!="button"){this.buttons[q].prototype=this.buttons.button.prototype
+}}while(r--){first=(r==0?true:false);if(o[r-1]=="eol"){first=true}k=o[r];if(k=="eol"){a(this.rte.doc.createElement("br")).prependTo(this.rte.toolbar);continue}g=a('<ul
 class="panel-'+k+(first?" first":"")+'" 
/>').prependTo(this.rte.toolbar);g.bind("mousedown",function(b){b.preventDefault()});j=this.rte.options.panels[k].length;while(j--){h=this.rte.options.panels[k][j];t=this.buttons[h]||this.buttons.button;this._buttons.push((u=new
t(this.rte,h)));g.prepend(u.domElem)}}this.update();this.disable=function(){a.each(v._buttons,function(){!this.active&&this.domElem.addClass("disabled")
+})}};elRTE.prototype.ui.prototype.update=function(h){h&&this.rte.selection.cleanCache();var
f=this.rte.selection.getNode(),c=this.rte.dom.parents(f,"*"),j=this.rte.rtl,q=j?"
 « ":" » ",o="",b,g;function k(r){var 
p=r.nodeName.toLowerCase();r=a(r);if(p=="img"){if(r.hasClass("elrte-media")){p="media"}else{if(r.hasClass("elrte-google-maps")){p="google
 map"}else{if(r.hasClass("elrte-yandex-maps")){p="yandex 
map"}else{if(r.hasClass("elrte-pagebreak")){p="pagebreak"}}}}}return 
p}if(f&&f.nodeType==1&&f.nodeName!="BODY"){c.unshift(f)
+}if(!j){c=c.reverse()}for(g=0;g<c.length;g++){o+=(g>0?q:"")+k(c[g])}this.rte.statusbar.html(o);a.each(this._buttons,function(){this.update()});this.rte.window.focus()};elRTE.prototype.ui.prototype.buttons={button:function(f,c){var
b=this;this.rte=f;this.active=false;this.name=c;this.val=null;this.domElem=a('<li
 style="-moz-user-select:-moz-none" class="'+c+' rounded-3" name="'+c+'" 
title="'+this.rte.i18n(this.rte.options.buttons[c]||c)+'" unselectable="on" 
/>').hover(function(){a(this).addClass("hover")
+},function(){a(this).removeClass("hover")}).click(function(g){g.stopPropagation();g.preventDefault();if(!a(this).hasClass("disabled")){b.command()}b.rte.window.focus()})}};elRTE.prototype.ui.prototype.buttons.button.prototype.command=function(){this.rte.history.add();try{this.rte.doc.execCommand(this.name,false,this.val)}catch(b){return
 this.rte.log("commands failed: 
"+this.name)}this.rte.ui.update(true)};elRTE.prototype.ui.prototype.buttons.button.prototype.update=function(){try{if(!this.rte.doc.queryCommandEnabled(this.name)){return
 this.domElem.addClass("disabled")
+}else{this.domElem.removeClass("disabled")}}catch(b){return}try{if(this.rte.doc.queryCommandState(this.name)){this.domElem.addClass("active")}else{this.domElem.removeClass("active")}}catch(b){}}})(jQuery);(function(a){elRTE.prototype.utils=function(c){this.rte=c;this.url=null;this.reg=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)[email protected])?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;this.baseURL="";this.path="";
+this.entities={"&":"&",'"':""","<":"<",">":">"};this.entitiesRegExp=/[<>&\"]/g;this.media=[{type:"application/x-shockwave-flash",classid:["clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"],codebase:"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"},{type:"application/x-director",classid:["clsid:166b1bca-3f9c-11cf-8075-444553540000"],codebase:"http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0"},{type:"application/x-mplayer2",classid:["clsid:6bf52a52-394a-11d3-b153-00c04f79faa6","clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95","clsid:05589fa1-c356-11ce-bf01-00aa0055595a"],codebase:"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"},{type:"video/quicktime",classid:["clsid:02bf25
d5-8c17-4b23-bc80-d3488abddc6b"],codebase:"http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"},{type:"audio/x-pn-realaudio-plugin",classid:["clsid:cfcdaa03-8be4-11cf-b84b-0020afbbc
cfa"],codebase:"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"}];
+this.rgbRegExp=/\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*/i;this.colorsRegExp=/aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|rgb\s*\([^\)]+\)/i;this.colors={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",orange:"#ffa500",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#fffffff",yellow:"#ffff00"};
+var b=this;this.rgb2hex=function(f){return 
this.color2Hex(""+f)};this.toPixels=function(g){var 
f=g.match(/([0-9]+\.?[0-9]*)\s*(px|pt|em|%)/);if(f){g=f[1];unit=f[2]}if(g[0]=="."){g="0"+g}g=parseFloat(g);if(isNaN(g)){return""}var
 h=parseInt(a(document.body).css("font-size"))||16;switch(unit){case"em":return 
parseInt(g*h);case"pt":return parseInt(g*h/12);case"%":return 
parseInt(g*h/100)}return 
g};this.absoluteURL=function(g){!this.url&&this._url();g=a.trim(g);if(!g){return""}if(g[0]=="#"){return
 g}var f=this.parseURL(g);
+if(!f.host&&!f.path&&!f.anchor){return""}if(!this.rte.options.absoluteURLs){return
 g}if(f.protocol){return 
g}if(f.host&&(f.host.indexOf(".")!=-1||f.host=="localhost")){return 
this.url.protocol+"://"+g}if(g[0]=="/"){g=this.baseURL+g}else{if(g.indexOf("./")==0){g=g.substring(2)}g=this.baseURL+this.path+g}return
 g};this.parseURL=function(h){var g=h.match(this.reg);var 
f={};a.each(["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],function(j){f[this]=g[j]
+});if(!f.host.match(/[a-z0-9]/i)){f.host=""}return 
f};this.trimEventCallback=function(f){f=f?f.toString():"";return 
a.trim(f.replace(/\r*\n/mg,"").replace(/^function\s*on[a-z]+\s*\(\s*event\s*\)\s*\{(.+)\}$/igm,"$1"))};this._url=function(){this.url=this.parseURL(window.location.href);this.baseURL=this.url.protocol+"://"+(this.url.userInfo?parts.userInfo+"@":"")+this.url.host+(this.url.port?":"+this.url.port:"");this.path=!this.url.file?this.url.path:this.url.path.substring(0,this.url.path.length-this.url.file.length)
+};this.makeObject=function(g){var f={};a.each(g,function(h,j){f[j]=j});return 
f};this.encode=function(f){var 
g=this.entities;return(""+f).replace(this.entitiesRegExp,function(h){return 
g[h]})};this.decode=function(f){return 
a("<div/>").html(f||"").text()};this.parseStyle=function(k){var 
h={},f=this.rte.options.allowBrowsersSpecStyles,j,q,g,o;if(typeof(k)=="string"&&k.length){a.each(k.replace(/"/gi,"'").split(";"),function(p,r){if((o=r.indexOf(":"))!==-1){q=a.trim(r.substr(0,o));g=a.trim(r.substr(o+1));
+if(q=="color"||q=="background-color"){g=g.toLowerCase()}if(q&&g&&(f||q.substring(0,1)!="-")){h[q]=g}}})}return
 h};this.compactStyle=function(g){var f=this;if(g.border=="medium none"){delete 
g.border}a.each(g,function(j,h){if(/color$/i.test(j)){g[j]=f.color2Hex(h)}else{if(/^(border|background)$/i.test(j)){g[j]=h.replace(f.colorsRegExp,function(k){return
 f.color2Hex(k)})}}});if(g["border-width"]){g.border=g["border-width"]+" 
"+(g["border-style"]||"solid")+" "+(g["border-color"]||"#000");delete 
g["border-width"];
+delete g["border-style"];delete 
g["border-color"]}if(g["background-image"]){g.background=(g["background-color"]+"
 ")||""+g["background-image"]+" "+g["background-position"]||"0 0 
"+g["background-repeat"]||"repeat";delete g["background-image"];delete 
["background-image"];delete ["background-position"];delete 
["background-repeat"]}if(g["margin-top"]&&g["margin-right"]&&g["margin-bottom"]&&g["margin-left"]){g.margin=g["margin-top"]+"
 "+g["margin-right"]+" "+g["margin-bottom"]+" "+g["margin-left"];delete 
g["margin-top"];
+delete g["margin-right"];delete g["margin-bottom"];delete 
g["margin-left"]}if(g["padding-top"]&&g["padding-right"]&&g["padding-bottom"]&&g["padding-left"]){g.padding=g["padding-top"]+"
 "+g["padding-right"]+" "+g["padding-bottom"]+" "+g["padding-left"];delete 
g["padding-top"];delete g["padding-right"];delete g["padding-bottom"];delete 
g["padding-left"]}if(g["list-style-type"]||g["list-style-position"]||g["list-style-image"]){g["list-style"]=a.trim(g["list-style-type"]||"
 "+g["list-style-position"]||""+g["list-style-image"]||"");
+delete g["list-style-type"];delete g["list-style-position"];delete 
g["list-style-image"]}return g};this.serializeStyle=function(g,h){var 
f=[];a.each(h?this.compactStyle(g):g,function(k,j){j&&f.push(k+":"+j)});return 
f.join(";")};this.parseClass=function(f){f=a.trim(f);return 
f.length?this.makeObject(f.split(/\s+/)):{};return 
f.length?f.split(/\s+/):[]};this.serializeClass=function(h){var g=[];var 
f=this.rte;a.each(h,function(j){g.push(j)});return g.join(" 
")};this.mediaInfo=function(g,h){var f=this.media.length;
+while(f--){if(g===this.media[f].type||(h&&a.inArray(h,this.media[f].classid)!=-1)){return
 this.media[f]}}};this.color2Hex=function(h){var 
f;h=h||"";if(h.indexOf("#")===0){return h}function 
g(j){j=parseInt(j).toString(16);return 
j.length>1?j:"0"+j}if(this.colors[h]){return 
this.colors[h]}if((f=h.match(this.rgbRegExp))){return"#"+g(f[1])+g(f[2])+g(f[3])}return""}}})(jQuery);(function(a){elRTE.prototype.w3cRange=function(c){var
 b=this;this.rte=c;this.r=null;this.collapsed=true;this.startContainer=null;
+this.endContainer=null;this.startOffset=0;this.endOffset=0;this.commonAncestorContainer=null;this.range=function(){try{this.r=this.rte.window.document.selection.createRange()}catch(f){this.r=this.rte.doc.body.createTextRange()}return
 this.r};this.insertNode=function(f){this.range();b.r.collapse(false);var 
g=b.r.duplicate();g.pasteHTML(f)};this.getBookmark=function(){this.range();if(this.r.item){var
f=this.r.item(0);this.r=this.rte.doc.body.createTextRange();this.r.moveToElementText(f)}return
 this.r.getBookmark()
+};this.moveToBookmark=function(f){this.rte.window.focus();this.range().moveToBookmark(f);this.r.select()};this.update=function(){function
 h(x){var k="\uFEFF";var o=offset=0;var t=b.r.duplicate();t.collapse(x);var 
u=t.parentElement();if(!u||u.nodeName=="HTML"){return{parent:b.rte.doc.body,ndx:o,offset:offset}}t.pasteHTML(k);childs=u.childNodes;for(var
 q=0;q<childs.length;q++){var 
w=childs[q];if(q>0&&(w.nodeType!==3||childs[q-1].nodeType!==3)){o++}if(w.nodeType!==3){offset=0}else{var
 v=w.nodeValue.indexOf(k);
+if(v!==-1){offset+=v;break}offset+=w.nodeValue.length}}t.moveStart("character",-1);t.text="";return{parent:u,ndx:Math.min(o,u.childNodes.length-1),offset:offset}}this.range();this.startContainer=this.endContainer=null;if(this.r.item){this.collapsed=false;var
g=this.r.item(0);this.setStart(g.parentNode,this.rte.dom.indexOf(g));this.setEnd(g.parentNode,this.startOffset+1)}else{this.collapsed=this.r.boundingWidth==0;var
 j=h(true);var 
f=h(false);j.parent.normalize();f.parent.normalize();j.ndx=Math.min(j.ndx,j.parent.childNodes.length-1);
+f.ndx=Math.min(f.ndx,f.parent.childNodes.length-1);if(j.parent.childNodes[j.ndx].nodeType&&j.parent.childNodes[j.ndx].nodeType==1){this.setStart(j.parent,j.ndx)}else{this.setStart(j.parent.childNodes[j.ndx],j.offset)}if(f.parent.childNodes[f.ndx].nodeType&&f.parent.childNodes[f.ndx].nodeType==1){this.setEnd(f.parent,f.ndx)}else{this.setEnd(f.parent.childNodes[f.ndx],f.offset)}this.select()}return
this};this.isCollapsed=function(){this.range();this.collapsed=this.r.item?false:this.r.boundingWidth==0;
+return 
this.collapsed};this.collapse=function(f){this.range();if(this.r.item){var 
g=this.r.item(0);this.r=this.rte.doc.body.createTextRange();this.r.moveToElementText(g)}this.r.collapse(f);this.r.select();this.collapsed=true};this.getStart=function(){this.range();if(this.r.item){return
 this.r.item(0)}var g=this.r.duplicate();g.collapse(true);var 
f=g.parentElement();return 
f&&f.nodeName=="BODY"?f.firstChild:f};this.getEnd=function(){this.range();if(this.r.item){return
 this.r.item(0)}var f=this.r.duplicate();
+f.collapse(false);var g=f.parentElement();return 
g&&g.nodeName=="BODY"?g.lastChild:g};this.setStart=function(f,g){this.startContainer=f;this.startOffset=g;if(this.endContainer){this.commonAncestorContainer=this.rte.dom.findCommonAncestor(this.startContainer,this.endContainer)}};this.setEnd=function(f,g){this.endContainer=f;this.endOffset=g;if(this.startContainer){this.commonAncestorContainer=this.rte.dom.findCommonAncestor(this.startContainer,this.endContainer)}};this.setStartBefore=function(f){if(f.parentNode){this.setStart(f.parentNode,this.rte.dom.indexOf(f))
+}};this.setStartAfter=function(f){if(f.parentNode){this.setStart(f.parentNode,this.rte.dom.indexOf(f)+1)}};this.setEndBefore=function(f){if(f.parentNode){this.setEnd(f.parentNode,this.rte.dom.indexOf(f))}};this.setEndAfter=function(f){if(f.parentNode){this.setEnd(f.parentNode,this.rte.dom.indexOf(f)+1)}};this.select=function(){function
 o(B,z){if(B.nodeType!=3){return -1}var A="\uFEFF";var x=B.nodeValue;var 
v=b.rte.doc.body.createTextRange();B.nodeValue=x.substring(0,z)+A+x.substring(z);v.moveToElementText(B.parentNode);
+v.findText(A);var 
w=Math.abs(v.moveStart("character",-1048575));B.nodeValue=x;return 
w}this.r=this.rte.doc.body.createTextRange();var k=this.startOffset;var 
g=this.endOffset;var 
u=this.startContainer.nodeType==1?this.startContainer.childNodes[Math.min(k,this.startContainer.childNodes.length-1)]:this.startContainer;var
q=this.endContainer.nodeType==1?this.endContainer.childNodes[Math.min(k==g?g:g-1,this.endContainer.childNodes.length-1)]:this.endContainer;if(this.collapsed){if(u.nodeType==3){var
 h=o(u,k);
+this.r.move("character",h)}else{this.r.moveToElementText(u);this.r.collapse(true)}}else{var
 f=this.rte.doc.body.createTextRange();var j=o(u,k);var 
t=o(q,g);if(u.nodeType==3){this.r.move("character",j)}else{this.r.moveToElementText(u)}if(q.nodeType==3){f.move("character",t)}else{f.moveToElementText(q)}this.r.setEndPoint("EndToEnd",f)}try{this.r.select()}catch(q){}if(f){f=null}};this.dump=function(){this.rte.log("collapsed:
 "+this.collapsed);this.rte.log("startContainer: 
"+(this.startContainer?this.startContainer.nodeName:"non"));
+this.rte.log("startOffset: "+this.startOffset);this.rte.log("endContainer: 
"+(this.endContainer?this.endContainer.nodeName:"none"));this.rte.log("endOffset:
"+this.endOffset)}}})(jQuery);(function(a){elRTE.prototype.ui.prototype.buttons.about=function(c,b){this.constructor.prototype.constructor.call(this,c,b);this.active=true;this.command=function(){var
g,h,f;g={rtl:c.rtl,submit:function(j,k){k.close()},dialog:{width:560,title:this.rte.i18n("About
 this software"),buttons:{Ok:function(){a(this).dialog("destroy")
+}}}};f='<div class="elrte-logo"></div><h3>'+this.rte.i18n("About 
elRTE")+'</h3><br clear="all"/><div 
class="elrte-ver">'+this.rte.i18n("Version")+": "+this.rte.version+" 
("+this.rte.build+')</div><div class="elrte-ver">jQuery: 
'+a("<div/>").jquery+'</div><div class="elrte-ver">jQueryUI: 
'+a.ui.version+'</div><div class="elrte-ver">'+this.rte.i18n("Licence")+": BSD 
Licence</div><p>"+this.rte.i18n("elRTE is an open-source JavaScript based 
WYSIWYG HTML-editor.")+"<br/>"+this.rte.i18n("Main goal of the editor - 
simplify work with text and formating (HTML) on sites, blogs, forums and other 
online services.")+"<br/>"+this.rte.i18n("You can use it in any commercial or 
non-commercial projects.")+"</p><h4>"+this.rte.i18n("Authors")+'</h4><table 
class="elrte-authors"><tr><td>Dmitry (dio) Levashov &
 lt;dio-WiWz2V/[email protected]></td><td>'+this.rte.i18n("Chief 
developer")+"</td></tr><tr><td>Troex Nevelin 
<troex-IUbFlMCVN/[email protected]></td><td>"+this.rte.i18n("Developer,
 tech support")+"</td></tr><
 tr><td>Valentin Razumnyh 
<content-WiWz2V/[email protected]></td><td>"+this.rte.i18n("Interface 
designer")+"</td></tr><tr><td>Tawfek Daghistani 
<[email protected]></td><td>"+this.rte.i18n("RTL
support")+"</td></tr>"+(this.rte.options.lang!="en"?"<tr><td>"+this.rte.i18n("_translator")+"</td><td>"+this.rte.i18n("_translation")+"</td></tr>":"")+'</table><div
 class="elrte-copy">Copyright © 2009-2011, <a 
href="http://www.std42.ru";>Studio 42</a></div><div 
class="elrte-copy">'+this.rte.i18n("For more information about this software 
visit the")+' <a href="http://elrte.org";>'+this.rte.i18n("elRTE 
website")+'.</a></div><div class="elrte-copy">Twitter: <a 
href="http://twitter.com/elrte_elfinder";>elrte_elfinder</a></div>';
+h=new 
elDialogForm(g);h.append(f);h.open()};this.update=function(){this.domElem.removeClass("disabled")}}})(jQuery);(function(a){elRTE.prototype.ui.prototype.buttons.anchor=function(f,c){this.constructor.prototype.constructor.call(this,f,c);this.input=a('<input
 type="text" />').attr("name","anchor").attr("size","16");var 
b=this;this.command=function(){var 
g={rtl:this.rte.rtl,submit:function(j,k){j.stopPropagation();j.preventDefault();k.close();b.set()},dialog:{title:this.rte.i18n("Bookmark")}};this.anchor=this.rte.dom.selfOrParentAnchor(this.rte.selection.getEnd())||f.dom.create("a");
+!this.rte.selection.collapsed()&&this.rte.selection.collapse(false);this.input.val(a(this.anchor).addClass("elrte-anchor").attr("name"));this.rte.selection.saveIERange();var
 h=new elDialogForm(g);h.append([this.rte.i18n("Bookmark 
name"),this.input],null,true).open();setTimeout(function(){b.input.focus()},20)};this.update=function(){var
g=this.rte.selection.getNode();if(this.rte.dom.selfOrParentLink(g)){this.domElem.addClass("disabled")}else{if(this.rte.dom.selfOrParentAnchor(g)){this.domElem.removeClass("disabled").addClass("active")
+}else{this.domElem.removeClass("disabled").removeClass("active")}}};this.set=function(){var
g=a.trim(this.input.val());if(g){this.rte.history.add();if(!this.anchor.parentNode){this.rte.selection.insertHtml('<a
 name="'+g+'" title="'+this.rte.i18n("Bookmark")+": "+g+'" 
class="elrte-anchor"></a>')}else{this.anchor.name=g;this.anchor.title=this.rte.i18n("Bookmark")+":
"+g}}else{if(this.anchor.parentNode){this.rte.history.add();this.anchor.parentNode.removeChild(this.anchor)}}}}})(jQuery);(function(a){elRTE.prototype.ui.prototype.buttons.blockquote=function(c,b){this.constructor.prototype.constructor.call(this,c,b);
+this.command=function(){var 
g,f;this.rte.history.add();if(this.rte.selection.collapsed()&&(g=this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^BLOCKQUOTE$/))){a(g).replaceWith(a(g).html())}else{f=this.rte.selection.selected({wrap:"all",tag:"blockquote"});f.length&&this.rte.selection.select(f[0],f[f.length-1])}this.rte.ui.update(true)};this.update=function(){if(this.rte.selection.collapsed()){if(this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^BLOCKQUOTE$/)){this.domElem.removeClass("disabled").addClass("active")
+}else{this.domElem.addClass("disabled").removeClass("active")}}else{this.domElem.removeClass("disabled
active")}}}})(jQuery);(function(a){elRTE.prototype.ui.prototype.buttons.copy=function(c,b){this.constructor.prototype.constructor.call(this,c,b);this.command=function(){if(this.rte.browser.mozilla){try{this.rte.doc.execCommand(this.name,false,null)}catch(h){var
 f=" Ctl + C";if(this.name=="cut"){f=" Ctl + X"}else{if(this.name=="paste"){f=" 
Ctl + V"}}var 
g={dialog:{title:this.rte.i18n("Warning"),buttons:{Ok:function(){a(this).dialog("close")
+}}}};var j=new elDialogForm(g);j.append(this.rte.i18n("This operation is 
disabled in your browser on security reason. Use shortcut instead.")+": 
"+f).open()}}else{this.constructor.prototype.command.call(this)}}};elRTE.prototype.ui.prototype.buttons.cut=elRTE.prototype.ui.prototype.buttons.copy;elRTE.prototype.ui.prototype.buttons.paste=elRTE.prototype.ui.prototype.buttons.copy})(jQuery);(function(a){elRTE.prototype.ui.prototype.buttons.css=function(f,c){var
 b=this;this.constructor.prototype.constructor.call(this,f,c);
+this.cssStyle=a('<input type="text" size="42" name="style" 
/>');this.cssClass=a('<input type="text" size="42" name="class" 
/>');this.elementID=a('<input type="text" size="42" name="id" 
/>');this.command=function(){var 
j=this.node(),g;this.rte.selection.saveIERange();if(j){var 
g={submit:function(k,o){k.stopPropagation();k.preventDefault();o.close();b.set()},dialog:{title:this.rte.i18n("Style"),width:450,resizable:true,modal:true}};this.cssStyle.val(a(j).attr("style"));this.cssClass.val(a(j).attr("class"));
+this.elementID.val(a(j).attr("id"));var h=new 
elDialogForm(g);h.append([this.rte.i18n("Css 
style"),this.cssStyle],null,true);h.append([this.rte.i18n("Css 
class"),this.cssClass],null,true);h.append([this.rte.i18n("ID"),this.elementID],null,true);h.open();setTimeout(function(){b.cssStyle.focus()},20)}};this.set=function(){var
g=this.node();this.rte.selection.restoreIERange();if(g){a(g).attr("style",this.cssStyle.val());a(g).attr("class",this.cssClass.val());a(g).attr("id",this.elementID.val());this.rte.ui.update()
+}};this.node=function(){var 
g=this.rte.selection.getNode();if(g.nodeType==3){g=g.parentNode}return 
g.nodeType==1&&g.nodeName!="BODY"?g:null};this.update=function(){this.domElem.toggleClass("disabled",this.node()?false:true)}}})(jQuery);(function(a){elRTE.prototype.ui.prototype.buttons.rtl=function(f,c){this.constructor.prototype.constructor.call(this,f,c);var
 b=this;this.command=function(){var 
h=this.rte.selection.getNode(),g=this;if(a(h).attr("dir")=="rtl"||a(h).parents('[dir="rtl"]').length||a(h).find('[dir="rtl"]').length){a(h).removeAttr("dir");
+a(h).parents('[dir="rtl"]').removeAttr("dir");a(h).find('[dir="rtl"]').removeAttr("dir")}else{if(this.rte.dom.is(h,"textNodes")&&this.rte.dom.is(h,"block")){a(h).attr("dir","rtl")}else{a.each(this.rte.dom.parents(h,"textNodes"),function(j,k){if(g.rte.dom.is(k,"block")){a(k).attr("dir","rtl");return
 false}})}}this.rte.ui.update()};this.update=function(){var 
g=this.rte.selection.getNode();this.domElem.removeClass("disabled");if(a(g).attr("dir")=="rtl"||a(g).parents('[dir="rtl"]').length||a(g).find('[dir="rtl"]').length){this.domElem.addClass("active")
+}else{this.domElem.removeClass("active")}}};elRTE.prototype.ui.prototype.buttons.ltr=function(f,c){this.constructor.prototype.constructor.call(this,f,c);var
 b=this;this.command=function(){var 
h=this.rte.selection.getNode(),g=this;if(a(h).attr("dir")=="ltr"||a(h).parents('[dir="ltr"]').length||a(h).find('[dir="ltr"]').length){a(h).removeAttr("dir");a(h).parents('[dir="ltr"]').removeAttr("dir");a(h).find('[dir="ltr"]').removeAttr("dir")}else{if(this.rte.dom.is(h,"textNodes")&&this.rte.dom.is(h,"block")){a(h).attr("dir","ltr")
+}else{a.each(this.rte.dom.parents(h,"textNodes"),function(j,k){if(g.rte.dom.is(k,"block")){a(k).attr("dir","ltr");return
 false}})}}this.rte.ui.update()};this.update=function(){var 
g=this.rte.selection.getNode();this.domElem.removeClass("disabled");if(a(g).attr("dir")=="ltr"||a(g).parents('[dir="ltr"]').length||a(g).find('[dir="ltr"]').length){this.domElem.addClass("active")}else{this.domElem.removeClass("active")}}}})(jQuery);(function(a){elRTE.prototype.ui.prototype.buttons.div=function(c,b){this.constructor.prototype.constructor.call(this,c,b);
+this.command=function(){var 
g,f;this.rte.history.add();if(this.rte.selection.collapsed()){g=this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^DIV$/);if(g){a(g).replaceWith(a(g).html())}}else{f=this.rte.selection.selected({wrap:"all",tag:"div"});f.length&&this.rte.selection.select(f[0],f[f.length-1])}this.rte.ui.update(true)};this.update=function(){if(this.rte.selection.collapsed()){if(this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^DIV$/)){this.domElem.removeClass("disabled").addClass("active")
[... 121 lines stripped ...]
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
  • svn commit: r1178141 [5/19] - in /ofbiz/trunk: applications/content/webapp/content/website/ framework/images/webapp/images/jquery/ framework/images/webapp/images/jquery/plugins/elrte-1.3/ framework/images/webapp/images/jquery/plugins/elrte-1.3/css/ fra...,
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy