/*var imageArray = new Array();
	imageArray[0] = "pro_students";
	imageArray[1] = "cur_students";
	imageArray[2] = "staff";
	imageArray[3] = "alumni";
	imageArray[4] = "fam_friends";

*/

function btnChange(name,onOff){
	// onOff is has a Boolean value.  True for a mouseover.  False for a mouseout.
	if (document.images){
		var offFile, imgFile;
		if (onOff) {
			imgFile = eval(name+"_on.src");
			window.document.images[name].src=imgFile;
		} else {
			imgFile = eval(name+".src");
			window.document.images[name].src=imgFile;
		}
	}
}

// **************determine the current date
// set up an array to help convert month numbers to the month names
	var monthArray = new Array();
		monthArray[0] = "January";
		monthArray[1] = "February";
		monthArray[2] = "March";
		monthArray[3] = "April";
		monthArray[4] = "May";
		monthArray[5] = "June";
		monthArray[6] = "July";
		monthArray[7] = "August";
		monthArray[8] = "September";
		monthArray[9] = "October";
		monthArray[10] = "November";
		monthArray[11] = "December";
	// set up an array to help convert day of the week numbers to day names
	var dayArray = new Array();
		dayArray[0] = "Sunday,";
		dayArray[1] = "Monday,";
		dayArray[2] = "Tuesday,";
		dayArray[3] = "Wednesday,";
		dayArray[4] = "Thursday,";
		dayArray[5] = "Friday,";
		dayArray[6] = "Saturday,";
	// Setup a new date
	var setupDate = new Date();
	// Get the day
	var dayName = dayArray[setupDate.getDay()];
	// Get the month
	var monthName = monthArray[setupDate.getMonth()];
	// Set up the entire text
	var todayDate = dayName+" "+monthName+" "+setupDate.getDate()+", "+setupDate.getYear();	
	
// open popup window
/*URL = file path
window name = one word name for window
wit = width of window
hite = hight of window
scroll = yes/no to determine whether the window scrolls or not*/

var popupWin;
	// wit & hite will determine where the window opens on the screen
	function openWin(windowURL,windowName,wit,hite,scroll) { 
		var winH = (screen.height - hite) / 2;
		var winW = (screen.width - wit) / 2;
		popupWin = window.open( windowURL, windowName, "menubar=no,status=no,toolbar=no,location=no,scrollbars="+scroll+",screenx=1,screeny=1,width=" + wit + ",height=" + hite + ",top="+winH+",left="+winW);
		popupWin.focus();
	} 
//-->

//block image copy
//Begin
function block(e) {
alert("Looking to copy the Philadelphia University logo? Click OK, and we will redirect you to the logo approved for print, Power Point, and other, similar applications. Questions? Call the Office of Public Relations at 215.951.2851 or email PR@PhilaU.edu.");
location.replace("http://www.philau.edu/logo.htm");
return false;
}
function trap() {
if(document.images)
for (i=0;  i<document.images.length;  i++)
document.images[i].onmousedown = block;
}
// End -->

