Changeset 9

Show
Ignore:
Timestamp:
11/15/07 23:58:24 (1 year ago)
Author:
brennan
Message:

changed script compressor over to use Packer mode

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Website/tiny_mce/themes/custom/editor_template.js

    r7 r9  
    11/* 
    2  * JSMin 
     2 * Packer 3.0 
    33 * Javascript Compressor 
    4  * http://www.crockford.com
     4 * http://dean.edwards.name
    55 * http://www.smallsharptools.com/ 
    66*/ 
    7  
    8 tinyMCE.importThemeLanguagePack('custom');var TinyMCE_CustomTheme={_defColors:"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",_autoImportCSSClasses:true,_resizer:{},_buttons:[['bold','{$lang_bold_img}','lang_bold_desc','Bold'],['italic','{$lang_italic_img}','lang_italic_desc','Italic'],['bullist','bullist.gif','lang_bullist_desc','InsertUnorderedList'],['numlist','numlist.gif','lang_numlist_desc','InsertOrderedList'],['outdent','outdent.gif','lang_outdent_desc','Outdent'],['indent','indent.gif','lang_indent_desc','Indent'],['cut','cut.gif','lang_cut_desc','Cut'],['copy','copy.gif','lang_copy_desc','Copy'],['paste','paste.gif','lang_paste_desc','Paste'],['undo','undo.gif','lang_undo_desc','Undo'],['redo','redo.gif','lang_redo_desc','Redo'],['link','link.gif','lang_link_desc','mceLink',true],['unlink','unlink.gif','lang_unlink_desc','unlink'],['cleanup','cleanup.gif','lang_cleanup_desc','mceCleanup'],['help','help.gif','lang_help_desc','mceHelp'],['code','code.gif','lang_theme_code_desc','mceCodeEditor'],['hr','hr.gif','lang_theme_hr_desc','inserthorizontalrule'],['removeformat','removeformat.gif','lang_theme_removeformat_desc','removeformat'],['charmap','charmap.gif','lang_theme_charmap_desc','mceCharMap'],['anchor','anchor.gif','lang_theme_anchor_desc','mceInsertAnchor']],_buttonMap:'anchor,bold,bullist,charmap,cleanup,code,copy,cut,help,indent,italic,hr,link,numlist,outdent,paste,redo,removeformat,undo,unlink,advhr,ltr,rtl,emotions,flash,fullpage,fullscreen,iespell,insertdate,inserttime,pastetext,pasteword,selectall,preview,print,save,replace,search',getControlHTML:function(button_name){var i,x,but;for(i=0;i<TinyMCE_CustomTheme._buttons.length;i++){but=TinyMCE_CustomTheme._buttons[i];if(but[0]==button_name&&(button_name=="forecolor"||button_name=="backcolor")) 
    9 return tinyMCE.getMenuButtonHTML(but[0],but[2],'{$themeurl}/images/'+but[1],but[3]+"Menu",but[3],(but.length>4?but[4]:false),(but.length>5?but[5]:null));if(but[0]==button_name) 
    10 return tinyMCE.getButtonHTML(but[0],but[2],'{$themeurl}/images/'+but[1],but[3],(but.length>4?but[4]:false),(but.length>5?but[5]:null));} 
    11 switch(button_name){case"formatselect":var html='<select id="{$editor_id}_formatSelect" name="{$editor_id}_formatSelect" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FormatBlock\',false,this.options[this.selectedIndex].value);" class="mceSelectList">';var formats=tinyMCE.getParam("theme_custom_blockformats","p,address,pre,h1,h2,h3,h4,h5,h6",true).split(',');var lookup=[['p','{$lang_theme_paragraph}'],['address','{$lang_theme_address}'],['pre','{$lang_theme_pre}'],['h1','{$lang_theme_h1}'],['h2','{$lang_theme_h2}'],['h3','{$lang_theme_h3}'],['h4','{$lang_theme_h4}'],['h5','{$lang_theme_h5}'],['h6','{$lang_theme_h6}'],['div','{$lang_theme_div}'],['blockquote','{$lang_theme_blockquote}'],['code','{$lang_theme_code}'],['dt','{$lang_theme_dt}'],['dd','{$lang_theme_dd}'],['samp','{$lang_theme_samp}']];html+='<option value="">{$lang_theme_block}</option>';for(var i=0;i<formats.length;i++){for(var x=0;x<lookup.length;x++){if(formats[i]==lookup[x][0]) 
    12 html+='<option value="&lt;'+lookup[x][0]+'&gt;">'+lookup[x][1]+'</option>';}} 
    13 html+='</select>';return html;case"styleselect":return'<select id="{$editor_id}_styleSelect" onmousedown="tinyMCE.themes.custom._setupCSSClasses(\'{$editor_id}\');" name="{$editor_id}_styleSelect" onfocus="tinyMCE.addSelectAccessibility(event,this,window);" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceSetCSSClass\',false,this.options[this.selectedIndex].value);" class="mceSelectList">{$style_select_options}</select>';case"fontselect":var fontHTML='<select id="{$editor_id}_fontNameSelect" name="{$editor_id}_fontNameSelect" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FontName\',false,this.options[this.selectedIndex].value);" class="mceSelectList"><option value="">{$lang_theme_fontdefault}</option>';var iFonts='Arial=arial,helvetica,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,times new roman,times,serif;Tahoma=tahoma,arial,helvetica,sans-serif;Times New Roman=times new roman,times,serif;Verdana=verdana,arial,helvetica,sans-serif;Impact=impact;WingDings=wingdings';var nFonts='Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats';var fonts=tinyMCE.getParam("theme_custom_fonts",nFonts).split(';');for(i=0;i<fonts.length;i++){if(fonts[i]!=''){var parts=fonts[i].split('=');fontHTML+='<option value="'+parts[1]+'">'+parts[0]+'</option>';}} 
    14 fontHTML+='</select>';return fontHTML;case"fontsizeselect":return'<select id="{$editor_id}_fontSizeSelect" name="{$editor_id}_fontSizeSelect" onfocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'FontSize\',false,this.options[this.selectedIndex].value);" class="mceSelectList">'+'<option value="0">{$lang_theme_font_size}</option>'+'<option value="1">1 (8 pt)</option>'+'<option value="2">2 (10 pt)</option>'+'<option value="3">3 (12 pt)</option>'+'<option value="4">4 (14 pt)</option>'+'<option value="5">5 (18 pt)</option>'+'<option value="6">6 (24 pt)</option>'+'<option value="7">7 (36 pt)</option>'+'</select>';case"|":case"separator":return'<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine" alt="" />';case"spacer":return'<img src="{$themeurl}/images/separator.gif" width="2" height="15" border="0" class="mceSeparatorLine" style="vertical-align: middle" alt="" />';case"rowseparator":return'<br />';} 
    15 return"";},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case'mceHelp':tinyMCE.openWindow({file:'about.htm',width:480,height:380},{tinymce_version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion,tinymce_releasedate:tinyMCE.releaseDate,inline:"yes"});return true;case"mceLink":var inst=tinyMCE.getInstanceById(editor_id);var doc=inst.getDoc();var selectedText="";if(tinyMCE.isMSIE){var rng=doc.selection.createRange();selectedText=rng.text;}else 
    16 selectedText=inst.getSel().toString();if(!tinyMCE.linkElement){if((tinyMCE.selectedElement.nodeName.toLowerCase()!="img")&&(selectedText.length<=0)) 
    17 return true;} 
    18 var href="",target="",title="",onclick="",action="insert",style_class="";if(tinyMCE.selectedElement.nodeName.toLowerCase()=="a") 
    19 tinyMCE.linkElement=tinyMCE.selectedElement;if(tinyMCE.linkElement!=null&&tinyMCE.getAttrib(tinyMCE.linkElement,'href')=="") 
    20 tinyMCE.linkElement=null;if(tinyMCE.linkElement){href=tinyMCE.getAttrib(tinyMCE.linkElement,'href');target=tinyMCE.getAttrib(tinyMCE.linkElement,'target');title=tinyMCE.getAttrib(tinyMCE.linkElement,'title');onclick=tinyMCE.getAttrib(tinyMCE.linkElement,'onclick');style_class=tinyMCE.getAttrib(tinyMCE.linkElement,'class');if(onclick=="") 
    21 onclick=tinyMCE.getAttrib(tinyMCE.linkElement,'onclick');onclick=tinyMCE.cleanupEventStr(onclick);href=eval(tinyMCE.settings['urlconverter_callback']+"(href, tinyMCE.linkElement, true);");mceRealHref=tinyMCE.getAttrib(tinyMCE.linkElement,'mce_href');if(mceRealHref!=""){href=mceRealHref;if(tinyMCE.getParam('convert_urls')) 
    22 href=eval(tinyMCE.settings['urlconverter_callback']+"(href, tinyMCE.linkElement, true);");} 
    23 action="update";} 
    24 var template=new Array();template['file']='link.htm';template['width']=310;template['height']=200;template['width']+=tinyMCE.getLang('lang_insert_link_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_link_delta_height',0);if(inst.settings['insertlink_callback']){var returnVal=eval(inst.settings['insertlink_callback']+"(href, target, title, onclick, action, style_class);");if(returnVal&&returnVal['href']) 
    25 TinyMCE_CustomTheme._insertLink(returnVal['href'],returnVal['target'],returnVal['title'],returnVal['onclick'],returnVal['style_class']);}else{tinyMCE.openWindow(template,{href:href,target:target,title:title,onclick:onclick,action:action,className:style_class,inline:"yes"});} 
    26 return true;case"mceImage":var src="",alt="",border="",hspace="",vspace="",width="",height="",align="";var title="",onmouseover="",onmouseout="",action="insert";var img=tinyMCE.imgElement;var inst=tinyMCE.getInstanceById(editor_id);if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img"){img=tinyMCE.selectedElement;tinyMCE.imgElement=img;} 
    27 if(img){if(tinyMCE.getAttrib(img,'name').indexOf('mce_')==0) 
    28 return true;src=tinyMCE.getAttrib(img,'src');alt=tinyMCE.getAttrib(img,'alt');if(alt=="") 
    29 alt=tinyMCE.getAttrib(img,'title');if(tinyMCE.isGecko){var w=img.style.width;if(w!=null&&w!="") 
    30 img.setAttribute("width",w);var h=img.style.height;if(h!=null&&h!="") 
    31 img.setAttribute("height",h);} 
    32 border=tinyMCE.getAttrib(img,'border');hspace=tinyMCE.getAttrib(img,'hspace');vspace=tinyMCE.getAttrib(img,'vspace');width=tinyMCE.getAttrib(img,'width');height=tinyMCE.getAttrib(img,'height');align=tinyMCE.getAttrib(img,'align');onmouseover=tinyMCE.getAttrib(img,'onmouseover');onmouseout=tinyMCE.getAttrib(img,'onmouseout');title=tinyMCE.getAttrib(img,'title');if(tinyMCE.isMSIE){width=img.attributes['width'].specified?width:"";height=img.attributes['height'].specified?height:"";} 
    33 src=eval(tinyMCE.settings['urlconverter_callback']+"(src, img, true);");mceRealSrc=tinyMCE.getAttrib(img,'mce_src');if(mceRealSrc!=""){src=mceRealSrc;if(tinyMCE.getParam('convert_urls')) 
    34 src=eval(tinyMCE.settings['urlconverter_callback']+"(src, img, true);");} 
    35 action="update";} 
    36 var template=new Array();template['file']='image.htm?src={$src}';template['width']=355;template['height']=265+(tinyMCE.isMSIE?25:0);template['width']+=tinyMCE.getLang('lang_insert_image_delta_width',0);template['height']+=tinyMCE.getLang('lang_insert_image_delta_height',0);if(inst.settings['insertimage_callback']){var returnVal=eval(inst.settings['insertimage_callback']+"(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action);");if(returnVal&&returnVal['src']) 
    37 TinyMCE_CustomTheme._insertImage(returnVal['src'],returnVal['alt'],returnVal['border'],returnVal['hspace'],returnVal['vspace'],returnVal['width'],returnVal['height'],returnVal['align'],returnVal['title'],returnVal['onmouseover'],returnVal['onmouseout']);}else 
    38 tinyMCE.openWindow(template,{src:src,alt:alt,border:border,hspace:hspace,vspace:vspace,width:width,height:height,align:align,title:title,onmouseover:onmouseover,onmouseout:onmouseout,action:action,inline:"yes"});return true;case"forecolor":var fcp=new TinyMCE_Layer(editor_id+'_fcPreview',false),p,img,elm;TinyMCE_CustomTheme._hideMenus(editor_id);if(!fcp.exists()){fcp.create('div','mceColorPreview',document.getElementById(editor_id+'_toolbar'));elm=fcp.getElement();elm._editor_id=editor_id;elm._command="forecolor";elm._switchId=editor_id+"_forecolor";tinyMCE.addEvent(elm,'click',TinyMCE_CustomTheme._handleMenuEvent);tinyMCE.addEvent(elm,'mouseover',TinyMCE_CustomTheme._handleMenuEvent);tinyMCE.addEvent(elm,'mouseout',TinyMCE_CustomTheme._handleMenuEvent);} 
    39 img=tinyMCE.selectNodes(document.getElementById(editor_id+"_forecolor"),function(n){return n.nodeName=="IMG";})[0];p=tinyMCE.getAbsPosition(img,document.getElementById(editor_id+'_toolbar'));fcp.moveTo(p.absLeft,p.absTop);fcp.getElement().style.backgroundColor=value!=null?value:tinyMCE.getInstanceById(editor_id).foreColor;fcp.show();return false;case"forecolorpicker":this._pickColor(editor_id,'forecolor');return true;case"forecolorMenu":TinyMCE_CustomTheme._hideMenus(editor_id);var ml=new TinyMCE_Layer(editor_id+'_fcMenu');if(!ml.exists()) 
    40 ml.create('div','mceMenu',document.body,TinyMCE_CustomTheme._getColorHTML(editor_id,'theme_custom_text_colors','forecolor'));tinyMCE.switchClass(editor_id+'_forecolor','mceMenuButtonFocus');ml.moveRelativeTo(document.getElementById(editor_id+"_forecolor"),'bl');ml.moveBy(tinyMCE.isMSIE&&!tinyMCE.isOpera?-1:1,-1);if(tinyMCE.isOpera) 
    41 ml.moveBy(0,-2);ml.show();return true;case"HiliteColor":var bcp=new TinyMCE_Layer(editor_id+'_bcPreview',false),p,img;TinyMCE_CustomTheme._hideMenus(editor_id);if(!bcp.exists()){bcp.create('div','mceColorPreview',document.getElementById(editor_id+'_toolbar'));elm=bcp.getElement();elm._editor_id=editor_id;elm._command="HiliteColor";elm._switchId=editor_id+"_backcolor";tinyMCE.addEvent(elm,'click',TinyMCE_CustomTheme._handleMenuEvent);tinyMCE.addEvent(elm,'mouseover',TinyMCE_CustomTheme._handleMenuEvent);tinyMCE.addEvent(elm,'mouseout',TinyMCE_CustomTheme._handleMenuEvent);} 
    42 img=tinyMCE.selectNodes(document.getElementById(editor_id+"_backcolor"),function(n){return n.nodeName=="IMG";})[0];p=tinyMCE.getAbsPosition(img,document.getElementById(editor_id+'_toolbar'));bcp.moveTo(p.absLeft,p.absTop);bcp.getElement().style.backgroundColor=value!=null?value:tinyMCE.getInstanceById(editor_id).backColor;bcp.show();return false;case"HiliteColorMenu":TinyMCE_CustomTheme._hideMenus(editor_id);var ml=new TinyMCE_Layer(editor_id+'_bcMenu');if(!ml.exists()) 
    43 ml.create('div','mceMenu',document.body,TinyMCE_CustomTheme._getColorHTML(editor_id,'theme_custom_background_colors','HiliteColor'));tinyMCE.switchClass(editor_id+'_backcolor','mceMenuButtonFocus');ml.moveRelativeTo(document.getElementById(editor_id+"_backcolor"),'bl');ml.moveBy(tinyMCE.isMSIE&&!tinyMCE.isOpera?-1:1,-1);if(tinyMCE.isOpera) 
    44 ml.moveBy(0,-2);ml.show();return true;case"backcolorpicker":this._pickColor(editor_id,'HiliteColor');return true;case"mceColorPicker":if(user_interface){var template=[];if(!value['callback']&&!value['color']) 
    45 value['color']=value['document'].getElementById(value['element_id']).value;template['file']='color_picker.htm';template['width']=380;template['height']=250;template['close_previous']="no";template['width']+=tinyMCE.getLang('lang_theme_custom_colorpicker_delta_width',0);template['height']+=tinyMCE.getLang('lang_theme_custom_colorpicker_delta_height',0);if(typeof(value['store_selection'])=="undefined") 
    46 value['store_selection']=true;tinyMCE.lastColorPickerValue=value;tinyMCE.openWindow(template,{editor_id:editor_id,mce_store_selection:value['store_selection'],inline:"yes",command:"mceColorPicker",input_color:value['color']});}else{var savedVal=tinyMCE.lastColorPickerValue,elm;if(savedVal['callback']){savedVal['callback'](value);return true;} 
    47 elm=savedVal['document'].getElementById(savedVal['element_id']);elm.value=value;if(elm.onchange!=null&&elm.onchange!='') 
    48 eval('elm.onchange();');} 
    49 return true;case"mceCodeEditor":var template=new Array();template['file']='source_editor.htm';template['width']=parseInt(tinyMCE.getParam("theme_custom_source_editor_width",720));template['height']=parseInt(tinyMCE.getParam("theme_custom_source_editor_height",580));tinyMCE.openWindow(template,{editor_id:editor_id,resizable:"yes",scrollbars:"no",inline:"yes"});return true;case"mceCharMap":var template=new Array();template['file']='charmap.htm';template['width']=550+(tinyMCE.isOpera?40:0);template['height']=250;template['width']+=tinyMCE.getLang('lang_theme_custom_charmap_delta_width',0);template['height']+=tinyMCE.getLang('lang_theme_custom_charmap_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true;case"mceInsertAnchor":var template=new Array();template['file']='anchor.htm';template['width']=320;template['height']=90+(tinyMCE.isNS7?30:0);template['width']+=tinyMCE.getLang('lang_theme_custom_anchor_delta_width',0);template['height']+=tinyMCE.getLang('lang_theme_custom_anchor_delta_height',0);tinyMCE.openWindow(template,{editor_id:editor_id,inline:"yes"});return true;case"mceNewDocument":if(confirm(tinyMCE.entityDecode(tinyMCE.getLang('lang_newdocument')))) 
    50 tinyMCE.execInstanceCommand(editor_id,'mceSetContent',false,' ');return true;} 
    51 return false;},getEditorTemplate:function(settings,editorId){function removeFromArray(in_array,remove_array){var outArray=new Array(),skip;for(var i=0;i<in_array.length;i++){skip=false;for(var j=0;j<remove_array.length;j++){if(in_array[i]==remove_array[j]){skip=true;}} 
    52 if(!skip){outArray[outArray.length]=in_array[i];}} 
    53 return outArray;} 
    54 function addToArray(in_array,add_array){for(var i=0;i<add_array.length;i++){in_array[in_array.length]=add_array[i];} 
    55 return in_array;} 
    56 var template=new Array();var deltaHeight=0;var resizing=tinyMCE.getParam("theme_custom_resizing",false);var path=tinyMCE.getParam("theme_custom_path",true);var statusbarHTML='<div id="{$editor_id}_path" class="mceStatusbarPathText" style="display: '+(path?"block":"none")+'">&#160;</div><div id="{$editor_id}_resize" class="mceStatusbarResize" style="display: '+(resizing?"block":"none")+'" onmousedown="tinyMCE.themes.custom._setResizing(event,\'{$editor_id}\',true);"></div><br style="clear: both" />';var layoutManager=tinyMCE.getParam("theme_custom_layout_manager","SimpleLayout");var styleSelectHTML='<option value="">{$lang_theme_style_select}</option>';if(settings['theme_custom_styles']){var stylesAr=settings['theme_custom_styles'].split(';');for(var i=0;i<stylesAr.length;i++){var key,value;key=stylesAr[i].split('=')[0];value=stylesAr[i].split('=')[1];styleSelectHTML+='<option value="'+value+'">'+key+'</option>';} 
    57 TinyMCE_CustomTheme._autoImportCSSClasses=false;} 
    58 switch(layoutManager){case"SimpleLayout":var toolbarHTML="";var toolbarLocation=tinyMCE.getParam("theme_custom_toolbar_location","bottom");var toolbarAlign=tinyMCE.getParam("theme_custom_toolbar_align","center");var pathLocation=tinyMCE.getParam("theme_custom_path_location","none");var statusbarLocation=tinyMCE.getParam("theme_custom_statusbar_location",pathLocation);var defVals={theme_custom_buttons1:"bold,italic,bullist,numlist,outdent,indent,separator,styleselect,formatselect",theme_custom_buttons2:"link,unlink,anchor,hr,removeformat,separator,charmap,undo,redo,cleanup,code,help",theme_custom_buttons3:""};toolbarHTML+='<a href="#" accesskey="q" title="'+tinyMCE.getLang("lang_toolbar_focus")+'"';if(!tinyMCE.getParam("accessibility_focus")) 
    59 toolbarHTML+=' onfocus="tinyMCE.getInstanceById(\''+editorId+'\').getWin().focus();"';toolbarHTML+='></a>';for(var i=1;i<100;i++){var def=defVals["theme_custom_buttons"+i];var buttons=tinyMCE.getParam("theme_custom_buttons"+i,def==null?'':def,true,',');if(buttons.length==0) 
    60 break;buttons=removeFromArray(buttons,tinyMCE.getParam("theme_custom_disable","",true,','));buttons=addToArray(buttons,tinyMCE.getParam("theme_custom_buttons"+i+"_add","",true,','));buttons=addToArray(tinyMCE.getParam("theme_custom_buttons"+i+"_add_before","",true,','),buttons);for(var b=0;b<buttons.length;b++) 
    61 toolbarHTML+=tinyMCE.getControlHTML(buttons[b]);if(buttons.length>0){toolbarHTML+="<br />";deltaHeight-=23;}} 
    62 toolbarHTML+='<a href="#" accesskey="z" onfocus="tinyMCE.getInstanceById(\''+editorId+'\').getWin().focus();"></a>';template['html']='<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}" style="width:{$width_style};height:{$height_style}"><tbody>';if(toolbarLocation=="top") 
    63 template['html']+='<tr><td dir="ltr" class="mceToolbarTop" align="'+toolbarAlign+'" height="1" nowrap="nowrap"><span id="'+editorId+'_toolbar" class="mceToolbarContainer">'+toolbarHTML+'</span></td></tr>';if(statusbarLocation=="top"){template['html']+='<tr><td class="mceStatusbarTop" height="1">'+statusbarHTML+'</td></tr>';deltaHeight-=23;} 
    64 template['html']+='<tr><td align="center"><span id="{$editor_id}"></span></td></tr>';if(toolbarLocation=="bottom") 
    65 template['html']+='<tr><td dir="ltr" class="mceToolbarBottom" align="'+toolbarAlign+'" height="1"><span id="'+editorId+'_toolbar" class="mceToolbarContainer">'+toolbarHTML+'</span></td></tr>';if(toolbarLocation=="external"){var bod=document.body;var elm=document.createElement("div");toolbarHTML=tinyMCE.replaceVar(toolbarHTML,'style_select_options',styleSelectHTML);toolbarHTML=tinyMCE.applyTemplate(toolbarHTML,{editor_id:editorId});elm.className="mceToolbarExternal";elm.id=editorId+"_toolbar";elm.innerHTML='<table width="100%" border="0" align="center"><tr><td align="center">'+toolbarHTML+'</td></tr></table>';bod.appendChild(elm);deltaHeight=0;tinyMCE.getInstanceById(editorId).toolbarElement=elm;}else{tinyMCE.getInstanceById(editorId).toolbarElement=null;} 
    66 if(statusbarLocation=="bottom"){template['html']+='<tr><td class="mceStatusbarBottom" height="1">'+statusbarHTML+'</td></tr>';deltaHeight-=23;} 
    67 template['html']+='</tbody></table>';break;case"RowLayout":template['html']='<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}" style="width:{$width}px;height:{$height}px"><tbody>';var containers=tinyMCE.getParam("theme_custom_containers","",true,",");var defaultContainerCSS=tinyMCE.getParam("theme_custom_containers_default_class","container");var defaultContainerAlign=tinyMCE.getParam("theme_custom_containers_default_align","center");for(var i=0;i<containers.length;i++) 
    68 {if(containers[i]=="mceEditor") 
    69 template['html']+='<tr><td align="center" class="mceEditor_border"><span id="{$editor_id}"></span></td></tr>';else if(containers[i]=="mceElementpath"||containers[i]=="mceStatusbar") 
    70 {var pathClass="mceStatusbar";if(i==containers.length-1) 
    71 {pathClass="mceStatusbarBottom";} 
    72 else if(i==0) 
    73 {pathClass="mceStatusbar";} 
    74 else 
    75 {deltaHeight-=2;} 
    76 template['html']+='<tr><td class="'+pathClass+'" height="1">'+statusbarHTML+'</td></tr>';deltaHeight-=22;}else{var curContainer=tinyMCE.getParam("theme_custom_container_"+containers[i],"",true,',');var curContainerHTML="";var curAlign=tinyMCE.getParam("theme_custom_container_"+containers[i]+"_align",defaultContainerAlign);var curCSS=tinyMCE.getParam("theme_custom_container_"+containers[i]+"_class",defaultContainerCSS);curContainer=removeFromArray(curContainer,tinyMCE.getParam("theme_custom_disable","",true,','));for(var j=0;j<curContainer.length;j++) 
    77 curContainerHTML+=tinyMCE.getControlHTML(curContainer[j]);if(curContainer.length>0){curContainerHTML+="<br />";deltaHeight-=23;} 
    78 template['html']+='<tr><td class="'+curCSS+'" align="'+curAlign+'" height="1">'+curContainerHTML+'</td></tr>';}} 
    79 template['html']+='</tbody></table>';break;case"CustomLayout":var customLayout=tinyMCE.getParam("theme_custom_custom_layout","");if(customLayout!=""&&eval("typeof("+customLayout+")")!="undefined"){template=eval(customLayout+"(template);");} 
    80 break;} 
    81 if(resizing) 
    82 template['html']+='<span id="{$editor_id}_resize_box" class="mceResizeBox"></span>';template['html']=tinyMCE.replaceVar(template['html'],'style_select_options',styleSelectHTML);if(!template['delta_width']) 
    83 template['delta_width']=0;if(!template['delta_height']) 
    84 template['delta_height']=deltaHeight;return template;},initInstance:function(inst){if(tinyMCE.getParam("theme_custom_resizing",false)){if(tinyMCE.getParam("theme_custom_resizing_use_cookie",true)){var w=TinyMCE_CustomTheme._getCookie("TinyMCE_"+inst.editorId+"_width");var h=TinyMCE_CustomTheme._getCookie("TinyMCE_"+inst.editorId+"_height");TinyMCE_CustomTheme._resizeTo(inst,w,h,tinyMCE.getParam("theme_custom_resize_horizontal",true));}} 
    85 inst.addShortcut('ctrl','k','lang_link_desc','mceLink');},removeInstance:function(inst){new TinyMCE_Layer(inst.editorId+'_fcMenu').remove();new TinyMCE_Layer(inst.editorId+'_bcMenu').remove();},hideInstance:function(inst){TinyMCE_CustomTheme._hideMenus(inst.editorId);},_handleMenuEvent:function(e){var te=tinyMCE.isMSIE?window.event.srcElement:e.target;tinyMCE._menuButtonEvent(e.type=="mouseover"?"over":"out",document.getElementById(te._switchId));if(e.type=="click") 
    86 tinyMCE.execInstanceCommand(te._editor_id,te._command);},_hideMenus:function(id){var fcml=new TinyMCE_Layer(id+'_fcMenu'),bcml=new TinyMCE_Layer(id+'_bcMenu');if(fcml.exists()&&fcml.isVisible()){tinyMCE.switchClass(id+'_forecolor','mceMenuButton');fcml.hide();} 
    87 if(bcml.exists()&&bcml.isVisible()){tinyMCE.switchClass(id+'_backcolor','mceMenuButton');bcml.hide();}},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection,setup_content){var alignNode,breakOut,classNode;function selectByValue(select_elm,value,first_index){first_index=typeof(first_index)=="undefined"?false:true;if(select_elm){for(var i=0;i<select_elm.options.length;i++){var ov=""+select_elm.options[i].value;if(first_index&&ov.toLowerCase().indexOf(value.toLowerCase())==0){select_elm.selectedIndex=i;return true;} 
    88 if(ov==value){select_elm.selectedIndex=i;return true;}}} 
    89 return false;};if(node==null) 
    90 return;var pathElm=document.getElementById(editor_id+"_path");var inst=tinyMCE.getInstanceById(editor_id);var doc=inst.getDoc();TinyMCE_CustomTheme._hideMenus(editor_id);if(pathElm){var parentNode=node;var path=new Array();while(parentNode!=null){if(parentNode.nodeName.toUpperCase()=="BODY"){break;} 
    91 if(parentNode.nodeType==1&&tinyMCE.getAttrib(parentNode,"class").indexOf('mceItemHidden')==-1){path[path.length]=parentNode;} 
    92 parentNode=parentNode.parentNode;} 
    93 var html="";for(var i=path.length-1;i>=0;i--){var nodeName=path[i].nodeName.toLowerCase();var nodeData="";if(nodeName.indexOf("html:")==0) 
    94 nodeName=nodeName.substring(5);if(nodeName=="b"){nodeName="strong";} 
    95 if(nodeName=="i"){nodeName="em";} 
    96 if(nodeName=="span"){var cn=tinyMCE.getAttrib(path[i],"class");if(cn!=""&&cn.indexOf('mceItem')==-1) 
    97 nodeData+="class: "+cn+" ";var st=tinyMCE.getAttrib(path[i],"style");if(st!=""){st=tinyMCE.serializeStyle(tinyMCE.parseStyle(st));nodeData+="style: "+tinyMCE.xmlEncode(st)+" ";}} 
    98 if(nodeName=="font"){if(tinyMCE.getParam("convert_fonts_to_spans")) 
    99 nodeName="span";var face=tinyMCE.getAttrib(path[i],"face");if(face!="") 
    100 nodeData+="font: "+tinyMCE.xmlEncode(face)+" ";var size=tinyMCE.getAttrib(path[i],"size");if(size!="") 
    101 nodeData+="size: "+tinyMCE.xmlEncode(size)+" ";var color=tinyMCE.getAttrib(path[i],"color");if(color!="") 
    102 nodeData+="color: "+tinyMCE.xmlEncode(color)+" ";} 
    103 if(tinyMCE.getAttrib(path[i],'id')!=""){nodeData+="id: "+path[i].getAttribute('id')+" ";} 
    104 var className=tinyMCE.getVisualAidClass(tinyMCE.getAttrib(path[i],"class"),false);if(className!=""&&className.indexOf('mceItem')==-1) 
    105 nodeData+="class: "+className+" ";if(tinyMCE.getAttrib(path[i],'src')!=""){var src=tinyMCE.getAttrib(path[i],"mce_src");if(src=="") 
    106 src=tinyMCE.getAttrib(path[i],"src");nodeData+="src: "+tinyMCE.xmlEncode(src)+" ";} 
    107 if(path[i].nodeName=='A'&&tinyMCE.getAttrib(path[i],'href')!=""){var href=tinyMCE.getAttrib(path[i],"mce_href");if(href=="") 
    108 href=tinyMCE.getAttrib(path[i],"href");nodeData+="href: "+tinyMCE.xmlEncode(href)+" ";} 
    109 className=tinyMCE.getAttrib(path[i],"class");if((nodeName=="img"||nodeName=="span")&&className.indexOf('mceItem')!=-1){nodeName=className.replace(/mceItem([a-z]+)/gi,'$1').toLowerCase();nodeData=path[i].getAttribute('title');} 
    110 if(nodeName=="a"&&(anchor=tinyMCE.getAttrib(path[i],"name"))!=""){nodeName="a";nodeName+="#"+tinyMCE.xmlEncode(anchor);nodeData="";} 
    111 if(tinyMCE.getAttrib(path[i],'name').indexOf("mce_")!=0){var className=tinyMCE.getVisualAidClass(tinyMCE.getAttrib(path[i],"class"),false);if(className!=""&&className.indexOf('mceItem')==-1){nodeName+="."+className;}} 
    112 var cmd='tinyMCE.execInstanceCommand(\''+editor_id+'\',\'mceSelectNodeDepth\',false,\''+i+'\');';html+='<a title="'+nodeData+'" href="javascript:'+cmd+'" onclick="'+cmd+'return false;" onmousedown="return false;" target="_self" class="mcePathItem">'+nodeName+'</a>';if(i>0){html+=" &raquo; ";}} 
    113 pathElm.innerHTML='<a href="#" accesskey="x"></a>'+tinyMCE.getLang('lang_theme_path')+": "+html+'&#160;';} 
    114 tinyMCE.switchClass(editor_id+'_justifyleft','mceButtonNormal');tinyMCE.switchClass(editor_id+'_justifyright','mceButtonNormal');tinyMCE.switchClass(editor_id+'_justifycenter','mceButtonNormal');tinyMCE.switchClass(editor_id+'_justifyfull','mceButtonNormal');tinyMCE.switchClass(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClass(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClass(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClass(editor_id+'_strikethrough','mceButtonNormal');tinyMCE.switchClass(editor_id+'_bullist','mceButtonNormal');tinyMCE.switchClass(editor_id+'_numlist','mceButtonNormal');tinyMCE.switchClass(editor_id+'_sub','mceButtonNormal');tinyMCE.switchClass(editor_id+'_sup','mceButtonNormal');tinyMCE.switchClass(editor_id+'_anchor','mceButtonNormal');tinyMCE.switchClass(editor_id+'_link','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_unlink','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_outdent','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_image','mceButtonNormal');tinyMCE.switchClass(editor_id+'_hr','mceButtonNormal');if(node.nodeName=="A"&&tinyMCE.getAttrib(node,"class").indexOf('mceItemAnchor')!=-1) 
    115 tinyMCE.switchClass(editor_id+'_anchor','mceButtonSelected');var anchorLink=tinyMCE.getParentElement(node,"a","href");if(anchorLink||any_selection){tinyMCE.switchClass(editor_id+'_link',anchorLink?'mceButtonSelected':'mceButtonNormal');tinyMCE.switchClass(editor_id+'_unlink',anchorLink?'mceButtonSelected':'mceButtonNormal');} 
    116 tinyMCE.switchClass(editor_id+'_visualaid',visual_aid?'mceButtonSelected':'mceButtonNormal');if(undo_levels!=-1){tinyMCE.switchClass(editor_id+'_undo','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_redo','mceButtonDisabled');} 
    117 if(tinyMCE.getParentElement(node,"li,blockquote")) 
    118 tinyMCE.switchClass(editor_id+'_outdent','mceButtonNormal');if(undo_index!=-1&&(undo_index<undo_levels-1&&undo_levels>0)) 
    119 tinyMCE.switchClass(editor_id+'_redo','mceButtonNormal');if(undo_index!=-1&&(undo_index>0&&undo_levels>0)) 
    120 tinyMCE.switchClass(editor_id+'_undo','mceButtonNormal');var selectElm=document.getElementById(editor_id+"_styleSelect");if(selectElm){TinyMCE_CustomTheme._setupCSSClasses(editor_id);classNode=node;breakOut=false;var index=0;do{if(classNode&&classNode.className){for(var i=0;i<selectElm.options.length;i++){if(selectElm.options[i].value==classNode.className){index=i;breakOut=true;break;}}}}while(!breakOut&&classNode!=null&&(classNode=classNode.parentNode)!=null);selectElm.selectedIndex=index;} 
    121 var selectElm=document.getElementById(editor_id+"_formatSelect");if(selectElm){var elm=tinyMCE.getParentElement(node,"p,div,h1,h2,h3,h4,h5,h6,pre,address");if(elm) 
    122 selectByValue(selectElm,"<"+elm.nodeName.toLowerCase()+">");else 
    123 selectByValue(selectElm,"");} 
    124 var selectElm=document.getElementById(editor_id+"_fontNameSelect");if(selectElm){if(!tinyMCE.isSafari&&!(tinyMCE.isMSIE&&!tinyMCE.isOpera)){var face=inst.queryCommandValue('FontName');face=face==null||face==""?"":face;selectByValue(selectElm,face,face!="");}else{var elm=tinyMCE.getParentElement(node,"font","face");if(elm){var family=tinyMCE.getAttrib(elm,"face");if(family=='') 
    125 family=''+elm.style.fontFamily;if(!selectByValue(selectElm,family,family!="")) 
    126 selectByValue(selectElm,"");}else 
    127 selectByValue(selectElm,"");}} 
    128 var selectElm=document.getElementById(editor_id+"_fontSizeSelect");if(selectElm){if(!tinyMCE.isSafari&&!tinyMCE.isOpera){var size=inst.queryCommandValue('FontSize');selectByValue(selectElm,size==null||size==""?"0":size);}else{var elm=tinyMCE.getParentElement(node,"font","size");if(elm){var size=tinyMCE.getAttrib(elm,"size");if(size==''){var sizes=new Array('','8px','10px','12px','14px','18px','24px','36px');size=''+elm.style.fontSize;for(var i=0;i<sizes.length;i++){if((''+sizes[i])==size){size=i;break;}}} 
    129 if(!selectByValue(selectElm,size)) 
    130 selectByValue(selectElm,"");}else 
    131 selectByValue(selectElm,"0");}} 
    132 alignNode=node;breakOut=false;do{if(!alignNode.getAttribute||!alignNode.getAttribute('align')) 
    133 continue;switch(alignNode.getAttribute('align').toLowerCase()){case"left":tinyMCE.switchClass(editor_id+'_justifyleft','mceButtonSelected');breakOut=true;break;case"right":tinyMCE.switchClass(editor_id+'_justifyright','mceButtonSelected');breakOut=true;break;case"middle":case"center":tinyMCE.switchClass(editor_id+'_justifycenter','mceButtonSelected');breakOut=true;break;case"justify":tinyMCE.switchClass(editor_id+'_justifyfull','mceButtonSelected');breakOut=true;break;}}while(!breakOut&&(alignNode=alignNode.parentNode)!=null);var div=tinyMCE.getParentElement(node,"div");if(div&&div.style.textAlign=="center") 
    134 tinyMCE.switchClass(editor_id+'_justifycenter','mceButtonSelected');if(!setup_content){var ar=new Array("Bold","_bold","Italic","_italic","Strikethrough","_strikethrough","superscript","_sup","subscript","_sub");for(var i=0;i<ar.length;i+=2){if(inst.queryCommandState(ar[i])) 
    135 tinyMCE.switchClass(editor_id+ar[i+1],'mceButtonSelected');} 
    136 if(inst.queryCommandState("Underline")&&(node.parentNode==null||node.parentNode.nodeName!="A")) 
    137 tinyMCE.switchClass(editor_id+'_underline','mceButtonSelected');} 
    138 do{switch(node.nodeName){case"UL":tinyMCE.switchClass(editor_id+'_bullist','mceButtonSelected');break;case"OL":tinyMCE.switchClass(editor_id+'_numlist','mceButtonSelected');break;case"HR":tinyMCE.switchClass(editor_id+'_hr','mceButtonSelected');break;case"IMG":if(tinyMCE.getAttrib(node,'name').indexOf('mce_')!=0&&tinyMCE.getAttrib(node,'class').indexOf('mceItem')==-1){tinyMCE.switchClass(editor_id+'_image','mceButtonSelected');} 
    139 break;}}while((node=node.parentNode)!=null);},_setupCSSClasses:function(editor_id){var i,selectElm;if(!TinyMCE_CustomTheme._autoImportCSSClasses) 
    140 return;selectElm=document.getElementById(editor_id+'_styleSelect');if(selectElm&&selectElm.getAttribute('cssImported')!='true'){var csses=tinyMCE.getCSSClasses(editor_id);if(csses&&selectElm){for(i=0;i<csses.length;i++) 
    141 selectElm.options[selectElm.options.length]=new Option(csses[i],csses[i]);} 
    142 if(csses!=null&&csses.length>0) 
    143 selectElm.setAttribute('cssImported','true');}},_setCookie:function(name,value,expires,path,domain,secure){var curCookie=name+"="+escape(value)+ 
    144 ((expires)?"; expires="+expires.toGMTString():"")+ 
    145 ((path)?"; path="+escape(path):"")+ 
    146 ((domain)?"; domain="+domain:"")+ 
    147 ((secure)?"; secure":"");document.cookie=curCookie;},_getCookie:function(name){var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1){begin=dc.indexOf(prefix);if(begin!=0) 
    148 return null;}else 
    149 begin+=2;var end=document.cookie.indexOf(";",begin);if(end==-1) 
    150 end=dc.length;return unescape(dc.substring(begin+prefix.length,end));},_resizeTo:function(inst,w,h,set_w){var editorContainer=document.getElementById(inst.editorId+'_parent');var tableElm=editorContainer.firstChild;var iframe=inst.iframeElement;if(w==null||w=="null"){set_w=false;w=0;} 
    151 if(h==null||h=="null") 
    152 return;w=parseInt(w);h=parseInt(h);if(tinyMCE.isGecko){w+=2;h+=2;} 
    153 var dx=w-tableElm.clientWidth;var dy=h-tableElm.clientHeight;w=w<1?30:w;h=h<1?30:h;if(set_w) 
    154 tableElm.style.width=w+"px";tableElm.style.height=h+"px";iw=iframe.clientWidth+dx;ih=iframe.clientHeight+dy;iw=iw<1?30:iw;ih=ih<1?30:ih;if(tinyMCE.isGecko){iw-=2;ih-=2;} 
    155 if(set_w) 
    156 iframe.style.width=iw+"px";iframe.style.height=ih+"px";if(set_w){var tableBodyElm=tableElm.firstChild;var minIframeWidth=tableBodyElm.scrollWidth;if(inst.iframeElement.clientWidth<minIframeWidth){dx=minIframeWidth-inst.iframeElement.clientWidth;inst.iframeElement.style.width=(iw+dx)+"px";}} 
    157 inst.useCSS=false;},_resizeEventHandler:function(e){var resizer=TinyMCE_CustomTheme._resizer;if(!resizer.resizing) 
    158 return;e=typeof(e)=="undefined"?window.event:e;var dx=e.screenX-resizer.downX;var dy=e.screenY-resizer.downY;var resizeBox=resizer.resizeBox;var editorId=resizer.editorId;switch(e.type){case"mousemove":var w,h;w=resizer.width+dx;h=resizer.height+dy;w=w<1?1:w;h=h<1?1:h;if(resizer.horizontal) 
    159 resizeBox.style.width=w+"px";resizeBox.style.height=h+"px";break;case"mouseup":TinyMCE_CustomTheme._setResizing(e,editorId,false);TinyMCE_CustomTheme._resizeTo(tinyMCE.getInstanceById(editorId),resizer.width+dx,resizer.height+dy,resizer.horizontal);if(tinyMCE.getParam("theme_custom_resizing_use_cookie",true)){var expires=new Date();expires.setTime(expires.getTime()+3600000*24*30);TinyMCE_CustomTheme._setCookie("TinyMCE_"+editorId+"_width",""+(resizer.horizontal?resizer.width+dx:""),expires);TinyMCE_CustomTheme._setCookie("TinyMCE_"+editorId+"_height",""+(resizer.height+dy),expires);} 
    160 break;}},_setResizing:function(e,editor_id,state){e=typeof(e)=="undefined"?window.event:e;var resizer=TinyMCE_CustomTheme._resizer;var editorContainer=document.getElementById(editor_id+'_parent');var editorArea=document.getElementById(editor_id+'_parent').firstChild;var resizeBox=document.getElementById(editor_id+'_resize_box');var inst=tinyMCE.getInstanceById(editor_id);if(state){var width=editorArea.clientWidth;var height=editorArea.clientHeight;resizeBox.style.width=width+"px";resizeBox.style.height=height+"px";resizer.iframeWidth=inst.iframeElement.clientWidth;resizer.iframeHeight=inst.iframeElement.clientHeight;editorArea.style.display="none";resizeBox.style.display="block";if(!resizer.eventHandlers){if(tinyMCE.isMSIE) 
    161 tinyMCE.addEvent(document,"mousemove",TinyMCE_CustomTheme._resizeEventHandler);else 
    162 tinyMCE.addEvent(window,"mousemove",TinyMCE_CustomTheme._resizeEventHandler);tinyMCE.addEvent(document,"mouseup",TinyMCE_CustomTheme._resizeEventHandler);resizer.eventHandlers=true;} 
    163 resizer.resizing=true;resizer.downX=e.screenX;resizer.downY=e.screenY;resizer.width=parseInt(resizeBox.style.width);resizer.height=parseInt(resizeBox.style.height);resizer.editorId=editor_id;resizer.resizeBox=resizeBox;resizer.horizontal=tinyMCE.getParam("theme_custom_resize_horizontal",true);}else{resizer.resizing=false;resizeBox.style.display="none";editorArea.style.display=tinyMCE.isMSIE&&!tinyMCE.isOpera?"block":"table";tinyMCE.execCommand('mceResetDesignMode');}},_getColorHTML:function(id,n,cm){var i,h,cl;h='<span class="mceMenuLine"></span>';cl=tinyMCE.getParam(n,TinyMCE_CustomTheme._defColors).split(',');h+='<table class="mceColors"><tr>';for(i=0;i<cl.length;i++){c='tinyMCE.execInstanceCommand(\''+id+'\', \''+cm+'\', false, \'#'+cl[i]+'\');';h+='<td><a href="javascript:'+c+'" style="background-color: #'+cl[i]+'" onclick="'+c+';return false;"></a></td>';if((i+1)%8==0) 
    164 h+='</tr><tr>';} 
    165 h+='</tr></table>';if(tinyMCE.getParam("theme_custom_more_colors",true)) 
    166 h+='<a href="javascript:void(0);" onclick="TinyMCE_CustomTheme._pickColor(\''+id+'\',\''+cm+'\');" class="mceMoreColors">'+tinyMCE.getLang('lang_more_colors')+'</a>';return h;},_pickColor:function(id,cm){var inputColor,inst=tinyMCE.selectedInstance;if(cm=='forecolor'&&inst) 
    167 inputColor=inst.foreColor;if((cm=='backcolor'||cm=='HiliteColor')&&inst) 
    168 inputColor=inst.backColor;tinyMCE.execCommand('mceColorPicker',true,{color:inputColor,callback:function(c){tinyMCE.execInstanceCommand(id,cm,false,c);}});},_insertImage:function(src,alt,border,hspace,vspace,width,height,align,title,onmouseover,onmouseout){tinyMCE.execCommand("mceInsertContent",false,tinyMCE.createTagHTML('img',{src:tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings['base_href'],src),mce_src:src,alt:alt,border:border,hspace:hspace,vspace:vspace,width:width,height:height,align:align,title:title,onmouseover:onmouseover,onmouseout:onmouseout}));},_insertLink:function(href,target,title,onclick,style_class){tinyMCE.execCommand('mceBeginUndoLevel');if(tinyMCE.selectedInstance&&tinyMCE.selectedElement&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img"){var doc=tinyMCE.selectedInstance.getDoc();var linkElement=tinyMCE.getParentElement(tinyMCE.selectedElement,"a");var newLink=false;if(!linkElement){linkElement=doc.createElement("a");newLink=true;} 
    169 var mhref=href;var thref=eval(tinyMCE.settings['urlconverter_callback']+"(href, linkElement);");mhref=tinyMCE.getParam('convert_urls')?href:mhref;tinyMCE.setAttrib(linkElement,'href',thref);tinyMCE.setAttrib(linkElement,'mce_href',mhref);tinyMCE.setAttrib(linkElement,'target',target);tinyMCE.setAttrib(linkElement,'title',title);tinyMCE.setAttrib(linkElement,'onclick',onclick);tinyMCE.setAttrib(linkElement,'class',style_class);if(newLink){linkElement.appendChild(tinyMCE.selectedElement.cloneNode(true));tinyMCE.selectedElement.parentNode.replaceChild(linkElement,tinyMCE.selectedElement);} 
    170 return;} 
    171 if(!tinyMCE.linkElement&&tinyMCE.selectedInstance){if(tinyMCE.isSafari){tinyMCE.execCommand("mceInsertContent",false,'<a href="'+tinyMCE.uniqueURL+'">'+tinyMCE.selectedInstance.selection.getSelectedHTML()+'</a>');}else 
    172 tinyMCE.selectedInstance.contentDocument.execCommand("createlink",false,tinyMCE.uniqueURL);tinyMCE.linkElement=tinyMCE.getElementByAttributeValue(tinyMCE.selectedInstance.contentDocument.body,"a","href",tinyMCE.uniqueURL);var elementArray=tinyMCE.getElementsByAttributeValue(tinyMCE.selectedInstance.contentDocument.body,"a","href",tinyMCE.uniqueURL);for(var i=0;i<elementArray.length;i++){var mhref=href;var thref=eval(tinyMCE.settings['urlconverter_callback']+"(href, elementArray[i]);");mhref=tinyMCE.getParam('convert_urls')?href:mhref;tinyMCE.setAttrib(elementArray[i],'href',thref);tinyMCE.setAttrib(elementArray[i],'mce_href',mhref);tinyMCE.setAttrib(elementArray[i],'target',target);tinyMCE.setAttrib(elementArray[i],'title',title);tinyMCE.setAttrib(elementArray[i],'onclick',onclick);tinyMCE.setAttrib(elementArray[i],'class',style_class);} 
    173 tinyMCE.linkElement=elementArray[0];} 
    174 if(tinyMCE.linkElement){var mhref=href;href=eval(tinyMCE.settings['urlconverter_callback']+"(href, tinyMCE.linkElement);");mhref=tinyMCE.getParam('convert_urls')?href:mhref;tinyMCE.setAttrib(tinyMCE.linkElement,'href',href);tinyMCE.setAttrib(tinyMCE.linkElement,'mce_href',mhref);tinyMCE.setAttrib(tinyMCE.linkElement,'target',target);tinyMCE.setAttrib(tinyMCE.linkElement,'title',title);tinyMCE.setAttrib(tinyMCE.linkElement,'onclick',onclick);tinyMCE.setAttrib(tinyMCE.linkElement,'class',style_class);} 
    175 tinyMCE.execCommand('mceEndUndoLevel');}};tinyMCE.addTheme("custom",TinyMCE_CustomTheme);tinyMCE.addButtonMap(TinyMCE_CustomTheme._buttonMap); 
     7eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('9.8S(\'4i\');d F={7x:"8Q,8Y,8G,8L,9g,9c,9d,9k,9l,9j,9h,91,99,98,8d,8e,88,85,8i,8B,8A,8k,8q,8y,ap,an,ae,ad,aF,aJ,aN,aO,ax,aD,az,aA,9C,9E,9w,9s",5F:o,5b:{},4n:[[\'5D\',\'{$9I}\',\'9X\',\'6T\'],[\'5C\',\'{$9Y}\',\'a4\',\'6V\'],[\'3I\',\'3I.1b\',\'a1\',\'9N\'],[\'3L\',\'3L.1b\',\'9L\',\'9J\'],[\'3K\',\'3K.1b\',\'9Q\',\'9P\'],[\'3H\',\'3H.1b\',\'9R\',\'9T\'],[\'4z\',\'4z.1b\',\'9S\',\'9O\'],[\'4y\',\'4y.1b\',\'9K\',\'9M\'],[\'4H\',\'4H.1b\',\'a0\',\'a2\'],[\'3S\',\'3S.1b\',\'a3\',\'9Z\'],[\'3U\',\'3U.1b\',\'9V\',\'9U\'],[\'3k\',\'3k.1b\',\'7S\',\'4A\',o],[\'3q\',\'3q.1b\',\'9W\',\'3q\'],[\'3T\',\'3T.1b\',\'9t\',\'9u\'],[\'3Q\',\'3Q.1b\',\'9v\',\'6q\'],[\'3g\',\'3g.1b\',\'9r\',\'5H\'],[\'3F\',\'3F.1b\',\'9n\',\'9m\'],[\'3a\',\'3a.1b\',\'9o\',\'3a\'],[\'3c\',\'3c.1b\',\'9q\',\'5J\'],[\'2C\',\'2C.1b\',\'9p\',\'6F\']],7h:\'2C,5D,3I,3c,3T,3g,4y,4z,3Q,3H,5C,3F,3k,3L,3K,4H,3U,3a,3S,3q,9H,53,9G,9y,9x,9z,9B,9A,aB,aC,ay,au,at,av,aw,aL,7R,aK\',4J:V(2T){d i,x,1a;1d(i=0;i<F.4n.K;i++){1a=F.4n[i];f(1a[0]==2T&&(2T=="2O"||2T=="7n"))s 9.aE(1a[0],1a[2],\'{$46}/48/\'+1a[1],1a[3]+"aG",1a[3],(1a.K>4?1a[4]:J),(1a.K>5?1a[5]:U));f(1a[0]==2T)s 9.aI(1a[0],1a[2],\'{$46}/48/\'+1a[1],1a[3],(1a.K>4?1a[4]:J),(1a.K>5?1a[5]:U))}2V(2T){I"6m":d X=\'<28 Y="{$g}4l" 1B="{$g}4l" 2I="9.44(2f, 1w, 2i);" 2v="9.1X(\\\'{$g}\\\',\\\'aH\\\',J,1w.1L[1w.2F].t);" H="4a">\';d 4Q=9.G("as","p,4u,4v,4D,4C,4B,4E,4G,4F",o).2A(\',\');d 3i=[[\'p\',\'{$ac}\'],[\'4u\',\'{$ab}\'],[\'4v\',\'{$af}\'],[\'4D\',\'{$aa}\'],[\'4C\',\'{$a6}\'],[\'4B\',\'{$a5}\'],[\'4E\',\'{$a7}\'],[\'4G\',\'{$a9}\'],[\'4F\',\'{$a8}\'],[\'1n\',\'{$am}\'],[\'7a\',\'{$ao}\'],[\'3g\',\'{$aq}\'],[\'dt\',\'{$al}\'],[\'dd\',\'{$ah}\'],[\'ag\',\'{$ai}\']];X+=\'<T t="">{$ak}</T>\';1d(d i=0;i<4Q.K;i++){1d(d x=0;x<3i.K;x++){f(4Q[i]==3i[x][0])X+=\'<T t="&aj;\'+3i[x][0]+\'&8b;">\'+3i[x][1]+\'</T>\'}}X+=\'</28>\';s X;I"6n":s\'<28 Y="{$g}3s" 4Z="9.6N.4i.5t(\\\'{$g}\\\');" 1B="{$g}3s" 2I="9.44(2f,1w,2i);" 2v="9.1X(\\\'{$g}\\\',\\\'82\\\',J,1w.1L[1w.2F].t);" H="4a">{$4w}</28>\';I"8w":d 3X=\'<28 Y="{$g}4x" 1B="{$g}4x" 2I="9.44(2f, 1w, 2i);" 2v="9.1X(\\\'{$g}\\\',\\\'7i\\\',J,1w.1L[1w.2F].t);" H="4a"><T t="">{$8t}</T>\';d 8p=\'4T=2U,2R,2l-2a;62 3Z=41 W,41,8o;65=64,2x W 4p,2x,2a;5R=6H,2U,2R,2l-2a;6z 3Z 6P=2x W 4p,2x,2a;6l=6g,2U,2R,2l-2a;5P=5Q;8s=6b\';d 6d=\'8r 8j=8l 8n,2x;4T=2U,2R,2l-2a;4T 8z=2U 8C,8u 8v;8x 87=86 84,5N;81 80 6i=83 2l 6j,2l-2a;62 3Z=41 W,41;65=64,5N;89=2R;5P=5Q,8D;97=96;5R=6H,2U,2R,2l-2a;94=9b,9i;6z 3Z 6P=2x W 4p,2x;9e 6i=9f 6j,6c;6l=6g,6c;8N=8M;8F=6b,8I 8H\';d 3Y=9.G("8O",6d).2A(\';\');1d(i=0;i<3Y.K;i++){f(3Y[i]!=\'\'){d 4r=3Y[i].2A(\'=\');3X+=\'<T t="\'+4r[1]+\'">\'+4r[0]+\'</T>\'}}3X+=\'</28>\';s 3X;I"8U":s\'<28 Y="{$g}5z" 1B="{$g}5z" 2I="9.44(2f, 1w, 2i);" 2v="9.1X(\\\'{$g}\\\',\\\'7g\\\',J,1w.1L[1w.2F].t);" H="4a">\'+\'<T t="0">{$8X}</T>\'+\'<T t="1">1 (8 2B)</T>\'+\'<T t="2">2 (10 2B)</T>\'+\'<T t="3">3 (12 2B)</T>\'+\'<T t="4">4 (14 2B)</T>\'+\'<T t="5">5 (18 2B)</T>\'+\'<T t="6">6 (24 2B)</T>\'+\'<T t="7">7 (36 2B)</T>\'+\'</28>\';I"|":I"39":s\'<C R="{$46}/48/39.1b" r="2" m="20" H="6p" 1v="" />\';I"8R":s\'<C R="{$46}/48/39.1b" r="2" m="15" 1s="0" H="6p" M="dq-1f: 6Y" 1v="" />\';I"d6":s\'<br />\'}s""},2g:V(g,dh,5m,69,t){2V(5m){I\'6q\':9.2j({2D:\'cy.2k\',r:cV,m:63},{d0:9.cP+"."+9.cQ,cS:9.cR,2r:"2b"});s o;I"4A":d B=9.1I(g);d 3o=B.4W();d 4b="";f(9.26){d 6o=3o.7N.cO();4b=6o.cL}1h 4b=B.cK().cN();f(!9.D){f((9.1E.L.1K()!="C")&&(4b.K<=0))s o}d u="",1k="",S="",Z="",1M="6v",1V="";f(9.1E.L.1K()=="a")9.D=9.1E;f(9.D!=U&&9.v(9.D,\'u\')=="")9.D=U;f(9.D){u=9.v(9.D,\'u\');1k=9.v(9.D,\'1k\');S=9.v(9.D,\'S\');Z=9.v(9.D,\'Z\');1V=9.v(9.D,\'H\');f(Z=="")Z=9.v(9.D,\'Z\');Z=9.cM(Z);u=1C(9.1m[\'2n\']+"(u, 9.D, o);");5B=9.v(9.D,\'32\');f(5B!=""){u=5B;f(9.G(\'3m\'))u=1C(9.1m[\'2n\']+"(u, 9.D, o);")}1M="6S"}d l=W 1O();l[\'2D\']=\'3k.2k\';l[\'r\']=cZ;l[\'m\']=cY;l[\'r\']+=9.1t(\'d1\',0);l[\'m\']+=9.1t(\'cX\',0);f(B.1m[\'6r\']){d 13=1C(B.1m[\'6r\']+"(u, 1k, S, Z, 1M, 1V);");f(13&&13[\'u\'])F.7K(13[\'u\'],13[\'1k\'],13[\'S\'],13[\'Z\'],13[\'1V\'])}1h{9.2j(l,{u:u,1k:1k,S:S,Z:Z,1M:1M,1p:1V,2r:"2b"})}s o;I"cU":d R="",1v="",1s="",1R="",1Q="",r="",m="",1f="";d S="",1T="",1S="",1M="6v";d C=9.6w;d B=9.1I(g);f(9.1E!=U&&9.1E.L.1K()=="C"){C=9.1E;9.6w=C}f(C){f(9.v(C,\'1B\').1q(\'5d\')==0)s o;R=9.v(C,\'R\');1v=9.v(C,\'1v\');f(1v=="")1v=9.v(C,\'S\');f(9.5E){d w=C.M.r;f(w!=U&&w!="")C.5A("r",w);d h=C.M.m;f(h!=U&&h!="")C.5A("m",h)}1s=9.v(C,\'1s\');1R=9.v(C,\'1R\');1Q=9.v(C,\'1Q\');r=9.v(C,\'r\');m=9.v(C,\'m\');1f=9.v(C,\'1f\');1T=9.v(C,\'1T\');1S=9.v(C,\'1S\');S=9.v(C,\'S\');f(9.26){r=C.6u[\'r\'].6f?r:"";m=C.6u[\'m\'].6f?m:""}R=1C(9.1m[\'2n\']+"(R, C, o);");5l=9.v(C,\'5a\');f(5l!=""){R=5l;f(9.G(\'3m\'))R=1C(9.1m[\'2n\']+"(R, C, o);")}1M="6S"}d l=W 1O();l[\'2D\']=\'cx.2k?R={$R}\';l[\'r\']=cA;l[\'m\']=cz+(9.26?25:0);l[\'r\']+=9.1t(\'cw\',0);l[\'m\']+=9.1t(\'ct\',0);f(B.1m[\'6Q\']){d 13=1C(B.1m[\'6Q\']+"(R, 1v, 1s, 1R, 1Q, r, m, 1f, S, 1T, 1S, 1M);");f(13&&13[\'R\'])F.7B(13[\'R\'],13[\'1v\'],13[\'1s\'],13[\'1R\'],13[\'1Q\'],13[\'r\'],13[\'m\'],13[\'1f\'],13[\'S\'],13[\'1T\'],13[\'1S\'])}1h 9.2j(l,{R:R,1v:1v,1s:1s,1R:1R,1Q:1Q,r:r,m:m,1f:1f,S:S,1T:1T,1S:1S,1M:1M,2r:"2b"});s o;I"2O":d 2o=W 2h(g+\'cs\',J),p,C,E;F.2u(g);f(!2o.2P()){2o.4h(\'1n\',\'6O\',O.17(g+\'2E\'));E=2o.4d();E.4R=g;E.4P="2O";E.59=g+"3h";9.1W(E,\'4K\',F.2p);9.1W(E,\'4Y\',F.2p);9.1W(E,\'6B\',F.2p)}C=9.6x(O.17(g+"3h"),V(n){s n.L=="5p"})[0];p=9.6G(C,O.17(g+\'2E\'));2o.5T(p.68,p.66);2o.4d().M.67=t!=U?t:9.1I(g).7o;2o.3C();s J;I"cu":1w.3V(g,\'2O\');s o;I"cH":F.2u(g);d 1x=W 2h(g+\'4S\');f(!1x.2P())1x.4h(\'1n\',\'5U\',O.3p,F.4t(g,\'cG\',\'2O\'));9.y(g+\'3h\',\'60\');1x.5Z(O.17(g+"3h"),\'bl\');1x.3x(9.26&&!9.29?-1:1,-1);f(9.29)1x.3x(0,-2);1x.3C();s o;I"3l":d 2z=W 2h(g+\'cJ\',J),p,C;F.2u(g);f(!2z.2P()){2z.4h(\'1n\',\'6O\',O.17(g+\'2E\'));E=2z.4d();E.4R=g;E.4P="3l";E.59=g+"3j";9.1W(E,\'4K\',F.2p);9.1W(E,\'4Y\',F.2p);9.1W(E,\'6B\',F.2p)}C=9.6x(O.17(g+"3j"),V(n){s n.L=="5p"})[0];p=9.6G(C,O.17(g+\'2E\'));2z.5T(p.68,p.66);2z.4d().M.67=t!=U?t:9.1I(g).7r;2z.3C();s J;I"cD":F.2u(g);d 1x=W 2h(g+\'4U\');f(!1x.2P())1x.4h(\'1n\',\'5U\',O.3p,F.4t(g,\'dp\',\'3l\'));9.y(g+\'3j\',\'60\');1x.5Z(O.17(g+"3j"),\'bl\');1x.3x(9.26&&!9.29?-1:1,-1);f(9.29)1x.3x(0,-2);1x.3C();s o;I"dm":1w.3V(g,\'3l\');s o;I"51":f(69){d l=[];f(!t[\'43\']&&!t[\'1P\'])t[\'1P\']=t[\'O\'].17(t[\'5K\']).t;l[\'2D\']=\'dw.2k\';l[\'r\']=63;l[\'m\']=6a;l[\'dv\']="5I";l[\'r\']+=9.1t(\'du\',0);l[\'m\']+=9.1t(\'dj\',0);f(34(t[\'5r\'])=="31")t[\'5r\']=o;9.5G=t;9.2j(l,{g:g,d8:t[\'5r\'],2r:"2b",5m:"51",d2:t[\'1P\']})}1h{d 33=9.5G,E;f(33[\'43\']){33[\'43\'](t);s o}E=33[\'O\'].17(33[\'5K\']);E.t=t;f(E.2v!=U&&E.2v!=\'\')1C(\'E.2v();\')}s o;I"5H":d l=W 1O();l[\'2D\']=\'dg.2k\';l[\'r\']=2S(9.G("di",db));l[\'m\']=2S(9.G("de",da));9.2j(l,{g:g,df:"2b",d9:"5I",2r:"2b"});s o;I"5J":d l=W 1O();l[\'2D\']=\'3c.2k\';l[\'r\']=ds+(9.29?40:0);l[\'m\']=6a;l[\'r\']+=9.1t(\'bm\',0);l[\'m\']+=9.1t(\'bk\',0);9.2j(l,{g:g,2r:"2b"});s o;I"6F":d l=W 1O();l[\'2D\']=\'2C.2k\';l[\'r\']=bp;l[\'m\']=90+(9.bo?30:0);l[\'r\']+=9.1t(\'bn\',0);l[\'m\']+=9.1t(\'bf\',0);9.2j(l,{g:g,2r:"2b"});s o;I"bd":f(bi(9.bh(9.1t(\'bg\'))))9.1X(g,\'bz\',J,\' \');s o}s J},by:V(1m,11){V 4L(27,5o){d 3E=W 1O(),3D;1d(d i=0;i<27.K;i++){3D=J;1d(d j=0;j<5o.K;j++){f(27[i]==5o[j]){3D=o}}f(!3D){3E[3E.K]=27[i]}}s 3E}V 4o(27,5k){1d(d i=0;i<5k.K;i++){27[27.K]=5k[i]}s 27}d l=W 1O();d 1U=0;d 2Q=9.G("7Y",J);d N=9.G("bC",o);d 3B=\'<1n Y="{$g}7W" H="bB" M="2M: \'+(N?"45":"37")+\'">&#7c;</1n><1n Y="{$g}bA" H="bt" M="2M: \'+(2Q?"45":"37")+\'" 4Z="9.6N.4i.5q(2f,\\\'{$g}\\\',o);"></1n><br M="bs: bq" />\';d 6e=9.G("bw","6t");d 3w=\'<T t="">{$bv}</T>\';f(1m[\'6h\']){d 3J=1m[\'6h\'].2A(\';\');1d(d i=0;i<3J.K;i++){d 5h,t;5h=3J[i].2A(\'=\')[0];t=3J[i].2A(\'=\')[1];3w+=\'<T t="\'+t+\'">\'+5h+\'</T>\'}F.5F=J}2V(6e){I"6t":d 1u="";d 3t=9.G("aV","54");d 4X=9.G("b0","2d");d 6s=9.G("aZ","37");d 57=9.G("aY",6s);d 6k={aR:"5D,5C,3I,3L,3K,3H,39,6n,6m",bc:"3k,3q,2C,3F,3a,39,3c,3S,3U,3T,3g,3Q",b2:""};1u+=\'<a u="#" 52="q" S="\'+9.1t("b1")+\'"\';f(!9.G("b6"))1u+=\' 2I="9.1I(\\\'\'+11+\'\\\').6L().6M();"\';1u+=\'></a>\';1d(d i=1;i<6A;i++){d 4q=6k["3P"+i];d 1F=9.G("3P"+i,4q==U?\'\':4q,o,\',\');f(1F.K==0)1i;1F=4L(1F,9.G("5S","",o,\',\'));1F=4o(1F,9.G("3P"+i+"b4","",o,\',\'));1F=4o(9.G("3P"+i+"c8","",o,\',\'),1F);1d(d b=0;b<1F.K;b++)1u+=9.4J(1F[b]);f(1F.K>0){1u+="<br />";1U-=23}}1u+=\'<a u="#" 52="z" 2I="9.1I(\\\'\'+11+\'\\\').6L().6M();"></a>\';l[\'X\']=\'<1Y H="55" 1s="0" 6D="0" 6E="0" r="{$r}" m="{$m}" M="r:{$cc};m:{$cb}"><3R>\';f(3t=="6I")l[\'X\']+=\'<16><1c 6J="53" H="ca" 1f="\'+4X+\'" m="1" 6K="6K"><1r Y="\'+11+\'2E" H="6R">\'+1u+\'</1r></1c></16>\';f(57=="6I"){l[\'X\']+=\'<16><1c H="c2" m="1">\'+3B+\'</1c></16>\';1U-=23}l[\'X\']+=\'<16><1c 1f="2d"><1r Y="{$g}"></1r></1c></16>\';f(3t=="54")l[\'X\']+=\'<16><1c 6J="53" H="c1" 1f="\'+4X+\'" m="1"><1r Y="\'+11+\'2E" H="6R">\'+1u+\'</1r></1c></16>\';f(3t=="co"){d 6y=O.3p;d E=O.7J("1n");1u=9.5V(1u,\'4w\',3w);1u=9.ck(1u,{g:11});E.1p="cj";E.Y=11+"2E";E.7Z=\'<1Y r="6A%" 1s="0" 1f="2d"><16><1c 1f="2d">\'+1u+\'</1c></16></1Y>\';6y.7M(E);1U=0;9.1I(11).6C=E;}1h{9.1I(11).6C=U}f(57=="54"){l[\'X\']+=\'<16><1c H="5L" m="1">\'+3B+\'</1c></16>\';1U-=23}l[\'X\']+=\'</3R></1Y>\';1i;I"ce":l[\'X\']=\'<1Y H="55" 1s="0" 6D="0" 6E="0" r="{$r}" m="{$m}" M="r:{$r}1G;m:{$m}1G"><3R>\';d 21=9.G("ci","",o,",");d 5O=9.G("ch","cg");d 5M=9.G("bL","2d");1d(d i=0;i<21.K;i++){f(21[i]=="55")l[\'X\']+=\'<16><1c 1f="2d" H="bJ"><1r Y="{$g}"></1r></1c></16>\';1h f(21[i]=="bO"||21[i]=="56"){d 3z="56";f(i==21.K-1){3z="5L"}1h f(i==0){3z="56"}1h{1U-=2}l[\'X\']+=\'<16><1c H="\'+3z+\'" m="1">\'+3B+\'</1c></16>\';1U-=22}1h{d 2J=9.G("4M"+21[i],"",o,\',\');d 3O="";d 5X=9.G("4M"+21[i]+"bF",5M);d 5W=9.G("4M"+21[i]+"bH",5O);2J=4L(2J,9.G("5S","",o,\',\'));1d(d j=0;j<2J.K;j++)3O+=9.4J(2J[j]);f(2J.K>0){3O+="<br />";1U-=23}l[\'X\']+=\'<16><1c H="\'+5W+\'" 1f="\'+5X+\'" m="1">\'+3O+\'</1c></16>\'}}l[\'X\']+=\'</3R></1Y>\';1i;I"bZ":d 3u=9.G("bY","");f(3u!=""&&1C("34("+3u+")")!="31"){l=1C(3u+"(l);")}1i}f(2Q)l[\'X\']+=\'<1r Y="{$g}7t" H="bQ"></1r>\';l[\'X\']=9.5V(l[\'X\'],\'4w\',3w);f(!l[\'61\'])l[\'61\']=0;f(!l[\'5Y\'])l[\'5Y\']=1U;s l},bS:V(B){f(9.G("7Y",J)){f(9.G("7P",o)){d w=F.5u("3W"+B.11+"7L");d h=F.5u("3W"+B.11+"7s");F.5j(B,w,h,9.G("7v",o))}}B.bT(\'bU\',\'k\',\'7S\',\'4A\')},bP:V(B){W 2h(B.11+\'4S\').7Q();W 2h(B.11+\'4U\').7Q()},bR:V(B){F.2u(B.11)},2p:V(e){d 3r=9.26?2i.2f.c0:e.1k;9.bV(e.5e=="4Y"?"bW":"bX",O.17(3r.59));f(e.5e=="4K")9.1X(3r.4R,3r.4P)},2u:V(Y){d 3A=W 2h(Y+\'4S\'),3v=W 2h(Y+\'4U\');f(3A.2P()&&3A.7V()){9.y(Y+\'3h\',\'7U\');3A.7X()}f(3v.2P()&&3v.7V()){9.y(Y+\'3j\',\'7U\');3v.7X()}},bG:V(g,1e,3e,3d,79,7e,6W){d 2m,1J,2c;V 1H(2Y,t,3y){3y=34(3y)=="31"?J:o;f(2Y){1d(d i=0;i<2Y.1L.K;i++){d 4O=""+2Y.1L[i].t;f(3y&&4O.1K().1q(t.1K())==0){2Y.2F=i;s o}f(4O==t){2Y.2F=i;s o}}}s J};f(1e==U)s;d 50=O.17(g+"7W");d B=9.1I(g);d 3o=B.4W();F.2u(g);f(50){d 1o=1e;d N=W 1O();3M(1o!=U){f(1o.L.bI()=="bD"){1i}f(1o.bE==1&&9.v(1o,"H").1q(\'bM\')==-1){N[N.K]=1o}1o=1o.1o}d X="";1d(d i=N.K-1;i>=0;i--){d L=N[i].L.1K();d 1A="";f(L.1q("X:")==0)L=L.7D(5);f(L=="b"){L="bN"}f(L=="i"){L="bK"}f(L=="1r"){d cn=9.v(N[i],"H");f(cn!=""&&cn.1q(\'2W\')==-1)1A+="H: "+cn+" ";d 3f=9.v(N[i],"M");f(3f!=""){3f=9.cd(9.cf(3f));1A+="M: "+9.2q(3f)+" "}}f(L=="3G"){f(9.G("cp"))L="1r";d 1z=9.v(N[i],"1z");f(1z!="")1A+="3G: "+9.2q(1z)+" ";d 1j=9.v(N[i],"1j");f(1j!="")1A+="1j: "+9.2q(1j)+" ";d 1P=9.v(N[i],"1P");f(1P!="")1A+="1P: "+9.2q(1P)+" "}f(9.v(N[i],\'Y\')!=""){1A+="Y: "+N[i].2L(\'Y\')+" "}d 1p=9.7T(9.v(N[i],"H"),J);f(1p!=""&&1p.1q(\'2W\')==-1)1A+="H: "+1p+" ";f(9.v(N[i],\'R\')!=""){d R=9.v(N[i],"5a");f(R=="")R=9.v(N[i],"R");1A+="R: "+9.2q(R)+" "}f(N[i].L==\'A\'&&9.v(N[i],\'u\')!=""){d u=9.v(N[i],"32");f(u=="")u=9.v(N[i],"u");1A+="u: "+9.2q(u)+" "}1p=9.v(N[i],"H");f((L=="C"||L=="1r")&&1p.1q(\'2W\')!=-1){L=1p.7R(/2W([a-z]+)/cq,\'$1\').1K();1A=N[i].2L(\'S\')}f(L=="a"&&(2C=9.v(N[i],"1B"))!=""){L="a";L+="#"+9.2q(2C);1A=""}f(9.v(N[i],\'1B\').1q("5d")!=0){d 1p=9.7T(9.v(N[i],"H"),J);f(1p!=""&&1p.1q(\'2W\')==-1){L+="."+1p}}d 58=\'9.1X(\\\'\'+g+\'\\\',\\\'cr\\\',J,\\\'\'+i+\'\\\');\';X+=\'<a S="\'+1A+\'" u="4s:\'+58+\'" Z="\'+58+\'s J;" 4Z="s J;" 1k="c4" H="c5">\'+L+\'</a>\';f(i>0){X+=" &c6; "}}50.7Z=\'<a u="#" 52="x"></a>\'+9.1t(\'c3\')+": "+X+\'&#7c;\'}9.y(g+\'77\',\'19\');9.y(g+\'6X\',\'19\');9.y(g+\'5s\',\'19\');9.y(g+\'6Z\',\'19\');9.y(g+\'6U\',\'19\');9.y(g+\'74\',\'19\');9.y(g+\'71\',\'19\');9.y(g+\'75\',\'19\');9.y(g+\'72\',\'19\');9.y(g+\'7m\',\'19\');9.y(g+\'73\',\'19\');9.y(g+\'76\',\'19\');9.y(g+\'7d\',\'19\');9.y(g+\'7b\',\'3n\');9.y(g+\'78\',\'3n\');9.y(g+\'7j\',\'3n\');9.y(g+\'7H\',\'19\');9.y(g+\'7G\',\'19\');f(1e.L=="A"&&9.v(1e,"H").1q(\'c7\')!=-1)9.y(g+\'7d\',\'1l\');d 3N=9.2t(1e,"a","u");f(3N||7e){9.y(g+\'7b\',3N?\'1l\':\'19\');9.y(g+\'78\',3N?\'1l\':\'19\')}9.y(g+\'c9\',79?\'1l\':\'19\');f(3d!=-1){9.y(g+\'7l\',\'3n\');9.y(g+\'7k\',\'3n\')}f(9.2t(1e,"b5,7a"))9.y(g+\'7j\',\'19\');f(3e!=-1&&(3e<3d-1&&3d>0))9.y(g+\'7k\',\'19\');f(3e!=-1&&(3e>0&&3d>0))9.y(g+\'7l\',\'19\');d P=O.17(g+"3s");f(P){F.5t(g);2c=1e;1J=J;d 4m=0;do{f(2c&&2c.1p){1d(d i=0;i<P.1L.K;i++){f(P.1L[i].t==2c.1p){4m=i;1J=o;1i}}}}3M(!1J&&2c!=U&&(2c=2c.1o)!=U);P.2F=4m}d P=O.17(g+"4l");f(P){d E=9.2t(1e,"p,1n,4D,4C,4B,4E,4G,4F,4v,4u");f(E)1H(P,"<"+E.L.1K()+">");1h 1H(P,"")}d P=O.17(g+"4x");f(P){f(!9.4I&&!(9.26&&!9.29)){d 1z=B.7f(\'7i\');1z=1z==U||1z==""?"":1z;1H(P,1z,1z!="")}1h{d E=9.2t(1e,"3G","1z");f(E){d 3b=9.v(E,"1z");f(3b==\'\')3b=\'\'+E.M.b3;f(!1H(P,3b,3b!=""))1H(P,"")}1h 1H(P,"")}}d P=O.17(g+"5z");f(P){f(!9.4I&&!9.29){d 1j=B.7f(\'7g\');1H(P,1j==U||1j==""?"0":1j)}1h{d E=9.2t(1e,"3G","1j");f(E){d 1j=9.v(E,"1j");f(1j==\'\'){d 5x=W 1O(\'\',\'ba\',\'bb\',\'b7\',\'b8\',\'b9\',\'aS\',\'aT\');1j=\'\'+E.M.aU;1d(d i=0;i<5x.K;i++){f((\'\'+5x[i])==1j){1j=i;1i}}}f(!1H(P,1j))1H(P,"")}1h 1H(P,"0")}}2m=1e;1J=J;do{f(!2m.2L||!2m.2L(\'1f\'))aP;2V(2m.2L(\'1f\').1K()){I"aQ":9.y(g+\'77\',\'1l\');1J=o;1i;I"aW":9.y(g+\'6X\',\'1l\');1J=o;1i;I"6Y":I"2d":9.y(g+\'5s\',\'1l\');1J=o;1i;I"aX":9.y(g+\'6Z\',\'1l\');1J=o;1i}}3M(!1J&&(2m=2m.1o)!=U);d 1n=9.2t(1e,"1n");f(1n&&1n.M.bu=="2d")9.y(g+\'5s\',\'1l\');f(!6W){d ar=W 1O("6T","6U","6V","74","bx","75","be","76","bj","73");1d(d i=0;i<ar.K;i+=2){f(B.70(ar[i]))9.y(g+ar[i+1],\'1l\')}f(B.70("d7")&&(1e.1o==U||1e.1o.L!="A"))9.y(g+\'71\',\'1l\')}do{2V(1e.L){I"d4":9.y(g+\'72\',\'1l\');1i;I"d3":9.y(g+\'7m\',\'1l\');1i;I"d5":9.y(g+\'7G\',\'1l\');1i;I"5p":f(9.v(1e,\'1B\').1q(\'5d\')!=0&&9.v(1e,\'H\').1q(\'2W\')==-1){9.y(g+\'7H\',\'1l\')}1i}}3M((1e=1e.1o)!=U)},5t:V(g){d i,P;f(!F.5F)s;P=O.17(g+\'3s\');f(P&&P.2L(\'7I\')!=\'o\'){d 2s=9.dr(g);f(2s&&P){1d(i=0;i<2s.K;i++)P.1L[P.1L.K]=W dl(2s[i],2s[i])}f(2s!=U&&2s.K>0)P.5A(\'7I\',\'o\')}},5n:V(1B,t,1Z,N,4k,5y){d 7C=1B+"="+7F(t)+((1Z)?"; 1Z="+1Z.dk():"")+((N)?"; N="+7F(N):"")+((4k)?"; 4k="+4k:"")+((5y)?"; 5y":"");O.5w=7C},5u:V(1B){d dc=O.5w;d 4g=1B+"=";d 2w=dc.1q("; "+4g);f(2w==-1){2w=dc.1q(4g);f(2w!=0)s U}1h 2w+=2;d 4f=O.5w.1q(";",2w);f(4f==-1)4f=dc.K;s dn(dc.7D(2w+4g.K,4f))},5j:V(B,w,h,35){d 5c=O.17(B.11+\'5i\');d 2N=5c.5g;d 2Z=B.2G;f(w==U||w=="U"){35=J;w=0}f(h==U||h=="U")s;w=2S(w);h=2S(h);f(9.5E){w+=2;h+=2}d dx=w-2N.2K;d 2X=h-2N.49;w=w<1?30:w;h=h<1?30:h;f(35)2N.M.r=w+"1G";2N.M.m=h+"1G";2y=2Z.2K+dx;2H=2Z.49+2X;2y=2y<1?30:2y;2H=2H<1?30:2H;f(9.5E){2y-=2;2H-=2}f(35)2Z.M.r=2y+"1G";2Z.M.m=2H+"1G";f(35){d 7E=2N.5g;d 5f=7E.cE;f(B.2G.2K<5f){dx=5f-B.2G.2K;B.2G.M.r=(2y+dx)+"1G"}}B.cB=J},4c:V(e){d Q=F.5b;f(!Q.2Q)s;e=34(e)=="31"?2i.2f:e;d dx=e.7A-Q.7z;d 2X=e.7w-Q.7u;d 1y=Q.1y;d 11=Q.11;2V(e.5e){I"5v":d w,h;w=Q.r+dx;h=Q.m+2X;w=w<1?1:w;h=h<1?1:h;f(Q.47)1y.M.r=w+"1G";1y.M.m=h+"1G";1i;I"7p":F.5q(e,11,J);F.5j(9.1I(11),Q.r+dx,Q.m+2X,Q.47);f(9.G("7P",o)){d 1Z=W cC();1Z.cF(1Z.cI()+cv*24*30);F.5n("3W"+11+"7L",""+(Q.47?Q.r+dx:""),1Z);F.5n("3W"+11+"7s",""+(Q.m+2X),1Z)}1i}},5q:V(e,g,7q){e=34(e)=="31"?2i.2f:e;d Q=F.5b;d 5c=O.17(g+\'5i\');d 38=O.17(g+\'5i\').5g;d 1y=O.17(g+\'7t\');d B=9.1I(g);f(7q){d r=38.2K;d m=38.49;1y.M.r=r+"1G";1y.M.m=m+"1G";Q.cW=B.2G.2K;Q.cT=B.2G.49;38.M.2M="37";1y.M.2M="45";f(!Q.7y){f(9.26)9.1W(O,"5v",F.4c);1h 9.1W(2i,"5v",F.4c);9.1W(O,"7p",F.4c);Q.7y=o}Q.2Q=o;Q.7z=e.7A;Q.7u=e.7w;Q.r=2S(1y.M.r);Q.m=2S(1y.M.m);Q.11=g;Q.1y=1y;Q.47=9.G("7v",o)}1h{Q.2Q=J;1y.M.2M="37";38.M.2M=9.26&&!9.29?"45":"1Y";9.2g(\'8T\')}},4t:V(Y,n,cm){d i,h,cl;h=\'<1r H="8P"></1r>\';cl=9.G(n,F.7x).2A(\',\');h+=\'<1Y H="8W"><16>\';1d(i=0;i<cl.K;i++){c=\'9.1X(\\\'\'+Y+\'\\\', \\\'\'+cm+\'\\\', J, \\\'#\'+cl[i]+\'\\\');\';h+=\'<1c><a u="4s:\'+c+\'" M="8V-1P: #\'+cl[i]+\'" Z="\'+c+\';s J;"></a></1c>\';f((i+1)%8==0)h+=\'</16><16>\'}h+=\'</16></1Y>\';f(9.G("8E",o))h+=\'<a u="4s:8J(0);" Z="F.3V(\\\'\'+Y+\'\\\',\\\'\'+cm+\'\\\');" H="8K">\'+9.1t(\'8Z\')+\'</a>\';s h},3V:V(Y,cm){d 42,B=9.2e;f(cm==\'2O\'&&B)42=B.7o;f((cm==\'7n\'||cm==\'3l\')&&B)42=B.7r;9.2g(\'51\',o,{1P:42,43:V(c){9.1X(Y,cm,J,c)}})},7B:V(R,1v,1s,1R,1Q,r,m,1f,S,1T,1S){9.2g("7O",J,9.95(\'C\',{R:9.93(9.1m[\'92\'],R),5a:R,1v:1v,1s:1s,1R:1R,1Q:1Q,r:r,m:m,1f:1f,S:S,1T:1T,1S:1S}))},7K:V(u,1k,S,Z,1V){9.2g(\'9a\');f(9.2e&&9.1E&&9.1E.L.1K()=="C"){d 3o=9.2e.4W();d D=9.2t(9.1E,"a");d 4N=J;f(!D){D=3o.7J("a");4N=o}d 1D=u;d 4j=1C(9.1m[\'2n\']+"(u, D);");1D=9.G(\'3m\')?u:1D;9.1g(D,\'u\',4j);9.1g(D,\'32\',1D);9.1g(D,\'1k\',1k);9.1g(D,\'S\',S);9.1g(D,\'Z\',Z);9.1g(D,\'H\',1V);f(4N){D.7M(9.1E.8c(o));9.1E.1o.8a(D,9.1E)}s}f(!9.D&&9.2e){f(9.4I){9.2g("7O",J,\'<a u="\'+9.4e+\'">\'+9.2e.7N.8h()+\'</a>\')}1h 9.2e.4V.2g("8f",J,9.4e);9.D=9.8m(9.2e.4V.3p,"a","u",9.4e);d 1N=9.8g(9.2e.4V.3p,"a","u",9.4e);1d(d i=0;i<1N.K;i++){d 1D=u;d 4j=1C(9.1m[\'2n\']+"(u, 1N[i]);");1D=9.G(\'3m\')?u:1D;9.1g(1N[i],\'u\',4j);9.1g(1N[i],\'32\',1D);9.1g(1N[i],\'1k\',1k);9.1g(1N[i],\'S\',S);9.1g(1N[i],\'Z\',Z);9.1g(1N[i],\'H\',1V)}9.D=1N[0]}f(9.D){d 1D=u;u=1C(9.1m[\'2n\']+"(u, 9.D);");1D=9.G(\'3m\')?u:1D;9.1g(9.D,\'u\',u);9.1g(9.D,\'32\',1D);9.1g(9.D,\'1k\',1k);9.1g(9.D,\'S\',S);9.1g(9.D,\'Z\',Z);9.1g(9.D,\'H\',1V)}9.2g(\'aM\')}};9.9F("4i",F);9.9D(F.7h);',62,840,'|||||||||tinyMCE||||var||if|editor_id|||||template|height||true|||width|return|value|href|getAttrib|||switchClass|||inst|img|linkElement|elm|TinyMCE_CustomTheme|getParam|class|case|false|length|nodeName|style|path|document|selectElm|resizer|src|title|option|null|function|new|html|id|onclick||editorId||returnVal|||tr|getElementById||mceButtonNormal|but|gif|td|for|node|align|setAttrib|else|break|size|target|mceButtonSelected|settings|div|parentNode|className|indexOf|span|border|getLang|toolbarHTML|alt|this|ml|resizeBox|face|nodeData|name|eval|mhref|selectedElement|buttons|px|selectByValue|getInstanceById|breakOut|toLowerCase|options|action|elementArray|Array|color|vspace|hspace|onmouseout|onmouseover|deltaHeight|style_class|addEvent|execInstanceCommand|table|expires||containers|||||isMSIE|in_array|select|isOpera|serif|yes|classNode|center|selectedInstance|event|execCommand|TinyMCE_Layer|window|openWindow|htm|sans|alignNode|urlconverter_callback|fcp|_handleMenuEvent|xmlEncode|inline|csses|getParentElement|_hideMenus|onchange|begin|times|iw|bcp|split|pt|anchor|file|_toolbar|selectedIndex|iframeElement|ih|onfocus|curContainer|clientWidth|getAttribute|display|tableElm|forecolor|exists|resizing|helvetica|parseInt|button_name|arial|switch|mceItem|dy|select_elm|iframe||undefined|mce_href|savedVal|typeof|set_w||none|editorArea|separator|removeformat|family|charmap|undo_levels|undo_index|st|code|_forecolor|lookup|_backcolor|link|HiliteColor|convert_urls|mceButtonDisabled|doc|body|unlink|te|_styleSelect|toolbarLocation|customLayout|bcml|styleSelectHTML|moveBy|first_index|pathClass|fcml|statusbarHTML|show|skip|outArray|hr|font|indent|bullist|stylesAr|outdent|numlist|while|anchorLink|curContainerHTML|theme_custom_buttons|help|tbody|undo|cleanup|redo|_pickColor|TinyMCE_|fontHTML|fonts|New||courier|inputColor|callback|addSelectAccessibility|block|themeurl|horizontal|images|clientHeight|mceSelectList|selectedText|_resizeEventHandler|getElement|uniqueURL|end|prefix|create|custom|thref|domain|_formatSelect|index|_buttons|addToArray|roman|def|parts|javascript|_getColorHTML|address|pre|style_select_options|_fontNameSelect|copy|cut|mceLink|h3|h2|h1|h4|h6|h5|paste|isSafari|getControlHTML|click|removeFromArray|theme_custom_container_|newLink|ov|_command|formats|_editor_id|_fcMenu|Arial|_bcMenu|contentDocument|getDoc|toolbarAlign|mouseover|onmousedown|pathElm|mceColorPicker|accesskey|ltr|bottom|mceEditor|mceStatusbar|statusbarLocation|cmd|_switchId|mce_src|_resizer|editorContainer|mce_|type|minIframeWidth|firstChild|key|_parent|_resizeTo|add_array|mceRealSrc|command|_setCookie|remove_array|IMG|_setResizing|store_selection|_justifycenter|_setupCSSClasses|_getCookie|mousemove|cookie|sizes|secure|_fontSizeSelect|setAttribute|mceRealHref|italic|bold|isGecko|_autoImportCSSClasses|lastColorPickerValue|mceCodeEditor|no|mceCharMap|element_id|mceStatusbarBottom|defaultContainerAlign|palatino|defaultContainerCSS|Impact|impact|Tahoma|theme_custom_disable|moveTo|mceMenu|replaceVar|curCSS|curAlign|delta_height|moveRelativeTo|mceMenuButtonFocus|delta_width|Courier|380|georgia|Georgia|absTop|backgroundColor|absLeft|user_interface|250|wingdings|geneva|nFonts|layoutManager|specified|verdana|theme_custom_styles|MS|ms|defVals|Verdana|formatselect|styleselect|rng|mceSeparatorLine|mceHelp|insertlink_callback|pathLocation|SimpleLayout|attributes|insert|imgElement|selectNodes|bod|Times|100|mouseout|toolbarElement|cellpadding|cellspacing|mceInsertAnchor|getAbsPosition|tahoma|top|dir|nowrap|getWin|focus|themes|mceColorPreview|Roman|insertimage_callback|mceToolbarContainer|update|Bold|_bold|Italic|setup_content|_justifyright|middle|_justifyfull|queryCommandState|_underline|_bullist|_sub|_italic|_strikethrough|_sup|_justifyleft|_unlink|visual_aid|blockquote|_link|160|_anchor|any_selection|queryCommandValue|FontSize|_buttonMap|FontName|_outdent|_redo|_undo|_numlist|backcolor|foreColor|mouseup|state|backColor|_height|_resize_box|downY|theme_custom_resize_horizontal|screenY|_defColors|eventHandlers|downX|screenX|_insertImage|curCookie|substring|tableBodyElm|escape|_hr|_image|cssImported|createElement|_insertLink|_width|appendChild|selection|mceInsertContent|theme_custom_resizing_use_cookie|remove|replace|lang_link_desc|getVisualAidClass|mceMenuButton|isVisible|_path|hide|theme_custom_resizing|innerHTML|Sans|Comic|mceSetCSSClass|comic|antiqua|FF9900|book|Antiqua|FF0000|Helvetica|replaceChild|gt|cloneNode|666699|808080|createlink|getElementsByAttributeValue|getSelectedHTML|99CC00|Mono|3366FF|andale|getElementByAttributeValue|mono|monospace|iFonts|800080|Andale|WingDings|lang_theme_fontdefault|avant|garde|fontselect|Book|999999|Black|33CCCC|339966|black|chicago|theme_custom_more_colors|Wingdings|333300|dingbats|zapf|void|mceMoreColors|003300|webdings|Webdings|theme_custom_fonts|mceMenuLine|000000|spacer|importThemeLanguagePack|mceResetDesignMode|fontsizeselect|background|mceColors|lang_theme_font_size|993300|lang_more_colors||008000|base_href|convertRelativeToAbsoluteURL|Terminal|createTagHTML|symbol|Symbol|0000FF|008080|mceBeginUndoLevel|terminal|000080|333399|Trebuchet|trebuchet|003366|808000|monaco|FF6600|333333|800000|inserthorizontalrule|lang_theme_hr_desc|lang_theme_removeformat_desc|lang_theme_anchor_desc|lang_theme_charmap_desc|lang_theme_code_desc|FFFFFF|lang_cleanup_desc|mceCleanup|lang_help_desc|CC99FF|flash|emotions|fullpage|iespell|fullscreen|CCFFFF|addButtonMap|99CCFF|addTheme|rtl|advhr|lang_bold_img|InsertOrderedList|lang_copy_desc|lang_numlist_desc|Copy|InsertUnorderedList|Cut|Outdent|lang_outdent_desc|lang_indent_desc|lang_cut_desc|Indent|Redo|lang_redo_desc|lang_unlink_desc|lang_bold_desc|lang_italic_img|Undo|lang_paste_desc|lang_bullist_desc|Paste|lang_undo_desc|lang_italic_desc|lang_theme_h3|lang_theme_h2|lang_theme_h4|lang_theme_h6|lang_theme_h5|lang_theme_h1|lang_theme_address|lang_theme_paragraph|00FF00|FFFF00|lang_theme_pre|samp|lang_theme_dd|lang_theme_samp|lt|lang_theme_block|lang_theme_dt|lang_theme_div|FFCC00|lang_theme_blockquote|FF00FF|lang_theme_code||theme_custom_blockformats|selectall|pasteword|preview|print|FF99CC|pastetext|FFFF99|CCFFCC|insertdate|inserttime|FFCC99|getMenuButtonHTML|00FFFF|Menu|FormatBlock|getButtonHTML|00CCFF|search|save|mceEndUndoLevel|993366|C0C0C0|continue|left|theme_custom_buttons1|24px|36px|fontSize|theme_custom_toolbar_location|right|justify|theme_custom_statusbar_location|theme_custom_path_location|theme_custom_toolbar_align|lang_toolbar_focus|theme_custom_buttons3|fontFamily|_add|li|accessibility_focus|12px|14px|18px|8px|10px|theme_custom_buttons2|mceNewDocument|superscript|lang_theme_custom_anchor_delta_height|lang_newdocument|entityDecode|confirm|subscript|lang_theme_custom_charmap_delta_height||lang_theme_custom_charmap_delta_width|lang_theme_custom_anchor_delta_width|isNS7|320|both||clear|mceStatusbarResize|textAlign|lang_theme_style_select|theme_custom_layout_manager|Strikethrough|getEditorTemplate|mceSetContent|_resize|mceStatusbarPathText|theme_custom_path|BODY|nodeType|_align|handleNodeChange|_class|toUpperCase|mceEditor_border|em|theme_custom_containers_default_align|mceItemHidden|strong|mceElementpath|removeInstance|mceResizeBox|hideInstance|initInstance|addShortcut|ctrl|_menuButtonEvent|over|out|theme_custom_custom_layout|CustomLayout|srcElement|mceToolbarBottom|mceStatusbarTop|lang_theme_path|_self|mcePathItem|raquo|mceItemAnchor|_add_before|_visualaid|mceToolbarTop|height_style|width_style|serializeStyle|RowLayout|parseStyle|container|theme_custom_containers_default_class|theme_custom_containers|mceToolbarExternal|applyTemplate||||external|convert_fonts_to_spans|gi|mceSelectNodeDepth|_fcPreview|lang_insert_image_delta_height|forecolorpicker|3600000|lang_insert_image_delta_width|image|about|265|355|useCSS|Date|HiliteColorMenu|scrollWidth|setTime|theme_custom_text_colors|forecolorMenu|getTime|_bcPreview|getSel|text|cleanupEventStr|toString|createRange|majorVersion|minorVersion|releaseDate|tinymce_releasedate|iframeHeight|mceImage|480|iframeWidth|lang_insert_link_delta_height|200|310|tinymce_version|lang_insert_link_delta_width|input_color|OL|UL|HR|rowseparator|Underline|mce_store_selection|scrollbars|580|720|||theme_custom_source_editor_height|resizable|source_editor|element|theme_custom_source_editor_width|lang_theme_custom_colorpicker_delta_height|toGMTString|Option|backcolorpicker|unescape||theme_custom_background_colors|vertical|getCSSClasses|550||lang_theme_custom_colorpicker_delta_width|close_previous|color_picker|'.split('|'),0,{})) 
  • trunk/Website/tiny_mce/themes/intermediate/editor_template.js

    r8 r9  
    11/* 
    2  * JSMin 
     2 * Packer 3.0 
    33 * Javascript Compressor 
    4  * http://www.crockford.com
     4 * http://dean.edwards.name
    55 * http://www.smallsharptools.com/ 
    66*/ 
    7  
    8 tinyMCE.importThemeLanguagePack('intermediate');var TinyMCE_IntermediateTheme={_buttonMap:'bold,bullist,cleanup,italic,numlist,redo,strikethrough,underline,undo',getEditorTemplate:function(){var html='';html+='<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">';html+='<tr><td align="center">';html+='<span id="{$editor_id}">IFRAME</span>';html+='</td></tr>';html+='<tr><td class="mceToolbar" align="center" height="1">';html+=tinyMCE.getButtonHTML('bold','lang_bold_desc','{$themeurl}/images/{$lang_bold_img}','Bold');html+=tinyMCE.getButtonHTML('italic','lang_italic_desc','{$themeurl}/images/{$lang_italic_img}','Italic');html+=tinyMCE.getButtonHTML('underline','lang_underline_desc','{$themeurl}/images/{$lang_underline_img}','Underline');html+=tinyMCE.getButtonHTML('strikethrough','lang_striketrough_desc','{$themeurl}/images/strikethrough.gif','Strikethrough');html+='<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine" />';html+=tinyMCE.getButtonHTML('undo','lang_undo_desc','{$themeurl}/images/undo.gif','Undo');html+=tinyMCE.getButtonHTML('redo','lang_redo_desc','{$themeurl}/images/redo.gif','Redo');html+='<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine" />';html+=tinyMCE.getButtonHTML('cleanup','lang_cleanup_desc','{$themeurl}/images/cleanup.gif','mceCleanup');html+='<img src="{$themeurl}/images/separator.gif" width="2" height="20" class="mceSeparatorLine" />';html+=tinyMCE.getButtonHTML('bullist','lang_bullist_desc','{$themeurl}/images/bullist.gif','InsertUnorderedList');html+=tinyMCE.getButtonHTML('numlist','lang_numlist_desc','{$themeurl}/images/numlist.gif','InsertOrderedList');html+=tinyMCE.getButtonHTML('cleanup','lang_cleanup_desc','{$themeurl}/images/cleanup.gif','mceCleanup');html+=tinyMCE.getButtonHTML('help','lang_help_desc','{$themeurl}/images/help.gif','mceHelp');html+=tinyMCE.getButtonHTML('code','lang_theme_code_desc','{$themeurl}/images/code.gif','mceCodeEditor');html+='</td></tr></table>';return{delta_width:0,delta_height:20,html:html};},handleNodeChange:function(editor_id,node){tinyMCE.switchClass(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClass(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClass(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClass(editor_id+'_strikethrough','mceButtonNormal');tinyMCE.switchClass(editor_id+'_bullist','mceButtonNormal');tinyMCE.switchClass(editor_id+'_numlist','mceButtonNormal');do{switch(node.nodeName.toLowerCase()){case"b":case"strong":tinyMCE.switchClass(editor_id+'_bold','mceButtonSelected');break;case"i":case"em":tinyMCE.switchClass(editor_id+'_italic','mceButtonSelected');break;case"u":tinyMCE.switchClass(editor_id+'_underline','mceButtonSelected');break;case"strike":tinyMCE.switchClass(editor_id+'_strikethrough','mceButtonSelected');break;case"ul":tinyMCE.switchClass(editor_id+'_bullist','mceButtonSelected');break;case"ol":tinyMCE.switchClass(editor_id+'_numlist','mceButtonSelected');break;case"mceHelp":alert("mceHelp");return true;case"mceCodeEditor":alert("mceCodeEditor");return true;}}while((node=node.parentNode)!=null);},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceHelp":tinyMCE.openWindow({file:'about.htm',width:480,height:380},{tinymce_version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion,tinymce_releasedate:tinyMCE.releaseDate,inline:"yes"});return true;case"mceCodeEditor":var template=new Array();template['file']='source_editor.htm';template['width']=parseInt(tinyMCE.getParam("theme_intermediate_source_editor_width",720));template['height']=parseInt(tinyMCE.getParam("theme_intermediate_source_editor_height",580));tinyMCE.openWindow(template,{editor_id:editor_id,resizable:"yes",scrollbars:"no",inline:"yes"});return true;}}};tinyMCE.addTheme("intermediate",TinyMCE_IntermediateTheme);tinyMCE.addButtonMap(TinyMCE_IntermediateTheme._buttonMap); 
     7eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('3.1h(\'10\');t w={17:\'V,C,k,O,z,y,E,Q,A\',1i:x(){t 4=\'\';4+=\'<X j="1n" 1b="0" 1F="0" 1D="0" e="{$e}" d="{$d}">\';4+=\'<n><o N="T">\';4+=\'<L 1r="{$5}">1w</L>\';4+=\'</o></n>\';4+=\'<n><o j="1u" N="T" d="1">\';4+=3.9(\'V\',\'1q\',\'{$7}/6/{$1p}\',\'1s\');4+=3.9(\'O\',\'1x\',\'{$7}/6/{$1C}\',\'1E\');4+=3.9(\'Q\',\'1y\',\'{$7}/6/{$1B}\',\'1A\');4+=3.9(\'E\',\'1e\',\'{$7}/6/E.c\',\'1g\');4+=\'<F G="{$7}/6/D.c" e="2" d="20" j="B" />\';4+=3.9(\'A\',\'1f\',\'{$7}/6/A.c\',\'1a\');4+=3.9(\'y\',\'1c\',\'{$7}/6/y.c\',\'1m\');4+=\'<F G="{$7}/6/D.c" e="2" d="20" j="B" />\';4+=3.9(\'k\',\'P\',\'{$7}/6/k.c\',\'S\');4+=\'<F G="{$7}/6/D.c" e="2" d="20" j="B" />\';4+=3.9(\'C\',\'1j\',\'{$7}/6/C.c\',\'26\');4+=3.9(\'z\',\'25\',\'{$7}/6/z.c\',\'28\');4+=3.9(\'k\',\'P\',\'{$7}/6/k.c\',\'S\');4+=3.9(\'R\',\'21\',\'{$7}/6/R.c\',\'r\');4+=3.9(\'W\',\'22\',\'{$7}/6/W.c\',\'q\');4+=\'</o></n></X>\';m{1Y:0,1M:20,4:4}},1L:x(5,s){3.a(5+\'U\',\'h\');3.a(5+\'H\',\'h\');3.a(5+\'I\',\'h\');3.a(5+\'J\',\'h\');3.a(5+\'M\',\'h\');3.a(5+\'K\',\'h\');1O{Y(s.1N.1I()){8"b":8"1H":3.a(5+\'U\',\'f\');g;8"i":8"1J":3.a(5+\'H\',\'f\');g;8"u":3.a(5+\'I\',\'f\');g;8"1U":3.a(5+\'J\',\'f\');g;8"1W":3.a(5+\'M\',\'f\');g;8"1Q":3.a(5+\'K\',\'f\');g;8"r":18("r");m p;8"q":18("q");m p}}1S((s=s.1T)!=1R)},1X:x(5,1V,Z,1P,1K){Y(Z){8"r":3.12({15:\'2f.14\',e:2c,d:2d},{2a:3.2b+"."+3.2e,29:3.23,11:"v"});m p;8"q":t l=1Z 24();l[\'15\']=\'27.14\';l[\'e\']=13(3.16("1G",1k));l[\'d\']=13(3.16("1o",1l));3.12(l,{5:5,19:"v",1d:"1z",11:"v"});m p}}};3.1v("10",w);3.1t(w.17);',62,140,'|||tinyMCE|html|editor_id|images|themeurl|case|getButtonHTML|switchClass||gif|height|width|mceButtonSelected|break|mceButtonNormal||class|cleanup|template|return|tr|td|true|mceCodeEditor|mceHelp|node|var||yes|TinyMCE_IntermediateTheme|function|redo|numlist|undo|mceSeparatorLine|bullist|separator|strikethrough|img|src|_italic|_underline|_strikethrough|_numlist|span|_bullist|align|italic|lang_cleanup_desc|underline|help|mceCleanup|center|_bold|bold|code|table|switch|command|intermediate|inline|openWindow|parseInt|htm|file|getParam|_buttonMap|alert|resizable|Undo|border|lang_redo_desc|scrollbars|lang_striketrough_desc|lang_undo_desc|Strikethrough|importThemeLanguagePack|getEditorTemplate|lang_bullist_desc|720|580|Redo|mceEditor|theme_intermediate_source_editor_height|lang_bold_img|lang_bold_desc|id|Bold|addButtonMap|mceToolbar|addTheme|IFRAME|lang_italic_desc|lang_underline_desc|no|Underline|lang_underline_img|lang_italic_img|cellspacing|Italic|cellpadding|theme_intermediate_source_editor_width|strong|toLowerCase|em|value|handleNodeChange|delta_height|nodeName|do|user_interface|ol|null|while|parentNode|strike|element|ul|execCommand|delta_width|new||lang_help_desc|lang_theme_code_desc|releaseDate|Array|lang_numlist_desc|InsertUnorderedList|source_editor|InsertOrderedList|tinymce_releasedate|tinymce_version|majorVersion|480|380|minorVersion|about'.split('|'),0,{})) 
  • trunk/Website/tiny_mce/tiny_mce.js

    r7 r9  
    11/* 
    2  * JSMin 
     2 * Packer 3.0 
    33 * Javascript Compressor 
    4  * http://www.crockford.com
     4 * http://dean.edwards.name
    55 * http://www.smallsharptools.com/ 
    66*/ 
    7  
    8 function TinyMCE_Engine(){var ua;this.majorVersion="2";this.minorVersion="1.2";this.releaseDate="2007-08-21";this.instances=[];this.switchClassCache=[];this.windowArgs=[];this.loadedFiles=[];this.pendingFiles=[];this.loadingIndex=0;this.configs=[];this.currentConfig=0;this.eventHandlers=[];this.log=[];this.undoLevels=[];this.undoIndex=0;this.typingUndoIndex=-1;this.settings=[];ua=navigator.userAgent;this.isMSIE=(navigator.appName=="Microsoft Internet Explorer");this.isMSIE5=this.isMSIE&&(ua.indexOf('MSIE 5')!=-1);this.isMSIE5_0=this.isMSIE&&(ua.indexOf('MSIE 5.0')!=-1);this.isMSIE7=this.isMSIE&&(ua.indexOf('MSIE 7')!=-1);this.isGecko=ua.indexOf('Gecko')!=-1;this.isSafari=ua.indexOf('Safari')!=-1;this.isOpera=window['opera']&&opera.buildNumber?true:false;this.isMac=ua.indexOf('Mac')!=-1;this.isNS7=ua.indexOf('Netscape/7')!=-1;this.isNS71=ua.indexOf('Netscape/7.1')!=-1;this.dialogCounter=0;this.plugins=[];this.themes=[];this.menus=[];this.loadedPlugins=[];this.buttonMap=[];this.isLoaded=false;if(this.isOpera){this.isMSIE=true;this.isGecko=false;this.isSafari=false;} 
    9 this.isIE=this.isMSIE;this.isRealIE=this.isMSIE&&!this.isOpera;this.idCounter=0;};TinyMCE_Engine.prototype={init:function(settings){var theme,nl,baseHREF="",i,cssPath,entities,h,p,src,elements=[],head;if(this.isMSIE5_0) 
    10 return;this.settings=settings;if(typeof(document.execCommand)=='undefined') 
    11 return;if(!tinyMCE.baseURL){head=document.getElementsByTagName('head')[0];if(head){for(i=0,nl=head.getElementsByTagName('script');i<nl.length;i++) 
    12 elements.push(nl[i]);} 
    13 for(i=0,nl=document.getElementsByTagName('script');i<nl.length;i++) 
    14 elements.push(nl[i]);nl=document.getElementsByTagName('base');for(i=0;i<nl.length;i++){if(nl[i].href) 
    15 baseHREF=nl[i].href;} 
    16 for(i=0;i<elements.length;i++){if(elements[i].src&&(elements[i].src.indexOf("tiny_mce.js")!=-1||elements[i].src.indexOf("tiny_mce_dev.js")!=-1||elements[i].src.indexOf("tiny_mce_src.js")!=-1||elements[i].src.indexOf("tiny_mce_gzip")!=-1)){src=elements[i].src;tinyMCE.srcMode=(src.indexOf('_src')!=-1||src.indexOf('_dev')!=-1)?'_src':'';tinyMCE.gzipMode=src.indexOf('_gzip')!=-1;src=src.substring(0,src.lastIndexOf('/'));if(settings.exec_mode=="src"||settings.exec_mode=="normal") 
    17 tinyMCE.srcMode=settings.exec_mode=="src"?'_src':'';if(baseHREF!==''&&src.indexOf('://')==-1) 
    18 tinyMCE.baseURL=baseHREF+src;else 
    19 tinyMCE.baseURL=src;break;}}} 
    20 this.documentBasePath=document.location.href;if(this.documentBasePath.indexOf('?')!=-1) 
    21 this.documentBasePath=this.documentBasePath.substring(0,this.documentBasePath.indexOf('?'));this.documentURL=this.documentBasePath;this.documentBasePath=this.documentBasePath.substring(0,this.documentBasePath.lastIndexOf('/'));if(tinyMCE.baseURL.indexOf('://')==-1&&tinyMCE.baseURL.charAt(0)!='/'){tinyMCE.baseURL=this.documentBasePath+"/"+tinyMCE.baseURL;} 
    22 this._def("mode","none");this._def("theme","advanced");this._def("plugins","",true);this._def("language","en");this._def("docs_language",this.settings.language);this._def("elements","");this._def("textarea_trigger","mce_editable");this._def("editor_selector","");this._def("editor_deselector","mceNoEditor");this._def("valid_elements","+a[id|style|rel|rev|charset|hreflang|dir|lang|tabindex|accesskey|type|name|href|target|title|class|onfocus|onblur|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup],-strong/-b[class|style],-em/-i[class|style],-strike[class|style],-u[class|style],#p[id|style|dir|class|align],-ol[class|style],-ul[class|style],-li[class|style],br,img[id|dir|lang|longdesc|usemap|style|class|src|onmouseover|onmouseout|border|alt=|title|hspace|vspace|width|height|align],-sub[style|class],-sup[style|class],-blockquote[dir|style],-table[border=0|cellspacing|cellpadding|width|height|class|align|summary|style|dir|id|lang|bgcolor|background|bordercolor],-tr[id|lang|dir|class|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor],tbody[id|class],thead[id|class],tfoot[id|class],#td[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|bgcolor|background|bordercolor|scope],-th[id|lang|dir|class|colspan|rowspan|width|height|align|valign|style|scope],caption[id|lang|dir|class|style],-div[id|dir|class|align|style],-span[style|class|align],-pre[class|align|style],address[class|align|style],-h1[id|style|dir|class|align],-h2[id|style|dir|class|align],-h3[id|style|dir|class|align],-h4[id|style|dir|class|align],-h5[id|style|dir|class|align],-h6[id|style|dir|class|align],hr[class|style],-font[face|size|style|id|class|dir|color],dd[id|class|title|style|dir|lang],dl[id|class|title|style|dir|lang],dt[id|class|title|style|dir|lang],cite[title|id|class|style|dir|lang],abbr[title|id|class|style|dir|lang],acronym[title|id|class|style|dir|lang],del[title|id|class|style|dir|lang|datetime|cite],ins[title|id|class|style|dir|lang|datetime|cite]");this._def("extended_valid_elements","");this._def("invalid_elements","");this._def("encoding","");this._def("urlconverter_callback",tinyMCE.getParam("urlconvertor_callback","TinyMCE_Engine.prototype.convertURL"));this._def("save_callback","");this._def("force_br_newlines",false);this._def("force_p_newlines",true);this._def("add_form_submit_trigger",true);this._def("relative_urls",true);this._def("remove_script_host",true);this._def("focus_alert",true);this._def("document_base_url",this.documentURL);this._def("visual",true);this._def("visual_table_class","mceVisualAid");this._def("setupcontent_callback","");this._def("fix_content_duplication",true);this._def("custom_undo_redo",true);this._def("custom_undo_redo_levels",-1);this._def("custom_undo_redo_keyboard_shortcuts",true);this._def("custom_undo_redo_restore_selection",true);this._def("custom_undo_redo_global",false);this._def("verify_html",true);this._def("apply_source_formatting",false);this._def("directionality","ltr");this._def("cleanup_on_startup",false);this._def("inline_styles",false);this._def("convert_newlines_to_brs",false);this._def("auto_reset_designmode",true);this._def("entities","39,#39,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,34,quot,38,amp,60,lt,62,gt,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",true);this._def("entity_encoding","named");this._def("cleanup_callback","");this._def("add_unload_trigger",true);this._def("ask",false);this._def("nowrap",false);this._def("auto_resize",false);this._def("auto_focus",false);this._def("cleanup",true);this._def("remove_linebreaks",true);this._def("button_tile_map",false);this._def("submit_patch",true);this._def("browsers","msie,safari,gecko,opera",true);this._def("dialog_type","window");this._def("accessibility_warnings",true);this._def("accessibility_focus",true);this._def("merge_styles_invalid_parents","");this._def("force_hex_style_colors",true);this._def("trim_span_elements",true);this._def("convert_fonts_to_spans",false);this._def("doctype",'<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">');this._def("font_size_classes",'');this._def("font_size_style_values",'xx-small,x-small,small,medium,large,x-large,xx-large',true);this._def("event_elements",'a,img',true);this._def("convert_urls",true);this._def("table_inline_editing",false);this._def("object_resizing",true);this._def("custom_shortcuts",true);this._def("convert_on_click",false);this._def("content_css",'');this._def("fix_list_elements",true);this._def("fix_table_elements",false);this._def("strict_loading_mode",document.contentType=='application/xhtml+xml');this._def("hidden_tab_class",'');this._def("display_tab_class",'');this._def("gecko_spellcheck",false);this._def("hide_selects_on_submit",true);this._def("forced_root_block",false);this._def("remove_trailing_nbsp",false);this._def("save_on_tinymce_forms",false);if(this.isMSIE&&!this.isOpera) 
    23 this.settings.strict_loading_mode=false;if(this.isMSIE&&this.settings.browsers.indexOf('msie')==-1) 
    24 return;if(this.isGecko&&this.settings.browsers.indexOf('gecko')==-1) 
    25 return;if(this.isSafari&&this.settings.browsers.indexOf('safari')==-1) 
    26 return;if(this.isOpera&&this.settings.browsers.indexOf('opera')==-1) 
    27 return;baseHREF=tinyMCE.settings.document_base_url;h=document.location.href;p=h.indexOf('://');if(p>0&&document.location.protocol!="file:"){p=h.indexOf('/',p+3);h=h.substring(0,p);if(baseHREF.indexOf('://')==-1) 
    28 baseHREF=h+baseHREF;tinyMCE.settings.document_base_url=baseHREF;tinyMCE.settings.document_base_prefix=h;} 
    29 if(baseHREF.indexOf('?')!=-1) 
    30 baseHREF=baseHREF.substring(0,baseHREF.indexOf('?'));this.settings.base_href=baseHREF.substring(0,baseHREF.lastIndexOf('/'))+"/";theme=this.settings.theme;this.inlineStrict='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';this.inlineTransitional='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';this.blockElms='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';this.blockRegExp=new RegExp("^("+this.blockElms+")$","i");this.posKeyCodes=[13,45,36,35,33,34,37,38,39,40];this.uniqueURL='javascript:void(091039730);';this.uniqueTag='<div id="mceTMPElement" style="display: none">TMP</div>';this.callbacks=['onInit','getInfo','getEditorTemplate','setupContent','onChange','onPageLoad','handleNodeChange','initInstance','execCommand','getControlHTML','handleEvent','cleanup','removeInstance'];this.settings.theme_href=tinyMCE.baseURL+"/themes/"+theme;if(!tinyMCE.isIE||tinyMCE.isOpera) 
    31 this.settings.force_br_newlines=false;if(tinyMCE.getParam("popups_css",false)){cssPath=tinyMCE.getParam("popups_css","");if(cssPath.indexOf('://')==-1&&cssPath.charAt(0)!='/') 
    32 this.settings.popups_css=this.documentBasePath+"/"+cssPath;else 
    33 this.settings.popups_css=cssPath;}else 
    34 this.settings.popups_css=tinyMCE.baseURL+"/themes/"+theme+"/css/editor_popup.css";if(tinyMCE.getParam("editor_css",false)){cssPath=tinyMCE.getParam("editor_css","");if(cssPath.indexOf('://')==-1&&cssPath.charAt(0)!='/') 
    35 this.settings.editor_css=this.documentBasePath+"/"+cssPath;else 
    36 this.settings.editor_css=cssPath;}else{if(this.settings.editor_css!=='') 
    37 this.settings.editor_css=tinyMCE.baseURL+"/themes/"+theme+"/css/editor_ui.css";} 
    38 if(this.configs.length==0){if(typeof(TinyMCECompressed)=="undefined"){tinyMCE.addEvent(window,"DOMContentLoaded",TinyMCE_Engine.prototype.onLoad);if(tinyMCE.isRealIE){if(document.body) 
    39 tinyMCE.addEvent(document.body,"readystatechange",TinyMCE_Engine.prototype.onLoad);else 
    40 tinyMCE.addEvent(document,"readystatechange",TinyMCE_Engine.prototype.onLoad);} 
    41 tinyMCE.addEvent(window,"load",TinyMCE_Engine.prototype.onLoad);tinyMCE._addUnloadEvents();}} 
    42 this.loadScript(tinyMCE.baseURL+'/themes/'+this.settings.theme+'/editor_template'+tinyMCE.srcMode+'.js');this.loadScript(tinyMCE.baseURL+'/langs/'+this.settings.language+'.js');this.loadCSS(this.settings.editor_css);p=tinyMCE.getParam('plugins','',true,',');if(p.length>0){for(i=0;i<p.length;i++){if(p[i].charAt(0)!='-') 
    43 this.loadScript(tinyMCE.baseURL+'/plugins/'+p[i]+'/editor_plugin'+tinyMCE.srcMode+'.js');}} 
    44 if(tinyMCE.getParam('entity_encoding')=='named'){settings.cleanup_entities=[];entities=tinyMCE.getParam('entities','',true,',');for(i=0;i<entities.length;i+=2) 
    45 settings.cleanup_entities['c'+entities[i]]=entities[i+1];} 
    46 settings.index=this.configs.length;this.configs[this.configs.length]=settings;this.loadNextScript();if(this.isIE&&!this.isOpera){try{document.execCommand('BackgroundImageCache',false,true);}catch(e){}} 
    47 this.xmlEncodeRe=new RegExp('[<>&"]','g');},_addUnloadEvents:function(){var st=tinyMCE.settings.add_unload_trigger;if(tinyMCE.isIE){if(st){tinyMCE.addEvent(window,"unload",TinyMCE_Engine.prototype.unloadHandler);tinyMCE.addEvent(window.document,"beforeunload",TinyMCE_Engine.prototype.unloadHandler);}}else{if(st) 
    48 tinyMCE.addEvent(window,"unload",function(){tinyMCE.triggerSave(true,true);});}},_def:function(key,def_val,t){var v=tinyMCE.getParam(key,def_val);v=t?v.replace(/\s+/g,""):v;this.settings[key]=v;},hasPlugin:function(n){return typeof(this.plugins[n])!="undefined"&&this.plugins[n]!=null;},addPlugin:function(n,p){var op=this.plugins[n];p.baseURL=op?op.baseURL:tinyMCE.baseURL+"/plugins/"+n;this.plugins[n]=p;this.loadNextScript();},setPluginBaseURL:function(n,u){var op=this.plugins[n];if(op) 
    49 op.baseURL=u;else 
    50 this.plugins[n]={baseURL:u};},loadPlugin:function(n,u){u=u.indexOf('.js')!=-1?u.substring(0,u.lastIndexOf('/')):u;u=u.charAt(u.length-1)=='/'?u.substring(0,u.length-1):u;this.plugins[n]={baseURL:u};this.loadScript(u+"/editor_plugin"+(tinyMCE.srcMode?'_src':'')+".js");},hasTheme:function(n){return typeof(this.themes[n])!="undefined"&&this.themes[n]!=null;},addTheme:function(n,t){this.themes[n]=t;this.loadNextScript();},addMenu:function(n,m){this.menus[n]=m;},hasMenu:function(n){return typeof(this.plugins[n])!="undefined"&&this.plugins[n]!=null;},loadScript:function(url){var i;for(i=0;i<this.loadedFiles.length;i++){if(this.loadedFiles[i]==url) 
    51 return;} 
    52 if(tinyMCE.settings.strict_loading_mode) 
    53 this.pendingFiles[this.pendingFiles.length]=url;else 
    54 document.write('<sc'+'ript language="javascript" type="text/javascript" src="'+url+'"></script>');this.loadedFiles[this.loadedFiles.length]=url;},loadNextScript:function(){var d=document,se;if(!tinyMCE.settings.strict_loading_mode) 
    55 return;if(this.loadingIndex<this.pendingFiles.length){se=d.createElementNS('http://www.w3.org/1999/xhtml','script');se.setAttribute('language','javascript');se.setAttribute('type','text/javascript');se.setAttribute('src',this.pendingFiles[this.loadingIndex++]);d.getElementsByTagName("head")[0].appendChild(se);}else 
    56 this.loadingIndex=-1;},loadCSS:function(url){var ar=url.replace(/\s+/,'').split(',');var lflen=0,csslen=0,skip=false;var x=0,i=0,nl,le;for(x=0,csslen=ar.length;x<csslen;x++){if(ar[x]!=null&&ar[x]!='null'&&ar[x].length>0){for(i=0,lflen=this.loadedFiles.length;i<lflen;i++){if(this.loadedFiles[i]==ar[x]){skip=true;break;}} 
    57 if(!skip){if(tinyMCE.settings.strict_loading_mode){nl=document.getElementsByTagName("head");le=document.createElement('link');le.setAttribute('href',ar[x]);le.setAttribute('rel','stylesheet');le.setAttribute('type','text/css');nl[0].appendChild(le);}else 
    58 document.write('<link href="'+ar[x]+'" rel="stylesheet" type="text/css" />');this.loadedFiles[this.loadedFiles.length]=ar[x];}}}},importCSS:function(doc,css){var css_ary=css.replace(/\s+/,'').split(',');var csslen,elm,headArr,x,css_file;for(x=0,csslen=css_ary.length;x<csslen;x++){css_file=css_ary[x];if(css_file!=null&&css_file!='null'&&css_file.length>0){if(css_file.indexOf('://')==-1&&css_file.charAt(0)!='/') 
    59 css_file=this.documentBasePath+"/"+css_file;if(typeof(doc.createStyleSheet)=="undefined"){elm=doc.createElement("link");elm.rel="stylesheet";elm.href=css_file;if((headArr=doc.getElementsByTagName("head"))!=null&&headArr.length>0) 
    60 headArr[0].appendChild(elm);}else 
    61 doc.createStyleSheet(css_file);}}},confirmAdd:function(e,settings){var elm=tinyMCE.isIE?event.srcElement:e.target;var elementId=elm.name?elm.name:elm.id;tinyMCE.settings=settings;if(tinyMCE.settings.convert_on_click||(!elm.getAttribute('mce_noask')&&confirm(tinyMCELang.lang_edit_confirm))) 
    62 tinyMCE.addMCEControl(elm,elementId);elm.setAttribute('mce_noask','true');},updateContent:function(form_element_name){var formElement,n,inst,doc;formElement=document.getElementById(form_element_name);for(n in tinyMCE.instances){inst=tinyMCE.instances[n];if(!tinyMCE.isInstance(inst)) 
    63 continue;inst.switchSettings();if(inst.formElement==formElement){doc=inst.getDoc();tinyMCE._setHTML(doc,inst.formElement.value);if(!tinyMCE.isIE) 
    64 doc.body.innerHTML=tinyMCE._cleanupHTML(inst,doc,this.settings,doc.body,inst.visualAid);}}},addMCEControl:function(replace_element,form_element_name,target_document){var id="mce_editor_"+tinyMCE.idCounter++;var inst=new TinyMCE_Control(tinyMCE.settings);inst.editorId=id;this.instances[id]=inst;inst._onAdd(replace_element,form_element_name,target_document);},removeInstance:function(ti){var t=[],n,i;for(n in tinyMCE.instances){i=tinyMCE.instances[n];if(tinyMCE.isInstance(i)&&ti!=i) 
    65 t[n]=i;} 
    66 tinyMCE.instances=t;n=[];t=tinyMCE.undoLevels;for(i=0;i<t.length;i++){if(t[i]!=ti) 
    67 n.push(t[i]);} 
    68 tinyMCE.undoLevels=n;tinyMCE.undoIndex=n.length;tinyMCE.dispatchCallback(ti,'remove_instance_callback','removeInstance',ti);return ti;},removeMCEControl:function(editor_id){var inst=tinyMCE.getInstanceById(editor_id),h,re,ot,tn,n;if(inst){inst.switchSettings();editor_id=inst.editorId;h=tinyMCE.getContent(editor_id);this.removeInstance(inst);tinyMCE.selectedElement=null;tinyMCE.selectedInstance=null;tinyMCE.selectedElement=null;tinyMCE.selectedInstance=null;for(n in tinyMCE.instances){if(!tinyMCE.isInstance(tinyMCE.instances[n])) 
    69 continue;tinyMCE.selectedInstance=tinyMCE.instances[n];break;} 
    70 re=document.getElementById(editor_id+"_parent");ot=inst.oldTargetElement;tn=ot.nodeName.toLowerCase();if(tn=="textarea"||tn=="input"){re.parentNode.removeChild(re);ot.style.display="inline";ot.value=h;}else{ot.innerHTML=h;ot.style.display='block';re.parentNode.insertBefore(ot,re);re.parentNode.removeChild(re);}}},triggerSave:function(skip_cleanup,skip_callback){var inst,n;if(typeof(skip_cleanup)=="undefined") 
    71 skip_cleanup=false;if(typeof(skip_callback)=="undefined") 
    72 skip_callback=false;for(n in tinyMCE.instances){inst=tinyMCE.instances[n];if(!tinyMCE.isInstance(inst)) 
    73 continue;inst.triggerSave(skip_cleanup,skip_callback);}},resetForm:function(form_index){var i,inst,n,formObj=document.forms[form_index];for(n in tinyMCE.instances){inst=tinyMCE.instances[n];if(!tinyMCE.isInstance(inst)) 
    74 continue;inst.switchSettings();for(i=0;i<formObj.elements.length;i++){if(inst.formTargetElementId==formObj.elements[i].name) 
    75 inst.getBody().innerHTML=inst.startContent;}}},execInstanceCommand:function(editor_id,command,user_interface,value,focus){var inst=tinyMCE.getInstanceById(editor_id),r;if(inst){r=inst.selection.getRng();if(typeof(focus)=="undefined") 
    76 focus=true;if(focus&&(!r||!r.item)) 
    77 inst.contentWindow.focus();inst.autoResetDesignMode();this.selectedElement=inst.getFocusElement();inst.select();tinyMCE.execCommand(command,user_interface,value);if(tinyMCE.isIE&&window.event!=null) 
    78 tinyMCE.cancelEvent(window.event);}},execCommand:function(command,user_interface,value){var inst=tinyMCE.selectedInstance,n,pe,te;user_interface=user_interface?user_interface:false;value=value?value:null;if(inst) 
    79 inst.switchSettings();switch(command){case"Undo":if(this.getParam('custom_undo_redo_global')){if(this.undoIndex>0){tinyMCE.nextUndoRedoAction='Undo';inst=this.undoLevels[--this.undoIndex];inst.select();if(!tinyMCE.nextUndoRedoInstanceId) 
    80 inst.execCommand('Undo');}}else 
    81 inst.execCommand('Undo');return true;case"Redo":if(this.getParam('custom_undo_redo_global')){if(this.undoIndex<=this.undoLevels.length-1){tinyMCE.nextUndoRedoAction='Redo';inst=this.undoLevels[this.undoIndex++];inst.select();if(!tinyMCE.nextUndoRedoInstanceId) 
    82 inst.execCommand('Redo');}}else 
    83 inst.execCommand('Redo');return true;case'mceFocus':inst=tinyMCE.getInstanceById(value);if(inst) 
    84 inst.getWin().focus();return;case"mceAddControl":case"mceAddEditor":tinyMCE.addMCEControl(tinyMCE._getElementById(value),value);return;case"mceAddFrameControl":tinyMCE.addMCEControl(tinyMCE._getElementById(value.element,value.document),value.element,value.document);return;case"mceRemoveControl":case"mceRemoveEditor":tinyMCE.removeMCEControl(value);return;case"mceToggleEditor":inst=tinyMCE.getInstanceById(value);if(inst){pe=document.getElementById(inst.editorId+'_parent');te=inst.oldTargetElement;if(typeof(inst.enabled)=='undefined') 
    85 inst.enabled=true;inst.enabled=!inst.enabled;if(!inst.enabled){pe.style.display='none';if(te.nodeName=='TEXTAREA'||te.nodeName=='INPUT') 
    86 te.value=inst.getHTML();else 
    87 te.innerHTML=inst.getHTML();te.style.display=inst.oldTargetDisplay;tinyMCE.dispatchCallback(inst,'hide_instance_callback','hideInstance',inst);}else{pe.style.display='block';te.style.display='none';if(te.nodeName=='TEXTAREA'||te.nodeName=='INPUT') 
    88 inst.setHTML(te.value);else 
    89 inst.setHTML(te.innerHTML);inst.useCSS=false;tinyMCE.dispatchCallback(inst,'show_instance_callback','showInstance',inst);}}else 
    90 tinyMCE.addMCEControl(tinyMCE._getElementById(value),value);return;case"mceResetDesignMode":if(tinyMCE.isGecko){for(n in tinyMCE.instances){if(!tinyMCE.isInstance(tinyMCE.instances[n])) 
    91 continue;try{tinyMCE.instances[n].getDoc().designMode="off";tinyMCE.instances[n].getDoc().designMode="on";tinyMCE.instances[n].useCSS=false;}catch(e){}}} 
    92 return;} 
    93 if(inst){inst.execCommand(command,user_interface,value);}else if(tinyMCE.settings.focus_alert) 
    94 alert(tinyMCELang.lang_focus_alert);},_createIFrame:function(replace_element,doc,win){var iframe,id=replace_element.getAttribute("id");var aw,ah;if(typeof(doc)=="undefined") 
    95 doc=document;if(typeof(win)=="undefined") 
    96 w