var EH_ADVANCED_ITEM_PAGE=EH_ADVANCED_ITEM_PAGE||{};EH_ADVANCED_ITEM_PAGE.AdvancedItemPage=function(){function t(t,i){var f="ClearSessionStateForPageUrlSegmentSignaturesFromClient",r,e,u;if(t!==undefined&&t!==""&&i!==undefined)try{if(r="{",r=r+'"NameInUrl": "'+t+'",',e=i.length,e>0)for(u=0;u<e;u++)r=r+'"SegmentSignatures_'+u+'": "'+i[u]+'",';r=r.substring(0,r.length-1);r=r+"}";$.ajax({type:"POST",data:{PostedData:JSON.stringify(JSON.parse(r))},url:"/HttpHandlers/ClearSessionStateForPageUrlSegmentSignatures.ashx",dataType:"json",async:!1,cache:!1,success:function(t){t.Result==="false"&&n("An error has occurred in "+f+"() associated result.Result being false")},error:function(t,i,r){n("An error has occurred in "+f+"() with the following additional information: xhr.status="+t.status+", thrownError="+r+", ajaxOptions="+i)}})}catch(o){n("An error has occurred in "+f+"() associated with the exception: "+o.message)}}function n(n,t){t=typeof t!="undefined"?t:!1;try{window.console&&console.log(n);t===!0&&alert(n)}catch(i){}}return $(document).ready(function(){t("@NameInUrl",["@(PageUrlSegmentSignaturesToClearSessionState[0])","@(PageUrlSegmentSignaturesToClearSessionState[1])","@(PageUrlSegmentSignaturesToClearSessionState[2])","@(PageUrlSegmentSignaturesToClearSessionState[3])","@(PageUrlSegmentSignaturesToClearSessionState[4])","@(PageUrlSegmentSignaturesToClearSessionState[5])","@(PageUrlSegmentSignaturesToClearSessionState[6])","@(PageUrlSegmentSignaturesToClearSessionState[7])"])}),{}}()