var cLeftDistance=0;var cRightDistance=0;var cLeftRightDelemiter=2;function GetGlobalLeftL(a){return cLeftDistance}function GetGlobalPartW(a){return((a.clientW-cLeftRightDelemiter)/2)}function GetGlobalLeftW(a){return GetGlobalPartW(a)}function GetGlobalRightL(a){return GetGlobalLeftL(a)+GetGlobalLeftW(a)}function GetGlobalRightW(b){var a=0;if(ShowBodyContentScrollbar()&&IsHorzScrollbarVisible("bodycontent")){a=SCROLLBAR_WIDTH}return GetGlobalPartW(b)-cRightDistance-a}function GetGlobalTop(a){ASSERT(false);return cTopDistance}function GetGlobalTopW(a){return GetGlobalLeftW(a)+cLeftRightDelemiter+GetGlobalRightW(a)}function ResizeGlobalDiv_Left(a,b){if((null==b)||("undefined"==typeof b)){b=new ResizeInfo()}ASSERT(""!=a);SetElmLeft(a,GetGlobalLeftL(b));SetElmWidth(a,GetGlobalLeftW(b))}function ResizeGlobalDiv_Right(a,b){if((null==b)||("undefined"==typeof b)){b=new ResizeInfo()}ASSERT(""!=a);SetElmLeft(a,GetGlobalRightL(b));SetElmWidth(a,GetGlobalRightW(b))}function ResizeGlobalDiv_Top(a,b){SetElmLeft(a,GetGlobalLeftL(b));SetElmWidth(a,GetGlobalTopW(b))}function ResizeGlobalDiv_BodyContent(a){if((null==a)||("undefined"==typeof a)){a=new ResizeInfo()}SetElmHeight("bodycontent",a.clientH)}function ResizeGlobalDiv_Next(a,b){SetElmLeft(a,GetGlobalLeftL(b));SetElmWidth(a,GetGlobalTopW(b))}var g_resizehandler=new GlobalResizeHandler();function GlobalResizeHandler(){this.handlerL=new Array();this.nRekursionsbremse=0;this.Invoke=GlobalResizeHandler_Invoke;this.IsRegistered=GlobalResizeHandler_IsRegistered;this.Add=GlobalResizeHandler_Add;this.Delete=GlobalResizeHandler_Delete;this.ResizeGlobalLeft=ResizeGlobalDiv_Left;this.ResizeGlobalRight=ResizeGlobalDiv_Right;this.ResizeGlobalTop=ResizeGlobalDiv_Top;this.ResizeGlobalBodyContent=ResizeGlobalDiv_BodyContent;this.ResizeGlobalNext=ResizeGlobalDiv_Next;this.GlobalLeftL=GetGlobalLeftL;this.GlobalLeftW=GetGlobalLeftW;this.GlobalRightL=GetGlobalRightL;this.GlobalRightW=GetGlobalRightW;this.GlobalTop=GetGlobalTop;this.GlobalTopW=GetGlobalTopW}function GlobalResizeHandler_Invoke(){if(0!=this.nRekursionsbremse){return}this.nRekursionsbremse++;try{var b;for(var a=0;a<this.handlerL.length;++a){b=this.handlerL[a];b()}}finally{this.nRekursionsbremse--}}function GlobalResizeHandler_IsRegistered(a){for(var b=0;b<this.handlerL.length;++b){if(a==this.handlerL[b]){return true}}return false}function GlobalResizeHandler_Add(a){ASSERT("function"==typeof(a));if(!this.IsRegistered(a)){AddToArray(this.handlerL,a)}}function GlobalResizeHandler_Delete(a){ASSERT("function"==typeof(a));RemoveFromArray(this.handlerL,a)}var FMTSECTION_BORDER=0;function SetDiv_Cont_H(d,c,a){if((null==c)||("number"!=typeof a)){return a}var b=a-FMTSECTION_BORDER;if(null!=d){b-=d.offsetHeight}b=Math.max(b,Math.min(10,c.offsetHeight));SetElmHeight(c,b);SetElmTop(c,GetElmHeight(d));a=b+FMTSECTION_BORDER;if(null!=d){a+=d.offsetHeight}return a}function SetDiv_Right_W(a,b,d){if((null==a)||(null==b)){return d}var c=d-b.offsetWidth;c=Math.max(c,Math.min(10,a.offsetWidth));a.style.width=String(c)+"px";d=c+b.offsetWidth;return d}function ResizeFmtSection(c,e,d,g,p,n){var v=findScriptElement(c);if(null==v){return}var l=("number"==typeof e);var k=("number"==typeof d);var m=("number"==typeof g);var t=("number"==typeof p);var s=((n)&&("string"==typeof n))?n:"left";var q=GetChildsByTagName(v,"div");var u,r,a;var h=null,b=null,f=null,j=null;for(u=0;u<q.length;++u){r=q[u];a=" "+r.className+" ";if(a.indexOf(" cont ")>=0){b=r}else{if(a.indexOf(" head ")>=0){h=r}else{if(a.indexOf(" right ")>=0){j=r}else{if(a.indexOf(" "+s+" ")>=0){f=r}}}}}if(t){p=SetDiv_Cont_H(h,b,p)}if(m){g=SetDiv_Right_W(j,f,g)}var o=v.style;if(l){o.left=String(e)+"px"}if(k){o.top=String(d)+"px"}if(m){o.width=String(g)+"px"}if(t){o.height=String(p)+"px"}}function ResizeInfo_Recalc(a,b){this.clientW=Math.max(10,a);this.clientH=Math.max(10,b);this.multW=this.clientW/this.origW;this.multH=this.clientH/this.origH}function GetHeaderHeight(b,a){a=(a)?a:document;if("number"==typeof b){return b}var c=a.getElementById("header");if(c){return GetElmHeight(c)}return 0}function GetFooterHeight(b,a){a=(a)?a:document;if("number"==typeof b){return b}if("function"==typeof GetCustomFooterContent){var c=a.getElementById("newfooter");if(c){return GetElmHeight(c)}}return 0}function ResizeInfo(g,e,d,c,b){this.Recalc=ResizeInfo_Recalc;this.origH=("number"==typeof e)?e:830;this.origW=("number"==typeof g)?g:1275;this.headerH=GetHeaderHeight(d,b);this.footerH=GetFooterHeight(c,b);var a=GetClientWidth(b);var f=GetClientHeight(b)-(this.headerH+this.footerH);this.Recalc(a,f)};
