
<!--
// http://www.bloke.com/javascript/Date/
// change and modify this if you like, but leave these
// 4 comment lines in tact and unchanged.

function longMonthArray() {
        this[0] = "January";    this[1] = "February";  this[2] = "March";
        this[3] = "April";      this[4] = "May";        this[5] = "June";
        this[6] = "July";       this[7] = "August";     this[8] = "September";
        this[9] = "October";    this[10] = "November";  this[11] = "December";
        return (this);
}

function longDayArray() {
        this[0] = "Sunday";     this[1] = "Monday";     this[2] = "Tuesday";
        this[3] = "Wednesday";  this[4] = "Thursday";   this[5] = "Friday";
        this[6] = "Saturday";
        return (this);
}



function getLongYear(year)
{
  if (year > 1900) return year
  return year+1900;
}

function writeDateLong(format)
{
   longDays = new longDayArray();
   longMonths = new longMonthArray();
   d = new Date();
   day = d.getDate();
   month = d.getMonth();
        year = d.getYear();
   if (format == 2) {
     str = longDays[d.getDay()] + ", " + longMonths[month] + " " + day + ", "+getLongYear(year);
     }
  document.writeln(str);
}

function writeDate()
{
   writeDateLong(0);
}



// end date script.

function warn_on_link_Login()
{
alert("You are now going to a secure site.  If you have any questions, please email webmaster@afba.com.");
self.location.href = "https://secure1.afba.com/communitypage/registration?Select=LogIn"; 
}

function warn_on_link_Services()
{
alert("You are now going to a secure site.  If you have any questions, please email webmaster@afba.com.");
self.location.href = "https://secure1.afba.com/communitypage/registration?Select=Services"; 
}

function warn_on_link()
{
alert("You are now going to a secure site.  If you have any questions, please email webmaster@afba.com.");
self.location.href = "https://secure1.afba.com/communitypage/registration"; 
}


// begin image script.

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		top_07_over = newImage("/communitypage/images/top_07-over.jpg");
		top_09_over = newImage("/communitypage/images/top_09-over.jpg");
		top_11_over = newImage("/communitypage/images/top_11-over.jpg");
		top_13_over = newImage("/communitypage/images/top_13-over.jpg");
		top_15_over = newImage("/communitypage/images/top_15-over.jpg");
		top_17_over = newImage("/communitypage/images/top_17-over.jpg");
		top_19_over = newImage("/communitypage/images/top_19-over.jpg");
		preloadFlag = true;
	}
}

// -->
