function __editGetEditorUrl(){if(globalEditorUrl!=""){return globalEditorUrl}else{var url=document.location.href;var pos=url.indexOf(globalEditorPageName);return url.substring(0,pos)}};function __editGetEditorWeb(){if(globalRootUrl!=""){return globalRootUrl}else{var url=document.location.href;var pos=url.indexOf("editor");return url.substring(0,pos)}};function __editGetServer(){try{return document.location.protocol+"//"+document.location.host}catch(Error){return ""}};function globalGetPositonY(obj){var y=0;var parent=obj;while(parent.tagName.toUpperCase()!="BODY"){y=y+parent.offsetTop;parent=parent.offsetParent}return y};function globalGetPositonX(obj){var x=0;var parent=obj;while(parent.tagName.toUpperCase()!="BODY"){x=x+parent.offsetLeft;parent=parent.offsetParent}return x};function __editGetIframePositionX(iframe){if(iframe.style.position.toUpperCase()=="ABSOLUTE"){return iframe.style.left}else{var parent=iframe;var x=0;while(parent.tagName.toUpperCase()!="BODY"){x=x+parent.offsetLeft;parent=parent.offsetParent}return x}};function __editGetIframePositionY(iframe){if(iframe.style.position.toUpperCase()=="ABSOLUTE"){return iframe.style.top}else{var parent=iframe;var y=0;while(parent.tagName.toUpperCase()!="BODY"){y=y+parent.offsetTop;parent=parent.offsetParent}return y}};