function MSOLayout_MinimizeRestoreDownLevel(_1,_2,_3){
var _4=(_2=="Minimized")?"1":"0";
document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=_1+",frameState,"+_4;
document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=_3;
document.forms[MSOWebPartPageFormName].submit();
}
function MSOLayout_RemoveWebPartDownLevel(_5,_6){
document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=_5+",isIncluded,False";
document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=22;
if(_6){
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(_7,_8){
var _9=true;
if(_8){
if(!confirm(MSOStrings.ExportPersonalizationDialogText)){
_9=false;
}
}
if(_9){
var _a=false;
if(typeof (MSOWPSC_SavePerformed)=="boolean"){
_a=MSOWPSC_SavePerformed;
}
MSOWebPartPage_SetWindowLocation(_7);
if(typeof (MSOWPSC_SavePerformed)=="boolean"){
MSOWPSC_SavePerformed=_a;
MSOWebPartPage_hideNextBeforeUnload=true;
}
}
}
function MSOMode_SetMode(_b){
var _c=MSOMode_GetNewUrl(_b);
MSOLayout_CheckAndSaveChanges();
if(document.forms[MSOWebPartPageFormName].MSOTlPn_View.value!=4){
document.forms[MSOWebPartPageFormName].MSOTlPn_View.value=0;
var _d=/[& | \?]ToolPaneView=[-0-9A-Z]*/ig;
_c=MSOMode_RemoveMode(_c,_d);
}
document.forms[MSOWebPartPageFormName].MSOWebPartPage_Shared.value=_b?"true":"false";
document.forms[MSOWebPartPageFormName].action=_c;
document.forms[MSOWebPartPageFormName].submit();
}
function MSOMode_GetNewUrl(_e,_f){
if(_f==null){
_f=document.location.href;
}
var _10=/[& | \?]PageView=Personal/ig;
var _11=/[& | \?]PageView=Shared/ig;
var _12="PageView="+(_e?"Shared":"Personal");
_f=MSOMode_RemoveMode(_f,_10);
_f=MSOMode_RemoveMode(_f,_11);
_f=MSOMode_AddMode(_f,_11,_12);
return _f;
}
function MSOMode_RemoveMode(_13,_14){
var _15=/\#/;
var _16=_13.search(_15);
if(_16!=-1){
_13=_13.substring(0,_16);
}
var _17=/\?/;
var _18=_13.search(_17);
if(_18!=-1){
var _19=_13.substring(0,_18);
var _1a=_13.substring(_18,_13.length);
_1a=_1a.replace(_14,"");
if(_1a.length!=0&&_1a.charAt(0)!="?"){
_1a="?"+_1a;
}
_13=_19+_1a;
}
return _13;
}
function MSOMode_AddMode(_1b,_1c,_1d){
var _1e=/\#/;
var _1f=_1b.search(_1e);
if(_1f!=-1){
_1b=_1b.substring(0,_1f);
}
var _20=/\?/;
var _21=_1b.search(_20);
if(_21==-1){
_1b+="?"+_1d;
}else{
var _22=_1b.substring(_21,_1b.length);
if(_22.search(_1c)==-1){
_1b+="&"+_1d;
}
}
return _1b;
}
function MSOPGrid_BuilderVisible(_23){
MSOPGrid_HidePrevBuilder();
MSOTlPn_prevBuilder=null;
_23.style.display="inline";
}
function MSOPGrid_HidePrevBuilder(){
if(MSOTlPn_prevBuilder!=null){
eval(MSOTlPn_prevBuilder).style.display="none";
}
}
function MSOPGrid_doBuilder(_24,_25,_26){
var _27=showModalDialog(_24,_25,_26);
_25.value=_27;
}
function MSOWebPartPage_RestorePageDefault(){
if(confirm(MSOStrings.ResetPagePersonalizationDialogText)){
var _28=document.createElement("INPUT");
_28.type="hidden";
_28.name="MSOWebPartPage_RestorePageDefault";
_28.value="true";
document.forms[MSOWebPartPageFormName].appendChild(_28);
if(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges!=null){
document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value="";
}
MSOMode_SetMode(false);
}
}
function MSOWebPartPage_RestorePartDefaults(_29){
if(confirm(MSOStrings.ResetPartPersonalizationDialogText)){
var _2a=document.createElement("INPUT");
_2a.type="hidden";
_2a.name="MSO_RestoreSettings";
_2a.value=_29;
document.forms[MSOWebPartPageFormName].appendChild(_2a);
MSOMode_SetMode(false);
}
}
function MSOWebPartPage_MenuDoPostBack(_2b,_2c){
var _2d=document.forms[MSOWebPartPageFormName];
var _2e=_2d.__EVENTTARGET;
var _2f=_2d.__EVENTARGUMENT;
if(_2e==null){
_2e=document.createElement("INPUT");
_2e.style.display="none";
_2e.name="__EVENTTARGET";
document.forms[MSOWebPartPageFormName].appendChild(_2e);
}
if(_2f==null){
_2f=document.createElement("INPUT");
_2f.style.display="none";
_2f.name="__EVENTARGUMENT";
document.forms[MSOWebPartPageFormName].appendChild(_2f);
}
_2e.value=_2b;
_2f.value=_2c;
_2d.submit();
}
function MSOWebPartPage_SignIn(){
var _30=document.createElement("INPUT");
_30.type="hidden";
_30.name="MSOWebPartPage_AnonymousAccessLogIn";
_30.value="1";
document.forms[MSOWebPartPageFormName].appendChild(_30);
document.forms[MSOWebPartPageFormName].submit();
}
function MSOWebPartPage_SetWindowLocation(_31){
var _32=_31.toLowerCase();
if(_32.indexOf("javascript:")==0||_32.indexOf("vbscript:")==0){
MSOWebPartPage_hideNextBeforeUnload=true;
}
window.location=_31;
}
function MSOWebPartPage_SetNewWindowLocation(_33){
window.open(_33);
}
function MSOTlPn_onToolPaneCloseClick(){
var _34="0";
var _35="49";
MSOTlPn_ShowToolPaneWrapper(_34,_35);
}
function MSOPGrid_InvokeFPBuilder(_36,_37,_38){
_38.value=window.external.InvokeBuilder(_36,_37,_38.id);
_38.focus();
}
function MSOMenu_KeyboardClick(_39){
for(var _3a=1;_3a<arguments.length;_3a++){
if(event.keyCode==arguments[_3a]){
_39.click();
event.returnValue=false;
return;
}
}
}
function MSOTlPn_ToggleDisplay(_3b,_3c,_3d,_3e,_3f,_40){
var _41=_3b+"_STATEFIELD";
var _42;
if(document.all.item(_3b).style.display=="none"){
document.all.item(_3b).style.display="";
document.images[_3c].src="/_layouts/images/TPMin2.gif";
document.images[_3c].alt=_3f;
document.all.item(_40).title=_3f;
document.all.item(_3d).title=_3f;
_42="1";
}else{
document.all.item(_3b).style.display="none";
document.images[_3c].src="/_layouts/images/TPMax2.gif";
document.images[_3c].alt=_3e;
document.all.item(_40).title=_3e;
document.all.item(_3d).title=_3e;
_42="0";
}
if(document.all[_41]!=null){
document.all[_41].value=_42;
}
}
var MSOTlPn_originalToolPaneWidth;
function MSOTlPn_onToolPaneMaxClick(){
var mod=1;
var _44=document.all["MSOTlPn_minMaxIcon"];
var _45=_44.src.substring(0,_44.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";
_45+=((document.dir=="rtl")?"tpmax.gif":"tpmin.gif");
_44.title=MSOStrings.ToolPaneShrinkToolTip;
_44.alt=MSOStrings.ToolPaneShrinkToolTip;
_44.parentElement.title=MSOStrings.ToolPaneShrinkToolTip;
document.all["MSOTlPn_Tbl"].toolpaneWide="1";
}else{
document.all["MSOTlPn_Tbl"].style.width=MSOTlPn_originalToolPaneWidth;
_45+=((document.dir=="rtl")?"tpmin.gif":"tpmax.gif");
_44.title=MSOStrings.ToolPaneWidenToolTip;
_44.alt=MSOStrings.ToolPaneWidenToolTip;
_44.parentElement.title=MSOStrings.ToolPaneWidenToolTip;
document.all["MSOTlPn_Tbl"].toolpaneWide=null;
mod=-1;
}
_44.src=_45;
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 _48=document.all["MSOTlPn_MainTD"];
if(_48==null||_48.offsetWidth==0){
return;
}
var _49=_48.offsetWidth;
var _4a=(document.body.offsetWidth-document.body.clientWidth);
var _4b=document.all["MSOTlPn_WebPartPageDiv"];
if((_4b.offsetWidth+_48.offsetWidth)==document.body.clientWidth){
return;
}
var _4c=0;
var _4d=_4b.offsetParent;
var _4e=0;
while(_4d!=null){
if(document.dir!="rtl"){
_4e=_4d.offsetLeft+(_4d.offsetWidth-(_4d.clientLeft+_4d.clientWidth));
if(_4d.offsetParent!=null){
_4e+=_4d.offsetParent.clientLeft;
}
}else{
_4e=(_4d.offsetParent!=null)?(_4d.offsetParent.offsetWidth-(_4d.offsetLeft+_4d.offsetWidth)):0;
}
_4c+=_4e;
_4d=_4d.offsetParent;
}
_4c-=_4a;
var _4f=document.body.clientWidth-(_4c+_49);
if(_4f<250){
_4f=250;
}
document.all["MSO_tblPageBody"].style.pixelWidth=_4f+_49;
_4b.style.pixelWidth=_4f;
if(window.event.type=="load"&&document.all.MSOTlPn_TlPnCaptionSpan!=null){
document.all.MSOTlPn_TlPnCaptionSpan.scrollIntoView(false);
}
}
function MSOTlPn_CheckUrl(){
var _50=/[& | \?]ToolPaneView=[-0-9A-Z]*/ig;
var _51=document.forms[MSOWebPartPageFormName].action;
var _52;
_52=MSOMode_RemoveMode(document.forms[MSOWebPartPageFormName].action,_50);
document.forms[MSOWebPartPageFormName].action=_52;
}
function MSOTlPn_Resize(obj){
if(MSOTlPn_prevWidth!=obj.clientWidth){
MSOTlPn_prevWidth=obj.clientWidth;
MSOTlPn_WindowResize();
}
if(MSOTlPn_prevHeight!=document.body.clientHeight){
MSOTlPn_prevHeight=document.body.clientHeight;
var _54=document.all["MSOTlPn_WebPartPageDiv"];
_54.style.height="100%";
_54.style.height=_54.offsetHeight;
}
}
function MSOWebPartPage_SetupFixedWidthWebParts(){
var _55=document.all["MSOFixedWidthTitle"];
if(_55!=null){
if(_55.length>0){
for(var _56=0;_56<_55.length;_56++){
_55[_56].style.width=MSOWebPartPage_AllocateSpaceForFirstTD(_55[_56]);
}
}else{
_55.style.width=MSOWebPartPage_AllocateSpaceForFirstTD(_55);
}
}
}
function MSOWebPartPage_AllocateSpaceForFirstTD(_57){
var _58=document.createElement("DIV");
_58.style.width=_57.fixedWidth;
document.body.appendChild(_58);
var _59=_58.offsetWidth;
document.body.removeChild(_58);
var _5a=MSOLayout_GetParentTable(_57).cloneNode(true);
if(_5a!=0){
document.body.appendChild(_5a);
var _5b=_5a.rows(0);
for(var _5c=1;_5c<_5b.cells.length;_5c++){
_59-=_5b.cells(_5c).offsetWidth;
}
document.body.removeChild(_5a);
}
return (_59<1)?1:_59;
}
function MSOWebPartPage_FindControlName(_5d){
var _5e=document.all.tags("label");
if(_5e!=null){
for(i=0;i<_5e.length;i++){
var _5f=_5e[i];
if(_5f.innerText==_5d){
if(_5f.htmlFor.indexOf("_EDITOR")!=-1){
return (_5f.htmlFor);
}
}
}
}
return null;
}
function MSOTlPn_ListViewChange(_60){
if(MSOTlPn_shownViewChangeWarning){
return;
}
alert(_60);
MSOTlPn_shownViewChangeWarning=true;
}
function MSOTlPn_CustomWindowResize(){
var _61=document.all["MSOTlPn_Tbl"];
if(_61==null||_61.offsetWidth==0){
return;
}
_61.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(_62){
var _63=_62+"=";
var _64=document.cookie.indexOf(_63);
if(_64==-1){
return null;
}
var _65=document.cookie.indexOf(";",_64+_63.length);
if(_65==-1){
_65=document.cookie.length;
}
return unescape(document.cookie.substring(_64+_63.length,_65));
}
function MSOTlPn_ShowAllUsersToolPane(_66,_67,_68){
MSOLayout_CheckAndSaveChanges();
document.forms[MSOWebPartPageFormName].action=MSOMode_GetNewUrl(true);
MSOTlPn_ShowToolPaneWrapper(_66,_67,_68);
}
function MSOLayout_MakeInvisibleIfEmpty(){
var _69=document.getElementsByName("_invisibleIfEmpty");
var agt=navigator.userAgent.toLowerCase();
var _6b=((agt.indexOf("mozilla")!=-1)&&((agt.indexOf("spoofer")==-1)&&(agt.indexOf("compatible")==-1)));
var _6c=(agt.indexOf("msie")!=-1);
for(var _6d=0;_6d<_69.length;_6d++){
if((_6c&&_69[_6d].childNodes.length==0)||(_6b&&_69[_6d].childNodes.length<=1)){
_69[_6d].style.display="none";
}
}
}
function MSOLayout_GetParentRow(_6e){
var _6f=_6e.parentElement;
while(_6f.tagName!="TR"&&_6f.tagName!="BODY"){
_6f=_6f.parentElement;
}
if(_6f.tagName!="TR"){
return null;
}else{
return _6f;
}
}
function MSOLayout_GetParentTable(_70){
for(var _71=_70;_71.tagName!="TABLE";_71=_71.parentElement){
if(_71==document.body){
return 0;
}
}
return _71;
}

