var nyulibrary_load_dependencies={jquery:{type:"library"},jsr_class:{type:"library"},prototype:{type:"library"},scriptaculous:{type:"library",dependent_on:["prototype"]},"sifr-config":{type:"library"},sifr:{type:"library",dependent_on:["sifr-config"]},swfobject:{type:"library"},help_bubble_css:{type:"theme",css_link:"css/common/help_bubble.css"},nyulibraries_gray:{type:"theme",css_link:"scripts/jquery/css/nyulibraries_gray/jquery-ui.css"},"custom-red":{type:"theme",css_link:"scripts/jquery/css/custom-red/jquery-ui.css"},"tip-custom-yellow":{type:"theme",css_link:"scripts/jquery/css/tip-custom-yellow/tip-custom-yellow.css"},"jquery-ui":{type:"library",dependent_on:["jquery","nyulibraries_gray"]},"jquery-ui-timepicker-addon":{type:"plugin",dependent_on:["jquery-ui"]},"jquery.form":{type:"plugin",dependent_on:["jquery"]},"jquery.metadata":{type:"plugin",dependent_on:["jquery"]},"jquery.outside-events":{type:"plugin",dependent_on:["jquery"]},"jquery.poshytip.min":{type:"plugin",dependent_on:["jquery-ui","tip-custom-yellow"]},"jquery.printElement":{type:"plugin",dependent_on:["jquery"]},"jquery.query":{type:"plugin",dependent_on:["jquery"]},"jquery.url":{type:"plugin",dependent_on:["jquery"]},"jquery.validate":{type:"plugin",dependent_on:["jquery","jquery.form","jquery.metadata"]},"jquery.nyulibrary.bobcat":{type:"plugin",dependent_on:["jquery-ui","jquery.outside-events"]},"jquery.nyulibrary.feedback":{type:"plugin",dependent_on:["jquery"]},"jquery.nyulibrary.libraryhelp":{type:"plugin",dependent_on:["jquery"]},"jquery.nyulibrary.popuptip":{type:"plugin",dependent_on:["jquery.poshytip.min"]},"jquery.nyulibrary.tags":{type:"plugin",dependent_on:["jquery","jquery.query"]},"jquery.nyulibrary.tsetse":{type:"plugin",dependent_on:["jquery"]},atoz_widget:{type:"library",dependent_on:["prototype"]},expand_contract:{type:"library",dependent_on:["scriptaculous"]},help_bubble:{type:"library",dependent_on:["scriptaculous","jsr_class","help_bubble_css"]}};var NYULibrary_LoadJS={};if(typeof(loaded)=="undefined"){var loaded=new Array()}if(typeof(load_libraries)=="undefined"){var load_libraries=new Array()}if(typeof(load_plugins)=="undefined"){var load_plugins=new Array()}if(typeof(load_themes)=="undefined"){var load_themes=new Array()}var nyulibrary_base_url="https://library.nyu.edu/";var legacy_default_theme="nyulibraries_gray";function nyulibrary_loadjs_init(){var b=/load_js\.js(\?.*)?$/;var c=document.getElementsByTagName("script");var l,o,g,e,h;for(var n=0;n<c.length;n++){if(c[n].src&&c[n].src.match(b)){l=c[n].src.replace(b,"");o=c[n].src.match(/\?load=([A-Za-z\d\.\_\-,\:]*)/);themes=c[n].src.match(/&theme=([A-Za-z\.\_\/\-,\:]*)/);e=c[n].src.match(/&plugins=([A-Za-z\d\/\_\-,\.\:]*)/);has_dependencies=c[n].src.match(/\?load_with_dependencies=([A-Za-z\d\.\_\-,\:]*)/);if(!has_dependencies){h=(o?o[1]:"scriptaculous,jsr_class").split(",")}else{deps_list=has_dependencies[1].split(",");for(var j=0;j<deps_list.length;j++){generate_dependencies_list(deps_list[j]);h=load_libraries}}for(var f=0;f<h.length;f++){include=String(h[f]);if(include=="prototype"||include=="scriptaculous"){if((include=="prototype"&&!in_array("scriptaculous",h))||(include=="scriptaculous")){if(typeof(window.Prototype)=="undefined"){nyulibrary_loadjs_require("prototype.js")}}if(include=="scriptaculous"){include+="/scriptaculous";if(typeof(window.Scriptaculous)=="undefined"){nyulibrary_loadjs_require(include+".js")}}}else{if(include=="jsr_class"){if(typeof(window.JSONscriptRequest)=="undefined"){nyulibrary_loadjs_require(include+".js")}}else{if(include=="swfobject"){if(typeof(window.swfobject)=="undefined"){nyulibrary_loadjs_require(include+".js")}}else{if(include.match(/^jquery.*$/)){include_path="jquery/";if(typeof(window.jQuery)=="undefined"){if(include=="jquery"){nyulibrary_loadjs_require(include_path+include+".js")}else{if(include.match(/^jquery:([a-z0-9\_\-\.]*)/)){version_matches=/^jquery:([a-z0-9\_\-\.]*)/.exec(include);version=version_matches[1];nyulibrary_loadjs_require(include_path+"jquery-"+version+".js")}}}if(include.match(/^jquery-ui:([a-z\d\_\-\.]*)/)){version_matches=/^jquery-ui:([a-z\d\_\-\.]*)/.exec(include);version=version_matches[1];if(theme_styles){nyulibrary_loadjs_require(include_path+"css/"+theme_styles+"/js/jquery-ui-"+version+".js")}else{nyulibrary_loadjs_require(include_path+"jquery-ui-"+version+".js")}}else{if(include=="jquery-ui"){nyulibrary_loadjs_require(include_path+include+".js")}}}else{nyulibrary_loadjs_require(include+".js")}}}}}if(!has_dependencies){plugin_libs=(e?e[1]:"").split(",")}else{plugin_libs=load_plugins}for(var a=0;a<plugin_libs.length;a++){plugin=String(plugin_libs[a]);if(plugin.match(/^jquery.*$/)){include_path="jquery/";nyulibrary_loadjs_require(include_path+"plugins/"+plugin+".js")}}if(!has_dependencies){theme_libs=(themes?themes[1]:legacy_default_theme).split(",")}else{theme_libs=load_themes}for(var k=0;k<theme_libs.length;k++){theme_styles=(theme_libs?theme_libs[k]:"ui-lightness/jquery-ui.css");if(theme_styles==legacy_default_theme){nyulibrary_loadjs_require_style("scripts/jquery/css/"+theme_styles+"/jquery-ui.css")}else{nyulibrary_loadjs_require_style(theme_styles)}}}}}function generate_dependencies_list(a){if(typeof(nyulibrary_load_dependencies[a])!="undefined"){var b=nyulibrary_load_dependencies[a].dependent_on;if(typeof(b)=="undefined"){nyulibrary_loadjs_add_to_load(a)}else{for(var c=0;c<b.length;c++){generate_dependencies_list(b[c])}nyulibrary_loadjs_add_to_load(a)}}else{if(!in_array(a,load_libraries)){load_libraries.push(a)}}return true}function nyulibrary_loadjs_add_to_load(a){var b=nyulibrary_load_dependencies[a].type;if(b=="plugin"){if(!in_array(a,load_plugins)){load_plugins.push(a)}}else{if(b=="library"){if(!in_array(a,load_libraries)){load_libraries.push(a)}}else{if(b=="theme"){if(!in_array(a,load_themes)){load_themes.push(nyulibrary_load_dependencies[a].css_link)}}}}return true}function nyulibrary_loadjs_require(b){if(!in_array(b,loaded)){loaded.push(b);try{document.write('<script type="text/javascript" src="'+nyulibrary_base_url+"scripts/"+b+'"><\/script>')}catch(c){var a=document.createElement("script");a.type="text/javascript";a.src=nyulibrary_base_url+b;document.getElementsByTagName("head")[0].appendChild(a)}}}function nyulibrary_loadjs_require_style(a){if(!in_array(a,loaded)){loaded.push(a);try{document.write('<link rel="stylesheet" type="text/css" href="'+nyulibrary_base_url+a+'" />')}catch(c){var b=document.createElement("link");b.type="text/css";b.href=nyulibrary_base_url+a;document.getElementsByTagName("head")[0].appendChild(b)}}}function in_array(a,b){for(i=0;i<b.length;i++){if(b[i]==a){return true}}return false}nyulibrary_loadjs_init();
