var ShortlistService={_infographicServiceUrl:"/"+window.location.pathname.split("/")[1]+"/CMSPages/OU/InfographicService.asmx/",FromJsonDate:function(n){var i=null,t=n.match(/\/Date\((-?\d+)\)\//);return t&&t.length>1&&(i=new Date(parseInt(t[1],10))),i},AddToShortlist:function(n,t,i,r){jQuery.ajax({type:"POST",url:this._infographicServiceUrl+"AddToShortList",data:'{ code: "'+n+'", trnsnId: "9684", startDate: "'+t+'" ,referer: "'+r+'" }',contentType:"application/json",dataType:"json",success:function(r){r&&r.d?(r.d.Success&&(jQuery(document).trigger("shortlistItemAddedEvent",{code:n,startdate:t}),InitialiseShortlistLinkState(qualificationCode,awardableCode.replace("-",""))),i&&i(r.d.Status.MessageType,r.d.Status.Message,r.d.StatusDocumentName,r.d.DaxMessageName,r.d.courseGUID),ShortlistService._CleanUrlCallback&&ShortlistService._CleanUrlCallback(r.d.Status.MessageType,r.d.Status.Message,r.d.StatusDocumentName,r.d.DaxMessageName,r.d.courseGUID)):(i&&i(2,"Invalid response from service",""),ShortlistService._CleanUrlCallback&&ShortlistService._CleanUrlCallback(2,"Invalid response from service",""))},error:function(){i&&i(2,"Sorry, we are unable to save your settings at present. Please try again","");ShortlistService._CleanUrlCallback&&ShortlistService._CleanUrlCallback(2,"Sorry, we are unable to save your settings at present. Please try again","")}})},RemoveFromShortlist:function(n){jQuery.ajax({type:"POST",url:this._infographicServiceUrl+"RemoveFromShortlist",data:'{ code: "'+n+'", trnsnId: "9672"}',contentType:"application/json",dataType:"json",success:function(){jQuery(document).trigger("shortlistItemRemovedEvent",{code:n})}})},RequestShortlist:function(n){var t=this;jQuery.ajax({type:"POST",url:this._infographicServiceUrl+"GetShortlistWithPresentations",contentType:"application/json",dataType:"json",success:function(i){var r,u;if(i&&i.d)for(r=0;r