function MSOLayout_MinimizeRestoreDownLevel(B,A,C){var D=(A=="Minimized")?"1":"0";document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=B+",chromeState,"+D;document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=C;__doPostBack(MSOWebPartPageFormName,"")}function MSOLayout_RemoveWebPartDownLevel(B,A){document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=B+",isIncluded,False";document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=22;if(A){MSOTlPn_ShowToolPane2("Browse")}else{__doPostBack(MSOWebPartPageFormName,"")}}var MSOLayout_inDesignMode=false;var MSOLayout_currentDragMode=0;var MSOLayout_zoneDragOver=0;var MSOLayout_rowToDrop=0;var MSOLayout_cellToDrop=0;var MSOLayout_oDropLocation=0;var MSOLayout_iBar=(document.createElement!=null?document.createElement("div"):null);var MSOLayout_horzZoneIBar=0;var MSOLayout_vertZoneIBar=0;var MSOLayout_horzBodyZoneIBar=0;var MSOLayout_vertBodyZoneIBar=0;var MSOLayout_moveObject=0;var MSOLayout_maintainOriginalZone=0;var MSOLayout_topObject=document.body;var MSOLayout_galleryView=0;var MSOLayout_unsavedChanges=new Array();var MSOLayout_FormSubmit=null;var MenuWebPartID=null;var MenuWebPart=null;var MSOConn_SourceWpNode=null;var MSOConn_TargetWpNode=null;var MSOConn_XformInfo1=null;var MSOConn_XformInfo2=null;var MSOConn_AspXformInfo=null;var MSOConn_ConnCancelled=false;var MSOConn_MultipleTargetGroups=false;var MSOConn_TargetGroupNode=null;var MSOConn_SourceGroupNode=null;var MSOConn_BackButtonClicked=false;function MSOLayout_RemoveQueryParametersFromUrl(A){A=RemoveQueryParameterFromUrl(A,"[p|P][a|A][g|G][e|E][v|V][i|I][e|E][w|W]");A=RemoveQueryParameterFromUrl(A,"[tT][oO][[oO][lL][pP][aA][nN][eE][vV][iE][eE][wW]");A=RemoveQueryParameterFromUrl(A,"[dD][iI][sS][pP][lL][aA][yY][mM][oO][dD][eE]");return A}function MSOLayout_ChangeLayoutMode(C,A){if(C!=null){MSOLayout_SaveChanges();var B=document.forms[MSOWebPartPageFormName].action;B=RemoveQueryParameterFromUrl(B,"[p|P][a|A][g|G][e|E][v|V][i|I][e|E][w|W]");B=RemoveQueryParameterFromUrl(B,"[tT][oO][[oO][lL][pP][aA][nN][eE][vV][iE][eE][wW]");B=RemoveQueryParameterFromUrl(B,"[dD][iI][sS][pP][lL][aA][yY][mM][oO][dD][eE]");if(B.indexOf("?")<0){B+="?"}else{B+="&"}if(C==true){document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value=1;document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value="Design";B+="PageView=Personal";document.forms[MSOWebPartPageFormName].action=B}else{document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value=1;document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value="Design";B+="PageView=Shared";document.forms[MSOWebPartPageFormName].action=B}}else{if(A!=null&&A){var B=document.forms[MSOWebPartPageFormName].action;B=RemoveQueryParameterFromUrl(B,"[tT][oO][[oO][lL][pP][aA][nN][eE][vV][iE][eE][wW]");B=RemoveQueryParameterFromUrl(B,"[dD][iI][sS][pP][lL][aA][yY][mM][oO][dD][eE]");document.forms[MSOWebPartPageFormName].MSOWebPartPage_Shared.value="";document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value=0;document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value="Browse";document.forms[MSOWebPartPageFormName].action=B}}__doPostBack(MSOWebPartPageFormName,"")}function MSOLayout_ToggleLayoutMode(){var A=document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value;if(A!=1){document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value=1;document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value="Design"}else{document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value=0;document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value="Browse"}__doPostBack(MSOWebPartPageFormName,"")}function MSOLayout_ToggleView(B){var A=document.forms[MSOWebPartPageFormName].action;A=MSOLayout_RemoveQueryParametersFromUrl(A);document.forms[MSOWebPartPageFormName].action=A;if(B==true){document.forms[MSOWebPartPageFormName].MSOWebPartPage_Shared.value="false"}else{document.forms[MSOWebPartPageFormName].MSOWebPartPage_Shared.value="true"}document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value=0;document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value="Browse";__doPostBack(MSOWebPartPageFormName,"")}function MSOLayout_SetupLayoutFlags(){MSOLayout_inDesignMode=true;MSOLayout_topObject=(document.body.all.item("MSOTlPn_WebPartPageDiv")!=null)?document.body.all.item("MSOTlPn_WebPartPageDiv"):document.body}function MSOLayout_GetRealOffset(StartingObject,OffsetType,EndParent){var realValue=0;if(!EndParent){EndParent=document.body}for(var currentObject=StartingObject;currentObject!=EndParent&&currentObject!=document.body;currentObject=currentObject.offsetParent){realValue+=eval("currentObject.offset"+OffsetType)}return realValue}function MSOLayout_MoveWebPartStart(D,C,G){if(event.button!=1){return }MSOLayout_currentDragMode="move";document.selection.empty();MSOLayout_galleryView=(G==true)?true:false;MSOLayout_CreateDragObject(C);MSOLayout_CreateIBar();MSOLayout_oDropLocation=D;MSOLayout_maintainOriginalZone=(D.allowZoneChange=="0")?MSOLayout_GetParentTable(D):"0";if(MSOLayout_galleryView&&D.dzc!=null){var B=document.all.MSOZone;if(B!=null&&B.length>1){for(i=0;i<B.length;i++){if(B[i].zoneID==D.zoneid){MSOLayout_maintainOriginalZone=B[i];break}}}}MSOLayout_iBar.goodDrop="false";var A=MSOLayout_GetParentTable(D);if(A.id=="MSOZone"){MSOLayout_zoneDragOver=A;MSOLayout_zoneDragOver.className="ms-SPZoneSelected"}if(!MSOLayout_galleryView){MSOLayout_MoveIBar(D)}document.body.attachEvent("ondragover",MSOLayout_MoveWebPartBodyDragOver);var F=document.body.ondragend;var E=document.body.ondrop;document.body.ondragend=new Function("window.event.returnValue=false;");document.body.ondrop=new Function("MSOLayout_iBar.goodDrop='true';");D.ondragstart=new Function("try {event.dataTransfer.effectAllowed='move';} catch (exception) {}");D.attachEvent("ondrag",MSOLayout_MoveDragObject);D.dragDrop();document.body.detachEvent("ondragover",MSOLayout_MoveWebPartBodyDragOver);document.body.ondragend=F;document.body.ondrop=E;D.detachEvent("ondrag",MSOLayout_MoveDragObject);MSOLayout_moveObject.style.display="none";MSOLayout_currentDragMode=0;if(navigator.userAgent.toLowerCase().indexOf("msie 5.5")!=-1){D.swapNode(D)}event.returnValue=false}function MSOLayout_MoveWebPartDragZoneEnter(A){if(MSOLayout_currentDragMode!="move"){return }if(A!=MSOLayout_zoneDragOver){MSOLayout_zoneDragOver.className="ms-SPZone";MSOLayout_zoneDragOver=A;event.dataTransfer.dropEffect="move"}MSOLayout_MoveWebPartStopEventBubble()}function MSOLayout_MoveWebPartDragEnter(A){if(MSOLayout_currentDragMode!="move"){return }event.dataTransfer.dropEffect="move";MSOLayout_cellToDrop=A.cellIndex;MSOLayout_rowToDrop=MSOLayout_GetParentRow(A).rowIndex}function MSOLayout_MoveWebPartDragOver(C,A){if(MSOLayout_currentDragMode!="move"){return }event.dataTransfer.dropEffect="move";var B=(A=="True")?true:false;MSOLayout_SetupDropLocation(C,B);MSOLayout_oDropLocation=MSOLayout_zoneDragOver.rows[MSOLayout_rowToDrop].cells[MSOLayout_cellToDrop];MSOLayout_MoveIBar(MSOLayout_oDropLocation);if(MSOLayout_galleryView&&MSOLayout_maintainOriginalZone=="0"){MSOLayout_UpdateZoneDropDown()}MSOLayout_MoveWebPartStopEventBubble()}function MSOLayout_MoveWebPartBodyDragOver(){if(MSOLayout_currentDragMode!="move"){return }event.dataTransfer.dropEffect="none";MSOLayout_iBar.style.display="none";if(MSOLayout_zoneDragOver.className!="ms-SPZone"){MSOLayout_zoneDragOver.className="ms-SPZone"}window.event.returnValue=false}function MSOLayout_MoveWebPartStopEventBubble(){if(MSOLayout_currentDragMode!="move"||MSOLayout_iBar.style.display=="none"){return }window.event.returnValue=false;window.event.cancelBubble=true}function MSOLayout_MoveWebPart(OriginalTableCell,DestinationTableCell){MSOLayout_iBar.style.display="none";MSOLayout_zoneDragOver.className="ms-SPZone";if(MSOLayout_currentDragMode!="move"||MSOLayout_iBar.goodDrop!="true"||OriginalTableCell==DestinationTableCell){return }var newTableCell;var originalZone=MSOLayout_GetParentTable(OriginalTableCell);var originalIndex=(OriginalTableCell.orientation=="Horizontal")?OriginalTableCell.cellIndex:OriginalTableCell.parentElement.rowIndex;var destinationZone;var destinationIndex;destinationZone=MSOLayout_GetParentTable(DestinationTableCell);var zonesChanged=(destinationZone!=originalZone);if(DestinationTableCell.orientation=="Horizontal"){destinationIndex=DestinationTableCell.cellIndex;newTableCell=MSOLayout_GetParentRow(DestinationTableCell).insertCell(destinationIndex)}else{destinationIndex=DestinationTableCell.parentElement.rowIndex;newTableCell=destinationZone.insertRow(MSOLayout_GetParentRow(DestinationTableCell).rowIndex).insertCell()}newTableCell.swapNode(OriginalTableCell);if(OriginalTableCell.orientation=="Horizontal"){newTableCell.removeNode(true)}else{MSOLayout_GetParentRow(newTableCell).removeNode(true)}OriginalTableCell.orientation=DestinationTableCell.orientation;if(zonesChanged){var originalEmptyZoneText=originalZone.all.item("MSOZoneCell_emptyZoneText");var destinationEmptyZoneText=destinationZone.all.item("MSOZoneCell_emptyZoneText");if(originalEmptyZoneText!=null){originalEmptyZoneText.webPartsInZone--;if(originalEmptyZoneText.webPartsInZone==0){originalEmptyZoneText.style.display="";originalEmptyZoneText.parentElement.style.padding=""}}if(destinationEmptyZoneText!=null){destinationEmptyZoneText.webPartsInZone++;destinationEmptyZoneText.style.display="none";destinationEmptyZoneText.parentElement.style.padding="0"}}if(zonesChanged||(destinationIndex!=originalIndex&&destinationIndex!=originalIndex+1)){if(originalZone!=destinationZone){MSOLayout_AddChange(eval(OriginalTableCell.relatedWebPart),"Zone",destinationZone.zoneID);MSOLayout_UpdatePartOrderAfterMove(originalZone,0)}MSOLayout_UpdatePartOrderAfterMove(destinationZone,0)}}function MSOLayout_UpdatePartOrderAfterMove(Zone,StartingIndex){var index;if(Zone.orientation=="Horizontal"){var parentRow=Zone.rows[0];for(index=StartingIndex;index<parentRow.cells.length;index++){MSOLayout_AddChange(eval(parentRow.cells[index].relatedWebPart),"ZoneIndex",index)}}else{for(index=StartingIndex;index<Zone.rows.length;index++){MSOLayout_AddChange(eval(Zone.rows[index].cells[0].relatedWebPart),"ZoneIndex",index)}}}function MSOLayout_CreateDragObject(B){var A;if(!MSOLayout_moveObject){MSOLayout_moveObject=document.body.insertAdjacentElement("afterBegin",document.createElement("DIV"));MSOLayout_moveObject.className="UserCellSelected";MSOLayout_moveObject.style.cssText="font-size:8pt;position:absolute;overflow:hidden;display:none;z-index:100";MSOLayout_moveObject.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=75)";A=MSOLayout_moveObject.insertBefore(document.createElement("NOBR"));A.style.cssText="padding-top:2px;width:147px;height:1.5em;overflow:hidden;text-overflow:ellipsis"}else{A=MSOLayout_moveObject.children(0)}A.innerText=B}function MSOLayout_MoveDragObject(){if(MSOLayout_currentDragMode!="move"){return }if(MSOLayout_moveObject.style.display=="none"){MSOLayout_moveObject.style.display=""}if(MSOLayout_moveObject.style.width==""){MSOLayout_moveObject.realWidth=MSOLayout_moveObject.offsetWidth;MSOLayout_moveObject.realHeight=MSOLayout_moveObject.offsetHeight}var D=MSOLayout_moveObject.realWidth;var A=MSOLayout_moveObject.realHeight;var C=event.clientX+document.body.scrollLeft-(D/2);var B=event.clientY+document.body.scrollTop+1;if(C+D>document.body.scrollWidth){D-=(C+D-document.body.scrollWidth)}if(B+A>document.body.scrollHeight){A-=(B+A-document.body.scrollHeight)}if(A<=0||D<=0){MSOLayout_moveObject.style.display="none";D=A=0}else{MSOLayout_moveObject.style.display=""}MSOLayout_moveObject.style.width=D;MSOLayout_moveObject.style.height=A;MSOLayout_moveObject.style.pixelLeft=C;MSOLayout_moveObject.style.pixelTop=B}function MSOLayout_CreateIBar(){if(!MSOLayout_vertZoneIBar||!MSOLayout_horzZoneIBar){var E=document.createElement("TABLE");E.style.cssText="font-size:1pt; position:absolute; display:none; border-collapse:collapse";E.className="ms-SPZoneIBar";E.cellSpacing="0";E.cellPadding="0";E.attachEvent("ondragenter",MSOLayout_MoveWebPartStopEventBubble);E.attachEvent("ondragover",MSOLayout_MoveWebPartStopEventBubble);var D=E.insertRow().insertCell();D.align="center";var B=D.insertBefore(document.createElement("DIV"));B.id="MSOLayout_insideIBar";B.className="ms-SPZoneIBar";B.style.backgroundColor=E.currentStyle.borderColor;B.style.background="transparent";B.style.borderWidth="2px";B.style.position="relative";MSOLayout_horzZoneIBar=MSOLayout_topObject.appendChild(E.cloneNode(true));MSOLayout_vertZoneIBar=MSOLayout_topObject.appendChild(E.cloneNode(true));var C=MSOLayout_horzZoneIBar.all.MSOLayout_insideIBar;var A=MSOLayout_vertZoneIBar.all.MSOLayout_insideIBar;MSOLayout_horzZoneIBar.style.width=6;MSOLayout_horzZoneIBar.style.borderStyle="solid none";C.style.height="100%";C.style.width="33%";C.style.borderStyle="none solid none none";C.style.posTop=0;MSOLayout_vertZoneIBar.style.height=6;MSOLayout_vertZoneIBar.style.borderStyle="none solid";A.style.width="100%";A.style.height="2";A.style.borderStyle="solid none none none";A.style.posTop=1;if(MSOLayout_topObject!=document.body){MSOLayout_horzBodyZoneIBar=document.body.appendChild(MSOLayout_horzZoneIBar.cloneNode(true));MSOLayout_vertBodyZoneIBar=document.body.appendChild(MSOLayout_vertZoneIBar.cloneNode(true))}}MSOLayout_iBar=MSOLayout_vertZoneIBar}function MSOLayout_MoveIBar(B){if(MSOLayout_iBar){MSOLayout_iBar.style.display="none"}var A=MSOLayout_topObject.contains(B);if(MSOLayout_maintainOriginalZone=="0"||MSOLayout_GetParentTable(B)==MSOLayout_maintainOriginalZone){var C;if(B.orientation=="Horizontal"){var D=((document.dir=="rtl")?B.offsetWidth-((B.cellIndex==0)?3:0):0);MSOLayout_iBar=(A)?MSOLayout_iBar=MSOLayout_horzZoneIBar:MSOLayout_horzBodyZoneIBar;C=MSOLayout_iBar.all.MSOLayout_insideIBar;MSOLayout_iBar.style.pixelLeft=MSOLayout_GetRealOffset(B,"Left",MSOLayout_topObject)-((B.cellIndex==0)?0:3);MSOLayout_iBar.style.pixelLeft+=D;MSOLayout_iBar.style.pixelTop=MSOLayout_GetRealOffset(MSOLayout_zoneDragOver,"Top",MSOLayout_topObject)+1;MSOLayout_iBar.style.height=MSOLayout_zoneDragOver.clientHeight;if(B.id=="MSOZone_EmptyZoneCell"){var E=B.all.item("MSOZoneCell_emptyZoneText");if(E!=null&&E.webPartsInZone>0){MSOLayout_iBar.style.pixelLeft-=3}}}else{MSOLayout_iBar=(A)?MSOLayout_vertZoneIBar:MSOLayout_vertBodyZoneIBar;C=MSOLayout_iBar.all.MSOLayout_insideIBar;MSOLayout_iBar.style.pixelLeft=MSOLayout_GetRealOffset(MSOLayout_zoneDragOver,"Left",MSOLayout_topObject)+1;MSOLayout_iBar.style.pixelTop=MSOLayout_GetRealOffset(B,"Top",MSOLayout_topObject)-((MSOLayout_GetParentRow(B).rowIndex==0)?0:4);MSOLayout_iBar.style.width=MSOLayout_zoneDragOver.clientWidth;if(B.id=="MSOZone_EmptyZoneCell"){MSOLayout_iBar.style.pixelTop-=1}}if(MSOLayout_zoneDragOver.className!="ms-SPZoneSelected"){MSOLayout_zoneDragOver.className="ms-SPZoneSelected"}MSOLayout_iBar.style.display="inline"}}function MSOLayout_UpdateZoneDropDown(){var A=document.all[zoneChooserID];if(A!=null){for(i=0;i<A.options.length;i++){if(A.options[i].value==MSOLayout_zoneDragOver.zoneID){A.options[i].selected=true}}}}function MSOLayout_SetupDropLocation(C,F){if(C.orientation=="Vertical"){var E=MSOLayout_GetParentRow(C);if(!E){return }if(C.id!="MSOZone_EmptyZoneCell"&&(!F||(event.clientY+MSOLayout_topObject.scrollTop-MSOLayout_GetRealOffset(C,"Top"))>(C.offsetHeight/2))){MSOLayout_rowToDrop=E.rowIndex+1}else{MSOLayout_rowToDrop=E.rowIndex}}else{var A=(document.dir=="rtl"),D=C.parentElement.childNodes.length,B=C.cellIndex+1;if(C.id!="MSOZone_EmptyZoneCell"&&(!F||(event.clientX+MSOLayout_topObject.scrollLeft-MSOLayout_GetRealOffset(C,"Left"))>(C.offsetWidth/2))){MSOLayout_cellToDrop=(A)?C.cellIndex:C.cellIndex+1}else{if(A){MSOLayout_cellToDrop=(B>=D)?C.cellIndex:C.cellIndex+1}else{MSOLayout_cellToDrop=C.cellIndex}}}}function MSOLayout_UpdatePropertySheet(D,B,C){var A=document.all.item("MSOTlPn_MainTD");if(D.SelectedWebPart&&A){for(Elements=A.all,ElementIndex=0;ElementIndex<Elements.length;ElementIndex++){if(Elements[ElementIndex].layoutID==B){if(B=="ChromeState"){for(radioElements=Elements[ElementIndex].all,radioIndex=0;radioIndex<radioElements.length;radioIndex++){if(radioElements[radioIndex].value==C){radioElements[radioIndex].checked=true;break}}}else{if(B=="Height"||B=="Width"){for(radioElements=Elements[ElementIndex].all,radioIndex=0;radioIndex<radioElements.length;radioIndex++){if(radioElements[radioIndex].id.indexOf("YesOption")!=-1){radioElements[radioIndex].checked=true}else{if(radioElements[radioIndex].id.indexOf("SizeTextBox")!=-1){radioElements[radioIndex].value=C}else{if(radioElements[radioIndex].id.indexOf("UnitsDropdown")!=-1){radioElements[radioIndex].value="Pixel"}}}}}else{Elements[ElementIndex].value=C}}}}}}function MSOLayout_MinimizeRestore(C){var B;var A;if(C.style.display!="none"){B="Minimized";A=1;C.style.display="none"}else{B="Normal";A=0;C.style.display=""}MSOLayout_UpdatePropertySheet(C,"ChromeState",B);MSOLayout_AddChange(C,"chromeState",A)}function MSOLayout_PageViewerMinimizeRestore(C,A){var B=document.all.item(A);if(B!=null){if(C.style.display!="none"){if(B.src!=B.ddf_src){B.src=B.ddf_src}}}}function MSOLayout_FindAncestorByAttribute(A,B){while(A!=null){if(A.getAttribute(B)!=null){break}A=A.parentElement}return A}function MSOLayout_MinimizeRestoreToolPart(C,B,F,D,G){var J=C+"ChromeState";var E=C+"Chrome";var H;var A;if(document.all.item(E).style.display=="none"){document.all.item(E).style.display="inline";document.images[F].src="/_layouts/images/TPMin1.gif";A=MSOStrings.ToolPartCollapseToolTip;H="Normal"}else{document.all.item(E).style.display="none";document.images[F].src="/_layouts/images/TPMax1.gif";A=MSOStrings.ToolPartExpandToolTip;H="Minimized"}var I=A.replace("%0",B);document.images[F].alt=I;document.all.item(G).title=I;document.all.item(D).title=I;if(document.all[J]!=null){document.all[J].value=H}}function MSOLayout_RemoveWebPart(A){MSOLayout_AddChange(A,"isIncluded","False");document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=19;if(A.SelectedWebPart){MSOTlPn_onToolPaneCloseClick()}else{__doPostBack(MSOWebPartPageFormName,"")}}function MSOLayout_RefreshIFrame(A){document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=23;A.src=A.src}function MSOLayout_GetStyleFromClass(sClass,sRule){document.body.insertAdjacentHTML("beforeEnd","<div style='display:none' id='temp' class='"+sClass+"'></div>");var sReturnValue=eval("temp.currentStyle."+sRule);temp.removeNode();return sReturnValue}function MSOLayout_AddChange(E,B,D){if(!E){return }var C=E.WebPartID;if(E.layoutChanges){var A=MSOLayout_SearchArray(E.layoutChanges,B);if(A!=-1){E.layoutChanges[A+1]=D}else{E.layoutChanges.push(B);E.layoutChanges.push(D)}}else{E.layoutChanges=new Array();E.layoutChanges.push(B);E.layoutChanges.push(D)}if(MSOLayout_SearchArray(MSOLayout_unsavedChanges,C)==-1){MSOLayout_unsavedChanges.push(((MSOLayout_unsavedChanges.length)?"|":"")+C);MSOLayout_unsavedChanges.push(E.layoutChanges)}document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=MSOLayout_unsavedChanges;MSOLayout_UpdatePropertySheet(E,B,D);if(MSOLayout_FormSubmit==null){MSOLayout_FormSubmit=document.forms[MSOWebPartPageFormName].submit;document.forms[MSOWebPartPageFormName].submit=new Function("MSOLayout_OnSubmit(); MSOLayout_FormSubmit();");document.forms[MSOWebPartPageFormName].attachEvent("onsubmit",MSOLayout_OnSubmit);window.attachEvent("onunload",MSOLayout_SaveChanges)}}function MSOLayout_OnSubmit(){window.detachEvent("onunload",MSOLayout_SaveChanges)}function MSOLayout_SaveChanges(){if(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges!=null&&document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value!=""){var B=document.URLUnencoded;var D=/\#/;var E=B.search(D);if(E!=-1){B=B.substring(0,E)}B=encodeURI(B);var A=new ActiveXObject("Microsoft.XMLHTTP");A.Open("POST",B,false);var C="&__REQUESTDIGEST="+URLEncode(document.forms[MSOWebPartPageFormName].__REQUESTDIGEST.value)+"&MSOLayout_LayoutChanges="+URLEncode(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value);A.setRequestHeader("Content-Type","application/x-www-form-urlencoded");A.Send(C);document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=""}}function MSOLayout_SearchArray(C,A){for(var B=0;B<C.length;B++){if(C[B]==A||C[B]=="#"+A){return B}}return -1}function MSOWebPartPage_OpenMenu(M,L,C,I){if(C){MenuWebPart=C;MenuWebPartID=C.WebPartID;var J=M.all.item("MSOMenu_Minimize");var E=M.all.item("MSOMenu_Restore");var D=M.all.item("MSOMenu_Close");var K=M.all.item("MSOMenu_Delete");var B=M.all.item("MSOMenu_Export");var H=M.all.item("MSOMenu_RestorePartDefaults");var G=M.all.item("MSOMenu_Help");var F=M.all.item("MSOMenu_Connections");if(J){J.style.display=(C.allowMinimize=="false"||C.style.display=="none")?"none":""}if(E){E.style.display=(C.allowMinimize=="false"||C.style.display!="none")?"none":""}if(D){D.style.display=(C.allowRemove=="false")?"none":""}if(K){K.style.display=(MSOLayout_inDesignMode&&C.allowDelete!="false")?"":"none"}if(B){B.style.display=(C.allowExport=="false")?"none":""}if(G){G.style.display=(C.helpLink==null)?"none":""}if(H){H.style.display=(MSOLayout_inDesignMode&&C.HasPers=="true"&&C.OnlyForMePart!="true")?"":"none"}if(F){F.style.display=(MSOLayout_inDesignMode?"":"none")}if(I!="False"){var A=document.all.item("MSOMenu_Connections"+C.id);if(F!=null&&A!=null){F.outerHTML=A.innerHTML}}}MenuHtc_show(M,L,true,null,null);return true}function MSOConn_IsXFormUINeeded(){var C=MSOConn_TargetGroupNode.selectSingleNode("tInterface");var B=false;var A=C.selectSingleNode("xForm");if(A!=null&&C.selectSingleNode("mi").getAttribute("isXFormUINeeded")=="True"){B=true;if(MSOConn_TargetGroupNode.getAttribute("isConn")=="True"){document.all.MSOConn_Button.value="edit"}if(A.getAttribute("type")=="RowCellTransform"){MSOConn_ShowRowCellXForm(C)}else{if(A.getAttribute("type")=="RowFilterTransform"){MSOConn_ShowRowFilterXForm(C)}else{MSOConn_ShowAspXForm(C)}}}if(!B&&MSOConn_TargetGroupNode.getAttribute("isConn")=="True"&&MSOConn_BackButtonClicked==false){document.all.MSOConn_Button.value="remove"}}function MSOConn_ShowRowFilterXForm(targetInterface){var rowProInitArgNode;var filConInitArgNode;var providerPart;var consumerPart;var sMatchInterfaceName=targetInterface.selectSingleNode("mi").getAttribute("id");var xFormInfo=targetInterface.selectSingleNode("mi").getAttribute("xInfo");var sInterfaceNode=MSOConn_SourceGroupNode.selectSingleNode("sInterfaces/sInterface[@id='"+sMatchInterfaceName+"']");rowProInitArgNode=targetInterface.selectSingleNode("InitEventArgs/RowProviderInitEventArgs");var isConnected=MSOConn_TargetGroupNode.getAttribute("isConn");if(rowProInitArgNode==null){rowProInitArgNode=sInterfaceNode.selectSingleNode("InitEventArgs/RowProviderInitEventArgs");filConInitArgNode=targetInterface.selectSingleNode("InitEventArgs/FilterConsumerInitEventArgs");consumerPart=MSOConn_TargetWpNode;providerPart=MSOConn_SourceWpNode}else{filConInitArgNode=sInterfaceNode.selectSingleNode("InitEventArgs/FilterConsumerInitEventArgs");consumerPart=MSOConn_SourceWpNode;providerPart=MSOConn_TargetWpNode}if(rowProInitArgNode!=null&&filConInitArgNode!=null){var rowFieldList=new Array();var rowFieldDisplayList=new Array();var rowFieldListNodes=rowProInitArgNode.selectNodes("Field");var filterFieldListNodes=filConInitArgNode.selectNodes("Field");var filterFieldList=new Array();var filterFieldDisplayList=new Array();if(rowFieldListNodes==null||rowFieldListNodes.length==0){var cref=rowProInitArgNode.getAttribute("cref");if(cref!=null){var strVal=cref+".GetInitEventArgs()";var args=null;try{args=eval(strVal)}catch(e){}if(args!=null){rowFieldList=args.FieldList;rowFieldDisplayList=args.FieldDisplayList}}}else{for(var i=0;i<rowFieldListNodes.length;i++){var displayListSet=false;rowFieldList[i]=rowFieldListNodes[i].getAttribute("FieldName");if(rowFieldListNodes[i].getAttribute("FieldDisplayName")!=null){rowFieldDisplayList[i]=rowFieldListNodes[i].getAttribute("FieldDisplayName");displayListSet=true}else{if(displayListSet==true){rowFieldDisplayList=null}}}}if(filterFieldListNodes==null||filterFieldListNodes.length==0){var cref=filConInitArgNode.getAttribute("cref");if(cref!=null){var strVal=cref+".GetInitEventArgs()";var args=null;try{args=eval(strVal)}catch(e){}if(args!=null){filterFieldList=args.FieldList;filterFieldDisplayList=args.FieldDisplayList}}}else{for(var i=0;i<filterFieldListNodes.length;i++){var displayListSet=false;filterFieldList[i]=filterFieldListNodes[i].getAttribute("FieldName");if(filterFieldListNodes[i].getAttribute("FieldDisplayName")!=null){filterFieldDisplayList[i]=filterFieldListNodes[i].getAttribute("FieldDisplayName");displayListSet=true}else{if(displayListSet==true){filterFieldDisplayList=null}}}}if((rowFieldList!=null&&rowFieldList.length!=0&&filterFieldList!=null&&filterFieldList.length!=0)||isConnected=="True"){var rfxFormInfo;var rowList=rowFieldList;if(rowFieldDisplayList!=null&&rowFieldDisplayList.length==rowFieldList.length){rowList=rowFieldDisplayList}var sFeatures="dialogHeight:210px;dialogWidth:460px;center:yes;help:no;status:no;scroll:no;resizable:no;";var url=document.all.MSOConn_RFProXform.value+"?part=provider";var arguments=new Array(rowList,isConnected,providerPart.getAttribute("title"),consumerPart.getAttribute("title"),MSOConn_MultipleTargetGroups,xFormInfo,rowFieldList);var rfxFormInfoRowIndex=showModalDialog(url,arguments,sFeatures);if(rfxFormInfoRowIndex==null||rfxFormInfoRowIndex=="undefined"){MSOConn_ConnCancelled=true}else{if(rfxFormInfoRowIndex=="remove"){document.all.MSOConn_Button.value="remove";rfxFormInfo=""}else{if(rfxFormInfoRowIndex=="choose"){MSOConn_ShowTargetGroupsDialog();MSOConn_ShowXFormsAndPersist();MSOConn_ConnCancelled=true}else{var filterList=filterFieldList;if(filterFieldDisplayList!=null&&filterFieldList.length==filterFieldDisplayList.length){filterList=filterFieldDisplayList}var selectedRowDisplayFieldName=rowList[rfxFormInfoRowIndex];arguments=new Array(filterList,selectedRowDisplayFieldName,isConnected,consumerPart.getAttribute("title"),xFormInfo,filterFieldList);var rfxFormInfoFilterIndex=showModalDialog(document.all.MSOConn_RFConXform.value,arguments,sFeatures);if(rfxFormInfoFilterIndex==null){MSOConn_ConnCancelled=true}else{if(rfxFormInfoFilterIndex=="remove"){document.all.MSOConn_Button.value="remove";rfxFormInfo=""}else{if(rfxFormInfoFilterIndex=="previous"){MSOConn_ShowRowFilterXForm(targetInterface)}else{if(MSOConn_ConnCancelled!=true){MSOConn_XformInfo1=filterFieldList[rfxFormInfoFilterIndex];MSOConn_XformInfo2=rowFieldList[rfxFormInfoRowIndex]}}}}}}}}else{MSOConn_InitArgsError();MSOConn_ConnCancelled=true}}else{MSOConn_InitArgsError();MSOConn_ConnCancelled=true}}function MSOConn_ShowRowCellXForm(targetInterface){var rowProInitArgNode=null;var cellConInitArgNode=null;var providerPart=null;var consumerPart=null;var rcxFormInfo=null;var sMatchInterfaceName=targetInterface.selectSingleNode("mi").getAttribute("id");var xFormInfo=targetInterface.selectSingleNode("mi").getAttribute("xInfo");var sInterfaceNode=MSOConn_SourceGroupNode.selectSingleNode("sInterfaces/sInterface[@id='"+sMatchInterfaceName+"']");rowProInitArgNode=targetInterface.selectSingleNode("InitEventArgs/RowProviderInitEventArgs");var isConnected=MSOConn_TargetGroupNode.getAttribute("isConn");if(rowProInitArgNode==null){rowProInitArgNode=sInterfaceNode.selectSingleNode("InitEventArgs/RowProviderInitEventArgs");cellConInitArgNode=targetInterface.selectSingleNode("InitEventArgs/CellConsumerInitEventArgs");providerPart=MSOConn_SourceWpNode;consumerPart=MSOConn_TargetWpNode}else{cellConInitArgNode=sInterfaceNode.selectSingleNode("InitEventArgs/CellConsumerInitEventArgs");providerPart=MSOConn_TargetWpNode;consumerPart=MSOConn_SourceWpNode}if(rowProInitArgNode!=null&&cellConInitArgNode!=null){var fieldList=new Array();var fieldDisplayList=new Array();var fieldListNodes=rowProInitArgNode.selectNodes("Field");if(fieldListNodes==null||fieldListNodes.length==0){var cref=rowProInitArgNode.getAttribute("cref");if(cref!=null){var strVal=cref+".GetInitEventArgs()";var args=null;try{args=eval(strVal)}catch(e){}if(args!=null){fieldList=args.FieldList;fieldDisplayList=args.FieldDisplayList}}}else{for(var i=0;i<fieldListNodes.length;i++){var displayListSet=false;fieldList[i]=fieldListNodes[i].getAttribute("FieldName");if(fieldListNodes[i].getAttribute("FieldDisplayName")!=null){fieldDisplayList[i]=fieldListNodes[i].getAttribute("FieldDisplayName");displayListSet=true}else{if(displayListSet==true){fieldDisplayList=null}}}}var cell=cellConInitArgNode.getAttribute("FieldName");var cellDisplayName=cellConInitArgNode.getAttribute("FieldDisplayName");if(cell==null){var cref=cellConInitArgNode.getAttribute("cref");if(cref!=null){var strVal=cref+".GetInitEventArgs()";var args=null;try{args=eval(strVal)}catch(e){}if(args!=null){cell=args.FieldName;cellDisplayName=args.cellDisplayName}}}if((fieldList!=null&&fieldList.length!=0&&cell!=null)||isConnected=="True"){var cellName=cell;var rowList=fieldList;if(fieldDisplayList!=null&&fieldDisplayList.length==fieldList.length){rowList=fieldDisplayList}if(cellDisplayName!=null){cellName=cellDisplayName}var arguments=new Array(rowList,cellName,isConnected,providerPart.getAttribute("title"),consumerPart.getAttribute("title"),MSOConn_MultipleTargetGroups,xFormInfo,fieldList);var sFeatures="dialogHeight:210px;dialogWidth:460px;center:yes;help:no;status:no;scroll:no;resizable:no;";var rcxFormInfoIndex=showModalDialog(document.all.MSOConn_RCXform.value,arguments,sFeatures);if(rcxFormInfoIndex=="undefined"||rcxFormInfoIndex==null){MSOConn_ConnCancelled=true}else{if(rcxFormInfoIndex=="remove"){document.all.MSOConn_Button.value="remove";rcxFormInfo=""}else{if(rcxFormInfoIndex=="choose"){MSOConn_ShowTargetGroupsDialog();MSOConn_ShowXFormsAndPersist();MSOConn_ConnCancelled=true}else{rcxFormInfo=fieldList[rcxFormInfoIndex]}}}}else{MSOConn_InitArgsError();MSOConn_ConnCancelled=true}}else{MSOConn_InitArgsError();MSOConn_ConnCancelled=true}if(rcxFormInfo!=null&&MSOConn_ConnCancelled!=true){MSOConn_XformInfo1=rcxFormInfo}}function MSOConn_ShowAspXForm(K){var J=K.selectSingleNode("xForm");var C=J.getAttribute("type");var I=K.selectSingleNode("mi").getAttribute("xInfo");var F=MSOConn_TargetGroupNode.getAttribute("isConn");var D=K.getAttribute("id");var G;if(MSOConn_MultipleTargetGroups){G="True"}else{G="False"}var L="dialogHeight:210px;dialogWidth:460px;center:yes;help:no;status:no;scroll:no;resizable:no;";var B=document.all.MSOConn_AspXformUrl.value;B+="?pageUrl=";B+=escapeProperly(document.location.href);B+="&sWpId=";B+=escapeProperly(document.all.MSOConn_SWpId.value);B+="&sGroupId=";B+=escapeProperly(document.all.MSOConn_SGroupId.value);B+="&tWpId=";B+=escapeProperly(document.all.MSOConn_TWpId.value);B+="&tGroupId=";B+=escapeProperly(D);B+="&xFormType=";B+=escapeProperly(C);B+="&xFormInfo=";B+=escapeProperly(I);B+="&isMultiGroup=";B+=escapeProperly(G);B+="&isConnected=";B+=escapeProperly(F);var A=window.showModalDialog(B,null,L);if(A==null){A=new Array(null,null)}var E=A[0];var H=A[1];if(E=="undefined"||E==null){MSOConn_ConnCancelled=true}else{if(E=="remove"){document.all.MSOConn_Button.value="remove";H=""}else{if(E=="choose"){MSOConn_ShowTargetGroupsDialog();MSOConn_ShowXFormsAndPersist();MSOConn_ConnCancelled=true}}}if(H!=null&&MSOConn_ConnCancelled!=true){MSOConn_AspXformInfo=H}}function MSOConn_InitArgsError(){document.body.style.cursor="auto";alert(MSOStrings.NoInitArgs)}function MSOConn_ShowTargetGroupsDialog(){var E=false;if(MSOConn_TargetWpNode.selectNodes("tg")!=null&&MSOConn_TargetWpNode.selectNodes("tg").length!=0){var A=MSOConn_TargetWpNode.selectNodes("tg");if(A!=null){for(i=0;i<A.length;i++){var F=A.item(i);if(F.getAttribute("isConn")=="True"){E=true;MSOConn_TargetGroupNode=F;break}}}if(!E){var D="dialogHeight:210px;dialogWidth:460px;center:yes;help:no;status:no;scroll:no;resizable:no;";var C=showModalDialog(document.all.MSOConn_GroupUrl.value,MSOConn_TargetWpNode,D);if(C!=null){document.all.MSOConn_Button.value=C[0];var A=MSOConn_TargetWpNode.selectNodes("tg");for(var B=0;A.length;B++){if(A[B].getAttribute("id")==C[1]){MSOConn_TargetGroupNode=A[B];break}}}else{MSOConn_ConnCancelled=true}}}else{MSOConn_ConnCancelled=true}}function MSOConn_ConfirmRemoveConnection(D,E){var C=MSOStrings.RemoveConnection;var B=new Array();B[0]=D;B[1]=E;if(B!=null){for(var A=0;A<B.length;A++){C=C.replace("%"+A,B[A])}}return C}function MSOConn_ShowXFormsAndPersist(){if(!MSOConn_ConnCancelled&&MSOConn_TargetGroupNode!=null){if(document.all.MSOConn_Button.value!="remove"){MSOConn_IsXFormUINeeded()}if(!MSOConn_ConnCancelled){if(document.all.MSOConn_Button.value=="remove"){var A=MSOConn_ConfirmRemoveConnection(MSOConn_SourceWpNode.getAttribute("title"),MSOConn_TargetWpNode.getAttribute("title"));if(confirm(A)){MSOConn_PersistConnection()}}else{MSOConn_PersistConnection()}}}document.all.MSOConn_Button.value="none";MSOConn_ConnCancelled=false;MSOConn_XformInfo1=null;MSOConn_XformInfo2=null;MSOConn_AspXformInfo=null;MSOConn_SourceWpNode=null;MSOConn_TargetWpNode=null;MSOConn_MultipleTargetGroups=false;MSOConn_TargetGroupNode=null;MSOConn_SourceGroupNode=null}function MSOConn_CreateConnectionStep1(H,A,J,B,I,C,G,E){document.all.MSOConn_SWpId.value=H;document.all.MSOConn_TWpId.value=A;document.all.MSOConn_SGroupId.value=I;document.all.MSOConn_Button.value="save";document.all.MSOConn_TGroupId.value="";document.all.MSOConn_XForm1.value="";document.all.MSOConn_XForm2.value="";document.all.MSOConn_AspXForm.value="";var F=true;if(E){document.all.MSOConn_TGroupId.value=E}if(C=="True"&&E!=null&&G!=null&&G=="False"){var D=MSOConn_ConfirmRemoveConnection(J,B);if(confirm(D)){document.all.MSOConn_Button.value="remove"}else{F=false}}else{if(C=="True"&&E==null){document.all.MSOConn_Button.value="edit"}}if(F==true){document.all.MSOConn_CreationStep.value="1";document.body.style.cursor="wait";__doPostBack(MSOWebPartPageFormName,"")}}function MSOConn_CreateConnectionStep2(I,A,C,D,J,G){var O=null;var B=null;document.all.MSOConn_SWpId.value=I;document.all.MSOConn_TWpId.value=A;document.all.MSOConn_SGroupId.value=J;document.all.MSOConn_TGroupId.value=G;var H=MSOConn_Compatibility.selectSingleNode("ConnDesign/sWebPart[@id='MSOConn_"+C+"']");if(H!=null){MSOConn_SourceWpNode=H;var L=null;var M=H.selectNodes("sg");for(var F=0;M.length;E++){if(M[F].getAttribute("id")==J){L=M[F];break}}if(L!=null){MSOConn_SourceGroupNode=L;var N=L.selectSingleNode("tParts/tWebPart[@id='MSOConn_"+D+"']");if(N!=null){MSOConn_TargetWpNode=N;if(!G){MSOConn_MultipleTargetGroups=true;MSOConn_ShowTargetGroupsDialog()}else{var K=N.selectNodes("tg");for(var E=0;K.length;E++){if(K[E].getAttribute("id")==G){MSOConn_TargetGroupNode=K[E];break}}}MSOConn_ShowXFormsAndPersist()}}}document.body.style.cursor="auto"}function MSOConn_PersistConnection(){document.all.MSOConn_SGroupId.value=MSOConn_SourceGroupNode.getAttribute("id");document.all.MSOConn_TGroupId.value=MSOConn_TargetGroupNode.getAttribute("id");if(document.all.MSOConn_Button.value!="remove"&&document.all.MSOConn_Button.value!="edit"){document.all.MSOConn_Button.value="save"}if(MSOConn_XformInfo1!=null){document.all.MSOConn_XForm1.value=MSOConn_XformInfo1}if(MSOConn_XformInfo2!=null){document.all.MSOConn_XForm2.value=MSOConn_XformInfo2}if(MSOConn_AspXformInfo!=null){document.all.MSOConn_AspXForm.value=MSOConn_AspXformInfo}__doPostBack(MSOWebPartPageFormName,"")}function MSOLayout_ShowErrorDetails(){var A=event.srcElement.parentElement;MSOLayout_ShowHideErrorDetails(A.nextSibling,A)}function MSOLayout_HideErrorDetails(){var A=event.srcElement.parentElement.parentElement;MSOLayout_ShowHideErrorDetails(A.previousSibling,A)}function MSOLayout_ShowHideErrorDetails(A,B){B.style.display="none";A.style.display="inline"}function MSOLayout_ShowQuickAddDialog(B,J,D,G,C,H,F,E,I,K){var A="?SiteId="+B+"&WebId="+J;if(D!=""){A+="&Groups="+D}if(G==false){A+="&ShowListsAndLibraries=false"}A+="&NumberOfWebPartsInZone="+C;A+="&MaxWebPartsInZone="+H;if(E!=""){A+="&ZoneDisplayName="+E}commonShowModalDialog(I+A,K,F)}var MSOTlPn_prevBuilder=null;var MSOTlPn_prevWidth=0;var MSOTlPn_prevHeight=0;var MSOTlPn_shownViewChangeWarning=false;var MSOWebPartPage_hideNextBeforeUnload=false;var MSOWebPartPage_partDeleted="";var MSOChangeInToolPaneWidth=120;function ConvertToAspPartDisplayMode(A){var B;switch(A){case"-1":B="ExtensibleView";break;case"0":B="Browse";break;case"1":B="Edit";break;case"2":B="Catalog";break;case"3":B="GallerySearch";break;case"4":B="Navigation";break;case"5":B="Import";break;case"6":B="DownLevelWebPartMenu";break;case"7":B="ToolPaneErr";break}return B}function MSOTlPn_ShowToolPane2(A){if(document.forms[MSOWebPartPageFormName].MSOGallery_FilterVisible){document.forms[MSOWebPartPageFormName].MSOGallery_FilterVisible.value="false"}document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value=A;if(arguments.length>1){document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_StartWebPartEditingName.value="true";document.forms[MSOWebPartPageFormName].MSOTlPn_SelectedWpId.value=arguments[1]}__doPostBack(MSOWebPartPageFormName,"")}function MSOTlPn_ShowToolPane2Wrapper(A,B){document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=B;if(arguments[2]==null){MSOTlPn_ShowToolPane2(A)}else{MSOTlPn_ShowToolPane2(A,arguments[2])}}function MSOTlPn_ShowToolPane(A){if(arguments.length>1){MSOTlPn_ShowToolPane2(ConvertToAspPartDisplayMode(A),arguments[1])}else{MSOTlPn_ShowToolPane2(ConvertToAspPartDisplayMode(A))}}function MSOTlPn_ShowToolPaneWrapper(A,B){if(arguments[2]==null){MSOTlPn_ShowToolPane2Wrapper(ConvertToAspPartDisplayMode(A),B)}else{MSOTlPn_ShowToolPane2Wrapper(ConvertToAspPartDisplayMode(A),B,arguments[2])}}function MSOLayout_CheckAndSaveChanges(){if(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges!=null&&document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value!=""){MSOLayout_SaveChanges()}}function MSOWebPartPage_ExportCheckWarning(B,A){var D=true;if(A){if(!confirm(MSOStrings.ExportPersonalizationDialogText)){D=false}}if(D){var C=false;if(typeof (MSOWPSC_SavePerformed)=="boolean"){C=MSOWPSC_SavePerformed}MSOWebPartPage_SetWindowLocation(B);if(typeof (MSOWPSC_SavePerformed)=="boolean"){MSOWPSC_SavePerformed=C;MSOWebPartPage_hideNextBeforeUnload=true}}}function MSOMode_SetMode(B){var D=MSOMode_GetNewUrl(B);MSOLayout_CheckAndSaveChanges();if(document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value!="Navigation"){document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value="Browse";var C=/[& | \?]ToolPaneView=[-0-9A-Z]*/ig;var A=/[& | \?]DisplayMode=[a-zA-Z]*/ig;D=MSOMode_RemoveMode(D,C);D=MSOMode_RemoveMode(D,A)}document.forms[MSOWebPartPageFormName].MSOWebPartPage_Shared.value=B?"true":"false";document.forms[MSOWebPartPageFormName].action=D;__doPostBack(MSOWebPartPageFormName,"")}function MSOMode_GetNewUrl(A,E){if(E==null){E=document.location.href}var B=/[& | \?]PageView=Personal/ig;var D=/[& | \?]PageView=Shared/ig;var C="PageView="+(A?"Shared":"Personal");E=MSOMode_RemoveMode(E,B);E=MSOMode_RemoveMode(E,D);E=MSOMode_AddMode(E,D,C);return E}function MSOMode_RemoveMode(E,B){var F=/\#/;var H=E.search(F);if(H!=-1){E=E.substring(0,H)}var D=/\?/;var A=E.search(D);if(A!=-1){var C=E.substring(0,A);var G=E.substring(A,E.length);G=G.replace(B,"");if(G.length!=0&&G.charAt(0)!="?"){G="?"+G}E=C+G}return E}function MSOMode_AddMode(E,B,D){var F=/\#/;var H=E.search(F);if(H!=-1){E=E.substring(0,H)}var C=/\?/;var A=E.search(C);if(A==-1){E+="?"+D}else{var G=E.substring(A,E.length);if(G.search(B)==-1){E+="&"+D}}return E}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(A,C,B){var D=showModalDialog(A,C,B);C.value=D}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,B){var C=document.forms[MSOWebPartPageFormName];var A=C.__EVENTTARGET;var E=C.__EVENTARGUMENT;if(A==null){A=document.createElement("INPUT");A.style.display="none";A.name="__EVENTTARGET";document.forms[MSOWebPartPageFormName].appendChild(A)}if(E==null){E=document.createElement("INPUT");E.style.display="none";E.name="__EVENTARGUMENT";document.forms[MSOWebPartPageFormName].appendChild(E)}__doPostBack(D,B)}function MSOWebPartPage_SignIn(){var A=document.createElement("INPUT");A.type="hidden";A.name="MSOWebPartPage_AnonymousAccessLogIn";A.value="1";document.forms[MSOWebPartPageFormName].appendChild(A);__doPostBack(MSOWebPartPageFormName,"")}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,C){if(C==0||C==1){if(C==0){var B="edge: Sunken; center: yes; help: no; resizable: yes; status: no";window.commonShowModalDialog(A,B)}else{window.open(A,null,"scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no")}}else{if(C==2){window.location=A}}}function MSOTlPn_onToolPaneCloseClick(){var A="Browse";var B="49";MSOTlPn_ShowToolPane2Wrapper(A,B)}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,G,D,F,I,H){var M=A+"_STATEFIELD";var J;var L=document.getElementById(A);var C=document.getElementById(G);var E=document.getElementById(D);var B=document.getElementById(H);if(L.style.display=="none"){L.style.display="";C.src="/_layouts/images/TPMin2.gif";C.alt=I;B.title=I;E.title=I;J="1"}else{L.style.display="none";C.src="/_layouts/images/TPMax2.gif";C.alt=F;B.title=F;E.title=F;J="0"}var K=document.getElementById(M);if(K!=null){K.value=J}}function MSOTlPn_onToolPaneMaxClick(){var D=1;var E=document.all.MSOTlPn_minMaxIcon;var B=E.src.substring(0,E.src.lastIndexOf("/")+1);if(document.forms[MSOWebPartPageFormName].MSOTlPn_Maximized.value=="False"){document.all.MSOTlPn_Tbl.style.width=(parseInt(document.all.MSOTlPn_Tbl.offsetWidth)+MSOChangeInToolPaneWidth).toString()+"px";B+=((document.dir=="rtl")?"tpmax.gif":"tpmin.gif");E.title=MSOStrings.ToolPaneShrinkToolTip;E.alt=MSOStrings.ToolPaneShrinkToolTip;E.parentElement.title=MSOStrings.ToolPaneShrinkToolTip;document.forms[MSOWebPartPageFormName].MSOTlPn_Maximized.value="True"}else{document.all.MSOTlPn_Tbl.style.width="225px";B+=((document.dir=="rtl")?"tpmin.gif":"tpmax.gif");E.title=MSOStrings.ToolPaneWidenToolTip;E.alt=MSOStrings.ToolPaneWidenToolTip;E.parentElement.title=MSOStrings.ToolPaneWidenToolTip;D=-1;document.forms[MSOWebPartPageFormName].MSOTlPn_Maximized.value="False"}E.src=B;var A=document.all.MSOTlPn_Tbl;for(var C=0;C<A.all.length;C++){if(A.all(C).getAttribute("ms-TlPnWiden")=="true"){A.all(C).style.pixelWidth+=D*MSOChangeInToolPaneWidth}}}function MSOTlPn_WindowResize(){var C=document.all.MSOTlPn_MainTD;if(C==null||C.offsetWidth==0){return }var G=C.offsetWidth;var E=(document.body.offsetWidth-document.body.clientWidth);var F=document.all.MSOTlPn_WebPartPageDiv;if((F.offsetWidth+C.offsetWidth)==document.body.clientWidth){return }var H=0;var B=F.offsetParent;var D=0;while(B!=null){if(document.dir!="rtl"){D=B.offsetLeft+(B.offsetWidth-(B.clientLeft+B.clientWidth));if(B.offsetParent!=null){D+=B.offsetParent.clientLeft}}else{D=(B.offsetParent!=null)?(B.offsetParent.offsetWidth-(B.offsetLeft+B.offsetWidth)):0}H+=D;B=B.offsetParent}H-=E;var A=document.body.clientWidth-(H+G);if(A<250){A=250}document.all.MSO_tblPageBody.style.pixelWidth=A+G;F.style.pixelWidth=A;if(window.event.type=="load"&&document.all.MSOTlPn_TlPnCaptionSpan!=null){document.all.MSOTlPn_TlPnCaptionSpan.scrollIntoView(false)}}function MSOTlPn_CheckUrl(){var C=/[& | \?]ToolPaneView=[-0-9A-Z]*/ig;var A=/[& | \?]DisplayMode=[a-zA-Z]*/ig;var B=document.forms[MSOWebPartPageFormName].action;var D;D=MSOMode_RemoveMode(document.forms[MSOWebPartPageFormName].action,C);D=MSOMode_RemoveMode(document.forms[MSOWebPartPageFormName].action,A);document.forms[MSOWebPartPageFormName].action=D}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 B=document.all.MSOFixedWidthTitle;if(B!=null){if(B.length>0){for(var A=0;A<B.length;A++){B[A].style.width=MSOWebPartPage_AllocateSpaceForFirstTD(B[A])}}else{B.style.width=MSOWebPartPage_AllocateSpaceForFirstTD(B)}}}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 E=MSOLayout_GetParentTable(F).cloneNode(true);if(E!=0){document.body.appendChild(E);var B=E.rows(0);for(var D=1;D<B.cells.length;D++){C-=B.cells(D).offsetWidth}document.body.removeChild(E)}return(C<1)?1:C}function MSOWebPartPage_FindControlName(B){var C=document.all.tags("label");if(C!=null){for(i=0;i<C.length;i++){var A=C[i];if(A.innerText==B){if(A.htmlFor.indexOf("_EDITOR")!=-1){return(A.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(A){var C=A+"=";var B=document.cookie.indexOf(C);if(B==-1){return null}var D=document.cookie.indexOf(";",B+C.length);if(D==-1){D=document.cookie.length}return unescape(document.cookie.substring(B+C.length,D))}function MSOTlPn_ShowAllUsersToolPane(B,A,C){MSOLayout_CheckAndSaveChanges();document.forms[MSOWebPartPageFormName].action=MSOMode_GetNewUrl(true);MSOTlPn_ShowToolPane2Wrapper(B,A,C)}function MSOLayout_MakeInvisibleIfEmpty(){var D=document.getElementsByName("_invisibleIfEmpty");var E=navigator.userAgent.toLowerCase();var B=((E.indexOf("mozilla")!=-1)&&((E.indexOf("spoofer")==-1)&&(E.indexOf("compatible")==-1)));var C=(E.indexOf("msie")!=-1);for(var A=0;A<D.length;A++){if((C&&D[A].childNodes.length==0)||(B&&D[A].childNodes.length<=1)){D[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};