function Browser(){var agent=navigator.userAgent.toLowerCase();this.ns=((agent.indexOf('mozilla')!=-1)&&((agent.indexOf('spoofer')==-1)&&(agent.indexOf('compatible')==-1)));this.ie=(agent.indexOf("msie")!=-1)}var browser=new Browser();function __editStartup(){if(design=="Office2003"){globalToolbarColor="9EBEF5";globalToolbarBorder=false}else if(design=="Office2003S"){globalToolbarColor="#E8E8F0";globalToolbarBorder=false}else{globalToolbarColor="ButtonFace";globalToolbarBorder=true}__editBuildEditor();editSetBr(globalIsBR);editSetUserCode(__userCode);try{__toolbar_setmode(__mode)}catch(Error){}if(globalLanguageDetect){if(browser.ns)__lng=navigator.language;else __lng=navigator.userLanguage;if(__lng.indexOf("en")>-1)language="EN";if(__lng.indexOf("de")>-1)language="DE";if(__lng.indexOf("es")>-1)language="ES";if(__lng.indexOf("pt")>-1)language="PT";if(__lng.indexOf("nl")>-1)language="NL";if(__lng.indexOf("he")>-1)language="HE";if(__lng.indexOf("gr")>-1)language="GR";if(__lng.indexOf("se")>-1)language="SE"}if(browser.ie){document.oncontextmenu=oncontext}__calculate();if(browser.ie&&!__readOnly){document.getElementById('pinEdit').contentWindow.document.designMode="on";document.getElementById('pinEditHtml').contentWindow.document.designMode="on"}if(globalDebug){try{checkSettings()}catch(error){}}try{spellSetLanguage(language);spellSetDictFile("")}catch(Error){}try{eventOnInit()}catch(Error){}setTimeout("__init_delay()",20)}function __init_delay(){if(browser.ns)document.body.innerHTML=html;if(__readOnly){globalSingleMode=true;globalMenuVisible=false;editSetReadOnlyStatus(true)}if(!globalSingleMode){if(globalMenuVisible){document.body.style.marginTop=22;CreateMenu(__userCode)}else{document.body.style.marginTop=1}if(globalCompatibilityMode){if(__editToolbarString!=""){toolbarstop=CreateToolbarsAuto(__editToolbarString,"toolbartop","toolbarbottom")}else{toolbarstop=CreateToolbarsTop("toolbartop",__userCode);CreateToolbarsBottom("toolbarbottom",__userCode)}}}else{document.body.style.marginTop=1}document.getElementById("body").style.backgroundColor=globalToolbarColor;if(globalHierarchyBarVisible)document.getElementById("hierarchyBar").style.backgroundColor=globalToolbarColor;editSetHierachyBarVisible(globalHierarchyBarVisible);if(__loadFile!="")editLoad(__loadFile);else editInit();try{RaiseControlEvent("LOADED")}catch(Error){};try{parent.editOnEditorLoadedIntern(window,window.frameElement.id)}catch(Error){};try{parent.editOnEditorLoaded(window,window.frameElement.id)}catch(Error){};if(__startupMode=="H"){setMode("HTML")}else if(__startupMode=="P"){setMode("PREVIEW")}}function __window_r_loaded(){__editShowWindowRight()};function __window_l_loaded(){};function __editShowWindowRight(){__editPrepareParams();__editMozParam[2]="BODY";__editMozParam[5]=getDoc().body;__editMozParam[13]="3";__editMozParam[15]="1";try{document.getElementById("windowRight").contentWindow.initDialog(__editMozParam)}catch(Error){}}function __toolbar_loaded(){try{if(__startupMode=="H"){editSetActiveMode("HTML")}else if(__startupMode=="P"){editSetActiveMode("PREVIEW")}else if(__startupMode=="S"){}else{editSetActiveMode("EDIT")}__editToolbarReady=true;editOnEditorReady()}catch(Error){}}var html="";function __editBuildEditor(){var docViewStyle="";if(globalSupportHttps&&browser.ie)var isHttps=" src='dummy.html' ";else var isHttps="";var globalLeftAreaVisible=false;var globalLeftAreaWidth=200;var globalLeftAreaUrl="";var startupMode="";var saveHB=false;if(__startupMode=="H"||__startupMode=="P"||__startupMode=="S"){startupMode="display: none"}html+="<TEXTAREA style='display:none' id='__editData' NAME='__editData'></TEXTAREA>";html+="<table width='100%' height='100%' border=0 cellspacing='0' cellpadding='0'>";html+="<tr>";var colspan=2;if(globalLeftAreaVisible&&!globalAttributeAreaVisible)colspan=2;if(!globalLeftAreaVisible&&globalAttributeAreaVisible)colspan=2;if(globalLeftAreaVisible&&globalAttributeAreaVisible)colspan=3;html+="<td colspan='"+colspan+"' unselectable='on' id='toolbartop'>";if(!globalCompatibilityMode&&!globalSingleMode){html+="<iframe src='toolbar/pinToolbar.html' onload='javascript:__toolbar_loaded();' unselectable='on' id='toolbar_top' style='HEIGHT: 84px; width:100%;"+startupMode+"' frameBorder='0'></iframe>"}html+="<td>";html+="</tr>";html+="<tr>";if(globalLeftAreaVisible&&globalHierarchyBarVisible){html+="<td style='width:"+globalLeftAreaWidth+"' rowspan=3>";html+="<iframe onload='__window_l_loaded()' src='"+globalLeftAreaUrl+"' id='windowLeft' height='100%' style='width:"+globalLeftAreaWidth+"' frameborder='0'></iframe>";html+="</td>"}if(globalLeftAreaVisible&&!globalHierarchyBarVisible){html+="<td style='width:"+globalLeftAreaWidth+"'>";html+="<iframe onload='__window_l_loaded()' src='"+globalLeftAreaUrl+"' id='windowRight' height='100%' style='width:"+globalLeftAreaWidth+";"+startupMode+"' frameborder='0'></iframe>";html+="</td>"}if(globalHierarchyBarVisible)html+="<td id='hierarchyBar'><div  style='padding-right:3px'><table style='width:100%;border-width:1px;border-style: solid;border-left-color:  ButtonShadow;  border-right-color:  ButtonHighlight;  border-top-color:  ButtonShadow;  border-bottom-color:ButtonHighlight;' cellspacing=0 cellpadding=1 border=0><tr><td>&nbsp;</td></tr></table></div></td>";if(globalAttributeAreaVisible&&globalHierarchyBarVisible){html+="<td style='width:"+globalAttributeAreaWidth+"' rowspan=2>";html+="<iframe onload='__window_r_loaded()' src='"+globalAttributeAreaUrl+"' id='windowRight' name='attribute' height='100%' style='width:"+globalAttributeAreaWidth+";"+startupMode+"' frameborder='0'></iframe>";html+="</td>"}html+="</tr>";html+="<tr>";if(globalDocumentView){html+="<td width='100%' height='100%' style='padding-left:6px;padding-top:6px;background-color: #9099ae'>";if(browser.ie)docViewStyle="style='border-left-width:1px;border-left-style: solid;border-left-color: black; border-top-width: 1px;border-top-style: solid;border-top-color: black'"}else{html+="<td width='100%' height='100%'>"}html+="<iframe "+docViewStyle+isHttps+" id='pinEdit' name='pinEdit' onfocus='__editSetFocusStatus(true)' onblur='__editSetFocusStatus(false)' height='100%' width='100%' frameborder='0'></iframe>";html+="<iframe "+docViewStyle+isHttps+" id='pinEditPreview' name='pinEditPreview' onfocus='__editSetFocusStatus(true)' onblur='__editSetFocusStatus(false)' height='100%' width='100%' style='display: none' frameborder='0'></iframe>";html+="<iframe "+docViewStyle+isHttps+" id='pinEditHtml' name='pinEditHtml' onfocus='__editSetFocusStatus(true)' onblur='__editSetFocusStatus(false)'  height='100%' width='100%' style='display: none;' frameborder='0'></iframe>";html+="</td>";if(globalAttributeAreaVisible&&!globalHierarchyBarVisible){html+="<td style='width:"+globalAttributeAreaWidth+"'>";html+="<iframe onload='__window_r_loaded()' src='"+globalAttributeAreaUrl+"' id='windowRight' height='100%' style='width:"+globalAttributeAreaWidth+";"+startupMode+"' frameborder='0'></iframe>";html+="</td>"}html+="</tr>";html+="<tr>";html+="<td  colspan='2' unselectable='on' id='toolbarbottom'>";if(!globalCompatibilityMode&&!globalSingleMode)html+="<iframe unselectable='on' id='toolbar_bottom' style='HEIGHT: 27px; width:100%' src='toolbar/pinToolbar.html' frameBorder='0'></iframe>";html+="<td>";html+="</tr>";html+="</table>";if(browser.ie)document.body.innerHTML=html}function oncontext(){return false};