function SetPresentationDate(n){n&&jQuery(".product-qual-registration:checked");jQuery("#product-qual-registration").trigger("change")}function GetSelectedPresentationDateMopi(){var n=jQuery(".product-qual-registration:checked"),t="C";return n.length&&(t=n.val()),t}function GetSelectedPresentationStartDate(){var n=jQuery(".credit-transfer-display .qualInfo");return n.length?n[0].value:"01/01/2001"}function CleanUrlAndRedirect(n,t,i){var u=window.location.href,r=UrlUtilities.RemoveQueryParam(u,"AddToShortList",!0);r=UrlUtilities.SetQueryParam(r,"DCMX",i);window.location.href=r+"#msg"}function CleanUrlAndRedirectFB(n,t,i){var u=window.location.href,r=UrlUtilities.RemoveQueryParam(u,"AddToShortList",!0);r=UrlUtilities.SetQueryParam(r,"DCMX",i);r=UrlUtilities.SetQueryParam(r,"ORIG","FB");window.location.href=r+"#msgFactsBoxFeedback"}function CleanUrlAndRedirectSticky(n,t,i){var u=window.location.href,r=UrlUtilities.RemoveQueryParam(u,"AddToShortList",!0);r=UrlUtilities.SetQueryParam(r,"DCMX",i);r=UrlUtilities.SetQueryParam(r,"ORIG","sticky");window.location.href=r+"#msgFactsBoxFeedback"}function ShowShortlistResponse(n,t,i,r,u){var e=window.location.href,o=UrlUtilities.GetQueryParam(e,"AddToShortList"),s=UrlUtilities.GetQueryParam(e,"ORIG"),f;f=o=="true-FB"||s=="FB"?"factsbox":o=="true-sticky"||s=="sticky"?"stickynav":"regsection";jQuery(document).trigger("shortlistStatusMessage",{messageType:n,message:t,originator:f});ShortlistSaved(n,r,GetSelectedPresentationDateMopi(),GetSelectedPresentationStartDate(),u,f)}function ShowShortlistResponseFeedBack(n,t,i,r,u){jQuery(document).trigger("shortlistStatusMessage",{messageType:n,message:t,originator:"factsbox"});ShortlistSaved(n,r,GetSelectedPresentationDateMopi(),GetSelectedPresentationStartDate(),u,"factsbox")}function BuildSamsLoginUrl(n,t,i){var r=UrlUtilities.BuildUrl(t,i);return UrlUtilities.BuildUrl(n,{URL:r})}function BindShortlistButtons(n,t,i,r){var f=jQuery(".shortlist-link"),u=n+(typeof r!="undefined"?"-"+r:"");f.on("click",function(n){var f=GetSelectedPresentationDateMopi(),r;t?($(this).attr("id")=="addToShortList"?ShortlistService.AddToShortlist(u,GetSelectedPresentationStartDate(),ShowShortlistResponse):$(this).attr("id")=="factsBoxAddToShortList"||$(this).attr("id")=="stickyNavAddToShortList"?ShortlistService.AddToShortlist(u,GetSelectedPresentationStartDate(),ShowShortlistResponseFeedBack):$(this).attr("id")=="RegIntrestaddToShortList"?ShortlistService.AddToShortlist(u,GetSelectedPresentationStartDate(),ShowShortlistResponse,"RegIntrestaddToShortList"):ShortlistService.AddToShortlist(u,GetSelectedPresentationStartDate(),ShowShortlistResponse),n.preventDefault()):(n.preventDefault(),r=$(this).attr("id")=="factsBoxAddToShortList"?"true-FB":$(this).attr("id")=="RegIntrestaddToShortList"?"true-RIG":$(this).attr("id")=="stickyNavAddToShortList"?"true-sticky":"true",window.location.href=UrlUtilities.BuildUrl("/account"+i+"/createaccount",{URL:UrlUtilities.BuildUrl(encodeURIComponent(window.location.href.split("#")[0]),{AddToShortList:r,MOPI:f})}))});jQuery(".subscribers-shortlistItemAddedEvent").on("shortlistItemAddedEventHandler",function(t,i){i.code==n&&($(this).toggle(!1),jQuery(".prospect-display").toggle(!0))})}function InitialiseShortlistLinkState(n,t){ShortlistService.RequestShortlist(function(i){HideLinksIfQualificationInShortlist(i,n,t)})}function HideLinksIfQualificationInShortlist(n,t,i){var r,u;if(n&&n.d)for(t.indexOf("-")>-1&&(t=t.split("-")[0]),r=0;r