﻿var StrNewNamespace="http://schemas.microsoft.com/WebPart/v2";function SplitIndex(a){var d="",c="",b=a.lastIndexOf("#");if(-1==b)b=a.lastIndexOf(":");if(-1==b)c=a;else{c=a.substring(b+1,a.length);d=a.substring(0,b)}var e={PropURN:d,PropName:c};return e}function String2XML(c){var a="",b=/&/g;a=c.replace(b,"&amp;");b=/</g;a=a.replace(b,"&lt;");b=/>/g;a=a.replace(b,"&gt;");b=/"/g;a=a.replace(b,"&quot;");b=/'/g;a=a.replace(b,"&apos;");return a}function URL2Unicode(a){return Utf8ToUnicode(unescape(a))}function Unicode2URL(a){return URLEncode(a)}function URLEncode(e){var f=" <>\"#%{}|^~[]`'&?+=",a="",d,b,c;e+="";for(d=0;d<e.length;d++){b=e.charAt(d);c=b.charCodeAt(0);if(c<=parseInt(127))if(f.indexOf(b)!=-1)a+="%"+c.toString(16).toUpperCase();else a+=b;else a+=GetUTFCode(c)}return a}function GetUTFCode(a){var f=11,d=2,e="",c=192,b;while(a>=1<<f){c=c>>1;f+=5;d++}for(b=0;b<d;b++){var g=128|a&63;a=a>>>6;if(b==d-1)g|=c;e="%"+g.toString(16).toUpperCase()+e}return e}function Utf8ToUnicode(d){if(d==null)return "";var f="",h=d.length,a=0,b=h,i=0,c,e,g;while(a<h){c=d.charCodeAt(a);if((c&128)==0){if(b<1)break;f+=String.fromCharCode(c&127);a++;b-=1}else if((c&224)==192){e=d.charCodeAt(a+1);if(b<2||(e&192)!=128)break;f+=String.fromCharCode((c&63)<<6|e&63);a+=2;b-=2}else if((c&240)==224){e=d.charCodeAt(a+1);g=d.charCodeAt(a+2);if(b<3||(e&192)!=128||(g&192)!=128)break;f+=String.fromCharCode((c&15)<<12|(e&63)<<6|g&63);a+=3;b-=3}else break}if(0!=b)f="";return f}function SPSoapRequestBuilder(d){var a={};function c(c,b){var a=this.parameterNameList.length;this.parameterNameList[a]=c;this.parameterValueList[a]=b}function b(b){var e=this.functionName,d=this.parameterNameList,c=this.parameterValueList;b.setRequestHeader("Content-Type","text/xml; charset=utf-8");b.setRequestHeader("SOAPAction","http://microsoft.com/sharepoint/webpartpages/"+e);var f='<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><'+e+' xmlns="http://microsoft.com/sharepoint/webpartpages">';for(var a=0;a<d.length;a++){var g=typeof c[a]=="string"?String2XML(c[a]):c[a];f+="<"+d[a]+">"+g+"</"+d[a]+">"}f+="</"+e+">"+"</soap:Body>"+"</soap:Envelope>";b.Send(f);return b}a.functionName=d;a.parameterNameList=[];a.parameterValueList=[];a.AddParameter=c;a.SendSOAPMessage=b;return a}function Collection(){function g(b){var c=null;if(b!=null){var a=parseInt(b);if(!isNaN(a)&&a>=0&&a<this.length)c=this[a]}return c}function f(c){var a,b=null;for(a=0;a<this.length;a++)if(this[a]==c){b=this[a];break}return b}function c(d,c){var a,b=null;for(a=0;a<this.length;a++)if(this[a].Name==d&&this[a].Qualifier==c){b=this[a];break}return b}function h(b){var a=this.length;this[a]=b;return this[a]}function d(c){var a,b=parseInt(c);if(isFinite(b)&&b>=0&&b<this.length){for(a=b;a<this.length-1;a++)this[a]=this[a+1];this.length--}}function b(b){var a;for(a=0;a<this.length;a++)if(this[a]==b){this.Remove(a);break}}function e(){return this.length}var a=Array();a.Item=g;a.Count=e;a.Add=h;a.Remove=d;a.Find=f;a.FindByName=c;a.RemoveObject=b;return a}function PartDef(WebPartQualifier,StorageKey,DOMObject){function GetPropertyDwpXmlString(a){var b=a.NamespaceURN.toLowerCase()!=StrNewNamespace.toLowerCase();return currentXML="<"+a.SchemaElement+(b?" xmlns='"+String2XML(a.NamespaceURN)+"'":" ")+">"+String2XML(a.Value.toString())+"</"+a.SchemaElement+">"}function Save(async,callBack){if(!this.Properties.PropertiesLoaded)return;var partXml=null;if(this.Properties.IsWebPartFile){var xmlDoc=this.Properties.ResponseXML;if(null!=xmlDoc){var propertiesElement=xmlDoc.selectSingleNode("webParts/webPart/data/properties");if(null!=propertiesElement){var properties=propertiesElement.selectNodes("property");if(null!=properties){var index=properties.length;while(index>0){--index;propertiesElement.removeChild(properties[index])}}for(var index=0;index<this.Properties.length;index++){var propNode=this.Properties[index],xmlAttribute,propertyElement=xmlDoc.createElement("property");xmlAttribute=xmlDoc.createAttribute("name");xmlAttribute.value=String2XML(propNode.SchemaElement);propertyElement.setAttributeNode(xmlAttribute);if(null!=propNode.Type){xmlAttribute=xmlDoc.createAttribute("type");xmlAttribute.value=String2XML(propNode.Type);propertyElement.setAttributeNode(xmlAttribute)}xmlAttribute=xmlDoc.createAttribute("xmlns");xmlAttribute.value="http://schemas.microsoft.com/WebPart/v3";propertyElement.setAttributeNode(xmlAttribute);propertyElement.text=String2XML(propNode.Value.toString());propertiesElement.appendChild(propertyElement)}}partXml=xmlDoc.xml}}else{partXml="<WebPart xmlns='"+StrNewNamespace+"'>"+GetPropertyDwpXmlString(this.Properties.AssemblyInfo)+GetPropertyDwpXmlString(this.Properties.TypeNameInfo);for(var index=0;index<this.Properties.length;index++)partXml+=GetPropertyDwpXmlString(this.Properties[index]);partXml+="</WebPart>"}try{var varPart=eval("varPart"+this.WebPartQualifier),xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");this.xmlhttp=xmlhttp;varPart.callBackUsed=false;var postDataUrl=GetUrlFromWebUrlAndWebRelativeUrl(WPSC.WebPartPage.WebServerRelativeURL,"_vti_bin/WebPartPages.asmx");xmlhttp.Open("POST",postDataUrl,async!=true?false:true);if(callBack!=null){this.callBackFunction=callBack;xmlhttp.onreadystatechange=new Function("varPart"+this.WebPartQualifier+".SaveHandler()")}var soapBuilder=SPSoapRequestBuilder("SaveWebPart2");soapBuilder.AddParameter("pageUrl",document.location.href);soapBuilder.AddParameter("storageKey",this.StorageKey);soapBuilder.AddParameter("webPartXml",partXml);soapBuilder.AddParameter("storage","None");soapBuilder.AddParameter("allowTypeChange","false");soapBuilder.SendSOAPMessage(xmlhttp)}catch(exception){var varPart=eval("varPart"+this.WebPartQualifier);if(callBack!=null&&varPart.callBackUsed!=true){callBack(false,"");varPart.callBackUsed=true}}}function SaveHandler(){var varPart=eval("varPart"+this.WebPartQualifier);if(this.xmlhttp.readyState==4&&this.callBackFunction!=null&&varPart.callBackUsed!=true){var saveSucceeded=this.xmlhttp.responseXML.getElementsByTagName("SaveWebPart2Response")[0]!=null,soapStatus=this.xmlhttp.status,soapExceptionText="";if(!saveSucceeded){var soapException=this.xmlhttp.responseXML.getElementsByTagName("soap:Fault")[0];if(soapException!=null){var soapExceptionTextXml=soapException.getElementsByTagName("detail")[0];if(soapExceptionTextXml!=null)soapExceptionText=soapExceptionTextXml.text}}varPart.callBackUsed=true;this.callBackFunction(saveSucceeded,soapExceptionText,soapStatus)}}this.SaveHandler=SaveHandler;this.DOMObject=DOMObject;this.WebPartQualifier=WebPartQualifier;this.StorageKey=StorageKey;this.Properties=new PropColDef;this.Properties.Owner=this;this.Save=Save}function PropertyDef(d,b,a,c){this.OriginalValue=a;this.NamespaceURN=d;this.SchemaElement=b;this.Value=a;this.Type=c}function PropColDef(){var a=new Collection;function c(v){var b=[];try{var a=new ActiveXObject("Microsoft.XMLHTTP");if(a==null)return;var t=GetUrlFromWebUrlAndWebRelativeUrl(WPSC.WebPartPage.WebServerRelativeURL,"_vti_bin/WebPartPages.asmx");a.Open("POST",t,false);var d=SPSoapRequestBuilder("GetWebPart2");d.AddParameter("pageurl",document.location.href);d.AddParameter("storageKey",v);d.AddParameter("storage","None");d.AddParameter("behavior","Version3");d.SendSOAPMessage(a);a.responseXML.loadXML(a.responseXML.text);var h=null,k=false,f=null,i=false,g=a.responseXML.getElementsByTagName("WebPart");if(null!=g&&g.length>0){h=g[0];if(h.namespaceURI=="http://schemas.microsoft.com/WebPart/v2")k=true}if(false==k){var e=a.responseXML.getElementsByTagName("webPart");if(null!=e&&e.length>0){f=e[0];if(f.namespaceURI=="http://schemas.microsoft.com/WebPart/v3")i=true}}b.IsWebPartFile=i;if(i){var o=f.selectSingleNode("data/properties");if(null!=o){var j=o.selectNodes("property");if(null!=j)for(var c=0;c<j.length;c++){var l=j[c],s=l.getAttributeNode("name").value,n=null,q=l.getAttributeNode("type");if(null!=q)n=q.value;var u=l.nodeTypedValue,r=new PropertyDef("",s,u,n);b[b.length]=r}}b.ResponseXML=a.responseXML}else if(k){var p=h.childNodes;for(var c=0;c<p.length;c++){var m=p.item(c),r=new PropertyDef(m.namespaceURI,m.baseName,m.nodeTypedValue,null);b[b.length]=r}}else alert(MSOStrings.GetPropertiesFailure)}catch(x){alert(MSOStrings.GetPropertiesFailure)}return b}function d(b){var e=-1,d=null;if(isNaN(b)){var g=SplitIndex(b),l=g.PropURN,k=g.PropName,c;for(c=0;c<a.Count();c++){var f=a[c],i=new String(f.NamespaceURN),j=f.SchemaElement.toLowerCase()==k.toLowerCase(),h=i.toLowerCase()==l.toLowerCase();if(j&&h){e=c;d=f;break}}}else if(b<0||b>=a.Count()){e=-1;d=null}else{e=b;d=a[b]}return d}function g(b){var a=null;if(b!=null){if(!this.PropertiesLoaded)this.LoadProperties();a=d(b)}return a}function f(a,d){this.Owner=d;this.IsWebPartFile=a.IsWebPartFile;this.ResponseXML=a.ResponseXML;for(var c=0;c<a.length;c++){var b=a[c];if(b.SchemaElement=="Assembly"&&!a.IsWebPartFile)this.AssemblyInfo=b;else if(b.SchemaElement=="TypeName"&&!a.IsWebPartFile)this.TypeNameInfo=b;else this[this.length]=b}}function e(){if(!this.PropertiesLoaded)this.LoadProperties();return this.length}function b(){this.Init(c(this.Owner.StorageKey,false),this.Owner);this.PropertiesLoaded=true}a.Owner=null;a.Item=g;a.Init=f;a.Count=e;a.LoadProperties=b;a.PropertiesLoaded=false;a.AssemblyInfo=null;a.TypeNameInfo=null;a.IsWebPartFile=false;a.ResponseXML=null;return a}function PartColDef(){var a=new Collection;function b(b){var d=-1;if(isNaN(b)){var c;for(c=0;c<a.Count();c++)if(a.Item(c).WebPartQualifier==b){d=c;break}}else if(b<0||b>=a.Count())d=-1;else d=b;return d}function e(d){var e=null;if(d!=null){var c=b(d);if(c>=0)e=a.Item(c)}return e}function d(d,f,g){var c,e=b(d);if(e>=0)c=a.Item(e);else{c=new PartDef(d,f,g);a.Add(c);this.Count=a.Count()}return c}function c(c){a.Remove(b(c));this.Count=a.Count()}this.Item=e;this.Register=d;this.UnRegister=c;this.Count=a.Count()}function WebPartPageDef(a){this.Parts=new PartColDef;this.DOMObject=a;this.Properties=new PropColDef}function EventDef(e){var a=new Collection;function b(b){return a.Find(b)}function d(b){return a.Add(b)}function c(b){a.RemoveObject(b)}function f(c){var b;for(b=0;b<a.Count();b++)a.Item(b)(c)}this.Name=e;this.FindEventHandler=b;this.AddHandler=d;this.RemoveHandler=c;this.Raise=f}function NotificationServiceDef(){var a=new Collection;function c(a,b){switch(a){case "onafterprint":case "onbeforeprint":case "onbeforeunload":case "onblur":case "onclose":case "onload":case "onresize":case "onfocus":window.attachEvent(a,b);break;case "onclick":case "onhelp":window.document.attachEvent(a,b)}}function b(a,b){switch(a){case "onafterprint":case "onbeforeprint":case "onbeforeunload":case "onblur":case "onclose":case "onload":case "onresize":case "onfocus":window.detachEvent(a,b);break;case "onclick":case "onhelp":window.document.detachEvent(a,b)}}function f(d,b,e){var b,c;c=d+"::"+b;b=a.FindByName(c);if(null!=b)b.Raise(e)}function e(f,h,d,g){var b,e;e=f+"::"+h;b=a.FindByName(e,g);if(b==null){b=new EventDef(e);b.Qualifier=g;a.Add(b)}if(b.FindEventHandler(d)==null){if(f=="urn:schemas-microsoft-com:dhtml")c(h,d);b.AddHandler(d)}}function d(f,g,d,h){var c,e;e=f+"::"+g;c=a.FindByName(e,h);if(c!=null&&c.FindEventHandler(d)!=null){if(f=="urn:schemas-microsoft-com:dhtml")b(g,d);c.RemoveHandler(d)}}this.RegisterForEvent=e;this.RaiseEvent=f;this.UnRegisterForEvent=d}function MessageDef(a){this.Name=a;this.Value=""}function StateServiceDef(){var a=[];function e(){var b=false;if(event!=null){var a=event.srcElement;while(a!=null&&a.tagName!="A"&&a.tagName!="BODY")a=a.parentElement;if(a!=null&&a.tagName=="A"){var c=a.href.toLowerCase();b=c.indexOf("javascript:")==0||c.indexOf("vbscript:")==0}}return b}function d(){if(!MSOWebPartPage_hideNextBeforeUnload){try{if(WPSCinpreview==true);}catch(a){WPSC.RaiseEvent("urn:schemas-microsoft-com:dhtml","onunload",null)}b()}MSOWebPartPage_hideNextBeforeUnload=false}function b(){if(MSOWPSC_SavePerformed==false&&a.length>0){var b,c=false;for(b=0;b<a.length;b++){a[b].Dirty=a[b].IsDirtyCallbackFunction(a[b].Param);c=c||a[b].Dirty}if(c==true&&window.confirm(MSOStrings.SaveDirtyPartsDialogText))for(b=0;b<a.length;b++)if(a[b].Dirty==true){a[b].SaveCallbackFunction(a[b].Param);a[b].Dirty=false}}if(typeof event.returnValue=="undefined")MSOWPSC_SavePerformed=true}function c(b,c,e){var d=new CallbackParamDef(b,c,e);a[a.length++]=d}this.BeforeUnloading=d;this.IsScriptHREF=e;this.RegisterForPromptedSave=c;this.ProcessDirtyParts=b}function CallbackParamDef(a,b,c){this.IsDirtyCallbackFunction=a;this.SaveCallbackFunction=b;this.Param=c;this.Dirty=false}function WPSCDef(){var InternalWebPartPage,NotificationService=new NotificationServiceDef;function FirePartCommunicationEvents(connectedParts,isInit){var interfaceObject;for(var i=0;i<connectedParts.length;i++){interfaceObject=eval(connectedParts[i]);if(interfaceObject!=null)if(isInit)try{interfaceObject.PartCommunicationInit(WPSC)}catch(a){}else try{interfaceObject.PartCommunicationMain()}catch(a){}}}function InitPartCommunication(){var b;if(MSOConnections==null)return;b=MSOConnections.selectNodes("Connections/Connection");if(b==null)return;var a=[],h=false,g=false,d=null,c=null;for(var e=0;e<b.length;e++){d=b.item(e).selectSingleNode("@ProviderObject");c=b.item(e).selectSingleNode("@ConsumerObject");h=false;g=false;if(d!=null&&c!=null){for(var f=0;f<a.length;f++){if(a[f]==d.text)h=true;if(a[f]==c.text)g=true}if(!h)a[a.length]=d.text;if(!g)a[a.length]=c.text}}FirePartCommunicationEvents(a,true);FirePartCommunicationEvents(a,false)}function RaiseConnectionEventSpecial(InterfaceName,EventName,EventArgsNames,EventArgsValues){var eventArgs={},tempNames=ConvertVBArrayIfNecessary(EventArgsNames),tempValues=ConvertVBArrayIfNecessary(EventArgsValues);if(tempNames.length==tempValues.length){for(var i=0;i<tempNames.length;i++)eval("eventArgs."+tempNames[i]+"=ConvertVBArrayIfNecessary(tempValues[i])");RaiseConnectionEvent(InterfaceName,EventName,eventArgs)}}function ConvertVBArrayIfNecessary(a){try{var b=new VBArray(a);return b.toArray()}catch(c){return a}}function RaiseConnectionEvent(InterfaceName,EventName,EventParams){var fProvider=false,xmlNodes,xmlSourceRef,xmlTargetRef,strEval;if(MSOConnections.selectSingleNode("Connections/Connection[@ProviderIntName='"+InterfaceName+"']")!=null)fProvider=true;if(fProvider)xmlNodes=MSOConnections.selectNodes("Connections/Connection[@ProviderIntName='"+InterfaceName+"']");else xmlNodes=MSOConnections.selectNodes("Connections/Connection[@ConsumerIntName='"+InterfaceName+"']");if(xmlNodes!=null)for(var i=0;i<xmlNodes.length;i++){if(fProvider){xmlSourceRef=xmlNodes.item(i).selectSingleNode("@ProviderObject");xmlTargetRef=xmlNodes.item(i).selectSingleNode("@ConsumerObject")}else{xmlSourceRef=xmlNodes.item(i).selectSingleNode("@ConsumerObject");xmlTargetRef=xmlNodes.item(i).selectSingleNode("@ProviderObject")}if(xmlSourceRef!=null&&xmlTargetRef!=null){strEval=xmlTargetRef.text;strEval+="."+EventName;strEval+="("+xmlSourceRef.text+", EventParams)";eval(strEval)}}}function RegisterForPromptedSave(a,b,c){StateService.RegisterForPromptedSave(a,b,c)}function Init(a){window.attachEvent("onbeforeunload",StateService.BeforeUnloading);if(null!=document.body)document.body.attachEvent("onclick",new Function("if(StateService.IsScriptHREF()) {MSOWebPartPage_hideNextBeforeUnload=true;}"));this.WebPartPage=new WebPartPageDef(a);return this.WebPartPage}function Convert(a,d,c){var b=a;if("URL"==d){if("UNICODE"==c)b=URL2Unicode(a)}else if("UNICODE"==d)if("URL"==c)b=Unicode2URL(a);return b}function MSOMenu_GetMenuItem(c,d){var a=null,b=document.all.item(c);if(b!=null)a=b.all.item(d);return a}function MSOMenu_SetChecked(b,c,d){var a=MSOMenu_GetMenuItem(b,c);if(a!=null)a.checked=d?"true":"false"}function MSOMenu_SetVisible(b,c,d){var a=MSOMenu_GetMenuItem(b,c);if(a!=null)a.style.display=d?"":"none"}function MSOMenu_SetEnabled(b,c,d){var a=MSOMenu_GetMenuItem(b,c);if(a!=null)a.disabled=!(d==true)}function MSOMenu_GetChecked(b,c){var a=MSOMenu_GetMenuItem(b,c);if(a!=null)return a.checked=="true"?true:false;return null}function MSOMenu_GetVisible(b,c){var a=MSOMenu_GetMenuItem(b,c);if(a!=null)return a.style.display!="none"?true:false;return null}function MSOMenu_GetEnabled(b,c){var a=MSOMenu_GetMenuItem(b,c);if(a!=null)return a.disabled!=true?true:false;return null}this.RaiseConnectionEvent=RaiseConnectionEvent;this.RaiseConnectionEventSpecial=RaiseConnectionEventSpecial;this.InitPartCommunication=InitPartCommunication;this.RaiseEvent=NotificationService.RaiseEvent;this.RegisterForEvent=NotificationService.RegisterForEvent;this.UnRegisterForEvent=NotificationService.UnRegisterForEvent;this.RegisterForPromptedSave=RegisterForPromptedSave;this.Init=Init;this.WebPartPage=InternalWebPartPage;this.Convert=Convert;this.MSOMenu_SetChecked=MSOMenu_SetChecked;this.MSOMenu_SetVisible=MSOMenu_SetVisible;this.MSOMenu_SetEnabled=MSOMenu_SetEnabled;this.MSOMenu_GetChecked=MSOMenu_GetChecked;this.MSOMenu_GetVisible=MSOMenu_GetVisible;this.MSOMenu_GetEnabled=MSOMenu_GetEnabled}var StateService=new StateServiceDef,WPSC=new WPSCDef,MSOWPSC_SavePerformed=false;function MSOWPSC_OnSubmit(){StateService.ProcessDirtyParts()}function Row2ParamsIn_GetRow(m,n,d){var c=new Array(d.length),a=new Array(d.length);for(var b=0;b<c;b++)c[b]=-1;for(var b=0;b<a;b++)a[b]=-1;var g=d,f=n,h=m,e=0;this.RowProviderInit=j;this.RowReady=l;this.ParametersInConsumerInit=k;function k(h,f){var a=f.ParameterInProperties;e=a.length;if(a!=null&&a.length>0)for(var b=0;b<a.length;b++)for(var d=0;d<g.length;d++)if(a[b].ParameterName==g[d])c[d]=b}function j(g,e){var b=e.FieldList;if(b!=null&&b.length>0)for(var c=0;c<b.length;c++)for(var d=0;d<f.length;d++)if(b[c]==f[d])a[d]=c}function i(a){this.ParameterValues=a}function l(n,l){var j=l.Rows;if(l.SelectionStatus=="Standard"||l.SelectionStatus=="New"){if(j!=null){j.MoveFirst();var d=new Array(e);for(var b=0;b<e;b++){var k=false;try{for(var f=0;f<c.length;f++)if(c[f]==b){if(j.Fields.Item(a[f]).Value!=null){var g=j.Fields.Item(a[f]).Type,m=j.Fields.Item(a[f]).Value;d[b]=String(m);if(g==12){if(typeof m=="date")d[b]=P2P_DateToString(d[b])}else if(g==7||g==133||g==134||g==135)d[b]=P2P_DateToString(d[b])}else d[b]="";k=true}}catch(o){k=false}if(!k)d[b]=""}WPSC.RaiseConnectionEvent(h,"ParametersInReady",new i(d))}}else WPSC.RaiseConnectionEvent(h,"NoParametersIn",null)}}function Row2Cell_GetRow(h,i){var d=i,a=-1,b=h;this.RowProviderInit=e;this.RowReady=g;function e(j,i){var e=i.FieldList,g=i.FieldDisplayList;if(e!=null&&e.length>0)for(var c=0;c<e.length;c++)if(e[c]==d){a=c;var h=null;if(g!=null&&g.length>c)h=g[c];WPSC.RaiseConnectionEvent(b,"CellProviderInit",new f(d,h))}}function f(b,a){this.FieldName=b;this.FieldDisplayName=a}function c(a){this.Cell=a}function g(f,e){var d=e.Rows;if(d!=null){d.MoveFirst();if(e.SelectionStatus&&(e.SelectionStatus=="Standard"||e.SelectionStatus=="New")&&a!=-1&&d.Fields!=null&&d.Fields.Item(a)!=null)WPSC.RaiseConnectionEvent(b,"CellReady",new c(d.Fields.Item(a).Value));else WPSC.RaiseConnectionEvent(b,"CellReady",new c(null))}}}function Row2Cell_GetCell(){this.CellConsumerInit=a;function a(){}}function Row2Filter_GetFilter(){this.FilterConsumerInit=a;function a(){}}function Row2Filter_GetRow(h,i,j){var k=j,e=i,a=-1,b=h;this.RowProviderInit=g;this.RowReady=f;function g(e,d){var b=d.FieldList;if(b!=null&&b.length>0)for(var c=0;c<b.length;c++)if(b[c]==k)a=c}function c(a){this.FilterExpression=a}function d(d){function c(a){if(a<10)return "0"+a;else return a}var b=new Date(Date.parse(d)),a=c(b.getMonth()+1)+"/";a+=c(b.getDate())+"/";a+=b.getFullYear()+" ";a+=c(b.getHours())+":";a+=c(b.getMinutes())+":";a+=c(b.getSeconds());return a}function f(k,i){var h=i.Rows;if((i.SelectionStatus=="Standard"||i.SelectionStatus=="New")&&a!=-1)if(h!=null){h.MoveFirst();var f="";try{if(h.Fields.Item(a).Value!=null){var j=h.Fields.Item(a).Value,g=h.Fields.Item(a).Type;f=String(j);if(g==12){if(typeof j=="date")f=d(f)}else if(g==7||g==133||g==134||g==135)f=d(f)}}catch(l){}WPSC.RaiseConnectionEvent(b,"SetFilter",new c("FilterField1="+WPSC.Convert(e,"UNICODE","URL")+"&FilterValue1="+WPSC.Convert(f,"UNICODE","URL")))}else WPSC.RaiseConnectionEvent(b,"SetFilter",new c("FilterField1="+WPSC.Convert(e,"UNICODE","URL")+"&FilterValue1="));else WPSC.RaiseConnectionEvent(b,"NoFilter",null)}}function ParamsOut2In_GetParamsOut(m,n,c){var b=new Array(c.length),d=new Array(c.length),f=c,e=n,g=m,a=0;this.ParametersOutProviderInit=h;this.ParametersOutReady=k;this.ParametersInConsumerInit=l;this.NoParametersOut=i;function i(){WPSC.RaiseConnectionEvent(g,"NoParametersIn",null)}function l(h,g){var c=g.ParameterInProperties;a=c.length;if(c!=null&&c.length>0)for(var d=0;d<c.length;d++)for(var e=0;e<f.length;e++)if(c[d].ParameterName==f[e])b[e]=d}function h(g,f){var a=f.ParameterOutProperties;if(a!=null&&a.length>0)for(var b=0;b<a.length;b++)for(var c=0;c<e.length;c++)if(a[b].ParameterName==e[c])d[c]=b}function j(a){this.ParameterValues=a}function k(l,k){var h=k.ParameterValues;if(h!=null&&h.length>0){var f=new Array(a);for(var c=0;c<a;c++){var i=false;for(var e=0;e<b.length;e++)if(b[e]==c){f[c]=h[d[e]];i=true}if(!i)f[c]=""}WPSC.RaiseConnectionEvent(g,"ParametersInReady",new j(f))}}}var MSOLayout_inDesignMode=false,MSOLayout_currentDragMode=0,MSOLayout_zoneDragOver=0,MSOLayout_rowToDrop=0,MSOLayout_cellToDrop=0,MSOLayout_oDropLocation=0,MSOLayout_iBar=document.createElement!=null?document.createElement("div"):null,MSOLayout_horzZoneIBar=0,MSOLayout_vertZoneIBar=0,MSOLayout_horzBodyZoneIBar=0,MSOLayout_vertBodyZoneIBar=0,MSOLayout_moveObject=0,MSOLayout_maintainOriginalZone=0,MSOLayout_topObject=document.body,MSOLayout_galleryView=0,MSOLayout_unsavedChanges=[],MSOLayout_FormSubmit=null,MenuWebPartID=null,MenuWebPart=null,MSOConn_SourceWpNode=null,MSOConn_TargetWpNode=null,MSOConn_XformInfo1=null,MSOConn_XformInfo2=null,MSOConn_AspXformInfo=null,MSOConn_ConnCancelled=false,MSOConn_MultipleTargetGroups=false,MSOConn_TargetGroupNode=null,MSOConn_SourceGroupNode=null,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,b){if(c!=null){MSOLayout_SaveChanges();var a=document.forms[MSOWebPartPageFormName].action;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]");if(a.indexOf("?")<0)a+="?";else a+="&";if(c==true){document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value=1;document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value="Design";a+="PageView=Personal";document.forms[MSOWebPartPageFormName].action=a}else{document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value=1;document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value="Design";a+="PageView=Shared";document.forms[MSOWebPartPageFormName].action=a}}else if(b!=null&&b){var a=document.forms[MSOWebPartPageFormName].action;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]");document.forms[MSOWebPartPageFormName].MSOWebPartPage_Shared.value="";document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value=0;document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value="Browse";document.forms[MSOWebPartPageFormName].action=a}__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(a,d,f){if(event.button!=1)return;MSOLayout_currentDragMode="move";document.selection.empty();MSOLayout_galleryView=f==true?true:false;MSOLayout_CreateDragObject(d);MSOLayout_CreateIBar();MSOLayout_oDropLocation=a;MSOLayout_maintainOriginalZone=a.allowZoneChange=="0"?MSOLayout_GetParentTable(a):"0";if(MSOLayout_galleryView&&a.dzc!=null){var b=document.all["MSOZone"];if(b!=null&&b.length>1)for(i=0;i<b.length;i++)if(b[i].zoneID==a.zoneid){MSOLayout_maintainOriginalZone=b[i];break}}MSOLayout_iBar.goodDrop="false";var c=MSOLayout_GetParentTable(a);if(c.id=="MSOZone"){MSOLayout_zoneDragOver=c;MSOLayout_zoneDragOver.className="ms-SPZoneSelected"}if(!MSOLayout_galleryView)MSOLayout_MoveIBar(a);document.body.attachEvent("ondragover",MSOLayout_MoveWebPartBodyDragOver);var e=document.body.ondragend,g=document.body.ondrop;document.body.ondragend=new Function("window.event.returnValue=false;");document.body.ondrop=new Function("MSOLayout_iBar.goodDrop='true';");a.ondragstart=new Function("try {event.dataTransfer.effectAllowed='move';} catch (exception) {}");a.attachEvent("ondrag",MSOLayout_MoveDragObject);a.dragDrop();document.body.detachEvent("ondragover",MSOLayout_MoveWebPartBodyDragOver);document.body.ondragend=e;document.body.ondrop=g;a.detachEvent("ondrag",MSOLayout_MoveDragObject);MSOLayout_moveObject.style.display="none";MSOLayout_currentDragMode=0;if(navigator.userAgent.toLowerCase().indexOf("msie 5.5")!=-1)a.swapNode(a);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(a,b){if(MSOLayout_currentDragMode!="move")return;event.dataTransfer.dropEffect="move";var c=b=="True"?true:false;MSOLayout_SetupDropLocation(a,c);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,originalZone=MSOLayout_GetParentTable(OriginalTableCell),originalIndex=OriginalTableCell.orientation=="Horizontal"?OriginalTableCell.cellIndex:OriginalTableCell.parentElement.rowIndex,destinationZone,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"),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 a=MSOLayout_moveObject.realWidth,b=MSOLayout_moveObject.realHeight,c=event.clientX+document.body.scrollLeft-a/2,d=event.clientY+document.body.scrollTop+1;if(c+a>document.body.scrollWidth)a-=c+a-document.body.scrollWidth;if(d+b>document.body.scrollHeight)b-=d+b-document.body.scrollHeight;if(b<=0||a<=0){MSOLayout_moveObject.style.display="none";a=b=0}else MSOLayout_moveObject.style.display="";MSOLayout_moveObject.style.width=a;MSOLayout_moveObject.style.height=b;MSOLayout_moveObject.style.pixelLeft=c;MSOLayout_moveObject.style.pixelTop=d}function MSOLayout_CreateIBar(){if(!MSOLayout_vertZoneIBar||!MSOLayout_horzZoneIBar){var a=document.createElement("TABLE");a.style.cssText="font-size:1pt; position:absolute; display:none; border-collapse:collapse";a.className="ms-SPZoneIBar";a.cellSpacing="0";a.cellPadding="0";a.attachEvent("ondragenter",MSOLayout_MoveWebPartStopEventBubble);a.attachEvent("ondragover",MSOLayout_MoveWebPartStopEventBubble);var e=a.insertRow().insertCell();e.align="center";var b=e.insertBefore(document.createElement("DIV"));b.id="MSOLayout_insideIBar";b.className="ms-SPZoneIBar";b.style.backgroundColor=a.currentStyle.borderColor;b.style.background="transparent";b.style.borderWidth="2px";b.style.position="relative";MSOLayout_horzZoneIBar=MSOLayout_topObject.appendChild(a.cloneNode(true));MSOLayout_vertZoneIBar=MSOLayout_topObject.appendChild(a.cloneNode(true));var c=MSOLayout_horzZoneIBar.all["MSOLayout_insideIBar"],d=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";d.style.width="100%";d.style.height="2";d.style.borderStyle="solid none none none";d.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(a){if(MSOLayout_iBar)MSOLayout_iBar.style.display="none";var b=MSOLayout_topObject.contains(a);if(MSOLayout_maintainOriginalZone=="0"||MSOLayout_GetParentTable(a)==MSOLayout_maintainOriginalZone){var d;if(a.orientation=="Horizontal"){var e=document.dir=="rtl"?a.offsetWidth-(a.cellIndex==0?3:0):0;MSOLayout_iBar=b?(MSOLayout_iBar=MSOLayout_horzZoneIBar):MSOLayout_horzBodyZoneIBar;d=MSOLayout_iBar.all["MSOLayout_insideIBar"];MSOLayout_iBar.style.pixelLeft=MSOLayout_GetRealOffset(a,"Left",MSOLayout_topObject)-(a.cellIndex==0?0:3);MSOLayout_iBar.style.pixelLeft+=e;MSOLayout_iBar.style.pixelTop=MSOLayout_GetRealOffset(MSOLayout_zoneDragOver,"Top",MSOLayout_topObject)+1;MSOLayout_iBar.style.height=MSOLayout_zoneDragOver.clientHeight;if(a.id=="MSOZone_EmptyZoneCell"){var c=a.all.item("MSOZoneCell_emptyZoneText");if(c!=null&&c.webPartsInZone>0)MSOLayout_iBar.style.pixelLeft-=3}}else{MSOLayout_iBar=b?MSOLayout_vertZoneIBar:MSOLayout_vertBodyZoneIBar;d=MSOLayout_iBar.all["MSOLayout_insideIBar"];MSOLayout_iBar.style.pixelLeft=MSOLayout_GetRealOffset(MSOLayout_zoneDragOver,"Left",MSOLayout_topObject)+1;MSOLayout_iBar.style.pixelTop=MSOLayout_GetRealOffset(a,"Top",MSOLayout_topObject)-(MSOLayout_GetParentRow(a).rowIndex==0?0:4);MSOLayout_iBar.style.width=MSOLayout_zoneDragOver.clientWidth;if(a.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(a,c){if(a.orientation=="Vertical"){var b=MSOLayout_GetParentRow(a);if(!b)return;if(a.id!="MSOZone_EmptyZoneCell"&&(!c||event.clientY+MSOLayout_topObject.scrollTop-MSOLayout_GetRealOffset(a,"Top")>a.offsetHeight/2))MSOLayout_rowToDrop=b.rowIndex+1;else MSOLayout_rowToDrop=b.rowIndex}else{var d=document.dir=="rtl",f=a.parentElement.childNodes.length,e=a.cellIndex+1;if(a.id!="MSOZone_EmptyZoneCell"&&(!c||event.clientX+MSOLayout_topObject.scrollLeft-MSOLayout_GetRealOffset(a,"Left")>a.offsetWidth/2))MSOLayout_cellToDrop=d?a.cellIndex:a.cellIndex+1;else if(d)MSOLayout_cellToDrop=e>=f?a.cellIndex:a.cellIndex+1;else MSOLayout_cellToDrop=a.cellIndex}}function MSOLayout_UpdatePropertySheet(d,a,b){var c=document.all.item("MSOTlPn_MainTD");if(d.SelectedWebPart&&c)for(Elements=c.all,ElementIndex=0;ElementIndex<Elements.length;ElementIndex++)if(Elements[ElementIndex].layoutID==a)if(a=="ChromeState"){for(radioElements=Elements[ElementIndex].all,radioIndex=0;radioIndex<radioElements.length;radioIndex++)if(radioElements[radioIndex].value==b){radioElements[radioIndex].checked=true;break}}else if(a=="Height"||a=="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=b;else if(radioElements[radioIndex].id.indexOf("UnitsDropdown")!=-1)radioElements[radioIndex].value="Pixel"}else Elements[ElementIndex].value=b}function MSOLayout_MinimizeRestore(a){var c,b;if(a.style.display!="none"){c="Minimized";b=1;a.style.display="none"}else{c="Normal";b=0;a.style.display=""}MSOLayout_UpdatePropertySheet(a,"ChromeState",c);MSOLayout_AddChange(a,"chromeState",b)}function MSOLayout_PageViewerMinimizeRestore(c,b){var a=document.all.item(b);if(a!=null)if(c.style.display!="none")if(a.src!=a.ddf_src)a.src=a.ddf_src}function MSOLayout_FindAncestorByAttribute(a,b){while(a!=null){if(a.getAttribute(b)!=null)break;a=a.parentElement}return a}function MSOLayout_MinimizeRestoreToolPart(f,j,e,i,h){var g=f+"ChromeState",a=f+"Chrome",b,c;if(document.all.item(a).style.display=="none"){document.all.item(a).style.display="inline";document.images[e].src="/_layouts/images/TPMin1.gif";c=MSOStrings.ToolPartCollapseToolTip;b="Normal"}else{document.all.item(a).style.display="none";document.images[e].src="/_layouts/images/TPMax1.gif";c=MSOStrings.ToolPartExpandToolTip;b="Minimized"}var d=c.replace("%0",j);document.images[e].alt=d;document.all.item(h).title=d;document.all.item(i).title=d;if(document.all[g]!=null)document.all[g].value=b}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(a,c,b){if(!a)return;var e=a.WebPartID;if(a.layoutChanges){var d=MSOLayout_SearchArray(a.layoutChanges,c);if(d!=-1)a.layoutChanges[d+1]=b;else{a.layoutChanges.push(c);a.layoutChanges.push(b)}}else{a.layoutChanges=[];a.layoutChanges.push(c);a.layoutChanges.push(b)}if(MSOLayout_SearchArray(MSOLayout_unsavedChanges,e)==-1){MSOLayout_unsavedChanges.push((MSOLayout_unsavedChanges.length?"|":"")+e);MSOLayout_unsavedChanges.push(a.layoutChanges)}document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=MSOLayout_unsavedChanges;MSOLayout_UpdatePropertySheet(a,c,b);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 a=document.URLUnencoded,d=/\#/,c=a.search(d);if(c!=-1)a=a.substring(0,c);a=encodeURI(a);var b=new ActiveXObject("Microsoft.XMLHTTP");b.Open("POST",a,false);var e="&__REQUESTDIGEST="+URLEncode(document.forms[MSOWebPartPageFormName].__REQUESTDIGEST.value)+"&MSOLayout_LayoutChanges="+URLEncode(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value);b.setRequestHeader("Content-Type","application/x-www-form-urlencoded");b.Send(e);document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=""}}function MSOLayout_SearchArray(b,c){for(var a=0;a<b.length;a++)if(b[a]==c||b[a]=="#"+c)return a;return -1}function MSOWebPartPage_OpenMenu(b,m,a,l){if(a){MenuWebPart=a;MenuWebPartID=a.WebPartID;var j=b.all.item("MSOMenu_Minimize"),e=b.all.item("MSOMenu_Restore"),h=b.all.item("MSOMenu_Close"),f=b.all.item("MSOMenu_Delete"),g=b.all.item("MSOMenu_Export"),d=b.all.item("MSOMenu_RestorePartDefaults"),i=b.all.item("MSOMenu_Help"),c=b.all.item("MSOMenu_Connections");if(j)j.style.display=a.allowMinimize=="false"||a.style.display=="none"?"none":"";if(e)e.style.display=a.allowMinimize=="false"||a.style.display!="none"?"none":"";if(h)h.style.display=a.allowRemove=="false"?"none":"";if(f)f.style.display=MSOLayout_inDesignMode&&a.allowDelete!="false"?"":"none";if(g)g.style.display=a.allowExport=="false"?"none":"";if(i)i.style.display=a.helpLink==null?"none":"";if(d)d.style.display=MSOLayout_inDesignMode&&a.HasPers=="true"&&a.OnlyForMePart!="true"?"":"none";if(c)c.style.display=MSOLayout_inDesignMode?"":"none";if(l!="False"){var k=document.all.item("MSOMenu_Connections"+a.id);if(c!=null&&k!=null)c.outerHTML=k.innerHTML}}MenuHtc_show(b,m,true,null,null);return true}function MSOConn_IsXFormUINeeded(){var a=MSOConn_TargetGroupNode.selectSingleNode("tInterface"),c=false,b=a.selectSingleNode("xForm");if(b!=null&&a.selectSingleNode("mi").getAttribute("isXFormUINeeded")=="True"){c=true;if(MSOConn_TargetGroupNode.getAttribute("isConn")=="True")document.all.MSOConn_Button.value="edit";if(b.getAttribute("type")=="RowCellTransform")MSOConn_ShowRowCellXForm(a);else if(b.getAttribute("type")=="RowFilterTransform")MSOConn_ShowRowFilterXForm(a);else MSOConn_ShowAspXForm(a)}if(!c&&MSOConn_TargetGroupNode.getAttribute("isConn")=="True"&&MSOConn_BackButtonClicked==false)document.all.MSOConn_Button.value="remove"}function MSOConn_ShowRowFilterXForm(targetInterface){var rowProInitArgNode,filConInitArgNode,providerPart,consumerPart,sMatchInterfaceName=targetInterface.selectSingleNode("mi").getAttribute("id"),xFormInfo=targetInterface.selectSingleNode("mi").getAttribute("xInfo"),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=[],rowFieldDisplayList=[],rowFieldListNodes=rowProInitArgNode.selectNodes("Field"),filterFieldListNodes=filConInitArgNode.selectNodes("Field"),filterFieldList=[],filterFieldDisplayList=[];if(rowFieldListNodes==null||rowFieldListNodes.length==0){var cref=rowProInitArgNode.getAttribute("cref");if(cref!=null){var strVal=cref+".GetInitEventArgs()",args=null;try{args=eval(strVal)}catch(a){}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()",args=null;try{args=eval(strVal)}catch(a){}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,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;",url=document.all.MSOConn_RFProXform.value+"?part=provider",arguments=[rowList,isConnected,providerPart.getAttribute("title"),consumerPart.getAttribute("title"),MSOConn_MultipleTargetGroups,xFormInfo,rowFieldList],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=[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,cellConInitArgNode=null,providerPart=null,consumerPart=null,rcxFormInfo=null,sMatchInterfaceName=targetInterface.selectSingleNode("mi").getAttribute("id"),xFormInfo=targetInterface.selectSingleNode("mi").getAttribute("xInfo"),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=[],fieldDisplayList=[],fieldListNodes=rowProInitArgNode.selectNodes("Field");if(fieldListNodes==null||fieldListNodes.length==0){var cref=rowProInitArgNode.getAttribute("cref");if(cref!=null){var strVal=cref+".GetInitEventArgs()",args=null;try{args=eval(strVal)}catch(a){}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"),cellDisplayName=cellConInitArgNode.getAttribute("FieldDisplayName");if(cell==null){var cref=cellConInitArgNode.getAttribute("cref");if(cref!=null){var strVal=cref+".GetInitEventArgs()",args=null;try{args=eval(strVal)}catch(a){}if(args!=null){cell=args.FieldName;cellDisplayName=args.cellDisplayName}}}if(fieldList!=null&&fieldList.length!=0&&cell!=null||isConnected=="True"){var cellName=cell,rowList=fieldList;if(fieldDisplayList!=null&&fieldDisplayList.length==fieldList.length)rowList=fieldDisplayList;if(cellDisplayName!=null)cellName=cellDisplayName;var arguments=[rowList,cellName,isConnected,providerPart.getAttribute("title"),consumerPart.getAttribute("title"),MSOConn_MultipleTargetGroups,xFormInfo,fieldList],sFeatures="dialogHeight:210px;dialogWidth:460px;center:yes;help:no;status:no;scroll:no;resizable:no;",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(e){var j=e.selectSingleNode("xForm"),k=j.getAttribute("type"),i=e.selectSingleNode("mi").getAttribute("xInfo"),g=MSOConn_TargetGroupNode.getAttribute("isConn"),l=e.getAttribute("id"),f;if(MSOConn_MultipleTargetGroups)f="True";else f="False";var h="dialogHeight:210px;dialogWidth:460px;center:yes;help:no;status:no;scroll:no;resizable:no;",a=document.all.MSOConn_AspXformUrl.value;a+="?pageUrl=";a+=escapeProperly(document.location.href);a+="&sWpId=";a+=escapeProperly(document.all.MSOConn_SWpId.value);a+="&sGroupId=";a+=escapeProperly(document.all.MSOConn_SGroupId.value);a+="&tWpId=";a+=escapeProperly(document.all.MSOConn_TWpId.value);a+="&tGroupId=";a+=escapeProperly(l);a+="&xFormType=";a+=escapeProperly(k);a+="&xFormInfo=";a+=escapeProperly(i);a+="&isMultiGroup=";a+=escapeProperly(f);a+="&isConnected=";a+=escapeProperly(g);var b=window.showModalDialog(a,null,h);if(b==null)b=[null,null];var c=b[0],d=b[1];if(c=="undefined"||c==null)MSOConn_ConnCancelled=true;else if(c=="remove"){document.all.MSOConn_Button.value="remove";d=""}else if(c=="choose"){MSOConn_ShowTargetGroupsDialog();MSOConn_ShowXFormsAndPersist();MSOConn_ConnCancelled=true}if(d!=null&&MSOConn_ConnCancelled!=true)MSOConn_AspXformInfo=d}function MSOConn_InitArgsError(){document.body.style.cursor="auto";alert(MSOStrings.NoInitArgs)}function MSOConn_ShowTargetGroupsDialog(){var d=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 e=a.item(i);if(e.getAttribute("isConn")=="True"){d=true;MSOConn_TargetGroupNode=e;break}}if(!d){var f="dialogHeight:210px;dialogWidth:460px;center:yes;help:no;status:no;scroll:no;resizable:no;",b=showModalDialog(document.all.MSOConn_GroupUrl.value,MSOConn_TargetWpNode,f);if(b!=null){document.all.MSOConn_Button.value=b[0];var a=MSOConn_TargetWpNode.selectNodes("tg");for(var c=0;a.length;c++)if(a[c].getAttribute("id")==b[1]){MSOConn_TargetGroupNode=a[c];break}}else MSOConn_ConnCancelled=true}}else MSOConn_ConnCancelled=true}function MSOConn_ConfirmRemoveConnection(d,e){var c=MSOStrings.RemoveConnection,a=[];a[0]=d;a[1]=e;if(a!=null)for(var b=0;b<a.length;b++)c=c.replace("%"+b,a[b]);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(g,h,e,f,i,c,b,a){document.all.MSOConn_SWpId.value=g;document.all.MSOConn_TWpId.value=h;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 d=true;if(a)document.all.MSOConn_TGroupId.value=a;if(c=="True"&&a!=null&&b!=null&&b=="False"){var j=MSOConn_ConfirmRemoveConnection(e,f);if(confirm(j))document.all.MSOConn_Button.value="remove";else d=false}else if(c=="True"&&a==null)document.all.MSOConn_Button.value="edit";if(d==true){document.all.MSOConn_CreationStep.value="1";document.body.style.cursor="wait";__doPostBack(MSOWebPartPageFormName,"")}}function MSOConn_CreateConnectionStep2(j,k,l,m,h,g){var n=null,o=null;document.all.MSOConn_SWpId.value=j;document.all.MSOConn_TWpId.value=k;document.all.MSOConn_SGroupId.value=h;document.all.MSOConn_TGroupId.value=g;var e=MSOConn_Compatibility.selectSingleNode("ConnDesign/sWebPart[@id='MSOConn_"+l+"']");if(e!=null){MSOConn_SourceWpNode=e;var a=null,d=e.selectNodes("sg");for(var i=0;d.length;b++)if(d[i].getAttribute("id")==h){a=d[i];break}if(a!=null){MSOConn_SourceGroupNode=a;var f=a.selectSingleNode("tParts/tWebPart[@id='MSOConn_"+m+"']");if(f!=null){MSOConn_TargetWpNode=f;if(!g){MSOConn_MultipleTargetGroups=true;MSOConn_ShowTargetGroupsDialog()}else{var c=f.selectNodes("tg");for(var b=0;c.length;b++)if(c[b].getAttribute("id")==g){MSOConn_TargetGroupNode=c[b];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(b,a){a.style.display="none";b.style.display="inline"}function MSOLayout_ShowQuickAddDialog(j,k,c,e,d,f,g,b,h,i){var a="?SiteId="+j+"&WebId="+k;if(c!="")a+="&Groups="+c;if(e==false)a+="&ShowListsAndLibraries=false";a+="&NumberOfWebPartsInZone="+d;a+="&MaxWebPartsInZone="+f;if(b!="")a+="&ZoneDisplayName="+b;commonShowModalDialog(h+a,i,g)}var MSOTlPn_prevBuilder=null,MSOTlPn_prevWidth=0,MSOTlPn_prevHeight=0,MSOTlPn_shownViewChangeWarning=false,MSOWebPartPage_hideNextBeforeUnload=false,MSOWebPartPage_partDeleted="",MSOChangeInToolPaneWidth=120;function ConvertToAspPartDisplayMode(b){var a;switch(b){case "-1":a="ExtensibleView";break;case "0":a="Browse";break;case "1":a="Edit";break;case "2":a="Catalog";break;case "3":a="GallerySearch";break;case "4":a="Navigation";break;case "5":a="Import";break;case "6":a="DownLevelWebPartMenu";break;case "7":a="ToolPaneErr"}return a}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(b,a){if(arguments[2]==null)MSOTlPn_ShowToolPane2Wrapper(ConvertToAspPartDisplayMode(b),a);else MSOTlPn_ShowToolPane2Wrapper(ConvertToAspPartDisplayMode(b),a,arguments[2])}function MSOLayout_CheckAndSaveChanges(){if(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges!=null&&document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value!="")MSOLayout_SaveChanges()}function MSOWebPartPage_ExportCheckWarning(d,c){var b=true;if(c)if(!confirm(MSOStrings.ExportPersonalizationDialogText))b=false;if(b){var a=false;if(typeof MSOWPSC_SavePerformed=="boolean")a=MSOWPSC_SavePerformed;MSOWebPartPage_SetWindowLocation(d);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].MSOSPWebPartManager_DisplayModeName.value!="Navigation"){document.forms[MSOWebPartPageFormName].MSOSPWebPartManager_DisplayModeName.value="Browse";var c=/[& | \?]ToolPaneView=[-0-9A-Z]*/ig,d=/[& | \?]DisplayMode=[a-zA-Z]*/ig;a=MSOMode_RemoveMode(a,c);a=MSOMode_RemoveMode(a,d)}document.forms[MSOWebPartPageFormName].MSOWebPartPage_Shared.value=b?"true":"false";document.forms[MSOWebPartPageFormName].action=a;__doPostBack(MSOWebPartPageFormName,"")}function MSOMode_GetNewUrl(d,a){if(a==null)a=document.location.href;var c=/[& | \?]PageView=Personal/ig,b=/[& | \?]PageView=Shared/ig,e="PageView="+(d?"Shared":"Personal");a=MSOMode_RemoveMode(a,c);a=MSOMode_RemoveMode(a,b);a=MSOMode_AddMode(a,b,e);return a}function MSOMode_RemoveMode(a,g){var f=/\#/,d=a.search(f);if(d!=-1)a=a.substring(0,d);var e=/\?/,c=a.search(e);if(c!=-1){var h=a.substring(0,c),b=a.substring(c,a.length);b=b.replace(g,"");if(b.length!=0&&b.charAt(0)!="?")b="?"+b;a=h+b}return a}function MSOMode_AddMode(a,g,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 h=a.substring(b,a.length);if(h.search(g)==-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(d,a,b){var c=showModalDialog(d,a,b);a.value=c}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(e,d){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)}__doPostBack(e,d)}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(b,a){if(a==0||a==1)if(a==0){var c="edge: Sunken; center: yes; help: no; resizable: yes; status: no";window.commonShowModalDialog(b,c)}else window.open(b,null,"scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,location=no");else if(a==2)window.location=b}function MSOTlPn_onToolPaneCloseClick(){var b="Browse",a="49";MSOTlPn_ShowToolPane2Wrapper(b,a)}function MSOPGrid_InvokeFPBuilder(c,b,a){a.value=window.external.InvokeBuilder(c,b,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(i,l,k,c,b,j){var m=i+"_STATEFIELD",d,e=document.getElementById(i),a=document.getElementById(l),g=document.getElementById(k),f=document.getElementById(j);if(e.style.display=="none"){e.style.display="";a.src="/_layouts/images/TPMin2.gif";a.alt=b;f.title=b;g.title=b;d="1"}else{e.style.display="none";a.src="/_layouts/images/TPMax2.gif";a.alt=c;f.title=c;g.title=c;d="0"}var h=document.getElementById(m);if(h!=null)h.value=d}function MSOTlPn_onToolPaneMaxClick(){var e=1,a=document.all["MSOTlPn_minMaxIcon"],c=a.src.substring(0,a.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";c+=document.dir=="rtl"?"tpmax.gif":"tpmin.gif";a.title=MSOStrings.ToolPaneShrinkToolTip;a.alt=MSOStrings.ToolPaneShrinkToolTip;a.parentElement.title=MSOStrings.ToolPaneShrinkToolTip;document.forms[MSOWebPartPageFormName].MSOTlPn_Maximized.value="True"}else{document.all["MSOTlPn_Tbl"].style.width="225px";c+=document.dir=="rtl"?"tpmin.gif":"tpmax.gif";a.title=MSOStrings.ToolPaneWidenToolTip;a.alt=MSOStrings.ToolPaneWidenToolTip;a.parentElement.title=MSOStrings.ToolPaneWidenToolTip;e=-1;document.forms[MSOWebPartPageFormName].MSOTlPn_Maximized.value="False"}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*MSOChangeInToolPaneWidth}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=/[& | \?]DisplayMode=[a-zA-Z]*/ig,d=document.forms[MSOWebPartPageFormName].action,a;a=MSOMode_RemoveMode(document.forms[MSOWebPartPageFormName].action,b);a=MSOMode_RemoveMode(document.forms[MSOWebPartPageFormName].action,c);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,c,b){MSOLayout_CheckAndSaveChanges();document.forms[MSOWebPartPageFormName].action=MSOMode_GetNewUrl(true);MSOTlPn_ShowToolPane2Wrapper(a,c,b)}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}