//Functions for Navigation Rollovers
var ASSET_PATH = "images/"
function rollover_preload(){
	//preloads middle images for the navigation
		if (document.images){
		var argLength = rollover_preload.arguments.length;
		
			for (arg=0; arg < argLength; arg++){
				
				eval(arguments[arg] + "_off = new Image();");
				eval(arguments[arg] + "_on = new Image();");
				
				eval(arguments[arg] + "_off.src = '" + ASSET_PATH + arguments[arg] + "_off.gif';");
				eval(arguments[arg] + "_on.src = '" + ASSET_PATH + arguments[arg] + "_on.gif';");
			}
    
		}
}

function rollover(imageName){
	if (document.images){
		eval("document." + imageName + ".src=" + imageName + "_on.src");
	}
}

function restore(imageName){
	if (document.images){
		eval("document." + imageName + ".src=" + imageName + "_off.src");
	}
}

//Code to get current date on my account pages
// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

// Array list of months.
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
								}

// Join it all together
today =  days[now.getDay()] + ", " +
              months[now.getMonth()] + " " +
               date + ", " +
                (fourdigits(now.getYear())) ;



