// Cudaband JavaScript Document

//This will handle the Announcement div on the home page
//User hits the link and the announcements are shown
function Announce(){
	//open up the announcements pane
	var theAnnouncements = document.getElementById("announce");
	theAnnouncements.style.top="230px";
	theAnnouncements.style.height="2000px";
	theAnnouncements.style.backgroundColor="white";
	
	//show the closer and the Announcements
	var closer = document.getElementById("announce_closer");
	var text = document.getElementById("theAnnouncement");
	closer.style.display="block";
	text.style.display="block";
}

function Close(){
	//close the announcements pane
	var theAnnouncements = document.getElementById("announce");
	theAnnouncements.style.top="500px";
	theAnnouncements.style.height="40px";
	theAnnouncements.style.backgroundColor="transparent";
	
	//hide the closer and the Announcements
	var closer = document.getElementById("announce_closer");
	var text = document.getElementById("theAnnouncement");
	closer.style.display="none";
	text.style.display="none";
}

//Trying out an image preloading to speed up the site.
//I'll feed the image quickly
function imageLoad(mypics){
	var x=0;
	var picname = new Array(mypics.length);
	for (x=0;x<mypics.length;x++)
	{
		picname[x]= new Image(5,5);
		picname[x].src = mypics[x];
	}
}