var tinymce={majorVersion:"3",minorVersion:"0",releaseDate:"2008-01-30",_init:function(){var E=this,D=navigator.userAgent,C,B,G,F;E.isOpera=window.opera&&opera.buildNumber;E.isWebKit=/WebKit/.test(D);E.isOldWebKit=E.isWebKit&&!window.getSelection().getRangeAt;E.isIE=!E.isWebKit&&!E.isOpera&&(/MSIE/gi).test(D)&&(/Explorer/gi).test(navigator.appName);E.isIE6=E.isIE&&/MSIE [56]/.test(D);E.isGecko=!E.isWebKit&&/Gecko/.test(D);E.isMac=D.indexOf("Mac")!=-1;if(window.tinyMCEPreInit){E.suffix=tinyMCEPreInit.suffix;E.baseURL=tinyMCEPreInit.base;return }E.suffix="";B=document.getElementsByTagName("base");for(C=0;C<B.length;C++){if(B[C].href){F=B[C].href}}function A(H){if(H.src&&/tiny_mce(|_dev|_src|_gzip|_jquery|_prototype).js/.test(H.src)){if(/_(src|dev)\.js/g.test(H.src)){E.suffix="_src"}E.baseURL=H.src.substring(0,H.src.lastIndexOf("/"));if(F&&E.baseURL.indexOf("://")==-1){E.baseURL=F+E.baseURL}return E.baseURL}return null}B=document.getElementsByTagName("script");for(C=0;C<B.length;C++){if(A(B[C])){return }}G=document.getElementsByTagName("head")[0];if(G){B=G.getElementsByTagName("script");for(C=0;C<B.length;C++){if(A(B[C])){return }}}return },is:function(B,A){var C=typeof (B);if(!A){return C!="undefined"}if(A=="array"&&(B instanceof Array)){return true}return C==A},each:function(D,A,C){var E,B;if(!D){return 0}C=C||D;if(typeof (D.length)!="undefined"){for(E=0,B=D.length;E<B;E++){if(A.call(C,D[E],E,D)===false){return 0}}}else{for(E in D){if(D.hasOwnProperty(E)){if(A.call(C,D[E],E,D)===false){return 0}}}}return 1},map:function(A,B){var C=[];tinymce.each(A,function(D){C.push(B(D))});return C},grep:function(A,B){var C=[];tinymce.each(A,function(D){if(!B||B(D)){C.push(D)}});return C},inArray:function(B,C){var D,A;if(B){for(D=0,A=B.length;D<A;D++){if(B[D]===C){return D}}}return -1},extend:function(D,C){var B,A=arguments;for(B=1;B<A.length;B++){C=A[B];tinymce.each(C,function(E,F){if(typeof (E)!=="undefined"){D[F]=E}})}return D},trim:function(A){return(A?""+A:"").replace(/^\s*|\s*$/g,"")},create:function(I,A){var H=this,B,D,E,F,C,G=0;I=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(I);E=I[3].match(/(^|\.)(\w+)$/i)[2];D=H.createNS(I[3].replace(/\.\w+$/,""));if(D[E]){return }if(I[2]=="static"){D[E]=A;if(this.onCreate){this.onCreate(I[2],I[3],D[E])}return }if(!A[E]){A[E]=function(){};G=1}D[E]=A[E];H.extend(D[E].prototype,A);if(I[5]){B=H.resolve(I[5]).prototype;F=I[5].match(/\.(\w+)$/i)[1];C=D[E];if(G){D[E]=function(){return B[F].apply(this,arguments)}}else{D[E]=function(){this.parent=B[F];return C.apply(this,arguments)}}D[E].prototype[E]=D[E];H.each(B,function(J,K){if(K!=F){D[E].prototype[K]=B[K]}});H.each(A,function(J,K){if(B[K]){D[E].prototype[K]=function(){this.parent=B[K];return J.apply(this,arguments)}}else{if(K!=E){D[E].prototype[K]=J}}})}H.each(A["static"],function(J,K){D[E][K]=J});if(this.onCreate){this.onCreate(I[2],I[3],D[E].prototype)}},walk:function(C,B,D,A){A=A||this;if(C){if(D){C=C[D]}tinymce.each(C,function(F,E){if(B.call(A,F,E,D)===false){return false}tinymce.walk(F,B,D,A)})}},createNS:function(D,C){var B,A;C=C||window;D=D.split(".");for(B=0;B<D.length;B++){A=D[B];if(!C[A]){C[A]={}}C=C[A]}return C},resolve:function(D,C){var B,A;C=C||window;D=D.split(".");for(B=0,A=D.length;B<A;B++){C=C[D[B]];if(!C){break}}return C},addUnload:function(E,D){var C=this,A=window,B;E={func:E,scope:D||this};if(!C.unloads){B=function(){var F=C.unloads,G,H;for(H in F){G=F[H];if(G&&G.func){G.func.call(G.scope)}}if(A.detachEvent){A.detachEvent("onunload",B)}else{if(A.removeEventListener){A.removeEventListener("unload",B,false)}}G=F=A=B=null;if(window.CollectGarbage){window.CollectGarbage()}};if(A.attachEvent){A.attachEvent("onunload",B)}else{if(A.addEventListener){A.addEventListener("unload",B,false)}}C.unloads=[E]}else{C.unloads.push(E)}return E},removeUnload:function(C){var A=this.unloads,B=null;tinymce.each(A,function(E,D){if(E&&E.func==C){A.splice(D,1);B=C;return false}});return B}};window.tinymce=tinymce;tinymce._init();tinymce.create("tinymce.util.Dispatcher",{scope:null,listeners:null,Dispatcher:function(A){this.scope=A||this;this.listeners=[]},add:function(A,B){this.listeners.push({cb:A,scope:B||this.scope});return A},addToTop:function(A,B){this.listeners.unshift({cb:A,scope:B||this.scope});return A},remove:function(A){var B=this.listeners,C=null;tinymce.each(B,function(E,D){if(A==E.cb){C=A;B.splice(D,1);return false}});return C},dispatch:function(){var B,A=arguments;tinymce.each(this.listeners,function(C){return B=C.cb.apply(C.scope,A)});return B}});(function(){var A=tinymce.each;tinymce.create("tinymce.util.URI",{URI:function(D,F){var E=this,G,C,B;F=E.settings=F||{};if(/^(mailto|news|javascript|about):/i.test(D)||/^\s*#/.test(D)){E.source=D;return }if(D.indexOf("/")===0&&D.indexOf("//")!==0){D=(F.base_uri?F.base_uri.protocol||"http":"http")+"://mce_host"+D}if(D.indexOf("://")===-1&&D.indexOf("//")!==0){D=(F.base_uri.protocol||"http")+"://mce_host"+E.toAbsPath(F.base_uri.path,D)}D=D.replace(/@@/g,"(mce_at)");D=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(D);A(["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],function(H,I){var J=D[I];if(J){J=J.replace(/\(mce_at\)/g,"@@")}E[H]=J});if(B=F.base_uri){if(!E.protocol){E.protocol=B.protocol}if(!E.userInfo){E.userInfo=B.userInfo}if(!E.port&&E.host=="mce_host"){E.port=B.port}if(!E.host||E.host=="mce_host"){E.host=B.host}E.source=""}},setPath:function(C){var B=this;C=/^(.*?)\/?(\w+)?$/.exec(C);B.path=C[0];B.directory=C[1];B.file=C[2];B.source="";B.getURI()},toRelative:function(B){var C=this,D;B=new tinymce.util.URI(B,{base_uri:C});if((B.host!="mce_host"&&C.host!=B.host&&B.host)||C.port!=B.port||C.protocol!=B.protocol){return B.getURI()}D=C.toRelPath(C.path,B.path);if(B.query){D+="?"+B.query}if(B.anchor){D+="#"+B.anchor}return D},toAbsolute:function(B,C){var B=new tinymce.util.URI(B,{base_uri:this});return B.getURI(this.host==B.host?C:0)},toRelPath:function(F,G){var B,E=0,C="",D;F=F.substring(0,F.lastIndexOf("/"));F=F.split("/");B=G.split("/");if(F.length>=B.length){for(D=0;D<F.length;D++){if(D>=B.length||F[D]!=B[D]){E=D+1;break}}}if(F.length<B.length){for(D=0;D<B.length;D++){if(D>=F.length||F[D]!=B[D]){E=D+1;break}}}if(E==1){return G}for(D=0;D<F.length-(E-1);D++){C+="../"}for(D=E-1;D<B.length;D++){if(D!=E-1){C+="/"+B[D]}else{C+=B[D]}}return C},toAbsPath:function(D,E){var C,B=0,F=[];D=D.split("/");E=E.split("/");A(D,function(G){if(G){F.push(G)}});D=F;for(C=E.length-1,F=[];C>=0;C--){if(E[C].length==0||E[C]=="."){continue}if(E[C]==".."){B++;continue}if(B>0){B--;continue}F.push(E[C])}C=D.length-B;if(C<=0){return"/"+F.reverse().join("/")}return"/"+D.slice(0,C).join("/")+"/"+F.reverse().join("/")},getURI:function(D){var C,B=this;if(!B.source||D){C="";if(!D){if(B.protocol){C+=B.protocol+"://"}if(B.userInfo){C+=B.userInfo+"@"}if(B.host){C+=B.host}if(B.port){C+=":"+B.port}}if(B.path){C+=B.path}if(B.query){C+="?"+B.query}if(B.anchor){C+="#"+B.anchor}B.source=C}return B.source}})})();(function(){var A=tinymce.each;tinymce.create("static tinymce.util.Cookie",{getHash:function(D){var B=this.get(D),C;if(B){A(B.split("&"),function(E){E=E.split("=");C=C||{};C[unescape(E[0])]=unescape(E[1])})}return C},setHash:function(H,B,E,D,G,C){var F="";A(B,function(J,I){F+=(!F?"":"&")+escape(I)+"="+escape(J)});this.set(H,F,E,D,G,C)},get:function(F){var E=document.cookie,D,C=F+"=",B;if(!E){return }B=E.indexOf("; "+C);if(B==-1){B=E.indexOf(C);if(B!=0){return null}}else{B+=2}D=E.indexOf(";",B);if(D==-1){D=E.length}return unescape(E.substring(B+C.length,D))},set:function(G,B,E,D,F,C){document.cookie=G+"="+escape(B)+((E)?"; expires="+E.toGMTString():"")+((D)?"; path="+escape(D):"")+((F)?"; domain="+F:"")+((C)?"; secure":"")},remove:function(D,B){var C=new Date();C.setTime(C.getTime()-1000);this.set(D,"",C,B,C)}})})();tinymce.create("static tinymce.util.JSON",{serialize:function(E){var C,A,D=tinymce.util.JSON.serialize,B;if(E==null){return"null"}B=typeof E;if(B=="string"){A="\bb\tt\nn\ff\rr\"\"''\\\\";return'"'+E.replace(/([\u0080-\uFFFF\x00-\x1f\"\'])/g,function(G,F){C=A.indexOf(F);if(C+1){return"\\"+A.charAt(C+1)}G=F.charCodeAt().toString(16);return"\\u"+"0000".substring(G.length)+G})+'"'}if(B=="object"){if(E instanceof Array){for(C=0,A="[";C<E.length;C++){A+=(C>0?",":"")+D(E[C])}return A+"]"}A="{";for(C in E){A+=typeof E[C]!="function"?(A.length>1?',"':'"')+C+'":'+D(E[C]):""}return A+"}"}return""+E},parse:function(s){try{return eval("("+s+")")}catch(ex){}}});tinymce.create("static tinymce.util.XHR",{send:function(E){var A,D,B=window,F=0;E.scope=E.scope||this;E.success_scope=E.success_scope||E.scope;E.error_scope=E.error_scope||E.scope;E.async=E.async===false?false:true;E.data=E.data||"";function C(H){A=0;try{A=new ActiveXObject(H)}catch(G){}return A}A=B.XMLHttpRequest?new XMLHttpRequest():C("Microsoft.XMLHTTP")||C("Msxml2.XMLHTTP");if(A){if(A.overrideMimeType){A.overrideMimeType(E.content_type)}A.open(E.type||(E.data?"POST":"GET"),E.url,E.async);if(E.content_type){A.setRequestHeader("Content-Type",E.content_type)}A.send(E.data);D=B.setInterval(function(){if(A.readyState==4||F++>10000){B.clearInterval(D);if(E.success&&F<10000&&A.status==200){E.success.call(E.success_scope,""+A.responseText,A,E)}else{if(E.error){E.error.call(E.error_scope,F>10000?"TIMED_OUT":"GENERAL",A,E)}}A=null}},10)}}});(function(){var C=tinymce.extend,B=tinymce.util.JSON,A=tinymce.util.XHR;tinymce.create("tinymce.util.JSONRequest",{JSONRequest:function(D){this.settings=C({},D);this.count=0},send:function(F){var E=F.error,D=F.success;F=C(this.settings,F);F.success=function(H,G){H=B.parse(H);if(typeof (H)=="undefined"){H={error:"JSON Parse error."}}if(H.error){E.call(F.error_scope||F.scope,H.error,G)}else{D.call(F.success_scope||F.scope,H.result)}};F.error=function(H,G){E.call(F.error_scope||F.scope,H,G)};F.data=B.serialize({id:F.id||"c"+(this.count++),method:F.method,params:F.params});A.send(F)},"static":{sendRPC:function(D){return new tinymce.util.JSONRequest().send(D)}}})}());(function(){var each=tinymce.each,is=tinymce.is;var isWebKit=tinymce.isWebKit,isIE=tinymce.isIE;tinymce.create("tinymce.dom.DOMUtils",{doc:null,root:null,files:null,listeners:{},pixelStyles:/^(top|left|bottom|right|width|height|borderWidth)$/,cache:{},idPattern:/^#[\w]+$/,elmPattern:/^[\w_*]+$/,elmClassPattern:/^([\w_]*)\.([\w_]+)$/,DOMUtils:function(d,s){var t=this;t.doc=d;t.files={};t.cssFlicker=false;t.counter=0;t.boxModel=!tinymce.isIE||d.compatMode=="CSS1Compat";this.settings=s=tinymce.extend({keep_values:false,hex_colors:1,process_html:1},s);if(tinymce.isIE6){try{d.execCommand("BackgroundImageCache",false,true)}catch(e){t.cssFlicker=true}}tinymce.addUnload(function(){t.doc=t.root=null})},getRoot:function(){var t=this,s=t.settings;return(s&&t.get(s.root_element))||t.doc.body},getViewPort:function(w){var d,b;w=!w?window:w;d=w.document;b=this.boxModel?d.documentElement:d.body;return{x:w.pageXOffset||b.scrollLeft,y:w.pageYOffset||b.scrollTop,w:w.innerWidth||b.clientWidth,h:w.innerHeight||b.clientHeight}},getRect:function(e){var p,t=this,w,h;e=t.get(e);p=t.getPos(e);w=t.getStyle(e,"width");h=t.getStyle(e,"height");if(w.indexOf("px")===-1){w=0}if(h.indexOf("px")===-1){h=0}return{x:p.x,y:p.y,w:parseInt(w)||e.offsetWidth||e.clientWidth,h:parseInt(h)||e.offsetHeight||e.clientHeight}},getParent:function(n,f,r){var na,se=this.settings;n=this.get(n);if(se.strict_root){r=r||this.getRoot()}if(is(f,"string")){na=f.toUpperCase();f=function(n){var s=false;if(n.nodeType==1&&na==="*"){s=true;return false}each(na.split(","),function(v){if(n.nodeType==1&&((se.strict&&n.nodeName.toUpperCase()==v)||n.nodeName==v)){s=true;return false}});return s}}while(n){if(n==r){return null}if(f(n)){return n}n=n.parentNode}return null},get:function(e){if(typeof (e)=="string"){return this.doc.getElementById(e)}return e},select:function(pa,s){var t=this,cs,c,pl,o=[],x,i,l,n;s=t.get(s)||t.doc;if(t.settings.strict){function get(s,n){return s.getElementsByTagName(n.toLowerCase())}}else{function get(s,n){return s.getElementsByTagName(n)}}if(t.elmPattern.test(pa)){x=get(s,pa);for(i=0,l=x.length;i<l;i++){o.push(x[i])}return o}if(t.elmClassPattern.test(pa)){pl=t.elmClassPattern.exec(pa);x=get(s,pl[1]||"*");c=" "+pl[2]+" ";for(i=0,l=x.length;i<l;i++){n=x[i];if(n.className&&(" "+n.className+" ").indexOf(c)!==-1){o.push(n)}}return o}function collect(n){if(!n.mce_save){n.mce_save=1;o.push(n)}}function collectIE(n){if(!n.getAttribute("mce_save")){n.setAttribute("mce_save","1");o.push(n)}}function find(n,f,r){var i,l,nl=get(r,n);for(i=0,l=nl.length;i<l;i++){f(nl[i])}}each(pa.split(","),function(v,i){v=tinymce.trim(v);if(t.elmPattern.test(v)){each(get(s,v),function(n){collect(n)});return }if(t.elmClassPattern.test(v)){x=t.elmClassPattern.exec(v);each(get(s,x[1]),function(n){if(t.hasClass(n,x[2])){collect(n)}});return }if(!(cs=t.cache[pa])){cs="x=(function(cf, s) {";pl=v.split(" ");each(pl,function(v){var p=/^([\w\\*]+)?(?:#([\w\\]+))?(?:\.([\w\\\.]+))?(?:\[\@([\w\\]+)([\^\$\*!]?=)([\w\\]+)\])?(?:\:([\w\\]+))?/i.exec(v);p[1]=p[1]||"*";cs+='find("'+p[1]+'", function(n) {';if(p[2]){cs+='if (n.id !== "'+p[2]+'") return;'}if(p[3]){cs+='var c = " " + n.className + " ";';cs+="if (";c="";each(p[3].split("."),function(v){if(v){c+=(c?"||":"")+'c.indexOf(" '+v+' ") === -1'}});cs+=c+") return;"}});cs+="cf(n);";for(i=pl.length-1;i>=0;i--){cs+="}, "+(i?"n":"s")+");"}cs+="})";t.cache[pa]=cs=eval(cs)}cs(isIE?collectIE:collect,s)});each(o,function(n){if(isIE){n.removeAttribute("mce_save")}else{delete n.mce_save}});return o},add:function(p,n,a,h,c){var t=this;return this.run(p,function(p){var e,k;e=is(n,"string")?t.doc.createElement(n):n;if(a){for(k in a){if(a.hasOwnProperty(k)&&!is(a[k],"object")){t.setAttrib(e,k,""+a[k])}}if(a.style&&!is(a.style,"string")){each(a.style,function(v,n){t.setStyle(e,n,v)})}}if(h){if(h.nodeType){e.appendChild(h)}else{t.setHTML(e,h)}}return !c?p.appendChild(e):e})},create:function(n,a,h){return this.add(this.doc.createElement(n),n,a,h,1)},createHTML:function(n,a,h){var o="",t=this,k;o+="<"+n;for(k in a){if(a.hasOwnProperty(k)){o+=" "+k+'="'+t.encode(a[k])+'"'}}if(tinymce.is(h)){return o+">"+h+"</"+n+">"}return o+" />"},remove:function(n,k){return this.run(n,function(n){var p;p=n.parentNode;if(!p){return null}if(k){each(n.childNodes,function(c){p.insertBefore(c.cloneNode(true),n)})}return p.removeChild(n)})},setStyle:function(n,na,v){var t=this;return t.run(n,function(e){var s,i;s=e.style;na=na.replace(/-(\D)/g,function(a,b){return b.toUpperCase()});if(t.pixelStyles.test(na)&&(tinymce.is(v,"number")||/^[\-0-9\.]+$/.test(v))){v+="px"}switch(na){case"opacity":if(isIE){s.filter=v===""?"":"alpha(opacity="+(v*100)+")";if(!n.currentStyle||!n.currentStyle.hasLayout){s.display="inline-block"}}s["-moz-opacity"]=s["-khtml-opacity"]=v;break;case"float":isIE?s.styleFloat=v:s.cssFloat=v;break}s[na]=v||"";if(t.settings.update_styles){t.setAttrib(e,"mce_style")}})},getStyle:function(n,na,c){n=this.get(n);if(!n){return false}if(this.doc.defaultView&&c){na=na.replace(/[A-Z]/g,function(a){return"-"+a});try{return this.doc.defaultView.getComputedStyle(n,null).getPropertyValue(na)}catch(ex){return null}}na=na.replace(/-(\D)/g,function(a,b){return b.toUpperCase()});if(na=="float"){na=isIE?"styleFloat":"cssFloat"}if(n.currentStyle&&c){return n.currentStyle[na]}return n.style[na]},setStyles:function(e,o){var t=this,s=t.settings,ol;ol=s.update_styles;s.update_styles=0;each(o,function(v,n){t.setStyle(e,n,v)});s.update_styles=ol;if(s.update_styles){t.setAttrib(e,s.cssText)}},setAttrib:function(e,n,v){var t=this;if(t.settings.strict){n=n.toLowerCase()}return this.run(e,function(e){var s=t.settings;switch(n){case"style":if(s.keep_values){if(v){e.setAttribute("mce_style",v,2)}else{e.removeAttribute("mce_style",2)}}e.style.cssText=v;break;case"class":e.className=v;break;case"src":case"href":if(s.keep_values){if(s.url_converter){v=s.url_converter.call(s.url_converter_scope||t,v,n,e)}t.setAttrib(e,"mce_"+n,v,2)}break}if(is(v)&&v!==null&&v.length!==0){e.setAttribute(n,""+v,2)}else{e.removeAttribute(n,2)}})},setAttribs:function(e,o){var t=this;return this.run(e,function(e){each(o,function(v,n){t.setAttrib(e,n,v)})})},getAttrib:function(e,n,dv){var v,t=this;e=t.get(e);if(!e){return false}if(!is(dv)){dv=""}if(/^(src|href|style|coords)$/.test(n)){v=e.getAttribute("mce_"+n);if(v){return v}}v=e.getAttribute(n,2);if(!v){switch(n){case"class":v=e.className;break;default:v=e.attributes[n];v=v&&is(v.nodeValue)?v.nodeValue:v}}switch(n){case"style":v=v||e.style.cssText;if(v){v=t.serializeStyle(t.parseStyle(v));if(t.settings.keep_values){e.setAttribute("mce_style",v)}}break}if(isWebKit&&n==="class"&&v){v=v.replace(/(apple|webkit)\-[a-z\-]+/gi,"")}if(isIE){switch(n){case"rowspan":case"colspan":if(v===1){v=""}break;case"size":if(v==="+0"){v=""}break;case"hspace":if(v===-1){v=""}break;case"tabindex":if(v===32768){v=""}break;case"shape":v=v.toLowerCase();break;default:if(n.indexOf("on")===0&&v){v=(""+v).replace(/^function\s+anonymous\(\)\s+\{\s+(.*)\s+\}$/,"$1")}}}return(v&&v!="")?""+v:dv},getPos:function(n){var t=this,x=0,y=0,e,d=t.doc,r;n=t.get(n);if(n&&isIE){n=n.getBoundingClientRect();e=t.boxModel?d.documentElement:d.body;x=t.getStyle(t.select("html")[0],"borderWidth");x=(x=="medium"||t.boxModel&&!t.isIE6)&&2||x;n.top+=window.self!=window.top?2:0;return{x:n.left+e.scrollLeft-x,y:n.top+e.scrollTop-x}}r=n;while(r){x+=r.offsetLeft||0;y+=r.offsetTop||0;r=r.offsetParent}r=n;while(r){x-=r.scrollLeft||0;y-=r.scrollTop||0;r=r.parentNode;if(r==d.body){break}}return{x:x,y:y}},parseStyle:function(st){var t=this,s=t.settings,o={};if(!st){return o}function compress(p,s,ot){var t,r,b,l;t=o[p+"-top"+s];if(!t){return }r=o[p+"-right"+s];if(t!=r){return }b=o[p+"-bottom"+s];if(r!=b){return }l=o[p+"-left"+s];if(b!=l){return }o[ot]=l;delete o[p+"-top"+s];delete o[p+"-right"+s];delete o[p+"-bottom"+s];delete o[p+"-left"+s]}function compress2(ta,a,b,c){var t;t=o[a];if(!t){return }t=o[b];if(!t){return }t=o[c];if(!t){return }o[ta]=o[a]+" "+o[b]+" "+o[c];delete o[a];delete o[b];delete o[c]}each(st.split(";"),function(v){var sv,ur=[];if(v){v=v.replace(/url\([^\)]+\)/g,function(v){ur.push(v);return"url("+ur.length+")"});v=v.split(":");sv=tinymce.trim(v[1]);sv=sv.replace(/url\(([^\)]+)\)/g,function(a,b){return ur[parseInt(b)-1]});sv=sv.replace(/rgb\([^\)]+\)/g,function(v){return t.toHex(v)});if(s.url_converter){sv=sv.replace(/url\([\'\"]?([^\)\'\"]+)[\'\"]?\)/g,function(x,c){return"url("+t.encode(s.url_converter.call(s.url_converter_scope||t,t.decode(c),"style",null))+")"})}o[tinymce.trim(v[0]).toLowerCase()]=sv}});compress("border","","border");compress("border","-width","border-width");compress("border","-color","border-color");compress("border","-style","border-style");compress("padding","","padding");compress("margin","","margin");compress2("border","border-width","border-style","border-color");if(isIE){if(o.border=="medium none"){o.border=""}}return o},serializeStyle:function(o){var s="";each(o,function(v,k){if(k&&v){switch(k){case"color":case"background-color":v=v.toLowerCase();break}s+=(s?" ":"")+k+": "+v+";"}});return s},loadCSS:function(u){var t=this,d=this.doc;if(!u){u=""}each(u.split(","),function(u){if(t.files[u]){return }t.files[u]=true;if(!d.createStyleSheet){t.add(t.select("head")[0],"link",{rel:"stylesheet",href:u})}else{d.createStyleSheet(u)}})},addClass:function(e,c){return this.run(e,function(e){var o;if(!c){return 0}if(this.hasClass(e,c)){return e.className}o=this.removeClass(e,c);return e.className=(o!=""?(o+" "):"")+c})},removeClass:function(e,c){var t=this,re;return t.run(e,function(e){var v;if(t.hasClass(e,c)){if(!re){re=new RegExp("(^|\\s+)"+c+"(\\s+|$)","g")}v=e.className.replace(re," ");return e.className=tinymce.trim(v!=" "?v:"")}return e.className})},hasClass:function(n,c){n=this.get(n);if(!n||!c){return false}return(" "+n.className+" ").indexOf(" "+c+" ")!==-1},show:function(e){return this.setStyle(e,"display","block")},hide:function(e){return this.setStyle(e,"display","none")},isHidden:function(e){e=this.get(e);return e.style.display=="none"||this.getStyle(e,"display")=="none"},uniqueId:function(p){return(!p?"mce_":p)+(this.counter++)},setHTML:function(e,h){var t=this;return this.run(e,function(e){var x;h=t.processHTML(h);if(isIE){try{e.innerHTML="<br />"+h;e.removeChild(e.firstChild)}catch(ex){x=t.create("div");x.innerHTML="<br />"+h;each(x.childNodes,function(n,i){if(i>1){e.appendChild(n)}})}}else{e.innerHTML=h}return h})},processHTML:function(h){var t=this,s=t.settings;if(!s.process_html){return h}if(tinymce.isGecko){h=h.replace(/<(\/?)strong>|<strong( [^>]+)>/gi,"<$1b$2>");h=h.replace(/<(\/?)em>|<em( [^>]+)>/gi,"<$1i$2>")}h=h.replace(/<a( )([^>]+)\/>|<a\/>/gi,"<a$1$2></a>");if(s.keep_values){if(h.indexOf("<script")!==-1){h=h.replace(/<script>/g,'<script type="text/javascript">');h=h.replace(/<script(|[^>]+)>(\s*<!--|\/\/\s*<\[CDATA\[)?[\r\n]*/g,"<mce:script$1><!--\n");h=h.replace(/\s*(\/\/\s*-->|\/\/\s*]]>)?<\/script>/g,"\n// --></mce:script>");h=h.replace(/<mce:script(|[^>]+)><!--\n\/\/ --><\/mce:script>/g,"<mce:script$1></mce:script>")}h=h.replace(/<([\w:]+) [^>]*(src|href|style|coords)[^>]*>/gi,function(a,n){function handle(m,b,c){var u=c;if(a.indexOf("mce_"+b)!=-1){return m}if(b=="style"){if(s.hex_colors){u=u.replace(/rgb\([^\)]+\)/g,function(v){return t.toHex(v)})}if(s.url_converter){u=u.replace(/url\([\'\"]?([^\)\'\"]+)\)/g,function(x,c){return"url("+t.encode(s.url_converter.call(s.url_converter_scope||t,t.decode(c),b,n))+")"})}}else{if(b!="coords"){if(s.url_converter){u=t.encode(s.url_converter.call(s.url_converter_scope||t,t.decode(c),b,n))}}}return" "+b+'="'+c+'" mce_'+b+'="'+u+'"'}a=a.replace(/ (src|href|style|coords)=[\"]([^\"]+)[\"]/gi,handle);a=a.replace(/ (src|href|style|coords)=[\']([^\']+)[\']/gi,handle);return a.replace(/ (src|href|style|coords)=([^\s\"\'>]+)/gi,handle)})}return h},getOuterHTML:function(e){var d;e=this.get(e);if(!e){return null}if(isIE){return e.outerHTML}d=(e.ownerDocument||this.doc).createElement("body");d.appendChild(e.cloneNode(true));return d.innerHTML},setOuterHTML:function(e,h,d){var t=this;return this.run(e,function(e){var n,tp;e=t.get(e);d=d||e.ownerDocument||t.doc;if(isIE&&e.nodeType==1){e.outerHTML=h}else{tp=d.createElement("body");tp.innerHTML=h;n=tp.lastChild;while(n){t.insertAfter(n.cloneNode(true),e);n=n.previousSibling}t.remove(e)}})},decode:function(s){var e=document.createElement("div");e.innerHTML=s;return !e.firstChild?s:e.firstChild.nodeValue},encode:function(s){return s?(""+s).replace(/[<>&\"]/g,function(c,b){switch(c){case"&":return"&amp;";case'"':return"&quot;";case"<":return"&lt;";case">":return"&gt;"}return c}):s},insertAfter:function(n,r){var t=this;r=t.get(r);return this.run(n,function(n){var p,ns;p=r.parentNode;ns=r.nextSibling;if(ns){p.insertBefore(n,ns)}else{p.appendChild(n)}return n})},isBlock:function(n){if(n.nodeType&&n.nodeType!==1){return false}n=n.nodeName||n;return/^(H[1-6]|HR|P|DIV|ADDRESS|PRE|FORM|TABLE|LI|OL|UL|TD|CAPTION|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|FORM|NOSCRIPT|NOFRAMES|MENU|ISINDEX|SAMP)$/.test(n)},replace:function(n,o,k){if(is(o,"array")){n=n.cloneNode(true)}return this.run(o,function(o){if(k){each(o.childNodes,function(c){n.appendChild(c.cloneNode(true))})}return o.parentNode.replaceChild(n,o)})},toHex:function(s){var c=/^\s*rgb\s*?\(\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?,\s*?([0-9]+)\s*?\)\s*$/i.exec(s);function hex(s){s=parseInt(s).toString(16);return s.length>1?s:"0"+s}if(c){s="#"+hex(c[1])+hex(c[2])+hex(c[3]);return s}return s},getClasses:function(){var t=this,cl=[],i,lo={},f=t.settings.class_filter;if(t.classes){return t.classes}function addClasses(s){each(s.imports,function(r){addClasses(r)});each(s.cssRules||s.rules,function(r){switch(r.type||1){case 1:if(r.selectorText){each(r.selectorText.split(","),function(v){v=v.replace(/^\s*|\s*$|^\s\./g,"");if(f&&!(v=f(v))){return }if(/^\.mce/.test(v)||!/^\.[\w\-]+$/.test(v)){return }v=v.substring(1);if(!lo[v]){cl.push({"class":v});lo[v]=1}})}break;case 3:addClasses(r.styleSheet);break}})}try{each(t.doc.styleSheets,addClasses)}catch(ex){}if(cl.length>0){t.classes=cl}return cl},run:function(e,f,s){var t=this,o;if(typeof (e)==="string"){e=t.doc.getElementById(e)}if(!e){return false}s=s||this;if(!e.nodeType&&(e.length||e.length===0)){o=[];each(e,function(e,i){if(e){if(typeof (e)=="string"){e=t.doc.getElementById(e)}o.push(f.call(s,e,i))}});return o}return f.call(s,e)}});tinymce.DOM=new tinymce.dom.DOMUtils(document,{process_html:0})})();(function(){var E=tinymce.each,C=tinymce.DOM,B=tinymce.isIE,D=tinymce.isWebKit,A;tinymce.create("static tinymce.dom.Event",{inits:[],events:[],add:function(L,M,K,I){var F,G=this,H=G.events,J;if(L&&L instanceof Array){J=[];E(L,function(N){N=C.get(N);J.push(G.add(N,M,K,I))});return J}L=C.get(L);if(!L){return }F=function(N){N=N||window.event;if(N&&!N.target&&B){N.target=N.srcElement}if(!I){return K(N)}return K.call(I,N)};if(M=="unload"){tinymce.unloads.unshift({func:F});return F}if(M=="init"){if(G.domLoaded){F()}else{G.inits.push(F)}return F}H.push({obj:L,name:M,func:K,cfunc:F,scope:I});G._add(L,M,F);return K},remove:function(K,L,J){var G=this,F=G.events,H=false,I;if(K&&K instanceof Array){I=[];E(K,function(M){M=C.get(M);I.push(G.remove(M,L,J))});return I}K=C.get(K);E(F,function(N,M){if(N.obj==K&&N.name==L&&(!J||(N.func==J||N.cfunc==J))){F.splice(M,1);G._remove(K,L,N.cfunc);H=true;return false}});return H},cancel:function(F){if(!F){return false}this.stop(F);return this.prevent(F)},stop:function(F){if(F.stopPropagation){F.stopPropagation()}else{F.cancelBubble=true}return false},prevent:function(F){if(F.preventDefault){F.preventDefault()}else{F.returnValue=false}return false},_unload:function(){var F=A;E(F.events,function(H,G){F._remove(H.obj,H.name,H.cfunc);H.obj=H.cfunc=null});F.events=[];F=null},_add:function(G,H,F){if(G.attachEvent){G.attachEvent("on"+H,F)}else{if(G.addEventListener){G.addEventListener(H,F,false)}else{G["on"+H]=F}}},_remove:function(G,H,F){if(G.detachEvent){G.detachEvent("on"+H,F)}else{if(G.removeEventListener){G.removeEventListener(H,F,false)}else{G["on"+H]=null}}},_pageInit:function(){var F=A;F._remove(window,"DOMContentLoaded",F._pageInit);F.domLoaded=true;E(F.inits,function(G){G()});F.inits=[]},_wait:function(){var F;if(window.tinyMCE_GZ&&tinyMCE_GZ.loaded){return }if(B&&document.location.protocol!="https:"){document.write("<script id=__ie_onload defer src='javascript:\"\"';><\/script>");C.get("__ie_onload").onreadystatechange=function(){if(this.readyState=="complete"){A._pageInit();C.get("__ie_onload").onreadystatechange=null}}}else{A._add(window,"DOMContentLoaded",A._pageInit,A);if(B||D){F=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(F);A._pageInit()}},10)}}}});A=tinymce.dom.Event;A._wait();tinymce.addUnload(A._unload)})();(function(){var A=tinymce.each;tinymce.create("tinymce.dom.Element",{Element:function(F,D){var B=this,E,C;D=D||{};B.id=F;B.dom=E=D.dom||tinymce.DOM;B.settings=D;if(!tinymce.isIE){C=B.dom.get(B.id)}A(["getPos","getRect","getParent","add","setStyle","getStyle","setStyles","setAttrib","setAttribs","getAttrib","addClass","removeClass","hasClass","getOuterHTML","setOuterHTML","remove","show","hide","isHidden","setHTML","get"],function(G){B[G]=function(){var H=arguments,I;if(tinymce.isOpera){H=[F];A(arguments,function(J){H.push(J)})}else{Array.prototype.unshift.call(H,C||F)}I=E[G].apply(E,H);B.update(G);return I}})},on:function(D,C,B){return tinymce.dom.Event.add(this.id,D,C,B)},getXY:function(){return{x:parseInt(this.getStyle("left")),y:parseInt(this.getStyle("top"))}},getSize:function(){var B=this.dom.get(this.id);return{w:parseInt(this.getStyle("width")||B.clientWidth),h:parseInt(this.getStyle("height")||B.clientHeight)}},moveTo:function(B,C){this.setStyles({left:B,top:C})},moveBy:function(B,D){var C=this.getXY();this.moveTo(C.x+B,C.y+D)},resizeTo:function(B,C){this.setStyles({width:B,height:C})},resizeBy:function(B,D){var C=this.getSize();this.resizeTo(C.w+B,C.h+D)},update:function(C){var D=this,B,E=D.dom;if(tinymce.isIE6&&D.settings.blocker){C=C||"";if(C.indexOf("get")===0||C.indexOf("has")===0||C.indexOf("is")===0){return }if(C=="remove"){E.remove(D.blocker);return }if(!D.blocker){D.blocker=E.uniqueId();B=E.add(D.settings.container||E.getRoot(),"iframe",{id:D.blocker,style:"position:absolute;",frameBorder:0,src:'javascript:""'});E.setStyle(B,"opacity",0)}else{B=E.get(D.blocker)}E.setStyle(B,"left",D.getStyle("left",1));E.setStyle(B,"top",D.getStyle("top",1));E.setStyle(B,"width",D.getStyle("width",1));E.setStyle(B,"height",D.getStyle("height",1));E.setStyle(B,"display",D.getStyle("display",1));E.setStyle(B,"zIndex",parseInt(D.getStyle("zIndex",1)||0)-1)}}})})();(function(){var B=tinymce.is,A=tinymce.isIE,C=tinymce.each;tinymce.create("tinymce.dom.Selection",{Selection:function(G,F,E){var D=this;D.dom=G;D.win=F;D.serializer=E;tinymce.addUnload(function(){D.win=null})},getContent:function(E){var D=this,F=D.getRng(),J=D.dom.create("body"),H=D.getSel(),G,I,K;E=E||{};G=I="";E.get=true;E.format=E.format||"html";if(E.format=="text"){return D.isCollapsed()?"":(F.text||(H.toString?H.toString():""))}if(F.cloneContents){K=F.cloneContents();if(K){J.appendChild(K)}}else{if(B(F.item)||B(F.htmlText)){J.innerHTML=F.item?F.item(0).outerHTML:F.htmlText}else{J.innerHTML=F.toString()}}if(/^\s/.test(J.innerHTML)){G=" "}if(/\s+$/.test(J.innerHTML)){I=" "}E.getInner=true;return D.isCollapsed()?"":G+D.serializer.serialize(J,E)+I},setContent:function(F,E){var D=this,G=D.getRng(),H;E=E||{format:"html"};E.set=true;F=D.dom.processHTML(F);if(G.insertNode){H=D.win.document;if(tinymce.isGecko&&F.indexOf("<")==-1){G.deleteContents();G.insertNode(D.getRng().createContextualFragment(F+'<span id="__caret">_</span>'));D.select(D.dom.get("__caret"));D.getRng().deleteContents();return }if(H.queryCommandEnabled("InsertHTML")){return H.execCommand("InsertHTML",false,F)}G.deleteContents();G.insertNode(D.getRng().createContextualFragment(F))}else{if(G.item){G.item(0).outerHTML=F}else{G.pasteHTML(F)}}},getStart:function(){var D=this,E=D.getRng(),F;if(A){if(E.item){return E.item(0)}E=E.duplicate();E.collapse(1);F=E.parentElement();if(F.nodeName=="BODY"){return F.firstChild}return F}else{F=E.startContainer;if(F.nodeName=="BODY"){return F.firstChild}return D.dom.getParent(F,function(G){return G.nodeType==1})}},getEnd:function(){var D=this,E=D.getRng(),F;if(A){if(E.item){return E.item(0)}E=E.duplicate();E.collapse(0);F=E.parentElement();if(F.nodeName=="BODY"){return F.lastChild}return F}else{F=E.endContainer;if(F.nodeName=="BODY"){return F.lastChild}return D.dom.getParent(F,function(G){return G.nodeType==1})}},getBookmark:function(J){var Q=this,F=Q.getRng(),N,P,O,G=Q.dom.getViewPort(Q.win),L,H,E,D,M=-16777215,R,K=Q.dom.getRoot();P=G.x;O=G.y;if(J=="simple"){return{rng:F,scrollX:P,scrollY:O}}if(A){if(F.item){L=F.item(0);C(Q.dom.select(L.nodeName),function(T,S){if(L==T){H=S;return false}});return{tag:L.nodeName,index:H,scrollX:P,scrollY:O}}N=Q.dom.doc.body.createTextRange();N.moveToElementText(K);N.collapse(true);E=Math.abs(N.move("character",M));N=F.duplicate();N.collapse(true);H=Math.abs(N.move("character",M));N=F.duplicate();N.collapse(false);D=Math.abs(N.move("character",M))-H;return{start:H-E,length:D,scrollX:P,scrollY:O}}L=Q.getNode();R=Q.getSel();if(!R){return null}if(L&&L.nodeName=="IMG"){return{scrollX:P,scrollY:O}}function I(U,X,T){var S=document.createTreeWalker(U,NodeFilter.SHOW_TEXT,null,false),Y,V=0,W={};while((Y=S.nextNode())!=null){if(Y==X){W.start=V}if(Y==T){W.end=V;return W}V+=Y.nodeValue?Y.nodeValue.length:0}return null}if(R.anchorNode==R.focusNode&&R.anchorOffset==R.focusOffset){L=I(K,R.anchorNode,R.focusNode);if(!L){return{scrollX:P,scrollY:O}}return{start:L.start+R.anchorOffset,end:L.end+R.focusOffset,scrollX:P,scrollY:O}}else{L=I(K,F.startContainer,F.endContainer);if(!L){return{scrollX:P,scrollY:O}}return{start:L.start+F.startOffset,end:L.end+F.endOffset,scrollX:P,scrollY:O}}},moveToBookmark:function(J){var K=this,E=K.getRng(),L=K.getSel(),G=K.dom.getRoot(),H;function F(O,P,N){var M=document.createTreeWalker(O,NodeFilter.SHOW_TEXT,null,false),S,Q=0,R={};while((S=M.nextNode())!=null){Q+=S.nodeValue?S.nodeValue.length:0;if(Q>=P&&!R.startNode){R.startNode=S;R.startOffset=P-(Q-S.nodeValue.length)}if(Q>=N){R.endNode=S;R.endOffset=N-(Q-S.nodeValue.length);return R}}return null}if(!J){return false}K.win.scrollTo(J.scrollX,J.scrollY);if(A){if(E=J.rng){try{E.select()}catch(I){}return true}K.win.focus();if(J.tag){E=G.createControlRange();C(K.dom.select(J.tag),function(N,M){if(M==J.index){E.addElement(N)}})}else{try{if(J.start<0){return true}E=L.createRange();E.moveToElementText(G);E.collapse(true);E.moveStart("character",J.start);E.moveEnd("character",J.length)}catch(D){return true}}try{E.select()}catch(I){}return true}if(!L){return false}if(J.rng){L.removeAllRanges();L.addRange(J.rng)}else{if(B(J.start)&&B(J.end)){try{H=F(G,J.start,J.end);if(H){E=K.dom.doc.createRange();E.setStart(H.startNode,H.startOffset);E.setEnd(H.endNode,H.endOffset);L.removeAllRanges();L.addRange(E)}if(!tinymce.isOpera){K.win.focus()}}catch(I){}}}},select:function(E,J){var N=this,D=N.getRng(),O=N.getSel(),L,K,I,H=N.win.document;function F(P){return P?H.createTreeWalker(P,NodeFilter.SHOW_TEXT,null,false).nextNode():null}function M(S){var R,Q,P;if(!S){return null}P=H.createTreeWalker(S,NodeFilter.SHOW_TEXT,null,false);while(R=P.nextNode()){Q=R}return Q}if(A){try{L=H.body;if(/^(IMG|TABLE)$/.test(E.nodeName)){D=L.createControlRange();D.addElement(E)}else{D=L.createTextRange();D.moveToElementText(E)}D.select()}catch(G){}}else{if(J){K=F(E);I=M(E);if(K&&I){D=H.createRange();D.setStart(K,0);D.setEnd(I,I.nodeValue.length)}else{D.selectNode(E)}}else{D.selectNode(E)}N.setRng(D)}return E},isCollapsed:function(){var D=this,F=D.getRng(),E=D.getSel();if(!F||F.item){return false}return !E||F.boundingWidth==0||E.isCollapsed},collapse:function(D){var E=this,F=E.getRng(),G;if(F.item){G=F.item(0);F=this.win.document.body.createTextRange();F.moveToElementText(G)}F.collapse(!!D);E.setRng(F)},getSel:function(){var E=this,D=this.win;return D.getSelection?D.getSelection():D.document.selection},getRng:function(){var E=this,F=E.getSel(),G;try{if(F){G=F.rangeCount>0?F.getRangeAt(0):(F.createRange?F.createRange():E.win.document.createRange())}}catch(D){}if(!G){G=A?E.win.document.body.createTextRange():E.win.document.createRange()}return G},setRng:function(F){var E;if(!A){E=this.getSel();if(E){E.removeAllRanges();E.addRange(F)}}else{try{F.select()}catch(D){}}},setNode:function(E){var D=this;D.setContent(D.dom.getOuterHTML(E));return E},getNode:function(){var D=this,F=D.getRng(),E=D.getSel(),G;if(!A){if(!F){return D.dom.getRoot()}G=F.commonAncestorContainer;if(!F.collapsed){if(F.startContainer==F.endContainer||(tinymce.isWebKit&&F.startContainer==F.endContainer.parentNode)){if(F.startOffset-F.endOffset<2||tinymce.isWebKit){if(F.startContainer.hasChildNodes()){G=F.startContainer.childNodes[F.startOffset]}}}}return D.dom.getParent(G,function(H){return H.nodeType==1})}return F.item?F.item(0):F.parentElement()}})})();(function(){tinymce.create("tinymce.dom.XMLWriter",{node:null,XMLWriter:function(B){function A(){var D=document.implementation;if(!D||!D.createDocument){try{return new ActiveXObject("MSXML2.DOMDocument")}catch(C){}try{return new ActiveXObject("Microsoft.XmlDom")}catch(C){}}else{return D.createDocument("","",null)}}this.doc=A();this.reset()},reset:function(){var A=this,B=A.doc;if(B.firstChild){B.removeChild(B.firstChild)}A.node=B.appendChild(B.createElement("html"))},writeStartElement:function(B){var A=this;A.node=A.node.appendChild(A.doc.createElement(B))},writeAttribute:function(B,A){if(tinymce.isOpera){A=A.replace(/>/g,"|>")}this.node.setAttribute(B,A)},writeEndElement:function(){this.node=this.node.parentNode},writeFullEndElement:function(){var A=this,B=A.node;B.appendChild(A.doc.createTextNode(""));A.node=B.parentNode},writeText:function(A){if(tinymce.isOpera){A=A.replace(/>/g,"|>")}this.node.appendChild(this.doc.createTextNode(A))},writeCDATA:function(A){this.node.appendChild(this.doc.createCDATA(A))},writeComment:function(A){this.node.appendChild(this.doc.createComment(A))},getContent:function(){var A;A=this.doc.xml||new XMLSerializer().serializeToString(this.doc);A=A.replace(/<\?[^?]+\?>|<html>|<\/html>|<html\/>|<!DOCTYPE[^>]+>/g,"");A=A.replace(/ ?\/>/g," />");if(tinymce.isOpera){A=A.replace(/\|>/g,"&gt;")}return A}})})();(function(){var F=tinymce.extend,D=tinymce.each,A=tinymce.util.Dispatcher,C=tinymce.isIE;function E(H){var G=[];if(H.nodeName=="OBJECT"){return H.attributes}H.cloneNode(false).outerHTML.replace(/([a-z0-9\-_]+)=/gi,function(J,I){G.push({specified:1,nodeName:I})});return G}function B(G){return G.replace(/([?+*])/g,".$1")}tinymce.create("tinymce.dom.Serializer",{Serializer:function(H){var G=this;G.key=0;G.onPreProcess=new A(G);G.onPostProcess=new A(G);G.writer=new tinymce.dom.XMLWriter();G.settings=H=F({dom:tinymce.DOM,valid_nodes:0,node_filter:0,attr_filter:0,invalid_attrs:/^(mce_|_moz_$)/,closed:/(br|hr|input|meta|img|link|param)/,entity_encoding:"named",entities:"160,nbsp,161,iexcl,162,cent,163,pound,164,curren,165,yen,166,brvbar,167,sect,168,uml,169,copy,170,ordf,171,laquo,172,not,173,shy,174,reg,175,macr,176,deg,177,plusmn,178,sup2,179,sup3,180,acute,181,micro,182,para,183,middot,184,cedil,185,sup1,186,ordm,187,raquo,188,frac14,189,frac12,190,frac34,191,iquest,192,Agrave,193,Aacute,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,201,Eacute,202,Ecirc,203,Euml,204,Igrave,205,Iacute,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,211,Oacute,212,Ocirc,213,Otilde,214,Ouml,215,times,216,Oslash,217,Ugrave,218,Uacute,219,Ucirc,220,Uuml,221,Yacute,222,THORN,223,szlig,224,agrave,225,aacute,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,233,eacute,234,ecirc,235,euml,236,igrave,237,iacute,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,243,oacute,244,ocirc,245,otilde,246,ouml,247,divide,248,oslash,249,ugrave,250,uacute,251,ucirc,252,uuml,253,yacute,254,thorn,255,yuml,402,fnof,913,Alpha,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,977,thetasym,978,upsih,982,piv,8226,bull,8230,hellip,8242,prime,8243,Prime,8254,oline,8260,frasl,8472,weierp,8465,image,8476,real,8482,trade,8501,alefsym,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8704,forall,8706,part,8707,exist,8709,empty,8711,nabla,8712,isin,8713,notin,8715,ni,8719,prod,8721,sum,8722,minus,8727,lowast,8730,radic,8733,prop,8734,infin,8736,ang,8743,and,8744,or,8745,cap,8746,cup,8747,int,8756,there4,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8804,le,8805,ge,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,338,OElig,339,oelig,352,Scaron,353,scaron,376,Yuml,710,circ,732,tilde,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,8211,ndash,8212,mdash,8216,lsquo,8217,rsquo,8218,sbquo,8220,ldquo,8221,rdquo,8222,bdquo,8224,dagger,8225,Dagger,8240,permil,8249,lsaquo,8250,rsaquo,8364,euro",valid_elements:"*[*]",extended_valid_elements:0,valid_child_elements:0,invalid_elements:0,fix_table_elements:0,fix_list_elements:true,fix_content_duplication:true,convert_fonts_to_spans:false,font_size_classes:0,font_size_style_values:0,apply_source_formatting:0,indent_mode:"simple",indent_char:"\t",indent_levels:1,remove_linebreaks:1},H);G.dom=H.dom;if(H.fix_list_elements){G.onPreProcess.add(function(P,M){var J,R,Q=["ol","ul"],O,N,L,I=/^(OL|UL)$/,S;function K(V,W){var T=W.split(","),U;while((V=V.previousSibling)!=null){for(U=0;U<T.length;U++){if(V.nodeName==T[U]){return V}}}return null}for(R=0;R<Q.length;R++){J=G.dom.select(Q[R],M.node);for(O=0;O<J.length;O++){N=J[O];L=N.parentNode;if(I.test(L.nodeName)){S=K(N,"LI");if(!S){S=G.dom.create("li");S.innerHTML="&nbsp;";S.appendChild(N);L.insertBefore(S,L.firstChild)}else{S.appendChild(N)}}}}})}if(H.fix_table_elements){G.onPreProcess.add(function(J,L){var I=[],K=G.dom.doc;D(G.dom.select("table",L.node),function(Q){var O=G.dom.getParent(Q,"H1,H2,H3,H4,H5,H6,P"),P=[],M,N;if(O){G.dom.getParent(Q,function(R){if(R!=Q){P.push(R.nodeName)}});N="";for(M=0;M<P.length;M++){N+="</"+P[M]+">"}N+=G.dom.getOuterHTML(Q);for(M=P.length-1;M>=0;M--){N+="<"+P[M]+">"}I.push(N);Q.parentNode.replaceChild(K.createComment("mcetable:"+(I.length-1)),Q)}});G.dom.setHTML(L.node,L.node.innerHTML.replace(/<!--mcetable:([0-9]+)-->/g,function(N,M){return I[parseInt(M)]}))})}},setEntities:function(M){var K=this,H,J,G={},L="",I;if(K.entityLookup){return }H=M.split(",");for(J=0;J<H.length;J+=2){I=H[J];if(I==34||I==38||I==60||I==62){continue}G[String.fromCharCode(H[J])]=H[J+1];I=parseInt(H[J]).toString(16);L+="\\u"+"0000".substring(I.length)+I}if(!L){K.settings.entity_encoding="raw";return }K.entitiesRE=new RegExp("["+L+"]","g");K.entityLookup=G},setValidChildRules:function(G){this.childRules=null;this.addValidChildRules(G)},addValidChildRules:function(J){var I=this,K,G,H;if(!J){return }K="A|BR|SPAN|BDO|MAP|OBJECT|IMG|TT|I|B|BIG|SMALL|EM|STRONG|DFN|CODE|Q|SAMP|KBD|VAR|CITE|ABBR|ACRONYM|SUB|SUP|#text|#comment";G="A|BR|SPAN|BDO|OBJECT|APPLET|IMG|MAP|IFRAME|TT|I|B|U|S|STRIKE|BIG|SMALL|FONT|BASEFONT|EM|STRONG|DFN|CODE|Q|SAMP|KBD|VAR|CITE|ABBR|ACRONYM|SUB|SUP|INPUT|SELECT|TEXTAREA|LABEL|BUTTON|#text|#comment";H="H[1-6]|P|DIV|ADDRESS|PRE|FORM|TABLE|LI|OL|UL|TD|CAPTION|BLOCKQUOTE|CENTER|DL|DT|DD|DIR|FIELDSET|FORM|NOSCRIPT|NOFRAMES|MENU|ISINDEX|SAMP";D(J.split(","),function(M){var N=M.split(/\[|\]/),L;M="";D(N[1].split("|"),function(O){if(M){M+="|"}switch(O){case"%itrans":O=G;break;case"%itrans_na":O=G.substring(2);break;case"%istrict":O=K;break;case"%istrict_na":O=K.substring(2);break;case"%btrans":O=H;break;case"%bstrict":O=H;break}M+=O});L=new RegExp("^("+M.toLowerCase()+")$","i");D(N[0].split("/"),function(O){I.childRules=I.childRules||{};I.childRules[O]=L})});J="";D(I.childRules,function(M,L){if(J){J+="|"}J+=L});I.parentElementsRE=new RegExp("^("+J.toLowerCase()+")$","i")},setRules:function(H){var G=this;G._setup();G.rules={};G.wildRules=[];G.validElements={};return G.addRules(H)},addRules:function(H){var G=this,I;if(!H){return }G._setup();D(H.split(","),function(L){var O=L.split(/\[|\]/),K=O[0].split("/"),P,J,N,M=[];if(I){J=tinymce.extend([],I.attribs)}if(O.length>1){D(O[1].split("|"),function(S){var Q={},R;J=J||[];S=S.replace(/::/g,"~");S=/^([!\-])?([\w*.?~]+|)([=:<])?(.+)?$/.exec(S);S[2]=S[2].replace(/~/g,":");if(S[1]=="!"){P=P||[];P.push(S[2])}if(S[1]=="-"){for(R=0;R<J.length;R++){if(J[R].name==S[2]){J.splice(R,1);return }}}switch(S[3]){case"=":Q.defaultVal=S[4]||"";break;case":":Q.forcedVal=S[4];break;case"<":Q.validVals=S[4].split("?");break}if(/[*.?]/.test(S[2])){N=N||[];Q.nameRE=new RegExp("^"+B(S[2])+"$");N.push(Q)}else{Q.name=S[2];J.push(Q)}M.push(S[2])})}D(K,function(T,S){var U=T.charAt(0),R=1,Q={};if(I){if(I.noEmpty){Q.noEmpty=I.noEmpty}if(I.fullEnd){Q.fullEnd=I.fullEnd}if(I.padd){Q.padd=I.padd}}switch(U){case"-":Q.noEmpty=true;break;case"+":Q.fullEnd=true;break;case"#":Q.padd=true;break;default:R=0}K[S]=T=T.substring(R);G.validElements[T]=1;if(/[*.?]/.test(K[0])){Q.nameRE=new RegExp("^"+B(K[0])+"$");G.wildRules=G.wildRules||{};G.wildRules.push(Q)}else{Q.name=K[0];if(K[0]=="@"){I=Q}G.rules[T]=Q}Q.attribs=J;if(P){Q.requiredAttribs=P}if(N){T="";D(M,function(V){if(T){T+="|"}T+="("+B(V)+")"});Q.validAttribsRE=new RegExp("^"+T.toLowerCase()+"$");Q.wildAttribs=N}})});H="";D(G.validElements,function(K,J){if(H){H+="|"}if(J!="@"){H+=J}});G.validElementsRE=new RegExp("^("+B(H.toLowerCase())+")$")},findRule:function(K){var H=this,J=H.rules,G,I;H._setup();I=J[K];if(I){return I}J=H.wildRules;for(G=0;G<J.length;G++){if(J[G].nameRE.test(K)){return J[G]}}return null},findAttribRule:function(G,J){var H,I=G.wildAttribs;for(H=0;H<I.length;H++){if(I[H].nameRE.test(J)){return I[H]}}return null},serialize:function(J,I){var H,G=this;G._setup();I=I||{};I.format=I.format||"html";G.processObj=I;J=J.cloneNode(true);G.key=""+(parseInt(G.key)+1);if(!I.no_events){I.node=J;G.onPreProcess.dispatch(G,I)}G.writer.reset();G._serializeNode(J,I.getInner);I.content=G.writer.getContent();if(!I.no_events){G.onPostProcess.dispatch(G,I)}G._postProcess(I);I.node=null;return tinymce.trim(I.content)},_postProcess:function(M){var H=this,J=H.settings,I=M.content,L=[],K,G;if(M.format=="html"){K=H._protect({content:I,patterns:[/(<script[^>]*>)(.*?)(<\/script>)/g,/(<style[^>]*>)(.*?)(<\/style>)/g,/(<pre[^>]*>)(.*?)(<\/pre>)/g]});I=K.content;if(J.entity_encoding!=="raw"){if(J.entity_encoding.indexOf("named")!=-1){H.setEntities(J.entities);G=H.entityLookup;I=I.replace(H.entitiesRE,function(N){var O;if(O=G[N]){N="&"+O+";"}return N})}if(J.entity_encoding.indexOf("numeric")!=-1){I=I.replace(/[\u007E-\uFFFF]/g,function(N){return"&#"+N.charCodeAt(0)+";"})}}if(M.set){I=I.replace(/<p>\s+(&nbsp;|&#160;|\u00a0|<br \/>)\s+<\/p>/g,"<p><br /></p>")}else{I=I.replace(/<p>\s+(&nbsp;|&#160;|\u00a0|<br \/>)\s+<\/p>/g,"<p>$1</p>")}if(!M.set){if(J.remove_linebreaks){I=I.replace(/(<[^>]+>)\s+/g,"$1 ");I=I.replace(/\s+(<\/[^>]+>)/g," $1");I=I.replace(/<(p|h[1-6]|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object) ([^>]+)>\s+/g,"<$1 $2>");I=I.replace(/<(p|h[1-6]|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>\s+/g,"<$1>");I=I.replace(/\s+<\/(p|h[1-6]|hr|div|table|tbody|tr|td|body|head|html|title|meta|style|pre|script|link|object)>/g,"</$1>")}if(J.apply_source_formatting&&J.indent_mode=="simple"){I=I.replace(/<(\/?)(ul|hr|table|meta|link|tbody|tr|object|body|head|html|map)(|[^>]+)>\s*/g,"\n<$1$2$3>\n");I=I.replace(/\s*<(p|h[1-6]|div|title|style|pre|script|td|li|area)(|[^>]+)>/g,"\n<$1$2>");I=I.replace(/<\/(p|h[1-6]|div|title|style|pre|script|td|li)>\s*/g,"</$1>\n");I=I.replace(/\n\n/g,"\n")}}I=H._unprotect(I,K)}M.content=I},_serializeNode:function(U,J){var Q=this,R=Q.settings,O=Q.writer,L,H,N,W,V,X,S,G,P,I,M,T,K;if(!R.node_filter||R.node_filter(U)){switch(U.nodeType){case 1:if(U.hasAttribute?U.hasAttribute("mce_bogus"):U.getAttribute("mce_bogus")){return }K=false;L=U.hasChildNodes();I=U.getAttribute("mce_name")||U.nodeName.toLowerCase();if(C){if(U.scopeName!=="HTML"&&U.scopeName!=="html"){I=U.scopeName+":"+I}}if(I.indexOf("mce:")===0){I=I.substring(4)}if(!Q.validElementsRE.test(I)||(Q.invalidElementsRE&&Q.invalidElementsRE.test(I))||J){K=true;break}if(C){if(R.fix_content_duplication){if(U.mce_serialized==Q.key){return }U.mce_serialized=Q.key}if(I.charAt(0)=="/"){I=I.substring(1)}}if(Q.childRules){if(Q.parentElementsRE.test(Q.elementName)){if(!Q.childRules[Q.elementName].test(I)){K=true;break}}Q.elementName=I}M=Q.findRule(I);I=M.name||I;if((!L&&M.noEmpty)||(C&&!I)){K=true;break}if(M.requiredAttribs){X=M.requiredAttribs;for(W=X.length-1;W>=0;W--){if(this.dom.getAttrib(U,X[W])!==""){break}}if(W==-1){K=true;break}}O.writeStartElement(I);if(M.attribs){for(W=0,S=M.attribs,V=S.length;W<V;W++){X=S[W];P=Q._getAttrib(U,X);if(P!==null){O.writeAttribute(X.name,P)}}}if(M.validAttribsRE){S=C?E(U):U.attributes;for(W=S.length-1;W>-1;W--){G=S[W];if(G.specified){X=G.nodeName.toLowerCase();if(R.invalid_attrs.test(X)||!M.validAttribsRE.test(X)){continue}T=Q.findAttribRule(M,X);P=Q._getAttrib(U,T,X);if(P!==null){O.writeAttribute(X,P)}}}}if(!L&&M.padd){O.writeText("\u00a0")}break;case 3:if(Q.childRules&&Q.parentElementsRE.test(Q.elementName)){if(!Q.childRules[Q.elementName].test(U.nodeName)){return }}return O.writeText(U.nodeValue);case 4:return O.writeCDATA(U.nodeValue);case 8:return O.writeComment(U.nodeValue)}}else{if(U.nodeType==1){L=U.hasChildNodes()}}if(L){N=U.firstChild;while(N){Q._serializeNode(N);Q.elementName=I;N=N.nextSibling}}if(!K){if(L||!R.closed.test(I)){O.writeFullEndElement()}else{O.writeEndElement()}}},_protect:function(H){H.items=H.items||[];function G(J){return J.replace(/[\r\n]/g,function(K){if(K==="\n"){return"\\n"}return"\\r"})}function I(J){return J.replace(/\\[rn]/g,function(K){if(K==="\\n"){return"\n"}return"\r"})}D(H.patterns,function(J){H.content=I(G(H.content).replace(J,function(L,M,K,N){H.items.push(I(K));return M+"<!--mce:"+(H.items.length-1)+"-->"+N}))});return H},_unprotect:function(G,H){G=G.replace(/\<!--mce:([0-9]+)--\>/g,function(J,I){return H.items[parseInt(I)]});H.items=[];return G},_setup:function(){var G=this,H=this.settings;if(G.done){return }G.done=1;G.setRules(H.valid_elements);G.addRules(H.extended_valid_elements);G.addValidChildRules(H.valid_child_elements);if(H.invalid_elements){G.invalidElementsRE=new RegExp("^("+B(H.invalid_elements.replace(",","|").toLowerCase())+")$")}if(H.attrib_value_filter){G.attribValueFilter=H.attribValueFilter}},_getAttrib:function(K,H,G){var J,I;G=G||H.name;if(H.forcedVal&&(I=H.forcedVal)){if(I==="{$uid}"){return this.dom.uniqueId()}return I}I=this.dom.getAttrib(K,G);switch(G){case"rowspan":case"colspan":if(I=="1"){I=""}break}if(this.attribValueFilter){I=this.attribValueFilter(G,I,K)}if(H.validVals){for(J=H.validVals.length-1;J>=0;J--){if(I==H.validVals[J]){break}}if(J==-1){return null}}if(I===""&&typeof (H.defaultVal)!="undefined"){I=H.defaultVal;if(I==="{$uid}"){return this.dom.uniqueId()}return I}else{if(G=="class"&&this.processObj.get){I=I.replace(/\bmceItem\w+\b/g,"")}}if(I===""){return null}return I}})})();(function(){var each=tinymce.each;tinymce.create("tinymce.dom.ScriptLoader",{ScriptLoader:function(s){this.settings=s||{};this.queue=[];this.lookup={}},markDone:function(u){this.lookup[u]={state:2,url:u}},add:function(u,cb,s,pr){var t=this,lo=t.lookup,o;if(o=lo[u]){if(cb&&o.state==2){cb.call(s||this)}return o}o={state:0,url:u,func:cb,scope:s||this};if(pr){t.queue.unshift(o)}else{t.queue.push(o)}lo[u]=o;return o},load:function(u,cb,s){var t=this,o;function loadScript(u){if(tinymce.dom.Event.domLoaded||t.settings.strict_mode){tinymce.util.XHR.send({url:u,error:t.settings.error,async:false,success:function(co){t.eval(co)}})}else{document.write('<script type="text/javascript" src="'+u+'"><\/script>')}}if(!tinymce.is(u,"string")){each(u,function(u){loadScript(u)});if(cb){cb.call(s||t)}}else{loadScript(u);if(cb){cb.call(s||t)}}},loadQueue:function(cb,s){var t=this;if(!t.queueLoading){t.queueLoading=1;t.queueCallbacks=[];t.loadScripts(t.queue,function(){t.queueLoading=0;if(cb){cb.call(s||t)}each(t.queueCallbacks,function(o){o.func.call(o.scope)})})}else{if(cb){t.queueCallbacks.push({func:cb,scope:s||t})}}},eval:function(co){var w=window;if(!w.execScript){try{eval.call(w,co)}catch(ex){eval(co,w)}}else{w.execScript(co)}},loadScripts:function(sc,cb,s){var t=this,lo=t.lookup;function done(o){o.state=2;if(o.func){o.func.call(o.scope||t)}}function allDone(){var l;l=sc.length;each(sc,function(o){o=lo[o.url];if(o.state===2){done(o);l--}else{load(o)}});if(l===0&&cb){cb.call(s||t);cb=0}}function load(o){if(o.state>0){return }o.state=1;tinymce.util.XHR.send({url:o.url,error:t.settings.error,success:function(co){t.eval(co);done(o);allDone()}})}each(sc,function(o){var u=o.url;if(!lo[u]){lo[u]=o;t.queue.push(o)}else{o=lo[u]}if(o.state>0){return }if(!tinymce.dom.Event.domLoaded&&!t.settings.strict_mode){var ix,ol="";if(cb||o.func){o.state=1;ix=tinymce.dom.ScriptLoader._addOnLoad(function(){done(o);allDone()});if(tinymce.isIE){ol=' onreadystatechange="'}else{ol=' onload="'}ol+="tinymce.dom.ScriptLoader._onLoad(this,'"+u+"',"+ix+');"'}document.write('<script type="text/javascript" src="'+u+'"'+ol+"><\/script>");if(!o.func){done(o)}}else{load(o)}});allDone()},"static":{_addOnLoad:function(f){var t=this;t._funcs=t._funcs||[];t._funcs.push(f);return t._funcs.length-1},_onLoad:function(e,u,ix){if(!tinymce.isIE||e.readyState=="complete"){this._funcs[ix].call(this)}}}});tinymce.ScriptLoader=new tinymce.dom.ScriptLoader()})();(function(){var B=tinymce.DOM,A=tinymce.is;tinymce.create("tinymce.ui.Control",{Control:function(D,C){this.id=D;this.settings=C=C||{};this.rendered=false;this.onRender=new tinymce.util.Dispatcher(this);this.classPrefix="";this.scope=C.scope||this;this.disabled=0;this.active=0},setDisabled:function(C){var D;if(C!=this.disabled){D=B.get(this.id);if(D&&this.settings.unavailable_prefix){if(C){this.prevTitle=D.title;D.title=this.settings.unavailable_prefix+": "+D.title}else{D.title=this.prevTitle}}this.setState("Disabled",C);this.setState("Enabled",!C);this.disabled=C}},isDisabled:function(){return this.disabled},setActive:function(C){if(C!=this.active){this.setState("Active",C);this.active=C}},isActive:function(){return this.active},setState:function(E,C){var D=B.get(this.id);E=this.classPrefix+E;if(C){B.addClass(D,E)}else{B.removeClass(D,E)}},isRendered:function(){return this.rendered},renderHTML:function(){},renderTo:function(C){B.setHTML(C,this.renderHTML())},postRender:function(){var D=this,C;if(A(D.disabled)){C=D.disabled;D.disabled=-1;D.setDisabled(C)}if(A(D.active)){C=D.active;D.active=-1;D.setActive(C)}},destroy:function(){B.remove(this.id)}})})();tinymce.create("tinymce.ui.Container:tinymce.ui.Control",{Container:function(B,A){this.parent(B,A);this.controls=[];this.lookup={}},add:function(A){this.lookup[A.id]=A;this.controls.push(A);return A},get:function(A){return this.lookup[A]}});tinymce.create("tinymce.ui.Separator:tinymce.ui.Control",{renderHTML:function(){return tinymce.DOM.createHTML("span",{"class":"mceSeparator"})}});(function(){var C=tinymce.is,B=tinymce.DOM,D=tinymce.each,A=tinymce.walk;tinymce.create("tinymce.ui.MenuItem:tinymce.ui.Control",{MenuItem:function(F,E){this.parent(F,E);this.classPrefix="mceMenuItem"},setSelected:function(E){this.setState("Selected",E);this.selected=E},isSelected:function(){return this.selected},postRender:function(){var E=this;E.parent();if(C(E.selected)){E.setSelected(E.selected)}}})})();(function(){var C=tinymce.is,B=tinymce.DOM,D=tinymce.each,A=tinymce.walk;tinymce.create("tinymce.ui.Menu:tinymce.ui.MenuItem",{Menu:function(G,F){var E=this;E.parent(G,F);E.items={};E.collapsed=false;E.menuCount=0;E.onAddItem=new tinymce.util.Dispatcher(this)},expand:function(F){var E=this;if(F){A(E,function(G){if(G.expand){G.expand()}},"items",E)}E.collapsed=false},collapse:function(F){var E=this;if(F){A(E,function(G){if(G.collapse){G.collapse()}},"items",E)}E.collapsed=true},isCollapsed:function(){return this.collapsed},add:function(E){if(!E.settings){E=new tinymce.ui.MenuItem(E.id||B.uniqueId(),E)}this.onAddItem.dispatch(this,E);return this.items[E.id]=E},addSeparator:function(){return this.add({separator:true})},addMenu:function(E){if(!E.collapse){E=this.createMenu(E)}this.menuCount++;return this.add(E)},hasMenus:function(){return this.menuCount!==0},remove:function(E){delete this.items[E.id]},removeAll:function(){var E=this;A(E,function(F){if(F.removeAll){F.removeAll()}F.destroy()},"items",E);E.items={}},createMenu:function(F){var E=new tinymce.ui.Menu(F.id||B.uniqueId(),F);E.onAddItem.add(this.onAddItem.dispatch,this.onAddItem);return E}})})();(function(){var D=tinymce.is,C=tinymce.DOM,E=tinymce.each,A=tinymce.dom.Event,B=tinymce.dom.Element;tinymce.create("tinymce.ui.DropMenu:tinymce.ui.Menu",{DropMenu:function(G,F){F=F||{};F.container=F.container||document.body;F.offset_x=F.offset_x||0;F.offset_y=F.offset_y||0;F.vp_offset_x=F.vp_offset_x||0;F.vp_offset_y=F.vp_offset_y||0;if(D(F.icons)&&!F.icons){F["class"]+=" noIcons"}this.parent(G,F);this.onHideMenu=new tinymce.util.Dispatcher(this);this.classPrefix="mceMenu"},createMenu:function(I){var G=this,H=G.settings,F;I.container=I.container||H.container;I.parent=G;I.constrain=I.constrain||H.constrain;I["class"]=I["class"]||H["class"];I.vp_offset_x=I.vp_offset_x||H.vp_offset_x;I.vp_offset_y=I.vp_offset_y||H.vp_offset_y;F=new tinymce.ui.DropMenu(I.id||C.uniqueId(),I);F.onAddItem.add(G.onAddItem.dispatch,G.onAddItem);return F},update:function(){var H=this,I=H.settings,F=C.get("menu_"+H.id+"_tbl"),K=C.get("menu_"+H.id+"_co"),G,J;G=I.max_width?Math.min(F.clientWidth,I.max_width):F.clientWidth;J=I.max_height?Math.min(F.clientHeight,I.max_height):F.clientHeight;if(!C.boxModel){H.element.setStyles({width:G+2,height:J+2})}else{H.element.setStyles({width:G,height:J})}if(I.max_width){C.setStyle(K,"width",G)}if(I.max_height){C.setStyle(K,"height",J);if(F.clientHeight<I.max_height){C.setStyle(K,"overflow","hidden")}}},showMenu:function(M,K,O){var R=this,S=R.settings,L,F=C.getViewPort(),P,J,Q,N,G=2,I,H;R.collapse(1);if(R.isMenuVisible){return }if(!R.rendered){L=C.add(R.settings.container,R.renderNode());E(R.items,function(T){T.postRender()});R.element=new B("menu_"+R.id,{blocker:1,container:S.container})}else{L=C.get("menu_"+R.id)}C.setStyles(L,{left:-65535,top:-65535});C.show(L);R.update();M+=S.offset_x||0;K+=S.offset_y||0;F.w-=4;F.h-=4;if(S.constrain){P=L.clientWidth-G;J=L.clientHeight-G;Q=F.x+F.w;N=F.y+F.h;if((M+S.vp_offset_x+P)>Q){M=O?O-P:Math.max(0,(Q-S.vp_offset_x)-P)}if((K+S.vp_offset_y+J)>N){K=Math.max(0,(N-S.vp_offset_y)-J)}}C.setStyles(L,{left:M,top:K});R.element.update();R.isMenuVisible=1;R.mouseClickFunc=A.add(L,"click",function(U){var T;U=U.target;if(U&&(U=C.getParent(U,"TR"))&&!C.hasClass(U,"mceMenuItemSub")){T=R.items[U.id];if(T.isDisabled()){return }if(T.settings.onclick){T.settings.onclick(U)}I=R;while(I){if(I.hideMenu){I.hideMenu()}I=I.settings.parent}return A.cancel(U)}});if(R.hasMenus()){R.mouseOverFunc=A.add(L,"mouseover",function(W){var T,V,U;W=W.target;if(W&&(W=C.getParent(W,"TR"))){T=R.items[W.id];if(R.lastMenu){R.lastMenu.collapse(1)}if(T.isDisabled()){return }if(W&&C.hasClass(W,"mceMenuItemSub")){V=C.getRect(W);T.showMenu((V.x+V.w-G),V.y-G,V.x);R.lastMenu=T;C.addClass(C.get(T.id).firstChild,"mceMenuItemActive")}}})}},hideMenu:function(I){var F=this,H=C.get("menu_"+F.id),G;if(!F.isMenuVisible){return }A.remove(H,"mouseover",F.mouseOverFunc);A.remove(H,"click",F.mouseClickFunc);C.hide(H);F.isMenuVisible=0;if(!I){F.collapse(1)}if(F.element){F.element.hide()}if(G=C.get(F.id)){C.removeClass(G.firstChild,"mceMenuItemActive")}F.onHideMenu.dispatch(F)},add:function(H){var F=this,G;H=F.parent(H);if(F.isRendered&&(G=C.get("menu_"+F.id))){F._add(C.select("tbody",G)[0],H)}return H},collapse:function(F){this.parent(F);this.hideMenu(1)},remove:function(F){C.remove(F.id);return this.parent(F)},destroy:function(){var F=this,G=C.get("menu_"+F.id);A.remove(G,"mouseover",F.mouseOverFunc);A.remove(G,"click",F.mouseClickFunc);if(F.element){F.element.remove()}C.remove(G)},renderNode:function(){var H=this,I=H.settings,K,G,J,F;F=C.create("div",{id:"menu_"+H.id,"class":I["class"],"style":"position:absolute;left:0;top:0;z-index:150"});J=C.add(F,"div",{id:"menu_"+H.id+"_co","class":"mceMenu"+(I["class"]?" "+I["class"]:"")});H.element=new B("menu_"+H.id,{blocker:1,container:I.container});if(I.menu_line){C.add(J,"span",{"class":"mceMenuLine"})}K=C.add(J,"table",{id:"menu_"+H.id+"_tbl",border:0,cellPadding:0,cellSpacing:0});G=C.add(K,"tbody");E(H.items,function(L){H._add(G,L)});H.rendered=true;return F},_add:function(G,K){var L,I=K.settings,F,J,H;if(I.separator){J=C.add(G,"tr",{id:K.id,"class":"mceMenuItemSeparator"});C.add(J,"td",{"class":"mceMenuItemSeparator"});if(L=J.previousSibling){C.addClass(L,"last")}return }L=J=C.add(G,"tr",{id:K.id,"class":"mceMenuItem mceMenuItemEnabled"});L=H=C.add(L,"td");L=F=C.add(L,"a",{href:"javascript:;",onclick:"return false;",onmousedown:"return false;"});C.addClass(H,I["class"]);C.add(L,"span",{"class":"icon"+(I.icon?" "+I.icon:"")});L=C.add(L,I.element||"span",{"class":"text",title:K.settings.title},K.settings.title);if(K.settings.style){C.setAttrib(L,"style",K.settings.style)}if(G.childNodes.length==1){C.addClass(J,"first")}if((L=J.previousSibling)&&C.hasClass(L,"mceMenuItemSeparator")){C.addClass(J,"first")}if(K.collapse){C.addClass(J,"mceMenuItemSub")}if(L=J.previousSibling){C.removeClass(L,"last")}C.addClass(J,"last")}})})();(function(){var A=tinymce.DOM;tinymce.create("tinymce.ui.Button:tinymce.ui.Control",{Button:function(C,B){this.parent(C,B);this.classPrefix="mceButton"},renderHTML:function(){var C=this.settings,B='<a id="'+this.id+'" href="javascript:;" class="mceButton mceButtonEnabled '+C["class"]+'" onmousedown="return false;" onclick="return false;" title="'+A.encode(C.title)+'">';if(C.image){B+='<img class="icon" src="'+C.image+'" /></a>'}else{B+='<span class="icon '+C["class"]+'"></span></a>'}return B},postRender:function(){var B=this,C=B.settings;tinymce.dom.Event.add(B.id,"click",function(D){if(!B.isDisabled()){return C.onclick.call(C.scope,D)}})}})})();(function(){var C=tinymce.DOM,B=tinymce.dom.Event,D=tinymce.each,A=tinymce.util.Dispatcher;tinymce.create("tinymce.ui.ListBox:tinymce.ui.Control",{ListBox:function(G,F){var E=this;E.parent(G,F);E.items=[];E.onChange=new A(E);E.onPostRender=new A(E);E.onAdd=new A(E);E.onRenderMenu=new tinymce.util.Dispatcher(this);E.classPrefix="mceListBox"},select:function(E){var F=this,H,G;if(E!=F.selectedValue){H=C.get(F.id+"_text");F.selectedValue=E;D(F.items,function(I){if(I.value==E){C.setHTML(H,C.encode(I.title));G=1;return false}});if(!G){C.setHTML(H,C.encode(F.settings.title));C.addClass(H,"title");H=0;return }else{C.removeClass(H,"title")}}H=0},add:function(H,E,G){var F=this;G=G||{};G=tinymce.extend(G,{title:H,value:E});F.items.push(G);F.onAdd.dispatch(F,G)},getLength:function(){return this.items.length},renderHTML:function(){var G="",E=this,F=E.settings;G='<table id="'+E.id+'" cellpadding="0" cellspacing="0" class="mceListBox mceListBoxEnabled'+(F["class"]?(" "+F["class"]):"")+'"><tbody><tr>';G+="<td>"+C.createHTML("a",{id:E.id+"_text",href:"javascript:;","class":"text",onclick:"return false;",onmousedown:"return false;"},C.encode(E.settings.title))+"</td>";G+="<td>"+C.createHTML("a",{id:E.id+"_open",href:"javascript:;","class":"open",onclick:"return false;",onmousedown:"return false;"},"<span></span>")+"</td>";G+="</tr></tbody></table>";return G},showMenu:function(){var F=this,I,H,G=C.get(this.id),E;if(F.isDisabled()||F.items.length==0){return }if(!F.isMenuRendered){F.renderMenu();F.isMenuRendered=true}I=C.getPos(this.settings.menu_container);H=C.getPos(G);E=F.menu;E.settings.offset_x=H.x;E.settings.offset_y=H.y;if(F.oldID){E.items[F.oldID].setSelected(0)}D(F.items,function(J){if(J.value===F.selectedValue){E.items[J.id].setSelected(1);F.oldID=J.id}});E.showMenu(0,G.clientHeight);B.add(document,"mousedown",F.hideMenu,F);C.addClass(F.id,"mceListBoxSelected")},hideMenu:function(F){var E=this;if(!F||!C.getParent(F.target,function(G){return C.hasClass(G,"mceMenu")})){C.removeClass(E.id,"mceListBoxSelected");B.remove(document,"mousedown",E.hideMenu,E);if(E.menu){E.menu.hideMenu()}}},renderMenu:function(){var F=this,E;E=F.settings.control_manager.createDropMenu(F.id+"_menu",{menu_line:1,"class":"mceListBoxMenu noIcons",max_width:150,max_height:150});E.onHideMenu.add(F.hideMenu,F);E.add({title:F.settings.title,"class":"mceMenuItemTitle"}).setDisabled(1);D(F.items,function(G){G.id=C.uniqueId();G.onclick=function(){if(F.settings.onselect(G.value)!==false){F.select(G.value)}};E.add(G)});F.onRenderMenu.dispatch(F,E);F.menu=E},postRender:function(){var E=this;B.add(E.id,"click",E.showMenu,E);if(tinymce.isIE6||!C.boxModel){B.add(E.id,"mouseover",function(){if(!C.hasClass(E.id,"mceListBoxDisabled")){C.addClass(E.id,"mceListBoxHover")}});B.add(E.id,"mouseout",function(){if(!C.hasClass(E.id,"mceListBoxDisabled")){C.removeClass(E.id,"mceListBoxHover")}})}E.onPostRender.dispatch(E,C.get(E.id))}})})();(function(){var C=tinymce.DOM,B=tinymce.dom.Event,D=tinymce.each,A=tinymce.util.Dispatcher;tinymce.create("tinymce.ui.NativeListBox:tinymce.ui.ListBox",{NativeListBox:function(F,E){this.parent(F,E);this.classPrefix="mceNativeListBox"},setDisabled:function(E){C.get(this.id).disabled=E},isDisabled:function(){return C.get(this.id).disabled},select:function(E){var G=C.get(this.id),F=G.options;E=""+(E||"");G.selectedIndex=0;D(F,function(I,H){if(I.value==E){G.selectedIndex=H;return false}})},add:function(I,F,E){var H,G=this;E=E||{};E.value=F;if(G.isRendered()){C.add(C.get(this.id),"option",E,I)}H={title:I,value:F,attribs:E};G.items.push(H);G.onAdd.dispatch(G,H)},getLength:function(){return C.get(this.id).options.length-1},renderHTML:function(){var F,E=this;F=C.createHTML("option",{value:""},"-- "+E.settings.title+" --");D(E.items,function(G){F+=C.createHTML("option",{value:G.value},G.title)});F=C.createHTML("select",{id:E.id,"class":"mceNativeListBox"},F);return F},postRender:function(){var F=this,G;F.rendered=true;function E(I){var H=I.target.options[I.target.selectedIndex].value;F.onChange.dispatch(F,H);if(F.settings.onselect){F.settings.onselect(H)}}B.add(F.id,"change",E);B.add(F.id,"keydown",function(I){var H;B.remove(F.id,"change",G);H=B.add(F.id,"blur",function(){B.add(F.id,"change",E);B.remove(F.id,"blur",H)});if(I.keyCode==13||I.keyCode==32){E(I);return B.cancel(I)}});F.onPostRender.dispatch(F,C.get(F.id))}})})();(function(){var B=tinymce.DOM,A=tinymce.dom.Event,C=tinymce.each;tinymce.create("tinymce.ui.MenuButton:tinymce.ui.Button",{MenuButton:function(E,D){this.parent(E,D);this.onRenderMenu=new tinymce.util.Dispatcher(this);D.menu_container=D.menu_container||document.body},showMenu:function(){var E=this,H,G,F=B.get(E.id),D;if(E.isDisabled()){return }if(!E.isMenuRendered){E.renderMenu();E.isMenuRendered=true}H=B.getPos(E.settings.menu_container);G=B.getPos(F);D=E.menu;D.settings.offset_x=G.x;D.settings.offset_y=G.y;D.settings.vp_offset_x=G.x;D.settings.vp_offset_y=G.y;D.showMenu(0,F.clientHeight);A.add(document,"mousedown",E.hideMenu,E);E.setState("Selected",1)},renderMenu:function(){var E=this,D;D=E.settings.control_manager.createDropMenu(E.id+"_menu",{menu_line:1,"class":this.classPrefix+"Menu",icons:E.settings.icons});D.onHideMenu.add(E.hideMenu,E);E.onRenderMenu.dispatch(E,D);E.menu=D},hideMenu:function(E){var D=this;if(!E||!B.getParent(E.target,function(F){return B.hasClass(F,"mceMenu")})){D.setState("Selected",0);A.remove(document,"mousedown",D.hideMenu,D);if(D.menu){D.menu.hideMenu()}}},postRender:function(){var D=this,E=D.settings;A.add(D.id,"click",function(){if(!D.isDisabled()){if(E.onclick){E.onclick(D.value)}D.showMenu()}})}})})();(function(){var B=tinymce.DOM,A=tinymce.dom.Event,C=tinymce.each;tinymce.create("tinymce.ui.SplitButton:tinymce.ui.MenuButton",{SplitButton:function(E,D){this.parent(E,D);this.classPrefix="mceSplitButton"},renderHTML:function(){var G,E=this,F=E.settings,D;G="<tbody><tr>";if(F.image){D=B.createHTML("img ",{src:F.image,"class":"action "+F["class"]})}else{D=B.createHTML("span",{"class":"action "+F["class"]})}G+="<td>"+B.createHTML("a",{id:E.id+"_action",href:"javascript:;","class":"action "+F["class"],onclick:"return false;",onmousedown:"return false;",title:F.title},D)+"</td>";D=B.createHTML("span",{"class":"open "+F["class"]});G+="<td>"+B.createHTML("a",{id:E.id+"_open",href:"javascript:;","class":"open "+F["class"],onclick:"return false;",onmousedown:"return false;",title:F.title},D)+"</td>";G+="</tr></tbody>";return B.createHTML("table",{id:E.id,"class":"mceSplitButton mceSplitButtonEnabled "+F["class"],cellpadding:"0",cellspacing:"0",onmousedown:"return false;",title:F.title},G)},postRender:function(){var D=this,E=D.settings;if(E.onclick){A.add(D.id+"_action","click",function(){if(!D.isDisabled()){E.onclick(D.value)}})}A.add(D.id+"_open","click",D.showMenu,D);if(tinymce.isIE6||!B.boxModel){A.add(D.id,"mouseover",function(){if(!B.hasClass(D.id,"mceSplitButtonDisabled")){B.addClass(D.id,"mceSplitButtonHover")}});A.add(D.id,"mouseout",function(){if(!B.hasClass(D.id,"mceSplitButtonDisabled")){B.removeClass(D.id,"mceSplitButtonHover")}})}}})})();(function(){var C=tinymce.DOM,A=tinymce.dom.Event,B=tinymce.is,D=tinymce.each;tinymce.create("tinymce.ui.ColorSplitButton:tinymce.ui.SplitButton",{ColorSplitButton:function(G,F){var E=this;E.parent(G,F);E.settings=F=tinymce.extend({colors:"000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,008000,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF",grid_width:8,default_color:"#888888"},E.settings);E.value=F.default_color},showMenu:function(){var E=this,F,H,G;if(E.isDisabled()){return }if(!E.isMenuRendered){E.renderMenu();E.isMenuRendered=true}G=C.get(E.id);C.show(E.id+"_menu");C.addClass(G,"mceSplitButtonSelected");p2=C.getPos(G);C.setStyles(E.id+"_menu",{left:p2.x,top:p2.y+G.clientHeight,zIndex:150});G=0;A.add(document,"mousedown",E.hideMenu,E)},hideMenu:function(F){var E=this;if(!F||!C.getParent(F.target,function(G){return C.hasClass(G,"mceSplitButtonMenu")})){C.removeClass(E.id,"mceSplitButtonSelected");A.remove(document,"mousedown",E.hideMenu,E);C.hide(E.id+"_menu")}},renderMenu:function(){var I=this,E,H=0,J=I.settings,L,G,K,F;F=C.add(J.menu_container,"div",{id:I.id+"_menu","class":J["menu_class"]+" "+J["class"],style:"position:absolute;left:0;top:-1000px;"});E=C.add(F,"div",{"class":J["class"]+" mceSplitButtonMenu"});C.add(E,"span",{"class":"mceMenuLine"});L=C.add(E,"table",{"class":"mceColorSplitMenu"});G=C.add(L,"tbody");H=0;D(B(J.colors,"array")?J.colors:J.colors.split(","),function(M){M=M.replace(/^#/,"");if(!H--){K=C.add(G,"tr");H=J.grid_width-1}L=C.add(K,"td");L=C.add(L,"a",{href:"javascript:;",style:{backgroundColor:"#"+M}});A.add(L,"mousedown",function(){I.setColor("#"+M)})});if(J.more_colors_func){L=C.add(G,"tr");L=C.add(L,"td",{colspan:J.grid_width,"class":"morecolors"});L=C.add(L,"a",{href:"javascript:;",onclick:"return false;","class":"morecolors"},J.more_colors_title);A.add(L,"click",function(M){J.more_colors_func.call(J.more_colors_scope||this);return A.cancel(M)})}C.addClass(E,"mceColorSplitMenu");return F},setColor:function(L){var F=this,I,G=this.settings,J=G.menu_container,E,H,K=F.id+"_preview";if(!(I=C.get(K))){C.setStyle(F.id+"_action","position","relative");I=C.add(F.id+"_action","div",{id:K,"class":"mceColorPreview"})}I.style.backgroundColor=L;F.value=L;F.hideMenu();G.onselect(L)}})})();tinymce.create("tinymce.ui.Toolbar:tinymce.ui.Container",{renderHTML:function(){var A=this,C="",F="mceToolbarEnd",E,D=tinymce.DOM,B=A.settings;C+=D.createHTML("td",{"class":"mceToolbarStart"},D.createHTML("span",null,"<!-- IE -->"));tinymce.each(A.controls,function(G){C+="<td>"+G.renderHTML()+"</td>"});E=A.controls[A.controls.length-1].constructor;if(E===tinymce.ui.Button){F+=" mceToolbarEndButton"}else{if(E===tinymce.ui.SplitButton){F+=" mceToolbarEndSplitButton"}else{if(E===tinymce.ui.ListBox){F+=" mceToolbarEndListBox"}}}C+=D.createHTML("td",{"class":F},D.createHTML("span",null,"<!-- IE -->"));return D.createHTML("table",{id:A.id,"class":"mceToolbar"+(B["class"]?" "+B["class"]:""),cellpadding:"0",cellspacing:"0",align:A.settings.align||""},"<tbody><tr>"+C+"</tr></tbody>")}});(function(){var A=tinymce.util.Dispatcher,B=tinymce.each;tinymce.create("tinymce.AddOnManager",{items:[],urls:{},lookup:{},onAdd:new A(this),get:function(C){return this.lookup[C]},requireLangPack:function(E){var C,D;if(tinymce.EditorManager.settings){C=this.urls[E]+"/langs/"+tinymce.EditorManager.settings.language+".js";D=tinymce.EditorManager.settings;if(D){if(!tinymce.dom.Event.domLoaded&&!D.strict_mode){tinymce.ScriptLoader.load(C)}else{tinymce.ScriptLoader.add(C)}}}},add:function(D,C){this.items.push(C);this.lookup[D]=C;this.onAdd.dispatch(this,D,C);return C},load:function(F,D,C,E){if(D.indexOf("/")!=0&&D.indexOf("://")==-1){D=tinymce.baseURL+"/"+D}this.urls[F]=D.substring(0,D.lastIndexOf("/"));tinymce.ScriptLoader.add(D,C,E)}});tinymce.PluginManager=new tinymce.AddOnManager();tinymce.ThemeManager=new tinymce.AddOnManager()}());(function(){var E=tinymce.each,F=tinymce.extend,D=tinymce.DOM,A=tinymce.dom.Event,C=tinymce.ThemeManager,B=tinymce.PluginManager;tinymce.create("static tinymce.EditorManager",{editors:{},i18n:{},activeEditor:null,init:function(J){var H=this,I,G=tinymce.ScriptLoader;function K(N,O,L){var M=N[O];if(!M){return }if(tinymce.is(M,"string")){L=M.replace(/\.\w+$/,"");L=L?tinymce.resolve(L):0;M=tinymce.resolve(M)}return M.apply(L||this,Array.prototype.slice.call(arguments,2))}J=F({theme:"simple",language:"en",strict_loading_mode:document.contentType=="application/xhtml+xml"},J);H.settings=J;if(!A.domLoaded&&!J.strict_loading_mode){if(J.language){G.add(tinymce.baseURL+"/langs/"+J.language+".js")}if(J.theme&&J.theme.charAt(0)!="-"){C.load(J.theme,"themes/"+J.theme+"/editor_template"+tinymce.suffix+".js")}if(J.plugins){I=J.plugins.split(",");if(tinymce.inArray(I,"compat2x")!=-1){B.load("compat2x","plugins/compat2x/editor_plugin"+tinymce.suffix+".js")}E(I,function(L){if(L&&L.charAt(0)!="-"){if(!tinymce.isWebKit&&L=="safari"){return }B.load(L,"plugins/"+L+"/editor_plugin"+tinymce.suffix+".js")}})}G.loadQueue()}A.add(document,"init",function(){var L,N;K(J,"onpageload");if(J.browsers){L=false;E(J.browsers.split(","),function(O){switch(O){case"ie":case"msie":if(tinymce.isIE){L=true}break;case"gecko":if(tinymce.isGecko){L=true}break;case"safari":case"webkit":if(tinymce.isWebKit){L=true}break;case"opera":if(tinymce.isOpera){L=true}break}});if(!L){return }}switch(J.mode){case"exact":L=J.elements||"";E(L.split(","),function(O){new tinymce.Editor(O,J).render()});break;case"textareas":function M(P,O){return new RegExp("\\b"+O+"\\b","g").test(P.className)}E(D.select("textarea"),function(O){if(J.editor_deselector&&M(O,J.editor_deselector)){return }if(!J.editor_selector||M(O,J.editor_selector)){new tinymce.Editor(O.id=(O.id||O.name||(O.id=D.uniqueId())),J).render()}});break}if(J.oninit){L=N=0;E(H.editors,function(O){N++;if(!O.initialized){O.onInit.add(function(){L++;if(L==N){K(J,"oninit")}})}else{L++}if(L==N){K(J,"oninit")}})}})},get:function(G){return this.editors[G]},getInstanceById:function(G){return this.get(G)},add:function(G){this.editors[G.id]=G;this._setActive(G);return G},remove:function(H){var G=this;if(!G.editors[H.id]){return null}delete G.editors[H.id];if(G.activeEditor==H){E(G.editors,function(I){G._setActive(I);return false})}H._destroy();return H},execCommand:function(K,I,H){var J=this,G=J.get(H);switch(K){case"mceFocus":G.focus();return true;case"mceAddEditor":case"mceAddControl":new tinymce.Editor(H,J.settings).render();return true;case"mceAddFrameControl":return true;case"mceRemoveEditor":case"mceRemoveControl":G.remove();return true;case"mceToggleEditor":if(!G){J.execCommand("mceAddControl",0,H);return true}if(G.isHidden()){G.show()}else{G.hide()}return true}if(J.activeEditor){return J.activeEditor.execCommand(K,I,H)}return false},execInstanceCommand:function(K,J,I,H){var G=this.get(K);if(G){return G.execCommand(J,I,H)}return false},triggerSave:function(){E(this.editors,function(G){G.save()})},addI18n:function(I,J){var G,H=this.i18n;if(!tinymce.is(I,"string")){E(I,function(L,K){E(L,function(N,M){E(N,function(P,O){if(M==="common"){H[K+"."+O]=P}else{H[K+"."+M+"."+O]=P}})})})}else{E(J,function(L,K){H[I+"."+K]=L})}},_setActive:function(G){this.selectedInstance=this.activeEditor=G}});tinymce.documentBaseURL=window.location.href.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,"");if(!/[\/\\]$/.test(tinymce.documentBaseURL)){tinymce.documentBaseURL+="/"}tinymce.baseURL=new tinymce.util.URI(tinymce.documentBaseURL).toAbsolute(tinymce.baseURL);tinymce.EditorManager.baseURI=new tinymce.util.URI(tinymce.baseURL)})();var tinyMCE=window.tinyMCE=tinymce.EditorManager;(function(){var M=tinymce.DOM,J=tinymce.dom.Event,F=tinymce.extend,K=tinymce.util.Dispatcher;var I=tinymce.each,A=tinymce.isGecko,B=tinymce.isIE,E=tinymce.isWebKit;var D=tinymce.is,G=tinymce.ThemeManager,C=tinymce.PluginManager,H=tinymce.EditorManager;var N=tinymce.inArray,L=tinymce.grep;tinymce.create("tinymce.Editor",{Editor:function(Q,P){var O=this;O.id=O.editorId=Q;O.execCommands={};O.queryStateCommands={};O.queryValueCommands={};O.plugins={};I(["onPreInit","onBeforeRenderUI","onPostRender","onInit","onRemove","onActivate","onDeactivate","onClick","onEvent","onMouseUp","onMouseDown","onDblClick","onKeyDown","onKeyUp","onKeyPress","onContextMenu","onSubmit","onReset","onPaste","onPreProcess","onPostProcess","onBeforeSetContent","onBeforeGetContent","onSetContent","onGetContent","onLoadContent","onSaveContent","onNodeChange","onChange","onBeforeExecCommand","onExecCommand","onUndo","onRedo","onVisualAid","onSetProgressState"],function(R){O[R]=new K(O)});O.settings=P=F({id:Q,language:"en",docs_language:"en",theme:"simple",skin:"default",delta_width:0,delta_height:0,popup_css:"",plugins:"",document_base_url:tinymce.documentBaseURL,add_form_submit_trigger:1,submit_patch:1,add_unload_trigger:1,convert_urls:1,relative_urls:1,remove_script_host:1,table_inline_editing:0,object_resizing:1,cleanup:1,accessibility_focus:1,custom_shortcuts:1,custom_undo_redo_keyboard_shortcuts:1,custom_undo_redo_restore_selection:1,custom_undo_redo:1,doctype:'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">',visual_table_class:"mceItemTable",visual:1,inline_styles:true,convert_fonts_to_spans:true,font_size_style_values:"xx-small,x-small,small,medium,large,x-large,xx-large",apply_source_formatting:1,directionality:"ltr",forced_root_block:"p",valid_elements:"@[id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],a[rel|rev|charset|hreflang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur],strong/b,em/i,strike,u,#p[align],-ol[type|compact],-ul[type|compact],-li,br,img[longdesc|usemap|src|border|alt=|title|hspace|vspace|width|height|align],-sub,-sup,-blockquote,-table[border=0|cellspacing|cellpadding|width|frame|rules|height|align|summary|bgcolor|background|bordercolor],-tr[rowspan|width|height|align|valign|bgcolor|background|bordercolor],tbody,thead,tfoot,#td[colspan|rowspan|width|height|align|valign|bgcolor|background|bordercolor|scope],#th[colspan|rowspan|width|height|align|valign|scope],caption,-div,-span,-pre,address,-h1,-h2,-h3,-h4,-h5,-h6,hr[size|noshade],-font[face|size|color],dd,dl,dt,cite,abbr,acronym,del[datetime|cite],ins[datetime|cite],object[classid|width|height|codebase|*],param[name|value|_value],embed[type|width|height|src|*],script[type],map[name],area[shape|coords|href|alt|target]",hidden_input:1,padd_empty_editor:1,render_ui:1,init_theme:1,indentation:"30px"},P);O.documentBaseURI=new tinymce.util.URI(P.document_base_url||tinymce.documentBaseURL,{base_uri:tinyMCE.baseURI});O.baseURI=H.baseURI;O.execCallback("setup",O)},render:function(){var Q=this,R=Q.settings,S=Q.id,O=tinymce.ScriptLoader;if(!Q.getElement()){return }if(R.strict_loading_mode){O.settings.strict_mode=R.strict_loading_mode;tinymce.DOM.settings.strict=1}if(!/TEXTAREA|INPUT/i.test(Q.getElement().nodeName)&&R.hidden_input&&M.getParent(S,"form")){M.insertAfter(M.create("input",{type:"hidden",name:S}),S)}Q.windowManager=new tinymce.WindowManager(Q);if(R.encoding=="xml"){Q.onGetContent.add(function(T,U){if(U.get){U.content=M.encode(U.content)}})}if(R.add_form_submit_trigger){Q.onSubmit.addToTop(function(){if(Q.initialized){Q.save();Q.isNotDirty=1}})}J.add(document,"unload",function(){if(Q.initialized&&!Q.destroyed&&R.add_unload_trigger){Q.save({format:"raw",no_events:true})}});tinymce.addUnload(Q._destroy,Q);if(R.submit_patch){Q.onBeforeRenderUI.add(function(){var T=Q.getElement().form;if(!T){return }if(T._mceOldSubmit){return }if(!T.submit.nodeType){Q.formElement=T;T._mceOldSubmit=T.submit;T.submit=function(){H.triggerSave();Q.isNotDirty=1;return this._mceOldSubmit(this)}}T=null})}function P(){O.add(tinymce.baseURL+"/langs/"+R.language+".js");if(R.theme.charAt(0)!="-"){G.load(R.theme,"themes/"+R.theme+"/editor_template"+tinymce.suffix+".js")}I(R.plugins.split(","),function(T){if(T&&T.charAt(0)!="-"){if(!E&&T=="safari"){return }C.load(T,"plugins/"+T+"/editor_plugin"+tinymce.suffix+".js")}});O.loadQueue(function(){if(R.ask){function T(){Q.windowManager.confirm(Q.getLang("edit_confirm"),function(U){if(U){Q.init()}else{J.remove(Q.id,"focus",T)}})}J.add(Q.id,"focus",T);return }if(!Q.removed){Q.init()}})}if(R.plugins.indexOf("compat2x")!=-1){C.load("compat2x","plugins/compat2x/editor_plugin"+tinymce.suffix+".js");O.loadQueue(P)}else{P()}},init:function(){var Q,V=this,W=V.settings,U,S,T=V.getElement(),P,O;H.add(V);W.theme=W.theme.replace(/-/,"");P=G.get(W.theme);V.theme=new P();if(V.theme.init&&W.init_theme){V.theme.init(V,G.urls[W.theme]||tinymce.documentBaseURL.replace(/\/$/,""))}I(W.plugins.replace(/\-/g,"").split(","),function(Z){var a=C.get(Z),Y=C.urls[Z]||tinymce.documentBaseURL.replace(/\/$/,""),X;if(a){X=new a(V,Y);V.plugins[Z]=X;if(X.init){X.init(V,Y)}}});W.popup_css=V.baseURI.toAbsolute(W.popup_css||"themes/"+W.theme+"/skins/"+W.skin+"/dialog.css");if(W.popup_css_add){W.popup_css+=","+W.popup_css_add}V.controlManager=new tinymce.ControlManager(V);V.undoManager=new tinymce.UndoManager(V);V.undoManager.onAdd.add(function(Y,X){return V.onChange.dispatch(V,X,Y)});V.undoManager.onUndo.add(function(Y,X){return V.onUndo.dispatch(V,X,Y)});V.undoManager.onRedo.add(function(Y,X){return V.onRedo.dispatch(V,X,Y)});if(W.custom_undo_redo){V.onExecCommand.add(function(X,Y){if(Y!="Undo"&&Y!="Redo"&&Y!="mceRepaint"){V.undoManager.add()}})}V.onExecCommand.add(function(X,Y){if(!/^(FontName|FontSize)$/.test(Y)){V.nodeChanged()}});if(A){function R(){V.execCommand("mceRepaint")}V.onUndo.add(R);V.onRedo.add(R);V.onSetContent.add(R)}V.onBeforeRenderUI.dispatch(V,V.controlManager);if(W.render_ui){U=W.width||T.style.width||T.clientWidth;S=W.height||T.style.height||T.clientHeight;V.orgDisplay=T.style.display;if((""+U).indexOf("%")==-1){U=Math.max(parseInt(U)+(P.deltaWidth||0),100)}if((""+S).indexOf("%")==-1){S=Math.max(parseInt(S)+(P.deltaHeight||0),100)}P=V.theme.renderUI({targetNode:T,width:U,height:S,deltaWidth:W.delta_width,deltaHeight:W.delta_height});V.editorContainer=P.editorContainer}M.setStyles(P.sizeContainer||P.editorContainer,{width:U,height:S});S=(P.iframeHeight||S)+((S+"").indexOf("%")==-1?(P.deltaHeight||0):"");if(S<100){S=100}Q=M.add(P.iframeContainer,"iframe",{id:W.id+"_ifr",src:'javascript:""',frameBorder:"0",style:{width:"100%",height:S}});V.contentAreaContainer=P.iframeContainer;M.get(P.editorContainer).style.display=V.orgDisplay;M.get(W.id).style.display="none";if(tinymce.isOldWebKit){J.add(Q,"load",V.setupIframe,V);Q.src=tinymce.baseURL+"/plugins/safari/blank.htm"}else{V.setupIframe();T=Q=P=null}},setupIframe:function(){var P=this,Q=P.settings,R=M.get(Q.id),S=P.getDoc();S.open();S.write(Q.doctype+'<html><head xmlns="http://www.w3.org/1999/xhtml"><base href="'+P.documentBaseURI.getURI()+'" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body id="tinymce" class="mceContentBody"></body></html>');S.close();if(!B){try{S.designMode="On"}catch(O){}}if(B){P.getBody().contentEditable=true}P.dom=new tinymce.DOM.DOMUtils(P.getDoc(),{keep_values:true,url_converter:P.convertURL,url_converter_scope:P,hex_colors:Q.force_hex_style_colors,class_filter:Q.class_filter,update_styles:1});P.serializer=new tinymce.dom.Serializer({entity_encoding:Q.entity_encoding,entities:Q.entities,valid_elements:Q.verify_html===false?"*[*]":Q.valid_elements,extended_valid_elements:Q.extended_valid_elements,valid_child_elements:Q.valid_child_elements,invalid_elements:Q.invalid_elements,fix_table_elements:Q.fix_table_elements,fix_list_elements:Q.fix_list_elements,fix_content_duplication:Q.fix_content_duplication,convert_fonts_to_spans:Q.convert_fonts_to_spans,font_size_classes:Q.font_size_classes,font_size_style_values:Q.font_size_style_values,apply_source_formatting:Q.apply_source_formatting,remove_linebreaks:Q.remove_linebreaks,dom:P.dom});P.selection=new tinymce.dom.Selection(P.dom,P.getWin(),P.serializer);P.forceBlocks=new tinymce.ForceBlocks(P,{forced_root_block:Q.forced_root_block});P.editorCommands=new tinymce.EditorCommands(P);P.serializer.onPreProcess.add(function(T,U){return P.onPreProcess.dispatch(P,U,T)});P.serializer.onPostProcess.add(function(T,U){return P.onPostProcess.dispatch(P,U,T)});P.onPreInit.dispatch(P);if(!Q.gecko_spellcheck){P.getBody().spellcheck=0}P._addEvents();P.controlManager.onPostRender.dispatch(P,P.controlManager);P.onPostRender.dispatch(P);if(Q.directionality){P.getBody().dir=Q.directionality}if(Q.nowrap){P.getBody().style.whiteSpace="nowrap"}if(Q.auto_resize){P.onNodeChange.add(P.resizeToContent,P)}if(Q.handle_node_change_callback){P.onNodeChange.add(function(U,T,V){P.execCallback("handle_node_change_callback",P.id,V,-1,-1,true,P.selection.isCollapsed())})}if(Q.save_callback){P.onSaveContent.add(function(T,V){var U=P.execCallback("save_callback",P.id,V.content,P.getBody());if(U){V.content=U}})}if(Q.onchange_callback){P.onChange.add(function(U,T){P.execCallback("onchange_callback",P,T)})}if(Q.convert_newlines_to_brs){P.onBeforeSetContent.add(function(T,U){if(U.initial){U.content=U.content.replace(/\r?\n/g,"<br />")}})}if(Q.fix_nesting&&B){P.onBeforeSetContent.add(function(T,U){U.content=P._fixNesting(U.content)})}if(Q.preformatted){P.onPostProcess.add(function(T,U){U.content=U.content.replace(/^\s*<pre.*?>/,"");U.content=U.content.replace(/<\/pre>\s*$/,"");if(U.set){U.content='<pre class="mceItemHidden">'+U.content+"</pre>"}})}if(Q.verify_css_classes){P.serializer.attribValueFilter=function(W,U){var V,T;if(W=="class"){if(!P.classesRE){T=P.dom.getClasses();if(T.length>0){V="";I(T,function(X){V+=(V?"|":"")+X["class"]});P.classesRE=new RegExp("("+V+")","gi")}}return !P.classesRE||/(\bmceItem\w+\b|\bmceTemp\w+\b)/g.test(U)||P.classesRE.test(U)?U:""}return U}}if(Q.convert_fonts_to_spans){P._convertFonts()}if(Q.inline_styles){P._convertInlineElements()}if(Q.cleanup_callback){P.onBeforeSetContent.add(function(T,U){U.content=P.execCallback("cleanup_callback","insert_to_editor",U.content,U)});P.onPreProcess.add(function(T,U){if(U.set){P.execCallback("cleanup_callback","insert_to_editor_dom",U.node,U)}if(U.get){P.execCallback("cleanup_callback","get_from_editor_dom",U.node,U)}});P.onPostProcess.add(function(T,U){if(U.set){U.content=P.execCallback("cleanup_callback","insert_to_editor",U.content,U)}if(U.get){U.content=P.execCallback("cleanup_callback","get_from_editor",U.content,U)}})}if(Q.save_callback){P.onGetContent.add(function(T,U){if(U.save){U.content=P.execCallback("save_callback",P.id,U.content,P.getBody())}})}if(Q.handle_event_callback){P.onEvent.add(function(T,U,V){if(P.execCallback("handle_event_callback",U,T,V)===false){J.cancel(U)}})}P.onSetContent.add(function(){P.addVisual(P.getBody())});if(Q.padd_empty_editor){P.onPostProcess.add(function(T,U){U.content=U.content.replace(/^<p>(&nbsp;|#160;|\s)<\/p>$/,"")})}if(A){try{S.designMode="Off";S.designMode="On"}catch(O){}}setTimeout(function(){if(P.removed){return }P.load({initial:true,format:(Q.cleanup_on_startup?"html":"raw")});P.startContent=P.getContent({format:"raw"});P.undoManager.add({initial:true});P.initialized=true;P.onInit.dispatch(P);P.execCallback("setupcontent_callback",P.id,P.getBody(),P.getDoc());P.execCallback("init_instance_callback",P);P.focus(true);P.nodeChanged({initial:1});if(Q.content_css){tinymce.each(Q.content_css.split(","),function(T){P.dom.loadCSS(P.documentBaseURI.toAbsolute(T))})}if(Q.auto_focus){setTimeout(function(){var T=H.get(Q.auto_focus);T.selection.select(T.getBody(),1);T.selection.collapse(1);T.getWin().focus()},100)}},1);R=null},focus:function(P){var Q,O=this;if(!P){O.getWin().focus()}if(H.activeEditor!=O){if((Q=H.activeEditor)!=null){Q.onDeactivate.dispatch(Q,O)}O.onActivate.dispatch(O,Q)}H._setActive(O)},execCallback:function(R){var O=this,Q=O.settings[R],P;if(!Q){return }if(O.callbackLookup&&(P=O.callbackLookup[R])){Q=P.func;P=P.scope}if(D(Q,"string")){P=Q.replace(/\.\w+$/,"");P=P?tinymce.resolve(P):0;Q=tinymce.resolve(Q);O.callbackLookup=O.callbackLookup||{};O.callbackLookup[R]={func:Q,scope:P}}return Q.apply(P||O,Array.prototype.slice.call(arguments,1))},translate:function(O){var Q=this.settings.language,P=H.i18n;if(!O){return""}return P[Q+"."+O]||O.replace(/{\#([^}]+)\}/g,function(S,R){return P[Q+"."+R]||"{#"+R+"}"})},getLang:function(P,O){return H.i18n[this.settings.language+"."+P]||(D(O)?O:"{#"+P+"}")},getParam:function(P,O){return D(this.settings[P])?this.settings[P]:O},nodeChanged:function(Q){var O=this,P=O.selection,R=P.getNode()||this.getBody();this.onNodeChange.dispatch(O,Q?Q.controlManager||O.controlManager:O.controlManager,B&&R.ownerDocument!=O.getDoc()?this.getBody():R,P.isCollapsed(),Q)},addButton:function(Q,P){var O=this;O.buttons=O.buttons||{};O.buttons[Q]=P},addCommand:function(Q,P,O){this.execCommands[Q]={func:P,scope:O||this}},addQueryStateHandler:function(Q,P,O){this.queryStateCommands[Q]={func:P,scope:O||this}},addQueryValueHandler:function(Q,P,O){this.queryValueCommands[Q]={func:P,scope:O||this}},addShortcut:function(Q,S,O,R){var P=this,T;if(!P.settings.custom_shortcuts){return false}P.shortcuts=P.shortcuts||{};if(D(O,"string")){T=O;O=function(){P.execCommand(T,false,null)}}if(D(O,"object")){T=O;O=function(){P.execCommand(T[0],T[1],T[2])}}I(Q.split(","),function(U){var V={func:O,scope:R||this,desc:S,alt:false,ctrl:false,shift:false};I(U.split("+"),function(W){switch(W){case"alt":case"ctrl":case"shift":V[W]=true;break;default:V.charCode=W.charCodeAt(0);V.keyCode=W.toUpperCase().charCodeAt(0)}});P.shortcuts[(V.ctrl?"ctrl":"")+","+(V.alt?"alt":"")+","+(V.shift?"shift":"")+","+V.keyCode]=V});return true},execCommand:function(S,R,U,O){var P=this,Q=0,T;if(!/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint|SelectAll)$/.test(S)&&(!O||!O.skip_focus)){P.focus()}T={};P.onBeforeExecCommand.dispatch(P,S,R,U,T);if(T.terminate){return false}if(P.execCallback("execcommand_callback",P.id,P.selection.getNode(),S,R,U)){P.onExecCommand.dispatch(P,S,R,U);return true}if(T=P.execCommands[S]){Q=T.func.call(T.scope,R,U);P.onExecCommand.dispatch(P,S,R,U);return Q}I(P.plugins,function(V){if(V.execCommand&&V.execCommand(S,R,U)){P.onExecCommand.dispatch(P,S,R,U);Q=1;return false}});if(Q){return true}if(P.theme.execCommand&&P.theme.execCommand(S,R,U)){P.onExecCommand.dispatch(P,S,R,U);return true}if(P.editorCommands.execCommand(S,R,U)){P.onExecCommand.dispatch(P,S,R,U);return true}P.getDoc().execCommand(S,R,U);P.onExecCommand.dispatch(P,S,R,U)},queryCommandState:function(Q){var O=this,P;if(O._isHidden()){return }if(P=O.queryStateCommands[Q]){return P.func.call(P.scope)}P=O.editorCommands.queryCommandState(Q);if(P!==-1){return P}return this.getDoc().queryCommandState(Q)},queryCommandValue:function(Q){var O=this,P;if(O._isHidden()){return }if(P=O.queryValueCommands[Q]){return P.func.call(P.scope)}P=O.editorCommands.queryCommandValue(Q);if(D(P)){return P}return this.getDoc().queryCommandValue(Q)},show:function(){var O=this;M.show(O.getContainer());M.hide(O.id);O.load()},hide:function(){var O=this,P=O.settings,Q=O.getDoc();if(B&&Q){Q.execCommand("SelectAll")}M.hide(O.getContainer());M.setStyle(P.id,"display",O.orgDisplay);O.save()},isHidden:function(){return !M.isHidden(this.id)},setProgressState:function(O,P,Q){this.onSetProgressState.dispatch(this,O,P,Q);return O},remove:function(){var O=this;O.removed=1;O.hide();M.remove(O.getContainer());O.execCallback("remove_instance_callback",O);O.onRemove.dispatch(O);H.remove(O)},resizeToContent:function(){var O=this;M.setStyle(O.id+"_ifr","height",O.getBody().scrollHeight)},load:function(R){var O=this,Q=O.getElement(),P;R=R||{};R.load=true;P=O.setContent(D(Q.value)?Q.value:Q.innerHTML,R);R.element=Q;if(!R.no_events){O.onLoadContent.dispatch(O,R)}R.element=Q=null;return P},save:function(S){var O=this,R=O.getElement(),P,Q;if(!O.initialized){return }S=S||{};S.save=true;S.element=R;P=S.content=O.getContent(S);if(!S.no_events){O.onSaveContent.dispatch(O,S)}P=S.content;if(!/TEXTAREA|INPUT/i.test(R.nodeName)){R.innerHTML=P;if(Q=M.getParent(O.id,"form")){I(Q.elements,function(T){if(T.name==O.id){T.value=P;return false}})}}else{R.value=P}S.element=R=null;return P},setContent:function(P,Q){var O=this;Q=Q||{};Q.format=Q.format||"html";Q.set=true;Q.content=P;if(!Q.no_events){O.onBeforeSetContent.dispatch(O,Q)}if(!tinymce.isIE&&(P.length===0||/^\s+$/.test(P))){Q.content=O.dom.setHTML(O.getBody(),'<br mce_bogus="1" />',1);Q.format="raw"}Q.content=O.dom.setHTML(O.getBody(),tinymce.trim(Q.content));if(Q.format!="raw"&&O.settings.cleanup){Q.getInner=true;Q.content=O.dom.setHTML(O.getBody(),O.serializer.serialize(O.getBody(),Q))}if(!Q.no_events){O.onSetContent.dispatch(O,Q)}return Q.content},getContent:function(Q){var O=this,P;Q=Q||{};Q.format=Q.format||"html";Q.get=true;if(!Q.no_events){O.onBeforeGetContent.dispatch(O,Q)}if(Q.format!="raw"&&O.settings.cleanup){Q.getInner=true;P=O.serializer.serialize(O.getBody(),Q)}else{P=O.getBody().innerHTML}P=P.replace(/^\s*|\s*$/g,"");Q={content:P};O.onGetContent.dispatch(O,Q);return Q.content},isDirty:function(){var O=this;return tinymce.trim(O.startContent)!=tinymce.trim(O.getContent({format:"raw",no_events:1}))&&!O.isNotDirty},getContainer:function(){var O=this;if(!O.container){O.container=M.get(O.editorContainer||O.id+"_parent")}return O.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return M.get(this.settings.content_element||this.id)},getWin:function(){var O=this,P;if(!O.contentWindow){P=M.get(O.id+"_ifr");if(P){O.contentWindow=P.contentWindow}}return O.contentWindow},getDoc:function(){var P=this,O;if(!P.contentDocument){O=this.getWin();if(O){P.contentDocument=O.document}}return P.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(O,S,R){var P=this,Q=P.settings;if(Q.urlconverter_callback){return P.execCallback("urlconverter_callback",O,R,true,S)}if(!Q.convert_urls||(R&&R.nodeName=="LINK")){return O}if(Q.relative_urls){return P.documentBaseURI.toRelative(O)}O=P.documentBaseURI.toAbsolute(O,Q.remove_script_host);return O},addVisual:function(Q){var O=this,P=O.settings;Q=Q||O.getBody();if(!D(O.hasVisual)){O.hasVisual=P.visual}I(O.dom.select("table,a",Q),function(S){var R;switch(S.nodeName){case"TABLE":R=O.dom.getAttrib(S,"border");if(!R||R=="0"){if(O.hasVisual){O.dom.addClass(S,P.visual_table_class)}else{O.dom.removeClass(S,P.visual_table_class)}}return ;case"A":R=O.dom.getAttrib(S,"name");if(R){if(O.hasVisual){O.dom.addClass(S,"mceItemAnchor")}else{O.dom.removeClass(S,"mceItemAnchor")}}return }});O.onVisualAid.dispatch(O,Q,O.hasVisual)},_addEvents:function(){var V=this,P,W=V.settings,S={mouseup:"onMouseUp",mousedown:"onMouseDown",click:"onClick",keyup:"onKeyUp",keydown:"onKeyDown",keypress:"onKeyPress",submit:"onSubmit",reset:"onReset",contextmenu:"onContextMenu",dblclick:"onDblClick",paste:"onPaste"};function O(Z,a){var Y=Z.type;if(V.removed){return }if(V.onEvent.dispatch(V,Z,a)!==false){V[S[Z.fakeType||Z.type]].dispatch(V,Z,a)}}I(S,function(Z,Y){switch(Y){case"contextmenu":if(tinymce.isOpera){J.add(V.getDoc(),"mousedown",function(a){if(a.ctrlKey){a.fakeType="contextmenu";O(a)}})}else{J.add(V.getDoc(),Y,O)}break;case"paste":J.add(V.getBody(),Y,function(f){var a,c,b,d;if(f.clipboardData){a=f.clipboardData.getData("text/plain")}else{if(tinymce.isIE){a=V.getWin().clipboardData.getData("Text")}}O(f,{text:a,html:c})});break;case"submit":case"reset":J.add(V.getElement().form||M.getParent(V.id,"form"),Y,O);break;default:J.add(W.content_editable?V.getBody():V.getDoc(),Y,O)}});J.add(W.content_editable?V.getBody():(A?V.getDoc():V.getWin()),"focus",function(Y){V.focus(true)});if(tinymce.isGecko){J.add(V.getDoc(),"DOMNodeInserted",function(Z){var Y;Z=Z.target;if(Z.nodeType===1&&Z.nodeName==="IMG"&&(Y=Z.getAttribute("mce_src"))){Z.src=V.documentBaseURI.toAbsolute(Y)}})}if(A){function Q(){var Z=this,b=Z.getDoc(),a=Z.settings;if(A){if(Z._isHidden()){try{b.designMode="On"}catch(Y){}}try{b.execCommand("styleWithCSS",0,false)}catch(Y){if(!Z._isHidden()){b.execCommand("useCSS",0,true)}}if(!a.table_inline_editing){try{b.execCommand("enableInlineTableEditing",false,false)}catch(Y){}}if(!a.object_resizing){try{b.execCommand("enableObjectResizing",false,false)}catch(Y){}}}}V.onBeforeExecCommand.add(Q);V.onMouseDown.add(Q)}V.onMouseUp.add(V.nodeChanged);V.onClick.add(V.nodeChanged);V.onKeyUp.add(function(Y,Z){if((Z.keyCode>=33&&Z.keyCode<=36)||(Z.keyCode>=37&&Z.keyCode<=40)||Z.keyCode==13||Z.keyCode==45||Z.keyCode==46||Z.keyCode==8||Z.ctrlKey){V.nodeChanged()}});V.onReset.add(function(){V.setContent(V.startContent,{format:"raw"})});if(V.getParam("tab_focus")){function X(Y,Z){if(Z.keyCode===9){return J.cancel(Z)}}function T(Z,c){var Y,b,a;function d(e){b=M.getParent(Z.id,"form"),a=b.elements;if(b){I(b.elements,function(g,f){if(g.id==Z.id){f=f+e;if(f<0||f>a.length){return }a=a[f]}})}return a}if(c.keyCode===9){Y=Z.getParam("tab_focus").split(",");if(Y.length==1){Y[1]=Y[0];Y[0]=":prev"}if(c.shiftKey){if(Y[0]==":prev"){a=d(-1)}else{a=M.get(Y[0])}}else{if(Y[1]==":next"){a=d(1)}else{a=M.get(Y[1])}}if(a){if(Z=H.get(a.id||a.name)){Z.focus()}else{window.setTimeout(function(){window.focus();a.focus()},10)}return J.cancel(c)}}}V.onKeyUp.add(X);if(A){V.onKeyPress.add(T);V.onKeyDown.add(X)}else{V.onKeyDown.add(T)}}if(W.custom_shortcuts){if(W.custom_undo_redo_keyboard_shortcuts){V.addShortcut("ctrl+z",V.getLang("undo_desc"),"Undo");V.addShortcut("ctrl+y",V.getLang("redo_desc"),"Redo")}if(A){V.addShortcut("ctrl+b",V.getLang("bold_desc"),"Bold");V.addShortcut("ctrl+i",V.getLang("italic_desc"),"Italic");V.addShortcut("ctrl+u",V.getLang("underline_desc"),"Underline")}for(P=1;P<=6;P++){V.addShortcut("ctrl+"+P,"",["FormatBlock",false,"<h"+P+">"])}V.addShortcut("ctrl+7","",["FormatBlock",false,"<p>"]);V.addShortcut("ctrl+8","",["FormatBlock",false,"<div>"]);V.addShortcut("ctrl+9","",["FormatBlock",false,"<address>"]);function R(Z){var Y=null;if(!Z.altKey&&!Z.ctrlKey&&!Z.metaKey){return Y}I(V.shortcuts,function(a){if(a.ctrl!=Z.ctrlKey&&(!tinymce.isMac||a.ctrl==Z.metaKey)){return }if(a.alt!=Z.altKey){return }if(a.shift!=Z.shiftKey){return }if(Z.keyCode==a.keyCode||(Z.charCode&&Z.charCode==a.charCode)){Y=a;return false}});return Y}V.onKeyUp.add(function(Y,Z){var a=R(Z);if(a){return J.cancel(Z)}});V.onKeyPress.add(function(Y,Z){var a=R(Z);if(a){return J.cancel(Z)}});V.onKeyDown.add(function(Y,Z){var a=R(Z);if(a){a.func.call(a.scope);return J.cancel(Z)}})}if(tinymce.isIE){J.add(V.getDoc(),"controlselect",function(a){var Z=V.resizeInfo,Y;a=a.target;if(Z){J.remove(Z.node,Z.ev,Z.cb)}if(!V.dom.hasClass(a,"mceItemNoResize")){ev="resizeend";Y=J.add(a,ev,function(c){var b;c=c.target;if(b=V.dom.getStyle(c,"width")){V.dom.setAttrib(c,"width",b.replace(/[^0-9%]+/g,""));V.dom.setStyle(c,"width","")}if(b=V.dom.getStyle(c,"height")){V.dom.setAttrib(c,"height",b.replace(/[^0-9%]+/g,""));V.dom.setStyle(c,"height","")}})}else{ev="resizestart";Y=J.add(a,"resizestart",J.cancel,J)}Z=V.resizeInfo={node:a,ev:ev,cb:Y}});V.onKeyDown.add(function(Y,Z){switch(Z.keyCode){case 8:if(V.selection.getRng().item){V.selection.getRng().item(0).removeNode();return J.cancel(Z)}}})}if(tinymce.isOpera){V.onClick.add(function(Y,Z){J.prevent(Z)})}if(W.custom_undo_redo){function U(){V.undoManager.typing=0;V.undoManager.add()}if(tinymce.isIE){J.add(V.getWin(),"blur",function(Y){var Z;if(V.selection){Z=V.selection.getNode();if(!V.removed&&Z.ownerDocument&&Z.ownerDocument!=V.getDoc()){U()}}})}else{J.add(V.getDoc(),"blur",function(){if(V.selection&&!V.removed){U()}})}V.onMouseDown.add(U);V.onKeyUp.add(function(Y,Z){if((Z.keyCode>=33&&Z.keyCode<=36)||(Z.keyCode>=37&&Z.keyCode<=40)||Z.keyCode==13||Z.keyCode==45||Z.ctrlKey){V.undoManager.typing=0;V.undoManager.add()}});V.onKeyDown.add(function(Y,Z){if((Z.keyCode>=33&&Z.keyCode<=36)||(Z.keyCode>=37&&Z.keyCode<=40)||Z.keyCode==13||Z.keyCode==45){if(V.undoManager.typing){V.undoManager.add();V.undoManager.typing=0}return }if(!V.undoManager.typing){V.undoManager.add();V.undoManager.typing=1}})}},_destroy:function(){var O=this;if(O.formElement){O.formElement.submit=O.formElement._mceOldSubmit;O.formElement._mceOldSubmit=null}O.contentAreaContainer=O.formElement=O.container=O.contentDocument=O.contentWindow=null;if(O.selection){O.selection=O.selection.win=O.selection.dom=O.selection.dom.doc=null}O.destroyed=1},_convertInlineElements:function(){var O=this,P=O.settings,R=O.dom;function Q(S,T){if(!P.inline_styles){return }if(T.get){I(O.dom.select("table,u,strike",T.node),function(U){switch(U.nodeName){case"TABLE":if(v=R.getAttrib(U,"height")){R.setStyle(U,"height",v);R.setAttrib(U,"height","")}break;case"U":R.replace(R.create("span",{style:"text-decoration: underline;"}),U,1);break;case"STRIKE":R.replace(R.create("span",{style:"text-decoration: line-through;"}),U,1);break}})}else{if(T.set){I(O.dom.select("table,span",T.node),function(U){if(U.nodeName=="TABLE"){if(v=R.getStyle(U,"height")){R.setAttrib(U,"height",v.replace(/[^0-9%]+/g,""))}}else{if(U.style.textDecoration=="underline"){R.replace(R.create("u"),U,1)}else{if(U.style.textDecoration=="line-through"){R.replace(R.create("strike"),U,1)}}}})}}}O.onPreProcess.add(Q);if(!P.cleanup_on_startup){O.onInit.add(function(){Q(O,{node:O.getBody(),set:1})})}},_convertFonts:function(){var U=this,W=U.settings,Q=U.dom,P,T,O,V,S,R;O=[8,10,12,14,18,24,36];V=["xx-small","x-small","small","medium","large","x-large","xx-large"];if(P=W.font_size_style_values){P=P.split(",")}if(T=W.font_size_classes){T=T.split(",")}U.onPreProcess.add(function(X,Y){if(!W.inline_styles){return }if(Y.set){if(tinymce.isWebKit){return }I(U.dom.select("span",Y.node),function(a){var Z=Q.create("font",{color:Q.toHex(Q.getStyle(a,"color")),face:Q.getStyle(a,"fontFamily")});if(P){R=N(P,Q.getStyle(a,"fontSize"));if(R!=-1){Q.setAttrib(Z,"size",""+(R+1||1))}}else{if(T){R=N(T,Q.getAttrib(a,"class"));S=Q.getStyle(a,"fontSize");if(R==-1&&S.indexOf("pt")>0){R=N(O,parseInt(S))}if(R==-1){R=N(V,S)}if(R!=-1){Q.setAttrib(Z,"size",""+(R+1||1))}}}if(Z.color||Z.face||Z.size){Q.replace(Z,a,1)}})}else{if(Y.get){I(U.dom.select("font",Y.node),function(a){var Z=Q.create("span",{style:{fontFamily:Q.getAttrib(a,"face"),color:Q.getAttrib(a,"color"),backgroundColor:a.style.backgroundColor}});if(a.size){if(P){Q.setStyle(Z,"fontSize",P[parseInt(a.size)-1])}else{Q.setAttrib(Z,"class",T[parseInt(a.size)-1])}}Q.replace(Z,a,1)})}}})},_isHidden:function(){var O;if(!A){return 0}O=this.selection.getSel();return(!O||!O.rangeCount||O.rangeCount==0)},_fixNesting:function(P){var Q=[],O;P=P.replace(/<(\/)?([^\s>]+)[^>]*?>/g,function(S,R,U){var T;if(R==="/"){if(!Q.length){return""}if(U!==Q[Q.length-1].tag){for(O=Q.length-1;O>=0;O--){if(Q[O].tag===U){Q[O].close=1;break}}return""}else{Q.pop();if(Q.length&&Q[Q.length-1].close){S=S+"</"+Q[Q.length-1].tag+">";Q.pop()}}}else{if(/^(br|hr|input|meta|img|link|param)$/i.test(U)){return S}if(/\/>$/.test(S)){return S}Q.push({tag:U})}return S});for(O=Q.length-1;O>=0;O--){P+="</"+Q[O].tag+">"}return P}})})();(function(){var E=tinymce.each,C=tinymce.isIE,A=tinymce.isGecko,B=tinymce.isOpera,D=tinymce.isWebKit;tinymce.create("tinymce.EditorCommands",{EditorCommands:function(F){this.editor=F},execCommand:function(K,J,L){var H=this,F=H.editor,I;switch(K){case"Cut":case"Copy":case"Paste":try{F.getDoc().execCommand(K,J,L)}catch(G){if(A){F.windowManager.confirm(F.getLang("clipboard_msg"),function(M){if(M){window.open("http://www.mozilla.org/editor/midasdemo/securityprefs.html","mceExternal")}})}else{F.windowManager.alert(F.getLang("clipboard_no_support"))}}return true;case"mceResetDesignMode":case"mceBeginUndoLevel":return true;case"unlink":H.UnLink();return true;case"JustifyLeft":case"JustifyCenter":case"JustifyRight":case"JustifyFull":H.mceJustify(K,K.substring(7).toLowerCase());return true;case"mceEndUndoLevel":case"mceAddUndoLevel":F.undoManager.add();return true;default:I=this[K];if(I){I.call(this,J,L);return true}}return false},Indent:function(){var F=this.editor,K=F.dom,I=F.selection,J,G,H;G=F.settings.indentation;H=/[a-z%]+$/i.exec(G);G=parseInt(G);if(F.settings.inline_styles&&(!this.queryStateInsertUnorderedList()&&!this.queryStateInsertOrderedList())){E(this._getSelectedBlocks(),function(L){K.setStyle(L,"paddingLeft",(parseInt(L.style.paddingLeft||0)+G)+H)});return }F.getDoc().execCommand("Indent",false,null);if(C){K.getParent(I.getNode(),function(L){if(L.nodeName=="BLOCKQUOTE"){L.dir=L.style.cssText=""}})}},Outdent:function(){var G=this.editor,L=G.dom,J=G.selection,K,F,H,I;H=G.settings.indentation;I=/[a-z%]+$/i.exec(H);H=parseInt(H);if(G.settings.inline_styles&&(!this.queryStateInsertUnorderedList()&&!this.queryStateInsertOrderedList())){E(this._getSelectedBlocks(),function(M){F=Math.max(0,parseInt(M.style.paddingLeft||0)-H);L.setStyle(M,"paddingLeft",F?F+I:"")});return }G.getDoc().execCommand("Outdent",false,null)},mceSetAttribute:function(H,G){var F=this.editor,J=F.dom,I;if(I=J.getParent(F.selection.getNode(),J.isBlock)){J.setAttrib(I,G.name,G.value)}},mceSetContent:function(G,F){this.editor.setContent(F)},mceToggleVisualAid:function(){var F=this.editor;F.hasVisual=!F.hasVisual;F.addVisual()},mceReplaceContent:function(G,F){var H=this.editor.selection;H.setContent(F.replace(/\{\$selection\}/g,H.getContent({format:"text"})))},mceInsertLink:function(H,G){var F=this.editor,I=F.dom.getParent(F.selection.getNode(),"A");if(tinymce.is(G,"string")){G={href:G}}function J(K){E(G,function(M,L){F.dom.setAttrib(K,L,M)})}if(!I){F.execCommand("CreateLink",false,"javascript:mctmp(0);");E(F.dom.select("a"),function(K){if(K.href=="javascript:mctmp(0);"){J(K)}})}else{if(G.href){J(I)}else{F.dom.remove(I,1)}}},UnLink:function(){var F=this.editor,G=F.selection;if(G.isCollapsed()){G.select(G.getNode())}F.getDoc().execCommand("unlink",false,null);G.collapse(0)},FontName:function(H,G){var I=this,F=I.editor,J=F.selection,K;if(!G){if(J.isCollapsed()){J.select(J.getNode())}I.RemoveFormat()}else{F.getDoc().execCommand("FontName",false,G)}},queryCommandValue:function(G){var F=this["queryValue"+G];if(F){return F.call(this,G)}return false},queryCommandState:function(G){var F;switch(G){case"JustifyLeft":case"JustifyCenter":case"JustifyRight":case"JustifyFull":return this.queryStateJustify(G,G.substring(7).toLowerCase());default:if(F=this["queryState"+G]){return F.call(this,G)}}return -1},queryValueFontSize:function(){var G=this.editor,F=0,H;if(B||D){if(H=G.dom.getParent(G.selection.getNode(),"FONT")){F=H.size}return F}return G.getDoc().queryCommandValue("FontSize")},queryValueFontName:function(){var G=this.editor,F=0,H;if(H=G.dom.getParent(G.selection.getNode(),"FONT")){F=H.face}if(!F){F=G.getDoc().queryCommandValue("FontName")}return F},mceJustify:function(M,N){var J=this.editor,L=J.selection,F=L.getNode(),O=F.nodeName,G,I,H=J.dom,K;if(J.settings.inline_styles&&this.queryStateJustify(M,N)){K=1}G=H.getParent(F,J.dom.isBlock);if(O=="IMG"){if(N=="full"){return }if(K){H.setStyle(F,"float","");this.mceRepaint();return }if(N=="center"){if(!G||G.childNodes.length>1){I=H.create("p");I.appendChild(F.cloneNode(false));if(G){H.insertAfter(I,G)}else{H.insertAfter(I,F)}H.remove(F);F=I.firstChild;G=I}H.setStyle(G,"textAlign",N);H.setStyle(F,"float","")}else{H.setStyle(F,"float",N)}this.mceRepaint();return }if(J.settings.inline_styles&&J.settings.forced_root_block){if(K){N=""}E(this._getSelectedBlocks(H.getParent(L.getStart(),H.isBlock),H.getParent(L.getEnd(),H.isBlock)),function(P){H.setAttrib(P,"align","");H.setStyle(P,"textAlign",N=="full"?"justify":N)});return }else{if(!K){J.getDoc().execCommand(M,false,null)}}if(J.settings.inline_styles){if(K){H.getParent(J.selection.getNode(),function(P){if(P.style&&P.style.textAlign){H.setStyle(P,"textAlign","")}});return }E(H.select("*"),function(Q){var P=Q.align;if(P){if(P=="full"){P="justify"}H.setStyle(Q,"textAlign",P);H.setAttrib(Q,"align","")}})}},mceSetCSSClass:function(G,F){this.mceSetStyleInfo(0,{command:"setattrib",name:"class",value:F})},getSelectedElement:function(){var T=this,N=T.editor,M=N.dom,Q=N.selection,G=Q.getRng(),K,J,R,O,I,F,P,H,U,S;if(Q.isCollapsed()||G.item){return Q.getNode()}S=N.settings.merge_styles_invalid_parents;if(tinymce.is(S,"string")){S=new RegExp(S,"i")}if(C){K=G.duplicate();K.collapse(true);R=K.parentElement();J=G.duplicate();J.collapse(false);O=J.parentElement();if(R!=O){K.move("character",1);R=K.parentElement()}if(R==O){K=G.duplicate();K.moveToElementText(R);if(K.compareEndPoints("StartToStart",G)==0&&K.compareEndPoints("EndToEnd",G)==0){return S&&S.test(R.nodeName)?null:R}}}else{function L(V){return M.getParent(V,function(W){return W.nodeType==1})}R=G.startContainer;O=G.endContainer;I=G.startOffset;F=G.endOffset;if(!G.collapsed){if(R==O){if(I-F<2){if(R.hasChildNodes()){H=R.childNodes[I];return S&&S.test(H.nodeName)?null:H}}}}if(R.nodeType!=3||O.nodeType!=3){return null}if(I==0){H=L(R);if(H&&H.firstChild!=R){H=null}}if(I==R.nodeValue.length){P=R.nextSibling;if(P&&P.nodeType==1){H=R.nextSibling}}if(F==0){P=O.previousSibling;if(P&&P.nodeType==1){U=P}}if(F==O.nodeValue.length){U=L(O);if(U&&U.lastChild!=O){U=null}}if(H==U){return S&&H&&S.test(H.nodeName)?null:H}}return null},InsertHorizontalRule:function(){if(A||C){this.editor.selection.setContent("<hr />")}else{this.editor.getDoc().execCommand("InsertHorizontalRule",false,"")}},RemoveFormat:function(){var H=this,G=H.editor,I=G.selection,F;if(D){I.setContent(I.getContent({format:"raw"}).replace(/(<(span|b|i|strong|em|strike) [^>]+>|<(span|b|i|strong|em|strike)>|<\/(span|b|i|strong|em|strike)>|)/g,""),{format:"raw"})}else{G.getDoc().execCommand("RemoveFormat",false,null)}H.mceSetStyleInfo(0,{command:"removeformat"});G.addVisual()},mceSetStyleInfo:function(M,L){var P=this,G=P.editor,I=G.getDoc(),F=G.dom,H,J,Q=G.selection,O=L.wrapper||"span",J=Q.getBookmark(),N;function K(S,R){if(S.nodeType==1){switch(L.command){case"setattrib":return F.setAttrib(S,L.name,L.value);case"setstyle":return F.setStyle(S,L.name,L.value);case"removeformat":return F.setAttrib(S,"class","")}}}N=G.settings.merge_styles_invalid_parents;if(tinymce.is(N,"string")){N=new RegExp(N,"i")}if(H=P.getSelectedElement()){K(H,1)}else{I.execCommand("FontName",false,"__");E(D?F.select("span"):F.select("font"),function(T){var R,S;if(F.getAttrib(T,"face")=="__"||T.style.fontFamily==="__"){R=F.create(O,{mce_new:"1"});K(R);E(T.childNodes,function(U){R.appendChild(U.cloneNode(true))});F.replace(R,T)}})}E(F.select(O).reverse(),function(S){var R=S.parentNode;F.setAttrib(S,"mce_new","");if(!F.getAttrib(S,"mce_new")){R=F.getParent(S,function(T){return T.nodeType==1&&F.getAttrib(T,"mce_new")});if(R){F.remove(S,1)}}});E(F.select(O).reverse(),function(S){var R=S.parentNode;if(!R){return }if(R.nodeName==O.toUpperCase()&&R.childNodes.length==1){return F.remove(R,1)}if(S.nodeType==1&&(!N||!N.test(R.nodeName))&&R.childNodes.length==1){K(R);F.setAttrib(S,"class","")}});E(F.select(O).reverse(),function(R){if(!F.getAttrib(R,"class")&&!F.getAttrib(R,"style")){return F.remove(R,1)}});Q.moveToBookmark(J)},queryStateJustify:function(J,G){var F=this.editor,I=F.selection.getNode(),H=F.dom;if(I&&I.nodeName=="IMG"){return H.getStyle(I,"float")==G}I=H.getParent(F.selection.getStart(),function(K){return K.nodeType==1&&K.style.textAlign});if(G=="full"){G="justify"}if(F.settings.inline_styles){return(I&&I.style.textAlign==G)}return F.getDoc().queryCommandState(J)},HiliteColor:function(H,J){var G=this,F=G.editor,I=F.getDoc();function K(M){if(!A){return }try{I.execCommand("styleWithCSS",0,M)}catch(L){I.execCommand("useCSS",0,!M)}}if(A||B){K(true);I.execCommand("hilitecolor",false,J);K(false)}else{I.execCommand("BackColor",false,J)}},Undo:function(){var F=this.editor;if(F.settings.custom_undo_redo){F.undoManager.undo();F.nodeChanged()}else{F.getDoc().execCommand("Undo",false,null)}},Redo:function(){var F=this.editor;if(F.settings.custom_undo_redo){F.undoManager.redo();F.nodeChanged()}else{F.getDoc().execCommand("Redo",false,null)}},FormatBlock:function(H,I){var G=this,F=G.editor;I=F.settings.forced_root_block?(I||"<p>"):I;G.mceRemoveNode();if(I.indexOf("<")==-1){I="<"+I+">"}if(tinymce.isGecko){I=I.replace(/<(div|blockquote|code|dt|dd|dl|samp)>/gi,"$1")}F.getDoc().execCommand("FormatBlock",false,I)},mceCleanup:function(){var G=this.editor,H=G.selection,F=H.getBookmark();G.setContent(G.getContent());H.moveToBookmark(F)},mceRemoveNode:function(I,J){var G=this.editor,H=G.selection,F,K=J||H.getNode();if(K==G.getBody()){return }F=H.getBookmark();G.dom.remove(K,1);H.moveToBookmark(F);G.nodeChanged()},mceSelectNodeDepth:function(H,I){var F=this.editor,G=F.selection,J=0;F.dom.getParent(G.getNode(),function(K){if(K.nodeType==1&&J++==I){G.select(K);F.nodeChanged();return false}},F.getBody())},mceSelectNode:function(G,F){this.editor.selection.select(F)},mceInsertContent:function(F,G){this.editor.selection.setContent(G)},mceInsertRawHTML:function(G,H){var F=this.editor;F.execCommand("mceInsertContent",false,"tiny_mce_marker");F.setContent(F.getContent().replace(/tiny_mce_marker/g,H))},mceRepaint:function(){var H,F,I=this.editor;if(tinymce.isGecko){try{H=I.selection;F=H.getBookmark(true);if(H.getSel()){H.getSel().selectAllChildren(I.getBody())}H.collapse(true);H.moveToBookmark(F)}catch(G){}}},queryStateUnderline:function(){var F=this.editor,G;if(G&&G.nodeName=="A"){return false}return F.getDoc().queryCommandState("Underline")},queryStateOutdent:function(){var F=this.editor,G;if(F.settings.inline_styles){if((G=F.dom.getParent(F.selection.getStart(),F.dom.isBlock))&&parseInt(G.style.paddingLeft)>0){return true}if((G=F.dom.getParent(F.selection.getEnd(),F.dom.isBlock))&&parseInt(G.style.paddingLeft)>0){return true}}else{return !!F.dom.getParent(F.selection.getNode(),"BLOCKQUOTE")}return this.queryStateInsertUnorderedList()||this.queryStateInsertOrderedList()},queryStateInsertUnorderedList:function(){return this.editor.dom.getParent(this.editor.selection.getNode(),"UL")},queryStateInsertOrderedList:function(){return this.editor.dom.getParent(this.editor.selection.getNode(),"OL")},queryStatemceBlockQuote:function(){return !!this.editor.dom.getParent(this.editor.selection.getStart(),function(F){return F.nodeName==="BLOCKQUOTE"})},mceBlockQuote:function(){var H=this,J=H.editor.selection,F=J.getBookmark(),I,K=H.editor.dom;function G(L){return K.getParent(L,function(M){return M.nodeName==="BLOCKQUOTE"})}if(G(J.getStart())){E(H._getSelectedBlocks(G(J.getStart()),G(J.getEnd())),function(L){if(L.nodeName=="BLOCKQUOTE"){K.remove(L,1)}});H.editor.selection.moveToBookmark(F);return }E(H._getSelectedBlocks(G(J.getStart()),G(J.getEnd())),function(L){var M;if(L.nodeName=="BLOCKQUOTE"&&!I){I=L;return }if(!I){I=K.create("blockquote");L.parentNode.insertBefore(I,L)}if(L.nodeName=="BLOCKQUOTE"&&I){M=L.firstChild;while(M){I.appendChild(M.cloneNode(true));M=M.nextSibling}K.remove(L);return }I.appendChild(K.remove(L))});H.editor.selection.moveToBookmark(F)},_getSelectedBlocks:function(M,F){var J=this.editor,I=J.dom,N=J.selection,L,K,H,G=[];L=I.getParent(M||N.getStart(),I.isBlock);K=I.getParent(F||N.getEnd(),I.isBlock);if(L){G.push(L)}if(L&&K&&L!=K){H=L;while((H=H.nextSibling)&&H!=K){if(I.isBlock(H)){G.push(H)}}}if(K&&L!=K){G.push(K)}return G}})})();tinymce.create("tinymce.UndoManager",{index:0,data:null,typing:0,UndoManager:function(B){var C=this,A=tinymce.util.Dispatcher;C.editor=B;C.data=[];C.onAdd=new A(this);C.onUndo=new A(this);C.onRedo=new A(this)},add:function(B){var E=this,D,C=E.editor,A,F=C.settings,G;B=B||{};B.content=B.content||C.getContent({format:"raw",no_events:1});B.content=B.content.replace(/^\s*|\s*$/g,"");G=E.data[E.index>0?E.index-1:0];if(!B.initial&&G&&B.content==G.content){return null}if(F.custom_undo_redo_levels){if(E.data.length>F.custom_undo_redo_levels){for(D=0;D<E.data.length-1;D++){E.data[D]=E.data[D+1]}E.data.length--;E.index=E.data.length}}if(F.custom_undo_redo_restore_selection){B.bookmark=A=B.bookmark||C.selection.getBookmark()}if(E.index<E.data.length&&E.data[E.index].initial){E.index++}E.data.length=E.index+1;E.data[E.index++]=B;if(B.initial){E.index=0}if(E.data.length==2&&E.data[0].initial){E.data[0].bookmark=A}E.onAdd.dispatch(E,B);C.isNotDirty=0;return B},undo:function(){var D=this,B=D.editor,A=A,C;if(D.typing){D.add();D.typing=0}if(D.index>0){if(D.index==D.data.length&&D.index>1){C=D.index;D.typing=0;if(!D.add()){D.index=C}--D.index}A=D.data[--D.index];B.setContent(A.content,{format:"raw"});B.selection.moveToBookmark(A.bookmark);D.onUndo.dispatch(D,A)}return A},redo:function(){var C=this,B=C.editor,A=null;if(C.index<C.data.length-1){A=C.data[++C.index];B.setContent(A.content,{format:"raw"});B.selection.moveToBookmark(A.bookmark);C.onRedo.dispatch(C,A)}return A},clear:function(){var A=this;A.data=[];A.index=0;A.typing=0;A.add({initial:true})},hasUndo:function(){return this.index!=0||this.typing},hasRedo:function(){return this.index<this.data.length-1}});(function(){var B,D,A,C,E,F;B=tinymce.dom.Event;D=tinymce.isIE;A=tinymce.isGecko;C=tinymce.isOpera;E=tinymce.each;F=tinymce.extend;tinymce.create("tinymce.ForceBlocks",{ForceBlocks:function(H){var I=this,J;I.editor=H;I.dom=H.dom;I.settings=J=F({element:"P",forced_root_block:"p",force_p_newlines:true},H.settings);H.onPreInit.add(I.setup,I);function G(K,L){if(C){L.content=L.content.replace(/(\u00a0|&#160;|&nbsp;)<\/p>/gi,"</p>")}L.content=L.content.replace(/<p( )([^>]+)><\/p>|<p( )([^>]+)\/>|<p( )([^>]+)>\s+<\/p>|<p><\/p>|<p\/>|<p>\s+<\/p>/gi,"<p$1$2$3$4$5$6>\u00a0</p>");if(!D&&L.set){L.content=L.content.replace(/<p( )([^>]+)>[\s\u00a0]+<\/p>|<p>[\s\u00a0]+<\/p>/gi,"<p$1$2><br /></p>")}else{L.content=L.content.replace(/<p( )([^>]+)>\s*<br \/>\s*<\/p>|<p>\s*<br \/>\s*<\/p>/gi,"<p$1$2>\u00a0</p>");L.content=L.content.replace(/\s*<br \/>\s*<\/p>/gi,"</p>")}}H.onBeforeSetContent.add(G);H.onPostProcess.add(G);if(J.forced_root_block){H.onInit.add(I.forceRoots,I);H.onSetContent.add(I.forceRoots,I);H.onBeforeGetContent.add(I.forceRoots,I)}},setup:function(){var H=this,G=H.editor,I=H.settings;if(I.forced_root_block){G.onKeyUp.add(H.forceRoots,H);G.onPreProcess.add(H.forceRoots,H)}if(I.force_br_newlines){if(D){G.onKeyPress.add(function(J,L){var M,K=J.selection;if(L.keyCode==13){K.setContent('<br id="__" /> ',{format:"raw"});M=J.dom.get("__");M.removeAttribute("id");K.select(M);K.collapse();return B.cancel(L)}})}return }if(!D&&I.force_p_newlines){G.onPreProcess.add(function(J,K){E(J.dom.select("br",K.node),function(M){var L=M.parentNode;if(L&&L.nodeName=="p"&&(L.childNodes.length==1||L.lastChild==M)){L.replaceChild(J.getDoc().createTextNode("\u00a0"),M)}})});G.onKeyPress.add(function(J,K){if(K.keyCode==13&&!K.shiftKey){if(!H.insertPara(K)){B.cancel(K)}}});if(A){G.onKeyDown.add(function(J,K){if((K.keyCode==8||K.keyCode==46)&&!K.shiftKey){H.backspaceDelete(K,K.keyCode==8)}})}}},find:function(L,I,J){var H=this.editor,G=H.getDoc().createTreeWalker(L,4,null,false),K=-1;while(L=G.nextNode()){K++;if(I==0&&L==J){return K}if(I==1&&K==J){return L}}return -1},forceRoots:function(L,U){var M=this,L=M.editor,Y=L.getBody(),V=L.getDoc(),f=L.selection,N=f.getSel(),O=f.getRng(),Z=-2,K,S,G,H,W=-16777215;var X,I,a,R,P,J=Y.childNodes,Q;if(U&&U.keyCode==13){return true}for(Q=J.length-1;Q>=0;Q--){X=J[Q];if(X.nodeType==3||!M.dom.isBlock(X)){if(!I){if(X.nodeType!=3||/[^\s]/g.test(X.nodeValue)){if(Z==-2&&O){if(!D){S=O.startOffset;G=O.endOffset;Z=M.find(Y,0,O.startContainer);K=M.find(Y,0,O.endContainer)}else{H=V.body.createTextRange();H.moveToElementText(Y);H.collapse(1);a=H.move("character",W)*-1;H=O.duplicate();H.collapse(1);R=H.move("character",W)*-1;H=O.duplicate();H.collapse(0);P=(H.move("character",W)*-1)-R;Z=R-a;K=P}}I=L.dom.create(M.settings.forced_root_block);I.appendChild(X.cloneNode(1));X.parentNode.replaceChild(I,X)}}else{if(I.hasChildNodes()){I.insertBefore(X,I.firstChild)}else{I.appendChild(X)}}}else{I=null}}if(Z!=-2){if(!D){I=V.getElementsByTagName(M.settings.element)[0];O=V.createRange();if(Z!=-1){O.setStart(M.find(Y,1,Z),S)}else{O.setStart(I,0)}if(K!=-1){O.setEnd(M.find(Y,1,K),G)}else{O.setEnd(I,0)}if(N){N.removeAllRanges();N.addRange(O)}}else{try{O=N.createRange();O.moveToElementText(Y);O.collapse(1);O.moveStart("character",Z);O.moveEnd("character",K);O.select()}catch(T){}}}},getParentBlock:function(H){var G=this.dom;return G.getParent(H,G.isBlock)},insertPara:function(a){var P=this,L=P.editor,c=L.getDoc(),h=P.settings,R=L.selection.getSel(),S=R.getRangeAt(0),g=c.body;var V,W,T,Y,X,J,H,K,N,G,O,f,I,M,U;function Q(b){b=b.innerHTML;b=b.replace(/<(img|hr|table)/gi,"-");b=b.replace(/<[^>]+>/g,"");return b.replace(/[ \t\r\n]+/g,"")==""}V=c.createRange();V.setStart(R.anchorNode,R.anchorOffset);V.collapse(true);W=c.createRange();W.setStart(R.focusNode,R.focusOffset);W.collapse(true);T=V.compareBoundaryPoints(V.START_TO_END,W)<0;Y=T?R.anchorNode:R.focusNode;X=T?R.anchorOffset:R.focusOffset;J=T?R.focusNode:R.anchorNode;H=T?R.focusOffset:R.anchorOffset;if(Y==g&&J==g&&g.firstChild&&L.dom.isBlock(g.firstChild)){Y=J=Y.firstChild;X=H=0;V=c.createRange();V.setStart(Y,0);W=c.createRange();W.setStart(J,0)}Y=Y.nodeName=="BODY"?Y.firstChild:Y;J=J.nodeName=="BODY"?J.firstChild:J;K=P.getParentBlock(Y);N=P.getParentBlock(J);G=K?K.nodeName:h.element;if(P.dom.getParent(K,function(b){return/OL|UL|PRE/.test(b.nodeName)})){return true}if(K&&(K.nodeName=="CAPTION"||/absolute|relative|static/gi.test(K.style.position))){G=h.element;K=null}if(N&&(N.nodeName=="CAPTION"||/absolute|relative|static/gi.test(N.style.position))){G=h.element;N=null}if(/(TD|TABLE|TH|CAPTION)/.test(G)||(K&&G=="DIV"&&/left|right/gi.test(K.style.cssFloat))){G=h.element;K=N=null}O=(K&&K.nodeName==G)?K.cloneNode(0):L.dom.create(G);f=(N&&N.nodeName==G)?N.cloneNode(0):L.dom.create(G);f.removeAttribute("id");if(/^(H[1-6])$/.test(G)&&Y.nodeValue&&X==Y.nodeValue.length){f=L.dom.create(h.element)}U=I=Y;do{if(U==g||U.nodeType==9||P.dom.isBlock(U)||/(TD|TABLE|TH|CAPTION)/.test(U.nodeName)){break}I=U}while((U=U.previousSibling?U.previousSibling:U.parentNode));U=M=J;do{if(U==g||U.nodeType==9||P.dom.isBlock(U)||/(TD|TABLE|TH|CAPTION)/.test(U.nodeName)){break}M=U}while((U=U.nextSibling?U.nextSibling:U.parentNode));if(I.nodeName==G){V.setStart(I,0)}else{V.setStartBefore(I)}V.setEnd(Y,X);O.appendChild(V.cloneContents()||c.createTextNode(""));try{W.setEndAfter(M)}catch(Z){}W.setStart(J,H);f.appendChild(W.cloneContents()||c.createTextNode(""));S=c.createRange();if(!I.previousSibling&&I.parentNode.nodeName==G){S.setStartBefore(I.parentNode)}else{if(V.startContainer.nodeName==G&&V.startOffset==0){S.setStartBefore(V.startContainer)}else{S.setStart(V.startContainer,V.startOffset)}}if(!M.nextSibling&&M.parentNode.nodeName==G){S.setEndAfter(M.parentNode)}else{S.setEnd(W.endContainer,W.endOffset)}S.deleteContents();if(O.firstChild&&O.firstChild.nodeName==G){O.innerHTML=O.firstChild.innerHTML}if(f.firstChild&&f.firstChild.nodeName==G){f.innerHTML=f.firstChild.innerHTML}if(Q(O)){O.innerHTML="<br />"}if(Q(f)){f.innerHTML=C?"&nbsp;":"<br />"}if(C){S.insertNode(O);S.insertNode(f)}else{S.insertNode(f);S.insertNode(O)}f.normalize();O.normalize();S=c.createRange();S.selectNodeContents(f);S.collapse(1);R.removeAllRanges();R.addRange(S);if(tinymce.isWebKit){L.getWin().scrollTo(0,L.dom.getPos(f).y)}else{f.scrollIntoView(0)}return false},backspaceDelete:function(J,N){var P=this,I=P.editor,M=I.getBody(),H,K=I.selection,G=K.getRng(),L=G.startContainer,H;if(L&&I.dom.isBlock(L)&&N){if(L.childNodes.length==1&&L.firstChild.nodeName=="BR"){H=L.previousSibling;if(H){I.dom.remove(L);K.select(H,1);K.collapse(0);return B.cancel(J)}}}function O(Q){Q=Q.target;if(Q&&Q.parentNode&&Q.nodeName=="BR"&&P.getParentBlock(Q)){I.dom.remove(Q);B.remove(M,"DOMNodeInserted",O)}}B._add(M,"DOMNodeInserted",O);window.setTimeout(function(){B._remove(M,"DOMNodeInserted",O)},1)}})})();(function(){var B=tinymce.DOM,A=tinymce.dom.Event,C=tinymce.each,D=tinymce.extend;tinymce.create("tinymce.ControlManager",{ControlManager:function(E,H){var G=this,F;H=H||{};G.editor=E;G.controls={};G.onAdd=new tinymce.util.Dispatcher(G);G.onPostRender=new tinymce.util.Dispatcher(G);G.prefix=H.prefix||E.id+"_";G.onPostRender.add(function(){C(G.controls,function(I){I.postRender()})})},get:function(E){return this.controls[this.prefix+E]||this.controls[E]},setActive:function(G,E){var F=null;if(F=this.get(G)){F.setActive(E)}return F},setDisabled:function(G,E){var F=null;if(F=this.get(G)){F.setDisabled(E)}return F},add:function(F){var E=this;if(F){E.controls[F.id]=F;E.onAdd.dispatch(F,E)}return F},createControl:function(H){var G,F=this,E=F.editor;C(E.plugins,function(I){if(I.createControl){G=I.createControl(H,F);if(G){return false}}});switch(H){case"|":case"separator":return F.createSeparator()}if(!G&&E.buttons&&(G=E.buttons[H])){return F.createButton(H,G)}return F.add(G)},createDropMenu:function(I,G){var F=this,E=F.editor,H;G=D({"class":"mceDropDown"},G);G["class"]=G["class"]+" "+E.getParam("skin")+"Skin";I=F.prefix+I;H=F.controls[I]=new tinymce.ui.DropMenu(I,G);H.onAddItem.add(function(L,K){var J=K.settings;J.title=E.getLang(J.title,J.title);if(!J.onclick){J.onclick=function(M){E.execCommand(J.cmd,J.ui||false,M||J.value)}}});E.onRemove.add(function(){H.destroy()});return F.add(H)},createListBox:function(J,G){var F=this,E=F.editor,H,I;if(F.get(J)){return null}G.title=E.translate(G.title);G.scope=G.scope||E;if(!G.onselect){G.onselect=function(K){E.execCommand(G.cmd,G.ui||false,K||G.value)}}G=D({title:G.title,"class":J,scope:G.scope,control_manager:F},G);J=F.prefix+J;if(E.settings.use_native_selects){I=new tinymce.ui.NativeListBox(J,G)}else{I=new tinymce.ui.ListBox(J,G)}F.controls[J]=I;if(tinymce.isWebKit){I.onPostRender.add(function(L,K){A.add(K,"mousedown",function(){E.bookmark=E.selection.getBookmark("simple")});A.add(K,"focus",function(){E.selection.moveToBookmark(E.bookmark);E.bookmark=null})})}if(I.hideMenu){E.onMouseDown.add(I.hideMenu,I)}return F.add(I)},createButton:function(J,G){var F=this,E=F.editor,H,I;if(F.get(J)){return null}G.title=E.translate(G.title);G.scope=G.scope||E;if(!G.onclick&&!G.menu_button){G.onclick=function(){E.execCommand(G.cmd,G.ui||false,G.value)}}G=D({title:G.title,"class":J,unavailable_prefix:E.getLang("unavailable",""),scope:G.scope,control_manager:F},G);J=F.prefix+J;if(G.menu_button){I=new tinymce.ui.MenuButton(J,G);E.onMouseDown.add(I.hideMenu,I)}else{I=new tinymce.ui.Button(J,G)}return F.add(I)},createMenuButton:function(F,E){E=E||{};E.menu_button=1;return this.createButton(F,E)},createSplitButton:function(J,G){var F=this,E=F.editor,H,I;if(F.get(J)){return null}G.title=E.translate(G.title);G.scope=G.scope||E;if(!G.onclick){G.onclick=function(K){E.execCommand(G.cmd,G.ui||false,K||G.value)}}if(!G.onselect){G.onselect=function(K){E.execCommand(G.cmd,G.ui||false,K||G.value)}}G=D({title:G.title,"class":J,scope:G.scope,control_manager:F},G);J=F.prefix+J;I=F.add(new tinymce.ui.SplitButton(J,G));E.onMouseDown.add(I.hideMenu,I);return I},createColorSplitButton:function(J,G){var F=this,E=F.editor,H,I;if(F.get(J)){return null}G.title=E.translate(G.title);G.scope=G.scope||E;if(!G.onclick){G.onclick=function(K){E.execCommand(G.cmd,G.ui||false,K||G.value)}}if(!G.onselect){G.onselect=function(K){E.execCommand(G.cmd,G.ui||false,K||G.value)}}G=D({title:G.title,"class":J,"menu_class":E.getParam("skin")+"Skin",scope:G.scope,more_colors_title:E.getLang("more_colors")},G);J=F.prefix+J;I=new tinymce.ui.ColorSplitButton(J,G);E.onMouseDown.add(I.hideMenu,I);return F.add(I)},createToolbar:function(H,F){var G,E=this;H=E.prefix+H;G=new tinymce.ui.Toolbar(H,F);if(E.get(H)){return null}return E.add(G)},createSeparator:function(){return new tinymce.ui.Separator()}})})();(function(){var Dispatcher=tinymce.util.Dispatcher,each=tinymce.each,isIE=tinymce.isIE,isOpera=tinymce.isOpera;tinymce.create("tinymce.WindowManager",{WindowManager:function(ed){var t=this;t.editor=ed;t.onOpen=new Dispatcher(t);t.onClose=new Dispatcher(t);t.params={};t.features={}},open:function(s,p){var t=this,f="",x,y,mo=t.editor.settings.dialog_type=="modal",w,sw,sh,vp=tinymce.DOM.getViewPort();s=s||{};p=p||{};sw=isOpera?vp.w:screen.width;sh=isOpera?vp.h:screen.height;s.name=s.name||"mc_"+new Date().getTime();s.width=parseInt(s.width||320);s.height=parseInt(s.height||240);s.resizable=true;s.left=s.left||parseInt(sw/2)-(s.width/2);s.top=s.top||parseInt(sh/2)-(s.height/2);p.inline=false;p.mce_width=s.width;p.mce_height=s.height;if(mo){if(isIE){s.center=true;s.help=false;s.dialogWidth=s.width+"px";s.dialogHeight=s.height+"px";s.scroll=s.scrollbars||false}else{s.modal=s.alwaysRaised=s.dialog=s.centerscreen=s.dependent=true}}each(s,function(v,k){if(tinymce.is(v,"boolean")){v=v?"yes":"no"}if(!/^(name|url)$/.test(k)){if(isIE&&mo){f+=(f?";":"")+k+":"+v}else{f+=(f?",":"")+k+"="+v}}});t.features=s;t.params=p;t.onOpen.dispatch(t,s,p);try{if(isIE&&mo){w=1;window.showModalDialog(s.url||s.file,window,f)}else{w=window.open(s.url||s.file,s.name,f)}}catch(ex){}if(!w){alert(t.editor.getLang("popup_blocked"))}},close:function(w){w.close();this.onClose.dispatch(this)},createInstance:function(cl){var a=arguments,i,f=tinymce.resolve(cl),s="";for(i=1;i<a.length;i++){s+=(i>1?",":"")+"a["+i+"]"}return eval("(new f("+s+"))")},confirm:function(t,cb,s){cb.call(s||this,confirm(this._decode(this.editor.getLang(t,t))))},alert:function(t,cb,s){alert(this._decode(t));if(cb){cb.call(s||this)}},_decode:function(s){return tinymce.DOM.decode(s).replace(/\\n/g,"\n")}})}())