/* The enews volume class */
function Volume(month, day, year, description, link) {
	this.month = month;
	this.day = day;
	this.year = year;
	this.link = link;
	this.description = description;
}
/*
	Sort years descending (2006, 2004, 2003).
	Sort months and days ascending (1/1, 1/30, 5/10)
*/
function sortByYear(a,b) {
	if (a.year > b.year) {
		return -1;
	}
	
	else if (a.year < b.year){
		return 1;
	}
	/* sort by month */
	else {
		if (a.month < b.month){
			return -1;
		}
		
		else if (a.month > b.month){
			return 1;
		}
		/* sort by day */
		else {
			if(a.day < b.day) {
				return -1;
			}
			
			else if (a.day > b.day) {
				return 1;
			}
			
			else return 0;
		}
	
	}
	
}
/* array to hold all of the volumes */
var volumeList = new Array();
var tempDay = "";
var tempMonth = "";
var tempYear = "";
var tempLink = "";
var tempDescription = "";
var i = 0;
