jQuery.noConflict();(function(b){b.fn.equalizeCols=function(f){var e=Array(0);if(f){e=f.split(",")}var a=0;this.each(function(c){if(this.offsetHeight>a){a=this.offsetHeight}}).css("height","auto").each(function(d){var c=a-this.offsetHeight;if(c>0){t=document.createElement("div");b(t).attr("class","fill").css("height",c+"px");if(e.length>d){b(this).find(e[d]).children(":last-child").after(t)}else{b(this).children(":last-child").after(t)}}})}})(jQuery);jQuery.fn.extend({everyTime:function(f,j,i,h,g){return this.each(function(){jQuery.timer.add(this,f,j,i,h,g)})},oneTime:function(e,d,f){return this.each(function(){jQuery.timer.add(this,e,d,f,1)})},stopTime:function(d,c){return this.each(function(){jQuery.timer.remove(this,d,c)})}});jQuery.event.special;jQuery.extend({timer:{global:[],guid:1,dataKey:"jQuery.timer",regex:/^([0-9]+(?:\.[0-9]*)?)\s*(.*s)?$/,powers:{ms:1,cs:10,ds:100,s:1000,das:10000,hs:100000,ks:1000000},timeParse:function(h){if(h==undefined||h==null){return null}var f=this.regex.exec(jQuery.trim(h.toString()));if(f[2]){var e=parseFloat(f[1]);var g=this.powers[f[2]]||1;return e*g}else{return h}},add:function(n,p,k,l,q,m){var r=0;if(jQuery.isFunction(k)){if(!q){q=l}l=k;k=p}p=jQuery.timer.timeParse(p);if(typeof p!="number"||isNaN(p)||p<=0){return}if(q&&q.constructor!=Number){m=!!q;q=0}q=q||0;m=m||false;var o=jQuery.data(n,this.dataKey)||jQuery.data(n,this.dataKey,{});if(!o[k]){o[k]={}}l.timerID=l.timerID||this.guid++;var j=function(){if(m&&this.inProgress){return}this.inProgress=true;if((++r>q&&q!==0)||l.call(n,r)===false){jQuery.timer.remove(n,k,l)}this.inProgress=false};j.timerID=l.timerID;if(!o[k][l.timerID]){o[k][l.timerID]=window.setInterval(j,p)}this.global.push(n)},remove:function(j,f,i){var h=jQuery.data(j,this.dataKey),g;if(h){if(!f){for(f in h){this.remove(j,f,i)}}else{if(h[f]){if(i){if(i.timerID){window.clearInterval(h[f][i.timerID]);delete h[f][i.timerID]}}else{for(var i in h[f]){window.clearInterval(h[f][i]);delete h[f][i]}}for(g in h[f]){break}if(!g){g=null;delete h[f]}}}for(g in h){break}if(!g){jQuery.removeData(j,this.dataKey)}}}}});jQuery(window).bind("unload",function(){jQuery.each(jQuery.timer.global,function(d,c){jQuery.timer.remove(c)})});var currentSlide=1;jQuery('#search input[type="text"]').each(function(a){jQuery(this).attr("value",jQuery('label[for="'+this.id+'"]').html())});jQuery('#search input[type="text"]').one("focus",function(a){jQuery(this).attr("value","")});function nextSlide(){if(currentSlide<4){currentSlide++}else{currentSlide=1}return currentSlide}function preloadImages(){jQuery(".control img").each(function(a){myPath=jQuery(this).attr("src").split("/");myImage=myPath[myPath.length-1];jQuery("<img>").attr("src","/include/images/slides/"+myImage)})}function startRotation(){jQuery(document).everyTime(7000,function(a){rotateImage(nextSlide())})}function rotateImage(a){targetImage=jQuery("#slide"+a);jQuery(".control a").removeClass("active");jQuery(targetImage).parent().addClass("active");myPath=jQuery(targetImage).attr("src").split("/");myImage=myPath[myPath.length-1];jQuery(".carousel-wrap").clone(true).insertAfter(jQuery(".header")).addClass("new").css({opacity:"0"});jQuery(".carousel-wrap:not(.new)").animate({opacity:0},750,function(b){jQuery(this).remove()});jQuery(".slide:not(#slide"+a+"-content)").fadeOut(750);jQuery(".carousel-wrap.new").animate({opacity:1},750,function(b){jQuery(this).removeClass("new")}).css({"background-image":"url(/include/images/slides/"+myImage+")"});jQuery("#slide"+a+"-content").fadeIn(750)}function closeMenu(a){jQuery(a).next().slideUp(50,function(){jQuery(a).removeClass("active")}).removeClass("open")}function openMenu(a){jQuery(a).addClass("active");jQuery(a).next().slideDown(50).addClass("open")}jQuery("#topnav .toggle").click(function(a){a.preventDefault();if(jQuery(this).next().hasClass("open")){closeMenu(this)}else{if(jQuery("#topnav .toggle").hasClass("active")){closeMenu(jQuery("#topnav .active"))}openMenu(this)}});jQuery("#topnav .control").click(function(a){a.preventDefault();closeMenu(jQuery("#topnav .active"))});if(jQuery("body").hasClass("home")){jQuery(".control img").click(function(a){a.preventDefault();jQuery(document).stopTime();currentSlide=this.id.substr(5,1);rotateImage(currentSlide);if(typeof(pageTracker)!="undefined"){pageTracker._trackEvent("Background","Change","slide "+currentSlide)}startRotation();return false});preloadImages();startRotation()}else{jQuery("ul#focus-areas ul").equalizeCols();jQuery("#news-events .pane").equalizeCols();jQuery("ul#focus-areas").one("mouseenter",function(a){jQuery("ul#focus-areas ul").hide();jQuery("ul#focus-areas ul").css("visibility","visible")});jQuery("ul#focus-areas").hover(function(a){jQuery("ul#focus-areas ul").fadeIn(50)},function(a){jQuery("ul#focus-areas ul").fadeOut(50)});jQuery("#list-control a").click(function(a){a.preventDefault();if(!jQuery(this).hasClass("active")){jQuery("#list-control a").toggleClass("active");jQuery("#college-list").toggleClass("active");if(jQuery(this).attr("id")=="alpha-toggle"){jQuery(".program-list").hide();jQuery("#alphabetical").show()}else{}}});jQuery(".program-list a").click(function(a){a.preventDefault();jQuery(".program-list a").removeClass("active");jQuery(this).addClass("active");programLink=jQuery(this).attr("href");programLink=programLink.split("=");jQuery.get("/"+programLink[1]+".html",function(b){jQuery("#program").html(b)})});jQuery("#college-list a").click(function(a){a.preventDefault();jQuery("#college-list a").removeClass("active");jQuery(".program-list").hide();jQuery("#"+this.className).show();jQuery(this).addClass("active")});jQuery(".program-list .one").hover(function(a){jQuery(".key .one").toggleClass("active")});jQuery(".program-list .two").hover(function(a){jQuery(".key .two").toggleClass("active")});jQuery(".program-list .three").hover(function(a){jQuery(".key .three").toggleClass("active")});jQuery(".program-list .four").hover(function(a){jQuery(".key .four").toggleClass("active")});jQuery(".program-list .five").hover(function(a){jQuery(".key .five").toggleClass("active")});jQuery(".program-list .six").hover(function(a){jQuery(".key .six").toggleClass("active")});jQuery(".program-list .seven").hover(function(a){jQuery(".key .seven").toggleClass("active")})};
