var loadOrAjaxUpdate=function(){blockMenuSpawn=!1;showAddDetails=getCookieValue("showAddDetails");showToolTip=getCookieValue("showToolTip");showLiveEditControls=getCookieValue("showLiveEditControls");previousKAMControl=null;showAddDetails=null==showAddDetails?!1:"true"==showAddDetails;showLiveEditControls=null==showLiveEditControls?!1:"true"==showLiveEditControls;showToolTip=null==showToolTip?!0:"true"==showToolTip},MIN_DRAFT=10,MAX_DRAFT=19,MIN_PUBLISHED=20,MAX_PUBLISHED=40,MIN_DELETED=0,MAX_DELETED= 9,DRAFT=10,DRAFT_EXPIRED=11,DRAFT_PENDING=12,PUBLISHED=40,PUBLISHED_EXPIRED=20,PUBLISHED_PENDING=21,SUBMITTED=14,REJECTED=13,VIEW=1,READONLY=2,AUTHOR=3,PUBLISHER=4,OWNER=5,showToolTip=!1,previousKAMControl=null;function liveEditHideMenu(a,b){a.style.display="none";b()}function cancelFE(a){if(confirm("You will discard any unsaved changes. Do you want to proceed?"))return window.parent.closeModalDialog("editItemBehavior"),!1} function redrawContent(a){a&&closeModalDialog("editItemBehavior");window.location=window.location.href}function raiseAsyncPostback(a,b,c){c&&closeModalDialog("editItemBehavior");__doPostBack(a,b)} function showHideAdditionalDetails(a,b,c){var d=document.getElementById(a);"block"==d.style.display?(d.style.display="none",document.getElementById("a_"+a).innerHTML="\x26#9658;\x26nbsp;Show Additional Details",showAddDetails=!1,document.cookie="showAddDetails\x3dfalse; path\x3d/",window.parent.changeModalDialogHeight(b,"false")):(d.style.display="block",document.getElementById("a_"+a).innerHTML="\x26#9660;\x26nbsp;Hide Additional Details",showAddDetails=!0,document.cookie="showAddDetails\x3dtrue; path\x3d/", window.parent.changeModalDialogHeight(c,"true"))} function SaveAndSendFE(a,b){document.getElementById("AutoNotifyMe").style.display="block";document.getElementById("itemcontent").style.display="none";var c=new Date;""!=b&&(b=new Date(b));b>c?(document.getElementById("pending").style.visibility="visible",document.getElementById("noPending").style.visibility="hidden"):(document.getElementById("pending").style.visibility="hidden",document.getElementById("noPending").style.visibility="visible");if("0"==document.getElementById("ShowSMS").value)document.getElementById("txtMsgMobileLabel").style.visibility= "hidden",document.getElementById("txtMsgMobile").style.visibility="hidden",document.getElementById("txtMsgMobileCounter").style.visibility="hidden";else if(c=document.getElementById(a))document.getElementById("txtMsgMobile").value=c.value;window.parent.changeModalDialogHeight(350,"");return!1}function cancelFE(a){if(confirm("You will discard any unsaved changes. Do you want to proceed?"))return window.parent.closeModalDialog("editItemBehavior"),!1} function CancelSaveAndSendFE(a){document.getElementById("AutoNotifyMe").style.display="none";document.getElementById("itemcontent").style.display="block";window.parent.setModalClassForEditItemBehavior("liveEdit","");return!1}function CancelSaveAndSendCalendarFE(a){document.getElementById("AutoNotifyMe").style.display="none";document.getElementById("itemcontent").style.display="block";window.parent.setModalClassForEditItemBehavior("liveEdit calendar","");return!1} function publishItemFE(a,b,c,d,g,f,e,k){if(void 0==d.ysnSaveFE){var h=document.createElement("input");h.name="ysnSaveFE";h.defaultValue=1;h.value=1;h.setAttribute("hidden",!0);d.appendChild(h)}else d.ysnSaveFE.value=1;void 0==d.ysnSend?(h=document.createElement("input"),h.name="ysnSend",h.defaultValue=a,h.value=a,h.setAttribute("hidden",!0),d.appendChild(h)):d.ysnSend.value=a;void 0==d.ysnSendAtStart?(h=document.createElement("input"),h.name="ysnSendAtStart",h.defaultValue=b,h.value=b,h.setAttribute("hidden", !0),d.appendChild(h)):d.ysnSendAtStart.value=b;void 0==d.ysnSendBeforeDays?(h=document.createElement("input"),h.name="ysnSendBeforeDays",h.defaultValue=c,h.value=c,h.setAttribute("hidden",!0),d.appendChild(h)):d.ysnSendBeforeDays.value=c;switch(g){case "civicalerts":d.curPage&&"CivicAlertForm"==d.curPage.value?k?window.parent.document.getElementsByName("strActionFE")[0].value="CivicAlertItemPublish":(d.ysnPublishDetail.value=1,d.submit()):d.strActionFE.value="CivicAlertItemSave";break;case "blog":case "blogs":d.curPage&& "BlogItemForm"==d.curPage.value?k?window.parent.document.getElementsByName("strActionFE")[0].value="BlogItemPublish":d.strActionFE.value="BlogItemPublish":d.strActionFE.value="BlogItemSave";break;case "calendar":return __doPostBack("ctl00$btnPublishFE","OnClick"),!0}"calendar"!=g&&"civicalerts"!=g&&window.parent.raiseAsyncPostback(e,f,1)} function createAndSetNewModifiedToggleIfNeeded(a,b){if(b.newModifiedToggle.checked){var c=document.createElement("input");c.setAttribute("type","hidden");c.setAttribute("name","newModifiedToggle");c.setAttribute("value",b.newModifiedToggle.value);a.appendChild(c)}} function sendEmailFE(a,b,c,d,g,f){var e,k,h;"frmBlogItemForm"==a||"frmAlertInfo"==a?(e=document.getElementById(a),a=document.getElementById(a)):"calendar"==c?(e=document.aspnetForm,a=document.getElementById(a)):(e=window.parent.document.getElementById(a),a=document.frmSendEmail);void 0==e.txtSMSComments&&(k=document.createElement("input"),k.name="txtSMSComments",k.setAttribute("hidden",!0));void 0==e.txtComments&&(h=document.createElement("input"),h.name="txtComments",h.setAttribute("hidden",!0)); document.getElementById("txtMsgMobile")&&(void 0!=e.txtComments?e.txtSMSComments.value=document.getElementById("txtMsgMobile").value:(k.value=document.getElementById("txtMsgMobile").value,k.defaultValue=document.getElementById("txtMsgMobile").value,e.appendChild(k)));var l;if(b){for(b=0;bdocument.body.scrollWidth-e?(c.className=c.className.replace(/liveEditControl/,"liveEditControl flipH"),d.style.left=d.style.width-31+"px"):(c.className=c.className.replace(/liveEditControl flipH/,"liveEditControl"),d.style.left="0px"):327>document.body.scrollWidth-e?(c.className=c.className.replace(/liveEditControl/,"liveEditControl flipH"),d.style.left=d.style.width- (f?281:234)+"px"):(c.className=c.className.replace(/liveEditControl flipH/,"liveEditControl"),d.style.left="0px");window.showToolTip&&(window.toolTipElem&&(a.style.display="none"),showToolTip=!1,document.cookie="showToolTip\x3dfalse; path\x3d/");"none"==b.style.display?(c.style.position="relative",c.style.position="absolute",c.style.width="400px",b.style.display="block"):b.style.display="none";c.appendChild(b);c.appendChild(a)}window.pageHandleResponsive=!0; $.when(window.Pages.rwdReady).done(function(){var a=$("#NewsFlashContent"),b=$("#divSideBar"),c=$("div.contentMain");cpMedia.register("#NewsFlashContent:media(this-min-width:500px)",{setup:function(){a.addClass("maxWidth500px");window.cpMedia.diag('$(element).addClass("maxWidth500px"); #NewsFlashContent:media(this-min-width:500px)');c.insertBefore(b);window.cpMedia.diag("side bar setup above content")},match:function(a,g){$(g).removeClass("maxWidth500px");window.cpMedia.diag('$(element).removeClass("maxWidth500px"); #NewsFlashContent:media(this-min-width:500px)'); b.insertBefore(c);window.cpMedia.diag("side bar moved below content")},unmatch:function(a,g){$(g).addClass("maxWidth500px");window.cpMedia.diag('$(element).addClass("maxWidth500px"); #NewsFlashContent:media(this-min-width:500px)');c.insertBefore(b);window.cpMedia.diag("side bar moved above content")}});toggleClassMedia("minWidth320px","#NewsFlashContent:media(this-min-width:320px)")});try{Sys.Application.add_load(loadOrAjaxUpdate)}catch(ex){} $(function(){$("#searchTerms").keyup(function(a){a.stopPropagation();a.preventDefault();13==a.which&&CivicAlertSearch();return!1})}); function CivicAlertItemActions(a,b,c,d,g,f){a=-1;var e=!0,k=document.aspnetForm,h=hasNotifyMeList();null!=k.lngCivicAlertCategoryID&&(k.lngCivicAlertCategoryID.value=g);null!=k.lngCivicAlertItemID&&(k.lngCivicAlertItemID.value=d);switch(b){case "Link":e=!1;showCopyLinkWindowUsingRelatedLink("/CivicAlerts.aspx?AID\x3d"+d);break;case "Delete":confirm("Are you sure you want to delete this item?")?k.strActionFE.value="CivicAlertItemDelete":e=!1;break;case "ArchivePublic":0>a&&(a=1);if(!confirm("Archiving is a PERMANENT action!\nYou will not be able to edit, publish, unpublish, submit, reject, or move the item out of the archive!\nAre you sure you want to archive this News Flash Item?"))return; k.ysnArchShowForcesFE.value=a;k.strActionFE.value="CivicAlertItemArchive";break;case "ArchiveHidden":0>a&&(a=0);if(!confirm("Archiving is a PERMANENT action!\nYou will not be able to edit, publish, unpublish, submit, reject, or move the item out of the archive!\nAre you sure you want to archive this News Flash Item?"))return;k.ysnArchShowForcesFE.value=a;k.strActionFE.value="CivicAlertItemArchive";break;case "Submit":k.strActionFE.value="CivicAlertItemSubmit";break;case "Reject":k.strActionFE.value= "CivicAlertItemReject";break;case "Publish":h?saveSendFE(k,"","",f,c,d,g):k.strActionFE.value="CivicAlertItemPublish";break;case "Unpublish":k.strActionFE.value="CivicAlertItemUnPublish";break;default:e=!1}e&&(k.ysnSaveFE.value=1,k.ysnArchShowForcesFE.value=a,raiseAsyncPostback(c,g,0))} function saveSendFE(a,b,c,d,g,f,e){behaviorID=$find("editItemBehavior");f=document.getElementById("liveEditDialog");behaviorID&&(f.style.height="270px",f.src="frmAlertInfoForm"!=a?"/common/modules/sendEmailFE.aspx?formName\x3d"+a.name+"\x26from\x3dcivicalerts\x26warning\x3d"+b+"\x26moduleName\x3d"+c+"\x26status\x3d"+d+"\x26ItemId\x3d"+e+"\x26updatePanelId\x3d"+g:"/common/modules/sendEmailFE.aspx?formName\x3d"+a.name+"\x26title\x3d"+c+"\x26from\x3dcivicalerts\x26moduleName\x3d"+c+"\x26status\x3d"+ d+"\x26ItemId\x3d"+e+"\x26updatePanelId\x3d"+g,f.style.display="block",behaviorID.show())}function CivicAlertChangeOrder(a,b,c,d){var g=document.aspnetForm;g.strActionFE.value="CivicAlertItemOrder";g.ysnSaveFE.value=1;g.lngCivicAlertItemID.value=c;g.lngCivicAlertCategoryID.value=d;g.txtOrderDirection.value=a;raiseAsyncPostback(b,d,0)} function openEditWindowNewsFlash(a,b,c,d,g){if(behavior=$find("editItemBehavior")){var f=document.getElementById("liveEditDialog");f.style.height="530px";var e=$("#hdnModuleID").val();a="/common/modules/CivicAlerts/CivicAlertLiveEdit.aspx?lngCivicAlertCategoryID\x3d"+a+"\x26lngCivicAlertItemID\x3d"+b+"\x26updatePanelID\x3d"+g+"\x26Order\x3d"+d+"\x26moduleID\x3d"+e;f.src=c?a+"\x26strPage\x3ditemCopy":a+"\x26strPage\x3ditemForm";f.style.display="block";behavior.show()}} function CivicAlertSearch(){1=document.frmAlertDetail.lngCivicAlertID.value||10==document.frmAlertInfo.lngStatus.value)&&1==document.frmAlertInfo.rAddItemRSS.value?a=!1:0=document.frmAlertDetail.lngCivicAlertID.value||10==document.frmAlertInfo.lngStatus.value)&&2==document.frmAlertInfo.rAddItemRSS.value?a=confirm("Would you like to include this in the RSS feed? Click OK to include it. Click Cancel to exclude it."): 0=PUBLISHER||e==AUTHOR&&fAUTHOR?"inline":"none";NEWSLE.elemItemMoveHeading.style.display=b;NEWSLE.elemItemActionMoveUp.style.display=b;NEWSLE.elemItemActionMoveDown.style.display=b;if(e>AUTHOR){if(0>g){NEWSLE.elemItemActionMoveUp.className="moveUp inactive";NEWSLE.elemItemActionMoveUp.inactive=!0;NEWSLE.elemItemActionMoveDown.className= "moveDown inactive";NEWSLE.elemItemActionMoveDown.inactive=!0;switch(g){case -2:b="Can only move items from module page.";break;default:b="Can't move items on the search page."}NEWSLE.elemItemActionMoveUpIcon.src="/App_Themes/CP/Images/IconMoveUpInactive.png";NEWSLE.elemItemActionMoveDownIcon.src="/App_Themes/CP/Images/IconMoveDownInactive.png";NEWSLE.elemItemActionMoveUpIcon.title=b;NEWSLE.elemItemActionMoveUpIcon.alt=b}else 1==g?(b="This item is first in the list and can't be moved any higher.", NEWSLE.elemItemActionMoveUpIcon.src="/App_Themes/CP/Images/IconMoveUpInactive.png",NEWSLE.elemItemActionMoveUp.className="moveUp inactive",NEWSLE.elemItemActionMoveUp.alt="This item is first in the list and can't be moved any higher.",NEWSLE.elemItemActionMoveUp.inactive=!0):(b="Move Up",NEWSLE.elemItemActionMoveUpIcon.src="/App_Themes/CP/Images/IconMoveUp.png",NEWSLE.elemItemActionMoveUp.className="moveUp",NEWSLE.elemItemActionMoveUp.inactive=!1),NEWSLE.elemItemActionMoveUpIcon.title=b,NEWSLE.elemItemActionMoveUpIcon.alt= b,k?(b="This item is last in the list and can't be moved any lower.",NEWSLE.elemItemActionMoveDownIcon.src="/App_Themes/CP/Images/IconMoveDownInactive.png",NEWSLE.elemItemActionMoveDown.className="moveDown inactive",NEWSLE.elemItemActionMoveDown.inactive=!0):(b="Move Down",NEWSLE.elemItemActionMoveDownIcon.src="/App_Themes/CP/Images/IconMoveDown.png",NEWSLE.elemItemActionMoveDown.className="moveDown",NEWSLE.elemItemActionMoveDown.inactive=!1);NEWSLE.elemItemActionMoveDownIcon.title=b;NEWSLE.elemItemActionMoveDownIcon.alt= b}NEWSLE.elemItemActionSubmit.style.display="none";NEWSLE.elemItemActionReject.style.display="none";NEWSLE.elemItemActionPublish.style.display="none";NEWSLE.elemItemActionUnpublish.style.display="none";e>AUTHOR?(f>MAX_DRAFT?NEWSLE.elemItemActionUnpublish.style.display="":NEWSLE.elemItemActionPublish.style.display="",f==SUBMITTED&&(NEWSLE.elemItemActionReject.style.display="")):f!=SUBMITTED&&f<=MAX_DRAFT&&(NEWSLE.elemItemActionSubmit.style.display="");NEWSLE.elemItemActionArchive.style.display="none"; NEWSLE.elemItemActionDelete.style.display="none";e>AUTHOR?f>MAX_DRAFT?NEWSLE.elemItemActionArchive.style.display="":NEWSLE.elemItemActionDelete.style.display="":f<=MAX_DRAFT&&(NEWSLE.elemItemActionDelete.style.display="");0=AUTHOR?(NEWSLE.elemItemActionNew.style.display="",NEWSLE.elemItemActionNewAnchor.title="",NEWSLE.elemItemActionNewAnchor.className="addItem",NEWSLE.elemItemActionNew.inactive=!1):NEWSLE.elemItemActionNew.style.display="none":-2