// JavaScript Document

/*
<div id="big_announcement">
	<h2>Notice:</h2>
	Due to building scheduling conflicts, the BYU Cougarette Auditions 
	(March 19) have been moved to 177 Richards Building.<br />
	Registration will begin at 7:30am.
</div>
*/

function announceAuditionChange () {
	date = new Date();
	year = date.getFullYear();
	day = date.getDate();
	month = date.getMonth();
	hour = date.getHours();
	if (year == 2011 && month == 2 && day <= 19) {
		addAnnouncement ();
	}
}

function addAnnouncement () {
	div = document.createElement('div');
	div.id = 'big_announcement';
	div.innerHTML = '<h2>Notice:</h2>'
			+ 'Due to building scheduling conflicts, the BYU Cougarette Auditions<br />'
			+ 'on Saturday have been moved to 177 Richards Building.<br />'
			+ 'Registration will begin at 7:30am.'
	document.body.appendChild(div);
}

announceAuditionChange();
