// Auburn University EMS

var siteurl = "http://www.auburn.edu/registrar";
var photo1src = new Array;
var photo2src = new Array;
var photo3src = new Array;
var photo1ct = 0;
var photo2ct = 0;
var photo3ct = 0;

photo1src[photo1ct++] = "/images/random/1-001.jpg";
photo1src[photo1ct++] = "/images/random/1-002.jpg";
photo1src[photo1ct++] = "/images/random/1-003.jpg";
photo1src[photo1ct++] = "/images/random/1-004.jpg";
photo1src[photo1ct++] = "/images/random/1-005.jpg";
photo1src[photo1ct++] = "/images/random/1-006.jpg";
photo1src[photo1ct++] = "/images/random/1-007.jpg";
photo1src[photo1ct++] = "/images/random/1-008.jpg";
photo1src[photo1ct++] = "/images/random/1-009.jpg";
photo1src[photo1ct++] = "/images/random/1-010.jpg";
photo1src[photo1ct++] = "/images/random/1-011.jpg";

photo2src[photo2ct++] = "/images/random/2-001.jpg";
photo2src[photo2ct++] = "/images/random/2-002.jpg";
photo2src[photo2ct++] = "/images/random/2-003.jpg";
photo2src[photo2ct++] = "/images/random/2-004.jpg";
photo2src[photo2ct++] = "/images/random/2-005.jpg";
photo2src[photo2ct++] = "/images/random/2-006.jpg";
photo2src[photo2ct++] = "/images/random/2-007.jpg";
photo2src[photo2ct++] = "/images/random/2-008.jpg";

photo3src[photo3ct++] = "/images/random/3-001.jpg";
photo3src[photo3ct++] = "/images/random/3-002.jpg";
photo3src[photo3ct++] = "/images/random/3-003.jpg";
photo3src[photo3ct++] = "/images/random/3-004.jpg";
photo3src[photo3ct++] = "/images/random/3-005.jpg";
photo3src[photo3ct++] = "/images/random/3-006.jpg";
photo3src[photo3ct++] = "/images/random/3-007.jpg";
photo3src[photo3ct++] = "/images/random/3-008.jpg";



function getRandomNumber(numCount){
	return Math.floor(Math.random() * numCount)
}

function getPhotoOne(num) {
	descript = '<img src="'+ siteurl + photo1src[num] + '" border="0" width="145" height="136" alt="">';
	return descript;
}

function getPhotoTwo(num) {
	descript = '<img src="'+ siteurl + photo2src[num] + '" border="0" width="200" height="109" alt="">';
	return descript;
}

function getPhotoThree(num) {
	descript = '<img src="'+ siteurl + photo3src[num] + '" border="0" width="200" height="109" alt="">';
	return descript;
}

function quickLink(qlink) {
	if (qlink.value != "") {
		location.href = qlink.value;
		return true;
	}

	return false;
}

function emailPage(){
	alert("Coming soon");
	return;
	var page = escape(location);
	var mailPage = siteurl + '/scripts/email/mailpage.php?url=' + page;
	
	var newWindow;
	newWindow=window.open(mailPage,'_vEmail','scrollbars=yes,width=500,height=450');
	newWindow.focus();

}

function printPage(){
	alert("Coming soon");
	return;
	var page = escape(location);
	var printPage = siteurl + '/scripts/print/printable.php?url=' + page;
				
	var newWindow;
	newWindow=window.open(printPage,'_printable','scrollbars=yes,width=600,height=400');
	newWindow.focus();
}

function bookmarkPage(){
	alert("Coming soon");
	return;
	var page = escape(location);
	var bookmarklocation = siteurl + '/scripts/bookmark/bookmark.php?url=' + page;
				
	location.href = bookmarklocation;
}
