function MSOLayout_MinimizeRestoreDownLevel(b,c,e){var newFrameState=c=="Minimized"?"1":"0";document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=b+",frameState,"+newFrameState;document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=e;document.forms[MSOWebPartPageFormName].submit();}function MSOLayout_RemoveWebPartDownLevel(g,h){document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=g+",isIncluded,False";document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=22;if(h)MSOTlPn_ShowToolPane(0);else document.forms[MSOWebPartPageFormName].submit();}var MSOTlPn_prevBuilder=null;var MSOTlPn_prevWidth=0;var MSOTlPn_prevHeight=0;var MSOTlPn_shownViewChangeWarning=false;var MSOWebPartPage_hideNextBeforeUnload=false;var MSOWebPartPage_partDeleted="";function MSOLayout_CheckAndSaveChanges(){if(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges!=null&&document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value!="")MSOLayout_SaveChanges();}function MSOWebPartPage_ExportCheckWarning(j,k){var doexport=true;if(k){if(!confirm(MSOStrings.ExportPersonalizationDialogText))doexport=false;}if(doexport){var oldSavePerformed=false;if(typeof MSOWPSC_SavePerformed=="boolean")oldSavePerformed=MSOWPSC_SavePerformed;MSOWebPartPage_SetWindowLocation(j);if(typeof MSOWPSC_SavePerformed=="boolean"){MSOWPSC_SavePerformed=oldSavePerformed;MSOWebPartPage_hideNextBeforeUnload=true;}}}function MSOMode_SetMode(l){var newUrl=MSOMode_GetNewUrl(l);MSOLayout_CheckAndSaveChanges();if(document.forms[MSOWebPartPageFormName].MSOTlPn_View.value!=4){document.forms[MSOWebPartPageFormName].MSOTlPn_View.value=0;var toolPaneViewExpression=/[& | \?]ToolPaneView=[-0-9A-Z]*/ig;newUrl=MSOMode_RemoveMode(newUrl,toolPaneViewExpression);}document.forms[MSOWebPartPageFormName].MSOWebPartPage_Shared.value=l?"true":"false";document.forms[MSOWebPartPageFormName].action=newUrl;document.forms[MSOWebPartPageFormName].submit();}function MSOMode_GetNewUrl(m,n){if(n==null)n=document.location.href;var personalViewExpression=/[& | \?]PageView=Personal/ig;var allUsersViewExpression=/[& | \?]PageView=Shared/ig;var newMode="PageView="+(m?"Shared":"Personal");n=MSOMode_RemoveMode(n,personalViewExpression);n=MSOMode_RemoveMode(n,allUsersViewExpression);n=MSOMode_AddMode(n,allUsersViewExpression,newMode);return n;}function MSOMode_RemoveMode(o,p){var hashMarkExpression=/\#/;var hashMarkIndex=o.search(hashMarkExpression);if(hashMarkIndex!=-1)o=o.substring(0,hashMarkIndex);var questionMarkExpression=/\?/;var questionMarkIndex=o.search(questionMarkExpression);if(questionMarkIndex!=-1){var pathString=o.substring(0,questionMarkIndex);var queryString=o.substring(questionMarkIndex,o.length);queryString=queryString.replace(p,"");if(queryString.length!=0&&queryString.charAt(0)!="?")queryString="?"+queryString;o=pathString+queryString;}return o;}function MSOMode_AddMode(q,r,s){var hashMarkExpression=/\#/;var hashMarkIndex=q.search(hashMarkExpression);if(hashMarkIndex!=-1)q=q.substring(0,hashMarkIndex);var questionMarkExpression=/\?/;var questionMarkIndex=q.search(questionMarkExpression);if(questionMarkIndex==-1)q+="?"+s;else{var queryString=q.substring(questionMarkIndex,q.length);if(queryString.search(r)==-1)q+="&"+s;}return q;}function MSOPGrid_BuilderVisible(t){MSOPGrid_HidePrevBuilder();MSOTlPn_prevBuilder=null;t.style.display="inline";}function MSOPGrid_HidePrevBuilder(){if(MSOTlPn_prevBuilder!=null)eval(MSOTlPn_prevBuilder).style.display="none";}function MSOPGrid_doBuilder(u,v,w){var pReturnValue=showModalDialog(u,v,w);v.value=pReturnValue;}function MSOWebPartPage_RestorePageDefault(){if(confirm(MSOStrings.ResetPagePersonalizationDialogText)){var newInput=document.createElement("INPUT");newInput.type="hidden";newInput.name="MSOWebPartPage_RestorePageDefault";newInput.value="true";document.forms[MSOWebPartPageFormName].appendChild(newInput);if(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges!=null)document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value="";MSOMode_SetMode(false);}}function MSOWebPartPage_RestorePartDefaults(x){if(confirm(MSOStrings.ResetPartPersonalizationDialogText)){var newInput=document.createElement("INPUT");newInput.type="hidden";newInput.name="MSO_RestoreSettings";newInput.value=x;document.forms[MSOWebPartPageFormName].appendChild(newInput);MSOMode_SetMode(false);}}function MSOWebPartPage_MenuDoPostBack(y,z){var theform=document.forms[MSOWebPartPageFormName];var eventTargetField=theform.__EVENTTARGET;var eventArgumentField=theform.__EVENTARGUMENT;if(eventTargetField==null){eventTargetField=document.createElement("INPUT");eventTargetField.style.display="none";eventTargetField.name="__EVENTTARGET";document.forms[MSOWebPartPageFormName].appendChild(eventTargetField);}if(eventArgumentField==null){eventArgumentField=document.createElement("INPUT");eventArgumentField.style.display="none";eventArgumentField.name="__EVENTARGUMENT";document.forms[MSOWebPartPageFormName].appendChild(eventArgumentField);}eventTargetField.value=y;eventArgumentField.value=z;theform.submit();}function MSOWebPartPage_SignIn(){var newInput=document.createElement("INPUT");newInput.type="hidden";newInput.name="MSOWebPartPage_AnonymousAccessLogIn";newInput.value="1";document.forms[MSOWebPartPageFormName].appendChild(newInput);document.forms[MSOWebPartPageFormName].submit();}function MSOWebPartPage_SetWindowLocation(A){var newLocationLowerCase=A.toLowerCase();if(newLocationLowerCase.indexOf("javascript:")==0||newLocationLowerCase.indexOf("vbscript:")==0)MSOWebPartPage_hideNextBeforeUnload=true;window.location=A;}function MSOWebPartPage_SetNewWindowLocation(B){window.open(B);}function MSOTlPn_onToolPaneCloseClick(){var ToolPaneViewClosed="0";var PostbackSourceSettingsHide="49";MSOTlPn_ShowToolPaneWrapper(ToolPaneViewClosed,PostbackSourceSettingsHide);}function MSOPGrid_InvokeFPBuilder(C,D,E){E.value=window.external.InvokeBuilder(C,D,E.id);E.focus();}function MSOMenu_KeyboardClick(F){for(var index=1;index<arguments.length;index++){if(event.keyCode==arguments[index]){F.click();event.returnValue=false;return;}}}function MSOTlPn_ToggleDisplay(G,H,I,J,K,L){var fieldID=G+"_STATEFIELD";var stateFieldValue;if(document.all.item(G).style.display=="none"){document.all.item(G).style.display="";document.images[H].src="/_layouts//images/TPMin2.gif";document.images[H].alt=K;document.all.item(L).title=K;document.all.item(I).title=K;stateFieldValue="1";}else{document.all.item(G).style.display="none";document.images[H].src="/_layouts//images/TPMax2.gif";document.images[H].alt=J;document.all.item(L).title=J;document.all.item(I).title=J;stateFieldValue="0";}if(document.all[fieldID]!=null)document.all[fieldID].value=stateFieldValue;}var MSOTlPn_originalToolPaneWidth;function MSOTlPn_onToolPaneMaxClick(){var mod=1;var minMaxIcon=document.all["MSOTlPn_minMaxIcon"];var newSrc=minMaxIcon.src.substring(0,minMaxIcon.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";newSrc+=(document.dir=="rtl"?"tpmax.gif":"tpmin.gif");minMaxIcon.title=MSOStrings.ToolPaneShrinkToolTip;minMaxIcon.alt=MSOStrings.ToolPaneShrinkToolTip;minMaxIcon.parentElement.title=MSOStrings.ToolPaneShrinkToolTip;document.all["MSOTlPn_Tbl"].toolpaneWide="1";}else{document.all["MSOTlPn_Tbl"].style.width=MSOTlPn_originalToolPaneWidth;newSrc+=(document.dir=="rtl"?"tpmin.gif":"tpmax.gif");minMaxIcon.title=MSOStrings.ToolPaneWidenToolTip;minMaxIcon.alt=MSOStrings.ToolPaneWidenToolTip;minMaxIcon.parentElement.title=MSOStrings.ToolPaneWidenToolTip;document.all["MSOTlPn_Tbl"].toolpaneWide=null;mod=-1;}minMaxIcon.src=newSrc;var x=document.all["MSOTlPn_Tbl"];for(var i=0;i<x.all.length;i++){if(x.all(i).getAttribute("ms-TlPnWiden")=="true")x.all(i).style.pixelWidth+=mod*120;}MSOTlPn_WindowResize();}function MSOTlPn_WindowResize(){var objToolPane=document.all["MSOTlPn_MainTD"];if(objToolPane==null||objToolPane.offsetWidth==0)return;var widthToolPane=objToolPane.offsetWidth;var docFrame=document.body.offsetWidth-document.body.clientWidth;var spDiv=document.all["MSOTlPn_WebPartPageDiv"];if(spDiv.offsetWidth+objToolPane.offsetWidth==document.body.clientWidth)return;var widthAncestors=0;var next=spDiv.offsetParent;var elementWidth=0;while(next!=null){if(document.dir!="rtl"){elementWidth=next.offsetLeft+(next.offsetWidth-(next.clientLeft+next.clientWidth));if(next.offsetParent!=null)elementWidth+=next.offsetParent.clientLeft;}else elementWidth=next.offsetParent!=null?next.offsetParent.offsetWidth-(next.offsetLeft+next.offsetWidth):0;widthAncestors+=elementWidth;next=next.offsetParent;}widthAncestors-=docFrame;var widthCenter=document.body.clientWidth-(widthAncestors+widthToolPane);if(widthCenter<250)widthCenter=250;document.all["MSO_tblPageBody"].style.pixelWidth=widthCenter+widthToolPane;spDiv.style.pixelWidth=widthCenter;if(window.event.type=="load"&&document.all.MSOTlPn_TlPnCaptionSpan!=null)document.all.MSOTlPn_TlPnCaptionSpan.scrollIntoView(false);}function MSOTlPn_CheckUrl(){var toolPaneViewExpression=/[& | \?]ToolPaneView=[-0-9A-Z]*/ig;var formAction=document.forms[MSOWebPartPageFormName].action;var newUrl;newUrl=MSOMode_RemoveMode(document.forms[MSOWebPartPageFormName].action,toolPaneViewExpression);document.forms[MSOWebPartPageFormName].action=newUrl;}function MSOTlPn_Resize(M){if(MSOTlPn_prevWidth!=M.clientWidth){MSOTlPn_prevWidth=M.clientWidth;MSOTlPn_WindowResize();}if(MSOTlPn_prevHeight!=document.body.clientHeight){MSOTlPn_prevHeight=document.body.clientHeight;var spDiv=document.all["MSOTlPn_WebPartPageDiv"];spDiv.style.height="100%";spDiv.style.height=spDiv.offsetHeight;}}function MSOWebPartPage_SetupFixedWidthWebParts(){var fixedWidthTitles=document.all["MSOFixedWidthTitle"];if(fixedWidthTitles!=null){if(fixedWidthTitles.length>0)for(var elementIndex=0;elementIndex<fixedWidthTitles.length;elementIndex++){fixedWidthTitles[elementIndex].style.width=MSOWebPartPage_AllocateSpaceForFirstTD(fixedWidthTitles[elementIndex]);}else fixedWidthTitles.style.width=MSOWebPartPage_AllocateSpaceForFirstTD(fixedWidthTitles);}}function MSOWebPartPage_AllocateSpaceForFirstTD(N){var tempElement=document.createElement("DIV");tempElement.style.width=N.fixedWidth;document.body.appendChild(tempElement);var pixelSize=tempElement.offsetWidth;document.body.removeChild(tempElement);var tempTable=MSOLayout_GetParentTable(N).cloneNode(true);if(tempTable!=0){document.body.appendChild(tempTable);var tempTableRow=tempTable.rows(0);for(var index=1;index<tempTableRow.cells.length;index++){pixelSize-=tempTableRow.cells(index).offsetWidth;}document.body.removeChild(tempTable);}return pixelSize<1?1:pixelSize;}function MSOWebPartPage_FindControlName(O){var labelcollection=document.all.tags("label");if(labelcollection!=null)for(i=0;i<labelcollection.length;i++){var label=labelcollection[i];if(label.innerText==O){if(label.htmlFor.indexOf("_EDITOR")!=-1)return label.htmlFor;}}return null;}function MSOTlPn_ListViewChange(P){if(MSOTlPn_shownViewChangeWarning)return;alert(P);MSOTlPn_shownViewChangeWarning=true;}function MSOTlPn_CustomWindowResize(){var objToolPane=document.all["MSOTlPn_Tbl"];if(objToolPane==null||objToolPane.offsetWidth==0)return;objToolPane.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(Q){var prefix=Q+"=";var cookieStartIndex=document.cookie.indexOf(prefix);if(cookieStartIndex==-1)return null;var cookieEndIndex=document.cookie.indexOf(";",cookieStartIndex+prefix.length);if(cookieEndIndex==-1)cookieEndIndex=document.cookie.length;return unescape(document.cookie.substring(cookieStartIndex+prefix.length,cookieEndIndex));}function MSOTlPn_ShowAllUsersToolPane(R,S,T){MSOLayout_CheckAndSaveChanges();document.forms[MSOWebPartPageFormName].action=MSOMode_GetNewUrl(true);MSOTlPn_ShowToolPaneWrapper(R,S,T);}function MSOLayout_MakeInvisibleIfEmpty(){var allElements=document.getElementsByName("_invisibleIfEmpty");var agt=navigator.userAgent.toLowerCase();var isNav=agt.indexOf("mozilla")!=-1&&(agt.indexOf("spoofer")==-1&&agt.indexOf("compatible")==-1);var isIE=agt.indexOf("msie")!=-1;for(var curElement=0;curElement<allElements.length;curElement++){if(isIE&&allElements[curElement].childNodes.length==0||isNav&&allElements[curElement].childNodes.length<=1)allElements[curElement].style.display="none";}}function MSOLayout_GetParentRow(U){var parentRow=U.parentElement;while(parentRow.tagName!="TR"&&parentRow.tagName!="BODY"){parentRow=parentRow.parentElement;}if(parentRow.tagName!="TR")return null;else return parentRow;}function MSOLayout_GetParentTable(V){for(var currentObject=V;currentObject.tagName!="TABLE";currentObject=currentObject.parentElement){if(currentObject==document.body)return 0;}return currentObject;}

