function getPeep() {
	place = document.getElementById('l_peep').value;
	window.location.href = place;
	return true;
}

function goIntranet(place) {
	switch(place) {
		case 0:
			if(confirm("Access to the Student Intranet requires a valid Law Student account. Click OK to continue or Cancel to return"))
				{
				location.href = "https://jefferson.law.ou.edu/intranet"
				}
		break
		
		case 1:
			if(confirm("Access to the Faculty/Staff Intranet requires a valid Faculty or Staff account.  Click OK to continue or Cancel to return"))
				{
				location.href = "https://jay.law.ou.edu/intranet/fs"
				}
		break
	}
}

function QuickLink() {
	place = document.getElementById('picked').value;
	window.location.href = place;
	return true;
}

function makeTall() {
	if (document.getElementById) {
		var divs = new Array(document.getElementById('sectionMenu'), document.getElementById('content'));
		
		var maxHeight = 0;
		for (var i = 0; i < divs.length; i++) {
			if (divs[i].offsetHeight > maxHeight) maxHeight = divs[i].offsetHeight;
		}
		
		for (var i = 0; i < divs.length; i++) {
			divs[i].style.height = maxHeight + 'px';

			if (divs[i].offsetHeight > maxHeight) {
				divs[i].style.height = (maxHeight - (divs[i].offsetHeight - maxHeight)) + 'px';
			}
		}
	}
}

function frontHeight() {
	var newH = document.getElementById('container').clientHeight;
	var spot = document.getElementById('spotlight');
	var info = document.getElementById('info');
	var divs = document.getElementById('search').clientHeight + document.getElementById('menu').clientHeight + document.getElementById('QL').clientHeight;
	spot.style.height = (newH - 2) + 'px';
	info.style.height = (newH - divs + 15) + 'px';
}
