/*!
 * jQuery JavaScript Library v1.6.4
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Mon Sep 12 18:54:48 2011 -0400
 */
function eli18n(a){this.textdomain=function(a){return this.messages[a]?this._domain=a:this._domain},a&&a.messages&&this.load(a.messages),a&&a.textdomain&&this.textdomain(a.textdomain)}function elDialogForm(a){var b=this,c={"class":"el-dialogform",submit:function(a,b){b.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:!1,modal:!0,resizable:!1,closeOnEscape:!0,buttons:{Cancel:function(){b.close()},Ok:function(){b.form.trigger("submit")}}}};this.opts=jQuery.extend(!0,{},c,a),this.opts.dialog.close=function(){b.close()},this.opts.rtl&&(this.opts["class"]+=" el-dialogform-rtl"),a&&a.dialog&&a.dialog.buttons&&typeof a.dialog.buttons=="object"&&(this.opts.dialog.buttons=a.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),this.opts.submit&&this.form.bind("submit",function(a){b.opts.submit(a,b)}),this.opts.ajaxForm&&jQuery.fn.ajaxForm&&this.form.ajaxForm(this.opts.ajaxForm),this.opts.validate&&this.form.validate(this.opts.validate),this.option=function(a,b){return this.dialog.dialog("option",a,b)},this.showError=function(a,b){return this.hideMessage(),this.hideSpinner(),this.error.html(a).show(),b&&this.content.hide(),this},this.hideError=function(){return this.error.text("").hide(),this.content.show(),this},this.showSpinner=function(a){return this.error.hide(),this.message.hide(),this.content.hide(),this.spinner.text(a||this.opts.spinner).show(),this.option("buttons",{}),this},this.hideSpinner=function(){return this.content.show(),this.spinner.hide(),this},this.showMessage=function(a,b){return this.hideError(),this.hideSpinner(),this.message.html(a||"").show(),b&&this.content.hide(),this},this.hideMessage=function(){return this.message.hide(),this.content.show(),this},this.tab=function(a,b){return a=this.opts.tabPrefix+a,this.ul||(this.ul=jQuery("<ul />").prependTo(this.form)),jQuery("<li />").append(jQuery("<a />").attr("href","#"+a).html(b)).appendTo(this.ul),this.tabs[a]={tab:jQuery("<div />").attr("id",a).addClass("tab").appendTo(this.form),table:null},this},this.table=function(a){return a=a&&a.indexOf(this.opts.tabPrefix)==-1?this.opts.tabPrefix+a:a,a&&this.tabs&&this.tabs[a]?this.tabs[a].table=jQuery("<table />").appendTo(this.tabs[a].tab):this._table=jQuery("<table />").appendTo(this.form),this},this.append=function(a,b,c){b=b?"el-df-tab-"+b:"";if(!a)return this;if(b&&this.tabs[b])if(c){!this.tabs[b].table&&this.table(b);var d=jQuery("<tr />").appendTo(this.tabs[b].table);if(!jQuery.isArray(a))d.append(jQuery("<td />").append(a));else for(var e=0;e<a.length;e++)d.append(jQuery("<td />").append(a[e]))}else if(!jQuery.isArray(a))this.tabs[b].tab.append(a);else for(var e=0;e<a.length;e++)this.tabs[b].tab.append(a[e]);else if(!c)if(!jQuery.isArray(a))this.form.append(a);else for(var e=0;e<a.length;e++)this.form.append(a[e]);else{this._table||this.table();var d=jQuery("<tr />").appendTo(this._table);if(!jQuery.isArray(a))d.append(jQuery("<td />").append(a));else for(var e=0;e<a.length;e++)d.append(jQuery("<td />").append(a[e]))}return this},this.separator=function(a){return a="el-df-tab-"+a,this.tabs&&this.tabs[a]?(this.tabs[a].tab.append(jQuery("<div />").addClass("separator")),this.tabs[a].table&&this.table(a)):this.form.append(jQuery("<div />").addClass("separator")),this},this.open=function(){var a=this;return this.ul&&this.form.tabs(this.opts.tabs),setTimeout(function(){a.dialog.find(":text").keydown(function(b){b.keyCode==13&&(b.preventDefault(),a.form.submit())}).filter(":first")[0].focus()},200),this.dialog.dialog("open"),this},this.close=function(){typeof this.opts.close=="function"&&this.opts.close(),this.dialog.dialog("destroy")}}function rebindFancybox(){$(".fancybox_ajax").each(function(){$(this).fancybox({href:$(this).attr("href").replace(/\?|$/,".js?"),ajax:{dataType:"html"}})})}function another(a){select=$(a).parent().find("select"),id=$(select).attr("id"),name=$(select).attr("name"),val=$(select).val(),$(select).replaceWith("<input id='"+id+"' name='"+name+"' value='"+val+"' />"),$(a).remove()}function showSticker(){$("#sticker_parent").length>0&&(original_position_offset=$("#sticker_parent").offset(),sticky_offset=original_position_offset.top,sticky_height=$("#sticker").outerHeight(),where_scroll=$(window).scrollTop(),window_height=$(window).height(),where_scroll+window_height<sticky_offset+sticky_height&&($("#sticker").css("position","fixed"),$("#sticker").css("width","1000px")))}function add_fields(a,b,c){num=(new Date).getTime();var d=new RegExp(c+"\\_attributes\\](\\[\\d+\\])*","g");return b=b.replace(d,c+"_attributes]["+num+"]"),b=b.replace(/_attributes_\d+/g,"_attributes_"+num),$("#"+a).show(),$(b).appendTo($("#"+a)).hide().fadeIn(),showSticker(),!1}function remove_fields(a,b){return $(a).attr("checked",!0),$(b).fadeOut(),!1}function slideStep(){nextImg=$(".img.active").next(".img"),nextProject=$(".project.active").next(".project"),$(nextImg).length==0&&(nextImg=$(".img:first")),$(nextProject).length==0&&(nextProject=$(".project:first")),slideShow(nextImg,nextProject)}function slideShow(a,b){$(".img.active").removeClass("active").addClass("active_bottom"),$(a).addClass("active").fadeIn(1e3,function(){$(".img.active_bottom").hide().removeClass("active_bottom")}),$(".project.active").removeClass("active",500),$(b).addClass("active",500)}(function(a,b){function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function C(){return!1}function D(){return!0}function J(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function L(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")return;a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;i<s.length;i++)g=s[i],g.origType.replace(w,"")===a.type?q.push(g.selector):s.splice(i--,1);e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e[j];for(i=0;i<s.length;i++){g=s[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,d=f(a.relatedTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.level>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}function M(a,b){return(a&&a!=="*"?a+".":"")+b.replace(y,"`").replace(z,"&")}function U(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function V(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(Q.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function bf(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function bg(a,b){if(b.nodeType!==1||!f.hasData(a))return;var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}function bh(a,b){var c;if(b.nodeType!==1)return;b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}function bi(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bj(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bk(a){f.nodeName(a,"input")?bj(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bj)}function bl(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bd,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function by(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bt:bu;if(d>0)return c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0}),d+"px";d=bv(a,b,b);if(d<0||d==null)d=a.style[b]||0;return d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)}),d+"px"}function bV(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bL),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function bW(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bP,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bW(a,c,d,e,l,g)));return(k||!l)&&!g["*"]&&(l=bW(a,c,d,e,"*",g)),l}function bX(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function bY(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bA.test(a)?d(a,e):bY(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)bY(a+"["+e+"]",b[e],c,d);else d(a,b)}function bZ(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j)return j!==f[0]&&f.unshift(j),d[j]}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function co(){return setTimeout(cp,0),cn=f.now()}function cp(){cn=b}function cq(a,b){var c={};return f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a}),c}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}var c=a.document,d=a.navigator,e=a.location,f=function(){function K(){if(e.isReady)return;try{c.documentElement.doScroll("left")}catch(a){setTimeout(K,1);return}e.ready()}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,x=/^-ms-/,y=function(a,b){return(b+"").toUpperCase()},z=d.userAgent,A,B,C,D=Object.prototype.toString,E=Object.prototype.hasOwnProperty,F=Array.prototype.push,G=Array.prototype.slice,H=String.prototype.trim,I=Array.prototype.indexOf,J={};return e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if(a==="body"&&!d&&c.body)return this.context=c,this[0]=c.body,this.selector=a,this.length=1,this;if(typeof a=="string"){a.charAt(0)==="<"&&a.charAt(a.length-1)===">"&&a.length>=3?g=[null,a,null]:g=i.exec(a);if(g&&(g[1]||!d)){if(g[1])return d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes),e.merge(this,a);h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}return this.context=c,this.selector=a,this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}return e.isFunction(a)?f.ready(a):(a.selector!==b&&(this.selector=a.selector,this.context=a.context),e.makeArray(a,this))},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return G.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();return e.isArray(a)?F.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},each:function(a,b){return e.each(this,a,b)},ready:function(a){return e.bindReady(),B.done(a),this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(G.apply(this,arguments),"slice",G.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:F,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){return a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f),e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;B.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(B)return;B=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",C,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",C),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&K()}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):J[D.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!E.call(a,"constructor")&&!E.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||E.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}return(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c),d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(x,"ms-").replace(w,y)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:H?function(a){return a==null?"":H.call(a)}:function(a){return a==null?"":a.toString().replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?F.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(!b)return-1;if(I)return I.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];return a.length=d,a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=G.call(arguments,2),g=function(){return a.apply(c,f.concat(G.call(arguments)))};return g.guid=a.guid=a.guid||g.guid||e.guid++,g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible")<0&&v.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function d(c,d){return d&&d instanceof e&&!(d instanceof a)&&(d=a(d)),e.fn.init.call(this,c,d,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){J["[object "+b+"]"]=b.toLowerCase()}),A=e.uaMatch(z),A.browser&&(e.browser[A.browser]=!0,e.browser.version=A.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?C=function(){c.removeEventListener("DOMContentLoaded",C,!1),e.ready()}:c.attachEvent&&(C=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",C),e.ready())}),e}(),g="done fail isResolved isRejected promise then always pipe".split(" "),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i);k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return this},resolve:function(){return e.resolveWith(this,arguments),this},isResolved:function(){return!!c||!!b},cancel:function(){return d=1,a=[],this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;return f.extend(b,{then:function(a,c){return b.done(a).fail(c),this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1],h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[g+"With"](this===b?d:this,[h])}):b[a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b),b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].promise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith(g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("className","t"),a.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},m&&f.extend(p,{position:"absolute",left:"-1000px",top:"-1000px"});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;return o=l=g=h=m=j=a=i=null,k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){return a=a.nodeType?f.cache[a[f.expando]]:a[f.expando],!!a&&!l(a)},data:function(a,c,d,e){if(!f.acceptData(a))return;var g,h,i=f.expando,j=typeof c=="string",k=a.nodeType,l=k?f.cache:a,m=k?a[f.expando]:a[f.expando]&&f.expando;if((!m||e&&m&&l[m]&&!l[m][i])&&j&&d===b)return;m||(k?a[f.expando]=m=++f.uuid:m=f.expando),l[m]||(l[m]={},k||(l[m].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?l[m][i]=f.extend(l[m][i],c):l[m]=f.extend(l[m],c);return g=l[m],e&&(g[i]||(g[i]={}),g=g[i]),d!==b&&(g[f.camelCase(c)]=d),c==="events"&&!g[c]?g[i]&&g[i].events:(j?(h=g[c],h==null&&(h=g[f.camelCase(c)])):h=g,h)},removeData:function(a,b,c){if(!f.acceptData(a))return;var d,e=f.expando,g=a.nodeType,h=g?f.cache:a,i=g?a[f.expando]:f.expando;if(!h[i])return;if(b){d=c?h[i][e]:h[i];if(d){d[b]||(b=f.camelCase(b)),delete d[b];if(!l(d))return}}if(c){delete h[i][e];if(!l(h[i]))return}var j=h[i][e];f.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null,j?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=j):g&&(f.support.deleteExpando?delete a[f.expando]:a.removeAttribute?a.removeAttribute(f.expando):a[f.expando]=null)},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(function(){f.data(this,a)});var j=a.split(".");return j[1]=j[1]?"."+j[1]:"",c===b?(d=this.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this[0],a),d=k(this[0],a,d)),d===b&&j[1]?this.data(j[0]):d):this.each(function(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data(this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){d=d||"fx";var e=d+"mark",g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,"mark"))}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);return d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d)),e||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e;d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){return typeof a!="string"&&(c=a,a="fx"),c===b?f.queue(this[0],a):this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){return a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f._Deferred(),!0))h++,l.done(m);return m(),d.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u,v;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){return a=f.propFix[a]||a,this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(o);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(n," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";return f.isFunction(a)?this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(o);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length)return e?(c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type],c&&"get"in c&&(d=c.get(e,"value"))!==b?d:(d=e.value,typeof d=="string"?d.replace(p,""):d==null?"":d)):b;var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType!==1)return;g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get
:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e[h];if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}return g&&!d.length&&e.length?f(e[c]).val():d},set:function(a,b){var c=f.makeArray(b);return f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1),c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if("getAttribute"in a){var h,i,j=g!==1||!f.isXMLDoc(a);return j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=v:u&&(i=u))),d!==b?d===null?(f.removeAttr(a,c),b):i&&"set"in i&&j&&(h=i.set(a,d,c))!==b?h:(a.setAttribute(c,""+d),d):i&&"get"in i&&j&&(h=i.get(a,c))!==null?h:(h=a.getAttribute(c),h===null?b:h)}return f.prop(a,c,d)},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.attr(a,b,""),a.removeAttribute(b),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}},value:{get:function(a,b){return u&&f.nodeName(a,"button")?u.get(a,b):b in a?a.value:null},set:function(a,b,c){if(u&&f.nodeName(a,"button"))return u.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);return i&&(c=f.propFix[c]||c,h=f.propHooks[c]),d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==null?g:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabIndex=f.propHooks.tabIndex,v={get:function(a,c){var d;return f.prop(a,c)===!0||(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;return b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase())),c}},f.support.getSetAttribute||(u=f.valHooks.button={get:function(a,c){var d;return d=a.getAttributeNode(c),d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);return e||(e=c.createAttribute(d),a.setAttributeNode(e)),e.nodeValue=b+""}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c==="")return a.setAttribute(b,"auto"),c}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var w=/\.(.*)$/,x=/^(?:textarea|input|select)$/i,y=/\./g,z=/ /g,A=/[^\w\s.|`]/g,B=function(a){return a.replace(A,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType===3||a.nodeType===8)return;if(d===!1)d=C;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f=="undefined"||!!a&&f.event.triggered===a.type?b:f.event.handle.apply(k.elem,arguments)}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null},global:{},remove:function(a,c,d,e){if(a.nodeType===3||a.nodeType===8)return;d===!1&&(d=C);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),B).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){q=p[j];if(d.guid===q.guid){if(l||n.test(q.namespace))e==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(e!=null)break}}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete t[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Event(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}return a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0),a},guid:1e8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,M(a.origType,a.selector),f.extend({},a,{handler:L,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,M(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?D:C):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=D;var a=this.originalEvent;if(!a)return;a.preventDefault?a.preventDefault():a.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=D;var a=this.originalEvent;if(!a)return;a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=D,this.stopPropagation()},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};var E=function(a){var b=a.relatedTarget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.event.handle.apply(this,arguments),a.type=d))},F=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.selector?F:E,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?F:E)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="submit"||c==="image")&&f(b).closest("form").length&&J("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="text"||c==="password")&&f(b).closest("form").length&&a.keyCode===13&&J("submit",this,arguments)});else return!1},teardown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeBubbles){var G,H=function(a){var b=f.nodeName(a,"input")?a.type:"",c=a.value;return b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex),c},I=function(a){var c=a.target,d,e;if(!x.test(c.nodeName)||c.readOnly)return;d=f._data(c,"_change_data"),e=H(c),(a.type!=="focusout"||c.type!=="radio")&&f._data(c,"_change_data",e);if(d===b||e===d)return;if(d!=null||e)a.type="change",a.liveFired=b,f.event.trigger(a,arguments[1],c)};f.event.special.change={filters:{focusout:I,beforedeactivate:I,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&I.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&I.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",H(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in G)f.event.add(this,c+".specialChange",G[c]);return x.test(this.nodeName)},teardown:function(a){return f.event.remove(this,".specialChange"),x.test(this.nodeName)}},G=f.event.special.change.filters,G.focus=G.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){return f(this).unbind(a,g),e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i<j;i++)f.event.add(this[i],a,g,d);return this}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.event.remove(this[d],a,b);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;return f.data(this,"lastToggle"+a.guid,e+1),c.preventDefault(),b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var K={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a[o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)===".")return n.unbind(g),this;if(d===!1||f.isFunction(d))e=d||C,d=b;a=(a||"").split(" ");while((h=a[i++])!=null){j=w.exec(h),k="",j&&(k=j[0],h=h.replace(w,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,K[h]?(a.push(K[h]+k),h+=k):h=(K[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+M(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind("live."+M(h,m),e)}return this}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){f.fn[b]=function(a,c){return c==null&&(c=a,a=null),arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){return h=!1,0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length!==1||x[0]!=="~"&&x[0]!=="+"||!d.parentNode?d:d.parentNode,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);return o&&(k(o,h,f,g),k.uniqueSort(f)),f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}return d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]),{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("previousSibling",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);return a[0]=d++,a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");return!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" "),a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);return d||e.push.apply(e,g),!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){return a.unshift(!0),a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){return a=Array.prototype.slice.call(a,0),b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){return a===b?(g=!0,0):!a.compareDocumentPosition||!b.compareDocumentPosition?a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b)return g=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)return;k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!a.getElementsByClassName||a.getElementsByClassName("e").length===0)return;a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var N=/Until$/,O=/^(?:parents|prevUntil|prevAll)/,P=/,/,Q=/^.[^:#\[\.,]*$/,R=Array.prototype.slice,S=f.expr.match.POS,T={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(V(this,a,!1),"not",a)},filter:function(a){return this.pushStack(V(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=S.test(i)?f(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=S.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}return c=c.length>1?f.unique(c):c,this.pushStack(c,"closest",a)},index:function(a){return a?typeof a=="string"?f.inArray(this[0],f(a)):f.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(U(c[0])||U(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow
.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=R.call(arguments);return N.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!T[a]?f.unique(e):e,(this.length>1||P.test(d))&&O.test(a)&&(e=e.reverse()),this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){return c&&(a=":not("+a+")"),b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|object|embed|option|style)/i,bb=/checked\s*(?:[^=]|=\s*.checked.)/i,bc=/\/(java|ecma)script/i,bd=/^\s*<!(?:\[CDATA\[|\-\-)/,be={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,f.support.htmlSerialize||(be._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){return f.isFunction(a)?this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))}):typeof a!="object"&&a!==b?this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a)):f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return f.isFunction(a)?this.each(function(b){f(this).wrapInner(a.call(this,b))}):this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);return a.push.apply(a,this.toArray()),this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);return a.push.apply(a,f(arguments[0]).toArray()),a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){return a=a==null?!1:a,b=b==null?a:b,this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!be[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){return this[0]&&this[0].parentNode?f.isFunction(a)?this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))}):(typeof a!="string"&&(a=f(a).detach()),this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})):this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bb.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bf(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bl)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;return b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!ba.test(a[0])&&(f.support.checkClone||!bb.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1),{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1)return e[b](this[0]),this;for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bh(a,d),e=bi(a),g=bi(d);for(h=0;e[h];++h)g[h]&&bh(e[h],g[h])}if(b){bg(a,d);if(c){e=bi(a),g=bi(d);for(h=0;e[h];++h)bg(e[h],g[h])}}return e=g=null,d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=be[l]||be._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i<r;i++)bk(k[i]);else bk(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bc.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowerCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.expando),delete d[c]}}}});var bm=/alpha\([^)]*\)/i,bn=/opacity=([^)]*)/,bo=/([A-Z]|^ms)/g,bp=/^-?\d+(?:px)?$/i,bq=/^-?\d/,br=/^([\-+])=([\-+.\de]+)/,bs={position:"absolute",visibility:"hidden",display:"block"},bt=["Left","Right"],bu=["Top","Bottom"],bv,bw,bx;f.fn.css=function(a,c){return arguments.length===2&&c===b?this:f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bv(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!a||a.nodeType===3||a.nodeType===8||!a.style)return;var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b)return k&&"get"in k&&(g=k.get(a,!1,e))!==b?g:j[c];h=typeof d,h==="string"&&(g=br.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bv)return bv(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c)return a.offsetWidth!==0?by(a,b,d):(f.swap(a,bs,function(){e=by(a,b,d)}),e)},set:function(a,b){if(!bp.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bn.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bm,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bm.test(g)?g.replace(bm,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;return f.swap(a,{display:"inline-block"},function(){b?c=bv(a,"margin-right","marginRight"):c=a.style.marginRight}),c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bw=function(a,c){var d,e,g;c=c.replace(bo,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bx=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;return!bp.test(d)&&bq.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e)),d===""?"auto":d}),bv=bw||bx,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bz=/%20/g,bA=/\[\]$/,bB=/\r?\n/g,bC=/#.*$/,bD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bE=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bF=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bG=/^(?:GET|HEAD)$/,bH=/^\/\//,bI=/\?/,bJ=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bK=/^(?:select|textarea)/i,bL=/\s+/,bM=/([?&])_=[^&]*/,bN=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bO=f.fn.load,bP={},bQ={},bR,bS,bT=["*/"]+["*"];try{bR=e.href}catch(bU){bR=c.createElement("a"),bR.href="",bR=bR.href}bS=bN.exec(bR.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bO)return bO.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;return f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bJ,"")).find(g):c)),d&&i.each(d,[c,b,a])}}),this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bK.test(this.nodeName)||bE.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bB,"\r\n")}}):{name:b.name,value:c.replace(bB,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){return f.isFunction(d)&&(g=g||e,e=d,d=b),f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){return b?bX(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),bX(a,b),a},ajaxSettings:{url:bR,isLocal:bF.test(bS[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bT},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bV(bP),ajaxTransport:bV(bQ),ajax:function(a,c){function w(a,c,l,m){if(s===2)return;s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?bZ(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=b$(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bD.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){return s||(d.mimeType=a),this},abort:function(a){return a=a||"abort",p&&p.abort(a),w(0,a),this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bC,"").replace(bH,bS[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bL),d.crossDomain==null&&(r=bN.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bS[1]&&r[2]==bS[2]&&(r[3]||(r[1]==="http:"?80:443))==(bS[3]||(bS[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bW(bP,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bG.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bI.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bM,"$1_="+x);d.url=y+(y===d.url?(bI.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bT+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(!d.beforeSend||d.beforeSend.call(e,v,d)!==!1&&s!==2){for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bW(bQ,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){s<2?w(-1,z):f.error(z)}}return v}return v.abort(),!1},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bz,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";return b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){return g||f.error(h+" was not called"),g[0]},b.dataTypes[0]="json","script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){return f.globalEval(a),a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cq("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cr(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cq("hide",3),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d],"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisplay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";return f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cq("toggle",3),a,b,c),this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=f.speed(b,c,d);return f.isEmptyObject(a)?this.each(e.complete,[!1]):(a=f.extend({},a),this[e.queue===!1?"each":"queue"](function(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cr(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle"?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.cssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,""));return!0}))},stop:function(a,b){return a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c--)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))}),b||this.dequeue(),this}}),f.each({slideDown:cq("show",1),slideUp:cq("hide",1),slideToggle:cq("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};return d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default,d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this)},d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]==null||!!this.elem.style&&this.elem.style[this.prop]!=null){var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a}return this.elem[this.prop]},custom:function(a,b,c){function g(a){return d.step(a)}var d=this,e=f.fx;this.startTime=cn||co(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&f.timers.push(g)&&!cl&&(cl=setInterval(e.tick,e.interval))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn||co(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}return e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cs=/^t(?:able|d|h)$/i,ct=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cu(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!cs.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;return f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft)),{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;return f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0),{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=ct.test(b[0].nodeName)?{top:0,left:0}:b.offset();return c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0,{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!ct.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;return c===b?(e=this[0],e?(g=cu(e),g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]):null):this.each(function(){g=cu(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNaN(j)?i:j}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window),function(a,b){var c;a.rails=c={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote], a[data-disable-with]",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not(button[type])",disableSelector:"input[data-disable-with], button[data-disable-with], textarea[data-disable-with]",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled",requiredInputSelector:"input[name][required]:not([disabled]),textarea[name][required]:not([disabled])"
,fileInputSelector:"input:file",linkDisableSelector:"a[data-disable-with]",CSRFProtection:function(b){var c=a('meta[name="csrf-token"]').attr("content");c&&b.setRequestHeader("X-CSRF-Token",c)},fire:function(b,c,d){var e=a.Event(c);return b.trigger(e,d),e.result!==!1},confirm:function(a){return confirm(a)},ajax:function(b){return a.ajax(b)},handleRemote:function(d){var e,f,g,h=d.data("cross-domain")||null,i=d.data("type")||a.ajaxSettings&&a.ajaxSettings.dataType,j;if(c.fire(d,"ajax:before")){if(d.is("form")){e=d.attr("method"),f=d.attr("action"),g=d.serializeArray();var k=d.data("ujs:submit-button");k&&(g.push(k),d.data("ujs:submit-button",null))}else d.is(c.inputChangeSelector)?(e=d.data("method"),f=d.data("url"),g=d.serialize(),d.data("params")&&(g=g+"&"+d.data("params"))):(e=d.data("method"),f=d.attr("href"),g=d.data("params")||null);j={type:e||"GET",data:g,dataType:i,crossDomain:h,beforeSend:function(a,e){return e.dataType===b&&a.setRequestHeader("accept","*/*;q=0.5, "+e.accepts.script),c.fire(d,"ajax:beforeSend",[a,e])},success:function(a,b,c){d.trigger("ajax:success",[a,b,c])},complete:function(a,b){d.trigger("ajax:complete",[a,b])},error:function(a,b,c){d.trigger("ajax:error",[a,b,c])}},f&&(j.url=f),c.ajax(j)}},handleMethod:function(c){var d=c.attr("href"),e=c.data("method"),f=c.attr("target"),g=a("meta[name=csrf-token]").attr("content"),h=a("meta[name=csrf-param]").attr("content"),i=a('<form method="post" action="'+d+'"></form>'),j='<input name="_method" value="'+e+'" type="hidden" />';h!==b&&g!==b&&(j+='<input name="'+h+'" value="'+g+'" type="hidden" />'),f&&i.attr("target",f),i.hide().append(j).appendTo("body"),i.submit()},disableFormElements:function(b){b.find(c.disableSelector).each(function(){var b=a(this),c=b.is("button")?"html":"val";b.data("ujs:enable-with",b[c]()),b[c](b.data("disable-with")),b.prop("disabled",!0)})},enableFormElements:function(b){b.find(c.enableSelector).each(function(){var b=a(this),c=b.is("button")?"html":"val";b.data("ujs:enable-with")&&b[c](b.data("ujs:enable-with")),b.prop("disabled",!1)})},allowAction:function(a){var b=a.data("confirm"),d=!1,e;return b?(c.fire(a,"confirm")&&(d=c.confirm(b),e=c.fire(a,"confirm:complete",[d])),d&&e):!0},blankInputs:function(b,c,d){var e=a(),f,g=c||"input,textarea";return b.find(g).each(function(){f=a(this);if(d?f.val():!f.val())e=e.add(f)}),e.length?e:!1},nonBlankInputs:function(a,b){return c.blankInputs(a,b,!0)},stopEverything:function(b){return a(b.target).trigger("ujs:everythingStopped"),b.stopImmediatePropagation(),!1},callFormSubmitBindings:function(c){var d=c.data("events"),e=!0;return d!==b&&d.submit!==b&&a.each(d.submit,function(a,b){if(typeof b.handler=="function")return e=b.handler(b.data)}),e},disableElement:function(a){a.data("ujs:enable-with",a.html()),a.html(a.data("disable-with")),a.bind("click.railsDisable",function(a){return c.stopEverything(a)})},enableElement:function(a){a.data("ujs:enable-with")!==b&&(a.html(a.data("ujs:enable-with")),a.data("ujs:enable-with",!1)),a.unbind("click.railsDisable")}},a.ajaxPrefilter(function(a,b,d){a.crossDomain||c.CSRFProtection(d)}),a(c.linkDisableSelector).live("ajax:complete",function(){c.enableElement(a(this))}),a(c.linkClickSelector).live("click.rails",function(d){var e=a(this),f=e.data("method"),g=e.data("params");if(!c.allowAction(e))return c.stopEverything(d);e.is(c.linkDisableSelector)&&c.disableElement(e);if(e.data("remote")!==b)return(d.metaKey||d.ctrlKey)&&(!f||f==="GET")&&!g?!0:(c.handleRemote(e),!1);if(e.data("method"))return c.handleMethod(e),!1}),a(c.inputChangeSelector).live("change.rails",function(b){var d=a(this);return c.allowAction(d)?(c.handleRemote(d),!1):c.stopEverything(b)}),a(c.formSubmitSelector).live("submit.rails",function(d){var e=a(this),f=e.data("remote")!==b,g=c.blankInputs(e,c.requiredInputSelector),h=c.nonBlankInputs(e,c.fileInputSelector);if(!c.allowAction(e))return c.stopEverything(d);if(g&&e.attr("novalidate")==b&&c.fire(e,"ajax:aborted:required",[g]))return c.stopEverything(d);if(f)return h?c.fire(e,"ajax:aborted:file",[h]):!a.support.submitBubbles&&c.callFormSubmitBindings(e)===!1?c.stopEverything(d):(c.handleRemote(e),!1);setTimeout(function(){c.disableFormElements(e)},13)}),a(c.formInputClickSelector).live("click.rails",function(b){var d=a(this);if(!c.allowAction(d))return c.stopEverything(b);var e=d.attr("name"),f=e?{name:e,value:d.val()}:null;d.closest("form").data("ujs:submit-button",f)}),a(c.formSubmitSelector).live("ajax:beforeSend.rails",function(b){this==b.target&&c.disableFormElements(a(this))}),a(c.formSubmitSelector).live("ajax:complete.rails",function(b){this==b.target&&c.enableFormElements(a(this))})}(jQuery),function(a){var b={method:"GET",contentType:"json",queryParam:"q",searchDelay:300,minChars:1,propertyToSearch:"name",jsonContainer:null,hintText:"Type in a search term",noResultsText:"No results",searchingText:"Searching...",deleteText:"&times;",animateDropdown:!0,tokenLimit:null,tokenDelimiter:",",preventDuplicates:!1,tokenValue:"id",prePopulate:null,processPrePopulate:!1,idPrefix:"token-input-",resultsFormatter:function(a){return"<li>"+a[this.propertyToSearch]+"</li>"},tokenFormatter:function(a){return"<li><p>"+a[this.propertyToSearch]+"</p></li>"},onResult:null,onAdd:null,onDelete:null,onReady:null},c={tokenList:"token-input-list",token:"token-input-token",tokenDelete:"token-input-delete-token",selectedToken:"token-input-selected-token",highlightedToken:"token-input-highlighted-token",dropdown:"token-input-dropdown",dropdownItem:"token-input-dropdown-item",dropdownItem2:"token-input-dropdown-item2",selectedDropdownItem:"token-input-selected-dropdown-item",inputToken:"token-input-input-token"},d={BEFORE:0,AFTER:1,END:2},e={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,NUMPAD_ENTER:108},f={init:function(c,d){var e=a.extend({},b,d||{});return this.each(function(){a(this).data("tokenInputObject",new a.TokenList(this,c,e))})},clear:function(){return this.data("tokenInputObject").clear(),this},add:function(a){return this.data("tokenInputObject").add(a),this},remove:function(a){return this.data("tokenInputObject").remove(a),this},get:function(){return this.data("tokenInputObject").getTokens()}};a.fn.tokenInput=function(a){return f[a]?f[a].apply(this,Array.prototype.slice.call(arguments,1)):f.init.apply(this,arguments)},a.TokenList=function(b,f,g){function x(){if(g.tokenLimit!==null&&j>=g.tokenLimit){n.hide(),H();return}}function y(){if(m===(m=n.val()))return;var a=m.replace(/&/g,"&amp;").replace(/\s/g," ").replace(/</g,"&lt;").replace(/>/g,"&gt;");v.html(a),n.width(v.width()+30)}function z(a){return a>=48&&a<=90||a>=96&&a<=111||a>=186&&a<=192||a>=219&&a<=222}function A(b){var c=g.tokenFormatter(b);c=a(c).addClass(g.classes.token).insertBefore(t),a("<span>"+g.deleteText+"</span>").addClass(g.classes.tokenDelete).appendTo(c).click(function(){return F(a(this).parent()),o.change(),!1});var d={id:b.id};return d[g.propertyToSearch]=b[g.propertyToSearch],a.data(c.get(0),"tokeninput",b),i=i.slice(0,q).concat([d]).concat(i.slice(q)),q++,G(i,o),j+=1,g.tokenLimit!==null&&j>=g.tokenLimit&&(n.hide(),H()),c}function B(b){var c=g.onAdd;if(j>0&&g.preventDuplicates){var d=null;s.children().each(function(){var c=a(this),e=a.data(c.get(0),"tokeninput");if(e&&e.id===b.id)return d=c,!1});if(d){C(d),t.insertAfter(d),n.focus();return}}if(g.tokenLimit==null||j<g.tokenLimit)A(b),x();n.val(""),H(),a.isFunction(c)&&c.call(o,b)}function C(a){a.addClass(g.classes.selectedToken),p=a.get(0),n.val(""),H()}function D(a,b){a.removeClass(g.classes.selectedToken),p=null,b===d.BEFORE?(t.insertBefore(a),q--):b===d.AFTER?(t.insertAfter(a),q++):(t.appendTo(s),q=j),n.focus()}function E(b){var c=p;p&&D(a(p),d.END),c===b.get(0)?D(b,d.END):C(b)}function F(b){var c=a.data(b.get(0),"tokeninput"),d=g.onDelete,e=b.prevAll().length;e>q&&e--,b.remove(),p=null,n.focus(),i=i.slice(0,e).concat(i.slice(e+1)),e<q&&q--,G(i,o),j-=1,g.tokenLimit!==null&&n.show().val("").focus(),a.isFunction(d)&&d.call(o,c)}function G(b,c){var d=a.map(b,function(a){return a[g.tokenValue]});c.val(d.join(g.tokenDelimiter))}function H(){u.hide().empty(),r=null}function I(){u.css({position:"absolute",top:a(s).offset().top+a(s).outerHeight(),left:a(s).offset().left,zindex:999}).show()}function J(){g.searchingText&&(u.html("<p>"+g.searchingText+"</p>"),I())}function K(){g.hintText&&(u.html("<p>"+g.hintText+"</p>"),I())}function L(a,b){return a.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b+")(?![^<>]*>)(?![^&;]+;)","gi"),"<b>$1</b>")}function M(a,b,c){return a.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b+")(?![^<>]*>)(?![^&;]+;)","g"),L(b,c))}function N(b,c){if(c&&c.length){u.empty();var d=a("<ul>").appendTo(u).mouseover(function(b){O(a(b.target).closest("li"))}).mousedown(function(b){return B(a(b.target).closest("li").data("tokeninput")),o.change(),!1}).hide();a.each(c,function(c,e){var f=g.resultsFormatter(e);f=M(f,e[g.propertyToSearch],b),f=a(f).appendTo(d),c%2?f.addClass(g.classes.dropdownItem):f.addClass(g.classes.dropdownItem2),c===0&&O(f),a.data(f.get(0),"tokeninput",e)}),I(),g.animateDropdown?d.slideDown("fast"):d.show()}else g.noResultsText&&(u.html("<p>"+g.noResultsText+"</p>"),I())}function O(b){b&&(r&&P(a(r)),b.addClass(g.classes.selectedDropdownItem),r=b.get(0))}function P(a){a.removeClass(g.classes.selectedDropdownItem),r=null}function Q(){var b=n.val().toLowerCase();b&&b.length&&(p&&D(a(p),d.AFTER),b.length>=g.minChars?(J(),clearTimeout(l),l=setTimeout(function(){R(b)},g.searchDelay)):H())}function R(b){var c=b+S(),d=k.get(c);if(d)N(b,d);else if(g.url){var e=S(),f={};f.data={};if(e.indexOf("?")>-1){var h=e.split("?");f.url=h[0];var i=h[1].split("&");a.each(i,function(a,b){var c=b.split("=");f.data[c[0]]=c[1]})}else f.url=e;f.data[g.queryParam]=b,f.type=g.method,f.dataType=g.contentType,g.crossDomain&&(f.dataType="jsonp"),f.success=function(d){a.isFunction(g.onResult)&&(d=g.onResult.call(o,d)),k.add(c,g.jsonContainer?d[g.jsonContainer]:d),n.val().toLowerCase()===b&&N(b,g.jsonContainer?d[g.jsonContainer]:d)},a.ajax(f)}else if(g.local_data){var j=a.grep(g.local_data,function(a){return a[g.propertyToSearch].toLowerCase().indexOf(b.toLowerCase())>-1});a.isFunction(g.onResult)&&(j=g.onResult.call(o,j)),k.add(c,j),N(b,j)}}function S(){var a=g.url;return typeof g.url=="function"&&(a=g.url.call()),a}if(a.type(f)==="string"||a.type(f)==="function"){g.url=f;var h=S();g.crossDomain===undefined&&(h.indexOf("://")===-1?g.crossDomain=!1:g.crossDomain=location.href.split(/\/+/g)[1]!==h.split(/\/+/g)[1])}else typeof f=="object"&&(g.local_data=f);g.classes?g.classes=a.extend({},c,g.classes):g.theme?(g.classes={},a.each(c,function(a,b){g.classes[a]=b+"-"+g.theme})):g.classes=c;var i=[],j=0,k=new a.TokenList.Cache,l,m,n=a('<input type="text"  autocomplete="off">').css({outline:"none"}).attr("id",g.idPrefix+b.id).focus(function(){(g.tokenLimit===null||g.tokenLimit!==j)&&K()}).blur(function(){H(),a(this).val("")}).bind("keyup keydown blur update",y).keydown(function(b){var c,f;switch(b.keyCode){case e.LEFT:case e.RIGHT:case e.UP:case e.DOWN:if(!a(this).val())c=t.prev(),f=t.next(),c.length&&c.get(0)===p||f.length&&f.get(0)===p?b.keyCode===e.LEFT||b.keyCode===e.UP?D(a(p),d.BEFORE):D(a(p),d.AFTER):b.keyCode!==e.LEFT&&b.keyCode!==e.UP||!c.length?(b.keyCode===e.RIGHT||b.keyCode===e.DOWN)&&f.length&&C(a(f.get(0))):C(a(c.get(0)));else{var g=null;return b.keyCode===e.DOWN||b.keyCode===e.RIGHT?g=a(r).next():g=a(r).prev(),g.length&&O(g),!1}break;case e.BACKSPACE:c=t.prev();if(!a(this).val().length)return p?(F(a(p)),o.change()):c.length&&C(a(c.get(0))),!1;a(this).val().length===1?H():setTimeout(function(){Q()},5);break;case e.TAB:case e.ENTER:case e.NUMPAD_ENTER:case e.COMMA:if(r)return B(a(r).data("tokeninput")),o.change(),!1;break;case e.ESCAPE:return H(),!0;default:String.fromCharCode(b.which)&&setTimeout(function(){Q()},5)}}),o=a(b).hide().val("").focus(function(){n.focus()}).blur(function(){n.blur()}),p=null,q=0,r=null,s=a("<ul />").addClass(g.classes.tokenList).click(function(b){var c=a(b.target).closest("li");c&&c.get(0)&&a.data(c.get(0),"tokeninput")?E(c):(p&&D(a(p),d.END),n.focus())}).mouseover(function(b){var c=a(b.target).closest("li");c&&p!==this&&c.addClass(g.classes.highlightedToken)}).mouseout(function(b){var c=a(b.target).closest("li");c&&p!==this&&c.removeClass(g.classes.highlightedToken)}).insertBefore(o),t=a("<li />").addClass(g.classes.inputToken).appendTo(s).append(n),u=a("<div>").addClass(g.classes.dropdown).appendTo("body").hide(),v=a("<tester/>").insertAfter(n).css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:n.css("fontSize"),fontFamily:n.css("fontFamily"),fontWeight:n.css("fontWeight"),letterSpacing:n.css("letterSpacing"),whiteSpace:"nowrap"});o.val("");var w=g.prePopulate||o.data("pre");g.processPrePopulate&&a.isFunction(g.onResult)&&(w=g.onResult.call(o,w)),w&&w.length&&a.each(w,function(a,b){A(b),x()}),a.isFunction(g.onReady)&&g.onReady.call(),this.clear=function(){s.children("li").each(function(){a(this).children("input").length===0&&F(a(this))})},this.add=function(a){B(a)},this.remove=function(b){s.children("li").each(function(){if(a(this).children("input").length===0){var c=a(this).data("tokeninput"),d=!0;for(var e in b)if(b[e]!==c[e]){d=!1;break}d&&F(a(this))}})},this.getTokens=function(){return i}},a.TokenList.Cache=function(b){var c=a.extend({max_size:500},b),d={},e=0,f=function(){d={},e=0};this.add=function(a,b){e>c.max_size&&f(),d[a]||(e+=1),d[a]=b},this.get=function(a){return d[a]}}}(jQuery),function(a){var b,c,d,e,f,g,h,i,j,k,l=0,m={},n=[],o=0,p={},q=[],r=null,s=new Image,t=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,u=/[^\.]\.(swf)\s*$/i,v,w=1,x=0,y="",z,A,B=!1,C=a.extend(a("<div/>")[0],{prop:0}),D=a.browser.msie&&a.browser.version<7&&!window.XMLHttpRequest,E=function(){c.hide(),s.onerror=s.onload=null,r&&r.abort(),b.empty()},F=function(){!1===m.onError(n,l,m)?(c.hide(),B=!1):(m.titleShow=!1,m.width="auto",m.height="auto",b.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),H())},G=function(){var d=n[l],e,f,h,i,j,k;E(),m=a.extend({},a.fn.fancybox.defaults,typeof a(d).data("fancybox")=="undefined"?m:a(d).data("fancybox")),k=m.onStart(n,l,m);if(k===!1)B=!1;else{typeof k=="object"&&(m=a.extend(m,k)),h=m.title||(d.nodeName?a(d).attr("title"):d.title)||"",d.nodeName&&!m.orig&&(m.orig=a(d).children("img:first").length?a(d).children("img:first"):a(d)),h===""&&m.orig&&m.titleFromAlt&&(h=m.orig.attr("alt")),e=m.href||(d.nodeName?a(d).attr("href"):d.href)||null;if(/^(?:javascript)/i.test(e)||e=="#")e=null;m.type?(f=m.type,e||(e=m.content)):m.content?f="html":e&&(f=e.match(t)?"image":e.match(u)?"swf":a(d).hasClass("iframe")?"iframe":e.indexOf("#")===0?"inline":"ajax");if(f){f=="inline"&&(d=e.substr(e.indexOf("#")),f=a(d).length>0?"inline":"ajax"),m.type=f,m.href=e,m.title=h,m.autoDimensions&&(m.type=="html"||m.type=="inline"||m.type=="ajax"?(m.width="auto",m.height="auto"):m.autoDimensions=!1),m.modal&&(m.overlayShow=!0,m.hideOnOverlayClick=!1,m.hideOnContentClick=!1,m.enableEscapeButton=!1,m.showCloseButton=!1),m.padding=parseInt(m.padding,10),m.margin=parseInt(m.margin,10),b.css("padding",m.padding+m.margin),a(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){a(this).replaceWith(g.children())});switch(f){case"html":b.html(m.content),H();break;case"inline":if(a(d).parent().is("#fancybox-content")===!0){B=!1;break}a('<div class="fancybox-inline-tmp" />').hide().insertBefore(a(d)).bind("fancybox-cleanup",function(){a(this).replaceWith(g.children())}).bind("fancybox-cancel",function(){a(this).replaceWith(b.children())}),a(d).appendTo(b),H();break;case"image":B=!1,a.fancybox.showActivity(),s=new Image,s.onerror=function(){F()},s.onload=function(){B=!0,s.onerror=s.onload=null,m.width=s.width,m.height=s.height,a("<img />").attr({id:"fancybox-img",src:s.src,alt:m.title}).appendTo(b),I()},s.src=e;break;case"swf":m.scrolling="no",i='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+m.width+'" height="'+m.height+'"><param name="movie" value="'+e+'"></param>',j="",a.each(m.swf,function(a,b){i+='<param name="'+a+'" value="'+b+'"></param>',j+=" "+a+'="'+b+'"'}),i+='<embed src="'+e+'" type="application/x-shockwave-flash" width="'+m.width+'" height="'+m.height+'"'+j+"></embed></object>",b.html(i),H();break;case"ajax":B=!1,a.fancybox.showActivity(),m.ajax.win=m.ajax.success,r=a.ajax(a.extend({},m.ajax,{url:e,data:m.ajax.data||{},error:function(a){a.status>0&&F()},success:function(a,d,f){if((typeof f=="object"?f:r).status==200){if(typeof m.ajax.win=="function"){k=m.ajax.win(e,a,d,f);if(k===!1){c.hide();return}if(typeof k=="string"||typeof k=="object")a=k}b.html(a),H()}}}));break;case"iframe":I()}}else F()}},H=function(){var c=m.width,d=m.height;c=c.toString().indexOf("%")>-1?parseInt((a(window).width()-m.margin*2)*parseFloat(c)/100,10)+"px":c=="auto"?"auto":c+"px",d=d.toString().indexOf("%")>-1?parseInt((a(window).height()-m.margin*2)*parseFloat(d)/100,10)+"px":d=="auto"?"auto":d+"px",b.wrapInner('<div style="width:'+c+";height:"+d+";overflow: "+(m.scrolling=="auto"?"auto":m.scrolling=="yes"?"scroll":"hidden")+';position:relative;"></div>'),m.width=b.width(),m.height=b.height(),I()},I=function(){var r,s;c.hide();if(e.is(":visible")&&!1===p.onCleanup(q,o,p))a.event.trigger("fancybox-cancel"),B=!1;else{B=!0,a(g.add(d)).unbind(),a(window).unbind("resize.fb scroll.fb"),a(document).unbind("keydown.fb"),e.is(":visible")&&p.titlePosition!=="outside"&&e.css("height",e.height()),q=n,o=l,p=m,p.overlayShow?(d.css({"background-color":p.overlayColor,opacity:p.overlayOpacity,cursor:p.hideOnOverlayClick?"pointer":"auto",height:a(document).height()}),d.is(":visible")||(D&&a("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),d.show())):d.hide(),A=N(),y=p.title||"",x=0,i.empty().removeAttr("style").removeClass();if(p.titleShow!==!1){a.isFunction(p.titleFormat)?r=p.titleFormat(y,q,o,p):r=y&&y.length?p.titlePosition=="float"?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+y+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+p.titlePosition+'">'+y+"</div>":!1,y=r;if(!!y&&y!==""){i.addClass("fancybox-title-"+p.titlePosition).html(y).appendTo("body").show();switch(p.titlePosition){case"inside":i.css({width:A.width-p.padding*2,marginLeft:p.padding,marginRight:p.padding}),x=i.outerHeight(!0),i.appendTo(f),A.height+=x;break;case"over":i.css({marginLeft:p.padding,width:A.width-p.padding*2,bottom:p.padding}).appendTo(f);break;case"float":i.css("left",parseInt((i.width()-A.width-40)/2,10)*-1).appendTo(e);break;default:i.css({width:A.width-p.padding*2,paddingLeft:p.padding,paddingRight:p.padding}).appendTo(e)}}}i.hide(),e.is(":visible")?(a(h.add(j).add(k)).hide(),r=e.position(),z={top:r.top,left:r.left,width:e.width(),height:e.height()},s=z.width==A.width&&z.height==A.height,g.fadeTo(p.changeFade,.3,function(){var c=function(){g.html(b.contents()).fadeTo(p.changeFade,1,K)};a.event.trigger("fancybox-change"),g.empty().removeAttr("filter").css({"border-width":p.padding,width:A.width-p.padding*2,height:m.autoDimensions?"auto":A.height-x-p.padding*2}),s?c():(C.prop=0,a(C).animate({prop:1},{duration:p.changeSpeed,easing:p.easingChange,step:L,complete:c}))})):(e.removeAttr("style"),g.css("border-width",p.padding),p.transitionIn=="elastic"?(z=O(),g.html(b.contents()),e.show(),p.opacity&&(A.opacity=0),C.prop=0,a(C).animate({prop:1},{duration:p.speedIn,easing:p.easingIn,step:L,complete:K})):(p.titlePosition=="inside"&&x>0&&i.show(),g.css({width:A.width-p.padding*2,height:m.autoDimensions?"auto":A.height-x-p.padding*2}).html(b.contents()),e.css(A).fadeIn(p.transitionIn=="none"?0:p.speedIn,K)))}},J=function(){(p.enableEscapeButton||p.enableKeyboardNav)&&a(document).bind("keydown.fb",function(b){b.keyCode==27&&p.enableEscapeButton?(b.preventDefault(),a.fancybox.close()):(b.keyCode==37||b.keyCode==39)&&p.enableKeyboardNav&&b.target.tagName!=="INPUT"&&b.target.tagName!=="TEXTAREA"&&b.target.tagName!=="SELECT"&&(b.preventDefault(),a.fancybox[b.keyCode==37?"prev":"next"]())}),p.showNavArrows?((p.cyclic&&q.length>1||o!==0)&&j.show(),(p.cyclic&&q.length>1||o!=q.length-1)&&k.show()):(j.hide(),k.hide())},K=function(){a.support.opacity||(g.get(0).style.removeAttribute("filter"),e.get(0).style.removeAttribute("filter")),m.autoDimensions&&g.css("height","auto"),e.css("height","auto"),y&&y.length&&i.show(),p.showCloseButton&&h.show(),J(),p.hideOnContentClick&&g.bind("click",a.fancybox.close),p.hideOnOverlayClick&&d.bind("click",a.fancybox.close),a(window).bind("resize.fb",a.fancybox.resize),p.centerOnScroll&&a(window).bind("scroll.fb",a.fancybox.center),p.type=="iframe"&&a('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(a.browser.msie?'allowtransparency="true""':"")+' scrolling="'+m.scrolling+'" src="'+p.href+'"></iframe>').appendTo(g),e.show(),B=!1,a.fancybox.center(),p.onComplete(q,o,p);var b,c;q.length-1>o&&(b=q[o+1].href,typeof b!="undefined"&&b.match(t)&&(c=new Image,c.src=b)),o>0&&(b=q[o-1].href,typeof b!="undefined"&&b.match(t)&&(c=new Image,c.src=b))},L=function(a){var b={width:parseInt(z.width+(A.width-z.width)*a,10),height:parseInt(z.height+(A.height-z.height)*a,10),top:parseInt(z.top+(A.top-z.top)*a,10),left:parseInt(z.left+(A.left-z.left)*a,10)};typeof A.opacity!="undefined"&&(b.opacity=a<.5?.5:a),e.css(b),g.css({width:b.width-p.padding*2,height:b.height-x*a-p.padding*2})},M=function(){return[a(window).width()-p.margin*2,a(window).height()-p.margin*2,a(document).scrollLeft()+p.margin,a(document).scrollTop()+p.margin]},N=function(){var a=M(),b={},c=p.autoScale,d=p.padding*2;return b.width=p.width.toString().indexOf("%")>-1?parseInt(a[0]*parseFloat(p.width)/100,10):p.width+d,b.height=p.height.toString().indexOf("%")>-1?parseInt(a[1]*parseFloat(p.height)/100,10):p.height+d,c&&(b.width>a[0]||b.height>a[1])&&(m.type=="image"||m.type=="swf"?(c=p.width/p.height,b.width>a[0]&&(b.width=a[0],b.height=parseInt((b.width-d)/c+d,10)),b.height>a[1]&&(b.height=a[1],b.width=parseInt((b.height-d)*c+d,10))):(b.width=Math.min(b.width,a[0]),b.height=Math.min(b.height,a[1]))),b.top=parseInt(Math.max(a[3]-20,a[3]+(a[1]-b.height-40)*.5),10),b.left=parseInt(Math.max(a[2]-20,a[2]+(a[0]-b.width-40)*.5),10),b},O=function(){var b=m.orig?a(m.orig):!1,c={};return b&&b.length?(c=b.offset(),c.top+=parseInt(b.css("paddingTop"),10)||0,c.left+=parseInt(b.css("paddingLeft"),10)||0,c.top+=parseInt(b.css("border-top-width"),10)||0,c.left+=parseInt(b.css("border-left-width"),10)||0,c.width=b.width(),c.height=b.height(),c={width:c.width+p.padding*2,height:c.height+p.padding*2,top:c.top-p.padding-20,left:c.left-p.padding-20}):(b=M(),c={width:p.padding*2,height:p.padding*2,top:parseInt(b[3]+b[1]*.5,10),left:parseInt(b[2]+b[0]*.5,10)}),c},P=function(){c.is(":visible")?(a("div",c).css("top",w*-40+"px"),w=(w+1)%12):clearInterval(v)};a.fn.fancybox=function(b){return a(this).length?(a(this).data("fancybox",a.extend({},b,a.metadata?a(this).metadata():{})).unbind("click.fb").bind("click.fb",function(b){b.preventDefault(),B||(B=!0,a(this).blur(),n=[],l=0,b=a(this).attr("rel")||"",!b||b==""||b==="nofollow"?n.push(this):(n=a("a[rel="+b+"], area[rel="+b+"]"),l=n.index(this)),G())}),this):this},a.fancybox=function(b,c){var d;if(!B){B=!0,d=typeof c!="undefined"?c:{},n=[],l=parseInt(d.index,10)||0;if(a.isArray(b)){for(var e=0,f=b.length;e<f;e++)typeof b[e]=="object"?a(b[e]).data("fancybox",a.extend({},d,b[e])):b[e]=a({}).data("fancybox",a.extend({content:b[e]},d));n=jQuery.merge(n,b)}else typeof b=="object"?a(b).data("fancybox",a.extend({},d,b)):b=a({}).data("fancybox",a.extend({content:b},d)),n.push(b);if(l>n.length||l<0)l=0;G()}},a.fancybox.showActivity=function(){clearInterval(v),c.show(),v=setInterval(P,66)},a.fancybox.hideActivity=function(){c.hide()},a.fancybox.next=function(){return a.fancybox.pos(o+1)},a.fancybox.prev=function(){return a.fancybox.pos(o-1)},a.fancybox.pos=function(a){B||(a=parseInt(a),n=q,a>-1&&a<q.length?(l=a,G()):p.cyclic&&q.length>1&&(l=a>=q.length?0:q.length-1,G()))},a.fancybox.cancel=function(){B||(B=!0,a.event.trigger("fancybox-cancel"),E(),m.onCancel(n,l,m),B=!1)},a.fancybox.close=function(){function b(){d.fadeOut("fast"),i.empty().hide(),e.hide(),a.event.trigger("fancybox-cleanup"),g.empty(),p.onClosed(q,o,p),q=m=[],o=l=0,p=m={},B=!1}if(!B&&!e.is(":hidden")){B=!0;if(p&&!1===p.onCleanup(q,o,p))B=!1;else{E(),a(h.add(j).add(k)).hide(),a(g.add(d)).unbind(),a(window).unbind("resize.fb scroll.fb"),a(document).unbind("keydown.fb"),g.find("iframe").attr("src",D&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),p.titlePosition!=="inside"&&i.empty(),e.stop();if(p.transitionOut=="elastic"){z=O();var c=e.position();A={top:c.top,left:c.left,width:e.width(),height:e.height()},p.opacity&&(A.opacity=1),i.empty().hide(),C.prop=1,a(C).animate({prop:0},{duration:p.speedOut,easing:p.easingOut,step:L,complete:b})}else e.fadeOut(p.transitionOut=="none"?0:p.speedOut,b)}}},a.fancybox.resize=function(){d.is(":visible")&&d.css("height",a(document).height()),a.fancybox.center(!0)},a.fancybox.center=function(a){var b,c;B||(c=a===!0?1:0,b=M(),!c&&(e.width()>b[0]||e.height()>b[1])||e.stop().animate({top:parseInt(Math.max(b[3]-20,b[3]+(b[1]-g.height()-40)*.5-p.padding)),left:parseInt(Math.max(b[2]-20,b[2]+(b[0]-g.width()-40)*.5-p.padding))},typeof a=="number"?a:200))},a.fancybox.init=function(){a("#fancybox-wrap").length||(a("body").append(b=a('<div id="fancybox-tmp"></div>'),c=a('<div id="fancybox-loading"><div></div></div>'),d=a('<div id="fancybox-overlay"></div>'),e=a('<div id="fancybox-wrap"></div>')),f=a('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(e),f.append(g=a('<div id="fancybox-content"></div>'),h=a('<a id="fancybox-close"></a>'),i=a('<div id="fancybox-title"></div>'),j=a('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),k=a('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),h.click(a.fancybox.close),c.click(a.fancybox.cancel),j.click(function(b){b.preventDefault(),a.fancybox.prev()}),k.click(function(b){b.preventDefault(),a.fancybox.next()}),a.fn.mousewheel&&e.bind("mousewheel.fb",function(b,c){if(B)b.preventDefault();else if(a(b.target).get(0).clientHeight==0||a(b.target).get(0).scrollHeight===a(b.target).get(0).clientHeight)b.preventDefault(),a.fancybox[c>0?"prev":"next"]()}),a.support.opacity||e.addClass("fancybox-ie"),D&&(c.addClass("fancybox-ie6"),e.addClass("fancybox-ie6"),a('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(f)))},a.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},a(document).ready(function(){a.fancybox.init()})}(jQuery),eli18n.prototype=new function(){this.messages={},this._domain="",this.load=function(a){if(typeof a=="object")for(var b in a){var c=a[b];if(typeof c=="object"){this.messages[b]||(this.messages[b]={});for(var d in c)typeof c[d]=="string"&&(this.messages[b][d]=c[d])}}return this},this.translate=function(a,b){var b=b&&this.messages[b]?b:this._domain;return this.messages[b]&&this.messages[b][a]?this.messages[b][a]:a},this.format=function(a,b,c){a=this.translate(a,c);if(typeof b=="object")for(var d in b)a=a.replace("%"+d,this.translate(b[d],c));return a}},function(a){a.fn.elColorPicker=function(b){function e(a){c.val(a),d.change&&d.change(c.val()),c.palette.slideUp()}function f(){c.palette=a("<div />").addClass(d.paletteClass+" rounded-3");for(var b=0;b<d.colors.length;b++)a("<div />").addClass("color").css("background-color",d.colors[b]).attr({title:d.colors[b],unselectable:"on"}).appendTo(c.palette).mouseenter(function(){var b=a(this).attr("title");c.input.val(b),c.preview.css("background-color",b)}).click(function(b){b.stopPropagation(),e(a(this).attr("title"))});c.input=a('<input type="text" />').addClass("rounded-3").attr("size",8).click(function(b){b.stopPropagation(),a(this).focus()}).keydown(function(b){if(b.ctrlKey||b.metaKey)return!0;var d=b.keyCode;if(d==27)return c.mouseleave();if(d!=8&&d!=13&&d!=46&&d!=37&&d!=39&&(d<48||d>57)&&(d<65||d>70))return!1;var f=a(this).val();if(f.length==7||f.length==0){d==13&&(b.stopPropagation(),b.preventDefault(),e(f),c.palette.slideUp());if(b.keyCode!=8&&b.keyCode!=46&&d!=37&&d!=39)return!1}}).keyup(function(b){var d=a(this).val();d.length==7&&/^#[0-9abcdef]{6}$/i.test(d)&&c.val(d)}),c.preview=a("<div />").addClass("preview rounded-3").click(function(a){a.stopPropagation(),e(c.input.val())}),c.palette.append(a("<div />").addClass("clearfix")).append(a("<div />").addClass("panel").append(c.input).append(c.preview)),d.palettePosition=="outer"?(c.palette.hide().appendTo(c.parents("body").eq(0)).mouseleave(function(){c.palette.is(":animated")||(a(this).slideUp(),c.val(c.val()))}),c.mouseleave(function(a){a.relatedTarget!=c.palette.get(0)&&(c.palette.is(":animated")||(c.palette.slideUp(),c.val(c.val())))})):c.append(c.palette.hide()).mouseleave(function(a){c.palette.slideUp(),c.val(c.val())}),c.val(c.val())}var c=this,d=a.extend({},a.fn.elColorPicker.defaults,b);return this.hidden=a('<input type="hidden" />').attr("name",d.name).val(d.color||"").appendTo(this),this.palette=null,this.preview=null,this.input=null,this.empty().addClass(d["class"]+" rounded-3").css({position:"relative","background-color":d.color||""}).click(function(b){if(!c.hasClass("disabled")){!c.palette&&f();if(d.palettePosition=="outer"&&c.palette.css("display")=="none"){var e=a(this).offset(),h=c.palette.width(),i=c.parents("body").width()-e.left>=h?e.left:e.left+a(this).outerWidth()-h;c.palette.css({left:i+"px",top:e.top+a(this).height()+1+"px"})}c.palette.slideToggle()}}),this.val=function(a){return!a&&a!==""?this.hidden.val():(this.hidden.val(a),d.update?d.update(this.hidden.val()):this.css("background-color",a),c.palette&&(c.preview.css("background-color",a),c.input.val(a)),this)},this},a.fn.elColorPicker.defaults={"class":"el-colorpicker",paletteClass:"el-palette",palettePosition:"inner",name:"color",color:"",update:null,change:function(a){},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","#3366ff","#0033ff","#0033cc","#003399","#ccccff","#9999cc","#666699","#333366","#000033","#9999ff","#6666cc","#3333cc","#333399","#000066","#6666ff","#3333ff","#0000ff","#0000cc","#009999","#9966ff","#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(b){function i(a){function b(a){return hexDigits=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],a?hexDigits[(a-a%16)/16]+hexDigits[a%16]:"00"}var c=(a||"").match(/\(([0-9]{1,3}),\s*([0-9]{1,3}),\s*([0-9]{1,3})\)/);return c?"#"+b(c[1])+b(c[2])+b(c[3]):""}function j(b){if(!b)return b;var c=b.match(/([0-9]+\.?[0-9]*)\s*(px|pt|em|%)/);c&&(b=c[1],unit=c[2]),b[0]=="."&&(b="0"+b),b=parseFloat(b);if(isNaN(b))return"";var d=parseInt(a(document.body).css("font-size"))||16;switch(unit){case"em":return parseInt(b*d);case"pt":return parseInt(b*d/12);case"%":return parseInt(b*d/100)}return b}var c=this,d=this.eq(0),e=a.extend({},a.fn.elBorderSelect.defaults,b),f=a('<input type="text" />').attr({name:e.name+"[width]",size:3}).css("text-align","right").change(function(){c.change()}),g=a("<div />").css("position","relative").elColorPicker({"class":"el-colorpicker ui-icon ui-icon-pencil",name:e.name+"[color]",palettePosition:"outer",change:function(){c.change()}}),h=a("<div />").elSelect({tpl:'<div style="border-bottom:4px %val #000;width:100%;margin:7px 0"> </div>',tpls:{"":"%label"},maxHeight:e.styleHeight||null,select:function(){c.change()},src:{"":"none",solid:"solid",dashed:"dashed",dotted:"dotted","double":"double",groove:"groove",ridge:"ridge",inset:"inset",outset:"outset"}});return d.empty().addClass(e["class"]).attr("name",e.name||"").append(a("<table />").attr("cellspacing",0).append(a("<tr />").append(a("<td />").append(f).append(" px")).append(a("<td />").append(h)).append(a("<td />").append(g)))),this.change=function(){e.change&&e.change(this.val())},this.val=function(b){var c,d,e,k,l;return!b&&b!==""?(c=parseInt(f.val()),c=isNaN(c)?"":c+"px",d=h.val(),e=g.val(),{width:c,style:d,color:e,css:a.trim(c+" "+d+" "+e)}):(k="",b.nodeName||b.css?(b.css||(b=a(b)),k=b.css("border"),(k=b.css("border"))?c=d=e=k:(c=b.css("border-width"),d=b.css("border-style"),e=b.css("border-color"))):(c=b.width||"",d=b.style||"",e=b.color||""),f.val(j(c)),l=d?d.match(/(solid|dashed|dotted|double|groove|ridge|inset|outset)/i):"",h.val(l?l[1]:""),g.val(e.indexOf("#")===0?e:i(e)),this)},this.val(e.value),this},a.fn.elBorderSelect.defaults={name:"el-borderselect","class":"el-borderselect",value:{},change:null}}(jQuery),function(a){a.fn.elPaddingInput=function(b){function e(b){return b=a.trim(b.toString()),b[0]=="."&&(b="0"+b),n=parseFloat(b),isNaN(n)?b=="auto"?b:"":n}function f(){d.change&&d.change(c)}var c=this,d=a.extend({},a.fn.elPaddingInput.defaults,{name:this.attr("name")},b);return this.regexps={main:new RegExp(d.type=="padding"?'paddings*:s*([^;"]+)':'margins*:s*([^;"]+)',"im"),left:new RegExp(d.type=="padding"?'padding-lefts*:s*([^;"]+)':'margin-lefts*:s*([^;"]+)',"im"),top:new RegExp(d.type=="padding"?'padding-tops*:s*([^;"]+)':'margin-tops*:s*([^;"]+)',"im"),right:new RegExp(d.type=="padding"?'padding-rights*:s*([^;"]+)':'margin-rights*:s*([^;"]+)',"im"),bottom:new RegExp(d.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(e(a(this).val())),f()}).attr("name",d.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(){f()}).attr("name",d.name+"["+this+"]"),d.percents&&c[this].append('<option value="%">%</option>')}),this.empty().addClass(d["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(b){if(!b&&b!==""){var d=e(this.left.val()),f=e(this.top.val()),g=e(this.right.val()),h=e(this.bottom.val()),i={left:d=="auto"||d==0?d:d!==""?d+this.uleft.val():"",top:f=="auto"||f==0?f:f!==""?f+this.utop.val():"",right:g=="auto"||g==0?g:g!==""?g+this.uright.val():"",bottom:h=="auto"||h==0?h:h!==""?h+this.ubottom.val():"",css:""};return i.left!==""&&i.right!==""&&i.top!==""&&i.bottom!==""&&(i.left==i.right&&i.top==i.bottom?i.css=i.top+" "+i.left:i.css=i.top+" "+i.right+" "+i.bottom+" "+i.left),i}if(b.nodeName||b.css){b.css||(b=a(b));var j={left:"",top:"",right:"",bottom:""},k=(b.attr("style")||"").toLowerCase();if(k){k=a.trim(k);var l=k.match(this.regexps.main);if(l){var m=a.trim(l[1]).replace(/\s+/g," ").split(" ",4);j.top=m[0],j.right=m[1]&&m[1]!==""?m[1]:j.top,j.bottom=m[2]&&m[2]!==""?m[2]:j.top,j.left=m[3]&&m[3]!==""?m[3]:j.right}else a.each(["left","top","right","bottom"],function(){var a=this.toString();l=k.match(c.regexps[a]),l&&(j[a]=l[1])})}var b=j}return a.each(["left","top","right","bottom"],function(){var a=this.toString();c[a].val(""),c["u"+a].val();if(typeof b[a]!="undefined"&&b[a]!==null){b[a]=b[a].toString();var d=e(b[a]);c[a].val(d);var f=b[a].match(/(px|em|pt|%)/i);c["u"+a].val(f?f[1]:"px")}}),this},this.val(d.value),this},a.fn.elPaddingInput.defaults={name:"el-paddinginput","class":"el-paddinginput",type:"padding",value:{},percents:!0,change:null}}(jQuery),function(a){a.fn.elSelect=function(b){function l(a){var b=e.labelTpl||e.tpls[a]||e.tpl;g.html(b.replace(/%val/g,a).replace(/%label/,e.src[a])).children().attr({unselectable:"on"})}function m(){h=a("<div />").addClass(e.listClass+" rounded-3").hide().appendTo(d.mouseleave(function(a){h.slideUp()}));for(var b in e.src){var g=e.tpls[b]||e.tpl;a("<div />").attr("name",b).append(a(g.replace(/%val/g,b).replace(/%label/g,e.src[b])).attr({unselectable:"on"})).appendTo(h).hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).click(function(b){b.stopPropagation(),b.preventDefault();var d=a(this).attr("name");c.val(d),e.select(d),h.slideUp()})}var i=d.outerWidth();h.width()<i&&h.width(i);var j=h.height();e.maxHeight>0&&j>e.maxHeight&&h.height(e.maxHeight),c.val(f.val())}var c=this,d=this.eq(0),e=a.extend({},a.fn.elSelect.defaults,b),f=a('<input type="hidden" />').attr("name",e.name),g=a("<label />").attr({unselectable:"on"}).addClass("rounded-left-3"),h=null,i=null;d.get(0).nodeName=="SELECT"&&(e.src={},d.children("option").each(function(){e.src[a(this).val()]=a(this).text()}),e.value=d.val(),e.name=d.attr("name"),d.replaceWith(d=a("<div />")));if(!e.value||!e.src[e.val]){e.value=null;var j=0;for(var k in e.src)j++==0&&(e.value=k)}return this.val=function(b){return!b&&b!==""?f.val():(e.src[b]&&(f.val(b),l(b),h&&h.children().each(function(){a(this).attr("name")==b?a(this).addClass("active"):a(this).removeClass("active")})),this)},d.empty().addClass(e["class"]+" rounded-3").attr({unselectable:"on"}).append(f).append(g).hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).click(function(b){!h&&m(),h.slideToggle(),a.browser.msie&&!i&&(h.children().each(function(){i=Math.max(i,a(this).width())}),i>h.width()&&h.width(i+40))}),this.val(e.value),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(a){window.console&&window.console.log&&window.console.log("selected: "+a)},maxHeight:410}}(jQuery),function(a){elRTE=function(b,c){if(!b||!b.nodeName)return alert('elRTE: argument "target" is not DOM Element');var d=this,e;this.version="1.3",this.build="2011-06-23",this.options=a.extend(!0,{},this.options,c),this.browser=a.browser,this.target=a(b),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],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(){d.workzone.add(d.iframe).add(d.source).height(d.workzone.height())},this.resizable=function(b){var c=this;this.options.resizable&&a.fn.resizable&&(b?this.editor.resizable({handles:"se",alsoResize:this.workzone,minWidth:300,minHeight:200}).bind("resize",c.updateHeight):this.editor.resizable("destroy").unbind("resize",c.updateHeight))},this.editor.insertAfter(b);var f="";b.nodeName=="TEXTAREA"?(this.source=this.target,this.source.insertAfter(this.iframe).hide(),f=this.target.val()):(this.source=a("<textarea />").insertAfter(this.iframe).hide(),f=this.target.hide().html()),this.source.attr("name",this.target.attr("name")||this.target.attr("id")),f=a.trim(f),f||(f=" "),this.options.allowSource&&this.tabsbar.append('<div class="tab editor rounded-bottom-7 active">'+d.i18n("Editor")+'</div><div class="tab source rounded-bottom-7">'+d.i18n("Source")+'</div><div class="clearfix" style="clear:both"/>').children(".tab").click(function(b){a(this).hasClass("active")||(d.tabsbar.children(".tab").toggleClass("active"),d.workzone.children().toggle(),a(this).hasClass("editor")?(d.updateEditor(),d.window.focus(),d.ui.update(!0)):(d.updateSource(),d.source.focus(),a.browser.msie||d.source[0].setSelectionRange(0,0),d.ui.disable(),d.statusbar.empty()))}),this.window=this.iframe.contentWindow,this.doc=this.iframe.contentWindow.document,this.$doc=a(this.doc),e='<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',a.each(d.options.cssfiles,function(){e+='<link rel="stylesheet" type="text/css" href="'+this+'" />'}),this.doc.open();var g=this.filter.wysiwyg(f),h=this.rtl?' class="el-rte-rtl"':"";this.doc.write(d.options.doctype+e+"</head><body"+h+">"+g+"</body></html>"),this.doc.close();if(a.browser.msie)this.doc.body.contentEditable=!0;else{try{this.doc.designMode="on"}catch(i){}this.doc.execCommand("styleWithCSS",!1,this.options.styleWithCSS)}this.options.height>0&&this.workzone.height(this.options.height),this.options.width>0&&this.editor.width(this.options.width),this.updateHeight(),this.resizable(!0),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(a){d.source.parents("form").find('[name="el-select"]').remove(),d.beforeSave()}),this.source.bind("keydown",function(b){if(b.keyCode==9){b.preventDefault();if(a.browser.msie){var c=document.selection.createRange();c.text="\t"+c.text,this.focus()}else{var d=this.value.substr(0,this.selectionStart),e=this.value.substr(this.selectionEnd);this.value=d+"\t"+e,this.setSelectionRange(d.length+1,d.length+1)}}}),a(this.doc.body).bind("dragend",function(a){setTimeout(function(){try{d.window.focus();var a=d.selection.getBookmark();d.selection.moveToBookmark(a),d.ui.update()}catch(b){}},200)}),this.typing=!1,this.lastKey=null,this.$doc.bind("mouseup",function(){d.typing=!1,d.lastKey=null,d.ui.update()}).bind("keyup",function(a){(a.keyCode>=8&&a.keyCode<=13||a.keyCode>=32&&a.keyCode<=40||a.keyCode==46||a.keyCode>=96&&a.keyCode<=111)&&d.ui.update()}).bind("keydown",function(b){if((b.metaKey||b.ctrlKey)&&b.keyCode==65)d.ui.update();else if(b.keyCode==13){var c=d.selection.getNode();if(d.dom.selfOrParent(c,/^PRE$/))return d.selection.insertNode(d.doc.createTextNode("\r\n")),!1;if(a.browser.safari&&b.shiftKey)return d.selection.insertNode(d.doc.createElement("br")),!1}if(b.keyCode>=48&&b.keyCode<=57||b.keyCode==61||b.keyCode==109||b.keyCode>=65&&b.keyCode<=90||b.keyCode==188||b.keyCode==190||b.keyCode==191||b.keyCode>=219&&b.keyCode<=222)d.typing||d.history.add(!0),d.typing=!0,d.lastKey=null;else if(b.keyCode==8||b.keyCode==46||b.keyCode==32||b.keyCode==13)b.keyCode!=d.lastKey&&d.history.add(!0),d.lastKey=b.keyCode,d.typing=!1;if(b.keyCode==32&&a.browser.opera)return d.selection.insertNode(d.doc.createTextNode(" ")),!1}).bind("paste",function(b){if(!d.options.allowPaste)b.stopPropagation(),b.preventDefault();else{var c=a(d.dom.create("div"))[0],e=d.doc.createTextNode("_");d.history.add(!0),d.typing=!0,d.lastKey=null,c.appendChild(e),d.selection.deleteContents().insertNode(c),d.selection.select(e),setTimeout(function(){c.parentNode?(a(c).html(d.filter.proccess("paste",a(c).html())),e=c.lastChild,d.dom.unwrap(c),e&&(d.selection.select(e),d.selection.collapse(!1))):(c.parentNode&&c.parentNode.removeChild(c),d.val(d.filter.proccess("paste",d.filter.wysiwyg2wysiwyg(a(d.doc.body).html()))),d.selection.select(d.doc.body.firstChild),d.selection.collapse(!0)),a(d.doc.body).mouseup()},15)}}),a.browser.msie&&this.$doc.bind("keyup",function(b){b.keyCode==86&&(b.metaKey||b.ctrlKey)&&(d.history.add(!0),d.typing=!0,d.lastKey=null,d.selection.saveIERange(),d.val(d.filter.proccess("paste",d.filter.wysiwyg2wysiwyg(a(d.doc.body).html()))),d.selection.restoreIERange(),a(d.doc.body).mouseup(),this.ui.update())}),a.browser.safari&&this.$doc.bind("click",function(b){a(d.doc.body).find(".elrte-webkit-hl").removeClass("elrte-webkit-hl"),b.target.nodeName=="IMG"&&a(b.target).addClass("elrte-webkit-hl")}).bind("keyup",function(b){a(d.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(a){return this._i18n.translate(a)},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,this.source.is(":visible")?this.source.val(this.filter.source2source(b)):a.browser.msie?(this.doc.body.innerHTML="<br />"+this.filter.wysiwyg(b),this.doc.body.removeChild(this.doc.body.firstChild)):this.doc.body.innerHTML=this.filter.wysiwyg(b);else return this.source.is(":visible")?this.filter.source2source(this.source.val()).trim():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(a){window.console&&window.console.log&&window.console.log(a)},elRTE.prototype.i18Messages={},a.fn.elrte=function(a,b){var c=typeof a=="string"?a:"",d;return this.each(function(){this.elrte||(this.elrte=new elRTE(this,typeof a=="object"?a:{}));switch(c){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()}}),c=="val"?this.length?this.length==1?b?this[0].elrte.val(b):this[0].elrte.val():(d={},this.each(function(){d[this.elrte.source.attr("name")]=this.elrte.val()}),d):"":this}}(jQuery),function(a){elRTE.prototype.dom=function(b){this.rte=b;var c=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|BLOCKQUOTE|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|TFOOT|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(a){return this.rte.doc.createElement(a)},this.createBookmark=function(){var b=this.rte.doc.createElement("span");return b.id="elrte-bm-"+Math.random().toString().substr(2),a(b).addClass("elrtebm elrte-protected"),b},this.indexOf=function(b){var c=0;b=a(b);while((b=b.prev())&&b.length)c++;return c},this.attr=function(b,c){var d="";return b.nodeType==1&&(d=a(b).attr(c),d&&c!="src"&&c!="href"&&c!="title"&&c!="alt"&&(d=d.toString().toLowerCase())),d||""},this.findCommonAncestor=function(b,c){if(!b||!c)return this.rte.log("dom.findCommonAncestor invalid arguments");if(b==c)return b;if(b.nodeName=="BODY"||c.nodeName=="BODY")return this.rte.doc.body;var d=a(b).parents(),e=a(c).parents(),f=e.length-1,g=e[f];for(var h=d.length-1;h>=0;h--,f--)if(d[h]==e[f])g=d[h];else break;return g},this.isEmpty=function(b){return b.nodeType==1?this.regExp.textNodes.test(b.nodeName)?a.trim(a(b).text()).length==0:!1:b.nodeType==3?/^(TABLE|THEAD|TFOOT|TBODY|TR|UL|OL|DL)$/.test(b.parentNode.nodeName)||b.nodeValue==""||a.trim(b.nodeValue).length==0&&!(b.nextSibling&&b.previousSibling&&b.nextSibling.nodeType==1&&b.previousSibling.nodeType==1&&!this.regExp.block.test(b.nextSibling.nodeName)&&!this.regExp.block.test(b.previousSibling.nodeName)):!0},this.next=function(a){while(a.nextSibling&&(a=a.nextSibling))if(a.nodeType==1||a.nodeType==3&&!this.isEmpty(a))return a;return null},this.prev=function(a){while(a.previousSibling&&(a=a.previousSibling))if(a.nodeType==1||a.nodeType==3&&!this.isEmpty(a))return a;return null},this.isPrev=function(a,b){while(a=this.prev(a))if(a==b)return!0;return!1},this.nextAll=function(a){var b=[];while(a=this.next(a))b.push(a);return b},this.prevAll=function(a){var b=[];while(a=this.prev(a))b.push(a);return b},this.toLineEnd=function(a){var b=[];while((a=this.next(a))&&a.nodeName!="BR"&&a.nodeName!="HR"&&this.isInline(a))b.push(a);return b},this.toLineStart=function(a){var b=[];while((a=this.prev(a))&&a.nodeName!="BR"&&a.nodeName!="HR"&&this.isInline(a))b.unshift(a);return b},this.isFirstNotEmpty=function(b){while(b=this.prev(b))if(b.nodeType==1||b.nodeType==3&&a.trim(b.nodeValue)!="")return!1;return!0},this.isLastNotEmpty=function(a){while(a=this.next(a))if(!this.isEmpty(a))return!1;return!0},this.isOnlyNotEmpty=function(a){return this.isFirstNotEmpty(a)&&this.isLastNotEmpty(a)},this.findLastNotEmpty=function(a){this.rte.log("findLastNotEmpty Who is here 0_o");if(a.nodeType==1&&(l=a.lastChild)){if(!this.isEmpty(l))return l;while(l.previousSibling&&(l=l.previousSibling))if(!this.isEmpty(l))return l}return!1},this.isInline=function(b){if(b.nodeType==3)return!0;if(b.nodeType==1){b=a(b);var c=b.css("display"),d=b.css("float");return c=="inline"||c=="inline-block"||d=="left"||d=="right"}return!0},this.is=function(a,b){if(a&&a.nodeName){typeof b=="string"&&(b=this.regExp[b]||/.?/);if(b instanceof RegExp&&a.nodeName)return b.test(a.nodeName);if(typeof b=="function")return b(a)}return!1},this.filter=function(a,b){var c=[],d;if(!a.push)return this.is(a,b)?a:null;for(d=0;d<a.length;d++)this.is(a[d],b)&&c.push(a[d]);return c},this.parents=function(a,b){var c=[];while(a&&(a=a.parentNode)&&a.nodeName!="BODY"&&a.nodeName!="HTML")this.is(a,b)&&c.push(a);return c},this.parent=function(a,b){return this.parents(a,b)[0]||null},this.selfOrParent=function(a,b,c){return this.is(a,b)?a:this.parent(a,c||b)},this.selfOrParentLink=function(a){return a=this.selfOrParent(a,/^A$/),a&&a.href?a:null},this.selfOrParentAnchor=function(a){return a=this.selfOrParent(a,/^A$/),a&&!a.href&&a.name?a:null},this.childLinks=function(b){var c=[];return a("a[href]",b).each(function(){c.push(this)}),c},this.selectionHas=function(a){var b=this.rte.selection.cloneContents(),c;if(b&&b.childNodes&&b.childNodes.length)for(c=0;c<b.childNodes.length;c++)if(typeof a=="function"){if(a(b.childNodes[c]))return!0}else if(b instanceof RegExp&&a.test(b.childNodes[c].nodeName))return!0;return!1},this.wrap=function(b,c){return b=a.isArray(b)?b:[b],c=c.nodeName?c:this.create(c),b[0]&&b[0].nodeType&&b[0].parentNode&&(c=b[0].parentNode.insertBefore(c,b[0]),a(b).each(function(){this!=c&&c.appendChild(this)})),c},this.unwrap=function(a){if(a&&a.parentNode){while(a.firstChild)a.parentNode.insertBefore(a.firstChild,a);a.parentNode.removeChild(a)}},this.wrapContents=function(a,b){b=b.nodeName?b:this.create(b);for(var c=0;c<a.childNodes.length;c++)b.appendChild(a.childNodes[c]);return a.appendChild(b),b},this.cleanNode=function(b){if(b.nodeType!=1)return;/^(P|LI)$/.test(b.nodeName)&&(l=this.findLastNotEmpty(b))&&l.nodeName=="BR"&&a(l).remove(),$n=a(b),$n.children().each(function(){this.cleanNode(this)});if(b.nodeName!="BODY"&&!/^(TABLE|TR|TD)$/.test(b)&&this.isEmpty(b))return $n.remove();$n.attr("style")===""&&$n.removeAttr("style"),this.rte.browser.safari&&$n.hasClass("Apple-span")&&$n.removeClass("Apple-span"),b.nodeName=="SPAN"&&!$n.attr("style")&&!$n.attr("class")&&!$n.attr("id")&&$n.replaceWith($n.html())},this.cleanChildNodes=function(b){var c=this.cleanNode;a(b).children().each(function(){c(this)})},this.tableMatrix=function(b){var c=[];if(b&&b.nodeName=="TABLE"){var d=0;function e(a){for(var b=0;b<=d;b++)if(!c[a][b])return b}a(b).find("tr").each(function(b){a.isArray(c[b])||(c[b]=[]),a(this).children("td,th").each(function(){var i=parseInt(a(this).attr("colspan")||1),j=parseInt(a(this).attr("rowspan")||1),l=e(b);for(var m=0;m<j;m++)for(var n=0;n<i;n++){var o=b+m;a.isArray(c[o])||(c[o]=[]);var p=n==0&&m==0?this:m==0?n:"-";c[o][l+n]=p}d=Math.max(d,c[b].length)})})}return c},this.indexesOfCell=function(a,b){for(var c=0;c<b.length;c++)for(var d=0;d<b[c].length;d++)if(b[c][d]==a)return[c,d]},this.fixTable=function(b){if(b&&b.nodeName=="TABLE"){var c=a(b),d=this.tableMatrix(b),e=0;a.each(d,function(){e=Math.max(e,this.length)});if(e==0)return c.remove();for(var f=0;f<d.length;f++){var g=d[f].length;if(g==0)c.find("tr").eq(f).remove();else if(g<e){var h=e-g,j=c.find("tr").eq(f);for(i=0;i<h;i++)j.append("<td>&nbsp;</td>")}}}},this.tableColumn=function(a,b,c){a=this.selfOrParent(a,/^TD|TH$/);var d=this.selfOrParent(a,/^TABLE$/);ret=[],info={offset:[],delta:[]};if(a&&d){c&&this.fixTable(d);var e=this.tableMatrix(d),f=!1,g;for(var h=0;h<e.length;h++){for(var i=0;i<e[h].length;i++)if(e[h][i]==a){g=i,f=!0;break}if(f)break}if(g>=0)for(var h=0;h<e.length;h++){var j=e[h][g]||null;if(j)if(j.nodeName)ret.push(j),b&&(info.delta.push(0),info.offset.push(g));else{var k=parseInt(j);!isNaN(k)&&e[h][g-k]&&e[h][g-k].nodeName&&(ret.push(e[h][g-k]),b&&(info.delta.push(k),info.offset.push(g)))}}}return b?{column:ret,info:info}:ret}}}(jQuery),function(a){elRTE.prototype.filter=function(b){var c=this,d=a("<span/>").addClass("elrtetesturl").appendTo(document.body)[0];this.url=(typeof d.currentStyle!="undefined"?d.currentStyle.backgroundImage:document.defaultView.getComputedStyle(d,null).backgroundImage).replace(/^url\((['"]?)([\s\S]+\/)[\s\S]+\1\)$/i,"$2"),a(d).remove(),this.rte=b,this.xhtml=/xhtml/i.test(b.options.doctype),this.boolAttrs=b.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=b.options.allowTags.length?b.utils.makeObject(b.options.allowTags):null,this.denyTags=b.options.denyTags.length?b.utils.makeObject(b.options.denyTags):null,this.denyAttr=b.options.denyAttr?b.utils.makeObject(b.options.denyAttr):null,this.pasteDenyAttr=b.options.pasteDenyAttr?b.utils.makeObject(b.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(b){c._chains[b]=[],a.each(this,function(a,d){typeof c.rules[d]=="function"&&c._chains[b].push(c.rules[d])})}),this.proccess=function(b,d){return d=a.trim(d).replace(/^\s*(&nbsp;)+/gi,"").replace(/(&nbsp;|<br[^>]*>)+\s*$/gi,""),a.each(this._chains[b]||[],function(){d=this.call(c,d)}),d=d.replace(/\t/g,"  ").replace(/\r/g,"").replace(/\s*\n\s*\n+/g,"\n")+"  ",a.trim(d)?d:" "},this.wysiwyg=function(a){return this.proccess("wysiwyg",a)},this.source=function(a){return this.proccess("source",a)},this.source2source=function(a){return this.proccess("source2source",a)},this.wysiwyg2wysiwyg=function(a){return this.proccess("wysiwyg2wysiwyg",a)},this.parseAttrs=function(b){var c={},d=this.boolAttrs,e=b.match(this.attrRegExp),f,g,h;return e&&a.each(e,function(b,e){f=e.split("="),g=a.trim(f[0]).toLowerCase(),f.length>2?(f.shift(),h=f.join("=")):h=d[g]||f[1]||"",c[g]=a.trim(h).replace(/^('|")(.*)(\1)$/,"$2")}),c.style=this.rte.utils.parseStyle(c.style),c["class"]=this.rte.utils.parseClass(c["class"]||""),c},this.serializeAttrs=function(b,c){var d=[],e=this;return a.each(b,function(a,b){a=="style"?b=e.rte.utils.serializeStyle(b,c):a=="class"&&(b=e.rte.utils.serializeClass(b)),b&&d.push(a+'="'+b+'"')}),d.join(" ")},this.cleanAttrs=function(b,c){function f(a){return a+(/\d$/.test(a)?"px":"")}var d=this,e=this.replaceAttrs;return a.each(b["class"],function(a){/^(Apple-style-span|mso\w+)$/i.test(a)&&delete b["class"][a]}),a.each(b,function(i,l){e[i]&&e[i].call(d,b,c),i=="style"&&a.each(l,function(a,c){switch(a){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":b.style[a.replace(/^mso-|-alt$/g,"")]=f(c),delete b.style[a];break;case"horiz-align":b.style["text-align"]=c,delete b.style[a];break;case"vert-align":b.style["vertical-align"]=c,delete b.style[a];break;case"font-color":case"mso-foreground":b.style.color=c,delete b.style[a];break;case"mso-background":case"mso-highlight":b.style.background=c,delete b.style[a];break;case"mso-default-height":b.style["min-height"]=f(c),delete b.style[a];break;case"mso-default-width":b.style["min-width"]=f(c),delete b.style[a];break;case"mso-padding-between-alt":b.style["border-collapse"]="separate",b.style["border-spacing"]=f(c),delete b.style[a];break;case"text-line-through":c.match(/(single|double)/i)&&(b.style["text-decoration"]="line-through"),delete b.style[a];break;case"mso-zero-height":c=="yes"&&(b.style.display="none"),delete b.style[a];break;case"font-weight":c==700&&(b.style["font-weight"]="bold");break;default:a.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 b.style[a]}})}),b}},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(a,b){switch(b){case"img":a.style[a.align.match(/(left|right)/)?"float":"vertical-align"]=a.align;break;case"table":a.align=="center"?a.style["margin-left"]=a.style["margin-right"]="auto":a.style["float"]=a.align;break;default:a.style["text-align"]=a.align}delete a.align},border:function(a){!a.style["border-width"]&&(a.style["border-width"]=(parseInt(a.border)||1)+"px"),!a.style["border-style"]&&(a.style["border-style"]="solid"),delete a.border},bordercolor:function(a){!a.style["border-color"]&&(a.style["border-color"]=a.bordercolor),delete a.bordercolor},background:function(a){!a.style["background-image"]&&(a.style["background-image"]="url("+a.background+")"),delete a.background},bgcolor:function(a){!a.style["background-color"]&&(a.style["background-color"]=a.bgcolor),delete a.bgcolor},clear:function(a){a.style.clear=a.clear=="all"?"both":a.clear,delete a.clear},color:function(a){!a.style.color&&(a.style.color=a.color),delete a.color},face:function(b){var c=b.face.toLowerCase();a.each(this.fontFamily,function(a,d){c.match(d)&&(b.style["font-family"]=c+","+a)}),delete b.face},hspace:function(a,b){if(b=="img"){var c=parseInt(a.hspace)||0;!a.style["margin-left"]&&(a.style["margin-left"]=c+"px"),!a.style["margin-right"]&&(a.style["margin-right"]=c+"px"),delete a.hspace}},size:function(a,b){b!="input"&&(a.style["font-size"]=this.fontSize[parseInt(a.size)||0]||"medium",delete a.size)},valign:function(a){a.style["vertical-align"]||(a.style["vertical-align"]=a.valign),delete a.valign},vspace:function(a,b){if(b=="img"){var c=parseInt(a.vspace)||0;!a.style["margin-top"]&&(a.style["margin-top"]=c+"px"),!a.style["margin-bottom"]&&(a.style["margin-bottom"]=c+"px"),delete a.hspace}}},elRTE.prototype.filter.prototype.rules={allowedTags:function(a){var b=this.allowTags;return b?a.replace(this.tagRegExp,function(a,c,d){return b[d.toLowerCase()]?a:""}):a},deniedTags:function(a){var b=this.denyTags;return b?a.replace(this.tagRegExp,function(a,d,e){return b[e.toLowerCase()]?"":a}):a},clean:function(b){var c=this,d=this.replaceTags,e=this.replaceAttrs,f=this.denyAttr,g;return b=b.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&nbsp;]*)<\/span>/gi,"$1").replace(/(<p[^>]*>\s*<\/p>|<p[^>]*\/>)/gi,"<br>").replace(/(<\/p>)(?:\s*<br\s*\/?>\s*|\s*&nbsp;\s*)+\s*(<p[^>]*>)/gi,function(a,b,c){return b+"\n"+c}).replace(this.tagRegExp,function(b,e,g,h){return g=g.toLowerCase(),e?"</"+(d[g]?d[g].tag:g)+">":(h=c.cleanAttrs(c.parseAttrs(h||""),g),d[g]&&(d[g].style&&a.extend(h.style,d[g].style),g=d[g].tag),f&&a.each(h,function(a){f[a]&&delete h[a]}),h=c.serializeAttrs(h),"<"+g+(h?" ":"")+h+">")}),g=a("<div>"+b+"</div>"),g.find("span:not([id]):not([class])").each(function(){var b=a(this);b.
attr("style")||(a.trim(b.html()).length?c.rte.dom.unwrap(this):b.remove())}).end().find("span span:only-child").each(function(){var b=a(this),d=b.parent().eq(0),e=b.attr("id"),f=d.attr("id"),g,h,i;c.rte.dom.isOnlyNotEmpty(this)&&(!e||!f)&&(i=a.trim(d.attr("class")+" "+b.attr("class")),i&&d.attr("class",i),h=c.rte.utils.serializeStyle(a.extend(c.rte.utils.parseStyle(a(this).attr("style")||""),c.rte.utils.parseStyle(a(d).attr("style")||""))),h&&d.attr("style",h),g=e||f,g&&d.attr("id",g),this.firstChild?a(this.firstChild).unwrap():b.remove())}).end().find("a[name]").each(function(){a(this).addClass("elrte-protected elrte-anchor")}),g.html()},cleanPaste:function(b){var c=this,d=this.pasteDenyAttr;return b=b.replace(this.scriptRegExp,"").replace(this.styleRegExp,"").replace(this.linkRegExp,"").replace(this.cdataRegExp,"").replace(/\<\!--[\s\S]*?--\>/g,""),this.rte.options.pasteOnlyText?b=b.replace(this.tagRegExp,function(a,b,c){return/br/i.test(c)||b&&/h[1-6]|p|ol|ul|li|div|blockquote|tr/i?"<br>":""}).replace(/(&nbsp;|<br[^>]*>)+\s*$/gi,""):d&&(b=b.replace(this.openTagRegExp,function(b,e,g){return g=c.parseAttrs(g),a.each(g,function(a){d[a]&&delete g[a]}),g=c.serializeAttrs(g,!0),"<"+e+(g?" ":"")+g+">"})),b},replace:function(b){function f(a,b){function k(){if(a.embed&&a.embed.src)return a.embed.src;if(a.params&&a.params.length){j=a.params.length;while(j--)if(a.params[j].name=="src"||a.params[j].name=="movie")return a.params[j].value}}var d=k(),e=d&&c.videoHostRegExp.test(d)?d.replace(c.videoHostRegExp,"$2"):b.replace(/^\w+\/(.+)/,"$1"),f=parseInt((a.obj?a.obj.width||a.obj.style.width:0)||(a.embed?a.embed.width||a.embed.style.width:0))||150,g=parseInt((a.obj?a.obj.height||a.obj.style.height:0)||(a.embed?a.embed.height||a.embed.style.height:0))||100,h="media"+Math.random().toString().substring(2),i="",j;return a.obj&&a.obj.style&&a.obj.style["float"]&&(i=' style="float:'+a.obj.style["float"]+'"'),c.scripts[h]=a,'<img src="'+c.url+'pixel.gif" class="elrte-media elrte-media-'+e+' elrte-protected" title="'+(d?c.rte.utils.encode(d):"")+'" rel="'+h+'" width="'+f+'" height="'+g+'"'+i+">"}var c=this,d=this.rte.options.replace||[],e;d.length&&a.each(d,function(a,d){typeof d=="function"&&(b=d.call(c,b))}),b=b.replace(this.styleRegExp,"<!-- ELRTE_COMMENT$1 -->").replace(this.linkRegExp,"<!-- ELRTE_COMMENT$1-->").replace(this.cdataRegExp,"<!--[CDATA[$1]]-->").replace(this.scriptRegExp,function(a,b,d){var e;return c.denyTags.script?"":(e="script"+Math.random().toString().substring(2),b=c.parseAttrs(b),!b.type&&(b.type="text/javascript"),c.scripts[e]="<script "+c.serializeAttrs(b)+">"+d+"</script>","<!-- ELRTE_SCRIPT:"+e+" -->")}).replace(this.yMapsRegExp,function(a,b){return b=c.parseAttrs(b),b["class"]["elrte-yandex-maps"]="elrte-yandex-maps",b["class"]["elrte-protected"]="elrte-protected","<div "+c.serializeAttrs(b)+">"}).replace(this.gMapsRegExp,function(a,b){var d="gmaps"+Math.random().toString().substring(2),e,f;return b=c.parseAttrs(b),e=parseInt(b.width||b.style.width||100),f=parseInt(b.height||b.style.height||100),c.scripts[d]=a,'<img src="'+c.url+'pixel.gif" class="elrte-google-maps elrte-protected" id="'+d+'" style="width:'+e+"px;height:"+f+'px">'}).replace(this.objRegExp,function(b,d,e){var g=e.match(c.embRegExp),h={obj:c.parseAttrs(d),embed:g&&g.length?c.parseAttrs(g[0].substring(7)):null,params:[]},i=c.rte.utils.mediaInfo(h.embed?h.embed.type||"":"",h.obj.classid||"");return i?((g=e.match(c.paramRegExp))&&a.each(g,function(a,b){h.params.push(c.parseAttrs(b.substring(6)))}),!h.obj.classid&&(h.obj.classid=i.classid[0]),!h.obj.codebase&&(h.obj.codebase=i.codebase),h.embed&&!h.embed.type&&(h.embed.type=i.type),h.obj.width=="1"&&delete h.obj.width,h.obj.height=="1"&&delete h.obj.height,h.embed&&(h.embed.width=="1"&&delete h.embed.width,h.embed.height=="1"&&delete h.embed.height),f(h,i.type)):b}).replace(this.embRegExp,function(a,b,d){var d=c.parseAttrs(d),e=c.rte.utils.mediaInfo(d.type||"");return d.width=="1"&&delete d.width,d.height=="1"&&delete d.height,e?f({embed:d},e.type):a}).replace(this.iframeRegExp,function(a,b){var b=c.parseAttrs(b),d=b.style.width||(parseInt(b.width)>1?parseInt(b.width)+"px":"100px"),e=b.style.height||(parseInt(b.height)>1?parseInt(b.height)+"px":"100px"),f="iframe"+Math.random().toString().substring(2);c.scripts[f]=a;var g='<img id="'+f+'" src="'+c.url+'pixel.gif" class="elrte-protected elrte-iframe" style="width:'+d+"; height:"+e+'">';return g}).replace(this.vimeoRegExp,function(a,b,d){return d=c.parseAttrs(d),delete d.frameborder,d.width=="1"&&delete d.width,d.height=="1"&&delete d.height,d.type="application/x-shockwave-flash",f({embed:d},"application/x-shockwave-flash")}).replace(/<\/(embed|param)>/gi,"").replace(this.pbRegExp,function(){return'<img src="'+c.url+'pixel.gif" class="elrte-protected elrte-pagebreak">'}),e=a("<div>"+b+"</div>");if(!this.rte.options.allowTextNodes){var g=this.rte.dom,h=[],i=[];if(a.browser.msie)for(var j=0;j<e[0].childNodes.length;j++)h.push(e[0].childNodes[j]);else h=Array.prototype.slice.call(e[0].childNodes);function k(){i.length&&g.filter(i,"notEmpty").length&&g.wrap(i,document.createElement("p")),i=[]}a.each(h,function(a,b){g.is(b,"block")?k():(i.length&&b.previousSibling!=i[i.length-1]&&k(),i.push(b))}),k()}return e.html()},restore:function(b){var c=this,d=this.rte.options.restore||[];return d.length&&a.each(d,function(a,d){typeof d=="function"&&(b=d.call(c,b))}),b=b.replace(/\<\!--\[CDATA\[([\s\S]*?)\]\]--\>/gi,"<![CDATA[$1]]>").replace(/\<\!--\s*ELRTE_SCRIPT\:\s*(script\d+)\s*--\>/gi,function(a,b){return c.scripts[b]&&(a=c.scripts[b],delete c.scripts[b]),a||""}).replace(/\<\!-- ELRTE_COMMENT([\s\S]*?) --\>/gi,"$1").replace(this.serviceClassRegExp,function(b,d,e,f){var e=c.parseAttrs(e),g,h="";if(e["class"]["elrte-google-maps"]){var b="";return c.scripts[e.id]&&(b=c.scripts[e.id],delete c.scripts[e.id]),b}return e["class"]["elrte-iframe"]?c.scripts[e.id]||"":e["class"].elrtebm?"":e["class"]["elrte-media"]?(g=c.scripts[e.rel]||{},g.params&&a.each(g.params,function(a,b){h+="<param "+c.serializeAttrs(b)+">\n"}),g.embed&&(h+="<embed "+c.serializeAttrs(g.embed)+">"),g.obj&&(h="<object "+c.serializeAttrs(g.obj)+">\n"+h+"\n</object>\n"),h||b):e["class"]["elrte-pagebreak"]?"<!-- pagebreak -->":(a.each(e["class"],function(a){/^elrte-\w+/i.test(a)&&delete e["class"][a]}),"<"+d+" "+c.serializeAttrs(e)+">"+(f||""))}),b},compactStyles:function(a){var b=this;return a.replace(this.tagRegExp,function(a,c,d,e){return e=!c&&e?b.serializeAttrs(b.parseAttrs(e),!0):"","<"+c+d.toLowerCase()+(e?" ":"")+e+">"})},xhtmlTags:function(a){return this.xhtml?a.replace(/<(img|hr|br|embed|param|link|area)([^>]*\/*)>/gi,"<$1$2 />"):a}},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(){this.rte.options.historyLength>0&&this._prev.length>=this.rte.options.historyLength&&this._prev.slice(this.rte.options.historyLength);var b=this.rte.selection.getBookmark();this._prev.push([a(this.rte.doc.body).html(),b]),this.rte.selection.moveToBookmark(b),this._next=[]},this.back=function(){if(this._prev.length){var b=this.rte.selection.getBookmark(),c=this._prev.pop();this._next.push([a(this.rte.doc.body).html(),b]),a(this.rte.doc.body).html(c[0]),this.rte.selection.moveToBookmark(c[1])}},this.fwd=function(){if(this._next.length){var b=this.rte.selection.getBookmark(),c=this._next.pop();this._prev.push([a(this.rte.doc.body).html(),b]),a(this.rte.doc.body).html(c[0]),this.rte.selection.moveToBookmark(c[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:!0,lang:"en",toolbar:"normal",absoluteURLs:!0,allowSource:!0,stripWhiteSpace:!0,styleWithCSS:!1,fmAllow:!0,fmOpen:null,allowTags:[],denyTags:["applet","base","basefont","bgsound","blink","body","col","colgroup","isindex","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:!0,allowBrowsersSpecStyles:!1,allowPaste:!0,pasteOnlyText:!1,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",formatblock:"Format",fontsize:"Font size",fontname:"Font",insertorderedlist:"Ordered list",insertunorderedlist:"Unordered list",horizontalrule:"Horizontal rule",blockquote:"Blockquote",div:"Block element (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","justifyright","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","copypaste","undoredo","style","alignment","colors","format","indent","lists","links","elements","media","fullscreen"],maxi:["save","copypaste","undoredo","elfinder","style","alignment","direction","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(b){function h(){return c.rte.window.getSelection?c.rte.window.getSelection():c.rte.window.document.selection}function i(a,b,d){while(a.nodeName!="BODY"&&a.parentNode&&a.parentNode.nodeName!="BODY"&&(b?a!==b&&a.parentNode!=b:1)&&(d=="left"&&c.rte.dom.isFirstNotEmpty(a)||d=="right"&&c.rte.dom.isLastNotEmpty(a)||c.rte.dom.isFirstNotEmpty(a)&&c.rte.dom.isLastNotEmpty(a)))a=a.parentNode;return a}this.rte=b;var c=this;this.w3cRange=null;var d,e,f,g;a(this.rte.doc).keyup(function(a){(a.ctrlKey||a.metaKey||a.keyCode>=8&&a.keyCode<=13||a.keyCode>=32&&a.keyCode<=40||a.keyCode==46||a.keyCode>=96&&a.keyCode<=111)&&c.cleanCache()}).mousedown(function(a){a.target.nodeName=="HTML"?d=c.rte.doc.body:d=a.target,e=f=null}).mouseup(function(a){a.target.nodeName=="HTML"?e=c.rte.doc.body:e=a.target,e=a.target,f=null}).click(),this.collapsed=function(){return this.getRangeAt().isCollapsed()},this.collapse=function(b){var c=h(),d=this.getRangeAt();return d.collapse(b?!0:!1),a.browser.msie||(c.removeAllRanges(),c.addRange(d)),this},this.getRangeAt=function(a){if(this.rte.browser.msie)return this.w3cRange||(this.w3cRange=new this.rte.w3cRange(this.rte)),a&&this.w3cRange.update(),this.w3cRange;var b=h(),c=b.rangeCount>0?b.getRangeAt(0):this.rte.doc.createRange();return c.getStart=function(){return this.startContainer.nodeType==1?this.startContainer.childNodes[Math.min(this.startOffset,this.startContainer.childNodes.length-1)]:this.startContainer},c.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},c.isCollapsed=function(){return this.collapsed},c},this.saveIERange=function(){a.browser.msie&&(g=this.getRangeAt().getBookmark())},this.restoreIERange=function(){a.browser.msie&&g&&this.getRangeAt().moveToBookmark(g)},this.cloneContents=function(){var b=this.rte.dom.create("div"),c,d,e;if(a.browser.msie){try{c=this.rte.window.document.selection.createRange()}catch(f){c=this.rte.doc.body.createTextRange()}a(b).html(c.htmlText)}else{d=this.getRangeAt().cloneContents();for(e=0;e<d.childNodes.length;e++)b.appendChild(d.childNodes[e].cloneNode(!0))}return b},this.select=function(a,b){b=b||a;if(this.rte.browser.msie){var c=this.rte.doc.body.createTextRange(),d=c.duplicate(),e=c.duplicate();d.moveToElementText(a),e.moveToElementText(b),c.setEndPoint("StartToStart",d),c.setEndPoint("EndToEnd",e),c.select()}else{var f=h(),c=this.getRangeAt();c.setStartBefore(a),c.setEndAfter(b),f.removeAllRanges(),f.addRange(c)}return this.cleanCache()},this.selectContents=function(a){var b=this.getRangeAt();if(a&&a.nodeType==1)if(this.rte.browser.msie)b.range(),b.r.moveToElementText(a.parentNode),b.r.select();else{try{b.selectNodeContents(a)}catch(c){return this.rte.log("unable select node contents "+a)}var d=h();d.removeAllRanges(),d.addRange(b)}return this},this.deleteContents=function(){return a.browser.msie||this.getRangeAt().deleteContents(),this},this.insertNode=function(b,c){c&&!this.collapsed()&&this.collapse();if(this.rte.browser.msie){var d=b.nodeType==3?b.nodeValue:a(this.rte.dom.create("span")).append(a(b)).html(),e=this.getRangeAt();e.insertNode(d)}else{var e=this.getRangeAt();e.insertNode(b),e.setStartAfter(b),e.setEndAfter(b);var f=h();f.removeAllRanges(),f.addRange(e)}return this.cleanCache()},this.insertHtml=function(b,c){c&&!this.collapsed()&&this.collapse();if(this.rte.browser.msie)this.getRangeAt().range().pasteHTML(b);else{var d=a(this.rte.dom.create("span")).html(b||"").get(0);this.insertNode(d),a(d).replaceWith(a(d).html())}return this.cleanCache()},this.insertText=function(a,b){var c=this.rte.doc.createTextNode(a);return this.insertHtml(c.nodeValue)},this.getBookmark=function(){this.rte.window.focus();var b,c,d,e,f,g=this.rte.dom.createBookmark(),i=this.rte.dom.createBookmark();if(a.browser.msie){try{b=this.rte.window.document.selection.createRange()}catch(i){b=this.rte.doc.body.createTextRange()}if(b.item){var j=b.item(0);b=this.rte.doc.body.createTextRange(),b.moveToElementText(j)}c=b.duplicate(),d=b.duplicate(),e=this.rte.dom.create("span"),f=this.rte.dom.create("span"),e.appendChild(g),f.appendChild(i),c.collapse(!0),c.pasteHTML(e.innerHTML),d.collapse(!1),d.pasteHTML(f.innerHTML)}else{var k=h(),b=k.rangeCount>0?k.getRangeAt(0):this.rte.doc.createRange();c=b.cloneRange(),d=b.cloneRange(),d.collapse(!1),d.insertNode(i),c.collapse(!0),c.insertNode(g),this.select(g,i)}return[g.id,i.id]},this.moveToBookmark=function(b){this.rte.window.focus();if(b&&b.length==2){var c=this.rte.doc.getElementById(b[0]),d=this.rte.doc.getElementById(b[1]),e,f;c&&d&&(this.select(c,d),this.rte.dom.next(c)==d&&this.collapse(!0),a.browser.msie||(e=h(),f=e.rangeCount>0?e.getRangeAt(0):this.rte.doc.createRange(),e.removeAllRanges(),e.addRange(f)),c.parentNode.removeChild(c),d.parentNode.removeChild(d))}return this},this.removeBookmark=function(a){this.rte.window.focus();if(a.length==2){var b=this.rte.doc.getElementById(a[0]),c=this.rte.doc.getElementById(a[1]);b&&c&&(b.parentNode.removeChild(b),c.parentNode.removeChild(c))}},this.cleanCache=function(){return d=e=f=null,this},this.getStart=function(){if(!d){var a=this.getRangeAt();d=a.getStart()}return d},this.getEnd=function(){if(!e){var a=this.getRangeAt();e=a.getEnd()}return e},this.getNode=function(){return f||(f=this.rte.dom.findCommonAncestor(this.getStart(),this.getEnd())),f},this.selected=function(b){function k(){function b(){for(var b=0;b<i.length;b++)if(i[b].nodeType==1&&(c.rte.dom.selfOrParent(i[b],/^P$/)||a(i[b]).find("p").length>0))return!1;return!0}if(i.length>0){var e=d.tag=="p"&&!b()?"div":d.tag,f=c.rte.dom.wrap(i,e);h[j]=f,j=null,i=[]}}function l(b){if(b.nodeType==1)if(/^(THEAD|TFOOT|TBODY|COL|COLGROUP|TR)$/.test(b.nodeName))a(b).find("td,th").each(function(){var b=d.tag=="p"&&a(this).find("p").length>0?"div":d.tag,e=c.rte.dom.wrapContents(this,b);return h.push(e)});else if(/^(CAPTION|TD|TH|LI|DT|DD)$/.test(b.nodeName)){var e=d.tag=="p"&&a(b).find("p").length>0?"div":d.tag,b=c.rte.dom.wrapContents(b,e);return h.push(b)}var f=i.length>0?i[i.length-1]:null;f&&f!=c.rte.dom.prev(b)&&k(),i.push(b),j===null&&(j=h.length,h.push("dummy"))}var d={collapsed:!1,blocks:!1,filter:!1,wrap:"text",tag:"span"};d=a.extend({},d,b);if(d.blocks){var e=this.getNode(),f=null;if(f=this.rte.dom.selfOrParent(e,"selectionBlock"))return[f]}var g=this.selectedRaw(d.collapsed,d.blocks),h=[],i=[],j=null;if(g.nodes.length>0){for(var m=0;m<g.nodes.length;m++){var e=g.nodes[m];e.nodeType==3&&(m==0||m==g.nodes.length-1)&&a.trim(e.nodeValue).length>0&&(m==0&&g.so>0&&(e=e.splitText(g.so)),m==g.nodes.length-1&&g.eo>0&&e.splitText(m==0&&g.so>0?g.eo-g.so:g.eo));switch(d.wrap){case"text":e.nodeType==1&&e.nodeName=="BR"||e.nodeType==3&&a.trim(e.nodeValue).length>0?l(e):e.nodeType==1&&h.push(e);break;case"inline":this.rte.dom.isInline(e)?l(e):e.nodeType==1&&h.push(e);break;case"all":(e.nodeType==1||!this.rte.dom.isEmpty(e))&&l(e);break;default:(e.nodeType==1||!this.rte.dom.isEmpty(e))&&h.push(e)}}k()}return h.length&&(this.rte.window.focus(),this.select(h[0],h[h.length-1])),d.filter?this.rte.dom.filter(h,d.filter):h},this.dump=function(a,b,c,d,e){var f=this.getRangeAt();this.rte.log("commonAncestorContainer"),this.rte.log(a||f.commonAncestorContainer),this.rte.log("startContainer"),this.rte.log(b||f.startContainer),this.rte.log("startOffset: "+(d>=0?d:f.startOffset)),this.rte.log("endContainer"),this.rte.log(c||f.endContainer),this.rte.log("endOffset: "+(e>=0?e:f.endOffset))},this.selectedRaw=function(b,d){function m(b,c,d){return b.nodeType==3?(d=d>=0?d:b.nodeValue.length,c==0&&d==b.nodeValue.length||a.trim(b.nodeValue).length==a.trim(b.nodeValue.substring(c,d)).length):!0}function n(b,d,e){return b.nodeType==1?c.rte.dom.isEmpty(b):b.nodeType==3?a.trim(b.nodeValue.substring(d||0,e>=0?e:b.nodeValue.length)).length==0:!0}var e={so:null,eo:null,nodes:[]},f=this.getRangeAt(!0),g=f.commonAncestorContainer,h,j,k=!1,l=!1;f.startContainer.nodeType==1?f.startOffset<f.startContainer.childNodes.length?(h=f.startContainer.childNodes[f.startOffset],e.so=h.nodeType==1?null:0):(h=f.startContainer.childNodes[f.startOffset-1],e.so=h.nodeType==1?null:h.nodeValue.length):(h=f.startContainer,e.so=f.startOffset);if(f.collapsed){if(b)if(d){h=i(h);if(!this.rte.dom.isEmpty(h)||(h=this.rte.dom.next(h)))e.nodes=[h];this.rte.dom.isInline(h)&&(e.nodes=this.rte.dom.toLineStart(h).concat(e.nodes,this.rte.dom.toLineEnd(h))),e.nodes.length>0&&(e.so=e.nodes[0].nodeType==1?null:0,e.eo=e.nodes[e.nodes.length-1].nodeType==1?null:e.nodes[e.nodes.length-1].nodeValue.length)}else this.rte.dom.isEmpty(h)||(e.nodes=[h]);return e}f.endContainer.nodeType==1?(j=f.endContainer.childNodes[f.endOffset-1],e.eo=j.nodeType==1?null:j.nodeValue.length):(j=f.endContainer,e.eo=f.endOffset);if(h.nodeType==1||d||m(h,e.so,h.nodeValue.length))h=i(h,g,"left"),k=!0,e.so=h.nodeType==1?null:0;if(j.nodeType==1||d||m(j,0,e.eo))j=i(j,g,"right"),l=!0,e.eo=j.nodeType==1?null:j.nodeValue.length;d&&(h.nodeType!=1&&h.parentNode!=g&&h.parentNode.nodeName!="BODY"&&(h=h.parentNode,e.so=null),j.nodeType!=1&&j.parentNode!=g&&j.parentNode.nodeName!="BODY"&&(j=j.parentNode,e.eo=null)),h.parentNode==j.parentNode&&h.parentNode.nodeName!="BODY"&&k&&this.rte.dom.isFirstNotEmpty(h)&&l&&this.rte.dom.isLastNotEmpty(j)&&(h=j=h.parentNode,e.so=h.nodeType==1?null:0,e.eo=j.nodeType==1?null:j.nodeValue.length);if(h==j)return this.rte.dom.isEmpty(h)||e.nodes.push(h),e;var o=h;while(o.nodeName!="BODY"&&o.parentNode!==g&&o.parentNode.nodeName!="BODY")o=o.parentNode;var p=j;while(p.nodeName!="BODY"&&p.parentNode!==g&&p.parentNode.nodeName!="BODY")p=p.parentNode;n(h,e.so,h.nodeType==3?h.nodeValue.length:null)||e.nodes.push(h);var q=h;while(q!==o){var r=q;while(r=this.rte.dom.next(r))e.nodes.push(r);q=q.parentNode}q=o;while((q=this.rte.dom.next(q))&&q!=p)e.nodes.push(q);var s=[];q=j;while(q!==p){var r=q;while(r=this.rte.dom.prev(r))s.push(r);q=q.parentNode}return s.length&&(e.nodes=e.nodes.concat(s.reverse())),n(j,0,j.nodeType==3?e.eo:null)||e.nodes.push(j),d&&(this.rte.dom.isInline(h)&&(e.nodes=this.rte.dom.toLineStart(h).concat(e.nodes),e.so=e.nodes[0].nodeType==1?null:0),this.rte.dom.isInline(j)&&(e.nodes=e.nodes.concat(this.rte.dom.toLineEnd(j)),e.eo=e.nodes[e.nodes.length-1].nodeType==1?null:e.nodes[e.nodes.length-1].nodeValue.length)),e}}}(jQuery),function(a){elRTE.prototype.ui=function(b){this.rte=b,this._buttons=[];var c=this,d=this.rte.options.toolbars[b.options.toolbar&&b.options.toolbars[b.options.toolbar]?b.options.toolbar:"normal"],e=d.length,f,g,h,i,j,k,l;for(l in this.buttons)this.buttons.hasOwnProperty(l)&&l!="button"&&(this.buttons[l].prototype=this.buttons.button.prototype);while(e--){first=e==0?!0:!1,d[e-1]=="eol"&&(first=!0),g=d[e];if(g=="eol"){a(this.rte.doc.createElement("br")).prependTo(this.rte.toolbar);continue}f=a('<ul class="panel-'+g+(first?" first":"")+'" />').prependTo(this.rte.toolbar),f.bind("mousedown",function(a){a.preventDefault()}),h=this.rte.options.panels[g].length;while(h--)i=this.rte.options.panels[g][h],j=this.buttons[i]||this.buttons.button,this._buttons.push(k=new j(this.rte,i)),f.prepend(k.domElem)}this.update(),this.disable=function(){a.each(c._buttons,function(){!this.active&&this.domElem.addClass("disabled")})}},elRTE.prototype.ui.prototype.update=function(b){function j(b){var c=b.nodeName.toLowerCase();return b=a(b),c=="img"&&(b.hasClass("elrte-media")?c="media":b.hasClass("elrte-google-maps")?c="google map":b.hasClass("elrte-yandex-maps")?c="yandex map":b.hasClass("elrte-pagebreak")&&(c="pagebreak")),c}b&&this.rte.selection.cleanCache();var c=this.rte.selection.getNode(),d=this.rte.dom.parents(c,"*"),e=this.rte.rtl,f=e?" &laquo; ":" &raquo; ",g="",h,i;c&&c.nodeType==1&&c.nodeName!="BODY"&&d.unshift(c),e||(d=d.reverse());for(i=0;i<d.length;i++)g+=(i>0?f:"")+j(d[i]);this.rte.statusbar.html(g),a.each(this._buttons,function(){this.update()}),this.rte.window.focus()},elRTE.prototype.ui.prototype.buttons={button:function(b,c){var d=this;this.rte=b,this.active=!1,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(b){b.stopPropagation(),b.preventDefault(),a(this).hasClass("disabled")||d.command(),d.rte.window.focus()})}},elRTE.prototype.ui.prototype.buttons.button.prototype.command=function(){this.rte.history.add();try{this.rte.doc.execCommand(this.name,!1,this.val)}catch(a){return this.rte.log("commands failed: "+this.name)}this.rte.ui.update(!0)},elRTE.prototype.ui.prototype.buttons.button.prototype.update=function(){try{if(!this.rte.doc.queryCommandEnabled(this.name))return this.domElem.addClass("disabled");this.domElem.removeClass("disabled")}catch(a){return}try{this.rte.doc.queryCommandState(this.name)?this.domElem.addClass("active"):this.domElem.removeClass("active")}catch(a){}}}(jQuery),function(a){elRTE.prototype.utils=function(b){this.rte=b,this.url=null,this.reg=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,this.baseURL="",this.path="",this.entities={"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"},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:02bf25d5-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-0020afbbccfa"],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 c=this;this.rgb2hex=function(a){return this.color2Hex(""+a)},this.toPixels=function(b){var c=b.match(/([0-9]+\.?[0-9]*)\s*(px|pt|em|%)/);c&&(b=c[1],unit=c[2]),b[0]=="."&&(b="0"+b),b=parseFloat(b);if(isNaN(b))return"";var d=parseInt(a(document.body).css("font-size"))||16;switch(unit){case"em":return parseInt(b*d);case"pt":return parseInt(b*d/12);case"%":return parseInt(b*d/100)}return b},this.absoluteURL=function(b){!this.url&&this._url(),b=a.trim(b);if(!b)return"";if(b[0]=="#")return b;var c=this.parseURL(b);return!c.host&&!c.path&&!c.anchor?"":this.rte.options.absoluteURLs?c.protocol?b:!c.host||c.host.indexOf(".")==-1&&c.host!="localhost"?(b[0]=="/"?b=this.baseURL+b:(b.indexOf("./")==0&&(b=b.substring(2)),b=this.baseURL+this.path+b),b):this.url.protocol+"://"+b:b},this.parseURL=function(b){var c=b.match(this.reg),d={};return a.each(["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],function(a){d[this]=c[a]}),d.host.match(/[a-z0-9]/i)||(d.host=""),d},this.trimEventCallback=function(b){return b=b?b.toString():"",a.trim(b.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.substring(0,this.url.path.length-this.url.file.length):this.url.path},this.makeObject=function(b){var c={};return a.each(b,function(a,b){c[b]=b}),c},this.encode=function(a){var b=this.entities;return(""+a).replace(this.entitiesRegExp,function(a){return b[a]})},this.decode=function(b){return a("<div/>").html(b||"").text()},this.parseStyle=function(b){var c={},d=this.rte.options.allowBrowsersSpecStyles,e,f,g,h;return typeof b=="string"&&b.length&&a.each(b.replace(/&quot;/gi,"'").split(";"),function(b,e){if((h=e.indexOf(":"))!==-1){f=a.trim(e.substr(0,h)),g=a.trim(e.substr(h+1));if(f=="color"||f=="background-color")g=g.toLowerCase();f&&g&&(d||f.substring(0,1)!="-")&&(c[f]=g)}}),c},this.compactStyle=function(b){var c=this;b.border=="medium none"&&delete b.border,a.each(b,function(a,d){/color$/i.test(a)?b[a]=c.color2Hex(d):/^(border|background)$/i.test(a)&&(b[a]=d.replace(c.colorsRegExp,function(a){return c.color2Hex(a)}))}),b["border-width"]&&(b.border=b["border-width"]+" "+(b["border-style"]||"solid")+" "+(b["border-color"]||"#000"),delete b["border-width"],delete b["border-style"],delete b["border-color"]),b["background-image"]&&(b.background=b["background-color"]+" "||""+b["background-image"]+" "+b["background-position"]||"0 0 "+b["background-repeat"]||"repeat",delete b["background-image"],delete ["background-image"],delete ["background-position"],delete ["background-repeat"]),b["margin-top"]&&b["margin-right"]&&b["margin-bottom"]&&b["margin-left"]&&(b.margin=b["margin-top"]+" "+b["margin-right"]+" "+b["margin-bottom"]+" "+b["margin-left"],delete b["margin-top"],delete b["margin-right"],delete b["margin-bottom"],delete b["margin-left"]),b["padding-top"]&&b["padding-right"]&&b["padding-bottom"]&&b["padding-left"]&&(b.padding=b["padding-top"]+" "+b["padding-right"]+" "+b["padding-bottom"]+" "+b["padding-left"],delete b["padding-top"],delete b["padding-right"],delete b["padding-bottom"],delete b["padding-left"]);if(b["list-style-type"]||b["list-style-position"]||b["list-style-image"])b["list-style"]=a.trim(b["list-style-type"]||" "+b["list-style-position"]||""+b["list-style-image"]||""),delete b["list-style-type"],delete b["list-style-position"],delete b["list-style-image"];return b},this.serializeStyle=function(b,c){var d=[];return a.each(c?this.compactStyle(b):b,function(a,b){b&&d.push(a+":"+b)}),d.join(";")},this.parseClass=function(b){return b=a.trim(b),b.length?this.makeObject(b.split(/\s+/)):{}},this.serializeClass=function(b){var c=[],d=this.rte;return a.each(b,function(a){c.push(a)}),c.join(" ")},this.mediaInfo=function(b,c){var d=this.media.length;while(d--)if(b===this.media[d].type||c&&a.inArray(c,this.media[d].classid)!=-1)return this.media[d]},this.color2Hex=function(a){function c(a){return a=parseInt(a).toString(16),a.length>1?a:"0"+a}var b;return a=a||"",a.indexOf("#")===0?a:this.colors[a]?this.colors[a]:(b=a.match(this.rgbRegExp))?"#"+c(b[1])+c(b[2])+c(b[3]):""}}}(jQuery),function(a){elRTE.prototype.w3cRange=function(a){var b=this;this.rte=a,this.r=null,this.collapsed=!0,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(a){this.r=this.rte.doc.body.createTextRange()}return this.r},this.insertNode=function(a){this.range(),b.r.collapse(!1);var c=b.r.duplicate();c.pasteHTML(a)},this.getBookmark=function(){this.range();if(this.r.item){var a=this.r.item(0);this.r=this.rte.doc.body.createTextRange(),this.r.moveToElementText(a)}return this.r.getBookmark()},this.moveToBookmark=function(a){this.rte.window.focus(),this.range().moveToBookmark(a),this.r.select()},this.update=function(){function a(a){var c="﻿",d=offset=0,e=b.r.duplicate();e.collapse(a);var f=e.parentElement();if(!f||f.nodeName=="HTML")return{parent:b.rte.doc.body,ndx:d,offset:offset};e.pasteHTML(c),childs=f.childNodes;for(var g=0;g<childs.length;g++){var h=childs[g];g>0&&(h.nodeType!==3||childs[g-1].nodeType!==3)&&d++;if(h.nodeType!==3)offset=0;else{var i=h.nodeValue.indexOf(c);if(i!==-1){offset+=i;break}offset+=
h.nodeValue.length}}return e.moveStart("character",-1),e.text="",{parent:f,ndx:Math.min(d,f.childNodes.length-1),offset:offset}}this.range(),this.startContainer=this.endContainer=null;if(this.r.item){this.collapsed=!1;var c=this.r.item(0);this.setStart(c.parentNode,this.rte.dom.indexOf(c)),this.setEnd(c.parentNode,this.startOffset+1)}else{this.collapsed=this.r.boundingWidth==0;var d=a(!0),e=a(!1);d.parent.normalize(),e.parent.normalize(),d.ndx=Math.min(d.ndx,d.parent.childNodes.length-1),e.ndx=Math.min(e.ndx,e.parent.childNodes.length-1),d.parent.childNodes[d.ndx].nodeType&&d.parent.childNodes[d.ndx].nodeType==1?this.setStart(d.parent,d.ndx):this.setStart(d.parent.childNodes[d.ndx],d.offset),e.parent.childNodes[e.ndx].nodeType&&e.parent.childNodes[e.ndx].nodeType==1?this.setEnd(e.parent,e.ndx):this.setEnd(e.parent.childNodes[e.ndx],e.offset),this.select()}return this},this.isCollapsed=function(){return this.range(),this.collapsed=this.r.item?!1:this.r.boundingWidth==0,this.collapsed},this.collapse=function(a){this.range();if(this.r.item){var b=this.r.item(0);this.r=this.rte.doc.body.createTextRange(),this.r.moveToElementText(b)}this.r.collapse(a),this.r.select(),this.collapsed=!0},this.getStart=function(){this.range();if(this.r.item)return this.r.item(0);var a=this.r.duplicate();a.collapse(!0);var b=a.parentElement();return b&&b.nodeName=="BODY"?b.firstChild:b},this.getEnd=function(){this.range();if(this.r.item)return this.r.item(0);var a=this.r.duplicate();a.collapse(!1);var b=a.parentElement();return b&&b.nodeName=="BODY"?b.lastChild:b},this.setStart=function(a,b){this.startContainer=a,this.startOffset=b,this.endContainer&&(this.commonAncestorContainer=this.rte.dom.findCommonAncestor(this.startContainer,this.endContainer))},this.setEnd=function(a,b){this.endContainer=a,this.endOffset=b,this.startContainer&&(this.commonAncestorContainer=this.rte.dom.findCommonAncestor(this.startContainer,this.endContainer))},this.setStartBefore=function(a){a.parentNode&&this.setStart(a.parentNode,this.rte.dom.indexOf(a))},this.setStartAfter=function(a){a.parentNode&&this.setStart(a.parentNode,this.rte.dom.indexOf(a)+1)},this.setEndBefore=function(a){a.parentNode&&this.setEnd(a.parentNode,this.rte.dom.indexOf(a))},this.setEndAfter=function(a){a.parentNode&&this.setEnd(a.parentNode,this.rte.dom.indexOf(a)+1)},this.select=function(){function a(a,c){if(a.nodeType!=3)return-1;var d="﻿",e=a.nodeValue,f=b.rte.doc.body.createTextRange();a.nodeValue=e.substring(0,c)+d+e.substring(c),f.moveToElementText(a.parentNode),f.findText(d);var g=Math.abs(f.moveStart("character",-1048575));return a.nodeValue=e,g}this.r=this.rte.doc.body.createTextRange();var c=this.startOffset,d=this.endOffset,e=this.startContainer.nodeType==1?this.startContainer.childNodes[Math.min(c,this.startContainer.childNodes.length-1)]:this.startContainer,f=this.endContainer.nodeType==1?this.endContainer.childNodes[Math.min(c==d?d:d-1,this.endContainer.childNodes.length-1)]:this.endContainer;if(this.collapsed)if(e.nodeType==3){var g=a(e,c);this.r.move("character",g)}else this.r.moveToElementText(e),this.r.collapse(!0);else{var h=this.rte.doc.body.createTextRange(),i=a(e,c),j=a(f,d);e.nodeType==3?this.r.move("character",i):this.r.moveToElementText(e),f.nodeType==3?h.move("character",j):h.moveToElementText(f),this.r.setEndPoint("EndToEnd",h)}try{this.r.select()}catch(f){}h&&(h=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(b,c){this.constructor.prototype.constructor.call(this,b,c),this.active=!0,this.command=function(){var c,d,e;c={rtl:b.rtl,submit:function(a,b){b.close()},dialog:{width:560,title:this.rte.i18n("About this software"),buttons:{Ok:function(){a(this).dialog("destroy")}}}},e='<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@std42.ru&gt;</td><td>'+this.rte.i18n("Chief developer")+"</td></tr><tr><td>Troex Nevelin &lt;troex@fury.scancode.ru&gt;</td><td>"+this.rte.i18n("Developer, tech support")+"</td></tr><tr><td>Valentin Razumnyh &lt;content@std42.ru&gt;</td><td>"+this.rte.i18n("Interface designer")+"</td></tr><tr><td>Tawfek Daghistani &lt;tawfekov@gmail.com&gt;</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 &copy; 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>',d=new elDialogForm(c),d.append(e),d.open()},this.update=function(){this.domElem.removeClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.anchor=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.input=a('<input type="text" />').attr("name","anchor").attr("size","16");var d=this;this.command=function(){var c={rtl:this.rte.rtl,submit:function(a,b){a.stopPropagation(),a.preventDefault(),b.close(),d.set()},dialog:{title:this.rte.i18n("Bookmark")}};this.anchor=this.rte.dom.selfOrParentAnchor(this.rte.selection.getEnd())||b.dom.create("a"),!this.rte.selection.collapsed()&&this.rte.selection.collapse(!1),this.input.val(a(this.anchor).addClass("elrte-anchor").attr("name")),this.rte.selection.saveIERange();var e=new elDialogForm(c);e.append([this.rte.i18n("Bookmark name"),this.input],null,!0).open(),setTimeout(function(){d.input.focus()},20)},this.update=function(){var a=this.rte.selection.getNode();this.rte.dom.selfOrParentLink(a)?this.domElem.addClass("disabled"):this.rte.dom.selfOrParentAnchor(a)?this.domElem.removeClass("disabled").addClass("active"):this.domElem.removeClass("disabled").removeClass("active")},this.set=function(){var b=a.trim(this.input.val());b?(this.rte.history.add(),this.anchor.parentNode?(this.anchor.name=b,this.anchor.title=this.rte.i18n("Bookmark")+": "+b):this.rte.selection.insertHtml('<a name="'+b+'" title="'+this.rte.i18n("Bookmark")+": "+b+'" class="elrte-anchor"></a>')):this.anchor.parentNode&&(this.rte.history.add(),this.anchor.parentNode.removeChild(this.anchor))}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.blockquote=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.command=function(){var b,c;this.rte.history.add(),this.rte.selection.collapsed()&&(b=this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^BLOCKQUOTE$/))?a(b).replaceWith(a(b).html()):(c=this.rte.selection.selected({wrap:"all",tag:"blockquote"}),c.length&&this.rte.selection.select(c[0],c[c.length-1])),this.rte.ui.update(!0)},this.update=function(){this.rte.selection.collapsed()?this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^BLOCKQUOTE$/)?this.domElem.removeClass("disabled").addClass("active"):this.domElem.addClass("disabled").removeClass("active"):this.domElem.removeClass("disabled active")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.copy=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.command=function(){if(this.rte.browser.mozilla)try{this.rte.doc.execCommand(this.name,!1,null)}catch(b){var c=" Ctl + C";this.name=="cut"?c=" Ctl + X":this.name=="paste"&&(c=" Ctl + V");var d={dialog:{title:this.rte.i18n("Warning"),buttons:{Ok:function(){a(this).dialog("close")}}}},e=new elDialogForm(d);e.append(this.rte.i18n("This operation is disabled in your browser on security reason. Use shortcut instead.")+": "+c).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(b,c){var d=this;this.constructor.prototype.constructor.call(this,b,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 b=this.node(),c;this.rte.selection.saveIERange();if(b){var c={submit:function(a,b){a.stopPropagation(),a.preventDefault(),b.close(),d.set()},dialog:{title:this.rte.i18n("Style"),width:450,resizable:!0,modal:!0}};this.cssStyle.val(a(b).attr("style")),this.cssClass.val(a(b).attr("class")),this.elementID.val(a(b).attr("id"));var e=new elDialogForm(c);e.append([this.rte.i18n("Css style"),this.cssStyle],null,!0),e.append([this.rte.i18n("Css class"),this.cssClass],null,!0),e.append([this.rte.i18n("ID"),this.elementID],null,!0),e.open(),setTimeout(function(){d.cssStyle.focus()},20)}},this.set=function(){var b=this.node();this.rte.selection.restoreIERange(),b&&(a(b).attr("style",this.cssStyle.val()),a(b).attr("class",this.cssClass.val()),a(b).attr("id",this.elementID.val()),this.rte.ui.update())},this.node=function(){var a=this.rte.selection.getNode();return a.nodeType==3&&(a=a.parentNode),a.nodeType==1&&a.nodeName!="BODY"?a:null},this.update=function(){this.domElem.toggleClass("disabled",this.node()?!1:!0)}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.rtl=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this;this.command=function(){var b=this.rte.selection.getNode(),c=this;a(b).attr("dir")=="rtl"||a(b).parents('[dir="rtl"]').length||a(b).find('[dir="rtl"]').length?(a(b).removeAttr("dir"),a(b).parents('[dir="rtl"]').removeAttr("dir"),a(b).find('[dir="rtl"]').removeAttr("dir")):this.rte.dom.is(b,"textNodes")&&this.rte.dom.is(b,"block")?a(b).attr("dir","rtl"):a.each(this.rte.dom.parents(b,"textNodes"),function(b,d){if(c.rte.dom.is(d,"block"))return a(d).attr("dir","rtl"),!1}),this.rte.ui.update()},this.update=function(){var b=this.rte.selection.getNode();this.domElem.removeClass("disabled"),a(b).attr("dir")=="rtl"||a(b).parents('[dir="rtl"]').length||a(b).find('[dir="rtl"]').length?this.domElem.addClass("active"):this.domElem.removeClass("active")}},elRTE.prototype.ui.prototype.buttons.ltr=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this;this.command=function(){var b=this.rte.selection.getNode(),c=this;a(b).attr("dir")=="ltr"||a(b).parents('[dir="ltr"]').length||a(b).find('[dir="ltr"]').length?(a(b).removeAttr("dir"),a(b).parents('[dir="ltr"]').removeAttr("dir"),a(b).find('[dir="ltr"]').removeAttr("dir")):this.rte.dom.is(b,"textNodes")&&this.rte.dom.is(b,"block")?a(b).attr("dir","ltr"):a.each(this.rte.dom.parents(b,"textNodes"),function(b,d){if(c.rte.dom.is(d,"block"))return a(d).attr("dir","ltr"),!1}),this.rte.ui.update()},this.update=function(){var b=this.rte.selection.getNode();this.domElem.removeClass("disabled"),a(b).attr("dir")=="ltr"||a(b).parents('[dir="ltr"]').length||a(b).find('[dir="ltr"]').length?this.domElem.addClass("active"):this.domElem.removeClass("active")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.div=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.command=function(){var b,c;this.rte.history.add(),this.rte.selection.collapsed()?(b=this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^DIV$/),b&&a(b).replaceWith(a(b).html())):(c=this.rte.selection.selected({wrap:"all",tag:"div"}),c.length&&this.rte.selection.select(c[0],c[c.length-1])),this.rte.ui.update(!0)},this.update=function(){this.rte.selection.collapsed()?this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^DIV$/)?this.domElem.removeClass("disabled").addClass("active"):this.domElem.addClass("disabled active"):this.domElem.removeClass("disabled active")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.docstructure=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.command=function(){this.domElem.toggleClass("active"),a(this.rte.doc.body).toggleClass("el-rte-structure")},this.command(),this.update=function(){this.domElem.removeClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.elfinder=function(a,b){this.constructor.prototype.constructor.call(this,a,b);var c=this,a=this.rte;this.command=function(){c.rte.options.fmAllow&&typeof c.rte.options.fmOpen=="function"&&c.rte.options.fmOpen(function(b){var c=decodeURIComponent(b.split("/").pop().replace(/\+/g," "));a.selection.collapsed()?a.selection.insertHtml('<a href="'+b+'" >'+c+"</a>"):a.doc.execCommand("createLink",!1,b)})},this.update=function(){c.rte.options.fmAllow&&typeof c.rte.options.fmOpen=="function"?this.domElem.removeClass("disabled"):this.domElem.addClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.flash=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this;this.swf=null,this.placeholder=null,this.src={url:a('<input type="text" name="url" />').css("width","99%"),type:a('<select name="type"/>').append('<option value="application/x-shockwave-flash">Flash</option>').append('<option value="video/quicktime">Quicktime movie</option>').append('<option value="application/x-mplayer2">Windows media</option>'),width:a('<input type="text" />').attr("size",5).css("text-align","right"),height:a('<input type="text" />').attr("size",5).css("text-align","right"),wmode:a("<select />").append(a("<option />").val("").text(this.rte.i18n("Not set","dialogs"))).append(a("<option />").val("transparent").text(this.rte.i18n("Transparent"))),align:a("<select />").append(a("<option />").val("").text(this.rte.i18n("Not set","dialogs"))).append(a("<option />").val("left").text(this.rte.i18n("Left"))).append(a("<option />").val("right").text(this.rte.i18n("Right"))).append(a("<option />").val("top").text(this.rte.i18n("Top"))).append(a("<option />").val("text-top").text(this.rte.i18n("Text top"))).append(a("<option />").val("middle").text(this.rte.i18n("middle"))).append(a("<option />").val("baseline").text(this.rte.i18n("Baseline"))).append(a("<option />").val("bottom").text(this.rte.i18n("Bottom"))).append(a("<option />").val("text-bottom").text(this.rte.i18n("Text bottom"))),margin:a("<div />")},this.command=function(){var b=this.rte.selection.getEnd(),c,e="",f="",g="",h,i,j,k,m,n;this.rte.selection.saveIERange(),this.src.margin.elPaddingInput({type:"margin"}),this.placeholder=null,this.swf=null;if(a(b).hasClass("elrte-media")&&(k=a(b).attr("rel"))&&this.rte.filter.scripts[k]){this.placeholder=a(b),m=this.rte.filter.scripts[k],e="",m.embed&&m.embed.src&&(e=m.embed.src);if(m.params&&m.params.length){l=m.params.length;while(l--)if(m.params[l].name=="src"||m.params[l].name=="movie")e=m.params[l].value}m.embed?(f=m.embed.width||parseInt(m.embed.style.width)||"",g=m.embed.height||parseInt(m.embed.style.height)||"",n=m.embed.wmode||""):m.obj&&(f=m.obj.width||parseInt(m.obj.style.width)||"",g=m.obj.height||parseInt(m.obj.style.height)||"",n=m.obj.wmode||""),m.obj?(h=m.obj.style["float"]||"",i=m.obj.style["vertical-align"]||""):m.embed&&(h=m.embed.style["float"]||"",i=m.embed.style["vertical-align"]||""),this.src.margin.val(b),this.src.type.val(m.embed?m.embed.type:"")}a(b).hasClass("elrte-swf-placeholder")&&(this.placeholder=a(b),e=a(b).attr("rel"),f=parseInt(a(b).css("width"))||"",g=parseInt(a(b).css("height"))||"",h=a(b).css("float"),i=a(b).css("vertical-align"),this.src.margin.val(b),this.src.wmode.val(a(b).attr("wmode"))),this.src.url.val(e),this.src.width.val(f),this.src.height.val(g),this.src.align.val(h||i),this.src.wmode.val(n);var c={rtl:this.rte.rtl,submit:function(a,b){a.stopPropagation(),a.preventDefault(),d.set(),b.close()},dialog:{width:580,position:"top",title:this.rte.i18n("Flash")}},j=new elDialogForm(c);if(this.rte.options.fmAllow&&this.rte.options.fmOpen)var o=a("<span />").append(this.src.url.css("width","85%")).append(a("<span />").addClass("ui-state-default ui-corner-all").css({"float":"right","margin-right":"3px"}).attr("title",d.rte.i18n("Open file manger")).append(a("<span />").addClass("ui-icon ui-icon-folder-open")).click(function(){d.rte.options.fmOpen(function(a){d.src.url.val(a).change()})}).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}));else var o=this.src.url;j.append([this.rte.i18n("URL"),o],null,!0),j.append([this.rte.i18n("Type"),this.src.type],null,!0),j.append([this.rte.i18n("Size"),a("<span />").append(this.src.width).append(" x ").append(this.src.height).append(" px")],null,!0),j.append([this.rte.i18n("Wmode"),this.src.wmode],null,!0),j.append([this.rte.i18n("Alignment"),this.src.align],null,!0),j.append([this.rte.i18n("Margins"),this.src.margin],null,!0),j.open();var p=a("<fieldset />").append(a("<legend />").text(this.rte.i18n("Preview")));j.append(p,"main");var q=document.createElement("iframe");a(q).attr("src","#").addClass("el-rte-preview").appendTo(p),html=this.rte.options.doctype+'<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style="padding:0;margin:0;font-size:9px"> Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin</body></html>',q.contentWindow.document.open(),q.contentWindow.document.write(html),q.contentWindow.document.close(),this.frame=q.contentWindow.document,this.preview=a(q.contentWindow.document.body),this.src.type.change(function(){d.src.url.change()}),this.src.width.change(function(){if(d.swf){var b=parseInt(a(this).val())||"";a(this).val(b),d.swf.css("width",b),d.swf.children("embed").css("width",b)}else a(this).val("")}),this.src.height.change(function(){if(d.swf){var b=parseInt(a(this).val())||"";a(this).val(b),d.swf.css("height",b),d.swf.children("embed").css("height",b)}else a(this).val("")}),this.src.wmode.change(function(){if(d.swf){var b=a(this).val();b?(d.swf.attr("wmode",b),d.swf.children("embed").attr("wmode",b)):(d.swf.removeAttr("wmode"),d.swf.children("embed").removeAttr("wmode"))}}),this.src.align.change(function(){var b=a(this).val(),c=b=="left"||b=="right";d.swf?d.swf.css({"float":c?b:"","vertical-align":c?"":b}):a(this).val("")}),this.src.margin.change(function(){if(d.swf){var a=d.src.margin.val();a.css?d.swf.css("margin",a.css):(d.swf.css("margin-top",a.top),d.swf.css("margin-right",a.right),d.swf.css("margin-bottom",a.bottom),d.swf.css("margin-left",a.left))}}),this.src.url.change(function(){var b=d.rte.utils.absoluteURL(a(this).val()),c,e;b?(c=d.rte.utils.mediaInfo(d.src.type.val()),c||(c=d.rte.util.mediaInfo("application/x-shockwave-flash")),e='<object classid="'+c.classid+'" codebase="'+c.codebase+'"><param name="src" value="'+b+'" /><embed quality="high" src="'+b+'" type="'+c.type+'"></object>',d.preview.children("object").remove().end().prepend(e),d.swf=d.preview.children("object").eq(0)):d.swf&&(d.swf.remove(),d.swf=null),d.src.width.trigger("change"),d.src.height.trigger("change"),d.src.align.trigger("change")}).trigger("change")},this.set=function(){d.swf=null;var b=this.rte.utils.absoluteURL(this.src.url.val()),c=parseInt(this.src.width.val())||"",e=parseInt(this.src.height.val())||"",f=this.src.wmode.val(),g=this.src.align.val(),h=g=="left"||g=="right"?g:"",j=this.placeholder?this.placeholder.attr("rel"):"",k,l,m,n=this.src.margin.val(),o;if(!b)this.placeholder&&(this.placeholder.remove(),delete this.rte.filter.scripts[j]);else{i=d.rte.utils.mediaInfo(d.src.type.val()),i||(i=d.rte.util.mediaInfo("application/x-shockwave-flash")),m=this.rte.filter.videoHostRegExp.test(b)?b.replace(this.rte.filter.videoHostRegExp,"$2"):i.type.replace(/^\w+\/(.+)/,"$1"),k={obj:{classid:i.classid[0],codebase:i.codebase,style:{}},params:[{name:"src",value:b}],embed:{src:b,type:i.type,quality:"high",wmode:f,style:{}}},c&&(k.obj.width=c,k.embed.width=c),e&&(k.obj.height=e,k.embed.height=e),h?k.obj.style["float"]=h:g&&(k.obj.style["vertical-align"]=g),n.css?o={margin:n.css}:o={"margin-top":n.top,"margin-right":n.right,"margin-bottom":n.bottom,"margin-left":n.left},k.obj.style=a.extend({},k.obj.style,o);if(this.placeholder&&j)l=this.rte.filter.scripts[j]||{},k=a.extend(!0,l,k),delete k.obj.style.width,delete k.obj.style.height,delete k.embed.style.width,delete k.embed.style.height,this.rte.filter.scripts[j]=k,this.placeholder.removeAttr("class");else{var p="media"+Math.random().toString().substring(2);this.rte.filter.scripts[p]=k,this.placeholder=a(this.rte.dom.create("img")).attr("rel",p).attr("src",this.rte.filter.url+"pixel.gif");var q=!0}this.placeholder.attr("title",this.rte.utils.encode(b)).attr("width",c||150).attr("height",e||100).addClass("elrte-protected elrte-media elrte-media-"+m).css(k.obj.style),h?this.placeholder.css("float",h).css("vertical-align",""):g?this.placeholder.css("float","").css("vertical-align",g):this.placeholder.css("float","").css("vertical-align",""),q&&(this.rte.window.focus(),this.rte.selection.restoreIERange(),this.rte.selection.insertNode(this.placeholder.get(0)))}},this.update=function(){this.domElem.removeClass("disabled");var b=this.rte.selection.getNode();this.domElem.toggleClass("active",b&&b.nodeName=="IMG"&&a(b).hasClass("elrte-media"))}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.fontname=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this,e={tpl:'<span style="font-family:%val">%label</span>',select:function(a){d.set(a)},src:{"":this.rte.i18n("Font"),"andale mono,sans-serif":"Andale Mono","arial,helvetica,sans-serif":"Arial","arial black,gadget,sans-serif":"Arial Black","book antiqua,palatino,sans-serif":"Book Antiqua","comic sans ms,cursive":"Comic Sans MS","courier new,courier,monospace":"Courier New","georgia,palatino,serif":"Georgia","helvetica,sans-serif":"Helvetica","impact,sans-serif":"Impact","lucida console,monaco,monospace":"Lucida console","lucida sans unicode,lucida grande,sans-serif":"Lucida grande","tahoma,sans-serif":"Tahoma","times new roman,times,serif":"Times New Roman","trebuchet ms,lucida grande,verdana,sans-serif":"Trebuchet MS","verdana,geneva,sans-serif":"Verdana"}};this.select=this.domElem.elSelect(e),this.command=function(){},this.set=function(b){this.rte.history.add();var c=this.rte.selection.selected({filter:"textContainsNodes"});a.each(c,function(){$this=/^(THEAD|TFOOT|TBODY|COL|COLGROUP|TR)$/.test(this.nodeName)?a(this).find("td,th"):a(this),a(this).css("font-family",b).find("[style]").css("font-family","")}),this.rte.ui.update()},this.update=function(){this.domElem.removeClass("disabled");var b=this.rte.selection.getNode();b.nodeType!=1&&(b=b.parentNode);var c=a(b).css("font-family");c=c?c.toString().toLowerCase().replace(/,\s+/g,",").replace(/'|"/g,""):"",this.select.val(e.src[c]?c:"")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.fontsize=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this,e={labelTpl:"%label",tpl:'<span style="font-size:%val;line-height:1.2em">%label</span>',select:function(a){d.set(a)},src:{"":this.rte.i18n("Font size"),"xx-small":this.rte.i18n("Small (8pt)"),"x-small":this.rte.i18n("Small (10px)"),small:this.rte.i18n("Small (12pt)"),medium:this.rte.i18n("Normal (14pt)"),large:this.rte.i18n("Large (18pt)"),"x-large":this.rte.i18n("Large (24pt)"),"xx-large":this.rte.i18n("Large (36pt)")}};this.select=this.domElem.elSelect(e),this.command=function(){},this.set=function(b){this.rte.history.add();var c=this.rte.selection.selected({filter:"textContainsNodes"});a.each(c,function(){$this=/^(THEAD|TFOOT|TBODY|COL|COLGROUP|TR)$/.test(this.nodeName)?a(this).find("td,th"):a(this),$this.css("font-size",b).find("[style]").css("font-size","")}),this.rte.ui.update()},this.update=function(){this.domElem.removeClass("disabled");var a=this.rte.selection.getNode();this.select.val((m=this.rte.dom.attr(a,"style").match(/font-size:\s*([^;]+)/i))?m[1]:"")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.forecolor=function(b,c){var d=this;this.constructor.prototype.constructor.call(this,b,c);var e={"class":"",palettePosition:"outer",color:this.defaultColor,update:function(a){d.indicator.css("background-color",a)},change:function(a){d.set(a)}};this.defaultColor=this.name=="forecolor"?"#000000":"#ffffff",this.picker=this.domElem.elColorPicker(e),this.indicator=a("<div />").addClass("color-indicator").prependTo(this.domElem),this.command=function(){},this.set=function(b){if(!this.rte.selection.collapsed()){this.rte.history.add();var c=this.rte.selection.selected({collapse:!1,wrap:"text"}),d=this.name=="forecolor"?"color":"background-color";a.each(c,function(){/^(THEAD|TBODY|TFOOT|TR)$/.test(this.nodeName)?a(this).find("td,th").each(function(){a(this).css(d,b).find("*").css(d,"")}):a(this).css(d,b).find("*").css(d,"")}),this.rte.ui.update(!0)}},this.update=function(){this.domElem.removeClass("disabled");var b=this.rte.selection.getNode();this.picker.val(this.rte.utils.rgb2hex(a(b.nodeType!=1?b.parentNode:b).css(this.name=="forecolor"?"color":"background-color"))||this.defaultColor)}},elRTE.prototype.ui.prototype.buttons.hilitecolor=elRTE.prototype.ui.prototype.buttons.forecolor}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.formatblock=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this.rte.browser.msie?function(a){f.val=a,f.constructor.prototype.command.call(f)}:function(a){f.ieCommand(a)},f=this,g={labelTpl:"%label",tpls:{"":"%label"},select:function(a){f.formatBlock(a)},src:{span:this.rte.i18n("Format"),h1:this.rte.i18n("Heading 1"),h2:this.rte.i18n("Heading 2"),h3:this.rte.i18n("Heading 3"),h4:this.rte.i18n("Heading 4"),h5:this.rte.i18n("Heading 5"),h6:this.rte.i18n("Heading 6"),p:this.rte.i18n("Paragraph"),address:this.rte.i18n("Address"),pre:this.rte.i18n("Preformatted"),div:this.rte.i18n("Normal (DIV)")}};this.select=this.domElem.elSelect(g),this.command=function(){},this.formatBlock=function(b){function c(b,c){function d(b){return a(b).find("h1,h2,h3,h4,h5,h6,p,address,pre").each(function(){a(this).replaceWith(a(this).html())}),b}/^(LI|DT|DD|TD|TH|CAPTION)$/.test(b.nodeName)?!f.rte.dom.isEmpty(b)&&f.rte.dom.wrapContents(d(b),c):/^(UL|OL|DL|TABLE)$/.test(b.nodeName)?f.rte.dom.wrap(b,c):!f.rte.dom.isEmpty(b)&&a(d(b)).replaceWith(a(f.rte.dom.create(c)).html(a(b).html()))}this.rte.history.add();var d=b.toUpperCase(),g,h,i,j=this.rte.selection.collapsed(),k=this.rte.selection.getBookmark(),m=this.rte.selection.selected({collapsed:!0,blocks:!0,filter:"textContainsNodes",wrap:"inline",tag:"span"});l=m.length,s=a(m[0]).prev(),e=a(m[m.length-1]).next();while(l--)h=m[l],i=a(h),d=="DIV"||d=="SPAN"?/^(H[1-6]|P|ADDRESS|PRE)$/.test(h.nodeName)&&i.replaceWith(a(this.rte.dom.create("div")).html(i.html()||"")):/^(THEAD|TBODY|TFOOT|TR)$/.test(h.nodeName)?i.find("td,th").each(function(){c(this,d)}):h.nodeName!=d&&c(h,d);this.rte.selection.moveToBookmark(k),this.rte.ui.update(!0)},this.update=function(){this.domElem.removeClass("disabled");var a=this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^(H[1-6]|P|ADDRESS|PRE)$/);this.select.val(a?a.nodeName.toLowerCase():"span")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.fullscreen=function(b,c){function e(){d.wz.height(a(window).height()-d.delta),d.rte.updateHeight()}var d=this;this.constructor.prototype.constructor.call(this,b,c),this.active=!0,this.editor=b.editor,this.wz=b.workzone,this.height=0,this.delta=0,this._class="el-fullscreen",setTimeout(function(){d.height=d.wz.height(),d.delta=d.editor.outerHeight()-d.height},50),this.command=function(){function o(){l&&(m=k.getBookmark())}function p(){l&&(d.wz.children().toggle(),d.rte.source.focus(),d.wz.children().toggle(),k.moveToBookmark(m))}var b=a(window),c=this.editor,f=c.parents().filter(function(b,c){return!/^(html|body)$/i.test(c.nodeName)&&a(c).css("position")=="relative"}),g=this.wz,h=this._class,i=c.hasClass(h),j=this.rte,k=this.rte.selection,l=a.browser.mozilla,m,n;o(),f.css("position",i?"relative":"static"),i?(c.removeClass(h),g.height(this.height),b.unbind("resize",e),this.domElem.removeClass("active")):(c.addClass(h).removeAttr("style"),g.height(b.height()-this.delta).css("width","100%"),b.bind("resize",e),this.domElem.addClass("active")),j.updateHeight(),j.resizable(i),p()},this.update=function(){this.domElem.removeClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.horizontalrule=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this;this.src={width:a('<input type="text" />').attr({name:"width",size:4}).css("text-align","right"),wunit:a("<select />").attr("name","wunit").append(a("<option />").val("%").text("%")).append(a("<option />").val("px").text("px")).val("%"),height:a('<input type="text" />').attr({name:"height",size:4}).css("text-align","right"),bg:a("<div />"),border:a("<div />"),"class":a('<input type="text" />').css("width","100%"),style:a('<input type="text" />').css("width","100%")},this.command=function(){this.src.bg.elColorPicker({palettePosition:"outer","class":"el-colorpicker ui-icon ui-icon-pencil"});var c=this.rte.selection.getEnd();this.hr=c.nodeName=="HR"?a(c):a(b.doc.createElement("hr")).css({width:"100%",height:"1px"}),this.src.border.elBorderSelect({styleHeight:73,value:this.hr});var e=this.hr.css("width")||this.hr.attr("width");this.src.width.val(parseInt(e)||100),this.src.wunit.val(e.indexOf("px")!=-1?"px":"%"),this.src.height.val(this.rte.utils.toPixels(this.hr.css("height")||this.hr.attr("height"))||1),this.src.bg.val(this.rte.utils.color2Hex(this.hr.css("background-color"))),this.src["class"].val(this.rte.dom.attr(this.hr,"class")),this.src.style.val(this.rte.dom.attr(this.hr,"style"));var g={rtl:this.rte.rtl,submit:function(a,b){a.stopPropagation(),a.preventDefault(),d.set(),b.close()},dialog:{title:this.rte.i18n("Horizontal rule")}},h=new elDialogForm(g);h.append([this.rte.i18n("Width"),a("<span />").append(this.src.width).append(this.src.wunit)],null,!0).append([this.rte.i18n("Height"),a("<span />").append(this.src.height).append(" px")],null,!0).append([this.rte.i18n("Border"),this.src.border],null,!0).append([this.rte.i18n("Background"),this.src.bg],null,!0).append([this.rte.i18n("Css class"),this.src["class"]],null,!0).append([this.rte.i18n("Css style"),this.src.style],null,!0).open()},this.update=function(){this.domElem.removeClass("disabled"),this.rte.selection.getEnd().nodeName=="HR"?this.domElem.addClass("active"):this.domElem.removeClass("active")},this.set=function(){this.rte.history.add(),!this.hr.parentNode&&this.rte.selection.insertNode(this.hr.get(0));var a={noshade:!0,style:this.src.style.val()},b=this.src.border.val(),c={width:(parseInt(this.src.width.val())||100)+this.src.wunit.val(),height:parseInt(this.src.height.val())||1,"background-color":this.src.bg.val(),border:b.width&&b.style?b.width+" "+b.style+" "+b.color:""};this.hr.removeAttr("class").removeAttr("style").removeAttr("width").removeAttr("height").removeAttr("align").attr(a).css(c),this.src["class"].val()&&this.hr.attr("class",this.src["class"].val()),this.rte.ui.update()}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.image=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this,b=d.rte,e=0,f=0,g=0,h=null,i=function(b){a.each(d.src,function(c,d){a.each(d,function(a,c){if(a=="src"&&b)return;c.val("")})})},j=function(c){a.each(d.src,function(d,e){a.each(e,function(a,e){var f,g,h,i,j;a=="width"?f=c.width():a=="height"?f=c.height():a=="border"?(f="",j=c.css("border")||b.utils.parseStyle(c.attr
("style")).border||"",j&&(g=j.match(/(\d(px|em|%))/),h=j.match(/(#[a-z0-9]+)/),f={width:g?g[1]:j,style:j,color:b.utils.color2Hex(h?h[1]:j)})):a=="margin"?f=c:a=="align"?(f=c.css("float"),f!="left"&&f!="right"&&(f=c.css("vertical-align"))):f=c.attr(a)||"",d=="events"&&(f=b.utils.trimEventCallback(f)),e.val(f)})})},k=function(){var b=d.src.main.src.val();i(!0),b?(d.prevImg?(d.prevImg.removeAttr("src").removeAttr("style").removeAttr("class").removeAttr("id").removeAttr("title").removeAttr("alt").removeAttr("longdesc"),a.each(d.src.events,function(a,b){d.prevImg.removeAttr(a)})):d.prevImg=a("<img/>").prependTo(d.preview),d.prevImg.load(function(){d.prevImg.unbind("load"),setTimeout(function(){f=d.prevImg.width(),g=d.prevImg.height(),e=(f/g).toFixed(2),d.src.main.width.val(f),d.src.main.height.val(g)},100)}).attr("src",b)):(d.preview.children("img").remove(),d.prevImg=null)},l=function(a){var b=parseInt(d.src.main.width.val())||0,c=parseInt(d.src.main.height.val())||0;d.prevImg&&(b&&c?a.target===d.src.main.width[0]?c=parseInt(b/e):b=parseInt(c*e):(b=f,c=g),d.src.main.height.val(c),d.src.main.width.val(b),d.prevImg.width(b).height(c),d.src.adv.style.val(d.prevImg.attr("style")))};this.img=null,this.prevImg=null,this.preview=a('<div class="elrte-image-preview"/>').text("Proin elit arcu, rutrum commodo, vehicula tempus, commodo a, risus. Curabitur nec arcu. Donec sollicitudin mi sit amet mauris. Nam elementum quam ullamcorper ante. Etiam aliquet massa et lorem. Mauris dapibus lacus auctor risus. Aenean tempor ullamcorper leo. Vivamus sed magna quis ligula eleifend adipiscing. Duis orci. Aliquam sodales tortor vitae ipsum. Aliquam nulla. Duis aliquam molestie erat. Ut et mauris vel pede varius sollicitudin"),this.init=function(){this.labels={main:"Properies",link:"Link",adv:"Advanced",events:"Events",id:"ID","class":"Css class",style:"Css style",longdesc:"Detail description URL",href:"URL",target:"Open in",title:"Title"},this.src={main:{src:a('<input type="text" />').css("width","100%").change(k),title:a('<input type="text" />').css("width","100%"),alt:a('<input type="text" />').css("width","100%"),width:a('<input type="text" />').attr("size",5).css("text-align","right").change(l),height:a('<input type="text" />').attr("size",5).css("text-align","right").change(l),margin:a("<div />").elPaddingInput({type:"margin",change:function(){var a=d.src.main.margin.val();d.prevImg&&(a.css?d.prevImg.css("margin",a.css):d.prevImg.css({"margin-left":a.left,"margin-top":a.top,"margin-right":a.right,"margin-bottom":a.bottom}))}}),align:a("<select />").css("width","100%").append(a("<option />").val("").text(this.rte.i18n("Not set","dialogs"))).append(a("<option />").val("left").text(this.rte.i18n("Left"))).append(a("<option />").val("right").text(this.rte.i18n("Right"))).append(a("<option />").val("top").text(this.rte.i18n("Top"))).append(a("<option />").val("text-top").text(this.rte.i18n("Text top"))).append(a("<option />").val("middle").text(this.rte.i18n("middle"))).append(a("<option />").val("baseline").text(this.rte.i18n("Baseline"))).append(a("<option />").val("bottom").text(this.rte.i18n("Bottom"))).append(a("<option />").val("text-bottom").text(this.rte.i18n("Text bottom"))).change(function(){var b=a(this).val(),c={"float":"","vertical-align":""};d.prevImg&&(b=="left"||b=="right"?(c["float"]=b,c["vertical-align"]=""):b&&(c["float"]="",c["vertical-align"]=b),d.prevImg.css(c))}),border:a("<div />").elBorderSelect({name:"border",change:function(){var a=d.src.main.border.val();d.prevImg&&d.prevImg.css("border",a.width?a.width+" "+a.style+" "+a.color:"")}})},adv:{},events:{}},a.each(["id","class","style","longdesc"],function(b,c){d.src.adv[c]=a('<input type="text" style="width:100%" />')}),this.src.adv["class"].change(function(){d.prevImg&&d.prevImg.attr("class",a(this).val())}),this.src.adv.style.change(function(){d.prevImg&&(d.prevImg.attr("style",a(this).val()),j(d.prevImg))}),a.each(["onblur","onfocus","onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmouseleave","onkeydown","onkeypress","onkeyup"],function(){d.src.events[this]=a('<input type="text"  style="width:100%"/>')})},this.command=function(){!this.src&&this.init();var c,k={rtl:b.rtl,submit:function(a,b){a.stopPropagation(),a.preventDefault(),d.set(),l.close()},close:function(){h&&b.selection.moveToBookmark(h)},dialog:{autoOpen:!1,width:500,position:"top",title:b.i18n("Image"),resizable:!0,open:function(){a.fn.resizable&&a(this).parents(".ui-dialog:first").resizable("option","alsoResize",".elrte-image-preview")}}},l=new elDialogForm(k),m=!!b.options.fmOpen,n=m?a('<div class="elrte-image-src-fm"><span class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-folder-open"/></span></div>').append(this.src.main.src.css("width","87%")):this.src.main.src;i(),this.preview.children("img").remove(),this.prevImg=null,c=b.selection.getEnd(),this.img=c.nodeName=="IMG"&&!a(c).is(".elrte-protected")?a(c):a("<img/>"),h=b.selection.getBookmark(),m&&n.children(".ui-state-default").click(function(){b.options.fmOpen(function(a){d.src.main.src.val(a).change()})}).hover(function(){a(this).toggleClass("ui-state-hover")}),l.tab("main",this.rte.i18n("Properies")).append([this.rte.i18n("Image URL"),n],"main",!0).append([this.rte.i18n("Title"),this.src.main.title],"main",!0).append([this.rte.i18n("Alt text"),this.src.main.alt],"main",!0).append([this.rte.i18n("Size"),a("<span />").append(this.src.main.width).append(" x ").append(this.src.main.height).append(" px")],"main",!0).append([this.rte.i18n("Alignment"),this.src.main.align],"main",!0).append([this.rte.i18n("Margins"),this.src.main.margin],"main",!0).append([this.rte.i18n("Border"),this.src.main.border],"main",!0),l.append(a("<fieldset><legend>"+this.rte.i18n("Preview")+"</legend></fieldset>").append(this.preview),"main"),a.each(this.src,function(c,e){if(c=="main")return;l.tab(c,b.i18n(d.labels[c])),a.each(e,function(a,e){d.src[c][a].val(c=="events"?b.utils.trimEventCallback(d.img.attr(a)):d.img.attr(a)||""),l.append([b.i18n(d.labels[a]||a),d.src[c][a]],c,!0)})}),l.open(),this.img.attr("src")&&(j(this.img),this.prevImg=this.img.clone().prependTo(this.preview),e=(this.img.width()/this.img.height()).toFixed(2),f=parseInt(this.img.width()),g=parseInt(this.img.height()))},this.set=function(){var c=this.src.main.src.val(),e;this.rte.history.add(),h&&b.selection.moveToBookmark(h);if(!c)return e=b.dom.selfOrParentLink(this.img[0]),e&&e.remove(),this.img.remove();!this.img[0].parentNode&&(this.img=a(this.rte.doc.createElement("img"))),this.img.attr("src",c).attr("style",this.src.adv.style.val()),a.each(this.src,function(b,c){a.each(c,function(b,c){var e=c.val(),f;switch(b){case"width":d.img.css("width",e);break;case"height":d.img.css("height",e);break;case"align":d.img.css(e=="left"||e=="right"?"float":"vertical-align",e);break;case"margin":e.css?d.img.css("margin",e.css):d.img.css({"margin-left":e.left,"margin-top":e.top,"margin-right":e.right,"margin-bottom":e.bottom});break;case"border":if(!e.width)e="";else{e="border:"+e.css+";"+a.trim((d.img.attr("style")||"").replace(/border\-[^;]+;?/ig,"")),b="style",d.img.attr("style",e);return}break;case"src":case"style":return;default:e?d.img.attr(b,e):d.img.removeAttr(b)}})}),!this.img[0].parentNode&&b.selection.insertNode(this.img[0]),this.rte.ui.update()},this.update=function(){this.domElem.removeClass("disabled");var b=this.rte.selection.getEnd(),c=a(b);b.nodeName=="IMG"&&!c.hasClass("elrte-protected")?this.domElem.addClass("active"):this.domElem.removeClass("active")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.indent=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this;this.command=function(){function c(b){var c=/(IMG|HR|TABLE|EMBED|OBJECT)/.test(b.nodeName)?"margin-left":"padding-left",e=d.rte.dom.attr(b,"style").indexOf(c)!=-1?parseInt(a(b).css(c))||0:0;a(b).css(c,e+40+"px")}this.rte.history.add();var b=this.rte.selection.selected({collapsed:!0,blocks:!0,wrap:"inline",tag:"p"});for(var e=0;e<b.length;e++)if(/^(TABLE|THEAD|TFOOT|TBODY|COL|COLGROUP|TR)$/.test(b[e].nodeName))a(b[e]).find("td,th").each(function(){c(this)});else if(/^LI$/.test(b[e].nodeName)){var f=a(b[e]);a(this.rte.dom.create(b[e].parentNode.nodeName)).append(a(this.rte.dom.create("li")).html(f.html()||"")).appendTo(f.html("&nbsp;"))}else c(b[e]);this.rte.ui.update()},this.update=function(){this.domElem.removeClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.justifyleft=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.align=this.name=="justifyfull"?"justify":this.name.replace("justify",""),this.command=function(){var b=this.rte.selection.selected({collapsed:!0,blocks:!0,tag:"div"}),c=b.length;c&&this.rte.history.add();while(c--)this.rte.dom.filter(b[c],"textNodes")&&a(b[c]).css("text-align",this.align);this.rte.ui.update()},this.update=function(){var b=this.rte.selection.getNode(),c=b.nodeName=="BODY"?b:this.rte.dom.selfOrParent(b,"textNodes")||(b.parentNode&&b.parentNode.nodeName=="BODY"?b.parentNode:null);c?this.domElem.removeClass("disabled").toggleClass("active",a(c).css("text-align")==this.align):this.domElem.addClass("disabled")}},elRTE.prototype.ui.prototype.buttons.justifycenter=elRTE.prototype.ui.prototype.buttons.justifyleft,elRTE.prototype.ui.prototype.buttons.justifyright=elRTE.prototype.ui.prototype.buttons.justifyleft,elRTE.prototype.ui.prototype.buttons.justifyfull=elRTE.prototype.ui.prototype.buttons.justifyleft}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.link=function(b,c){function f(){e.labels={id:"ID","class":"Css class",style:"Css style",dir:"Script direction",lang:"Language",charset:"Charset",type:"Target MIME type",rel:"Relationship page to target (rel)",rev:"Relationship target to page (rev)",tabindex:"Tab index",accesskey:"Access key"},e.src={main:{href:a('<input type="text" />'),title:a('<input type="text" />'),anchor:a("<select />").attr("name","anchor"),target:a("<select />").append(a("<option />").text(e.rte.i18n("In this window")).val("")).append(a("<option />").text(e.rte.i18n("In new window (_blank)")).val("_blank"))},popup:{use:a('<input type="checkbox" />'),url:a('<input type="text" />').val("http://"),name:a('<input type="text" />'),width:a('<input type="text" />').attr({size:6,title:e.rte.i18n("Width")}).css("text-align","right"),height:a('<input type="text" />').attr({size:6,title:e.rte.i18n("Height")}).css("text-align","right"),left:a('<input type="text" />').attr({size:6,title:e.rte.i18n("Left")}).css("text-align","right"),top:a('<input type="text" />').attr({size:6,title:e.rte.i18n("Top")}).css("text-align","right"),location:a('<input type="checkbox" />'),menubar:a('<input type="checkbox" />'),toolbar:a('<input type="checkbox" />'),scrollbars:a('<input type="checkbox" />'),status:a('<input type="checkbox" />'),resizable:a('<input type="checkbox" />'),dependent:a('<input type="checkbox" />'),retfalse:a('<input type="checkbox" />').attr("checked",!0)},adv:{id:a('<input type="text" />'),"class":a('<input type="text" />'),style:a('<input type="text" />'),dir:a("<select />").append(a("<option />").text(e.rte.i18n("Not set")).val("")).append(a("<option />").text(e.rte.i18n("Left to right")).val("ltr")).append(a("<option />").text(e.rte.i18n("Right to left")).val("rtl")),lang:a('<input type="text" />'),charset:a('<input type="text" />'),type:a('<input type="text" />'),rel:a('<input type="text" />'),rev:a('<input type="text" />'),tabindex:a('<input type="text" />'),accesskey:a('<input type="text" />')},events:{}},a.each(["onblur","onfocus","onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmouseleave","onkeydown","onkeypress","onkeyup"],function(){e.src.events[this]=a('<input type="text" />')}),a.each(e.src,function(){for(var a in this){var b=this[a].attr("type");(!b||b=="text"&&!this[a].attr("size"))&&this[a].css("width","100%")}})}this.constructor.prototype.constructor.call(this,b,c);var e=this;this.img=!1,this.bm,this.command=function(){function p(a){return a.nodeName=="A"&&a.href}var b=this.rte.selection.getNode(),c,h,i,j,k,l,m,n,o;!this.src&&f(),this.bm=this.rte.selection.getBookmark(),this.link=this.rte.dom.selfOrParentLink(b);if(!this.link){c=a.browser.msie?this.rte.selection.selected():this.rte.selection.selected({wrap:!1});if(c.length){for(h=0;h<c.length;h++)if(p(c[h])){this.link=c[h];break}this.link||(this.link=this.rte.dom.parent(c[0],p)||this.rte.dom.parent(c[c.length-1],p))}}this.link=this.link?a(this.link):a(this.rte.doc.createElement("a")),this.img=b.nodeName=="IMG"?b:null,this.updatePopup(),this.src.main.anchor.empty(),a('a[href!=""][name]',this.rte.doc).each(function(){var b=a(this).attr("name");e.src.main.anchor.append(a("<option />").val(b).text(b))}),this.src.main.anchor.children().length&&this.src.main.anchor.prepend(a("<option />").val("").text(this.rte.i18n("Select bookmark"))).change(function(){var b=a(this).val();b&&e.src.main.href.val("#"+b)}),j={rtl:this.rte.rtl,submit:function(a,b){a.stopPropagation(),a.preventDefault(),e.set(),b.close()},tabs:{show:function(a,b){b.index==3&&e.updateOnclick()}},close:function(){e.rte.browser.msie&&e.rte.selection.restoreIERange()},dialog:{width:"auto",width:430,title:this.rte.i18n("Link")}},d=new elDialogForm(j),k=a("<div />").append(a("<label />").append(this.src.popup.location).append(this.rte.i18n("Location bar"))).append(a("<label />").append(this.src.popup.menubar).append(this.rte.i18n("Menu bar"))).append(a("<label />").append(this.src.popup.toolbar).append(this.rte.i18n("Toolbar"))).append(a("<label />").append(this.src.popup.scrollbars).append(this.rte.i18n("Scrollbars"))),l=a("<div />").append(a("<label />").append(this.src.popup.status).append(this.rte.i18n("Status bar"))).append(a("<label />").append(this.src.popup.resizable).append(this.rte.i18n("Resizable"))).append(a("<label />").append(this.src.popup.dependent).append(this.rte.i18n("Depedent"))).append(a("<label />").append(this.src.popup.retfalse).append(this.rte.i18n("Add return false"))),d.tab("main",this.rte.i18n("Properies")).tab("popup",this.rte.i18n("Popup")).tab("adv",this.rte.i18n("Advanced")).tab("events",this.rte.i18n("Events")).append(a("<label />").append(this.src.popup.use).append(this.rte.i18n("Open link in popup window")),"popup").separator("popup").append([this.rte.i18n("URL"),this.src.popup.url],"popup",!0).append([this.rte.i18n("Window name"),this.src.popup.name],"popup",!0).append([this.rte.i18n("Window size"),a("<span />").append(this.src.popup.width).append(" x ").append(this.src.popup.height).append(" px")],"popup",!0).append([this.rte.i18n("Window position"),a("<span />").append(this.src.popup.left).append(" x ").append(this.src.popup.top).append(" px")],"popup",!0).separator("popup").append([k,l],"popup",!0),m=this.link.get(0),n=this.rte.dom.attr(m,"href"),this.src.main.href.val(n).change(function(){a(this).val(e.rte.utils.absoluteURL(a(this).val()))});if(this.rte.options.fmAllow&&this.rte.options.fmOpen){var o=a("<span />").append(this.src.main.href.css("width","87%")).append(a("<span />").addClass("ui-state-default ui-corner-all").css({"float":"right","margin-right":"3px"}).attr("title",e.rte.i18n("Open file manger")).append(a("<span />").addClass("ui-icon ui-icon-folder-open")).click(function(){e.rte.options.fmOpen(function(a){e.src.main.href.val(a).change()})}).hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}));d.append([this.rte.i18n("Link URL"),o],"main",!0)}else d.append([this.rte.i18n("Link URL"),this.src.main.href],"main",!0);this.src.main.href.change(),d.append([this.rte.i18n("Title"),this.src.main.title.val(this.rte.dom.attr(m,"title"))],"main",!0),this.src.main.anchor.children().length&&d.append([this.rte.i18n("Bookmark"),this.src.main.anchor.val(n)],"main",!0),(!this.rte.options.doctype.match(/xhtml/)||!this.rte.options.doctype.match(/strict/))&&d.append([this.rte.i18n("Target"),this.src.main.target.val(this.link.attr("target")||"")],"main",!0);for(var b in this.src.adv)this.src.adv[b].val(this.rte.dom.attr(m,b)),d.append([this.rte.i18n(this.labels[b]?this.labels[b]:b),this.src.adv[b]],"adv",!0);for(var b in this.src.events){var i=this.rte.utils.trimEventCallback(this.rte.dom.attr(m,b));this.src.events[b].val(i),d.append([this.rte.i18n(this.labels[b]?this.labels[b]:b),this.src.events[b]],"events",!0)}this.src.popup.use.change(function(){var b=a(this).attr("checked");a.each(e.src.popup,function(){a(this).attr("name")!="use"&&(b?a(this).removeAttr("disabled"):a(this).attr("disabled",!0))})}),this.src.popup.use.change(),d.open()},this.update=function(){var a=this.rte.selection.getNode();this.rte.dom.selfOrParentLink(a)?this.domElem.removeClass("disabled").addClass("active"):this.rte.dom.selectionHas(function(a){return a.nodeName=="A"&&a.href})?this.domElem.removeClass("disabled").addClass("active"):!this.rte.selection.collapsed()||a.nodeName=="IMG"?this.domElem.removeClass("disabled active"):this.domElem.addClass("disabled").removeClass("active")},this.updatePopup=function(){var b=""+this.link.attr("onclick");b.length>0&&(m=b.match(/window.open\('([^']+)',\s*'([^']*)',\s*'([^']*)'\s*.*\);\s*(return\s+false)?/))?(this.src.popup.use.attr("checked","on"),this.src.popup.url.val(m[1]),this.src.popup.name.val(m[2]),/location=yes/.test(m[3])&&this.src.popup.location.attr("checked",!0),/menubar=yes/.test(m[3])&&this.src.popup.menubar.attr("checked",!0),/toolbar=yes/.test(m[3])&&this.src.popup.toolbar.attr("checked",!0),/scrollbars=yes/.test(m[3])&&this.src.popup.scrollbars.attr("checked",!0),/status=yes/.test(m[3])&&this.src.popup.status.attr("checked",!0),/resizable=yes/.test(m[3])&&this.src.popup.resizable.attr("checked",!0),/dependent=yes/.test(m[3])&&this.src.popup.dependent.attr("checked",!0),(_m=m[3].match(/width=([^,]+)/))&&this.src.popup.width.val(_m[1]),(_m=m[3].match(/height=([^,]+)/))&&this.src.popup.height.val(_m[1]),(_m=m[3].match(/left=([^,]+)/))&&this.src.popup.left.val(_m[1]),(_m=m[3].match(/top=([^,]+)/))&&this.src.popup.top.val(_m[1]),m[4]&&this.src.popup.retfalse.attr("checked",!0)):a.each(this.src.popup,function(){var b=a(this);b.attr("type")=="text"?b.val(b.attr("name")=="url"?"http://":""):b.attr("name")=="retfalse"?this.attr("checked",!0):b.removeAttr("checked")})},this.updateOnclick=function(){var b=this.src.popup.url.val();if(this.src.popup.use.attr("checked")&&b){var c="";this.src.popup.location.attr("checked")&&(c+="location=yes,"),this.src.popup.menubar.attr("checked")&&(c+="menubar=yes,"),this.src.popup.toolbar.attr("checked")&&(c+="toolbar=yes,"),this.src.popup.scrollbars.attr("checked")&&(c+="scrollbars=yes,"),this.src.popup.status.attr("checked")&&(c+="status=yes,"),this.src.popup.resizable.attr("checked")&&(c+="resizable=yes,"),this.src.popup.dependent.attr("checked")&&(c+="dependent=yes,"),this.src.popup.width.val()&&(c+="width="+this.src.popup.width.val()+","),this.src.popup.height.val()&&(c+="height="+this.src.popup.height.val()+","),this.src.popup.left.val()&&(c+="left="+this.src.popup.left.val()+","),this.src.popup.top.val()&&(c+="top="+this.src.popup.top.val()+","),c.length>0&&(c=c.substring(0,c.length-1));var d=this.src.popup.retfalse.attr("checked")?"return false;":"",e="window.open('"+b+"', '"+a.trim(this.src.popup.name.val())+"', '"+c+"'); "+d;this.src.events.onclick.val(e),this.src.main.href.val()||this.src.main.href.val("#")}else{var f=this.src.events.onclick.val();f=f.replace(/window\.open\([^\)]+\)\s*;?\s*return\s*false\s*;?/i,""),this.src.events.onclick.val(f)}},this.set=function(){var b,c;this.updateOnclick(),this.rte.selection.moveToBookmark(this.bm),this.rte.history.add(),b=this.rte.utils.absoluteURL(this.src.main.href.val());if(!b){var d=this.rte.selection.getBookmark();this.rte.dom.unwrap(this.link[0]),this.rte.selection.moveToBookmark(d)}else{this.img&&this.img.parentNode?(this.link=a(this.rte.dom.create("a")).attr("href",b),this.rte.dom.wrap(this.img,this.link[0])):this.link[0].parentNode||(c="#--el-editor---"+Math.random(),this.rte.doc.execCommand("createLink",!1,c),this.link=a('a[href="'+c+'"]',this.rte.doc),this.link.each(function(){var b=a(this);!a.trim(b.html())&&!a.trim(b.text())&&b.replaceWith(b.text())})),this.src.main.href.val(b);for(var e in this.src)if(e!="popup")for(var f in this.src[e])if(f!="anchors"){var g=a.trim(this.src[e][f].val());g?this.link.attr(f,g):this.link.removeAttr(f)}this.img&&this.rte.selection.select(this.img)}this.rte.ui.update(!0)}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.nbsp=function(a,b){this.constructor.prototype.constructor.call(this,a,b),this.command=function(){this.rte.history.add(),this.rte.selection.insertHtml("&nbsp;",!0),this.rte.window.focus(),this.rte.ui.update()},this.update=function(){this.domElem.removeClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.outdent=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this;this.command=function(){var b=this.find();b.node&&(this.rte.history.add(),a(b.node).css(b.type,(b.val>40?b.val-40:0)+"px"),this.rte.ui.update())},this.find=function(b){function c(b){var c={type:"",val:0},e;if(e=d.rte.dom.attr(b,"style"))c.type=e.indexOf("padding-left")!=-1?"padding-left":e.indexOf("margin-left")!=-1?"margin-left":"",c.val=c.type?parseInt(a(b).css(c.type))||0:0;return c}var b=this.rte.selection.getNode(),e=c(b);return e.val?e.node=b:a.each(this.rte.dom.parents(b,"*"),function(){e=c(this);if(e.val)return e.node=this,e}),e},this.update=function(){var a=this.find();a.node?this.domElem.removeClass("disabled"):this.domElem.addClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.pagebreak=function(b,c){this.constructor.prototype.constructor.call(this,b,c),a(this.rte.doc.body).bind("mousedown",function(b){a(b.target).hasClass("elrte-pagebreak")&&b.preventDefault()}),this.command=function(){this.rte.selection.insertHtml('<img src="'+this.rte.filter.url+'pixel.gif" class="elrte-protected elrte-pagebreak"/>',!1)},this.update=function(){this.domElem.removeClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.pasteformattext=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.iframe=a(document.createElement("iframe")).addClass("el-rte-paste-input"),this.doc=null;var d=this;this.command=function(){this.rte.selection.saveIERange();var a=this,b={submit:function(b,c){b.stopPropagation(),b.preventDefault(),a.paste(),c.close()},dialog:{width:500,title:this.rte.i18n("Paste formatted text")}},c=new elDialogForm(b);c.append(this.iframe).open(),this.doc=this.iframe.get(0).contentWindow.document,html=this.rte.options.doctype+'<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',html+="</head><body> <br /> </body></html>",this.doc.open(),this.doc.write(html),this.doc.close();if(!this.rte.browser.msie)try{this.doc.designMode="on"}catch(d){}else this.doc.body.contentEditable=!0;setTimeout(function(){a.iframe[0].contentWindow.focus()},50)},this.paste=function(){a(this.doc.body).find("[class]").removeAttr("class");var b=a.trim(a(this.doc.body).html());b&&(this.rte.history.add(),this.rte.selection.restoreIERange(),this.rte.selection.insertHtml(this.rte.filter.wysiwyg2wysiwyg(this.rte.filter.proccess("paste",b))),this.rte.ui.update(!0))},this.update=function(){this.domElem.removeClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.pastetext=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.input=a("<textarea />").addClass("el-rte-paste-input");var d=this;this.command=function(){this.rte.browser.msie&&this.rte.selection.saveIERange();var a={submit:function(a,b){a.stopPropagation(),a.preventDefault(),d.paste(),b.close()},dialog:{width:500,title:this.rte.i18n("Paste only text")}},b=new elDialogForm(a);b.append(this.input).open()},this.paste=function(){var b=a.trim(this.input.val());b&&(this.rte.history.add(),this.rte.browser.msie&&this.rte.selection.restoreIERange(),this.rte.selection.insertText(b.replace(/\r?\n/g,"<br />"),!0),this.rte.ui.update(!0)),this.input.val("")},this.update=function(){this.domElem.removeClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.save=function(a,b){this.constructor.prototype.constructor.call(this,a,b),this.active=!0,this.command=function(){this.rte.save()},this.update=function(){}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.smiley=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this;this.img=null,this.url=this.rte.filter.url+"smileys/",this.smileys={smile:"smile.png",happy:"happy.png",tongue:"tongue.png",surprised:"surprised.png",waii:"waii.png",wink:"wink.png",evilgrin:"evilgrin.png",grin:"grin.png",unhappy:"unhappy.png"},this.width=120,this.command=function(){var b=this,c=this.url,d,e,f;this.rte.browser.msie&&this.rte.selection.saveIERange(),e={dialog:{height:120,width:this.width,title:this.rte.i18n("Smiley"),buttons:{}}},d=new elDialogForm(e),a.each(this.smileys,function(e,f){d.append(a('<img src="'+c+f+'" title="'+e+'" id="'+e+'" class="el-rte-smiley"/>').click(function(){b.set(this.id,d)}))}),d.open()},this.update=function(){this.domElem.removeClass("disabled"),this.domElem.removeClass("active")},this.set=function(b,c){this.rte.browser.msie&&this.rte.selection.restoreIERange(),this.smileys[b]&&(this.img=a(this.rte.doc.createElement("img")),this.img.attr({src:this.url+this.smileys[b],title:b,alt:b}),this.rte.selection.insertNode(this.img.get(0)),this.rte.ui.update()),c.close()}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.stopfloat=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.find=function(){if(this.rte.selection.collapsed()){var b=this.rte.dom.selfOrParent(this.rte.selection.getEnd(),/^DIV$/);if(b&&(this.rte.dom.attr(b,"clear")||a(b).css("clear")!="none"))return b}},this.command=function(){var b;if(b=this.find()){var b=a(b);this.rte.history.add(),!b.children().length&&!a.trim(b.text()).length?b.remove():b.removeAttr("clear").css("clear","")}else this.rte.history.add(),this.rte.selection.insertNode(a(this.rte.dom.create("div")).css("clear","both").get(0),!0);this.rte.ui.update(!0)},this.update=function(){this.domElem.removeClass("disabled"),this.find()?this.domElem.addClass("active"):this.domElem.removeClass("active")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.table=function(b,c){function e(){d.labels={main:"Properies",adv:"Advanced",events:"Events",id:"ID","class":"Css class",style:"Css style",dir:"Script direction",summary:"Summary",lang:"Language",href:"URL"},d.src={main:{caption:a('<input type="text" />'),rows:a('<input type="text" />').attr("size",5).val(2),cols:a('<input type="text" />').attr("size",5).val(2),width:a('<input type="text" />').attr("size",5),wunit:a("<select />").append(a("<option />").val("%").text("%")).append(a("<option />").val("px").text("px")),height:a('<input type="text" />').attr("size",5),hunit:a("<select />").append(a("<option />").val("%").text("%")).append(a("<option />").val("px").text("px")),align:a("<select />").append(a("<option />").val("").text(d.rte.i18n("Not set"))).append(a("<option />").val("left").text(d.rte.i18n("Left"))).append(a("<option />").val("center").text(d.rte.i18n("Center"))).append(a("<option />").val("right").text(d.rte.i18n("Right"))),spacing:a('<input type="text" />').attr("size",5),padding:a('<input type="text" />').attr("size",5),border:a("<div />"),rules:a("<select />").append(a("<option />").val("none").text(d.rte.i18n("No"))).append(a("<option />").val("all").text(d.rte.i18n("Cells"))).append(a("<option />").val("groups").text(d.rte.i18n("Groups"))).append(a("<option />").val("rows").text(d.rte.i18n("Rows"))).append(a("<option />").val("cols").text(d.rte.i18n("Columns"))),margin:a("<div />"),bg:a("<div />"),bgimg:a('<input type="text" />').css("width","90%")},adv:{id:a('<input type="text" />'),summary:a('<input type="text" />'),"class":a('<input type="text" />'),style:a('<input type="text" />'),dir:a("<select />").append(a("<option />").text(d.rte.i18n("Not set")).val("")).append(a("<option />").text(d.rte.i18n("Left to right")).val("ltr")).append(a("<option />").text(d.rte.i18n("Right to left")).val("rtl")),lang:a('<input type="text" />')},events:{}},a.each(d.src,function(){for(var a in this){this[a].attr("name",a);var b=this[a].get(0).nodeName;b=="INPUT"&&a!="bgimg"?this[a].css(this[a].attr("size")?{"text-align":"right"}:{width:"100%"}):b=="SELECT"&&a!="wunit"&&a!="hunit"&&this[a].css("width","100%")}}),a.each(["onblur","onfocus","onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmouseleave","onkeydown","onkeypress","onkeyup"],function(){d.src.events[this]=a('<input type="text" />').css("width","100%")}),d.src.main.align.change(function(){var b=a(this).val();if(b=="center")d.src.main.margin.val({left:"auto",right:"auto"});else{var c=d.src.main.margin.val();c.left=="auto"&&c.right=="auto"&&d.src.main.margin.val({left:"",right:""})}}),d.src.main.bgimg.change(function(){var b=a(this);b.val(d.rte.utils.absoluteURL(b.val()))})}this.constructor.prototype.constructor.call(this,b,c);var d=this;this.src=null,this.labels=null,this.command=function(){var b=this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^TABLE$/);this.name=="table"?this.table=a(this.rte.doc.createElement("table")):this.table=b?a(b):a(this.rte.doc.createElement("table")),!this.src&&e(),this.src.main.border.elBorderSelect({styleHeight:117}),this.src.main.bg.elColorPicker({palettePosition:"outer","class":"el-colorpicker ui-icon ui-icon-pencil"}),this.src.main.margin.elPaddingInput({type:"margin",value:this.table}),this.table.parents().length?(this.src.main.rows.val("").attr("disabled",!0),this.src.main.cols.val("").attr("disabled",!0)):(this.src.main.rows.val(2).removeAttr("disabled"),this.src.main.cols.val(2).removeAttr("disabled"));var c=this.table.css("width")||this.table.attr("width");this.src.main.width.val(parseInt(c)||""),this.src.main.wunit.val(c.indexOf("px")!=-1?"px":"%");var f=this.table.css("height")||this.table.attr("height");this.src.main.height.val(parseInt(f)||""),this.src.main.hunit.val(f&&f.indexOf("px")!=-1?"px":"%");var h=this.table.css("float");this.src.main.align.val("");if(h=="left"||h=="right")this.src.main.align.val(h);else{var i=this.table.css("margin-left"),j=this.table.css("margin-right");i=="auto"&&j=="auto"&&this.src.main.align.val("center")}this.src.main.border.val(this.table),this.src.main.rules.val(this.rte.dom.attr(this.table.get(0),"rules")),this.src.main.bg.val(this.table.css("background-color"));var k=(this.table.css("background-image")||"").replace(/url\(([^\)]+)\)/i,"$1");this.src.main.bgimg.val(k!="none"?k:"");var l={rtl:this.rte.rtl,submit:function(a,b){a.stopPropagation(),a.preventDefault(),d.set(),b.close()},dialog:{width:530,title:this.rte.i18n("Table")}},m=new elDialogForm(l);for(var n in this.src){m.tab(n,this.rte.i18n(this.labels[n]));if(n=="main"){var o=a("<table />").append(a("<tr />").append("<td>"+this.rte.i18n("Rows")+"</td>").append(a("<td />").append(this.src.main.rows))).append(a("<tr />").append("<td>"+this.rte.i18n("Columns")+"</td>").append(a("<td />").append(this.src.main.cols))),p=a("<table />").append(a("<tr />").append("<td>"+this.rte.i18n("Width")+"</td>").append(a("<td />").append(this.src.main.width).append(this.src.main.wunit))).append(a("<tr />").append("<td>"+this.rte.i18n("Height")+"</td>").append(a("<td />").append(this.src.main.height).append(this.src.main.hunit))),q=a("<table />").append(a("<tr />").append("<td>"+this.rte.i18n("Spacing")+"</td>").append(a("<td />").append(this.src.main.spacing.val(this.table.attr("cellspacing")||"")))).append(a("<tr />").append("<td>"+this.rte.i18n("Padding")+"</td>").append(a("<td />").append(this.src.main.padding.val(this.table.attr("cellpadding")||""))));m.append([this.rte.i18n("Caption"),this.src.main.caption.val(this.table.find("caption").eq(0).text()||"")],"main",!0).separator("main").append([o,p,q],"main",!0).separator("main").append([this.rte.i18n("Border"),this.src.main.border],"main",!0).append([this.rte.i18n("Inner borders"),this.src.main.rules],"main",!0).append([this.rte.i18n("Alignment"),this.src.main.align],"main",!0).append([this.rte.i18n("Margins"),this.src.main.margin],"main",!0).append([this.rte.i18n("Background"),a("<span />").append(a("<span />").css({"float":"left","margin-right":"3px"}).append(this.src.main.bg)).append(this.src.main.bgimg)],"main",!0)}else for(var r in this.src[n]){var s=this.rte.dom.attr(this.table,r);n=="events"&&(s=this.rte.utils.trimEventCallback(s)),m.append([this.rte.i18n(this.labels[r]?this.labels[r]:r),this.src[n][r].val(s)],n,!0)}}m.open()},
this.set=function(){if(!this.table.parents().length){var b=parseInt(this.src.main.rows.val())||0,c=parseInt(this.src.main.cols.val())||0;if(b<=0||c<=0)return;this.rte.history.add();var d=a(this.rte.doc.createElement("tbody")).appendTo(this.table);for(var e=0;e<b;e++){var f="<tr>";for(var g=0;g<c;g++)f+="<td>&nbsp;</td>";d.append(f+"</tr>")}}else this.table.removeAttr("width").removeAttr("height").removeAttr("border").removeAttr("align").removeAttr("bordercolor").removeAttr("bgcolor").removeAttr("cellspacing").removeAttr("cellpadding").removeAttr("frame").removeAttr("rules").removeAttr("style");var h=a.trim(this.src.main.caption.val());h?(this.table.children("caption").length||this.table.prepend("<caption />"),this.table.children("caption").text(h)):this.table.children("caption").remove();for(var i in this.src)if(i!="main")for(var j in this.src[i]){var k=a.trim(this.src[i][j].val());k?this.table.attr(j,k):this.table.removeAttr(j)}var l,m,n;(l=parseInt(this.src.main.spacing.val()))&&l>=0&&this.table.attr("cellspacing",l),(m=parseInt(this.src.main.padding.val()))&&m>=0&&this.table.attr("cellpadding",m),(n=this.src.main.rules.val())&&this.table.attr("rules",n);var o=parseInt(this.src.main.width.val())||"",p=parseInt(this.src.main.height.val())||"",e=a.trim(this.src.main.bgimg.val()),d=this.src.main.border.val(),q=this.src.main.margin.val(),r=this.src.main.align.val();this.table.css({width:o?o+this.src.main.wunit.val():"",height:p?p+this.src.main.hunit.val():"",border:a.trim(d.width+" "+d.style+" "+d.color),"background-color":this.src.main.bg.val(),"background-image":e?"url("+e+")":""}),q.css?this.table.css("margin",q.css):this.table.css({"margin-top":q.top,"margin-right":q.right,"margin-bottom":q.bottom,"margin-left":q.left}),(r=="left"||r=="right")&&this.table.css("margin-left")!="auto"&&this.table.css("margin-right")!="auto"&&this.table.css("float",r),this.table.attr("style")||this.table.removeAttr("style"),this.table.parents().length||this.rte.selection.insertNode(this.table.get(0),!0),this.rte.ui.update()},this.update=function(){this.domElem.removeClass("disabled"),this.name=="tableprops"&&!this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^TABLE$/)&&this.domElem.addClass("disabled").removeClass("active")}},elRTE.prototype.ui.prototype.buttons.tableprops=elRTE.prototype.ui.prototype.buttons.table}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.tablerm=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.command=function(){var b=this.rte.dom.parent(this.rte.selection.getNode(),/^TABLE$/);b&&(this.rte.history.add(),a(b).remove()),this.rte.ui.update(!0)},this.update=function(){this.rte.dom.parent(this.rte.selection.getNode(),/^TABLE$/)?this.domElem.removeClass("disabled"):this.domElem.addClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.tbcellprops=function(b,c){function e(){d.labels={main:"Properies",adv:"Advanced",events:"Events",id:"ID","class":"Css class",style:"Css style",dir:"Script direction",lang:"Language"},d.src={main:{type:a("<select />").css("width","100%").append(a("<option />").val("td").text(d.rte.i18n("Data"))).append(a("<option />").val("th").text(d.rte.i18n("Header"))),width:a('<input type="text" />').attr("size",4),wunit:a("<select />").append(a("<option />").val("%").text("%")).append(a("<option />").val("px").text("px")),height:a('<input type="text" />').attr("size",4),hunit:a("<select />").append(a("<option />").val("%").text("%")).append(a("<option />").val("px").text("px")),align:a("<select />").css("width","100%").append(a("<option />").val("").text(d.rte.i18n("Not set"))).append(a("<option />").val("left").text(d.rte.i18n("Left"))).append(a("<option />").val("center").text(d.rte.i18n("Center"))).append(a("<option />").val("right").text(d.rte.i18n("Right"))).append(a("<option />").val("justify").text(d.rte.i18n("Justify"))),border:a("<div />"),padding:a("<div />"),bg:a("<div />"),bgimg:a('<input type="text" />').css("width","90%"),apply:a("<select />").css("width","100%").append(a("<option />").val("").text(d.rte.i18n("Current cell"))).append(a("<option />").val("row").text(d.rte.i18n("All cells in row"))).append(a("<option />").val("column").text(d.rte.i18n("All cells in column"))).append(a("<option />").val("table").text(d.rte.i18n("All cells in table")))},adv:{id:a('<input type="text" />'),"class":a('<input type="text" />'),style:a('<input type="text" />'),dir:a("<select />").css("width","100%").append(a("<option />").text(d.rte.i18n("Not set")).val("")).append(a("<option />").text(d.rte.i18n("Left to right")).val("ltr")).append(a("<option />").text(d.rte.i18n("Right to left")).val("rtl")),lang:a('<input type="text" />')},events:{}},a.each(d.src,function(){for(var a in this)this[a].attr("name",a),this[a].attr("type")=="text"&&!this[a].attr("size")&&a!="bgimg"&&this[a].css("width","100%")}),a.each(["onblur","onfocus","onclick","ondblclick","onmousedown","onmouseup","onmouseover","onmouseout","onmouseleave","onkeydown","onkeypress","onkeyup"],function(){d.src.events[this]=a('<input type="text" />').css("width","100%")})}this.constructor.prototype.constructor.call(this,b,c);var d=this;this.src=null,this.labels=null,this.command=function(){!this.src&&e(),this.cell=this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^(TD|TH)$/);if(!this.cell)return;this.src.main.type.val(this.cell.nodeName.toLowerCase()),this.cell=a(this.cell),this.src.main.border.elBorderSelect({styleHeight:117,value:this.cell}),this.src.main.bg.elColorPicker({palettePosition:"outer","class":"el-colorpicker ui-icon ui-icon-pencil"}),this.src.main.padding.elPaddingInput({value:this.cell});var b=this.cell.css("width")||this.cell.attr("width");this.src.main.width.val(parseInt(b)||""),this.src.main.wunit.val(b.indexOf("px")!=-1?"px":"%");var c=this.cell.css("height")||this.cell.attr("height");this.src.main.height.val(parseInt(c)||""),this.src.main.hunit.val(c.indexOf("px")!=-1?"px":"%"),this.src.main.align.val(this.cell.attr("align")||this.cell.css("text-align")),this.src.main.bg.val(this.cell.css("background-color"));var f=this.cell.css("background-image");this.src.main.bgimg.val(f&&f!="none"?f.replace(/url\(([^\)]+)\)/i,"$1"):""),this.src.main.apply.val("");var h={rtl:this.rte.rtl,submit:function(a,b){a.stopPropagation(),a.preventDefault(),d.set(),b.close()},dialog:{width:520,title:this.rte.i18n("Table cell properties")}},i=new elDialogForm(h);for(var j in this.src){i.tab(j,this.rte.i18n(this.labels[j]));if(j=="main")i.append([this.rte.i18n("Width"),a("<span />").append(this.src.main.width).append(this.src.main.wunit)],"main",!0).append([this.rte.i18n("Height"),a("<span />").append(this.src.main.height).append(this.src.main.hunit)],"main",!0).append([this.rte.i18n("Table cell type"),this.src.main.type],"main",!0).append([this.rte.i18n("Border"),this.src.main.border],"main",!0).append([this.rte.i18n("Alignment"),this.src.main.align],"main",!0).append([this.rte.i18n("Paddings"),this.src.main.padding],"main",!0).append([this.rte.i18n("Background"),a("<span />").append(a("<span />").css({"float":"left","margin-right":"3px"}).append(this.src.main.bg)).append(this.src.main.bgimg)],"main",!0).append([this.rte.i18n("Apply to"),this.src.main.apply],"main",!0);else for(var k in this.src[j]){var l=this.cell.attr(k)||"";j=="events"&&(l=this.rte.utils.trimEventCallback(l)),i.append([this.rte.i18n(this.labels[k]?this.labels[k]:k),this.src[j][k].val(l)],j,!0)}}i.open()},this.set=function(){var b=this.cell,c=this.src.main.apply.val();switch(this.src.main.apply.val()){case"row":b=this.cell.parent("tr").children("td,th");break;case"column":b=a(this.rte.dom.tableColumn(this.cell.get(0)));break;case"table":b=this.cell.parents("table").find("td,th")}for(var e in this.src)if(e!="main")for(var f in this.src[e]){var g=a.trim(this.src[e][f].val());g?b.attr(f,g):b.removeAttr(f)}b.removeAttr("width").removeAttr("height").removeAttr("border").removeAttr("align").removeAttr("bordercolor").removeAttr("bgcolor");var h=this.src.main.type.val(),i=parseInt(this.src.main.width.val())||"",j=parseInt(this.src.main.height.val())||"",k=a.trim(this.src.main.bgimg.val()),l=this.src.main.border.val(),m={width:i?i+this.src.main.wunit.val():"",height:j?j+this.src.main.hunit.val():"","background-color":this.src.main.bg.val(),"background-image":k?"url("+k+")":"",border:a.trim(l.width+" "+l.style+" "+l.color),"text-align":this.src.main.align.val()||""},n=this.src.main.padding.val();n.css?m.padding=n.css:(m["padding-top"]=n.top,m["padding-right"]=n.right,m["padding-bottom"]=n.bottom,m["padding-left"]=n.left),b=b.get(),a.each(b,function(){var b=this.nodeName.toLowerCase(),c=a(this);if(b!=h){var e={};for(var f in d.src.adv){var g=c.attr(f);g&&(e[f]=g.toString())}for(var f in d.src.events){var g=c.attr(f);g&&(e[f]=g.toString())}var i=c.attr("colspan")||1,j=c.attr("rowspan")||1;i>1&&(e.colspan=i),j>1&&(e.rowspan=j),c.replaceWith(a("<"+h+" />").html(c.html()).attr(e).css(m))}else c.css(m)}),this.rte.ui.update()},this.update=function(){this.rte.dom.parent(this.rte.selection.getNode(),/^TABLE$/)?this.domElem.removeClass("disabled"):this.domElem.addClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.tbcellsmerge=function(b,c){function e(){var b=d.rte.dom.selfOrParent(d.rte.selection.getStart(),/^(TD|TH)$/),c=d.rte.dom.selfOrParent(d.rte.selection.getEnd(),/^(TD|TH)$/);return b&&c&&b!=c&&a(b).parents("table").get(0)==a(c).parents("table").get(0)?[b,c]:null}this.constructor.prototype.constructor.call(this,b,c);var d=this;this.command=function(){var b=e();if(b){var c=this.rte.dom.indexOf(a(b[0]).parent("tr").get(0)),d=this.rte.dom.indexOf(a(b[1]).parent("tr").get(0)),f=Math.min(c,d),g=Math.max(c,d)-f+1,h=this.rte.dom.tableColumn(b[0],!0,!0),i=this.rte.dom.tableColumn(b[1],!0),j=a.inArray(b[0],h.column),k=a.inArray(b[1],i.column),l=h.info.offset[j]<i.info.offset[k]?h:i,m=h.info.offset[j]>=i.info.offset[k]?h:i,n=0,o=null,p="";this.rte.history.add();var q=a(a(b[0]).parents("table").eq(0).find("tr").get().slice(f,f+g)).each(function(b){var c=p.length,d=!1;a(this).children("td,th").each(function(){var c=a(this),e=a.inArray(this,l.column),f=a.inArray(this,m.column);if(e!=-1||f!=-1){d=e!=-1&&f==-1;var g=parseInt(c.attr("colspan")||1);b==0&&(n+=g);if(e!=-1&&b>0){var h=l.info.delta[e];if(h>0){if(c.css("text-align")=="left"){var i=c.clone(!0);c.html("&nbsp;")}else var i=c.clone().html("&nbsp;");i.removeAttr("colspan").removeAttr("id").insertBefore(this),h>1&&i.attr("colspan",h)}}if(f!=-1){var h=m.info.delta[f];if(g-h>1){var j=g-h-1;if(c.css("text-align")=="right"){var i=c.clone(!0);c.html("&nbsp;")}else var i=c.clone().html("&nbsp;");i.removeAttr("colspan").removeAttr("id").insertAfter(this),j>1&&i.attr("colspan",j)}}o?(p+=c.html(),c.remove()):o=c}else d&&(b==0&&(n+=parseInt(c.attr("colspan")||1)),p+=c.html(),c.remove())}),p+=c!=p.length?"<br />":""});o.removeAttr("colspan").removeAttr("rowspan").html(o.html()+p),n>1&&o.attr("colspan",n),g>1&&o.attr("rowspan",g),this.rte.dom.fixTable(a(b[0]).parents("table").get(0))}},this.update=function(){e()?this.domElem.removeClass("disabled"):this.domElem.addClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.tbcellsplit=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.command=function(){var b=this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^(TD|TH)$/);if(b){this.rte.history.add();var c=parseInt(this.rte.dom.attr(b,"colspan")),d=parseInt(this.rte.dom.attr(b,"rowspan"));if(c>1||d>1){var e=c-1,f=d-1,g=this.rte.dom.parent(b,/^TABLE$/),h=this.rte.dom.tableMatrix(g);if(e)for(var i=0;i<e;i++)a(this.rte.dom.create(b.nodeName)).html("&nbsp;").insertAfter(b);if(f){var j=this.rte.dom.indexesOfCell(b,h),k=j[0],l=j[1];for(var m=k+1;m<k+f+1;m++){var n;if(!h[m][l].nodeName){if(h[m][l-1].nodeName)n=h[m][l-1];else for(var i=l-1;i>=0;i--)if(h[m][i].nodeName){n=h[m][i];break}if(n)for(var i=0;i<=e;i++)a(this.rte.dom.create(n.nodeName)).html("&nbsp;").insertAfter(n)}}}a(b).removeAttr("colspan").removeAttr("rowspan"),this.rte.dom.fixTable(g)}}this.rte.ui.update(!0)},this.update=function(){var a=this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^(TD|TH)$/);a&&(parseInt(this.rte.dom.attr(a,"colspan"))>1||parseInt(this.rte.dom.attr(a,"rowspan"))>1)?this.domElem.removeClass("disabled"):this.domElem.addClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.tbcolbefore=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this;this.command=function(){var b=this,c=this.rte.dom.tableColumn(this.rte.selection.getNode(),!1,!0);c.length&&(this.rte.history.add(),a.each(c,function(){var c=a(this),d=parseInt(c.attr("colspan")||1);if(d>1)c.attr("colspan",d+1);else{var e=a(b.rte.dom.create(this.nodeName)).html("&nbsp;");b.name=="tbcolbefore"?e.insertBefore(this):e.insertAfter(this)}}),this.rte.ui.update())},this.update=function(){this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^(TD|TH)$/)?this.domElem.removeClass("disabled"):this.domElem.addClass("disabled")}},elRTE.prototype.ui.prototype.buttons.tbcolafter=elRTE.prototype.ui.prototype.buttons.tbcolbefore}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.tbcolrm=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this;this.command=function(){var b=this.rte.selection.getNode(),c=this.rte.dom.selfOrParent(b,/^(TD|TH)$/),d=a(c).prev("td,th").get(0),e=a(c).next("td,th").get(0),f=this.rte.dom.parent(b,/^TABLE$/),g=this.rte.dom.tableColumn(b,!1,!0);g.length&&(this.rte.history.add(),a.each(g,function(){var b=a(this),c=parseInt(b.attr("colspan")||1);c>1?b.attr("colspan",c-1):b.remove()}),this.rte.dom.fixTable(f),(d||e)&&this.rte.selection.selectContents(d?d:e).collapse(!0),this.rte.ui.update(!0))},this.update=function(){this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^(TD|TH)$/)?this.domElem.removeClass("disabled"):this.domElem.addClass("disabled")}}}(jQuery),elRTE.prototype.ui.prototype.buttons.tbrowbefore=function(a,b){this.constructor.prototype.constructor.call(this,a,b),this.command=function(){var a=this.rte.selection.getNode(),b=this.rte.dom.selfOrParent(a,/^(TD|TH)$/),c=this.rte.dom.selfOrParent(b,/^TR$/),d=this.rte.dom.tableMatrix(this.rte.dom.selfOrParent(b,/^TABLE$/));if(b&&c&&d){this.rte.history.add();var e=this.name=="tbrowbefore",f=$(c).prevAll("tr").length,g=0,h=[];function i(a,b){while(b>0){b--;if(d[b]&&d[b][a]&&d[b][a].nodeName)return d[b][a]}}for(var j=0;j<d[f].length;j++)if(d[f][j]&&d[f][j].nodeName){var k=$(d[f][j]),l=parseInt(k.attr("colspan")||1);parseInt(k.attr("rowspan")||1)>1?e?g+=l:h.push(k):g+=l}else d[f][j]=="-"&&(k=i(j,f),k&&h.push($(k)));var m=$(this.rte.dom.create("tr"));for(var j=0;j<g;j++)m.append("<td>&nbsp;</td>");e?m.insertBefore(c):m.insertAfter(c),$.each(h,function(){$(this).attr("rowspan",parseInt($(this).attr("rowspan")||1)+1)}),this.rte.ui.update()}},this.update=function(){this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^TR$/)?this.domElem.removeClass("disabled"):this.domElem.addClass("disabled")}},elRTE.prototype.ui.prototype.buttons.tbrowafter=elRTE.prototype.ui.prototype.buttons.tbrowbefore,function(a){elRTE.prototype.ui.prototype.buttons.tbrowrm=function(b,c){this.constructor.prototype.constructor.call(this,b,c);var d=this;this.command=function(){var b=this.rte.selection.getNode(),c=this.rte.dom.selfOrParent(b,/^(TD|TH)$/),d=this.rte.dom.selfOrParent(c,/^TR$/),e=this.rte.dom.selfOrParent(c,/^TABLE$/),f=this.rte.dom.tableMatrix(e);if(c&&d&&f.length){this.rte.history.add();if(f.length==1)return a(e).remove(),this.rte.ui.update();var g=[],h=a(d).prevAll("tr").length;function i(a,b){while(b>0){b--;if(f[b]&&f[b][a]&&f[b][a].nodeName)return f[b][a]}}function j(b,c){y=h+1;var e=null;if(f[y]){for(var g=0;g<c;g++)f[y][g]&&f[y][g].nodeName&&(e=f[y][g]);b=b.remove(),e?b.insertAfter(e):b.prependTo(a(d).next("tr").eq(0))}}function k(a){for(var b=0;b<a.length;b++)if(a[b]==c)return b<a.length-1?a[b+1]:a[b-1]}for(var l=0;l<f[h].length;l++){var m=null,n=!1;f[h][l]&&f[h][l].nodeName?(m=f[h][l],n=!0):f[h][l]=="-"&&(m=i(l,h))&&(n=!1);if(m){m=a(m);var o=parseInt(m.attr("rowspan")||1);o>1&&(m.attr("rowspan",o-1),n&&j(m,l,h))}}var p=k(this.rte.dom.tableColumn(c));p&&this.rte.selection.selectContents(p).collapse(!0),a(d).remove()}this.rte.ui.update()},this.update=function(){this.rte.dom.selfOrParent(this.rte.selection.getNode(),/^TR$/)?this.domElem.removeClass("disabled"):this.domElem.addClass("disabled")}}}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.undo=function(a,b){this.constructor.prototype.constructor.call(this,a,b),this.command=function(){this.name=="undo"&&this.rte.history.canBack()?(this.rte.history.back(),this.rte.ui.update()):this.name=="redo"&&this.rte.history.canFwd()&&(this.rte.history.fwd(),this.rte.ui.update())},this.update=function(){this.domElem.toggleClass("disabled",this.name=="undo"?!this.rte.history.canBack():!this.rte.history.canFwd())}},elRTE.prototype.ui.prototype.buttons.redo=elRTE.prototype.ui.prototype.buttons.undo}(jQuery),function(a){elRTE.prototype.ui.prototype.buttons.unlink=function(b,c){this.constructor.prototype.constructor.call(this,b,c),this.command=function(){function d(a){return a.nodeName=="A"&&a.href}var b=this.rte.selection.getNode(),c=this.rte.dom.selfOrParentLink(b);if(!c){var e=a.browser.msie?this.rte.selection.selected():this.rte.selection.selected({wrap:!1});if(e.length){for(var f=0;f<e.length;f++)if(d(e[f])){c=e[f];break}c||(c=this.rte.dom.parent(e[0],d)||this.rte.dom.parent(e[e.length-1],d))}}c&&(this.rte.history.add(),this.rte.selection.select(c),this.rte.doc.execCommand("unlink",!1,null),this.rte.ui.update(!0))},this.update=function(){var a=this.rte.selection.getNode();this.rte.dom.selfOrParentLink(a)?this.domElem.removeClass("disabled").addClass("active"):this.rte.dom.selectionHas(function(a){return a.nodeName=="A"&&a.href})?this.domElem.removeClass("disabled").addClass("active"):this.domElem.addClass("disabled").removeClass("active")}}}(jQuery),function(a){elRTE.prototype.i18Messages.LANG_CODE={_translator:"YOUR_NAME &lt;YOUR_EMAIL&gt;",_translation:"YOUR_TRANSLATION NAME",Editor:"",Source:"","Copy/Pase":"","Undo/Redo":"","Text styles":"",Colors:"",Alignment:"","Indent/Outdent":"","Text format":"",Lists:"","Misc elements":"",Links:"",Images:"",Media:"",Tables:"","File manager (elFinder)":"","About this software":"",Save:"",Copy:"",Cut:"",Paste:"","Paste only text":"","Paste formatted text":"","Clean format":"","Undo last action":"","Redo previous action":"",Bold:"",Italic:"",Underline:"",Strikethrough:"",Superscript:"",Subscript:"","Align left":"","Ailgn right":"","Align center":"","Align full":"","Font color":"","Background color":"",Indent:"",Outdent:"",Format:"","Font size":"",Font:"","Ordered list":"","Unordered list":"","Horizontal rule":"",Blockquote:"","Block element (DIV)":"",Link:"","Delete link":"",Bookmark:"",Image:"",Table:"","Delete table":"","Insert row before":"","Insert row after":"","Delete row":"","Insert column before":"","Insert column after":"","Delete column":"","Merge table cells":"","Split table cell":"","Toggle display document structure":"","Table cell properties":"","Table properties":"","Toggle full screen mode":"","Open file manager":"","Non breakable space":"","Stop element floating":"",Warning:"",Properies:"",Popup:"",Advanced:"",Events:"",Width:"",Height:"",Left:"",Center:"",Right:"",Border:"",Background:"","Css class":"","Css style":"",No:"",Title:"","Script direction":"",Language:"",Charset:"","Not set":"","Left to right":"","Right to left":"","In this window":"","In new window (_blank)":"","In new parent window (_parent)":"","In top frame (_top)":"",URL:"","Open in":"","Open file manger":"","This operation is disabled in your browser on security reason. Use shortcut instead.":"","Heading 1":"","Heading 2":"","Heading 3":"","Heading 4":"","Heading 5":"","Heading 6":"",Paragraph:"",Address:"",Preformatted:"","Small (8pt)":"","Small (10px)":"","Small (12pt)":"","Normal (14pt)":"","Large (18pt)":"","Large (24pt)":"","Large (36pt)":"","Bookmark name":"","Link URL":"",Target:"","Select bookmark":"","Open link in popup window":"","Window name":"","Window size":"","Window position":"","Location bar":"","Menu bar":"",Toolbar:"",Scrollbars:"","Status bar":"",Resizable:"",Depedent:"","Add return false":"","Target MIME type":"","Relationship page to target (rel)":"","Relationship target to page (rev)":"","Tab index":"","Access key":"",Size:"",Preview:"",Margins:"","Alt text":"","Image URL":"",Spacing:"",Padding:"",Rows:"",Columns:"",Groups:"",Cells:"",Caption:"","Inner borders":"","Table cell type":"",Data:"",Header:"",Justify:"",Paddings:"","Apply to":"","Current cell":"","All cells in row":"","All cells in column":"","All cells in table":"","About elRTE":"",Version:"",Licence:"","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"","You can use it in any commercial or non-commercial projects.":"",Authors:"","Chief developer":"","Developer, tech support":"",Developer:"","Interface designer":"","Spanish localization":"","Czech localization":"","Japanese localization":"","Latvian localization":"","German localization":"","Ukranian localization":"","Persian (farsi) localization":"","Arabic localization":"","RTL support":"","French localization":"","Dutch localization":"","Hungarian localization":"","Polish localization":"","Italian localization":"","Traditional Chinese localization":"","For more information about this software visit the":"","elRTE website":"на сайте elRTE"}}(jQuery),function(a){elRTE.prototype.i18Messages.ar={_translator:"Tawfek Daghistani &lt;tawfekov@gmail.com&gt;",_translation:"Arabic translation",Editor:"التصميم",Source:"المصدر","Copy/Pase":"نسخ/لصق","Undo/Redo":"تراجع/تكرار","Text styles":"تنسيق النص",Colors:"الألوان",Alignment:"المحاذاة","Indent/Outdent":"مسافة بادئة / مسافة خاتمة","Text format":"التنسيق",Lists:"قوائم","Misc elements":"عناصر متنوعة",Links:"رابط تشعبي",Images:"صورة",Media:"عنصر صوت أو فيديو",Tables:"جدول","File manager (elFinder)":"مستعرض الملفات",Save:"حفظ",Copy:"نسخ",Cut:"قص",Paste:"لصق","Paste only text":"لصق النصوص فقط","Paste formatted text":"لصق النصوص المنسقة","Clean format":"إزالة التنسيقات","Undo last action":"التراجع عن أخر فعل","Redo previous action":"تكرار أخر فعل ",Bold:"عريض",Italic:"مائل",Underline:"تحته خط",Strikethrough:"يتوسطه خط",Superscript:"يعلوه خط",Subscript:"تحته خط","Align left":"محاذاة إلى اليسار","Ailgn right":"محاذاة إلى اليمين ","Align center":"محاذاة إلى المنتصف","Align full":"محاذاة بعرض الصفحة","Font color":"لون الخط","Background color":"لون الخلفية",Indent:"مسافة بادئة",Outdent:"مسافة خاتمة",Format:"النتسيق","Font size":"قياس الخط",Font:"الخط","Ordered list":"تعداد رقمي","Unordered list":"تعداد","Horizontal rule":"خط افقي",Blockquote:"اقتباس","Block element (DIV)":"اقتباس (DIV)",Link:"رابط","Delete link":"حذف الرابط",Bookmark:"حفظ كعلامة",Image:"صورة",Table:"جدول","Delete table":"حذف الجدول","Insert row before":"إدراج الصف قبل ","Insert row after":"إدراج الصف بعده","Delete row":"حذف الصف","Insert column before":"إدراج عمود قبل ","Insert column after":"إدراج عمود بعد ","Delete column":"حذف العمود","Merge table cells":"دمج الخلايا","Split table cell":"تقسيم الخلية","Toggle display document structure":"إخفاء/ إظهار ","Table cell properties":"خصائص الخلايا","Table properties":"خصائص الجدول","Toggle full screen mode":"عرض بكامل الشاشة","Open file manager":"افتح مستعرض الملفات","Non breakable space":"","Stop element floating":"",Warning:"تنبيه",Properies:"خصائص",Popup:"نافذة منبثقة",Advanced:"متقدم",Events:"الأحداث",Width:"العرض",Height:"الارتفاع",Left:"اليسار",Center:"المنتصف",Right:"اليمين",Border:"حدود",Background:"الخلفية","Css class":"Css نمط","Css style":"Css تنسيق",No:"لا",Title:"العنوان","Script direction":"اتجاه النص",Language:"اللغة",Charset:"الترميز","Not set":"غير محدد","Left to right":"من اليسار إلى اليمين","Right to left":"من اليمين إلى اليسار","In this window":"(_self)","In new window (_blank)":"(_blank)","In new parent window (_parent)":"(_parent)","In top frame (_top)":"(_top)",URL:"","Open in":"","This operation is disabled in your browser on security reason. Use shortcut instead.":"هذه العملية معطلة لأسباب أمنية , استخدم الاختصار بدلاً عنها","Heading 1":"عنوان رئيسي 1","Heading 2":"عنوان رئيسي 2","Heading 3":"عنوان رئيسي 3","Heading 4":"عنوان رئيسي 4","Heading 5":"عنوان رئيسي 5","Heading 6":"عنوان رئيسي 6",Paragraph:"مقطع نصي ",Address:"العنوان",Preformatted:"","Small (8pt)":"","Small (10px)":"","Small (12pt)":"","Normal (14pt)":"","Large (18pt)":"","Large (24pt)":"","Large (36pt)":"","Bookmark name":"اسم العلامة","Link URL":"عنوان الارتباط التشعبي",Target:"الهدف","Open link in popup window":"افتح في نافذة صغيرة",URL:"ارتباط","Window name":"اسم النافذة","Window size":"حجم النافذة","Window position":"الموضع","Location bar":"العنوان","Menu bar":"شريط القوائم",Toolbar:"قائمة الأدوات",Scrollbars:"شريط التمرير","Status bar":"شريط المعلومات",Resizable:"متغير الحجم",Depedent:"","Add return false":"إضافة (return false)","Target MIME type":"MIME type","Relationship page to target (rel)":"","Relationship target to page (rev)":"","Tab index":"","Access key":"زر اختصار",Size:"الحجم",Preview:"معاينة",Margins:"","Alt text":"نص بديل","Image URL":"رابط صورة",Spacing:"مسافات (spacing)",Padding:"الهامش (padding)",Rows:"الصفوف",Columns:"الأعمدة",Groups:"المجموعات",Cells:"خلايا",Caption:"العنوان","Inner borders":"حدود داخلية"}}(jQuery),function(a){elRTE.prototype.i18Messages.ca={_translator:"Maria Consuelo Bravo &lt;consolbravo@gmail.com&gt;",_translation:"Catalan translation",Editor:"Editor",Source:"Codi font","Copy/Pase":"Copia/Enganxa","Undo/Redo":"Desfés/Restaura","Text styles":"Estils de text",Colors:"Colors",Alignment:"Alineació","Indent/Outdent":"Augmenta/Redueix el sagnat","Text format":"Format de text",Lists:"Llistes","Misc elements":"Diversos",Links:"Enllaços",Images:"Imatges",Media:"Multimèdia",Tables:"Taules","File manager (elFinder)":"Gestor d'arxius",Save:"Desa",Copy:"Copia",Cut:"Retalla",Paste:"Enganxa","Paste only text":"Enganxa només el text","Paste formatted text":"Enganxa el text formatat","Clean format":"Neteja el format","Undo last action":"Desfés l'última acció","Redo previous action":"Restaura l'última acció",Bold:"Negreta",Italic:"Cursiva",Underline:"Subratllat",Strikethrough:"Ratllat",Superscript:"Superíndex",Subscript:"Subíndex","Align left":"Alinea a l'esquerra","Ailgn right":"Alinea a la dreta","Align center":"Centra","Align full":"Justifica","Font color":"Color del text","Background color":"Color de fons",Indent:"Augmenta el sagnat",Outdent:"Redueix el sagnat",Format:"Format","Font size":"Mida de la lletra",Font:"Font","Ordered list":"Llista ordenada","Unordered list":"Llista desordenada","Horizontal rule":"Línia horitzontal",Blockquote:"Cita","Block element (DIV)":"Elements de bloc (DIV)",Link:"Enllaç","Delete link":"Elimina l'enllaç",Bookmark:"Marcador",Image:"Imatge",Table:"Taula","Delete table":"Elimina la taula","Insert row before":"Insereix fila abans","Insert row after":"Insereix fila després","Delete row":"Elimina la fila","Insert column before":"Insereix columna abans","Insert column after":"Insereix columna després","Delete column":"Elimina la columna","Merge table cells":"Fusiona les cel·les","Split table cell":"Divideix la cel·la","Toggle display document structure":"Pantalla d'estructura del document","Table cell properties":"Propietats de la cel·la","Table properties":"Propietats de la taula","Toggle full screen mode":"Pantalla completa","Open file manager":"Obre el gestor d'arxius","Non breakable space":"Espai indivisible","Stop element floating":"Atura l'element flotant",Warning:"Advertència",Properies:"Propietats",Popup:"Finestra emergent",Advanced:"Avançat",Events:"Incidències",Width:"Amplada",Height:"Alçada",Left:"Esquerra",Center:"Centrat",Right:"Dreta",Border:"Vora",Background:"Fons","Css class":"Classe CSS","Css style":"Estil CSS",No:"No",Title:"Títol","Script direction":"Adreça de l'script",Language:"Idioma",Charset:"Charset","Not set":"No establert","Left to right":"D'esquerra a dreta","Right to left":"De dreta a esquerra","In this window":"En aquesta finestra (_self)","In new window (_blank)":"En una finestra nova (_blank)","In new parent window (_parent)":"En una finestra mare nova (_parent)","In top frame (_top)":"En un marc superior (_top)",URL:"URL","Open in":"Obre a","This operation is disabled in your browser on security reason. Use shortcut instead.":"Per raons de seguretat aquesta operació no està disponible en el seu navegador. Utilitzi una drecera de teclat.","Heading 1":"Encapçalament 1","Heading 2":" Encapçalament 2","Heading 3":" Encapçalament 3","Heading 4":" Encapçalament 4","Heading 5":" Encapçalament 5","Heading 6":" Encapçalament 6",Paragraph:"Paràgraf",Address:"Adreça",Preformatted:"Preformatat","Small (8pt)":"Petit (8pt)","Small (10px)":"Petit (10px)","Small (12pt)":"Petit (12pt)","Normal (14pt)":"Normal (14pt)","Large (18pt)":"Gran (18pt)","Large (24pt)":"Gran (24pt)","Large (36pt)":"Gran (36pt)","Bookmark name":"Nom del marcador","Link URL":"URL de l'enllaç",Target:"Objectiu","Open link in popup window":"Obre l'enllaç en una finestra emergent","Window name":"Nom de la finestra","Window size":"Mida de la finestra","Window position":"Posició de la finestra","Location bar":"Barra d'adreces","Menu bar":"Barra de menús",Toolbar:"Barra d'eines",Scrollbars:"Barres de desplaçament","Status bar":"Barra d'estat",Resizable:"Redimensionable",Depedent:"Dependent (Netscape)","Add return false":"Afegeix (return false)","Target MIME type":"Destí de tipus MIME","Relationship page to target (rel)":"Relació de la pàgina amb l'enllaç (rel)","Relationship target to page (rev)":"Relació de l'enllaç amb la pàgina (rev)","Tab index":"Índex de tabulador","Access key":"Tecla d'accés",Size:"Mida",Preview:"Previsualització",Margins:"Marges","Alt text":"Text alternatiu","Image URL":"URL de la imatge",Spacing:"Interlineat (Spacing)",Padding:"Emplenament (Padding)",Rows:"Files",Columns:"Columnes",Groups:"Grups",Cells:"Cel·les",Caption:"Llegenda","Inner borders":"Vores internes"}}(jQuery),function(a){elRTE.prototype.i18Messages.cs={_translator:"Michal Marek &lt;mich.marek@gmail.com&gt;",_translation:"Czech translation",Editor:"Editor",Source:"Kód","Copy/Pase":"Kopírovat/Vložit","Undo/Redo":"Zpět/Znovu","Text styles":"Styly",Colors:"Barvy",Alignment:"Zarovnání","Indent/Outdent":"Odsadit / Předsadit","Text format":"Formát",Lists:"Seznamy","Misc elements":"Ostatní elementy",Links:"Odkazy",Images:"Obrázky",Media:"Média",Tables:"Tabulky","File manager (elFinder)":"Správce souborů (elFinder)",elfinder:"Správce souborů",Save:"Uložit",Copy:"Kopírovat",Cut:"Vyjmout",Paste:"Vložit","Paste only text":"Vložit pouze text","Paste formatted text":"Vložit formátovaný text","Clean format":"Vyčistit","Undo last action":"Zpět","Redo previous action":"Znovu",Bold:"Tučné",Italic:"Kurzíva",Underline:"Podtržené",Strikethrough:"Škrtnuté",Superscript:"Horní index",Subscript:"Dolní index","Align left":"Zarovnat vlevo","Ailgn right":"Zarovna vpravo","Align center":"Zarovnat na střed","Align full":"Do bloku","Font color":"Barva písma","Background color":"Barva pozadí",Indent:"Odsadit",Outdent:"Předsadit",Format:"Formát","Font size":"Velikost",Font:"Písmo","Ordered list":"Číslovaný seznam","Unordered list":"Seznam","Horizontal rule":"Vodorovná čára",Blockquote:"Citát","Block element (DIV)":"DIV element",Link:"Odkaz","Delete link":"Odstranit odkaz",Bookmark:"Záložka",Image:"Obrázek",Table:"Tabulka","Delete table":"Smazat tabulku","Insert row before":"Vložit řádek nad","Insert row after":"Vložit řádek pod","Delete row":"Smazat řádek","Insert column before":"Vložit sloupec před","Insert column after":"Vložit sloupec za","Delete column":"Smazat sloupec","Merge table cells":"Sloučit buňky","Split table cell":"Rozdělit buňku","Toggle display document structure":"Zobrazit strukturu","Table cell properties":"Vlastnosti buňky","Table properties":"Vlastnosti tabulky","Toggle full screen mode":"Fullscreen","Open file manager":"Otevřít správce souborů","Non breakable space":"Nedělitelná mezera","Stop element floating":"Zrušit obtékání elementu",Warning:"Pozor",Properies:"Vlastnosti",Popup:"Pop-up",Advanced:"Více",Events:"Události",Width:"Šířka",Height:"Výška",Left:"Vlevo",Center:"Na střed",Right:"Vpravo",Border:"Rámeček",Background:"Pozadí","Css class":"CSS třída","Css style":"CSS styl",No:"Ne",Title:"Titulek","Script direction":"Pravidla scriptu",Language:"Jazyk",Charset:"Znaková sada","Not set":"Nenastaveno","Left to right":"Zleva doprava","Right to left":"Zprava doleva","In this window":"V tomto okně (_self)"
,"In new window (_blank)":"V novém okně (_blank)","In new parent window (_parent)":"V novém rodičovském okně (_parent)","In top frame (_top)":"V hlavním okně (_top)",URL:"URL","Open in":"Otevřít v","This operation is disabled in your browser on security reason. Use shortcut instead.":"Tato operace je ve vašem prohlížeči vypnutá kvůli bezpečnosti. Použijte klávesovou zkratku.","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4","Heading 5":"Nadpis 5","Heading 6":"Nadpis 6",Paragraph:"Odstavec",Address:"Adresa",Preformatted:"Předformátováno","Small (8pt)":"Malé (8 pt)","Small (10px)":"Malé (10 pt)","Small (12pt)":"Malé (12 pt)","Normal (14pt)":"Normální (14 pt)","Large (18pt)":"Velké (18 pt)","Large (24pt)":"Velké (24 pt)","Large (36pt)":"Velké (36 pt)","Bookmark name":"Jméno záložky","Link URL":"URL",Target:"Cíl","Open link in popup window":"Otevírat odkaz v popup okně.",URL:"URL","Window name":"Jméno okna","Window size":"Velikost okna","Window position":"Pozice okna","Location bar":"Adresní řádek","Menu bar":"Menu nabídek",Toolbar:"Lišta nástrojů",Scrollbars:"Posuvníky","Status bar":"Stavový řádek",Resizable:"Změna velikosti",Depedent:"","Add return false":"Přidat return false","Target MIME type":"Cílový MIME typ","Relationship page to target (rel)":"","Relationship target to page (rev)":"","Tab index":"","Access key":"",Size:"Velikost",Preview:"Náhled",Margins:"Okraje","Alt text":"Alternativní text","Image URL":"URL",Spacing:"Vnější okraje",Padding:"Vnitřní okraje",Rows:"Řádky",Columns:"Sloupce",Groups:"Skupiny",Cells:"Buňky",Caption:"Popisek","Inner borders":"Vnitřní rámečky"}}(jQuery),function(a){elRTE.prototype.i18Messages.da={_translator:"Steen Rabol &lt;steen.rabol@gmail.com&gt;",_translation:"Dansk oversættelse",Editor:"Editor",Source:"Kilde","Copy/Pase":"Kopier/Sæt ind","Undo/Redo":"Fortryd / Gentag","Text styles":"Tekst stile",Colors:"Farver",Alignment:"Justering","Indent/Outdent":"Indrykning / Udrykning","Text format":"Tekst formatering",Lists:"Lister","Misc elements":"Forsekllign elementer",Links:"Links",Images:"Billeder",Media:"Media",Tables:"Tabeller","File manager (elFinder)":"Fil håndtering","About this software":"Om...",Save:"Gem",Copy:"Kopier",Cut:"Klip",Paste:"Sæt ind","Paste only text":"Indsæt kun teskst","Paste formatted text":"Indsæt formateret tekst","Clean format":"Fjern formatering","Undo last action":"Fortryd sidste handling","Redo previous action":"Gentag sidste handling",Bold:"Fed",Italic:"Kursiv",Underline:"Understreg",Strikethrough:"Gennemstreget",Superscript:"Hævet skrift",Subscript:"Sænket skrift","Align left":"Venstrejusteret","Ailgn right":"Højrejusteret","Align center":"Centreret","Align full":"Lige margner","Font color":"Tekst farve","Background color":"Baggrunds farve",Indent:"Indryk",Outdent:"Ryk ud",Format:"Formatering","Font size":"Skrift størrelse",Font:"Skrifttype","Ordered list":"Nummeret liste","Unordered list":"Punkt liste","Horizontal rule":"Horisontal linie",Blockquote:"Citat","Block element (DIV)":"Lag (DIV)",Link:"Link","Delete link":"Slet link",Bookmark:"Bogmærke",Image:"Billed",Table:"Tabel","Delete table":"Slet tabel","Insert row before":"Indsæt række før","Insert row after":"Indsæt række efter","Delete row":"Slet række","Insert column before":"Indsæt kolonne før","Insert column after":"Indsæt kolone efter","Delete column":"Slet kolone","Merge table cells":"Flet tabel celler","Split table cell":"Del tabel celler","Toggle display document structure":"Skift visning af dokument struktur","Table cell properties":"Tabel celler egenskaber","Table properties":"Tabel egenskaber","Toggle full screen mode":"Skift fuldskærms tilstand","Open file manager":"Åben filhåndtering","Non breakable space":"Ikke ombrydelig mellemrum","Stop element floating":"Forhindre element forskydning",Warning:"Advarsel",Properies:"Egenskaber",Popup:"Popup",Advanced:"Avanceret",Events:"Hændelser",Width:"Bredde",Height:"Højde",Left:"Venstre",Center:"Centreret",Right:"Højre",Border:"Ramme",Background:"Baggrund","Css class":"Css klasse","Css style":"Css stil",No:"Nej",Title:"Overskrift","Script direction":"Script retning",Language:"Sprog",Charset:"Karaktersæt","Not set":"Ikke sat","Left to right":"Venstre mod højre","Right to left":"Højre mod venstre","In this window":"I dette vindue","In new window (_blank)":"I et nyt vindue","In new parent window (_parent)":"I ydre ramme (_parent)","In top frame (_top)":"I øverste ramme (_top)",URL:"URL","Open in":"Åbn i","Open file manger":"Åbn fil håndtering","This operation is disabled in your browser on security reason. Use shortcut instead.":"","Heading 1":"Overskrift 1","Heading 2":"Overskrift 2","Heading 3":"Overskrift 3","Heading 4":"Overskrift 4","Heading 5":"Overskrift 5","Heading 6":"Overskrift 6",Paragraph:"Paragraf",Address:"Adresse",Preformatted:"Pre-formateret","Small (8pt)":"Lille (8pt)","Small (10px)":"Lille (10px)","Small (12pt)":"Lille (12pt)","Normal (14pt)":"Normal (14pt)","Large (18pt)":"Stor (18pt)","Large (24pt)":"Stor (24pt)","Large (36pt)":"Stor (36pt)","Bookmark name":"Bogmærke navn","Link URL":"Link URL",Target:"Destination","Select bookmark":"Vælg bogmærke","Open link in popup window":"Åbn link i popup vindue","Window name":"Title","Window size":"Størrelse","Window position":"Position","Location bar":"Adresselinje","Menu bar":"Menu bar",Toolbar:"Værktøjslinie",Scrollbars:"Vis rullepanel","Status bar":"Status linie",Resizable:"Skalebar",Depedent:"Afhængig (Kun Mozilla/Firefox)","Add return false":"Indsæt 'return false'","Target MIME type":"Destinations-MIME-type","Relationship page to target (rel)":"Forholds side til desitnation (rel)","Relationship target to page (rev)":"Forholds desitination til side (rev)","Tab index":"Tabindeks","Access key":"Genvejstast",Size:"Størrelse",Preview:"Vis",Margins:"Margin","Alt text":"Alternativ teks","Image URL":"Billed URL",Spacing:"Celle afstand",Padding:"Indholds afstand",Rows:"Rækker",Columns:"Kolonner",Groups:"Grupper",Cells:"Celler",Caption:"Oversrift","Inner borders":"Kanter","Table cell type":"Tabel celle type",Data:"Data",Header:"Hoved",Justify:"Lige margin",Paddings:"Afstand","Apply to":"Gælder for","Current cell":"Aktuelle celle","All cells in row":"Alle celler i rækken","All cells in column":"Alle celler i kolonnen","All cells in table":"Alle celler i tabellen","About elRTE":"Om elRTE",Version:"Version",Licence:"Licens","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"","You can use it in any commercial or non-commercial projects.":"",Authors:"Forfatere","Chief developer":"Chef udvikler","Developer, tech support":"Udvikler, teknisk support",Developer:"Udvikler","Interface designer":"Interface designer","Spanish localization":"Spansk oversættelse","Czech localization":"Tjekkoslovakisk oversættelse","Japanese localization":"Japansk oversættelse","Latvian localization":"Lettisk oversættelse","German localization":"Tysk oversættelse","Ukranian localization":"Ukrainsk oversættelse","Persian (farsi) localization":"Persisk (fasi) oversættelse","Arabic localization":"Arabisk oversættelse","RTL support":"RTL understøttelse","French localization":"Fransk oversættelse","Dutch localization":"Hollandsk oversættelse","Hungarian localization":"Ungarsk oversættelse","Polish localization":"Polsk oversættelse","Italian localization":"Italiensk oversættelse","Traditional Chinese localization":"Traditoinel kinesisk oversættelse","For more information about this software visit the":"For mere information, besøg ","elRTE website":"elRTE's hjemmeside"}}(jQuery),function(a){elRTE.prototype.i18Messages.de={_translator:"Daniel Holzmann &lt;d@velopment.at&gt;",_translation:"German translation",Editor:"Editor",Source:"Quellcode","Copy/Pase":"Kopieren/Einfügen","Undo/Redo":"Rückgängig/Wiederherstellen","Text styles":"Textstile",Colors:"Farbe",Alignment:"Ausrichtung","Indent/Outdent":"Einrücken / Ausrücken","Text format":"Format",Lists:"Listen","Misc elements":"Sonstige Elemente",Links:"Link",Images:"Bild",Media:"Media Datei",Tables:"Tabelle","File manager (elFinder)":"Datei-Manager (elFinder)",Save:"Speichern",Copy:"Ausschneiden",Cut:"Kopieren",Paste:"Einfügen","Paste only text":"nur Text einfügen","Paste formatted text":"formatierten Text einfügen","Clean format":"Formatierungen entfernen","Undo last action":"Rückgängig","Redo previous action":"Wiederherstellen",Bold:"Fett",Italic:"Kursiv",Underline:"Unterstrichen",Strikethrough:"Durchgestrichen",Superscript:"Hochgestellt",Subscript:"Tiefgestellt","Align left":"Linksbündig","Ailgn right":"Rechtsbündig","Align center":"Zentriert","Align full":"Blocksatz","Font color":"Textfarbe","Background color":"Hintergrundfarbe",Indent:"Einzug erhöhen",Outdent:"Einzug verringern",Format:"Format","Font size":"Größe",Font:"Schriftart","Ordered list":"Nummerierte Liste","Unordered list":"Liste","Horizontal rule":"Horizontale Linie",Blockquote:"Zitatblock","Block element (DIV)":"Block-Element (DIV)",Link:"Link","Delete link":"Link entfernen",Bookmark:"Lesezeichen einfügen/editieren",Image:"Bild",Table:"Tabelle","Delete table":"Tabelle löschen","Insert row before":"Zeile oberhalb einfügen","Insert row after":"Zeile unterhalb einfügen","Delete row":"Zeile entfernen","Insert column before":"Spalte links davor einfügen","Insert column after":"Spalte rechts danach einfügen","Delete column":"Spalte löschen","Merge table cells":"Zellen verbinden","Split table cell":"Zelle teilen","Toggle display document structure":"Blöcke anzeigen","Table cell properties":"Zellen-Eigenschaften","Table properties":"Tabellen-Eigenschaften","Toggle full screen mode":"Editor maximieren","Open file manager":"Dateimanager öffnen","Non breakable space":"Geschütztes Leerzeichen","Stop element floating":"Floating deaktivieren",Warning:"ACHTUNG",Properies:"Einstellungen",Popup:"Pop-up",Advanced:"erweitert",Events:"Veranstaltungen",Width:"Breite",Height:"Höhe",Left:"Links",Center:"Mitte",Right:"Rechts",Border:"Rahmen",Background:"Hintergrundfarbe","Css class":"CSS Klasse","Css style":"CSS Stil",No:"Nein",Title:"Titel","Script direction":"Schreibrichtung",Language:"Sprache",Charset:"Zeichensatz","Not set":"nicht definiert","Left to right":"Links nach Rechts","Right to left":"Rechts nach Links","In this window":"Gleiches Fenster (_self)","In new window (_blank)":"Neues Fenster (_blank)","In new parent window (_parent)":"Oberes Fenster (_parent)","In top frame (_top)":"Oberstes Fenster (_top)",URL:"URL","Open in":"öffnen in","This operation is disabled in your browser on security reason. Use shortcut instead.":"Dieser Vorgang ist in Ihrem Browser aus Sicherheitsgründen deaktiviert. Benutzen Sie stattessen die Tastenkombination.","Heading 1":"Überschrift 1","Heading 2":"Überschrift 2","Heading 3":"Überschrift 3","Heading 4":"Überschrift 4","Heading 5":"Überschrift 5","Heading 6":"Überschrift 6",Paragraph:"Absatz",Address:"Addresse",Preformatted:"vorformattierter Text","Small (8pt)":"Klein (8pt)","Small (10px)":"Klein (10px)","Small (12pt)":"Klein (12pt)","Normal (14pt)":"Normal (14pt)","Large (18pt)":"Groß (18pt)","Large (24pt)":"Groß (24pt)","Large (36pt)":"Groß (36pt)","Bookmark name":"Lesezeichen-Name","Link URL":"Link URL",Target:"Zielfenster","Open link in popup window":"Link in einem Popup-Fenster öffnen",URL:"URL","Window name":"Fenster-Name","Window size":"Fenstergröße","Window position":"Fensterposition","Location bar":"Adressleiste","Menu bar":"Menüleiste",Toolbar:"Werkzeugleiste",Scrollbars:"Scrollbalken","Status bar":"Statusleiste",Resizable:"Vergrößerbar",Depedent:"Abhängig (Netscape)","Add return false":"return false hinzufügen","Target MIME type":"MIME-Type","Relationship page to target (rel)":"Verhältnis Seite zum Ziel (rel)","Relationship target to page (rev)":"Verhältnis Ziel zur Seite (rev)","Tab index":"Tab Index","Access key":"Zugriffstaste",Size:"Größe",Preview:"Vorschau",Margins:"Außenabstände","Alt text":"Alt-Text","Image URL":"Bild-URL",Spacing:"Abstand (spacing)",Padding:"Abstand (padding)",Rows:"Zeilen",Columns:"Spalten",Groups:"Gruppen",Cells:"Zellen",Caption:"Überschrift","Inner borders":"Innere Ränder"}}(jQuery),function(a){elRTE.prototype.i18Messages.es={_translator:"Ricardo Obregón &lt;robregonm@gmail.com&gt;",_translation:"Spanish translation",Editor:"Editor",Source:"Código Fuente","Copy/Pase":"Copiar/Pegar","Undo/Redo":"Deshacer/Rehacer","Text styles":"Estilos de Texto",Colors:"Colores",Alignment:"Alineación","Indent/Outdent":"Aumentar/Disminuir Sangría","Text format":"Formato de texto",Lists:"Listas","Misc elements":"Elementos varios",Links:"Vínculos",Images:"Imágenes",Media:"Multimedia",Tables:"Tablas","File manager (elFinder)":"Administrador de archivos",Save:"Guardar",Copy:"Copiar",Cut:"Cortar",Paste:"Pegar","Paste only text":"Pegar solo texto","Paste formatted text":"Pegar texto formateado","Clean format":"Limpiar formato","Undo last action":"Deshacer la última acción","Redo previous action":"Rehacer la última acción",Bold:"Negrita",Italic:"Cursiva",Underline:"Subrayado",Strikethrough:"Tachado",Superscript:"Superíndice",Subscript:"Subíndice","Align left":"Alinear a la izquierda","Ailgn right":"Alinear a la derecha","Align center":"Centrar","Align full":"Justificado","Font color":"Color de texto","Background color":"Color de fondo",Indent:"Aumentar sangría",Outdent:"Reducir sangría",Format:"Formato","Font size":"Tamaño de letra",Font:"Fuente","Ordered list":"Lista ordenada","Unordered list":"Lista desordenada","Horizontal rule":"Línea horizontal",Blockquote:"Cita","Block element (DIV)":"Bloque de Elementos (DIV)",Link:"Vínculo","Delete link":"Eliminar vínculo",Bookmark:"Marcador",Image:"Imagen",Table:"Tabla","Delete table":"Eliminar tabla","Insert row before":"Insertar fila antes","Insert row after":"Insertar fila después","Delete row":"Eliminar fila","Insert column before":"Insertar columna antes","Insert column after":"Insertar columna después","Delete column":"Eliminar columna","Merge table cells":"Fundir celdas","Split table cell":"Dividir celda","Toggle display document structure":"Pantalla de estructura de documento","Table cell properties":"Propiedades de celda","Table properties":"Propiedades de tabla","Toggle full screen mode":"Modo de pantalla completa","Open file manager":"Abrir administrador de archivos","Non breakable space":"Espacio indivisible","Stop element floating":"Detener elemento flotante",Warning:"Advertencia",Properies:"Propiedades",Popup:"Ventana emergente",Advanced:"Avanzado",Events:"Eventos",Width:"Ancho",Height:"Alto",Left:"Izquierda",Center:"Centrado",Right:"Derecha",Border:"Borde",Background:"Fondo","Css class":"Clase CSS","Css style":"Estilo CSS",No:"No",Title:"Título","Script direction":"Dirección del script",Language:"Idioma",Charset:"Charset","Not set":"No establecido","Left to right":"Izquierda a derecha","Right to left":"Derecha a izquierda","In this window":"En esta ventana (_self)","In new window (_blank)":"En nueva ventana (_blank)","In new parent window (_parent)":"En nueva ventana padre (_parent)","In top frame (_top)":"En marco superior (_top)",URL:"URL","Open in":"Abrir en","This operation is disabled in your browser on security reason. Use shortcut instead.":"Esta operación está desactivada en su navegador por razones de seguridad. Utilice en su lugar un comando de teclado.","Heading 1":"Encabezado 1","Heading 2":"Encabezado 2","Heading 3":"Encabezado 3","Heading 4":"Encabezado 4","Heading 5":"Encabezado 5","Heading 6":"Encabezado 6",Paragraph:"Párrafo",Address:"Dirección",Preformatted:"Preformateado","Small (8pt)":"Pequeño (8pt)","Small (10px)":"Pequeño (10px)","Small (12pt)":"Pequeño (12pt)","Normal (14pt)":"Normal (14pt)","Large (18pt)":"Grande (18pt)","Large (24pt)":"Grande (24pt)","Large (36pt)":"Grande (36pt)","Bookmark name":"Nombre del marcador","Link URL":"URL del vínculo",Target:"Objetivo","Open link in popup window":"Abrir vínculo en ventana emergente","Window name":"Nombre de la ventana","Window size":"Tamaño de la ventana","Window position":"Posición de la ventana","Location bar":"Barra de dirección","Menu bar":"Barra de Menú",Toolbar:"Barra de herramientas",Scrollbars:"Barras de desplazamiento","Status bar":"Barra de estado",Resizable:"Redimensionable",Depedent:"Dependiente (Netscape)","Add return false":"Agregar (return false)","Target MIME type":"Objetivo de Tipo MIME","Relationship page to target (rel)":"","Relationship target to page (rev)":"","Tab index":"","Access key":"Tecla de acceso",Size:"Tamaño",Preview:"Previsualización",Margins:"Márgenes","Alt text":"Texto alternativo","Image URL":"URL de la imagen",Spacing:"Espaciado (Spacing)",Padding:"Relleno (Padding)",Rows:"Filas",Columns:"Columnas",Groups:"Grupos",Cells:"Celdas",Caption:"Leyenda","Inner borders":"Bordes internos"}}(jQuery),function(a){elRTE.prototype.i18Messages.fa={_translator:"Saleh soozanchi &lt;info@soozanchi.ir&gt;",_translation:"Persian (farsi) translation",Editor:"ویراستار",Source:"کد منبع","Copy/Pase":"کپی در حافظه موفت/بازگردانی از حافظه","Undo/Redo":"انجام عمل بعد/برگشت به عمل قبل","Text styles":"استایل متن",Colors:"رنگها",Alignment:"صفحه بندی","Indent/Outdent":"تو رفتگی/ برون رفتگی","Text format":"قالب متون",Lists:"لیست ها","Misc elements":"عناصر متفرقه",Links:"پیوندها",Images:"تصاویر",Media:"مولتی مدیا",Tables:"جدول ها","File manager (elFinder)":"(elFinder)مدیریت فایل",Save:"ذخیره کردن",Copy:"کپی کردن",Cut:"برش دادن",Paste:"بازگردانی","Paste only text":"بازگرادنی فقط متنها","Paste formatted text":"بازگردانی متن های دارای قالب","Clean format":"حذف قالب ها","Undo last action":"بازگشتن به آخرین حرکت","Redo previous action":"تکرار حرکت قبلی",Bold:"درشت",Italic:"خوابیده",Underline:"خط زیر متن",Strikethrough:"خط روی متن",Superscript:"بالانویس",Subscript:"زیرنویس","Align left":"چپ چین","Ailgn right":"راست چین","Align center":"وسط چین","Align full":"به صورت کشده و کامل","Font color":"رنگ قلم ها","Background color":"رنگ ضمینه",Indent:"تورفتگی",Outdent:"بیرون رفتگی",Format:"قالب","Font size":"اندازه قلم",Font:"قلم","Ordered list":"مرتب سازی لیست","Unordered list":"به هم ریختن لیست","Horizontal rule":"خط افقی",Blockquote:"نقل قول","Block element (DIV)":"عنر نگه دارنده (DIV)",Link:"پیوند","Delete link":"حذف لینک",Bookmark:"نشانه گزاری",Image:"تصویر",Table:"جدول","Delete table":"حذف جدول","Insert row before":"درج سطر قبل از این","Insert row after":"درج سطر بعد از این","Delete row":"حذف سطر","Insert column before":"درج ستون قبل از","Insert column after":"درج ستون بعد از","Delete column":"حذف ستون","Merge table cells":"ادغام کردن  خانه های جدول","Split table cell":"تقسیم و مجزا کردن خانه های جدول","Toggle display document structure":"زنجیر شده به ساختار سند در حال نمایش","Table cell properties":"تنظیمات خونه جدول","Table properties":"تنظیمات جدول","Toggle full screen mode":"نمایش و پوشانیدن کل نمایشگر","Open file manager":"بازکردن مدیریت فایل","Non breakable space":"فضای غیر قابل شکستن","Stop element floating":"متوقف ساخت عنر شناور",Warning:"اخطار",Properies:"خصوصیات",Popup:"پنجر بازشو",Advanced:"پیشرفته",Events:"رویداد",Width:"طول",Height:"عرض",Left:"چپ",Center:"وسط",Right:"راست",Border:"کادر حایه",Background:"پشت صحنه/ضمینه","Css class":"کلاس سی اس اس","Css style":"استایل سی اس اس",No:"خیر",Title:"عنوان","Script direction":"اسکریپت هم سو",Language:"ربان",Charset:"کدپیج زیان","Not set":"اعمال نشد","Left to right":"چپ به راست","Right to left":"راست به چپ","In this window":"(_self) نمایش در همین پنجره","In new window (_blank)":"(_blank) نمایش در پنجره جدید ","In new parent window (_parent)":"(_parent) نمایش در پنجره اصلی","In top frame (_top)":"(_top) نمایش در بالای قاب",URL:"","Open in":"باز کردن در","This operation is disabled in your browser on security reason. Use shortcut instead.":"این عملیات به دلایل امنیتی در مرورگر وب شما مسدود شده ، لطفا از میانبر ها استفاده کنید.","Heading 1":"سر فصل 1","Heading 2":"سر فصل 2","Heading 3":"سر فصل 3","Heading 4":"سر فصل 4","Heading 5":"سر فصل 5","Heading 6":"سر فصل 6",Paragraph:"پراگراف",Address:"آدرس",Preformatted:"قالب بندی شده","Small (8pt)":"","Small (10px)":"","Small (12pt)":"","Normal (14pt)":"","Large (18pt)":"","Large (24pt)":"","Large (36pt)":"","Bookmark name":"نام نشانه","Link URL":"(URL) پیوند",Target:"مقصد","Open link in popup window":"باز کردن پیوند در یک پنجره بازشو",URL:"","Window name":"نام پنجره","Window size":"سایز پنجره","Window position":"موقعیت پنجره","Location bar":"محل نگه دارنده","Menu bar":"نگه دارنده منو",Toolbar:"جعبه ابزار",Scrollbars:"محل اسکرول","Status bar":"محل وضعیت",Resizable:"تغییر ساز پذیر بودن",Depedent:"محتاج","Add return false":"(return false) افزودن","Target MIME type":"MIME type","Relationship page to target (rel)":"","Relationship target to page (rev)":"","Tab index":"","Access key":"کیلید دسترسی",Size:"سایز",Preview:"پیش نمایش",Margins:"حاشیه ها","Alt text":"Alt","Image URL":"URL",Spacing:"(spacing)فاصه های میانی",Padding:"(padding) حاشیه ها درونی",Rows:"سطرها",Columns:"ستون ها",Groups:"گروه هاس",Cells:"خانه هاس",Caption:"عنوان","Inner borders":"کادر درونی"}}(jQuery),function(a){elRTE.prototype.i18Messages.fr={_translator:"Francois Mazerolle &lt;fmaz008@gmail.com&gt;",_translation:"French translation",Editor:"Editeur",Source:"Code Source","Copy/Pase":"Copier/Coller","Undo/Redo":"Annuler/Répéter","Text styles":"Styles de texte",Colors:"Couleurs",Alignment:"Alignement","Indent/Outdent":"Augmenter/Diminuer l'incrément","Text format":"Format de texte",Lists:"Listes","Misc elements":"Éléments divers",Links:"Liens",Images:"Images",Media:"Multimédia",Tables:"Tableaux","File manager (elFinder)":"Gestionnaire de fichiers",Save:"Enregistrer",Copy:"Copier",Cut:"Couper",Paste:"Coller","Paste only text":"Coller seulement le texte","Paste formatted text":"Coller le texte formaté","Clean format":"Effacer le formatage","Undo last action":"Annuler la dernière action","Redo previous action":"Répéter la dernière action",Bold:"Gras",Italic:"Italique",Underline:"Souligner",Strikethrough:"Barré",Superscript:"Exposant",Subscript:"Indice","Align left":"Aligner à gauche","Ailgn right":"Aligner à droite","Align center":"Centrer","Align full":"Justifier","Font color":"Couleur de texte","Background color":"Couleur d'arrière plan",Indent:"Aumenter la marge",Outdent:"Réduire la marge",Format:"Formater","Font size":"Taille de police",Font:"Police","Ordered list":"Liste ordonnée","Unordered list":"Liste désordonnée","Horizontal rule":"Ligne horizontale",Blockquote:"Citation","Block element (DIV)":"Bloc élément (DIV)",Link:"Lien","Delete link":"Supprimer le lien",Bookmark:"Marque page",Image:"Image",Table:"Tableau","Delete table":"Supprimer tableau","Insert row before":"Insérer une ligne avant","Insert row after":"Insérer une ligne après","Delete row":"Supprimer une ligne","Insert column before":"Insérer une colone avant","Insert column after":"Insérer une colone après","Delete column":"Supprimer une colone","Merge table cells":"Fusionner les cellules","Split table cell":"Diviser la cellule","Toggle display document structure":"Alterner la vue du document","Table cell properties":"Propriété de la cellule","Table properties":"Propriété du tableau","Toggle full screen mode":"Alterner la vue plein écran","Open file manager":"Ouvrir le gestionnaire de fichiers","Non breakable space":"Espace insécable","Stop element floating":"Interrompre le flottement de l'élément",Warning:"Attention",Properies:"Propriété",Popup:"Nouvelle fenêtre",Advanced:"Avancé",Events:"Évènements",Width:"Largeur",Height:"Hauteur",Left:"Gauche",Center:"Centre",Right:"Droite",Border:"Bordure",Background:"Arrière plan","Css class":"Classe CSS","Css style":"Style CSS",No:"Non",Title:"Titre","Script direction":"Direction de script",Language:"Langue",Charset:"Jeu de caractères","Not set":"No set","Left to right":"Gauche à droite","Right to left":"Droite à gauche","In this window":"Dans cette fenêtre (_self)","In new window (_blank)":"Dans une nouvelle fenêtre (_blank)","In new parent window (_parent)":"Dans une nouvelle fenêtre parente (_parent)","In top frame (_top)":"Dans le cadre maitre (_top)",URL:"URL","Open in":"Ouvrir dans","This operation is disabled in your browser on security reason. Use shortcut instead.":"Cette opération est désactivée dans votre navigateur pour des raisons de sécurité. Utilisez le raccourci.","Heading 1":"Entête 1","Heading 2":"Entête 2","Heading 3":"Entête 3","Heading 4":"Entête 4","Heading 5":"Entête 5","Heading 6":"Entête 6",Paragraph:"Paragraphe",Address:"Adresse",Preformatted:"Préformaté","Small (8pt)":"Petite (8pt)","Small (10px)":"Petite (10px)","Small (12pt)":"Petite (12pt)","Normal (14pt)":"Normale (14pt)","Large (18pt)":"Grande (18pt)","Large (24pt)":"Grande (24pt)","Large (36pt)":"Grande (36pt)","Bookmark name":"Nom du favori","Link URL":"Adresse du lien",Target:"Cible","Open link in popup window":"Ouvrir dans une nouvelle fenêtre","Window name":"Nom de la fenêtre","Window size":"Taille de la fenêtre","Window position":"Position de la fenêtre","Location bar":"Barre d'adresse","Menu bar":"Barre de menu",Toolbar:"Barre d'outils",Scrollbars:"Barres de défillement","Status bar":"Barre d'état",Resizable:"Redimensionable",Depedent:"Dépendent (Netscape)","Add return false":"Ajouter un retour négatif (return false)","Target MIME type":"Type MIME cible","Relationship page to target (rel)":"","Relationship target to page (rev)":"","Tab index":"Index de tabulation","Access key":"Tecla de acceso",Size:"Taille",Preview:"Prévisualisation",Margins:"Marges","Alt text":"Texte ALT","Image URL":"URL de l'image",Spacing:"Espace (Spacing)",Padding:"Marge intérieure (Padding)",Rows:"Lignes",Columns:"Colones",Groups:"Groupes",Cells:"Cellules",Caption:"Étiquette","Inner borders":"Bordures intérieures"}}(jQuery),function(a){elRTE.prototype.i18Messages.hr={_translator:"Guerilla Team &lt;info@guerilla.com.hr&gt;",_translation:"Croatian translation",Editor:"Urednik",Source:"Izvor","Copy/Pase":"Kopiraj/Zalijepi","Undo/Redo":"Poništi/Ponovi","Text styles":"Stilovi teksta",Colors:"Boje",Alignment:"Poravnjavanje","Indent/Outdent":"Uvući/Izvući","Text format":"Formatiranje teksta",Lists:"Liste","Misc elements":"Ostali elementi",Links:"Veze",Images:"Slike",Media:"Mediji",Tables:"Tablice","File manager (elFinder)":"Upravitelj datoteka (elFinder)","About this software":"O ovom softveru",Save:"Spremi",Copy:"Kopiraj",Cut:"Izreži",Paste:"Zalijepi","Paste only text":"Zalijepi samo tekst","Paste formatted text":"Zalijepi formatirani tekst","Clean format":"Čisti oblik","Undo last action":"Poništi zadnju radnju","Redo previous action":"Ponovi prethodnu radnju",Bold:"Podebljano",Italic:"Kurziv",Underline:"Podcrtano",Strikethrough:"Precrtano",Superscript:"Natpis",Subscript:"Potpis","Align left":"Poravnaj lijevo","Ailgn right":"Poravnaj desno","Align center":"Poravnaj u sredinu","Align full":"Poravnaj potpuno","Font color":"Boja fonta","Background color":"Boja podloge",Indent:"Uvući",Outdent:"Izvući",Format:"Format","Font size":"Veličina fonta",Font:"Font","Ordered list":"Pobrojana lsita","Unordered list":"Nepobrojana lista","Horizontal rule":"Horizontalna linija",Blockquote:"Blok citat","Block element (DIV)":"Blok element (DIV)",Link:"Veza","Delete link":"Brisanje veze",Bookmark:"Zabilješka",Image:"Slika",Table:"Tablica","Delete table":"Brisanje tablice","Insert row before":"Umetni redak prije","Insert row after":"Umetni redak poslije","Delete row":"Obriši redak","Insert column before":"Umetni stupac prije","Insert column after":"Umetni stupac poslije","Delete column":"Obriši stupac","Merge table cells":"Spoji ćelije tablice","Split table cell":"Razdvoji ćeliju tablice","Toggle display document structure":"Uključi / isključi prikaz strukture dokumenta","Table cell properties":"Svojstva ćelije tablice","Table properties":"Svojstva tablice","Toggle full screen mode":"Uključi / isključi cijeli zaslon","Open file manager":"Otvori upravitelj datoteka","Non breakable space":"Nelomljiv prostor","Stop element floating":"Zaustavi plutajući element",Warning:"Upozorenje",Properies:"Svojstva",Popup:"Skočni prozor",Advanced:"Napredno",Events:"Događaji",Width:"Širina",Height:"Visina",Left:"Lijevo",Center:"Sredina",Right:"Desno",Border:"Okvir",Background:"Podloga","Css class":"Css razred","Css style":"Css stil",No:"Ne",Title:"Naslov","Script direction":"Smjer skripte",Language:"Jezik",Charset:"Skup znakova","Not set":"Nije postavljen","Left to right":"S lijeva na desno","Right to left":"S desna na lijevo","In this window":"U ovom prozoru","In new window (_blank)":"U novom prozoru (_blank)","In new parent window (_parent)":"U novom prozoru (_parent)","In top frame (_top)":"U gornjem okviru (_top)",URL:"URL","Open in":"Otvori u","Open file manger":"Otvori upravitelj datoteka","This operation is disabled in your browser on security reason. Use shortcut instead.":"Ova operacija je onemogućena u vašem pregledniku zbog sigurnosnih razloga. Koristite prečac kao zamjenu.","Heading 1":"Naslov 1","Heading 2":"Naslov 2","Heading 3":"Naslov 3","Heading 4":"Naslov 4","Heading 5":"Naslov 5","Heading 6":"Naslov 6",Paragraph:"Pasus",Address:"Adresa",Preformatted:"Formatiran","Small (8pt)":"Mali (8pt)","Small (10px)":"Mali (10pt)","Small (12pt)":"Mali (12pt)","Normal (14pt)":"Normalan (14pt)","Large (18pt)":"Veliku (18pt)","Large (24pt)":"Veliki (24pt)","Large (36pt)":"Veliki (36pt)","Bookmark name":"Naziv zabilješke","Link URL":"Veza URL-a",Target:"Meta","Select bookmark":"Odaberi zabilješku","Open link in popup window":"Otvori vezu u skočnom prozoru","Window name":"Naziv prozora","Window size":"Veličina prozora","Window position":"Pozicija prozora","Location bar":"Traka za lokaciju","Menu bar":"Izborna traka",Toolbar:"Traka s alatima",Scrollbars:"Scroll traka","Status bar":"Statusna traka",Resizable:"Promjenjiva veličina",Depedent:"Zavisan","Add return false":'Dodaj "return false"',"Target MIME type":"Ciljaj MIME tip","Relationship page to target (rel)":"Povezanost stranice s ciljem (rel)","Relationship target to page (rev)":"Povezanost cilja sa stranicom (rev)","Tab index":"Početni tab","Access key":"Pristupni ključ",Size:"Veličina",Preview:"Pregledaj",Margins:"Margine","Alt text":"Alternativni tekst","Image URL":"URL slike",Spacing:"Razmak",Padding:"Ispunjavanje",Rows:"Redovi",Columns:"Stupci",Groups:"Skupine",Cells:"Ćelije",Caption:"Naslov","Inner borders":"Unutrašnji okviri","Table cell type":"Vrsta ćelije tablice",Data:"Podatak",Header:"Zaglavlje",Justify:"Obostrani poravnati",Paddings:"Ispunjavanja","Apply to":"Primjeni na","Current cell":"Trenutna ćelija","All cells in row":"Sve ćelije u retku","All cells in column":"Sve ćelije u stupcu","All cells in table":"Sve ćelije u tablici","About elRTE":"O elRTE",Version:"Inačica",Licence:"Licenca","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"elRTE je open-source JavaScript temeljen WYSIWYG HTML-urednik.","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"Glavni cilj urednika - pojednostavniti rad s tekstom i formatiranje (HTML) na web stranicama, blogovima, forumima i drugim online servisima.","You can use it in any commercial or non-commercial projects.":"Možete ga koristiti u bilo koje komercijalne ili nekomercijalne projekte.",Authors:"Autori","Chief developer":"Glavni graditelj","Developer, tech support":"Graditelj, tehnička podrška",Developer:"Graditelj","Interface designer":"Dizajner sučelja","Spanish localization":"Španjolska lokalizacija","Czech localization":"Češka  lokalizacija","Japanese localization":"Japanska lokalizacija","Latvian localization":"Letonska lokalizacija","German localization":"Njemačka lokalizacija","Ukranian localization":"Ukrajinska lokalizacija","Persian (farsi) localization":"Perzijska (farsi) lokalizacija","Arabic localization":"Arapska lokalizacija","RTL support":"RTL podrška","French localization":"Francuska lokalizacija","Dutch localization":"Nizizemska lokalizacija","Hungarian localization":"Mađarska lokalizacija","Polish localization":"Poljska lokalizacija","Italian localization":"Talijanska lokalizacija","Traditional Chinese localization":"Tradicionalna kineska lokalizacija","For more information about this software visit the":"Za više informacija o ovom softveru posjetite","elRTE website":"elRTE web stranica"}}(jQuery),function(a){elRTE.prototype.i18Messages.hu={_translator:"Viktor Tamas &lt;tamas.viktor@totalstudio.hu&gt;",_translation:"Hungarian translation",Editor:"Szerkesztő",Source:"Forrás","Copy/Pase":"Másolás/Beillesztés","Undo/Redo":"Visszavonás/Ismét","Text styles":"Szöveg stílus",Colors:"Színek",Alignment:"Elrendezés","Indent/Outdent":"Отступы","Text format":"Szöveg forma",Lists:"Listák","Misc elements":"Egyéb elemek",Links:"Linkek",Images
:"Képek",Media:"Média",Tables:"Táblázatok","File manager (elFinder)":"Fájl kezelő (elFinder)","About this software":"A szoftverről",Save:"Mentés",Copy:"Másolás",Cut:"Kivágás",Paste:"Beillesztés","Paste only text":"Beillesztés csak szövegként","Paste formatted text":"Beillesztés formázott szövegként","Clean format":"Formázás törlése","Undo last action":"Utolsó művelet visszavonása","Redo previous action":"Előző művelet újra",Bold:"Félkövér",Italic:"Dőlt",Underline:"Aláhúzott",Strikethrough:"Áthúzott",Superscript:"Felső index",Subscript:"Alsó index","Align left":"Balra igazítás","Ailgn right":"Jobbra igazítás","Align center":"Középre igazítás","Align full":"Sórkizárt igazítás","Font color":"Betűszín","Background color":"Háttér szín",Indent:"Behúzás",Outdent:"Kihúzás",Format:"Formátum","Font size":"Betű méret",Font:"Betű típus","Ordered list":"Számozott lista","Unordered list":"Lista","Horizontal rule":"Vízszintes vonal",Blockquote:"Idézet","Block element (DIV)":"Blokk elem (DIV)",Link:"Link","Delete link":"Link törlése",Bookmark:"Horgony",Image:"Kép",Table:"Táblázat","Delete table":"Táblázat törlése","Insert row before":"Sor beszúrása sor elé","Insert row after":"Sor beszúrása sor mögé","Delete row":"Sor törlése","Insert column before":"Oszlop beszúrása oszlop elé","Insert column after":"Oszlop beszúrása oszlop mögé","Delete column":"Oszlop törlése","Merge table cells":"Cellák összevonása","Split table cell":"Cellák szétávlasztása","Toggle display document structure":"Dokumentum szerkezet megtekintése","Table cell properties":"Táblázat cella tulajdonságai","Table properties":"Tábla tulajdonságok","Toggle full screen mode":"Teljes képernyős mód","Open file manager":"Fájl kezelő megnyitása","Non breakable space":"Szóköz","Stop element floating":"Elem elrendezések törlése",Warning:"Figyelmeztetés",Properies:"Tulajdonságok",Popup:"Popup",Advanced:"Egyéni",Events:"Események",Width:"Szélesség",Height:"Magasság",Left:"Bal",Center:"Közép",Right:"Jobb",Border:"Keret",Background:"Háttér","Css class":"Css class","Css style":"Css stílus",No:"Nem",Title:"Cím","Script direction":"Script hivatkozás",Language:"Nyelv",Charset:"Karaktertábla","Not set":"Nincs beállítva","Left to right":"Balról jobbra","Right to left":"Jobbról balra","In this window":"Ebbe az ablakba","In new window (_blank)":"Új ablakba (_blank)","In new parent window (_parent)":"Egy új ablakba (_parent)","In top frame (_top)":"A top frame-be (_top)",URL:"","Open in":"Megnyitás","Open file manger":"Fájlkezelő megnyitása","This operation is disabled in your browser on security reason. Use shortcut instead.":"Ez a művelet le van tiltva a böngészőjében a biztonsági okból. Használja a parancsikont ehelyett.","Heading 1":"Címsor 1","Heading 2":"Címsor 2","Heading 3":"Címsor 3","Heading 4":"Címsor 4","Heading 5":"Címsor 5","Heading 6":"Címsor 6",Paragraph:"Bekezdés",Address:"Cím",Preformatted:"Előre formázott","Small (8pt)":"Kicsi (8pt)","Small (10px)":"Kicsi (10px)","Small (12pt)":"Kicsi (12pt)","Normal (14pt)":"Normál (14pt)","Large (18pt)":"Nagy (18pt)","Large (24pt)":"Nagy (24pt)","Large (36pt)":"Nagy (36pt)","Bookmark name":"Horgony neve","Link URL":"Link címe (URL)",Target:"Cél","Select bookmark":"Horgony választása","Open link in popup window":"Hivatkozás megnyitása új popup ablakban",URL:"","Window name":"Ablak neve","Window size":"Ablak mérete","Window position":"Ablak pozíciója","Location bar":"Címsor","Menu bar":"Menüsor",Toolbar:"Eszköztár",Scrollbars:"Görgősáv","Status bar":"Státusz sor",Resizable:"Átméretezhető",Depedent:"","Add return false":"Hozzáadás (return false)","Target MIME type":"MIME típusú cél","Relationship page to target (rel)":"Célhoz kapcsolódó lap (rel)","Relationship target to page (rev)":"Laphoz kapcsolódó cél (rev)","Tab index":"Tabulátor index","Access key":"Hozzáférési kulcs",Size:"Méret",Preview:"Előnézet",Margins:"Margók","Alt text":"Alt szöveg","Image URL":"Kép URL",Spacing:"Cellaköz",Padding:"",Rows:"Sorok",Columns:"Oszlopok",Groups:"Csoportok",Cells:"Cellák",Caption:"Felirat","Inner borders":"Belső keret","Table cell type":"Táblázat cella típus",Data:"Adat",Header:"Címsor",Justify:"Sorkizárt",Paddings:"Padding","Apply to":"Alkalmazás a","Current cell":"Jelenlegi cella","All cells in row":"Összes cella a sorban","All cells in column":"Összes cella az oszlopban","All cells in table":"Összes cella a táblázatban","About elRTE":"Az elRTE-ről",Version:"Verzió",Licence:"Liszensz","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"Az elRTE egy nyíltforráskódú JavaScript alapú WYSIWYG HTML-szerkesztő.","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"A szerkesztő fő célja, hogy egyszerűsítse a munkát és a szöveg formázást (HTML) az oldalakon, blogokon, fórumokon illetve más online szolgáltatásokban.","You can use it in any commercial or non-commercial projects.":"Használhatod bármilyen kereskedelni vagy nem-kereskedelmi célú projektben.",Authors:"Készítők","Chief developer":"Fő fejlesztő","Developer, tech support":"Fejelsaztő, tech kapcsolat","Interface designer":"Interface tervező","Spanish localization":"Spanyol fordító","Japanese localization":"Japán fordító","Latvian localization":"Litván fordító","German localization":"Német fordító","Ukranian localization":"Ukrán fordító","Magyar localization":"Magyar fordító","For more information about this software visit the":"További információkért a szoftverről keresse fel a ","elRTE website":"elRTE honlapját"}}(jQuery),function(a){elRTE.prototype.i18Messages.it={_translator:"Ugo Punzolo &lt;sadraczerouno@gmail.com&gt;",_translation:"Italian translation",Editor:"Editor",Source:"Codice Sorgente","Copy/Pase":"Copia/Incolla","Undo/Redo":"Annulla/Ripristina","Text styles":"Stile del testo",Colors:"Colori",Alignment:"Allineamento","Indent/Outdent":"Aumenta/Riduci indentazione","Text format":"Formato del testo",Lists:"Liste","Misc elements":"Elementi vari",Links:"Collegamenti",Images:"Immagini",Media:"Multimedia",Tables:"Tabelle","File manager (elFinder)":"File manager (elFinder)",Save:"Salva",Copy:"Copia",Cut:"Taglia",Paste:"Incolla","Paste only text":"Incolla solo testo","Paste formatted text":"Incolla testo formattato","Clean format":"Pulisci formato","Undo last action":"Annulla ultima azione","Redo previous action":"Ripristina ultima azione",Bold:"Neretto",Italic:"Corsivo",Underline:"Sottolineato",Strikethrough:"Barrato",Superscript:"Indice",Subscript:"Pedice/Deponente","Align left":"Allinea a sinistra","Ailgn right":"Allinea a destra","Align center":"Centra","Align full":"Giustifica","Font color":"Colore del testo","Background color":"Colore di sfondo",Indent:"Aumenta indentazione",Outdent:"Riduci indentazione",Format:"Formato","Font size":"Grandezza caratteri",Font:"Carattere","Ordered list":"Lista ordinata","Unordered list":"Lista non ordinata","Horizontal rule":"Linea orizzontale",Blockquote:"Citazione","Block element (DIV)":"Blocco elemento (DIV)",Link:"Collegamento","Delete link":"Elimina collegamento",Bookmark:"Segnalibro",Image:"Immagine",Table:"Tabella","Delete table":"Elimina tabella","Insert row before":"Inserisci riga sopra","Insert row after":"Inserisci riga sotto","Delete row":"Elimina riga","Insert column before":"Inserisci colonna a sinistra","Insert column after":"Inserisci colonna a destra","Delete column":"Elimina colonna","Merge table cells":"Unisci celle","Split table cell":"Separa celle","Toggle display document structure":'Passa alla modalit&agrave; "visualizzazione struttura del documento"',"Table cell properties":"Propriet&agrave; celle","Table properties":"Propriet&agrave; tabella","Toggle full screen mode":'Passa alla modalit&agrave; "schermo intero"',"Open file manager":"Apri il file manager","Non breakable space":"Spazio non divisibile","Stop element floating":"Blocca elemento fluttuante",Warning:"Attenzione",Properies:"Propriet&agrave;",Popup:"Popup",Advanced:"Avanzate",Events:"Eventi",Width:"Larghezza",Height:"Altezza",Left:"Sinistra",Center:"Centro",Right:"Destra",Border:"Bordo",Background:"Sfondo","Css class":"Classe CSS","Css style":"Stile CSS",No:"No",Title:"Titolo","Script direction":"Direzione dello script",Language:"Lingua",Charset:"Charset","Not set":"Non settato","Left to right":"Da sinistra a destra","Right to left":"Da destra a sinistra","In this window":"In questa finestra (_self)","In new window (_blank)":"In una nuova finestra (_blank)","In new parent window (_parent)":"In una nuova finestra madre (_parent)","In top frame (_top)":"In alto al frame (_top)",URL:"URL","Open in":"Apri in","This operation is disabled in your browser on security reason. Use shortcut instead.":"Questa operazione &egrave; disabilitata nel tuo browser per motivi di sicurezza. Puoi comunque utilizzare un comando da tastiera.","Heading 1":"Intestazione 1","Heading 2":"Intestazione 2","Heading 3":"Intestazione 3","Heading 4":"Intestazione 4","Heading 5":"Intestazione 5","Heading 6":"Intestazione 6",Paragraph:"Paragrafo",Address:"Indirizzo",Preformatted:"Preformattato","Small (8pt)":"Piccolo (8pt)","Small (10px)":"Piccolo (10px)","Small (12pt)":"Piccolo (12pt)","Normal (14pt)":"Normale (14pt)","Large (18pt)":"Grande (18pt)","Large (24pt)":"Grande (24pt)","Large (36pt)":"Grande (36pt)","Bookmark name":"Nome del segnalibro","Link URL":"URL del collegamento",Target:"Target","Open link in popup window":"Apri il link in una finestra popup","Window name":"Nome della finestra","Window size":"Dimensioni della finestra","Window position":"Posizione della finestra","Location bar":"Barra direzionale","Menu bar":"Barra del menu",Toolbar:"Barra degli strumenti",Scrollbars:"Barra di scorrimento","Status bar":"Barra di stato",Resizable:"Ridimensionabile",Depedent:"Dipendente (Netscape)","Add return false":"Aggiungi condizione falsa (return false)","Target MIME type":"Obiettivo del tipo di MIME (MIME type)","Relationship page to target (rel)":"Dalla pagina correlata all'obiettivo","Relationship target to page (rev)":"Dall'obiettivo alla pagina correlata","Tab index":"Indice di tabulazione","Access key":"Chiave di accesso",Size:"Dimensione",Preview:"Anteprima",Margins:"Margini","Alt text":"Testo alternativo","Image URL":"URL dell'immagine",Spacing:"Spaziatura (Spacing)",Padding:"Riempimento (Padding)",Rows:"Righe",Columns:"Colonne",Groups:"Gruppi",Cells:"Celle",Caption:"Didascalia","Inner borders":"Bordi interni"}}(jQuery),function(a){elRTE.prototype.i18Messages.jp={_translator:"Tomoaki Yoshida &lt;info@yoshida-studio.jp&gt;",_translation:"Japanese translation",Editor:"エディター",Source:"ソース","Copy/Pase":"コピー/ペースト","Undo/Redo":"元に戻す/やり直し","Text styles":"テキストスタイル",Colors:"色",Alignment:"行揃え","Indent/Outdent":"インデント/アウトデント","Text format":"テキストフォーマット",Lists:"リスト","Misc elements":"その他",Links:"リンク",Images:"画像",Media:"メディア",Tables:"テーブル","File manager (elFinder)":"ファイルマネージャ(elFinder)","About this software":"このソフトウェアについて",Save:"保存",Copy:"コピー",Cut:"切り取り",Paste:"貼り付け","Paste only text":"テキストのみ貼り付け","Paste formatted text":"フォーマットされたテキストの貼り付け","Clean format":"フォーマット消去","Undo last action":"元に戻す","Redo previous action":"やり直し",Bold:"太字",Italic:"斜体",Underline:"下線",Strikethrough:"打ち消し線",Superscript:"上付き文字",Subscript:"添え字","Align left":"左揃え","Ailgn right":"右揃え","Align center":"中央揃え","Align full":"両端揃え","Font color":"テキスト色","Background color":"背景色",Indent:"インデント",Outdent:"アウトデント",Format:"フォーマット","Font size":"サイズ",Font:"フォント","Ordered list":"段落番号","Unordered list":"箇条書き","Horizontal rule":"横罫線",Blockquote:"ブロック引用","Block element (DIV)":"ブロック要素 (DIV)",Link:"リンク","Delete link":"リンク削除",Bookmark:"アンカー挿入/編集",Image:"イメージ",Table:"テーブル","Delete table":"テーブル削除","Insert row before":"前に行を挿入","Insert row after":"後ろに行を挿入","Delete row":"行を削除","Insert column before":"前に列を挿入","Insert column after":"後ろに列を挿入","Delete column":"列を削除","Merge table cells":"セルを結合する","Split table cell":"セルを分割する","Toggle display document structure":"構成要素の表示","Table cell properties":"テーブルセルプロパティ","Table properties":"テーブルプロパティ","Toggle full screen mode":"最大化","Open file manager":"ファイルマネージャを開く","Non breakable space":"改行なしスペース","Stop element floating":"フロートの解除",Warning:"警告",Properies:"プロパティ",Popup:"ポップアップ",Advanced:"アドバンス",Events:"イベント",Width:"幅",Height:"高さ",Left:"左",Center:"中央",Right:"右",Border:"ボーダー",Background:"背景","Css class":"CSS class","Css style":"CSS style",No:"No",Title:"タイトル","Script direction":"文字表記方向",Language:"言語",Charset:"Charset","Not set":"設定しない","Left to right":"左から右","Right to left":"右から左","In this window":"同じウィンドウ (_self)","In new window (_blank)":"新しいウィンドウ (_blank)","In new parent window (_parent)":"新しい親ウィンドウ (_parent)","In top frame (_top)":"トップフレーム (_top)",URL:"URL","Open in":"Open in","This operation is disabled in your browser on security reason. Use shortcut instead.":"この機能はお使いのブラウザではセキュリティの観点からご利用できません。ショートカットをご利用ください。","Heading 1":"見出し1","Heading 2":"見出し2","Heading 3":"見出し3","Heading 4":"見出し4","Heading 5":"見出し5","Heading 6":"見出し6",Paragraph:"段落",Address:"アドレス",Preformatted:"","Small (8pt)":"小(8pt)","Small (10px)":"小(10pt)","Small (12pt)":"小(12pt)","Normal (14pt)":"中(14pt)","Large (18pt)":"大(18pt)","Large (24pt)":"大(24pt)","Large (36pt)":"大(36pt)","Bookmark name":"アンカー名","Link URL":"(URL)",Target:"ターゲット","Open link in popup window":"リンク先をポップアップで開く",URL:"URL","Window name":"ウィンドウ名","Window size":"ウィンドウサイズ","Window position":"ウィンドウ位置","Location bar":"ロケーションバー","Menu bar":"メニューバー",Toolbar:"ツールバー",Scrollbars:"スクロールバー","Status bar":"ステータスバー",Resizable:"サイズ可変",Depedent:"ウィンドウ連動","Add return false":"return falseを加える","Target MIME type":"Target MIME type","Relationship page to target (rel)":"ページからターゲットの関係 (rel)","Relationship target to page (rev)":"ターゲットからページの関係 (rev)","Tab index":"タブインデックス","Access key":"アクセスキー",Size:"サイズ",Preview:"プレビュー",Margins:"マージン","Alt text":"代替テキスト","Image URL":"画像URL",Spacing:"セル間隔 (spacing)",Padding:"セル内余白 (padding)",Rows:"行",Columns:"列",Groups:"グループ",Cells:"セル",Caption:"キャプション","Inner borders":"内部ボーダー","About elRTE":"elRTEについて",Version:"バージョン",Licence:"ライセンス","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"elRTEはJavascriptベースのオープンソースWYSIWYG HTMLエディタです。","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"このエディタの主な目的は、ウェブサイト、ブログ、フォーラムやその他のオンラインサービスのテキストとHTMLフォーマット入力作業をシンプルにすることです。","You can use it in any commercial or non-commercial projects.":"商用・非商用に関わらずご利用いただけます。",Authors:"著作者","Chief developer":"チーフデベロッパー","Developer, tech support":"デベロッパー・テクニカルサポート","Interface designer":"インターフェイスデザイナー","Spanish localization":"スペイン語化ローカライゼーション","Japanese localization":"日本語化ローカライゼーション","Latvian localization":"ラトビア語化ローカライゼーション","German localization":"ドイツ語化ローカライゼーション","Ukranian localization":"ウクライナ語化ローカライゼーション","For more information about this software visit the":"次のURLにてこのソフトウェアのより詳しい情報を公開しています。","elRTE website":"elRTE ウェブサイト"}}(jQuery),function(a){elRTE.prototype.i18Messages.ko={_translator:"DominicKesler &lt;DominicKesler@gmail.com&gt;",_translation:"Korean translation",Editor:"편집기",Source:"소스보기","Copy/Pase":"복사/붙여넣기","Undo/Redo":"실행취소/다시실행","Text styles":"글자 스타일",Colors:"컬러",Alignment:"정렬","Indent/Outdent":"들여쓰기/내어쓰기","Text format":"글자 서식",Lists:"목록","Misc elements":"기타",Links:"링크",Images:"이미지",Media:"미디어",Tables:"테이블","File manager (elFinder)":"파일 관리자(elFinder)","About this software":"소프트웨어 설명",Save:"저장",Copy:"복사",Cut:"잘라내기",Paste:"붙여넣기","Paste only text":"텍스트만 붙여넣기","Paste formatted text":"텍스트 속성까지 붙여넣기","Clean format":"서식 지우기","Undo last action":"실행취소","Redo previous action":"다시실행",Bold:"굵게",Italic:"이탤릭",Underline:"밑줄",Strikethrough:"취소선",Superscript:"위 첨자",Subscript:"아래 첨자","Align left":"왼쪽 정렬","Ailgn right":"오른쪽 정렬","Align center":"가운데 정렬","Align full":"양쪽 정렬","Font color":"글꼴 색","Background color":"배경 색",Indent:"들여쓰기",Outdent:"내어쓰기",Format:"속성","Font size":"글꼴 크기",Font:"글꼴","Ordered list":"번호 매기기","Unordered list":"기오 매기기","Horizontal rule":"가로줄",Blockquote:"인용구","Block element (DIV)":"블럭요소(DIV)",Link:"링크","Delete link":"링크 삭제",Bookmark:"북마크",Image:"이미지",Table:"표","Delete table":"표 삭제","Insert row before":"앞에 행 삽입","Insert row after":"뒤에 행 삽입","Delete row":"현재 행 삭제","Insert column before":"앞에 열 삽입","Insert column after":"뒤에 열 삽입","Delete column":"열 삭제","Merge table cells":"셀 병합","Split table cell":"셀 나눔","Toggle display document structure":"구성요소 보기","Table cell properties":"표 셀 속성","Table properties":"표 속성","Toggle full screen mode":"전체화면 모드(실행/취소)","Open file manager":"파일 관리자 열기","Non breakable space":"줄바꿈 없애기","Stop element floating":"플로트 해제",Warning:"경고",Properies:"속성",Popup:"팝업",Advanced:"고급",Events:"이벤트",Width:"폭",Height:"높이",Left:"왼쪽",Center:"가운데",Right:"오른쪽",Border:"선",Background:"배경","Css class":"CSS Class","Css style":"CSS Style",No:"No",Title:"제목","Script direction":"문자 표시 방향",Language:"언어",Charset:"언어","Not set":"설정안함","Left to right":"왼쪽에서 오른쪽","Right to left":"오른족에서 왼쪽","In this window":"현재 창(_self)","In new window (_blank)":"새 창(_blank)","In new parent window (_parent)":"새 부모창(_parent)","In top frame (_top)":"최상위 프래임(_top)",URL:"URL","Open in":"Open in","Open file manger":"파일 관리자 열기","This operation is disabled in your browser on security reason. Use shortcut instead.":"이 기능은 현재 사용중인 브라우저의 보안설정으로 인하여 사용할 수 없습니다. 단축키를 이용하시기 바랍니다.","Heading 1":"제목 1","Heading 2":"제목 2","Heading 3":"제목 3","Heading 4":"제목 4","Heading 5":"제목 5","Heading 6":"제목 6",Paragraph:"단락",Address:"주소",Preformatted:"다른설정값","Small (8pt)":"가나다Abc(8pt)","Small (10px)":"가나다Abc(10px)","Small (12pt)":"가나다Abc(12pt)","Normal (14pt)":"가나다Abc(14pt)","Large (18pt)":"가나다Abc(18pt)","Large (24pt)":"가나다Abc(24pt)","Large (36pt)":"가나다Abc(36pt)","Bookmark name":"북마크 이름","Link URL":"URL 주소",Target:"타겟","Select bookmark":"북마크 선택","Open link in popup window":"팝업창에서 링크열기","Window name":"창 이름","Window size":"창 크기","Window position":"창 위치","Location bar":"주소","Menu bar":"메뉴",Toolbar:"툴바",Scrollbars:"스크롤바","Status bar":"상태표시줄",Resizable:"리사이즈가능",Depedent:"Depedent","Add return false":"return false 추가","Target MIME type":"MINE type 타겟","Relationship page to target (rel)":"페이지에서 대상 관계(rel)","Relationship target to page (rev)":"대상에서 페이지 관계(rev)","Tab index":"탭 인덱스","Access key":"실행키",Size:"크기",Preview:"미리보기",Margins:"여백","Alt text":"대체 글자","Image URL":"이미지 URL",Spacing:"셀 간격",Padding:"셀 여백",Rows:"행",Columns:"열",Groups:"그룹",Cells:"셀",Caption:"캡션","Inner borders":"내부 선","Table cell type":"표 셀 타입",Data:"데이터",Header:"제목",Justify:"양쪽맞춤(Justify)",Paddings:"여백","Apply to":"적용","Current cell":"현재 셀","All cells in row":"행의 모든 셀","All cells in column":"열의 모든 셀","All cells in table":"표의 모든 셀","About elRTE":"eIRTE에 대하여",Version:"버전",Licence:"라이센스","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"elRTE는 JavaScript기반의 오픈소스 WYSIWYG HTML 편집기 입니다.","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"이 편집기의 주 목적은 사이트, 블로그, 포럼 및 기타 온라인 서비스에서 글자와 HTML형식의 입력을 쉽게 하도록 하는 것입니다.","You can use it in any commercial or non-commercial projects.":"상용, 비상용 상관없이 이용할 수 있습니다.",Authors:"저작자","Chief developer":"수석 개발자","Developer, tech support":"개발자, 기술지원",Developer:"개발자","Interface designer":"인터페이스 디자이너","Spanish localization":"스페인어 번역","Czech localization":"체코어 번역","Japanese localization":"일본어 번역","Latvian localization":"라트비아어 번역","German localization":"독일어 번역","Ukranian localization":"우크라이나어 번역","Persian (farsi) localization":"페르시아어 번역","Arabic localization":"아랍어 번역","RTL support":"RTL 지원","French localization":"프랑스어 번역","Dutch localization":"네덜란드어 번역","Hungarian localization":"헝가리어 번역","Polish localization":"폴란드어 번역","Italian localization":"이탈리아어 번역","Traditional Chinese localization":"중국어(번체) 번역","For more information about this software visit the":"이 소프트웨어의 더 많은 정보를 원하시면 elRTE 웹사이트를 방문해 주세요.","elRTE website":"elRTE 웹사이트"}}(jQuery),function(a){elRTE.prototype.i18Messages.lv={_translator:"Uldis Plotiņš &lt;uldis.plotins@gmail.com&gt;",_translation:"Latvian translation",Editor:"Redaktors",Source:"Izejas kods","Copy/Pase":"Kopēt/Ievietot","Undo/Redo":"Atcelt/Atkārtot darbību","Text styles":"Teksta stili",Colors:"Krāsa",Alignment:"Izlīdzināšana","Indent/Outdent":"Atkāpes","Text format":"Formatēšana",Lists:"Saraksti","Misc elements":"Dažādi elementi",Links:"Saites",Images:"Attēli",Media:"Mēdiju faili",Tables:"Tabulas","File manager (elFinder)":"Failu pārvaldnieks (elFinder)",Save:"Saglabāt",Copy:"Kopēt",Cut:"Izgriezt",Paste:"Ievietot","Paste only text":"Ievietot tikai tekstu","Paste formatted text":"Ievietot formatētu tekstu","Clean format":"Atcelt formatēšanu","Undo last action":"Atcelt pēdējo darbību","Redo previous action":"Atkārtot pēdējo darbību",Bold:"Treknraksts",Italic:"Slīpraksts",Underline:"Pasvītrots",Strikethrough:"Izsvītrots",Superscript:"Augšraksts",Subscript:"Apakšraksts","Align left":"Izlīdzināt pa kreiso malu","Ailgn right":"Izlīdzināt pa labo malu","Align center":"Centrēt","Align full":"Izlīdzināt pa malām","Font color":"Šrifta krāsa","Background color":"Fona krāsa",Indent:"Palielināt atkāpi",Outdent:"Samazināt atkāpi",Format:"Formatēšana","Font size":"Šrifta lielums",Font:"Šrifts","Ordered list":"Numurēts saraksts","Unordered list":"Nenumurēts saraksts","Horizontal rule":"Horizontālā līnija",Blockquote:"Citāts","Block element (DIV)":"Bloka elements (DIV)",Link:"Saite","Delete link":"Dzēst saiti",Bookmark:"Grāmatzīme",Image:"Attēls",Table:"Tabula","Delete table":"Dzēst tabulu","Insert row before":"Ievietot rindu pirms","Insert row after":"Ievietot rindu pēc","Delete row":"Dzēst rindu","Insert column before":"Ievietot kolonnu pirms","Insert column after":"Ievietot kolonnu pēc","Delete column":"Dzēst kolonnu","Merge table cells":"Apvienot ailes","Split table cell":"Sadalīt aili","Toggle display document structure":"Rādīt dokumenta struktūru/neredzamos elementus","Table cell properties":"Ailes iestatījumi","Table properties":"Tabulas iestatījumi","Toggle full screen mode":"Pilns ekrāns","Open file manager":"Atvērt failu pārvaldnieku","Non breakable space":"Nepārtrauktā atstarpe","Stop element floating":"Atslēgt elementu apklāšanu ar tekstu",Warning:"Uzmanību",Properies:"Iestatījumi",Popup:"Jauns logs",Advanced:"Papildus",Events:"Notikumi",Width:"Platums",Height:"Augstums",Left:"Pa kresi",Center:"Pa centru",Right:"Pa labi",Border:"Mala",Background:"Fons","Css class":"Css klase","Css style":"Css stils",No:"Nē",Title:"Virsraksts","Script direction":"Vēstules virziens",Language:"Valoda",Charset:"Kodējums","Not set":"Nav uzstādī†s","Left to right":"No kreisās uz labo","Right to left":"No labās uz kreiso","In this window":"Dotajā logā","In new window (_blank)":"Jaunā logā (_blank)","In new parent window (_parent)":"Vecāku logā (_parent)","In top frame (_top)":"Augšējā rāmī (_top)",URL:"URL","Open in":"Atvērt","Open file manger":"Atvērt failu pārvaldnieku","This operation is disabled in your browser on security reason. Use shortcut instead.":"Dotā darbība jūsu pārlūkam ir liegta saistībā ar drošības aspektiem. Izmantojiet taustiņu kombināciju.","Heading 1":"Virsraksts 1","Heading 2":"Virsraksts 2","Heading 3":"Virsraksts 3","Heading 4":"Virsraksts 4","Heading 5":"Virsraksts 5","Heading 6":"Virsraksts 6",Paragraph:"Paragrāfs",Address:"Adrese",Preformatted:"","Small (8pt)":"Sīks (8pt)","Small (10px)":"Mazs (10px)","Small (12pt)":"Neliels (12pt)","Normal (14pt)":"Parasts (14pt)","Large (18pt)":"Liels (18pt)","Large (24pt)":"Ļoti liels(24pt)","Large (36pt)":"Milzīgs (36pt)","Bookmark name":"Grāmatzīmes vārds","Link URL":"Saites adrese (URL)",Target:"Mērķis","Select bookmark":"Izvēlēties grāmatzīmi","Open link in popup window":"Atvērt saiti jaunā logā",URL:"URL","Window name":"Loga nosaukums","Window size":"Loga izmērs","Window position":"Loga pozīcija","Location bar":"Vietas panelis","Menu bar":"Izvēlnes panelis",Toolbar:"Instrumentu panelis",Scrollbars:"Ritjoslas","Status bar":"Stāvokļa panelis",Resizable:"Izmēra izmaiņas",Depedent:"Atkarīgs (Netscape)","Add return false":"Pievienot (return false)","Target MIME type":"MIME type mērķi","Relationship page to target (rel)":"Lapas attiecībaa pret mērķi (rel)","Relationship target to page (rev)":"Mērķa attiecība pret lapu (rev)","Tab index":"","Access key":"Pieejas taustiņš",Size:"Izmērs",Preview:"Priekšskats",Margins:"Atkāpes","Alt text":"Apraksta teksts","Image URL":"Bildes URL",Spacing:"Atstarpe",Padding:"Atkāpe",Rows:"Rindas",Columns:"Kolonnas",Groups:"Grupas",Cells:"Ailes",Caption:"Tabulas virsraksts","Inner borders":"Iekšējās robežas","Table cell type":"Tabulas ailes tips",Data:"Dati",Header:"Virsraksts",Justify:"Pa malām",Paddings:"Atkāpes","Apply to":"Pielietot uz","Current cell":"Izvēlētā aile","All cells in row":"Visas rindas ailes","All cells in column":"Visas stabiņa ailes","All cells in table":"Visas tabulas ailes"}}(jQuery),function(a){elRTE.prototype.i18Messages.nl={_translator:"Kurt Aerts",_translation:"Dutch translation",Editor:"Editor",Source:"Broncode","Copy / Pase":"Kopieeer / Plakken","Undo / Redo":"Ongedaan maken / Herhalen typen","Text styles":"Tekst stijlen",Colors:"Kleuren:",Alignment:"Alinea","Indent / Outdent":"","Text format":"Tekst opmaak",Lists:"Lijsten","Misc elements":"",Links:"Links",Images:"Afbeeldingen",Media:"Media",Tables:"Tabelllen","File manager (elFinder)":"Bestandsmanager (elFinder)","About this software":"Over deze software",Save:"Opslaan",Copy:"Kopieer",Cut:"Knip",Paste:"Plak","Paste only text":"Plak alleen tekst","Paste formatted text":"Plak opgemaakte tekst","Clean format":"Opmaak opschonen","Undo last action":"Maak laaste actie ongedaan","Redo previous action":"Herdoe laatst gedane actie",Bold:"Vet",Italic:"Cursief",Underline:"Onderlijnt",Strikethrough:"Doorstreept",Superscript:"",Subscript:"","Align left":"Links uitlijnen","Ailgn right":"Rechts uitlijnen","Align center":"Centreren","Align full":"Uitvullen","Font color":"Tekst kleur","Background color":"Achtergrond kleur",Indent:"Inspringing vergroten",Outdent:"Inspringing Verkleinen",Format:"Opmaak","Font size":"Tekst grootte",Font:"Lettertype","Ordered list":"Geordende lijst","Unordered list":"Ongeordende lijst","Horizontal rule":"Horizontale regel",Blockquote:"","Block element (DIV)":"",Link:"Link","Delete link":"Verwijder mo,l",Bookmark:"",Image:"Afbeelding",Table:"Tabel","Delete table":"Verwijder tabel","Insert row before":"Invoegen voor rij","Insert row after":"Invoegen na rij","Delete row":"Verwijder rij","Insert column before":"Invoegen voor kolom","Insert column after":"Invoegen na kolom","Delete column":"Verwijder kolom","Merge table cells":"Samenvoegen tabel cellen","Split table cell":"","Toggle display document structure":"","Table cell properties":"","Table properties":"","Toggle full screen mode":"(toggle) Volledig scherm","Open file manager":"Open bestandsmanager","Non breakable space":"","Stop element floating":"",Warning:"Waarschuwing",Properies:"Opties",Popup:"Popup",Advanced:"Geavanceerd",Events:"Events",Width:"Breedte",Height:"Hoogte",Left:"Links",Center:"Midden",Right:"Rechts",Border:"Border",Background:"Achtergrond","Css class":"Css Class","Css style":"Css style",No:"Nee",Title:"Titel","Script direction":"",Language:"Taal",Charset:"Charset","Not set":"Niet gezet","Left to right":"Links naar rechts","Right to left":"Rechts naar link","In this window":"In dit venster","In new window (_blank)":"In nieuw venster (_blank)","In new parent window (_parent)":"In new parent window (_parent)","In top frame (_top)":"In top frame (_top)",URL:"","Open in":"Open in","This operation is disabled in your browser on security reason. Use shortcut instead. ":"Deze operatie is uitgeschakeld in jou browser voor beveiligings redenen. Gebruik de snelkoppeling.","Heading 1":"","Heading 2":"","Heading 3":"","Heading 4":"","Heading 5":"","Heading 6":"",Paragraph:"",Address:"",Preformatted:"","Small (8pt)":"Kleinst (8pt)","Small (10px)":"Kleiner (10px)","Small (12pt)":"Klein (12pt)","Normal (14pt)":"Normaal (14pt)","Large (18pt)":"Groot (18pt)","Large (24pt)":"Groter (24pt)","Large (36pt)":"Grootst (36pt)","Bookmark name":"","Link URL":"",Target:"Doel","Select bookmark":"","Open link in popup window":"",URL:"","Window name":"Venster naam","Window size":"Venster grootte","Window position":"Venster Positie","Open link in popup window":"Open link in een popup enster","Location bar":"Locatie balk","Menu bar":"Menu balk",Toolbar:"Toolbar",Scrollbars:"Scrollbar","Status bar":"Status balk",Resizable:"Schaalbaar",Depedent:"","Add return false":"","Target MIME type":"","Relationship page to target (rel)":"","Relationship target to page (rev)":"","Tab index":"","Access key":"",Size:"Grootte",Preview:"Voorbeeld",Margins:"","Alt text":"Alt tekst","Image URL":"Afbeelding URL",Spacing:"",Padding:"",Rows:"",Columns:"",Groups:"",Cells:"",Caption:"","Inner borders":"","Table cell type":"",Data:"",Header:"",Justify:"",Paddings:"","Apply to":"Toepassen op","Current cell":"Huidige cell","All cells in row":"Alle cellen in rij","All cells in column":"Alle cellen in kolom","All cells in table":"Alle cellen in tabel","About elRTE":"Over elRTE",Version:"Versie",Licence:"Licentie","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"elRTE is een open-source Javascript gebasseerd WYSIWYG HTML-editor.","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"Hoofddoel van de editor - Simpel wekren met tekst en opmaak (HTML) op websites, forums en andere online diensten.","You can use it in any commercial or non-commercial projects.":"Je kan het gebruiken in commerciele en niet commericiele projecten.",Authors:"Auteurs","Chief developer":"","Developer, tech support":"","Interface designer":"","Spanish localization":"","Japanese localization":"","Latvian localization":"","German localization":"","Ukranian localization":"","For more information about this software visit the":"Voor meer informatie over deze software bezoek de","elRTE website":""}}(jQuery),function(a){elRTE.prototype.i18Messages.pl={_translator:"Andrzej Borowicz",_translation:"Polish translation",Editor:"Edytor",Source:"Kod źródłowy","Copy/Pase":"Kopiuj/Wklej","Undo/Redo":"Cofnij/Ponów","Text styles":"Style tekstowe",Colors:"Kolor",Alignment:"Wyrównanie","Indent/Outdent":"Wcięcie / wysynięcie","Text format":"Format",Lists:"Lista","Misc elements":"Inne elementy",Links:"Link",Images:"Obraz",Media:"Pliki multimedialne",Tables:"Tabela","File manager (elFinder)":"Menadżer plików (elFinder)",Save:"Zapisz",Copy:"Wytnij",Cut:"Kopiuj",Paste:"Wklej","Paste only text":"Wklej tylko tekst","Paste formatted text":"Wklej tekst sformatowany","Clean format":"Wyczyść formaty","Undo last action":"Cofnij","Redo previous action":"Ponów",Bold:"Pogróbienie",Italic:"Kursywa",Underline:"Podkreślenie",Strikethrough:"Przekreślenie",Superscript:"Index górny",Subscript:"index dolny","Align left":"Wyrównanie do lewej","Ailgn right":"Wyrównanie do prawej","Align center":"Wycentrowanie","Align full":"Wyjustowanie","Font color":"Kolor czcionki","Background color":"Kolor tła",Indent:"Wcięcie",Outdent:"Wysunięcie",Format:"Format","Font size":"Rozmiar czcionki",Font:"Czcionka","Ordered list":"Lista numerowana","Unordered list":"Lista","Horizontal rule":"Linia poziomae",Blockquote:"Cytat","Block element (DIV)":"Element blokowy (DIV)",Link:"Link","Delete link":"Usuń link",Bookmark:"Wstaw/etytuj kotwicę",Image:"Obraz",Table:"Tabela","Delete table":"Skasuj Tabelę","Insert row before":"Wstaw wiers przed","Insert row after":"Wstaw wiers po","Delete row":"Skasuj wiersz","Insert column before":"Wstaw kolumnę Spalte przed","Insert column after":"Wstaw kolumnę po","Delete column":"Skasuj kolumnę","Merge table cells":"Połącz komórki","Split table cell":"Rozłącz komórki","Toggle display document structure":"Pokaż bloki","Table cell properties":"Właściwości komórki","Table properties":"Właściwości tabeli","Toggle full screen mode":"Pełny ekran","Open file manager":"Menadźer plików","Non breakable space":"Twarda spacja","Stop element floating":"Wyłącz otaczanie elementów",Warning:"Ostrzeżenie",Properies:"Właściwości",Popup:"okienko Pop-up",Advanced:"Więcej",Events:"Wydarzenia",Width:"Szerokość",Height:"Wysokość",Left:"Lewy",Center:"Centrum",Right:"Prawy",Border:"Ramka",Background:"Kolor tła","Css class":"klasa Css","Css style":"styl Css",No:"Nie",Title:"Tytuł","Script direction":"Komentarz sktyptu",Language:"Język",Charset:"Strona kodowa","Not set":"nic","Left to right":"Z lewej do prawej","Right to left":"Z prawej do lewej","In this window":"To samo okno (_self)","In new window (_blank)":"Nowe okno (_blank)","In new parent window (_parent)":"Okno nadrzędne (_parent)","In top frame (_top)":"Górna ramka (_top)",URL:"","Open in":"Otwórz w","This operation is disabled in your browser on security reason. Use shortcut instead.":"Ta operacja jest zabroniona w twojej przeglądarce z powodu zabezpieczeń. Pomimo to możesz używać klawiszy skrótów."
,"Heading 1":"Nagłówek 1","Heading 2":"Nagłówek 2","Heading 3":"Nagłówek 3","Heading 4":"Nagłówek 4","Heading 5":"Nagłówek 5","Heading 6":"Nagłówek 6",Paragraph:"Paragraf",Address:"Addresse",Preformatted:"","Small (8pt)":"Mały (8pt)","Small (10px)":"Mały (10pt)","Small (12pt)":"Mały (12pt)","Normal (14pt)":"Średni (14pt)","Large (18pt)":"Duży (18pt)","Large (24pt)":"Duży (24pt)","Large (36pt)":"Duży (36pt)","Bookmark name":"Nazwa kotwicy","Link URL":"(URL)",Target:"Cel","Open link in popup window":"Otwórz link w nowym oknie",URL:"","Window name":"Okienko Pop-up Nazwa","Window size":"Rozmiar","Window position":"Pozycja","Location bar":"pasek adresu","Menu bar":"Pasek menu",Toolbar:"Pasek narzędzi",Scrollbars:"Paski przewijania","Status bar":"pasek statusy",Resizable:"Zmiana rozmiaru okna",Depedent:"Zależne (Netscape)","Add return false":"dodaj (return false)","Target MIME type":"MIME type","Relationship page to target (rel)":"Zależnośc strony do celu (rel)","Relationship target to page (rev)":"Zależnośc strony do strony (rev)","Tab index":"Index tab","Access key":"Klawisz dostepu",Size:"Rozmiar",Preview:"Podgląd",Margins:"Marginesy","Alt text":"Text alternatywny","Image URL":"URL",Spacing:"Dystans (spacing)",Padding:"Dystans (padding)",Rows:"Wiersz",Columns:"Kolumna",Groups:"Grupa",Cells:"Komórki",Caption:"Legenda","Inner borders":"Wewnętrzne ramki"}}(jQuery),function(a){elRTE.prototype.i18Messages.pt_BR={_translator:"Jairo Moreno &lt;master.zion@gmail.com&gt;",_translation:"Brazilian Portuguese translation",Editor:"Editor",Source:"Código Fonte","Copy/Pase":"Copiar/Colar","Undo/Redo":"Desfazer/Refazer","Text styles":"Folhas de Estilo",Colors:"Cores",Alignment:"Alinhamento","Indent/Outdent":"Aumentar/Diminuir","Text format":"Formato",Lists:"Listas","Misc elements":"Elementos diversos",Links:"Links",Images:"Imagens",Media:"Multimedia",Tables:"Tabelas","File manager (elFinder)":"Gerenciador de arquivos",Save:"Gravar",Copy:"Copiar",Cut:"Cortar",Paste:"Colar","Paste only text":"Colar texto","Paste formatted text":"Colar texto formatado","Clean format":"Limpar formato","Undo last action":"Desfazer última ação","Redo previous action":"Refazer última ação",Bold:"Negrito",Italic:"Itálico",Underline:"Sublinhado",Strikethrough:"Riscado",Superscript:"Superíndice",Subscript:"Subíndice","Align left":"Alinhar à esquerda","Ailgn right":"Alinhar à direita","Align center":"Centralizar","Align full":"Justificado","Font color":"Cor de texto","Background color":"Cor de fundo",Indent:"Aumentar",Outdent:"Reduzir",Format:"Formato","Font size":"Tamanho de Fonte",Font:"Fonte","Ordered list":"Lista ordenada","Unordered list":"Lista desordenada","Horizontal rule":"Linha horizontal",Blockquote:"Comentar","Block element (DIV)":"Bloco de Elementos (DIV)",Link:"Link","Delete link":"Remover link",Bookmark:"Favoritos",Image:"Imagem",Table:"Tabela","Delete table":"Remover tabela","Insert row before":"Inserir linha antes","Insert row after":"Inserir linha depois","Delete row":"Remover linha","Insert column before":"Inserir coluna antes","Insert column after":"Inserir coluna depois","Delete column":"Remover columna","Merge table cells":"Unir células","Split table cell":"Separar célula","Toggle display document structure":"Extrutura de documento","Table cell properties":"Propiedades de célula","Table properties":"Propiedades de tabela","Toggle full screen mode":"Tela cheia","Open file manager":"Abrir administrador de arquivos","Non breakable space":"Espaço indivisivel","Stop element floating":"Parar elemento flutunte",Warning:"Advertência",Properies:"Propriedades",Popup:"Popup",Advanced:"Avançado",Events:"Eventos",Width:"Largura",Height:"Altura",Left:"Esquerda",Center:"Centralizado",Right:"Direita",Border:"Borda",Background:"Fundo","Css class":"Classe CSS","Css style":"Estilo CSS",No:"Não",Title:"Título","Script direction":"Direção do script",Language:"Idioma",Charset:"Charset","Not set":"Não configurado","Left to right":"Esquerda para Direita","Right to left":"Direita para Esquerda","In this window":"Esta janela (_self)","In new window (_blank)":"Em nova janela (_blank)","In new parent window (_parent)":"Na janela Pai (_parent)","In top frame (_top)":"Sem suporte a frames (_top)",URL:"URL","Open in":"Abrir em","This operation is disabled in your browser on security reason. Use shortcut instead.":"Esta operação está bloqueada em seu navegador. Utilice um atalho.","Heading 1":"Cabeçalho 1","Heading 2":"Cabeçalho 2","Heading 3":"Cabeçalho 3","Heading 4":"Cabeçalho 4","Heading 5":"Cabeçalho 5","Heading 6":"Cabeçalho 6",Paragraph:"Parágrafo",Address:"Direção",Preformatted:"Pré-formatado","Small (8pt)":"Pequeno (8pt)","Small (10px)":"Pequeno (10px)","Small (12pt)":"Pequeno (12pt)","Normal (14pt)":"Normal (14pt)","Large (18pt)":"Grande (18pt)","Large (24pt)":"Grande (24pt)","Large (36pt)":"Grande (36pt)","Bookmark name":"Nome do favoritos","Link URL":"Link URL",Target:"Alvo","Open link in popup window":"Abrir vínculo en janela emergente","Window name":"Nomw na janela","Window size":"Tamanho na janela","Window position":"Posição na janela","Location bar":"Barra de dirección","Menu bar":"Barra de Menu",Toolbar:"Barra de ferramentas",Scrollbars:"Barras de rolagem","Status bar":"Barra de status",Resizable:"Redimensionavel",Depedent:"Dependente (Netscape)","Add return false":"Adicionar (return false)","Target MIME type":"Objeto de Tipo MIME","Relationship page to target (rel)":"Relacionado a página para alvo(rel)","Relationship target to page (rev)":"Relacionado a alvo para página (rev)","Tab index":"Tab index","Access key":"Tecla de acesso",Size:"Tamanho",Preview:"Visualizar",Margins:"Margens","Alt text":"Texto alternativo","Image URL":"URL da imagem",Spacing:"Espaçamento",Padding:"Margem",Rows:"Linha",Columns:"Colunas",Groups:"Grupos",Cells:"Células",Caption:"Legenda","Inner borders":"Bordas internas"}}(jQuery),function(a){elRTE.prototype.i18Messages.ru={_translator:"Dmitry (dio) Levashov &lt;dio@std42.ru&gt;",_translation:"Русский перевод",Editor:"Редактор",Source:"Исходник","Copy/Pase":"Копирование/Вставка","Undo/Redo":"Отмена/Повтор действия","Text styles":"Стили текста",Colors:"Цвета",Alignment:"Выравнивание","Indent/Outdent":"Отступы","Text format":"Форматирование",Lists:"Списки","Misc elements":"Разные элементы",Links:"Ссылки",Images:"Изображения",Media:"Media файлы",Tables:"Таблицы","File manager (elFinder)":"Файловый менеджер (elFinder)","About this software":"О программе",Save:"Сохранить",Copy:"Копировать",Cut:"Вырезать",Paste:"Вставить","Paste only text":"Вставить только текст","Paste formatted text":"Вставить форматированый текст","Clean format":"Удалить форматирование","Undo last action":"Отменить действие","Redo previous action":"Повторить действие ",Bold:"Жирный",Italic:"Курсив",Underline:"Подчеркнутый",Strikethrough:"Перечеркнутый",Superscript:"Надстрочный текст",Subscript:"Подстрочный текст","Align left":"Выровнять налево","Ailgn right":"Выровнять направо","Align center":"Выровнять по центру","Align full":"Выровнять по краям","Font color":"Цвет шрифта","Background color":"Цвет заливки",Indent:"Увеличить отступ",Outdent:"Уменьшить отступ",Format:"Форматирование","Font size":"Размер шрифта",Font:"Шрифт","Ordered list":"Нумерованый список","Unordered list":"Ненумерованый список","Horizontal rule":"Горизонтальная линия",Blockquote:"Цитата","Block element (DIV)":"Блочный элемент (DIV)",Link:"Ссылка","Delete link":"Удалить ссылку",Bookmark:"Закладка",Image:"Изображение",Table:"Таблица","Delete table":"Удалить таблицу","Insert row before":"Вставить ряд до","Insert row after":"Вставить ряд после","Delete row":"Удалить ряд","Insert column before":"Вставить колонку до","Insert column after":"Вставить колонку после","Delete column":"Удалить колонку","Merge table cells":"Склеить ячейки","Split table cell":"Разделить ячейку","Toggle display document structure":"Показать структуру документа/невидимые элементы","Table cell properties":"Свойство ячейки","Table properties":"Свойство таблицы","Toggle full screen mode":"Во весь экран","Open file manager":"Открыть файловый менеджер","Non breakable space":"Неразрывный пробел","Stop element floating":"Отключить обтекание элементов текстом",Warning:"Внимание",Properies:"Свойства",Popup:"Новое окно",Advanced:"Дополнительно",Events:"События",Width:"Ширина",Height:"Высота",Left:"Слева",Center:"По центру",Right:"Справа",Border:"Бордюр",Background:"Фон","Css class":"Css класс","Css style":"Css cтиль",No:"Нет",Title:"Заголовок","Script direction":"Направление письма",Language:"Язык",Charset:"Кодировка","Not set":"Не установлено","Left to right":"Слево направо","Right to left":"Справа налево","In this window":"В этом окне","In new window (_blank)":"В новом окне (_blank)","In new parent window (_parent)":"В родительском окне (_parent)","In top frame (_top)":"В верхнем фрейме (_top)",URL:"","Open in":"Открыть","Open file manger":"Открыть файловый менеджер","This operation is disabled in your browser on security reason. Use shortcut instead.":"Действие запрещено в вашем браузере по соображениям безопастности. Используйте сочетание клавиш","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4","Heading 5":"Заголовок 5","Heading 6":"Заголовок 6",Paragraph:"Параграф",Address:"Адрес",Preformatted:"","Small (8pt)":"Мелкий (8pt)","Small (10px)":"Маленький (10px)","Small (12pt)":"Небольшой (12pt)","Normal (14pt)":"Обычный (14pt)","Large (18pt)":"Большой (18pt)","Large (24pt)":"Крупный (24pt)","Large (36pt)":"Огромный (36pt)","Bookmark name":"Имя закладки","Link URL":"Адрес ссылки (URL)",Target:"Цель","Select bookmark":"Выбрать закладку","Open link in popup window":"Открыть ссылку во всплывающем окне",URL:"","Window name":"Название окна","Window size":"Размер окна","Window position":"Позиция окна","Location bar":"Панель локации","Menu bar":"Панель меню",Toolbar:"Панель инструментов",Scrollbars:"Полосы прокрутки","Status bar":"Строка состояния",Resizable:"Изменение размера",Depedent:"Зависимый (Netscape)","Add return false":"Добавить (return false)","Target MIME type":"MIME type цели","Relationship page to target (rel)":"Отношение страницы к цели (rel)","Relationship target to page (rev)":"Отношение цели к странице (rev)","Tab index":"","Access key":"Клавиша доступа",Size:"Размер",Preview:"Предварительный просмотр",Margins:"Отступы","Alt text":"Описание (Alt)","Image URL":"URL",Spacing:"Промежуток (spacing)",Padding:"Отступ (padding)",Rows:"Строки",Columns:"Колонки",Groups:"Группы",Cells:"Ячейки",Caption:"Заголовок таблицы","Inner borders":"Внутренний бордюр","Table cell type":"Тип ячейки",Data:"Данные",Header:"Заголовок",Justify:"По краям",Paddings:"Отступы","Apply to":"Применить к","Current cell":"Выбранная ячейка","All cells in row":"Все ячейки в ряду","All cells in column":"Все ячейки в столбце","All cells in table":"Все ячейки таблицы","About elRTE":"О редакторе elRTE",Version:"Версия",Licence:"Лицензия","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"elRTE - это свободный WYSIWYG редактор для сайтов и систем управления контентом (CMS), написанный на JavaScript.","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"Основная цель редактора - максимально упростить работу с текстом и разметкой (HTML) на сайтах, блогах, форумах и прочих online сервисах.","You can use it in any commercial or non-commercial projects.":"Вы можете использовать его в любых коммерческих и некоммерческих проектах.",Authors:"Авторы","Chief developer":"Ведущий разработчик","Developer, tech support":"Разработчик, техническая поддержка",Developer:"Разработчик","Interface designer":"Дизайнер интерфейса","Spanish localization":"Испанская локализация","Czech localization":"Чешская локализация","Japanese localization":"Японская локализация","Latvian localization":"Латышская локализация","German localization":"Немецкая локализация","Ukranian localization":"Украинская локализация","Persian (farsi) localization":"Персидская (фарси) локализация","Arabic localization":"Арабская локализация","RTL support":"Поддержка RTL","French localization":"Французская локализация","Dutch localization":"Голландская локализация","Hungarian localization":"Венгерская локализация","Polish localization":"Польская локализация","Italian localization":"Итальянская локализация","Traditional Chinese localization":"Китайская (традиционная) локализация","For more information about this software visit the":"Подробная информация и форум тех. поддержки","elRTE website":"на сайте elRTE"}}(jQuery),function(a){elRTE.prototype.i18Messages.cs={_translator:"Lubos Voros &lt;lubos@simpledevelopment.sk&gt;",_translation:"Slovak translation",Editor:"Editor",Source:"Zdroj","Copy/Pase":"Kopírovať/Vložiť","Undo/Redo":"Zpäť/Znova","Text styles":"Štýly",Colors:"Farby",Alignment:"Zarovnanie","Indent/Outdent":"Odsadiť / Predsadit","Text format":"Formát",Lists:"Zoznamy","Misc elements":"Iné elementy",Links:"Odkazy",Images:"Obrázky",Media:"Média",Tables:"Tabuľky","File manager (elFinder)":"Správca súborov (elFinder)",elfinder:"Správca súborov",Save:"Uložiť",Copy:"Kopírovať",Cut:"Vystrihnúť",Paste:"Vložiť","Paste only text":"Vložiť ako text","Paste formatted text":"Vložiť formátovaný text","Clean format":"Vyčistiť","Undo last action":"Zpäť","Redo previous action":"Znova",Bold:"Tučné",Italic:"Kurzíva",Underline:"Podčiarknuté",Strikethrough:"Priečiarknuté",Superscript:"Horný index",Subscript:"Dolný index","Align left":"Zarovnať vľavo","Ailgn right":"Zarovnať vpravo","Align center":"Zarovnať na stred","Align full":"Do bloku","Font color":"Farba písma","Background color":"Farba pozadí",Indent:"Odsadiť",Outdent:"Predsadiť",Format:"Formát","Font size":"Veľkosť",Font:"Písmo","Ordered list":"Číslovaný zoznam","Unordered list":"Zoznam","Horizontal rule":"Vodorovná čiara",Blockquote:"Citát","Block element (DIV)":"DIV element",Link:"Odkaz","Delete link":"Odstraniť odkaz",Bookmark:"Záložka",Image:"Obrázok",Table:"Tabuľka","Delete table":"Smazať tabuľku","Insert row before":"Vložiť riadok nad","Insert row after":"Vložiť riadok pod","Delete row":"Smazať riadok","Insert column before":"Vložiť stľpec před","Insert column after":"Vložiť stľpec za","Delete column":"Smazať stľpec","Merge table cells":"Zlúčiť bunky","Split table cell":"Rozděliť bunku","Toggle display document structure":"Zobraziť štruktúru","Table cell properties":"Vlastnosti bunky","Table properties":"Vlastnosti tabuľky","Toggle full screen mode":"Celá obrazovka","Open file manager":"Otvoriť správcu súborov","Non breakable space":"Nerozdeliteľná medzera","Stop element floating":"Zrušiť obtekanie elementu",Warning:"Pozor",Properies:"Vlastnosti",Popup:"Pop-up",Advanced:"Viacej",Events:"Udalosti",Width:"Šířka",Height:"Výška",Left:"Vľavo",Center:"Na stred",Right:"Vpravo",Border:"Rámček",Background:"Pozadie","Css class":"CSS trieda","Css style":"CSS štýl",No:"Nie",Title:"Titulka","Script direction":"Pravidlá scriptu",Language:"Jazyk",Charset:"Znaková sada","Not set":"Nenastavené","Left to right":"Zľava doprava","Right to left":"Zprava doľava","In this window":"V tomto okne (_self)","In new window (_blank)":"V novom okne (_blank)","In new parent window (_parent)":"V novom rodičovskom okne (_parent)","In top frame (_top)":"V hlavnom okne (_top)",URL:"URL","Open in":"Otevoriť v","This operation is disabled in your browser on security reason. Use shortcut instead.":"Táto operácia je vo vašom prehliadači vypnutá kvôli bezpečnosti. Použite klávesovú skratku.","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4","Heading 5":"Nadpis 5","Heading 6":"Nadpis 6",Paragraph:"Odstavec",Address:"Adresa",Preformatted:"Predformátované","Small (8pt)":"Malé (8 pt)","Small (10px)":"Malé (10 pt)","Small (12pt)":"Malé (12 pt)","Normal (14pt)":"Normálne (14 pt)","Large (18pt)":"Veľké (18 pt)","Large (24pt)":"Veľké (24 pt)","Large (36pt)":"Veľké (36 pt)","Bookmark name":"Názov záložky","Link URL":"URL",Target:"Cieľ","Open link in popup window":"Otvárať odkaz v popup okne.",URL:"URL","Window name":"Meno okna","Window size":"Veľkosť okna","Window position":"Pozícia okna","Location bar":"Adresový riadok","Menu bar":"Ponuky",Toolbar:"Lišta nástrojov",Scrollbars:"Posuvníky","Status bar":"Stavový riadok",Resizable:"Zmena veľkosti",Depedent:"Závislý","Add return false":"Pridat return false","Target MIME type":"Cieľový MIME typ","Relationship page to target (rel)":"","Relationship target to page (rev)":"","Tab index":"","Access key":"",Size:"Veľkosti",Preview:"Náhľad",Margins:"Okraje","Alt text":"Alternativny text","Image URL":"URL",Spacing:"Vonkajši okraj",Padding:"Vnútorný okraj",Rows:"Riadky",Columns:"Stľpce",Groups:"Skupiny",Cells:"Buňky",Caption:"Titulok","Inner borders":"Vnútorné rámčeky"}}(jQuery),function(a){elRTE.prototype.i18Messages.th={_translator:"Anusuk Sangubon &lt;jaideejung007@gmail.com&gt;",_translation:"Thai translation",Editor:"อิดิเตอร์",Source:"ซอร์ส","Copy/Pase":"คัดลอก/วาง","Undo/Redo":"เลิกทำ/ทำซ้ำ","Text styles":"ลักษณะข้อความ",Colors:"สี",Alignment:"การจัดตำแหน่ง","Indent/Outdent":"เพิ่มเยื้อง/ลดเยื้อง","Text format":"รูปแบบตัวอักษร",Lists:"รายการ","Misc elements":"องค์ประกอบอื่นๆ",Links:"ลิงค์",Images:"ภาพ",Media:"มีเดีย",Tables:"ตาราง","File manager (elFinder)":"จัดการไฟล์ (elFinder)","About this software":"เกี่ยวกับซอฟต์แวร์นี้",Save:"บันทึก",Copy:"คัดลอก",Cut:"ตัด",Paste:"วาง","Paste only text":"วางข้อความเท่านั้น","Paste formatted text":"วางข้อความที่จัดรูปแบบ","Clean format":"ล้างรูปแบบ","Undo last action":"ยกเลิกการทำงานล่าสุด","Redo previous action":"ทำซ้ำการกระทำก่อนหน้า",Bold:"ตัวหนา",Italic:"ตัวเอียง",Underline:"ขีดเส้นใต้",Strikethrough:"ขีดเส้นตรงกลาง",Superscript:"ตัวยก",Subscript:"ตัวห้อย","Align left":"ชิดซ้าย","Ailgn right":"ชิดขวา","Align center":"กึ่งกลาง","Align full":"จัดเต็ม","Font color":"สีตัวอักษร","Background color":"สีพื้นหลัง",Indent:"เพิ่มเยื้อง",Outdent:"ลดเยื้อง",Format:"รูปแบบ","Font size":"ขนาดอักษร",Font:"แบบอักษร","Ordered list":"ลำดับรายการ","Unordered list":"ไม่มีลำดับรายการ","Horizontal rule":"เส้นคั่น",Blockquote:"ข้อความย่อหน้า","Block element (DIV)":"องค์ประกอบ Block (DIV)",Link:"ลิงค์","Delete link":"ลบลิงค์",Bookmark:"บุ๊คมาร์ค",Image:"ภาพ",Table:"ตาราง","Delete table":"ลบตาราง","Insert row before":"แทรกแถวบน","Insert row after":"แทรกแถวหลัง","Delete row":"ลบแถว","Insert column before":"แทรกคอลัมน์บน","Insert column after":"แทรกคอลัมน์ล่าง","Delete column":"ลบคอลัมน์","Merge table cells":"ผสานเซลล์ตาราง","Split table cell":"แบ่งเซลล์ของตาราง","Toggle display document structure":"สลับโครงสร้างของเอกสาร","Table cell properties":"ตารางคุณสมบัติของเซลล์","Table properties":"คุณสมบัติของตาราง","Toggle full screen mode":"โหมดการสลับหน้าจอแบบเต็ม","Open file manager":"เปิดการจัดการไฟล์","Non breakable space":"ช่องว่าง","Stop element floating":"องค์ประกอบหยุดลอย",Warning:"คำเตือน",Properies:"Properies",Popup:"ป๊อปอัพ",Advanced:"ขั้นสูง",Events:"เหตุการณ์",Width:"กว้าง",Height:"สูง",Left:"ซ้าย",Center:"กลาง",Right:"ขวา",Border:"เส้นขอบ",Background:"พื้นหลัง","Css class":"Css class","Css style":"Css style",No:"ไม่",Title:"ชื่อเรื่อง","Script direction":"ทิศทางสคริปต์",Language:"ภาษา",Charset:"รหัสตัวอักษร","Not set":"ไม่ได้ตั้งค่า","Left to right":"ซ้ายไปขวา","Right to left":"ขวาไปซ้าย","In this window":"ในหน้าต่างนี้","In new window (_blank)":"ในหน้าต่างใหม่ (_blank)","In new parent window (_parent)":"ในหน้าต่างใหม่ (_parent)","In top frame (_top)":"ในเฟรมด้านบน (_top)",URL:"URL","Open in":"เปิดใน","Open file manger":"เปิดการจัดการไฟล์","This operation is disabled in your browser on security reason. Use shortcut instead.":"การดำเนินการนี้จะปิดการใช้งานในเบราว์เซอร์ของคุณในเหตุผลด้านความปลอดภัย กรุณาใช้ทางลัดแทน","Heading 1":"หัวเรื่อง 1","Heading 2":"หัวเรื่อง 2","Heading 3":"หัวเรื่อง 3","Heading 4":"หัวเรื่อง 4","Heading 5":"หัวเรื่อง 5","Heading 6":"หัวเรื่อง 6",Paragraph:"ย่อหน้า",Address:"ที่อยู่",Preformatted:"จัดย่อหน้าอิสระ","Small (8pt)":"ขนาดเล็ก (8pt)","Small (10px)":"ขนาดเล็ก (10px)","Small (12pt)":"ขนาดเล็ก (12pt)","Normal (14pt)":"ปกติ (14pt)","Large (18pt)":"ขนาดใหญ่ (18pt)","Large (24pt)":"ขนาดใหญ่ (24pt)","Large (36pt)":"ขนาดใหญ่ (36pt)","Bookmark name":"ชื่อบุ๊คมาร์ค","Link URL":"ลิงค์ URL",Target:"Target","Select bookmark":"เลือกบุ๊คมาร์ค","Open link in popup window":"เปิดลิงก์ในหน้าต่างป๊อปอัพ","Window name":"ชื่อหน้าต่าง","Window size":"ขนาดหน้าต่าง","Window position":"ตำแหน่งหน้าต่าง","Location bar":"แถบที่มา","Menu bar":"แถบเมนู",Toolbar:"แถบเครื่องมือ",Scrollbars:"สกอลล์บาร์","Status bar":"แถบสถานะ",Resizable:"ปรับขนาด",Depedent:"Depedent","Add return false":"เพิ่ม return false","Target MIME type":"รูปแบบ Target MIME","Relationship page to target (rel)":"หน้าความสัมพันธ์ไปยังเป้าหมาย (rel)","Relationship target to page (rev)":"เป้าหมายความสัมพันธ์ไปยังหน้า (rev)","Tab index":"ดัชนีแท็บ","Access key":"คีย์สำหรับเข้าถึง",Size:"ขนาด",Preview:"แสดงตัวอย่าง",Margins:"ขอบ","Alt text":"ข้อความ Alt","Image URL":"URL ของรูป",Spacing:"ระยะห่าง",Padding:"Padding",Rows:"แถว",Columns:"คอลัมน์",Groups:"กลุ่ม",Cells:"เซลล์",Caption:"Caption","Inner borders":"เส้นขอบด้านใน","Table cell type":"ประเภทของเซลล์ตาราง",Data:"ข้อมูล",Header:"หัว",Justify:"ชิด",Paddings:"Paddings","Apply to":"นำไปใช้","Current cell":"เซลล์ปัจจุบัน","All cells in row":"เซลล์ทั้งหมดในแถว","All cells in column":"เซลล์ทั้งหมดในคอลัมน์","All cells in table":"เซลล์ทั้งหมดในตาราง","About elRTE":"เกี่ยวกับ elRTE",Version:"เวอร์ชั่น",Licence:"ใบอนุญาต","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"elRTE คือ โอเพ้นซอร์ส ภายใต้การทำงานของจาวาสคริปต์บนคำสั่ง WYSIWYG HTML-editor","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"เป้าหมายหลักของโปรแกรมแก้ไข -- ลดความซับซ้อนของการทำงานกับข้อความและรูปแบบ (HTML) ในเว็บไซต์บล็อกฟอรั่มและบริการออนไลน์อื่นๆ","You can use it in any commercial or non-commercial projects.":"คุณสามารถใช้ในเชิงพาณิชย์หรือโครงการที่ไม่ใช่เชิงพาณิชย์ใดๆ",Authors:"ผู้เขียน","Chief developer":"ประธานผู้พัฒนา","Developer, tech support":"นักพัฒนาสนับสนุนด้านเทคนิค",Developer:"นักพัฒนา","Interface designer":"นักออกแบบอินเตอร์เฟซ","Spanish localization":"แปลภาษาสเปน","Czech localization":"แปลภาษาเช็ก","Japanese localization":"แปลภาษาญี่ปุ่น","Latvian localization":"แปลภาษาลัตเวีย","German localization":"แปลภาษาเยอรมัน","Ukranian localization":"แปลภาษายูเครน","Persian (farsi) localization":"แปลภาษาเปอร์เซีย (farsi)","Arabic localization":"แปลภาษาอาหรับ","RTL support":"สนับสนุน RTL","French localization":"แปลภาษาฝรั่งเศส","Dutch localization":"แปลภาษาดัตช์","Hungarian localization":"แปลภาษาฮังการี","Polish localization":"แปลภาษาโปแลนด์","Italian localization":"แปลภาษาอิตาลี","Traditional Chinese localization":"แปลภาษาจีนดั้งเดิม","For more information about this software visit the":"สำหรับข้อมูลเพิ่มเติมเกี่ยวกับซอฟต์แวร์นี้ เยี่ยมชมได้ที่","elRTE website":"เว็บไซต์ elRTE"}}(jQuery),function(a){elRTE.prototype.i18Messages.tr={_translator:"Özgür Çakırca &lt;dijitalartist@gmail.com&gt;",_translation:"Turkish translation",Editor:"Editör",Source:"Kaynak Kodu","Copy/Pase":"Kopyala/Yapıştır","Undo/Redo":"Geri Al/Tekrarla","Text styles":"Yazı Stilleri",Colors:"Renkler",Alignment:"Hizalama","Indent/Outdent":"Girinti/Girintiyi Azalt","Text format":"Yazı Biçimleri",Lists:"Liste","Misc elements":"Misc Elemanları",Links:"Linkler",Images:"Resimler",Media:"Medya",Tables:"Tablolar","File manager (elFinder)":"","About this software":"Bu yazılım hakkında",Save:"Kaydet",Copy:"Kopyala",Cut:"Kes",Paste:"Yapıştır","Paste only text":"Yalnızca yazıyı yapıştır","Paste formatted text":"Yazı biçimini yapıştır","Clean format":"Biçimi temizle","Undo last action":"Son eylemi geri al","Redo previous action":"Önceki eylemi geri dön",Bold:"Kalın",Italic:"İtalik",Underline:"Altı çizili",Strikethrough:"Üstü çizili",Superscript:"Üst simge",Subscript:"Alt simge","Align left":"Sola hizala","Ailgn right":"Sağa hizala","Align center":"Ortala","Align full":"İki yana yasla","Font color":"Yazı tipi rengi","Background color":"Arka plan rengi",Indent:"Girintiyi artır",Outdent:"Girintiyi azalt",Format:"Biçim","Font size":"Yazı tipi boyutu",Font:"Yazı tipi","Ordered list":"Numaralı Liste","Unordered list":"Simgeli Liste","Horizontal rule":"Yatay çizgi",Blockquote:"Blok oluştur","Block element (DIV)":"Blok öğe (DIV)",Link:"Link ekle düzenle","Delete link":"Köprü kaldır",Bookmark:"Bağlantı ekle",Image:"Resim",Table:"Tablo ekle","Delete table":"Tablo sil","Insert row before":"Satır başına ekle","Insert row after":"Satır sonuna ekle","Delete row":"Satır sil","Insert column before":"Sütun başına ekle","Insert column after":"Sütun sonuna ekle","Delete column":"Sütun sil","Merge table cells":"Tablo hücrelerini birleştir","Split table cell":"Tablo hücrelerini ayır","Toggle display document structure":"Belge yapısı görünümünü değiştir","Table cell properties":"Tablo hücresi özellikleri","Table properties":"Tablo özellikleri","Toggle full screen mode":"Tam ekran moduna","Open file manager":"Dosya yöneticisini aç","Non breakable space":"Boş karakter ekle","Stop element floating":"Boşluk aldır (DIV)",Warning:"Uyarı",Properies:"Özellik",Popup:"Açılır",Advanced:"Gelişmiş",Events:"Olaylar",Width:"Genişlik",Height:"Yükseklik",Left:"Sol",Center:"Merkez",Right:"Sağ",Border:"Kalınlık",Background:"Arkaplan","Css class":"Css sınıfı","Css style":"Css stili",No:"Hayır",Title:"Başlık","Script direction":"Script yönü",Language:"Dil",Charset:"Karakter","Not set":"Ayarlanmamış","Left to right":"Soldan sağa","Right to left":"Sağdan sola","In this window":"Bu pencerede aç","In new window (_blank)":"Yeni pencerede aç (_blank)","In new parent window (_parent)":"Yeni ana pencerede aç (_parent)","In top frame (_top)":"Üst çerçeve (_top)",URL:"URL","Open in":"Açık","Open file manger":"Dosya yöneticisini aç","This operation is disabled in your browser on security reason. Use shortcut instead.":"Bu işlem güvenlik nedeni üzerinde tarayıcınızda devre dışıdır. yerine kısayol kullanın.","Heading 1":"Başlık 1","Heading 2":"Başlık 2","Heading 3":"Başlık 3","Heading 4":"Başlık 4","Heading 5":"Başlık 5","Heading 6":"Başlık 6",Paragraph:"Paragraf",Address:"Adres",Preformatted:"Biçimlendirilmiş","Small (8pt)":"Küçük (8pt)","Small (10px)":"Küçük (10pt)","Small (12pt)":"Küçük (12pt)","Normal (14pt)":"Normal (14pt)","Large (18pt)":"Büyük (18pt)","Large (24pt)":"Büyük (24pt)","Large (36pt)":"Büyük (36pt)","Bookmark name":"Çapa adı","Link URL":"Link URL",Target:"Hedef","Select bookmark":"Bağlantı Seç","Open link in popup window":"Popup pencerede aç","Window name":"Pencere adı","Window size":"Pencere boyutu","Window position":"Pencere pozisyonu","Location bar":"Konum çubuğuna","Menu bar":"Menü çubuğu",Toolbar:"Araç çubuğu",Scrollbars:"Kaydırma","Status bar":"Durum çubuğu",Resizable:"Yeniden boyutlandır",Depedent:"Depedent","Add return false":"Add return false","Target MIME type":"Hedef MIME tipi","Relationship page to target (rel)":"Hedef sayfa ilişkisi(rel)","Relationship target to page (rev)":"Hedef sayfaya ilişkisi (rev)","Tab index":"Sekme dizini","Access key":"Erişim tuşu",Size:"Boyut",Preview:"Ön izleme",Margins:"Margins","Alt text":"Alt metni","Image URL":"Resim URLsi",Spacing:"Aralık",Padding:"",Rows:"Satırları",Columns:"Sütunlar",Groups:"Gruplar",Cells:"Hücreler",Caption:"Başlık","Inner borders":"İç sınırları","Table cell type":"Tablo hücre tipi",Data:"Bilgi",Header:"Başlık",Justify:"Satır Uzunluğu",Paddings:"Başluk","Apply to":"Uygulamak için","Current cell":"Geçerli hücre","All cells in row":"Satırdaki tüm hücreler","All cells in column":"Sütundaki tüm hücreler","All cells in table":"Tablodaki tüm hücreler","About elRTE":"elRTE Hakkında",Version:"Versiyon",Licence:"Lisans","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"elRTE  açık kodlu WYSIWYG JavaScript tabanlı HTML düzenleyicisidir.","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"Editör ana hedefi - metin ve biçimlendirme (HTML) siteleri, bloglar, forumlar ve diğer online hizmetlerine çalışmayı basitleştirir.","You can use it in any commercial or non-commercial projects.":"Herhangi bir ticari ve ticari olmayan projelerde de kullanabilirsiniz.",Authors:"Yazarlar","Chief developer":"Baş geliştiricisi","Developer, tech support":"Geliştirici, teknik destek",Developer:"Geliştirici","Interface designer":"Interface designer","Spanish localization":"İspanyolca yerelleştirme","Czech localization":"Çek yerelleştirme","Japanese localization":"Japon yerelleştirme","Latvian localization":"Letonyalı yerelleştirme","German localization":"Alman yerelleştirme","Ukranian localization":"Ukrayna yerelleştirme","Persian (farsi) localization":"Farsça (farsi) yerelleştirme","Arabic localization":"Arapça yerelleştirme","RTL support":"RTL destek","French localization":"Fransız yerelleştirme","Dutch localization":"Hollandaca yerelleştirme","Hungarian localization":"Macar yerelleştirme","Polish localization":"Lehçe yerelleştirme","Italian localization":"İtalyan yerelleştirme","Traditional Chinese localization":"Geleneksel Çin yerelleştirme","For more information about this software visit the":"Bu yazılım hakkında daha fazla bilgi için ziyaret","elRTE website":"elRTE web sitesi"}}(jQuery),function(a){elRTE.prototype.i18Messages.uk={_translator:"Artem Vasilyev",_translation:"Ukranian translation",Editor:"Редактор",Source:"Джерело","Copy / Pase":"Копіювання / Вставка","Undo / Redo":"Скасувати / Повтор дії","Text styles":"Стилі тексту",Colors:"Кольори",Alignment:"Вирівнювання","Indent / Outdent":"Відступи","Text format":"Форматування",Lists:"Списки","Misc elements":"Різні елементи",Links:"Посилання",Images:"Малюнки",Media:"Media файли",Tables:"Таблиці","File manager (elFinder)":"Файловый менеджер (elFinder)","About this software":"О программе",Save:"Зберегти",Copy:"Копіювати",Cut:"Вирізати",Paste:"Вставити","Paste only text":"Вставити тільки текст","Paste formatted text":"Вставити форматування тексту","Clean format":"Видалити форматування","Undo last action":"Скасувати дію","Redo previous action":"Повторити дію",Bold:"Товстий",Italic:"Курсив",Underline:"Підкреслений",Strikethrough:"Перекреслений",Superscript:"Верхній регістр",Subscript:"Нижній регістр","Align left":"Вирівняти ліворуч","Ailgn right":"Вирівняти праворуч","Align center":"Вирівняти по центру","Align full":"Вирівняти по краях","Font color":"Колір тексту","Background color":"Колір залікві",Indent:"Збільшити відступ",Outdent:"Зменшити відступ",Format:"Форматування","Font size":"Розмір шрифту",Font:"Шрифт","Ordered list":"Нумерований список","Unordered list":"Ненумерований список","Horizontal rule":"Горизонтальна лінія",Blockquote:"Цитата","Block element (DIV)":"Блочный элемент (DIV)",Link:"Посилання","Delete link":"Видалити посилання",Bookmark:"Закладка",Image:"Зображення",Table:"Таблиця","Delete table":"Видалити таблицю","Insert row before":"Вставити ряд до","Insert row after":"Вставити ряд після","Delete row":"Видалити ряд","Insert column before":"Вставити колонку до","Insert column after":"Вставити колонку після","Delete column":"Видалити колонку","Merge table cells":"склеїти осередку","Split table cell":"Розділити клітинку","Toggle display document structure":"Показати структуру документа / невидимі елементи","Table cell properties":"Властивість клітинку","Table properties":"Властивість таблиці","Toggle full screen mode":"Во весь экран","Open file manager":"Открыть файловый менеджер","Non breakable space":"Неразрывный пробел","Stop element floating":"Отключить обтекание элементов текстом",Warning:"Увага",Properies:"Властивості",Popup:"Нове вікно",Advanced:"Більше",Events:"Події",Width:"Ширина",Height:"Висота",Left:"Слева",Center:"По центру",Right:"Справа",Border:"Бордюр",Background:"Фон","Css class":"Css клас","Css style":"Css style",No:"Ні",Title:"Заголовок","Script direction":"Направлення письма",Language:"Мова",Charset:"Кодування","Not set":"Не встановлено","Left to right":"Зліва направо","Right to left":"Справа наліво","In this window":"У цьому вікні","In new window (_blank)":"У новому вікні (_blank)","In new parent window (_parent)":"У батьківському вікні (_parent)","In top frame (_top)":"У верхньому фреймі (_top)",URL:"","Open in":"Відкрити","This operation is disabled in your browser on security reason. Use shortcut instead. ":"Дія заборонено у вашому браузері з міркувань безпеки. Використовуйте клавіші ","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4","Heading 5":"Заголовок 5","Heading 6":"Заголовок 6",Paragraph:"Параграф",Address:"Адрес",Preformatted:"","Small (8pt)":"Дрібний (8pt)","Small (10px)":"Маленький (10px)","Small (12pt)":"Невеликий (12pt)","Normal (14pt)"
:"Звичайний (14pt)","Large (18pt)":"Великий (18pt)","Large (24pt)":"Крупний (24pt)","Large (36pt)":"Величезний (36pt)","Bookmark name":"Ім&rsquo;я закладки","Link URL":"Адреса ссиклі (URL)",Target:"Мета","Select bookmark":"Выбрать закладку","Open link in popup window":"Відкрити посилання у спливаючому вікні",URL:"","Window name":"Назва вікна","Window size":"Розмір вікна","Window position":"Позиція вікна","Open link in popup window":"Відкрити посилання у спливаючому вікні","Window name":"Назва вікна","Window size":"Розмір вікна","Window position":"Позиція вікна","Location bar":"Панель локації","Menu bar":"Панель меню",Toolbar:"Панель інструментів",Scrollbars:"Смуги прокрутки","Status bar":"Рядок стану",Resizable:"Зміна розміру",Depedent:"Залежний (Netscape)","Add return false":"Додати (return false)","Target MIME type":"MIME type цілі","Relationship page to target (rel)":"Ставлення сторінки до мети (rel) ","Relationship target to page (rev)":"Відношення мети до сторінки (rev)","Tab index":"","Access key":"Клавіша доступу",Size:"Розмір",Preview:"Попередній перегляд",Margins:"Відступи","Alt text":"Опис (Alt)","Image URL":"URL",Spacing:"Проміжок (spacing)",Padding:"Відступ (padding)",Rows:"Рядок ",Columns:"Колонки",Groups:"Группы",Cells:"Ячейки",Caption:"Заголовок таблиці","Inner borders":"Внутрішній бордюр","Table cell type":"Тип ячейки",Data:"Данные",Header:"Заголовок",Justify:"По краям",Paddings:"Отступы","Apply to":"Применить к","Current cell":"Выбранная ячейка","All cells in row":"Все ячейки в ряду","All cells in column":"Все ячейки в столбце","All cells in table":"Все ячейки таблицы","About elRTE":"О редакторе elRTE",Version:"Версия",Licence:"Лицензия","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"elRTE - это свободный WYSIWYG редактор для сайтов и систем управления контентом (CMS), написанный на JavaScript.","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"Основная цель редактора - максимально упростить работу с текстом и разметкой (HTML) на сайтах, блогах, форумах и прочих online сервисах.","You can use it in any commercial or non-commercial projects.":"Вы можете использовать его в любых коммерческих и некоммерческих проектах.",Authors:"Авторы","Chief developer":"Ведущий разработчик","Developer, tech support":"Разработчик, техническая поддержка","Interface designer":"Дизайнер интерфейса","Spanish localization":"Испанская локализация","Japanese localization":"Японская локализация","Latvian localization":"Латвийская локализация","German localization":"Немецкая локализация","Ukranian localization":"Украинская локализация","For more information about this software visit the":"Подробная информация и форум тех. поддержки","elRTE website":"на сайте elRTE"}}(jQuery),function(a){elRTE.prototype.i18Messages.vi={_translator:"babycntt",_translation:"Vietnamese translation",Source:"Mã nguồn","Copy/Pase":"Sao chép/Dán","Undo/Redo":"Khôi phục thao tác/Làm lại thao tác","Text styles":"Kiểu",Colors:"Màu sắc",Alignment:"Canh lề","Indent/Outdent":"Đẩy sang phải/Đẩy sang trái","Text format":"Định dạng",Lists:"Danh sách","Misc elements":"Chức năng khác",Links:"Liên kết",Images:"Hình ảnh",Media:"Đa phương tiện",Tables:"Bảng","File manager (elFinder)":"Quản lí tập tin","About this software":"Thông tin về phần mềm",Save:"Lưu",Copy:"Sao chép",Cut:"Cắt",Paste:"Dán","Paste only text":"Chỉ dán chữ","Paste formatted text":"Dán theo định dạng văn bản","Clean format":"Xóa định dạng","Undo last action":"Khôi phục thao tác","Redo previous action":"Làm lại thao tác",Bold:"Đậm",Italic:"Nghiêng",Underline:"Gạch chân",Strikethrough:"Gạch giữa từ",Superscript:"Chỉ số trên",Subscript:"Chỉ số dưới","Align left":"Canh trái","Ailgn right":"Canh phải","Align center":"Canh giữa","Align full":"Canh đều","Font color":"Màu chữ","Background color":"Màu nền",Indent:"Đẩy sang phải",Outdent:"Đẩy sang trái",Format:"Định dạng","Font size":"Cỡ chữ",Font:"Phông","Ordered list":"Xếp danh sách theo thứ tự","Unordered list":"Xếp danh sách không theo thứ tự","Horizontal rule":"Chèn đường phân cách ngang",Blockquote:"Khối trích dẫn","Block element (DIV)":"Tạo khối các thành phần (DIV)",Link:"Chèn liên kết","Delete link":"Xóa liên kết",Bookmark:"Đánh dấu",Image:"Chèn ảnh",Table:"Chèn bảng","Delete table":"Xóa bảng","Insert row before":"Chèn hàng phía trước","Insert row after":"Chèn hàng phía sau","Delete row":"Xóa hàng","Insert column before":"Chèn cột phía trước","Insert column after":"Chèn cột phía sau","Delete column":"Xóa cột","Merge table cells":"Ghép ô","Split table cell":"Tách ô","Toggle display document structure":"Xem cấu trúc của văn bản","Table cell properties":"Thuộc tính ô","Table properties":"Thuộc tính bảng","Toggle full screen mode":"Xem toàn màn hình","Open file manager":"Quản lí tập tin","Non breakable space":"Non breakable space","Stop element floating":"Stop element floating",Warning:"Cảnh báo",Properies:"Thuộc tính",Popup:"Popup",Advanced:"Nâng cao",Events:"Sự kiện",Width:"Rộng",Height:"Cao",Left:"Trái",Center:"Giữa",Right:"Phải",Border:"Đậm",Background:"Nền","Css class":"Css class","Css style":"Css style",No:"Không",Title:"Tiêu đề","Script direction":"Script direction",Language:"Ngôn ngữ",Charset:"Charset","Not set":"Không thiết đặt","Left to right":"Trái qua phải","Right to left":"Phải qua trái","In this window":"Trong cửa sổ hiện tại","In new window (_blank)":"Trong cửa sổ mới (_blank)","In new parent window (_parent)":"Trong cửa sổ con (_parent)","In top frame (_top)":"Trong khung cửa sổ đặt trên cùng (_top)",URL:"Đường dẫn","Open in":"Mở trong","Open file manger":"Quản lí tập tin","This operation is disabled in your browser on security reason. Use shortcut instead.":"Tính năng này bị khóa trong trình duyệt của bạn vì lí do bảo mật. Dùng tổ hợp phím để thay thế.","Heading 1":"Tiêu đề 1","Heading 2":"Tiêu đề 2","Heading 3":"Tiêu đề 3","Heading 4":"Tiêu đề 4","Heading 5":"Tiêu đề 5","Heading 6":"Tiêu đề 6",Paragraph:"Đoạn văn",Address:"Địa chỉ",Preformatted:"Chưa định dạng","Small (8pt)":"Nhỏ (8pt)","Small (10px)":"Nhỏ (10px)","Small (12pt)":"Nhỏ (12pt)","Normal (14pt)":"Bình thường (14pt)","Large (18pt)":"Lớn (18pt)","Large (24pt)":"Lớn (24pt)","Large (36pt)":"Lớn (36pt)","Bookmark name":"Tên của thẻ làm dấu","Link URL":"Địa chỉ của liên kết",Target:"Mở trong","Select bookmark":"Chọn đánh dấu","Open link in popup window":"Mở liên kết trong khung cửa sổ đặt trên cùng","Window name":"Tên cửa sổ","Window size":"Kích thước cửa sổ","Window position":"Vị trí cửa sổ","Location bar":"Hiện thanh định vị","Menu bar":"Hiện thanh menu",Toolbar:"Hiện thanh công cụ",Scrollbars:"Hiện thanh trượt","Status bar":"Hiện thanh trạng thái",Resizable:"Có thể điều chỉnh kích thước",Depedent:"Độc lập","Add return false":"Add return false","Target MIME type":"Target MIME type","Relationship page to target (rel)":"Relationship page to target (rel)","Relationship target to page (rev)":"Relationship target to page (rev)","Tab index":"Tab index","Access key":"Access key",Size:"Kích thước",Preview:"Xem trước",Margins:"Viền","Alt text":"Chú thích","Image URL":"Địa chỉ của ảnh",Spacing:"Khoảng cách",Padding:"Khoảng đệm",Rows:"Hàng",Columns:"Cột",Groups:"Nhóm",Cells:"Ô",Caption:"Tiêu đề","Inner borders":"Viền bên trong theo","Table cell type":"Kiểu ô",Data:"Dữ liệu",Header:"Tiêu đề",Justify:"Hiệu chỉnh",Paddings:"Khoảng đệm","Apply to":"Áp dụng với","Current cell":"Ô hiện tại","All cells in row":"Tất cả ô trong một hàng","All cells in column":"Tất cả ô trong một cột","All cells in table":"Tất cả ô trong bảng","About elRTE":"Giới thiệu về elRTE",Version:"Phiên bản",Licence:"Bản quyền","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"elRTE là trình soạn thảo mã nguồn mở viết bằng JavaScript dựa trên nền HTML.","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"Mục đích chính của trình soạn thảo là hoạt động tốt với chữ và định dạng (HTML) trên trang web, blog, diễn đàn và những dịch vụ online khác.","You can use it in any commercial or non-commercial projects.":"Bạn có thể sử dụng với các dự án thương mại hay phi lợi nhuận.",Authors:"Tác giả","Chief developer":"Lập trình viên trưởng","Developer, tech support":"Lập trình, hỗ trợ kĩ thuật",Developer:"Lập trình viên","Interface designer":"Thiết kế giao diện","Spanish localization":"Người dịch ra tiếng Tây Ban Nha","Czech localization":"Người dịch ra tiếng Cộng hòa Czech","Japanese localization":"Người dịch ra tiếng Nhật","Latvian localization":"Người dịch ra tiếng Latvia","German localization":"Người dịch ra tiếng Đức","Ukranian localization":"Người dịch ra tiếng U-crai-na","Persian (farsi) localization":"Người dịch ra tiếng I-ran","Arabic localization":"Người dịch ra tiếng Ả-rập","RTL support":"Hỗ trợ RTL","French localization":"Người dịch ra tiếng Pháp","Dutch localization":"Người dịch ra tiếng Đức","Hungarian localization":"Người dịch ra tiếng Hungary","Polish localization":"Người dịch ra tiếng Ba Lan","Italian localization":"Người dịch ra tiếng Ý","Traditional Chinese localization":"Người dịch ra tiếng Trung Quốc","For more information about this software visit the":"Để biết thêm thông tin, hãy vào","elRTE website":"website của elRTE"}}(jQuery),function(a){elRTE.prototype.i18Messages.zh_CN={_translator:"Lee Chenhwa &lt;leechenhwa@gmail.com&gt;",_translation:"Simplified Chinese translation",Editor:"编辑器",Source:"源代码","Copy/Pase":"复制/粘贴","Undo/Redo":"取消/重做","Text styles":"文字样式",Colors:"颜色",Alignment:"对齐","Indent/Outdent":"缩进/缩回","Text format":"文字格式",Lists:"列单","Misc elements":"其他元素",Links:"链接",Images:"图片",Media:"多媒体",Tables:"表格","File manager (elFinder)":"文件管理(elFinder)",Save:"保存",Copy:"复制",Cut:"剪切",Paste:"粘贴","Paste only text":"粘贴为纯文字","Paste formatted text":"粘贴为已格式化文字","Clean format":"清除格式","Undo last action":"取消上一个动作","Redo previous action":"重做上一个动作",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Superscript:"上标",Subscript:"下标","Align left":"靠左","Ailgn right":"靠右","Align center":"居中","Align full":"左右对齐","Font color":"文字颜色","Background color":"背景颜色",Indent:"增大缩进",Outdent:"减少缩进",Format:"格式","Font size":"字体大小",Font:"字体","Ordered list":"编号","Unordered list":"项目编号","Horizontal rule":"水平线",Blockquote:"引用","Block element (DIV)":"区块 (DIV)",Link:"链接","Delete link":"删除链接",Bookmark:"书签(锚点)",Flash:"Flash媒体",Image:"图片",Table:"表格","Delete table":"删除表格","Insert row before":"上方增加一行","Insert row after":"下方增加一行","Delete row":"删除列","Insert column before":"左边增加一列","Insert column after":"右边增加一列","Delete column":"删除列","Merge table cells":"合并表格单元","Split table cell":"分割表格单元","Toggle display document structure":"显示文件结构标记","Table cell properties":"表格单元属性","Table properties":"表格属性","Toggle full screen mode":"切换为全屏幕","Open file manager":"打开文件管理","Non breakable space":"空格",Smiley:"笑脸","Page break":"换页符","Stop element floating":"停止元素浮动属性",Warning:"警告",Properies:"属性",Popup:"弹出框",Advanced:"高级",Events:"事件",Width:"宽度",Height:"高度",Left:"靠左",Center:"居中",Right:"靠右",Border:"边框",Background:"背景","Css class":"CSS类别","Css style":"CSS样式",No:"不设置",Title:"标题","Script direction":"文字方向",Language:"语言",Charset:"字符编码","Not set":"不设定","Left to right":"从左至右","Right to left":"从右至左","In this window":"在本窗口","In new window (_blank)":"在新窗口 (_blank)","In new parent window (_parent)":"在父窗口 (_parent)","In top frame (_top)":"在顶层 (_top)",URL:"网址","Open in":"打开到","This operation is disabled in your browser on security reason. Use shortcut instead.":"基于安全考虑，此动作无法在浏览器中进行，请直接按 Ctrl+V 试试。","Heading 1":"标题 1","Heading 2":"标题 2","Heading 3":"标题 3","Heading 4":"标题 4","Heading 5":"标题 5","Heading 6":"标题 6",Paragraph:"段落",Address:"地址",Preformatted:"预格式化的","Small (8pt)":"极小 (8pt)","Small (10px)":"更小 (10px)","Small (12pt)":"小 (12pt)","Normal (14pt)":"中 (14pt)","Large (18pt)":"大 (18pt)","Large (24pt)":"更大 (24pt)","Large (36pt)":"极大 (36pt)","Bookmark name":"书签名称","Select bookmark":"选择书签","Link URL":"链接地址",Target:"目标","Open link in popup window":"在弹出窗口中打开","Window name":"窗口名称","Window size":"窗口尺寸","Window position":"窗口位置","Location bar":"地址栏","Menu bar":"菜单栏",Toolbar:"工具栏",Scrollbars:"滚动条","Status bar":"状态栏",Resizable:"可否调整尺寸",Depedent:"相关","Add return false":"附加 return false ","Target MIME type":"目标的MIME类型","Relationship page to target (rel)":"关联页到目标 (rel)","Relationship target to page (rev)":"关联目标到页 (rev)","Tab index":"Tab键顺序","Access key":"访问键",Size:"尺寸",Preview:"预览",Margins:"边界","Alt text":"提示文字","Image URL":"图片网址",Spacing:"表格间距 (Spacing)",Padding:"表格边距 (Padding)",Rows:"行",Columns:"列",Groups:"组",Cells:"单元格",Caption:"标题","Inner borders":"边框","Table cell type":"单元格类型",Data:"数据",Header:"标题",Justify:"对齐",Paddings:"边距","Apply to":"应用到","Current cell":"当前单元格","All cells in row":"本行所有单元格","All cells in column":"本列所有单元格","All cells in table":"本表所有单元格","About this software":"关于本软件","About elRTE":"关于elRTE",Version:"版本",Licence:"许可证"}}(jQuery),function(a){elRTE.prototype.i18Messages.zh_TW={_translator:"Tad &lt;tad0616@gmail.com&gt;<br>T.C. Chou &lt;tcchou@tcchou.org&gt;",_translation:"Traditional Chinese translation",Editor:"編輯",Source:"原始碼","Copy/Pase":"複製/貼上","Undo/Redo":"復原/重做","Text styles":"文字樣式",Colors:"顏色",Alignment:"對齊","Indent/Outdent":"縮排/凸排","Text format":"文字格式",Lists:"清單","Misc elements":"其他元件",Links:"連結",Images:"圖檔",Media:"多媒體",Tables:"表格","File manager (elFinder)":"檔案管理","About this software":"關於此軟體",Save:"儲存",Copy:"複製",Cut:"剪下",Paste:"貼上","Paste only text":"貼上純文字","Paste formatted text":"貼上格式化文字","Clean format":"清除格式","Undo last action":"復原最後一個動作","Redo previous action":"重做上一個動作",Bold:"粗體",Italic:"斜體",Underline:"底線",Strikethrough:"刪除線",Superscript:"上標",Subscript:"下標","Align left":"靠左","Ailgn right":"靠右","Align center":"置中","Align full":"左右對齊","Font color":"文字顏色","Background color":"背景顏色",Indent:"縮排",Outdent:"凸排",Format:"格式","Font size":"字型大小",Font:"字型","Ordered list":"編號","Unordered list":"項目符號","Horizontal rule":"水平線",Blockquote:"引用","Block element (DIV)":"區域元件 (DIV)",Link:"連結","Delete link":"移除連結",Bookmark:"書籤",Image:"插圖",Table:"表格","Delete table":"刪除表格","Insert row before":"上方新增一列","Insert row after":"下方新增一列","Delete row":"刪除列","Insert column before":"左邊新增一欄","Insert column after":"右邊新增一欄","Delete column":"刪除欄","Merge table cells":"合併儲存格","Split table cell":"分割儲存格","Toggle display document structure":"切換顯示文件結構","Table cell properties":"表格儲存格屬性","Table properties":"表格屬性","Toggle full screen mode":"切換為全螢幕","Open file manager":"開啟檔案管理","Non breakable space":"不斷行空白","Stop element floating":"停止元件浮動屬性",Warning:"警告",Properies:"屬性",Popup:"跳出框",Advanced:"進階",Events:"事件",Width:"寬度",Height:"高度",Left:"靠左",Center:"置中",Right:"靠右",Border:"邊框",Background:"背景","Css class":"CSS類別","Css style":"CSS樣式",No:"不設置",Title:"標題","Script direction":"語言方向",Language:"語言",Charset:"字元編碼","Not set":"不設定","Left to right":"左至右","Right to left":"右到左","In this window":"在此視窗","In new window (_blank)":"在新視窗 (_blank)","In new parent window (_parent)":"在父視窗 (_parent)","In top frame (_top)":"跳出框架 (_top)",URL:"網址","Open in":"開啟至","Open file manger":"開啟檔案管理員","This operation is disabled in your browser on security reason. Use shortcut instead.":"此動作被你的瀏覽器基於安全理由所禁止，請直接用快捷鍵。","Heading 1":"標題 1","Heading 2":"標題 2","Heading 3":"標題 3","Heading 4":"標題 4","Heading 5":"標題 5","Heading 6":"標題 6",Paragraph:"段落",Address:"位址",Preformatted:"固定格式","Small (8pt)":"極小 (8pt)","Small (10px)":"更小 (10px)","Small (12pt)":"小 (12pt)","Normal (14pt)":"中 (14pt)","Large (18pt)":"大 (18pt)","Large (24pt)":"更大 (24pt)","Large (36pt)":"極大 (36pt)","Bookmark name":"書籤名稱","Link URL":"連結位址",Target:"目標","Select bookmark":"選擇書籤","Open link in popup window":"在跳出視窗中開啟","Window name":"視窗名稱","Window size":"視窗尺寸","Window position":"視窗位置","Location bar":"位址列","Menu bar":"選單列",Toolbar:"工具列",Scrollbars:"捲軸","Status bar":"狀態列",Resizable:"可否調整尺寸",Depedent:"相關 (Netscape)","Add return false":"加入傳回false (return false)","Target MIME type":"目標物的MIME類型","Relationship page to target (rel)":"定義連結的起點文件與目標文件之間的關係 (rel)","Relationship target to page (rev)":"定義連結的起點文件與目標文件之間的反向關係 (rev)","Tab index":"定位索引","Access key":"快速鍵",Size:"尺寸",Preview:"預覽",Margins:"邊界","Alt text":"提示文字","Image URL":"圖檔網址",Spacing:"儲存格間距 (Spacing)",Padding:"儲存格內距 (Padding)",Rows:"列",Columns:"欄",Groups:"儲存格群組",Cells:"儲存格",Caption:"表格標題","Inner borders":"框線","Table cell type":"表格儲存格型態",Data:"資料",Header:"標題",Justify:"排整齊",Paddings:"內距","Apply to":"適用於","Current cell":"目前儲存格","All cells in row":"同列所有儲存格","All cells in column":"同欄所有儲存格","All cells in table":"表格所有儲存格","About elRTE":"關於 elRTE",Version:"版本",Licence:"許可證","elRTE is an open-source JavaScript based WYSIWYG HTML-editor.":"elRTE 是一個開放源碼 JavaScript 為基礎的所見即所得 HTML 編輯器。","Main goal of the editor - simplify work with text and formating (HTML) on sites, blogs, forums and other online services.":"此編輯器主要目標 - 簡化網站, 部落格, 論壇及許多線上服務在文字處理與編排 (HTML) 的工作。","You can use it in any commercial or non-commercial projects.":"你可用於任何商業或者非商業專案中。",Authors:"作者","Chief developer":"主力開發者","Developer, tech support":"開發者, 技術支援",Developer:"開發者","Interface designer":"介面設計師","Spanish localization":"西班牙翻譯","Czech localization":"捷克翻譯","Japanese localization":"日文翻譯","Latvian localization":"拉脫維亞翻譯","German localization":"德文翻譯","Ukranian localization":"烏克蘭翻譯","Persian (farsi) localization":"波斯翻譯","Arabic localization":"阿拉伯翻譯","RTL support":"RTL 支援","French localization":"法文翻譯","Dutch localization":"荷蘭翻譯","Hungarian localization":"匈牙利翻譯","Polish localization":"波蘭翻譯","Italian localization":"義大利翻譯","Traditional Chinese localization":"中文翻譯","For more information about this software visit the":"更多關於此軟體的資訊請拜訪","elRTE website":"elRTE 網站"}}(jQuery),function(a,b){function c(b,c){var e=b.nodeName.toLowerCase();return"area"===e?(c=b.parentNode,e=c.name,!b.href||!e||c.nodeName.toLowerCase()!=="map"?!1:(b=a("img[usemap=#"+e+"]")[0],!!b&&d(b))):(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{},a.ui.version||(a.extend(a.ui,{version:"1.8.13",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;return b=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0),/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){c=a(this[0]);for(var d;c.length&&c[0]!==document;){d=c.css("position");if(d==="absolute"||d==="relative"||d==="fixed"){d=parseInt(c.css("zIndex"),10);if(!isNaN(d)&&d!==0)return d}c=c.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(c,d){function e(b,c,d,e){return a.each(f,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),e&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)}),c}var f=d==="Width"?["Left","Right"]:["Top","Bottom"],g=d.toLowerCase(),h={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?h["inner"+d].call(this):this.each(function(){a(this).css(g,e(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return typeof b!="number"?h["outer"+d].call(this,b):this.each(function(){a(this).css(g,e(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.offsetHeight===100,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,d){b=a.ui[b].prototype;for(var e in d)b.plugins[e]=b.plugins[e]||[],b.plugins[e].push([c,d[e]])},call:function(a,b,c){if((b=a.plugins[b])&&a.element[0].parentNode)for(var d=0;d<b.length;d++)a.options[b[d][0]]&&b[d][1].apply(a.element,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")==="hidden")return!1;c=c&&c==="left"?"scrollLeft":"scrollTop";var d=!1;return b[c]>0?!0:(b[c]=1,d=b[c]>0,b[c]=0,d)},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}}))}(jQuery),function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)a(e).triggerHandler("remove");c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){return c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")}),d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1],f=e+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][f]=function(c){return!!a.data(c,b)},a[e]=a[e]||{},a[e][b]=function(a,b){arguments.length&&this._createWidget(a,b)},c=new c,c.options=a.extend(!0,{},c.options),a[e][b].prototype=a.extend(!0,c,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},d),a.widget.bridge(b,a[e][b])},a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e=="string",g=Array.prototype.slice.call(arguments,1),h=this;return e=!f&&g.length?a.extend.apply(null,[!0,e].concat(g)):e,f&&e.charAt(0)==="_"?h:(f?this.each(function(){var d=a.data(this,c),f=d&&a.isFunction(d[e])?d[e].apply(d,g):d;if(f!==d&&f!==b)return h=f,!1}):this.each(function(){var b=a.data(this,c);b?b.option(e||{})._init():a.data(this,c,new d(e,this))}),h)}},a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)},a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(b,c){a.data(c,this.widgetName,this),this.element=a(c),this.options=a.extend(!0,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(c,d){var e=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c=="string"){if(d===b)return this.options[c];e={},e[c]=d}return this._setOptions(e),this},_setOptions:function(b){var c=this;return a.each(b,function(a,b){c._setOption(a,b)}),this},_setOption:function(a,b){return this.options[a]=b,a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",b),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,d){var e=this.options[b];c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),d=d||{};if(c.originalEvent){b=a.event.props.length;for(var f;b;)f=a.event.props[--b],c[f]=c.originalEvent[f]}return this.element.trigger(c,d),!(a.isFunction(e)&&e.call(this.element[0],c,d)===!1||c.isDefaultPrevented())}}}(jQuery),function(a){var b=!1;a(document).mousedown(function(){b=!1}),a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent"))return a.removeData(c.target,b.widgetName+".preventClickEvent"),c.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(c){if(!b){this._mouseStarted&&this._mouseUp(c),this._mouseDownEvent=c;var e=this,f=c.which==1,g=typeof this.options.cancel=="string"?a(c.target).parents().add(c.target).filter(this.options.cancel).length:!1;if(!f||g||!this._mouseCapture(c))return!0;this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay));if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)){this._mouseStarted=this._mouseStart(c)!==!1;if(!this._mouseStarted)return c.preventDefault(),!0}return!0===a.data(c.target,this.widgetName+".preventClickEvent")&&a.removeData(c.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return e._mouseMove(a)},this._mouseUpDelegate=function(a){return e._mouseUp(a)},a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),c.preventDefault(),b=!0}},_mouseMove:function(b){return!a.browser.msie||document.documentMode>=9||!!b.button?this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&((this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1)?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted):this._mouseUp(b)},_mouseUp:function(b){return a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(a){a.ui=a.ui||{};var b=/left|center|right/,c=/top|center|bottom/,d=a.fn.position,e=a.fn.offset;a.fn.position=function(e){if(!e||!e.of)return d.apply(this,arguments);e=a.extend({},e);var f=a(e.of),g=f[0],h=(e.collision||"flip").split(" "),i=e.offset?e.offset.split(" "):[0,0],j,k,l;return g.nodeType===9?(j=f.width(),k=f.height(),l={top:0,left:0}):g.setTimeout?(j=f.width(),k=f.height(),l={top:f.scrollTop(),left:f.scrollLeft()}):g.preventDefault?(e.at="left top",j=k=0,l={top:e.of.pageY,left:e.of.pageX}):(j=f.outerWidth(),k=f.outerHeight(),l=f.offset()),a.each(["my","at"],function(){var a=(e[this]||"").split(" ");a.length===1&&(a=b.test(a[0])?a.concat(["center"]):c.test(a[0])?["center"].concat(a):["center","center"]),a[0]=b.test(a[0])?a[0]:"center",a[1]=c.test(a[1])?a[1]:"center",e[this]=a}),h.length===1&&(h[1]=h[0]),i[0]=parseInt(i[0],10)||0,i.length===1&&(i[1]=i[0]),i[1]=parseInt(i[1],10)||0,e.at[0]==="right"?l.left+=j:e.at[0]==="center"&&(l.left+=j/2),e.at[1]==="bottom"?l.top+=k:e.at[1]==="center"&&(l.top+=k/2),l.left+=i[0],l.top+=i[1],this.each(function(){var b=a(this),c=b.outerWidth(),d=b.outerHeight(),f=parseInt(a.curCSS(this,"marginLeft",!0))||0,g=parseInt(a.curCSS(this,"marginTop",!0))||0,m=c+f+(parseInt(a.curCSS(this,"marginRight",!0))||0),n=d+g+(parseInt(a.curCSS(this,"marginBottom",!0))||0),o=a.extend({},l),p;e.my[0]==="right"?o.left-=c:e.my[0]==="center"&&(o.left-=c/2),e.my[1]==="bottom"?o.top-=d:e.my[1]==="center"&&(o.top-=d/2),o.left=Math.round(o.left),o.top=Math.round(o.top),p={left:o.left-f,top:o.top-g},a.each(["left","top"],function(b,f){a.ui.position[h[b]]&&a.ui.position[h[b]][f](o,{targetWidth:j,targetHeight:k,elemWidth:c,elemHeight:d,collisionPosition:p,collisionWidth:m,collisionHeight:n,offset:i,my:e.my,at:e.at})}),a.fn.bgiframe&&b.bgiframe(),b.offset(a.extend(o,{using:e.using}))})},a.ui.position={fit:{left:function(b,c){var d=a(window);d=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft(),b.left=d>0?b.left-d:Math.max(b.left-c.collisionPosition.left,b.left)},top:function(b,c){var d=a(window);d=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop(),b.top=d>0?b.top-d:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]!=="center"){var d=a(window);d=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft();var e=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,f=c.at[0]==="left"?c.targetWidth:-c.targetWidth,g=-2*c.offset[0];b.left+=c.collisionPosition.left<0?e+f+g:d>0?e+f+g:0}},top:function(b,c){if(c.at[1]!=="center"){var d=a(window);d=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop();var e=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,f=c.at[1]==="top"?c.targetHeight:-c.targetHeight,g=-2*c.offset[1];b.top+=c.collisionPosition.top<0?e+f+g:d>0?e+f+g:0}}}},a.offset.setOffset||(a.offset.setOffset=function(b,c){/static/.test(a.curCSS(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseInt(a.curCSS(b,"top",!0),10)||0,g=parseInt(a.curCSS(b,"left",!0),10)||0;e={top:c.top-e.top+f,left:c.left-e.left+g},"using"in c?c.using.call(b,e):d.css(e)},a.fn.offset=function(b){var c=this[0];return!c||!c.ownerDocument?null:b?this.each(function(){a.offset.setOffset(this,b)}):e.call(this)})}(jQuery),function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(b){var c=this.options;return this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")?!1:(this.handle=this._getHandle(b),this.handle?(a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),c.containment&&this._setContainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.helper.addClass("ui-draggable-dragging"),this
._mouseDrag(b,!0),!0)},_mouseDrag:function(b,c){this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute");if(!c){c=this._uiHash();if(this._trigger("drag",b,c)===!1)return this._mouseUp({}),!1;this.position=c.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";return a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(c=a.ui.ddmanager.drop(this,b)),this.dropped&&(c=this.dropped,this.dropped=!1);if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return!1;if(this.options.revert=="invalid"&&!c||this.options.revert=="valid"&&c||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,c)){var e=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){e._trigger("stop",b)!==!1&&e._clear()})}else this._trigger("stop",b)!==!1&&this._clear();return!1},_mouseUp:function(b){return this.options.iframeFix===!0&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?!0:!1;return a(this.options.handle,this.element).find("*").andSelf().each(function(){this==b.target&&(c=!0)}),c},_createHelper:function(b){var c=this.options;return b=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):c.helper=="clone"?this.element.clone().removeAttr("id"):this.element,b.parents("body").length||b.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo),b[0]!=this.element[0]&&!/(fixed|absolute)/.test(b.css("position"))&&b.css("position","absolute"),b},_adjustOffsetFromHelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[(b.containment=="document"?0:a(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(b.containment=="document"?0:a(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(b.containment=="document"?0:a(window).scrollLeft())+a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b.containment=="document"?0:a(window).scrollTop())+(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)&&b.containment.constructor!=Array){b=a(b.containment);var c=b[0];if(c){b.offset();var e=a(c).css("overflow")!="hidden";this.containment=[(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0),(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0),(e?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=b}}else b.containment.constructor==Array&&(this.containment=b.containment)},_convertPositionTo:function(b,c){c||(c=this.position),b=b=="absolute"?1:-1;var e=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!a.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:e.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*b)}},_generatePosition:function(b){var c=this.options,e=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!a.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName),g=b.pageX,h=b.pageY;if(this.originalPosition){var i;this.containment&&(this.relative_container?(i=this.relative_container.offset(),i=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):i=this.containment,b.pageX-this.offset.click.left<i[0]&&(g=i[0]+this.offset.click.left),b.pageY-this.offset.click.top<i[1]&&(h=i[1]+this.offset.click.top),b.pageX-this.offset.click.left>i[2]&&(g=i[2]+this.offset.click.left),b.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),c.grid&&(h=this.originalPageY+Math.round((h-this.originalPageY)/c.grid[1])*c.grid[1],h=i?h-this.offset.click.top<i[1]||h-this.offset.click.top>i[3]?h-this.offset.click.top<i[1]?h+c.grid[1]:h-c.grid[1]:h:h,g=this.originalPageX+Math.round((g-this.originalPageX)/c.grid[0])*c.grid[0],g=i?g-this.offset.click.left<i[0]||g-this.offset.click.left>i[2]?g-this.offset.click.left<i[0]?g+c.grid[0]:g-c.grid[0]:g:g)}return{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:e.scrollTop()),left:g-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(b,c,e){return e=e||this._uiHash(),a.ui.plugin.call(this,b,[c,e]),b=="drag"&&(this.positionAbs=this._convertPositionTo("absolute")),a.Widget.prototype._trigger.call(this,b,c,e)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),a.extend(a.ui.draggable,{version:"1.8.13"}),a.ui.plugin.add("draggable","connectToSortable",{start:function(b,c){var e=a(this).data("draggable"),f=e.options,g=a.extend({},c,{item:e.element});e.sortables=[],a(f.connectToSortable).each(function(){var c=a.data(this,"sortable");c&&!c.options.disabled&&(e.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",b,g))})},stop:function(b,c){var e=a(this).data("draggable"),f=a.extend({},c,{item:e.element});a.each(e.sortables,function(){this.instance.isOver?(this.instance.isOver=0,e.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(b),this.instance.options.helper=this.instance.options._helper,e.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",b,f))})},drag:function(b,c){var e=a(this).data("draggable"),f=this;a.each(e.sortables,function(){this.instance.positionAbs=e.positionAbs,this.instance.helperProportions=e.helperProportions,this.instance.offset.click=e.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(f).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},b.target=this.instance.currentItem[0],this.instance._mouseCapture(b,!0),this.instance._mouseStart(b,!0,!0),this.instance.offset.click.top=e.offset.click.top,this.instance.offset.click.left=e.offset.click.left,this.instance.offset.parent.left-=e.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=e.offset.parent.top-this.instance.offset.parent.top,e._trigger("toSortable",b),e.dropped=this.instance.element,e.currentItem=e.element,this.instance.fromOutside=e),this.instance.currentItem&&this.instance._mouseDrag(b)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",b,this.instance._uiHash(this.instance)),this.instance._mouseStop(b,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),e._trigger("fromSortable",b),e.dropped=!1)})}}),a.ui.plugin.add("draggable","cursor",{start:function(){var b=a("body"),c=a(this).data("draggable").options;b.css("cursor")&&(c._cursor=b.css("cursor")),b.css("cursor",c.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}}),a.ui.plugin.add("draggable","opacity",{start:function(b,c){b=a(c.helper),c=a(this).data("draggable").options,b.css("opacity")&&(c._opacity=b.css("opacity")),b.css("opacity",c.opacity)},stop:function(b,c){b=a(this).data("draggable").options,b._opacity&&a(c.helper).css("opacity",b._opacity)}}),a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"&&(b.overflowOffset=b.scrollParent.offset())},drag:function(b){var c=a(this).data("draggable"),e=c.options,f=!1;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!e.axis||e.axis!="x")c.overflowOffset.top+c.scrollParent[0].offsetHeight-b.pageY<e.scrollSensitivity?c.scrollParent[0].scrollTop=f=c.scrollParent[0].scrollTop+e.scrollSpeed:b.pageY-c.overflowOffset.top<e.scrollSensitivity&&(c.scrollParent[0].scrollTop=f=c.scrollParent[0].scrollTop-e.scrollSpeed);if(!e.axis||e.axis!="y")c.overflowOffset.left+c.scrollParent[0].offsetWidth-b.pageX<e.scrollSensitivity?c.scrollParent[0].scrollLeft=f=c.scrollParent[0].scrollLeft+e.scrollSpeed:b.pageX-c.overflowOffset.left<e.scrollSensitivity&&(c.scrollParent[0].scrollLeft=f=c.scrollParent[0].scrollLeft-e.scrollSpeed)}else{if(!e.axis||e.axis!="x")b.pageY-a(document).scrollTop()<e.scrollSensitivity?f=a(document).scrollTop(a(document).scrollTop()-e.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<e.scrollSensitivity&&(f=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed));if(!e.axis||e.axis!="y")b.pageX-a(document).scrollLeft()<e.scrollSensitivity?f=a(document).scrollLeft(a(document).scrollLeft()-e.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<e.scrollSensitivity&&(f=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed))}f!==!1&&a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(c,b)}}),a.ui.plugin.add("draggable","snap",{start:function(){var b=a(this).data("draggable"),c=b.options;b.snapElements=[],a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var c=a(this),e=c.offset();this!=b.element[0]&&b.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:e.top,left:e.left})})},drag:function(b,c){for(var e=a(this).data("draggable"),f=e.options,g=f.snapTolerance,h=c.offset.left,i=h+e.helperProportions.width,j=c.offset.top,k=j+e.helperProportions.height,l=e.snapElements.length-1;l>=0;l--){var m=e.snapElements[l].left,n=m+e.snapElements[l].width,o=e.snapElements[l].top,p=o+e.snapElements[l].height;if(m-g<h&&h<n+g&&o-g<j&&j<p+g||m-g<h&&h<n+g&&o-g<k&&k<p+g||m-g<i&&i<n+g&&o-g<j&&j<p+g||m-g<i&&i<n+g&&o-g<k&&k<p+g){if(f.snapMode!="inner"){var q=Math.abs(o-k)<=g,r=Math.abs(p-j)<=g,s=Math.abs(m-i)<=g,t=Math.abs(n-h)<=g;q&&(c.position.top=e._convertPositionTo("relative",{top:o-e.helperProportions.height,left:0}).top-e.margins.top),r&&(c.position.top=e._convertPositionTo("relative",{top:p,left:0}).top-e.margins.top),s&&(c.position.left=e._convertPositionTo("relative",{top:0,left:m-e.helperProportions.width}).left-e.margins.left),t&&(c.position.left=e._convertPositionTo("relative",{top:0,left:n}).left-e.margins.left)}var u=q||r||s||t;f.snapMode!="outer"&&(q=Math.abs(o-j)<=g,r=Math.abs(p-k)<=g,s=Math.abs(m-h)<=g,t=Math.abs(n-i)<=g,q&&(c.position.top=e._convertPositionTo("relative",{top:o,left:0}).top-e.margins.top),r&&(c.position.top=e._convertPositionTo("relative",{top:p-e.helperProportions.height,left:0}).top-e.margins.top),s&&(c.position.left=e._convertPositionTo("relative",{top:0,left:m}).left-e.margins.left),t&&(c.position.left=e._convertPositionTo("relative",{top:0,left:n-e.helperProportions.width}).left-e.margins.left)),!e.snapElements[l].snapping&&(q||r||s||t||u)&&e.options.snap.snap&&e.options.snap.snap.call(e.element,b,a.extend(e._uiHash(),{snapItem:e.snapElements[l].item})),e.snapElements[l].snapping=q||r||s||t||u}else e.snapElements[l].snapping&&e.options.snap.release&&e.options.snap.release.call(e.element,b,a.extend(e._uiHash(),{snapItem:e.snapElements[l].item})),e.snapElements[l].snapping=!1}}}),a.ui.plugin.add("draggable","stack",{start:function(){var b=a(this).data("draggable").options;b=a.makeArray(a(b.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});if(b.length){var c=parseInt(b[0].style.zIndex)||0;a(b).each(function(a){this.style.zIndex=c+a}),this[0].style.zIndex=c+b.length}}}),a.ui.plugin.add("draggable","zIndex",{start:function(b,c){b=a(c.helper),c=a(this).data("draggable").options,b.css("zIndex")&&(c._zIndex=b.css("zIndex")),b.css("zIndex",c.zIndex)},stop:function(b,c){b=a(this).data("draggable").options,b._zIndex&&a(c.helper).css("zIndex",b._zIndex)}})}(jQuery),function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect"},_create:function(){var b=this.options,c=b.accept;this.isover=0,this.isout=1,this.accept=a.isFunction(c)?c:function(a){return a.is(c)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},a.ui.ddmanager.droppables[b.scope]=a.ui.ddmanager.droppables[b.scope]||[],a.ui.ddmanager.droppables[b.scope].push(this),b.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var b=a.ui.ddmanager.droppables[this.options.scope],c=0;c<b.length;c++)b[c]==this&&b.splice(c,1);return this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable"),this},_setOption:function(b,c){b=="accept"&&(this.accept=a.isFunction(c)?c:function(a){return a.is(c)}),a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),c&&this._trigger("activate",b,this.ui(c))},_deactivate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),c&&this._trigger("deactivate",b,this.ui(c))},_over:function(b){var c=a.ui.ddmanager.current;!!c&&(c.currentItem||c.element)[0]!=this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",b,this.ui(c)))},_out:function(b){var c=a.ui.ddmanager.current;!!c&&(c.currentItem||c.element)[0]!=this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",b,this.ui(c)))},_drop:function(b,c){var e=c||a.ui.ddmanager.current;if(!e||(e.currentItem||e.element)[0]==this.element[0])return!1;var f=!1;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope==e.options.scope&&b.accept.call(b.element[0],e.currentItem||e.element)&&a.ui.intersect(e,a.extend(b,{offset:b.element.offset()}),b.options.tolerance))return f=!0,!1}),f?!1:this.accept.call(this.element[0],e.currentItem||e.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",b,this.ui(e)),this.element):!1},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}}),a.extend(a.ui.droppable,{version:"1.8.13"}),a.ui.intersect=function(b,c,e){if(!c.offset)return!1;var f=(b.positionAbs||b.position.absolute).left,g=f+b.helperProportions.width,h=(b.positionAbs||b.position.absolute).top,i=h+b.helperProportions.height,j=c.offset.left,k=j+c.proportions.width,l=c.offset.top,m=l+c.proportions.height;switch(e){case"fit":return j<=f&&g<=k&&l<=h&&i<=m;case"intersect":return j<f+b.helperProportions.width/2&&g-b.helperProportions.width/2<k&&l<h+b.helperProportions.height/2&&i-b.helperProportions.height/2<m;case"pointer":return a.ui.isOver((b.positionAbs||b.position.absolute).top+(b.clickOffset||b.offset.click).top,(b.positionAbs||b.position.absolute).left+(b.clickOffset||b.offset.click).left,l,j,c.proportions.height,c.proportions.width);case"touch":return(h>=l&&h<=m||i>=l&&i<=m||h<l&&i>m)&&(f>=j&&f<=k||g>=j&&g<=k||f<j&&g>k);default:return!1}},a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(b,c){var e=a.ui.ddmanager.droppables[b.options.scope]||[],f=c?c.type:null,g=(b.currentItem||b.element).find(":data(droppable)").andSelf(),h=0;b:for(;h<e.length;h++)if(!(e[h].options.disabled||b&&!e[h].accept.call(e[h].element[0],b.currentItem||b.element))){for(var i=0;i<g.length;i++)if(g[i]==e[h].element[0]){e[h].proportions.height=0;continue b}e[h].visible=e[h].element.css("display")!="none",e[h].visible&&(f=="mousedown"&&e[h]._activate.call(e[h],c),e[h].offset=e[h].element.offset(),e[h].proportions={width:e[h].element[0].offsetWidth,height:e[h].element[0].offsetHeight})}},drop:function(b,c){var e=!1;return a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)&&(e=e||this._drop.call(this,c)),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,c)))}),e},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c),a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var e=a.ui.intersect(b,this,this.options.tolerance);if(e=!e&&this.isover==1?"isout":e&&this.isover==0?"isover":null){var f;if(this.options.greedy){var g=this.element.parents(":data(droppable):eq(0)");g.length&&(f=a.data(g[0],"droppable"),f.greedyChild=e=="isover"?1:0)}f&&e=="isover"&&(f.isover=0,f.isout=1,f._out.call(f,c)),this[e]=1,this[e=="isout"?"isover":"isout"]=0,this[e=="isover"?"_over":"_out"].call(this,c),f&&e=="isout"&&(f.isout=0,f.isover=1,f._over.call(f,c))}}})}}}(jQuery),function(a){a.widget("ui.resizable",a.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1e3},_create:function(){var b=this,c=this.options;this.element.addClass("ui-resizable"),a.extend(this,{_aspectRatio:!!c.aspectRatio,aspectRatio:c.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:c.helper||c.ghost||c.animate?c.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(/relative/.test(this.element.css("position"))&&a.browser.opera&&this.element.css({position:"relative",top:"auto",left:"auto"}),this.element.wrap(a('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("resizable",this.element.data("resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=c.handles||(a(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se");if(this.handles.constructor==String){this.handles=="all"&&(this.handles="n,e,s,w,se,sw,ne,nw");var d=this.handles.split(",");this.handles={};for(var f=0;f<d.length;f++){var g=a.trim(d[f]),h=a('<div class="ui-resizable-handle '+("ui-resizable-"+g)+'"></div>');/sw|se|ne|nw/.test(g)&&h.css({zIndex:++c.zIndex}),"se"==g&&h.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[g]=".ui-resizable-"+g,this.element.append(h)}}this._renderAxis=function(b){b=b||this.element;for(var c in this.handles){this.handles[c].constructor==String&&(this.handles[c]=a(this.handles[c],this.element).show());if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var d=a(this.handles[c],this.element),f=0;f=/sw|ne|nw|se|n|s/.test(c)?d.outerHeight():d.outerWidth(),d=["padding",/ne|nw|n/.test(c)?"Top":/se|sw|s/.test(c)?"Bottom":/^e$/.test(c)?"Right":"Left"].join(""),b.css(d,f),this._proportionallyResize()}a(this.handles[c])}},this._renderAxis(this.element),this._handles=a(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){if(!b.resizing){if(this.className)var a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=a&&a[1]?a[1]:"se"}}),c.autoHide&&(this._handles.hide(),a(this.element).addClass("ui-resizable-autohide").hover(function(){c.disabled||(a(this).removeClass("ui-resizable-autohide"),b._handles.show())},function(){c.disabled||b.resizing||(a(this).addClass("ui-resizable-autohide"),b._handles.hide())})),this._mouseInit()},destroy:function(){this._mouseDestroy();var b=function(b){a(b).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){b(this.element);var c=this.element;c.after(this.originalElement.css({position:c.css("position"),width:c.outerWidth(),height:c.outerHeight(),top:c.css("top"),left:c.css("left")})).remove()}return this.originalElement.css("resize",this.originalResizeStyle),b(this.originalElement),this},_mouseCapture:function(b){var c=!1;for(var d in this.handles)a(this.handles[d])[0]==b.target&&(c=!0);return!this.options.disabled&&c},_mouseStart:function(c){var d=this.options,f=this.element.position(),g=this.element;this.resizing=!0,this.documentScroll={top:a(document).scrollTop(),left:a(document).scrollLeft()},(g.is(".ui-draggable")||/absolute/.test(g.css("position")))&&g.css({position:"absolute",top:f.top,left:f.left}),a.browser.opera&&/relative/.test(g.css("position"))&&g.css({position:"relative",top:"auto",left:"auto"}),this._renderProxy(),f=b(this.helper.css("left"));var h=b(this.helper.css("top"));return d.containment&&(f+=a(d.containment).scrollLeft()||0,h+=a(d.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:f,top:h},this.size=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()},this.originalSize=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()},this.originalPosition={left:f,top:h},this.sizeDiff={width:g.outerWidth()-g.width(),height:g.outerHeight()-g.height()},this.originalMousePosition={left:c.pageX,top:c.pageY},this.aspectRatio=typeof d.aspectRatio=="number"?d.aspectRatio:this.originalSize.width/this.originalSize.height||1,d=a(".ui-resizable-"+this.axis).css("cursor"),a("body").css("cursor",d=="auto"?this.axis+"-resize":d),g.addClass("ui-resizable-resizing"),this._propagate("start",c),!0},_mouseDrag:function(a){var b=this.helper,c=this.originalMousePosition,d=this._change[this.axis];if(!d)return!1;c=d.apply(this,[a,a.pageX-c.left||0,a.pageY-c.top||0]);if(this._aspectRatio||a.shiftKey)c=this._updateRatio(c,a);return c=this._respectSize(c,a),this._propagate("resize",a),b.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"}),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),this._updateCache(c),this._trigger("resize",a,this.ui()),!1},_mouseStop:function(b){this.resizing=!1;var c=this.options,d=this;if(this._helper){var f=this._proportionallyResizeElements,g=f.length&&/textarea/i.test(f[0].nodeName);f=g&&a.ui.hasScroll(f[0],"left")?0:d.sizeDiff.height,g=g?0:d.sizeDiff.width,g={width:d.helper.width()-g,height:d.helper.height()-f},f=parseInt(d.element.css("left"),10)+(d.position.left-d.originalPosition.left)||null;var h=parseInt(d.element.css("top"),10)+(d.position.top-d.originalPosition.top)||null;c.animate||this.element.css(a.extend(g,{top:h,left:f})),d.helper.height(d.size.height),d.helper.width(d.size.width),this._helper&&!c.animate&&this._proportionallyResize()}return a("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",b),this._helper&&this.helper.remove(),!1},_updateCache:function(a){this.offset=this.helper.offset(),c(a.left)&&(this.position.left=a.left),c(a.top)&&(this.position.top=a.top),c(a.height)&&(this.size.height=a.height),c(a.width)&&(this.size.width=a.width)},_updateRatio:function(a){var b=this.position,c=this.size,d=this.axis;return a.height?a.width=c.height*this.aspectRatio:a.width&&(a.height=c.width/this.aspectRatio),d=="sw"&&(a.left=b.left+(c.width-a.width),a.top=null),d=="nw"&&(a.top=b.top+(c.height-a.height),a.left=b.left+(c.width-a.width)),a},_respectSize:function(a){var b=this.options,d=this.axis,e=c(a.width)&&b.maxWidth&&b.maxWidth<a.width,f=c(a.height)&&b.maxHeight&&b.maxHeight<a.height,g=c(a.width)&&b.minWidth&&b.minWidth>a.width,h=c(a.height)&&b.minHeight&&b.minHeight>a.height;g&&(a.width=b.minWidth),h&&(a.height=b.minHeight),e&&(a.width=b.maxWidth),f&&(a.height=b.maxHeight);var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,k=/sw|nw|w/.test(d);return d=/nw|ne|n/.test(d),g&&k&&(a.left=i-b.minWidth),e&&k&&(a.left=i-b.maxWidth),h&&d&&(a.top=j-b.minHeight),f&&d&&(a.top=j-b.maxHeight),(b=!a.width&&!a.height)&&!a.left&&a.top?a.top=null:b&&!a.top&&a.left&&(a.left=null),a},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,c=0;c<this._proportionallyResizeElements.length;c++){var d=this._proportionallyResizeElements[c];if(!this.borderDif){var f=[d.css("borderTopWidth"),d.css("borderRightWidth"),d.css("borderBottomWidth"),d.css("borderLeftWidth")],g=[d.css("paddingTop"),d.css("paddingRight"),d.css("paddingBottom"),d.css("paddingLeft")];this.borderDif=a.map(f,function(a,b){return a=parseInt(a,10)||0,b=parseInt(g[b],10)||0,a+b})}a.browser.msie&&(a(b).is(":hidden")||a(b).parents(":hidden").length)||d.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:function(){var b=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||a('<div style="overflow:hidden;"></div>');var c=a.browser.msie&&a.browser.version<7,d=c?1:0;c=c?2:-1,this.helper.addClass(this._helper).css({width:this.element.outerWidth()+c,height:this.element.outerHeight()+c,position:"absolute",left:this.elementOffset.left-d+"px",top:this.elementOffset.top-d+"px",zIndex:++b.zIndex}),this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(a,b){return{width:this.originalSize.width+b}},w:function(a,b){return{left:this.originalPosition.left+b,width:this.originalSize.width-b}},n:function(a,b,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(a,b,c){return{height:this.originalSize.height+c}},se:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},sw:function(b,c,d){return a.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,c,d]))},ne:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,c,d]))},nw:function(b,c,d){return a.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,c,d]))}},_propagate:function(b,c){a.ui.plugin.call(this,b,[c,this.ui()]),b!="resize"&&this._trigger(b,c,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),a.extend(a.ui.resizable,{version:"1.8.13"}),a.ui.plugin.add("resizable","alsoResize",{start:function(){var b=a(this).data("resizable").options,c=function(b){a(b).each(function(){var b=a(this);b.data("resizable-alsoresize",{width:parseInt(b.width(),10),height:parseInt(b.height(),10),left:parseInt(b.css("left"),10),top:parseInt(b.css("top"),10),position:b.css("position")})})};typeof b.alsoResize=="object"&&!b.alsoResize.parentNode?b.alsoResize.length?(b.alsoResize=b.alsoResize[0],c(b.alsoResize)):a.each(b.alsoResize,function(a){c(a)}):c(b.alsoResize)},resize:function(b,c){var d=a(this).data("resizable");b=d.options;var f=d.originalSize,g=d.originalPosition,h={height:d.size.height-f.height||0,width:d.size.width-f.width||0,top:d.position.top-g.top||0,left:d.position.left-g.left||0},i=function(b,f){a(b).each(function(){var b=a(this),g=a(this).data("resizable-alsoresize"),i={},k=f&&f.length?f:b.parents(c.originalElement[0]).length?["width","height"]:["width","height","top","left"];a.each(k,function(a,b){(a=(g[b]||0)+(h[b]||0))&&a>=0&&(i[b]=a||null)}),a.browser.opera&&/relative/.test(b.css("position"))&&(d._revertToRelativePosition=!0,b.css({position:"absolute",top:"auto",left:"auto"})),b.css(i)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType?a.each(b.alsoResize,function(a,b){i(a,b)}):i(b.alsoResize)},stop:function(){var b=
a(this).data("resizable"),c=b.options,d=function(b){a(b).each(function(){var b=a(this);b.css({position:b.data("resizable-alsoresize").position})})};b._revertToRelativePosition&&(b._revertToRelativePosition=!1,typeof c.alsoResize=="object"&&!c.alsoResize.nodeType?a.each(c.alsoResize,function(a){d(a)}):d(c.alsoResize)),a(this).removeData("resizable-alsoresize")}}),a.ui.plugin.add("resizable","animate",{stop:function(b){var c=a(this).data("resizable"),d=c.options,f=c._proportionallyResizeElements,g=f.length&&/textarea/i.test(f[0].nodeName),h=g&&a.ui.hasScroll(f[0],"left")?0:c.sizeDiff.height;g={width:c.size.width-(g?0:c.sizeDiff.width),height:c.size.height-h},h=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var i=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;c.element.animate(a.extend(g,i&&h?{top:i,left:h}:{}),{duration:d.animateDuration,easing:d.animateEasing,step:function(){var d={width:parseInt(c.element.css("width"),10),height:parseInt(c.element.css("height"),10),top:parseInt(c.element.css("top"),10),left:parseInt(c.element.css("left"),10)};f&&f.length&&a(f[0]).css({width:d.width,height:d.height}),c._updateCache(d),c._propagate("resize",b)}})}}),a.ui.plugin.add("resizable","containment",{start:function(){var c=a(this).data("resizable"),d=c.element,f=c.options.containment;if(d=f instanceof a?f.get(0):/parent/.test(f)?d.parent().get(0):f){c.containerElement=a(d);if(/document/.test(f)||f==document)c.containerOffset={left:0,top:0},c.containerPosition={left:0,top:0},c.parentData={element:a(document),left:0,top:0,width:a(document).width(),height:a(document).height()||document.body.parentNode.scrollHeight};else{var g=a(d),h=[];a(["Top","Right","Left","Bottom"]).each(function(a,c){h[a]=b(g.css("padding"+c))}),c.containerOffset=g.offset(),c.containerPosition=g.position(),c.containerSize={height:g.innerHeight()-h[3],width:g.innerWidth()-h[1]},f=c.containerOffset;var i=c.containerSize.height,j=c.containerSize.width;j=a.ui.hasScroll(d,"left")?d.scrollWidth:j,i=a.ui.hasScroll(d)?d.scrollHeight:i,c.parentData={element:d,left:f.left,top:f.top,width:j,height:i}}}},resize:function(b){var c=a(this).data("resizable"),d=c.options,f=c.containerOffset,g=c.position;b=c._aspectRatio||b.shiftKey;var h={top:0,left:0},i=c.containerElement;i[0]!=document&&/static/.test(i.css("position"))&&(h=f),g.left<(c._helper?f.left:0)&&(c.size.width+=c._helper?c.position.left-f.left:c.position.left-h.left,b&&(c.size.height=c.size.width/d.aspectRatio),c.position.left=d.helper?f.left:0),g.top<(c._helper?f.top:0)&&(c.size.height+=c._helper?c.position.top-f.top:c.position.top,b&&(c.size.width=c.size.height*d.aspectRatio),c.position.top=c._helper?f.top:0),c.offset.left=c.parentData.left+c.position.left,c.offset.top=c.parentData.top+c.position.top,d=Math.abs((c._helper?c.offset.left-h.left:c.offset.left-h.left)+c.sizeDiff.width),f=Math.abs((c._helper?c.offset.top-h.top:c.offset.top-f.top)+c.sizeDiff.height),g=c.containerElement.get(0)==c.element.parent().get(0),h=/relative|absolute/.test(c.containerElement.css("position")),g&&h&&(d-=c.parentData.left),d+c.size.width>=c.parentData.width&&(c.size.width=c.parentData.width-d,b&&(c.size.height=c.size.width/c.aspectRatio)),f+c.size.height>=c.parentData.height&&(c.size.height=c.parentData.height-f,b&&(c.size.width=c.size.height*c.aspectRatio))},stop:function(){var b=a(this).data("resizable"),c=b.options,d=b.containerOffset,f=b.containerPosition,g=b.containerElement,h=a(b.helper),i=h.offset(),j=h.outerWidth()-b.sizeDiff.width;h=h.outerHeight()-b.sizeDiff.height,b._helper&&!c.animate&&/relative/.test(g.css("position"))&&a(this).css({left:i.left-f.left-d.left,width:j,height:h}),b._helper&&!c.animate&&/static/.test(g.css("position"))&&a(this).css({left:i.left-f.left-d.left,width:j,height:h})}}),a.ui.plugin.add("resizable","ghost",{start:function(){var b=a(this).data("resizable"),c=b.options,d=b.size;b.ghost=b.originalElement.clone(),b.ghost.css({opacity:.25,display:"block",position:"relative",height:d.height,width:d.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof c.ghost=="string"?c.ghost:""),b.ghost.appendTo(b.helper)},resize:function(){var b=a(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=a(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}}),a.ui.plugin.add("resizable","grid",{resize:function(){var b=a(this).data("resizable"),c=b.options,d=b.size,f=b.originalSize,g=b.originalPosition,h=b.axis;c.grid=typeof c.grid=="number"?[c.grid,c.grid]:c.grid;var i=Math.round((d.width-f.width)/(c.grid[0]||1))*(c.grid[0]||1);c=Math.round((d.height-f.height)/(c.grid[1]||1))*(c.grid[1]||1),/^(se|s|e)$/.test(h)?(b.size.width=f.width+i,b.size.height=f.height+c):/^(ne)$/.test(h)?(b.size.width=f.width+i,b.size.height=f.height+c,b.position.top=g.top-c):(/^(sw)$/.test(h)?(b.size.width=f.width+i,b.size.height=f.height+c):(b.size.width=f.width+i,b.size.height=f.height+c,b.position.top=g.top-c),b.position.left=g.left-i)}});var b=function(a){return parseInt(a,10)||0},c=function(a){return!isNaN(parseInt(a,10))}}(jQuery),function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch"},_create:function(){var b=this;this.element.addClass("ui-selectable"),this.dragged=!1;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]),c.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass("ui-selected"),selecting:b.hasClass("ui-selecting"),unselecting:b.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=c.addClass("ui-selectee"),this._mouseInit(),this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){return this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable"),this._mouseDestroy(),this},_mouseStart:function(b){var c=this;this.opos=[b.pageX,b.pageY];if(!this.options.disabled){var d=this.options;this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.clientX,top:b.clientY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,b.metaKey||(d.$element.removeClass("ui-selected"),d.selected=!1,d.$element.addClass("ui-unselecting"),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().andSelf().each(function(){var d=a.data(this,"selectable-item");if(d){var g=!b.metaKey||!d.$element.hasClass("ui-selected");return d.$element.removeClass(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselecting"),d.unselecting=!g,d.selecting=g,(d.selected=g)?c._trigger("selecting",b,{selecting:d.element}):c._trigger("unselecting",b,{unselecting:d.element}),!1}})}},_mouseDrag:function(b){var c=this;this.dragged=!0;if(!this.options.disabled){var d=this.options,f=this.opos[0],g=this.opos[1],h=b.pageX,i=b.pageY;if(f>h){var j=h;h=f,f=j}return g>i&&(j=i,i=g,g=j),this.helper.css({left:f,top:g,width:h-f,height:i-g}),this.selectees.each(function(){var j=a.data(this,"selectable-item");if(!!j&&j.element!=c.element[0]){var k=!1;d.tolerance=="touch"?k=!(j.left>h||j.right<f||j.top>i||j.bottom<g):d.tolerance=="fit"&&(k=j.left>f&&j.right<h&&j.top>g&&j.bottom<i),k?(j.selected&&(j.$element.removeClass("ui-selected"),j.selected=!1),j.unselecting&&(j.$element.removeClass("ui-unselecting"),j.unselecting=!1),j.selecting||(j.$element.addClass("ui-selecting"),j.selecting=!0,c._trigger("selecting",b,{selecting:j.element}))):(j.selecting&&(b.metaKey&&j.startselected?(j.$element.removeClass("ui-selecting"),j.selecting=!1,j.$element.addClass("ui-selected"),j.selected=!0):(j.$element.removeClass("ui-selecting"),j.selecting=!1,j.startselected&&(j.$element.addClass("ui-unselecting"),j.unselecting=!0),c._trigger("unselecting",b,{unselecting:j.element}))),j.selected&&!b.metaKey&&!j.startselected&&(j.$element.removeClass("ui-selected"),j.selected=!1,j.$element.addClass("ui-unselecting"),j.unselecting=!0,c._trigger("unselecting",b,{unselecting:j.element})))}}),!1}},_mouseStop:function(b){var c=this;return this.dragged=!1,a(".ui-unselecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-unselecting"),d.unselecting=!1,d.startselected=!1,c._trigger("unselected",b,{unselected:d.element})}),a(".ui-selecting",this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass("ui-selecting").addClass("ui-selected"),d.selecting=!1,d.selected=!0,d.startselected=!0,c._trigger("selected",b,{selected:d.element})}),this._trigger("stop",b),this.helper.remove(),!1}}),a.extend(a.ui.selectable,{version:"1.8.13"})}(jQuery),function(a){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var a=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?a.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1,this.offset=this.element.offset(),this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable"),this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData("sortable-item");return this},_setOption:function(b,c){b==="disabled"?(this.options[b]=c,this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,c){if(this.reverting)return!1;if(this.options.disabled||this.options.type=="static")return!1;this._refreshItems(b);var e=null,f=this;a(b.target).parents().each(function(){if(a.data(this,"sortable-item")==f)return e=a(this),!1}),a.data(b.target,"sortable-item")==f&&(e=a(b.target));if(!e)return!1;if(this.options.handle&&!c){var g=!1;a(this.options.handle,e).find("*").andSelf().each(function(){this==b.target&&(g=!0)});if(!g)return!1}return this.currentItem=e,this._removeCurrentsFromItems(),!0},_mouseStart:function(b,c,e){c=this.options;var f=this;this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),c.containment&&this._setContainment(),c.cursor&&(a("body").css("cursor")&&(this._storedCursor=a("body").css("cursor")),a("body").css("cursor",c.cursor)),c.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",c.opacity)),c.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",c.zIndex)),this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions();if(!e)for(e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("activate",b,f._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs);if(this.options.scroll){var c=this.options,e=!1;this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<c.scrollSensitivity?this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop+c.scrollSpeed:b.pageY-this.overflowOffset.top<c.scrollSensitivity&&(this.scrollParent[0].scrollTop=e=this.scrollParent[0].scrollTop-c.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<c.scrollSensitivity?this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft+c.scrollSpeed:b.pageX-this.overflowOffset.left<c.scrollSensitivity&&(this.scrollParent[0].scrollLeft=e=this.scrollParent[0].scrollLeft-c.scrollSpeed)):(b.pageY-a(document).scrollTop()<c.scrollSensitivity?e=a(document).scrollTop(a(document).scrollTop()-c.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<c.scrollSensitivity&&(e=a(document).scrollTop(a(document).scrollTop()+c.scrollSpeed)),b.pageX-a(document).scrollLeft()<c.scrollSensitivity?e=a(document).scrollLeft(a(document).scrollLeft()-c.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<c.scrollSensitivity&&(e=a(document).scrollLeft(a(document).scrollLeft()+c.scrollSpeed))),e!==!1&&a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";for(c=this.items.length-1;c>=0;c--){e=this.items[c];var f=e.item[0],g=this._intersectsWithPointer(e);if(g&&f!=this.currentItem[0]&&this.placeholder[g==1?"next":"prev"]()[0]!=f&&!a.ui.contains(this.placeholder[0],f)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],f):!0)){this.direction=g==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e))this._rearrange(b,e);else break;this._trigger("change",b,this._uiHash());break}}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger("sort",b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(b){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b);if(this.options.revert){var e=this;c=e.placeholder.offset(),e.reverting=!0,a(this.helper).animate({left:c.left-this.offset.parent.left-e.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:c.top-this.offset.parent.top-e.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){e._clear(b)})}else this._clear(b,c);return!1}},cancel:function(){var b=this;if(this.dragging){this._mouseUp({target:null}),this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--)this.containers[c]._trigger("deactivate",null,b._uiHash(this)),this.containers[c].containerCache.over&&(this.containers[c]._trigger("out",null,b._uiHash(this)),this.containers[c].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),e=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||"id")||"").match(b.expression||/(.+)[-=_](.+)/);c&&e.push((b.key||c[1]+"[]")+"="+(b.key&&b.expression?c[1]:c[2]))}),!e.length&&b.key&&e.push(b.key+"="),e.join("&")},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),e=[];return b=b||{},c.each(function(){e.push(a(b.item||this).attr(b.attribute||"id")||"")}),e},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left;return j=d+j>h&&d+j<i&&b+k>f&&b+k<g,this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>a[this.floating?"width":"height"]?j:f<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<g&&h<d+this.helperProportions.height/2&&e-this.helperProportions.height/2<i},_intersectsWithPointer:function(b){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top,b.height);b=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width),c=c&&b,b=this._getDragVerticalDirection();var e=this._getDragHorizontalDirection();return c?this.floating?e&&e=="right"||b=="down"?2:1:b&&(b=="down"?2:1):!1},_intersectsWithSides:function(b){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height);b=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width);var e=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?f=="right"&&b||f=="left"&&!b:e&&(e=="down"&&c||e=="up"&&!c)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return a!=0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return a!=0&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var c=[],e=[],f=this._connectWith();if(f&&b)for(b=f.length-1;b>=0;b--)for(var g=a(f[b]),h=g.length-1;h>=0;h--){var i=a.data(g[h],"sortable");i&&i!=this&&!i.options.disabled&&e.push([a.isFunction(i.options.items)?i.options.items.call(i.element):a(i.options.items,i.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),i])}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(b=e.length-1;b>=0;b--)e[b][0].each(function(){c.push(this)});return a(c)},_removeCurrentsFromItems:function(){for(var a=this.currentItem.find(":data(sortable-item)"),b=0;b<this.items.length;b++)for(var c=0;c<a.length;c++)a[c]==this.items[b].item[0]&&this.items.splice(b,1)},_refreshItems:function(b){this.items=[],this.containers=[this];var c=this.items,e=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],f=this._connectWith();if(f)for(var g=f.length-1;g>=0;g--)for(var h=a(f[g]),i=h.length-1;i>=0;i--){var j=a.data(h[i],"sortable");j&&j!=this&&!j.options.disabled&&(e.push([a.isFunction(j.options.items)?j.options.items.call(j.element[0],b,{item:this.currentItem}):a(j.options.items,j.element),j]),this.containers.push(j))}for(g=e.length-1;g>=0;g--){b=e[g][1],f=e[g][0],i=0;for(h=f.length;i<h;i++)j=a(f[i]),j.data("sortable-item",b),c.push({item:j,instance:b,width:0,height:0,left:0,top:0})}},refreshPositions:function(b){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var c=this.items.length-1;c>=0;c--){var e=this.items[c];if(e.instance==this.currentContainer||!this.currentContainer||e.item[0]==this.currentItem[0]){var f=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;b||(e.width=f.outerWidth(),e.height=f.outerHeight()),f=f.offset(),e.left=f.left,e.top=f.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(c=this.containers.length-1;c>=0;c--)f=this.containers[c].element.offset(),this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight();return this},_createPlaceholder:function(b){var c=b||this,e=c.options;if(!e.placeholder||e.placeholder.constructor==String){var f=e.placeholder;e.placeholder={element:function(){var b=a(document.createElement(c.currentItem[0].nodeName)).addClass(f||c.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return f||(b.style.visibility="hidden"),b},update:function(a,b){if(!f||!!e.forcePlaceholderSize)b.height()||b.height(c.currentItem.innerHeight()-parseInt(c.currentItem.css("paddingTop")||0,10)-parseInt(c.currentItem.css("paddingBottom")||0,10)),b.width()||b.width(c.currentItem.innerWidth()-parseInt(c.currentItem.css("paddingLeft")||0,10)-parseInt(c.currentItem.css("paddingRight")||0,10))}}}c.placeholder=a(e.placeholder.element.call(c.element,c.currentItem)),c.currentItem.after(c.placeholder),e.placeholder.update(c,c.placeholder)},_contactContainers:function(b){for(var c=null,e=null,f=this.containers.length-1;f>=0;f--)if(!a.ui.contains(this.currentItem[0],this.containers[f].element[0]))if(this._intersectsWith(this.containers[f].containerCache)){if(!c||!a.ui.contains(this.containers[f].element[0],c.element[0]))c=this.containers[f],e=f}else this.containers[f].containerCache.over&&(this.containers[f]._trigger("out",b,this._uiHash(this)),this.containers[f].containerCache.over=0);if(c)if(this.containers.length===1)this.containers[e]._trigger("over",b,this._uiHash(this)),this.containers[e].containerCache.over=1;else if(this.currentContainer!=this.containers[e]){c=1e4,f=null;for(var g=this.positionAbs[this.containers[e].floating?"left":"top"],h=this.items.length-1;h>=0;h--)if(a.ui.contains(this.containers[e].element[0],this.items[h].item[0])){var i=this.items[h][this.containers[e].floating?"left":"top"];Math.abs(i-g)<c&&(c=Math.abs(i-g),f=this.items[h])}if(f||this.options.dropOnEmpty)this.currentContainer=this.containers[e],f?this._rearrange(b,f,null,!0):this._rearrange(b,null,this.containers[e].element,!0),this._trigger("change",b,this._uiHash()),this.containers[e]._trigger("change",b,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[e]._trigger("over",b,this._uiHash(this)),this.containers[e].containerCache.over=1}},_createHelper:function(b){var c=this.options;return b=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem,b.parents("body").length||a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(b[0]),b[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(b[0].style.width==""||c.forceHelperSize)&&b.width(this.currentItem.width()),(b[0].style.height==""||c.forceHelperSize)&&b.height(this.currentItem.height()),b},_adjustOffsetFromHelper:function(b){typeof b=="string"&&(b=b.split(" ")),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),"left"in b&&(this.offset.click.left=b.left+this.margins.left),"right"in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),"top"in b&&(this.offset.click.top=b.top+this.margins.top),"bottom"in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)b={top:0,left:0};return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;b.containment=="parent"&&(b.containment=this.helper[0].parentNode);if(b.containment=="document"||b.containment=="window")this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(b.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(b.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(b.containment)){var c=a(b.containment)[0];b=a(b.containment).offset();var e=a(c).css("overflow")!="hidden";this.containment=[b.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,b.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,b.left+(e?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,b.top+(e?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,c){c||(c=this.position),b=b=="absolute"?1:-1;var e=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!a.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);return{top:c.top+this.offset.relative.top*b+this.offset.parent.top*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:e.scrollTop())*b),left:c.left+this.offset.relative.left*b+this.offset.parent.left*b-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*b)}},_generatePosition:function(b){var c=this.options,e=this.cssPosition!="absolute"||this.scrollParent[0]!=document&&!!a.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,f=/(html|body)/i.test(e[0].tagName);this.cssPosition=="relative"&&(this.scrollParent[0]==document||this.scrollParent[0]==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset());var g=b.pageX,h=b.pageY;return this.originalPosition&&(this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(g=this.containment[0]+this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(h=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(g=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(h=this.containment[3]+this.offset.click.top)),c.grid&&(h=this.originalPageY+Math.round((h-this.originalPageY)/c.grid[1])*c.grid[1],h=this.containment?h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3]?h-this.offset.click.top<this.containment[1]?h+c.grid[1]:h-c.grid[1]:h:h,g=this.originalPageX+Math.round((g-this.originalPageX)/c.grid[0])*c.grid[0],g=this.containment?g-this.offset.click.left<this.containment[0]||g-this.offset.click.left>this.containment[2]?g-this.offset.click.left<this.containment[0]?g+c.grid[0]:g-c.grid[0]:g:g)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:e.scrollTop()),left:g-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?b.item[0]:b.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var e=this,f=this.counter;window.setTimeout(function(){f==e.counter&&e.refreshPositions(!d)},0)},_clear:function(b,c){this.reverting=!1;var e=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem),this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var f in this._storedCSS)if(this._storedCSS[f]=="auto"||this._storedCSS[f]=="static")this._storedCSS[f]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!c&&e.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!c&&e.push(function(a){this._trigger("update",a,this._uiHash())});if(!a.ui.contains(this.element[0],this.currentItem[0])){c||e.push(function(a){this._trigger("remove",a,this._uiHash())});for(f=this.containers.length-1;f>=0;f--)a.ui.contains(this.containers[f].element[0],this.currentItem[0])&&!c&&(e.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.containers[f])),e.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.containers[f])))}for(f=this.containers.length-1;f>=0;f--)c||e.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[f])),this.containers[f].containerCache.over&&(e.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[f])),this.containers[f].containerCache.over=0);this._storedCursor&&a("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex),this.dragging=!1;if(this.cancelHelperRemoval){if(!c){this._trigger("beforeStop",b,this._uiHash());for(f=0;f<e.length;f++)e[f].call(this,b);this._trigger("stop",b,this._uiHash())}return!1}c||this._trigger("beforeStop",b,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null;if(!c){for(f=0;f<e.length;f++)e[f].call(this,b);this._trigger("stop",b,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.element:null}}}),a.extend(a.ui.sortable,{version:"1.8.13"})}(jQuery),function(a){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:!0,clearStyle:!1,collapsible:!1,event:"click",fillSpace:!1,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}
},_create:function(){var b=this,d=b.options;b.running=0,b.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix"),b.headers=b.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){d.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){d.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){d.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){d.disabled||a(this).removeClass("ui-state-focus")}),b.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(d.navigation){var e=b.element.find("a").filter(d.navigationFilter).eq(0);if(e.length){var f=e.closest(".ui-accordion-header");b.active=f.length?f:e.closest(".ui-accordion-content").prev()}}b.active=b._findActive(b.active||d.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"),b.active.next().addClass("ui-accordion-content-active"),b._createIcons(),b.resize(),b.element.attr("role","tablist"),b.headers.attr("role","tab").bind("keydown.accordion",function(a){return b._keydown(a)}).next().attr("role","tabpanel"),b.headers.not(b.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide(),b.active.length?b.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):b.headers.eq(0).attr("tabIndex",0),a.browser.safari||b.headers.find("a").attr("tabIndex",-1),d.event&&b.headers.bind(d.event.split(" ").join(".accordion ")+".accordion",function(a){b._clickHandler.call(b,a,this),a.preventDefault()})},_createIcons:function(){var b=this.options;b.icons&&(a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers),this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.icons.headerSelected),this.element.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.children(".ui-icon").remove(),this.element.removeClass("ui-accordion-icons")},destroy:function(){var b=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex"),this.headers.find("a").removeAttr("tabIndex"),this._destroyIcons();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");return(b.autoHeight||b.fillHeight)&&d.css("height",""),a.Widget.prototype.destroy.call(this)},_setOption:function(b,d){a.Widget.prototype._setOption.apply(this,arguments),b=="active"&&this.activate(d),b=="icons"&&(this._destroyIcons(),d&&this._createIcons()),b=="disabled"&&this.headers.add(this.headers.next())[d?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")},_keydown:function(b){if(!(this.options.disabled||b.altKey||b.ctrlKey)){var d=a.ui.keyCode,e=this.headers.length,f=this.headers.index(b.target),g=!1;switch(b.keyCode){case d.RIGHT:case d.DOWN:g=this.headers[(f+1)%e];break;case d.LEFT:case d.UP:g=this.headers[(f-1+e)%e];break;case d.SPACE:case d.ENTER:this._clickHandler({target:b.target},b.target),b.preventDefault()}return g?(a(b.target).attr("tabIndex",-1),a(g).attr("tabIndex",0),g.focus(),!1):!0}},resize:function(){var b=this.options,d;if(b.fillSpace){if(a.browser.msie){var e=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height(),a.browser.msie&&this.element.parent().css("overflow",e),this.headers.each(function(){d-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,d-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else b.autoHeight&&(d=0,this.headers.next().each(function(){d=Math.max(d,a(this).height("").height())}).height(d));return this},activate:function(a){return this.options.active=a,a=this._findActive(a)[0],this._clickHandler({target:a},a),this},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===!1?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,d){var e=this.options;if(!e.disabled)if(b.target){b=a(b.currentTarget||d),d=b[0]===this.active[0],e.active=e.collapsible&&d?!1:this.headers.index(b);if(!(this.running||!e.collapsible&&d)){var f=this.active;j=b.next(),h=this.active.next(),i={options:e,newHeader:d&&e.collapsible?a([]):b,oldHeader:this.active,newContent:d&&e.collapsible?a([]):j,oldContent:h};var g=this.headers.index(this.active[0])>this.headers.index(b[0]);this.active=d?a([]):b,this._toggle(j,h,i,d,g),f.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header),d||(b.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(e.icons.header).addClass(e.icons.headerSelected),b.next().addClass("ui-accordion-content-active"))}}else if(e.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(e.icons.headerSelected).addClass(e.icons.header),this.active.next().addClass("ui-accordion-content-active");var h=this.active.next(),i={options:e,newHeader:a([]),oldHeader:e.active,newContent:a([]),oldContent:h},j=this.active=a([]);this._toggle(j,h,i)}},_toggle:function(b,d,e,f,g){var h=this,i=h.options;h.toShow=b,h.toHide=d,h.data=e;var j=function(){if(h)return h._completed.apply(h,arguments)};h._trigger("changestart",null,h.data),h.running=d.size()===0?b.size():d.size();if(i.animated){e={},e=i.collapsible&&f?{toShow:a([]),toHide:d,complete:j,down:g,autoHeight:i.autoHeight||i.fillSpace}:{toShow:b,toHide:d,complete:j,down:g,autoHeight:i.autoHeight||i.fillSpace},i.proxied||(i.proxied=i.animated),i.proxiedDuration||(i.proxiedDuration=i.duration),i.animated=a.isFunction(i.proxied)?i.proxied(e):i.proxied,i.duration=a.isFunction(i.proxiedDuration)?i.proxiedDuration(e):i.proxiedDuration,f=a.ui.accordion.animations;var k=i.duration,l=i.animated;l&&!f[l]&&!a.easing[l]&&(l="slide"),f[l]||(f[l]=function(a){this.slide(a,{easing:l,duration:k||700})}),f[l](e)}else i.collapsible&&f?b.toggle():(d.hide(),b.show()),j(!0);d.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur(),b.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(a){this.running=a?0:--this.running,this.running||(this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""}),this.toHide.removeClass("ui-accordion-content-active"),this.toHide.length&&(this.toHide.parent()[0].className=this.toHide.parent()[0].className),this._trigger("change",null,this.data))}}),a.extend(a.ui.accordion,{version:"1.8.13",animations:{slide:function(b,d){b=a.extend({easing:"swing",duration:300},b,d);if(b.toHide.size())if(b.toShow.size()){var e=b.toShow.css("overflow"),f=0,g={},h={},i;d=b.toShow,i=d[0].style.width,d.width(parseInt(d.parent().width(),10)-parseInt(d.css("paddingLeft"),10)-parseInt(d.css("paddingRight"),10)-(parseInt(d.css("borderLeftWidth"),10)||0)-(parseInt(d.css("borderRightWidth"),10)||0)),a.each(["height","paddingTop","paddingBottom"],function(d,e){h[e]="hide",d=(""+a.css(b.toShow[0],e)).match(/^([\d+-.]+)(.*)$/),g[e]={value:d[1],unit:d[2]||"px"}}),b.toShow.css({height:0,overflow:"hidden"}).show(),b.toHide.filter(":hidden").each(b.complete).end().filter(":visible").animate(h,{step:function(a,c){c.prop=="height"&&(f=c.end-c.start===0?0:(c.now-c.start)/(c.end-c.start)),b.toShow[0].style[c.prop]=f*g[c.prop].value+g[c.prop].unit},duration:b.duration,easing:b.easing,complete:function(){b.autoHeight||b.toShow.css("height",""),b.toShow.css({width:i,overflow:e}),b.complete()}})}else b.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},b);else b.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},b)},bounceslide:function(a){this.slide(a,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1e3:200})}}})}(jQuery),function(a){var b=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var b=this,c=this.element[0].ownerDocument,e;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!b.options.disabled&&!b.element.attr("readonly")){e=!1;var f=a.ui.keyCode;switch(c.keyCode){case f.PAGE_UP:b._move("previousPage",c);break;case f.PAGE_DOWN:b._move("nextPage",c);break;case f.UP:b._move("previous",c),c.preventDefault();break;case f.DOWN:b._move("next",c),c.preventDefault();break;case f.ENTER:case f.NUMPAD_ENTER:b.menu.active&&(e=!0,c.preventDefault());case f.TAB:if(!b.menu.active)return;b.menu.select(c);break;case f.ESCAPE:b.element.val(b.term),b.close(c);break;default:clearTimeout(b.searching),b.searching=setTimeout(function(){b.term!=b.element.val()&&(b.selectedItem=null,b.search(null,c))},b.options.delay)}}}).bind("keypress.autocomplete",function(a){e&&(e=!1,a.preventDefault())}).bind("focus.autocomplete",function(){b.options.disabled||(b.selectedItem=null,b.previous=b.element.val())}).bind("blur.autocomplete",function(a){b.options.disabled||(clearTimeout(b.searching),b.closing=setTimeout(function(){b.close(a),b._change(a)},150))}),this._initSource(),this.response=function(){return b._response.apply(b,arguments)},this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",c)[0]).mousedown(function(c){var e=b.menu.element[0];a(c.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(c){c.target!==b.element[0]&&c.target!==e&&!a.ui.contains(e,c.target)&&b.close()})},1),setTimeout(function(){clearTimeout(b.closing)},13)}).menu({focus:function(a,c){c=c.item.data("item.autocomplete"),!1!==b._trigger("focus",a,{item:c})&&/^key/.test(a.originalEvent.type)&&b.element.val(c.value)},selected:function(a,d){var e=d.item.data("item.autocomplete"),f=b.previous;b.element[0]!==c.activeElement&&(b.element.focus(),b.previous=f,setTimeout(function(){b.previous=f,b.selectedItem=e},1)),!1!==b._trigger("select",a,{item:e})&&b.element.val(e.value),b.term=b.element.val(),b.close(a),b.selectedItem=e},blur:function(){b.menu.element.is(":visible")&&b.element.val()!==b.term&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),a.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments),b==="source"&&this._initSource(),b==="appendTo"&&this.menu.element.appendTo(a(c||"body",this.element[0].ownerDocument)[0]),b==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var c=this,f,g;a.isArray(this.options.source)?(f=this.options.source,this.source=function(b,c){c(a.ui.autocomplete.filter(f,b.term))}):typeof this.options.source=="string"?(g=this.options.source,this.source=function(f,h){c.xhr&&c.xhr.abort(),c.xhr=a.ajax({url:g,data:f,
