var ENLoader={libs:{AdminTools:"/apps/js/tools/admin_20080630",AJAX:"/apps/ajax/ajax",Album:"/apps/js/album/album_20080912",AlumniDirectory:"/apps/js/alumni_dir/alumni_dir_20090520",Assignment:"/apps/js/classes/assignment_20100122",BellSchedules:"/apps/js/bell_schedules/bell_schedules_20100810",Class:"/apps/js/classes/class_20090821",CodePress:"/apps/js/codepress/codepress",CommentAdmin:"/apps/js/comment/admin_20080702",CommentPublic:"/apps/js/comment/public_20080715",Common:"/apps/js/common/common_20080320",CommonAdmin:"/apps/js/common/common_admin",Compile:"/apps/js/common/compile_20080425",Date:"/apps/js/common/date_20080718",DatePicker:"/apps/js/common/date_picker",DialogBoxes:"/apps/js/dialog_boxes/dialog_boxes_20100827",DonationFund:"/apps/js/donations/fund_20080630",DonationIntro:"/apps/js/donations/intro_20080630",ENRemoteService:"/apps/js/EN/rpc/ENRemoteService_20090626",ENTable:"/apps/js/EN/util/ENTable",ENUpload:"/apps/js/EN/rpc/ENUpload_20090102",Events:"/apps/js/events/events_20100825",FacilitiesCom:"/apps/js/facilities/facilities_com_20110124",FileManager:"/apps/js/file_manager/file_manager_20080630",FoodMenu:"/apps/js/food_menu/food_menu_20090826",Forms:"/apps/js/forms/forms_20080630",Help:"/apps/js/common/help_20080627",ImageTools:"/apps/js/image_tools/image_tools_20100913",JQuery:"/apps/js/jquery/1.2.1/jquery",JQuery142:"/apps/js/jquery/1.4.2/jquery",JQuery143:"/apps/js/jquery/1.4.3/jquery",JQueryCache:"/apps/js/jquery/jquery_cache",JQueryClearField:"/apps/js/jquery/jquery_clearfield",JQueryPlaceholder:"/apps/js/mmapp/jquery.placeholder_20110119",JQuerySimpleModal:"/apps/js/mmapp/jquery.simplemodal-1.4.1_20110119",JQueryUI:"/apps/js/jquery/jquery_ui",Marquee:"/apps/js/marquee/marquee_20080630",MM:"/apps/js/mm/mmprogress",MMCheck:"/apps/js/mmapp/mmCheck_20110506",News:"/apps/js/news/news_20100608",P7_AutoLayers:"/apps/js/common/P7_AutoLayers",Pages:"/apps/js/pages/pages_20100910",PhotoGrid:"/apps/js/photo_grid/photo_grid_20100921",Polls:"/apps/js/polls/polls",PollsAdmin:"/apps/js/polls/polls_admin",PollsAdminSettings:"/apps/js/polls/polls_admin_settings",Prototype:"/apps/js/prototype/prototype-1.6.0.2",PublicationsCategory:"/apps/js/publications/category_20080630",PublicationsDocument:"/apps/js/publications/document_20080630",PublicationsPublic:"/apps/js/publications/public",QC:"/apps/js/qc/qc",Richtext:"/apps/js/rte/richtext_20111115",RotatingImages:"/apps/js/rotating_images/rotating_images_20110225",Scriptaculous:"/apps/js/scriptaculous/scriptaculous",Settings:"/apps/js/settings/settings_20100816",SliderControl:"/apps/js/slider_control/slider_control_20100913",SpNETClient:"/apps/js/sponsors/spnetclient_20090625",Staff:"/apps/js/staff/staff_20080711",Store:"/apps/js/store/store",Thickbox:"/apps/js/thickbox/3.1/thickbox",Time:"/apps/js/common/time",TimeUtils:"/apps/js/common/timeutils_20100810",TruView:"/apps/js/file_manager/truview_20090218",Twitter:"/apps/js/twitter/twitter_20100721",URL:"/apps/js/common/url",VideoPane:"/apps/js/mmapp/jquery.paneinitialize_20110119",VideoInit:"/apps/js/mmapp/jquery.videoinitialize_20110215",VideoIndex:"/apps/js/mmapp/video-index_20110215",Webcam:"/apps/js/common/webcam"},css:{Album:"/apps/js/album/main",BellSchedules:"/apps/js/bell_schedules/bell_schedules_20100715",CommentAdmin:"/apps/js/comment/admin_20080702",CommentPublic:"/apps/js/comment/public_20080715",DatePicker:"/apps/js/common/date_picker",DialogBoxes:"/apps/js/dialog_boxes/dialog_boxes_20100827",FacilitiesCom:"/apps/js/facilities/facilities_com_20110124",PollsAdmin:"/apps/js/polls/polls_admin",PollsAdminSettings:"/apps/js/polls/polls_admin_settings",Richtext:"/apps/js/rte/rte",RotatingImages:"/apps/js/rotating_images/rotating_images_20110225",SliderControl:"/apps/js/slider_control/slider_control_20100913",Staff:"/apps/js/staff/staff_20080711",Thickbox:"/apps/js/thickbox/3.1/thickbox"},refreshRate:100,enLoaderContainerID:"enLoaderContainer",enLoaderDiv:null,addLibs:function(C,B){if(document.libNames==null){document.libNames=new Array()}if(document.onLoadCallback==null){document.onLoadCallback=""}if(document.loaded==null){document.loaded=""}if(document.notLoaded==null){document.notLoaded=""}if(document.debug==null){document.debug=false}if(document.callbackFunctions==null){document.callbackFunctions=new Array()}if(document.inputLibs==null){document.inputLibs=""}if(document.toBeLoadedLibs==null){document.toBeLoadedLibs=new Array()}if(document.scriptedLibs==null){document.scriptedLibs=new Array()}if(document.calledFunctions==null){document.calledFunctions=""}if(document.callbackFunctionsStr==null){document.callbackFunctionsStr=""}if(document.errorFunctions==null){document.errorFunctions=""}if(document.URL.indexOf("debug=true")>=0){document.debug=true}if(C==null){C=""}document.inputLibs=C+" "+document.inputLibs;temp=C.split(" ");for(var A=0;A<temp.length;A++){if(temp[A]=="JQuery"||temp[A]=="JQuery142"||temp[A]=="JQuery143"){temp[A]="JQuery143"}if(temp[A]!=""&&!ENLoader.checkInTBLList(temp[A])&&!ENLoader.checkInScrList(temp[A])&&document.loaded.indexOf(temp[A])<0){document.toBeLoadedLibs.push(temp[A])}}if(B!=null){document.callbackFunctionsStr+=B+" "}ENLoader.loadLibs()},checkInTBLList:function(B){for(var A=0;A<document.toBeLoadedLibs.length;A++){if(document.toBeLoadedLibs[A]==B){return true}}return false},checkInScrList:function(B){for(var A=0;A<document.scriptedLibs.length;A++){if(document.scriptedLibs[A]==B){return true}}return false},loadLibs:function(){if((document.toBeLoadedLibs.length==0)&&(document.callbackFunctionsStr==null||document.callbackFunctionsStr=="")){return }var B="-pack";if(document.URL.indexOf(".endev.org")>=0||document.URL.indexOf("debug=true")>=0){B=""}for(var A=0;A<document.toBeLoadedLibs.length;A++){if(ENLoader.checkInScrList(document.toBeLoadedLibs[A])){document.toBeLoadedLibs[A]="";continue}var D="";var E=document.toBeLoadedLibs[A];try{if(this.libs[E]){document.write("<script type='text/javascript' src='"+this.libs[E]+B+".js"+D+"'><\/script>")}if(this.css[E]){document.write("<link rel='stylesheet' href='"+this.css[E]+B+".css' type='text/css' media='screen' />")}}catch(C){console.log(C)}document.scriptedLibs.push(document.toBeLoadedLibs[A]);document.toBeLoadedLibs[A]=""}temp=document.toBeLoadedLibs;document.toBeLoadedLibs=new Array();for(var A=0;A<temp.length;A++){if(temp[A]!=""){document.toBeLoadedLibs.push(temp[A])}}ENLoader.checkItems()},checkItems:function(){var numNotLoaded=0;document.notLoaded="";for(var i=0;i<document.scriptedLibs.length;i++){try{try{eval(document.scriptedLibs[i]+"IsLoaded()")}catch(e1){eval(document.scriptedLibs[i]+".isLoaded()")}if(document.loaded.indexOf(" "+document.scriptedLibs[i]+" ")<0){document.loaded+=" "+document.scriptedLibs[i]+" "}document.scriptedLibs[i]=""}catch(e2){numNotLoaded++;document.notLoaded+=" "+document.scriptedLibs[i]+" "}}temp=document.scriptedLibs;document.scriptedLibs=new Array();for(var i=0;i<temp.length;i++){if(temp[i]!=""){document.scriptedLibs.push(temp[i])}}ENLoader.updateStatusDiv();if(numNotLoaded==0){if(document.callbackFunctionsStr!=""){var temp=document.callbackFunctionsStr.split(" ");document.callbackFunctionsStr="";for(var i=0;i<temp.length;i++){if(temp[i]!=""){document.callbackFunctions.push(temp[i])}}ENLoader.callOnLoadCallbackFunction()}}else{if(numNotLoaded!=0){setTimeout("ENLoader.checkItems()",this.refreshRate)}}},callOnLoadCallbackFunction:function(){temp=document.callbackFunctions;document.callbackFunctions=new Array();for(var i=0;i<temp.length;i++){if(temp[i]!=""){document.callbackFunctions.push(temp[i])}}document.errorFunctions="";for(var i=0;i<document.callbackFunctions.length;i++){var callbackFunction=document.callbackFunctions[i];try{eval(callbackFunction+(callbackFunction.indexOf(")")==callbackFunction.length-1?"":"()"));document.calledFunctions+=document.callbackFunctions[i]+" ";document.callbackFunctions[i]=""}catch(cc){document.errorFunctions+=document.callbackFunctions[i]+" ";setTimeout("ENLoader.callOnLoadCallbackFunction()",50)}}},updateStatusDiv:function(){if(this.enLoaderDiv==null){this.enLoaderDiv=document.getElementById(this.enLoaderContainerID)}if(this.enLoaderDiv&&(typeof (this.enLoaderDiv)).toString().toLowerCase()=="object"&&document.debug){html="<div style='font-size: 10pt;color: black;'><b>Libs Loaded: </b>"+document.loaded+"<br><b>Libs Not Loaded: </b>"+document.notLoaded+"<br><b>Functions Called: </b>"+document.calledFunctions+"<br><b>Error Functions: </b>"+document.errorFunctions+"</div>";this.enLoaderDiv.innerHTML=html;this.enLoaderDiv.style.display="block"}},isLoaded:function(){return true}}
