	if(document.images){
		mouseOverArray = new Array();
		// preload image 1
		mouseOverArray["tune-in_on"] = new Image(150, 50);
		mouseOverArray["tune-in_on"].src = "img/tune-in_on.gif";
		mouseOverArray["tune-in_off"] = new Image(150, 50);
		mouseOverArray["tune-in_off"].src = "img/tune-in_off.gif";
		mouseOverArray["tune-in_text"] = "Tune In!";
	}

	function doMouseOver( imgName, state ) {
		// performs mouseover image and status bar text swapping
		// imgName is the HTML image name specified in the <img> tag
		// state must be on, off or down
			// hide from browsers that don't support the image object
			if ( !document.images )
				return false;
		// replace image
		document.images[ imgName ].src = mouseOverArray[ imgName + "_" + state ].src;
		// if needed, display or clear the status bar text
		if ( mouseOverArray[ imgName + "_text" ] != "" ) {
			if ( state != "off" ) {
				window.status = mouseOverArray[ imgName + "_text" ];
				return true; //supresses display of link URL in on MouseOver
			} else {
				window.status = "";
				return false;
			}
		}
		return false;
	}

function pviiClassNew(obj, new_style) {
    obj.className = new_style;
}

// Returns today's date in a string with full day and month names

DayName = new Array(7);
DayName[0] = "Sunday, ";
DayName[1] = "Monday, ";
DayName[2] = "Tuesday, ";
DayName[3] = "Wednesday, ";
DayName[4] = "Thursday, ";
DayName[5] = "Friday, ";
DayName[6] = "Saturday, ";

MonthName = new Array(12);
MonthName[0] = "January ";
MonthName[1] = "February ";
MonthName[2] = "March ";
MonthName[3] = "April ";
MonthName[4] = "May ";
MonthName[5] = "June ";
MonthName[6] = "July ";
MonthName[7] = "August ";
MonthName[8] = "September ";
MonthName[9] = "October ";
MonthName[10] = "November ";
MonthName[11] = "December ";

DateMatch = new Array(7);
DateMatch[1] = "st";
DateMatch[2] = "nd";
DateMatch[3] = "rd";
DateMatch[21] = "st";
DateMatch[22] = "nd";
DateMatch[23] = "rd";
DateMatch[31] = "st";

function getDateStr(){
	var Supstr = "th";
    var Today = new Date();
    var WeekDay = Today.getDay();
    var Month = Today.getMonth();
    var Day = Today.getDate();
    var Year = Today.getFullYear();

    if(Year <= 1900)
        Year += 1900;
		
	if ((Day==1) || (Day==2) || (Day==3) || (Day==21) || (Day==22) || (Day==23) || (Day==31)) 
  	  Supstr = DateMatch[Day];
  else
  	  Supstr = "th";


    //return DayName[WeekDay] + MonthName[Month] + Day + Supstr + ", " + Year
	
	return DayName[WeekDay] + "<br>" + MonthName[Month] + Day + Supstr + " - " + Year;
}

function getYrsIBStr(){
	var iDate = 1986;
	var Today = new Date();
	var Year = Today.getFullYear();
	if(Year <= 1900)
        Year += 1900;
	
	var yrsIB = (Year - iDate);
	
	return yrsIB;
}

function getcopyYearStr(){
	var Today = new Date();
	var Year = Today.getFullYear();
	if (Year != 2002) {
		return " - " + Year;
	} else {
		return "";
	}	
}
