

// PRINTS THE DATE LINE ON THE HOME PAGE
// _________________________________________________________________________________________

function fGetDateLine(){
	// Store week day names in a variable.
	var weekday		= new Array(7);
		weekday[0]	= "Sunday";
		weekday[1]	= "Monday";
		weekday[2]	= "Tuesday";
		weekday[3]	= "Wednesday";
		weekday[4]	= "Thursday";
		weekday[5]	= "Friday";
		weekday[6]	= "Saturday";
	// Store the month names in a array.
	var month		= new Array(12);
		month[0]	= "Januray";
		month[1]	= "February";
		month[2]	= "March";
		month[3]	= "April";
		month[4]	= "May";
		month[5]	= "June";
		month[6]	= "July";
		month[7]	= "August";
		month[8]	= "September";
		month[9]	= "October";
		month[10]	= "November";
		month[11]	= "December";
	// Get the date
	var vGrabbedDate = new Date();
	// Store the day name
	var vDay = weekday[vGrabbedDate.getDay()];
	// Store the Month
	var vMonth = month[vGrabbedDate.getMonth()];
	// Store the Date
	var vDate = vGrabbedDate.getDate();
	// Store the year
	var vYear = vGrabbedDate.getFullYear();
	// Print to screen
	document.writeln('The latest for <b>' + vDay + ', ' + vMonth + ' ' + vDate + ' ' + vYear + '</b>');
}

function is_int(num) {
	return (num % 1 == 0 ? true : false);
}



// OPENS THE FLASH WINDOW WIDER WITH AN EASING FUNCTION
// _________________________________________________________________________________________
var vBannerClosed = 140;
var vBannerOpen = 240;
var vCurrentHeight = vBannerClosed;
var vDivisor = 0;
var myInterval;

function bannerActivate(pMovement) {
	clearInterval(myInterval);
	myInterval = setInterval('bannerGrow("' + pMovement + '")',40);
}

function bannerGrow( pDirection ){
	// Store div in a variable
	vBanner = window.document.getElementById('banner_wrapper');
	// If the request was to open the flash movie ...
	if ( pDirection == 'open' ){
		// 1
		vNextHeight = Math.round (( vBannerOpen - vCurrentHeight ) / 2 );
		// 2
		vCurrentHeight = vCurrentHeight + vNextHeight;
		// 3
		vHeightString = vCurrentHeight + 'px';
		// 4
		vBanner.style.height = vHeightString;
		// 5
		if ( vCurrentHeight >= vBannerOpen ){
			clearInterval(myInterval);
		}
	} 
	// else if the request was to close the move...
	else if ( pDirection == 'close' ) {
		// 1
		vNextHeight = Math.round (( vBannerClosed - vCurrentHeight ) / 2 );
		// 2
		vCurrentHeight = vCurrentHeight + vNextHeight;
		// 3
		vHeightString = vCurrentHeight + 'px';
		// 4
		vBanner.style.height = vHeightString;
		// 5
		if ( vCurrentHeight <= vBannerClosed ){
			clearInterval(myInterval);
		}
	}
}


// HIDES/SHOWS THE CLIENT-DIRECTED DIVS IF THIS IS THE HOME PAGE 
// _________________________________________________________________________________________

function fCheckforHomePage( pHomeStatus ){
	if ( pHomeStatus ) {
		window.document.getElementById('footerlogos').style.display = "none";
		window.document.getElementById('site_credit').style.display = "block";
		//window.document.getElementById('museum_links').style.display = "block";
		window.document.getElementById('rad').style.display = "block";
	}
}


