////////////////////////////////////////////////////////////
//  Remap the $ so that jQuery doesn't conflict with MooTools
	var $j = jQuery.noConflict();


////////////////////////////////////////////////////////////
// Highlights Slider

//  Toggle highlights randomization (false = no randomization | true = randomized upon page load)
	var randomize = false;
	
//  Slide Highlights

	var highlights = ["#highlights-faculty", "#highlights-students", "#highlights-alumni"];
	var randomize = false;
	
	var currentHighlight;
	
	if (randomize) {
		currentHighlight = highlights[Math.floor(Math.random()*3)];
	}
	else {
		currentHighlight = highlights[0];
	}
	
	// Set the first highlight position
	$j(document).ready(function(){
		$j(currentHighlight).css('left', '18px');
	});
	
	// This function is in the onclick for each highlight link
	function slideHighlight(nextHighlight) {
		$j(nextHighlight).css('left', '-310px');
		$j(currentHighlight).animate({"left": "330px"}, "500");
		$j(nextHighlight).animate({"left": "18px"}, "500");	
		currentHighlight = nextHighlight;
		
		return false;
	}


////////////////////////////////////////////////////////////
// Quick Links Popup


	$j(document).ready(function(){
		$j('#quick-links').click(function() {
			$j('#quick-links-pop').css('display', 'block');
			
			return false;
		});
		
		$j('#quick-links-pop a.close').click(function() {
			$j('#quick-links-pop').css('display', 'none');
			
			return false;
		});
	});
	
////////////////////////////////////////////////////////////
// Alert Popup


	$j(document).ready(function(){
	
		if($j.cookie("alertClosed") == "yes")
			$j('#alert').css('display', 'none');
		
		$j('#alert a.close').click(function() {
			$j('#alert').css('display', 'none');
			$j.cookie("alertClosed", "yes");
			return false;
		});
	});
	
	
