function relativepathfinder(n){return window.location.pathname.slice(-1)=="/"?"../"+n:n}var opendropid;$(document).ready(function(){var n=window.location.pathname.split("/");switch(n[n.length-1]){case"InsideStaff":$("#stafficon").css("outline","1px solid #000000");break;case"Questions":$("#questionsicon").css("outline","1px solid #000000");break;case"AboutIPEDS":$("#abouticon").css("outline","1px solid #000000");break;default:$("#abouticon").css("outline","none");$("#questionsicon").css("outline","none");$("stafficon").css("outline","none")}$("[rel=tooltip]").tooltip({placement:"top"});$("[rel=tooltip2]").tooltip({placement:"top"});$.support.placeholder=function(){var n=document.createElement("input");return"placeholder"in n}();$.support.placeholder==!1&&($('input[type="text"][placeholder], textarea[placeholder]').each(function(){var n=$(this);n.attr("placeholder")!=""&&(n.addClass("IePlaceHolder"),$.trim(n.val())==""&&n.attr("type")!="password"&&n.val(n.attr("placeholder")))}),$(".IePlaceHolder").focus(function(){var n=$(this);n.val()==n.attr("placeholder")&&n.val("")}),$(".IePlaceHolder").blur(function(){var n=$(this);$.trim(n.val())==""&&n.val(n.attr("placeholder"))}))});$("img").click(function(){$("img").css({outline:"none"})});$("a").click(function(){$("a").css({outline:"none"})});$("div").click(function(){$("div").css({outline:"none"})});$("input").click(function(){$("input").css({outline:"none"})});$(".mini-nav-button2").click(function(){switch(this.id){case"fyc_":window.location.href="/Home/FindYourCollege";break;case"utd_":window.location.href="/Home/UseTheData";break;case"ryd_":window.location.href="/Home/ReportYourData";break;case"ji_":window.location.href="/Home/JoinIn"}});$("#mini-nav-menu").click(function(){$(".dropdown-menu").css("display")=="none"?$("#menu-icon").css("outline","1px solid #000000"):$("#menu-icon").css("outline","none")});$("html").click(function(n){$(".dropdown-menu").css("display")!="none"&&$("#menu-icon").css("outline","none");$(n.target).closest("dl").length==0&&($(".iws-drop dd ul").hasClass("open")&&($(".iws-drop dd ul").removeClass("open"),$("#iws-select-icon").toggle()),$(".iws-dropdown dd ul").hasClass("open")&&($(".iws-dropdown dd ul").removeClass("open"),$(".iws-dropdown > dt > a >#iws-select-icon").show()))});$(".iws-drop-btn").click(function(){$(this).find("span").toggleClass("glyphicon-chevron-down").toggleClass("glyphicon-chevron-up")});$(".popup").click(function(){window.open("/Editor/EditHelper","Editor","height=700, width=780,status= no, resizable= no, scrollbars=yes, toolbar=no,location=no,menubar=no")});$(".help-selector").click(function(){$("#"+this.id+"help").toggle()});$(".l2-dropdown").change(function(){window.location.href=this.value});$(".twii-date-view").click(function(){var n=$("#"+this.id).attr("data-value");window.location.href=relativepathfinder("../InsidePages/TWII?date="+this.id+"&id="+n)});$(".twii-date-view").keypress(function(n){if(n.keyCode==13){var t=$("#"+this.id).attr("data-value");window.location.href=relativepathfinder("../InsidePages/TWII?date="+this.id+"&id="+t)}});$(".tr-date").click(function(){var n=$("#"+this.id).attr("data-value");window.location.href=relativepathfinder("../InsidePages/TrainingAnnouncements?date="+this.id+"&id="+n)});$(".tr-date").keypress(function(n){if(n.keyCode==13){var t=$("#"+this.id).attr("data-value");window.location.href=relativepathfinder("../InsidePages/TrainingAnnouncements?date="+this.id+"&id="+t)}});$(".tr-date-view").click(function(){var n=$("#"+this.id).attr("data-value");window.location.href=relativepathfinder("../InsidePages/TrainingAnnouncements?date="+this.id+"&id="+n)});$(".tr-date-view").keypress(function(n){if(n.keyCode==13){var t=$("#"+this.id).attr("data-value");window.location.href=relativepathfinder("../InsidePages/TrainingAnnouncements?date="+this.id+"&id="+t)}});$(".asm-year-list-view").change(function(){window.location.href=__root_url+"/use-the-data/annual-survey-forms-packages-archived?year="+$(".asm-year-list-view").val()});$(".asm-year-list-view-sidebar").change(function(){window.location.href=__root_url+"/use-the-data/annual-survey-forms-packages-archived?year="+$(".asm-year-list-view-sidebar").val()});$(".asm-section-list-view").change(function(){$(".asm-section-list-view").val()=="default"?window.location.href=__root_url+"/use-the-data/annual-survey-forms-packages-archived?year="+$(".asm-year-list-view option").eq(1).val():(window.location.href=__root_url+"/use-the-data/annual-survey-forms-packages-archived?section="+$(".asm-section-list-view").val(),$(".asm-year-list-view").val("default"))});$(".asm-section-list-view-sidebar").change(function(){$(".asm-section-list-view-sidebar").val()=="default"?window.location.href=__root_url+"/use-the-data/annual-survey-forms-packages-archived?year="+$(".asm-year-list-view-sidebar option").eq(1).val():(window.location.href=__root_url+"/use-the-data/annual-survey-forms-packages-archived?section="+$(".asm-section-list-view-sidebar").val(),$(".asm-year-list-view-sidebar").val("default"))});$("#asm-form :input").change(function(){$(".asm-results-body").hide();$(".loading-container").show();$("#asm-form :input").attr("disabled",!0);var h=$(".asm-year-list-view").val(),c=$(".asm-section-list-view").val(),n=[],t=[],r=[],o=3,u="",f="",e="",s="";if($("#asm-form :input").each(function(){if(this.checked==!0)switch(this.name){case"inst_lvl":n.push($(this).val());break;case"inst_ctrl":t.push($(this).val());break;case"cal_sys":r.push($(this).val());break;case"degree":o=$(this).val()}}),n!="")for(i=0;i<n.length;i++)u+="&institutionlvl["+i+"]="+n[i];else u="";if(t!="")for(i=0;i<t.length;i++)f+="&institutionctrl["+i+"]="+t[i];else f="";if(r!="")for(i=0;i<r.length;i++)e+="&calendersystem["+i+"]="+r[i];else e="";h!="default"?s=relativepathfinder("_SurveyResults?year="+h+"&grantsdegrees="+o+(n!=""?u:"")+(t!=""?f:"")+(r!=""?e:"")):c!="default"?s=relativepathfinder("_SurveySectionResults?section="+c+"&grantsdegrees="+o+(n!=""?u:"")+(t!=""?f:"")+(r!=""?e:"")):($(".asm-year-list-view option").eq(1).prop("selected",!0),s=relativepathfinder("_SurveyResults?year="+$(".asm-year-list-view option").eq(1).val()+"&grantsdegrees="+o+(n!=""?u:"")+(t!=""?f:"")+(r!=""?e:"")));$.ajax({url:s,type:"POST",cache:!1,dataType:"html",success:function(n){$(".loading-container").hide();$(".asm-results-body").html(n);$(".asm-results-body").show();$("#asm-form :input").attr("disabled",!1)},error:function(n){console.log("No Go Status: "+n.status+"\nResponse Text:"+n.responseText)}})});$("#asm-form-sidebar :input").change(function(){$(".asm-results-body").hide();$(".loading-container").show();$("#asm-form-sidebar :input").attr("disabled",!0);var h=$(".asm-year-list-view-sidebar").val(),c=$(".asm-section-list-view-sidebar").val(),n=[],t=[],r=[],o=3,u="",f="",e="",s="";if($("#asm-form-sidebar :input").each(function(){if(this.checked==!0)switch(this.name){case"inst_lvl":n.push($(this).val());break;case"inst_ctrl":t.push($(this).val());break;case"cal_sys":r.push($(this).val());break;case"degree":o=$(this).val()}}),n!="")for(i=0;i<n.length;i++)u+="&institutionlvl["+i+"]="+n[i];else u="";if(t!="")for(i=0;i<t.length;i++)f+="&institutionctrl["+i+"]="+t[i];else f="";if(r!="")for(i=0;i<r.length;i++)e+="&calendersystem["+i+"]="+r[i];else e="";h!="default"?s=__root_url+"/use-the-data/_SurveyResults?year="+h+"&grantsdegrees="+o+(n!=""?u:"")+(t!=""?f:"")+(r!=""?e:""):c!="default"?s=__root_url+"/use-the-data/_SurveySectionResults?section="+c+"&grantsdegrees="+o+(n!=""?u:"")+(t!=""?f:"")+(r!=""?e:""):($(".asm-year-list-view option").eq(1).prop("selected",!0),s=__root_url+"/use-the-data/_SurveyResults?year="+$(".asm-year-list-view option").eq(1).val()+"&grantsdegrees="+o+(n!=""?u:"")+(t!=""?f:"")+(r!=""?e:""));$.ajax({url:s,type:"POST",cache:!1,dataType:"html",success:function(n){$(".loading-container").hide();$(".asm-results-body").html(n);$(".asm-results-body").show();$("#asm-form-sidebar :input").attr("disabled",!1)},error:function(n){console.log("No Go Status: "+n.status+"\nResponse Text:"+n.responseText)}})});$(".asm-clear-form").click(function(){$("#asm-form :input").each(function(){this.checked==!0&&$(this).prop("checked",!1)});$(".asm-year-list-view option").eq(1).prop("selected",!0);$(".asm-section-list-view option").eq(0).prop("selected",!0);$("#asm-search-bar").val("");$(".asm-results-body").hide();$(".loading-container").show();var n=relativepathfinder("_SurveyResults?year="+$(".asm-year-list-view :nth-child(2)").val()+"&grantsdegrees=3");$.ajax({url:n,type:"POST",cache:!1,dataType:"html",success:function(n){$(".loading-container").hide();$(".asm-results-body").html(n);$(".asm-results-body").show()},error:function(){}})});$(".asm-clear-form-sidebar").click(function(){$("#asm-form-sidebar :input").each(function(){this.checked==!0&&$(this).prop("checked",!1)});$(".asm-year-list-view-sidebar option").eq(1).prop("selected",!0);$(".asm-section-list-view-sidebar option").eq(0).prop("selected",!0);$("#asm-search-bar-sidebar").val("");$(".asm-results-body").hide();$(".loading-container").show();var n=relativepathfinder("_SurveyResults?year="+$(".asm-year-list-view :nth-child(2)").val()+"&grantsdegrees=3");$.ajax({url:n,type:"POST",cache:!1,dataType:"html",success:function(n){$(".loading-container").hide();$(".asm-results-body").html(n);$(".asm-results-body").show()},error:function(){}})});$(".asm-search").click(function(){$(".asm-results-body").hide();$(".loading-container").show();$(".asm-year-list-view option").eq(0).prop("selected",!0);$("#asm-form :input").attr("disabled",!0);finaldata=relativepathfinder("_SurveySearchResults?query="+$(".asm-form-control").val());$.ajax({url:finaldata,type:"POST",cache:!1,dataType:"html",success:function(n){$(".loading-container").hide();$(".asm-results-body").html(n);$(".asm-results-body").show();$("#asm-form :input").attr("disabled",!1)},error:function(){}})});$(".asm-search").click(function(){$(".asm-results-body").hide();$(".loading-container").show();$(".asm-year-list-view-sidebar option").eq(0).prop("selected",!0);$("#asm-form-sidebar :input").attr("disabled",!0);finaldata=relativepathfinder("_SurveySearchResults?query="+$(".asm-form-control").val());$.ajax({url:finaldata,type:"POST",cache:!1,dataType:"html",success:function(n){$(".loading-container").hide();$(".asm-results-body").html(n);$(".asm-results-body").show();$("#asm-form :input").attr("disabled",!1)},error:function(){}})});$("#asm-search-bar").keypress(function(n){n.keyCode==13&&($(".asm-results-body").hide(),$(".loading-container").show(),$(".asm-year-list-view option").eq(0).prop("selected",!0),$("#asm-form :input").attr("disabled",!0),finaldata=relativepathfinder("_SurveySearchResults?query="+$(".asm-form-control").val()),$.ajax({url:finaldata,type:"POST",cache:!1,dataType:"html",success:function(n){$(".loading-container").hide();$(".asm-results-body").html(n);$(".asm-results-body").show();$("#asm-form :input").attr("disabled",!1)},error:function(n){console.log("No Go Status: "+n.status+"\nResponse Text:"+n.responseText)}}))});$("#asm-search-bar-sidebar").keypress(function(n){n.keyCode==13&&($(".asm-results-body").hide(),$(".loading-container").show(),$(".asm-year-list-view-sidebar option").eq(0).prop("selected",!0),$("#asm-form :input-sidebar").attr("disabled",!0),finaldata=relativepathfinder("_SurveySearchResults?query="+$(".asm-form-control").val()),$.ajax({url:finaldata,type:"POST",cache:!1,dataType:"html",success:function(n){$(".loading-container").hide();$(".asm-results-body").html(n);$(".asm-results-body").show();$("#asm-form :input").attr("disabled",!1)},error:function(n){console.log("No Go Status: "+n.status+"\nResponse Text:"+n.responseText)}}))}),function(n,t){"use strict";var r=n("html, body"),i;n.CBPNTAccordion=function(t,i){this.$el=n(i);this._init(t)};n.CBPNTAccordion.defaults={};n.CBPNTAccordion.prototype={_init:function(t){this.options=n.extend(!0,{},n.CBPNTAccordion.defaults,t);this._config();this._initEvents()},_config:function(){this.$items=this.$el.find(".about-ipeds-list-title")},_initEvents:function(){this.$items.on("click.cbpNTAccordion",function(){var t=n(this).parent();t.hasClass("cbp-ntopen")?t.removeClass("cbp-ntopen"):(t.addClass("cbp-ntopen"),r.scrollTop(t.offset().top))})},destroy:function(){this.$items.off(".cbpNTAccordion").parent().removeClass("cbp-ntopen")}};i=function(n){t.console&&t.console.error(n)};n.fn.cbpNTAccordion=function(t){if(typeof t=="string"){var r=Array.prototype.slice.call(arguments,1);this.each(function(){var u=n.data(this,"cbpNTAccordion");if(!u){i("cannot call methods on cbpNTAccordion prior to initialization; attempted to call method '"+t+"'");return}if(!n.isFunction(u[t])||t.charAt(0)==="_"){i("no such method '"+t+"' for cbpNTAccordion instance");return}u[t].apply(u,r)})}else this.each(function(){var i=n.data(this,"cbpNTAccordion");i?i._init():i=n.data(this,"cbpNTAccordion",new n.CBPNTAccordion(t,this))});return this}}(jQuery,window);$(function(){$("#about-ipeds-list").cbpNTAccordion()});$(".about-ipeds-list-title").click(function(){var n=$(this).attr("data-state");n==="opened"?($("img",this).attr("src",__root_url+"/Content/Images/icon_plus.png"),$(this).attr("data-state","closed")):($("img",this).attr("src",__root_url+"/Content/Images/icon_minus.png"),$(this).attr("data-state","opened"))});$(".about-ipeds-list-title").keypress(function(n){if(n.keyCode==13){var t=$(this).parent();t.hasClass("cbp-ntopen")?($("img",this).attr("src",relativepathfinder(__root_url+"/Content/Images/icon_plus.png")),t.removeClass("cbp-ntopen")):($("img",this).attr("src",relativepathfinder(__root_url+"/Content/Images/icon_minus.png")),t.addClass("cbp-ntopen"),$body.scrollTop(t.offset().top))}});$(function(){$(".twii-content > p > a").attr("tabindex","15")});$(function(){$(".tr-content > p > a").attr("tabindex","15")});$(function(){$(".search-page > .search-form > a").attr("tabindex","13")});$(function(){$(".l2-header").attr("tabindex","12");$(".l2-icon").attr("tabindex","12");$(".iws-drop dt").attr("tabindex","12");$(".iws-dropdown dt").attr("tabindex","12");$(".iws-drop dd ul li").attr("tabindex","12");$(".iws-drop-sub-list").attr("tabindex","12");$(".ac-content p a").attr("tabindex","13")});$("#ipeds-return").click(function(){window.history.back()});$("#ipeds-return").keypress(function(n){n.keyCode==13&&window.history.back()});$(".iws-drop dt").click(function(){opendropid!=null&&($("#"+opendropid+" dd ul").removeClass("open"),$("#"+opendropid+" > dt > a > #iws-select-icon").show());opendropid=$(this).closest(".iws-drop").attr("id");$(".iws-drop dd ul").hasClass("open")?$(".iws-drop dd ul").removeClass("open"):$(".iws-drop dd ul").addClass("open");$("#iws-select-icon").toggle()});$(".iws-drop dt").keypress(function(n){n.keyCode==13&&(opendropid!=null&&($("#"+opendropid+" dd ul").removeClass("open"),$("#"+opendropid+" > dt > a > #iws-select-icon").show()),opendropid=$(this).closest(".iws-drop").attr("id"),$(".iws-drop dd ul").hasClass("open")?$(".iws-drop dd ul").removeClass("open"):$(".iws-drop dd ul").addClass("open"),$("#iws-select-icon").toggle())});$(".iws-dropdown dt").click(function(){opendropid!=null&&($("#"+opendropid+" dd ul").removeClass("open"),$("#"+opendropid+" > dt > a > #iws-select-icon").show());opendropid=$(this).closest(".iws-dropdown").attr("id");$("#"+this.parentNode.id+" dd ul").hasClass("open")?$("#"+this.parentNode.id+" dd ul").removeClass("open"):$("#"+this.parentNode.id+" dd ul").addClass("open");$("#"+this.parentNode.id+" > dt > a > #iws-select-icon").toggle()});$(".iws-dropdown dt").keypress(function(n){n.keyCode==13&&(opendropid!=null&&($("#"+opendropid+" dd ul").removeClass("open"),$("#"+opendropid+" > dt > a > #iws-select-icon").show()),opendropid=$(this).closest(".iws-dropdown").attr("id"),$(".iws-dropdown dd ul").hasClass("open")?$(".iws-dropdown dd ul").removeClass("open"):$(".iws-dropdown dd ul").addClass("open"),$("#"+this.parentNode.id+" > dt > a > #iws-select-icon").toggle())});$(".iws-drop dd ul li").keydown(function(n){n.keyCode==39&&$(".iws-drop dd ul li:focus > .iws-drop-sub-list").attr("style","display: block !important");n.keyCode!=39&&$(".iws-drop dd ul li:focus > .iws-drop-sub-list").attr("style","display: none")});$(".rm-submit-form").click(function(){$("#register-email-form").submit()})