﻿function MSOLayout_MinimizeRestoreDownLevel(b,c,d){var a=c=="Minimized"?"1":"0";document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=b+",frameState,"+a;document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=d;document.forms[MSOWebPartPageFormName].submit()}function MSOLayout_RemoveWebPartDownLevel(a,b){document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=a+",isIncluded,False";document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=22;if(b)MSOTlPn_ShowToolPane(0);else document.forms[MSOWebPartPageFormName].submit()}var MSOTlPn_prevBuilder=null,MSOTlPn_prevWidth=0,MSOTlPn_prevHeight=0,MSOTlPn_shownViewChangeWarning=false,MSOWebPartPage_hideNextBeforeUnload=false,MSOWebPartPage_partDeleted="";function MSOLayout_CheckAndSaveChanges(){if(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges!=null&&document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value!="")MSOLayout_SaveChanges()}function MSOWebPartPage_ExportCheckWarning(c,d){var b=true;if(d)if(!confirm(MSOStrings.ExportPersonalizationDialogText))b=false;if(b){var a=false;if(typeof MSOWPSC_SavePerformed=="boolean")a=MSOWPSC_SavePerformed;MSOWebPartPage_SetWindowLocation(c);if(typeof MSOWPSC_SavePerformed=="boolean"){MSOWPSC_SavePerformed=a;MSOWebPartPage_hideNextBeforeUnload=true}}}function MSOMode_SetMode(b){var a=MSOMode_GetNewUrl(b);MSOLayout_CheckAndSaveChanges();if(document.forms[MSOWebPartPageFormName].MSOTlPn_View.value!=4){document.forms[MSOWebPartPageFormName].MSOTlPn_View.value=0;var c=/[& | \?]ToolPaneView=[-0-9A-Z]*/ig;a=MSOMode_RemoveMode(a,c)}document.forms[MSOWebPartPageFormName].MSOWebPartPage_Shared.value=b?"true":"false";document.forms[MSOWebPartPageFormName].action=a;document.forms[MSOWebPartPageFormName].submit()}function MSOMode_GetNewUrl(e,a){if(a==null)a=document.location.href;var c=/[& | \?]PageView=Personal/ig,b=/[& | \?]PageView=Shared/ig,d="PageView="+(e?"Shared":"Personal");a=MSOMode_RemoveMode(a,c);a=MSOMode_RemoveMode(a,b);a=MSOMode_AddMode(a,b,d);return a}function MSOMode_RemoveMode(a,h){var f=/\#/,d=a.search(f);if(d!=-1)a=a.substring(0,d);var e=/\?/,c=a.search(e);if(c!=-1){var g=a.substring(0,c),b=a.substring(c,a.length);b=b.replace(h,"");if(b.length!=0&&b.charAt(0)!="?")b="?"+b;a=g+b}return a}function MSOMode_AddMode(a,h,d){var f=/\#/,c=a.search(f);if(c!=-1)a=a.substring(0,c);var e=/\?/,b=a.search(e);if(b==-1)a+="?"+d;else{var g=a.substring(b,a.length);if(g.search(h)==-1)a+="&"+d}return a}function MSOPGrid_BuilderVisible(a){MSOPGrid_HidePrevBuilder();MSOTlPn_prevBuilder=null;a.style.display="inline"}function MSOPGrid_HidePrevBuilder(){if(MSOTlPn_prevBuilder!=null)(eval(MSOTlPn_prevBuilder)).style.display="none"}function MSOPGrid_doBuilder(c,a,d){var b=showModalDialog(c,a,d);a.value=b}function MSOWebPartPage_RestorePageDefault(){if(confirm(MSOStrings.ResetPagePersonalizationDialogText)){var a=document.createElement("INPUT");a.type="hidden";a.name="MSOWebPartPage_RestorePageDefault";a.value="true";document.forms[MSOWebPartPageFormName].appendChild(a);if(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges!=null)document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value="";MSOMode_SetMode(false)}}function MSOWebPartPage_RestorePartDefaults(b){if(confirm(MSOStrings.ResetPartPersonalizationDialogText)){var a=document.createElement("INPUT");a.type="hidden";a.name="MSO_RestoreSettings";a.value=b;document.forms[MSOWebPartPageFormName].appendChild(a);MSOMode_SetMode(false)}}function MSOWebPartPage_MenuDoPostBack(d,e){var c=document.forms[MSOWebPartPageFormName],b=c.__EVENTTARGET,a=c.__EVENTARGUMENT;if(b==null){b=document.createElement("INPUT");b.style.display="none";b.name="__EVENTTARGET";document.forms[MSOWebPartPageFormName].appendChild(b)}if(a==null){a=document.createElement("INPUT");a.style.display="none";a.name="__EVENTARGUMENT";document.forms[MSOWebPartPageFormName].appendChild(a)}b.value=d;a.value=e;c.submit()}function MSOWebPartPage_SignIn(){var a=document.createElement("INPUT");a.type="hidden";a.name="MSOWebPartPage_AnonymousAccessLogIn";a.value="1";document.forms[MSOWebPartPageFormName].appendChild(a);document.forms[MSOWebPartPageFormName].submit()}function MSOWebPartPage_SetWindowLocation(b){var a=b.toLowerCase();if(a.indexOf("javascript:")==0||a.indexOf("vbscript:")==0)MSOWebPartPage_hideNextBeforeUnload=true;window.location=b}function MSOWebPartPage_SetNewWindowLocation(a){window.open(a)}function MSOTlPn_onToolPaneCloseClick(){var b="0",a="49";MSOTlPn_ShowToolPaneWrapper(b,a)}function MSOPGrid_InvokeFPBuilder(b,c,a){a.value=window.external.InvokeBuilder(b,c,a.id);a.focus()}function MSOMenu_KeyboardClick(b){for(var a=1;a<arguments.length;a++)if(event.keyCode==arguments[a]){b.click();event.returnValue=false;return}}function MSOTlPn_ToggleDisplay(a,b,g,d,e,h){var f=a+"_STATEFIELD",c;if(document.all.item(a).style.display=="none"){document.all.item(a).style.display="";document.images[b].src="/_layouts/images/TPMin2.gif";document.images[b].alt=e;document.all.item(h).title=e;document.all.item(g).title=e;c="1"}else{document.all.item(a).style.display="none";document.images[b].src="/_layouts/images/TPMax2.gif";document.images[b].alt=d;document.all.item(h).title=d;document.all.item(g).title=d;c="0"}if(document.all[f]!=null)document.all[f].value=c}var MSOTlPn_originalToolPaneWidth;function MSOTlPn_onToolPaneMaxClick(){var e=1,a=document.all["MSOTlPn_minMaxIcon"],c=a.src.substring(0,a.src.lastIndexOf("/")+1);if(document.all["MSOTlPn_Tbl"].toolpaneWide==null){MSOTlPn_originalToolPaneWidth=document.all["MSOTlPn_Tbl"].style.width;document.all["MSOTlPn_Tbl"].style.width=(parseInt(document.all["MSOTlPn_Tbl"].offsetWidth)+100).toString()+"px";c+=document.dir=="rtl"?"tpmax.gif":"tpmin.gif";a.title=MSOStrings.ToolPaneShrinkToolTip;a.alt=MSOStrings.ToolPaneShrinkToolTip;a.parentElement.title=MSOStrings.ToolPaneShrinkToolTip;document.all["MSOTlPn_Tbl"].toolpaneWide="1"}else{document.all["MSOTlPn_Tbl"].style.width=MSOTlPn_originalToolPaneWidth;c+=document.dir=="rtl"?"tpmin.gif":"tpmax.gif";a.title=MSOStrings.ToolPaneWidenToolTip;a.alt=MSOStrings.ToolPaneWidenToolTip;a.parentElement.title=MSOStrings.ToolPaneWidenToolTip;document.all["MSOTlPn_Tbl"].toolpaneWide=null;e=-1}a.src=c;var d=document.all["MSOTlPn_Tbl"];for(var b=0;b<d.all.length;b++)if(d.all(b).getAttribute("ms-TlPnWiden")=="true")d.all(b).style.pixelWidth+=e*120;MSOTlPn_WindowResize()}function MSOTlPn_WindowResize(){var c=document.all["MSOTlPn_MainTD"];if(c==null||c.offsetWidth==0)return;var g=c.offsetWidth,h=document.body.offsetWidth-document.body.clientWidth,f=document.all["MSOTlPn_WebPartPageDiv"];if(f.offsetWidth+c.offsetWidth==document.body.clientWidth)return;var e=0,a=f.offsetParent,b=0;while(a!=null){if(document.dir!="rtl"){b=a.offsetLeft+(a.offsetWidth-(a.clientLeft+a.clientWidth));if(a.offsetParent!=null)b+=a.offsetParent.clientLeft}else b=a.offsetParent!=null?a.offsetParent.offsetWidth-(a.offsetLeft+a.offsetWidth):0;e+=b;a=a.offsetParent}e-=h;var d=document.body.clientWidth-(e+g);if(d<250)d=250;document.all["MSO_tblPageBody"].style.pixelWidth=d+g;f.style.pixelWidth=d;if(window.event.type=="load"&&document.all.MSOTlPn_TlPnCaptionSpan!=null)document.all.MSOTlPn_TlPnCaptionSpan.scrollIntoView(false)}function MSOTlPn_CheckUrl(){var b=/[& | \?]ToolPaneView=[-0-9A-Z]*/ig,c=document.forms[MSOWebPartPageFormName].action,a;a=MSOMode_RemoveMode(document.forms[MSOWebPartPageFormName].action,b);document.forms[MSOWebPartPageFormName].action=a}function MSOTlPn_Resize(b){if(MSOTlPn_prevWidth!=b.clientWidth){MSOTlPn_prevWidth=b.clientWidth;MSOTlPn_WindowResize()}if(MSOTlPn_prevHeight!=document.body.clientHeight){MSOTlPn_prevHeight=document.body.clientHeight;var a=document.all["MSOTlPn_WebPartPageDiv"];a.style.height="100%";a.style.height=a.offsetHeight}}function MSOWebPartPage_SetupFixedWidthWebParts(){var a=document.all["MSOFixedWidthTitle"];if(a!=null)if(a.length>0)for(var b=0;b<a.length;b++)a[b].style.width=MSOWebPartPage_AllocateSpaceForFirstTD(a[b]);else a.style.width=MSOWebPartPage_AllocateSpaceForFirstTD(a)}function MSOWebPartPage_AllocateSpaceForFirstTD(f){var a=document.createElement("DIV");a.style.width=f.fixedWidth;document.body.appendChild(a);var c=a.offsetWidth;document.body.removeChild(a);var b=MSOLayout_GetParentTable(f).cloneNode(true);if(b!=0){document.body.appendChild(b);var e=b.rows(0);for(var d=1;d<e.cells.length;d++)c-=e.cells(d).offsetWidth;document.body.removeChild(b)}return c<1?1:c}function MSOWebPartPage_FindControlName(c){var a=document.all.tags("label");if(a!=null)for(i=0;i<a.length;i++){var b=a[i];if(b.innerText==c)if(b.htmlFor.indexOf("_EDITOR")!=-1)return b.htmlFor}return null}function MSOTlPn_ListViewChange(a){if(MSOTlPn_shownViewChangeWarning)return;alert(a);MSOTlPn_shownViewChangeWarning=true}function MSOTlPn_CustomWindowResize(){var a=document.all["MSOTlPn_Tbl"];if(a==null||a.offsetWidth==0)return;a.style.pixelWidth=document.body.clientWidth}function MSOTlPn_ShowListFilter(){if(document.all["WebPartListFilter"].style.display=="none"){document.all["WebPartListFilter"].style.display="block";document.forms[MSOWebPartPageFormName].MSOGallery_FilterVisible.value="true"}else{document.all["WebPartListFilter"].style.display="none";document.forms[MSOWebPartPageFormName].MSOGallery_FilterVisible.value="false"}}function MSOGallery_GetCookie(d){var c=d+"=",a=document.cookie.indexOf(c);if(a==-1)return null;var b=document.cookie.indexOf(";",a+c.length);if(b==-1)b=document.cookie.length;return unescape(document.cookie.substring(a+c.length,b))}function MSOTlPn_ShowAllUsersToolPane(a,b,c){MSOLayout_CheckAndSaveChanges();document.forms[MSOWebPartPageFormName].action=MSOMode_GetNewUrl(true);MSOTlPn_ShowToolPaneWrapper(a,b,c)}function MSOLayout_MakeInvisibleIfEmpty(){var b=document.getElementsByName("_invisibleIfEmpty"),c=navigator.userAgent.toLowerCase(),d=c.indexOf("mozilla")!=-1&&(c.indexOf("spoofer")==-1&&c.indexOf("compatible")==-1),e=c.indexOf("msie")!=-1;for(var a=0;a<b.length;a++)if(e&&b[a].childNodes.length==0||d&&b[a].childNodes.length<=1)b[a].style.display="none"}function MSOLayout_GetParentRow(b){var a=b.parentElement;while(a.tagName!="TR"&&a.tagName!="BODY")a=a.parentElement;if(a.tagName!="TR")return null;else return a}function MSOLayout_GetParentTable(b){for(var a=b;a.tagName!="TABLE";a=a.parentElement)if(a==document.body)return 0;return a}