CC.College={collegeID:"",mainContentID:"main_college_detail",navContainerID:"left_content_nav",expandArrowInfoID:"expand_arrow_info",categoryListToggleButtonID:"collapse_expand_arrow",categoryListID:"category_list",selectedCategoryID:"",urlParams:"",initialize:function(B,A){if(B){this.collegeID=B}if(A){this.urlParams=A}this.registerCategoryOnClick();this.initCollegeTab();this.loadMedia()},toggleCollegeContent:function(C,A){var D=$(A);var B=$(C);if(D.hasClass("collapse")){D.removeClass("collapse");D.addClass("expand");B.setStyle("display","none")}else{if(D.hasClass("expand")){D.removeClass("expand");D.addClass("collapse");B.setStyle("display","block")}else{D.addClass("collapse");B.setStyle("display","block")}}},resetCategoryListClass:function(){$$("#category_list a").each(function(A){A.removeClass("selected")})},registerCategoryOnClick:function(A){$$("#category_list a").each(function(C){var B=C.id.split("category_link_")[1];C.removeEvents("click");C.addEvent("click",function(){CC.College.selectedCategoryID=B;var D="/college/main_college_detail.inc.php?college_id="+CC.College.collegeID+"&category="+CC.College.selectedCategoryID;CC.College.resetCategoryListClass();C.addClass("selected");CC.loadContent($("main_college_detail"),D,function(){})})});$$("#reset_category a").each(function(B){B.removeEvents("click");B.addEvent("click",function(){CC.College.resetCategoryListClass();CC.College.selectedCategoryID="";$$(".category_content").setStyle("display","block")})})},loadMedia:function(){this.loadVideo(this.loadTwitter());this.loadPicture(this.loadFeed(this.loadStudentReviewFeed()))},loadVideo:function(B){var A="/college/college_video.inc.php?college_id="+CC.College.collegeID;CC.loadContent("video_section_inner",A,function(){if(B!=null){B()}})},loadPicture:function(B){var A="/college/college_picture.inc.php?college_id="+CC.College.collegeID;CC.loadContent("picture_section_inner",A,function(){if(B!=null){B()}})},loadTwitter:function(B){var A="/college/college_twitter.inc.php?college_id="+CC.College.collegeID;CC.loadContent("twitter_section",A,function(){if(B!=null){B()}})},loadFeed:function(B){var A="/college/feeds.inc.php?college_id="+CC.College.collegeID;CC.loadContent("feeds_section",A,function(){if(B!=null){B()}})},loadStudentReviewFeed:function(B){var A="/college/student_review.inc.php?college_id="+CC.College.collegeID;CC.loadContent("student_review_inner",A,function(){if(B!=null){B()}})},showMedia:function(B){var A="/media/college_media_show.php?college_id="+CC.College.collegeID+"&media_id="+B;MOOdalBox.open(A,"","600 500");CC.showingMOOdalBox=true},showYoutubeModal:function(B){var A="/media/college_youtube_show.php?youtube_id="+B;MOOdalBox.open(A,"","600 500");CC.showingMOOdalBox=true},showFlickrModal:function(A){var B="/media/media_flickr.php?flickr_id="+A;MOOdalBox.open(B,"","600 500");CC.showingMOOdalBox=true},submit_pagination_form:function(B,F,E,A){var D=$(B);var C=D.action;C=C.replace(new RegExp("((\\?|\\&)"+F+"=\\d*)+"),"");if(C.indexOf("?")==-1){C=C+"?"+F+"="+E}else{C=C+"&"+F+"="+E}D.action=C;if(A==""){D.submit()}else{CC.loadContent(A,C,null,true,true)}},initCollegeTab:function(){$("just_the_fact_tab").addEvent("click",function(){$("current_college_body").setStyle("display","none");$("just_the_fact_body").setStyle("display","block");$("just_the_fact_tab").style.background="transparent url('/common/image/school_say.png') no-repeat scroll left top";$("current_desc").setStyle("display","none");$("college_media_top").style.background="transparent url('/common/image/college_media_bg_top_2.png') no-repeat scroll 0 0";$("college_media_top").style.height="7px";window.location.hash="just_the_fact"});$("current_college_tab").addEvent("click",function(){$("just_the_fact_body").setStyle("display","none");$("current_college_body").setStyle("display","block");$("just_the_fact_tab").style.background="transparent url('/common/image/school_say_nonactive.png') no-repeat scroll left top";$("current_desc").setStyle("display","block");$("college_media_top").style.background="transparent url('/common/image/college_media_bg_top.png') no-repeat scroll 0 0";$("college_media_top").style.height="82px";window.location.hash="current_college"});if(window.location.hash!=""){var A=window.location.href;var B=A.replace(/.*#(.*)/,"$1");if($(B+"_tab")){$(B+"_tab").fireEvent("click")}}else{$("just_the_fact_tab").fireEvent("click")}},loadCollegeBoundWindow:function(A){var C="/collegebound/index.php?cb_link="+escape(A);var B=window.open(C,"collegebound","toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=875,height=450,left=100,top=200");if(!B){alert("Please disable your browsers pop-up window blocker to proceed.")}B.focus()},loadStudentsReviewWindow:function(B){var A=window.open(actualUrl,"studentsReview","toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=875,height=450,left=100,top=200");if(!A){alert("Please disable your browsers pop-up window blocker to proceed.")}A.focus()},closeCollegeBoundAds:function(A){var B=new Ajax("/collegebound/ads_session_ajax.php?college_id="+A,{method:"get",evalScripts:true,onComplete:function(){CC.Ads.close()},headers:{"If-Modified-Since":"Sat, 1 Jan 2000 00:00:00 GMT"}});B.request()},openReviewBox:function(A){CC.openMOOdalBox("/college/college_review_frame.php?college_textbox="+A,"650 600")}};