function hideShowincomeQuestion(){var n=300;$(".ppt-radBenefitsYes").on("click",function(){$(".ppt-undergraduate-questions").find(".ppt-divIncome").slideUp(n)});$(".ppt-radBenefitsNo").on("click",function(){$(".ppt-undergraduate-questions").find(".ppt-divIncome").slideDown(n)});$(".ppt-radBenefitsYes").find("input").attr("checked")=="checked"&&$(".ppt-undergraduate-questions").find(".ppt-divIncome").slideUp(0)}function wireUpTooltip(n,t){$("#"+n).on("click",function(){alert("tooltip loaded...");var n=$("#"+t);return n.css("z-index",1001),n.show().position({my:"left+40 top",at:"top-20",of:this,collision:"fit"}),!1})}function wireUpTooltip2(){$(".findResultGroupIconPPT").each(function(){new OU.EEP.Tooltip($(this),{contextSelector:$(this),tooltipSelector:$(this).parent().parent().find(".findResultGroupTooltip"),closeTooltipButtonSelector:".close-tooltip"})})}function tooltip(){wireUpTooltip2();$(".fundingOptionsTooltipClose").on("click",function(){return $(this).parent().hide(),!1})}function scrollToTopOfFundingOptions(){$(".hdnFocusOnFundingOptions").val()=="True"&&($(".hdnFocusOnFundingOptions").val(""),$("html,body").animate({scrollTop:$(".divResults").offset().top-50},600),AddW2PRevealClick(),AddOtherSupportRevealClick(),AddOUSBALinkClick(),PPT_Option_Reveal_Click())}function scrollToFeesAndFundingTab(){window.location.href.indexOf("data=")>-1&&window.setTimeout(function(){$('a[href$="#fees-and-funding"][class$=ui-tabs-anchor]').click();window.setTimeout(function(){$("html, body").animate({scrollTop:$("#save-funding-message-container").offset().top},1e3)},100)},1e3)}function eepQualRegistrationLink(n){window.location=n}function pgNameForCOMSCORE(){var n=window.location.pathname;return n=n.replace("/courses/","courses."),n=n.replace(/\//g,"."),n.replace(".htm","")}function eepDaxTrackerClickEvent(n,t,i){n.length!=0&&ouClickEvent(t.val(),i)}function callDax(n,t,i){var r=$("."+n),u=pgNameForCOMSCORE(),f=i+t;eepDaxTrackerClickEvent(u,r,f)}function trackChange(n,t,i){$("."+n).on("change",function(){callDax(n,t,i)})}function trackButtonSubmit(n){$("."+n).on("click",function(){var u=GetQualificationCode(),t=[{key:"credits",value:$("input[name*=CreditSelection]:checked").is(":checked"),checked:$("input[name*=CreditSelection]:checked")},{key:"degree",value:$(".ppt-radDegreeYes").find("input:first").is(":checked"),checked:$("input[name*=radDegree]:checked")},{key:"benefits",value:$(".ppt-radBenefitsYes").find("input:first").is(":checked"),checked:$("input[name*=radBenefit]:checked")},{key:"incomeOverThreshold",value:$(".ppt-IncomeOverThreshold").find("input:first").is(":checked"),checked:$("input[name*=radIncome]:checked")},{key:"employed",value:$(".ppt-radEmployedYes").find("input:first").is(":checked"),checked:$("input[name*=radEmployed]:checked")},{key:"bfpo",value:$("input[name*=BritishForce]:checked").is(":checked"),checked:$("input[name*=BritishForce]:checked")}],i,r;if(validateCheckBoxes(t))i=GenerateFormValueTrackingString(t),r="category=qualification&ou_ev_ty=form&ou_ev_ac=on-page&ou_ev_mt=submit&ou_ev_pl=wtp&ou_ev_as=PersonalPricingTool&ou_ev_refas=none&ou_ev_val="+i+"&ou_ev_msg=none&ou_qual=",callDax(n,u,r);else return!1})}function validateCheckBoxes(n){for(var i,f,u,r=!0,t=0;t=0?"reveal-close":"reveal-open";t=GetQualificationCode();i="category=qualification&ou_ev_ty=navigation&ou_ev_ac=on-page&ou_ev_mt=click&ou_ev_pl=other-wtp&ou_ev_as="+n+"&ou_ev_refas=none&ou_ev_val=none&ou_ev_msg=none&ou_qual="+t;PPT_Reveal_Dax_tracker(u,r,i)})}function AddOtherSupportRevealClick(){$(".dax-other-support-interactive").on("click",function(){var r=$(this),u=pgNameForCOMSCORE(),n,t,i;n=$(this).parent().attr("class").toLowerCase().indexOf("int-active")>=0?"reveal-close":"reveal-open";t=GetQualificationCode();i="category=qualification&ou_ev_ty=navigation&ou_ev_ac=on-page&ou_ev_mt=click&ou_ev_pl=other-support&ou_ev_as="+n+"&ou_ev_refas=none&ou_ev_val=none&ou_ev_msg=none&ou_qual="+t;PPT_Reveal_Dax_tracker(u,r,i)})}function PPT_Option_Reveal_Click(){$(".ppt-Form .divResults .int-textToggleTrigger").on("click",function(){var n=$(this).parent().parent(".int-toggler"),t=pgNameForCOMSCORE(),i=$(n).attr("class").indexOf("int-active")>-1?"reveal-close":"reveal-open",r=$(n).attr("id").replace("toggler","reveal"),u=GetQualificationCode(),f="category=qualification&ou_ev_ty=navigation&ou_ev_ac=on-page&ou_ev_mt=click&ou_ev_pl="+r+"&ou_ev_as="+i+"&ou_ev_refas=none&ou_ev_val=none&ou_ev_msg=none&ou_qual="+u;PPT_Reveal_Dax_tracker(t,n,f)})}function AddOUSBALinkClick(){$('a[href^="http://www.open.ac.uk/ousba"]').on("click",function(){var n=$(this),t=pgNameForCOMSCORE(),i=GetQualificationCode(),r="category=qualification&ou_ev_ty=navigation&ou_ev_ac=off-site&ou_ev_mt=link&ou_ev_pl=fees&ou_ev_as=ousba-link&ou_ev_refas=none&ou_ev_val=none&ou_ev_msg=none&ou_qual="+i;PPT_Reveal_Dax_tracker(t,n,r)})}function PPT_Reveal_Dax_tracker(n,t,i){n.length!=0&&ouClickEvent(t,i)}$(document).ready(hideShowincomeQuestion(),tooltip(),trackButtonSubmit("btnSubmit"),scrollToFeesAndFundingTab(),scrollToTopOfFundingOptions());var prm=Sys.WebForms.PageRequestManager.getInstance();prm.add_endRequest(function(){scrollToTopOfFundingOptions();trackButtonSubmit("btnSubmit");hideShowincomeQuestion();tooltip();OUApp.Modules.ui_widgets.init()});$(".dax-additional-costs-interactive").on("click",function(){var r=$(this),u=pgNameForCOMSCORE(),n,t,i;n=$(this).parent().attr("class").toLowerCase().indexOf("int-active")>=0?"reveal-close":"reveal-open";t=GetQualificationCode();i="category=qualification&ou_ev_ty=navigation&ou_ev_ac=on-page&ou_ev_mt=click&ou_ev_pl=additional-costs&ou_ev_as="+n+"&ou_ev_refas=none&ou_ev_val=none&ou_ev_msg=none&ou_qual="+t;PPT_Reveal_Dax_tracker(u,r,i)})