// JavaScript Document

// Used for MSDNA Form Fields

function MPClearField(field)
{
	if(field.name == 'name')
		if(field.value == 'Name')
			field.value = '';
	if(field.name == 'email')
		if(field.value == 'School Email Address')
			field.value = '';
	if(field.name == 'course')
		if(field.value == 'Qualifiying Course and Prefix - Instructor Name')
			field.value = '';
}

function MPSetField(field)
{
	if(field.name == 'name')
		if(field.value == '')
			field.value = 'Name';
	if(field.name == 'email')
		if(field.value == '')
			field.value = 'School Email Address';
	if(field.name == 'course')
		if(field.value == '')
			field.value = 'Qualifiying Course and Prefix - Instructor Name';
}

// Used for Image Gallery 

function setBigIMG(newSRC){
	document.getElementById("bigIMGhold").style.visibility = "hidden";
	document.getElementById("bigIMG").style.visibility = "visible";
	document.getElementById("bigIMG").src = newSRC;
}
function clearBigIMG(){
	document.getElementById("bigIMG").style.visibility = "hidden";
	document.getElementById("bigIMG").src = "";
}

// Used to submit Class Lookup Form 

function submitform()
{
  document.classLookup.submit();
}

// Used to display and hide popups in Course Sequence Pages

function displaymathScience() 
{
	document.getElementById('mathScience').style.visibility = "visible";
}

function hidemathScience() 
{
	document.getElementById('mathScience').style.visibility = "hidden";
}
function displayfineArts() 
{
	document.getElementById('fineArts').style.visibility = "visible";
}

function hidefineArts() 
{
	document.getElementById('fineArts').style.visibility = "hidden";
}
function displaysocialBehavioral() 
{
	document.getElementById('socialBehavioral').style.visibility = "visible";
}

function hidesocialBehavioral() 
{
	document.getElementById('socialBehavioral').style.visibility = "hidden";
}


function displayeventPopup() 
{
	document.getElementById('eventPopup').style.visibility = "visible";
}
function hideeventPopup() 
{
	document.getElementById('eventPopup').style.visibility = "hidden";
}

function displaywebFeature() 
{
	document.getElementById('imagepop').style.visibility = "visible";
}
function hidewebFeature() 
{
	document.getElementById('imagepop').style.visibility = "hidden";
}

function displayAcademics() 
{
	document.getElementById('academics').style.visibility = "visible";
	document.getElementById('athletics').style.visibility = "hidden";
	document.getElementById('student').style.visibility = "hidden";
}
function displayAthletics() 
{
	document.getElementById('academics').style.visibility = "hidden";
	document.getElementById('athletics').style.visibility = "visible";
	document.getElementById('student').style.visibility = "hidden";
}
function displayStudent() 
{
	document.getElementById('academics').style.visibility = "hidden";
	document.getElementById('athletics').style.visibility = "hidden";
	document.getElementById('student').style.visibility = "visible";
}

function popup(url, widthSize, heightSize, scr) 
{
	if (scr != '1')
		var srcc = 'yes';
	if (scr == '1')
		var srcc = 'yes';
	var winProps = "toolbar=no,location=no,directories=no,status=no,me nubar=no,scrollbars="+srcc+",resizable=yes,top=" + (window.screen.height - heightSize) / 2 + ",left=" + (window.screen.width - widthSize) / 2 + ",width=" + widthSize + ",height=" + heightSize;
	var popUp = window.open(url, "popup", winProps);
	popUp.focus();
}

function education() {
	document.getElementById('facultyEducation').style.display = "inline";
	document.getElementById('facultyCertifications').style.display = "none";
	document.getElementById('facultyAwards').style.display = "none";
}

function certs() {
	document.getElementById('facultyEducation').style.display = "none";
	document.getElementById('facultyCertifications').style.display = "inline";
	document.getElementById('facultyAwards').style.display = "none";
} 

function awards() {
	document.getElementById('facultyEducation').style.display = "none";
	document.getElementById('facultyCertifications').style.display = "none";
	document.getElementById('facultyAwards').style.display = "inline";
} 

