var StrNewNamespace="http://schemas.microsoft.com/WebPart/v2";function SplitIndex(b){var sPropURN="";var sPropName="";var pos=b.lastIndexOf("#");if(-1==pos)pos=b.lastIndexOf(":");if(-1==pos)sPropName=b;else{sPropName=b.substring(pos+1,b.length);sPropURN=b.substring(0,pos);}var Splitted={"PropURN":sPropURN,"PropName":sPropName};return Splitted;}function String2XML(c){var XMLString="";var re=/&/g;XMLString=c.replace(re,"&amp;");re=/</g;XMLString=XMLString.replace(re,"&lt;");re=/>/g;XMLString=XMLString.replace(re,"&gt;");re=/"/g;XMLString=XMLString.replace(re,"&quot;");re=/'/g;XMLString=XMLString.replace(re,"&apos;");return XMLString;}function URL2Unicode(e){return Utf8ToUnicode(unescape(e));}function Unicode2URL(g){return URLEncode(g);}function URLEncode(h){var strSpecialUrl=" <>\"#%{}|^~[]`'&?+=";var strEncode="";var i;var chUrl;var iCode;h+="";for(i=0;i<h.length;i++){chUrl=h.charAt(i);iCode=chUrl.charCodeAt(0);if(iCode<=parseInt(127)){if(strSpecialUrl.indexOf(chUrl)!=-1)strEncode+="%"+iCode.toString(16).toUpperCase();else strEncode+=chUrl;}else strEncode+=GetUTFCode(iCode);}return strEncode;}function GetUTFCode(j){var BitLen=11;var ByteLen=2;var UTFCode="";var FirstByte=192;var i;while(j>=1<<BitLen){FirstByte=FirstByte>>1;BitLen+=5;ByteLen++;}for(i=0;i<ByteLen;i++){var Code=128|j&63;j=j>>>6;if(i==ByteLen-1)Code|=FirstByte;UTFCode="%"+Code.toString(16).toUpperCase()+UTFCode;}return UTFCode;}function Utf8ToUnicode(k){if(k==null)return "";var bstr="";var nTotalChars=k.length;var nOffset=0;var nRemainingBytes=nTotalChars;var nOutputPosition=0;var iCode;var iCode1;var iCode2;while(nOffset<nTotalChars){iCode=k.charCodeAt(nOffset);if((iCode&128)==0){if(nRemainingBytes<1)break;bstr+=String.fromCharCode(iCode&127);nOffset++;nRemainingBytes-=1;}else{if((iCode&224)==192){iCode1=k.charCodeAt(nOffset+1);if(nRemainingBytes<2||(iCode1&192)!=128)break;bstr+=String.fromCharCode((iCode&63)<<6|iCode1&63);nOffset+=2;nRemainingBytes-=2;}else{if((iCode&240)==224){iCode1=k.charCodeAt(nOffset+1);iCode2=k.charCodeAt(nOffset+2);if(nRemainingBytes<3||(iCode1&192)!=128||(iCode2&192)!=128)break;bstr+=String.fromCharCode((iCode&15)<<12|(iCode1&63)<<6|iCode2&63);nOffset+=3;nRemainingBytes-=3;}else break;}}}if(0!=nRemainingBytes)bstr="";return bstr;}function SPSoapRequestBuilder(l){var object=new Object();function m(n,o){var index=this.parameterNameList.length;this.parameterNameList[index]=n;this.parameterValueList[index]=o;}function p(q){var funcName=this.functionName;var paramNames=this.parameterNameList;var paramValues=this.parameterValueList;q.setRequestHeader("Content-Type","text/xml; charset=utf-8");q.setRequestHeader("SOAPAction","http://microsoft.com/sharepoint/webpartpages/"+funcName);var soapData="<?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><"+funcName+" xmlns=\"http://microsoft.com/sharepoint/webpartpages\">";for(var i=0;i<paramNames.length;i++){var soapParam=typeof paramValues[i]=="string"?String2XML(paramValues[i]):paramValues[i];soapData+="<"+paramNames[i]+">"+soapParam+"</"+paramNames[i]+">";}soapData+="</"+funcName+">"+"</soap:Body>"+"</soap:Envelope>";q.Send(soapData);return q;}object.functionName=l;object.parameterNameList=new Array();object.parameterValueList=new Array();object.AddParameter=m;object.SendSOAPMessage=p;return object;}function Collection(){function r(s){var Obj=null;if(s!=null){var realIndex=parseInt(s);if(!isNaN(realIndex)&&realIndex>=0&&realIndex<this.length)Obj=this[realIndex];}return Obj;}function t(u){var i;var obj=null;for(i=0;i<this.length;i++){if(this[i]==u){obj=this[i];break;}}return obj;}function v(w,x){var i;var obj=null;for(i=0;i<this.length;i++){if(this[i].Name==w&&this[i].Qualifier==x){obj=this[i];break;}}return obj;}function y(z){var ArraySize=this.length;this[ArraySize]=z;return this[ArraySize];}function A(B){var i;var realIndex=parseInt(B);if(isFinite(realIndex)&&realIndex>=0&&realIndex<this.length){for(i=realIndex;i<this.length-1;i++){this[i]=this[i+1];}this.length--;}}function C(D){var i;for(i=0;i<this.length;i++){if(this[i]==D){this.Remove(i);break;}}}function E(){return this.length;}var obj=Array();obj.Item=r;obj.Count=E;obj.Add=y;obj.Remove=A;obj.Find=t;obj.FindByName=v;obj.RemoveObject=C;return obj;}function PartDef(F,G,H){function I(J){var differentNameSpace=J.NamespaceURN.toLowerCase()!=StrNewNamespace.toLowerCase();return currentXML="<"+J.SchemaElement+(differentNameSpace?" xmlns='"+String2XML(J.NamespaceURN)+"'":" ")+">"+String2XML(J.Value.toString())+"</"+J.SchemaElement+">";}function K(L,M){if(!this.Properties.PropertiesLoaded)return;var partDWP="<WebPart xmlns= '"+StrNewNamespace+"'>"+I(this.Properties.AssemblyInfo)+I(this.Properties.TypeNameInfo);for(var index=0;index<this.Properties.length;index++){partDWP+=I(this.Properties[index]);}partDWP+="</WebPart>";try{var varPart=eval("varPart"+this.WebPartQualifier);var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");this.xmlhttp=xmlhttp;varPart.callBackUsed=false;xmlhttp.Open("POST",WPSC.WebPartPage.WebURL+"/_vti_bin/WebPartPages.asmx",L!=true?false:true);if(M!=null){this.callBackFunction=M;xmlhttp.onreadystatechange=new Function("varPart"+this.WebPartQualifier+".SaveHandler()");}var soapBuilder=SPSoapRequestBuilder("SaveWebPart");soapBuilder.AddParameter("pageUrl",document.location.href);soapBuilder.AddParameter("storageKey",this.StorageKey);soapBuilder.AddParameter("webPartXml",partDWP);soapBuilder.SendSOAPMessage(xmlhttp);}catch(exception){var varPart=eval("varPart"+this.WebPartQualifier);if(M!=null&&varPart.callBackUsed!=true){M(false,"");varPart.callBackUsed=true;}}}function N(){var varPart=eval("varPart"+this.WebPartQualifier);if(this.xmlhttp.readyState==4&&this.callBackFunction!=null&&varPart.callBackUsed!=true){var saveSucceeded=this.xmlhttp.responseXML.getElementsByTagName("SaveWebPartResponse")[0]!=null;var soapStatus=this.xmlhttp.status;var 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=N;this.DOMObject=H;this.WebPartQualifier=F;this.StorageKey=G;this.Properties=new PropColDef();this.Properties.Owner=this;this.Save=K;}function PropertyDef(O,P,Q){this.OriginalValue=Q;this.NamespaceURN=O;this.SchemaElement=P;this.Value=Q;}function PropColDef(){var PropCol=new Collection();function R(S,T){var returnValues=new Array();try{var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");if(xmlhttp==null)return;xmlhttp.Open("POST",WPSC.WebPartPage.WebURL+"/_vti_bin/WebPartPages.asmx",false);var soapBuilder=SPSoapRequestBuilder("GetWebPart");soapBuilder.AddParameter("pageurl",document.location.href);soapBuilder.AddParameter("storageKey",S);soapBuilder.AddParameter("storage","None");soapBuilder.SendSOAPMessage(xmlhttp);xmlhttp.responseXML.loadXML(xmlhttp.responseXML.text);var webPartXML=xmlhttp.responseXML.getElementsByTagName("WebPart")[0];if(webPartXML){var propertiesListXML=webPartXML.childNodes;for(var index=0;index<propertiesListXML.length;index++){var node=propertiesListXML.item(index);var prop=new PropertyDef(node.namespaceURI,node.baseName,node.nodeTypedValue);returnValues[returnValues.length]=prop;}}else alert(MSOStrings.GetPropertiesFailure);}catch(e){alert(MSOStrings.GetPropertiesFailure);}return returnValues;}function U(V){var nIndex=-1;var property=null;if(isNaN(V)){var Splitted=SplitIndex(V);var PropURN=Splitted.PropURN;var PropName=Splitted.PropName;var i;for(i=0;i<PropCol.Count();i++){var W=PropCol[i];var itemNamespace=new String(W.NamespaceURN);var schemaMatch=W.SchemaElement.toLowerCase()==PropName.toLowerCase();var namespaceMatch=itemNamespace.toLowerCase()==PropURN.toLowerCase();if(schemaMatch&&namespaceMatch){nIndex=i;property=W;break;}}}else{if(V<0||V>=PropCol.Count()){nIndex=-1;property=null;}else{nIndex=V;property=PropCol[V];}}return property;}function W(X){var Property=null;if(X!=null){if(!this.PropertiesLoaded)this.LoadProperties();Property=U(X);}return Property;}function Y(Z,ab){this.Owner=ab;for(var i=0;i<Z.length;i++){var node=Z[i];if(node.SchemaElement=="Assembly")this.AssemblyInfo=node;else{if(node.SchemaElement=="TypeName")this.TypeNameInfo=node;else this[this.length]=node;}}}function bb(){if(!this.PropertiesLoaded)this.LoadProperties();return this.length;}function cb(){this.Init(R(this.Owner.StorageKey,false),this.Owner);this.PropertiesLoaded=true;}PropCol.Owner=null;PropCol.Item=W;PropCol.Init=Y;PropCol.Count=bb;PropCol.LoadProperties=cb;PropCol.PropertiesLoaded=false;PropCol.AssemblyInfo=null;PropCol.TypeNameInfo=null;return PropCol;}function PartColDef(){var ThisPartCol=new Collection();function eb(gb){var nIndex=-1;if(isNaN(gb)){var i;for(i=0;i<ThisPartCol.Count();i++){if(ThisPartCol.Item(i).WebPartQualifier==gb){nIndex=i;break;}}}else{if(gb<0||gb>=ThisPartCol.Count())nIndex=-1;else nIndex=gb;}return nIndex;}function hb(jb){var Part=null;if(jb!=null){var PartIndex=eb(jb);if(PartIndex>=0)Part=ThisPartCol.Item(PartIndex);}return Part;}function kb(lb,mb,nb){var NewPart;var PartIndex=eb(lb);if(PartIndex>=0)NewPart=ThisPartCol.Item(PartIndex);else{NewPart=new PartDef(lb,mb,nb);ThisPartCol.Add(NewPart);this.Count=ThisPartCol.Count();}return NewPart;}function ob(pb){ThisPartCol.Remove(eb(pb));this.Count=ThisPartCol.Count();}this.Item=hb;this.Register=kb;this.UnRegister=ob;this.Count=ThisPartCol.Count();}function WebPartPageDef(qb){this.Parts=new PartColDef();this.DOMObject=qb;this.Properties=new PropColDef();}function EventDef(rb){var EventHandlers=new Collection();function sb(tb){return EventHandlers.Find(tb);}function ub(vb){return EventHandlers.Add(vb);}function wb(xb){EventHandlers.RemoveObject(xb);}function yb(zb){var i;for(i=0;i<EventHandlers.Count();i++){EventHandlers.Item(i)(zb);}}this.Name=rb;this.FindEventHandler=sb;this.AddHandler=ub;this.RemoveHandler=wb;this.Raise=yb;}function NotificationServiceDef(){var Events=new Collection();function Ab(Bb,Cb){switch(Bb){case "onafterprint":case "onbeforeprint":case "onbeforeunload":case "onblur":case "onclose":case "onload":case "onresize":case "onfocus":window.attachEvent(Bb,Cb);break;case "onclick":case "onhelp":window.document.attachEvent(Bb,Cb);break;default:break;}}function Db(Eb,Fb){switch(Eb){case "onafterprint":case "onbeforeprint":case "onbeforeunload":case "onblur":case "onclose":case "onload":case "onresize":case "onfocus":window.detachEvent(Eb,Fb);break;case "onclick":case "onhelp":window.document.detachEvent(Eb,Fb);break;default:break;}}function Gb(Hb,Ib,Jb){var Ib;var EventName;EventName=Hb+"::"+Ib;Ib=Events.FindByName(EventName);if(null!=Ib)Ib.Raise(Jb);}function Kb(Lb,Mb,Nb,Ob){var EventObject;var EventName;EventName=Lb+"::"+Mb;EventObject=Events.FindByName(EventName,Ob);if(EventObject==null){EventObject=new EventDef(EventName);EventObject.Qualifier=Ob;Events.Add(EventObject);}if(EventObject.FindEventHandler(Nb)==null){if(Lb=="urn:schemas-microsoft-com:dhtml")Ab(Mb,Nb);EventObject.AddHandler(Nb);}}function Pb(Qb,Rb,Sb,Tb){var EventObject;var EventName;EventName=Qb+"::"+Rb;EventObject=Events.FindByName(EventName,Tb);if(EventObject!=null&&EventObject.FindEventHandler(Sb)!=null){if(Qb=="urn:schemas-microsoft-com:dhtml")Db(Rb,Sb);EventObject.RemoveHandler(Sb);}}this.RegisterForEvent=Kb;this.RaiseEvent=Gb;this.UnRegisterForEvent=Pb;}function MessageDef(Ub){this.Name=Ub;this.Value="";}function StateServiceDef(){var SaveCallbacks=new Array();function Vb(){var returnValue=false;if(event!=null){var srcElement=event.srcElement;while(srcElement!=null&&srcElement.tagName!="A"&&srcElement.tagName!="BODY"){srcElement=srcElement.parentElement;}if(srcElement!=null&&srcElement.tagName=="A"){var href=srcElement.href.toLowerCase();returnValue=href.indexOf("javascript:")==0||href.indexOf("vbscript:")==0;}}return returnValue;}function Wb(){if(!MSOWebPartPage_hideNextBeforeUnload){try{if(WPSCinpreview==true){}}catch(e){WPSC.RaiseEvent("urn:schemas-microsoft-com:dhtml","onunload",null);}Xb();}MSOWebPartPage_hideNextBeforeUnload=false;}function Xb(){if(MSOWPSC_SavePerformed==false&&SaveCallbacks.length>0){var i;var prompt=false;for(i=0;i<SaveCallbacks.length;i++){SaveCallbacks[i].Dirty=SaveCallbacks[i].IsDirtyCallbackFunction(SaveCallbacks[i].Param);prompt=prompt||SaveCallbacks[i].Dirty;}if(prompt==true&&window.confirm(MSOStrings.SaveDirtyPartsDialogText))for(i=0;i<SaveCallbacks.length;i++){if(SaveCallbacks[i].Dirty==true){SaveCallbacks[i].SaveCallbackFunction(SaveCallbacks[i].Param);SaveCallbacks[i].Dirty=false;}}}if(typeof event.returnValue=="undefined")MSOWPSC_SavePerformed=true;}function Yb(Zb,ac,bc){var Callback=new CallbackParamDef(Zb,ac,bc);SaveCallbacks[SaveCallbacks.length++]=Callback;}this.BeforeUnloading=Wb;this.IsScriptHREF=Vb;this.RegisterForPromptedSave=Yb;this.ProcessDirtyParts=Xb;}function CallbackParamDef(cc,ec,gc){this.IsDirtyCallbackFunction=cc;this.SaveCallbackFunction=ec;this.Param=gc;this.Dirty=false;}function WPSCDef(){var InternalWebPartPage;var NotificationService=new NotificationServiceDef();function hc(jc,kc){var interfaceObject;for(var i=0;i<jc.length;i++){interfaceObject=eval(jc[i]);if(interfaceObject!=null){if(kc)try{interfaceObject.PartCommunicationInit(WPSC);}catch(e){}else try{interfaceObject.PartCommunicationMain();}catch(e){}}}}function lc(){var xmlNodes;if(MSOConnections==null)return;xmlNodes=MSOConnections.selectNodes("Connections/Connection");if(xmlNodes==null)return;var connectedParts=new Array();var isProviderInList=false;var isConsumerInList=false;var xmlProviderRef=null;var xmlConsumerRef=null;for(var i=0;i<xmlNodes.length;i++){xmlProviderRef=xmlNodes.item(i).selectSingleNode("@ProviderObject");xmlConsumerRef=xmlNodes.item(i).selectSingleNode("@ConsumerObject");isProviderInList=false;isConsumerInList=false;if(xmlProviderRef!=null&&xmlConsumerRef!=null){for(var j=0;j<connectedParts.length;j++){if(connectedParts[j]==xmlProviderRef.text)isProviderInList=true;if(connectedParts[j]==xmlConsumerRef.text)isConsumerInList=true;}if(!isProviderInList)connectedParts[connectedParts.length]=xmlProviderRef.text;if(!isConsumerInList)connectedParts[connectedParts.length]=xmlConsumerRef.text;}}hc(connectedParts,true);hc(connectedParts,false);}function mc(nc,oc,pc,qc){var eventArgs=new Object();var tempNames=rc(pc);var tempValues=rc(qc);if(tempNames.length==tempValues.length){for(var i=0;i<tempNames.length;i++){eval("eventArgs."+tempNames[i]+" = ConvertVBArrayIfNecessary(tempValues[i])");}tc(nc,oc,eventArgs);}}function rc(sc){try{var a=new VBArray(sc);return a.toArray();}catch(e){return sc;}}function tc(uc,vc,wc){var fProvider=false;var xmlNodes;var xmlSourceRef;var xmlTargetRef;var strEval;if(MSOConnections.selectSingleNode("Connections/Connection[@ProviderIntName = '"+uc+"']")!=null)fProvider=true;if(fProvider)xmlNodes=MSOConnections.selectNodes("Connections/Connection[@ProviderIntName ='"+uc+"']");else xmlNodes=MSOConnections.selectNodes("Connections/Connection[@ConsumerIntName ='"+uc+"']");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+="."+vc;strEval+="("+xmlSourceRef.text+", EventParams)";eval(strEval);}}}function xc(yc,zc,Ac){StateService.RegisterForPromptedSave(yc,zc,Ac);}function Bc(Cc){window.attachEvent("onbeforeunload",StateService.BeforeUnloading);document.body.attachEvent("onclick",new Function("if(StateService.IsScriptHREF()) {MSOWebPartPage_hideNextBeforeUnload = true;}"));this.WebPartPage=new WebPartPageDef(Cc);return this.WebPartPage;}function Dc(Ec,Fc,Gc){var Converted=Ec;if("URL"==Fc){if("UNICODE"==Gc)Converted=URL2Unicode(Ec);}else{if("UNICODE"==Fc){if("URL"==Gc)Converted=Unicode2URL(Ec);}}return Converted;}function Hc(Ic,Jc){var menuItem=null;var menu=document.all.item(Ic);if(menu!=null)menuItem=menu.all.item(Jc);return menuItem;}function Kc(Lc,Mc,Nc){var menuItem=Hc(Lc,Mc);if(menuItem!=null)menuItem.checked=Nc?"true":"false";}function Oc(Pc,Qc,Rc){var menuItem=Hc(Pc,Qc);if(menuItem!=null)menuItem.style.display=Rc?"":"none";}function Sc(Tc,Uc,Vc){var menuItem=Hc(Tc,Uc);if(menuItem!=null)menuItem.disabled=!(Vc==true);}function Wc(Xc,Yc){var menuItem=Hc(Xc,Yc);if(menuItem!=null)return menuItem.checked=="true"?true:false;return null;}function Zc(ae,be){var menuItem=Hc(ae,be);if(menuItem!=null)return menuItem.style.display!="none"?true:false;return null;}function ce(ee,ge){var menuItem=Hc(ee,ge);if(menuItem!=null)return menuItem.disabled!=true?true:false;return null;}this.RaiseConnectionEvent=tc;this.RaiseConnectionEventSpecial=mc;this.InitPartCommunication=lc;this.RaiseEvent=NotificationService.RaiseEvent;this.RegisterForEvent=NotificationService.RegisterForEvent;this.UnRegisterForEvent=NotificationService.UnRegisterForEvent;this.RegisterForPromptedSave=xc;this.Init=Bc;this.WebPartPage=InternalWebPartPage;this.Convert=Dc;this.MSOMenu_SetChecked=Kc;this.MSOMenu_SetVisible=Oc;this.MSOMenu_SetEnabled=Sc;this.MSOMenu_GetChecked=Wc;this.MSOMenu_GetVisible=Zc;this.MSOMenu_GetEnabled=ce;}var StateService=new StateServiceDef();var WPSC=new WPSCDef();var MSOWPSC_SavePerformed=false;function MSOWPSC_OnSubmit(){StateService.ProcessDirtyParts();}function Row2ParamsIn_GetRow(he,je,ke){var paramsIndex=new Array(ke.length);var fieldsIndex=new Array(ke.length);for(var i=0;i<paramsIndex;i++){paramsIndex[i]=-1;}for(var i=0;i<fieldsIndex;i++){fieldsIndex[i]=-1;}var params=ke;var fieldNames=je;var name=he;var paramsLength=0;this.RowProviderInit=oe;this.RowReady=te;this.ParametersInConsumerInit=le;function le(me,ne){var paramProps=ne.ParameterInProperties;paramsLength=paramProps.length;if(paramProps!=null&&paramProps.length>0)for(var i=0;i<paramProps.length;i++){for(var j=0;j<params.length;j++){if(paramProps[i].ParameterName==params[j])paramsIndex[j]=i;}}}function oe(pe,qe){var fields=qe.FieldList;if(fields!=null&&fields.length>0)for(var i=0;i<fields.length;i++){for(var j=0;j<fieldNames.length;j++){if(fields[i]==fieldNames[j])fieldsIndex[j]=i;}}}function re(se){this.ParameterValues=se;}function te(ue,ve){var rs=ve.Rows;if(ve.SelectionStatus=="Standard"||ve.SelectionStatus=="New"){if(rs!=null){rs.MoveFirst();var paramValues=new Array(paramsLength);for(var i=0;i<paramsLength;i++){var found=false;try{for(var j=0;j<paramsIndex.length;j++){if(paramsIndex[j]==i){if(rs.Fields.Item(fieldsIndex[j]).Value!=null){var type=rs.Fields.Item(fieldsIndex[j]).Type;var varValue=rs.Fields.Item(fieldsIndex[j]).Value;paramValues[i]=String(varValue);if(type==12){if(typeof varValue=="date")paramValues[i]=P2P_DateToString(paramValues[i]);}else{if(type==7||type==133||type==134||type==135)paramValues[i]=P2P_DateToString(paramValues[i]);}}else paramValues[i]="";found=true;}}}catch(e){found=false;}if(!found)paramValues[i]="";}WPSC.RaiseConnectionEvent(name,"ParametersInReady",new re(paramValues));}}else WPSC.RaiseConnectionEvent(name,"NoParametersIn",null);}}function Row2Cell_GetRow(we,xe){var field=xe;var index=-1;var name=we;this.RowProviderInit=ye;this.RowReady=Ge;function ye(ze,Ae){var fields=Ae.FieldList;var fieldDisplayList=Ae.FieldDisplayList;if(fields!=null&&fields.length>0)for(var i=0;i<fields.length;i++){if(fields[i]==field){index=i;var displayField=null;if(fieldDisplayList!=null&&fieldDisplayList.length>i)displayField=fieldDisplayList[i];WPSC.RaiseConnectionEvent(name,"CellProviderInit",new Be(field,displayField));}}}function Be(Ce,De){this.FieldName=Ce;this.FieldDisplayName=De;}function Ee(Fe){this.Cell=Fe;}function Ge(He,Ie){var rs=Ie.Rows;if(rs!=null){rs.MoveFirst();if(Ie.SelectionStatus&&(Ie.SelectionStatus=="Standard"||Ie.SelectionStatus=="New")&&index!=-1&&rs.Fields!=null&&rs.Fields.Item(index)!=null)WPSC.RaiseConnectionEvent(name,"CellReady",new Ee(rs.Fields.Item(index).Value));else WPSC.RaiseConnectionEvent(name,"CellReady",new Ee(null));}}}function Row2Cell_GetCell(){this.CellConsumerInit=Je;function Je(Ke,Le){}}function Row2Filter_GetFilter(){this.FilterConsumerInit=Me;function Me(Ne,Oe){}}function Row2Filter_GetRow(Pe,Qe,Re){var field=Re;var filter=Qe;var index=-1;var name=Pe;this.RowProviderInit=Se;this.RowReady=bg;function Se(Te,Ue){var fields=Ue.FieldList;if(fields!=null&&fields.length>0)for(var i=0;i<fields.length;i++){if(fields[i]==field)index=i;}}function Ve(We){this.FilterExpression=We;}function Xe(Ye){function Ze(ag){if(ag<10)return "0"+ag;else return ag;}var date=new Date(Date.parse(Ye));var newValue=Ze(date.getMonth()+1)+"/";newValue+=Ze(date.getDate())+"/";newValue+=date.getFullYear()+" ";newValue+=Ze(date.getHours())+":";newValue+=Ze(date.getMinutes())+":";newValue+=Ze(date.getSeconds());return newValue;}function bg(cg,eg){var rs=eg.Rows;if((eg.SelectionStatus=="Standard"||eg.SelectionStatus=="New")&&index!=-1){if(rs!=null){rs.MoveFirst();var filterValue="";try{if(rs.Fields.Item(index).Value!=null){var varValue=rs.Fields.Item(index).Value;var type=rs.Fields.Item(index).Type;filterValue=String(varValue);if(type==12){if(typeof varValue=="date")filterValue=Xe(filterValue);}else{if(type==7||type==133||type==134||type==135)filterValue=Xe(filterValue);}}}catch(e){}WPSC.RaiseConnectionEvent(name,"SetFilter",new Ve("FilterField1="+WPSC.Convert(filter,"UNICODE","URL")+"&FilterValue1="+WPSC.Convert(filterValue,"UNICODE","URL")));}else WPSC.RaiseConnectionEvent(name,"SetFilter",new Ve("FilterField1="+WPSC.Convert(filter,"UNICODE","URL")+"&FilterValue1="));}else WPSC.RaiseConnectionEvent(name,"NoFilter",null);}}function ParamsOut2In_GetParamsOut(gg,hg,jg){var paramsInIndex=new Array(jg.length);var paramsOutIndex=new Array(jg.length);var paramsIn=jg;var paramsOut=hg;var name=gg;var paramsInLength=0;this.ParametersOutProviderInit=qg;this.ParametersOutReady=vg;this.ParametersInConsumerInit=ng;this.NoParametersOut=kg;function kg(lg,mg){WPSC.RaiseConnectionEvent(name,"NoParametersIn",null);}function ng(og,pg){var paramProps=pg.ParameterInProperties;paramsInLength=paramProps.length;if(paramProps!=null&&paramProps.length>0)for(var i=0;i<paramProps.length;i++){for(var j=0;j<paramsIn.length;j++){if(paramProps[i].ParameterName==paramsIn[j])paramsInIndex[j]=i;}}}function qg(rg,sg){var paramProps=sg.ParameterOutProperties;if(paramProps!=null&&paramProps.length>0)for(var i=0;i<paramProps.length;i++){for(var j=0;j<paramsOut.length;j++){if(paramProps[i].ParameterName==paramsOut[j])paramsOutIndex[j]=i;}}}function tg(ug){this.ParameterValues=ug;}function vg(wg,xg){var tempParams=xg.ParameterValues;if(tempParams!=null&&tempParams.length>0){var paramValues=new Array(paramsInLength);for(var i=0;i<paramsInLength;i++){var found=false;for(var j=0;j<paramsInIndex.length;j++){if(paramsInIndex[j]==i){paramValues[i]=tempParams[paramsOutIndex[j]];found=true;}}if(!found)paramValues[i]="";}WPSC.RaiseConnectionEvent(name,"ParametersInReady",new tg(paramValues));}}}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("div");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_ConnCancelled=false;var MSOConn_MultipleTargetGroups=false;var MSOConn_TargetGroupNode=null;var MSOConn_SourceGroupNode=null;var MSOConn_BackButtonClicked=false;function MSOLayout_ToggleLayoutMode(){var inDesignMode=document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value;if(inDesignMode!=1){document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value=1;document.forms[MSOWebPartPageFormName].submit();}else{document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value=0;document.forms[MSOWebPartPageFormName].submit();}}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(yg,zg,Ag){var realValue=0;if(!Ag)Ag=document.body;for(var currentObject=yg;currentObject!=Ag&&currentObject!=document.body;currentObject=currentObject.offsetParent){realValue+=eval("currentObject.offset"+zg);}return realValue;}function MSOLayout_MoveWebPartStart(Bg,Cg,Dg){if(event.button!=1)return;MSOLayout_currentDragMode="move";document.selection.empty();MSOLayout_galleryView=Dg==true?true:false;MSOLayout_CreateDragObject(Cg);MSOLayout_CreateIBar();MSOLayout_oDropLocation=Bg;MSOLayout_maintainOriginalZone=Bg.allowZoneChange=="0"?MSOLayout_GetParentTable(Bg):"0";if(MSOLayout_galleryView&&Bg.dzc!=null){var zones=document.all["MSOZone"];if(zones!=null&&zones.length>1)for(i=0;i<zones.length;i++){if(zones[i].zoneID==Bg.zoneid){MSOLayout_maintainOriginalZone=zones[i];break;}}}MSOLayout_iBar.goodDrop="false";var zone=MSOLayout_GetParentTable(Bg);if(zone.id=="MSOZone"){MSOLayout_zoneDragOver=zone;MSOLayout_zoneDragOver.className="ms-SPZoneSelected";}if(!MSOLayout_galleryView)MSOLayout_MoveIBar(Bg);document.body.attachEvent("ondragover",MSOLayout_MoveWebPartBodyDragOver);var oldDragEnd=document.body.ondragend;var oldDrop=document.body.ondrop;document.body.ondragend=new Function("window.event.returnValue = false;");document.body.ondrop=new Function("MSOLayout_iBar.goodDrop = 'true';");Bg.ondragstart=new Function("try {event.dataTransfer.effectAllowed = 'move';} catch (exception) {}");Bg.attachEvent("ondrag",MSOLayout_MoveDragObject);Bg.dragDrop();document.body.detachEvent("ondragover",MSOLayout_MoveWebPartBodyDragOver);document.body.ondragend=oldDragEnd;document.body.ondrop=oldDrop;Bg.detachEvent("ondrag",MSOLayout_MoveDragObject);MSOLayout_moveObject.style.display="none";MSOLayout_currentDragMode=0;if(navigator.userAgent.toLowerCase().indexOf("msie 5.5")!=-1)Bg.swapNode(Bg);event.returnValue=false;}function MSOLayout_MoveWebPartDragZoneEnter(Eg){if(MSOLayout_currentDragMode!="move")return;if(Eg!=MSOLayout_zoneDragOver){MSOLayout_zoneDragOver.className="ms-SPZone";MSOLayout_zoneDragOver=Eg;event.dataTransfer.dropEffect="move";}MSOLayout_MoveWebPartStopEventBubble();}function MSOLayout_MoveWebPartDragEnter(Fg){if(MSOLayout_currentDragMode!="move")return;event.dataTransfer.dropEffect="move";MSOLayout_cellToDrop=Fg.cellIndex;MSOLayout_rowToDrop=MSOLayout_GetParentRow(Fg).rowIndex;}function MSOLayout_MoveWebPartDragOver(Gg,Hg){if(MSOLayout_currentDragMode!="move")return;event.dataTransfer.dropEffect="move";var needSetup=Hg=="True"?true:false;MSOLayout_SetupDropLocation(Gg,needSetup);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(Ig,Jg){MSOLayout_iBar.style.display="none";MSOLayout_zoneDragOver.className="ms-SPZone";if(MSOLayout_currentDragMode!="move"||MSOLayout_iBar.goodDrop!="true"||Ig==Jg)return;var newTableCell;var originalZone=MSOLayout_GetParentTable(Ig);var originalIndex=Ig.orientation=="Horizontal"?Ig.cellIndex:Ig.parentElement.rowIndex;var destinationZone;var destinationIndex;destinationZone=MSOLayout_GetParentTable(Jg);var zonesChanged=destinationZone!=originalZone;if(Jg.orientation=="Horizontal"){destinationIndex=Jg.cellIndex;newTableCell=MSOLayout_GetParentRow(Jg).insertCell(destinationIndex);}else{destinationIndex=Jg.parentElement.rowIndex;newTableCell=destinationZone.insertRow(MSOLayout_GetParentRow(Jg).rowIndex).insertCell();}newTableCell.swapNode(Ig);if(Ig.orientation=="Horizontal")newTableCell.removeNode(true);else MSOLayout_GetParentRow(newTableCell).removeNode(true);Ig.orientation=Jg.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(Ig.relatedWebPart),"ZoneID",destinationZone.zoneID);MSOLayout_UpdatePartOrderAfterMove(originalZone,0);}MSOLayout_UpdatePartOrderAfterMove(destinationZone,0);}}function MSOLayout_UpdatePartOrderAfterMove(Kg,Lg){var index;if(Kg.orientation=="Horizontal"){var parentRow=Kg.rows[0];for(index=Lg;index<parentRow.cells.length;index++){MSOLayout_AddChange(eval(parentRow.cells[index].relatedWebPart),"PartOrder",index+1);}}else for(index=Lg;index<Kg.rows.length;index++){MSOLayout_AddChange(eval(Kg.rows[index].cells[0].relatedWebPart),"PartOrder",index+1);}}function MSOLayout_CreateDragObject(Mg){var titleText;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)";titleText=MSOLayout_moveObject.insertBefore(document.createElement("NOBR"));titleText.style.cssText="padding-top:2px;width:147px;height:1.5em;overflow:hidden;text-overflow:ellipsis";}else titleText=MSOLayout_moveObject.children(0);titleText.innerText=Mg;}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 newWidth=MSOLayout_moveObject.realWidth;var newHeight=MSOLayout_moveObject.realHeight;var newLeft=event.clientX+document.body.scrollLeft-newWidth/2;var newTop=event.clientY+document.body.scrollTop+1;if(newLeft+newWidth>document.body.scrollWidth)newWidth-=(newLeft+newWidth-document.body.scrollWidth);if(newTop+newHeight>document.body.scrollHeight)newHeight-=(newTop+newHeight-document.body.scrollHeight);if(newHeight<=0||newWidth<=0){MSOLayout_moveObject.style.display="none";newWidth=newHeight=0;}else MSOLayout_moveObject.style.display="";MSOLayout_moveObject.style.width=newWidth;MSOLayout_moveObject.style.height=newHeight;MSOLayout_moveObject.style.pixelLeft=newLeft;MSOLayout_moveObject.style.pixelTop=newTop;}function MSOLayout_CreateIBar(){if(!MSOLayout_vertZoneIBar||!MSOLayout_horzZoneIBar){var iBarBuilder=document.createElement("TABLE");iBarBuilder.style.cssText="font-size:1pt; position:absolute; display:none; border-collapse:collapse";iBarBuilder.className="ms-SPZoneIBar";iBarBuilder.cellSpacing="0";iBarBuilder.cellPadding="0";iBarBuilder.attachEvent("ondragenter",MSOLayout_MoveWebPartStopEventBubble);iBarBuilder.attachEvent("ondragover",MSOLayout_MoveWebPartStopEventBubble);var insideIBarCell=iBarBuilder.insertRow().insertCell();insideIBarCell.align="center";var insideIBar=insideIBarCell.insertBefore(document.createElement("DIV"));insideIBar.id="MSOLayout_insideIBar";insideIBar.className="ms-SPZoneIBar";insideIBar.style.backgroundColor=iBarBuilder.currentStyle.borderColor;insideIBar.style.background="transparent";insideIBar.style.borderWidth="2px";insideIBar.style.position="relative";MSOLayout_horzZoneIBar=MSOLayout_topObject.appendChild(iBarBuilder.cloneNode(true));MSOLayout_vertZoneIBar=MSOLayout_topObject.appendChild(iBarBuilder.cloneNode(true));var insideHorzIBar=MSOLayout_horzZoneIBar.all["MSOLayout_insideIBar"];var insideVertIBar=MSOLayout_vertZoneIBar.all["MSOLayout_insideIBar"];MSOLayout_horzZoneIBar.style.width=6;MSOLayout_horzZoneIBar.style.borderStyle="solid none";insideHorzIBar.style.height="100%";insideHorzIBar.style.width="33%";insideHorzIBar.style.borderStyle="none solid none none";insideHorzIBar.style.posTop=0;MSOLayout_vertZoneIBar.style.height=6;MSOLayout_vertZoneIBar.style.borderStyle="none solid";insideVertIBar.style.width="100%";insideVertIBar.style.height="2";insideVertIBar.style.borderStyle="solid none none none";insideVertIBar.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(Ng){if(MSOLayout_iBar)MSOLayout_iBar.style.display="none";var insideLayoutDiv=MSOLayout_topObject.contains(Ng);if(MSOLayout_maintainOriginalZone=="0"||MSOLayout_GetParentTable(Ng)==MSOLayout_maintainOriginalZone){var insideIBar;if(Ng.orientation=="Horizontal"){var rightOffset=document.dir=="rtl"?Ng.offsetWidth-(Ng.cellIndex==0?3:0):0;MSOLayout_iBar=insideLayoutDiv?MSOLayout_iBar=MSOLayout_horzZoneIBar:MSOLayout_horzBodyZoneIBar;insideIBar=MSOLayout_iBar.all["MSOLayout_insideIBar"];MSOLayout_iBar.style.pixelLeft=MSOLayout_GetRealOffset(Ng,"Left",MSOLayout_topObject)-(Ng.cellIndex==0?0:3);MSOLayout_iBar.style.pixelLeft+=rightOffset;MSOLayout_iBar.style.pixelTop=MSOLayout_GetRealOffset(MSOLayout_zoneDragOver,"Top",MSOLayout_topObject)+1;MSOLayout_iBar.style.height=MSOLayout_zoneDragOver.clientHeight;if(Ng.id=="MSOZone_EmptyZoneCell"){var emptyZoneText=Ng.all.item("MSOZoneCell_emptyZoneText");if(emptyZoneText!=null&&emptyZoneText.webPartsInZone>0)MSOLayout_iBar.style.pixelLeft-=3;}}else{MSOLayout_iBar=insideLayoutDiv?MSOLayout_vertZoneIBar:MSOLayout_vertBodyZoneIBar;insideIBar=MSOLayout_iBar.all["MSOLayout_insideIBar"];MSOLayout_iBar.style.pixelLeft=MSOLayout_GetRealOffset(MSOLayout_zoneDragOver,"Left",MSOLayout_topObject)+1;MSOLayout_iBar.style.pixelTop=MSOLayout_GetRealOffset(Ng,"Top",MSOLayout_topObject)-(MSOLayout_GetParentRow(Ng).rowIndex==0?0:4);MSOLayout_iBar.style.width=MSOLayout_zoneDragOver.clientWidth;if(Ng.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 dropd=document.all[zoneChooserID];if(dropd!=null)for(i=0;i<dropd.options.length;i++){if(dropd.options[i].value==MSOLayout_zoneDragOver.zoneID)dropd.options[i].selected=true;}}function MSOLayout_SetupDropLocation(Og,Pg){if(Og.orientation=="Vertical"){var parentRow=MSOLayout_GetParentRow(Og);if(!parentRow)return;if(Pg&&event.clientY+MSOLayout_topObject.scrollTop-MSOLayout_GetRealOffset(Og,"Top")>Og.offsetHeight/2)MSOLayout_rowToDrop=parentRow.rowIndex+1;else MSOLayout_rowToDrop=parentRow.rowIndex;}else{var rtlPage=document.dir=="rtl";var maxCells=Og.parentElement.childNodes.length;var nextCellIndex=Og.cellIndex+1;if(Pg&&event.clientX+MSOLayout_topObject.scrollLeft-MSOLayout_GetRealOffset(Og,"Left")>Og.offsetWidth/2)MSOLayout_cellToDrop=rtlPage?Og.cellIndex:Og.cellIndex+1;else{if(rtlPage)MSOLayout_cellToDrop=nextCellIndex>=maxCells?Og.cellIndex:Og.cellIndex+1;else MSOLayout_cellToDrop=Og.cellIndex;}}}function MSOLayout_UpdatePropertySheet(Qg,Rg,Sg){var toolPane=document.all.item("MSOTlPn_MainTD");if(Qg.SelectedWebPart&&toolPane)for(Elements=toolPane.all,ElementIndex=0;ElementIndex<Elements.length;ElementIndex++){if(Elements[ElementIndex].layoutID==Rg){if(Rg=="FrameState")for(radioElements=Elements[ElementIndex].all,radioIndex=0;radioIndex<radioElements.length;radioIndex++){if(radioElements[radioIndex].value==Sg){radioElements[radioIndex].checked=true;break;}}else{if(Rg=="Height"||Rg=="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=Sg;else{if(radioElements[radioIndex].id.indexOf("UnitsDropdown")!=-1)radioElements[radioIndex].value="Pixel";}}}else Elements[ElementIndex].value=Sg;}}}}function MSOLayout_MinimizeRestore(Tg){var newValue;var newValueIndex;if(Tg.style.display!="none"){newValue="Minimized";newValueIndex=1;Tg.style.display="none";}else{newValue="Normal";newValueIndex=0;Tg.style.display="";}MSOLayout_UpdatePropertySheet(Tg,"FrameState",newValue);MSOLayout_AddChange(Tg,"frameState",newValueIndex);}function MSOLayout_PageViewerMinimizeRestore(Ug,Vg){var PageViewerIFrame=document.all.item(Vg);if(PageViewerIFrame!=null){if(Ug.style.display!="none"){if(PageViewerIFrame.src!=PageViewerIFrame.ddf_src)PageViewerIFrame.src=PageViewerIFrame.ddf_src;}}}function MSOLayout_FindAncestorByAttribute(Wg,Xg){while(Wg!=null){if(Wg.getAttribute(Xg)!=null)break;Wg=Wg.parentElement;}return Wg;}function MSOLayout_MinimizeRestoreToolPart(Yg,Zg){if(event.keyCode!=0&&event.keyCode!=13&&event.keyCode!=32)return;var display=null;var imgElement=event.srcElement;var tdElement=event.srcElement;if(imgElement.tagName=="TD")imgElement=imgElement.children.tags("IMG")[0];else tdElement=imgElement.parentElement;var part=MSOLayout_FindAncestorByAttribute(document.all.item(Yg),"ToolPartExpandCollapse");var image=imgElement.src;var lastSlash=image.lastIndexOf("/");var path=image.substring(0,lastSlash+3);var lastChar=image.charAt(image.length-5);image=image.substring(lastSlash+3,image.length-5);display="inline";if(part.style.display!="none")display="none";var minMax;var tooltipString;if(image=="Max"){minMax="Min";tooltipString=MSOStrings.ToolPartCollapseToolTip;}else{minMax="Max";var tooltipString=MSOStrings.ToolPartExpandToolTip;}tooltipString=tooltipString.replace("%0",Zg);imgElement.alt=tooltipString;tdElement.title=tooltipString;part.style.display=display;imgElement.src=path+minMax+lastChar+".gif";}function MSOLayout_RemoveWebPart(ah){MSOLayout_AddChange(ah,"isIncluded","False");document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=19;if(ah.SelectedWebPart)MSOTlPn_onToolPaneCloseClick();else document.forms[MSOWebPartPageFormName].submit();}function MSOLayout_RefreshIFrame(bh){document.forms[MSOWebPartPageFormName].MSOWebPartPage_PostbackSource.value=23;bh.src=bh.src;}function MSOLayout_GetStyleFromClass(ch,eh){document.body.insertAdjacentHTML("beforeEnd","<div style = 'display:none' id='temp' class='"+ch+"'></div>");var sReturnValue=eval("temp.currentStyle."+eh);temp.removeNode();return sReturnValue;}function MSOLayout_AddChange(gh,hh,jh){if(!gh)return;var WebPartGUID=gh.WebPartID;if(gh.layoutChanges){var propertyIndex=MSOLayout_SearchArray(gh.layoutChanges,hh);if(propertyIndex!=-1)gh.layoutChanges[propertyIndex+1]=jh;else{gh.layoutChanges.push(hh);gh.layoutChanges.push(jh);}}else{gh.layoutChanges=new Array();gh.layoutChanges.push(hh);gh.layoutChanges.push(jh);}if(MSOLayout_SearchArray(MSOLayout_unsavedChanges,WebPartGUID)==-1){MSOLayout_unsavedChanges.push((MSOLayout_unsavedChanges.length?"|":"")+WebPartGUID);MSOLayout_unsavedChanges.push(gh.layoutChanges);}document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value=MSOLayout_unsavedChanges;MSOLayout_UpdatePropertySheet(gh,hh,jh);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 pageUrl=document.URLUnencoded;var hashMarkExpression=/\#/;var hashMarkIndex=pageUrl.search(hashMarkExpression);if(hashMarkIndex!=-1)pageUrl=pageUrl.substring(0,hashMarkIndex);pageUrl=encodeURI(pageUrl);var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");xmlhttp.Open("POST",pageUrl,false);var formData="&__REQUESTDIGEST="+URLEncode(document.forms[MSOWebPartPageFormName].__REQUESTDIGEST.value)+"&MSOLayout_LayoutChanges="+URLEncode(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value);xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlhttp.Send(formData);document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value="";}}function MSOLayout_SearchArray(kh,lh){for(var index=0;index<kh.length;index++){if(kh[index]==lh||kh[index]=="#"+lh)return index;}return -1;}function MSOWebPartPage_OpenMenu(mh,nh,oh,ph){if(oh){MenuWebPart=oh;MenuWebPartID=oh.WebPartID;var minOption=mh.all.item("MSOMenu_Minimize");var restoreOption=mh.all.item("MSOMenu_Restore");var closeOption=mh.all.item("MSOMenu_Close");var deleteOption=mh.all.item("MSOMenu_Delete");var exportOption=mh.all.item("MSOMenu_Export");var resetPersOption=mh.all.item("MSOMenu_RestorePartDefaults");var helpOption=mh.all.item("MSOMenu_Help");var connectionOption=mh.all.item("MSOMenu_Connections");if(minOption)minOption.style.display=oh.allowMinimize=="false"||oh.style.display=="none"?"none":"";if(restoreOption)restoreOption.style.display=oh.allowMinimize=="false"||oh.style.display!="none"?"none":"";if(closeOption)closeOption.style.display=oh.allowRemove=="false"?"none":"";if(deleteOption)deleteOption.style.display=MSOLayout_inDesignMode&&oh.allowDelete!="false"?"":"none";if(exportOption)exportOption.style.display=oh.allowExport=="false"?"none":"";if(helpOption)helpOption.style.display=oh.helpLink==null?"none":"";if(resetPersOption)resetPersOption.style.display=MSOLayout_inDesignMode&&oh.HasPers=="true"&&oh.OnlyForMePart!="true"?"":"none";if(connectionOption)connectionOption.style.display=MSOLayout_inDesignMode?"":"none";if(ph!="False"){var connMenu=document.all.item("MSOMenu_Connections"+oh.id);if(connectionOption!=null&&connMenu!=null)connectionOption.outerHTML=connMenu.innerHTML;}}try{if(!mh.isOpen())mh.show(nh,true);}catch(e){}}function MSOConn_IsXFormNeeded(){var tinterface=MSOConn_TargetGroupNode.selectSingleNode("tInterface");var xFormNeeded=false;var xFormNode=tinterface.selectSingleNode("xForm");if(xFormNode!=null){xFormNeeded=true;if(MSOConn_TargetGroupNode.getAttribute("isConn")=="True")document.all.MSOConn_Button.value="edit";if(xFormNode.getAttribute("type")=="RowCellTransform")MSOConn_ShowRowCellXForm(tinterface);else{if(xFormNode.getAttribute("type")=="RowFilterTransform")MSOConn_ShowRowFilterXForm(tinterface);}}if(!xFormNeeded&&MSOConn_TargetGroupNode.getAttribute("isConn")=="True"&&MSOConn_BackButtonClicked==false)document.all.MSOConn_Button.value="remove";}function MSOConn_ShowRowFilterXForm(qh){var rowProInitArgNode;var filConInitArgNode;var providerPart;var consumerPart;var sMatchInterfaceName=qh.selectSingleNode("mi").getAttribute("id");var xFormInfo=qh.selectSingleNode("mi").getAttribute("xInfo");var sInterfaceNode=MSOConn_SourceGroupNode.selectSingleNode("sInterfaces/sInterface[@id = '"+sMatchInterfaceName+"']");rowProInitArgNode=qh.selectSingleNode("InitEventArgs/RowProviderInitEventArgs");var isConnected=MSOConn_TargetGroupNode.getAttribute("isConn");if(rowProInitArgNode==null){rowProInitArgNode=sInterfaceNode.selectSingleNode("InitEventArgs/RowProviderInitEventArgs");filConInitArgNode=qh.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:160px;dialogWidth:460px;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=="back"){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=="back")MSOConn_ShowRowFilterXForm(qh);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(rh){var rowProInitArgNode=null;var cellConInitArgNode=null;var providerPart=null;var consumerPart=null;var rcxFormInfo=null;var sMatchInterfaceName=rh.selectSingleNode("mi").getAttribute("id");var xFormInfo=rh.selectSingleNode("mi").getAttribute("xInfo");var sInterfaceNode=MSOConn_SourceGroupNode.selectSingleNode("sInterfaces/sInterface[@id = '"+sMatchInterfaceName+"']");rowProInitArgNode=rh.selectSingleNode("InitEventArgs/RowProviderInitEventArgs");var isConnected=MSOConn_TargetGroupNode.getAttribute("isConn");if(rowProInitArgNode==null){rowProInitArgNode=sInterfaceNode.selectSingleNode("InitEventArgs/RowProviderInitEventArgs");cellConInitArgNode=rh.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:160px;dialogWidth:460px;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=="back"){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_InitArgsError(){document.body.style.cursor="auto";alert(MSOStrings.NoInitArgs);}function MSOConn_ShowTargetGroupsDialog(){var connected=false;if(MSOConn_TargetWpNode.selectNodes("tg")!=null&&MSOConn_TargetWpNode.selectNodes("tg").length!=0){var targetGroupNodes=MSOConn_TargetWpNode.selectNodes("tg");if(targetGroupNodes!=null)for(i=0;i<targetGroupNodes.length;i++){var tg=targetGroupNodes.item(i);if(tg.getAttribute("isConn")=="True"){connected=true;MSOConn_TargetGroupNode=tg;break;}}if(!connected){var sFeatures="dialogHeight:180px;dialogWidth:460px;help:no;status:no;scroll:no;resizable:no;";var rValues=showModalDialog(document.all.MSOConn_GroupUrl.value,MSOConn_TargetWpNode,sFeatures);var buttonClicked;if(rValues!=null){document.all.MSOConn_Button.value=rValues[1];MSOConn_TargetGroupNode=rValues[0];}else MSOConn_ConnCancelled=true;}}else MSOConn_ConnCancelled=true;}function MSOConn_ConfirmRemoveConnection(sh,th){var errMsg=MSOStrings.RemoveConnection;var titleArray=new Array();titleArray[0]=sh;titleArray[1]=th;if(titleArray!=null)for(var index=0;index<titleArray.length;index++){errMsg=errMsg.replace("%"+index,titleArray[index]);}return errMsg;}function MSOConn_ShowXFormsAndPersist(){if(!MSOConn_ConnCancelled&&MSOConn_TargetGroupNode!=null){if(document.all.MSOConn_Button.value!="remove")MSOConn_IsXFormNeeded();if(!MSOConn_ConnCancelled){if(document.all.MSOConn_Button.value=="remove"){var errMsg=MSOConn_ConfirmRemoveConnection(MSOConn_SourceWpNode.getAttribute("title"),MSOConn_TargetWpNode.getAttribute("title"));if(confirm(errMsg))MSOConn_PersistConnection();}else MSOConn_PersistConnection();}}document.all.MSOConn_Button.value="none";MSOConn_ConnCancelled=false;MSOConn_XformInfo1=null;MSOConn_XformInfo2=null;MSOConn_SourceWpNode=null;MSOConn_TargetWpNode=null;MSOConn_MultipleTargetGroups=false;MSOConn_TargetGroupNode=null;MSOConn_SourceGroupNode=null;}function MSOConn_CreateConnectionStep1(uh,vh,wh,xh,yh,zh,Ah,Bh){document.all.MSOConn_SWpId.value=uh;document.all.MSOConn_TWpId.value=vh;document.all.MSOConn_SGroupId.value=yh;document.all.MSOConn_Button.value="save";document.all.MSOConn_TGroupId.value="";document.all.MSOConn_XForm1.value="";document.all.MSOConn_XForm2.value="";var submit=true;if(Bh)document.all.MSOConn_TGroupId.value=Bh;if(zh=="True"&&Bh!=null&&Ah!=null&&Ah=="False"){var errMsg=MSOConn_ConfirmRemoveConnection(wh,xh);if(confirm(errMsg))document.all.MSOConn_Button.value="remove";else submit=false;}else{if(zh=="True"&&Bh==null)document.all.MSOConn_Button.value="edit";}if(submit==true){document.all.MSOConn_CreationStep.value="1";document.body.style.cursor="wait";document.forms[MSOWebPartPageFormName].submit();}}function MSOConn_CreateConnectionStep2(Ch,Dh,Eh,Fh,Gh,Hh){var targetGroupID=null;var targetGpNode=null;document.all.MSOConn_SWpId.value=Ch;document.all.MSOConn_TWpId.value=Dh;var sourceWpNode=MSOConn_Compatibility.selectSingleNode("ConnDesign/sWebPart[@id = 'MSOConn_"+Eh+"']");if(sourceWpNode!=null){MSOConn_SourceWpNode=sourceWpNode;var sourceGpNode=sourceWpNode.selectSingleNode("sg[@id = '"+Gh+"']");if(sourceGpNode!=null){MSOConn_SourceGroupNode=sourceGpNode;var targetWpNode=sourceGpNode.selectSingleNode("tParts/tWebPart[@id = 'MSOConn_"+Fh+"']");if(targetWpNode!=null){MSOConn_TargetWpNode=targetWpNode;if(!Hh){MSOConn_MultipleTargetGroups=true;MSOConn_ShowTargetGroupsDialog();}else MSOConn_TargetGroupNode=targetWpNode.selectSingleNode("tg[@id = '"+Hh+"']");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;document.forms[MSOWebPartPageFormName].submit();}function MSOLayout_ShowErrorDetails(){var src=event.srcElement.parentElement;MSOLayout_ShowHideErrorDetails(src.nextSibling,src);}function MSOLayout_HideErrorDetails(){var src=event.srcElement.parentElement.parentElement;MSOLayout_ShowHideErrorDetails(src.previousSibling,src);}function MSOLayout_ShowHideErrorDetails(Ih,Jh){Jh.style.display="none";Ih.style.display="inline";}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(Kh,Lh){var doexport=true;if(Lh){if(!confirm(MSOStrings.ExportPersonalizationDialogText))doexport=false;}if(doexport){var oldSavePerformed=false;if(typeof MSOWPSC_SavePerformed=="boolean")oldSavePerformed=MSOWPSC_SavePerformed;MSOWebPartPage_SetWindowLocation(Kh);if(typeof MSOWPSC_SavePerformed=="boolean"){MSOWPSC_SavePerformed=oldSavePerformed;MSOWebPartPage_hideNextBeforeUnload=true;}}}function MSOMode_SetMode(Mh){var newUrl=MSOMode_GetNewUrl(Mh);MSOLayout_CheckAndSaveChanges();if(document.forms[MSOWebPartPageFormName].MSOTlPn_View.value!=4){document.forms[MSOWebPartPageFormName].MSOTlPn_View.value=0;var toolPaneViewExpression=/[& | \?]ToolPaneView=[-0-9A-Z]*/ig;newUrl=MSOMode_RemoveMode(newUrl,toolPaneViewExpression);}document.forms[MSOWebPartPageFormName].MSOWebPartPage_Shared.value=Mh?"true":"false";document.forms[MSOWebPartPageFormName].action=newUrl;document.forms[MSOWebPartPageFormName].submit();}function MSOMode_GetNewUrl(Nh,Oh){if(Oh==null)Oh=document.location.href;var personalViewExpression=/[& | \?]PageView=Personal/ig;var allUsersViewExpression=/[& | \?]PageView=Shared/ig;var newMode="PageView="+(Nh?"Shared":"Personal");Oh=MSOMode_RemoveMode(Oh,personalViewExpression);Oh=MSOMode_RemoveMode(Oh,allUsersViewExpression);Oh=MSOMode_AddMode(Oh,allUsersViewExpression,newMode);return Oh;}function MSOMode_RemoveMode(Ph,Qh){var hashMarkExpression=/\#/;var hashMarkIndex=Ph.search(hashMarkExpression);if(hashMarkIndex!=-1)Ph=Ph.substring(0,hashMarkIndex);var questionMarkExpression=/\?/;var questionMarkIndex=Ph.search(questionMarkExpression);if(questionMarkIndex!=-1){var pathString=Ph.substring(0,questionMarkIndex);var queryString=Ph.substring(questionMarkIndex,Ph.length);queryString=queryString.replace(Qh,"");if(queryString.length!=0&&queryString.charAt(0)!="?")queryString="?"+queryString;Ph=pathString+queryString;}return Ph;}function MSOMode_AddMode(Rh,Sh,Th){var hashMarkExpression=/\#/;var hashMarkIndex=Rh.search(hashMarkExpression);if(hashMarkIndex!=-1)Rh=Rh.substring(0,hashMarkIndex);var questionMarkExpression=/\?/;var questionMarkIndex=Rh.search(questionMarkExpression);if(questionMarkIndex==-1)Rh+="?"+Th;else{var queryString=Rh.substring(questionMarkIndex,Rh.length);if(queryString.search(Sh)==-1)Rh+="&"+Th;}return Rh;}function MSOPGrid_BuilderVisible(Uh){MSOPGrid_HidePrevBuilder();MSOTlPn_prevBuilder=null;Uh.style.display="inline";}function MSOPGrid_HidePrevBuilder(){if(MSOTlPn_prevBuilder!=null)eval(MSOTlPn_prevBuilder).style.display="none";}function MSOPGrid_doBuilder(Vh,Wh,Xh){var pReturnValue=showModalDialog(Vh,Wh,Xh);Wh.value=pReturnValue;}function MSOWebPartPage_RestorePageDefault(){if(confirm(MSOStrings.ResetPagePersonalizationDialogText)){var newInput=document.createElement("INPUT");newInput.type="hidden";newInput.name="MSOWebPartPage_RestorePageDefault";newInput.value="true";document.forms[MSOWebPartPageFormName].appendChild(newInput);if(document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges!=null)document.forms[MSOWebPartPageFormName].MSOLayout_LayoutChanges.value="";MSOMode_SetMode(false);}}function MSOWebPartPage_RestorePartDefaults(Yh){if(confirm(MSOStrings.ResetPartPersonalizationDialogText)){var newInput=document.createElement("INPUT");newInput.type="hidden";newInput.name="MSO_RestoreSettings";newInput.value=Yh;document.forms[MSOWebPartPageFormName].appendChild(newInput);MSOMode_SetMode(false);}}function MSOWebPartPage_MenuDoPostBack(Zh,aj){var theform=document.forms[MSOWebPartPageFormName];var eventTargetField=theform.__EVENTTARGET;var eventArgumentField=theform.__EVENTARGUMENT;if(eventTargetField==null){eventTargetField=document.createElement("INPUT");eventTargetField.style.display="none";eventTargetField.name="__EVENTTARGET";document.forms[MSOWebPartPageFormName].appendChild(eventTargetField);}if(eventArgumentField==null){eventArgumentField=document.createElement("INPUT");eventArgumentField.style.display="none";eventArgumentField.name="__EVENTARGUMENT";document.forms[MSOWebPartPageFormName].appendChild(eventArgumentField);}eventTargetField.value=Zh;eventArgumentField.value=aj;theform.submit();}function MSOWebPartPage_SignIn(){var newInput=document.createElement("INPUT");newInput.type="hidden";newInput.name="MSOWebPartPage_AnonymousAccessLogIn";newInput.value="1";document.forms[MSOWebPartPageFormName].appendChild(newInput);document.forms[MSOWebPartPageFormName].submit();}function MSOWebPartPage_SetWindowLocation(bj){var newLocationLowerCase=bj.toLowerCase();if(newLocationLowerCase.indexOf("javascript:")==0||newLocationLowerCase.indexOf("vbscript:")==0)MSOWebPartPage_hideNextBeforeUnload=true;window.location=bj;}function MSOWebPartPage_SetNewWindowLocation(cj){window.open(cj);}function MSOTlPn_onToolPaneCloseClick(){var ToolPaneViewClosed="0";var PostbackSourceSettingsHide="49";MSOTlPn_ShowToolPaneWrapper(ToolPaneViewClosed,PostbackSourceSettingsHide);}function MSOPGrid_InvokeFPBuilder(ej,gj,hj){hj.value=window.external.InvokeBuilder(ej,gj,hj.id);hj.focus();}function MSOMenu_KeyboardClick(jj){for(var index=1;index<arguments.length;index++){if(event.keyCode==arguments[index]){jj.click();event.returnValue=false;return;}}}function MSOTlPn_ToggleDisplay(kj,lj,mj,nj,oj,pj){var fieldID=kj+"_STATEFIELD";var stateFieldValue;if(document.all.item(kj).style.display=="none"){document.all.item(kj).style.display="";document.images[lj].src="/_layouts/images/TPMin2.gif";document.images[lj].alt=oj;document.all.item(pj).title=oj;document.all.item(mj).title=oj;stateFieldValue="1";}else{document.all.item(kj).style.display="none";document.images[lj].src="/_layouts/images/TPMax2.gif";document.images[lj].alt=nj;document.all.item(pj).title=nj;document.all.item(mj).title=nj;stateFieldValue="0";}if(document.all[fieldID]!=null)document.all[fieldID].value=stateFieldValue;}var MSOTlPn_originalToolPaneWidth;function MSOTlPn_onToolPaneMaxClick(){var mod=1;var minMaxIcon=document.all["MSOTlPn_minMaxIcon"];var newSrc=minMaxIcon.src.substring(0,minMaxIcon.src.lastIndexOf("/")+1);if(document.all["MSOTlPn_Tbl"].toolpaneWide==null){MSOTlPn_originalToolPaneWidth=document.all["MSOTlPn_Tbl"].style.width;document.all["MSOTlPn_Tbl"].style.width=(parseInt(document.all["MSOTlPn_Tbl"].offsetWidth)+100).toString()+"px";newSrc+=(document.dir=="rtl"?"tpmax.gif":"tpmin.gif");minMaxIcon.title=MSOStrings.ToolPaneShrinkToolTip;minMaxIcon.alt=MSOStrings.ToolPaneShrinkToolTip;minMaxIcon.parentElement.title=MSOStrings.ToolPaneShrinkToolTip;document.all["MSOTlPn_Tbl"].toolpaneWide="1";}else{document.all["MSOTlPn_Tbl"].style.width=MSOTlPn_originalToolPaneWidth;newSrc+=(document.dir=="rtl"?"tpmin.gif":"tpmax.gif");minMaxIcon.title=MSOStrings.ToolPaneWidenToolTip;minMaxIcon.alt=MSOStrings.ToolPaneWidenToolTip;minMaxIcon.parentElement.title=MSOStrings.ToolPaneWidenToolTip;document.all["MSOTlPn_Tbl"].toolpaneWide=null;mod=-1;}minMaxIcon.src=newSrc;var x=document.all["MSOTlPn_Tbl"];for(var i=0;i<x.all.length;i++){if(x.all(i).getAttribute("ms-TlPnWiden")=="true")x.all(i).style.pixelWidth+=mod*120;}MSOTlPn_WindowResize();}function MSOTlPn_WindowResize(){var objToolPane=document.all["MSOTlPn_MainTD"];if(objToolPane==null||objToolPane.offsetWidth==0)return;var widthToolPane=objToolPane.offsetWidth;var docFrame=document.body.offsetWidth-document.body.clientWidth;var spDiv=document.all["MSOTlPn_WebPartPageDiv"];if(spDiv.offsetWidth+objToolPane.offsetWidth==document.body.clientWidth)return;var widthAncestors=0;var next=spDiv.offsetParent;var elementWidth=0;while(next!=null){if(document.dir!="rtl"){elementWidth=next.offsetLeft+(next.offsetWidth-(next.clientLeft+next.clientWidth));if(next.offsetParent!=null)elementWidth+=next.offsetParent.clientLeft;}else elementWidth=next.offsetParent!=null?next.offsetParent.offsetWidth-(next.offsetLeft+next.offsetWidth):0;widthAncestors+=elementWidth;next=next.offsetParent;}widthAncestors-=docFrame;var widthCenter=document.body.clientWidth-(widthAncestors+widthToolPane);if(widthCenter<250)widthCenter=250;document.all["MSO_tblPageBody"].style.pixelWidth=widthCenter+widthToolPane;spDiv.style.pixelWidth=widthCenter;if(window.event.type=="load"&&document.all.MSOTlPn_TlPnCaptionSpan!=null)document.all.MSOTlPn_TlPnCaptionSpan.scrollIntoView(false);}function MSOTlPn_CheckUrl(){var toolPaneViewExpression=/[& | \?]ToolPaneView=[-0-9A-Z]*/ig;var formAction=document.forms[MSOWebPartPageFormName].action;var newUrl;newUrl=MSOMode_RemoveMode(document.forms[MSOWebPartPageFormName].action,toolPaneViewExpression);document.forms[MSOWebPartPageFormName].action=newUrl;}function MSOTlPn_Resize(qj){if(MSOTlPn_prevWidth!=qj.clientWidth){MSOTlPn_prevWidth=qj.clientWidth;MSOTlPn_WindowResize();}if(MSOTlPn_prevHeight!=document.body.clientHeight){MSOTlPn_prevHeight=document.body.clientHeight;var spDiv=document.all["MSOTlPn_WebPartPageDiv"];spDiv.style.height="100%";spDiv.style.height=spDiv.offsetHeight;}}function MSOWebPartPage_SetupFixedWidthWebParts(){var fixedWidthTitles=document.all["MSOFixedWidthTitle"];if(fixedWidthTitles!=null){if(fixedWidthTitles.length>0)for(var elementIndex=0;elementIndex<fixedWidthTitles.length;elementIndex++){fixedWidthTitles[elementIndex].style.width=MSOWebPartPage_AllocateSpaceForFirstTD(fixedWidthTitles[elementIndex]);}else fixedWidthTitles.style.width=MSOWebPartPage_AllocateSpaceForFirstTD(fixedWidthTitles);}}function MSOWebPartPage_AllocateSpaceForFirstTD(rj){var tempElement=document.createElement("DIV");tempElement.style.width=rj.fixedWidth;document.body.appendChild(tempElement);var pixelSize=tempElement.offsetWidth;document.body.removeChild(tempElement);var tempTable=MSOLayout_GetParentTable(rj).cloneNode(true);if(tempTable!=0){document.body.appendChild(tempTable);var tempTableRow=tempTable.rows(0);for(var index=1;index<tempTableRow.cells.length;index++){pixelSize-=tempTableRow.cells(index).offsetWidth;}document.body.removeChild(tempTable);}return pixelSize<1?1:pixelSize;}function MSOWebPartPage_FindControlName(sj){var labelcollection=document.all.tags("label");if(labelcollection!=null)for(i=0;i<labelcollection.length;i++){var label=labelcollection[i];if(label.innerText==sj){if(label.htmlFor.indexOf("_EDITOR")!=-1)return label.htmlFor;}}return null;}function MSOTlPn_ListViewChange(tj){if(MSOTlPn_shownViewChangeWarning)return;alert(tj);MSOTlPn_shownViewChangeWarning=true;}function MSOTlPn_CustomWindowResize(){var objToolPane=document.all["MSOTlPn_Tbl"];if(objToolPane==null||objToolPane.offsetWidth==0)return;objToolPane.style.pixelWidth=document.body.clientWidth;}function MSOTlPn_ShowListFilter(){if(document.all["WebPartListFilter"].style.display=="none"){document.all["WebPartListFilter"].style.display="block";document.forms[MSOWebPartPageFormName].MSOGallery_FilterVisible.value="true";}else{document.all["WebPartListFilter"].style.display="none";document.forms[MSOWebPartPageFormName].MSOGallery_FilterVisible.value="false";}}function MSOGallery_GetCookie(uj){var prefix=uj+"=";var cookieStartIndex=document.cookie.indexOf(prefix);if(cookieStartIndex==-1)return null;var cookieEndIndex=document.cookie.indexOf(";",cookieStartIndex+prefix.length);if(cookieEndIndex==-1)cookieEndIndex=document.cookie.length;return unescape(document.cookie.substring(cookieStartIndex+prefix.length,cookieEndIndex));}function MSOTlPn_ShowAllUsersToolPane(vj,wj,xj){MSOLayout_CheckAndSaveChanges();document.forms[MSOWebPartPageFormName].action=MSOMode_GetNewUrl(true);MSOTlPn_ShowToolPaneWrapper(vj,wj,xj);}function MSOLayout_MakeInvisibleIfEmpty(){var allElements=document.getElementsByName("_invisibleIfEmpty");var agt=navigator.userAgent.toLowerCase();var isNav=agt.indexOf("mozilla")!=-1&&(agt.indexOf("spoofer")==-1&&agt.indexOf("compatible")==-1);var isIE=agt.indexOf("msie")!=-1;for(var curElement=0;curElement<allElements.length;curElement++){if(isIE&&allElements[curElement].childNodes.length==0||isNav&&allElements[curElement].childNodes.length<=1)allElements[curElement].style.display="none";}}function MSOLayout_GetParentRow(yj){var parentRow=yj.parentElement;while(parentRow.tagName!="TR"&&parentRow.tagName!="BODY"){parentRow=parentRow.parentElement;}if(parentRow.tagName!="TR")return null;else return parentRow;}function MSOLayout_GetParentTable(zj){for(var currentObject=zj;currentObject.tagName!="TABLE";currentObject=currentObject.parentElement){if(currentObject==document.body)return 0;}return currentObject;}

