(function(){var B=document.domain;while(true){try{var C=window.parent.document.domain;break}catch(A){}B=B.replace(/.*?(?:\.|$)/,"");if(B.length==0){break}try{document.domain=B}catch(A){break}}})();function GetCommonDialogCss(A){return FCKConfig.BasePath+"dialog/common/|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.BtnReset{float:left;background-position:center center;background-image:url(images/reset.gif);width:16px;height:16px;background-repeat:no-repeat;border:1px none;font-size:1px}.BtnLocked,.BtnUnlocked{float:left;background-position:center center;background-image:url(images/locked.gif);width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:pointer;cursor:hand}"}function GetE(A){return document.getElementById(A)}function ShowE(B,A){if(typeof(B)=="string"){B=GetE(B)}B.style.display=A?"":"none"}function SetAttribute(B,C,A){if(A==null||A.length==0){B.removeAttribute(C,0)}else{B.setAttribute(C,A,0)}}function GetAttribute(C,E,A){var D=C.attributes[E];if(D==null||!D.specified){return A?A:""}var B=C.getAttribute(E,2);if(B==null){B=D.nodeValue}return(B==null?A:B)}function SelectField(A){var B=GetE(A);B.focus();if(B.select){B.select()}}var IsDigit=(function(){var A={End:35,Home:36,Left:37,Right:39,"U+00007F":46};return function(C){if(!C){C=event}var B=(C.keyCode||C.charCode);if(!B&&C.keyIdentifier&&(C.keyIdentifier in A)){B=A[C.keyIdentifier]}return((B>=48&&B<=57)||(B>=35&&B<=40)||B==8||B==46||B==9)}})();String.prototype.Trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};String.prototype.StartsWith=function(A){return(this.substr(0,A.length)==A)};String.prototype.Remove=function(C,B){var A="";if(C>0){A=this.substring(0,C)}if(C+B<this.length){A+=this.substring(C+B,this.length)}return A};String.prototype.ReplaceAll=function(D,B){var C=this;for(var A=0;A<D.length;A++){C=C.replace(D[A],B[A])}return C};function OpenFileBrowser(C,D,A){var F=(oEditor.FCKConfig.ScreenWidth-D)/2;var E=(oEditor.FCKConfig.ScreenHeight-A)/2;var B="toolbar=no,status=no,resizable=yes,dependent=yes,scrollbars=yes";B+=",width="+D;B+=",height="+A;B+=",left="+F;B+=",top="+E;window.open(C,"FCKBrowseWindow",B)}function CreateNamedElement(L,B,K,D){var J;var F=null;if(B&&L.FCKBrowserInfo.IsIE){var G=false;for(var I in D){G|=(B.getAttribute(I,2)!=D[I])}if(G){F=B;B=null}}if(B){J=B}else{if(L.FCKBrowserInfo.IsIE){var C=[];C.push("<"+K);for(var A in D){C.push(" "+A+'="'+D[A]+'"')}C.push(">");if(!L.FCKListsLib.EmptyElements[K.toLowerCase()]){C.push("</"+K+">")}J=L.FCK.EditorDocument.createElement(C.join(""));if(F){CopyAttributes(F,J,D);L.FCKDomTools.MoveChildren(F,J);F.parentNode.removeChild(F);F=null;if(L.FCK.Selection.SelectionData){var E=L.FCK.EditorDocument.selection;L.FCK.Selection.SelectionData=E.createRange()}}J=L.FCK.InsertElement(J);if(L.FCK.Selection.SelectionData){var H=L.FCK.EditorDocument.body.createControlRange();H.add(J);L.FCK.Selection.SelectionData=H}}else{J=L.FCK.InsertElement(K)}}for(var I in D){J.setAttribute(I,D[I],0)}return J}function CopyAttributes(B,E,D){var A=B.attributes;for(var H=0;H<A.length;H++){var G=A[H];if(G.specified){var F=G.nodeName;if(F in D){continue}var C=B.getAttribute(F,2);if(C==null){C=G.nodeValue}E.setAttribute(F,C,0)}}E.style.cssText=B.style.cssText};