function ULSopi(){var o=new Object;o.ULSTeamName="Microsoft SharePoint Foundation";o.ULSFileName="form.js";return o;}
function GetXMLHttpRequestObject(){ULSopi:;return new XMLHttpRequest}function insertAdjacentElement(a,c,b){ULSopi:;if(a.insertAdjacentElement)return a.insertAdjacentElement(c,b);switch(c){case "beforeBegin":return a.parentNode.insertBefore(b,a);break;case "afterBegin":return a.insertBefore(b,a.firstChild);break;case "beforeEnd":return a.appendChild(b);break;case "afterEnd":if(a.nextSibling)return a.parentNode.insertBefore(b,a.nextSibling);else return a.parentNode.appendChild(b)}}function insertAdjacentHTML(a,c,b){ULSopi:;if(a.insertAdjacentHTML)return a.insertAdjacentHTML(c,b);var d=a.ownerDocument.createRange();d.setStartBefore(a);var e=d.createContextualFragment(b);return insertAdjacentElement(a,c,e)}function insertAdjacentText(a,c,b){ULSopi:;if(a.insertAdjacentText)return a.insertAdjacentText(c,b);var d=document.createTextNode(b);return insertAdjacentElement(a,c,d)}function contains(c,a){ULSopi:;var b=false;do{if(b=c==a)break;a=a.parentNode}while(a!=null);return b}function getFirstElementByName(b,c){ULSopi:;if(b.name==c)return b;var a=b.firstChild;while(a&&a!="undefined"){var d=getFirstElementByName(a,c);if(d)return d;a=a.nextSibling}}function documentGetElementsByName(c){ULSopi:;if(!browseris.ie&&document.getElementsByName)return document.getElementsByName(c);for(var d=[],b=document.getElementsByTagName("*"),e=b.length,a=0;a<e;a++)(b[a].name==c||typeof b[a].getAttribute!="unknown"&&b[a].getAttribute&&b[a].getAttribute("name")==c)&&d.push(b[a]);return d}function getFirstChild(b){ULSopi:;var a=b.firstChild;while(a&&a.nodeType==3)a=a.nextSibling;return a}var L_CutToolTip_TEXT="Cut (Ctrl+X)",L_CopyToolTip_TEXT="Copy (Ctrl+C)",L_PasteToolTip_TEXT="Paste (Ctrl+V)",L_RemoveFormatToolTip_TEXT="Clear Format (Ctrl+Space)",L_BoldToolTip_TEXT="Bold (Ctrl+B)",L_ItalicToolTip_TEXT="Italic (Ctrl+I)",L_UnderlineToolTip_TEXT="Underline (Ctrl+U)",L_JustifyLeftToolTip_TEXT="Align Left (Ctrl+L)",L_JustifyCenterToolTip_TEXT="Center (Ctrl+E)",L_JustifyRightToolTip_TEXT="Align Right (Ctrl+R)",L_OrderedListToolTip_TEXT="Numbered List (Ctrl+Shift+E)",L_UnorderedListToolTip_TEXT="Bulleted List (Ctrl+Shift+L)",L_OutdentToolTip_TEXT="Decrease Indent (Ctrl+Shift+M)",L_IndentToolTip_TEXT="Increase Indent (Ctrl+M)",L_ForeColorToolTip_TEXT="Text Color (Ctrl+Shift+C)",L_BackColorToolTip_TEXT="Text Highlight Color (Ctrl+Shift+W)",L_LTRToolTip_TEXT="Left-to-Right (Ctrl+Shift+>)",L_RTLToolTip_TEXT="Right-to-Left (Ctrl+Shift+<)",L_CreateLinkToolTip_TEXT="Open a new window to Insert Hyperlink (Ctrl+K)",L_InsertImageToolTip_TEXT="Open a new window to Insert Image (Ctrl+Shift+G)",L_HtmlSourceToolTip_TEXT="Edit HTML Source",L_FontNameLabel_TEXT="Font",L_FontNameToolTip_TEXT="Font (Ctrl+Shift+F)",L_FontSizeLabel_TEXT="Size",L_FontSizeToolTip_TEXT="Font Size (Ctrl+Shift+P)",L_InsertTableToolTip_TEXT="Open a new window to Insert Table (Ctrl+Alt+T)",L_InsertTableElementToolTip_TEXT="Insert Table Element",L_DeleteTableElementToolTip_TEXT="Delete Table Element",L_InsertRowToolTip_TEXT="Insert Row",L_InsertRowLabel_TEXT="",L_InsertRowAboveLabel_TEXT="Insert Row Above (Ctrl+Alt+Up)",L_InsertRowBelowLabel_TEXT="Insert Row Below (Ctrl+Alt+Down)",L_InsertColumnToolTip_TEXT="Insert Column",L_InsertColumnLabel_TEXT="",L_InsertColumnLeftLabel_TEXT="Insert Column Left (Ctrl+Alt+Left)",L_InsertColumnRightLabel_TEXT="Insert Column Right (Ctrl+Alt+Right)",L_InsertCellToolTip_TEXT="Insert Cell",L_InsertCellLabel_TEXT="",L_InsertCellLeftLabel_TEXT="Insert Cell Left (Ctrl+Alt+L)",L_InsertCellRightLabel_TEXT="Insert Cell Right (Ctrl+Alt+R)",L_MergeCellToolTip_TEXT="Merge Cell (Ctrl+Alt+M)",L_InvalidMerge_TEXT="Cannot merge cell because the adjacent cells do not have the same height or width of the selected cell. Change the size of the adjacent cells to match the selected cell before attempting to merge the cell again.",L_SplitCellToolTip_TEXT="Split Cell (Ctrl+Alt+S)",L_DeleteRowToolTip_TEXT="Delete Row (Ctrl+Alt+MINUS SIGN)",L_DeleteColumnToolTip_TEXT="Delete Column (Ctrl+Alt+BACKSLASH)",L_UndoToolTip_TEXT="Undo (Ctrl+Z)",L_RedoToolTip_TEXT="Redo (Ctrl+Y)",L_StylesToolTip_TEXT="Styles",L_StylesLabel_TEXT="Styles",L_ExampleText_TEXT="Example Text",L_EditorIFrameTitle_TEXT="Rich Text Editor",L_Black_TEXT="Black",L_Brown_TEXT="Brown",L_OliveGreen_TEXT="Olive Green",L_DarkGreen_TEXT="Dark Green",L_DarkTeal_TEXT="Dark Teal",L_DarkBlue_TEXT="Dark Blue",L_Indigo_TEXT="Indigo",L_Gray80_TEXT="Gray 80%",L_DarkRed_TEXT="Dark Red",L_Orange_TEXT="Orange",L_DarkYellow_TEXT="Dark Yellow",L_Green_TEXT="Green",L_Teal_TEXT="Teal",L_Blue_TEXT="Blue",L_BlueGray_TEXT="Blue Gray",L_Gray50_TEXT="Gray 50%",L_Red_TEXT="Red",L_LightOrange_TEXT="Light Orange",L_Lime_TEXT="Lime",L_SeaGreen_TEXT="Sea Green",L_Aqua_TEXT="Aqua",L_LightBlue_TEXT="Light Blue",L_Violet_TEXT="Violet",L_Gray40_TEXT="Gray 40%",L_Pink_TEXT="Pink",L_Gold_TEXT="Gold",L_Yellow_TEXT="Yellow",L_BrightGreen_TEXT="Bright Green",L_Turquoise_TEXT="Turquoise",L_SkyBlue_TEXT="Sky Blue",L_Plum_TEXT="Plum",L_Gray25_TEXT="Gray 25%",L_Rose_TEXT="Rose",L_Tan_TEXT="Tan",L_LightYellow_TEXT="Light Yellow",L_LightGreen_TEXT="Light Green",L_LightTurquoise_TEXT="Light Turquoise",L_PaleBlue_TEXT="Pale Blue",L_Lavender_TEXT="Lavender",L_White_TEXT="White",L_Font1_TEXT="Arial",L_Font2_TEXT="Courier",L_Font3_TEXT="Tahoma",L_Font4_TEXT="Times",L_Font5_TEXT="Verdana",L_Font6_TEXT="",L_Font7_TEXT="",L_Font8_TEXT="",L_BoldKey_TEXT="B",L_SelectAllKey_TEXT="A",L_BoldShiftKey_TEXT="false",L_BoldAltKey_TEXT="false",L_ItalicKey_TEXT="I",L_ItalicShiftKey_TEXT="false",L_ItalicAltKey_TEXT="false",L_UnderlineKey_TEXT="U",L_UnderlineShiftKey_TEXT="false",L_UnderlineAltKey_TEXT="false",L_JustifyLeftKey_TEXT="L",L_JustifyLeftShiftKey_TEXT="false",L_JustifyLeftAltKey_TEXT="false",L_JustifyCenterKey_TEXT="E",L_JustifyCenterShiftKey_TEXT="false",L_JustifyCenterAltKey_TEXT="false",L_JustifyRightKey_TEXT="R",L_JustifyRightShiftKey_TEXT="false",L_JustifyRightAltKey_TEXT="false",L_SelectFontNameKey_TEXT="F",L_SelectFontNameShiftKey_TEXT="true",L_SelectFontNameAltKey_TEXT="false",L_SelectFontSizeKey_TEXT="P",L_SelectFontSizeShiftKey_TEXT="true",L_SelectFontSizeAltKey_TEXT="false",L_InsertTableKey_TEXT="T",L_InsertTableShiftKey_TEXT="false",L_InsertTableAltKey_TEXT="true",L_SplitCellKey_TEXT="S",L_SplitCellShiftKey_TEXT="false",L_SplitCellAltKey_TEXT="true",L_MergeCellKey_TEXT="M",L_MergeCellShiftKey_TEXT="false",L_MergeCellAltKey_TEXT="true",L_InsertRowAboveKeyCode_TEXT="38",L_InsertRowAboveShiftKey_TEXT="false",L_InsertRowAboveAltKey_TEXT="true",L_InsertRowBelowKeyCode_TEXT="40",L_InsertRowBelowShiftKey_TEXT="false",L_InsertRowBelowAltKey_TEXT="true",L_InsertColumnLeftKeyCode_TEXT="37",L_InsertColumnLeftShiftKey_TEXT="false",L_InsertColumnLeftAltKey_TEXT="true",L_InsertColumnRightKeyCode_TEXT="39",L_InsertColumnRightShiftKey_TEXT="false",L_InsertColumnRightAltKey_TEXT="true",L_InsertCellLeftKey_TEXT="L",L_InsertCellLeftShiftKey_TEXT="false",L_InsertCellLeftAltKey_TEXT="true",L_InsertCellRightKey_TEXT="R",L_InsertCellRightShiftKey_TEXT="false",L_InsertCellRightAltKey_TEXT="true",L_DeleteColumnKeyCode_TEXT="220",L_DeleteColumnShiftKey_TEXT="false",L_DeleteColumnAltKey_TEXT="true",L_DeleteRowKeyCode_TEXT="189",L_DeleteRowShiftKey_TEXT="false",L_DeleteRowAltKey_TEXT="true",L_OutdentKey_TEXT="M",L_OutdentShiftKey_TEXT="true",L_OutdentAltKey_TEXT="false",L_IndentKey_TEXT="M",L_IndentShiftKey_TEXT="false",L_IndentAltKey_TEXT="false",L_UnorderedListKey_TEXT="L",L_UnorderedListShiftKey_TEXT="true",L_UnorderedListAltKey_TEXT="false",L_OrderedListKey_TEXT="E",L_OrderedListShiftKey_TEXT="true",L_OrderedListAltKey_TEXT="false",L_CreateLinkKey_TEXT="K",L_CreateLinkShiftKey_TEXT="false",L_CreateLinkAltKey_TEXT="false",L_SelectForeColorKey_TEXT="C",L_SelectForeColorShiftKey_TEXT="true",L_SelectForeColorAltKey_TEXT="false",L_SelectBackColorKey_TEXT="W",L_SelectBackColorShiftKey_TEXT="true",L_SelectBackColorAltKey_TEXT="false",L_InsertImageKey_TEXT="G",L_InsertImageShiftKey_TEXT="true",L_InsertImageAltKey_TEXT="false",L_HtmlSourceKey_TEXT="S",L_HtmlSourceShiftKey_TEXT="true",L_HtmlSourceAltKey_TEXT="false",L_LTRKey_VALUE=190,L_RTLKey_VALUE=188,g_strRTEToolbarClassName="ms-rtetoolbarmenu",g_strRTEUnselectedClassName="ms-rtetoolbarunsel",g_strRTESelectedClassName="ms-rtetoolbarsel",g_strRTEDisabledClassName="ms-rtetoolbardis",g_strRTEHoverClassName="ms-rtetoolbarhov",g_strRTETextEditorPullDownMenuID="RTETextEditorPullDownMenu",g_strRTEDialogHelperID="RTEDialogHelper",g_strRTECutMnemonic="Cut",g_strRTECopyMnemonic="Copy",g_strRTEPasteMnemonic="Paste",g_strRTERemoveFormatMnemonic="RemoveFormat",g_strRTEFontNameMnemonic="FontName",g_strRTEFontSizeMnemonic="FontSize",g_strRTEBoldMnemonic="Bold",g_strRTEItalicMnemonic="Italic",g_strRTEUnderlineMnemonic="Underline",g_strRTEJustifyLeftMnemonic="JustifyLeft",g_strRTEJustifyCenterMnemonic="JustifyCenter",g_strRTEJustifyRightMnemonic="JustifyRight",g_strRTEOrderedListMnemonic="InsertOrderedList",g_strRTEUnorderedListMnemonic="InsertUnorderedList",g_strRTEOutdentMnemonic="Outdent",g_strRTEIndentMnemonic="Indent",g_strRTEForeColorMnemonic="ForeColor",g_strRTEBackColorMnemonic="BackColor",g_strRTELTRMnemonic="LTR",g_strRTERTLMnemonic="RTL",g_strRTECreateLinkMnemonic="CreateLink",g_strRTEInsertImageMnemonic="InsertImage",g_strRTEHtmlSourceMnemonic="HtmlSource",g_strRTEInsertTableMnemonic="insert_table",g_strRTEInsertTableElementMnemonic="InsertTableElement",g_strRTEDeleteTableElementMnemonic="DeleteTableElement",g_strRTEInsertRowMnemonic="insert_row",g_strRTEInsertRowAbove="InsertRowAbove",g_strRTEInsertRowBelow="InsertRowBelow",g_strRTEInsertColumnMnemonic="insert_column",g_strRTEInsertColumnLeft="InsertColumnLeft",g_strRTEInsertColumnRight="InsertColumnRight",g_strRTEInsertCellMnemonic="insert_cell",g_strRTEInsertCellLeft="InsertCellLeft",g_strRTEInsertCellRight="InsertCellRight",g_strRTEDeleteRow="delete_row",g_strRTEDeleteColumn="delete_column",g_strRTEMergeCellMnemonic="merge_cell",g_strRTESplitCellMnemonic="split_cell",g_strRTEFormatBlockMnemonic="FormatBlock",g_strRTEStylesMnemonic="styles",g_strRTEUndoMnemonic="Undo",g_strRTERedoMnemonic="Redo",g_strRTERestrictedModeAttributeName="RestrictedMode",g_strRTESimpleTextOnlyAttributeName="SimpleTextOnly",g_strRTEUseDynamicHeightSizing="UseDynamicHeightSizing",g_strRTEUseDynamicWidthSizing="UseDynamicWidthSizing",g_strRTEMaxHeightSizeAttributeName="MaxHeightSize",g_strRTEMinHeightSizeAttributeName="MinHeightSize",g_strRTEMaxWidthSizeAttributeName="MaxWidthSize",g_strRTEMinWidthSizeAttributeName="MinWidthSize",g_strRTEAllowHyperlinkAttributeName="AllowHyperlink",g_strRTEBaseElementIDAttributeName="BaseElementID",g_strRTEWebLocaleAttributeName="WebLocale",g_strRTEButtonMnemonicAttributeName="ButtonMnemonic",g_strRTECommandToExecuteAttributeName="CommandToExecute",g_strRTECommandValueAttributeName="CommandValue",g_strRTEFunctionToExecuteAttributeName="FunctionToExecute",g_strRTEFunctionParameterToExecuteAttributeName="FunctionParameterToExecute",g_strRTEMenuItemBaseName="MenuItem",g_strRTEMenuItemAttributeName="MenuItem",g_strRTEMenuOpeningAttributeName="MenuOpening",g_strRTEMenuTableElementName="MenuTable",g_strRTEBegBoldItalicToken="%BEGBI%",g_strRTEEndBoldItalicToken="%ENDBI%",g_strRTEFontNameToken="%FONTNAME%",g_strRTEFontSizeToken="%FONTSIZE%",g_ntRTEElement=1,g_ntRTEText=3,g_iLineHeight=14,g_iCharWidth=7,g_iDefaultMaxHeightSize=10,g_iDefaultMaxWidthSize=10,g_iDefaultMinWidthSize=0,g_iDefaultMinHeightSize=0,g_rgstRTETextEditorSelectionType=[],g_rgrngRTETextEditorSelection=[],g_RTE_Dialog_Width="400",g_RTE_Dialog_Height="152";function RTE_DialogResize(){ULSopi:;var a=window.document.body;if(a.scrollWidth>g_RTE_Dialog_Width)window.dialogWidth=a.scrollWidth+"px";if(a.scrollHeight>g_RTE_Dialog_Height)window.dialogHeight=a.scrollHeight+"px"}function RTE_SaveSelection(a){ULSopi:;var b=RTE_GetEditorInstanceVariables(a);if(b!=null&&b.overrides.SaveSelection!=null)return b.overrides.SaveSelection(a);var c=RTE_GetEditorDocument(a);g_rgrngRTETextEditorSelection[a]=c.selection.createRange();g_rgstRTETextEditorSelectionType[a]=c.selection.type}var g_fRestoreSelection=false;function RTE_RestoreSelection(a){ULSopi:;var c=RTE_GetEditorInstanceVariables(a);if(c!=null&&c.overrides.RestoreSelection!=null)return c.overrides.RestoreSelection(a);var b=g_rgrngRTETextEditorSelection[a];if(null==b)try{b=parent.g_rgrngRTETextEditorSelection[a]}catch(d){}if(null!=b){g_fRestoreSelection=true;b.select();g_fRestoreSelection=false}}function RTE_GetSelection(a){ULSopi:;return g_rgrngRTETextEditorSelection[a]}var g_oExtendedRichTextSupport;function RTE_GetEditorInstanceVariables(a){ULSopi:;if(parent.g_oExtendedRichTextSupport!=null)g_oExtendedRichTextSupport=parent.g_oExtendedRichTextSupport;if(g_oExtendedRichTextSupport!=null)if(g_oExtendedRichTextSupport.editors[a]!=null)return g_oExtendedRichTextSupport.editors[a];return null}function RTE_InitializeExtendedRichTextSupport(a){ULSopi:;if(g_oExtendedRichTextSupport==null){g_oExtendedRichTextSupport={};g_oExtendedRichTextSupport.editors=[]}g_oExtendedRichTextSupport.editors[a]={};g_oExtendedRichTextSupport.editors[a].overrides={};g_oExtendedRichTextSupport.editors[a].overrides.DisableToolBar=null;g_oExtendedRichTextSupport.editors[a].overrides.ResetAllToolBarStates=null;g_oExtendedRichTextSupport.editors[a].overrides.GetEditorDocument=null;g_oExtendedRichTextSupport.editors[a].overrides.OnKeyDown=null;g_oExtendedRichTextSupport.editors[a].overrides.RestoreSelection=null;g_oExtendedRichTextSupport.editors[a].overrides.GiveEditorFocus=null;g_oExtendedRichTextSupport.editors[a].overrides.GetToolBarDefinition=null;g_oExtendedRichTextSupport.editors[a].RenderFontNamesAsText=false;g_oExtendedRichTextSupport.editors[a].hoverButton=null;g_oExtendedRichTextSupport.editors[a].functions=[]}var g_elemRTELastTextAreaConverted=null,g_strRTETextEditorWithTheFocus=null,g_strRTEPrevTextEditor=null,g_strRTEEditorFirstFocus=null,g_rgstrRTEAllEditorsInThePage=[],g_fRTEDialogIsOpen=false;function RTE_GetEditorIFrameID(a){ULSopi:;return a+"_iframe"}function RTE_GetEditorTextArea(a){ULSopi:;var b=document.getElementById(a);return b}function RTE_GetEditorIFrame(b){ULSopi:;var c=null,a=document;if(null!=a.frames&&a.frames.length==0&&a.parentWindow.parent!=null)a=a.parentWindow.parent.document;if(null!=a.frames&&a.frames.length>0){var d=a.getElementById(RTE_GetEditorIFrameID(b));if(d!=null)c=a.frames(RTE_GetEditorIFrameID(b))}return c}function RTE_GetEditorElement(c){ULSopi:;var a=document;try{if(null!=a.frames&&a.frames.length==0&&a.parentWindow.parent!=null)a=a.parentWindow.parent.document}catch(d){a=document}var b=a.getElementById(RTE_GetEditorIFrameID(c));return b}function RTE_GetEditorToolBar(b){ULSopi:;var a=b+"_toolbar",c=document.getElementById(a);return c}function RTE_GetEditorDocument(b){ULSopi:;var a=RTE_GetEditorInstanceVariables(b);if(a!=null&&a.overrides.GetEditorDocument!=null)return a.overrides.GetEditorDocument(b);var c=RTE_GetEditorIFrame(b);if(null==c)return null;var d=c.document;return d}function RTE_GetWebLocale(a){ULSopi:;return RTE_GetEditorDocument(a).body.getAttribute(g_strRTEWebLocaleAttributeName)}function RTE_IsInRestrictedMode(a){ULSopi:;var b=RTE_GetEditorDocument(a);if(null!=b.body.getAttribute(g_strRTERestrictedModeAttributeName))return true;return false}function RTE_IsSimpleTextOnly(a){ULSopi:;var b=RTE_GetEditorDocument(a);if(null!=b.body.getAttribute(g_strRTESimpleTextOnlyAttributeName))return true;return false}function RTE_UseDynamicHeightSizing(a){ULSopi:;var b=RTE_GetEditorDocument(a);if(null!=b.body.getAttribute(g_strRTEUseDynamicHeightSizing))return true;return false}function RTE_MaxHeightSize(b){ULSopi:;var c=RTE_GetEditorDocument(b),a=c.body.getAttribute(g_strRTEMaxHeightSizeAttributeName);if(null!=a)return a;return g_iDefaultMaxHeightSize}function RTE_MaxWidthSize(b){ULSopi:;var c=RTE_GetEditorDocument(b),a=c.body.getAttribute(g_strRTEMaxWidthSizeAttributeName);if(null!=a)return a;return g_iDefaultMaxWidthSize}function RTE_MinHeightSize(b){ULSopi:;var c=RTE_GetEditorDocument(b),a=c.body.getAttribute(g_strRTEMinHeightSizeAttributeName);if(null!=a)return a;return g_iDefaultMinHeightSize}function RTE_MinWidthSize(b){ULSopi:;var c=RTE_GetEditorDocument(b),a=c.body.getAttribute(g_strRTEMinWidthSizeAttributeName);if(null!=a)return a;return g_iDefaultMinWidthSize}function RTE_IsHyperlinkAllowed(a){ULSopi:;var b=RTE_GetEditorDocument(a);if(null!=b.body.getAttribute(g_strRTEAllowHyperlinkAttributeName))return true;return false}function RTE_ShouldShowDirection(){ULSopi:;return true}function RTE_EditorWithTheFocus(){ULSopi:;return g_strRTETextEditorWithTheFocus}function RTE_PrevEditor(){ULSopi:;return g_strRTEPrevTextEditor}function RTE_GetRichEditTextOnly(a){ULSopi:;return RTE_GetEditorDocument(a).body.innerText}function RTE_DocEditor_AdjustHeight(d){ULSopi:;var i=RTE_MaxHeightSize(d),j=RTE_MinHeightSize(d),h=RTE_GetEditorElement(d);if(h!=null){var f=RTE_GetEditorIFrame(d),a=f.document.body.scrollHeight,e=f.document.body.clientHeight,k=f.document.body.offsetHeight,b=i*g_iLineHeight,c=j*g_iLineHeight;a=a<g_iLineHeight?g_iLineHeight:a;if(e!=a&&(a<=b||e<b)&&(a>=c||e>c)){var g=k+(a>b?b:a)-e;if(g<c)g=c;h.style.height=g}}}function RTE_DocEditor_AdjustWidth(d){ULSopi:;var i=RTE_MaxWidthSize(d),j=RTE_MinWidthSize(d),f=RTE_GetEditorElement(d);if(f!=null){var g=RTE_GetEditorIFrame(d),a=g.document.body.scrollWidth,e=g.document.body.clientWidth,k=g.document.body.offsetWidth,b=i*g_iCharWidth,c=j*g_iCharWidth;a=a<g_iCharWidth?g_iCharWidth:a;if(e!=a&&(a<=b||e<b)&&(a>=c||e>c)){var h=f.style.width=k+(a>b?b:a)-e;if(h<c)h=c;f.style.width=h}}}function RTE_SetVisibiltyStyle(a,d){ULSopi:;var c=RTE_GetEditorElement(a),b=RTE_GetEditorToolBar(a);if(null!=c&&null!=b){b.style.visibility=d;c.style.visibility=d}}function RTE_SetWidthHeight(d,c,f){ULSopi:;var b=RTE_GetEditorElement(d),e=RTE_GetEditorToolBar(d);if(null!=e&&null!=b){if(c<0)c=0;b.style.width=c;var a=f-e.offsetHeight;if(a<0)a=0;b.style.height=a}}function RTE_GetMinimumHeight(c){ULSopi:;var a=0,b=RTE_GetEditorToolBar(c);if(null!=b)a=b.offsetHeight;return a}function RTE_GetMinimumWidth(c){ULSopi:;var b=0,a=RTE_GetEditorToolBar(c);if(null!=a)b=a.offsetWidth;return b}function RTE_GetIFrameContents(c){ULSopi:;var b,d,a=RTE_GetEditorDocument(c);if(null==a)return;b=a.body.innerHTML;return b}function RTE_GiveEditorFocus(b){ULSopi:;var a=RTE_GetEditorInstanceVariables(b);if(a!=null&&a.overrides.GiveEditorFocus!=null)return a.overrides.GiveEditorFocus(b);RTE_GetEditorIFrame(b).focus()}function RTE_GiveEditorFirstFocus(a){ULSopi:;RTE_GiveEditorFocus(a);g_strRTEEditorFirstFocus=a}function RTE_ConvertTextAreaToRichEdit(b,j,s,y,z,k,m,h,e,f,B,A,E,v,u,F,i,p,q,n,C,l,o){ULSopi:;if(!(browseris.ie5up&&(browseris.win32||browseris.winnt||browseris.win64bit)))return;n=n==null||n;if(IsAccessibilityFeatureEnabled()&&n)return;k=k!=null&&k;j=k?true:j;m=null==m?true:m;h=h!=null&&h;e=null==e||e<=0?g_iDefaultMaxHeightSize:e;f=null==f||f<=0||f>e?g_iDefaultMinHeightSize:f;i=i!=null&&i;p=null==p||p<=0?g_iDefaultMaxWidthSize:p;q=null==q||q<=0||q>p?g_iDefaultMinWidthSize:q;l=null==l||l;o=null==o||o;if(B!="FullHtml")B="Compatible";if(null==v)v="ms-formbody";aSettings=[];RTE_InitializeExtendedRichTextSupport(b);var t=RTE_GetEditorInstanceVariables(b),G=false;if(B=="FullHtml"){G=true;s=false;t.overrides.GetToolBarDefinition=RTE_FullHtmlToolBarDefinitionFactory(n);aSettings.fRestrictedMode=true;aSettings.fAllowHyperlink=false;aSettings.fIsVisible=true}else{aSettings.fRestrictedMode=j;aSettings.fAllowHyperlink=s;aSettings.fIsVisible=!k}aSettings.urlWebRoot=A==null||A=="/"?"":A;aSettings.fAllowRelativeLinks=u==null?false:u;aSettings.fPreserveScript=C==null?false:C;t.aSettings=aSettings;var d=RTE_GetEditorTextArea(b),x=d.innerText;if(null==x||0==x.length)x="<div></div>";g_elemRTELastTextAreaConverted=d;AttachEvent("load",new Function("RTE_TextAreaWindow_OnLoad('"+b+"');"),window);var w=[];o&&w.push(RTE_GenerateToolBarHtmlFromSettings(b,z,d,aSettings));w.push(RTE_GenerateIFrameEditorHtml(b,d,j,s));var I=w.join("");insertAdjacentHTML(d,"afterEnd",I);if(l){d.onfocus=new Function("RTE_TextArea_OnFocus('"+b+"')");d.style.display="none";t.onBeforeUnloadFunc=new Function("RTE_TransferIFrameContentsToTextArea('"+b+"');");AttachEvent("beforeunload",t.onBeforeUnloadFunc,window);var g=d;while(g!=null&&g.tagName!="FORM"&&g.tagName!="WINDOW")g=g.parentElement;var H=function(){ULSopi:;RTE_TransferIFrameContentsToTextArea(b);DetachEvent("submit",H,event.srcElement);RTE_DeleteEditor(b)};g!=null&&AttachEvent("submit",H,g)}var c=[];c.push("<html><head>");if(null!=F&&true==u){c.push('<base href="');c.push(F);c.push('"/>')}c.push('<link rel="stylesheet" type="text/css" href="');c.push(RTE_GetServerRelativeStylesheetUrl("core.css",z));c.push('">');if(null!=E){c.push('<link rel="stylesheet" type="text/css" href="');c.push(E);c.push('">')}c.push('</head><body class="');c.push(v);c.push('" style="background-color: white;border:none;"></body></html>');var D=c.join(""),a=RTE_GetEditorDocument(b);a.designMode=m?"on":"off";a=RTE_GetEditorDocument(b);a.open("text/html","replace");a.write(D);a.close();a.body.scroll="yes";a.body.wordWrap=false;a.body.contentEditable=m;a.body.innerHTML=D;l&&m&&RTE_EventHookUp(b);if(j){a.body.ondragenter=new Function("RTE_OnDragEnter(this);");a.body.ondragover=new Function("RTE_OnDragOver(this);");a.body.ondragdrop=new Function("RTE_OnDrop(this);")}if(y!=""&&y!="None")a.dir=y;else a.dir=document.dir;if(j&&!G){a.body.setAttribute(g_strRTERestrictedModeAttributeName,"true");a.body.onpaste=new Function("RTE_OnPaste_Restricted('"+b+"', this);")}k&&a.body.setAttribute(g_strRTESimpleTextOnlyAttributeName,"true");if(h||i){var r="";if(h){a.body.style.wordWrap="break-word";a.body.setAttribute(g_strRTEUseDynamicHeightSizing,"true");a.body.setAttribute(g_strRTEMinHeightSizeAttributeName,f);a.body.setAttribute(g_strRTEMaxHeightSizeAttributeName,e);r="RTE_DocEditor_AdjustHeight('"+b+"');"}if(i){a.body.style.wordWrap="normal";a.body.setAttribute(g_strRTEUseDynamicWidthSizing,"true");a.body.setAttribute(g_strRTEMaxWidthSizeAttributeName,e);a.body.setAttribute(g_strRTEMinWidthSizeAttributeName,f);r+="RTE_DocEditor_AdjustWidth('"+b+"');"}var K=RTE_GetEditorIFrame(b);AttachEvent("keydown",new Function(r),a);AttachEvent("scroll",new Function(r),K);AttachEvent("load",new Function(r),window);if(l){h&&RTE_DocEditor_AdjustHeight(b);i&&RTE_DocEditor_AdjustWidth(b)}}s&&a.body.setAttribute(g_strRTEAllowHyperlinkAttributeName,"true");a.body.setAttribute(g_strRTEBaseElementIDAttributeName,b);a.body.setAttribute(g_strRTEWebLocaleAttributeName,z);g_rgstrRTEAllEditorsInThePage[g_rgstrRTEAllEditorsInThePage.length]=b;if(o){RTE_DisableToolBar(b);var J=RTE_GetEditorElement(b);J.tabIndex=d.tabIndex;RTE_ToolBarMnemonicInitialization(b)}}function RTE_ToolBarMnemonicInitialization(c){ULSopi:;var b=RTE_GetToolBarDefinition(c);if(b!=null)for(var a=0;a<b.length;a++)if(b[a].strMnemonic!=undefined){var d=RTE_TB_GetToolBarButton(c,b[a].strMnemonic);d.toolbarButtonIndex=a;d.strBaseElementID=c}}function RTE_DeleteEditor(a){ULSopi:;var b=RTE_GetEditorInstanceVariables(a);DetachEvent("beforeunload",b.onBeforeUnloadFunc,window)}function RTE_DisableToolBar(a){ULSopi:;var d=RTE_GetEditorInstanceVariables(a);if(d!=null&&d.overrides.DisableToolBar!=null)return d.overrides.DisableToolBar(a);var b=RTE_GetToolBarDefinition(a);if(b!=null)for(var c=0;c<b.length;c++)b[c].strMnemonic!=undefined&&RTE_TB_SetButtonDisabled(RTE_TB_GetToolBarButton(a,b[c].strMnemonic))}function RTE_ResetAllToolBarStates(a){ULSopi:;var d=RTE_GetEditorInstanceVariables(a);if(d!=null&&d.overrides.ResetAllToolBarStates!=null)return d.overrides.ResetAllToolBarStates(a);ifmMenu=RTE_DD_GetMenuFrame();if(ifmMenu&&ifmMenu.document==document)return;if(browseris.ie55up&&RTE_EditorWithTheFocus()!=a&&RTE_ToolBarButtonWithTheFocus()==null&&!RTE_DD_MenuIsOpen()&&!g_fRTEDialogIsOpen){RTE_DisableToolBar(a);return}var f=RTE_GetCurrentSelectionChain(a),e=RTE_GetEditorDocument(a),g=RTE_HasActiveSelection(e),b=RTE_GetToolBarDefinition(a);if(b!=null)for(var c=0;c<b.length;c++)b[c].enabler!=undefined&&b[c].enabler.SetEnabled(a,e,f,b[c].strMnemonic)}function RTE_EventHookUp(a){ULSopi:;var b=RTE_GetEditorDocument(a);b.body.onkeydown=new Function("RTE_OnKeyDown('"+a+"', this)");b.body.onkeyup=new Function("RTE_OnKeyUp('"+a+"', this)");b.body.onmouseup=new Function("RTE_OnMouseUp('"+a+"')");b.body.onselectstart=new Function("RTE_OnSelectStart('"+a+"', this)");b.body.oncontextmenu=new Function("return false");RTE_GetEditorElement(a).onblur=new Function("RTE_OnBlur('"+a+"');");RTE_GetEditorElement(a).onfocus=new Function("RTE_OnFocus('"+a+"');")}function RTE_TransferTextAreaContentsToIFrame(b){ULSopi:;var h=RTE_GetEditorTextArea(b),a=h.innerText,d=document.getElementById(b+"_spSave");if(d!=null&&d.value!="")a=d.value;var c=RTE_GetEditorDocument(b);if(null==c)return;if(null==a||0==a.length)a="<div></div>";var e=false,f=RTE_GetEditorInstanceVariables(b);if(f!=null&&f.aSettings!=null)e=aSettings.fPreserveScript;if(e)a="<body>"+a;c.body.innerHTML=a;if(b==g_strRTEEditorFirstFocus){var g=c.body.createTextRange();g.collapse(true);g.select();g_strRTEEditorFirstFocus=null}}function RTE_TransferIFrameContentsToTextArea(a){ULSopi:;var b,f,c=RTE_GetEditorTextArea(a),d=RTE_GetEditorDocument(a);if(null==d)return;b=d.body.innerHTML;var e=document.getElementById(a+"_spSave");if(e!=null){e.value=b;c.innerText="<div></div>"}else c.innerText=b}function RTE_TextAreaWindow_OnLoad(a){ULSopi:;RTE_TransferTextAreaContentsToIFrame(a);RTE_SaveSelection(a)}function RTE_TextArea_OnFocus(a){ULSopi:;RTE_GiveEditorFocus(a)}function RTE_OnFocus(a){ULSopi:;g_strRTETextEditorWithTheFocus=a;RTE_GetEditorDocument(a).body.contentEditable=true;g_strRTEPrevTextEditor!=null&&g_strRTEPrevTextEditor.length>0&&g_strRTEPrevTextEditor!=a&&RTE_DisableToolBar(g_strRTEPrevTextEditor);RTE_StartResetToolBarTimer(a)}function RTE_OnBlur(a){ULSopi:;try{RTE_SaveSelection(a)}catch(b){}g_strRTEPrevTextEditor=g_strRTETextEditorWithTheFocus;g_strRTETextEditorWithTheFocus=null;RTE_StartResetToolBarTimer(a);RTE_DD_CloseMenu();if(RTE_ToolBarButtonWithTheFocus()==null&&!g_fRTEDialogIsOpen){RTE_DisableToolBar(a);RTE_DD_CloseMenu()}}function RTE_OnDragEnter(b){ULSopi:;var a=b.document.parentWindow.event;if(null!=a){a.dataTransfer.dropEffect="none";a.returnValue=false}}function RTE_OnDragOver(b){ULSopi:;var a=b.document.parentWindow.event;if(null!=a){a.dataTransfer.dropEffect="none";a.returnValue=false}}function RTE_OnDrop(b){ULSopi:;var a=b.document.parentWindow.event;if(null!=a){a.dataTransfer.dropEffect="none";a.returnValue=false}}function RTE_FInterpretTextAsBoolean(a){ULSopi:;if(a.toLowerCase()=="true")return true;else return false}function RTE_OnKeyDown(a,i){ULSopi:;if(RTE_DD_MenuIsOpen()){RTE_DD_OnKeyDown(i);return}var g=RTE_GetEditorInstanceVariables(a);if(g!=null&&g.overrides.OnKeyDown!=null)return g.overrides.OnKeyDown(a,i);RTE_SaveSelection(a);var l=RTE_IsInRestrictedMode(a),f=RTE_IsSimpleTextOnly(a),n=RTE_IsHyperlinkAllowed(a),m=i.document,b=i.document.parentWindow.event,c=b.keyCode,e=b.altKey,h=b.ctrlKey,d=b.shiftKey,k=false;if(browseris.ie5up&&!browseris.ie55up&&(!h&&!e&&!d))switch(c){case 9:var j=RTE_GetEditorDocument(a).body.createTextRange();j.collapse(true);j.select()}if(!h&&!e&&d)switch(c){case 9:RTE_GetEditorDocument(a).body.contentEditable=false;var j=RTE_GetEditorDocument(a).body.createTextRange();j.collapse(true);j.select()}else if(!h&&!e&&!d)switch(c){case 13:if(g.hoverButton!=null){b.returnValue=false;g.hoverButton.children(0).click()}}else if(h){switch(c){case 192:k=true;b.returnValue=RTE_MoveFocusBackwards(a,m.activeElement);break;case 49:k=true;b.returnValue=RTE_MoveFocusForwards(a,m.activeElement)}if(L_BoldKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_BoldShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_BoldAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEBoldMnemonic).children(0).click()}else if(L_SelectAllKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_BoldShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_BoldAltKey_TEXT)==e){b.returnValue=false;var p=RTE_GetEditorDocument(a),o=p.body.createTextRange();o.select()}else if(L_ItalicKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_ItalicShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_ItalicAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEItalicMnemonic).children(0).click()}else if(L_UnderlineKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_UnderlineShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_UnderlineAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEUnderlineMnemonic).children(0).click()}else if(L_JustifyLeftKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_JustifyLeftShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_JustifyLeftAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEJustifyLeftMnemonic).children(0).click()}else if(L_JustifyCenterKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_JustifyCenterShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_JustifyCenterAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEJustifyCenterMnemonic).children(0).click()}else if(L_JustifyRightKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_JustifyRightShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_JustifyRightAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEJustifyRightMnemonic).children(0).click()}else if(L_IndentKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_IndentShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_IndentAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEIndentMnemonic).children(0).click()}else if(L_CreateLinkKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_CreateLinkShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_CreateLinkAltKey_TEXT)==e){b.returnValue=false;!f&&(!l||n)&&RTE_TB_GetToolBarButton(a,g_strRTECreateLinkMnemonic).children(0).click()}else if(L_SelectFontNameKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_SelectFontNameShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_SelectFontNameAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEFontNameMnemonic).children(0).click()}else if(L_SelectFontSizeKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_SelectFontSizeShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_SelectFontSizeAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEFontSizeMnemonic).children(0).click()}else if(L_InsertTableKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_InsertTableShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_InsertTableAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEInsertTableMnemonic).children(0).click()}else if(L_SplitCellKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_SplitCellShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_SplitCellAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTESplitCellMnemonic).children(0).click()}else if(L_MergeCellKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_MergeCellShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_MergeCellAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEMergeCellMnemonic).children(0).click()}else if(parseInt(L_DeleteColumnKeyCode_TEXT)==c&&RTE_FInterpretTextAsBoolean(L_DeleteColumnShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_DeleteColumnAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_DeleteColumn(a)}else if(parseInt(L_DeleteRowKeyCode_TEXT)==c&&RTE_FInterpretTextAsBoolean(L_DeleteRowShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_DeleteRowAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_DeleteRow(a)}else if(L_InsertCellLeftKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_InsertCellLeftShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_InsertCellLeftAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_InsertCellLeft(a)}else if(L_InsertCellRightKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_InsertCellRightShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_InsertCellRightAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_InsertCellRight(a)}else if(parseInt(L_InsertColumnLeftKeyCode_TEXT)==c&&RTE_FInterpretTextAsBoolean(L_InsertColumnLeftShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_InsertColumnLeftAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_InsertColumnLeft(a)}else if(parseInt(L_InsertColumnRightKeyCode_TEXT)==c&&RTE_FInterpretTextAsBoolean(L_InsertColumnRightShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_InsertColumnRightAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_InsertColumnRight(a)}else if(parseInt(L_InsertRowAboveKeyCode_TEXT)==c&&RTE_FInterpretTextAsBoolean(L_InsertRowAboveShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_InsertRowAboveAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_InsertRowAbove(a)}else if(parseInt(L_InsertRowBelowKeyCode_TEXT)==c&&RTE_FInterpretTextAsBoolean(L_InsertRowBelowShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_InsertRowBelowAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_InsertRowBelow(a)}else if(L_SelectForeColorKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_SelectForeColorShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_SelectForeColorAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEForeColorMnemonic).children(0).click()}else if(L_SelectBackColorKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_SelectBackColorShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_SelectBackColorAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEBackColorMnemonic).children(0).click()}else if(L_UnorderedListKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_UnorderedListShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_UnorderedListAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEUnorderedListMnemonic).children(0).click()}else if(L_OrderedListKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_OrderedListShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_OrderedListAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEOrderedListMnemonic).children(0).click()}else if(L_OutdentKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_OutdentShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_OutdentAltKey_TEXT)==e){b.returnValue=false;!f&&RTE_TB_GetToolBarButton(a,g_strRTEOutdentMnemonic).children(0).click()}else if(L_InsertImageKey_TEXT.charCodeAt(0)==c&&RTE_FInterpretTextAsBoolean(L_InsertImageShiftKey_TEXT)==d&&RTE_FInterpretTextAsBoolean(L_InsertImageAltKey_TEXT)==e){b.returnValue=false;!l&&RTE_TB_GetToolBarButton(a,g_strRTEInsertImageMnemonic).children(0).click()}else if(L_LTRKey_VALUE==c&&d){b.returnValue=false;RTE_TB_GetToolBarButton(a,g_strRTELTRMnemonic).children(0).click()}else if(L_RTLKey_VALUE==c&&d){b.returnValue=false;RTE_TB_GetToolBarButton(a,g_strRTERTLMnemonic).children(0).click()}else browseris.ie55up&&document.fireEvent("onkeydown",document.createEventObject(b))}!k&&RTE_TB_RemoveLastToolBarHover(a)}function RTE_OnKeyUp(b,d){ULSopi:;RTE_StartResetToolBarTimer(b);var c=d.document.parentWindow.event,a=c.keyCode;(a==16||a==17||a==9)&&RTE_SaveSelection(b)}function RTE_OnSelectStart(a,b){ULSopi:;var c=RTE_GetCurrentSelectionChain(a);b.document.parentWindow.event.ctrlKey&&!b.document.parentWindow.event.shiftKey&&RTE_IsElementInChain(c,"A")&&RTE_ClickLink(a)}function RTE_OnMouseUp(a){ULSopi:;RTE_SaveSelection(a);RTE_DD_CloseMenu();RTE_TB_RemoveLastToolBarHover(a);RTE_StartResetToolBarTimer(a)}function RTE_OnPaste_Restricted(a,d){ULSopi:;RTE_SaveSelection(a);d.document.parentWindow.event.returnValue=false;RTE_RestoreSelection(a);var c=RTE_GetSelection(a),b=window.clipboardData.getData("Text");if(null!=c&&null!=b)c.text=b}var g_cRTEResetToolBarTimerQueue;function RTE_StartResetToolBarTimer(a){ULSopi:;if(g_cRTEResetToolBarTimerQueue==null)g_cRTEResetToolBarTimerQueue=[];if(g_cRTEResetToolBarTimerQueue[a]==null)g_cRTEResetToolBarTimerQueue[a]=0;++g_cRTEResetToolBarTimerQueue[a];window.setTimeout('RTE_OnResetToolBarTimer("'+a+'")',200)}function RTE_OnResetToolBarTimer(a){ULSopi:;--g_cRTEResetToolBarTimerQueue[a];0==g_cRTEResetToolBarTimerQueue[a]&&RTE_ResetAllToolBarStates(a)}var g_fRTEFirstTimeGenerateCalled=true;function RTE_GenerateIFrameEditorHtml(g,e,i,h){ULSopi:;var a=[];if(g_fRTEFirstTimeGenerateCalled){g_fRTEFirstTimeGenerateCalled=false;a.push('<iframe id="');a.push(g_strRTETextEditorPullDownMenuID);a.push('"  src="');a.push(RTE_GetServerRelativeUnlocalizedImageUrl("blank.gif"));a.push('" class="');a.push(g_strRTEToolbarClassName);a.push('" tabindex="-1" style="display:none; position:absolute;" ');a.push(g_strRTEBaseElementIDAttributeName);a.push('="x" ');a.push(g_strRTEWebLocaleAttributeName);a.push('="x" ');a.push(g_strRTEButtonMnemonicAttributeName);a.push('="x"></iframe>');insertAdjacentHTML(document.body,"afterBegin",'<div style="position:absolute;width:0px;height:0px;"><object id="RTEDialogHelper" name="RTEDialogHelper" classid="clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b" style="width:0px; height:0px;" tabindex="-1"></object></div>')}var d="",c="",b="",f=e.getAttribute("rows");if(i&&null!=f&&f>0){d="";c=' height="'+f*g_iLineHeight+'"';if(h)b=' class="ms-rtelonger"';else b=' class="ms-rtelong"'}else{d=' width="'+g_iCharWidth*e.cols+'"';c=' height="'+g_iLineHeight*e.rows+'"';b=""}a.push("<div><iframe ");a.push(d);a.push(c);a.push(b);a.push(' id="');a.push(RTE_GetEditorIFrameID(g));a.push('" title="');a.push(L_EditorIFrameTitle_TEXT);a.push('" src="');a.push(RTE_GetServerRelativeUnlocalizedImageUrl("blank.gif"));a.push('"></iframe></div>');return a.join("")}function RTE_TB_GenerateToolbarButtonOnclickScript(b,e,d,c){ULSopi:;var a="if (!(RTE_TB_GetToolBarButton('"+b+"', '"+e+"').disabled)) { ";a+=d+"('"+b+"'";if(c!=null)a+=", "+c;a+="); }";return a}function RTE_TB_GenerateSimpleToolBarButtonHtmlCluster(b,a,c,f,d,e,g){ULSopi:;return RTE_TB_GenerateToolBarButtonHtmlCluster(b,a,RTE_TB_GenerateToolbarButtonOnclickScript(b,a,c,f),d,e,g)}function RTE_TB_GenerateSimpleToolBarButtonHtml(b,a,c,d,e,g,f){ULSopi:;return RTE_TB_GenerateToolBarButtonHtml(b,a,RTE_TB_GenerateToolbarButtonOnclickScript(b,a,c,d),e,g,f)}function RTE_GenerateFontNameToolBarButtonHtml(b,e,d,c){ULSopi:;var a="";a+=RTE_TB_GenerateOpenCellButtonHtml(b,g_strRTEFontNameMnemonic,"RTE_SaveSelection('"+b+"'); RTE_DD_OpenFontNameOrSizeSelector('"+b+"' ,'"+e+"', true)");if(d||c){a+="<div class='clip16x16'><img class='ms-rtefnt' src=\""+RTE_GetServerRelativeImageUrl("rtecluster.png")+'" alt="'+L_FontNameToolTip_TEXT+'" border="0" unselectable="on"></div>';if(c)a+='<img alt="'+L_FontSizeToolTip_TEXT+'" src="'+RTE_GetServerRelativeUnlocalizedImageUrl("menudark.gif")+'" border="0" width="13" height="13" unselectable="on">'}else a+='<label style="margin-left: 2px; margin-right: 2px;">'+L_FontNameLabel_TEXT+"</label>&nbsp;<div class='clip13x13'><img class='ms-rtednar' alt=\""+L_FontNameToolTip_TEXT+'" src="'+RTE_GetServerRelativeImageUrl("rtecluster.png")+'" border="0" unselectable="on"></div>';a+=RTE_TB_GenerateCloseCellButtonHtml();return a}function RTE_GenerateFontSizeToolBarButtonHtml(b,e,d,c){ULSopi:;var a="";a+=RTE_TB_GenerateOpenCellButtonHtml(b,g_strRTEFontSizeMnemonic,"RTE_SaveSelection('"+b+"'); RTE_DD_OpenFontNameOrSizeSelector('"+b+"', '"+e+"', false)");if(d||c){a+="<div class='clip16x16'><img class='ms-rtefntsz' src=\""+RTE_GetServerRelativeImageUrl("rtecluster.png")+'" alt="'+L_FontSizeToolTip_TEXT+'" border="0" unselectable="on"></div>';if(c)a+='<img alt="'+L_FontSizeToolTip_TEXT+'" src="'+RTE_GetServerRelativeUnlocalizedImageUrl("menudark.gif")+'" border="0" width="13" height="13" unselectable="on">'}else a+='<label style="margin-left: 2px; margin-right: 2px;">'+L_FontSizeLabel_TEXT+"</label>&nbsp;<div class='clip13x13'><img class='ms-rtednar' alt=\""+L_FontSizeToolTip_TEXT+'" src="'+RTE_GetServerRelativeImageUrl("rtecluster.png")+'" border="0" unselectable="on"></div>';a+=RTE_TB_GenerateCloseCellButtonHtml();return a}function RTE_GenerateForeColorToolBarButtonHtml(a,c){ULSopi:;var b="";b+=RTE_TB_GenerateOpenCellButtonHtml(a,g_strRTEForeColorMnemonic);b+='<a tabindex="-1" href="#" onfocus="RTE_TB_OnFocus(\''+a+"', this);\" onblur=\"RTE_TB_OnBlur('"+a+"', this);\" onclick=\"RTE_DD_OpenForeColorSelector('"+a+"', '"+c+"'); return false;\" unselectable=\"on\"><div class='clip16x16'><img class='ms-rtetxclr' src=\""+RTE_GetServerRelativeImageUrl("rtecluster.png")+'" alt="'+L_ForeColorToolTip_TEXT+'" border="0" unselectable="on"></div></a>';b+=RTE_TB_GenerateCloseCellButtonHtml();return b}function RTE_GenerateToolBarHtml(a,d,e,c,b,f){ULSopi:;aSettings=[];aSettings.fRestrictedMode=c;aSettings.fAllowHyperlink=b;aSettings.fIsVisible=f;RTE_GenerateToolBarHtmlFromSettings(a,d,e,aSettings)}function RTE_GenerateToolBarHtmlFromSettings(c,h,j,d){ULSopi:;var b=' class="'+g_strRTEToolbarClassName+'" ',g=' width="'+j.currentStyle.width+'" ',i=d.fIsVisible?' style="border:solid 1px #c4c4c4;"':' style="display:none;" ';if(d.fRestrictedMode){if(d.fAllowHyperlink)b=' class="'+g_strRTEToolbarClassName+' ms-longer" ';else b=' class="'+g_strRTEToolbarClassName+' ms-long" ';g=""}var a=[];a.push("<table cellpadding='0' cellspacing='0' id='");a.push(c);a.push("_toolbar' ");a.push(b);a.push(g);a.push(i);a.push("><tr><td><table cellspacing='0' cellpadding='0' border='0'><tr>");var e=RTE_GetToolBarDefinition(c,h);if(e!=null)for(var f=0;f<e.length;f++)a.push(e[f].Generate(c,h));a.push("</tr></table></td></tr></table>");return a.join("")}function RTE_GenerateBackColorToolBarButtonHtml(a,c){ULSopi:;var b="";b+=RTE_TB_GenerateOpenCellButtonHtml(a,g_strRTEBackColorMnemonic);b+='<a tabindex="-1" href="#" onfocus="RTE_TB_OnFocus(\''+a+"', this);\" onblur=\"RTE_TB_OnBlur('"+a+"', this);\" onclick=\"RTE_DD_OpenBackColorSelector('"+a+"', '"+c+"'); return false;\" unselectable=\"on\"><div class='clip16x16'><img class='ms-rtebkclr' src=\""+RTE_GetServerRelativeImageUrl("rtecluster.png")+'" alt="'+L_BackColorToolTip_TEXT+'" border="0" unselectable="on"></div></a>';b+=RTE_TB_GenerateCloseCellButtonHtml();return b}function RTE_InsertTable(b){ULSopi:;var c=RTE_ModalDialog(b,"InsertTable",g_RTE_Dialog_Width,g_RTE_Dialog_Height,null);if(c!=null){for(var f=c[0],g=c[1],a='<table style="display: inline; font-size: 1em; border-collapse: collapse" border="1">',d=0;d<g;++d){a+="<tr>";for(var e=0;e<f;++e)a+='<td style="vertical-align:TOP;" class="ms-rtetablecells"><div></div></td>';a+="</tr>"}a+="</table>";RTE_GetSelection(b).pasteHTML(a);RTE_UseDynamicHeightSizing(b)&&RTE_DocEditor_AdjustHeight(b)}}function RTE_CreateLink(a){ULSopi:;RTE_SaveSelection(a);var b=false,d=RTE_GetEditorInstanceVariables(a);if(d!=null&&d.aSettings!=null)b=d.aSettings.fAllowRelativeLinks;var c=[];c.text=RTE_GetCurrentSelectionRange(a).text;c.allowRelativeLinks=b;var e=RTE_ModalDialog(a,"CreateLink",g_RTE_Dialog_Width,g_RTE_Dialog_Height,c);if(e!=null){var f=STSHtmlEncode(e[1]),g=STSHtmlEncode(e[0]);IsSafeHrefAlert(f,b)&&RTE_GetSelection(a).pasteHTML('<a href="'+f+'">'+g+"</a>")}}function RTE_ClickLink(c){ULSopi:;if(g_fRestoreSelection)return;RTE_SaveSelection(c);for(var d=RTE_GetCurrentSelectionChain(c),b=null,a=0;a<d.length;a++){b=d[a];if(b.tagName=="A"){open(b.href);break}}}function RTE_InsertImage(a){ULSopi:;RTE_SaveSelection(a);var c=RTE_ModalDialog(a,"InsertImage",g_RTE_Dialog_Width,g_RTE_Dialog_Height,null);if(c!=null){var e=STSHtmlEncode(c[0]),f=STSHtmlEncode(c[1]),d=false,b=RTE_GetEditorInstanceVariables(a);if(b!=null&&b.aSettings!=null)d=b.aSettings.fAllowRelativeLinks;if(IsSafeHrefAlert(e,d)){var g='<img src="'+e+'" alt="'+f+'">';RTE_GetSelection(a).pasteHTML(g)}RTE_UseDynamicHeightSizing(a)&&RTE_DocEditor_AdjustHeight(a)}}function RTE_HtmlSource(a){ULSopi:;var b=RTE_GetEditorDocument(a),c=[];c.value=b.body.innerHTML;c.dir=b.dir;var e=RTE_GetEditorInstanceVariables(a);b.body.innerHTML=showModalDialog(e.aSettings.urlWebRoot+"/_layouts/zoombldr.aspx",c,"dialogHeight: 550px; dialogWidth:500px; help: no; status:no; resizable: yes");var d=b.body.createTextRange();d.select();d.scrollIntoView(false);RTE_UseDynamicHeightSizing(a)&&RTE_DocEditor_AdjustHeight(a)}function RTE_GenerateInsertTableElementToolBarButtonHtml(b,c){ULSopi:;var a=RTE_GetEditorInstanceVariables(b);a.functions[g_strRTEInsertRowAbove]=RTE_InsertRowAbove;a.functions[g_strRTEInsertRowBelow]=RTE_InsertRowBelow;a.functions[g_strRTEInsertColumnLeft]=RTE_InsertColumnLeft;a.functions[g_strRTEInsertColumnRight]=RTE_InsertColumnRight;a.functions[g_strRTEInsertCellLeft]=RTE_InsertCellLeft;a.functions[g_strRTEInsertCellRight]=RTE_InsertCellRight;return RTE_GenerateTableToolBarButtonHtml(b,c,g_strRTEInsertTableElementMnemonic,L_InsertTableElementToolTip_TEXT,"rteirow")}function RTE_GenerateDeleteTableElementToolBarButtonHtml(a,c){ULSopi:;var b=RTE_GetEditorInstanceVariables(a);b.functions[g_strRTEDeleteRow]=RTE_DeleteRow;b.functions[g_strRTEDeleteColumn]=RTE_DeleteColumn;return RTE_GenerateTableToolBarButtonHtml(a,c,g_strRTEDeleteTableElementMnemonic,L_DeleteTableElementToolTip_TEXT,"rtedrow")}function RTE_GenerateTableToolBarButtonHtml(a,e,c,b,d){ULSopi:;strHtmlRet=RTE_TB_GenerateOpenCellButtonHtml(a,c)+'<a tabindex="-1" href="#" onfocus="RTE_TB_OnFocus(\''+a+"', this);\" onblur=\"RTE_TB_OnBlur('"+a+"', this);\" onclick=\"RTE_DD_OpenTableOperationSelector('"+a+"' ,'"+e+"', '"+c+'\'); return false;" title="'+b+'" style="margin-left: 2px; margin-right: 2px;" unselectable="on"><div class=\'clip16x16\'><img class=\'ms-'+d+"'src=\""+RTE_GetServerRelativeImageUrl("rtecluster.png")+'" alt="'+b+'" border="0" unselectable="on"></div><img alt="'+b+'" src="'+RTE_GetServerRelativeUnlocalizedImageUrl("menudark.gif")+'" border="0" width="13" height="13" unselectable="on"></a>'+RTE_TB_GenerateCloseCellButtonHtml();return strHtmlRet}function RTE_DD_OpenTableOperationSelector(a,d,c){ULSopi:;var b=RTE_DD_GetTableOperationSelectorUnformattedHtml(a,d,c),e=b[0],f=b[1];RTE_DD_OpenMenu(a,c,e,f)}function RTE_DD_InsertItemAndGenerateScript(c,a,e,f,b,d){ULSopi:;b[a]=f;return RTE_DD_GenerateMenuItemScriptHtml(1,a,"RTE_DD_StartAction('"+e+"', '"+c+"')",b[a],b[a],null,null,d)}function RTE_DD_GetTableOperationSelectorUnformattedHtml(c,b,d){ULSopi:;strMenuHtml=RTE_DD_GenerateMenuOpenHtml(b);var a=[];switch(d){case g_strRTEInsertTableElementMnemonic:strMenuHtml+=RTE_DD_InsertItemAndGenerateScript(c,0,g_strRTEInsertRowAbove,L_InsertRowAboveLabel_TEXT,a,b);strMenuHtml+=RTE_DD_InsertItemAndGenerateScript(c,1,g_strRTEInsertRowBelow,L_InsertRowBelowLabel_TEXT,a,b);strMenuHtml+=RTE_DD_InsertItemAndGenerateScript(c,2,g_strRTEInsertColumnLeft,L_InsertColumnLeftLabel_TEXT,a,b);strMenuHtml+=RTE_DD_InsertItemAndGenerateScript(c,3,g_strRTEInsertColumnRight,L_InsertColumnRightLabel_TEXT,a,b);strMenuHtml+=RTE_DD_InsertItemAndGenerateScript(c,4,g_strRTEInsertCellLeft,L_InsertCellLeftLabel_TEXT,a,b);strMenuHtml+=RTE_DD_InsertItemAndGenerateScript(c,5,g_strRTEInsertCellRight,L_InsertCellRightLabel_TEXT,a,b);break;case g_strRTEDeleteTableElementMnemonic:strMenuHtml+=RTE_DD_InsertItemAndGenerateScript(c,0,g_strRTEDeleteRow,L_DeleteRowToolTip_TEXT,a,b);strMenuHtml+=RTE_DD_InsertItemAndGenerateScript(c,1,g_strRTEDeleteColumn,L_DeleteColumnToolTip_TEXT,a,b)}var e=a.length;strMenuHtml+=RTE_DD_GenerateMenuCloseHtml();return [strMenuHtml,e]}function RTE_MoveFocus(b,j,e){ULSopi:;var i=RTE_GetEditorDocument(b),f=RTE_GetEditorInstanceVariables(b);if(RTE_HasActiveSelection(i)){var g=RTE_GetCurrentSelection(b);if(g.type=="Control")return true}var c=RTE_GetToolBarDefinition(b),a=0;if(f.hoverButton==null)if(e==-1&&c!=null)a=c.length-1;else a=0;else a=f.hoverButton.toolbarButtonIndex+e;while(true){if(a<0||a==c.length){RTE_TB_RemoveLastToolBarHover(b);var g=RTE_GetCurrentSelection(b),h=g.createRange();h.collapse();h.select();return true}if(c[a].strMnemonic!=null){var d=RTE_TB_GetToolBarButton(b,c[a].strMnemonic);if(d!=null&&!d.disabled&&RTE_IsVisible(d)){RTE_TB_OnMouseOver(d);return false}}if(e<0)a--;else a++}}function RTE_IsVisible(a){ULSopi:;if(a==null)return true;if(a.currentStyle.visibility=="inherit")return RTE_IsVisible(a.parentElement);else if(a.currentStyle.visibility=="hidden")return false;return true}function RTE_TB_RemoveLastToolBarHover(b){ULSopi:;var a=RTE_GetEditorInstanceVariables(b);a.hoverButton!=null&&RTE_TB_OnMouseOut(a.hoverButton)}function RTE_TB_SetLastToolBarHover(b,c){ULSopi:;var a=RTE_GetEditorInstanceVariables(b);a.hoverButton=c}function RTE_MoveFocusBackwards(a,b){ULSopi:;return RTE_MoveFocus(a,b,-1)}function RTE_MoveFocusForwards(a,b){ULSopi:;return RTE_MoveFocus(a,b,1)}function RTE_ExecuteCommandOnSelection(a,b,d,f){ULSopi:;var e=RTE_GetEditorDocument(a);RTE_RestoreSelection(a);if(b==g_strRTECreateLinkMnemonic||b==g_strRTEInsertImageMnemonic)g_fRTEDialogIsOpen=true;e.execCommand(b,d,f);if(g_fRTEDialogIsOpen){g_fRTEDialogIsOpen=false;RTE_OnFocus(a)}RTE_StartResetToolBarTimer(a);var c=RTE_UseDynamicHeightSizing(a);c&&RTE_DocEditor_AdjustHeight(a)}function RTE_ExecuteFunctionOnSelection(a,d,e){ULSopi:;var f=RTE_GetEditorDocument(a);RTE_RestoreSelection(a);var c=RTE_GetEditorInstanceVariables(a),b=c.functions[d];if(b!=null){b(e);if(g_fRTEDialogIsOpen){g_fRTEDialogIsOpen=false;RTE_OnFocus(a)}}RTE_StartResetToolBarTimer(a)}function RTE_SetDirectionOfSelection(b,e){ULSopi:;var d=RTE_GetEditorInstanceVariables(b);if(d!=null&&d.overrides.SetDirectionOfSelection!=null)return d.overrides.SetDirectionOfSelection(b,e);RTE_SaveSelection(b);var c=RTE_GetSelection(b);RTE_RestoreSelection(b);var g;g="|H1|H2|H3|H4|H5|H6|P|PRE|TD|DIV|BLOCKQUOTE|DT|DD|TABLE|HR|IMG|BODY|TR|UL|OL|";if(c.parentElement){var a=c.parentElement();while(a!=null&&g.indexOf("|"+a.tagName+"|")==-1)a=a.parentElement;a&&RTE_SetDirectionOnElement(a,e)}else for(var i=c.length,h=0;h<i;++h){var f=c.item(h);f!=null&&g.indexOf("|"+f.tagName+"|")!=-1&&RTE_SetDirectionOnElement(f,e)}}function RTE_SetDirectionOnElement(a,b){ULSopi:;if("ltr"==b){a.dir="ltr";a.align="left"}else if("rtl"==b){a.dir="rtl";a.align="right"}}function RTE_GetDirectionOfSelection(d){ULSopi:;var b="",c=RTE_GetSelection(d);if(!(null!=c))return b;var e="|H1|H2|H3|H4|H5|H6|P|PRE|LI|TD|DIV|BLOCKQUOTE|DT|DD|TABLE|HR|IMG|TR|UL|OL|BODY|HTML|",a=c.parentElement();while(a!=null&&(e.indexOf("|"+a.tagName+"|")==-1||a.dir!="ltr"&&a.dir!="rtl"))a=a.parentElement;if(a)if(a.dir=="ltr")b="ltr";else if(a.dir=="rtl")b="rtl";return b}var g_strRTEToolBarButtonWithTheFocus=null;function RTE_ToolBarButtonWithTheFocus(){ULSopi:;return g_strRTEToolBarButtonWithTheFocus}var g_aToolBarButtons;function RTE_TB_GetToolBarButton(c,b){ULSopi:;if(g_aToolBarButtons==null)g_aToolBarButtons=[];var a=g_aToolBarButtons[c+"_"+b];if(a==null){a=document.getElementById(c+"_"+b);g_aToolBarButtons[c+"_"+b]=a}return a}function RTE_TB_GenerateOpenCellButtonHtml(e,d,b,c){ULSopi:;var a=[];a.push('<td class="');a.push(g_strRTEToolbarClassName);a.push('" unselectable="on"><table cellpadding="1" cellspacing="0" border="0" unselectable="on"><tr unselectable="on"><td class="');a.push(g_strRTEToolbarClassName);a.push(" ");a.push(g_strRTEUnselectedClassName);a.push('" nowrap id="');a.push(e);a.push("_");a.push(d);a.push('" onmouseover="RTE_TB_OnMouseOver(this);" onmouseout="RTE_TB_OnMouseOut(this);"');if(b){a.push(' onclick="RTE_DD_CloseMenu();');a.push(b);a.push('"')}if(c){a.push(' title="');a.push(c);a.push('"')}a.push('unselectable="on">');return a.join("")}function RTE_TB_GenerateCloseCellButtonHtml(){ULSopi:;return "</td></tr></table></td>"}function RTE_TB_GenerateToolBarSeparatorHtml(){ULSopi:;return '<td class="ms-separator" unselectable="on">|</td>'}function RTE_TB_GenerateToolBarLineBreakHtml(){ULSopi:;return '</tr></table></td></tr><tr unselectable="on"><td unselectable="on"><table cellspacing="0" cellpadding="0" border="0" unselectable="on"><tr unselectable="on">'}function RTE_TB_GenerateToolBarButtonHtmlCluster(f,d,e,b,g,c){ULSopi:;var a=[];a.push(RTE_TB_GenerateOpenCellButtonHtml(f,d,e,c));if(0<b.length){a.push("<div class='clip16x16'><img border='0' class=\"");a.push(g);a.push('" src="');a.push(b);a.push('" alt="');a.push(c);a.push('" unselectable="on"></div>')}a.push(RTE_TB_GenerateCloseCellButtonHtml());return a.join("")}function RTE_TB_GenerateToolBarButtonHtml(g,e,f,b,d,c){ULSopi:;var a=[];a.push(RTE_TB_GenerateOpenCellButtonHtml(g,e,f,c));if(0<b.length){a.push('<img border="0" width="16" height="16" src="');a.push(b);a.push('" alt="');a.push(c);a.push('" unselectable="on">')}if(0<d.length){a.push(" ");a.push(d)}a.push(RTE_TB_GenerateCloseCellButtonHtml());return a.join("")}function RTE_TB_GenerateExecCommandToolBarButtonScript(c,h,g,d,b,e,f){ULSopi:;var a=[];a.push("RTE_DD_CloseMenu();");if(d){a.push("var sel=RTE_GetEditorDocument('");a.push(c);a.push("').selection; if ((null !=sel) && ('None' !=sel.type)) { ")}a.push("RTE_SaveSelection('"+c+"');");a.push("var argValue=");a.push(b);a.push(";");b!="null"&&a.push("if (argValue !=null) { ");e&&a.push(e);a.push("RTE_ExecuteCommandOnSelection('");a.push(c);a.push("', '");a.push(h);a.push("', ");a.push(g);a.push(", argValue);");f&&a.push(f);b!="null"&&a.push("}");d&&a.push("}");return a.join("")}function RTE_TB_GenerateExecCommandToolBarButtonHtml(a,b,h,i,k,j,c,f,d,e){ULSopi:;var g=RTE_TB_GenerateExecCommandToolBarButtonScript(a,b,h,c,f,d,e);return RTE_TB_GenerateToolBarButtonHtml(a,b,g,i,k,j)}function RTE_TB_GenerateExecCommandToolBarButtonHtmlCluster(a,b,f,g,h,i,c,d){ULSopi:;var e=RTE_TB_GenerateExecCommandToolBarButtonScript(a,b,f,c,d);return RTE_TB_GenerateToolBarButtonHtmlCluster(a,b,e,g,h,i)}function RTE_TB_SetButtonCheck(a){ULSopi:;a.className=RTE_RemoveClassFromClassList(a.className,g_strRTEUnselectedClassName);a.className=RTE_AddClassToClassList(a.className,g_strRTESelectedClassName)}function RTE_TB_ClearButtonCheck(a){ULSopi:;a.className=RTE_RemoveClassFromClassList(a.className,g_strRTESelectedClassName);a.className=RTE_AddClassToClassList(a.className,g_strRTEUnselectedClassName)}function RTE_TB_SetButtonDisabled(a){ULSopi:;a.className=RTE_AddClassToClassList(a.className,g_strRTEDisabledClassName);a.disabled=true;var b=a.children(0);if(b!=null&&b.tagName=="A")b.disabled=true}function RTE_TB_ClearButtonDisabled(a){ULSopi:;a.disabled=false;var b=a.children(0);if(b!=null&&b.tagName=="A")b.disabled=false;a.className=RTE_RemoveClassFromClassList(a.className,g_strRTEDisabledClassName)}function RTE_TB_SetButtonHover(a){ULSopi:;RTE_TB_RemoveLastToolBarHover(a.strBaseElementID);RTE_TB_SetLastToolBarHover(a.strBaseElementID,a);a.className=RTE_AddClassToClassList(a.className,g_strRTEHoverClassName)}function RTE_TB_ClearButtonHover(a){ULSopi:;RTE_TB_SetLastToolBarHover(a.strBaseElementID,null);a.className=RTE_RemoveClassFromClassList(a.className,g_strRTEHoverClassName)}function RTE_TB_SetCheckFromCommandValue(d,b,a){ULSopi:;var c=RTE_TB_GetToolBarButton(d,a);if(b.queryCommandSupported(a)&&b.queryCommandValue(a))RTE_TB_SetButtonCheck(c);else RTE_TB_ClearButtonCheck(c)}function RTE_TB_SetCheckForDirectionButton(a,b){ULSopi:;var c=RTE_TB_GetToolBarButton(a,b);if(RTE_GetDirectionOfSelection(a)=="ltr"&&b==g_strRTELTRMnemonic||RTE_GetDirectionOfSelection(a)=="rtl"&&b==g_strRTERTLMnemonic)RTE_TB_SetButtonCheck(c);else RTE_TB_ClearButtonCheck(c)}function RTE_HasActiveSelection(c){ULSopi:;var a=true,d=c.selection;if(null==d||"none"==d.type)a=false;else{var b=c.selection.createRange();if(b!=null&&b.text!=null&&0>=b.text.length)a=false}return a}function RTE_TB_SetEnabledFromCommandEnabled(d,e,b,c){ULSopi:;var a=RTE_TB_GetToolBarButton(d,b);if(e.queryCommandEnabled(c))RTE_TB_ClearButtonDisabled(a);else RTE_TB_SetButtonDisabled(a)}function RTE_TB_SetEnabledIfInElement(a,c,b,d){ULSopi:;RTE_TB_SetEnabledFromCondition(a,RTE_IsElementInChain(c,d),b)}function RTE_TB_SetEnabledFromCondition(b,c,d){ULSopi:;var a=RTE_TB_GetToolBarButton(b,d);if(c)RTE_TB_ClearButtonDisabled(a);else RTE_TB_SetButtonDisabled(a)}function RTE_TB_OnMouseOver(a){ULSopi:;if(0>a.className.indexOf(g_strRTEDisabledClassName)){a.style.cursor="pointer";RTE_TB_SetButtonHover(a)}}function RTE_TB_OnMouseOut(a){ULSopi:;RTE_TB_ClearButtonHover(a)}function RTE_TB_OnFocus(b,a){ULSopi:;g_strRTEToolBarButtonWithTheFocus=a.parentElement.id}function RTE_TB_OnBlur(){ULSopi:;g_strRTEToolBarButtonWithTheFocus=null}var g_strRTEDDBaseElementID=null,g_strRTEDDButtonMnemonic=null,g_fRTEFirstCallToGetMenu=true,g_elemRTEHighlightedMenuItem=null,g_iRTEHighlightedMenuItem=-1,g_iRTEMenuItemMax=-1;function RTE_DD_GetMenuElement(){ULSopi:;var a=document.getElementById(g_strRTETextEditorPullDownMenuID);if(null==a&&document.parentWindow!=null&&document.parentWindow.document!=null)a=document.parentWindow.parent.document.getElementById(g_strRTETextEditorPullDownMenuID);return a}function RTE_DD_GetMenuFrame(){ULSopi:;var a=null,b=RTE_DD_GetMenuElement();if(null!=b)if(document.frames.length>0)a=document.frames(g_strRTETextEditorPullDownMenuID);else if(document.parentWindow!=null&&document.parentWindow.frames!=null)a=document.parentWindow.parent.document.frames(g_strRTETextEditorPullDownMenuID);if(null==a)if(g_fRTEFirstCallToGetMenu){g_fRTEFirstCallToGetMenu=false;return null}return a}function RTE_DD_GetMenuBaseElementID(){ULSopi:;return RTE_DD_GetMenuElement().getAttribute(g_strRTEBaseElementIDAttributeName)}function RTE_DD_GetMenuButtonMnemonic(){ULSopi:;return RTE_DD_GetMenuElement().getAttribute(g_strRTEButtonMnemonicAttributeName)}function RTE_DD_MenuIsOpen(){ULSopi:;var a=RTE_DD_GetMenuElement();if(a!=null&&""==a.style.display)return true;return false}var g_fRTEMenuMoved=false;function RTE_DD_OpenMenu(d,l,v,m,w){ULSopi:;var a=RTE_DD_GetMenuElement(),b=RTE_DD_GetMenuFrame();if(!g_fRTEMenuMoved){insertAdjacentElement(g_elemRTELastTextAreaConverted,"afterEnd",a);a=RTE_DD_GetMenuElement();b=RTE_DD_GetMenuFrame()}if(g_strRTEDDBaseElementID==d&&g_strRTEDDButtonMnemonic==l){RTE_DD_CloseMenu();RTE_RestoreSelection(d);return}null!=g_strRTEDDBaseElementID&&null!=g_strRTEDDButtonMnemonic&&RTE_DD_CloseMenu();g_strRTEDDBaseElementID=d;g_strRTEDDButtonMnemonic=l;g_iRTEMenuItemMax=w-1;RTE_SaveSelection(d);var k=RTE_TB_GetToolBarButton(d,l);a.setAttribute(g_strRTEBaseElementIDAttributeName,d);a.setAttribute(g_strRTEButtonMnemonicAttributeName,l);a.setAttribute(g_strRTEMenuOpeningAttributeName,"1");a.style.top="0px";a.style.left="0px";a.style.height="";a.style.width="";var x="form.js",t=RTE_GetWebLocale(d);b.document.open("text/html","replace");b.document.write('<html><head><link rel="stylesheet" type="text/css" href="'+RTE_GetServerRelativeStylesheetUrl("core.css",t)+'"><script language="javascript" src="'+RTE_GetServerRelativeScriptUrl(x,t)+'"></script></head><body class="'+g_strRTEToolbarClassName+'"'+g_strRTECommandToExecuteAttributeName+'="x" '+g_strRTECommandValueAttributeName+'="x" '+g_strRTEFunctionToExecuteAttributeName+'="x" '+g_strRTEFunctionParameterToExecuteAttributeName+'="x" unselectable=\'on\'><div class="'+g_strRTEToolbarClassName+'" id="divAroundMenu" unselectable=\'on\'>'+v+"</div></body></html>");b.document.close();a=RTE_DD_GetMenuElement();b=RTE_DD_GetMenuFrame();b.document.body.onkeydown=new Function("RTE_DD_OnKeyDown(this);");a.style.border="0px";b.document.body.style.border="1px solid black";a.style.display="";var y=b.document.all("divAroundMenu"),s=b.document.all(g_strRTEMenuTableElementName),r=300,n=RTE_GetElementWindowCoordinates(a),g=RTE_GetElementWindowCoordinates(k),B=g[g_iRTELeft],C=g[g_iRTETop],z=k.offsetWidth,A=k.offsetHeight,h=s.scrollWidth+4,f=s.scrollHeight+4,u=document.body.clientWidth,q=document.body.clientHeight,i=g[g_iRTETop]+k.offsetHeight-n[g_iRTETop],p=RTE_GetEditorDocument(d),c;if(m=="1037"||m=="1025"||p.dir=="rtl")c=g[g_iRTERight]-h-n[g_iRTELeft];else c=g[g_iRTELeft]-n[g_iRTELeft];var o=false;if(f>r){o=true;f=r}if(f>q){o=true;f=q-30}var j=document.body.scrollTop;j+=document.body.parentElement.scrollTop;if(i+f>q+j){i=g[g_iRTETop]-f;if(j>i)i=j}p=RTE_GetEditorDocument(d);if(m=="1037"||m=="1025"||p.dir=="rtl")b.document.body.dir="rtl";if(o){b.document.body.scroll="yes";h+=22;if(b.document.body.dir=="rtl"){c-=22;if(e>c)c=e}}else b.document.body.scroll="";var e=document.body.scrollLeft;e+=document.body.parentElement.scrollLeft;if(c+h>u+e){if(b.document.body.dir!="rtl")c=u+e-h;if(e>c)c=e}a.style.zIndex=500;a.style.left=c;a.style.top=i;a.style.width=h;a.style.height=f;RTE_DD_SetHighlightOnMenuItem(RTE_DD_GetMenuItem(0));event.cancelBubble=true}function RTE_DD_CloseMenu(){ULSopi:;var b=RTE_DD_GetMenuElement();if(null==b)return;b.style.display="none";g_strRTEDDBaseElementID!=null&&g_strRTEDDButtonMnemonic!=null&&RTE_TB_ClearButtonHover(RTE_TB_GetToolBarButton(g_strRTEDDBaseElementID,g_strRTEDDButtonMnemonic));g_strRTEDDBaseElementID=null;g_strRTEDDButtonMnemonic=null;g_elemRTEHighlightedMenuItem=null;g_iRTEHighlightedMenuItem=-1;g_iRTEMenuItemMax=-1;var a=document.parentWindow.parent;if(a)try{a.g_strRTEDDBaseElementID=null;a.g_strRTEDDButtonMnemonic=null;a.g_elemRTEHighlightedMenuItem=null;a.g_iRTEHighlightedMenuItem=-1;a.g_iRTEMenuItemMax=-1}catch(c){}}function RTE_DD_GenerateMenuOpenHtml(){ULSopi:;return '<table class="ms-rtedropdown" id="'+g_strRTEMenuTableElementName+'" cellspacing="0" border="0" unselectable="on"><tr unselectable="on">'}function RTE_DD_GenerateMenuCloseHtml(){ULSopi:;return "</tr></table>"}function RTE_DD_GenerateMenuItemHtml(i,h,a,d,f,b,c,e,g){ULSopi:;return RTE_DD_GenerateMenuItemScriptHtml(i,h,"return RTE_DD_ExecuteCommand('"+a+"', '"+STSScriptEncode(d)+"')",f,b,c,e,g)}function RTE_DD_GenerateMenuItemScriptHtml(d,b,j,i,h,e,f,g){ULSopi:;var a="";if((1>=d||1<d&&0==b%d)&&0!=b)a='</tr><tr unselectable="on">';var c;if(g=="1037"||g=="1025")c="rtl";else c="ltr";a+='<td dir="'+c+'" class="'+g_strRTEToolbarClassName+" "+g_strRTEUnselectedClassName+'" nowrap id="'+g_strRTEMenuItemBaseName+b+'" '+g_strRTEMenuItemAttributeName+'="'+b+'" onfocus="if (document.readyState==\'complete\') {RTE_DD_Item_OnFocus(this)}" onclick="'+j+'" unselectable="on" onmouseover="if (document.readyState==\'complete\') {RTE_DDItem_OnMouseOver(this);';if(e)a+=e;a+="}\" onmouseout=\"if (document.readyState=='complete') {RTE_DDItem_OnMouseOut(this);";if(f)a+=f;a+='}"><a tabindex="-1" href="#" class="'+g_strRTEUnselectedClassName+'" style="text-decoration: none; color: black; cursor: pointer;" title="'+h+'" unselectable="on" onblur="if (document.readyState==\'complete\') {RTE_DD_Item_OnBlur()}" onfocus="if (document.readyState==\'complete\') {RTE_DD_Item_OnFocus(this.parentElement)}">'+i+"</a></td>";return a}function RTE_DD_GetMenuItem(b){ULSopi:;var a=RTE_DD_GetMenuFrame().document.all(g_strRTEMenuItemBaseName+b);return a}function RTE_DD_GetHighlightedMenuItem(){ULSopi:;return RTE_DD_GetMenuFrame().g_elemRTEHighlightedMenuItem}function RTE_DD_SetHighlightedMenuItem(b){ULSopi:;var a=RTE_DD_GetMenuFrame();if(a!=null)a.g_elemRTEHighlightedMenuItem=b;else g_elemRTEHighlightedMenuItem=b}function RTE_DD_ClearHighlightOnMenuItem(a){ULSopi:;a.className=RTE_RemoveClassFromClassList(a.className,g_strRTEHoverClassName)}function RTE_DD_HighlightOnMenuItem(a){ULSopi:;a.className=RTE_AddClassToClassList(a.className,g_strRTEHoverClassName)}function RTE_DD_ClearHighlightedMenuItem(){ULSopi:;RTE_DD_ClearHighlightOnMenuItem(RTE_DD_GetHighlightedMenuItem())}function RTE_DD_SetHighlightOnMenuItem(a){ULSopi:;if(!RTE_DD_MenuIsOpen())return;var c=a.getAttribute(g_strRTEMenuItemAttributeName),b=RTE_DD_GetHighlightedMenuItem();if(null!=b){RTE_DD_ClearHighlightOnMenuItem(b);g_iRTEHighlightedMenuItem=-1}RTE_DD_HighlightOnMenuItem(a);RTE_DD_SetHighlightedMenuItem(a);g_iRTEHighlightedMenuItem=parseInt(c)}function RTE_DD_SetHighlightOnPrevMenuItem(e){ULSopi:;var a=RTE_DD_GetHighlightedMenuItem();if(a==null)a=RTE_DD_GetMenuItem(0);var d=a.getAttribute(g_strRTEMenuItemAttributeName),b=parseInt(d);if(b>0){var f=Math.max(b-e,0),c=RTE_DD_GetMenuItem(f);a.onmouseout();RTE_DD_SetHighlightOnMenuItem(c);c.onmouseover()}}function RTE_DD_SetHighlightOnNextMenuItem(e){ULSopi:;var a=RTE_DD_GetHighlightedMenuItem();if(a==null)a=RTE_DD_GetMenuItem(0);var d=a.getAttribute(g_strRTEMenuItemAttributeName),b=parseInt(d);if(b<g_iRTEMenuItemMax){var f=Math.min(b+e,g_iRTEMenuItemMax),c=RTE_DD_GetMenuItem(f);a.onmouseout();RTE_DD_SetHighlightOnMenuItem(c);c.onmouseover()}}function RTE_DD_ExecuteCommand(b,c){ULSopi:;var a=RTE_DD_GetMenuBaseElementID();RTE_DD_CloseMenu();RTE_GiveEditorFocus(a);RTE_RestoreSelection(a);RTE_ExecuteCommandOnSelection(RTE_DD_GetMenuBaseElementID(),b,false,c)}function RTE_DD_StartAction(b,c){ULSopi:;var a=RTE_DD_GetMenuBaseElementID();RTE_DD_CloseMenu();RTE_GiveEditorFocus(a);RTE_RestoreSelection(a);RTE_ExecuteFunctionOnSelection(RTE_DD_GetMenuBaseElementID(),b,c)}function RTE_DD_Item_OnFocus(a){ULSopi:;var b=RTE_DD_GetMenuElement();b.setAttribute(g_strRTEMenuOpeningAttributeName,"0");RTE_DD_SetHighlightOnMenuItem(a)}function RTE_DD_Item_OnBlur(){ULSopi:;g_iRTEHighlightedMenuItem=-1;window.setTimeout("RTE_OnItemBlurTestCloseMenu()",30)}function RTE_OnItemBlurTestCloseMenu(){ULSopi:;null==RTE_DD_GetHighlightedMenuItem()&&RTE_DD_CloseMenu()}function RTE_DD_OnKeyDown(i){ULSopi:;var a=i.document.parentWindow.event,g=a.keyCode,h=a.altKey,e=a.ctrlKey,d=a.shiftKey,b=false;if(!e&&!h&&!d)switch(g){case 27:var c=g_strRTEDDBaseElementID;RTE_DD_CloseMenu();RTE_GiveEditorFocus(c);RTE_StartResetToolBarTimer(c);break;case 38:a.returnValue=false;RTE_DD_SetHighlightOnPrevMenuItem(1);break;case 9:a.returnValue=false;break;case 13:var f=RTE_DD_GetHighlightedMenuItem();f!=null&&f.onclick();a.returnValue=false;break;case 40:a.returnValue=false;RTE_DD_SetHighlightOnNextMenuItem(1);break;case 33:a.returnValue=false;RTE_DD_SetHighlightOnPrevMenuItem(12);break;case 34:a.returnValue=false;RTE_DD_SetHighlightOnNextMenuItem(12);break;case 36:a.returnValue=false;break;case 35:a.returnValue=false;break;default:b=true}else if(!e&&!h&&d)switch(g){case 9:a.returnValue=false;break;default:b=true}else b=true;if(b)browseris.ie55up&&document.fireEvent("onkeydown",document.createEventObject(a))}function RTE_DDItem_OnMouseOver(a){ULSopi:;null!=a&&RTE_DD_SetHighlightOnMenuItem(a)}function RTE_DDItem_OnMouseOut(a){ULSopi:;null!=a&&RTE_DD_ClearHighlightOnMenuItem(a)}var g_rgstrRTEMenuHtml=[],g_strRTEColorMatrixMenuItemPrefixHtml='<div unselectable="on" style="width: 10px; height: 10px; background-color: ',g_strRTEColorMatrixMenuItemSufffixHtml=';"><img unselectable="on" width="10" height="10" src="'+RTE_GetServerRelativeUnlocalizedImageUrl("blank.gif")+'" alt="%TOOLTIP%"></div>';function RTE_DD_OpenFontNameOrSizeSelector(c,i,h){ULSopi:;RTE_RestoreSelection(c);var b=RTE_GetSelection(c);if(b==null)return;var f=b.queryCommandValue(g_strRTEFontNameMnemonic);if(null==f)f="";var n=b.queryCommandValue(g_strRTEFontSizeMnemonic),m=b.queryCommandValue(g_strRTEBoldMnemonic),l=b.queryCommandValue(g_strRTEItalicMnemonic),a="",k=-1,g="",j=RTE_DD_GetFontNameOrSizeSelectorUnformattedHtml(c,h,i);a=j[0];k=j[1];if(h){a=a.replace(new RegExp(g_strRTEFontSizeToken,"g"),2);g=g_strRTEFontNameMnemonic}else{a=a.replace(new RegExp(g_strRTEFontNameToken,"g"),STSHtmlEncode(f));g=g_strRTEFontSizeMnemonic}var d="",e="";if(m){d="<b unselectable='on'>";e="</b>"}if(l){d+="<i unselectable='on'>";e+="</i>"}a=a.replace(new RegExp(g_strRTEBegBoldItalicToken,"g"),d);a=a.replace(new RegExp(g_strRTEEndBoldItalicToken,"g"),e);RTE_DD_OpenMenu(c,g,a,i,k)}function RTE_DD_GetFontNameOrSizeSelectorUnformattedHtml(j,i,h){ULSopi:;var a;if(i)a=g_strRTEFontNameMnemonic;else a=g_strRTEFontSizeMnemonic;var b=null,d=RTE_GetEditorInstanceVariables(j);if(d!=null&&d.RenderFontNamesAsText!=null&&d.RenderFontNamesAsText)b=g_rgstrRTEMenuHtml[a+"_text"];else b=g_rgstrRTEMenuHtml[a];if(null!=b)return b;b=RTE_DD_GenerateMenuOpenHtml();var g=-1;if(i){var e=RTE_GetSortedFontNames();g=e.length;for(var c=0;c<g;c++)if(d!=null&&d.RenderFontNamesAsText!=null&&d.RenderFontNamesAsText)b+=RTE_DD_GenerateMenuItemScriptHtml(1,c,"return RTE_ApplyFontFace('"+a+"', '"+e[c]+"')",g_strRTEBegBoldItalicToken+"<font face='' style='height:18px' unselectable='on'>"+STSHtmlEncode(e[c])+"</font>"+g_strRTEEndBoldItalicToken,e[c],"RTE_DD_FontNameOnMouseOver(this);","RTE_DD_FontNameOnMouseOut(this);",h);else b+=RTE_DD_GenerateMenuItemScriptHtml(1,c,"return RTE_ApplyFontFace('"+a+"', '"+e[c]+"')",g_strRTEBegBoldItalicToken+'<font size="'+g_strRTEFontSizeToken+'" face="'+e[c]+"\" unselectable='on'>"+e[c]+"</font>"+g_strRTEEndBoldItalicToken,e[c],null,null,h)}else{g=7;for(var f=1;f<=g;f++)b+=RTE_DD_GenerateMenuItemScriptHtml(1,f-1,"return RTE_ApplyFontSize('"+a+"', '"+f+"')",g_strRTEBegBoldItalicToken+'<font size="'+f+'" face="'+g_strRTEFontNameToken+"\" unselectable='on'>"+f+" - "+L_ExampleText_TEXT+"</font>"+g_strRTEEndBoldItalicToken,f,null,null,h)}b+=RTE_DD_GenerateMenuCloseHtml();if(d!=null&&d.RenderFontNamesAsText!=null&&d.RenderFontNamesAsText){g_rgstrRTEMenuHtml[a+"_text"]=[b,g];return g_rgstrRTEMenuHtml[a+"_text"]}else{g_rgstrRTEMenuHtml[a]=[b,g];return g_rgstrRTEMenuHtml[a]}}function RTE_ApplyFontFace(c,e){ULSopi:;var d=RTE_DD_GetMenuBaseElementID(),a=RTE_GetEditorInstanceVariables(d);if(a!=null&&a.overrides.ApplyFontFace!=null)return a.overrides.ApplyFontFace(c,e);for(var f=RTE_GetContainedElements(d),b=0;b<f.length;b++)RTE_RemoveFontFamilyStyle(f[b]);return RTE_DD_ExecuteCommand(c,e)}function RTE_RemoveFontFamilyStyle(a){ULSopi:;if(a!=null){a.style!=null&&a.style.fontFamily&&a.style.removeAttribute("fontFamily");for(var b=0;b<a.childNodes.length;b++)RTE_RemoveFontFamilyStyle(a.childNodes(b))}}function RTE_ApplyFontSize(c,e){ULSopi:;var d=RTE_DD_GetMenuBaseElementID(),a=RTE_GetEditorInstanceVariables(d);if(a!=null&&a.overrides.ApplyFontSize!=null)return a.overrides.ApplyFontSize(c,e);for(var f=RTE_GetContainedElements(d),b=0;b<f.length;b++)RTE_RemoveFontSizeStyle(f[b]);return RTE_DD_ExecuteCommand(c,e)}function RTE_RemoveFontSizeStyle(a){ULSopi:;if(a!=null){a.style!=null&&a.style.fontSize&&a.style.removeAttribute("fontSize");for(var b=0;b<a.childNodes.length;b++)RTE_RemoveFontSizeStyle(a.childNodes(b))}}function RTE_DD_FontNameOnMouseOver(b){ULSopi:;for(var a=0;a<b.all.length;a++)if(b.all(a).tagName.toUpperCase()=="FONT")b.all(a).face=b.all(a).innerText}function RTE_DD_FontNameOnMouseOut(b){ULSopi:;for(var a=0;a<b.all.length;a++)if(b.all(a).tagName.toUpperCase()=="FONT")b.all(a).face=null}function RTE_DD_OpenForeColorSelector(b,a){ULSopi:;RTE_DD_OpenMenu(b,g_strRTEForeColorMnemonic,RTE_DD_GetColorSelectorHtml(g_strRTEForeColorMnemonic,a),a,g_rgrgstrRTEColorMatrix.length)}function RTE_DD_OpenBackColorSelector(b,a){ULSopi:;RTE_DD_OpenMenu(b,g_strRTEBackColorMnemonic,RTE_DD_GetColorSelectorHtml(g_strRTEBackColorMnemonic,a),a,g_rgrgstrRTEColorMatrix.length)}function RTE_DD_GetColorSelectorHtml(c,d){ULSopi:;var a=g_rgstrRTEMenuHtml[c];if(null==a){a=RTE_DD_GenerateMenuOpenHtml();for(var b=0;b<g_rgrgstrRTEColorMatrix.length;b++)a+=RTE_DD_GenerateMenuItemHtml(g_cRTEColorMatrixColumns,b,c,g_rgrgstrRTEColorMatrix[b][1],g_strRTEColorMatrixMenuItemPrefixHtml+g_rgrgstrRTEColorMatrix[b][1]+g_strRTEColorMatrixMenuItemSufffixHtml.replace("%TOOLTIP%",g_rgrgstrRTEColorMatrix[b][0]),"",null,null,d);a+=RTE_DD_GenerateMenuCloseHtml();g_rgstrRTEMenuHtml[c]=a}return a}var g_cRTEColorMatrixColumns=8,g_rgrgstrRTEColorMatrix=[[L_Black_TEXT,"#000000"],[L_Brown_TEXT,"#993300"],[L_OliveGreen_TEXT,"#333300"],[L_DarkGreen_TEXT,"#003300"],[L_DarkTeal_TEXT,"#003366"],[L_DarkBlue_TEXT,"#000080"],[L_Indigo_TEXT,"#333399"],[L_Gray80_TEXT,"#333333"],[L_DarkRed_TEXT,"#800000"],[L_Orange_TEXT,"#ff6600"],[L_DarkYellow_TEXT,"#808000"],[L_Green_TEXT,"#008000"],[L_Teal_TEXT,"#008080"],[L_Blue_TEXT,"#0000FF"],[L_BlueGray_TEXT,"#666699"],[L_Gray50_TEXT,"#808080"],[L_Red_TEXT,"#FF0000"],[L_LightOrange_TEXT,"#ff9900"],[L_Lime_TEXT,"#99cc00"],[L_SeaGreen_TEXT,"#339966"],[L_Aqua_TEXT,"#33cccc"],[L_LightBlue_TEXT,"#3366ff"],[L_Violet_TEXT,"#800080"],[L_Gray40_TEXT,"#969696"],[L_Pink_TEXT,"#FF00FF"],[L_Gold_TEXT,"#ffcc00"],[L_Yellow_TEXT,"#FFFF00"],[L_BrightGreen_TEXT,"#00FF00"],[L_Turquoise_TEXT,"#00FFFF"],[L_SkyBlue_TEXT,"#00ccff"],[L_Plum_TEXT,"#993366"],[L_Gray25_TEXT,"#C0C0C0"],[L_Rose_TEXT,"#ff99cc"],[L_Tan_TEXT,"#ffcc99"],[L_LightYellow_TEXT,"#ffff99"],[L_LightGreen_TEXT,"#ccffcc"],[L_LightTurquoise_TEXT,"#ccffff"],[L_PaleBlue_TEXT,"#99ccff"],[L_Lavender_TEXT,"#cc99ff"],[L_White_TEXT,"#FFFFFF"]];function RTE_CaseInsensitiveCompare(a,b){ULSopi:;strU1=a.toUpperCase();strU2=b.toUpperCase();if(strU1>strU2)return 1;else if(strU1<strU2)return -1;else return 0}function RTE_GetDialogHelper(){ULSopi:;return document.all(g_strRTEDialogHelperID)}function RTE_GetSortedFontNames(){ULSopi:;var a=[],b=RTE_GetDialogHelper();if(null!=b&&null!=b.fonts&&0<b.fonts.count){for(var c=1;c<b.fonts.count;c++)!RTE_StringIsNullOrEmpty(b.fonts(c))&&a.push(b.Fonts(c));return a.sort(RTE_CaseInsensitiveCompare)}else{RTE_InsertIntoSortedArrayIfValid(L_Font1_TEXT,a);RTE_InsertIntoSortedArrayIfValid(L_Font2_TEXT,a);RTE_InsertIntoSortedArrayIfValid(L_Font3_TEXT,a);RTE_InsertIntoSortedArrayIfValid(L_Font4_TEXT,a);RTE_InsertIntoSortedArrayIfValid(L_Font5_TEXT,a);RTE_InsertIntoSortedArrayIfValid(L_Font6_TEXT,a);RTE_InsertIntoSortedArrayIfValid(L_Font7_TEXT,a);RTE_InsertIntoSortedArrayIfValid(L_Font8_TEXT,a)}return a}function RTE_IsChildOfElement(c,e){ULSopi:;var a=e.children;if(null==a||0>=a.length)return false;for(var b=0,b=0;b<a.length;b++){var d=a[b];if(d==c)return true;if(RTE_IsChildOfElement(c,d))return true}return false}function RTE_FindParentElementWithTag(a,b){ULSopi:;if(null==a.parentElement)return null;return RTE_FindParentElementOrSelfWithTag(a.parentElement,b)}function RTE_FindParentElementOrSelfWithTag(a,b){ULSopi:;if(a.tagName==b)return a;else{if(null==a.parentElement)return null;return RTE_FindParentElementOrSelfWithTag(a.parentElement,b)}}var g_iRTELeft=0,g_iRTETop=1,g_iRTEWidth=2,g_iRTEHeight=3,g_iRTERight=4,g_iRTEBottom=5;function RTE_GetElementWindowCoordinates(a){ULSopi:;var c=0,d=0,f=a.offsetWidth,e=a.offsetHeight;do{if(a.currentStyle.position!="relative"){c+=a.offsetLeft;d+=a.offsetTop}if(null==a.offsetParent){var g=parseInt(a.currentStyle.marginLeft),h=parseInt(a.currentStyle.marginTop);if(!isNaN(g))c+=g;if(!isNaN(h))d+=h}a=a.offsetParent}while(a!=null);var b=[];b[g_iRTELeft]=c;b[g_iRTETop]=d;b[g_iRTEWidth]=f;b[g_iRTEHeight]=e;b[g_iRTERight]=c+f-1;b[g_iRTEBottom]=d+e-1;return b}function RTE_GetServerRelativeUnlocalizedImageUrl(a){ULSopi:;return "/_layouts/images/"+a}function RTE_GetServerRelativeImageUrl(a){ULSopi:;return "/_layouts/"+L_Language_Text+"/images/"+a}function RTE_GetServerRelativeStylesheetUrl(a,b){ULSopi:;return "/_layouts/"+b+"/styles/"+a}function RTE_GetServerRelativeScriptUrl(a,b){ULSopi:;return "/_layouts/"+b+"/"+a}function RTE_StripDoubleSpaces(a){ULSopi:;while(a.indexOf("  ")!=-1)a=a.replace(/  /g," ");return a}function RTE_AddClassToClassList(a,b){ULSopi:;if(0<=a.indexOf(b))return a;return RTE_StripDoubleSpaces(a+" "+b)}function RTE_ReplaceClassInClassList(a,d,c){ULSopi:;var b=a.indexOf(d),e="";if(0<b)return RTE_StripDoubleSpaces(a.substr(0,b)+" "+c+" "+a.substr(b+d.length));return RTE_AddClassToClassList(a,c)}function RTE_RemoveClassFromClassList(a,b){ULSopi:;return RTE_ReplaceClassInClassList(a,b,"")}function RTE_AddOrRemoveClassFromClassList(c,a,b){ULSopi:;if(c)return RTE_AddClassToClassList(a,b);return RTE_RemoveClassFromClassList(a,b)}function RTE_StringIsNullOrEmpty(a){ULSopi:;return a==null||a.length==0}function RTE_InsertIntoSortedArrayIfValid(c,b){ULSopi:;if(RTE_StringIsNullOrEmpty(c))return;for(var a=0,a=b.length;a>=0;a--)if(0==a||b[a-1]<c){b[a]=c;return}else b[a]=b[a-1]}function RTE_GenerateStylesToolBarButtonHtml(b,c){ULSopi:;var a="";a+=RTE_TB_GenerateOpenCellButtonHtml(b,g_strRTEStylesMnemonic);a+='<a tabindex="-1" href="#" onfocus="RTE_TB_OnFocus(\''+b+"', this);\" onblur=\"RTE_TB_OnBlur('"+b+"', this);\" onclick=\"RTE_DD_OpenStylesSelector('"+b+"' ,'"+c+'\', true); return false;" title="'+L_StylesToolTip_TEXT+'"';a+=' style="margin-left: 2px; margin-right: 2px;" unselectable="on">'+L_StylesLabel_TEXT+'&nbsp;<img alt="'+L_StylesToolTip_TEXT+'" src="'+RTE_GetServerRelativeUnlocalizedImageUrl("menudark.gif")+'" border="0" width="13" height="13" unselectable="on">';a+="</a>";a+=RTE_TB_GenerateCloseCellButtonHtml();return a}function RTE_DD_OpenStylesSelector(b,c){ULSopi:;var e=g_strRTEStylesMnemonic,a=RTE_DD_GetStylesSelectorUnformattedHtml(c),d=a[0],f=a[1];RTE_DD_OpenMenu(b,e,d,f)}function RTE_DD_GetStylesSelectorUnformattedHtml(d){ULSopi:;var a=g_rgstrRTEMenuHtml[g_strRTEStylesMnemonic];if(null!=a)return a;var f=g_strRTEFormatBlockMnemonic;a=RTE_DD_GenerateMenuOpenHtml(d);for(var c=RTE_GetBlockFormatNames(),e=c.length,b=0;b<e;b++)a+=RTE_DD_GenerateMenuItemHtml(1,b,f,c[b],c[b],"",null,null,d);a+=RTE_DD_GenerateMenuCloseHtml();g_rgstrRTEMenuHtml[g_strRTEStylesMnemonic]=[a,e];return g_rgstrRTEMenuHtml[g_strRTEStylesMnemonic]}function RTE_GetBlockFormatNames(){ULSopi:;var c=[],a=RTE_GetDialogHelper();if(null!=a&&null!=a.blockFormats&&0<a.blockFormats.count)for(var b=1;b<a.blockFormats.count;b++)RTE_InsertIntoSortedArrayIfValid(a.blockFormats(b),c);return c}function RTE_GenerateInsertRowToolBarButtonHtml(b,d){ULSopi:;var c=RTE_GetEditorInstanceVariables(b);c.functions[g_strRTEInsertRowAbove]=RTE_InsertRowAbove;c.functions[g_strRTEInsertRowBelow]=RTE_InsertRowBelow;var a="";a+=RTE_TB_GenerateOpenCellButtonHtml(b,g_strRTEInsertRowMnemonic,"RTE_DD_OpenInsertRowSelector('"+b+"' ,'"+d+"')");a+=L_InsertRowLabel_TEXT;a+="<div class='clip16x16'><img class='ms-rteirow' src=\""+RTE_GetServerRelativeImageUrl("rtecluster.png")+'" alt="'+L_InsertRowToolTip_TEXT+'" border="0" unselectable="on"></div>';a+='<img alt="'+L_InsertRowToolTip_TEXT+'" src="'+RTE_GetServerRelativeUnlocalizedImageUrl("menudark.gif")+'" border="0" width="13" height="13" unselectable="on">';a+=RTE_TB_GenerateCloseCellButtonHtml();return a}function RTE_DD_OpenInsertRowSelector(a,c){ULSopi:;var e=g_strRTEInsertRowMnemonic,b=RTE_DD_GetInsertRowSelectorUnformattedHtml(a,c),d=b[0],f=b[1];RTE_DD_OpenMenu(a,e,d,f)}function RTE_DD_GetInsertRowSelectorUnformattedHtml(f,e){ULSopi:;var d=g_strRTEInsertRowMnemonic,b=g_rgstrRTEMenuHtml[d];if(null!=b)return b;b=RTE_DD_GenerateMenuOpenHtml(e);var a=[];a.push(L_InsertRowAboveLabel_TEXT);a.push(L_InsertRowBelowLabel_TEXT);var g=a.length,c=0;b+=RTE_DD_GenerateMenuItemScriptHtml(1,c,"RTE_DD_StartAction('"+g_strRTEInsertRowAbove+"', '"+f+"')",a[c],a[c],null,null,e);c=1;b+=RTE_DD_GenerateMenuItemScriptHtml(1,c,"RTE_DD_StartAction('"+g_strRTEInsertRowBelow+"', '"+f+"')",a[c],a[c],null,null,e);b+=RTE_DD_GenerateMenuCloseHtml();g_rgstrRTEMenuHtml[d]=[b,g];return g_rgstrRTEMenuHtml[d]}function RTE_GenerateInsertColumnToolBarButtonHtml(b,d){ULSopi:;var c=RTE_GetEditorInstanceVariables(b);c.functions[g_strRTEInsertColumnLeft]=RTE_InsertColumnLeft;c.functions[g_strRTEInsertColumnRight]=RTE_InsertColumnRight;var a="";a+=RTE_TB_GenerateOpenCellButtonHtml(b,g_strRTEInsertColumnMnemonic,"RTE_DD_OpenInsertColumnSelector('"+b+"' ,'"+d+"')");a+=L_InsertColumnLabel_TEXT;a+="<div class='clip16x16'><img class='ms-rteicol' src=\""+RTE_GetServerRelativeImageUrl("rtecluster.png")+'" alt="'+L_InsertColumnToolTip_TEXT+'" border="0" unselectable="on"></div>';a+='<img alt="'+L_InsertColumnToolTip_TEXT+'" src="'+RTE_GetServerRelativeUnlocalizedImageUrl("menudark.gif")+'" border="0" width="13" height="13" unselectable="on">';a+=RTE_TB_GenerateCloseCellButtonHtml();return a}function RTE_DD_OpenInsertColumnSelector(a,c){ULSopi:;var e=g_strRTEInsertColumnMnemonic,b=RTE_DD_GetInsertColumnSelectorUnformattedHtml(a,c),d=b[0],f=b[1];RTE_DD_OpenMenu(a,e,d,f)}function RTE_DD_GetInsertColumnSelectorUnformattedHtml(f,e){ULSopi:;var d=g_strRTEInsertColumnMnemonic,b=g_rgstrRTEMenuHtml[d];if(null!=b)return b;b=RTE_DD_GenerateMenuOpenHtml(e);var a=[];a.push(L_InsertColumnLeftLabel_TEXT);a.push(L_InsertColumnRightLabel_TEXT);var g=a.length,c=0;b+=RTE_DD_GenerateMenuItemScriptHtml(1,c,"RTE_DD_StartAction('"+g_strRTEInsertColumnLeft+"', '"+f+"')",a[c],a[c],null,null,e);var c=1;b+=RTE_DD_GenerateMenuItemScriptHtml(1,c,"RTE_DD_StartAction('"+g_strRTEInsertColumnRight+"', '"+f+"')",a[c],a[c],null,null,e);b+=RTE_DD_GenerateMenuCloseHtml();g_rgstrRTEMenuHtml[d]=[b,g];return g_rgstrRTEMenuHtml[d]}function RTE_GenerateInsertCellToolBarButtonHtml(b,d){ULSopi:;var c=RTE_GetEditorInstanceVariables(b);c.functions[g_strRTEInsertCellLeft]=RTE_InsertCellLeft;c.functions[g_strRTEInsertCellRight]=RTE_InsertCellRight;var a="";a+=RTE_TB_GenerateOpenCellButtonHtml(b,g_strRTEInsertCellMnemonic,"RTE_DD_OpenInsertCellSelector('"+b+"' ,'"+d+"')");a+=L_InsertCellLabel_TEXT;a+="<div class='clip16x16'><img class='ms-rteicell' src=\""+RTE_GetServerRelativeImageUrl("rtecluster.png")+'" alt="'+L_InsertCellToolTip_TEXT+'" border="0" unselectable="on"></div>';a+='<img alt="'+L_InsertCellToolTip_TEXT+'" src="'+RTE_GetServerRelativeUnlocalizedImageUrl("menudark.gif")+'" border="0" width="13" height="13" unselectable="on">';a+=RTE_TB_GenerateCloseCellButtonHtml();return a}function RTE_DD_OpenInsertCellSelector(a,c){ULSopi:;var e=g_strRTEInsertCellMnemonic,b=RTE_DD_GetInsertCellSelectorUnformattedHtml(a,c),d=b[0],f=b[1];RTE_DD_OpenMenu(a,e,d,f)}function RTE_DD_GetInsertCellSelectorUnformattedHtml(f,e){ULSopi:;var d=g_strRTEInsertCellMnemonic,b=g_rgstrRTEMenuHtml[d];if(null!=b)return b;b=RTE_DD_GenerateMenuOpenHtml(e);var a=[];a.push(L_InsertCellLeftLabel_TEXT);a.push(L_InsertCellRightLabel_TEXT);var g=a.length,c=0;b+=RTE_DD_GenerateMenuItemScriptHtml(1,c,"RTE_DD_StartAction('"+g_strRTEInsertCellLeft+"', '"+f+"')",a[c],a[c],null,null,e);var c=1;b+=RTE_DD_GenerateMenuItemScriptHtml(1,c,"RTE_DD_StartAction('"+g_strRTEInsertCellRight+"', '"+f+"')",a[c],a[c],null,null,e);b+=RTE_DD_GenerateMenuCloseHtml();g_rgstrRTEMenuHtml[d]=[b,g];return g_rgstrRTEMenuHtml[d]}function RTE_GetCurrentSelectionChain(c){ULSopi:;var b=[],a=RTE_GetCurrentElement(c);while(a!=null){b[b.length]=a;if(a.id==c||a.tagName=="BODY")break;a=a.parentElement}return b}function RTE_IsElementInChain(a,b){ULSopi:;if(a==null||a.length==0)return false;var d=a.length;if(b==null||b.length==0)return false;for(var c=0;c<d;c++)if(a[c].tagName==b)return true;return false}var g_aTableCellTagNames;if(g_aTableCellTagNames==null)g_aTableCellTagNames=["TD","TH"];function RTE_IsAnyElementInChain(b,a){ULSopi:;if(b==null||b.length==0)return false;var g=b.length;if(a==null||a.length==0)return false;for(var e=a.length,c=0;c<g;c++)for(var f=b[c].tagName,d=0;d<e;d++)if(f==a[d])return true;return false}function RTE_GetCurrentSelection(b){ULSopi:;var a=RTE_GetEditorDocument(b);if(a!=null)return a.selection;return null}function RTE_GetCurrentSelectionType(b){ULSopi:;var a=RTE_GetCurrentSelection(b);if(a!=null)return a.type;return null}function RTE_GetCurrentSelectionRange(b){ULSopi:;var a=RTE_GetCurrentSelection(b);if(a!=null)return a.createRange();return null}function RTE_GetCurrentElement(d){ULSopi:;var c=RTE_GetCurrentSelection(d);if(c==null)return null;var a=c.createRange();if(a==null)return null;if(c.type.toLowerCase()=="control"){if(a.length!=1)return null;return a.item(0)}else{var b=a.parentElement();if(b!=null){var e=RTE_GetEditorDocument(d);if(e.body.contains(b))return b}}return null}function RTE_IsElementSelected(b,c){ULSopi:;var a=RTE_GetCurrentElement(b);if(a!=null)if(a.tagName==c)return true;return false}function RTE_GetNearestContainingParentElementOfType(a,c,b){ULSopi:;return RTE_GetNearestContainingParentElementOfTypes(a,c,new Array(b))}function RTE_GetNearestContainingParentElementOfTypes(f,c,d){ULSopi:;var e=d.length;if(c==null)return null;for(var b=0;b<e;b++)if(c.tagName==d[b])return c;var a=c.parentElement;while(a!=null){if(a.id==f)return null;for(var b=0;b<e;b++)if(a.tagName==d[b])return a;a=a.parentElement}return null}function RTE_GetNearestContainingElementOfType(a,b){ULSopi:;var c=RTE_GetCurrentElement(a);return RTE_GetNearestContainingParentElementOfType(a,c,b)}function RTE_GetNearestContainingElementOfTypes(a,b){ULSopi:;var c=RTE_GetCurrentElement(a);return RTE_GetNearestContainingParentElementOfTypes(a,c,b)}function RTE_GetContainedElements(e){ULSopi:;var a=[],h=RTE_GetCurrentSelection(e);if(h!=null&&h.type.toLowerCase()=="control"){for(var d=RTE_GetCurrentElement(e),c=d.all,b=0;b<c.length;b++)a[a.length]=c(b);a[a.length]=d}else{var f=RTE_GetCurrentSelectionRange(e);if(f!=null){var d=RTE_GetOutermostSelectionElement(e);if(d!=null){var c=d.all;if(f.text==d.outerText){for(var b=0;b<c.length;b++)a[a.length]=c(b);a[a.length]=d}else for(var g=f.duplicate(),b=0;b<c.length;b++){g.moveToElementText(c(b));if(f.inRange(g))a[a.length]=c(b)}}}}return a}function RTE_GetOutermostSelectionElement(c){ULSopi:;var a=null,e=RTE_GetCurrentSelection(c);if(e!=null&&e.type.toLowerCase()=="control"){a=RTE_GetCurrentElement(c);containedElements=a.all;containedElements[containedElements.length]=a}else{var d=RTE_GetCurrentSelectionRange(c);if(d!=null){var a=RTE_GetInnerMostContainingElement(d);if(a!=null){var b=null;while(a!=null&&a.tagName!="BODY"&&d.text==a.outerText){b=a;a=a.parentElement}if(b!=null)a=b}}}return a}function RTE_GetInnerMostContainingElement(d){ULSopi:;var a=RTE_GetContainingParent(d);if(a!=null){var g=d.duplicate(),f=false;while(!f){for(var e=false,c=a.children,b=0;b<c.length;b++){g.moveToElementText(c[b]);if(g.inRange(d)){e=true;a=c[b];break}}if(!e)f=true}}return a}function RTE_GetContainingParent(c){ULSopi:;var a=c.parentElement();if(a!=null){var b=c.duplicate();b.moveToElementText(a);while(a!=null&&a.tagName!="BODY"&&!b.inRange(c)){a=a.parentElement;b.moveToElementText(a)}}return a}function RTE_GetSelectedCells(f){ULSopi:;var a=[];if(RTE_IsElementSelected(f,"TR")){var c=RTE_GetCurrentElement(f);if(c!=null)for(var d=RTE_GetCurrentSelectionRange(f),b=d.duplicate(),e=0;e<c.cells.length;e++){b.moveToElementText(c.cells(e));if(d.inRange(b))a[a.length]=c.cells(e);else if(d.compareEndPoints("StartToStart",b)==1&&d.compareEndPoints("StartToEnd",b)==-1)a[a.length]=c.cells(e);else if(d.compareEndPoints("EndToStart",b)==1&&d.compareEndPoints("EndToEnd",b)==-1)a[a.length]=c.cells(e)}}return a}function RTE_InsertCellLeft(a){ULSopi:;var b=RTE_GetEditorInstanceVariables(a);if(b!=null&&b.overrides.InsertCellLeft!=null)return b.overrides.InsertCellLeft(a);if(RTE_GetDirectionOfSelection(a)=="rtl")RTE_InsertCellBase(a,"afterEnd");else RTE_InsertCellBase(a,"beforeBegin")}function RTE_InsertCellRight(a){ULSopi:;var b=RTE_GetEditorInstanceVariables(a);if(b!=null&&b.overrides.InsertCellRight!=null)return b.overrides.InsertCellRight(a);if(RTE_GetDirectionOfSelection(a)=="rtl")RTE_InsertCellBase(a,"beforeBegin");else RTE_InsertCellBase(a,"afterEnd")}function RTE_InsertCellBase(c,g){ULSopi:;var a=RTE_GetNearestContainingElementOfTypes(c,g_aTableCellTagNames);if(a==null)return;var d=RTE_GetEditorDocument(c);if(d==null)return;var b=d.createElement(a.tagName);if(b==null)return;b.mergeAttributes(a,true);b.runtimeStyle.cssText=a.runtimeStyle.cssText;insertAdjacentElement(a,g,b);var f=d.body.createTextRange();f.moveToElementText(b);f.select();var e=RTE_GetNearestContainingParentElementOfType(c,a,"TABLE");e&&RTE_ReapplyTableStyles(e)}function RTE_InsertRowAbove(b){ULSopi:;var a=RTE_GetEditorInstanceVariables(b);if(a!=null&&a.overrides.InsertRowAbove!=null)return a.overrides.InsertRowAbove(b);RTE_InsertRowBase(b,"beforeBegin")}function RTE_InsertRowBelow(b){ULSopi:;var a=RTE_GetEditorInstanceVariables(b);if(a!=null&&a.overrides.InsertRowBelow!=null)return a.overrides.InsertRowBelow(b);RTE_InsertRowBase(b,"afterEnd")}function RTE_InsertRowBase(c,j){ULSopi:;var b=RTE_GetNearestContainingElementOfType(c,"TR");if(b==null)return;var e=RTE_GetEditorDocument(c);if(e==null)return;var a=e.createElement("TR");if(a==null)return;a.mergeAttributes(b,true);a.runtimeStyle.cssText=b.runtimeStyle.cssText;insertAdjacentElement(b,j,a);for(var g=b.cells,d=0;d<g.length;d++){var i=a.insertCell();i.mergeAttributes(g(d),true);i.runtimeStyle.cssText=g(d).runtimeStyle.cssText}var f=e.body.createTextRange(),k=RTE_GetDirectionOfSelection(c);if(k=="ltr")f.moveToElementText(a.cells(0));else f.moveToElementText(a.cells(a.cells.length-1));f.select();var h=RTE_GetNearestContainingParentElementOfType(c,b,"TABLE");h&&RTE_ReapplyTableStyles(h)}function RTE_InsertColumnLeft(a){ULSopi:;var b=RTE_GetEditorInstanceVariables(a);if(b!=null&&b.overrides.InsertColumnLeft!=null)return b.overrides.InsertColumnLeft(a);if(RTE_GetDirectionOfSelection(a)=="rtl")return RTE_InsertColumnBase(a,"afterEnd");else return RTE_InsertColumnBase(a,"beforeBegin")}function RTE_InsertColumnRight(a){ULSopi:;var b=RTE_GetEditorInstanceVariables(a);if(b!=null&&b.overrides.InsertColumnRight!=null)return b.overrides.InsertColumnRight(a);if(RTE_GetDirectionOfSelection(a)=="rtl")return RTE_InsertColumnBase(a,"beforeBegin");else return RTE_InsertColumnBase(a,"afterEnd")}function RTE_InsertColumnBase(j,l){ULSopi:;var i=RTE_GetNearestContainingElementOfTypes(j,g_aTableCellTagNames);if(i==null)return;var n=RTE_GetNearestContainingParentElementOfType(j,i,"TABLE");if(n==null)return false;var h=RTE_GetEditorDocument(j);if(h==null)return;var g=0,k=0,q=RTE_GetNearestContainingParentElementOfType(j,i,"TR");if(q!=null)for(var m=q.cells,u=m.length,c=0;c<u;c++){k=m[c].colSpan;if(m[c]==i){currentCellPosition=c;break}g+=k}for(var p=n.rows,t=p.length,c=0;c<t;c++){var s=p[c];if(s!=null)for(var f=0,e=0,r=s.cells,v=r.length,o=0;o<v;o++){var b=r[o];e=b.colSpan;if(l=="beforeBegin"){if(f==g){var a=h.createElement(b.tagName);if(a!=null){a.mergeAttributes(b,true);a.runtimeStyle.cssText=b.runtimeStyle.cssText;a.colSpan=1;insertAdjacentElement(b,l,a);if(c==0){var d=h.body.createTextRange();if(d!=null){d.moveToElementText(a);d.select()}}}break}else if(f+e>g){b.colSpan++;break}}else if(l=="afterEnd")if(f+e==g+k){var a=h.createElement(b.tagName);if(a!=null){a.mergeAttributes(b,true);a.runtimeStyle.cssText=b.runtimeStyle.cssText;a.colSpan=1;insertAdjacentElement(b,l,a);if(c==0){var d=h.body.createTextRange();if(d!=null){d.moveToElementText(a);d.select()}}}break}else if(f+e>g+k){b.colSpan++;break}f+=e}}RTE_ReapplyTableStyles(n)}function RTE_DeleteColumn(i){ULSopi:;var h=RTE_GetNearestContainingElementOfTypes(i,g_aTableCellTagNames);if(h==null)return;var f=RTE_GetNearestContainingParentElementOfType(i,h,"TABLE");if(f==null)return;var G=h.cellIndex,c=0,e=0,v=RTE_GetNearestContainingParentElementOfType(i,h,"TR");if(v!=null)for(var m=v.cells,B=m.length,a=0;a<B;a++){e=m[a].colSpan;if(m[a]==h){currentCellPosition=a;break}c+=e}for(var t=f.rows,A=t.length,a=0;a<A;a++){var z=t[a];if(z!=null)for(var b=0,d=0,j=[],w=z.cells,C=w.length,q=0;q<=C;q++){if(b>=c+e){for(var l=0;l<j.length;l++){var p=j[l][0],x=j[l][1];if(x==p.colSpan)p.removeNode(true);else p.colSpan-=x}break}var y=w[q];d=y.colSpan;if(b+d<=c){b+=d;continue}else{var g=0;if(b>=c&&b+d<=c+e)g=d;else if(b<=c&&b+d>=c+e)g=e;else if(b<=c&&b+d<c+e)g=b+d-c;else if(b>c&&b+d>c+e)g=c+e-b;j[j.length]=[y,g]}b+=d}}for(var k=f.rows,F=k.length,a=F;a>0;a--)k(a-1).cells.length==0&&k(a-1).removeNode(true);if(f.rows.length==0)f.removeNode(true);else{for(var r=0,s=0,n=k[0].cells,a=0;a<n.length;a++){r=a;var u=n[a].colSpan;if(s+u>c)break;s+=u}var D=RTE_GetEditorDocument(i),o=D.body.createTextRange(),E=n[r];o.moveToElementText(E);o.select();o.collapse(true);RTE_ReapplyTableStyles(f)}RTE_StartResetToolBarTimer(i)}function RTE_DeleteRow(b){ULSopi:;var c=RTE_GetNearestContainingElementOfType(b,"TR");if(c!=null){var a=RTE_GetNearestContainingParentElementOfType(b,c,"TABLE"),d=c.rowIndex;c.removeNode(true);if(a)if(a.rows.length>0){if(d>=a.rows.length)d=a.rows.length-1;var f=a.rows[d].cells,g=RTE_GetEditorDocument(b),e=g.body.createTextRange();if(f.length>0){var h=f[0];e.moveToElementText(h);e.select();e.collapse(true)}RTE_ReapplyTableStyles(a)}else a.removeNode(true)}RTE_StartResetToolBarTimer(b)}function RTE_SplitCell(e){ULSopi:;var a=RTE_GetNearestContainingElementOfTypes(e,g_aTableCellTagNames);if(a==null)return;var l=-1,j=0,d=RTE_GetNearestContainingParentElementOfType(e,a,"TR");if(d!=null)for(var b=0;b<d.cells.length;b++){j+=d.cells[b].colSpan;if(d.cells[b]==a){l=b;break}}var c=document.createElement(a.tagName);if(c!=null){c.mergeAttributes(a,true);c.runtimeStyle.cssText=a.runtimeStyle.cssText;if(a.colSpan>1){c.colSpan=a.colSpan/2;a.colSpan-=c.colSpan}else{c.colSpan=1;for(var f=RTE_GetNearestContainingParentElementOfType(e,d,"TABLE"),b=0;b<f.rows.length;b++){var i=0,g=f.rows[b];if(g!=null&&g!=d)for(var h=0;h<g.cells.length;h++){var k=g.cells[h];i+=k.colSpan;if(i>=j){k.colSpan++;break}}}}insertAdjacentElement(a,"afterEnd",c);var f=RTE_GetNearestContainingElementOfType(e,"TABLE");f&&RTE_ReapplyTableStyles(f);RTE_StartResetToolBarTimer(e)}}function RTE_MergeCells(a){ULSopi:;if(RTE_IsElementSelected(a,"TR"))RTE_MergeSelected(a);else RTE_MergeWithDirection(a,"none");RTE_StartResetToolBarTimer(a)}function RTE_MergeSelected(c){ULSopi:;var d=RTE_GetCurrentElement(c);if(d.tagName!="TR")return;if(d!=null){var a=RTE_GetSelectedCells(c);if(a.length>1){for(var b=1;b<a.length;b++){if(a[b].innerText.length>0)a[0].innerHTML+=" ";a[0].innerHTML+=a[b].innerHTML;a[0].colSpan+=a[b].colSpan;d.removeChild(a[b])}var e=RTE_GetNearestContainingParentElementOfType(c,d,"TABLE");e&&RTE_ReapplyTableStyles(e);if(RTE_GetCurrentElement(c)!=a[0]){var g=RTE_GetEditorDocument(c),f=g.body.createTextRange();f.moveToElementText(a[0]);f.select()}}}}function RTE_MergeWithRight(a){ULSopi:;RTE_MergeWithDirection(a,"right")}function RTE_MergeWithLeft(a){ULSopi:;RTE_MergeWithDirection(a,"left")}function RTE_MergeWithAbove(a){ULSopi:;RTE_MergeWithDirection(a,"above")}function RTE_MergeWithBelow(a){ULSopi:;RTE_MergeWithDirection(a,"below")}function RTE_MergeWithDirection(b,f){ULSopi:;RTE_MergeSelected(b);var q=RTE_GetCurrentElement(b);if(q==null)return;var c=RTE_GetNearestContainingParentElementOfTypes(b,q,g_aTableCellTagNames);if(c==null)return;var a=RTE_GetNearestContainingParentElementOfType(b,c,"TR");if(a==null)return;var g=RTE_GetNearestContainingParentElementOfType(b,a,"TABLE");if(RTE_GetDirectionOfSelection(b)=="rtl")if(f=="right")f="left";else if(f=="left")f="right";switch(f){case "right":var d=c.cellIndex,i=a.cells;if(d+1>=i.length)return;if(i[d+1].rowSpan==i[d].rowSpan)RTE_MergeHorizontal(b,a,d);else alert(L_InvalidMerge_TEXT);break;case "left":var d=c.cellIndex-1,i=a.cells;if(d<0)return;if(i[d+1].rowSpan==i[d].rowSpan){RTE_MergeHorizontal(b,a,d);RTE_PutSelectionInCell(b,a.cells[d])}else alert(L_InvalidMerge_TEXT);break;case "above":if(g==null)return;if(a.rowIndex==0)return;var j=a,r=j.cells,h=c,k=RTE_GenerateSpanGridUpToTarget(g,c),o=k.targetCellColSpanIndex,p=k.columns[o].cells[a.rowIndex-1],e=p.cell;if(h.colSpan==e.colSpan&&p.colSpanIndex==o){RTE_MergeVertical(b,j,h,e);RTE_PutSelectionInCell(b,e)}else alert(L_InvalidMerge_TEXT);break;case "below":if(g==null)return;var e=c,k=RTE_GenerateSpanGridUpToTarget(g,e),n=k.targetCellColSpanIndex,l=k.columns[n].cells[a.rowIndex+e.rowSpan];if(l==null)return;var h=l.cell,j=RTE_GetNearestContainingParentElementOfType(b,h,"TR");if(j==null)return;if(h.colSpan==e.colSpan&&l.colSpanIndex==n)RTE_MergeVertical(b,j,h,e);else alert(L_InvalidMerge_TEXT);break;case "none":if(a.cells[c.cellIndex]!=null&&a.cells[c.cellIndex+1]!=null){var f=RTE_GetDirectionOfSelection(c);if(f!="rtl"&&c.cellIndex==a.cells.length-1||f=="rtl"&&c.cellIndex!=0){var m=c.cellIndex-1;if(m<0)return;RTE_MergeHorizontal(b,a,m);RTE_PutSelectionInCell(b,a.cells[m])}else{if(c.cellIndex+1>=a.length)return;RTE_MergeHorizontal(b,a,c.cellIndex)}}}g&&RTE_ReapplyTableStyles(g);RTE_StartResetToolBarTimer(b)}function RTE_MergeHorizontal(d,c,a){ULSopi:;var b=c.cells;if(b[a].innerText.length>0)b[a].innerHTML+=" ";b[a].innerHTML+=b[a+1].innerHTML;b[a].colSpan+=b[a+1].colSpan;c.removeChild(b[a+1])}function RTE_MergeVertical(d,c,b,a){ULSopi:;if(a.innerText.length>0)a.innerHTML+=" ";a.innerHTML+=b.innerHTML;a.rowSpan+=b.rowSpan;c.removeChild(b)}function RTE_PutSelectionInCell(a,c){ULSopi:;if(RTE_GetCurrentElement(a)!=c){var d=RTE_GetEditorDocument(a),b=d.body.createTextRange();b.moveToElementText(c);b.select()}}function RTE_GenerateSpanGridUpToTarget(h,g){ULSopi:;var b={};b.columns=[];b.targetCellColSpanIndex=-1;for(var c=0;c<h.rows.length;c++){var a=0;for(cellIndex=0;cellIndex<h.rows[c].cells.length;cellIndex++){while(b.columns[a]!=null&&b.columns[a].cells[c]!=null)a++;if(b.columns[a]==null){b.columns[a]={};b.columns[a].cells=[]}var e=h.rows[c].cells[cellIndex];if(e==g)b.targetCellColSpanIndex=a;b.columns[a].cells[c]={};b.columns[a].cells[c].cell=e;b.columns[a].cells[c].colSpanIndex=a;for(var d=0;d<e.colSpan;d++){if(b.columns[a+d]==null){b.columns[a+d]=[];b.columns[a+d].cells=[]}for(var f=0;f<e.rowSpan;f++){b.columns[a+d].cells[c+f]={};b.columns[a+d].cells[c+f].cell=e;b.columns[a+d].cells[c+f].colSpanIndex=a}}a+=e.colSpan;if(b.targetCellColSpanIndex!=-1&&a>b.targetCellColSpanIndex+g.colSpan&&c!=g.parentNode.rowIndex+g.rowSpan-1)break}}return b}function RTE_UrlFileName(c){ULSopi:;var a=c;a=a.split("#")[0];a=a.split("?")[0];var b=a.lastIndexOf("/");return a.substring(b+1)}var g_reservedTablePrefix=".ms-rteTable";function RTE_GetReservedTableStyleRules(a){ULSopi:;return RTE_GetReservedStyleRules(a,g_reservedTablePrefix,"-")}function RTE_GetReservedStyleRules(e,f,g){ULSopi:;for(var a=[],d=[],c=0;c<e.styleSheets.length;c++){var b=e.styleSheets[c];if(RTE_UrlFileName(b.href)!=g)RTE_GetReservedStyleRulesFromStyleSheet(b,f,a);else RTE_GetReservedStyleRulesFromStyleSheet(b,f,d)}if(a.length>0)return a;else return d}function RTE_GetReservedStyleRulesFromStyleSheet(d,e,c){ULSopi:;try{for(var b=d.rules,a=0;a<b.length;a++)b[a].selectorText.indexOf(e)>=0&&c.push(b[a])}catch(f){}}var msTableStylePrefix="ms-rteTable",msTableClass="-",msTableClassHeadingRow="HeaderRow-",msTableClassHeadingFirstCol="HeaderFirstCol-",msTableClassHeadingOddCol="HeaderOddCol-",msTableClassHeadingEvenCol="HeaderEvenCol-",msTableClassHeadingLastCol="HeaderLastCol-",msTableClassOddRow="OddRow-",msTableClassEvenRow="EvenRow-",msTableClassFirstCol="FirstCol-",msTableClassOddCol="OddCol-",msTableClassEvenCol="EvenCol-",msTableClassLastCol="LastCol-",msTableClassFootingRow="FooterRow-",msTableClassFootingFirstCol="FooterFirstCol-",msTableClassFootingOddCol="FooterOddCol-",msTableClassFootingEvenCol="FooterEvenCol-",msTableClassFootingLastCol="FooterLastCol-";function RTE_ApplyTableStyle(c,o,q,s,k,l,b){ULSopi:;if(b==null)b=msTableStylePrefix;if(o!=null){RTE_AppendClassName(o,b+msTableClass+c);var i=o.rows,m=0,n=i.length-1,j=false,r=false;if(i.length==1){if(q){j=true;m++}rowEnd=0}else{if(q){j=true;m++}if(s){r=true;n--}}if(j){var f=i(0);RTE_AppendClassName(f,b+msTableClassHeadingRow+c);for(var h=0,a=0;a<f.cells.length;a++)if(a==0&&k){RTE_AppendClassName(f.cells(a),b+msTableClassHeadingFirstCol+c);h=1}else if(a==f.cells.length-1&&l)RTE_AppendClassName(f.cells(a),b+msTableClassHeadingLastCol+c);else if(a%2==h)RTE_AppendClassName(f.cells(a),b+msTableClassHeadingOddCol+c);else RTE_AppendClassName(f.cells(a),b+msTableClassHeadingEvenCol+c)}if(r){var g=i(n+1);RTE_AppendClassName(g,b+msTableClassFootingRow+c);for(var h=0,a=0;a<g.cells.length;a++)if(a==0&&k){RTE_AppendClassName(g.cells(a),b+msTableClassFootingFirstCol+c);h=1}else if(a==g.cells.length-1&&l)RTE_AppendClassName(g.cells(a),b+msTableClassFootingLastCol+c);else if(a%2==h)RTE_AppendClassName(g.cells(a),b+msTableClassFootingOddCol+c);else RTE_AppendClassName(g.cells(a),b+msTableClassFootingEvenCol+c)}var p=0;if(j)p=1;for(var a=m;a<=n;a++){var e=i(a);if(a%2==p)RTE_AppendClassName(e,b+msTableClassOddRow+c);else RTE_AppendClassName(e,b+msTableClassEvenRow+c);for(var h=0,d=0;d<e.cells.length;d++)if(d==0&&k){RTE_AppendClassName(e.cells(d),b+msTableClassFirstCol+c);h=1}else if(d==e.cells.length-1&&l)RTE_AppendClassName(e.cells(d),b+msTableClassLastCol+c);else if(d%2==h)RTE_AppendClassName(e.cells(d),b+msTableClassOddCol+c);else RTE_AppendClassName(e.cells(d),b+msTableClassEvenCol+c)}}}function RTE_ClearReservedTableStyles(b,a){ULSopi:;if(a==null)a=msTableStylePrefix;if(b!=null&&b.tagName=="TABLE"){RTE_ClearReservedTableStylesFromElement(b,a);for(var d=0;d<b.rows.length;d++){var c=b.rows[d];RTE_ClearReservedTableStylesFromElement(c,a);for(var e=0;e<c.cells.length;e++){var f=c.cells[e];RTE_ClearReservedTableStylesFromElement(f,a)}}}}function RTE_ClearReservedTableStylesFromElement(b,d){ULSopi:;if(d==null)d=msTableStylePrefix;if(b.className!=null&&b.className.length>0){for(var e=b.className.split(" "),c=[],a=0;a<e.length;a++){var f=e[a];if(f.indexOf(d)!=0)c[c.length]=f}b.className="";for(var a=0;a<c.length;a++)RTE_AppendClassName(b,c[a])}}function RTE_AppendClassName(b,c){ULSopi:;if(b!=null){var a=b.className;if(a!=null&&a.length>0)a+=" ";a+=c;b.className=a}}function RTE_GetReservedTableStyleNumbers(c,a){ULSopi:;if(a==null)a=msTableStylePrefix;var b=[];if(c!=null&&c.tagName=="TABLE")for(var g=c.className.split(" "),d=0;d<g.length;d++){var f=g[d],e=f.indexOf(a+msTableClass);if(e>=0){var h=f.substr(e+a.length+msTableClass.length);b[b.length]=h}}return b}function RTE_ReapplyTableStyles(b,c){ULSopi:;if(c==null){var h=b.className.indexOf("Table");if(h>=0)c=b.className.substring(0,h+5);else c=msTableStylePrefix}if(b!=null&&b.rows.length>0){var g=RTE_GetReservedTableStyleNumbers(b,c);if(g.length>0){for(var f=[],d=0;d<g.length;d++){var a=[],e=g[d];a["tableStyleNumber"]=e;a["formatHeadingRow"]=RTE_ShouldFormatHeadingRow(e,b,c);a["formatLastRow"]=RTE_ShouldFormatLastRow(e,b,c);a["formatFirstColumn"]=RTE_ShouldFormatFirstColumn(e,b,c);a["formatLastColumn"]=RTE_ShouldFormatLastColumn(e,b,c);f[f.length]=a}RTE_ClearReservedTableStyles(b,c);for(var d=0;d<f.length;d++){var a=f[d];RTE_ApplyTableStyle(a["tableStyleNumber"],b,a["formatHeadingRow"],a["formatLastRow"],a["formatFirstColumn"],a["formatLastColumn"],c)}}}}function RTE_ShouldFormatHeadingRow(g,c,b){ULSopi:;if(b==null)b=msTableStylePrefix;var e=false;if(g!=null&&c!=null&&c.rows.length>0){var a=c.rows.item(0);if(a.className!=null&&a.className.length>0)for(var f=a.className.split(" "),d=0;d<f.length;d++){var i=f[d],h=b+msTableClassHeadingRow+g;if(i==h){e=true;break}}}return e}function RTE_ShouldFormatLastRow(c,a,b){ULSopi:;if(b==null)b=msTableStylePrefix;var f=false;if(c!=null&&a!=null&&a.rows.length>0)if(!(a.rows.length==1&&RTE_ShouldFormatHeadingRow(c,a,b))){var d=a.rows.item(a.rows.length-1);if(d.className!=null&&d.className.length>0)for(var g=d.className.split(" "),e=0;e<g.length;e++){var i=g[e],h=b+msTableClassFootingRow+c;if(i==h){f=true;break}}}return f}function RTE_ShouldFormatFirstColumn(d,b,a){ULSopi:;if(a==null)a=msTableStylePrefix;var g=false;if(d!=null&&b!=null&&b.rows.length>0){var c=a+msTableClassFirstCol,i=b.rows.item(0);if(RTE_ShouldFormatHeadingRow(d,b,a))c=a+msTableClassHeadingFirstCol;else if(b.rows.length==1&&RTE_ShouldFormatLastRow(d,b,a))c=a+msTableClassFootingFirstCol;if(i.cells.length>0){c+=d;var e=i.cells.item(0);if(e.className!=null&&e.className.length>0)for(var h=e.className.split(" "),f=0;f<h.length;f++){var j=h[f];if(j==c){g=true;break}}}}return g}function RTE_ShouldFormatLastColumn(c,b,a){ULSopi:;if(a==null)a=msTableStylePrefix;var h=false;if(c!=null&&b!=null&&b.rows.length>0){var d=a+msTableClassLastCol,e=b.rows.item(0);if(RTE_ShouldFormatHeadingRow(c,b,a))d=a+msTableClassHeadingLastCol;else if(b.rows.length==1&&RTE_ShouldFormatLastRow(c,b,a))d=a+msTableClassFootingLastCol;if(e.cells.length>0){d+=c;if(!(e.cells.length==1&&RTE_ShouldFormatFirstColumn(c,b,a))){var f=e.cells.item(e.cells.length-1);if(f.className!=null&&f.className.length>0)for(var i=f.className.split(" "),g=0;g<i.length;g++)if(i[g]==d){h=true;break}}}}return h}function C_RTE_TB_ExecCmdButton(d,e,i,h,c,g,b,f){ULSopi:;function a(b){ULSopi:;var a;if(this.fImageLoc)a=RTE_GetServerRelativeImageUrl(this.strImage);else a=RTE_GetServerRelativeUnlocalizedImageUrl(this.strImage);return RTE_TB_GenerateExecCommandToolBarButtonHtml(b,this.strMnemonic,this.fUi,a,"",this.strToolTip,this.fOnlyIf,this.strValueExpr)}this.strMnemonic=d;this.strToolTip=e;this.fUi=i;this.strImage=h;this.fImageLoc=c;this.fOnlyIf=g;this.enabler=f;this.enabler.button=this;this.strValueExpr=b;this.Generate=a}function C_RTE_TB_ExecCmdButtonClustered(c,d,h,g,f,b,e){ULSopi:;function a(a){ULSopi:;var b=RTE_GetServerRelativeImageUrl("rtecluster.png");return RTE_TB_GenerateExecCommandToolBarButtonHtmlCluster(a,this.strMnemonic,this.fUi,b,"ms-"+this.strImage,this.strToolTip,this.fOnlyIf,this.strValueExpr)}this.strMnemonic=c;this.strToolTip=d;this.fUi=h;this.strImage=g;this.fOnlyIf=f;this.enabler=e;this.enabler.button=this;this.strValueExpr=b;this.Generate=a}function C_RTE_TB_JScriptButton(b,c,f,g,e,d){ULSopi:;function a(a){ULSopi:;return RTE_TB_GenerateSimpleToolBarButtonHtml(a,this.strMnemonic,this.strFunction,this.strArgument,RTE_GetServerRelativeImageUrl(this.strImage),"",this.strToolTip)}this.strMnemonic=b;this.strToolTip=c;this.strFunction=f;this.strArgument=g;this.strImage=e;this.enabler=d;this.enabler.button=this;this.Generate=a}function C_RTE_TB_JScriptButtonClustered(b,c,f,g,e,d){ULSopi:;function a(a){ULSopi:;return RTE_TB_GenerateSimpleToolBarButtonHtmlCluster(a,this.strMnemonic,this.strFunction,this.strArgument,RTE_GetServerRelativeImageUrl("rtecluster.png"),"ms-"+this.strImage,this.strToolTip)}this.strMnemonic=b;this.strToolTip=c;this.strFunction=f;this.strArgument=g;this.strImage=e;this.enabler=d;this.enabler.button=this;this.Generate=a}function C_RTE_TB_SpecialButton(c,e,a,d){ULSopi:;function b(b,c){ULSopi:;return this.specialFunction(b,c,a)}this.specialFunction=e;this.strMnemonic=c;this.fRestricted=a;this.enabler=d;this.enabler.button=this;this.Generate=b}function C_RTE_TB_Separator(){ULSopi:;function a(){ULSopi:;return RTE_TB_GenerateToolBarSeparatorHtml()}this.Generate=a}function C_RTE_TB_LineBreak(){ULSopi:;function a(){ULSopi:;return RTE_TB_GenerateToolBarLineBreakHtml()}this.Generate=a}function C_RTE_TB_SetEnabledAlways(){ULSopi:;function a(a){ULSopi:;RTE_TB_ClearButtonDisabled(RTE_TB_GetToolBarButton(a,this.button.strMnemonic))}this.SetEnabled=a}function C_RTE_TB_SetEnabledWhenRemoveFormatEnabled(){ULSopi:;function a(c,a){ULSopi:;var b=RTE_TB_GetToolBarButton(c,this.button.strMnemonic);if(a.queryCommandEnabled("Delete")&&a.queryCommandEnabled(g_strRTERemoveFormatMnemonic))RTE_TB_ClearButtonDisabled(b);else RTE_TB_SetButtonDisabled(b)}this.SetEnabled=a}function C_RTE_TB_SetEnabledFromCommandEnabled(){ULSopi:;function a(a,b){ULSopi:;RTE_TB_SetEnabledFromCommandEnabled(a,b,this.button.strMnemonic,this.button.strMnemonic)}this.SetEnabled=a}function C_RTE_TB_SetEnabledFromCommandValue(){ULSopi:;function a(a,b){ULSopi:;RTE_TB_ClearButtonDisabled(RTE_TB_GetToolBarButton(a,this.button.strMnemonic));RTE_TB_SetCheckFromCommandValue(a,b,this.button.strMnemonic)}this.SetEnabled=a}function C_RTE_TB_SetEnabledFromCommandValueIfNotInTable(){ULSopi:;function a(a,c,b){ULSopi:;if(b[0]!="TABLE"&&b[0]!="TR"){RTE_TB_ClearButtonDisabled(RTE_TB_GetToolBarButton(a,this.button.strMnemonic));RTE_TB_SetCheckFromCommandValue(a,c,this.button.strMnemonic)}}this.SetEnabled=a}function C_RTE_TB_SetEnabledIfInElement(b){ULSopi:;function a(a,c,b){ULSopi:;RTE_TB_SetEnabledIfInElement(a,b,this.button.strMnemonic,this.strElement)}this.strElement=b;this.SetEnabled=a}function RTE_GetToolBarDefinition(b,c){ULSopi:;var a=RTE_GetEditorInstanceVariables(b);if(a!=null&&a.overrides.GetToolBarDefinition!=null)return a.overrides.GetToolBarDefinition(b,c);else if(a!=null)return RTE_GetCompatibleToolBarDefinition(c,a.aSettings.fRestrictedMode,a.aSettings.fAllowHyperlink,a.aSettings.fIsVisible);else return null}var g_rgCompatibleToolBarDefinition;function RTE_GetCompatibleToolBarDefinition(b,a,c){ULSopi:;if(g_rgCompatibleToolBarDefinition==undefined){toolBar=[];if(!a){toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTECutMnemonic,L_CutToolTip_TEXT,false,"rtecut",true,"null",new C_RTE_TB_SetEnabledFromCommandEnabled));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTECopyMnemonic,L_CopyToolTip_TEXT,false,"rtecopy",true,"null",new C_RTE_TB_SetEnabledFromCommandEnabled));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEPasteMnemonic,L_PasteToolTip_TEXT,false,"rtepaste",false,"null",new C_RTE_TB_SetEnabledFromCommandEnabled));toolBar.push(new C_RTE_TB_Separator)}toolBar.push(new C_RTE_TB_SpecialButton(g_strRTEFontNameMnemonic,RTE_GenerateFontNameToolBarButtonHtml,a,new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_SpecialButton(g_strRTEFontSizeMnemonic,RTE_GenerateFontSizeToolBarButtonHtml,a,new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_Separator);toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEBoldMnemonic,L_BoldToolTip_TEXT,false,"rtebold",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEItalicMnemonic,L_ItalicToolTip_TEXT,false,"rteital",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEUnderlineMnemonic,L_UnderlineToolTip_TEXT,false,"rteundl",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_Separator);if(b=="1025"||b=="1037"){toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyRightMnemonic,L_JustifyRightToolTip_TEXT,false,"rtertal",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyCenterMnemonic,L_JustifyCenterToolTip_TEXT,false,"rtectral",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyLeftMnemonic,L_JustifyLeftToolTip_TEXT,false,"rteltal",false,"null",new C_RTE_TB_SetEnabledFromCommandValue))}else{toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyLeftMnemonic,L_JustifyLeftToolTip_TEXT,false,"rteltal",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyCenterMnemonic,L_JustifyCenterToolTip_TEXT,false,"rtectral",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyRightMnemonic,L_JustifyRightToolTip_TEXT,false,"rtertal",false,"null",new C_RTE_TB_SetEnabledFromCommandValue))}toolBar.push(new C_RTE_TB_Separator);toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEOrderedListMnemonic,L_OrderedListToolTip_TEXT,false,"rtenlst",false,"null",new C_RTE_TB_SetEnabledFromCommandValueIfNotInTable));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEUnorderedListMnemonic,L_UnorderedListToolTip_TEXT,false,"rteblst",false,"null",new C_RTE_TB_SetEnabledFromCommandValueIfNotInTable));!a&&toolBar.push(new C_RTE_TB_Separator);toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEOutdentMnemonic,L_OutdentToolTip_TEXT,false,"rteuidt",false,"null",new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEIndentMnemonic,L_IndentToolTip_TEXT,false,"rteidt",false,"null",new C_RTE_TB_SetEnabledAlways));!a&&toolBar.push(new C_RTE_TB_Separator);(!a||c)&&toolBar.push(new C_RTE_TB_JScriptButtonClustered(g_strRTECreateLinkMnemonic,L_CreateLinkToolTip_TEXT,"RTE_CreateLink",null,"rtelnk",new C_RTE_TB_SetEnabledWhenRemoveFormatEnabled));!a&&toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEInsertImageMnemonic,L_InsertImageToolTip_TEXT,true,"rteimg",false,"null",new C_RTE_TB_SetEnabledWhenRemoveFormatEnabled));toolBar.push(new C_RTE_TB_Separator);toolBar.push(new C_RTE_TB_SpecialButton(g_strRTEForeColorMnemonic,RTE_GenerateForeColorToolBarButtonHtml,a,new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_SpecialButton(g_strRTEBackColorMnemonic,RTE_GenerateBackColorToolBarButtonHtml,a,new C_RTE_TB_SetEnabledAlways));if(RTE_ShouldShowDirection()){!a&&toolBar.push(new C_RTE_TB_Separator);if(b=="1025"||b=="1037"){toolBar.push(new C_RTE_TB_JScriptButtonClustered("rtl",L_RTLToolTip_TEXT,"RTE_SetDirectionOfSelection","'rtl'","rtertl",new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_JScriptButtonClustered("ltr",L_LTRToolTip_TEXT,"RTE_SetDirectionOfSelection","'ltr'","rteltr",new C_RTE_TB_SetEnabledAlways))}else{toolBar.push(new C_RTE_TB_JScriptButtonClustered("ltr",L_LTRToolTip_TEXT,"RTE_SetDirectionOfSelection","'ltr'","rteltr",new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_JScriptButtonClustered("rtl",L_RTLToolTip_TEXT,"RTE_SetDirectionOfSelection","'rtl'","rtertl",new C_RTE_TB_SetEnabledAlways))}}g_rgCompatibleToolBarDefinition=toolBar}return g_rgCompatibleToolBarDefinition}function RTE_ModalDialog(a,b,f,e,c){ULSopi:;var d=RTE_GetEditorInstanceVariables(a);return showModalDialog(d.aSettings.urlWebRoot+"/_layouts/RteDialog.aspx?Dialog="+b+"&LCID="+RTE_GetWebLocale(a),c,"resizable: yes; status: no; help: no; center: yes; dialogWidth:"+f+"px; dialogHeight:"+e+"px;")}function RTE_FullHtmlToolBarDefinitionFactory(b){ULSopi:;var a;return function(c){ULSopi:;if(a==undefined){toolBar=[];toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTECutMnemonic,L_CutToolTip_TEXT,false,"rtecut",true,"null",new C_RTE_TB_SetEnabledFromCommandEnabled));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTECopyMnemonic,L_CopyToolTip_TEXT,false,"rtecopy",true,"null",new C_RTE_TB_SetEnabledFromCommandEnabled));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEPasteMnemonic,L_PasteToolTip_TEXT,false,"rtepaste",false,"null",new C_RTE_TB_SetEnabledFromCommandEnabled));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTERemoveFormatMnemonic,L_RemoveFormatToolTip_TEXT,false,"rteclear",false,"null",new C_RTE_TB_SetEnabledFromCommandEnabled));toolBar.push(new C_RTE_TB_Separator);if(c=="1025"||c=="1037"){toolBar.push(new C_RTE_TB_ExecCmdButton(g_strRTERedoMnemonic,L_RedoToolTip_TEXT,false,"redo.gif",false,false,"null",new C_RTE_TB_SetEnabledFromCommandEnabled));toolBar.push(new C_RTE_TB_ExecCmdButton(g_strRTEUndoMnemonic,L_UndoToolTip_TEXT,false,"undo.gif",false,false,"null",new C_RTE_TB_SetEnabledFromCommandEnabled))}else{toolBar.push(new C_RTE_TB_ExecCmdButton(g_strRTEUndoMnemonic,L_UndoToolTip_TEXT,false,"undo.gif",false,false,"null",new C_RTE_TB_SetEnabledFromCommandEnabled));toolBar.push(new C_RTE_TB_ExecCmdButton(g_strRTERedoMnemonic,L_RedoToolTip_TEXT,false,"redo.gif",false,false,"null",new C_RTE_TB_SetEnabledFromCommandEnabled))}toolBar.push(new C_RTE_TB_Separator);toolBar.push(new C_RTE_TB_JScriptButtonClustered(g_strRTEInsertTableMnemonic,L_InsertTableToolTip_TEXT,"RTE_InsertTable",null,"rteitbl",new C_RTE_TB_SetEnabledWhenRemoveFormatEnabled));toolBar.push(new C_RTE_TB_SpecialButton(g_strRTEInsertTableElementMnemonic,RTE_GenerateInsertTableElementToolBarButtonHtml,true,new C_RTE_TB_SetEnabledIfInElement("TR")));toolBar.push(new C_RTE_TB_SpecialButton(g_strRTEDeleteTableElementMnemonic,RTE_GenerateDeleteTableElementToolBarButtonHtml,true,new C_RTE_TB_SetEnabledIfInElement("TR")));toolBar.push(new C_RTE_TB_JScriptButtonClustered(g_strRTESplitCellMnemonic,L_SplitCellToolTip_TEXT,"RTE_SplitCell",null,"rtescell",new C_RTE_TB_SetEnabledIfInElement("TR")));toolBar.push(new C_RTE_TB_JScriptButtonClustered(g_strRTEMergeCellMnemonic,L_MergeCellToolTip_TEXT,"RTE_MergeCells",null,"rtemcell",new C_RTE_TB_SetEnabledIfInElement("TR")));toolBar.push(new C_RTE_TB_Separator);toolBar.push(new C_RTE_TB_JScriptButtonClustered(g_strRTECreateLinkMnemonic,L_CreateLinkToolTip_TEXT,"RTE_CreateLink",null,"rtelnk",new C_RTE_TB_SetEnabledWhenRemoveFormatEnabled));toolBar.push(new C_RTE_TB_JScriptButtonClustered(g_strRTEInsertImageMnemonic,L_InsertImageToolTip_TEXT,"RTE_InsertImage",null,"rteimg",new C_RTE_TB_SetEnabledWhenRemoveFormatEnabled));b&&toolBar.push(new C_RTE_TB_JScriptButtonClustered(g_strRTEHtmlSourceMnemonic,L_HtmlSourceToolTip_TEXT,"RTE_HtmlSource",null,"rtesrced",new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_LineBreak);toolBar.push(new C_RTE_TB_SpecialButton(g_strRTEFontNameMnemonic,RTE_GenerateFontNameToolBarButtonHtml,true,new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_SpecialButton(g_strRTEFontSizeMnemonic,RTE_GenerateFontSizeToolBarButtonHtml,true,new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_Separator);toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEBoldMnemonic,L_BoldToolTip_TEXT,false,"rtebold",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEItalicMnemonic,L_ItalicToolTip_TEXT,false,"rteital",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEUnderlineMnemonic,L_UnderlineToolTip_TEXT,false,"rteundl",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_Separator);if(c=="1025"||c=="1037"){toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyRightMnemonic,L_JustifyRightToolTip_TEXT,false,"rtertal",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyCenterMnemonic,L_JustifyCenterToolTip_TEXT,false,"rtectral",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyLeftMnemonic,L_JustifyLeftToolTip_TEXT,false,"rteltal",false,"null",new C_RTE_TB_SetEnabledFromCommandValue))}else{toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyLeftMnemonic,L_JustifyLeftToolTip_TEXT,false,"rteltal",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyCenterMnemonic,L_JustifyCenterToolTip_TEXT,false,"rtectral",false,"null",new C_RTE_TB_SetEnabledFromCommandValue));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEJustifyRightMnemonic,L_JustifyRightToolTip_TEXT,false,"rtertal",false,"null",new C_RTE_TB_SetEnabledFromCommandValue))}toolBar.push(new C_RTE_TB_Separator);toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEOrderedListMnemonic,L_OrderedListToolTip_TEXT,false,"rtenlst",false,"null",new C_RTE_TB_SetEnabledFromCommandValueIfNotInTable));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEUnorderedListMnemonic,L_UnorderedListToolTip_TEXT,false,"rteblst",false,"null",new C_RTE_TB_SetEnabledFromCommandValueIfNotInTable));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEOutdentMnemonic,L_OutdentToolTip_TEXT,false,"rteuidt",false,"null",new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_ExecCmdButtonClustered(g_strRTEIndentMnemonic,L_IndentToolTip_TEXT,false,"rteidt",false,"null",new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_Separator);toolBar.push(new C_RTE_TB_SpecialButton(g_strRTEForeColorMnemonic,RTE_GenerateForeColorToolBarButtonHtml,true,new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_SpecialButton(g_strRTEBackColorMnemonic,RTE_GenerateBackColorToolBarButtonHtml,true,new C_RTE_TB_SetEnabledAlways));if(RTE_ShouldShowDirection())if(c=="1025"||c=="1037"){toolBar.push(new C_RTE_TB_JScriptButtonClustered("rtl",L_RTLToolTip_TEXT,"RTE_SetDirectionOfSelection","'rtl'","rtertl",new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_JScriptButtonClustered("ltr",L_LTRToolTip_TEXT,"RTE_SetDirectionOfSelection","'ltr'","rteltr",new C_RTE_TB_SetEnabledAlways))}else{toolBar.push(new C_RTE_TB_JScriptButtonClustered("ltr",L_LTRToolTip_TEXT,"RTE_SetDirectionOfSelection","'ltr'","rteltr",new C_RTE_TB_SetEnabledAlways));toolBar.push(new C_RTE_TB_JScriptButtonClustered("rtl",L_RTLToolTip_TEXT,"RTE_SetDirectionOfSelection","'rtl'","rtertl",new C_RTE_TB_SetEnabledAlways))}a=toolBar}return a}}var FileuploadString="fileupload",FileUploadIndex=0,FileUploadIndexStart,attachmentsOnClientToBeRemoved,attachmentsOnClientToBeRemovedIndex,attachmentsOnServerToBeRemoved,attachmentsOnServerToBeRemovedIndex;function UploadAttachment(){ULSopi:;ShowPartAttachment()}function ShowPart1(){ULSopi:;document.getElementById("partAttachment").style.display="none";document.getElementById("part1").style.display="block";var a=document.getElementById("s4-ribbonrow");if(a!=null)a.style.display="block";TypeofFullName("window.frameElement.autoSize")=="function"&&window.frameElement.autoSize();typeof frm!="undefined"&&frm.SetFirstFocus(true)}function ShowPartAttachment(){ULSopi:;if(document.getElementById("part1")==null||typeof document.getElementById("part1")=="undefined"){var L_FormMissingPart1_Text="This form was customized and attachments will not work correctly because the HTML 'span' element does not contain an 'id' attribute named 'part1.'";alert(L_FormMissingPart1_Text);return}document.getElementById("part1").style.display="none";var a=document.getElementById("s4-ribbonrow");if(a!=null)a.style.display="none";document.getElementById("partAttachment").style.display="block";TypeofFullName("window.frameElement.autoSize")=="function"&&window.frameElement.autoSize();GetAttachElement(FileuploadString+FileUploadIndex).focus()}function CancelAttach(){ULSopi:;fileID=FileuploadString+FileUploadIndex;fileInput=GetAttachElement(fileID);filename=fileInput.value;if(filename)fileInput.outerHTML="<input type=file class='ms-longfileinput' name="+fileID+">";ShowPart1()}function OkAttach(){ULSopi:;fileID=FileuploadString+FileUploadIndex;fileInput=GetAttachElement(fileID);filename=TrimWhiteSpaces(fileInput.value);if(!filename){var L_FileNameRequired_TXT="You must specify a non-blank value for File Name.";alert(L_FileNameRequired_TXT);fileInput.focus()}else{var L_FileUploadToolTip_text="Name";oRow=document.getElementById("idAttachmentsTable").insertRow(-1);RowID="attachRow"+FileUploadIndex;oRow.id=RowID;oCellFileName=oRow.insertCell(-1);oCellFileName.className="ms-vb";oCellFileName.innerHTML='<span dir="ltr">'+filename+"</span>&nbsp;&nbsp;&nbsp;&nbsp;";oCellControl=oRow.insertCell(-1);oCellControl.className="ms-propertysheet";oCellControl.innerHTML="<IMG SRC='"+document.getElementsByName("RectGifUrl").item(0).value+"'>&nbsp;<a href='javascript:RemoveLocal(\""+RowID+'","'+fileID+"\")'>"+L_Delete_Text+"</a>";fileInput.style.display="none";++FileUploadIndex;oAttachments=document.getElementById("attachmentsOnClient");var a=document.createElement("input");a.tabIndex="1";a.type="File";a.className="ms-longfileinput";a.title=L_FileUploadToolTip_text;a.name=FileuploadString+FileUploadIndex;a.id=FileuploadString+FileUploadIndex;a.size="56";oAttachments.appendChild(a);var b=fileInput.form;b.encoding="multipart/form-data";document.getElementById("idAttachmentsRow").style.display="";ShowPart1()}}function GetAttachElement(b){ULSopi:;var a=document.getElementById(b);if(a==null)a=document.getElementsByName(b).item(0);return a}function RemoveLocal(c,b){ULSopi:;document.getElementById("idAttachmentsTable").deleteRow(document.getElementById(c).rowIndex);var a=GetAttachElement(b);a.parentNode.removeChild(a);if(typeof idAttachmentsTable!="undefined"&&idAttachmentsTable.rows.length==0)idAttachmentsRow.style.display="none"}function RemoveFromServer(a){ULSopi:;RemoveAttachmentFromServer(a,0)}function RemoveAttachmentFromServer(b,c){ULSopi:;var L_ConfirmDelete_TXT="Are you sure you want to delete this attachment?",L_ConfirmRecycle_TXT="Are you sure you want to send this attachment to the site Recycle Bin?",a;if(c)a=L_ConfirmRecycle_TXT;else a=L_ConfirmDelete_TXT;if(confirm(a)){document.getElementById("idAttachmentsTable").deleteRow(document.getElementById(b).rowIndex);document.getElementsByName("attachmentsToBeRemovedFromServer").item(0).value+=b+";";if(document.getElementById("idAttachmentsTable").rows.length==0)document.getElementById("idAttachmentsRow").style.display="none"}}function SetChoiceOption(b){ULSopi:;var a=document.getElementById(b);if(a!=null&&a!="undefined")a.checked=true}function SetFocusOnControl(b){ULSopi:;var a=document.getElementById(b);if(a!=null&&a!="undefined"){a.focus();a.select()}}function ChangeFillinTextTabindex(c,d){ULSopi:;var a=document.getElementById(d),b=-1;if(a!=null&&typeof a!="undefined"&&(a.type=="checkbox"||a.type=="radio"))b=a.checked?0:-1;SetControlTabIndex(c,b)}function SetControlTabIndex(b,c){ULSopi:;var a=document.getElementById(b);if(a!=null&&a!="undefined")a.tabIndex=c}function TestURL(c){ULSopi:;var a="",b=document.getElementById(c);if(b!=null&&b!="undefined")a=StURLNormalize(TrimWhiteSpaces(b.value));if(a=="")return;idx=a.indexOf("://");if(idx+3==a.length)return;if(a.substr(0,7)=="mailto:")open(a,"_self");else open(a,"_blank")}function StURLNormalize(a){ULSopi:;if(a.substr(0,2)=="\\\\"||a.substr(0,2)=="//")a="file:"+a;if(a.substr(0,5)=="file:")a=a.replace(/\\/g,"/");return a}function UploadDocuments(){ULSopi:;if(typeof fCtl!="undefined"&&fCtl)document.getElementById("idUploadCtl").MultipleUpload();else return true}function PreSaveItem(){ULSopi:;if("function"==typeof PreSaveAction)return PreSaveAction();return true}function SurveyPrompt(){ULSopi:;var L_SavePartialResponse1_text="The current survey response will be saved.  Your response can be found in the All Responses survey view.";alert(L_SavePartialResponse1_text);return PreSaveItem()}function OnMtgAttendeeStatusChangeParams(){ULSopi:;this.respFieldClientID=null;this.statusNoResponse=null;this.statusAccepted=null;this.statusDeclined=null;this.statusTentative=null;this.emailSubjectNoResponse=null;this.emailSubjectAccepted=null;this.emailSubjectDeclined=null;this.emailSubjectTentative=null;this.emailBodyNoResponse=null;this.emailBodyAccepted=null;this.emailBodyDeclined=null;this.emailBodyTentative=null;this.lblSubjectId=null;this.lblBodyId=null;this.cbSendEmailId=null}function OnMtgAttendeeStatusChangeEvent(){ULSopi:;OnMtgAttendeeStatusChangeWrapper(false)}function OnMtgAttendeeStatusChange(e,a){ULSopi:;var d=document.getElementById(a.respFieldClientID).value,c,b;switch(d){case a.statusNoResponse:c=a.emailSubjectNoResponse;b=a.emailBodyNoResponse;break;case a.statusAccepted:c=a.emailSubjectAccepted;b=a.emailBodyAccepted;break;case a.statusDeclined:c=a.emailSubjectDeclined;b=a.emailBodyDeclined;break;case a.statusTentative:c=a.emailSubjectTentative;b=a.emailBodyTentative}document.getElementById(a.lblSubjectId).innerHTML=STSHtmlEncode(c);document.getElementById("MtgAttendeeEmailSubjectPhrase").value=c;document.getElementById(a.lblBodyId).innerHTML=STSHtmlEncode(b);document.getElementById("MtgAttendeeEmailBodyPhrase").value=b;document.getElementById("OWS:Status:Dropdown").value=d;if(!e)document.getElementById(a.cbSendEmailId).checked=true}typeof Sys!="undefined"&&Sys&&Sys.Application&&Sys.Application.notifyScriptLoaded();typeof NotifyScriptLoadedAndExecuteWaitingJobs=="function"&&NotifyScriptLoadedAndExecuteWaitingJobs("form.js")